Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

Isolate hosted recordings by verified owner and enforce upload quotas

webadderall1c6d1616b091
diff --git a/services/recordly-share/worker/HOSTED.md b/services/recordly-share/worker/HOSTED.md
new file mode 100644
index 00000000..290e6b6b
--- /dev/null
+++ b/services/recordly-share/worker/HOSTED.md
@@ -0,0 +1,17 @@
+# Hosted sharing
+
+Self-hosting remains the default. Hosted sharing requires a separate operator-owned Wrangler configuration; do not commit account IDs, staging users, credentials, or real deployment URLs.
+
+Configure the existing `DB`, `VIDEOS_BUCKET`, and `ASSETS` bindings and scheduled cleanup trigger as in `wrangler.jsonc`, then add:
+
+- `HOSTED_MODE` set to `true`.
+- `SUPABASE_URL` set to the HTTPS auth project URL.
+- `SUPABASE_PUBLISHABLE_KEY` set to that project's publishable key. Never use a service-role key.
+- `REQUEST_RATE_LIMIT` and `ACCOUNT_RATE_LIMIT` Cloudflare rate-limiter bindings. Hosted requests fail closed without both. Choose separate namespaces and limits suitable for video playback and multipart uploads.
+- Optionally `STAGING_ALLOWED_USER_ID` to restrict a staging deployment to one verified user. Leave unset for general hosted access.
+
+Existing databases are upgraded by `ensureSchema`; migrations 0008 and 0009 also describe the owner and upload-session schema. Legacy recordings without an owner do not appear in authenticated hosted libraries. Do not infer ownership from client-provided fields.
+
+Deploy the worker before configuring desktop `VITE_CLOUD_SHARE_ENDPOINT` to its HTTPS `/api/upload` URL. Production builds default to cloud sharing unavailable when no endpoint is configured.
+
+Verified accounts can hold five recordings, including pending uploads, with a maximum of 1,000,000,000 bytes each and fourteen-day expiry. These are the current free limits; this change does not implement paid entitlements. Scheduled cleanup removes expired recordings and abandoned uploads. Test with an isolated database and bucket before production rollout.
diff --git a/services/recordly-share/worker/migrations/0008_recording_owners.sql b/services/recordly-share/worker/migrations/0008_recording_owners.sql
new file mode 100644
index 00000000..dccdc38b
--- /dev/null
+++ b/services/recordly-share/worker/migrations/0008_recording_owners.sql
@@ -0,0 +1,2 @@
+ALTER TABLE videos ADD COLUMN owner_id TEXT;
+CREATE INDEX IF NOT EXISTS idx_videos_owner ON videos(owner_id);
diff --git a/services/recordly-share/worker/migrations/0009_upload_sessions.sql b/services/recordly-share/worker/migrations/0009_upload_sessions.sql
new file mode 100644
index 00000000..93cb6ef5
--- /dev/null
+++ b/services/recordly-share/worker/migrations/0009_upload_sessions.sql
@@ -0,0 +1,2 @@
+CREATE TABLE IF NOT EXISTS recording_uploads (share_code TEXT PRIMARY KEY REFERENCES videos(share_code) ON DELETE CASCADE, upload_id TEXT NOT NULL);
+CREATE TABLE IF NOT EXISTS recording_locks (share_code TEXT PRIMARY KEY, token TEXT NOT NULL, created_at TEXT NOT NULL DEFAULT (datetime('now')));
diff --git a/services/recordly-share/worker/schema.sql b/services/recordly-share/worker/schema.sql
index eed9b8a0..dab5e2e7 100644
--- a/services/recordly-share/worker/schema.sql
+++ b/services/recordly-share/worker/schema.sql
@@ -1,5 +1,5 @@
--- Recordly Share — consolidated D1 schema (based on Voom, through migration 0007).
--- Keep in sync with SCHEMA_STATEMENTS in src/index.js (the runtime source of
+-- Recordly Share — consolidated D1 schema (based on Voom, through migration 0009).
+-- Keep in sync with SCHEMA_STATEMENTS in src/schema.js (the runtime source of
-- truth for fresh databases). Statements are idempotent so this file is safe
-- to re-apply to an existing database; the numbered files in migrations/
-- exist for upgrading databases created from an older schema.sql.
@@ -23,8 +23,10 @@ CREATE TABLE IF NOT EXISTS videos (
last_notified_view_count INTEGER NOT NULL DEFAULT 0,
is_meeting INTEGER NOT NULL DEFAULT 0,
summary TEXT,
- password_salt TEXT
+ password_salt TEXT,
+ owner_id TEXT
);
+CREATE INDEX IF NOT EXISTS idx_videos_owner ON videos(owner_id);
CREATE INDEX IF NOT EXISTS idx_videos_share_code ON videos(share_code);
CREATE INDEX IF NOT EXISTS idx_videos_expires_at ON videos(expires_at);
@@ -93,3 +95,6 @@ CREATE TABLE IF NOT EXISTS comment_sessions (
);
CREATE INDEX IF NOT EXISTS idx_comment_sessions_user ON comment_sessions(user_id);
CREATE INDEX IF NOT EXISTS idx_comment_sessions_expiry ON comment_sessions(expires_at);
+
+CREATE TABLE IF NOT EXISTS recording_uploads (share_code TEXT PRIMARY KEY REFERENCES videos(share_code) ON DELETE CASCADE, upload_id TEXT NOT NULL);
+CREATE TABLE IF NOT EXISTS recording_locks (share_code TEXT PRIMARY KEY, token TEXT NOT NULL, created_at TEXT NOT NULL DEFAULT (datetime('now')));
diff --git a/services/recordly-share/worker/src/auth.js b/services/recordly-share/worker/src/auth.js
index c036ab5c..9b84a4a7 100644
--- a/services/recordly-share/worker/src/auth.js
+++ b/services/recordly-share/worker/src/auth.js
@@ -36,6 +36,29 @@ export async function isAuthorized(request, env) {
}
}
+// Hosted accounts never inherit self-host API-secret or dashboard-cookie access.
+export async function hostedUser(request, env) {
+ const auth = request.headers.get('Authorization') || '';
+ if (!/^Bearer [^\s]+$/.test(auth) || auth.length > 8200) return null;
+ if (!env.SUPABASE_URL || !env.SUPABASE_PUBLISHABLE_KEY) return null;
+ try {
+ const base = new URL(env.SUPABASE_URL);
+ if (base.protocol !== 'https:') return null;
+ const response = await fetch(new URL('/auth/v1/user', base), {
+ headers: { Authorization: auth, apikey: env.SUPABASE_PUBLISHABLE_KEY },
+ redirect: 'error',
+ signal: AbortSignal.timeout(10000),
+ });
+ if (!response.ok) return null;
+ const user = await response.json();
+ if (typeof user.id !== 'string' || !user.id || !user.email || !user.email_confirmed_at || user.is_anonymous) return null;
+ if (env.STAGING_ALLOWED_USER_ID && user.id !== env.STAGING_ALLOWED_USER_ID) return null;
+ return { id: user.id };
+ } catch {
+ return null;
+ }
+}
+
async function generateAuthToken(shareCode, expiresAt, apiSecret) {
const encoder = new TextEncoder();
const key = await crypto.subtle.importKey(
@@ -73,6 +96,7 @@ export async function expectedSessionToken(env, expiresAt = Math.floor(Date.now(
}
export async function isDashboardAuthed(request, env) {
+ if (env.HOSTED_MODE === 'true') return false;
return (await isAuthorized(request, env)) || dashboardCookieAuthed(request, env);
}
diff --git a/services/recordly-share/worker/src/hostedUploads.js b/services/recordly-share/worker/src/hostedUploads.js
new file mode 100644
index 00000000..c3a95cc8
--- /dev/null
+++ b/services/recordly-share/worker/src/hostedUploads.js
@@ -0,0 +1,155 @@
+import { errorResponse, jsonResponse } from './http.js';
+import { handleDelete } from './library.js';
+import { handleMetadata, decodeUploadId } from './uploads.js';
+
+// Match the desktop uploader's chunks. Values are bytes, not client assertions.
+export const MAX_RECORDING_BYTES = 1_000_000_000;
+export const PART_BYTES = 25 * 1024 * 1024;
+const THUMBNAIL_BYTES = 2 * 1024 * 1024;
+const TYPES = new Set(['video/mp4', 'video/webm', 'video/quicktime', 'image/gif']);
+
+export async function limitedJson(request, max = 1024 * 1024) {
+ const reader = request.body?.getReader();
+ if (!reader) throw new Error('INVALID_JSON');
+ let size = 0;
+ const chunks = [];
+ try {
+ while (true) {
+ const { done, value } = await reader.read();
+ if (done) break;
+ size += value.byteLength;
+ if (size > max) { await reader.cancel(); throw new Error('BODY_TOO_LARGE'); }
+ chunks.push(value);
+ }
+ } finally { reader.releaseLock(); }
+ const bytes = new Uint8Array(size);
+ let offset = 0;
+ for (const chunk of chunks) { bytes.set(chunk, offset); offset += chunk.byteLength; }
+ try {
+ const value = JSON.parse(new TextDecoder().decode(bytes));
+ if (!value || typeof value !== 'object' || Array.isArray(value)) throw new Error();
+ return value;
+ } catch { throw new Error('INVALID_JSON'); }
+}
+
+// Serialize upload/delete/finalize for a recording across Worker isolates. A crash
+// leaves a lock for maintenance instead of allowing a competing writer through.
+export async function withRecordingLock(env, code, action) {
+ const token = crypto.randomUUID();
+ const result = await env.DB.prepare('INSERT OR IGNORE INTO recording_locks (share_code, token) VALUES (?, ?)').bind(code, token).run();
+ if (!result.meta.changes) return errorResponse('Recording is busy. Try again shortly.', 409);
+ try { return await action(); }
+ finally { await env.DB.prepare('DELETE FROM recording_locks WHERE share_code = ? AND token = ?').bind(code, token).run(); }
+}
+
+async function exactUpload(request, length, consume) {
+ if (!request.body || request.headers.get('Content-Length') !== String(length)) {
+ return errorResponse('Upload length does not match the reserved size', 400);
+ }
+ // Cloudflare enforces too many AND too few bytes while streaming to R2;
+ // never buffer a recording or trust Content-Length alone.
+ const stream = new FixedLengthStream(length);
+ const results = await Promise.allSettled([request.body.pipeTo(stream.writable, { signal: AbortSignal.timeout(5 * 60 * 1000) }), consume(stream.readable)]);
+ if (results[0].status === 'rejected') return errorResponse('Upload body does not match the reserved size', 400);
+ if (results[1].status === 'rejected') {
+ if (/FixedLengthStream|fixed.length|expected bytes/i.test(String(results[1].reason))) return errorResponse('Upload body does not match the reserved size', 400);
+ throw results[1].reason;
+ }
+ return jsonResponse({ ok: true, ...(results[1].value?.partNumber ? results[1].value : {}) });
+}
+
+export async function abortStoredMultipart(env, code) {
+ const session = await env.DB.prepare('SELECT upload_id FROM recording_uploads WHERE share_code = ?').bind(code).first();
+ if (session) {
+ // R2 abort is idempotent. Do not swallow service failures and release quota
+ // while parts might still occupy storage.
+ await env.VIDEOS_BUCKET.resumeMultipartUpload(`videos/${code}.mp4`, session.upload_id).abort();
+ await env.DB.prepare('DELETE FROM recording_uploads WHERE share_code = ?').bind(code).run();
+ }
+}
+
+export async function handleHostedRecording(request, env, ownerId, route, code, rawId, rawPart) {
+ const owned = await env.DB.prepare('SELECT id FROM videos WHERE share_code = ? AND owner_id = ?').bind(code, ownerId).first();
+ if (!owned) return errorResponse('Video not found', 404);
+ return withRecordingLock(env, code, async () => {
+ const video = await env.DB.prepare('SELECT * FROM videos WHERE share_code = ? AND owner_id = ?').bind(code, ownerId).first();
+ if (!video) return errorResponse('Video not found', 404);
+ const key = `videos/${code}.mp4`;
+ if (route === 'delete') {
+ await abortStoredMultipart(env, code);
+ return handleDelete(env, code);
+ }
+ // A renewal endpoint must not let free accounts bypass their fixed expiry.
+ if (route === 'renew') return errorResponse('Free recordings expire after 14 days and cannot be renewed.', 403);
+ if (!video.upload_completed && Date.parse(`${video.created_at.replace(' ', 'T')}Z`) < Date.now() - 86400000) {
+ return errorResponse('Upload expired. Delete it and start again.', 410);
+ }
+ if (route === 'metadata') {
+ const body = await limitedJson(request);
+ const object = await env.VIDEOS_BUCKET.head(key);
+ if (!object || object.size !== video.file_size) return errorResponse('Upload the complete recording before publishing', 409);
+ if (video.upload_completed) return jsonResponse({ ok: true });
+ if ((body.title !== undefined && (typeof body.title !== 'string' || !body.title.trim() || body.title.length > 200)) ||
+ (body.summary !== undefined && (typeof body.summary !== 'string' || body.summary.length > 10000)) ||
+ (body.isMeeting !== undefined && typeof body.isMeeting !== 'boolean')) return errorResponse('Invalid recording metadata');
+ for (const [name, max] of [['segments', 5000], ['chapters', 200]]) {
+ if (body[name] !== undefined && (!Array.isArray(body[name]) || body[name].length > max)) return errorResponse('Too much recording metadata');
+ }
+ if ((body.segments || []).some(s => !s || !Number.isFinite(s.startTime) || !Number.isFinite(s.endTime) || s.startTime < 0 || s.endTime < s.startTime || typeof s.text !== 'string' || s.text.length > 2000 || (s.speaker != null && (typeof s.speaker !== 'string' || s.speaker.length > 100)))) return errorResponse('Invalid transcript');
+ if ((body.chapters || []).some(c => !c || !Number.isFinite(c.timestamp) || c.timestamp < 0 || typeof c.title !== 'string' || c.title.length > 200)) return errorResponse('Invalid chapters');
+ // A failed metadata attempt may have inserted some chunks. Retry replaces
+ // those chunks rather than accumulating duplicates.
+ await env.DB.batch([
+ env.DB.prepare('DELETE FROM transcript_segments WHERE video_id = ?').bind(video.id),
+ env.DB.prepare('DELETE FROM chapters WHERE video_id = ?').bind(video.id),
+ ]);
+ return handleMetadata(new Request(request.url, { method: 'POST', body: JSON.stringify(body) }), env, code);
+ }
+ if (route === 'upload-thumbnail') {
+ const length = Number(request.headers.get('Content-Length'));
+ if (!Number.isSafeInteger(length) || length <= 0 || length > THUMBNAIL_BYTES) return errorResponse('Thumbnail must be at most 2 MB', 413);
+ if (request.headers.get('Content-Type') !== 'image/jpeg') return errorResponse('Thumbnail must be JPEG');
+ return exactUpload(request, length, stream => env.VIDEOS_BUCKET.put(`thumbnails/${code}.jpg`, stream, { httpMetadata: { contentType: 'image/jpeg' } }));
+ }
+ // Posters may arrive after metadata publishes the recording. Media remains immutable.
+ if (video.upload_completed) return errorResponse('Published recordings cannot be overwritten', 409);
+ const session = await env.DB.prepare('SELECT upload_id FROM recording_uploads WHERE share_code = ?').bind(code).first();
+ const object = await env.VIDEOS_BUCKET.head(key);
+ if (route === 'upload-data') {
+ if (session) return errorResponse('A multipart upload is already in progress', 409);
+ if (video.file_size > 50 * 1024 * 1024) return errorResponse('Use multipart upload for recordings over 50 MB', 413);
+ if (!TYPES.has(request.headers.get('Content-Type'))) return errorResponse('Unsupported recording type');
+ if (object) return object.size === video.file_size ? jsonResponse({ ok: true }) : errorResponse('Stored recording size mismatch', 409);
+ return exactUpload(request, video.file_size, stream => env.VIDEOS_BUCKET.put(key, stream, { httpMetadata: { contentType: request.headers.get('Content-Type') } }));
+ }
+ if (route === 'upload-multipart') {
+ if (object) return errorResponse('Recording bytes have already been uploaded', 409);
+ if (session) return jsonResponse({ uploadId: session.upload_id });
+ const upload = await env.VIDEOS_BUCKET.createMultipartUpload(key, { httpMetadata: { contentType: 'video/mp4' } });
+ try { await env.DB.prepare('INSERT INTO recording_uploads (share_code, upload_id) VALUES (?, ?)').bind(code, upload.uploadId).run(); }
+ catch (error) { await upload.abort(); throw error; }
+ return jsonResponse({ uploadId: upload.uploadId });
+ }
+ const uploadId = decodeUploadId(rawId || '');
+ if (!uploadId || !session || session.upload_id !== uploadId) return errorResponse('Upload session not found', 404);
+ if (route === 'upload-abort') { await abortStoredMultipart(env, code); return jsonResponse({ ok: true }); }
+ if (object) return route === 'upload-complete' && object.size === video.file_size ? jsonResponse({ ok: true }) : errorResponse('Recording bytes have already been uploaded', 409);
+ const upload = env.VIDEOS_BUCKET.resumeMultipartUpload(key, uploadId);
+ const count = Math.ceil(video.file_size / PART_BYTES);
+ if (route === 'upload-part') {
+ const number = Number(rawPart);
+ if (!Number.isInteger(number) || number < 1 || number > count) return errorResponse('Invalid part number');
+ const length = Math.min(PART_BYTES, video.file_size - (number - 1) * PART_BYTES);
+ return exactUpload(request, length, stream => upload.uploadPart(number, stream));
+ }
+ if (route === 'upload-complete') {
+ const body = await limitedJson(request, 65536);
+ if (!Array.isArray(body.parts) || body.parts.length !== count || body.parts.some((part, i) => !part || part.partNumber !== i + 1 || typeof part.etag !== 'string' || !part.etag || part.etag.length > 200)) return errorResponse('Invalid multipart manifest');
+ const result = await upload.complete(body.parts);
+ if (result.size !== video.file_size) { await env.VIDEOS_BUCKET.delete(key); return errorResponse('Completed recording size mismatch', 400); }
+ // Keep the ID until deletion for retry idempotence and crash recovery.
+ return jsonResponse({ ok: true });
+ }
+ return errorResponse('Not found', 404);
+ });
+}
diff --git a/services/recordly-share/worker/src/index.js b/services/recordly-share/worker/src/index.js
index 50d903c5..6bd5803b 100644
--- a/services/recordly-share/worker/src/index.js
+++ b/services/recordly-share/worker/src/index.js
@@ -11,6 +11,8 @@ export default {
try {
return await handleRequest(request, env);
} catch (e) {
+ if (e.message === 'BODY_TOO_LARGE') return errorResponse('Request body is too large', 413);
+ if (e.message === 'INVALID_JSON') return errorResponse('Invalid JSON body', 400);
// D1/R2 transient failures and bugs land here instead of surfacing as
// opaque Workers runtime errors. Keep the response app-shaped (JSON).
console.error('unhandled error', request.method, new URL(request.url).pathname, e.message, e.stack);
@@ -24,6 +26,7 @@ export default {
await cleanupExpired(env);
} catch (e) {
console.error('cron cleanup failed', e.message, e.stack);
+ throw e; // Surface failed runs to Cloudflare monitoring instead of reporting success.
}
},
};
diff --git a/services/recordly-share/worker/src/library.js b/services/recordly-share/worker/src/library.js
index 22495478..a6c97cc1 100644
--- a/services/recordly-share/worker/src/library.js
+++ b/services/recordly-share/worker/src/library.js
@@ -1,6 +1,7 @@
// Adapted from Voom (MIT), Copyright (c) 2026 Aritro Paul.
// See ../../LICENSE and ../../../../THIRD_PARTY_NOTICES.md for attribution.
+import { abortStoredMultipart, withRecordingLock } from './hostedUploads.js';
import { EXPIRY_DAYS } from './video.js';
import { errorResponse, jsonResponse } from './http.js';
@@ -46,6 +47,21 @@ function deleteVideoStatements(env, videoId) {
// --- Cron Cleanup ---
export async function cleanupExpired(env) {
+ if (env.HOSTED_MODE === 'true') {
+ // Release only crash locks older than a full day; live requests cannot run
+ // this long. Then use the same per-recording lock as interactive mutations.
+ await env.DB.prepare("DELETE FROM recording_locks WHERE datetime(created_at) < datetime('now', '-1 day')").run();
+ const stale = await env.DB.prepare("SELECT share_code FROM videos WHERE owner_id IS NOT NULL AND (datetime(expires_at) < datetime('now') OR (upload_completed = 0 AND datetime(created_at) < datetime('now', '-1 day'))) LIMIT 100").all();
+ for (const row of stale.results || []) {
+ await withRecordingLock(env, row.share_code, async () => {
+ const eligible = await env.DB.prepare("SELECT id FROM videos WHERE share_code = ? AND (datetime(expires_at) < datetime('now') OR (upload_completed = 0 AND datetime(created_at) < datetime('now', '-1 day')))").bind(row.share_code).first();
+ if (!eligible) return;
+ await abortStoredMultipart(env, row.share_code);
+ await handleDelete(env, row.share_code);
+ });
+ }
+ return;
+ }
const expired = await env.DB.prepare(
"SELECT id, share_code FROM videos WHERE datetime(expires_at) < datetime('now')"
).all();
@@ -69,7 +85,7 @@ export async function cleanupExpired(env) {
// --- Check Views (authenticated) ---
-export async function handleCheckViews(request, env) {
+export async function handleCheckViews(request, env, ownerId = null) {
const body = await request.json();
const { shareCodes } = body;
if (!Array.isArray(shareCodes) || shareCodes.length === 0) return errorResponse('shareCodes required');
@@ -77,8 +93,8 @@ export async function handleCheckViews(request, env) {
const placeholders = shareCodes.map(() => '?').join(',');
const results = await env.DB.prepare(
- `SELECT share_code, view_count FROM videos WHERE share_code IN (${placeholders})`
- ).bind(...shareCodes).all();
+ `SELECT share_code, view_count FROM videos WHERE share_code IN (${placeholders}) AND (? IS NULL OR owner_id = ?)`
+ ).bind(...shareCodes, ownerId, ownerId).all();
const views = {};
for (const row of results.results || []) {
@@ -90,13 +106,13 @@ export async function handleCheckViews(request, env) {
// --- Library: list all shared videos (dashboard) ---
-export async function handleListVideos(env) {
+export async function handleListVideos(env, ownerId = null) {
const rows = await env.DB.prepare(
`SELECT share_code, title, duration, width, height, file_size, created_at, expires_at,
- view_count, is_meeting, summary, (password_hash IS NOT NULL) AS is_protected
+ view_count, is_meeting, summary, upload_completed, (password_hash IS NOT NULL) AS is_protected
FROM videos
- WHERE upload_completed = 1
+ WHERE (upload_completed = 1 OR ? IS NOT NULL) AND (? IS NULL OR owner_id = ?)
ORDER BY datetime(created_at) DESC`
- ).all();
+ ).bind(ownerId, ownerId, ownerId).all();
return jsonResponse({ videos: rows.results || [] });
}
diff --git a/services/recordly-share/worker/src/router.js b/services/recordly-share/worker/src/router.js
index b3f29437..18a1efac 100644
--- a/services/recordly-share/worker/src/router.js
+++ b/services/recordly-share/worker/src/router.js
@@ -1,10 +1,11 @@
// Adapted from Voom (MIT), Copyright (c) 2026 Aritro Paul.
// See ../../LICENSE and ../../../../THIRD_PARTY_NOTICES.md for attribution.
+import { handleHostedRecording, limitedJson } from './hostedUploads.js';
import { ensureSchema } from './schema.js';
import { commentViewer, handleCommentLogin, handleCommentLogout, handleCommentRegister } from './accounts.js';
import { errorResponse, jsonResponse } from './http.js';
-import { checkLoginRateLimit, clearLoginRateLimit, dashboardCookieAuthed, dashboardPassword, expectedSessionToken, handleVerifyPassword, isAuthorized, isDashboardAuthed, verifyPasswordAuth } from './auth.js';
+import { checkLoginRateLimit, clearLoginRateLimit, dashboardCookieAuthed, dashboardPassword, expectedSessionToken, handleVerifyPassword, hostedUser, isAuthorized, isDashboardAuthed, verifyPasswordAuth } from './auth.js';
import { timingSafeEqual } from './crypto.js';
import { handleCheckViews, handleDelete, handleListVideos, handleRenew } from './library.js';
import { decodeUploadId, handleMetadata, handleMultipartAbort, handleMultipartComplete, handleMultipartPart, handleMultipartStart, handleUpload, handleUploadData, handleUploadThumbnail } from './uploads.js';
@@ -15,7 +16,17 @@ export async function handleRequest(request, env) {
const url = new URL(request.url);
const path = url.pathname;
+ const hosted = env.HOSTED_MODE === 'true';
+ if (hosted) {
+ if (!env.REQUEST_RATE_LIMIT || !env.ACCOUNT_RATE_LIMIT) return errorResponse('Hosted rate limits are not configured', 503);
+ const { success } = await env.REQUEST_RATE_LIMIT.limit({ key: request.headers.get('CF-Connecting-IP') || 'local' });
+ if (!success) return errorResponse('Too many requests. Try again in a minute.', 429);
+ }
await ensureSchema(env);
+ // The shared-password dashboard and legacy comment accounts are self-host only.
+ if (hosted && (path.startsWith('/library') || path.startsWith('/auth/'))) {
+ return errorResponse('Not found', 404);
+ }
if (path === '/auth/session' && request.method === 'GET') {
const viewer = await commentViewer(request, env);
@@ -93,7 +104,20 @@ export async function handleRequest(request, env) {
});
}
- if (!(await isAuthorized(request, env)) && !(await dashboardCookieAuthed(request, env))) {
+ let ownerId = null;
+ if (hosted) {
+ const user = await hostedUser(request, env);
+ if (!user) return errorResponse('Verified sign-in required', 401);
+ ownerId = user.id;
+ if (!(await env.ACCOUNT_RATE_LIMIT.limit({ key: ownerId })).success) return errorResponse('Too many account requests. Try again in a minute.', 429);
+ if (!['/api/health', '/api/videos', '/api/upload', '/api/check-views'].includes(path)) {
+ const route = path.match(/^\/api\/(upload-data|upload-thumbnail|upload-multipart|upload-part|upload-complete|upload-abort|metadata|renew|delete)\/([a-z0-9]+)(?:\/([^/]+)(?:\/(\d+))?)?$/);
+ if (!route) return errorResponse('Not found', 404);
+ const expected = { 'upload-data': 'PUT', 'upload-thumbnail': 'PUT', 'upload-part': 'PUT', delete: 'DELETE' }[route[1]] || 'POST';
+ if (request.method !== expected || (route[1] === 'upload-part' ? !route[4] : route[4] !== undefined) || (['upload-part', 'upload-complete', 'upload-abort'].includes(route[1]) ? !route[3] : route[3] !== undefined)) return errorResponse('Not found', 404);
+ return handleHostedRecording(request, env, ownerId, ...route.slice(1));
+ }
+ } else if (!(await isAuthorized(request, env)) && !(await dashboardCookieAuthed(request, env))) {
return errorResponse('Unauthorized', 401);
}
@@ -103,11 +127,11 @@ export async function handleRequest(request, env) {
}
if (path === '/api/videos' && request.method === 'GET') {
- return handleListVideos(env);
+ return handleListVideos(env, ownerId);
}
if (path === '/api/upload' && request.method === 'POST') {
- return handleUpload(request, env);
+ return handleUpload(request, env, ownerId);
}
const uploadDataMatch = path.match(/^\/api\/upload-data\/([a-z0-9]+)$/);
@@ -162,7 +186,7 @@ export async function handleRequest(request, env) {
}
if (path === '/api/check-views' && request.method === 'POST') {
- return handleCheckViews(request, env);
+ return handleCheckViews(hosted ? new Request(request.url, { method: 'POST', body: JSON.stringify(await limitedJson(request, 16384)) }) : request, env, ownerId);
}
return errorResponse('Not found', 404);
@@ -179,6 +203,10 @@ export async function handleRequest(request, env) {
});
}
+ if (hosted && request.method === 'POST') {
+ request = new Request(request, { body: JSON.stringify(await limitedJson(request, 16384)) });
+ }
+
// Password verification (public)
const verifyMatch = path.match(/^\/s\/([a-z0-9]+)\/verify-password$/);
if (verifyMatch && request.method === 'POST') {
diff --git a/services/recordly-share/worker/src/schema.js b/services/recordly-share/worker/src/schema.js
index 03b59427..cd50b1f4 100644
--- a/services/recordly-share/worker/src/schema.js
+++ b/services/recordly-share/worker/src/schema.js
@@ -8,12 +8,15 @@
// empty, so the worker migrates its own schema at runtime on first request.
// Authentication uses the API_SECRET set during deploy (dashboard or prompt).
-const SCHEMA_VERSION = 3;
+const SCHEMA_VERSION = 5;
-// Consolidated current schema (base schema.sql + migrations 0002-0007). All
+// Consolidated current schema (base schema.sql + migrations 0002-0009). All
// statements are idempotent, so this is safe on both fresh (button-deployed)
// and existing (token-deployed) databases.
const SCHEMA_STATEMENTS = [
+ `CREATE TABLE IF NOT EXISTS recording_uploads (share_code TEXT PRIMARY KEY REFERENCES videos(share_code) ON DELETE CASCADE, upload_id TEXT NOT NULL)`,
+ `CREATE TABLE IF NOT EXISTS recording_locks (share_code TEXT PRIMARY KEY, token TEXT NOT NULL, created_at TEXT NOT NULL DEFAULT (datetime('now')))`,
+
`CREATE TABLE IF NOT EXISTS videos (
id INTEGER PRIMARY KEY AUTOINCREMENT,
share_code TEXT UNIQUE NOT NULL,
@@ -33,8 +36,10 @@ const SCHEMA_STATEMENTS = [
last_notified_view_count INTEGER NOT NULL DEFAULT 0,
is_meeting INTEGER NOT NULL DEFAULT 0,
summary TEXT,
- password_salt TEXT
+ password_salt TEXT,
+ owner_id TEXT
)`,
+ `CREATE INDEX IF NOT EXISTS idx_videos_owner ON videos(owner_id)`,
`CREATE INDEX IF NOT EXISTS idx_videos_share_code ON videos(share_code)`,
`CREATE INDEX IF NOT EXISTS idx_videos_expires_at ON videos(expires_at)`,
`CREATE TABLE IF NOT EXISTS transcript_segments (
@@ -103,6 +108,14 @@ const SCHEMA_STATEMENTS = [
// cannot add columns to existing tables), so any change that ALTERs an
// existing table MUST appear here under a bumped SCHEMA_VERSION.
const SCHEMA_MIGRATIONS = {
+ 5: [
+ `CREATE TABLE IF NOT EXISTS recording_uploads (share_code TEXT PRIMARY KEY REFERENCES videos(share_code) ON DELETE CASCADE, upload_id TEXT NOT NULL)`,
+ `CREATE TABLE IF NOT EXISTS recording_locks (share_code TEXT PRIMARY KEY, token TEXT NOT NULL, created_at TEXT NOT NULL DEFAULT (datetime('now')))`,
+ ],
+ 4: [
+ `ALTER TABLE videos ADD COLUMN owner_id TEXT`,
+ `CREATE INDEX IF NOT EXISTS idx_videos_owner ON videos(owner_id)`,
+ ],
2: [
`CREATE INDEX IF NOT EXISTS idx_chapters_video_id ON chapters(video_id)`,
`ALTER TABLE videos ADD COLUMN password_salt TEXT`,
@@ -169,7 +182,7 @@ export async function ensureSchema(env) {
if (!(cols.results || []).some(c => c.name === 'password_salt') || !attempts) current = 1;
}
- if (current === 3) {
+ if (current >= 3) {
const commentUsers = await env.DB.prepare(
`SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'comment_users'`
).first();
diff --git a/services/recordly-share/worker/src/uploads.js b/services/recordly-share/worker/src/uploads.js
index 37f91e42..116fbad7 100644
--- a/services/recordly-share/worker/src/uploads.js
+++ b/services/recordly-share/worker/src/uploads.js
@@ -1,8 +1,9 @@
// Adapted from Voom (MIT), Copyright (c) 2026 Aritro Paul.
// See ../../LICENSE and ../../../../THIRD_PARTY_NOTICES.md for attribution.
+import { limitedJson, MAX_RECORDING_BYTES } from './hostedUploads.js';
import { errorResponse, jsonResponse } from './http.js';
-import { EXPIRY_DAYS, finiteNonnegative } from './video.js';
+import { EXPIRY_DAYS, FREE_EXPIRY_DAYS, finiteNonnegative } from './video.js';
import { generateSalt, hashRecordingPassword } from './crypto.js';
export function generateShareCode() {
@@ -11,10 +12,13 @@ export function generateShareCode() {
return Array.from(bytes, b => b.toString(16).padStart(2, '0')).join('');
}
-export async function handleUpload(request, env) {
- const body = await request.json();
+export async function handleUpload(request, env, ownerId = null) {
+ const body = ownerId ? await limitedJson(request, 16384) : await request.json();
const { title, duration, width, height, hasWebcam, fileSize, password_hash, cta_url, cta_text } = body;
+ if (ownerId && (!Number.isSafeInteger(fileSize) || fileSize <= 0 || fileSize > MAX_RECORDING_BYTES)) return errorResponse('Free recordings must be between 1 byte and 1 GB', 413);
+ if (ownerId && (typeof title !== 'string' || !title.trim() || title.length > 200)) return errorResponse('Title must be between 1 and 200 characters');
+ if (ownerId && ((cta_url && (typeof cta_url !== 'string' || cta_url.length > 2048)) || (cta_text && (typeof cta_text !== 'string' || cta_text.length > 200)) || (password_hash && (typeof password_hash !== 'string' || !/^[a-f0-9]{64}$/.test(password_hash))))) return errorResponse('Invalid recording options');
if (!title) return errorResponse('title is required');
if (password_hash && !env.API_SECRET) return errorResponse('Password protection is not configured', 503);
@@ -25,7 +29,7 @@ export async function handleUpload(request, env) {
}
const shareCode = generateShareCode();
- const expiresAt = new Date(Date.now() + EXPIRY_DAYS * 24 * 60 * 60 * 1000).toISOString();
+ const expiresAt = new Date(Date.now() + (ownerId ? FREE_EXPIRY_DAYS : EXPIRY_DAYS) * 24 * 60 * 60 * 1000).toISOString();
// Versioned slow hash of the client digest, with a unique per-record salt.
let storedHash = null;
@@ -35,13 +39,18 @@ export async function handleUpload(request, env) {
storedHash = await hashRecordingPassword(password_hash, salt);
}
- await env.DB.prepare(
- `INSERT INTO videos (share_code, title, duration, width, height, has_webcam, file_size, expires_at, password_hash, password_salt, cta_url, cta_text)
- VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`
+ const inserted = await env.DB.prepare(
+ `INSERT INTO videos (share_code, title, duration, width, height, has_webcam, file_size, expires_at, password_hash, password_salt, cta_url, cta_text, owner_id)
+ SELECT ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
+ WHERE ? IS NULL OR (SELECT COUNT(*) FROM videos WHERE owner_id = ?) < 5`
)
- .bind(shareCode, title, finiteNonnegative(duration), finiteNonnegative(width), finiteNonnegative(height), hasWebcam ? 1 : 0, finiteNonnegative(fileSize), expiresAt, storedHash, salt, cta_url || null, cta_text || null)
+ .bind(shareCode, title, finiteNonnegative(duration), finiteNonnegative(width), finiteNonnegative(height), hasWebcam ? 1 : 0, finiteNonnegative(fileSize), expiresAt, storedHash, salt, cta_url || null, cta_text || null, ownerId, ownerId, ownerId)
.run();
+ // The count and reservation are one SQLite statement: parallel requests cannot
+ // claim the sixth slot. Pending and expired rows count until explicitly deleted.
+ if (inserted.meta.changes === 0) return errorResponse('Free accounts can store up to 5 recordings. Delete one before uploading another.', 409);
+
const baseUrl = new URL(request.url).origin;
return jsonResponse({
diff --git a/services/recordly-share/worker/src/video.js b/services/recordly-share/worker/src/video.js
index 1fedbea3..3066f63b 100644
--- a/services/recordly-share/worker/src/video.js
+++ b/services/recordly-share/worker/src/video.js
@@ -2,9 +2,10 @@
// See ../../LICENSE and ../../../../THIRD_PARTY_NOTICES.md for attribution.
export const EXPIRY_DAYS = 30;
+// Hosted accounts use the free policy until server-verified paid entitlements exist.
+export const FREE_EXPIRY_DAYS = 14;
export function finiteNonnegative(value) {
const number = Number(value);
return Number.isFinite(number) && number >= 0 ? number : 0;
}
-
diff --git a/services/recordly-share/worker/test/hosted.test.js b/services/recordly-share/worker/test/hosted.test.js
new file mode 100644
index 00000000..1399971d
--- /dev/null
+++ b/services/recordly-share/worker/test/hosted.test.js
@@ -0,0 +1,244 @@
+import { afterEach, beforeEach, expect, it, vi } from 'vitest';
+import { env } from 'cloudflare:test';
+import worker from '../src/index.js';
+import { ensureSchema } from '../src/schema.js';
+
+const config = { ...env, HOSTED_MODE: 'true', REQUEST_RATE_LIMIT: { limit: async () => ({ success: true }) }, ACCOUNT_RATE_LIMIT: { limit: async () => ({ success: true }) }, SUPABASE_URL: 'https://auth.example.test', SUPABASE_PUBLISHABLE_KEY: 'public-key' };
+let owner;
+beforeEach(async () => {
+ await ensureSchema(env);
+ owner = crypto.randomUUID();
+ vi.spyOn(globalThis, 'fetch').mockImplementation(async (_url, options) => {
+ const id = options.headers.Authorization.slice(7);
+ return Response.json({ id, email: `${id}@example.test`, email_confirmed_at: '2026-09-23T00:00:00Z', is_anonymous: false });
+ });
+});
+afterEach(() => vi.restoreAllMocks());
+const call = (path, method = 'GET', body, account = owner, headers = {}) => worker.fetch(new Request(`https://share.test${path}`, {
+ method, headers: { Authorization: `Bearer ${account}`, 'Content-Type': 'application/json', ...headers },
+ ...(body === undefined ? {} : { body: JSON.stringify(body) }),
+}), config);
+async function create(account = owner) {
+ const response = await call('/api/upload', 'POST', { title: 'Owned recording', fileSize: 8, owner_id: 'spoofed' }, account);
+ expect(response.status).toBe(200);
+ return (await response.json()).shareCode;
+}
+
+it('enforces fourteen-day free expiry and rejects renewal or client-claimed paid plans', async () => {
+ const started = Date.now();
+ const response = await call('/api/upload', 'POST', {
+ title: 'Free expiry', fileSize: 8, plan: 'paid', expiresAt: '2099-01-01T00:00:00Z',
+ });
+ expect(response.status).toBe(200);
+ const ticket = await response.json();
+ const expiry = Date.parse(ticket.expiresAt);
+ const fortnight = 14 * 86400000;
+ expect(expiry).toBeGreaterThanOrEqual(started + fortnight);
+ expect(expiry).toBeLessThanOrEqual(Date.now() + fortnight);
+ expect((await call(`/api/renew/${ticket.shareCode}`, 'POST', {})).status).toBe(403);
+ const row = await env.DB.prepare('SELECT expires_at FROM videos WHERE share_code = ?').bind(ticket.shareCode).first();
+ expect(row.expires_at).toBe(ticket.expiresAt);
+
+ await put(ticket.shareCode, new Uint8Array(8));
+ expect((await call(`/api/metadata/${ticket.shareCode}`, 'POST', {})).status).toBe(200);
+ expect((await call(`/v/${ticket.shareCode}`)).status).toBe(200);
+ await env.DB.prepare("UPDATE videos SET expires_at = datetime('now', '-1 second') WHERE share_code = ?").bind(ticket.shareCode).run();
+ expect((await call(`/v/${ticket.shareCode}`)).status).toBe(404);
+ expect((await call(`/s/${ticket.shareCode}/data`)).status).toBe(404);
+ expect((await call(`/api/renew/${ticket.shareCode}`, 'POST', {})).status).toBe(403);
+});
+
+it('requires a verified non-anonymous identity and never accepts a shared secret or cookie', async () => {
+ for (const user of [{ id: owner }, { id: owner, email: '[email protected]', email_confirmed_at: 'now', is_anonymous: true }]) {
+ fetch.mockResolvedValueOnce(Response.json(user));
+ expect((await call('/api/health')).status).toBe(401);
+ }
+ fetch.mockResolvedValueOnce(new Response('', { status: 401 }));
+ expect((await call('/api/health', 'GET', undefined, 'test-secret')).status).toBe(401);
+ expect((await worker.fetch(new Request('https://share.test/api/videos', { headers: { Cookie: 'voom_session=anything' } }), config)).status).toBe(401);
+});
+
+it('isolates every recording mutation before its handler can touch storage', async () => {
+ const code = await create();
+ const other = crypto.randomUUID();
+ for (const [method, path] of [
+ ['PUT', `upload-data/${code}`], ['PUT', `upload-thumbnail/${code}`],
+ ['POST', `upload-multipart/${code}`], ['PUT', `upload-part/${code}/fake/1`],
+ ['POST', `upload-complete/${code}/fake`], ['POST', `upload-abort/${code}/fake`],
+ ['POST', `metadata/${code}`], ['POST', `renew/${code}`], ['DELETE', `delete/${code}`],
+ ]) expect((await call(`/api/${path}`, method, {}, other)).status).toBe(404);
+ const row = await env.DB.prepare('SELECT owner_id FROM videos WHERE share_code = ?').bind(code).first();
+ expect(row.owner_id).toBe(owner);
+});
+
+it('scopes list and view queries and hides legacy unowned rows', async () => {
+ const mine = await create();
+ const theirs = await create(crypto.randomUUID());
+ const legacy = await create();
+ await env.DB.prepare('UPDATE videos SET upload_completed = 1 WHERE share_code IN (?, ?, ?)').bind(mine, theirs, legacy).run();
+ await env.DB.prepare('UPDATE videos SET owner_id = NULL WHERE share_code = ?').bind(legacy).run();
+ const list = await (await call('/api/videos')).json();
+ expect(list.videos.map(v => v.share_code)).toEqual([mine]);
+ const views = await (await call('/api/check-views', 'POST', { shareCodes: [mine, theirs, legacy] })).json();
+ expect(Object.keys(views.views)).toEqual([mine]);
+ expect((await call(`/api/delete/${legacy}`, 'DELETE')).status).toBe(404);
+});
+
+it('allows exactly five concurrent reservations and releases a slot after owner deletion', async () => {
+ const responses = await Promise.all(Array.from({ length: 9 }, () => call('/api/upload', 'POST', { title: 'Concurrent', fileSize: 8 })));
+ expect(responses.filter(r => r.status === 200)).toHaveLength(5);
+ expect(responses.filter(r => r.status === 409)).toHaveLength(4);
+ const row = await env.DB.prepare('SELECT share_code FROM videos WHERE owner_id = ? LIMIT 1').bind(owner).first();
+ await env.DB.prepare("UPDATE videos SET expires_at = datetime('now', '-1 day') WHERE owner_id = ?").bind(owner).run();
+ expect((await call('/api/upload', 'POST', { title: 'Expired still occupies storage', fileSize: 8 })).status).toBe(409);
+ expect((await call(`/api/delete/${row.share_code}`, 'DELETE')).status).toBe(200);
+ await create();
+});
+
+it('disables the self-host shared-password dashboard and comment-account routes', async () => {
+ expect((await call('/library')).status).toBe(404);
+ expect((await call('/library/login', 'POST', {})).status).toBe(404);
+ expect((await call('/auth/register', 'POST', {})).status).toBe(404);
+});
+
+const put = (code, bytes, extra = {}, path = 'upload-data') => worker.fetch(new Request(`https://share.test/api/${path}/${code}`, {
+ method: 'PUT', headers: { Authorization: `Bearer ${owner}`, 'Content-Type': 'video/mp4', 'Content-Length': String(bytes.length), ...extra }, body: bytes,
+}), config);
+
+it('rejects invalid reservations and refuses publication without matching bytes', async () => {
+ for (const size of [0, -1, 0.5, 1_000_000_001, '8', null]) {
+ expect((await call('/api/upload', 'POST', { title: 'Invalid', fileSize: size })).status).toBe(413);
+ }
+ const code = await create();
+ expect((await call(`/api/metadata/${code}`, 'POST', {})).status).toBe(409);
+ expect((await put(code, new Uint8Array(9))).status).toBe(400);
+ expect(await env.VIDEOS_BUCKET.head(`videos/${code}.mp4`)).toBeNull();
+});
+
+it('validates actual streamed bytes even when Content-Length lies', async () => {
+ for (const size of [7, 9]) {
+ const code = await create();
+ expect((await put(code, new Uint8Array(size), { 'Content-Length': '8' })).status).toBe(400);
+ expect(await env.VIDEOS_BUCKET.head(`videos/${code}.mp4`)).toBeNull();
+ }
+});
+
+it('uploads, publishes, retries metadata safely, serves playback, and deletes', async () => {
+ const code = await create();
+ expect((await put(code, new Uint8Array(8))).status).toBe(200);
+ const metadata = { title: 'Ready', segments: [{ startTime: 0, endTime: 1, text: 'Hello' }] };
+ expect((await call(`/api/metadata/${code}`, 'POST', metadata)).status).toBe(200);
+ expect((await call(`/api/metadata/${code}`, 'POST', metadata)).status).toBe(200);
+ const segments = await env.DB.prepare('SELECT COUNT(*) AS total FROM transcript_segments WHERE video_id = (SELECT id FROM videos WHERE share_code = ?)').bind(code).first();
+ expect(segments.total).toBe(1);
+ expect((await put(code, new Uint8Array(8))).status).toBe(409);
+ expect((await worker.fetch(new Request(`https://share.test/v/${code}`), config)).status).toBe(200);
+ expect((await call(`/api/delete/${code}`, 'DELETE')).status).toBe(200);
+ expect(await env.VIDEOS_BUCKET.head(`videos/${code}.mp4`)).toBeNull();
+});
+
+it('reuses one multipart session, enforces part sizes, and completes exactly once', async () => {
+ const code = await create();
+ const start = await (await call(`/api/upload-multipart/${code}`, 'POST')).json();
+ const retry = await (await call(`/api/upload-multipart/${code}`, 'POST')).json();
+ expect(retry.uploadId).toBe(start.uploadId);
+ const id = encodeURIComponent(start.uploadId);
+ expect((await call(`/api/upload-abort/${code}/wrong`, 'POST')).status).toBe(404);
+ const part = await worker.fetch(new Request(`https://share.test/api/upload-part/${code}/${id}/1`, {
+ method: 'PUT', headers: { Authorization: `Bearer ${owner}`, 'Content-Length': '8' }, body: new Uint8Array(8),
+ }), config);
+ expect(part.status).toBe(200);
+ const manifest = { parts: [await part.json()] };
+ expect((await call(`/api/upload-complete/${code}/${id}`, 'POST', { parts: [] })).status).toBe(400);
+ expect((await call(`/api/upload-complete/${code}/${id}`, 'POST', manifest)).status).toBe(200);
+ expect((await call(`/api/upload-complete/${code}/${id}`, 'POST', manifest)).status).toBe(200);
+ expect((await call(`/api/metadata/${code}`, 'POST', {})).status).toBe(200);
+ expect((await call(`/api/delete/${code}`, 'DELETE')).status).toBe(200);
+});
+
+it('aborts abandoned multipart uploads and frees only stale slots', async () => {
+ const { cleanupExpired } = await import('../src/library.js');
+ const stale = await create();
+ const active = await create();
+ await call(`/api/upload-multipart/${stale}`, 'POST');
+ await env.DB.prepare("UPDATE videos SET created_at = datetime('now', '-2 days') WHERE share_code = ?").bind(stale).run();
+ await cleanupExpired(config);
+ expect(await env.DB.prepare('SELECT id FROM videos WHERE share_code = ?').bind(stale).first()).toBeNull();
+ expect(await env.DB.prepare('SELECT upload_id FROM recording_uploads WHERE share_code = ?').bind(stale).first()).toBeNull();
+ expect(await env.DB.prepare('SELECT id FROM videos WHERE share_code = ?').bind(active).first()).not.toBeNull();
+});
+
+it('bounds control payloads and thumbnail bytes', async () => {
+ expect((await call('/api/upload', 'POST', { title: 'x'.repeat(17000), fileSize: 8 })).status).toBe(413);
+ const code = await create();
+ expect((await put(code, new Uint8Array(1), { 'Content-Type': 'image/jpeg', 'Content-Length': String(3 * 1024 * 1024) }, 'upload-thumbnail')).status).toBe(413);
+});
+
+it('limits staging to its explicitly allowed account', async () => {
+ const restricted = { ...config, STAGING_ALLOWED_USER_ID: owner };
+ expect((await worker.fetch(new Request('https://share.test/api/health', { headers: { Authorization: `Bearer ${owner}` } }), restricted)).status).toBe(200);
+ expect((await worker.fetch(new Request('https://share.test/api/health', { headers: { Authorization: 'Bearer different-user' } }), restricted)).status).toBe(401);
+});
+
+it('leaves quota occupied when R2 cleanup fails, then succeeds on retry', async () => {
+ const code = await create();
+ await call(`/api/upload-multipart/${code}`, 'POST');
+ const failing = { ...config, VIDEOS_BUCKET: { resumeMultipartUpload: () => ({ abort: async () => { throw new Error('Storage unavailable'); } }) } };
+ expect((await worker.fetch(new Request(`https://share.test/api/delete/${code}`, { method: 'DELETE', headers: { Authorization: `Bearer ${owner}` } }), failing)).status).toBe(500);
+ expect(await env.DB.prepare('SELECT id FROM videos WHERE share_code = ?').bind(code).first()).not.toBeNull();
+ expect((await call(`/api/delete/${code}`, 'DELETE')).status).toBe(200);
+});
+
+it('blocks competing mutations and preserves another account’s locks', async () => {
+ const code = await create();
+ await env.DB.prepare('INSERT INTO recording_locks (share_code, token) VALUES (?, ?)').bind(code, 'held-by-upload').run();
+ expect((await call(`/api/delete/${code}`, 'DELETE')).status).toBe(409);
+ expect((await call(`/api/delete/${code}`, 'DELETE', undefined, crypto.randomUUID())).status).toBe(404);
+ expect((await env.DB.prepare('SELECT token FROM recording_locks WHERE share_code = ?').bind(code).first()).token).toBe('held-by-upload');
+});
+
+it('fails closed without rate limits and throttles before expensive auth/storage work', async () => {
+ const request = () => new Request('https://share.test/api/health', { headers: { Authorization: `Bearer ${owner}` } });
+ expect((await worker.fetch(request(), { ...config, REQUEST_RATE_LIMIT: undefined })).status).toBe(503);
+ const denied = { limit: async () => ({ success: false }) };
+ fetch.mockClear();
+ expect((await worker.fetch(request(), { ...config, REQUEST_RATE_LIMIT: denied })).status).toBe(429);
+ expect(fetch).not.toHaveBeenCalled();
+ expect((await worker.fetch(request(), { ...config, ACCOUNT_RATE_LIMIT: denied })).status).toBe(429);
+});
+
+
+it('accepts the full 1 GB allowance while rejecting the next byte', async () => {
+ const accepted = await call('/api/upload', 'POST', { title: 'Full allowance', fileSize: 1_000_000_000 });
+ expect(accepted.status).toBe(200);
+ const rejected = await call('/api/upload', 'POST', { title: 'Over allowance', fileSize: 1_000_000_001 });
+ expect(rejected.status).toBe(413);
+});
+
+
+it('scheduled cleanup removes expired completed objects and preserves active recordings', async () => {
+ const expired = await create();
+ const active = await create();
+ for (const code of [expired, active]) {
+ await put(code, new Uint8Array(8));
+ await call(`/api/metadata/${code}`, 'POST', {});
+ }
+ await env.DB.prepare("UPDATE videos SET expires_at = datetime('now', '-1 second') WHERE share_code = ?").bind(expired).run();
+ await worker.scheduled({}, config);
+ expect(await env.VIDEOS_BUCKET.head(`videos/${expired}.mp4`)).toBeNull();
+ expect(await env.DB.prepare('SELECT id FROM videos WHERE share_code = ?').bind(expired).first()).toBeNull();
+ expect(await env.VIDEOS_BUCKET.head(`videos/${active}.mp4`)).not.toBeNull();
+ expect(await env.DB.prepare('SELECT id FROM videos WHERE share_code = ?').bind(active).first()).not.toBeNull();
+});
+
+it('accepts the owner poster after publication without allowing media replacement', async () => {
+ const code = await create();
+ expect((await put(code, new Uint8Array(8))).status).toBe(200);
+ expect((await call(`/api/metadata/${code}`, 'POST', {})).status).toBe(200);
+ const thumbnail = new Uint8Array([0xff, 0xd8, 0xff, 0xd9]);
+ expect((await put(code, thumbnail, { 'Content-Type': 'image/jpeg' }, 'upload-thumbnail')).status).toBe(200);
+ const poster = await env.VIDEOS_BUCKET.get(`thumbnails/${code}.jpg`);
+ expect(new Uint8Array(await poster.arrayBuffer())).toEqual(thumbnail);
+ expect((await put(code, new Uint8Array(8))).status).toBe(409);
+ expect((await call(`/api/upload-thumbnail/${code}`, 'PUT', {}, crypto.randomUUID())).status).toBe(404);
+});
diff --git a/services/recordly-share/worker/test/migration.test.js b/services/recordly-share/worker/test/migration.test.js
index d8b34113..f2bbf75d 100644
--- a/services/recordly-share/worker/test/migration.test.js
+++ b/services/recordly-share/worker/test/migration.test.js
@@ -118,7 +118,8 @@ describe('schema migration paths', () => {
expect(await videoColumns()).toContain('password_salt');
const meta = await env.DB.prepare(`SELECT value FROM _meta WHERE key = 'schema_version'`).first();
- expect(meta.value).toBe('3');
+ expect(meta.value).toBe('5');
+ expect(await videoColumns()).toContain('owner_id');
});
it('repairs a database mis-stamped as current without the v2 columns', async () => {
diff --git a/services/recordly-share/worker/web/dist/_astro/SharePage.P3RzS8D3.js b/services/recordly-share/worker/web/dist/_astro/SharePage.P3RzS8D3.js
deleted file mode 100644
index 78f28430..00000000
--- a/services/recordly-share/worker/web/dist/_astro/SharePage.P3RzS8D3.js
+++ /dev/null
@@ -1 +0,0 @@
-import{t as ie,Z as ta,_ as aa,a0 as na,B as r,F as G,G as z,a1 as Oe,a2 as Ye,a3 as ra,a4 as Ge,d as Ce,a5 as la,a6 as bt,a7 as ze,a8 as _e,a9 as sa,j as k,aa as ia,ab as oa,A as Ve,ac as ca,ad as he,ae as pt,s as ge,af as da,ag as gt,o as ee,q as te,y as xe,ah as xt,p as Y,ai as vt,aj as Pe,ak as ve,al as ua,am as ma,an as fa,u as ha,ao as ba,ap as pa,aq as $t,ar as ga,as as yt,at as xa,au as va,m as Be,v as At,av as $a,aw as ya,ax as Aa,n as Et,ay as Je,az as Mt,aA as Ea,aB as Ma,aC as Va,aD as Pa,$ as wa,aE as Za,aF as ja,aG as La,aH as Ha,aI as Sa,aJ as Ta,aK as Ca,aL as Fa,E as U,aM as ka,l as Na,aN as ce,aO as Ra,aP as Da,aQ as Ka,aR as Ia,aS as Oa,aT as za,aU as _a,aV as Ba,aW as Qe,aX as Ua,J as D,Y as le,P as Vt,K as T,aY as Pt,aZ as Wa,M as be,X as Ae,L as Ee,a_ as qa,a$ as Xa,Q as wt,W as Fe,O as Zt,N as Ya,R as $e,U as Ga,V as Ja,T as Qa,b0 as e0}from"./ShareUI.CpnBv7vU.js";import{r as e,$ as V}from"./index.DeQQz02V.js";const t0=ie({defaultVariants:{color:"default",variant:"secondary"},slots:{base:"chip",label:"chip__label"},variants:{color:{accent:{base:"chip--accent"},danger:{base:"chip--danger"},default:{base:"chip--default"},success:{base:"chip--success"},warning:{base:"chip--warning"}},size:{lg:{base:"chip--lg"},md:{base:"chip--md"},sm:{base:"chip--sm"}},variant:{primary:{base:"chip--primary"},secondary:{base:"chip--secondary"},soft:{base:"chip--soft"},tertiary:{base:"chip--tertiary"}}}}),a0=ie({defaultVariants:{color:"accent",size:"md"},slots:{base:"progress-bar",fill:"progress-bar__fill",output:"progress-bar__output",track:"progress-bar__track"},variants:{color:{accent:{base:"progress-bar--accent"},danger:{base:"progress-bar--danger"},default:{base:"progress-bar--default"},success:{base:"progress-bar--success"},warning:{base:"progress-bar--warning"}},size:{lg:{base:"progress-bar--lg"},md:{base:"progress-bar--md"},sm:{base:"progress-bar--sm"}}}}),n0=ie({defaultVariants:{hideScrollBar:!1,orientation:"vertical",variant:"fade"},slots:{base:"scroll-shadow"},variants:{hideScrollBar:{false:{},true:{base:"scroll-shadow--hide-scrollbar"}},orientation:{horizontal:{base:"scroll-shadow--horizontal"},vertical:{base:"scroll-shadow--vertical"}},variant:{fade:{base:"scroll-shadow--fade"}}}}),r0=ie({slots:{base:"slider",fill:"slider__fill",marks:"slider__marks",output:"slider__output",thumb:"slider__thumb",track:"slider__track"}}),l0=ie({defaultVariants:{align:"center",variant:"primary"},slots:{base:"tabs",scrollNext:"tabs__list-container__scroll-next",scrollPrev:"tabs__list-container__scroll-prev",scroller:"tabs__list-container__scroller",separator:"tabs__separator",tab:"tabs__tab",tabIndicator:"tabs__indicator",tabList:"tabs__list",tabListContainer:"tabs__list-container",tabPanel:"tabs__panel"},variants:{align:{center:{},end:{base:"tabs--align-end"},start:{base:"tabs--align-start"}},variant:{primary:{},secondary:{base:"tabs--secondary"}}}}),s0=ie({base:"textarea",defaultVariants:{fullWidth:!1,variant:"primary"},variants:{fullWidth:{false:"",true:"textarea--full-width"},variant:{primary:"textarea--primary",secondary:"textarea--secondary"}}}),i0=ie({slots:{base:"tooltip",trigger:"tooltip__trigger"}});class et{constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&o.type==="section")for(let d of o.childNodes)n(d)};for(let o of t)n(o);let l=null,s=0,i=0;for(let[o,d]of this.keyMap)l?(l.nextKey=o,d.prevKey=l.key):(this.firstKey=o,d.prevKey=void 0),d.type==="item"&&(d.index=s++),(d.type==="section"||d.type==="item")&&i++,l=d,l.nextKey=void 0;this._size=i,this.lastKey=l?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey??null:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){return this.keyMap.get(t)?.childNodes||[]}}function o0(a){let{filter:t,layoutDelegate:n}=a,l=ta(a),s=e.useMemo(()=>a.disabledKeys?new Set(a.disabledKeys):new Set,[a.disabledKeys]),i=e.useCallback(u=>t?new et(t(u)):new et(u),[t]),o=e.useMemo(()=>({suppressTextValueWarning:a.suppressTextValueWarning}),[a.suppressTextValueWarning]),d=aa(a,i,o),c=e.useMemo(()=>new na(d,l,{layoutDelegate:n}),[d,l,n]);return c0(d,c),{collection:d,disabledKeys:s,selectionManager:c}}function c0(a,t){const n=e.useRef(null);e.useEffect(()=>{if(t.focusedKey!=null&&!a.getItem(t.focusedKey)&&n.current){let l=n.current.getKeyAfter(t.focusedKey),s=null;for(;l!=null;){let i=a.getItem(l);if(i&&i.type==="item"&&!t.isDisabled(l)){s=l;break}l=n.current.getKeyAfter(l)}if(s==null)for(l=n.current.getKeyBefore(t.focusedKey);l!=null;){let i=a.getItem(l);if(i&&i.type==="item"&&!t.isDisabled(l)){s=l;break}l=n.current.getKeyBefore(l)}t.setFocusedKey(s)}n.current=a},[a,t])}const jt=e.createContext({}),tt=({children:a,className:t,color:n,size:l,variant:s,...i})=>{const o=V.useMemo(()=>t0({color:n,size:l,variant:s}),[n,l,s]),d=V.useMemo(()=>typeof a=="string"||typeof a=="number"?r.jsx(Lt,{children:a}):a,[a]),c=V.useMemo(()=>({slots:o}),[o]);return r.jsx(jt,{value:c,children:r.jsx(G.span,{...i,className:z(o.base,t),"data-slot":"chip",children:d})})},Lt=({children:a,className:t,...n})=>{const{slots:l}=e.use(jt);return r.jsx(G.span,{className:z(l?.label,t),"data-slot":"chip-label",...n,children:a})},d0=Object.assign(tt,{Root:tt,Label:Lt});function Ht(a){let{onMoveStart:t,onMove:n,onMoveEnd:l}=a,s=e.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:o}=Oe(),d=e.useCallback(($,b,A,g)=>{A===0&&g===0||(s.current.didMove||(s.current.didMove=!0,t?.({type:"movestart",pointerType:b,shiftKey:$.shiftKey,metaKey:$.metaKey,ctrlKey:$.ctrlKey,altKey:$.altKey})),n?.({type:"move",pointerType:b,deltaX:A,deltaY:g,shiftKey:$.shiftKey,metaKey:$.metaKey,ctrlKey:$.ctrlKey,altKey:$.altKey}))},[t,n,s]),c=Ye(d),u=e.useCallback(($,b)=>{ra(),s.current.didMove&&l?.({type:"moveend",pointerType:b,shiftKey:$.shiftKey,metaKey:$.metaKey,ctrlKey:$.ctrlKey,altKey:$.altKey})},[l,s]),p=Ye(u);return{moveProps:e.useMemo(()=>{let $={},b=()=>{la(),s.current.didMove=!1};{let g=v=>{if(v.pointerId===s.current.id){let M=v.pointerType||"mouse";c(v,M,v.pageX-(s.current.lastPosition?.pageX??0),v.pageY-(s.current.lastPosition?.pageY??0)),s.current.lastPosition={pageX:v.pageX,pageY:v.pageY}}},f=v=>{if(v.pointerId===s.current.id){let M=v.pointerType||"mouse";p(v,M),s.current.id=null;let w=Ge(Ce(v));o(w,"pointermove",g,!1),o(w,"pointerup",f,!1),o(w,"pointercancel",f,!1)}};$.onPointerDown=v=>{if(v.button===0&&s.current.id==null){b(),v.stopPropagation(),v.preventDefault(),s.current.lastPosition={pageX:v.pageX,pageY:v.pageY},s.current.id=v.pointerId;let M=Ge(Ce(v));i(M,"pointermove",g,!1),i(M,"pointerup",f,!1),i(M,"pointercancel",f,!1)}}}let A=(g,f,v)=>{b(),c(g,"keyboard",f,v),p(g,"keyboard")};return $.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),A(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),A(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),A(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),A(g,0,1);break}},$},[i,o,s])}}const Ue=new WeakMap;function ke(a,t){let n=Ue.get(a);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function u0(a,t,n){let{labelProps:l,fieldProps:s}=bt(a),i=a.orientation==="vertical";Ue.set(t,{id:l.id??s.id,"aria-describedby":a["aria-describedby"],"aria-details":a["aria-details"]});let{direction:o}=ze(),{addGlobalListener:d,removeGlobalListener:c}=Oe();const u=e.useRef(null),p=o==="rtl",m=e.useRef(null),{moveProps:$}=Ht({onMoveStart(){m.current=null},onMove({deltaX:f,deltaY:v}){if(!n.current)return;let{height:M,width:w}=n.current.getBoundingClientRect(),H=i?M:w;m.current==null&&u.current!=null&&(m.current=t.getThumbPercent(u.current)*H);let E=i?v:f;if((i||p)&&(E=-E),m.current+=E,u.current!=null&&n.current){const Z=_e(m.current/H,0,1);t.setThumbPercent(u.current,Z)}},onMoveEnd(){u.current!=null&&(t.setThumbDragging(u.current,!1),u.current=null)}});let b=e.useRef(void 0),A=(f,v,M,w)=>{if(n.current&&!a.isDisabled&&t.values.every((H,E)=>!t.isThumbDragging(E))){let{height:H,width:E,top:Z,left:F}=n.current.getBoundingClientRect(),K=i?H:E,I=((i?w:M)-(i?Z:F))/K;(o==="rtl"||i)&&(I=1-I);let R=t.getPercentValue(I),y,j=t.values.findIndex(S=>R-S<0);if(j===0)y=j;else if(j===-1)y=t.values.length-1;else{let S=t.values[j-1],P=t.values[j];Math.abs(S-R)<Math.abs(P-R)?y=j-1:y=j}y>=0&&t.isThumbEditable(y)?(f.preventDefault(),u.current=y,t.setFocusedThumb(y),b.current=v,t.setThumbDragging(u.current,!0),t.setThumbValue(y,R),d(window,"mouseup",g,!1),d(window,"touchend",g,!1),d(window,"pointerup",g,!1)):u.current=null}},g=f=>{(f.pointerId??f.changedTouches?.[0].identifier)===b.current&&(u.current!=null&&(t.setThumbDragging(u.current,!1),u.current=null),c(window,"mouseup",g,!1),c(window,"touchend",g,!1),c(window,"pointerup",g,!1))};return"htmlFor"in l&&l.htmlFor&&(delete l.htmlFor,l.onClick=()=>{document.getElementById(ke(t,0))?.focus(),sa("keyboard")}),{labelProps:l,groupProps:{role:"group",...s},trackProps:k({onMouseDown(f){f.button!==0||f.altKey||f.ctrlKey||f.metaKey||A(f,void 0,f.clientX,f.clientY)},onPointerDown(f){f.pointerType==="mouse"&&(f.button!==0||f.altKey||f.ctrlKey||f.metaKey)||A(f,f.pointerId,f.clientX,f.clientY)},onTouchStart(f){A(f,f.changedTouches[0].identifier,f.changedTouches[0].clientX,f.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},$),outputProps:{htmlFor:t.values.map((f,v)=>ke(t,v)).join(" "),"aria-live":"off"}}}function m0(a,t){let{index:n=0,isRequired:l,validationState:s,isInvalid:i,trackRef:o,inputRef:d,orientation:c=t.orientation,name:u,form:p}=a,m=a.isDisabled||t.isDisabled,$=c==="vertical",{direction:b}=ze(),{addGlobalListener:A,removeGlobalListener:g}=Oe(),f=Ue.get(t);const{labelProps:v,fieldProps:M}=bt({...a,id:ke(t,n),"aria-labelledby":`${f.id} ${a["aria-labelledby"]??""}`.trim()}),w=t.values[n],H=e.useCallback(()=>{d.current&&ia(d.current)},[d]),E=t.focusedThumb===n;e.useEffect(()=>{E&&H()},[E,H]);let Z=b==="rtl",F=e.useRef(null),K=P=>{t.setThumbDragging(n,!0),P(),t.setThumbDragging(n,!1)},{keyboardProps:_}=oa({shortcuts:{PageUp:()=>K(()=>{t.incrementThumb(n,t.pageSize)}),PageDown:()=>K(()=>{t.decrementThumb(n,t.pageSize)}),Home:()=>K(()=>{t.setThumbValue(n,t.getThumbMinValue(n))}),End:()=>K(()=>{t.setThumbValue(n,t.getThumbMaxValue(n))})},allowRepeats:!0}),{moveProps:W}=Ht({onMoveStart(){F.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:P,deltaY:O,pointerType:ae,shiftKey:Q}){const{getThumbPercent:me,setThumbPercent:x,decrementThumb:h,incrementThumb:L,step:C,pageSize:q}=t;if(!o.current)return;let{width:fe,height:ea}=o.current.getBoundingClientRect(),Xe=$?ea:fe;if(F.current==null&&(F.current=me(n)*Xe),ae==="keyboard")P>0&&Z||P<0&&!Z||O>0?h(n,Q?q:C):L(n,Q?q:C);else{let He=$?O:P;($||Z)&&(He=-He),F.current+=He,x(n,_e(F.current/Xe,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!m);const{focusableProps:J}=Ve(k(a,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),d);let I=e.useRef(void 0),R=P=>{H(),I.current=P,t.setThumbDragging(n,!0),A(window,"mouseup",y,!1),A(window,"touchend",y,!1),A(window,"pointerup",y,!1)},y=P=>{(P.pointerId??P.changedTouches?.[0].identifier)===I.current&&(H(),t.setThumbDragging(n,!1),g(window,"mouseup",y,!1),g(window,"touchend",y,!1),g(window,"pointerup",y,!1))},j=t.getThumbPercent(n);($||b==="rtl")&&(j=1-j);let S=m?{}:k(_,W,{onMouseDown:P=>{P.button!==0||P.altKey||P.ctrlKey||P.metaKey||R()},onPointerDown:P=>{P.button!==0||P.altKey||P.ctrlKey||P.metaKey||R(P.pointerId)},onTouchStart:P=>{R(P.changedTouches[0].identifier)}});return ca(d,t.defaultValues[n],P=>{t.setThumbValue(n,P)}),{inputProps:k(J,M,{type:"range",tabIndex:m?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:w,name:u,form:p,disabled:m,"aria-orientation":c,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":l||void 0,"aria-invalid":i||s==="invalid"||void 0,"aria-errormessage":a["aria-errormessage"],"aria-describedby":[f["aria-describedby"],a["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[f["aria-details"],a["aria-details"]].filter(Boolean).join(" "),onChange:P=>{t.setThumbValue(n,parseFloat(Ce(P).value))}}),thumbProps:{...S,style:{position:"absolute",[$?"top":"left"]:`${j*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:v,isDragging:t.isThumbDragging(n),isDisabled:m,isFocused:E}}const f0=0,h0=100,b0=1;function p0(a){const{isDisabled:t=!1,minValue:n=f0,maxValue:l=h0,numberFormatter:s,step:i=b0,orientation:o="horizontal"}=a;let d=e.useMemo(()=>{let h=(l-n)/10;return h=he(h,0,h+i,i),Math.max(h,i)},[i,l,n]),c=e.useCallback(h=>h?.map((L,C)=>{let q=C===0?n:h[C-1],fe=C===h.length-1?l:h[C+1];return he(L,q,fe,i)}),[n,l,i]),u=e.useMemo(()=>c(nt(a.value)),[a.value,c]),p=e.useMemo(()=>c(nt(a.defaultValue)??[n]),[a.defaultValue,n,c]),m=rt(a.value,a.defaultValue,a.onChange),$=rt(a.value,a.defaultValue,a.onChangeEnd);const[b,A]=pt(u,p,m);let[g]=e.useState(b);const[f,v]=e.useState(new Array(b.length).fill(!1)),M=e.useRef(new Array(b.length).fill(!0)),[w,H]=e.useState(void 0),E=e.useRef(b),Z=e.useRef(f);let F=h=>{E.current=h,A(h)},K=h=>{Z.current=h,v(h)};function _(h){return(h-n)/(l-n)}function W(h){return h===0?n:b[h-1]}function J(h){return h===b.length-1?l:b[h+1]}function I(h){return M.current[h]}function R(h,L){M.current[h]=L}function y(h,L){if(t||!I(h))return;const C=W(h),q=J(h);L=he(L,C,q,i);let fe=at(E.current,h,L);F(fe)}function j(h,L){if(t||!I(h))return;L&&(E.current=b);const C=Z.current[h];Z.current=at(Z.current,h,L),K(Z.current),$&&C&&!Z.current.some(Boolean)&&$(E.current)}let S=e.useRef(null);function P(h=b){switch(typeof h=="number"&&(h=[h]),h.length){case 0:return"";case 1:return s.format(h[0]);case 2:return s.formatRange(h[0],h[1]);default:{let L=h.map(q=>s.format(q)),C=S.current;return(!C||C.resolvedOptions().locale!==s.resolvedOptions().locale)&&(C=S.current=new Intl.ListFormat(s.resolvedOptions().locale,{type:"unit"})),C.format(L)}}}function O(h,L){y(h,Q(L))}function ae(h){return Math.round((h-n)/i)*i+n}function Q(h){const L=h*(l-n)+n;return _e(ae(L),n,l)}function me(h,L=1){let C=Math.max(L,i);y(h,he(b[h]+C,n,l,i))}function x(h,L=1){let C=Math.max(L,i);y(h,he(b[h]-C,n,l,i))}return{values:b,defaultValues:a.defaultValue!==void 0?p:g,getThumbValue:h=>b[h],setThumbValue:y,setThumbPercent:O,isThumbDragging:h=>f[h],setThumbDragging:j,focusedThumb:w,setFocusedThumb:H,getThumbPercent:h=>_(b[h]),getValuePercent:_,getThumbValueLabel:h=>P(b[h]),getFormattedValue:P,getThumbMinValue:W,getThumbMaxValue:J,getPercentValue:Q,isThumbEditable:I,setThumbEditable:R,incrementThumb:me,decrementThumb:x,step:i,pageSize:d,orientation:o,isDisabled:t}}function at(a,t,n){return a[t]===n?a:[...a.slice(0,t),n,...a.slice(t+1)]}function nt(a){if(a!=null)return Array.isArray(a)?a:[a]}function rt(a,t,n){return l=>{n?.(typeof a=="number"||typeof t=="number"?l[0]:l)}}const g0=e.createContext(null),we=e.createContext(null),We=e.createContext(null),St=e.createContext(null),x0=e.forwardRef(function(t,n){[t,n]=ge(t,n,g0);let l=e.useRef(null),s=da(t.formatOptions),i=p0({...t,numberFormatter:s}),[o,d]=gt(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:c,trackProps:u,labelProps:p,outputProps:m}=u0({...t,label:d},i,l),$=ee({...t,values:{orientation:i.orientation,isDisabled:i.isDisabled,state:i},defaultClassName:"react-aria-Slider"}),b=te(t,{global:!0});return delete b.id,V.createElement(xe,{values:[[we,i],[We,{...u,ref:l}],[St,m],[xt,{...p,ref:o}]]},V.createElement(Y.div,{...k(b,$,c),ref:n,slot:t.slot||void 0,"data-orientation":i.orientation,"data-disabled":i.isDisabled||void 0}))}),v0=e.forwardRef(function(t,n){[t,n]=ge(t,n,St);let{children:l,style:s,className:i,render:o,...d}=t,c=e.useContext(we),u=ee({className:i,style:s,children:l,render:o,defaultChildren:c.getFormattedValue(),defaultClassName:"react-aria-SliderOutput",values:{orientation:c.orientation,isDisabled:c.isDisabled,state:c}});return V.createElement(Y.output,{...d,...u,ref:n,"data-orientation":c.orientation||void 0,"data-disabled":c.isDisabled||void 0})}),$0=e.forwardRef(function(t,n){[t,n]=ge(t,n,We);let l=e.useContext(we),{onHoverStart:s,onHoverEnd:i,onHoverChange:o,...d}=t,{hoverProps:c,isHovered:u}=ve({onHoverStart:s,onHoverEnd:i,onHoverChange:o}),p=ee({...t,defaultClassName:"react-aria-SliderTrack",values:{orientation:l.orientation,isDisabled:l.isDisabled,isHovered:u,state:l}});return V.createElement(Y.div,{...k(d,c),...p,ref:n,"data-hovered":u||void 0,"data-orientation":l.orientation||void 0,"data-disabled":l.isDisabled||void 0})}),y0=e.forwardRef(function(t,n){let{inputRef:l=null}=t,s=e.useContext(we),{ref:i}=vt(We),{index:o=0}=t,d=e.useRef(null),c=l||d,[u,p]=gt(!t["aria-label"]&&!t["aria-labelledby"]),{thumbProps:m,inputProps:$,labelProps:b,isDragging:A,isFocused:g,isDisabled:f}=m0({...t,index:o,trackRef:i,inputRef:c,label:p},s),{focusProps:v,isFocusVisible:M}=Pe(),{hoverProps:w,isHovered:H}=ve(t),E=ee({...t,defaultClassName:"react-aria-SliderThumb",values:{state:s,isHovered:H,isDragging:A,isFocused:g,isFocusVisible:M,isDisabled:f}}),Z=te(t,{global:!0});return delete Z.id,V.createElement(Y.div,{...k(Z,m,w),...E,ref:n,style:{...m.style,...E.style},"data-hovered":H||void 0,"data-dragging":A||void 0,"data-focused":g||void 0,"data-focus-visible":M||void 0,"data-disabled":f||void 0},V.createElement(ua,null,V.createElement("input",{ref:c,...k($,v)})),V.createElement(xe,{values:[[xt,{...b,ref:u}]]},E.children))});function A0(a,t){let n=t?.isDisabled,[l,s]=e.useState(!1);return ma(()=>{if(a?.current&&!n){let i=()=>{if(a.current){let d=fa(a.current,{tabbable:!0});s(!!d.nextNode())}};i();let o=new MutationObserver(i);return o.observe(a.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{o.disconnect()}}}),n?!1:l}const E0=1500,lt=500;let ne={},M0=0,oe=!1,X=null,re=null;function Tt(a={}){let{delay:t=E0,closeDelay:n=lt}=a,{isOpen:l,open:s,close:i}=ha(a),[o,d]=e.useState(!1),c=e.useMemo(()=>`${++M0}`,[]),u=e.useRef(null),p=e.useRef(i),m=()=>{ne[c]=A},$=()=>{for(let f in ne)f!==c&&(ne[f](!0,!0),delete ne[f])},b=f=>{u.current&&clearTimeout(u.current),u.current=null,$(),m(),d(!!f),oe=!0,s(),X&&(clearTimeout(X),X=null),re&&(clearTimeout(re),re=null)},A=(f,v)=>{d(!!v),f||n<=0?(u.current&&clearTimeout(u.current),u.current=null,p.current()):u.current||(u.current=setTimeout(()=>{u.current=null,p.current()},n)),X&&(clearTimeout(X),X=null),oe&&(re&&clearTimeout(re),re=setTimeout(()=>{delete ne[c],re=null,oe=!1},Math.max(lt,n)))},g=()=>{$(),m(),!l&&!oe?(X&&clearTimeout(X),X=setTimeout(()=>{X=null,oe=!0,b(!1)},t)):l||b(!0)};return e.useEffect(()=>{p.current=i},[i]),e.useEffect(()=>()=>{u.current&&clearTimeout(u.current),ne[c]&&delete ne[c]},[c]),{isOpen:l,shouldSkipAnimation:o,open:f=>{!f&&t>0&&!u.current?g():b(oe)},close:A}}const Ct=new WeakMap;function Me(a,t,n){return a?(typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${Ct.get(a)}-${n}-${t}`):""}function V0(a,t,n){let{key:l,isDisabled:s,shouldSelectOnPressUp:i}=a,{selectionManager:o,selectedKey:d}=t,c=l===d,u=s||t.isDisabled||t.selectionManager.isDisabled(l),p=t.collection.getItem(l),{itemProps:m,isPressed:$}=ba({selectionManager:o,key:l,ref:n,isDisabled:u,shouldSelectOnPressUp:i??p?.props.href!=null,linkBehavior:"selection"}),b=Me(t,l,"tab"),A=Me(t,l,"tabpanel"),{tabIndex:g}=m,f=te(p?.props,{labelable:!0});delete f.id;let v=pa(p?.props),{focusableProps:M}=Ve({...p?.props,isDisabled:u},n);return{tabProps:k(f,M,v,m,{id:b,"aria-selected":c,"aria-disabled":u||void 0,"aria-controls":c?A:void 0,tabIndex:u?void 0:g,role:"tab"}),isSelected:c,isDisabled:u,isPressed:$}}function P0(a,t,n){let l=A0(n)?void 0:0;const s=Me(t,a.id??t?.selectedKey,"tabpanel"),i=$t({...a,id:s,"aria-labelledby":Me(t,t?.selectedKey,"tab")});return{tabPanelProps:k(i,{tabIndex:l,role:"tabpanel","aria-describedby":a["aria-describedby"],"aria-details":a["aria-details"]})}}class w0{constructor(t,n,l,s=new Set){this.collection=t,this.flipDirection=n==="rtl",this.disabledKeys=s,this.tabDirection=l==="horizontal"}getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}isDisabled(t){return this.disabledKeys.has(t)||!!this.collection.getItem(t)?.props?.isDisabled}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.isDisabled(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.isDisabled(t)&&(t=this.getPreviousKey(t)),t}getKeyAbove(t){return this.tabDirection?null:this.getPreviousKey(t)}getKeyBelow(t){return this.tabDirection?null:this.getNextKey(t)}getNextKey(t){let n=t;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n)&&n!==t);return n}getPreviousKey(t){let n=t;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n)&&n!==t);return n}}function Z0(a,t,n){let{orientation:l="horizontal",keyboardActivation:s="automatic"}=a,{collection:i,selectionManager:o,disabledKeys:d}=t,{direction:c}=ze(),u=e.useMemo(()=>new w0(i,c,l,d),[i,d,l,c]),{collectionProps:p}=ga({ref:n,selectionManager:o,keyboardDelegate:u,selectOnFocus:s==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),m=yt();Ct.set(t,m);let $=$t({...a,id:m});return{tabListProps:{...k(p,$),role:"tablist","aria-orientation":l,tabIndex:void 0}}}function j0(a){let[t,n]=pt(a.selectedKey,a.defaultSelectedKey??null,a.onSelectionChange),l=e.useMemo(()=>t!=null?[t]:[],[t]),{collection:s,disabledKeys:i,selectionManager:o}=o0({...a,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:l,onSelectionChange:c=>{if(c==="all")return;let u=c.values().next().value??null;u===t&&a.onSelectionChange&&a.onSelectionChange(u),n(u)}}),d=t!=null?s.getItem(t):null;return{collection:s,disabledKeys:i,selectionManager:o,selectedKey:t,setSelectedKey:n,selectedItem:d}}function L0(a){let t=j0({...a,onSelectionChange:a.onSelectionChange?o=>{o!=null&&a.onSelectionChange?.(o)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:a.defaultSelectedKey??st(a.collection,a.disabledKeys?new Set(a.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:l,selectedKey:s}=t,i=e.useRef(s);return e.useEffect(()=>{let o=s;a.selectedKey==null&&(n.isEmpty||o==null||!l.getItem(o))&&(o=st(l,t.disabledKeys),o!=null&&n.setSelectedKeys([o])),(o!=null&&n.focusedKey==null||!n.isFocused&&o!==i.current)&&n.setFocusedKey(o),i.current=o}),{...t,isDisabled:a.isDisabled||!1}}function st(a,t){let n=null;if(a){for(n=a.getFirstKey();n!=null&&(t.has(n)||a.getItem(n)?.props?.isDisabled)&&n!==a.getLastKey();)n=a.getKeyAfter(n);n!=null&&(t.has(n)||a.getItem(n)?.props?.isDisabled)&&n===a.getLastKey()&&(n=a.getFirstKey())}return n}const Ze=e.createContext(null),se=e.createContext(null),H0=e.forwardRef(function(t,n){[t,n]=ge(t,n,Ze);let{children:l,orientation:s="horizontal"}=t;return l=e.useMemo(()=>typeof l=="function"?l({orientation:s,defaultChildren:null}):l,[l,s]),V.createElement(xa,{content:l},i=>V.createElement(S0,{props:t,collection:i,tabsRef:n}))});function S0({props:a,tabsRef:t,collection:n}){let{orientation:l="horizontal"}=a,s=L0({...a,collection:n,children:void 0}),{focusProps:i,isFocused:o,isFocusVisible:d}=Pe({within:!0}),c=e.useMemo(()=>({orientation:l,isFocusWithin:o,isFocusVisible:d}),[l,o,d]),u=ee({...a,defaultClassName:"react-aria-Tabs",values:c}),p=te(a,{global:!0});return V.createElement(Y.div,{...k(p,u,i),ref:t,slot:a.slot||void 0,"data-focused":o||void 0,"data-orientation":l,"data-focus-visible":d||void 0,"data-disabled":s.isDisabled||void 0},V.createElement(xe,{values:[[Ze,a],[se,s]]},u.children))}const it=e.forwardRef(function(t,n){return e.useContext(se)?V.createElement(T0,{props:t,forwardedRef:n}):V.createElement(Aa,t)});function T0({props:a,forwardedRef:t}){let n=e.useContext(se),{CollectionRoot:l}=e.useContext(Mt),{orientation:s="horizontal",keyboardActivation:i="automatic"}=vt(Ze),o=Be(t),{tabListProps:d}=Z0({...a,orientation:s,keyboardActivation:i},n,o),c=ee({...a,children:null,defaultClassName:"react-aria-TabList",values:{orientation:s,state:n}}),u=te(a,{global:!0});return delete u.id,V.createElement(Y.div,{...k(u,c,d),ref:o,"data-orientation":s||void 0},V.createElement(Va,null,V.createElement(l,{collection:n.collection,persistedKeys:Pa(n.selectionManager.focusedKey)})))}class C0 extends Ma{static{this.type="item"}}const F0=$a(C0,(a,t,n)=>{let l=e.useContext(se),s=Be(t),{tabProps:i,isSelected:o,isDisabled:d,isPressed:c}=V0({key:n.key,...a},l,s),{focusProps:u,isFocused:p,isFocusVisible:m}=Pe(),{hoverProps:$,isHovered:b}=ve({isDisabled:d,onHoverStart:a.onHoverStart,onHoverEnd:a.onHoverEnd,onHoverChange:a.onHoverChange}),A=ee({...a,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:o,isDisabled:d,isFocused:p,isFocusVisible:m,isPressed:c,isHovered:b}}),g=n.props.href?Y.a:Y.div,f=te(a,{global:!0});return delete f.id,delete f.onClick,V.createElement(g,{...k(f,A,i,u,$),ref:s,"data-selected":o||void 0,"data-disabled":d||void 0,"data-focused":p||void 0,"data-focus-visible":m||void 0,"data-pressed":c||void 0,"data-hovered":b||void 0},V.createElement(ya.Provider,{value:{isSelected:o}},A.children))}),k0=va(function(t,n){const l=e.useContext(se);let s=Be(n),i=l.selectedKey===t.id,[o,d]=e.useState(l.selectedKey!=null?i:null);o==null&&l.selectedKey!=null?d(i):!i&&o&&d(!1);let c=At(s,i);return!i&&!t.shouldForceMount&&!c?null:V.createElement(N0,{...t,tabPanelRef:s,isInitiallySelected:o||!1,isExiting:c})});function N0(a){let t=e.useContext(se),{id:n,tabPanelRef:l,isInitiallySelected:s,isExiting:i,...o}=a,{tabPanelProps:d}=P0(a,t,l),{focusProps:c,isFocused:u,isFocusVisible:p}=Pe(),m=t.selectedKey===a.id,$=Et(l)&&!s,b=ee({...a,defaultClassName:"react-aria-TabPanel",values:{isFocused:u,isFocusVisible:p,isInert:Je(!m),isEntering:$,isExiting:i,state:t}}),A=te(o,{global:!0});delete A.id;let g=m?k(A,d,c,b):k(A,b);return V.createElement(Y.div,{...g,ref:l,"data-focused":u||void 0,"data-focus-visible":p||void 0,inert:Je(!m||a.inert),"data-inert":m?void 0:"true","data-entering":$||void 0,"data-exiting":i||void 0},V.createElement(xe,{values:[[Ze,null],[se,null]]},V.createElement(Mt.Provider,{value:Ea},b.children)))}const Ne=V.createContext(null);function R0(a){let{children:t}=a,n=e.useContext(Ne),[l,s]=e.useState(0),i=e.useMemo(()=>({parent:n,modalCount:l,addModal(){s(o=>o+1),n&&n.addModal()},removeModal(){s(o=>o-1),n&&n.removeModal()}}),[n,l]);return V.createElement(Ne.Provider,{value:i},t)}function D0(){let a=e.useContext(Ne);return{modalProviderProps:{"aria-hidden":a&&a.modalCount>0?!0:void 0}}}function K0(a){let{modalProviderProps:t}=D0();return V.createElement("div",{"data-overlay-container":!0,...a,...t})}function I0(a){return V.createElement(R0,null,V.createElement(K0,a))}function O0(a){let t=wa(),{portalContainer:n=t?null:document.body,...l}=a,{getContainer:s}=Za();if(!a.portalContainer&&s&&(n=s()),V.useEffect(()=>{if(n?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let i=V.createElement(I0,l);return ja.createPortal(i,n)}function z0(a,t){let n=te(a,{labelable:!0}),{hoverProps:l}=ve({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:k(n,l,{role:"tooltip"})}}function _0(a,t,n){let{isDisabled:l,trigger:s,shouldCloseOnPress:i=!0}=a,o=yt(),d=e.useRef(!1),c=e.useRef(!1),u=()=>{(d.current||c.current)&&t.open(c.current)},p=M=>{!d.current&&!c.current&&t.close(M)};e.useEffect(()=>{let M=w=>{n&&n.current&&w.key==="Escape"&&(w.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",M,!0),()=>{document.removeEventListener("keydown",M,!0)}},[n,t]);let m=()=>{s!=="focus"&&(La()==="pointer"?d.current=!0:d.current=!1,u())},$=()=>{s!=="focus"&&(c.current=!1,d.current=!1,p())},b=()=>{i&&(c.current=!1,d.current=!1,p(!0))},A=()=>{Ha()&&(c.current=!0,u())},g=()=>{c.current=!1,d.current=!1,p(!0)},{hoverProps:f}=ve({isDisabled:l,onHoverStart:m,onHoverEnd:$}),{focusableProps:v}=Ve({isDisabled:l,onFocus:A,onBlur:g},n);return{triggerProps:{"aria-describedby":t.isOpen?o:void 0,...k(v,f,{onPointerDown:b,onKeyDown:b}),tabIndex:void 0},tooltipProps:{id:o}}}const pe=e.createContext(null),Ft=e.createContext(null);function B0(a){let t=Tt(a),n=e.useRef(null),{triggerProps:l,tooltipProps:s}=_0(a,t,n);return V.createElement(xe,{values:[[pe,t],[Ft,{...s,triggerRef:n}]]},V.createElement(Sa,{...l,ref:n},a.children))}const U0=e.forwardRef(function({UNSTABLE_portalContainer:t,...n},l){[n,l]=ge(n,l,Ft);let s=e.useContext(pe),i=Tt(n),o=n.isOpen!=null||n.defaultOpen!=null||!s?i:s,d=At(l,o.isOpen),c=n.isExiting||!o.shouldSkipAnimation&&d||!1;return!o.isOpen&&!c?null:V.createElement(O0,{portalContainer:t},V.createElement(W0,{...n,tooltipRef:l,isExiting:c}))});function W0(a){let t=e.useContext(pe),n=e.useRef(null),{overlayProps:l,arrowProps:s,placement:i,triggerAnchorPoint:o}=Ta({placement:a.placement||"top",targetRef:a.triggerRef,overlayRef:a.tooltipRef,arrowRef:n,offset:a.offset,crossOffset:a.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:a.arrowBoundaryOffset,shouldFlip:a.shouldFlip,containerPadding:a.containerPadding,onClose:()=>t.close(!0)}),d=Et(a.tooltipRef,!!i),c=a.isEntering||!t.shouldSkipAnimation&&d||!1,u=ee({...a,defaultClassName:"react-aria-Tooltip",values:{placement:i,isEntering:c,isExiting:a.isExiting,state:t}});a=k(a,l);let{tooltipProps:p}=z0(a,t),m=te(a,{global:!0});return V.createElement(Y.div,{...k(m,u,p),ref:a.tooltipRef,style:{...l.style,"--trigger-anchor-point":o?`${o.x}px ${o.y}px`:void 0,...u.style},"data-placement":i??void 0,"data-entering":c||void 0,"data-exiting":a.isExiting||void 0},V.createElement(Ca.Provider,{value:{...s,placement:i,ref:n}},u.children))}const je=e.createContext({}),Re=({children:a,className:t,color:n,size:l,...s})=>{const i=V.useMemo(()=>a0({color:n,size:l}),[n,l]);return r.jsx(Fa,{"data-slot":"progress-bar",...s,className:U(t,i.base()),children:o=>r.jsx(je,{value:{slots:i,state:o},children:typeof a=="function"?a(o):a})})};Re.displayName="HeroUI.ProgressBar";const kt=({children:a,className:t,...n})=>{const{slots:l,state:s}=e.use(je);return r.jsx(G.span,{className:z(l?.output,t),"data-slot":"progress-bar-output",...n,children:a??s?.valueText})};kt.displayName="HeroUI.ProgressBar.Output";const Nt=({children:a,className:t,...n})=>{const{slots:l}=e.use(je);return r.jsx(G.div,{className:z(l?.track,t),"data-slot":"progress-bar-track",...n,children:a})};Nt.displayName="HeroUI.ProgressBar.Track";const Rt=({className:a,style:t,...n})=>{const{slots:l,state:s}=e.use(je);return r.jsx(G.div,{className:z(l?.fill,a),"data-slot":"progress-bar-fill",style:{...t,width:s?.isIndeterminate?void 0:`${s?.percentage??0}%`},...n})};Rt.displayName="HeroUI.ProgressBar.Fill";const Se=Object.assign(Re,{Root:Re,Output:kt,Track:Nt,Fill:Rt}),q0=a=>{const{containerRef:t,isEnabled:n,offset:l,onVisibilityChange:s,orientation:i,visibility:o}=a,d=e.useRef(s);e.useEffect(()=>{d.current=s},[s]);const c=e.useRef(null),u=e.useRef(null),p=e.useCallback(()=>{const m=t.current;if(!m)return;const $=i==="vertical",b=$?m.scrollTop:Math.abs(m.scrollLeft),A=$?m.scrollHeight:m.scrollWidth,g=$?m.clientHeight:m.clientWidth,f=b>l,v=b+g+l<A-1,M=c.current;M&&M.hasScrollBefore===f&&M.hasScrollAfter===v||(c.current={hasScrollBefore:f,hasScrollAfter:v},u.current!==null&&cancelAnimationFrame(u.current),u.current=requestAnimationFrame(()=>{u.current=null;const w=d.current;$?f&&v?(m.dataset.topBottomScroll="true",delete m.dataset.topScroll,delete m.dataset.bottomScroll,w?.("both")):(m.dataset.topScroll=String(f),m.dataset.bottomScroll=String(v),delete m.dataset.topBottomScroll,w&&w(f?"top":v?"bottom":"none")):f&&v?(m.dataset.leftRightScroll="true",delete m.dataset.leftScroll,delete m.dataset.rightScroll,w?.("both")):(m.dataset.leftScroll=String(f),m.dataset.rightScroll=String(v),delete m.dataset.leftRightScroll,w&&w(f?"left":v?"right":"none"))}))},[t,i,l]);e.useEffect(()=>{const m=t.current;if(!m||!n||o!=="auto")return;p(),m.addEventListener("scroll",p,{passive:!0});const $=new ResizeObserver(p);$.observe(m);const b=new MutationObserver(p);return b.observe(m,{attributeFilter:["class","style"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>{m.removeEventListener("scroll",p),$.disconnect(),b.disconnect(),u.current!==null&&(cancelAnimationFrame(u.current),u.current=null),c.current=null}},[t,o,n,p])},De=({children:a,className:t,hideScrollBar:n=!1,isEnabled:l=!0,offset:s=0,onVisibilityChange:i,orientation:o="vertical",ref:d,size:c=40,style:u,variant:p="fade",visibility:m="auto",...$})=>{const b=e.useRef(null);q0({containerRef:b,isEnabled:l,offset:s,onVisibilityChange:i,orientation:o,visibility:m}),ka(()=>{const v=b.current;!v||m==="auto"||(delete v.dataset.topScroll,delete v.dataset.bottomScroll,delete v.dataset.topBottomScroll,delete v.dataset.leftScroll,delete v.dataset.rightScroll,delete v.dataset.leftRightScroll,m==="both"?v.dataset[o==="vertical"?"topBottomScroll":"leftRightScroll"]="true":m!=="none"&&(v.dataset[`${m}Scroll`]="true"))},[m,o]);const A=e.useMemo(()=>n0({hideScrollBar:n,orientation:o,variant:p}),[o,n,p]),g={"--scroll-shadow-size":`${c}px`,"--scroll-shadow-offset":`${s}px`,...u},f=e.useMemo(()=>Na(b,d),[b,d]);return r.jsx("div",{ref:f,className:A.base({className:t}),"data-orientation":o,"data-scroll-shadow-mode":l&&m==="auto"?"auto":"manual","data-scroll-shadow-size":c,"data-slot":"scroll-shadow",style:g,...$,children:a})};De.displayName="HeroUI.ScrollShadow";const X0=Object.assign(De,{Root:De}),de=e.createContext({}),ot=({children:a,className:t,orientation:n="horizontal",...l})=>{const s=V.useMemo(()=>r0({}),[]);return r.jsx(x0,{"data-slot":"slider",orientation:n,...l,className:U(t,s.base()),children:i=>r.jsx(de,{value:{slots:s,state:i},children:typeof a=="function"?a(i):a})})},Y0=({children:a,className:t,...n})=>{const{slots:l}=e.use(de);return r.jsx(v0,{className:U(t,l?.output()),"data-slot":"slider-output",...n,children:a?s=>r.jsx(r.Fragment,{children:typeof a=="function"?a(s):a}):({state:s})=>s.values.map((i,o)=>s.getThumbValueLabel(o)).join(" – ")})},G0=({children:a,className:t,...n})=>{const{slots:l,state:s}=e.use(de),{getThumbPercent:i,values:o}=s?.state||{},d=o?.length&&o.length===1,[c,u]=[o?.length&&o.length>1?i?.(0):0,i?.(o?.length?o.length-1:0)].sort(),p=(u-c)*100;return r.jsx($0,{className:U(t,l?.track()),"data-disabled":ce(s?.isDisabled),"data-slot":"slider-track",...d?{"data-fill-start":ce(p>0),"data-fill-end":ce(p==100)}:{"data-fill-start":ce(c==0),"data-fill-end":ce(c*100+p==100)},...n,children:m=>r.jsx(r.Fragment,{children:typeof a=="function"?a(m):a})})},J0=({className:a,style:t,...n})=>{const{slots:l,state:s}=e.use(de),{getThumbPercent:i,orientation:o,values:d}=s?.state||{},[c,u]=[d?.length&&d.length>1?i?.(0):0,i?.(d?.length?d.length-1:0)].sort(),p=o==="vertical";return r.jsx(G.div,{className:z(l?.fill,a),"data-disabled":ce(s?.isDisabled),"data-slot":"slider-fill",style:{...t,[p?"bottom":"left"]:`${c*100}%`,...p?{height:`${(u-c)*100}%`}:{width:`${(u-c)*100}%`}},...n})},Q0=({children:a,className:t,...n})=>{const{slots:l}=e.use(de);return r.jsx(y0,{className:U(t,l?.thumb()),"data-slot":"slider-thumb",...n,children:s=>r.jsx(r.Fragment,{children:typeof a=="function"?a(s):a})})},e1=({className:a,...t})=>{const{slots:n}=e.use(de);return r.jsx(G.div,{className:z(n?.marks,a),"data-slot":"slider-marks",...t})},ye=Object.assign(ot,{Root:ot,Output:Y0,Track:G0,Fill:J0,Thumb:Q0,Marks:e1}),ue=e.createContext({}),Dt=za("tabs.listContainer"),ct=({align:a,children:t,className:n,orientation:l="horizontal",variant:s,...i})=>{const o=V.useMemo(()=>l0({align:a,variant:s}),[a,s]),d=V.useMemo(()=>({orientation:l,slots:o}),[l,o]);return r.jsx(ue,{value:d,children:r.jsx(H0,{...i,className:U(n,o.base()),"data-slot":"tabs",orientation:l,children:t})})},t1=({children:a,className:t,render:n,...l})=>r.jsx(Dt.Injector,{...l,className:t,render:n,children:a}),a1=({children:a,className:t,...n})=>{const{orientation:l="horizontal",slots:s}=e.use(ue),i=e.useRef(null),o=l==="vertical",[d,c]=Dt.useSlot(n),u=e.useCallback(b=>{const A=i.current;if(!A)return;const g=o?A.clientHeight:A.clientWidth,f=o?A.scrollHeight:A.scrollWidth,v=Math.max(0,f-g),M=!o&&getComputedStyle(A).direction==="rtl",w=b*g*.8*(M?-1:1),H=o?A.scrollTop:A.scrollLeft,E=Math.min(M?0:v,Math.max(M?-v:0,H+w));E!==H&&A.scrollTo({behavior:"smooth",[o?"top":"left"]:E})},[o]);if(!d)return r.jsx(it,{...c,className:U(t,s?.tabList()),"data-slot":"tabs-list",children:a});const{className:p,render:m,...$}=d;return r.jsx(it,{...c,className:U(t,s?.tabList()),"data-slot":"tabs-list",render:b=>{const{children:A,className:g,ref:f,...v}=b;return r.jsxs(G.div,{className:z(s?.tabListContainer,p),"data-slot":"tabs-list-container",render:m,...$,children:[r.jsx(X0,{ref:i,hideScrollBar:!0,className:z(s?.scroller),orientation:l,size:64,children:r.jsx("div",{...v,ref:f,className:g,children:A})}),r.jsx("button",{"aria-label":o?"Scroll tabs up":"Scroll tabs left",className:z(s?.scrollPrev),tabIndex:-1,type:"button",onClick:()=>u(-1),children:o?r.jsx(Da,{}):r.jsx(Ka,{})}),r.jsx("button",{"aria-label":o?"Scroll tabs down":"Scroll tabs right",className:z(s?.scrollNext),tabIndex:-1,type:"button",onClick:()=>u(1),children:o?r.jsx(Ia,{}):r.jsx(Oa,{})})]})},children:a})},n1=({children:a,className:t,...n})=>{const{slots:l}=e.use(ue);return r.jsx(F0,{...n,className:U(t,l?.tab()),"data-slot":"tabs-tab",children:a})},r1=({className:a,...t})=>{const{slots:n}=e.use(ue);return r.jsx(Ra,{className:z(n?.tabIndicator,a),"data-slot":"tabs-indicator",...t})},l1=({children:a,className:t,...n})=>{const{slots:l}=e.use(ue);return r.jsx(k0,{...n,className:U(t,l?.tabPanel()),"data-slot":"tabs-panel",children:a})},s1=({className:a,...t})=>{const{slots:n}=e.use(ue);return r.jsx(G.span,{"aria-hidden":"true",className:z(n?.separator,a),"data-slot":"tabs-separator",...t})},B=Object.assign(ct,{Root:ct,ListContainer:t1,List:a1,Tab:n1,Indicator:r1,Separator:s1,Panel:l1}),dt=({className:a,fullWidth:t,variant:n,...l})=>{const s=e.use(_a),i=n??s?.variant;return r.jsx(Ba,{"data-slot":"textarea",className:U(a,s0({fullWidth:t,variant:i})),...l})},i1=Object.assign(dt,{Root:dt}),ut=a=>{if(!a)return;const t=a.trim(),n=parseFloat(t);if(!Number.isNaN(n))return t.endsWith("ms")?n:t.endsWith("s")?n*1e3:n},qe=e.createContext({}),o1=({children:a,shouldSkipAnimation:t})=>{const n=e.use(pe);return!n||t?a:r.jsx(pe,{value:{...n,shouldSkipAnimation:!1},children:a})},mt=({children:a,closeDelay:t,delay:n,shouldSkipAnimation:l=!1,...s})=>{const i=V.useMemo(()=>i0(),[]),o=Qe("--tooltip-delay"),d=Qe("--tooltip-close-delay"),c=n??ut(o),u=t??ut(d),p=V.useMemo(()=>({slots:i}),[i]);return r.jsx(qe,{value:p,children:r.jsx(B0,{closeDelay:u,"data-slot":"tooltip-root",delay:c,...s,children:r.jsx(o1,{shouldSkipAnimation:l,children:a})})})},c1=({children:a,className:t,offset:n,showArrow:l=!1,...s})=>{const{slots:i}=e.use(qe),o=n||(l?7:3);return r.jsx(U0,{...s,className:U(t,i?.base()),offset:o,children:a})},d1=({children:a,className:t,...n})=>{const l=r.jsx("svg",{"data-slot":"overlay-arrow",fill:"none",height:"12",viewBox:"0 0 12 12",width:"12",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M0 0C5.48483 8 6.5 8 12 0Z"})}),s=V.isValidElement(a)?V.cloneElement(a,{"data-slot":"overlay-arrow"}):l;return r.jsx(Ua,{"data-slot":"tooltip-arrow",...n,className:t,children:s})},u1=({children:a,className:t,...n})=>{const{slots:l}=e.use(qe),s=e.useRef(null),{focusableProps:i}=Ve({},s);return r.jsx(G.div,{ref:s,className:z(l?.trigger,t),"data-slot":"tooltip-trigger",role:"button",...k(i,n),children:a})},ft=Object.assign(mt,{Root:mt,Trigger:u1,Content:c1,Arrow:d1}),m1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),e.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z"}))]]),f1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M228,128a100,100,0,0,1-98.66,100H128a99.39,99.39,0,0,1-68.62-27.29,12,12,0,0,1,16.48-17.45,76,76,0,1,0-1.57-109c-.13.13-.25.25-.39.37L54.89,92H72a12,12,0,0,1,0,24H24a12,12,0,0,1-12-12V56a12,12,0,0,1,24,0V76.72L57.48,57.06A100,100,0,0,1,228,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),e.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L60.63,81.29l17,17A8,8,0,0,1,72,112H24a8,8,0,0,1-8-8V56A8,8,0,0,1,29.66,50.3L49.31,70,60.25,60A96,96,0,0,1,224,128Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M222,128a94,94,0,0,1-92.74,94H128a93.43,93.43,0,0,1-64.5-25.65,6,6,0,1,1,8.24-8.72A82,82,0,1,0,70,70l-.19.19L39.44,98H72a6,6,0,0,1,0,12H24a6,6,0,0,1-6-6V56a6,6,0,0,1,12,0V90.34L61.63,61.4A94,94,0,0,1,222,128Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M220,128a92,92,0,0,1-90.77,92H128a91.47,91.47,0,0,1-63.13-25.1,4,4,0,1,1,5.5-5.82A84,84,0,1,0,68.6,68.57l-.13.12L34.3,100H72a4,4,0,0,1,0,8H24a4,4,0,0,1-4-4V56a4,4,0,0,1,8,0V94.89l35-32A92,92,0,0,1,220,128Z"}))]]),h1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M220,48V96a12,12,0,0,1-24,0V77l-35.51,35.52a12,12,0,0,1-17-17L179,60H160a12,12,0,0,1,0-24h48A12,12,0,0,1,220,48ZM95.51,143.51,60,179V160a12,12,0,0,0-24,0v48a12,12,0,0,0,12,12H96a12,12,0,0,0,0-24H77l35.52-35.51a12,12,0,0,0-17-17ZM208,148a12,12,0,0,0-12,12v19l-35.51-35.52a12,12,0,0,0-17,17L179,196H160a12,12,0,0,0,0,24h48a12,12,0,0,0,12-12V160A12,12,0,0,0,208,148ZM77,60H96a12,12,0,0,0,0-24H48A12,12,0,0,0,36,48V96a12,12,0,0,0,24,0V77l35.51,35.52a12,12,0,0,0,17-17Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M208,48V208H48V48Z",opacity:"0.2"}),e.createElement("path",{d:"M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M109.66,146.34a8,8,0,0,1,0,11.32L83.31,184l18.35,18.34A8,8,0,0,1,96,216H48a8,8,0,0,1-8-8V160a8,8,0,0,1,13.66-5.66L72,172.69l26.34-26.35A8,8,0,0,1,109.66,146.34ZM83.31,72l18.35-18.34A8,8,0,0,0,96,40H48a8,8,0,0,0-8,8V96a8,8,0,0,0,13.66,5.66L72,83.31l26.34,26.35a8,8,0,0,0,11.32-11.32ZM208,40H160a8,8,0,0,0-5.66,13.66L172.69,72,146.34,98.34a8,8,0,0,0,11.32,11.32L184,83.31l18.34,18.35A8,8,0,0,0,216,96V48A8,8,0,0,0,208,40Zm3.06,112.61a8,8,0,0,0-8.72,1.73L184,172.69l-26.34-26.35a8,8,0,0,0-11.32,11.32L172.69,184l-18.35,18.34A8,8,0,0,0,160,216h48a8,8,0,0,0,8-8V160A8,8,0,0,0,211.06,152.61Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M214,48V96a6,6,0,0,1-12,0V62.48l-45.76,45.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM99.76,147.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l45.76-45.76a6,6,0,0,0-8.48-8.48ZM208,154a6,6,0,0,0-6,6v33.52l-45.76-45.76a6,6,0,0,0-8.48,8.48L193.52,202H160a6,6,0,0,0,0,12h48a6,6,0,0,0,6-6V160A6,6,0,0,0,208,154ZM62.48,54H96a6,6,0,0,0,0-12H48a6,6,0,0,0-6,6V96a6,6,0,0,0,12,0V62.48l45.76,45.76a6,6,0,0,0,8.48-8.48Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M212,48V96a4,4,0,0,1-8,0V57.66l-49.17,49.17a4,4,0,0,1-5.66-5.66L198.34,52H160a4,4,0,0,1,0-8h48A4,4,0,0,1,212,48ZM101.17,149.17,52,198.34V160a4,4,0,0,0-8,0v48a4,4,0,0,0,4,4H96a4,4,0,0,0,0-8H57.66l49.17-49.17a4,4,0,0,0-5.66-5.66ZM208,156a4,4,0,0,0-4,4v38.34l-49.17-49.17a4,4,0,0,0-5.66,5.66L198.34,204H160a4,4,0,0,0,0,8h48a4,4,0,0,0,4-4V160A4,4,0,0,0,208,156ZM57.66,52H96a4,4,0,0,0,0-8H48a4,4,0,0,0-4,4V96a4,4,0,0,0,8,0V57.66l49.17,49.17a4,4,0,0,0,5.66-5.66Z"}))]]),b1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),e.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),p1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),e.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),g1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,20A108,108,0,0,0,31.85,177.23L21,209.66A20,20,0,0,0,46.34,235l32.43-10.81A108,108,0,1,0,128,20Zm0,192a84,84,0,0,1-42.06-11.27,12,12,0,0,0-6-1.62,12.1,12.1,0,0,0-3.8.62l-29.79,9.93,9.93-29.79a12,12,0,0,0-1-9.81A84,84,0,1,1,128,212Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),e.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M232,128A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,26A102,102,0,0,0,38.35,176.69L26.73,211.56a14,14,0,0,0,17.71,17.71l34.87-11.62A102,102,0,1,0,128,26Zm0,192a90,90,0,0,1-45.06-12.08,6.09,6.09,0,0,0-3-.81,6.2,6.2,0,0,0-1.9.31L40.65,217.88a2,2,0,0,1-2.53-2.53L50.58,178a6,6,0,0,0-.5-4.91A90,90,0,1,1,128,218Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,28A100,100,0,0,0,40.53,176.5l-11.9,35.69a12,12,0,0,0,15.18,15.18l35.69-11.9A100,100,0,1,0,128,28Zm0,192a92,92,0,0,1-46.07-12.35,4.05,4.05,0,0,0-2-.54,3.93,3.93,0,0,0-1.27.21L41.28,219.78a4,4,0,0,1-5.06-5.06l12.46-37.38a4,4,0,0,0-.33-3.27A92,92,0,1,1,128,220Z"}))]]),x1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),e.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"}))]]),v1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,44H32A20,20,0,0,0,12,64V192a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V64A20,20,0,0,0,224,44Zm-4,144H36V68H220ZM52,128a44,44,0,0,1,66-38.11,12,12,0,0,1-12,20.78,20,20,0,1,0,0,34.66,12,12,0,1,1,12,20.77A44,44,0,0,1,52,128Zm80,0a44,44,0,0,1,66-38.11,12,12,0,0,1-12,20.78,20,20,0,1,0,0,34.66,12,12,0,1,1,12,20.77A44,44,0,0,1,132,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M232,64V192a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H224A8,8,0,0,1,232,64Z",opacity:"0.2"}),e.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,144H32V64H224V192ZM118.93,151.71A8,8,0,0,1,116,162.64a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58A8,8,0,0,1,118.93,151.71Zm80,0A8,8,0,0,1,196,162.64a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58A8,8,0,0,1,198.93,151.71Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM116,162.64a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58,8,8,0,0,1,8,13.85Zm80,0a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58,8,8,0,0,1,8,13.85Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,50H32A14,14,0,0,0,18,64V192a14,14,0,0,0,14,14H224a14,14,0,0,0,14-14V64A14,14,0,0,0,224,50Zm2,142a2,2,0,0,1-2,2H32a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H224a2,2,0,0,1,2,2ZM117.19,152.71a6,6,0,0,1-2.19,8.2,38,38,0,1,1,0-65.82,6,6,0,1,1-6,10.38,26,26,0,1,0,0,45.05A6,6,0,0,1,117.19,152.71Zm80,0a6,6,0,0,1-2.19,8.2,38,38,0,1,1,0-65.82,6,6,0,1,1-6,10.38,26,26,0,1,0,0,45.05A6,6,0,0,1,197.19,152.71Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,144H32V64H224V192ZM118.92,151.71A8,8,0,0,1,116,162.64a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58A8,8,0,0,1,118.92,151.71Zm80,0A8,8,0,0,1,196,162.64a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58A8,8,0,0,1,198.92,151.71Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,52H32A12,12,0,0,0,20,64V192a12,12,0,0,0,12,12H224a12,12,0,0,0,12-12V64A12,12,0,0,0,224,52Zm4,140a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H224a4,4,0,0,1,4,4ZM115.46,153.71a4,4,0,0,1-1.46,5.47,36,36,0,1,1,0-62.36,4,4,0,0,1-4,6.92,28,28,0,1,0,0,48.52A4,4,0,0,1,115.46,153.71Zm80,0a4,4,0,0,1-1.46,5.47,36,36,0,1,1,0-62.36,4,4,0,0,1-4,6.92,28,28,0,1,0,0,48.52A4,4,0,0,1,195.46,153.71Z"}))]]),$1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M246.81,111.29,158.63,55.12A19.91,19.91,0,0,0,128,71.84v30L54.63,55.12A19.91,19.91,0,0,0,24,71.84V184.16a19.93,19.93,0,0,0,30.63,16.72L128,154.15v30a19.93,19.93,0,0,0,30.63,16.72l88.18-56.17a19.79,19.79,0,0,0,0-33.42ZM48,176.64V79.36L124.38,128Zm104,0V79.36L228.38,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M144,128a7.76,7.76,0,0,1-3.63,6.59L52.18,190.74A7.91,7.91,0,0,1,40,184.15V71.85a7.91,7.91,0,0,1,12.18-6.59l88.19,56.15A7.76,7.76,0,0,1,144,128Zm100.37-6.59L156.18,65.26A7.91,7.91,0,0,0,144,71.85v112.3a7.91,7.91,0,0,0,12.18,6.59l88.19-56.15A7.8,7.8,0,0,0,244.37,121.41Z",opacity:"0.2"}),e.createElement("path",{d:"M248.67,114.66,160.48,58.5A15.91,15.91,0,0,0,136,71.84v37.3L56.48,58.5A15.91,15.91,0,0,0,32,71.84V184.16A15.92,15.92,0,0,0,56.48,197.5L136,146.86v37.3a15.92,15.92,0,0,0,24.48,13.34l88.19-56.16a15.8,15.8,0,0,0,0-26.68ZM48,183.94V72.07L135.82,128Zm104,0V72.07L239.82,128Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M256,128a15.76,15.76,0,0,1-7.33,13.34L160.48,197.5A15.91,15.91,0,0,1,136,184.16v-37.3L56.48,197.5A15.91,15.91,0,0,1,32,184.16V71.84A15.91,15.91,0,0,1,56.48,58.5L136,109.14V71.84A15.91,15.91,0,0,1,160.48,58.5l88.19,56.16A15.76,15.76,0,0,1,256,128Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M247.59,116.35,159.41,60.18a14,14,0,0,0-14.22-.46A13.83,13.83,0,0,0,138,71.84v41L55.41,60.18a14,14,0,0,0-14.22-.46A13.83,13.83,0,0,0,34,71.84V184.16a13.83,13.83,0,0,0,7.19,12.12,14,14,0,0,0,14.22-.46L138,143.21v40.95a13.83,13.83,0,0,0,7.19,12.12,14,14,0,0,0,14.22-.46l88.18-56.17a13.79,13.79,0,0,0,0-23.3ZM137.15,129.53,49,185.69a1.9,1.9,0,0,1-2,.06,1.73,1.73,0,0,1-1-1.59V71.84a1.73,1.73,0,0,1,1-1.59,2,2,0,0,1,1-.26,1.87,1.87,0,0,1,1,.32l88.19,56.16a1.8,1.8,0,0,1,0,3.06Zm104,0L153,185.69a1.9,1.9,0,0,1-2,.06,1.73,1.73,0,0,1-1-1.59V71.84a1.73,1.73,0,0,1,1-1.59,2,2,0,0,1,1-.26,1.87,1.87,0,0,1,1,.32l88.19,56.16a1.8,1.8,0,0,1,0,3.06Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M248.67,114.66,160.48,58.5A15.91,15.91,0,0,0,136,71.84v37.3L56.48,58.5A15.91,15.91,0,0,0,32,71.84V184.16A15.92,15.92,0,0,0,56.48,197.5L136,146.86v37.3a15.92,15.92,0,0,0,24.48,13.34l88.19-56.16a15.8,15.8,0,0,0,0-26.68ZM48,183.94V72.07L135.82,128Zm104,0V72.07L239.82,128Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M246.52,118,158.33,61.87a12,12,0,0,0-12.18-.39A11.66,11.66,0,0,0,140,71.84v44.59L54.33,61.87a12,12,0,0,0-12.18-.39A11.66,11.66,0,0,0,36,71.84V184.16a11.66,11.66,0,0,0,6.15,10.36,12,12,0,0,0,12.18-.39L140,139.57v44.59a11.66,11.66,0,0,0,6.15,10.36,12,12,0,0,0,12.18-.39L246.52,138a11.81,11.81,0,0,0,0-19.94Zm-108.3,13.19L50,187.38a3.91,3.91,0,0,1-4,.13,3.76,3.76,0,0,1-2-3.35V71.84a3.76,3.76,0,0,1,2-3.35,4,4,0,0,1,1.91-.5,3.94,3.94,0,0,1,2.13.63l88.18,56.16a3.8,3.8,0,0,1,0,6.44Zm104,0L154,187.38a3.91,3.91,0,0,1-4,.13,3.76,3.76,0,0,1-2-3.35V71.84a3.76,3.76,0,0,1,2-3.35,4,4,0,0,1,1.91-.5,3.94,3.94,0,0,1,2.13.63l88.18,56.16a3.8,3.8,0,0,1,0,6.44Z"}))]]),y1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M230.14,25.86a20,20,0,0,0-19.57-5.11l-.22.07L18.44,79a20,20,0,0,0-3.06,37.25L99,157l40.71,83.65a19.81,19.81,0,0,0,18,11.38c.57,0,1.15,0,1.73-.07A19.82,19.82,0,0,0,177,237.56L235.18,45.65a1.42,1.42,0,0,0,.07-.22A20,20,0,0,0,230.14,25.86ZM156.91,221.07l-34.37-70.64,46-45.95a12,12,0,0,0-17-17l-46,46L34.93,99.09,210,46Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M223.69,42.18l-58.22,192a8,8,0,0,1-14.92,1.25L108,148,20.58,105.45a8,8,0,0,1,1.25-14.92l192-58.22A8,8,0,0,1,223.69,42.18Z",opacity:"0.2"}),e.createElement("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M231.4,44.34s0,.1,0,.15l-58.2,191.94a15.88,15.88,0,0,1-14,11.51q-.69.06-1.38.06a15.86,15.86,0,0,1-14.42-9.15L107,164.15a4,4,0,0,1,.77-4.58l57.92-57.92a8,8,0,0,0-11.31-11.31L96.43,148.26a4,4,0,0,1-4.58.77L17.08,112.64a16,16,0,0,1,2.49-29.8l191.94-58.2.15,0A16,16,0,0,1,231.4,44.34Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M225.88,30.12a13.83,13.83,0,0,0-13.7-3.58l-.11,0L20.14,84.77A14,14,0,0,0,18,110.85l85.56,41.64L145.12,238a13.87,13.87,0,0,0,12.61,8c.4,0,.81,0,1.21-.05a13.9,13.9,0,0,0,12.29-10.09l58.2-191.93,0-.11A13.83,13.83,0,0,0,225.88,30.12Zm-8,10.4L159.73,232.43l0,.11a2,2,0,0,1-3.76.26l-40.68-83.58,49-49a6,6,0,1,0-8.49-8.49l-49,49L23.15,100a2,2,0,0,1,.31-3.74l.11,0L215.48,38.08a1.94,1.94,0,0,1,1.92.52A2,2,0,0,1,217.92,40.52Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224.47,31.52a11.87,11.87,0,0,0-11.82-3L20.74,86.67a12,12,0,0,0-1.91,22.38L105,151l41.92,86.15A11.88,11.88,0,0,0,157.74,244c.34,0,.69,0,1,0a11.89,11.89,0,0,0,10.52-8.63l58.21-192,0-.08A11.85,11.85,0,0,0,224.47,31.52Zm-4.62,9.54-58.23,192a4,4,0,0,1-7.48.59l-41.3-84.86,50-50a4,4,0,1,0-5.66-5.66l-50,50-84.9-41.31a3.88,3.88,0,0,1-2.27-4,3.93,3.93,0,0,1,3-3.54L214.9,36.16A3.93,3.93,0,0,1,216,36a4,4,0,0,1,2.79,1.19A3.93,3.93,0,0,1,219.85,41.06Z"}))]]),A1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M200,28H160a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28Zm-4,176H164V52h32ZM96,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H96a20,20,0,0,0,20-20V48A20,20,0,0,0,96,28ZM92,204H60V52H92Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M208,48V208a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,208,48ZM96,40H56a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z",opacity:"0.2"}),e.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M200,34H160a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,200,34Zm2,174a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM96,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H96a14,14,0,0,0,14-14V48A14,14,0,0,0,96,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H96a2,2,0,0,1,2,2Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M200,36H160a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm4,172a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM96,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4Z"}))]]),E1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,44H40A20,20,0,0,0,20,64V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V64A20,20,0,0,0,216,44ZM44,68H212v48H136a12,12,0,0,0-12,12v60H44ZM148,188V140h64v48Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,64v64H136v72H40a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H216A8,8,0,0,1,224,64Z",opacity:"0.2"}),e.createElement("path",{d:"M216,48H40A16,16,0,0,0,24,64V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,64H216v56H136a8,8,0,0,0-8,8v64H40ZM216,192H144V136h72v56Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,48H40A16,16,0,0,0,24,64V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48Zm0,144H136V128h80v64Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,50H40A14,14,0,0,0,26,64V192a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V64A14,14,0,0,0,216,50ZM38,192V64a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2v58H136a6,6,0,0,0-6,6v66H40A2,2,0,0,1,38,192Zm178,2H142V134h76v58A2,2,0,0,1,216,194Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,48H40A16,16,0,0,0,24,64V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,64H216v56H136a8,8,0,0,0-8,8v64H40ZM216,192H144V136h72v56Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,52H40A12,12,0,0,0,28,64V192a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V64A12,12,0,0,0,216,52ZM36,192V64a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4v60H136a4,4,0,0,0-4,4v68H40A4,4,0,0,1,36,192Zm180,4H140V132h80v60A4,4,0,0,1,216,196Z"}))]]),M1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z",opacity:"0.2"}),e.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z"}))]]),V1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M225.7,54.46a20,20,0,0,0-20.33.66L132,101.85v-30a19.91,19.91,0,0,0-30.63-16.72L13.19,111.29a19.79,19.79,0,0,0,0,33.42l88.18,56.17A19.91,19.91,0,0,0,132,184.16v-30l73.37,46.73A19.91,19.91,0,0,0,236,184.16V71.84A19.84,19.84,0,0,0,225.7,54.46ZM108,176.64,31.63,128,108,79.36Zm104,0L135.63,128,212,79.36Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,71.85v112.3a7.91,7.91,0,0,1-12.18,6.59l-88.19-56.15a7.8,7.8,0,0,1,0-13.18l88.19-56.15A7.91,7.91,0,0,1,224,71.85ZM107.82,65.26,19.63,121.41a7.8,7.8,0,0,0,0,13.18l88.19,56.15A7.91,7.91,0,0,0,120,184.15V71.85A7.91,7.91,0,0,0,107.82,65.26Z",opacity:"0.2"}),e.createElement("path",{d:"M223.77,58a16,16,0,0,0-16.25.53L128,109.14V71.84A15.91,15.91,0,0,0,103.52,58.5L15.33,114.66a15.8,15.8,0,0,0,0,26.68l88.19,56.16A15.91,15.91,0,0,0,128,184.16v-37.3l79.52,50.64A15.91,15.91,0,0,0,232,184.16V71.84A15.83,15.83,0,0,0,223.77,58ZM112,183.93,24.18,128,112,72.06Zm104,0L128.18,128,216,72.06Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M232,71.84V184.16a15.92,15.92,0,0,1-24.48,13.34L128,146.86v37.3a15.92,15.92,0,0,1-24.48,13.34L15.33,141.34a15.8,15.8,0,0,1,0-26.68L103.52,58.5A15.91,15.91,0,0,1,128,71.84v37.3L207.52,58.5A15.91,15.91,0,0,1,232,71.84Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M222.81,59.72a14,14,0,0,0-14.22.46L126,112.79V71.84a13.83,13.83,0,0,0-7.19-12.12,14,14,0,0,0-14.22.46L16.41,116.35a13.79,13.79,0,0,0,0,23.3l88.18,56.17a14,14,0,0,0,14.22.46A13.83,13.83,0,0,0,126,184.16V143.21l82.59,52.61a14,14,0,0,0,14.22.46A13.83,13.83,0,0,0,230,184.16V71.84A13.83,13.83,0,0,0,222.81,59.72ZM114,184.16a1.73,1.73,0,0,1-1,1.59,1.9,1.9,0,0,1-2-.06L22.85,129.53a1.8,1.8,0,0,1,0-3.06L111,70.31a1.87,1.87,0,0,1,1-.32,2,2,0,0,1,1,.26,1.73,1.73,0,0,1,1,1.59Zm104,0a1.73,1.73,0,0,1-1,1.59,1.9,1.9,0,0,1-2-.06l-88.19-56.16a1.8,1.8,0,0,1,0-3.06L215,70.31a1.87,1.87,0,0,1,1-.32,2,2,0,0,1,1,.26,1.73,1.73,0,0,1,1,1.59Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M223.77,58a16,16,0,0,0-16.25.53L128,109.14V71.84A15.91,15.91,0,0,0,103.52,58.5L15.33,114.66a15.8,15.8,0,0,0,0,26.68l88.19,56.16A15.91,15.91,0,0,0,128,184.16v-37.3l79.52,50.64A15.91,15.91,0,0,0,232,184.16V71.84A15.83,15.83,0,0,0,223.77,58ZM112,183.93,24.18,128,112,72.06Zm104,0L128.18,128,216,72.06Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M221.85,61.48a12,12,0,0,0-12.18.39L124,116.43V71.84a11.66,11.66,0,0,0-6.15-10.36,12,12,0,0,0-12.18.39L17.48,118a11.81,11.81,0,0,0,0,19.94l88.19,56.16a12,12,0,0,0,12.18.39A11.66,11.66,0,0,0,124,184.16V139.57l85.67,54.56a12,12,0,0,0,12.18.39A11.66,11.66,0,0,0,228,184.16V71.84A11.66,11.66,0,0,0,221.85,61.48ZM116,184.16a3.76,3.76,0,0,1-2,3.35,3.91,3.91,0,0,1-4-.13L21.78,131.22a3.8,3.8,0,0,1,0-6.44L110,68.62a3.94,3.94,0,0,1,2.13-.63,4,4,0,0,1,1.91.5,3.76,3.76,0,0,1,2,3.35Zm104,0a3.76,3.76,0,0,1-2,3.35,3.91,3.91,0,0,1-4-.13l-88.18-56.16a3.8,3.8,0,0,1,0-6.44L214,68.62a3.94,3.94,0,0,1,2.13-.63,4,4,0,0,1,1.91.5,3.76,3.76,0,0,1,2,3.35Z"}))]]),P1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M157.27,21.22a12,12,0,0,0-12.64,1.31L75.88,76H32A20,20,0,0,0,12,96v64a20,20,0,0,0,20,20H75.88l68.75,53.47A12,12,0,0,0,164,224V32A12,12,0,0,0,157.27,21.22ZM36,100H68v56H36Zm104,99.46L92,162.13V93.87l48-37.33ZM212,128a44,44,0,0,1-11,29.11,12,12,0,1,1-18-15.88,20,20,0,0,0,0-26.43,12,12,0,0,1,18-15.86A43.94,43.94,0,0,1,212,128Zm40,0a83.87,83.87,0,0,1-21.39,56,12,12,0,0,1-17.89-16,60,60,0,0,0,0-80,12,12,0,1,1,17.88-16A83.87,83.87,0,0,1,252,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M80,88v80H32a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8Z",opacity:"0.2"}),e.createElement("path",{d:"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Zm54-106.08a40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.58,24,24,0,0,0,0-31.72,8,8,0,0,1,12-10.58ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M160,32.25V223.69a8.29,8.29,0,0,1-3.91,7.18,8,8,0,0,1-9-.56l-65.57-51A4,4,0,0,1,80,176.16V79.84a4,4,0,0,1,1.55-3.15l65.57-51a8,8,0,0,1,10,.16A8.27,8.27,0,0,1,160,32.25ZM60,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H60a4,4,0,0,0,4-4V84A4,4,0,0,0,60,80Zm126.77,20.84a8,8,0,0,0-.72,11.3,24,24,0,0,1,0,31.72,8,8,0,1,0,12,10.58,40,40,0,0,0,0-52.88A8,8,0,0,0,186.74,100.84Zm40.89-26.17a8,8,0,1,0-11.92,10.66,64,64,0,0,1,0,85.34,8,8,0,1,0,11.92,10.66,80,80,0,0,0,0-106.66Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M154.64,26.61a6,6,0,0,0-6.32.65L77.94,82H32A14,14,0,0,0,18,96v64a14,14,0,0,0,14,14H77.94l70.38,54.74A6,6,0,0,0,158,224V32A6,6,0,0,0,154.64,26.61ZM30,160V96a2,2,0,0,1,2-2H74v68H32A2,2,0,0,1,30,160Zm116,51.73L86,165.07V90.93l60-46.66Zm50.53-108.85a38,38,0,0,1,0,50.24,6,6,0,1,1-9-7.94,26,26,0,0,0,0-34.37,6,6,0,0,1,9-7.93ZM246,128a77.86,77.86,0,0,1-19.86,52,6,6,0,1,1-8.94-8,66,66,0,0,0,0-88,6,6,0,1,1,8.94-8A77.86,77.86,0,0,1,246,128Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Zm54-106.08a40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.58,24,24,0,0,0,0-31.72,8,8,0,0,1,12-10.58ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M153.76,28.41a4,4,0,0,0-4.22.43L78.63,84H32A12,12,0,0,0,20,96v64a12,12,0,0,0,12,12H78.63l70.91,55.16A4.07,4.07,0,0,0,152,228a3.92,3.92,0,0,0,1.76-.41A4,4,0,0,0,156,224V32A4,4,0,0,0,153.76,28.41ZM28,160V96a4,4,0,0,1,4-4H76v72H32A4,4,0,0,1,28,160Zm120,55.82L84,166V90l64-49.78Zm47-111.61a36,36,0,0,1,0,47.59,4,4,0,1,1-6-5.3,28,28,0,0,0,0-37,4,4,0,0,1,6-5.28ZM244,128a75.88,75.88,0,0,1-19.35,50.67,4,4,0,0,1-6-5.34,68,68,0,0,0,0-90.66,4,4,0,0,1,6-5.34A75.88,75.88,0,0,1,244,128Z"}))]]),w1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M56.88,31.93A12,12,0,1,0,39.12,48.07L64.51,76H32A20,20,0,0,0,12,96v64a20,20,0,0,0,20,20H75.88l68.75,53.47A12,12,0,0,0,164,224V185.44l35.12,38.63a12,12,0,0,0,17.76-16.14ZM36,100H68v56H36Zm104,99.46L92,162.13V106.24L140,159Zm-31-134a12,12,0,0,1,2.11-16.84l33.51-26.07A12,12,0,0,1,164,32V94.94a12,12,0,0,1-24,0V56.54l-14.15,11A12,12,0,0,1,109,65.44Zm74,49.35a12,12,0,0,1,18-15.85,44,44,0,0,1,5.55,50.21,12,12,0,0,1-21-11.55A19.67,19.67,0,0,0,188,128,20,20,0,0,0,183,114.79ZM252,128a84.18,84.18,0,0,1-19.11,53.35,12,12,0,1,1-18.53-15.25A60,60,0,0,0,212.73,88a12,12,0,1,1,17.88-16A83.87,83.87,0,0,1,252,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M80,88v80H32a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8Z",opacity:"0.2"}),e.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L73.55,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V175.09l42.08,46.29a8,8,0,1,0,11.84-10.76ZM32,96H72v64H32ZM144,207.64,88,164.09V95.89l56,61.6Zm42-63.77a24,24,0,0,0,0-31.72,8,8,0,1,1,12-10.57,40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.59Zm-80.16-76a8,8,0,0,1,1.4-11.23l39.85-31A8,8,0,0,1,160,32v74.83a8,8,0,0,1-16,0V48.36l-26.94,21A8,8,0,0,1,105.84,67.91ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M213.92,210.62a8,8,0,1,1-11.84,10.76L160,175.09v48.6a8.29,8.29,0,0,1-3.91,7.18,8,8,0,0,1-9-.56l-65.55-51A4,4,0,0,1,80,176.18V87.09L42.08,45.38A8,8,0,1,1,53.92,34.62Zm-27.21-55.46a8,8,0,0,0,11.29-.7,40,40,0,0,0,0-52.88,8,8,0,1,0-12,10.57,24,24,0,0,1,0,31.72A8,8,0,0,0,186.71,155.16Zm40.92-80.49a8,8,0,1,0-11.92,10.66,64,64,0,0,1,0,85.34,8,8,0,1,0,11.92,10.66,80,80,0,0,0,0-106.66ZM153,119.87a4,4,0,0,0,7-2.7V32.25a8.27,8.27,0,0,0-2.88-6.4,8,8,0,0,0-10-.16L103.83,59.33a4,4,0,0,0-.5,5.85ZM60,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H60a4,4,0,0,0,4-4V84A4,4,0,0,0,60,80Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M52.44,36A6,6,0,0,0,43.56,44L78,81.94l-.08.06H32A14,14,0,0,0,18,96v64a14,14,0,0,0,14,14H77.94l70.38,54.74A6,6,0,0,0,158,224V169.92L203.56,220a6,6,0,0,0,8.88-8.08ZM30,160V96a2,2,0,0,1,2-2H74v68H32A2,2,0,0,1,30,160Zm116,51.73L86,165.07V90.93l.11-.08L146,156.72Zm41.5-66.53a26,26,0,0,0,0-34.37,6,6,0,1,1,9-7.93,38,38,0,0,1,0,50.24,6,6,0,0,1-9-7.94ZM107.41,66.68a6,6,0,0,1,1.06-8.42l39.85-31A6,6,0,0,1,158,32v74.83a6,6,0,0,1-12,0V44.27L115.83,67.73A6,6,0,0,1,107.41,66.68ZM246,128a77.86,77.86,0,0,1-19.86,52,6,6,0,1,1-8.94-8,66,66,0,0,0,0-88,6,6,0,1,1,8.94-8A77.86,77.86,0,0,1,246,128Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L73.55,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V175.09l42.08,46.29a8,8,0,1,0,11.84-10.76ZM32,96H72v64H32ZM144,207.64,88,164.09V95.89l56,61.6Zm42-63.77a24,24,0,0,0,0-31.72,8,8,0,1,1,12-10.57,40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.59Zm-80.16-76a8,8,0,0,1,1.4-11.23l39.85-31A8,8,0,0,1,160,32v74.83a8,8,0,0,1-16,0V48.36l-26.94,21A8,8,0,0,1,105.84,67.91ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M51,37.31A4,4,0,0,0,45,42.69L81,82.19,78.63,84H32A12,12,0,0,0,20,96v64a12,12,0,0,0,12,12H78.63l70.91,55.16A4.07,4.07,0,0,0,152,228a3.92,3.92,0,0,0,1.76-.41A4,4,0,0,0,156,224V164.75l49,53.94a4,4,0,1,0,5.92-5.38ZM28,160V96a4,4,0,0,1,4-4H76v72H32A4,4,0,0,1,28,160Zm120,55.82L84,166V90l2.35-1.83L148,156Zm41-69.3a28,28,0,0,0,0-37,4,4,0,1,1,6-5.29,36,36,0,0,1,0,47.59,4,4,0,1,1-6-5.29ZM109,65.45a4,4,0,0,1,.7-5.61l39.85-31A4,4,0,0,1,156,32v74.83a4,4,0,0,1-8,0V40.18l-33.39,26A4,4,0,0,1,109,65.45ZM244,128a75.88,75.88,0,0,1-19.35,50.67,4,4,0,0,1-6-5.34,68,68,0,0,0,0-90.66,4,4,0,0,1,6-5.34A75.88,75.88,0,0,1,244,128Z"}))]]),Kt=e.forwardRef((a,t)=>e.createElement(D,{ref:t,...a,weights:m1}));Kt.displayName="ArrowClockwiseIcon";const Ke=e.forwardRef((a,t)=>e.createElement(D,{ref:t,...a,weights:f1}));Ke.displayName="ArrowCounterClockwiseIcon";const It=e.forwardRef((a,t)=>e.createElement(D,{ref:t,...a,weights:h1}));It.displayName="ArrowsOutIcon";const Ot=e.forwardRef((a,t)=>e.createElement(D,{ref:t,...a,weights:b1}));Ot.displayName="CaretLeftIcon";const zt=e.forwardRef((a,t)=>e.createElement(D,{ref:t,...a,weights:p1}));zt.displayName="CaretRightIcon";const Le=e.forwardRef((a,t)=>e.createElement(D,{ref:t,...a,weights:g1}));Le.displayName="ChatCircleIcon";const _t=e.forwardRef((a,t)=>e.createElement(D,{ref:t,...a,weights:x1}));_t.displayName="ClockIcon";const Bt=e.forwardRef((a,t)=>e.createElement(D,{ref:t,...a,weights:v1}));Bt.displayName="ClosedCaptioningIcon";const Ut=e.forwardRef((a,t)=>e.createElement(D,{ref:t,...a,weights:$1}));Ut.displayName="FastForwardIcon";const Wt=e.forwardRef((a,t)=>e.createElement(D,{ref:t,...a,weights:y1}));Wt.displayName="PaperPlaneTiltIcon";const qt=e.forwardRef((a,t)=>e.createElement(D,{ref:t,...a,weights:A1}));qt.displayName="PauseIcon";const Xt=e.forwardRef((a,t)=>e.createElement(D,{ref:t,...a,weights:E1}));Xt.displayName="PictureInPictureIcon";const Ie=e.forwardRef((a,t)=>e.createElement(D,{ref:t,...a,weights:M1}));Ie.displayName="PlayIcon";const Yt=e.forwardRef((a,t)=>e.createElement(D,{ref:t,...a,weights:V1}));Yt.displayName="RewindIcon";const Gt=e.forwardRef((a,t)=>e.createElement(D,{ref:t,...a,weights:P1}));Gt.displayName="SpeakerHighIcon";const Jt=e.forwardRef((a,t)=>e.createElement(D,{ref:t,...a,weights:w1}));Jt.displayName="SpeakerSlashIcon";function Z1(a){return"video"in a}function j1(a){return"password_protected"in a}function L1(a){return"expired"in a}async function H1(a){return(await fetch(`/s/${a}/data`,{credentials:"include"})).json()}async function S1(a,t){return(await fetch(`/s/${a}/verify-password`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({password:t})})).ok}async function T1(a){return(await(await fetch(`/s/${a}/reactions`)).json()).reactions||[]}async function C1(a,t,n){return(await fetch(`/s/${a}/react`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({timestamp:t,emoji:n})})).ok}async function ht(a,t=1,n=50){return(await fetch(`/s/${a}/comments?page=${t}&limit=${n}`)).json()}async function F1(a,t,n,l){const s=await fetch(`/s/${a}/comment`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({timestamp:t,author_name:n,text:l})});if(!s.ok)throw new Error("Could not post comment");return(await s.json()).id}function N(a){const t=Math.max(0,Math.floor(a)),n=Math.floor(t/3600),l=Math.floor(t%3600/60),s=t%60;return n>0?`${n}:${String(l).padStart(2,"0")}:${String(s).padStart(2,"0")}`:`${l}:${String(s).padStart(2,"0")}`}function Qt(a){return new Date(a+"Z").toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function k1(a,t,n,l=18){const s=n>0?l/n*t:t*.02,i=[];for(const o of[...a].sort((d,c)=>d.timestamp-c.timestamp)){const d=i.at(-1);d&&o.timestamp-d.members.at(-1).timestamp<s?(d.members.push(o),d.time=d.members.reduce((c,u)=>c+u.timestamp,0)/d.members.length):i.push({time:o.timestamp,members:[o]})}return i}function N1(a,t){const n=/(?<!\d)(?:(\d+):)?([0-5]?\d):([0-5]\d)(?!\d)/g,l=[];let s=0;for(const i of a.matchAll(n)){const o=i.index;o>s&&l.push({text:a.slice(s,o)});const d=Number(i[1]||0)*3600+Number(i[2])*60+Number(i[3]);l.push({text:i[0],...t>0&&d<=t?{time:d}:{}}),s=o+i[0].length}return s<a.length&&l.push({text:a.slice(s)}),l}const R1=(a,t,n)=>k1(a,t,n,28);function D1({data:a,videoRef:t,comments:n,reactions:l,time:s,duration:i,onTime:o,onDuration:d,seek:c}){const u=e.useRef(null),p=e.useRef(null),[m,$]=e.useState(500),[b,A]=e.useState(!1),[g,f]=e.useState(!1),[v,M]=e.useState(!1),[w,H]=e.useState(1),[E,Z]=e.useState(!1),[F,K]=e.useState(1),[_,W]=e.useState(!0),[J,I]=e.useState(!1),[R,y]=e.useState(!1),j=e.useRef(1),S=a.segments.find(x=>s>=x.start_time&&s<x.end_time),P=a.video.cta_url&&/^https?:\/\//i.test(a.video.cta_url)?a.video.cta_url:null,O=e.useCallback(async()=>{const x=t.current;if(x)if(!x.paused)x.pause();else try{await x.play()}catch{le.danger("Playback could not start. Try again.")}},[t]),ae=e.useCallback(()=>{const x=t.current;x&&(x.muted||x.volume===0?(x.muted=!1,x.volume=j.current||1):(j.current=x.volume,x.muted=!0))},[t]),Q=e.useCallback(async()=>{try{document.fullscreenElement?await document.exitFullscreen():await u.current?.requestFullscreen()}catch{le.danger("Fullscreen is unavailable in this browser.")}},[]);async function me(){try{document.pictureInPictureElement?await document.exitPictureInPicture():await t.current?.requestPictureInPicture()}catch{le.danger("Picture in picture is unavailable for this recording.")}}return e.useEffect(()=>{if(I(!!document.pictureInPictureEnabled),!p.current)return;const x=new ResizeObserver(([h])=>$(h.contentRect.width));return x.observe(p.current),()=>x.disconnect()},[]),e.useEffect(()=>{function x(h){const L=h.target;if(h.defaultPrevented||h.metaKey||h.ctrlKey||h.altKey||L.closest('input, textarea, select, button, a, [role="slider"], [role="tab"], [role="menuitem"], [contenteditable="true"]'))return;const C=t.current;if(C)switch(h.key.toLowerCase()){case" ":case"k":h.preventDefault(),O();break;case"arrowleft":h.preventDefault(),c(C.currentTime-5);break;case"arrowright":h.preventDefault(),c(C.currentTime+5);break;case"m":ae();break;case"f":Q();break;case"c":W(q=>!q);break}}return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[c,t,O,ae,Q]),r.jsxs(Vt,{ref:u,className:"video-shell",children:[r.jsxs("div",{className:"video-stage",children:[r.jsx("video",{ref:t,src:`/v/${a.shareCode}`,poster:`/thumb/${a.shareCode}`,preload:"metadata",playsInline:!0,onClick:()=>{O()},onPlay:()=>{A(!0),M(!1)},onPause:()=>A(!1),onWaiting:()=>f(!0),onPlaying:()=>f(!1),onCanPlay:()=>f(!1),onError:()=>{y(!0),f(!1)},onTimeUpdate:x=>o(x.currentTarget.currentTime),onVolumeChange:x=>{H(x.currentTarget.volume),Z(x.currentTarget.muted)},onRateChange:x=>K(x.currentTarget.playbackRate),onEnded:()=>{M(!0),A(!1)},onSeeking:()=>M(!1),onLoadedMetadata:x=>{const h=x.currentTarget;d(Number.isFinite(h.duration)?h.duration:0);const L=Number(new URLSearchParams(location.search).get("t"));Number.isFinite(L)&&L>0&&L<h.duration&&(h.currentTime=L);for(const C of Array.from(h.textTracks))C.mode="hidden"},children:a.segments.length>0&&r.jsx("track",{kind:"captions",src:`/vtt/${a.shareCode}`,srcLang:"en",label:"English"})}),!b&&!R&&!(v&&P)&&r.jsx("div",{className:"video-play-overlay",children:r.jsx(T,{isIconOnly:!0,size:"lg","aria-label":v?"Replay recording":"Play recording",onPress:()=>{O()},children:v?r.jsx(Ke,{size:24}):r.jsx(Ie,{size:24,weight:"fill"})})}),g&&b&&r.jsx("div",{className:"video-play-overlay",children:r.jsx(Pt,{"aria-label":"Buffering video"})}),R&&r.jsxs("div",{className:"video-end-card",children:[r.jsx("p",{children:"We couldn’t load this video."}),r.jsx(T,{variant:"secondary",onPress:()=>{y(!1),t.current?.load()},children:"Try again"})]}),_&&S&&r.jsx("div",{className:"video-caption",children:r.jsxs("span",{children:[S.speaker&&`${S.speaker}: `,S.text]})}),r.jsx("div",{className:"timestamp-reactions","aria-hidden":"true",children:l.filter(x=>s>=x.timestamp&&s<x.timestamp+3).slice(-12).map((x,h)=>r.jsx("span",{className:"timestamp-reaction",style:{left:`${15+h*19%70}%`},children:x.emoji},`${x.created_at}-${x.timestamp}-${h}`))}),v&&P&&r.jsxs("div",{className:"video-end-card",children:[r.jsx(Wa,{className:"button button--primary",href:P,target:"_blank",rel:"noopener noreferrer",children:a.video.cta_text||"Learn more"}),r.jsxs(T,{variant:"secondary",onPress:()=>{c(0),O()},children:[r.jsx(Ke,{size:16}),"Replay"]})]})]}),r.jsxs("div",{className:"video-toolbar",children:[r.jsx("div",{ref:p,className:"timeline-markers","aria-label":"Comments and reactions on the timeline",children:R1([...n.map(x=>({timestamp:x.timestamp,kind:"comment",label:`${x.author_name}: ${x.text}`})),...l.map(x=>({timestamp:x.timestamp,kind:"reaction",emoji:x.emoji,label:`${x.emoji} reaction`})),...a.chapters.map(x=>({timestamp:x.timestamp,kind:"chapter",label:`Chapter: ${x.title}`}))],i,m).map((x,h)=>r.jsxs(ft,{children:[r.jsx(T,{size:"sm",variant:x.members.length>1?"primary":"ghost",className:"timeline-marker",style:{left:`${i?Math.max(2,Math.min(98,x.time/i*100)):2}%`},"aria-label":`${x.members.length>1?`${x.members.length} items`:x.members[0].label} at ${N(x.time)}`,onPress:()=>c(x.members[0].timestamp),children:x.members.length>1?x.members.length:x.members[0].kind==="reaction"?r.jsx("span",{"aria-hidden":"true",children:x.members[0].emoji}):x.members[0].kind==="comment"?r.jsx(Le,{size:12}):"•"}),r.jsx(ft.Content,{children:x.members.map(L=>`${N(L.timestamp)} ${L.label}`).join(" · ")})]},`timeline-${h}`))}),r.jsxs("div",{className:"video-progress",children:[r.jsx(Se,{"aria-label":"Video progress",value:Math.min(s,i||0),minValue:0,maxValue:i||1,size:"sm",valueLabel:`${N(s)} of ${N(i)}`,children:r.jsx(Se.Track,{children:r.jsx(Se.Fill,{})})}),r.jsx("input",{className:"video-seek-input",type:"range","aria-label":"Seek video","aria-valuetext":`${N(s)} of ${N(i)}`,min:0,max:i||1,step:.1,value:Math.min(s,i||0),disabled:!i,onChange:x=>c(Number(x.currentTarget.value))})]}),r.jsxs("div",{className:"video-controls",children:[r.jsx(T,{isIconOnly:!0,size:"sm",variant:"ghost","aria-label":b?"Pause":"Play",onPress:()=>{O()},children:b?r.jsx(qt,{size:18,weight:"fill"}):r.jsx(Ie,{size:18,weight:"fill"})}),r.jsx(T,{isIconOnly:!0,size:"sm",variant:"ghost",className:"skip-control","aria-label":"Back 5 seconds",onPress:()=>c(s-5),children:r.jsx(Yt,{size:18})}),r.jsx(T,{isIconOnly:!0,size:"sm",variant:"ghost",className:"skip-control","aria-label":"Forward 5 seconds",onPress:()=>c(s+5),children:r.jsx(Ut,{size:18})}),r.jsx(T,{isIconOnly:!0,size:"sm",variant:"ghost","aria-label":E||w===0?"Unmute":"Mute",onPress:ae,children:E||w===0?r.jsx(Jt,{size:18}):r.jsx(Gt,{size:18})}),r.jsx(ye,{className:"volume-control","aria-label":"Volume",minValue:0,maxValue:1,step:.05,value:E?0:w,onChange:x=>{t.current&&(t.current.volume=Number(x),t.current.muted=Number(x)===0,Number(x)&&(j.current=Number(x)))},children:r.jsxs(ye.Track,{children:[r.jsx(ye.Fill,{}),r.jsx(ye.Thumb,{})]})}),r.jsxs("span",{className:"video-time",children:[N(s)," / ",N(i)]}),r.jsx("span",{className:"control-spacer"}),a.segments.length>0&&r.jsx(T,{isIconOnly:!0,size:"sm",variant:_?"secondary":"ghost","aria-label":"Captions","aria-pressed":_,onPress:()=>W(!_),children:r.jsx(Bt,{size:18})}),r.jsxs(be,{children:[r.jsxs(T,{size:"sm",variant:"ghost","aria-label":`Playback speed: ${F}×`,children:[F,"×"]}),r.jsx(be.Popover,{children:r.jsx(be.Menu,{"aria-label":"Playback speed",selectionMode:"single",selectedKeys:new Set([String(F)]),onAction:x=>{t.current&&(t.current.playbackRate=Number(x))},children:[.5,1,1.25,1.5,2].map(x=>r.jsxs(be.Item,{id:String(x),textValue:`${x}×`,children:[r.jsxs(Ae,{children:[x,"×"]}),r.jsx(be.ItemIndicator,{})]},x))})})]}),J&&r.jsx(T,{isIconOnly:!0,size:"sm",variant:"ghost",className:"pip-control","aria-label":"Picture in picture",onPress:()=>{me()},children:r.jsx(Xt,{size:18})}),r.jsx(T,{isIconOnly:!0,size:"sm",variant:"ghost","aria-label":"Fullscreen",onPress:()=>{Q()},children:r.jsx(It,{size:18})})]})]})]})}function Te({children:a,label:t}){const n=e.useRef(null),l=e.useRef(null),[s,i]=e.useState(0),[o,d]=e.useState(1),[c,u]=e.useState(0);return e.useLayoutEffect(()=>{const p=n.current,m=l.current;if(!p||!m)return;const $=()=>{const g=p.clientWidth;if(!g)return;const f=g+24,v=Math.max(1,Math.ceil((m.scrollWidth+24-1)/f));u(f),d(v),i(M=>Math.min(M,v-1))},b=new ResizeObserver($),A=new MutationObserver($);return b.observe(p),A.observe(m,{childList:!0,subtree:!0,characterData:!0}),$(),()=>{b.disconnect(),A.disconnect()}},[]),r.jsxs("div",{className:"paged-panel","aria-label":t,children:[r.jsx("div",{ref:n,className:"page-viewport",onFocusCapture:p=>{if(!c||!n.current)return;const m=n.current,$=p.target.getBoundingClientRect().left-m.getBoundingClientRect().left+s*c+m.scrollLeft;i(Math.max(0,Math.min(o-1,Math.floor(($+1)/c)))),m.scrollLeft=0},children:r.jsx("div",{ref:l,className:"page-flow",style:{transform:`translateX(-${s*c}px)`},children:a})}),r.jsxs("nav",{hidden:o===1,className:"page-navigation","aria-label":`${t} pages`,children:[r.jsx(T,{size:"sm",variant:"ghost",isIconOnly:!0,"aria-label":`Previous ${t.toLowerCase()} page`,isDisabled:s===0,onPress:()=>i(s-1),children:r.jsx(Ot,{size:16})}),r.jsxs("span",{"aria-live":"polite",children:[s+1," / ",o]}),r.jsx(T,{size:"sm",variant:"ghost",isIconOnly:!0,"aria-label":`Next ${t.toLowerCase()} page`,isDisabled:s>=o-1,onPress:()=>i(s+1),children:r.jsx(zt,{size:16})})]})]})}function K1({data:a,time:t,duration:n,comments:l,setComments:s,seek:i,composerRef:o,selectedTab:d,setSelectedTab:c}){const[u,p]=e.useState(""),[m,$]=e.useState(""),[b,A]=e.useState(null),[g,f]=e.useState(!1),[v,M]=e.useState(!0),[w,H]=e.useState(""),[E,Z]=e.useState(1),[F,K]=e.useState(0),[_,W]=e.useState(!1),J=l.reduce((y,j,S)=>j.timestamp<=t+.3?S:y,-1);e.useEffect(()=>{try{p(localStorage.getItem("recordly-comment-name")||"")}catch{}let y=!1;return ht(a.shareCode).then(j=>{y||(s([...j.comments].sort((S,P)=>S.timestamp-P.timestamp)),K(j.total),M(!1))}).catch(()=>{y||(H("Comments could not be loaded. Reload the page to try again."),M(!1))}),()=>{y=!0}},[a.shareCode,s]);async function I(){W(!0);try{const y=await ht(a.shareCode,E+1);s(j=>[...new Map([...j,...y.comments].map(S=>[S.id,S])).values()].sort((S,P)=>S.timestamp-P.timestamp||S.id-P.id)),K(y.total),Z(E+1)}catch{le.danger("Could not load more comments. Try again.")}finally{W(!1)}}async function R(){if(g||!u.trim()||!m.trim())return;const y=b??t;f(!0),H("");try{const j=await F1(a.shareCode,y,u.trim(),m.trim());s(S=>[...S,{id:j,timestamp:y,author_name:u.trim(),text:m.trim(),created_at:new Date().toISOString().slice(0,19)}].sort((P,O)=>P.timestamp-O.timestamp)),K(F+1),$(""),A(null);try{localStorage.setItem("recordly-comment-name",u.trim())}catch{}le.success(`Comment posted at ${N(y)}`)}catch{H("Could not post your comment. Your draft is saved here—please try again.")}finally{f(!1)}}return r.jsxs(Vt,{className:"feedback-card",children:[r.jsxs(B,{selectedKey:d,onSelectionChange:y=>c(String(y)),className:"feedback-tabs",children:[r.jsx(B.ListContainer,{children:r.jsxs(B.List,{"aria-label":"Recording feedback",children:[r.jsxs(B.Tab,{id:"comments",children:["Comments",F>0&&r.jsx(d0,{size:"sm",variant:"soft",children:F}),r.jsx(B.Indicator,{})]}),a.segments.length>0&&r.jsxs(B.Tab,{id:"transcript",children:["Transcript",r.jsx(B.Indicator,{})]}),(a.video.summary||a.chapters.length>0)&&r.jsxs(B.Tab,{id:"details",children:["Details",r.jsx(B.Indicator,{})]})]})}),r.jsx(B.Panel,{id:"comments",children:r.jsxs(Te,{label:"Comments",children:[v?r.jsx("div",{className:"empty-feedback",children:r.jsx(Pt,{"aria-label":"Loading comments"})}):l.length?l.map((y,j)=>r.jsxs("article",{className:"comment-item","data-active":j===J,children:[r.jsxs("div",{className:"comment-heading",children:[r.jsx(Ee,{size:"sm",children:r.jsx(Ee.Fallback,{children:y.author_name.slice(0,2).toUpperCase()})}),r.jsx("strong",{children:y.author_name}),r.jsx(T,{size:"sm",variant:"ghost","aria-label":`Jump to ${N(y.timestamp)}`,onPress:()=>i(y.timestamp),children:r.jsx("span",{className:"timestamp",children:N(y.timestamp)})})]}),r.jsx("p",{children:N1(y.text,n).map((S,P)=>S.time===void 0?S.text:r.jsx(T,{size:"sm",variant:"ghost",className:"inline-timestamp timestamp",onPress:()=>i(S.time),children:S.text},P))}),r.jsx("span",{className:"comment-date",children:Qt(y.created_at)})]},y.id)):r.jsxs("div",{className:"empty-feedback",children:[r.jsx(Le,{size:28}),r.jsx("h2",{children:"Start the conversation"}),r.jsx("p",{children:"Leave feedback at the exact moment you’re watching."})]}),l.length<F&&r.jsx(T,{size:"sm",variant:"ghost",isPending:_,onPress:()=>{I()},children:"Load more comments"})]})}),a.segments.length>0&&r.jsx(B.Panel,{id:"transcript",children:r.jsx(Te,{label:"Transcript",children:a.segments.map((y,j)=>r.jsxs("article",{className:"transcript-item","data-active":t>=y.start_time&&t<y.end_time,children:[r.jsxs("div",{className:"transcript-heading",children:[r.jsx(T,{size:"sm",variant:"ghost",onPress:()=>i(y.start_time),children:r.jsx("span",{className:"timestamp",children:N(y.start_time)})}),y.speaker&&r.jsx("span",{children:y.speaker}),r.jsx(T,{size:"sm",variant:"ghost",isIconOnly:!0,className:"copy-timestamp","aria-label":`Copy link to ${N(y.start_time)}`,onPress:()=>{Xa(y.start_time)},children:r.jsx(qa,{size:15})})]}),r.jsx(T,{variant:"ghost",className:"transcript-seek",onPress:()=>i(y.start_time),children:y.text})]},j))})}),(a.video.summary||a.chapters.length>0)&&r.jsx(B.Panel,{id:"details",children:r.jsxs(Te,{label:"Details",children:[r.jsxs("section",{className:"recording-details",children:[r.jsx("h2",{children:"Recording"}),r.jsx("p",{children:a.video.title})]}),a.video.summary&&r.jsxs("section",{className:"recording-details",children:[r.jsx("h2",{children:"Summary"}),r.jsx("p",{children:a.video.summary})]}),a.chapters.length>0&&r.jsxs("section",{className:"recording-details",children:[r.jsx("h2",{children:"Chapters"}),r.jsx("div",{className:"chapter-list",children:a.chapters.map((y,j)=>r.jsxs(T,{size:"sm",variant:"ghost",onPress:()=>i(y.timestamp),children:[r.jsx("span",{className:"timestamp",children:N(y.timestamp)}),y.title]},j))})]})]})})]}),r.jsxs("form",{className:"composer",hidden:d!=="comments",onSubmit:y=>{y.preventDefault(),R()},children:[w&&r.jsx(wt,{children:w}),r.jsxs(Fe,{name:"author",value:u,onChange:p,isRequired:!0,isDisabled:g,children:[r.jsx(Ae,{children:"Name"}),r.jsx(Zt,{maxLength:100,autoComplete:"name",placeholder:"Name"})]}),r.jsxs(Fe,{name:"comment",value:m,onChange:y=>{$(y),A(y.trim()?b??t:null)},isRequired:!0,isDisabled:g,children:[r.jsx(Ae,{children:"Comment"}),r.jsx(i1,{ref:o,maxLength:2e3,placeholder:"Share your thoughts…",onKeyDown:y=>{(y.metaKey||y.ctrlKey)&&y.key==="Enter"&&(y.preventDefault(),R())}})]}),r.jsxs("div",{className:"composer-footer",children:[r.jsxs(T,{type:"button",size:"sm",variant:"ghost","aria-label":`Comment timestamp ${N(b??t)}. Use current video time`,onPress:()=>A(t),children:[r.jsx(_t,{size:14}),r.jsx("span",{className:"timestamp",children:N(b??t)})]}),r.jsxs(T,{type:"submit",size:"sm",isPending:g,isDisabled:!u.trim()||!m.trim()||g,children:[r.jsx(Wt,{size:15}),g?"Posting…":"Post"]})]})]})]})}const I1=[{emoji:"👍",label:"Like"},{emoji:"❤️",label:"Love"},{emoji:"😂",label:"Laugh"},{emoji:"😮",label:"Surprised"},{emoji:"🔥",label:"Fire"},{emoji:"👏",label:"Applause"}];function O1({data:a}){const t=e.useRef(null),n=e.useRef(null),[l,s]=e.useState(0),[i,o]=e.useState(a.video.duration),[d,c]=e.useState([]),[u,p]=e.useState([]),m=u.reduce((E,Z)=>(E[Z.emoji]=(E[Z.emoji]||0)+1,E),{}),[$,b]=e.useState(null),[A,g]=e.useState("comments"),[f,v]=e.useState("watch"),M=e.useCallback(E=>{const Z=t.current;Z&&Number.isFinite(Z.duration)&&(Z.currentTime=Math.max(0,Math.min(Z.duration,E)),s(Z.currentTime))},[]);e.useEffect(()=>{let E=!1;return T1(a.shareCode).then(Z=>{E||p(F=>[...Z,...F])}).catch(()=>{}),()=>{E=!0}},[a.shareCode]);async function w(E){if($)return;b(E);const Z=t.current?.currentTime||0;try{if(!await C1(a.shareCode,Z,E))throw new Error;p(F=>[...F,{timestamp:Z,emoji:E,created_at:new Date().toISOString()}]),le.success(`${E} Reaction at ${N(Z)}`)}catch{le.danger("Could not add your reaction. Try again.")}finally{b(null)}}const{video:H}=a;return r.jsxs("div",{className:"recording-app","data-mobile-view":f,children:[f==="feedback"&&r.jsx("div",{className:"mobile-feedback-back",children:r.jsx(T,{size:"sm",variant:"secondary",onPress:()=>v("watch"),children:"Back to video"})}),r.jsxs("div",{className:"share-workspace",children:[r.jsxs("main",{className:"recording-column",children:[r.jsxs("div",{className:"recording-heading viewer-heading",children:[r.jsxs("div",{className:"viewer-identity",children:[r.jsx(Ee,{"aria-label":a.creator?.name||"Recording creator",className:"!size-[48px] shrink-0 !rounded-full bg-accent/15 text-accent",children:r.jsx(Ee.Fallback,{className:"!rounded-full bg-accent/15 text-xs font-medium text-accent",children:a.creator?.name.split(/\s+/).filter(Boolean).slice(0,2).map(E=>E[0]).join("").toUpperCase()||"?"})}),r.jsxs("div",{className:"viewer-caption",children:[r.jsx("h1",{className:"recording-title",title:H.title,children:H.title}),r.jsxs("div",{className:"recording-meta",children:[r.jsx("span",{children:Qt(H.created_at)}),r.jsxs("span",{children:[H.view_count.toLocaleString()," ",H.view_count===1?"view":"views"]})]})]})]}),r.jsxs("div",{className:"viewer-heading-actions",children:[r.jsx(Qa,{}),r.jsx(e0,{time:l})]})]}),r.jsx(D1,{data:a,videoRef:t,comments:d,reactions:u,time:l,duration:i,onTime:s,onDuration:o,seek:M}),r.jsxs("div",{className:"reaction-rail",children:[r.jsx("div",{className:"reaction-buttons","aria-label":"Reactions",children:I1.map(({emoji:E,label:Z})=>r.jsxs(T,{size:"sm",variant:"ghost","aria-label":`${Z}${m[E]?`, ${m[E]} ${m[E]===1?"reaction":"reactions"}`:""}`,isDisabled:$!==null,onPress:()=>{w(E)},children:[r.jsx("span",{"aria-hidden":"true",children:E}),m[E]>0&&r.jsx("span",{children:m[E]})]},E))}),r.jsxs(T,{className:"mobile-comment-button",size:"sm",variant:"primary",onPress:()=>{g("comments"),v("feedback"),requestAnimationFrame(()=>n.current?.focus({preventScroll:!0}))},children:[r.jsx(Le,{size:17}),"Comment"]})]})]}),r.jsx("aside",{"aria-label":"Recording feedback",children:r.jsx(K1,{data:a,time:l,duration:i,comments:d,setComments:c,seek:M,composerRef:n,selectedTab:A,setSelectedTab:g})})]})]})}function B1(){const[a,t]=e.useState(null),[n,l]=e.useState("loading"),[s,i]=e.useState("Protected recording"),[o,d]=e.useState(""),[c,u]=e.useState(!1),[p,m]=e.useState(""),$=e.useCallback(async()=>{l("loading");try{const A=location.pathname.split("/").filter(Boolean).pop()||"",g=await H1(A);L1(g)?(l("expired"),document.title="Recording unavailable — Recordly"):j1(g)?(l("password"),i(g.title),document.title=`${g.title} — Recordly`):Z1(g)?(t(g),l("recording"),document.title=`${g.video.title} — Recordly`):l("error")}catch{l("error")}},[]);e.useEffect(()=>{$()},[$]);async function b(){if(!c){u(!0),m("");try{const A=location.pathname.split("/").filter(Boolean).pop()||"";await S1(A,o)?await $():m("That password didn’t match. Please try again.")}catch{m("Could not unlock the recording. Please try again.")}finally{u(!1)}}}return r.jsxs(r.Fragment,{children:[r.jsx(Ya,{}),n==="loading"?r.jsx("div",{className:"recording-app",children:r.jsxs("div",{className:"share-workspace","aria-label":"Loading recording","aria-busy":"true",children:[r.jsxs("div",{className:"recording-column",children:[r.jsxs("div",{children:[r.jsx($e,{className:"loading-title"}),r.jsx($e,{className:"loading-meta"})]}),r.jsx($e,{className:"loading-video"})]}),r.jsx($e,{className:"loading-sidebar"})]})}):n==="recording"&&a?r.jsx(O1,{data:a}):r.jsx(Ga,{children:n==="password"?r.jsxs(r.Fragment,{children:[r.jsx(Ja,{size:28}),r.jsx("h1",{children:s}),r.jsx("p",{children:"This recording is password protected."}),r.jsxs("form",{className:"gate-form",onSubmit:A=>{A.preventDefault(),b()},children:[r.jsxs(Fe,{value:o,onChange:d,isRequired:!0,isDisabled:c,children:[r.jsx(Ae,{children:"Password"}),r.jsx(Zt,{type:"password",autoComplete:"current-password",autoFocus:!0})]}),p&&r.jsx(wt,{children:p}),r.jsx(T,{type:"submit",isPending:c,isDisabled:!o||c,children:c?"Unlocking…":"Unlock recording"})]})]}):n==="expired"?r.jsxs(r.Fragment,{children:[r.jsx("h1",{children:"Recording unavailable"}),r.jsx("p",{children:"This link has expired or the recording has been removed. Ask the creator for a new link."})]}):r.jsxs(r.Fragment,{children:[r.jsx("h1",{children:"Couldn’t load the recording"}),r.jsx("p",{children:"Check your connection and try again."}),r.jsxs(T,{onPress:()=>{$()},children:[r.jsx(Kt,{size:16}),"Try again"]})]})})]})}export{B1 as default};
diff --git a/services/recordly-share/worker/web/dist/_astro/SharePage.Wj6U9NJ6.js b/services/recordly-share/worker/web/dist/_astro/SharePage.Wj6U9NJ6.js
new file mode 100644
index 00000000..34aabd4a
--- /dev/null
+++ b/services/recordly-share/worker/web/dist/_astro/SharePage.Wj6U9NJ6.js
@@ -0,0 +1 @@
+import{t as ce,Z as ta,_ as aa,a0 as na,B as r,F as Q,G as O,a1 as ze,a2 as Ge,a3 as ra,a4 as Je,d as Fe,a5 as la,a6 as pt,a7 as _e,a8 as Be,a9 as sa,j as k,aa as ia,ab as oa,A as Ve,ac as ca,ad as he,ae as gt,s as ge,af as da,ag as vt,o as ee,q as te,y as ve,ah as xt,p as J,ai as $t,aj as Pe,ak as xe,al as ua,am as ma,an as fa,u as ha,ao as ba,ap as pa,aq as yt,ar as ga,as as At,at as va,au as xa,m as Ue,v as Et,av as $a,aw as ya,ax as Aa,n as Mt,ay as Qe,az as Vt,aA as Ea,aB as Ma,aC as Va,aD as Pa,$ as wa,aE as Za,aF as ja,aG as La,aH as Sa,aI as Ha,aJ as Ta,aK as Ca,aL as Fa,E as W,aM as ka,l as Na,aN as ue,aO as Ra,aP as Da,aQ as Ka,aR as Ia,aS as Oa,aT as za,aU as _a,aV as Ba,aW as et,aX as Ua,J as R,Y as ie,P as Pt,K as T,aY as wt,aZ as Wa,M as be,X as Ae,L as Ee,a_ as qa,a$ as Xa,Q as Zt,W as ke,O as jt,N as Ya,R as $e,U as Ga,V as Ja,T as Qa,b0 as e0}from"./ShareUI.CpnBv7vU.js";import{r as e,$ as P}from"./index.DeQQz02V.js";const t0=ce({defaultVariants:{color:"default",variant:"secondary"},slots:{base:"chip",label:"chip__label"},variants:{color:{accent:{base:"chip--accent"},danger:{base:"chip--danger"},default:{base:"chip--default"},success:{base:"chip--success"},warning:{base:"chip--warning"}},size:{lg:{base:"chip--lg"},md:{base:"chip--md"},sm:{base:"chip--sm"}},variant:{primary:{base:"chip--primary"},secondary:{base:"chip--secondary"},soft:{base:"chip--soft"},tertiary:{base:"chip--tertiary"}}}}),a0=ce({defaultVariants:{color:"accent",size:"md"},slots:{base:"progress-bar",fill:"progress-bar__fill",output:"progress-bar__output",track:"progress-bar__track"},variants:{color:{accent:{base:"progress-bar--accent"},danger:{base:"progress-bar--danger"},default:{base:"progress-bar--default"},success:{base:"progress-bar--success"},warning:{base:"progress-bar--warning"}},size:{lg:{base:"progress-bar--lg"},md:{base:"progress-bar--md"},sm:{base:"progress-bar--sm"}}}}),n0=ce({defaultVariants:{hideScrollBar:!1,orientation:"vertical",variant:"fade"},slots:{base:"scroll-shadow"},variants:{hideScrollBar:{false:{},true:{base:"scroll-shadow--hide-scrollbar"}},orientation:{horizontal:{base:"scroll-shadow--horizontal"},vertical:{base:"scroll-shadow--vertical"}},variant:{fade:{base:"scroll-shadow--fade"}}}}),r0=ce({slots:{base:"slider",fill:"slider__fill",marks:"slider__marks",output:"slider__output",thumb:"slider__thumb",track:"slider__track"}}),l0=ce({defaultVariants:{align:"center",variant:"primary"},slots:{base:"tabs",scrollNext:"tabs__list-container__scroll-next",scrollPrev:"tabs__list-container__scroll-prev",scroller:"tabs__list-container__scroller",separator:"tabs__separator",tab:"tabs__tab",tabIndicator:"tabs__indicator",tabList:"tabs__list",tabListContainer:"tabs__list-container",tabPanel:"tabs__panel"},variants:{align:{center:{},end:{base:"tabs--align-end"},start:{base:"tabs--align-start"}},variant:{primary:{},secondary:{base:"tabs--secondary"}}}}),s0=ce({base:"textarea",defaultVariants:{fullWidth:!1,variant:"primary"},variants:{fullWidth:{false:"",true:"textarea--full-width"},variant:{primary:"textarea--primary",secondary:"textarea--secondary"}}}),i0=ce({slots:{base:"tooltip",trigger:"tooltip__trigger"}});class tt{constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&o.type==="section")for(let d of o.childNodes)n(d)};for(let o of t)n(o);let l=null,s=0,i=0;for(let[o,d]of this.keyMap)l?(l.nextKey=o,d.prevKey=l.key):(this.firstKey=o,d.prevKey=void 0),d.type==="item"&&(d.index=s++),(d.type==="section"||d.type==="item")&&i++,l=d,l.nextKey=void 0;this._size=i,this.lastKey=l?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey??null:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){return this.keyMap.get(t)?.childNodes||[]}}function o0(a){let{filter:t,layoutDelegate:n}=a,l=ta(a),s=e.useMemo(()=>a.disabledKeys?new Set(a.disabledKeys):new Set,[a.disabledKeys]),i=e.useCallback(u=>t?new tt(t(u)):new tt(u),[t]),o=e.useMemo(()=>({suppressTextValueWarning:a.suppressTextValueWarning}),[a.suppressTextValueWarning]),d=aa(a,i,o),c=e.useMemo(()=>new na(d,l,{layoutDelegate:n}),[d,l,n]);return c0(d,c),{collection:d,disabledKeys:s,selectionManager:c}}function c0(a,t){const n=e.useRef(null);e.useEffect(()=>{if(t.focusedKey!=null&&!a.getItem(t.focusedKey)&&n.current){let l=n.current.getKeyAfter(t.focusedKey),s=null;for(;l!=null;){let i=a.getItem(l);if(i&&i.type==="item"&&!t.isDisabled(l)){s=l;break}l=n.current.getKeyAfter(l)}if(s==null)for(l=n.current.getKeyBefore(t.focusedKey);l!=null;){let i=a.getItem(l);if(i&&i.type==="item"&&!t.isDisabled(l)){s=l;break}l=n.current.getKeyBefore(l)}t.setFocusedKey(s)}n.current=a},[a,t])}const Lt=e.createContext({}),at=({children:a,className:t,color:n,size:l,variant:s,...i})=>{const o=P.useMemo(()=>t0({color:n,size:l,variant:s}),[n,l,s]),d=P.useMemo(()=>typeof a=="string"||typeof a=="number"?r.jsx(St,{children:a}):a,[a]),c=P.useMemo(()=>({slots:o}),[o]);return r.jsx(Lt,{value:c,children:r.jsx(Q.span,{...i,className:O(o.base,t),"data-slot":"chip",children:d})})},St=({children:a,className:t,...n})=>{const{slots:l}=e.use(Lt);return r.jsx(Q.span,{className:O(l?.label,t),"data-slot":"chip-label",...n,children:a})},d0=Object.assign(at,{Root:at,Label:St});function Ht(a){let{onMoveStart:t,onMove:n,onMoveEnd:l}=a,s=e.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:o}=ze(),d=e.useCallback((g,p,A,b)=>{A===0&&b===0||(s.current.didMove||(s.current.didMove=!0,t?.({type:"movestart",pointerType:p,shiftKey:g.shiftKey,metaKey:g.metaKey,ctrlKey:g.ctrlKey,altKey:g.altKey})),n?.({type:"move",pointerType:p,deltaX:A,deltaY:b,shiftKey:g.shiftKey,metaKey:g.metaKey,ctrlKey:g.ctrlKey,altKey:g.altKey}))},[t,n,s]),c=Ge(d),u=e.useCallback((g,p)=>{ra(),s.current.didMove&&l?.({type:"moveend",pointerType:p,shiftKey:g.shiftKey,metaKey:g.metaKey,ctrlKey:g.ctrlKey,altKey:g.altKey})},[l,s]),v=Ge(u);return{moveProps:e.useMemo(()=>{let g={},p=()=>{la(),s.current.didMove=!1};{let b=x=>{if(x.pointerId===s.current.id){let V=x.pointerType||"mouse";c(x,V,x.pageX-(s.current.lastPosition?.pageX??0),x.pageY-(s.current.lastPosition?.pageY??0)),s.current.lastPosition={pageX:x.pageX,pageY:x.pageY}}},h=x=>{if(x.pointerId===s.current.id){let V=x.pointerType||"mouse";v(x,V),s.current.id=null;let Z=Je(Fe(x));o(Z,"pointermove",b,!1),o(Z,"pointerup",h,!1),o(Z,"pointercancel",h,!1)}};g.onPointerDown=x=>{if(x.button===0&&s.current.id==null){p(),x.stopPropagation(),x.preventDefault(),s.current.lastPosition={pageX:x.pageX,pageY:x.pageY},s.current.id=x.pointerId;let V=Je(Fe(x));i(V,"pointermove",b,!1),i(V,"pointerup",h,!1),i(V,"pointercancel",h,!1)}}}let A=(b,h,x)=>{p(),c(b,"keyboard",h,x),v(b,"keyboard")};return g.onKeyDown=b=>{switch(b.key){case"Left":case"ArrowLeft":b.preventDefault(),b.stopPropagation(),A(b,-1,0);break;case"Right":case"ArrowRight":b.preventDefault(),b.stopPropagation(),A(b,1,0);break;case"Up":case"ArrowUp":b.preventDefault(),b.stopPropagation(),A(b,0,-1);break;case"Down":case"ArrowDown":b.preventDefault(),b.stopPropagation(),A(b,0,1);break}},g},[i,o,s])}}const We=new WeakMap;function Ne(a,t){let n=We.get(a);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function u0(a,t,n){let{labelProps:l,fieldProps:s}=pt(a),i=a.orientation==="vertical";We.set(t,{id:l.id??s.id,"aria-describedby":a["aria-describedby"],"aria-details":a["aria-details"]});let{direction:o}=_e(),{addGlobalListener:d,removeGlobalListener:c}=ze();const u=e.useRef(null),v=o==="rtl",m=e.useRef(null),{moveProps:g}=Ht({onMoveStart(){m.current=null},onMove({deltaX:h,deltaY:x}){if(!n.current)return;let{height:V,width:Z}=n.current.getBoundingClientRect(),L=i?V:Z;m.current==null&&u.current!=null&&(m.current=t.getThumbPercent(u.current)*L);let E=i?x:h;if((i||v)&&(E=-E),m.current+=E,u.current!=null&&n.current){const j=Be(m.current/L,0,1);t.setThumbPercent(u.current,j)}},onMoveEnd(){u.current!=null&&(t.setThumbDragging(u.current,!1),u.current=null)}});let p=e.useRef(void 0),A=(h,x,V,Z)=>{if(n.current&&!a.isDisabled&&t.values.every((L,E)=>!t.isThumbDragging(E))){let{height:L,width:E,top:j,left:C}=n.current.getBoundingClientRect(),I=i?L:E,D=((i?Z:V)-(i?j:C))/I;(o==="rtl"||i)&&(D=1-D);let K=t.getPercentValue(D),$,S=t.values.findIndex(H=>K-H<0);if(S===0)$=S;else if(S===-1)$=t.values.length-1;else{let H=t.values[S-1],w=t.values[S];Math.abs(H-K)<Math.abs(w-K)?$=S-1:$=S}$>=0&&t.isThumbEditable($)?(h.preventDefault(),u.current=$,t.setFocusedThumb($),p.current=x,t.setThumbDragging(u.current,!0),t.setThumbValue($,K),d(window,"mouseup",b,!1),d(window,"touchend",b,!1),d(window,"pointerup",b,!1)):u.current=null}},b=h=>{(h.pointerId??h.changedTouches?.[0].identifier)===p.current&&(u.current!=null&&(t.setThumbDragging(u.current,!1),u.current=null),c(window,"mouseup",b,!1),c(window,"touchend",b,!1),c(window,"pointerup",b,!1))};return"htmlFor"in l&&l.htmlFor&&(delete l.htmlFor,l.onClick=()=>{document.getElementById(Ne(t,0))?.focus(),sa("keyboard")}),{labelProps:l,groupProps:{role:"group",...s},trackProps:k({onMouseDown(h){h.button!==0||h.altKey||h.ctrlKey||h.metaKey||A(h,void 0,h.clientX,h.clientY)},onPointerDown(h){h.pointerType==="mouse"&&(h.button!==0||h.altKey||h.ctrlKey||h.metaKey)||A(h,h.pointerId,h.clientX,h.clientY)},onTouchStart(h){A(h,h.changedTouches[0].identifier,h.changedTouches[0].clientX,h.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},g),outputProps:{htmlFor:t.values.map((h,x)=>Ne(t,x)).join(" "),"aria-live":"off"}}}function m0(a,t){let{index:n=0,isRequired:l,validationState:s,isInvalid:i,trackRef:o,inputRef:d,orientation:c=t.orientation,name:u,form:v}=a,m=a.isDisabled||t.isDisabled,g=c==="vertical",{direction:p}=_e(),{addGlobalListener:A,removeGlobalListener:b}=ze(),h=We.get(t);const{labelProps:x,fieldProps:V}=pt({...a,id:Ne(t,n),"aria-labelledby":`${h.id} ${a["aria-labelledby"]??""}`.trim()}),Z=t.values[n],L=e.useCallback(()=>{d.current&&ia(d.current)},[d]),E=t.focusedThumb===n;e.useEffect(()=>{E&&L()},[E,L]);let j=p==="rtl",C=e.useRef(null),I=w=>{t.setThumbDragging(n,!0),w(),t.setThumbDragging(n,!1)},{keyboardProps:q}=oa({shortcuts:{PageUp:()=>I(()=>{t.incrementThumb(n,t.pageSize)}),PageDown:()=>I(()=>{t.decrementThumb(n,t.pageSize)}),Home:()=>I(()=>{t.setThumbValue(n,t.getThumbMinValue(n))}),End:()=>I(()=>{t.setThumbValue(n,t.getThumbMaxValue(n))})},allowRepeats:!0}),{moveProps:Y}=Ht({onMoveStart(){C.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:w,deltaY:_,pointerType:ae,shiftKey:B}){const{getThumbPercent:ne,setThumbPercent:re,decrementThumb:y,incrementThumb:f,step:M,pageSize:F}=t;if(!o.current)return;let{width:X,height:Se}=o.current.getBoundingClientRect(),Ye=g?Se:X;if(C.current==null&&(C.current=ne(n)*Ye),ae==="keyboard")w>0&&j||w<0&&!j||_>0?y(n,B?F:M):f(n,B?F:M);else{let He=g?_:w;(g||j)&&(He=-He),C.current+=He,re(n,Be(C.current/Ye,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!m);const{focusableProps:z}=Ve(k(a,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),d);let D=e.useRef(void 0),K=w=>{L(),D.current=w,t.setThumbDragging(n,!0),A(window,"mouseup",$,!1),A(window,"touchend",$,!1),A(window,"pointerup",$,!1)},$=w=>{(w.pointerId??w.changedTouches?.[0].identifier)===D.current&&(L(),t.setThumbDragging(n,!1),b(window,"mouseup",$,!1),b(window,"touchend",$,!1),b(window,"pointerup",$,!1))},S=t.getThumbPercent(n);(g||p==="rtl")&&(S=1-S);let H=m?{}:k(q,Y,{onMouseDown:w=>{w.button!==0||w.altKey||w.ctrlKey||w.metaKey||K()},onPointerDown:w=>{w.button!==0||w.altKey||w.ctrlKey||w.metaKey||K(w.pointerId)},onTouchStart:w=>{K(w.changedTouches[0].identifier)}});return ca(d,t.defaultValues[n],w=>{t.setThumbValue(n,w)}),{inputProps:k(z,V,{type:"range",tabIndex:m?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:Z,name:u,form:v,disabled:m,"aria-orientation":c,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":l||void 0,"aria-invalid":i||s==="invalid"||void 0,"aria-errormessage":a["aria-errormessage"],"aria-describedby":[h["aria-describedby"],a["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[h["aria-details"],a["aria-details"]].filter(Boolean).join(" "),onChange:w=>{t.setThumbValue(n,parseFloat(Fe(w).value))}}),thumbProps:{...H,style:{position:"absolute",[g?"top":"left"]:`${S*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:x,isDragging:t.isThumbDragging(n),isDisabled:m,isFocused:E}}const f0=0,h0=100,b0=1;function p0(a){const{isDisabled:t=!1,minValue:n=f0,maxValue:l=h0,numberFormatter:s,step:i=b0,orientation:o="horizontal"}=a;let d=e.useMemo(()=>{let y=(l-n)/10;return y=he(y,0,y+i,i),Math.max(y,i)},[i,l,n]),c=e.useCallback(y=>y?.map((f,M)=>{let F=M===0?n:y[M-1],X=M===y.length-1?l:y[M+1];return he(f,F,X,i)}),[n,l,i]),u=e.useMemo(()=>c(rt(a.value)),[a.value,c]),v=e.useMemo(()=>c(rt(a.defaultValue)??[n]),[a.defaultValue,n,c]),m=lt(a.value,a.defaultValue,a.onChange),g=lt(a.value,a.defaultValue,a.onChangeEnd);const[p,A]=gt(u,v,m);let[b]=e.useState(p);const[h,x]=e.useState(new Array(p.length).fill(!1)),V=e.useRef(new Array(p.length).fill(!0)),[Z,L]=e.useState(void 0),E=e.useRef(p),j=e.useRef(h);let C=y=>{E.current=y,A(y)},I=y=>{j.current=y,x(y)};function q(y){return(y-n)/(l-n)}function Y(y){return y===0?n:p[y-1]}function z(y){return y===p.length-1?l:p[y+1]}function D(y){return V.current[y]}function K(y,f){V.current[y]=f}function $(y,f){if(t||!D(y))return;const M=Y(y),F=z(y);f=he(f,M,F,i);let X=nt(E.current,y,f);C(X)}function S(y,f){if(t||!D(y))return;f&&(E.current=p);const M=j.current[y];j.current=nt(j.current,y,f),I(j.current),g&&M&&!j.current.some(Boolean)&&g(E.current)}let H=e.useRef(null);function w(y=p){switch(typeof y=="number"&&(y=[y]),y.length){case 0:return"";case 1:return s.format(y[0]);case 2:return s.formatRange(y[0],y[1]);default:{let f=y.map(F=>s.format(F)),M=H.current;return(!M||M.resolvedOptions().locale!==s.resolvedOptions().locale)&&(M=H.current=new Intl.ListFormat(s.resolvedOptions().locale,{type:"unit"})),M.format(f)}}}function _(y,f){$(y,B(f))}function ae(y){return Math.round((y-n)/i)*i+n}function B(y){const f=y*(l-n)+n;return Be(ae(f),n,l)}function ne(y,f=1){let M=Math.max(f,i);$(y,he(p[y]+M,n,l,i))}function re(y,f=1){let M=Math.max(f,i);$(y,he(p[y]-M,n,l,i))}return{values:p,defaultValues:a.defaultValue!==void 0?v:b,getThumbValue:y=>p[y],setThumbValue:$,setThumbPercent:_,isThumbDragging:y=>h[y],setThumbDragging:S,focusedThumb:Z,setFocusedThumb:L,getThumbPercent:y=>q(p[y]),getValuePercent:q,getThumbValueLabel:y=>w(p[y]),getFormattedValue:w,getThumbMinValue:Y,getThumbMaxValue:z,getPercentValue:B,isThumbEditable:D,setThumbEditable:K,incrementThumb:ne,decrementThumb:re,step:i,pageSize:d,orientation:o,isDisabled:t}}function nt(a,t,n){return a[t]===n?a:[...a.slice(0,t),n,...a.slice(t+1)]}function rt(a){if(a!=null)return Array.isArray(a)?a:[a]}function lt(a,t,n){return l=>{n?.(typeof a=="number"||typeof t=="number"?l[0]:l)}}const g0=e.createContext(null),we=e.createContext(null),qe=e.createContext(null),Tt=e.createContext(null),v0=e.forwardRef(function(t,n){[t,n]=ge(t,n,g0);let l=e.useRef(null),s=da(t.formatOptions),i=p0({...t,numberFormatter:s}),[o,d]=vt(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:c,trackProps:u,labelProps:v,outputProps:m}=u0({...t,label:d},i,l),g=ee({...t,values:{orientation:i.orientation,isDisabled:i.isDisabled,state:i},defaultClassName:"react-aria-Slider"}),p=te(t,{global:!0});return delete p.id,P.createElement(ve,{values:[[we,i],[qe,{...u,ref:l}],[Tt,m],[xt,{...v,ref:o}]]},P.createElement(J.div,{...k(p,g,c),ref:n,slot:t.slot||void 0,"data-orientation":i.orientation,"data-disabled":i.isDisabled||void 0}))}),x0=e.forwardRef(function(t,n){[t,n]=ge(t,n,Tt);let{children:l,style:s,className:i,render:o,...d}=t,c=e.useContext(we),u=ee({className:i,style:s,children:l,render:o,defaultChildren:c.getFormattedValue(),defaultClassName:"react-aria-SliderOutput",values:{orientation:c.orientation,isDisabled:c.isDisabled,state:c}});return P.createElement(J.output,{...d,...u,ref:n,"data-orientation":c.orientation||void 0,"data-disabled":c.isDisabled||void 0})}),$0=e.forwardRef(function(t,n){[t,n]=ge(t,n,qe);let l=e.useContext(we),{onHoverStart:s,onHoverEnd:i,onHoverChange:o,...d}=t,{hoverProps:c,isHovered:u}=xe({onHoverStart:s,onHoverEnd:i,onHoverChange:o}),v=ee({...t,defaultClassName:"react-aria-SliderTrack",values:{orientation:l.orientation,isDisabled:l.isDisabled,isHovered:u,state:l}});return P.createElement(J.div,{...k(d,c),...v,ref:n,"data-hovered":u||void 0,"data-orientation":l.orientation||void 0,"data-disabled":l.isDisabled||void 0})}),y0=e.forwardRef(function(t,n){let{inputRef:l=null}=t,s=e.useContext(we),{ref:i}=$t(qe),{index:o=0}=t,d=e.useRef(null),c=l||d,[u,v]=vt(!t["aria-label"]&&!t["aria-labelledby"]),{thumbProps:m,inputProps:g,labelProps:p,isDragging:A,isFocused:b,isDisabled:h}=m0({...t,index:o,trackRef:i,inputRef:c,label:v},s),{focusProps:x,isFocusVisible:V}=Pe(),{hoverProps:Z,isHovered:L}=xe(t),E=ee({...t,defaultClassName:"react-aria-SliderThumb",values:{state:s,isHovered:L,isDragging:A,isFocused:b,isFocusVisible:V,isDisabled:h}}),j=te(t,{global:!0});return delete j.id,P.createElement(J.div,{...k(j,m,Z),...E,ref:n,style:{...m.style,...E.style},"data-hovered":L||void 0,"data-dragging":A||void 0,"data-focused":b||void 0,"data-focus-visible":V||void 0,"data-disabled":h||void 0},P.createElement(ua,null,P.createElement("input",{ref:c,...k(g,x)})),P.createElement(ve,{values:[[xt,{...p,ref:u}]]},E.children))});function A0(a,t){let n=t?.isDisabled,[l,s]=e.useState(!1);return ma(()=>{if(a?.current&&!n){let i=()=>{if(a.current){let d=fa(a.current,{tabbable:!0});s(!!d.nextNode())}};i();let o=new MutationObserver(i);return o.observe(a.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{o.disconnect()}}}),n?!1:l}const E0=1500,st=500;let le={},M0=0,de=!1,G=null,se=null;function Ct(a={}){let{delay:t=E0,closeDelay:n=st}=a,{isOpen:l,open:s,close:i}=ha(a),[o,d]=e.useState(!1),c=e.useMemo(()=>`${++M0}`,[]),u=e.useRef(null),v=e.useRef(i),m=()=>{le[c]=A},g=()=>{for(let h in le)h!==c&&(le[h](!0,!0),delete le[h])},p=h=>{u.current&&clearTimeout(u.current),u.current=null,g(),m(),d(!!h),de=!0,s(),G&&(clearTimeout(G),G=null),se&&(clearTimeout(se),se=null)},A=(h,x)=>{d(!!x),h||n<=0?(u.current&&clearTimeout(u.current),u.current=null,v.current()):u.current||(u.current=setTimeout(()=>{u.current=null,v.current()},n)),G&&(clearTimeout(G),G=null),de&&(se&&clearTimeout(se),se=setTimeout(()=>{delete le[c],se=null,de=!1},Math.max(st,n)))},b=()=>{g(),m(),!l&&!de?(G&&clearTimeout(G),G=setTimeout(()=>{G=null,de=!0,p(!1)},t)):l||p(!0)};return e.useEffect(()=>{v.current=i},[i]),e.useEffect(()=>()=>{u.current&&clearTimeout(u.current),le[c]&&delete le[c]},[c]),{isOpen:l,shouldSkipAnimation:o,open:h=>{!h&&t>0&&!u.current?b():p(de)},close:A}}const Ft=new WeakMap;function Me(a,t,n){return a?(typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${Ft.get(a)}-${n}-${t}`):""}function V0(a,t,n){let{key:l,isDisabled:s,shouldSelectOnPressUp:i}=a,{selectionManager:o,selectedKey:d}=t,c=l===d,u=s||t.isDisabled||t.selectionManager.isDisabled(l),v=t.collection.getItem(l),{itemProps:m,isPressed:g}=ba({selectionManager:o,key:l,ref:n,isDisabled:u,shouldSelectOnPressUp:i??v?.props.href!=null,linkBehavior:"selection"}),p=Me(t,l,"tab"),A=Me(t,l,"tabpanel"),{tabIndex:b}=m,h=te(v?.props,{labelable:!0});delete h.id;let x=pa(v?.props),{focusableProps:V}=Ve({...v?.props,isDisabled:u},n);return{tabProps:k(h,V,x,m,{id:p,"aria-selected":c,"aria-disabled":u||void 0,"aria-controls":c?A:void 0,tabIndex:u?void 0:b,role:"tab"}),isSelected:c,isDisabled:u,isPressed:g}}function P0(a,t,n){let l=A0(n)?void 0:0;const s=Me(t,a.id??t?.selectedKey,"tabpanel"),i=yt({...a,id:s,"aria-labelledby":Me(t,t?.selectedKey,"tab")});return{tabPanelProps:k(i,{tabIndex:l,role:"tabpanel","aria-describedby":a["aria-describedby"],"aria-details":a["aria-details"]})}}class w0{constructor(t,n,l,s=new Set){this.collection=t,this.flipDirection=n==="rtl",this.disabledKeys=s,this.tabDirection=l==="horizontal"}getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}isDisabled(t){return this.disabledKeys.has(t)||!!this.collection.getItem(t)?.props?.isDisabled}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.isDisabled(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.isDisabled(t)&&(t=this.getPreviousKey(t)),t}getKeyAbove(t){return this.tabDirection?null:this.getPreviousKey(t)}getKeyBelow(t){return this.tabDirection?null:this.getNextKey(t)}getNextKey(t){let n=t;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n)&&n!==t);return n}getPreviousKey(t){let n=t;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n)&&n!==t);return n}}function Z0(a,t,n){let{orientation:l="horizontal",keyboardActivation:s="automatic"}=a,{collection:i,selectionManager:o,disabledKeys:d}=t,{direction:c}=_e(),u=e.useMemo(()=>new w0(i,c,l,d),[i,d,l,c]),{collectionProps:v}=ga({ref:n,selectionManager:o,keyboardDelegate:u,selectOnFocus:s==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),m=At();Ft.set(t,m);let g=yt({...a,id:m});return{tabListProps:{...k(v,g),role:"tablist","aria-orientation":l,tabIndex:void 0}}}function j0(a){let[t,n]=gt(a.selectedKey,a.defaultSelectedKey??null,a.onSelectionChange),l=e.useMemo(()=>t!=null?[t]:[],[t]),{collection:s,disabledKeys:i,selectionManager:o}=o0({...a,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:l,onSelectionChange:c=>{if(c==="all")return;let u=c.values().next().value??null;u===t&&a.onSelectionChange&&a.onSelectionChange(u),n(u)}}),d=t!=null?s.getItem(t):null;return{collection:s,disabledKeys:i,selectionManager:o,selectedKey:t,setSelectedKey:n,selectedItem:d}}function L0(a){let t=j0({...a,onSelectionChange:a.onSelectionChange?o=>{o!=null&&a.onSelectionChange?.(o)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:a.defaultSelectedKey??it(a.collection,a.disabledKeys?new Set(a.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:l,selectedKey:s}=t,i=e.useRef(s);return e.useEffect(()=>{let o=s;a.selectedKey==null&&(n.isEmpty||o==null||!l.getItem(o))&&(o=it(l,t.disabledKeys),o!=null&&n.setSelectedKeys([o])),(o!=null&&n.focusedKey==null||!n.isFocused&&o!==i.current)&&n.setFocusedKey(o),i.current=o}),{...t,isDisabled:a.isDisabled||!1}}function it(a,t){let n=null;if(a){for(n=a.getFirstKey();n!=null&&(t.has(n)||a.getItem(n)?.props?.isDisabled)&&n!==a.getLastKey();)n=a.getKeyAfter(n);n!=null&&(t.has(n)||a.getItem(n)?.props?.isDisabled)&&n===a.getLastKey()&&(n=a.getFirstKey())}return n}const Ze=e.createContext(null),oe=e.createContext(null),S0=e.forwardRef(function(t,n){[t,n]=ge(t,n,Ze);let{children:l,orientation:s="horizontal"}=t;return l=e.useMemo(()=>typeof l=="function"?l({orientation:s,defaultChildren:null}):l,[l,s]),P.createElement(va,{content:l},i=>P.createElement(H0,{props:t,collection:i,tabsRef:n}))});function H0({props:a,tabsRef:t,collection:n}){let{orientation:l="horizontal"}=a,s=L0({...a,collection:n,children:void 0}),{focusProps:i,isFocused:o,isFocusVisible:d}=Pe({within:!0}),c=e.useMemo(()=>({orientation:l,isFocusWithin:o,isFocusVisible:d}),[l,o,d]),u=ee({...a,defaultClassName:"react-aria-Tabs",values:c}),v=te(a,{global:!0});return P.createElement(J.div,{...k(v,u,i),ref:t,slot:a.slot||void 0,"data-focused":o||void 0,"data-orientation":l,"data-focus-visible":d||void 0,"data-disabled":s.isDisabled||void 0},P.createElement(ve,{values:[[Ze,a],[oe,s]]},u.children))}const ot=e.forwardRef(function(t,n){return e.useContext(oe)?P.createElement(T0,{props:t,forwardedRef:n}):P.createElement(Aa,t)});function T0({props:a,forwardedRef:t}){let n=e.useContext(oe),{CollectionRoot:l}=e.useContext(Vt),{orientation:s="horizontal",keyboardActivation:i="automatic"}=$t(Ze),o=Ue(t),{tabListProps:d}=Z0({...a,orientation:s,keyboardActivation:i},n,o),c=ee({...a,children:null,defaultClassName:"react-aria-TabList",values:{orientation:s,state:n}}),u=te(a,{global:!0});return delete u.id,P.createElement(J.div,{...k(u,c,d),ref:o,"data-orientation":s||void 0},P.createElement(Va,null,P.createElement(l,{collection:n.collection,persistedKeys:Pa(n.selectionManager.focusedKey)})))}class C0 extends Ma{static{this.type="item"}}const F0=$a(C0,(a,t,n)=>{let l=e.useContext(oe),s=Ue(t),{tabProps:i,isSelected:o,isDisabled:d,isPressed:c}=V0({key:n.key,...a},l,s),{focusProps:u,isFocused:v,isFocusVisible:m}=Pe(),{hoverProps:g,isHovered:p}=xe({isDisabled:d,onHoverStart:a.onHoverStart,onHoverEnd:a.onHoverEnd,onHoverChange:a.onHoverChange}),A=ee({...a,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:o,isDisabled:d,isFocused:v,isFocusVisible:m,isPressed:c,isHovered:p}}),b=n.props.href?J.a:J.div,h=te(a,{global:!0});return delete h.id,delete h.onClick,P.createElement(b,{...k(h,A,i,u,g),ref:s,"data-selected":o||void 0,"data-disabled":d||void 0,"data-focused":v||void 0,"data-focus-visible":m||void 0,"data-pressed":c||void 0,"data-hovered":p||void 0},P.createElement(ya.Provider,{value:{isSelected:o}},A.children))}),k0=xa(function(t,n){const l=e.useContext(oe);let s=Ue(n),i=l.selectedKey===t.id,[o,d]=e.useState(l.selectedKey!=null?i:null);o==null&&l.selectedKey!=null?d(i):!i&&o&&d(!1);let c=Et(s,i);return!i&&!t.shouldForceMount&&!c?null:P.createElement(N0,{...t,tabPanelRef:s,isInitiallySelected:o||!1,isExiting:c})});function N0(a){let t=e.useContext(oe),{id:n,tabPanelRef:l,isInitiallySelected:s,isExiting:i,...o}=a,{tabPanelProps:d}=P0(a,t,l),{focusProps:c,isFocused:u,isFocusVisible:v}=Pe(),m=t.selectedKey===a.id,g=Mt(l)&&!s,p=ee({...a,defaultClassName:"react-aria-TabPanel",values:{isFocused:u,isFocusVisible:v,isInert:Qe(!m),isEntering:g,isExiting:i,state:t}}),A=te(o,{global:!0});delete A.id;let b=m?k(A,d,c,p):k(A,p);return P.createElement(J.div,{...b,ref:l,"data-focused":u||void 0,"data-focus-visible":v||void 0,inert:Qe(!m||a.inert),"data-inert":m?void 0:"true","data-entering":g||void 0,"data-exiting":i||void 0},P.createElement(ve,{values:[[Ze,null],[oe,null]]},P.createElement(Vt.Provider,{value:Ea},p.children)))}const Re=P.createContext(null);function R0(a){let{children:t}=a,n=e.useContext(Re),[l,s]=e.useState(0),i=e.useMemo(()=>({parent:n,modalCount:l,addModal(){s(o=>o+1),n&&n.addModal()},removeModal(){s(o=>o-1),n&&n.removeModal()}}),[n,l]);return P.createElement(Re.Provider,{value:i},t)}function D0(){let a=e.useContext(Re);return{modalProviderProps:{"aria-hidden":a&&a.modalCount>0?!0:void 0}}}function K0(a){let{modalProviderProps:t}=D0();return P.createElement("div",{"data-overlay-container":!0,...a,...t})}function I0(a){return P.createElement(R0,null,P.createElement(K0,a))}function O0(a){let t=wa(),{portalContainer:n=t?null:document.body,...l}=a,{getContainer:s}=Za();if(!a.portalContainer&&s&&(n=s()),P.useEffect(()=>{if(n?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let i=P.createElement(I0,l);return ja.createPortal(i,n)}function z0(a,t){let n=te(a,{labelable:!0}),{hoverProps:l}=xe({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:k(n,l,{role:"tooltip"})}}function _0(a,t,n){let{isDisabled:l,trigger:s,shouldCloseOnPress:i=!0}=a,o=At(),d=e.useRef(!1),c=e.useRef(!1),u=()=>{(d.current||c.current)&&t.open(c.current)},v=V=>{!d.current&&!c.current&&t.close(V)};e.useEffect(()=>{let V=Z=>{n&&n.current&&Z.key==="Escape"&&(Z.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",V,!0),()=>{document.removeEventListener("keydown",V,!0)}},[n,t]);let m=()=>{s!=="focus"&&(La()==="pointer"?d.current=!0:d.current=!1,u())},g=()=>{s!=="focus"&&(c.current=!1,d.current=!1,v())},p=()=>{i&&(c.current=!1,d.current=!1,v(!0))},A=()=>{Sa()&&(c.current=!0,u())},b=()=>{c.current=!1,d.current=!1,v(!0)},{hoverProps:h}=xe({isDisabled:l,onHoverStart:m,onHoverEnd:g}),{focusableProps:x}=Ve({isDisabled:l,onFocus:A,onBlur:b},n);return{triggerProps:{"aria-describedby":t.isOpen?o:void 0,...k(x,h,{onPointerDown:p,onKeyDown:p}),tabIndex:void 0},tooltipProps:{id:o}}}const pe=e.createContext(null),kt=e.createContext(null);function B0(a){let t=Ct(a),n=e.useRef(null),{triggerProps:l,tooltipProps:s}=_0(a,t,n);return P.createElement(ve,{values:[[pe,t],[kt,{...s,triggerRef:n}]]},P.createElement(Ha,{...l,ref:n},a.children))}const U0=e.forwardRef(function({UNSTABLE_portalContainer:t,...n},l){[n,l]=ge(n,l,kt);let s=e.useContext(pe),i=Ct(n),o=n.isOpen!=null||n.defaultOpen!=null||!s?i:s,d=Et(l,o.isOpen),c=n.isExiting||!o.shouldSkipAnimation&&d||!1;return!o.isOpen&&!c?null:P.createElement(O0,{portalContainer:t},P.createElement(W0,{...n,tooltipRef:l,isExiting:c}))});function W0(a){let t=e.useContext(pe),n=e.useRef(null),{overlayProps:l,arrowProps:s,placement:i,triggerAnchorPoint:o}=Ta({placement:a.placement||"top",targetRef:a.triggerRef,overlayRef:a.tooltipRef,arrowRef:n,offset:a.offset,crossOffset:a.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:a.arrowBoundaryOffset,shouldFlip:a.shouldFlip,containerPadding:a.containerPadding,onClose:()=>t.close(!0)}),d=Mt(a.tooltipRef,!!i),c=a.isEntering||!t.shouldSkipAnimation&&d||!1,u=ee({...a,defaultClassName:"react-aria-Tooltip",values:{placement:i,isEntering:c,isExiting:a.isExiting,state:t}});a=k(a,l);let{tooltipProps:v}=z0(a,t),m=te(a,{global:!0});return P.createElement(J.div,{...k(m,u,v),ref:a.tooltipRef,style:{...l.style,"--trigger-anchor-point":o?`${o.x}px ${o.y}px`:void 0,...u.style},"data-placement":i??void 0,"data-entering":c||void 0,"data-exiting":a.isExiting||void 0},P.createElement(Ca.Provider,{value:{...s,placement:i,ref:n}},u.children))}const je=e.createContext({}),De=({children:a,className:t,color:n,size:l,...s})=>{const i=P.useMemo(()=>a0({color:n,size:l}),[n,l]);return r.jsx(Fa,{"data-slot":"progress-bar",...s,className:W(t,i.base()),children:o=>r.jsx(je,{value:{slots:i,state:o},children:typeof a=="function"?a(o):a})})};De.displayName="HeroUI.ProgressBar";const Nt=({children:a,className:t,...n})=>{const{slots:l,state:s}=e.use(je);return r.jsx(Q.span,{className:O(l?.output,t),"data-slot":"progress-bar-output",...n,children:a??s?.valueText})};Nt.displayName="HeroUI.ProgressBar.Output";const Rt=({children:a,className:t,...n})=>{const{slots:l}=e.use(je);return r.jsx(Q.div,{className:O(l?.track,t),"data-slot":"progress-bar-track",...n,children:a})};Rt.displayName="HeroUI.ProgressBar.Track";const Dt=({className:a,style:t,...n})=>{const{slots:l,state:s}=e.use(je);return r.jsx(Q.div,{className:O(l?.fill,a),"data-slot":"progress-bar-fill",style:{...t,width:s?.isIndeterminate?void 0:`${s?.percentage??0}%`},...n})};Dt.displayName="HeroUI.ProgressBar.Fill";const Te=Object.assign(De,{Root:De,Output:Nt,Track:Rt,Fill:Dt}),q0=a=>{const{containerRef:t,isEnabled:n,offset:l,onVisibilityChange:s,orientation:i,visibility:o}=a,d=e.useRef(s);e.useEffect(()=>{d.current=s},[s]);const c=e.useRef(null),u=e.useRef(null),v=e.useCallback(()=>{const m=t.current;if(!m)return;const g=i==="vertical",p=g?m.scrollTop:Math.abs(m.scrollLeft),A=g?m.scrollHeight:m.scrollWidth,b=g?m.clientHeight:m.clientWidth,h=p>l,x=p+b+l<A-1,V=c.current;V&&V.hasScrollBefore===h&&V.hasScrollAfter===x||(c.current={hasScrollBefore:h,hasScrollAfter:x},u.current!==null&&cancelAnimationFrame(u.current),u.current=requestAnimationFrame(()=>{u.current=null;const Z=d.current;g?h&&x?(m.dataset.topBottomScroll="true",delete m.dataset.topScroll,delete m.dataset.bottomScroll,Z?.("both")):(m.dataset.topScroll=String(h),m.dataset.bottomScroll=String(x),delete m.dataset.topBottomScroll,Z&&Z(h?"top":x?"bottom":"none")):h&&x?(m.dataset.leftRightScroll="true",delete m.dataset.leftScroll,delete m.dataset.rightScroll,Z?.("both")):(m.dataset.leftScroll=String(h),m.dataset.rightScroll=String(x),delete m.dataset.leftRightScroll,Z&&Z(h?"left":x?"right":"none"))}))},[t,i,l]);e.useEffect(()=>{const m=t.current;if(!m||!n||o!=="auto")return;v(),m.addEventListener("scroll",v,{passive:!0});const g=new ResizeObserver(v);g.observe(m);const p=new MutationObserver(v);return p.observe(m,{attributeFilter:["class","style"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>{m.removeEventListener("scroll",v),g.disconnect(),p.disconnect(),u.current!==null&&(cancelAnimationFrame(u.current),u.current=null),c.current=null}},[t,o,n,v])},Ke=({children:a,className:t,hideScrollBar:n=!1,isEnabled:l=!0,offset:s=0,onVisibilityChange:i,orientation:o="vertical",ref:d,size:c=40,style:u,variant:v="fade",visibility:m="auto",...g})=>{const p=e.useRef(null);q0({containerRef:p,isEnabled:l,offset:s,onVisibilityChange:i,orientation:o,visibility:m}),ka(()=>{const x=p.current;!x||m==="auto"||(delete x.dataset.topScroll,delete x.dataset.bottomScroll,delete x.dataset.topBottomScroll,delete x.dataset.leftScroll,delete x.dataset.rightScroll,delete x.dataset.leftRightScroll,m==="both"?x.dataset[o==="vertical"?"topBottomScroll":"leftRightScroll"]="true":m!=="none"&&(x.dataset[`${m}Scroll`]="true"))},[m,o]);const A=e.useMemo(()=>n0({hideScrollBar:n,orientation:o,variant:v}),[o,n,v]),b={"--scroll-shadow-size":`${c}px`,"--scroll-shadow-offset":`${s}px`,...u},h=e.useMemo(()=>Na(p,d),[p,d]);return r.jsx("div",{ref:h,className:A.base({className:t}),"data-orientation":o,"data-scroll-shadow-mode":l&&m==="auto"?"auto":"manual","data-scroll-shadow-size":c,"data-slot":"scroll-shadow",style:b,...g,children:a})};Ke.displayName="HeroUI.ScrollShadow";const X0=Object.assign(Ke,{Root:Ke}),me=e.createContext({}),ct=({children:a,className:t,orientation:n="horizontal",...l})=>{const s=P.useMemo(()=>r0({}),[]);return r.jsx(v0,{"data-slot":"slider",orientation:n,...l,className:W(t,s.base()),children:i=>r.jsx(me,{value:{slots:s,state:i},children:typeof a=="function"?a(i):a})})},Y0=({children:a,className:t,...n})=>{const{slots:l}=e.use(me);return r.jsx(x0,{className:W(t,l?.output()),"data-slot":"slider-output",...n,children:a?s=>r.jsx(r.Fragment,{children:typeof a=="function"?a(s):a}):({state:s})=>s.values.map((i,o)=>s.getThumbValueLabel(o)).join(" – ")})},G0=({children:a,className:t,...n})=>{const{slots:l,state:s}=e.use(me),{getThumbPercent:i,values:o}=s?.state||{},d=o?.length&&o.length===1,[c,u]=[o?.length&&o.length>1?i?.(0):0,i?.(o?.length?o.length-1:0)].sort(),v=(u-c)*100;return r.jsx($0,{className:W(t,l?.track()),"data-disabled":ue(s?.isDisabled),"data-slot":"slider-track",...d?{"data-fill-start":ue(v>0),"data-fill-end":ue(v==100)}:{"data-fill-start":ue(c==0),"data-fill-end":ue(c*100+v==100)},...n,children:m=>r.jsx(r.Fragment,{children:typeof a=="function"?a(m):a})})},J0=({className:a,style:t,...n})=>{const{slots:l,state:s}=e.use(me),{getThumbPercent:i,orientation:o,values:d}=s?.state||{},[c,u]=[d?.length&&d.length>1?i?.(0):0,i?.(d?.length?d.length-1:0)].sort(),v=o==="vertical";return r.jsx(Q.div,{className:O(l?.fill,a),"data-disabled":ue(s?.isDisabled),"data-slot":"slider-fill",style:{...t,[v?"bottom":"left"]:`${c*100}%`,...v?{height:`${(u-c)*100}%`}:{width:`${(u-c)*100}%`}},...n})},Q0=({children:a,className:t,...n})=>{const{slots:l}=e.use(me);return r.jsx(y0,{className:W(t,l?.thumb()),"data-slot":"slider-thumb",...n,children:s=>r.jsx(r.Fragment,{children:typeof a=="function"?a(s):a})})},e1=({className:a,...t})=>{const{slots:n}=e.use(me);return r.jsx(Q.div,{className:O(n?.marks,a),"data-slot":"slider-marks",...t})},ye=Object.assign(ct,{Root:ct,Output:Y0,Track:G0,Fill:J0,Thumb:Q0,Marks:e1}),fe=e.createContext({}),Kt=za("tabs.listContainer"),dt=({align:a,children:t,className:n,orientation:l="horizontal",variant:s,...i})=>{const o=P.useMemo(()=>l0({align:a,variant:s}),[a,s]),d=P.useMemo(()=>({orientation:l,slots:o}),[l,o]);return r.jsx(fe,{value:d,children:r.jsx(S0,{...i,className:W(n,o.base()),"data-slot":"tabs",orientation:l,children:t})})},t1=({children:a,className:t,render:n,...l})=>r.jsx(Kt.Injector,{...l,className:t,render:n,children:a}),a1=({children:a,className:t,...n})=>{const{orientation:l="horizontal",slots:s}=e.use(fe),i=e.useRef(null),o=l==="vertical",[d,c]=Kt.useSlot(n),u=e.useCallback(p=>{const A=i.current;if(!A)return;const b=o?A.clientHeight:A.clientWidth,h=o?A.scrollHeight:A.scrollWidth,x=Math.max(0,h-b),V=!o&&getComputedStyle(A).direction==="rtl",Z=p*b*.8*(V?-1:1),L=o?A.scrollTop:A.scrollLeft,E=Math.min(V?0:x,Math.max(V?-x:0,L+Z));E!==L&&A.scrollTo({behavior:"smooth",[o?"top":"left"]:E})},[o]);if(!d)return r.jsx(ot,{...c,className:W(t,s?.tabList()),"data-slot":"tabs-list",children:a});const{className:v,render:m,...g}=d;return r.jsx(ot,{...c,className:W(t,s?.tabList()),"data-slot":"tabs-list",render:p=>{const{children:A,className:b,ref:h,...x}=p;return r.jsxs(Q.div,{className:O(s?.tabListContainer,v),"data-slot":"tabs-list-container",render:m,...g,children:[r.jsx(X0,{ref:i,hideScrollBar:!0,className:O(s?.scroller),orientation:l,size:64,children:r.jsx("div",{...x,ref:h,className:b,children:A})}),r.jsx("button",{"aria-label":o?"Scroll tabs up":"Scroll tabs left",className:O(s?.scrollPrev),tabIndex:-1,type:"button",onClick:()=>u(-1),children:o?r.jsx(Da,{}):r.jsx(Ka,{})}),r.jsx("button",{"aria-label":o?"Scroll tabs down":"Scroll tabs right",className:O(s?.scrollNext),tabIndex:-1,type:"button",onClick:()=>u(1),children:o?r.jsx(Ia,{}):r.jsx(Oa,{})})]})},children:a})},n1=({children:a,className:t,...n})=>{const{slots:l}=e.use(fe);return r.jsx(F0,{...n,className:W(t,l?.tab()),"data-slot":"tabs-tab",children:a})},r1=({className:a,...t})=>{const{slots:n}=e.use(fe);return r.jsx(Ra,{className:O(n?.tabIndicator,a),"data-slot":"tabs-indicator",...t})},l1=({children:a,className:t,...n})=>{const{slots:l}=e.use(fe);return r.jsx(k0,{...n,className:W(t,l?.tabPanel()),"data-slot":"tabs-panel",children:a})},s1=({className:a,...t})=>{const{slots:n}=e.use(fe);return r.jsx(Q.span,{"aria-hidden":"true",className:O(n?.separator,a),"data-slot":"tabs-separator",...t})},U=Object.assign(dt,{Root:dt,ListContainer:t1,List:a1,Tab:n1,Indicator:r1,Separator:s1,Panel:l1}),ut=({className:a,fullWidth:t,variant:n,...l})=>{const s=e.use(_a),i=n??s?.variant;return r.jsx(Ba,{"data-slot":"textarea",className:W(a,s0({fullWidth:t,variant:i})),...l})},i1=Object.assign(ut,{Root:ut}),mt=a=>{if(!a)return;const t=a.trim(),n=parseFloat(t);if(!Number.isNaN(n))return t.endsWith("ms")?n:t.endsWith("s")?n*1e3:n},Xe=e.createContext({}),o1=({children:a,shouldSkipAnimation:t})=>{const n=e.use(pe);return!n||t?a:r.jsx(pe,{value:{...n,shouldSkipAnimation:!1},children:a})},ft=({children:a,closeDelay:t,delay:n,shouldSkipAnimation:l=!1,...s})=>{const i=P.useMemo(()=>i0(),[]),o=et("--tooltip-delay"),d=et("--tooltip-close-delay"),c=n??mt(o),u=t??mt(d),v=P.useMemo(()=>({slots:i}),[i]);return r.jsx(Xe,{value:v,children:r.jsx(B0,{closeDelay:u,"data-slot":"tooltip-root",delay:c,...s,children:r.jsx(o1,{shouldSkipAnimation:l,children:a})})})},c1=({children:a,className:t,offset:n,showArrow:l=!1,...s})=>{const{slots:i}=e.use(Xe),o=n||(l?7:3);return r.jsx(U0,{...s,className:W(t,i?.base()),offset:o,children:a})},d1=({children:a,className:t,...n})=>{const l=r.jsx("svg",{"data-slot":"overlay-arrow",fill:"none",height:"12",viewBox:"0 0 12 12",width:"12",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M0 0C5.48483 8 6.5 8 12 0Z"})}),s=P.isValidElement(a)?P.cloneElement(a,{"data-slot":"overlay-arrow"}):l;return r.jsx(Ua,{"data-slot":"tooltip-arrow",...n,className:t,children:s})},u1=({children:a,className:t,...n})=>{const{slots:l}=e.use(Xe),s=e.useRef(null),{focusableProps:i}=Ve({},s);return r.jsx(Q.div,{ref:s,className:O(l?.trigger,t),"data-slot":"tooltip-trigger",role:"button",...k(i,n),children:a})},ht=Object.assign(ft,{Root:ft,Trigger:u1,Content:c1,Arrow:d1}),m1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),e.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z"}))]]),f1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M228,128a100,100,0,0,1-98.66,100H128a99.39,99.39,0,0,1-68.62-27.29,12,12,0,0,1,16.48-17.45,76,76,0,1,0-1.57-109c-.13.13-.25.25-.39.37L54.89,92H72a12,12,0,0,1,0,24H24a12,12,0,0,1-12-12V56a12,12,0,0,1,24,0V76.72L57.48,57.06A100,100,0,0,1,228,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),e.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L60.63,81.29l17,17A8,8,0,0,1,72,112H24a8,8,0,0,1-8-8V56A8,8,0,0,1,29.66,50.3L49.31,70,60.25,60A96,96,0,0,1,224,128Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M222,128a94,94,0,0,1-92.74,94H128a93.43,93.43,0,0,1-64.5-25.65,6,6,0,1,1,8.24-8.72A82,82,0,1,0,70,70l-.19.19L39.44,98H72a6,6,0,0,1,0,12H24a6,6,0,0,1-6-6V56a6,6,0,0,1,12,0V90.34L61.63,61.4A94,94,0,0,1,222,128Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M220,128a92,92,0,0,1-90.77,92H128a91.47,91.47,0,0,1-63.13-25.1,4,4,0,1,1,5.5-5.82A84,84,0,1,0,68.6,68.57l-.13.12L34.3,100H72a4,4,0,0,1,0,8H24a4,4,0,0,1-4-4V56a4,4,0,0,1,8,0V94.89l35-32A92,92,0,0,1,220,128Z"}))]]),h1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M220,48V96a12,12,0,0,1-24,0V77l-35.51,35.52a12,12,0,0,1-17-17L179,60H160a12,12,0,0,1,0-24h48A12,12,0,0,1,220,48ZM95.51,143.51,60,179V160a12,12,0,0,0-24,0v48a12,12,0,0,0,12,12H96a12,12,0,0,0,0-24H77l35.52-35.51a12,12,0,0,0-17-17ZM208,148a12,12,0,0,0-12,12v19l-35.51-35.52a12,12,0,0,0-17,17L179,196H160a12,12,0,0,0,0,24h48a12,12,0,0,0,12-12V160A12,12,0,0,0,208,148ZM77,60H96a12,12,0,0,0,0-24H48A12,12,0,0,0,36,48V96a12,12,0,0,0,24,0V77l35.51,35.52a12,12,0,0,0,17-17Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M208,48V208H48V48Z",opacity:"0.2"}),e.createElement("path",{d:"M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M109.66,146.34a8,8,0,0,1,0,11.32L83.31,184l18.35,18.34A8,8,0,0,1,96,216H48a8,8,0,0,1-8-8V160a8,8,0,0,1,13.66-5.66L72,172.69l26.34-26.35A8,8,0,0,1,109.66,146.34ZM83.31,72l18.35-18.34A8,8,0,0,0,96,40H48a8,8,0,0,0-8,8V96a8,8,0,0,0,13.66,5.66L72,83.31l26.34,26.35a8,8,0,0,0,11.32-11.32ZM208,40H160a8,8,0,0,0-5.66,13.66L172.69,72,146.34,98.34a8,8,0,0,0,11.32,11.32L184,83.31l18.34,18.35A8,8,0,0,0,216,96V48A8,8,0,0,0,208,40Zm3.06,112.61a8,8,0,0,0-8.72,1.73L184,172.69l-26.34-26.35a8,8,0,0,0-11.32,11.32L172.69,184l-18.35,18.34A8,8,0,0,0,160,216h48a8,8,0,0,0,8-8V160A8,8,0,0,0,211.06,152.61Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M214,48V96a6,6,0,0,1-12,0V62.48l-45.76,45.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM99.76,147.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l45.76-45.76a6,6,0,0,0-8.48-8.48ZM208,154a6,6,0,0,0-6,6v33.52l-45.76-45.76a6,6,0,0,0-8.48,8.48L193.52,202H160a6,6,0,0,0,0,12h48a6,6,0,0,0,6-6V160A6,6,0,0,0,208,154ZM62.48,54H96a6,6,0,0,0,0-12H48a6,6,0,0,0-6,6V96a6,6,0,0,0,12,0V62.48l45.76,45.76a6,6,0,0,0,8.48-8.48Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M212,48V96a4,4,0,0,1-8,0V57.66l-49.17,49.17a4,4,0,0,1-5.66-5.66L198.34,52H160a4,4,0,0,1,0-8h48A4,4,0,0,1,212,48ZM101.17,149.17,52,198.34V160a4,4,0,0,0-8,0v48a4,4,0,0,0,4,4H96a4,4,0,0,0,0-8H57.66l49.17-49.17a4,4,0,0,0-5.66-5.66ZM208,156a4,4,0,0,0-4,4v38.34l-49.17-49.17a4,4,0,0,0-5.66,5.66L198.34,204H160a4,4,0,0,0,0,8h48a4,4,0,0,0,4-4V160A4,4,0,0,0,208,156ZM57.66,52H96a4,4,0,0,0,0-8H48a4,4,0,0,0-4,4V96a4,4,0,0,0,8,0V57.66l49.17,49.17a4,4,0,0,0,5.66-5.66Z"}))]]),b1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),e.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),p1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),e.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),g1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,20A108,108,0,0,0,31.85,177.23L21,209.66A20,20,0,0,0,46.34,235l32.43-10.81A108,108,0,1,0,128,20Zm0,192a84,84,0,0,1-42.06-11.27,12,12,0,0,0-6-1.62,12.1,12.1,0,0,0-3.8.62l-29.79,9.93,9.93-29.79a12,12,0,0,0-1-9.81A84,84,0,1,1,128,212Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),e.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M232,128A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,26A102,102,0,0,0,38.35,176.69L26.73,211.56a14,14,0,0,0,17.71,17.71l34.87-11.62A102,102,0,1,0,128,26Zm0,192a90,90,0,0,1-45.06-12.08,6.09,6.09,0,0,0-3-.81,6.2,6.2,0,0,0-1.9.31L40.65,217.88a2,2,0,0,1-2.53-2.53L50.58,178a6,6,0,0,0-.5-4.91A90,90,0,1,1,128,218Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,28A100,100,0,0,0,40.53,176.5l-11.9,35.69a12,12,0,0,0,15.18,15.18l35.69-11.9A100,100,0,1,0,128,28Zm0,192a92,92,0,0,1-46.07-12.35,4.05,4.05,0,0,0-2-.54,3.93,3.93,0,0,0-1.27.21L41.28,219.78a4,4,0,0,1-5.06-5.06l12.46-37.38a4,4,0,0,0-.33-3.27A92,92,0,1,1,128,220Z"}))]]),v1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),e.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"}))]]),x1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,44H32A20,20,0,0,0,12,64V192a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V64A20,20,0,0,0,224,44Zm-4,144H36V68H220ZM52,128a44,44,0,0,1,66-38.11,12,12,0,0,1-12,20.78,20,20,0,1,0,0,34.66,12,12,0,1,1,12,20.77A44,44,0,0,1,52,128Zm80,0a44,44,0,0,1,66-38.11,12,12,0,0,1-12,20.78,20,20,0,1,0,0,34.66,12,12,0,1,1,12,20.77A44,44,0,0,1,132,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M232,64V192a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H224A8,8,0,0,1,232,64Z",opacity:"0.2"}),e.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,144H32V64H224V192ZM118.93,151.71A8,8,0,0,1,116,162.64a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58A8,8,0,0,1,118.93,151.71Zm80,0A8,8,0,0,1,196,162.64a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58A8,8,0,0,1,198.93,151.71Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM116,162.64a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58,8,8,0,0,1,8,13.85Zm80,0a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58,8,8,0,0,1,8,13.85Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,50H32A14,14,0,0,0,18,64V192a14,14,0,0,0,14,14H224a14,14,0,0,0,14-14V64A14,14,0,0,0,224,50Zm2,142a2,2,0,0,1-2,2H32a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H224a2,2,0,0,1,2,2ZM117.19,152.71a6,6,0,0,1-2.19,8.2,38,38,0,1,1,0-65.82,6,6,0,1,1-6,10.38,26,26,0,1,0,0,45.05A6,6,0,0,1,117.19,152.71Zm80,0a6,6,0,0,1-2.19,8.2,38,38,0,1,1,0-65.82,6,6,0,1,1-6,10.38,26,26,0,1,0,0,45.05A6,6,0,0,1,197.19,152.71Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,144H32V64H224V192ZM118.92,151.71A8,8,0,0,1,116,162.64a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58A8,8,0,0,1,118.92,151.71Zm80,0A8,8,0,0,1,196,162.64a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58A8,8,0,0,1,198.92,151.71Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,52H32A12,12,0,0,0,20,64V192a12,12,0,0,0,12,12H224a12,12,0,0,0,12-12V64A12,12,0,0,0,224,52Zm4,140a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H224a4,4,0,0,1,4,4ZM115.46,153.71a4,4,0,0,1-1.46,5.47,36,36,0,1,1,0-62.36,4,4,0,0,1-4,6.92,28,28,0,1,0,0,48.52A4,4,0,0,1,115.46,153.71Zm80,0a4,4,0,0,1-1.46,5.47,36,36,0,1,1,0-62.36,4,4,0,0,1-4,6.92,28,28,0,1,0,0,48.52A4,4,0,0,1,195.46,153.71Z"}))]]),$1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M246.81,111.29,158.63,55.12A19.91,19.91,0,0,0,128,71.84v30L54.63,55.12A19.91,19.91,0,0,0,24,71.84V184.16a19.93,19.93,0,0,0,30.63,16.72L128,154.15v30a19.93,19.93,0,0,0,30.63,16.72l88.18-56.17a19.79,19.79,0,0,0,0-33.42ZM48,176.64V79.36L124.38,128Zm104,0V79.36L228.38,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M144,128a7.76,7.76,0,0,1-3.63,6.59L52.18,190.74A7.91,7.91,0,0,1,40,184.15V71.85a7.91,7.91,0,0,1,12.18-6.59l88.19,56.15A7.76,7.76,0,0,1,144,128Zm100.37-6.59L156.18,65.26A7.91,7.91,0,0,0,144,71.85v112.3a7.91,7.91,0,0,0,12.18,6.59l88.19-56.15A7.8,7.8,0,0,0,244.37,121.41Z",opacity:"0.2"}),e.createElement("path",{d:"M248.67,114.66,160.48,58.5A15.91,15.91,0,0,0,136,71.84v37.3L56.48,58.5A15.91,15.91,0,0,0,32,71.84V184.16A15.92,15.92,0,0,0,56.48,197.5L136,146.86v37.3a15.92,15.92,0,0,0,24.48,13.34l88.19-56.16a15.8,15.8,0,0,0,0-26.68ZM48,183.94V72.07L135.82,128Zm104,0V72.07L239.82,128Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M256,128a15.76,15.76,0,0,1-7.33,13.34L160.48,197.5A15.91,15.91,0,0,1,136,184.16v-37.3L56.48,197.5A15.91,15.91,0,0,1,32,184.16V71.84A15.91,15.91,0,0,1,56.48,58.5L136,109.14V71.84A15.91,15.91,0,0,1,160.48,58.5l88.19,56.16A15.76,15.76,0,0,1,256,128Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M247.59,116.35,159.41,60.18a14,14,0,0,0-14.22-.46A13.83,13.83,0,0,0,138,71.84v41L55.41,60.18a14,14,0,0,0-14.22-.46A13.83,13.83,0,0,0,34,71.84V184.16a13.83,13.83,0,0,0,7.19,12.12,14,14,0,0,0,14.22-.46L138,143.21v40.95a13.83,13.83,0,0,0,7.19,12.12,14,14,0,0,0,14.22-.46l88.18-56.17a13.79,13.79,0,0,0,0-23.3ZM137.15,129.53,49,185.69a1.9,1.9,0,0,1-2,.06,1.73,1.73,0,0,1-1-1.59V71.84a1.73,1.73,0,0,1,1-1.59,2,2,0,0,1,1-.26,1.87,1.87,0,0,1,1,.32l88.19,56.16a1.8,1.8,0,0,1,0,3.06Zm104,0L153,185.69a1.9,1.9,0,0,1-2,.06,1.73,1.73,0,0,1-1-1.59V71.84a1.73,1.73,0,0,1,1-1.59,2,2,0,0,1,1-.26,1.87,1.87,0,0,1,1,.32l88.19,56.16a1.8,1.8,0,0,1,0,3.06Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M248.67,114.66,160.48,58.5A15.91,15.91,0,0,0,136,71.84v37.3L56.48,58.5A15.91,15.91,0,0,0,32,71.84V184.16A15.92,15.92,0,0,0,56.48,197.5L136,146.86v37.3a15.92,15.92,0,0,0,24.48,13.34l88.19-56.16a15.8,15.8,0,0,0,0-26.68ZM48,183.94V72.07L135.82,128Zm104,0V72.07L239.82,128Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M246.52,118,158.33,61.87a12,12,0,0,0-12.18-.39A11.66,11.66,0,0,0,140,71.84v44.59L54.33,61.87a12,12,0,0,0-12.18-.39A11.66,11.66,0,0,0,36,71.84V184.16a11.66,11.66,0,0,0,6.15,10.36,12,12,0,0,0,12.18-.39L140,139.57v44.59a11.66,11.66,0,0,0,6.15,10.36,12,12,0,0,0,12.18-.39L246.52,138a11.81,11.81,0,0,0,0-19.94Zm-108.3,13.19L50,187.38a3.91,3.91,0,0,1-4,.13,3.76,3.76,0,0,1-2-3.35V71.84a3.76,3.76,0,0,1,2-3.35,4,4,0,0,1,1.91-.5,3.94,3.94,0,0,1,2.13.63l88.18,56.16a3.8,3.8,0,0,1,0,6.44Zm104,0L154,187.38a3.91,3.91,0,0,1-4,.13,3.76,3.76,0,0,1-2-3.35V71.84a3.76,3.76,0,0,1,2-3.35,4,4,0,0,1,1.91-.5,3.94,3.94,0,0,1,2.13.63l88.18,56.16a3.8,3.8,0,0,1,0,6.44Z"}))]]),y1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M230.14,25.86a20,20,0,0,0-19.57-5.11l-.22.07L18.44,79a20,20,0,0,0-3.06,37.25L99,157l40.71,83.65a19.81,19.81,0,0,0,18,11.38c.57,0,1.15,0,1.73-.07A19.82,19.82,0,0,0,177,237.56L235.18,45.65a1.42,1.42,0,0,0,.07-.22A20,20,0,0,0,230.14,25.86ZM156.91,221.07l-34.37-70.64,46-45.95a12,12,0,0,0-17-17l-46,46L34.93,99.09,210,46Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M223.69,42.18l-58.22,192a8,8,0,0,1-14.92,1.25L108,148,20.58,105.45a8,8,0,0,1,1.25-14.92l192-58.22A8,8,0,0,1,223.69,42.18Z",opacity:"0.2"}),e.createElement("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M231.4,44.34s0,.1,0,.15l-58.2,191.94a15.88,15.88,0,0,1-14,11.51q-.69.06-1.38.06a15.86,15.86,0,0,1-14.42-9.15L107,164.15a4,4,0,0,1,.77-4.58l57.92-57.92a8,8,0,0,0-11.31-11.31L96.43,148.26a4,4,0,0,1-4.58.77L17.08,112.64a16,16,0,0,1,2.49-29.8l191.94-58.2.15,0A16,16,0,0,1,231.4,44.34Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M225.88,30.12a13.83,13.83,0,0,0-13.7-3.58l-.11,0L20.14,84.77A14,14,0,0,0,18,110.85l85.56,41.64L145.12,238a13.87,13.87,0,0,0,12.61,8c.4,0,.81,0,1.21-.05a13.9,13.9,0,0,0,12.29-10.09l58.2-191.93,0-.11A13.83,13.83,0,0,0,225.88,30.12Zm-8,10.4L159.73,232.43l0,.11a2,2,0,0,1-3.76.26l-40.68-83.58,49-49a6,6,0,1,0-8.49-8.49l-49,49L23.15,100a2,2,0,0,1,.31-3.74l.11,0L215.48,38.08a1.94,1.94,0,0,1,1.92.52A2,2,0,0,1,217.92,40.52Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224.47,31.52a11.87,11.87,0,0,0-11.82-3L20.74,86.67a12,12,0,0,0-1.91,22.38L105,151l41.92,86.15A11.88,11.88,0,0,0,157.74,244c.34,0,.69,0,1,0a11.89,11.89,0,0,0,10.52-8.63l58.21-192,0-.08A11.85,11.85,0,0,0,224.47,31.52Zm-4.62,9.54-58.23,192a4,4,0,0,1-7.48.59l-41.3-84.86,50-50a4,4,0,1,0-5.66-5.66l-50,50-84.9-41.31a3.88,3.88,0,0,1-2.27-4,3.93,3.93,0,0,1,3-3.54L214.9,36.16A3.93,3.93,0,0,1,216,36a4,4,0,0,1,2.79,1.19A3.93,3.93,0,0,1,219.85,41.06Z"}))]]),A1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M200,28H160a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28Zm-4,176H164V52h32ZM96,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H96a20,20,0,0,0,20-20V48A20,20,0,0,0,96,28ZM92,204H60V52H92Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M208,48V208a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,208,48ZM96,40H56a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z",opacity:"0.2"}),e.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M200,34H160a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,200,34Zm2,174a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM96,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H96a14,14,0,0,0,14-14V48A14,14,0,0,0,96,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H96a2,2,0,0,1,2,2Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M200,36H160a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm4,172a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM96,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4Z"}))]]),E1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,44H40A20,20,0,0,0,20,64V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V64A20,20,0,0,0,216,44ZM44,68H212v48H136a12,12,0,0,0-12,12v60H44ZM148,188V140h64v48Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,64v64H136v72H40a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H216A8,8,0,0,1,224,64Z",opacity:"0.2"}),e.createElement("path",{d:"M216,48H40A16,16,0,0,0,24,64V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,64H216v56H136a8,8,0,0,0-8,8v64H40ZM216,192H144V136h72v56Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,48H40A16,16,0,0,0,24,64V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48Zm0,144H136V128h80v64Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,50H40A14,14,0,0,0,26,64V192a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V64A14,14,0,0,0,216,50ZM38,192V64a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2v58H136a6,6,0,0,0-6,6v66H40A2,2,0,0,1,38,192Zm178,2H142V134h76v58A2,2,0,0,1,216,194Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,48H40A16,16,0,0,0,24,64V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,64H216v56H136a8,8,0,0,0-8,8v64H40ZM216,192H144V136h72v56Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,52H40A12,12,0,0,0,28,64V192a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V64A12,12,0,0,0,216,52ZM36,192V64a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4v60H136a4,4,0,0,0-4,4v68H40A4,4,0,0,1,36,192Zm180,4H140V132h80v60A4,4,0,0,1,216,196Z"}))]]),M1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z",opacity:"0.2"}),e.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z"}))]]),V1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M225.7,54.46a20,20,0,0,0-20.33.66L132,101.85v-30a19.91,19.91,0,0,0-30.63-16.72L13.19,111.29a19.79,19.79,0,0,0,0,33.42l88.18,56.17A19.91,19.91,0,0,0,132,184.16v-30l73.37,46.73A19.91,19.91,0,0,0,236,184.16V71.84A19.84,19.84,0,0,0,225.7,54.46ZM108,176.64,31.63,128,108,79.36Zm104,0L135.63,128,212,79.36Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,71.85v112.3a7.91,7.91,0,0,1-12.18,6.59l-88.19-56.15a7.8,7.8,0,0,1,0-13.18l88.19-56.15A7.91,7.91,0,0,1,224,71.85ZM107.82,65.26,19.63,121.41a7.8,7.8,0,0,0,0,13.18l88.19,56.15A7.91,7.91,0,0,0,120,184.15V71.85A7.91,7.91,0,0,0,107.82,65.26Z",opacity:"0.2"}),e.createElement("path",{d:"M223.77,58a16,16,0,0,0-16.25.53L128,109.14V71.84A15.91,15.91,0,0,0,103.52,58.5L15.33,114.66a15.8,15.8,0,0,0,0,26.68l88.19,56.16A15.91,15.91,0,0,0,128,184.16v-37.3l79.52,50.64A15.91,15.91,0,0,0,232,184.16V71.84A15.83,15.83,0,0,0,223.77,58ZM112,183.93,24.18,128,112,72.06Zm104,0L128.18,128,216,72.06Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M232,71.84V184.16a15.92,15.92,0,0,1-24.48,13.34L128,146.86v37.3a15.92,15.92,0,0,1-24.48,13.34L15.33,141.34a15.8,15.8,0,0,1,0-26.68L103.52,58.5A15.91,15.91,0,0,1,128,71.84v37.3L207.52,58.5A15.91,15.91,0,0,1,232,71.84Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M222.81,59.72a14,14,0,0,0-14.22.46L126,112.79V71.84a13.83,13.83,0,0,0-7.19-12.12,14,14,0,0,0-14.22.46L16.41,116.35a13.79,13.79,0,0,0,0,23.3l88.18,56.17a14,14,0,0,0,14.22.46A13.83,13.83,0,0,0,126,184.16V143.21l82.59,52.61a14,14,0,0,0,14.22.46A13.83,13.83,0,0,0,230,184.16V71.84A13.83,13.83,0,0,0,222.81,59.72ZM114,184.16a1.73,1.73,0,0,1-1,1.59,1.9,1.9,0,0,1-2-.06L22.85,129.53a1.8,1.8,0,0,1,0-3.06L111,70.31a1.87,1.87,0,0,1,1-.32,2,2,0,0,1,1,.26,1.73,1.73,0,0,1,1,1.59Zm104,0a1.73,1.73,0,0,1-1,1.59,1.9,1.9,0,0,1-2-.06l-88.19-56.16a1.8,1.8,0,0,1,0-3.06L215,70.31a1.87,1.87,0,0,1,1-.32,2,2,0,0,1,1,.26,1.73,1.73,0,0,1,1,1.59Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M223.77,58a16,16,0,0,0-16.25.53L128,109.14V71.84A15.91,15.91,0,0,0,103.52,58.5L15.33,114.66a15.8,15.8,0,0,0,0,26.68l88.19,56.16A15.91,15.91,0,0,0,128,184.16v-37.3l79.52,50.64A15.91,15.91,0,0,0,232,184.16V71.84A15.83,15.83,0,0,0,223.77,58ZM112,183.93,24.18,128,112,72.06Zm104,0L128.18,128,216,72.06Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M221.85,61.48a12,12,0,0,0-12.18.39L124,116.43V71.84a11.66,11.66,0,0,0-6.15-10.36,12,12,0,0,0-12.18.39L17.48,118a11.81,11.81,0,0,0,0,19.94l88.19,56.16a12,12,0,0,0,12.18.39A11.66,11.66,0,0,0,124,184.16V139.57l85.67,54.56a12,12,0,0,0,12.18.39A11.66,11.66,0,0,0,228,184.16V71.84A11.66,11.66,0,0,0,221.85,61.48ZM116,184.16a3.76,3.76,0,0,1-2,3.35,3.91,3.91,0,0,1-4-.13L21.78,131.22a3.8,3.8,0,0,1,0-6.44L110,68.62a3.94,3.94,0,0,1,2.13-.63,4,4,0,0,1,1.91.5,3.76,3.76,0,0,1,2,3.35Zm104,0a3.76,3.76,0,0,1-2,3.35,3.91,3.91,0,0,1-4-.13l-88.18-56.16a3.8,3.8,0,0,1,0-6.44L214,68.62a3.94,3.94,0,0,1,2.13-.63,4,4,0,0,1,1.91.5,3.76,3.76,0,0,1,2,3.35Z"}))]]),P1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M157.27,21.22a12,12,0,0,0-12.64,1.31L75.88,76H32A20,20,0,0,0,12,96v64a20,20,0,0,0,20,20H75.88l68.75,53.47A12,12,0,0,0,164,224V32A12,12,0,0,0,157.27,21.22ZM36,100H68v56H36Zm104,99.46L92,162.13V93.87l48-37.33ZM212,128a44,44,0,0,1-11,29.11,12,12,0,1,1-18-15.88,20,20,0,0,0,0-26.43,12,12,0,0,1,18-15.86A43.94,43.94,0,0,1,212,128Zm40,0a83.87,83.87,0,0,1-21.39,56,12,12,0,0,1-17.89-16,60,60,0,0,0,0-80,12,12,0,1,1,17.88-16A83.87,83.87,0,0,1,252,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M80,88v80H32a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8Z",opacity:"0.2"}),e.createElement("path",{d:"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Zm54-106.08a40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.58,24,24,0,0,0,0-31.72,8,8,0,0,1,12-10.58ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M160,32.25V223.69a8.29,8.29,0,0,1-3.91,7.18,8,8,0,0,1-9-.56l-65.57-51A4,4,0,0,1,80,176.16V79.84a4,4,0,0,1,1.55-3.15l65.57-51a8,8,0,0,1,10,.16A8.27,8.27,0,0,1,160,32.25ZM60,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H60a4,4,0,0,0,4-4V84A4,4,0,0,0,60,80Zm126.77,20.84a8,8,0,0,0-.72,11.3,24,24,0,0,1,0,31.72,8,8,0,1,0,12,10.58,40,40,0,0,0,0-52.88A8,8,0,0,0,186.74,100.84Zm40.89-26.17a8,8,0,1,0-11.92,10.66,64,64,0,0,1,0,85.34,8,8,0,1,0,11.92,10.66,80,80,0,0,0,0-106.66Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M154.64,26.61a6,6,0,0,0-6.32.65L77.94,82H32A14,14,0,0,0,18,96v64a14,14,0,0,0,14,14H77.94l70.38,54.74A6,6,0,0,0,158,224V32A6,6,0,0,0,154.64,26.61ZM30,160V96a2,2,0,0,1,2-2H74v68H32A2,2,0,0,1,30,160Zm116,51.73L86,165.07V90.93l60-46.66Zm50.53-108.85a38,38,0,0,1,0,50.24,6,6,0,1,1-9-7.94,26,26,0,0,0,0-34.37,6,6,0,0,1,9-7.93ZM246,128a77.86,77.86,0,0,1-19.86,52,6,6,0,1,1-8.94-8,66,66,0,0,0,0-88,6,6,0,1,1,8.94-8A77.86,77.86,0,0,1,246,128Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Zm54-106.08a40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.58,24,24,0,0,0,0-31.72,8,8,0,0,1,12-10.58ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M153.76,28.41a4,4,0,0,0-4.22.43L78.63,84H32A12,12,0,0,0,20,96v64a12,12,0,0,0,12,12H78.63l70.91,55.16A4.07,4.07,0,0,0,152,228a3.92,3.92,0,0,0,1.76-.41A4,4,0,0,0,156,224V32A4,4,0,0,0,153.76,28.41ZM28,160V96a4,4,0,0,1,4-4H76v72H32A4,4,0,0,1,28,160Zm120,55.82L84,166V90l64-49.78Zm47-111.61a36,36,0,0,1,0,47.59,4,4,0,1,1-6-5.3,28,28,0,0,0,0-37,4,4,0,0,1,6-5.28ZM244,128a75.88,75.88,0,0,1-19.35,50.67,4,4,0,0,1-6-5.34,68,68,0,0,0,0-90.66,4,4,0,0,1,6-5.34A75.88,75.88,0,0,1,244,128Z"}))]]),w1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M56.88,31.93A12,12,0,1,0,39.12,48.07L64.51,76H32A20,20,0,0,0,12,96v64a20,20,0,0,0,20,20H75.88l68.75,53.47A12,12,0,0,0,164,224V185.44l35.12,38.63a12,12,0,0,0,17.76-16.14ZM36,100H68v56H36Zm104,99.46L92,162.13V106.24L140,159Zm-31-134a12,12,0,0,1,2.11-16.84l33.51-26.07A12,12,0,0,1,164,32V94.94a12,12,0,0,1-24,0V56.54l-14.15,11A12,12,0,0,1,109,65.44Zm74,49.35a12,12,0,0,1,18-15.85,44,44,0,0,1,5.55,50.21,12,12,0,0,1-21-11.55A19.67,19.67,0,0,0,188,128,20,20,0,0,0,183,114.79ZM252,128a84.18,84.18,0,0,1-19.11,53.35,12,12,0,1,1-18.53-15.25A60,60,0,0,0,212.73,88a12,12,0,1,1,17.88-16A83.87,83.87,0,0,1,252,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M80,88v80H32a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8Z",opacity:"0.2"}),e.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L73.55,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V175.09l42.08,46.29a8,8,0,1,0,11.84-10.76ZM32,96H72v64H32ZM144,207.64,88,164.09V95.89l56,61.6Zm42-63.77a24,24,0,0,0,0-31.72,8,8,0,1,1,12-10.57,40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.59Zm-80.16-76a8,8,0,0,1,1.4-11.23l39.85-31A8,8,0,0,1,160,32v74.83a8,8,0,0,1-16,0V48.36l-26.94,21A8,8,0,0,1,105.84,67.91ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M213.92,210.62a8,8,0,1,1-11.84,10.76L160,175.09v48.6a8.29,8.29,0,0,1-3.91,7.18,8,8,0,0,1-9-.56l-65.55-51A4,4,0,0,1,80,176.18V87.09L42.08,45.38A8,8,0,1,1,53.92,34.62Zm-27.21-55.46a8,8,0,0,0,11.29-.7,40,40,0,0,0,0-52.88,8,8,0,1,0-12,10.57,24,24,0,0,1,0,31.72A8,8,0,0,0,186.71,155.16Zm40.92-80.49a8,8,0,1,0-11.92,10.66,64,64,0,0,1,0,85.34,8,8,0,1,0,11.92,10.66,80,80,0,0,0,0-106.66ZM153,119.87a4,4,0,0,0,7-2.7V32.25a8.27,8.27,0,0,0-2.88-6.4,8,8,0,0,0-10-.16L103.83,59.33a4,4,0,0,0-.5,5.85ZM60,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H60a4,4,0,0,0,4-4V84A4,4,0,0,0,60,80Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M52.44,36A6,6,0,0,0,43.56,44L78,81.94l-.08.06H32A14,14,0,0,0,18,96v64a14,14,0,0,0,14,14H77.94l70.38,54.74A6,6,0,0,0,158,224V169.92L203.56,220a6,6,0,0,0,8.88-8.08ZM30,160V96a2,2,0,0,1,2-2H74v68H32A2,2,0,0,1,30,160Zm116,51.73L86,165.07V90.93l.11-.08L146,156.72Zm41.5-66.53a26,26,0,0,0,0-34.37,6,6,0,1,1,9-7.93,38,38,0,0,1,0,50.24,6,6,0,0,1-9-7.94ZM107.41,66.68a6,6,0,0,1,1.06-8.42l39.85-31A6,6,0,0,1,158,32v74.83a6,6,0,0,1-12,0V44.27L115.83,67.73A6,6,0,0,1,107.41,66.68ZM246,128a77.86,77.86,0,0,1-19.86,52,6,6,0,1,1-8.94-8,66,66,0,0,0,0-88,6,6,0,1,1,8.94-8A77.86,77.86,0,0,1,246,128Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L73.55,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V175.09l42.08,46.29a8,8,0,1,0,11.84-10.76ZM32,96H72v64H32ZM144,207.64,88,164.09V95.89l56,61.6Zm42-63.77a24,24,0,0,0,0-31.72,8,8,0,1,1,12-10.57,40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.59Zm-80.16-76a8,8,0,0,1,1.4-11.23l39.85-31A8,8,0,0,1,160,32v74.83a8,8,0,0,1-16,0V48.36l-26.94,21A8,8,0,0,1,105.84,67.91ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M51,37.31A4,4,0,0,0,45,42.69L81,82.19,78.63,84H32A12,12,0,0,0,20,96v64a12,12,0,0,0,12,12H78.63l70.91,55.16A4.07,4.07,0,0,0,152,228a3.92,3.92,0,0,0,1.76-.41A4,4,0,0,0,156,224V164.75l49,53.94a4,4,0,1,0,5.92-5.38ZM28,160V96a4,4,0,0,1,4-4H76v72H32A4,4,0,0,1,28,160Zm120,55.82L84,166V90l2.35-1.83L148,156Zm41-69.3a28,28,0,0,0,0-37,4,4,0,1,1,6-5.29,36,36,0,0,1,0,47.59,4,4,0,1,1-6-5.29ZM109,65.45a4,4,0,0,1,.7-5.61l39.85-31A4,4,0,0,1,156,32v74.83a4,4,0,0,1-8,0V40.18l-33.39,26A4,4,0,0,1,109,65.45ZM244,128a75.88,75.88,0,0,1-19.35,50.67,4,4,0,0,1-6-5.34,68,68,0,0,0,0-90.66,4,4,0,0,1,6-5.34A75.88,75.88,0,0,1,244,128Z"}))]]),It=e.forwardRef((a,t)=>e.createElement(R,{ref:t,...a,weights:m1}));It.displayName="ArrowClockwiseIcon";const Ie=e.forwardRef((a,t)=>e.createElement(R,{ref:t,...a,weights:f1}));Ie.displayName="ArrowCounterClockwiseIcon";const Ot=e.forwardRef((a,t)=>e.createElement(R,{ref:t,...a,weights:h1}));Ot.displayName="ArrowsOutIcon";const zt=e.forwardRef((a,t)=>e.createElement(R,{ref:t,...a,weights:b1}));zt.displayName="CaretLeftIcon";const _t=e.forwardRef((a,t)=>e.createElement(R,{ref:t,...a,weights:p1}));_t.displayName="CaretRightIcon";const Le=e.forwardRef((a,t)=>e.createElement(R,{ref:t,...a,weights:g1}));Le.displayName="ChatCircleIcon";const Bt=e.forwardRef((a,t)=>e.createElement(R,{ref:t,...a,weights:v1}));Bt.displayName="ClockIcon";const Ut=e.forwardRef((a,t)=>e.createElement(R,{ref:t,...a,weights:x1}));Ut.displayName="ClosedCaptioningIcon";const Wt=e.forwardRef((a,t)=>e.createElement(R,{ref:t,...a,weights:$1}));Wt.displayName="FastForwardIcon";const qt=e.forwardRef((a,t)=>e.createElement(R,{ref:t,...a,weights:y1}));qt.displayName="PaperPlaneTiltIcon";const Xt=e.forwardRef((a,t)=>e.createElement(R,{ref:t,...a,weights:A1}));Xt.displayName="PauseIcon";const Yt=e.forwardRef((a,t)=>e.createElement(R,{ref:t,...a,weights:E1}));Yt.displayName="PictureInPictureIcon";const Oe=e.forwardRef((a,t)=>e.createElement(R,{ref:t,...a,weights:M1}));Oe.displayName="PlayIcon";const Gt=e.forwardRef((a,t)=>e.createElement(R,{ref:t,...a,weights:V1}));Gt.displayName="RewindIcon";const Jt=e.forwardRef((a,t)=>e.createElement(R,{ref:t,...a,weights:P1}));Jt.displayName="SpeakerHighIcon";const Qt=e.forwardRef((a,t)=>e.createElement(R,{ref:t,...a,weights:w1}));Qt.displayName="SpeakerSlashIcon";function Z1(a){return"video"in a}function j1(a){return"password_protected"in a}function L1(a){return"expired"in a}async function S1(a){return(await fetch(`/s/${a}/data`,{credentials:"include"})).json()}async function H1(a,t){return(await fetch(`/s/${a}/verify-password`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({password:t})})).ok}async function T1(a){return(await(await fetch(`/s/${a}/reactions`)).json()).reactions||[]}async function C1(a,t,n){return(await fetch(`/s/${a}/react`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({timestamp:t,emoji:n})})).ok}async function bt(a,t=1,n=50){return(await fetch(`/s/${a}/comments?page=${t}&limit=${n}`)).json()}async function F1(a,t,n,l){const s=await fetch(`/s/${a}/comment`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({timestamp:t,author_name:n,text:l})});if(!s.ok)throw new Error("Could not post comment");return(await s.json()).id}function N(a){const t=Math.max(0,Math.floor(a)),n=Math.floor(t/3600),l=Math.floor(t%3600/60),s=t%60;return n>0?`${n}:${String(l).padStart(2,"0")}:${String(s).padStart(2,"0")}`:`${l}:${String(s).padStart(2,"0")}`}function ea(a){return new Date(a+"Z").toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function k1(a,t,n,l=18){const s=n>0?l/n*t:t*.02,i=[];for(const o of[...a].sort((d,c)=>d.timestamp-c.timestamp)){const d=i.at(-1);d&&o.timestamp-d.members.at(-1).timestamp<s?(d.members.push(o),d.time=d.members.reduce((c,u)=>c+u.timestamp,0)/d.members.length):i.push({time:o.timestamp,members:[o]})}return i}function N1(a,t){const n=/(?<!\d)(?:(\d+):)?([0-5]?\d):([0-5]\d)(?!\d)/g,l=[];let s=0;for(const i of a.matchAll(n)){const o=i.index;o>s&&l.push({text:a.slice(s,o)});const d=Number(i[1]||0)*3600+Number(i[2])*60+Number(i[3]);l.push({text:i[0],...t>0&&d<=t?{time:d}:{}}),s=o+i[0].length}return s<a.length&&l.push({text:a.slice(s)}),l}const R1=(a,t,n)=>k1(a,t,n,28);function D1({data:a,videoRef:t,comments:n,reactions:l,time:s,duration:i,onTime:o,onDuration:d,seek:c}){const u=e.useRef(null),[v,m]=e.useState();e.useEffect(()=>{let f=!0;m(void 0);const M=new Image,F=`/thumb/${a.shareCode}`;return M.onload=()=>{f&&m(F)},M.onerror=()=>{f&&m(void 0)},M.src=F,()=>{f=!1,M.onload=null,M.onerror=null}},[a.shareCode]);const g=e.useRef(null),[p,A]=e.useState(500),[b,h]=e.useState(!1),[x,V]=e.useState(!1),[Z,L]=e.useState(!1),[E,j]=e.useState(1),[C,I]=e.useState(!1),[q,Y]=e.useState(1),[z,D]=e.useState(!0),[K,$]=e.useState(!1),[S,H]=e.useState(!1),w=e.useRef(1),_=a.segments.find(f=>s>=f.start_time&&s<f.end_time),ae=a.video.cta_url&&/^https?:\/\//i.test(a.video.cta_url)?a.video.cta_url:null,B=e.useCallback(async()=>{const f=t.current;if(f)if(!f.paused)f.pause();else try{await f.play()}catch{ie.danger("Playback could not start. Try again.")}},[t]),ne=e.useCallback(()=>{const f=t.current;f&&(f.muted||f.volume===0?(f.muted=!1,f.volume=w.current||1):(w.current=f.volume,f.muted=!0))},[t]),re=e.useCallback(async()=>{try{document.fullscreenElement?await document.exitFullscreen():await u.current?.requestFullscreen()}catch{ie.danger("Fullscreen is unavailable in this browser.")}},[]);async function y(){try{document.pictureInPictureElement?await document.exitPictureInPicture():await t.current?.requestPictureInPicture()}catch{ie.danger("Picture in picture is unavailable for this recording.")}}return e.useEffect(()=>{if($(!!document.pictureInPictureEnabled),!g.current)return;const f=new ResizeObserver(([M])=>A(M.contentRect.width));return f.observe(g.current),()=>f.disconnect()},[]),e.useEffect(()=>{function f(M){const F=M.target;if(M.defaultPrevented||M.metaKey||M.ctrlKey||M.altKey||F.closest('input, textarea, select, button, a, [role="slider"], [role="tab"], [role="menuitem"], [contenteditable="true"]'))return;const X=t.current;if(X)switch(M.key.toLowerCase()){case" ":case"k":M.preventDefault(),B();break;case"arrowleft":M.preventDefault(),c(X.currentTime-5);break;case"arrowright":M.preventDefault(),c(X.currentTime+5);break;case"m":ne();break;case"f":re();break;case"c":D(Se=>!Se);break}}return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[c,t,B,ne,re]),r.jsxs(Pt,{ref:u,className:"video-shell",children:[r.jsxs("div",{className:"video-stage",children:[r.jsx("video",{ref:t,src:`/v/${a.shareCode}`,poster:v,preload:"metadata",playsInline:!0,onClick:()=>{B()},onPlay:()=>{h(!0),L(!1)},onPause:()=>h(!1),onWaiting:()=>V(!0),onPlaying:()=>V(!1),onCanPlay:()=>V(!1),onError:()=>{H(!0),V(!1)},onTimeUpdate:f=>o(f.currentTarget.currentTime),onVolumeChange:f=>{j(f.currentTarget.volume),I(f.currentTarget.muted)},onRateChange:f=>Y(f.currentTarget.playbackRate),onEnded:()=>{L(!0),h(!1)},onSeeking:()=>L(!1),onLoadedMetadata:f=>{const M=f.currentTarget;d(Number.isFinite(M.duration)?M.duration:0);const F=Number(new URLSearchParams(location.search).get("t"));Number.isFinite(F)&&F>0&&F<M.duration&&(M.currentTime=F);for(const X of Array.from(M.textTracks))X.mode="hidden"},children:a.segments.length>0&&r.jsx("track",{kind:"captions",src:`/vtt/${a.shareCode}`,srcLang:"en",label:"English"})}),!b&&!S&&!(Z&&ae)&&r.jsx("div",{className:"video-play-overlay",children:r.jsx(T,{isIconOnly:!0,size:"lg","aria-label":Z?"Replay recording":"Play recording",onPress:()=>{B()},children:Z?r.jsx(Ie,{size:24}):r.jsx(Oe,{size:24,weight:"fill"})})}),x&&b&&r.jsx("div",{className:"video-play-overlay",children:r.jsx(wt,{"aria-label":"Buffering video"})}),S&&r.jsxs("div",{className:"video-end-card",children:[r.jsx("p",{children:"We couldn’t load this video."}),r.jsx(T,{variant:"secondary",onPress:()=>{H(!1),t.current?.load()},children:"Try again"})]}),z&&_&&r.jsx("div",{className:"video-caption",children:r.jsxs("span",{children:[_.speaker&&`${_.speaker}: `,_.text]})}),r.jsx("div",{className:"timestamp-reactions","aria-hidden":"true",children:l.filter(f=>s>=f.timestamp&&s<f.timestamp+3).slice(-12).map((f,M)=>r.jsx("span",{className:"timestamp-reaction",style:{left:`${15+M*19%70}%`},children:f.emoji},`${f.created_at}-${f.timestamp}-${M}`))}),Z&&ae&&r.jsxs("div",{className:"video-end-card",children:[r.jsx(Wa,{className:"button button--primary",href:ae,target:"_blank",rel:"noopener noreferrer",children:a.video.cta_text||"Learn more"}),r.jsxs(T,{variant:"secondary",onPress:()=>{c(0),B()},children:[r.jsx(Ie,{size:16}),"Replay"]})]})]}),r.jsxs("div",{className:"video-toolbar",children:[r.jsx("div",{ref:g,className:"timeline-markers","aria-label":"Comments and reactions on the timeline",children:R1([...n.map(f=>({timestamp:f.timestamp,kind:"comment",label:`${f.author_name}: ${f.text}`})),...l.map(f=>({timestamp:f.timestamp,kind:"reaction",emoji:f.emoji,label:`${f.emoji} reaction`})),...a.chapters.map(f=>({timestamp:f.timestamp,kind:"chapter",label:`Chapter: ${f.title}`}))],i,p).map((f,M)=>r.jsxs(ht,{children:[r.jsx(T,{size:"sm",variant:f.members.length>1?"primary":"ghost",className:"timeline-marker",style:{left:`${i?Math.max(2,Math.min(98,f.time/i*100)):2}%`},"aria-label":`${f.members.length>1?`${f.members.length} items`:f.members[0].label} at ${N(f.time)}`,onPress:()=>c(f.members[0].timestamp),children:f.members.length>1?f.members.length:f.members[0].kind==="reaction"?r.jsx("span",{"aria-hidden":"true",children:f.members[0].emoji}):f.members[0].kind==="comment"?r.jsx(Le,{size:12}):"•"}),r.jsx(ht.Content,{children:f.members.map(F=>`${N(F.timestamp)} ${F.label}`).join(" · ")})]},`timeline-${M}`))}),r.jsxs("div",{className:"video-progress",children:[r.jsx(Te,{"aria-label":"Video progress",value:Math.min(s,i||0),minValue:0,maxValue:i||1,size:"sm",valueLabel:`${N(s)} of ${N(i)}`,children:r.jsx(Te.Track,{children:r.jsx(Te.Fill,{})})}),r.jsx("input",{className:"video-seek-input",type:"range","aria-label":"Seek video","aria-valuetext":`${N(s)} of ${N(i)}`,min:0,max:i||1,step:.1,value:Math.min(s,i||0),disabled:!i,onChange:f=>c(Number(f.currentTarget.value))})]}),r.jsxs("div",{className:"video-controls",children:[r.jsx(T,{isIconOnly:!0,size:"sm",variant:"ghost","aria-label":b?"Pause":"Play",onPress:()=>{B()},children:b?r.jsx(Xt,{size:18,weight:"fill"}):r.jsx(Oe,{size:18,weight:"fill"})}),r.jsx(T,{isIconOnly:!0,size:"sm",variant:"ghost",className:"skip-control","aria-label":"Back 5 seconds",onPress:()=>c(s-5),children:r.jsx(Gt,{size:18})}),r.jsx(T,{isIconOnly:!0,size:"sm",variant:"ghost",className:"skip-control","aria-label":"Forward 5 seconds",onPress:()=>c(s+5),children:r.jsx(Wt,{size:18})}),r.jsx(T,{isIconOnly:!0,size:"sm",variant:"ghost","aria-label":C||E===0?"Unmute":"Mute",onPress:ne,children:C||E===0?r.jsx(Qt,{size:18}):r.jsx(Jt,{size:18})}),r.jsx(ye,{className:"volume-control","aria-label":"Volume",minValue:0,maxValue:1,step:.05,value:C?0:E,onChange:f=>{t.current&&(t.current.volume=Number(f),t.current.muted=Number(f)===0,Number(f)&&(w.current=Number(f)))},children:r.jsxs(ye.Track,{children:[r.jsx(ye.Fill,{}),r.jsx(ye.Thumb,{})]})}),r.jsxs("span",{className:"video-time",children:[N(s)," / ",N(i)]}),r.jsx("span",{className:"control-spacer"}),a.segments.length>0&&r.jsx(T,{isIconOnly:!0,size:"sm",variant:z?"secondary":"ghost","aria-label":"Captions","aria-pressed":z,onPress:()=>D(!z),children:r.jsx(Ut,{size:18})}),r.jsxs(be,{children:[r.jsxs(T,{size:"sm",variant:"ghost","aria-label":`Playback speed: ${q}×`,children:[q,"×"]}),r.jsx(be.Popover,{children:r.jsx(be.Menu,{"aria-label":"Playback speed",selectionMode:"single",selectedKeys:new Set([String(q)]),onAction:f=>{t.current&&(t.current.playbackRate=Number(f))},children:[.5,1,1.25,1.5,2].map(f=>r.jsxs(be.Item,{id:String(f),textValue:`${f}×`,children:[r.jsxs(Ae,{children:[f,"×"]}),r.jsx(be.ItemIndicator,{})]},f))})})]}),K&&r.jsx(T,{isIconOnly:!0,size:"sm",variant:"ghost",className:"pip-control","aria-label":"Picture in picture",onPress:()=>{y()},children:r.jsx(Yt,{size:18})}),r.jsx(T,{isIconOnly:!0,size:"sm",variant:"ghost","aria-label":"Fullscreen",onPress:()=>{re()},children:r.jsx(Ot,{size:18})})]})]})]})}function Ce({children:a,label:t}){const n=e.useRef(null),l=e.useRef(null),[s,i]=e.useState(0),[o,d]=e.useState(1),[c,u]=e.useState(0);return e.useLayoutEffect(()=>{const v=n.current,m=l.current;if(!v||!m)return;const g=()=>{const b=v.clientWidth;if(!b)return;const h=b+24,x=Math.max(1,Math.ceil((m.scrollWidth+24-1)/h));u(h),d(x),i(V=>Math.min(V,x-1))},p=new ResizeObserver(g),A=new MutationObserver(g);return p.observe(v),A.observe(m,{childList:!0,subtree:!0,characterData:!0}),g(),()=>{p.disconnect(),A.disconnect()}},[]),r.jsxs("div",{className:"paged-panel","aria-label":t,children:[r.jsx("div",{ref:n,className:"page-viewport",onFocusCapture:v=>{if(!c||!n.current)return;const m=n.current,g=v.target.getBoundingClientRect().left-m.getBoundingClientRect().left+s*c+m.scrollLeft;i(Math.max(0,Math.min(o-1,Math.floor((g+1)/c)))),m.scrollLeft=0},children:r.jsx("div",{ref:l,className:"page-flow",style:{transform:`translateX(-${s*c}px)`},children:a})}),r.jsxs("nav",{hidden:o===1,className:"page-navigation","aria-label":`${t} pages`,children:[r.jsx(T,{size:"sm",variant:"ghost",isIconOnly:!0,"aria-label":`Previous ${t.toLowerCase()} page`,isDisabled:s===0,onPress:()=>i(s-1),children:r.jsx(zt,{size:16})}),r.jsxs("span",{"aria-live":"polite",children:[s+1," / ",o]}),r.jsx(T,{size:"sm",variant:"ghost",isIconOnly:!0,"aria-label":`Next ${t.toLowerCase()} page`,isDisabled:s>=o-1,onPress:()=>i(s+1),children:r.jsx(_t,{size:16})})]})]})}function K1({data:a,time:t,duration:n,comments:l,setComments:s,seek:i,composerRef:o,selectedTab:d,setSelectedTab:c}){const[u,v]=e.useState(""),[m,g]=e.useState(""),[p,A]=e.useState(null),[b,h]=e.useState(!1),[x,V]=e.useState(!0),[Z,L]=e.useState(""),[E,j]=e.useState(1),[C,I]=e.useState(0),[q,Y]=e.useState(!1),z=l.reduce(($,S,H)=>S.timestamp<=t+.3?H:$,-1);e.useEffect(()=>{try{v(localStorage.getItem("recordly-comment-name")||"")}catch{}let $=!1;return bt(a.shareCode).then(S=>{$||(s([...S.comments].sort((H,w)=>H.timestamp-w.timestamp)),I(S.total),V(!1))}).catch(()=>{$||(L("Comments could not be loaded. Reload the page to try again."),V(!1))}),()=>{$=!0}},[a.shareCode,s]);async function D(){Y(!0);try{const $=await bt(a.shareCode,E+1);s(S=>[...new Map([...S,...$.comments].map(H=>[H.id,H])).values()].sort((H,w)=>H.timestamp-w.timestamp||H.id-w.id)),I($.total),j(E+1)}catch{ie.danger("Could not load more comments. Try again.")}finally{Y(!1)}}async function K(){if(b||!u.trim()||!m.trim())return;const $=p??t;h(!0),L("");try{const S=await F1(a.shareCode,$,u.trim(),m.trim());s(H=>[...H,{id:S,timestamp:$,author_name:u.trim(),text:m.trim(),created_at:new Date().toISOString().slice(0,19)}].sort((w,_)=>w.timestamp-_.timestamp)),I(C+1),g(""),A(null);try{localStorage.setItem("recordly-comment-name",u.trim())}catch{}ie.success(`Comment posted at ${N($)}`)}catch{L("Could not post your comment. Your draft is saved here—please try again.")}finally{h(!1)}}return r.jsxs(Pt,{className:"feedback-card",children:[r.jsxs(U,{selectedKey:d,onSelectionChange:$=>c(String($)),className:"feedback-tabs",children:[r.jsx(U.ListContainer,{children:r.jsxs(U.List,{"aria-label":"Recording feedback",children:[r.jsxs(U.Tab,{id:"comments",children:["Comments",C>0&&r.jsx(d0,{size:"sm",variant:"soft",children:C}),r.jsx(U.Indicator,{})]}),a.segments.length>0&&r.jsxs(U.Tab,{id:"transcript",children:["Transcript",r.jsx(U.Indicator,{})]}),(a.video.summary||a.chapters.length>0)&&r.jsxs(U.Tab,{id:"details",children:["Details",r.jsx(U.Indicator,{})]})]})}),r.jsx(U.Panel,{id:"comments",children:r.jsxs(Ce,{label:"Comments",children:[x?r.jsx("div",{className:"empty-feedback",children:r.jsx(wt,{"aria-label":"Loading comments"})}):l.length?l.map(($,S)=>r.jsxs("article",{className:"comment-item","data-active":S===z,children:[r.jsxs("div",{className:"comment-heading",children:[r.jsx(Ee,{size:"sm",children:r.jsx(Ee.Fallback,{children:$.author_name.slice(0,2).toUpperCase()})}),r.jsx("strong",{children:$.author_name}),r.jsx(T,{size:"sm",variant:"ghost","aria-label":`Jump to ${N($.timestamp)}`,onPress:()=>i($.timestamp),children:r.jsx("span",{className:"timestamp",children:N($.timestamp)})})]}),r.jsx("p",{children:N1($.text,n).map((H,w)=>H.time===void 0?H.text:r.jsx(T,{size:"sm",variant:"ghost",className:"inline-timestamp timestamp",onPress:()=>i(H.time),children:H.text},w))}),r.jsx("span",{className:"comment-date",children:ea($.created_at)})]},$.id)):r.jsxs("div",{className:"empty-feedback",children:[r.jsx(Le,{size:28}),r.jsx("h2",{children:"Start the conversation"}),r.jsx("p",{children:"Leave feedback at the exact moment you’re watching."})]}),l.length<C&&r.jsx(T,{size:"sm",variant:"ghost",isPending:q,onPress:()=>{D()},children:"Load more comments"})]})}),a.segments.length>0&&r.jsx(U.Panel,{id:"transcript",children:r.jsx(Ce,{label:"Transcript",children:a.segments.map(($,S)=>r.jsxs("article",{className:"transcript-item","data-active":t>=$.start_time&&t<$.end_time,children:[r.jsxs("div",{className:"transcript-heading",children:[r.jsx(T,{size:"sm",variant:"ghost",onPress:()=>i($.start_time),children:r.jsx("span",{className:"timestamp",children:N($.start_time)})}),$.speaker&&r.jsx("span",{children:$.speaker}),r.jsx(T,{size:"sm",variant:"ghost",isIconOnly:!0,className:"copy-timestamp","aria-label":`Copy link to ${N($.start_time)}`,onPress:()=>{Xa($.start_time)},children:r.jsx(qa,{size:15})})]}),r.jsx(T,{variant:"ghost",className:"transcript-seek",onPress:()=>i($.start_time),children:$.text})]},S))})}),(a.video.summary||a.chapters.length>0)&&r.jsx(U.Panel,{id:"details",children:r.jsxs(Ce,{label:"Details",children:[r.jsxs("section",{className:"recording-details",children:[r.jsx("h2",{children:"Recording"}),r.jsx("p",{children:a.video.title})]}),a.video.summary&&r.jsxs("section",{className:"recording-details",children:[r.jsx("h2",{children:"Summary"}),r.jsx("p",{children:a.video.summary})]}),a.chapters.length>0&&r.jsxs("section",{className:"recording-details",children:[r.jsx("h2",{children:"Chapters"}),r.jsx("div",{className:"chapter-list",children:a.chapters.map(($,S)=>r.jsxs(T,{size:"sm",variant:"ghost",onPress:()=>i($.timestamp),children:[r.jsx("span",{className:"timestamp",children:N($.timestamp)}),$.title]},S))})]})]})})]}),r.jsxs("form",{className:"composer",hidden:d!=="comments",onSubmit:$=>{$.preventDefault(),K()},children:[Z&&r.jsx(Zt,{children:Z}),r.jsxs(ke,{name:"author",value:u,onChange:v,isRequired:!0,isDisabled:b,children:[r.jsx(Ae,{children:"Name"}),r.jsx(jt,{maxLength:100,autoComplete:"name",placeholder:"Name"})]}),r.jsxs(ke,{name:"comment",value:m,onChange:$=>{g($),A($.trim()?p??t:null)},isRequired:!0,isDisabled:b,children:[r.jsx(Ae,{children:"Comment"}),r.jsx(i1,{ref:o,maxLength:2e3,placeholder:"Share your thoughts…",onKeyDown:$=>{($.metaKey||$.ctrlKey)&&$.key==="Enter"&&($.preventDefault(),K())}})]}),r.jsxs("div",{className:"composer-footer",children:[r.jsxs(T,{type:"button",size:"sm",variant:"ghost","aria-label":`Comment timestamp ${N(p??t)}. Use current video time`,onPress:()=>A(t),children:[r.jsx(Bt,{size:14}),r.jsx("span",{className:"timestamp",children:N(p??t)})]}),r.jsxs(T,{type:"submit",size:"sm",isPending:b,isDisabled:!u.trim()||!m.trim()||b,children:[r.jsx(qt,{size:15}),b?"Posting…":"Post"]})]})]})]})}const I1=[{emoji:"👍",label:"Like"},{emoji:"❤️",label:"Love"},{emoji:"😂",label:"Laugh"},{emoji:"😮",label:"Surprised"},{emoji:"🔥",label:"Fire"},{emoji:"👏",label:"Applause"}];function O1({data:a}){const t=e.useRef(null),n=e.useRef(null),[l,s]=e.useState(0),[i,o]=e.useState(a.video.duration),[d,c]=e.useState([]),[u,v]=e.useState([]),m=u.reduce((E,j)=>(E[j.emoji]=(E[j.emoji]||0)+1,E),{}),[g,p]=e.useState(null),[A,b]=e.useState("comments"),[h,x]=e.useState("watch"),V=e.useCallback(E=>{const j=t.current;j&&Number.isFinite(j.duration)&&(j.currentTime=Math.max(0,Math.min(j.duration,E)),s(j.currentTime))},[]);e.useEffect(()=>{let E=!1;return T1(a.shareCode).then(j=>{E||v(C=>[...j,...C])}).catch(()=>{}),()=>{E=!0}},[a.shareCode]);async function Z(E){if(g)return;p(E);const j=t.current?.currentTime||0;try{if(!await C1(a.shareCode,j,E))throw new Error;v(C=>[...C,{timestamp:j,emoji:E,created_at:new Date().toISOString()}]),ie.success(`${E} Reaction at ${N(j)}`)}catch{ie.danger("Could not add your reaction. Try again.")}finally{p(null)}}const{video:L}=a;return r.jsxs("div",{className:"recording-app","data-mobile-view":h,children:[h==="feedback"&&r.jsx("div",{className:"mobile-feedback-back",children:r.jsx(T,{size:"sm",variant:"secondary",onPress:()=>x("watch"),children:"Back to video"})}),r.jsxs("div",{className:"share-workspace",children:[r.jsxs("main",{className:"recording-column",children:[r.jsxs("div",{className:"recording-heading viewer-heading",children:[r.jsxs("div",{className:"viewer-identity",children:[r.jsx(Ee,{"aria-label":a.creator?.name||"Recording creator",className:"!size-[48px] shrink-0 !rounded-full bg-accent/15 text-accent",children:r.jsx(Ee.Fallback,{className:"!rounded-full bg-accent/15 text-xs font-medium text-accent",children:a.creator?.name.split(/\s+/).filter(Boolean).slice(0,2).map(E=>E[0]).join("").toUpperCase()||"?"})}),r.jsxs("div",{className:"viewer-caption",children:[r.jsx("h1",{className:"recording-title",title:L.title,children:L.title}),r.jsxs("div",{className:"recording-meta",children:[r.jsx("span",{children:ea(L.created_at)}),r.jsxs("span",{children:[L.view_count.toLocaleString()," ",L.view_count===1?"view":"views"]})]})]})]}),r.jsxs("div",{className:"viewer-heading-actions",children:[r.jsx(Qa,{}),r.jsx(e0,{time:l})]})]}),r.jsx(D1,{data:a,videoRef:t,comments:d,reactions:u,time:l,duration:i,onTime:s,onDuration:o,seek:V}),r.jsxs("div",{className:"reaction-rail",children:[r.jsx("div",{className:"reaction-buttons","aria-label":"Reactions",children:I1.map(({emoji:E,label:j})=>r.jsxs(T,{size:"sm",variant:"ghost","aria-label":`${j}${m[E]?`, ${m[E]} ${m[E]===1?"reaction":"reactions"}`:""}`,isDisabled:g!==null,onPress:()=>{Z(E)},children:[r.jsx("span",{"aria-hidden":"true",children:E}),m[E]>0&&r.jsx("span",{children:m[E]})]},E))}),r.jsxs(T,{className:"mobile-comment-button",size:"sm",variant:"primary",onPress:()=>{b("comments"),x("feedback"),requestAnimationFrame(()=>n.current?.focus({preventScroll:!0}))},children:[r.jsx(Le,{size:17}),"Comment"]})]})]}),r.jsx("aside",{"aria-label":"Recording feedback",children:r.jsx(K1,{data:a,time:l,duration:i,comments:d,setComments:c,seek:V,composerRef:n,selectedTab:A,setSelectedTab:b})})]})]})}function B1(){const[a,t]=e.useState(null),[n,l]=e.useState("loading"),[s,i]=e.useState("Protected recording"),[o,d]=e.useState(""),[c,u]=e.useState(!1),[v,m]=e.useState(""),g=e.useCallback(async()=>{l("loading");try{const A=location.pathname.split("/").filter(Boolean).pop()||"",b=await S1(A);L1(b)?(l("expired"),document.title="Recording unavailable — Recordly"):j1(b)?(l("password"),i(b.title),document.title=`${b.title} — Recordly`):Z1(b)?(t(b),l("recording"),document.title=`${b.video.title} — Recordly`):l("error")}catch{l("error")}},[]);e.useEffect(()=>{g()},[g]);async function p(){if(!c){u(!0),m("");try{const A=location.pathname.split("/").filter(Boolean).pop()||"";await H1(A,o)?await g():m("That password didn’t match. Please try again.")}catch{m("Could not unlock the recording. Please try again.")}finally{u(!1)}}}return r.jsxs(r.Fragment,{children:[r.jsx(Ya,{}),n==="loading"?r.jsx("div",{className:"recording-app",children:r.jsxs("div",{className:"share-workspace","aria-label":"Loading recording","aria-busy":"true",children:[r.jsxs("div",{className:"recording-column",children:[r.jsxs("div",{children:[r.jsx($e,{className:"loading-title"}),r.jsx($e,{className:"loading-meta"})]}),r.jsx($e,{className:"loading-video"})]}),r.jsx($e,{className:"loading-sidebar"})]})}):n==="recording"&&a?r.jsx(O1,{data:a}):r.jsx(Ga,{children:n==="password"?r.jsxs(r.Fragment,{children:[r.jsx(Ja,{size:28}),r.jsx("h1",{children:s}),r.jsx("p",{children:"This recording is password protected."}),r.jsxs("form",{className:"gate-form",onSubmit:A=>{A.preventDefault(),p()},children:[r.jsxs(ke,{value:o,onChange:d,isRequired:!0,isDisabled:c,children:[r.jsx(Ae,{children:"Password"}),r.jsx(jt,{type:"password",autoComplete:"current-password",autoFocus:!0})]}),v&&r.jsx(Zt,{children:v}),r.jsx(T,{type:"submit",isPending:c,isDisabled:!o||c,children:c?"Unlocking…":"Unlock recording"})]})]}):n==="expired"?r.jsxs(r.Fragment,{children:[r.jsx("h1",{children:"Recording unavailable"}),r.jsx("p",{children:"This link has expired or the recording has been removed. Ask the creator for a new link."})]}):r.jsxs(r.Fragment,{children:[r.jsx("h1",{children:"Couldn’t load the recording"}),r.jsx("p",{children:"Check your connection and try again."}),r.jsxs(T,{onPress:()=>{g()},children:[r.jsx(It,{size:16}),"Try again"]})]})})]})}export{B1 as default};
diff --git a/services/recordly-share/worker/web/dist/share.html b/services/recordly-share/worker/web/dist/share.html
index b91dc7ee..2bc94280 100644
--- a/services/recordly-share/worker/web/dist/share.html
+++ b/services/recordly-share/worker/web/dist/share.html
@@ -18,4 +18,4 @@
if (event.key === 'recordly.theme' || event.key === null) { preference = event.newValue || 'system'; apply(); }
});
})();
- </script><title>Recordly</title><link rel="stylesheet" href="/_astro/ShareUI.DkgCTqfk.css"></head> <body> <style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).load=e;window.dispatchEvent(new Event("astro:load"));})();</script><script>(()=>{var g=Object.defineProperty;var w=(c,s,d)=>s in c?g(c,s,{enumerable:!0,configurable:!0,writable:!0,value:d}):c[s]=d;var l=(c,s,d)=>w(c,typeof s!="symbol"?s+"":s,d);var E=new Set(["__proto__","constructor","prototype"]);{let c={0:t=>y(t),1:t=>d(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(d(t)),5:t=>new Set(d(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t),11:t=>Number.POSITIVE_INFINITY*t},s=t=>{let[p,e]=t;return p in c?c[p](e):void 0},d=t=>t.map(s),y=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([p,e])=>[p,s(e)]));class f extends HTMLElement{constructor(){super(...arguments);l(this,"Component");l(this,"hydrator");l(this,"hydrate",async()=>{var b;if(!this.hydrator||!this.isConnected)return;let e=(b=this.parentElement)==null?void 0:b.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let n=this.querySelectorAll("astro-slot"),r={},i=this.querySelectorAll("template[data-astro-template]");for(let o of i){let a=o.closest(this.tagName);a!=null&&a.isSameNode(this)&&(r[o.getAttribute("data-astro-template")||"default"]=o.innerHTML,o.remove())}for(let o of n){let a=o.closest(this.tagName);a!=null&&a.isSameNode(this)&&(r[o.getAttribute("name")||"default"]=o.innerHTML)}let u;try{u=this.hasAttribute("props")?y(JSON.parse(this.getAttribute("props"))):{}}catch(o){let a=this.getAttribute("component-url")||"<unknown>",v=this.getAttribute("component-export");throw v&&(a+=` (export ${v})`),console.error(`[hydrate] Error parsing props for component ${a}`,this.getAttribute("props"),o),o}let h;await this.hydrator(this)(this.Component,u,r,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});l(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),n.disconnect(),this.childrenConnectedCallback()},n=new MutationObserver(()=>{var r;((r=this.lastChild)==null?void 0:r.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});n.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}getRetryImportUrl(e){let n=new URL(e,document.baseURI),r=`astro-retry=${Date.now()}`,i=n.hash.replace(/^#/,"");return n.hash=i?`${i}&${r}`:r,n.toString()}async importWithRetry(e){try{return await import(e)}catch(n){return await new Promise(r=>setTimeout(r,1e3)),import(this.getRetryImportUrl(e))}}handleHydrationError(e){let n=this.getAttribute("component-url"),r=new CustomEvent("astro:hydration-error",{cancelable:!0,bubbles:!0,composed:!0,detail:{error:e,componentUrl:n}});this.dispatchEvent(r)&&console.error(`[astro-island] Error hydrating ${n}`,e)}async start(){let e=JSON.parse(this.getAttribute("opts")),n=this.getAttribute("client");if(Astro[n]===void 0){window.addEventListener(`astro:${n}`,()=>this.start(),{once:!0});return}try{await Astro[n](async()=>{let r=this.getAttribute("renderer-url");try{let[i,{default:u}]=await Promise.all([this.importWithRetry(this.getAttribute("component-url")),r?this.importWithRetry(r):Promise.resolve({default:()=>()=>{}})]),h=this.getAttribute("component-export")||"default";if(h.includes(".")){this.Component=i;for(let m of h.split(".")){if(E.has(m)||!this.Component||typeof this.Component!="object"&&typeof this.Component!="function"||!Object.hasOwn(this.Component,m))throw new Error(`Invalid component export path: ${h}`);this.Component=this.Component[m]}}else{if(E.has(h))throw new Error(`Invalid component export path: ${h}`);this.Component=i[h]}return this.hydrator=u,this.hydrate}catch(i){return this.handleHydrationError(i),()=>{}}},e,this)}catch(r){this.handleHydrationError(r)}}attributeChangedCallback(){this.hydrate()}}l(f,"observedAttributes",["props"]),customElements.get("astro-island")||customElements.define("astro-island",f)}})();</script><astro-island uid="1XP9kn" prefix="r1" component-url="/_astro/SharePage.P3RzS8D3.js" component-export="default" renderer-url="/_astro/client.9mxnYheX.js" props="{}" ssr client="load" opts="{&quot;name&quot;:&quot;SharePage&quot;,&quot;value&quot;:true}" await-children><div class="recording-app"><div class="share-workspace" aria-label="Loading recording" aria-busy="true"><div class="recording-column"><div><div class="skeleton skeleton--shimmer loading-title"></div><div class="skeleton skeleton--shimmer loading-meta"></div></div><div class="skeleton skeleton--shimmer loading-video"></div></div><div class="skeleton skeleton--shimmer loading-sidebar"></div></div></div><!--astro:end--></astro-island> <noscript>Please enable JavaScript to watch this recording and leave feedback.</noscript> </body></html>
\ No newline at end of file
+ </script><title>Recordly</title><link rel="stylesheet" href="/_astro/ShareUI.DkgCTqfk.css"></head> <body> <style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).load=e;window.dispatchEvent(new Event("astro:load"));})();</script><script>(()=>{var g=Object.defineProperty;var w=(c,s,d)=>s in c?g(c,s,{enumerable:!0,configurable:!0,writable:!0,value:d}):c[s]=d;var l=(c,s,d)=>w(c,typeof s!="symbol"?s+"":s,d);var E=new Set(["__proto__","constructor","prototype"]);{let c={0:t=>y(t),1:t=>d(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(d(t)),5:t=>new Set(d(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t),11:t=>Number.POSITIVE_INFINITY*t},s=t=>{let[p,e]=t;return p in c?c[p](e):void 0},d=t=>t.map(s),y=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([p,e])=>[p,s(e)]));class f extends HTMLElement{constructor(){super(...arguments);l(this,"Component");l(this,"hydrator");l(this,"hydrate",async()=>{var b;if(!this.hydrator||!this.isConnected)return;let e=(b=this.parentElement)==null?void 0:b.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let n=this.querySelectorAll("astro-slot"),r={},i=this.querySelectorAll("template[data-astro-template]");for(let o of i){let a=o.closest(this.tagName);a!=null&&a.isSameNode(this)&&(r[o.getAttribute("data-astro-template")||"default"]=o.innerHTML,o.remove())}for(let o of n){let a=o.closest(this.tagName);a!=null&&a.isSameNode(this)&&(r[o.getAttribute("name")||"default"]=o.innerHTML)}let u;try{u=this.hasAttribute("props")?y(JSON.parse(this.getAttribute("props"))):{}}catch(o){let a=this.getAttribute("component-url")||"<unknown>",v=this.getAttribute("component-export");throw v&&(a+=` (export ${v})`),console.error(`[hydrate] Error parsing props for component ${a}`,this.getAttribute("props"),o),o}let h;await this.hydrator(this)(this.Component,u,r,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});l(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),n.disconnect(),this.childrenConnectedCallback()},n=new MutationObserver(()=>{var r;((r=this.lastChild)==null?void 0:r.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});n.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}getRetryImportUrl(e){let n=new URL(e,document.baseURI),r=`astro-retry=${Date.now()}`,i=n.hash.replace(/^#/,"");return n.hash=i?`${i}&${r}`:r,n.toString()}async importWithRetry(e){try{return await import(e)}catch(n){return await new Promise(r=>setTimeout(r,1e3)),import(this.getRetryImportUrl(e))}}handleHydrationError(e){let n=this.getAttribute("component-url"),r=new CustomEvent("astro:hydration-error",{cancelable:!0,bubbles:!0,composed:!0,detail:{error:e,componentUrl:n}});this.dispatchEvent(r)&&console.error(`[astro-island] Error hydrating ${n}`,e)}async start(){let e=JSON.parse(this.getAttribute("opts")),n=this.getAttribute("client");if(Astro[n]===void 0){window.addEventListener(`astro:${n}`,()=>this.start(),{once:!0});return}try{await Astro[n](async()=>{let r=this.getAttribute("renderer-url");try{let[i,{default:u}]=await Promise.all([this.importWithRetry(this.getAttribute("component-url")),r?this.importWithRetry(r):Promise.resolve({default:()=>()=>{}})]),h=this.getAttribute("component-export")||"default";if(h.includes(".")){this.Component=i;for(let m of h.split(".")){if(E.has(m)||!this.Component||typeof this.Component!="object"&&typeof this.Component!="function"||!Object.hasOwn(this.Component,m))throw new Error(`Invalid component export path: ${h}`);this.Component=this.Component[m]}}else{if(E.has(h))throw new Error(`Invalid component export path: ${h}`);this.Component=i[h]}return this.hydrator=u,this.hydrate}catch(i){return this.handleHydrationError(i),()=>{}}},e,this)}catch(r){this.handleHydrationError(r)}}attributeChangedCallback(){this.hydrate()}}l(f,"observedAttributes",["props"]),customElements.get("astro-island")||customElements.define("astro-island",f)}})();</script><astro-island uid="1DILyT" prefix="r1" component-url="/_astro/SharePage.Wj6U9NJ6.js" component-export="default" renderer-url="/_astro/client.9mxnYheX.js" props="{}" ssr client="load" opts="{&quot;name&quot;:&quot;SharePage&quot;,&quot;value&quot;:true}" await-children><div class="recording-app"><div class="share-workspace" aria-label="Loading recording" aria-busy="true"><div class="recording-column"><div><div class="skeleton skeleton--shimmer loading-title"></div><div class="skeleton skeleton--shimmer loading-meta"></div></div><div class="skeleton skeleton--shimmer loading-video"></div></div><div class="skeleton skeleton--shimmer loading-sidebar"></div></div></div><!--astro:end--></astro-island> <noscript>Please enable JavaScript to watch this recording and leave feedback.</noscript> </body></html>
\ No newline at end of file
diff --git a/services/recordly-share/worker/web/src/components/SharePlayer.tsx b/services/recordly-share/worker/web/src/components/SharePlayer.tsx
index 3f112249..a90fb398 100644
--- a/services/recordly-share/worker/web/src/components/SharePlayer.tsx
+++ b/services/recordly-share/worker/web/src/components/SharePlayer.tsx
@@ -54,6 +54,18 @@ export default function SharePlayer({
seek,
}: Props) {
const shell = useRef<HTMLDivElement>(null);
+ const [poster, setPoster] = useState<string>();
+ useEffect(() => {
+ let active = true;
+ setPoster(undefined);
+ const image = new Image();
+ const url = `/thumb/${data.shareCode}`;
+ image.onload = () => { if (active) setPoster(url); };
+ // A missing poster must not obscure the video element's decoded first frame.
+ image.onerror = () => { if (active) setPoster(undefined); };
+ image.src = url;
+ return () => { active = false; image.onload = null; image.onerror = null; };
+ }, [data.shareCode]);
const markers = useRef<HTMLDivElement>(null);
const [trackWidth, setTrackWidth] = useState(500);
const [playing, setPlaying] = useState(false);
@@ -167,7 +179,7 @@ export default function SharePlayer({
<video
ref={videoRef}
src={`/v/${data.shareCode}`}
- poster={`/thumb/${data.shareCode}`}
+ poster={poster}
preload="metadata"
playsInline
onClick={() => void togglePlay()}