nixamp 0.61.1 → 0.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-label.d.ts +2 -1
- package/dist/ai-label.js +5 -3
- package/dist/label-routes.js +3 -3
- package/dist/license-routes.d.ts +17 -0
- package/dist/license-routes.js +241 -0
- package/dist/music-hub.d.ts +1 -0
- package/dist/music-hub.js +9 -6
- package/dist/music-license.d.ts +120 -0
- package/dist/music-license.js +266 -0
- package/dist/server.d.ts +3 -0
- package/dist/server.js +30 -0
- package/package.json +1 -1
- package/src/ai-label.ts +5 -4
- package/src/label-routes.ts +3 -3
- package/src/license-routes.ts +258 -0
- package/src/music-hub.ts +10 -7
- package/src/music-license.ts +349 -0
- package/src/server.ts +29 -0
- package/web/dist/assets/{ar-CYzjQKmG.js → ar-Eigh2EY7.js} +1 -1
- package/web/dist/assets/client-B_mfdrFh.js +1 -0
- package/web/dist/assets/{cs-DiSibpnb.js → cs-BiYj6suH.js} +1 -1
- package/web/dist/assets/{da-butHBZ3x.js → da-Bbv8v9LC.js} +1 -1
- package/web/dist/assets/{de-CmBXpW1X.js → de-Ct4J4O2-.js} +1 -1
- package/web/dist/assets/{es-CpqprbhX.js → es-C1QHkBcK.js} +1 -1
- package/web/dist/assets/{fi-B1hMfasn.js → fi-BL22uj7L.js} +1 -1
- package/web/dist/assets/{fr-Cjc6bkRE.js → fr-CbHGddiD.js} +1 -1
- package/web/dist/assets/{hi-DjEO-zwR.js → hi-CEnEoHJB.js} +1 -1
- package/web/dist/assets/{hu-BsR0uaL9.js → hu-V6N4YyNP.js} +1 -1
- package/web/dist/assets/{id-B9R43LCb.js → id-Dlur-A5Q.js} +1 -1
- package/web/dist/assets/{it-qzlsZzmL.js → it-CtiClrIo.js} +1 -1
- package/web/dist/assets/main-CFJDb9Yd.js +22 -0
- package/web/dist/assets/{music-CVLJhYTF.css → music-Dy7J3PeE.css} +1 -1
- package/web/dist/assets/music-gaYfGADg.js +1 -0
- package/web/dist/assets/{nl-CZUfUvgR.js → nl-Crjz8b-j.js} +1 -1
- package/web/dist/assets/{ru-BBAO-YaP.js → ru-CrwKGInd.js} +1 -1
- package/web/dist/assets/{sv-ySaoJU94.js → sv-DG2OJzJH.js} +1 -1
- package/web/dist/assets/{uk-FeqZ0VuT.js → uk-BteiNgtQ.js} +1 -1
- package/web/dist/assets/{vi-BKb_A-rW.js → vi-CSTApJSE.js} +1 -1
- package/web/dist/assets/{zh-DfWRilkD.js → zh-CTag10X-.js} +1 -1
- package/web/dist/index.html +2 -1
- package/web/dist/music.html +3 -2
- package/web/dist/sw.js +22 -21
- package/web/dist/assets/main-DACzAtIi.js +0 -22
- package/web/dist/assets/music-BTeZvJCU.js +0 -1
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Licences to use the AI label's music in somebody's own work: a game, an
|
|
3
|
+
* app, a video, a podcast. A download (music-store.ts) is for listening; a
|
|
4
|
+
* licence is permission to put the music in a project and publish it.
|
|
5
|
+
*
|
|
6
|
+
* Creator a song, $5 online videos, streams, podcasts, social posts, monetized or not
|
|
7
|
+
* Indie a song, $25 all of Creator, plus games, apps, sites, software and films,
|
|
8
|
+
* an album, $100 for a licensee under US$100,000 of revenue a year
|
|
9
|
+
* Commercial a song, $250 any use in the licensee's own products and ads, any size
|
|
10
|
+
* Catalog $29 a year Indie, for every artist the label releases, unlimited projects
|
|
11
|
+
*
|
|
12
|
+
* Every licence is worldwide, non-exclusive and for good (the catalogue pass:
|
|
13
|
+
* for every project published while it is active), and every use credits the
|
|
14
|
+
* artist with a link to their page. The terms are TERMS below (license-routes.ts
|
|
15
|
+
* serves them at /license/terms); each licence records the version it was sold
|
|
16
|
+
* under. Paid through nixamp.com's CoinPay business like the store.
|
|
17
|
+
*/
|
|
18
|
+
import { randomBytes, randomUUID } from "node:crypto";
|
|
19
|
+
import type { Db, Support } from "./support.ts";
|
|
20
|
+
import { SupportError } from "./support.ts";
|
|
21
|
+
import type { MusicStore } from "./music-store.ts";
|
|
22
|
+
|
|
23
|
+
export type Tier = "creator" | "indie" | "commercial" | "catalog";
|
|
24
|
+
export type LicenseKind = "song" | "album" | "catalog";
|
|
25
|
+
|
|
26
|
+
/** In cents, by tier and what is licensed; a missing pair is not sold. */
|
|
27
|
+
export const LICENSE_PRICES: Record<Tier, Partial<Record<LicenseKind, number>>> = {
|
|
28
|
+
creator: { song: 500 },
|
|
29
|
+
indie: { song: 2500, album: 10000 },
|
|
30
|
+
commercial: { song: 25000 },
|
|
31
|
+
catalog: { catalog: 2900 },
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export const TIER_NAMES: Record<Tier, string> = { creator: "Creator", indie: "Indie", commercial: "Commercial", catalog: "Catalog pass" };
|
|
35
|
+
|
|
36
|
+
/** What each tier lets a licensee do, in a line. */
|
|
37
|
+
export const TIER_USE: Record<Tier, string> = {
|
|
38
|
+
creator: "Online videos, livestreams, podcasts and social posts, monetized or not. Not games, apps, ads or broadcast.",
|
|
39
|
+
indie: "Everything in Creator, plus games, apps, websites, software and films, for a licensee earning under US$100,000 a year.",
|
|
40
|
+
commercial: "Any use in your own products, games, apps, films and advertising, broadcast included, at any size.",
|
|
41
|
+
catalog: "The Indie licence for every song by every artist the label releases, for any number of projects published while the pass is active.",
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const TERMS_VERSION = "1";
|
|
45
|
+
const YEAR_MS = 365 * 24 * 3600_000;
|
|
46
|
+
const EMAIL = /^[^\s@<>"]{1,64}@[^\s@<>"]{1,190}\.[a-z]{2,24}$/i;
|
|
47
|
+
const CODE = /^NXL-[A-Z2-9]{4}-[A-Z2-9]{4}$/;
|
|
48
|
+
|
|
49
|
+
export interface License {
|
|
50
|
+
id: string;
|
|
51
|
+
/** What the certificate and the public check go by: NXL-XXXX-XXXX. */
|
|
52
|
+
code: string;
|
|
53
|
+
token: string;
|
|
54
|
+
email: string;
|
|
55
|
+
userId: string;
|
|
56
|
+
licensee: string;
|
|
57
|
+
project: string;
|
|
58
|
+
projectUrl: string;
|
|
59
|
+
tier: Tier;
|
|
60
|
+
kind: LicenseKind;
|
|
61
|
+
server: string;
|
|
62
|
+
artist: string;
|
|
63
|
+
album: string;
|
|
64
|
+
n: number;
|
|
65
|
+
title: string;
|
|
66
|
+
artistName: string;
|
|
67
|
+
/** Where the credit links: the artist's page, or the label's for the catalogue pass. */
|
|
68
|
+
creditUrl: string;
|
|
69
|
+
amountCents: number;
|
|
70
|
+
coin: string;
|
|
71
|
+
paymentId: string;
|
|
72
|
+
status: "pending" | "paid";
|
|
73
|
+
terms: string;
|
|
74
|
+
createdAt: number;
|
|
75
|
+
paidAt: number;
|
|
76
|
+
/** The catalogue pass only: when new projects stop being covered. 0 is never. */
|
|
77
|
+
expiresAt: number;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** A licence code: unambiguous letters and digits, for reading out or typing in. */
|
|
81
|
+
function newCode(): string {
|
|
82
|
+
const alphabet = "ABCDEFGHJKLMNPQRSTUVWXYZ23456789";
|
|
83
|
+
const bytes = randomBytes(8);
|
|
84
|
+
const chars = [...bytes].map((one) => alphabet[one % alphabet.length]).join("");
|
|
85
|
+
return `NXL-${chars.slice(0, 4)}-${chars.slice(4)}`;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function clean(value: unknown, max: number): string {
|
|
89
|
+
return typeof value === "string" ? value.replace(/[\u0000-\u001f\u007f]+/g, " ").replace(/\s+/g, " ").trim().slice(0, max) : "";
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function httpsUrl(value: unknown): string {
|
|
93
|
+
const text = clean(value, 300);
|
|
94
|
+
if (!text) return "";
|
|
95
|
+
try {
|
|
96
|
+
const url = new URL(text);
|
|
97
|
+
return url.protocol === "https:" || url.protocol === "http:" ? url.toString() : "";
|
|
98
|
+
} catch {
|
|
99
|
+
return "";
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function row(one: Record<string, unknown>): License {
|
|
104
|
+
const time = (value: unknown): number => (value ? new Date(String(value)).getTime() : 0);
|
|
105
|
+
return {
|
|
106
|
+
id: String(one["id"]), code: String(one["code"]), token: String(one["token"]), email: String(one["email"]), userId: String(one["user_id"] ?? ""),
|
|
107
|
+
licensee: String(one["licensee"]), project: String(one["project"]), projectUrl: String(one["project_url"] ?? ""),
|
|
108
|
+
tier: String(one["tier"]) as Tier, kind: String(one["kind"]) as LicenseKind, server: String(one["server"] ?? ""), artist: String(one["artist"] ?? ""),
|
|
109
|
+
album: String(one["album"] ?? ""), n: Number(one["n"] ?? 0), title: String(one["title"]), artistName: String(one["artist_name"]), creditUrl: String(one["credit_url"]),
|
|
110
|
+
amountCents: Number(one["amount_cents"]), coin: String(one["coin"]), paymentId: String(one["payment_id"] ?? ""),
|
|
111
|
+
status: one["status"] === "paid" ? "paid" : "pending", terms: String(one["terms"]), createdAt: time(one["created_at"]), paidAt: time(one["paid_at"]), expiresAt: time(one["expires_at"]),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface MusicLicensesOptions {
|
|
116
|
+
db: Db;
|
|
117
|
+
support: Support;
|
|
118
|
+
/** The store: what a song or album is, from the server that holds it. */
|
|
119
|
+
store: Pick<MusicStore, "describe">;
|
|
120
|
+
mail: { apiKey: string; from: string } | null;
|
|
121
|
+
/** https://nixamp.com */
|
|
122
|
+
site: string;
|
|
123
|
+
/** Who licenses: the label's holder. */
|
|
124
|
+
holder?: string;
|
|
125
|
+
/** The opaque id a server goes by in nixamp.com's addresses (music-hub.ts serverId). */
|
|
126
|
+
serverId: (base: string) => string;
|
|
127
|
+
fetcher?: typeof fetch;
|
|
128
|
+
now?: () => number;
|
|
129
|
+
log?: (line: string) => void;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export interface Quote {
|
|
133
|
+
tier: Tier;
|
|
134
|
+
kind: LicenseKind;
|
|
135
|
+
server: string;
|
|
136
|
+
artist: string;
|
|
137
|
+
album: string;
|
|
138
|
+
n: number;
|
|
139
|
+
title: string;
|
|
140
|
+
artistName: string;
|
|
141
|
+
creditUrl: string;
|
|
142
|
+
amountCents: number;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export class MusicLicenses {
|
|
146
|
+
private schema: Promise<void> | null = null;
|
|
147
|
+
|
|
148
|
+
constructor(private readonly options: MusicLicensesOptions) {}
|
|
149
|
+
|
|
150
|
+
private now(): number {
|
|
151
|
+
return this.options.now?.() ?? Date.now();
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
get holder(): string {
|
|
155
|
+
return this.options.holder ?? "Profullstack, Inc.";
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
private ready(): Promise<void> {
|
|
159
|
+
this.schema ??= (async () => {
|
|
160
|
+
await this.options.db.query(`CREATE TABLE IF NOT EXISTS music_licenses (
|
|
161
|
+
id TEXT PRIMARY KEY, code TEXT NOT NULL UNIQUE, token TEXT NOT NULL, email TEXT NOT NULL, user_id TEXT NOT NULL DEFAULT '',
|
|
162
|
+
licensee TEXT NOT NULL, project TEXT NOT NULL, project_url TEXT NOT NULL DEFAULT '',
|
|
163
|
+
tier TEXT NOT NULL, kind TEXT NOT NULL, server TEXT NOT NULL DEFAULT '', artist TEXT NOT NULL DEFAULT '', album TEXT NOT NULL DEFAULT '', n INTEGER NOT NULL DEFAULT 0,
|
|
164
|
+
title TEXT NOT NULL, artist_name TEXT NOT NULL, credit_url TEXT NOT NULL, amount_cents INTEGER NOT NULL, coin TEXT NOT NULL,
|
|
165
|
+
payment_id TEXT, status TEXT NOT NULL DEFAULT 'pending', terms TEXT NOT NULL,
|
|
166
|
+
created_at TIMESTAMPTZ NOT NULL, paid_at TIMESTAMPTZ, expires_at TIMESTAMPTZ)`);
|
|
167
|
+
await this.options.db.query("CREATE INDEX IF NOT EXISTS music_licenses_email ON music_licenses (lower(email))");
|
|
168
|
+
await this.options.db.query("CREATE INDEX IF NOT EXISTS music_licenses_user ON music_licenses (user_id)");
|
|
169
|
+
await this.options.db.query("CREATE INDEX IF NOT EXISTS music_licenses_payment ON music_licenses (payment_id)");
|
|
170
|
+
})().catch((error: unknown) => { this.schema = null; throw error; });
|
|
171
|
+
return this.schema;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/** What would be licensed and for how much; refused when the pair is not sold or the music is not there. */
|
|
175
|
+
async quote(input: Record<string, unknown>): Promise<Quote> {
|
|
176
|
+
const tier = String(input["tier"] ?? (input["kind"] === "catalog" ? "catalog" : "indie")) as Tier;
|
|
177
|
+
const kind = (tier === "catalog" ? "catalog" : String(input["kind"] ?? "")) as LicenseKind;
|
|
178
|
+
const cents = LICENSE_PRICES[tier]?.[kind];
|
|
179
|
+
if (!cents) throw new SupportError("That licence is not sold: Creator and Commercial are per song, Indie per song or album, the Catalog pass covers everything.", 400, "invalid_tier");
|
|
180
|
+
if (kind === "catalog") {
|
|
181
|
+
return { tier, kind, server: "", artist: "", album: "", n: 0, title: `Every artist released by ${this.holder}`, artistName: this.holder, creditUrl: `${this.options.site}/music`, amountCents: cents };
|
|
182
|
+
}
|
|
183
|
+
const item = await this.options.store.describe({ ...input, kind });
|
|
184
|
+
return {
|
|
185
|
+
tier, kind, server: item.server, artist: item.artist, album: item.album, n: item.n, title: item.title, artistName: item.artistName,
|
|
186
|
+
creditUrl: `${this.options.site}/music/artist/${this.options.serverId(item.server)}/${item.artist}`, amountCents: cents,
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/** A licence waiting for its payment, and where to pay. */
|
|
191
|
+
async checkout(input: Record<string, unknown>, account: { id: string; email: string } | null): Promise<{ url: string; id: string; token: string; code: string }> {
|
|
192
|
+
if (input["agree"] !== true) throw new SupportError("Agree to the licence terms first.", 400, "terms_required");
|
|
193
|
+
const email = (clean(input["email"], 254) || account?.email || "").toLowerCase();
|
|
194
|
+
if (!EMAIL.test(email)) throw new SupportError("Give the email the licence should go to.", 400, "invalid_email");
|
|
195
|
+
const licensee = clean(input["licensee"], 120);
|
|
196
|
+
if (licensee.length < 2) throw new SupportError("Say who the licence is for: your name or your company's.", 400, "licensee_required");
|
|
197
|
+
const project = clean(input["project"], 160);
|
|
198
|
+
if (project.length < 2) throw new SupportError("Name the project the music goes in (the catalogue pass: your studio or channel).", 400, "project_required");
|
|
199
|
+
const quote = await this.quote(input);
|
|
200
|
+
await this.ready();
|
|
201
|
+
const id = randomUUID();
|
|
202
|
+
const token = randomUUID().replace(/-/g, "");
|
|
203
|
+
const code = newCode();
|
|
204
|
+
const checkout = await this.options.support.pay({
|
|
205
|
+
amountUsd: quote.amountCents / 100,
|
|
206
|
+
coin: input["coin"],
|
|
207
|
+
order: `license-${id}`,
|
|
208
|
+
description: `${TIER_NAMES[quote.tier]} licence: ${quote.title}${quote.kind === "catalog" ? ", one year" : ` by ${quote.artistName}`} for ${project}`,
|
|
209
|
+
metadata: { product: "music-license", license: id, tier: quote.tier, kind: quote.kind },
|
|
210
|
+
redirect: this.link(id, token),
|
|
211
|
+
});
|
|
212
|
+
await this.options.db.query(`INSERT INTO music_licenses (id, code, token, email, user_id, licensee, project, project_url, tier, kind, server, artist, album, n,
|
|
213
|
+
title, artist_name, credit_url, amount_cents, coin, payment_id, terms, created_at)
|
|
214
|
+
VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17,$18,$19,$20,$21,$22)`,
|
|
215
|
+
[id, code, token, email, account?.id ?? "", licensee, project, httpsUrl(input["projectUrl"]), quote.tier, quote.kind, quote.server, quote.artist, quote.album, quote.n,
|
|
216
|
+
quote.title, quote.artistName, quote.creditUrl, quote.amountCents, String(input["coin"]).toUpperCase(), checkout.paymentId, TERMS_VERSION, new Date(this.now())]);
|
|
217
|
+
return { url: checkout.url, id, token, code };
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/** The licensee's own page: the certificate once paid. */
|
|
221
|
+
link(id: string, token: string): string {
|
|
222
|
+
return `${this.options.site}/licenses/${id}?t=${token}`;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/** Anybody's check of a licence by its code: a client asking whether a game's music is licensed. */
|
|
226
|
+
verifyUrl(code: string): string {
|
|
227
|
+
return `${this.options.site}/license/${code}`;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
async get(id: string, token: string): Promise<License | null> {
|
|
231
|
+
await this.ready();
|
|
232
|
+
const found = (await this.options.db.query("SELECT * FROM music_licenses WHERE id = $1 AND token = $2", [id, token])).rows[0];
|
|
233
|
+
if (!found) return null;
|
|
234
|
+
const license = row(found);
|
|
235
|
+
if (license.status === "pending" && license.paymentId && (await this.options.support.isPaid(license.paymentId)) === true) return (await this.paid(license.id)) ?? license;
|
|
236
|
+
return license;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/** A paid licence by its code, for the public check; a pending one is not anybody's business. */
|
|
240
|
+
async byCode(code: string): Promise<License | null> {
|
|
241
|
+
if (!CODE.test(code)) return null;
|
|
242
|
+
await this.ready();
|
|
243
|
+
const found = (await this.options.db.query("SELECT * FROM music_licenses WHERE code = $1 AND status = 'paid'", [code])).rows[0];
|
|
244
|
+
return found ? row(found) : null;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
async owns(paymentId: string): Promise<boolean> {
|
|
248
|
+
await this.ready();
|
|
249
|
+
return (await this.options.db.query("SELECT 1 FROM music_licenses WHERE payment_id = $1", [paymentId])).rows.length > 0;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/** CoinPay's webhook for one of ours. */
|
|
253
|
+
async settle(paymentId: string): Promise<{ settled: boolean; license?: string }> {
|
|
254
|
+
await this.ready();
|
|
255
|
+
const found = (await this.options.db.query("SELECT id, status FROM music_licenses WHERE payment_id = $1", [paymentId])).rows[0];
|
|
256
|
+
if (!found) return { settled: false };
|
|
257
|
+
if (found["status"] === "paid") return { settled: true, license: String(found["id"]) };
|
|
258
|
+
if ((await this.options.support.isPaid(paymentId)) !== true) return { settled: false, license: String(found["id"]) };
|
|
259
|
+
await this.paid(String(found["id"]));
|
|
260
|
+
return { settled: true, license: String(found["id"]) };
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
async forAccount(account: { id: string; email: string }): Promise<License[]> {
|
|
264
|
+
await this.ready();
|
|
265
|
+
const rows = await this.options.db.query(
|
|
266
|
+
"SELECT * FROM music_licenses WHERE status = 'paid' AND (user_id = $1 OR lower(email) = lower($2)) ORDER BY paid_at DESC LIMIT 500",
|
|
267
|
+
[account.id, account.email],
|
|
268
|
+
);
|
|
269
|
+
return rows.rows.map(row);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/** Marks it paid once; the catalogue pass runs a year from then. The first to get here sends the certificate. */
|
|
273
|
+
private async paid(id: string): Promise<License | null> {
|
|
274
|
+
const now = new Date(this.now());
|
|
275
|
+
const updated = (await this.options.db.query(
|
|
276
|
+
"UPDATE music_licenses SET status = 'paid', paid_at = $2, expires_at = CASE WHEN kind = 'catalog' THEN $3::timestamptz ELSE NULL END WHERE id = $1 AND status = 'pending' RETURNING *",
|
|
277
|
+
[id, now, new Date(this.now() + YEAR_MS)],
|
|
278
|
+
)).rows[0];
|
|
279
|
+
if (!updated) {
|
|
280
|
+
const again = (await this.options.db.query("SELECT * FROM music_licenses WHERE id = $1", [id])).rows[0];
|
|
281
|
+
return again ? row(again) : null;
|
|
282
|
+
}
|
|
283
|
+
const license = row(updated);
|
|
284
|
+
await this.mail(license.email, `Your music licence ${license.code}: ${license.title}`, [
|
|
285
|
+
`Thank you. ${license.licensee} now holds a ${TIER_NAMES[license.tier]} licence (${license.code}) for "${license.title}"${license.kind === "catalog" ? "" : ` by ${license.artistName}`}, for ${license.project}.`,
|
|
286
|
+
`What it covers: ${TIER_USE[license.tier]}${license.expiresAt ? ` Projects published before ${new Date(license.expiresAt).toISOString().slice(0, 10)} stay licensed for good.` : ""}`,
|
|
287
|
+
`Credit the music where your project has credits or a description, with a link to the artist's page: ${creditLine(license)}`,
|
|
288
|
+
`Your certificate, to keep or print: ${this.link(license.id, license.token)}`,
|
|
289
|
+
`Anybody can check it (a store, a platform, a client): ${this.verifyUrl(license.code)}`,
|
|
290
|
+
`The terms (version ${license.terms}): ${this.options.site}/license/terms`,
|
|
291
|
+
]);
|
|
292
|
+
return license;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/** What the licensee's page and the public check show. */
|
|
296
|
+
view(license: License, full: boolean): Record<string, unknown> {
|
|
297
|
+
const now = this.now();
|
|
298
|
+
return {
|
|
299
|
+
code: license.code, licensee: license.licensee, project: license.project, projectUrl: license.projectUrl,
|
|
300
|
+
tier: license.tier, tierName: TIER_NAMES[license.tier], use: TIER_USE[license.tier], kind: license.kind,
|
|
301
|
+
title: license.title, artistName: license.artistName, creditUrl: license.creditUrl, credit: creditLine(license),
|
|
302
|
+
status: license.status, active: license.status === "paid" && (!license.expiresAt || license.expiresAt > now),
|
|
303
|
+
paidAt: license.paidAt, expiresAt: license.expiresAt, terms: license.terms, termsUrl: `${this.options.site}/license/terms`, verify: this.verifyUrl(license.code),
|
|
304
|
+
...(full ? { id: license.id, email: license.email, amountUsd: license.amountCents / 100, coin: license.coin, paymentId: license.paymentId, link: this.link(license.id, license.token) } : {}),
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
private async mail(to: string, subject: string, lines: string[]): Promise<void> {
|
|
309
|
+
if (!this.options.mail) {
|
|
310
|
+
this.options.log?.(` licences: no RESEND_API_KEY, so "${subject}" to ${to} was not sent`);
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
try {
|
|
314
|
+
await (this.options.fetcher ?? fetch)("https://api.resend.com/emails", {
|
|
315
|
+
method: "POST",
|
|
316
|
+
signal: AbortSignal.timeout(15_000),
|
|
317
|
+
headers: { authorization: `Bearer ${this.options.mail.apiKey}`, "content-type": "application/json" },
|
|
318
|
+
body: JSON.stringify({ from: this.options.mail.from, to: [to], subject, text: `${lines.join("\n\n")}\n\nnixamp.com` }),
|
|
319
|
+
});
|
|
320
|
+
} catch (error) {
|
|
321
|
+
this.options.log?.(` licences: mail to ${to} failed: ${(error as Error).message}`);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/** The credit a licence asks for, ready to paste. */
|
|
327
|
+
export function creditLine(license: Pick<License, "kind" | "title" | "artistName" | "creditUrl" | "code">): string {
|
|
328
|
+
return license.kind === "catalog"
|
|
329
|
+
? `Music: "<song>" by <artist> (<the artist's nixamp page>), licensed from ${license.artistName} on nixamp (${license.code})`
|
|
330
|
+
: `Music: "${license.title}" by ${license.artistName} (${license.creditUrl}), licensed on nixamp (${license.code})`;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/** The licence terms, version TERMS_VERSION: plain words, shown at /license/terms and agreed to at checkout. */
|
|
334
|
+
export function licenseTerms(holder: string, site: string): Array<{ heading: string; text: string }> {
|
|
335
|
+
return [
|
|
336
|
+
{ heading: "Who", text: `These terms are between ${holder} ("we"), which releases the AI label's music on nixamp, and the person or company named on the licence ("you").` },
|
|
337
|
+
{ heading: "What you may do", text: "Use the licensed recordings, and their lyrics, in your own project: put them in it, edit, cut, loop and mix them, and publish, sell and distribute the project with the music inside it, worldwide, for as long as the project exists. The licence is non-exclusive: others may license the same music." },
|
|
338
|
+
{ heading: "Which uses", text: `Creator: ${TIER_USE.creator} Indie: ${TIER_USE.indie} Commercial: ${TIER_USE.commercial} A song or album licence is for the one project named on it; the Catalog pass covers any number of your projects.` },
|
|
339
|
+
{ heading: "The Catalog pass", text: `${TIER_USE.catalog} It runs one year from payment. A project first published while it is active stays licensed for good; a project published after it ends needs a new pass or its own licence.` },
|
|
340
|
+
{ heading: "Credit", text: "Credit the music where your project shows credits or a description (end credits, an about screen, a video description, show notes), with a link to the artist's page on nixamp. The certificate gives the line to use. If there is nowhere to credit, put it where people can find it, such as your project's website." },
|
|
341
|
+
{ heading: "What you may not do", text: "Sell, give away or publish the music on its own or as music (a track, an album, a sample pack, a stock or production library), or let others take it out of your project to use separately. Register the music as yours, or claim it with a content ID system (YouTube Content ID and the like). Use it as a trademark, jingle or sound logo. Use it to train or evaluate AI models. Use it in anything unlawful, defamatory or hateful." },
|
|
342
|
+
{ heading: "Transfer", text: "The licence is yours and is not transferable, except with the project it is in: if you sell the project, the licence goes with it." },
|
|
343
|
+
{ heading: "AI and rights", text: `The music and lyrics are made with AI and released by ${holder}. In some countries, including the United States, works made by AI have limited or no copyright protection. This licence is our written permission and our promise not to claim against your licensed use; we do not promise that nobody else can use the same music.` },
|
|
344
|
+
{ heading: "No warranty", text: "The music is licensed as it is, without warranty. Our total liability under a licence is what you paid for it." },
|
|
345
|
+
{ heading: "Ending", text: "If you break these terms the licence ends for new uses; tell us and fix it within 30 days and it continues." },
|
|
346
|
+
{ heading: "Proof", text: `Every licence has a code (NXL-XXXX-XXXX) and a public page at ${site}/license/<code> that says who holds it, for what, and whether it is active.` },
|
|
347
|
+
{ heading: "Law", text: "California law governs these terms." },
|
|
348
|
+
];
|
|
349
|
+
}
|
package/src/server.ts
CHANGED
|
@@ -87,6 +87,8 @@ import { handleMusicRoutes, isMusicPath, MusicHub, musicPageFor, serverId } from
|
|
|
87
87
|
import { fileLedger, pgLedger, VeoBudgetError, VeoStudio } from "./veo-studio.ts";
|
|
88
88
|
import { KnownServers } from "./known-servers.ts";
|
|
89
89
|
import { handleStoreRoutes, isStorePath } from "./store-routes.ts";
|
|
90
|
+
import { MusicLicenses } from "./music-license.ts";
|
|
91
|
+
import { handleLicenseRoutes, isLicensePath } from "./license-routes.ts";
|
|
90
92
|
import { AiRadio } from "./ai-radio.ts";
|
|
91
93
|
import { ListenerShares } from "./listener-shares.ts";
|
|
92
94
|
import { HolderStore, TagReader, factsFor } from "./track-facts.ts";
|
|
@@ -1964,6 +1966,8 @@ export interface HandlerOptions {
|
|
|
1964
1966
|
coinpayWebhookSecret?: string;
|
|
1965
1967
|
/** The AI label's songs for sale, nixamp.com only (music-store.ts). */
|
|
1966
1968
|
musicStore?: MusicStore;
|
|
1969
|
+
/** Licences to use that music in games, apps and videos, nixamp.com only (music-license.ts). */
|
|
1970
|
+
musicLicenses?: MusicLicenses;
|
|
1967
1971
|
/** nixamp.com/music: every server's label in one app (music-hub.ts). */
|
|
1968
1972
|
music?: { hub: MusicHub; released: (request: IncomingMessage, body: Record<string, unknown>) => Promise<{ status: number; body: unknown }>; veo?: (request: IncomingMessage) => Promise<{ status: number; body: unknown; video?: Buffer }> };
|
|
1969
1973
|
sharedTranslations?: SharedTranslations;
|
|
@@ -2717,6 +2721,7 @@ export function createHandler(engine: Engine, options: HandlerOptions) {
|
|
|
2717
2721
|
if (options.musicStore) {
|
|
2718
2722
|
try {
|
|
2719
2723
|
if (await options.musicStore.owns(event.paymentId)) { json(response, 200, await options.musicStore.settle(event.paymentId)); return; }
|
|
2724
|
+
if (options.musicLicenses && await options.musicLicenses.owns(event.paymentId)) { json(response, 200, await options.musicLicenses.settle(event.paymentId)); return; }
|
|
2720
2725
|
} catch (error) {
|
|
2721
2726
|
console.error(`nixamp: CoinPay webhook for ${event.paymentId} (music) could not settle: ${error instanceof Error ? error.message : String(error)}`);
|
|
2722
2727
|
json(response, 500, { error: "could not settle; retry" });
|
|
@@ -2862,6 +2867,7 @@ export function createHandler(engine: Engine, options: HandlerOptions) {
|
|
|
2862
2867
|
!(isPublicLabelPath(path) && Boolean(options.stations?.label)) &&
|
|
2863
2868
|
// The music store: its pages, checkout, receipts and grants (nixamp.com).
|
|
2864
2869
|
!(isStorePath(path) && Boolean(options.musicStore)) &&
|
|
2870
|
+
!(isLicensePath(path) && Boolean(options.musicLicenses)) &&
|
|
2865
2871
|
// nixamp.com/music: the app and its catalogue, for anybody.
|
|
2866
2872
|
!(isMusicPath(path) && Boolean(options.music)) &&
|
|
2867
2873
|
!(/^\/radio\/(artist|album)\//.test(path) && Boolean(options.music)) &&
|
|
@@ -3438,6 +3444,18 @@ export function createHandler(engine: Engine, options: HandlerOptions) {
|
|
|
3438
3444
|
})) return;
|
|
3439
3445
|
}
|
|
3440
3446
|
|
|
3447
|
+
if (options.musicLicenses && isLicensePath(path)) {
|
|
3448
|
+
const accounts = options.accounts;
|
|
3449
|
+
if (await handleLicenseRoutes(request, response, path, url, {
|
|
3450
|
+
licenses: options.musicLicenses,
|
|
3451
|
+
account: async () => (accounts ? await accounts.whoIs(tokenFrom(request.headers)) : null),
|
|
3452
|
+
json,
|
|
3453
|
+
readBody,
|
|
3454
|
+
serverId,
|
|
3455
|
+
site: (process.env["NIXAMP_SITE"] || "https://nixamp.com").replace(/\/+$/, ""),
|
|
3456
|
+
})) return;
|
|
3457
|
+
}
|
|
3458
|
+
|
|
3441
3459
|
if (options.stations?.label && (isPublicLabelPath(path) || path === "/api/v1/stations/label" || path.startsWith("/api/v1/stations/label/"))) {
|
|
3442
3460
|
const control = isPublicLabelPath(path) ? { allowed: false } : await controlOf();
|
|
3443
3461
|
if (await handleLabelRoutes(request, response, path, {
|
|
@@ -7989,6 +8007,16 @@ export async function serve(argv: string[], version = "0.1.0"): Promise<void> {
|
|
|
7989
8007
|
...(musicHub ? { resolveServer: (id: string) => musicHub.resolve(id) } : {}),
|
|
7990
8008
|
log: (line) => console.log(line),
|
|
7991
8009
|
}) : undefined;
|
|
8010
|
+
// Licences to use that music in games, apps and videos (music-license.ts), paid the same way.
|
|
8011
|
+
const musicLicenses = musicStore && supportPayments && pool ? new MusicLicenses({
|
|
8012
|
+
db: pool as unknown as import("./support.ts").Db,
|
|
8013
|
+
support: supportPayments,
|
|
8014
|
+
store: musicStore,
|
|
8015
|
+
mail: process.env["RESEND_API_KEY"] ? { apiKey: process.env["RESEND_API_KEY"], from: process.env["NIXAMP_MAIL_FROM"] ?? "nixamp <notifications@nixamp.com>" } : null,
|
|
8016
|
+
site: nixampSite,
|
|
8017
|
+
serverId,
|
|
8018
|
+
log: (line) => console.log(line),
|
|
8019
|
+
}) : undefined;
|
|
7992
8020
|
/**
|
|
7993
8021
|
* A server says an album (or song) of its label landed: its artist's
|
|
7994
8022
|
* followers are told. Only the account that owns a listed server may say
|
|
@@ -8612,6 +8640,7 @@ export async function serve(argv: string[], version = "0.1.0"): Promise<void> {
|
|
|
8612
8640
|
...(supportPayments ? { support: supportPayments } : {}),
|
|
8613
8641
|
...(supportMonthly ? { supportSubscriptions: supportMonthly } : {}),
|
|
8614
8642
|
...(musicStore ? { musicStore } : {}),
|
|
8643
|
+
...(musicLicenses ? { musicLicenses } : {}),
|
|
8615
8644
|
...(musicHub ? { music: { hub: musicHub, released: musicReleased, veo: musicVeo } } : {}),
|
|
8616
8645
|
...(process.env["COINPAY_WEBHOOK_SECRET"] ? { coinpayWebhookSecret: process.env["COINPAY_WEBHOOK_SECRET"] } : {}),
|
|
8617
8646
|
...(sharedTranslations ? { sharedTranslations } : {}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./main-
|
|
1
|
+
import{t as e}from"./main-CFJDb9Yd.js";var t={...e,"No parties live right now.":`لا توجد جلسات مباشرة الآن.`,"Could not refresh parties.":`تعذر تحديث الجلسات.`,"Pick a server in the directory, or paste its link here.":`اختر خادمًا من الدليل أو الصق رابطه هنا.`,"Interface language":`لغة الواجهة`,Language:`اللغة`,"Translation language":`لغة الترجمة`,"Original (auto-detect)":`الأصل (اكتشاف تلقائي)`,Play:`تشغيل`,Pause:`إيقاف مؤقت`,Stop:`إيقاف`,Next:`التالي`,Previous:`السابق`,Select:`اختيار`,"Next/Prev":`التالي/السابق`,Quit:`خروج`,"Now Playing":`قيد التشغيل`,"Spectrum Analyser":`محلل الطيف`,Playlist:`قائمة التشغيل`,Files:`الملفات`,"Open files":`فتح ملفات`,"Open folder":`فتح مجلد`,"Add to library":`إضافة إلى المكتبة`,"Replace playlist":`استبدال قائمة التشغيل`,Filter:`تصفية`,Search:`بحث`,"Nothing loaded.":`لم يُحمّل أي محتوى.`,"Empty.":`فارغ.`,"Loading…":`جارٍ التحميل…`,"Connecting…":`جارٍ الاتصال…`,Connected:`متصل`,"Not connected":`غير متصل`,"No source":`لا يوجد مصدر`,Playing:`يعمل`,Stopped:`متوقف`,Volume:`مستوى الصوت`,Seek:`موضع التشغيل`,"Full screen":`ملء الشاشة`,Download:`تنزيل`,Share:`مشاركة`,Copy:`نسخ`,"Copy link":`نسخ الرابط`,Copied:`تم النسخ`,Save:`حفظ`,Cancel:`إلغاء`,Close:`إغلاق`,Remove:`إزالة`,Delete:`حذف`,Edit:`تعديل`,Add:`إضافة`,Send:`إرسال`,Retry:`إعادة المحاولة`,Back:`رجوع`,"Next page":`الصفحة التالية`,"Previous page":`الصفحة السابقة`,"Show more":`عرض المزيد`,Panels:`اللوحات`,"Reset layout":`إعادة ضبط التخطيط`,Show:`إظهار`,Hide:`إخفاء`,Collapse:`طي`,Expand:`توسيع`,"Move up":`نقل لأعلى`,"Move down":`نقل لأسفل`,Install:`تثبيت`,"TV mode":`وضع التلفاز`,On:`مفعّل`,Off:`معطّل`,Account:`الحساب`,"Sign in":`تسجيل الدخول`,"Sign out":`تسجيل الخروج`,"Create account":`إنشاء حساب`,Email:`البريد الإلكتروني`,Password:`كلمة المرور`,"Forgot password?":`نسيت كلمة المرور؟`,"Welcome back":`مرحبًا بعودتك`,Profile:`الملف الشخصي`,Handle:`اسم المستخدم`,"Your servers":`خوادمك`,Server:`الخادم`,Connect:`اتصال`,Disconnect:`قطع الاتصال`,Directory:`الدليل`,Favourites:`المفضلة`,Follow:`متابعة`,Unfollow:`إلغاء المتابعة`,Notifications:`الإشعارات`,"Phone number":`رقم الهاتف`,"Save number":`حفظ الرقم`,Transcript:`النص المفرغ`,Captions:`الترجمة النصية`,"Translate audio":`ترجمة الصوت`,"Audio language":`لغة الصوت`,"Audio options":`خيارات الصوت`,"Keep background sound":`الاحتفاظ بأصوات الخلفية`,"Background level":`مستوى صوت الخلفية`,"Speaker voices":`أصوات المتحدثين`,"Any voice":`أي صوت`,"Male voice":`صوت رجالي`,"Female voice":`صوت نسائي`,"Original audio.":`الصوت الأصلي.`,"Buy translated audio":`شراء الصوت المترجم`,"Audio credit":`رصيد الصوت`,"Buy pass":`شراء تصريح`,Pass:`تصريح`,"Pay with":`الدفع باستخدام`,"Check payment":`التحقق من الدفع`,"Open checkout":`الانتقال للدفع`,"Free sessions":`جلسات مجانية`,"Usage rates and expiry":`الأسعار ومدة الصلاحية`,Catalogs:`الكتالوجات`,"Add catalog":`إضافة كتالوج`,"Catalog name":`اسم الكتالوج`,Link:`الرابط`,"Play link":`تشغيل الرابط`,"Go live":`بدء بث مباشر`,Publish:`نشر`,Listen:`استماع`,"Live now":`مباشر الآن`,Upcoming:`قريبًا`,Parties:`حفلات المشاهدة`,"Join party":`الانضمام للحفلة`,"Invite code":`رمز الدعوة`,Invite:`دعوة`,Chat:`الدردشة`,"Chat message":`رسالة دردشة`,People:`الأشخاص`,Speaker:`متحدث`,Speakers:`المتحدثون`,Listener:`مستمع`,Moderator:`مشرف`,"Raise hand":`رفع اليد`,"Hand raises":`الأيدي المرفوعة`,Questions:`الأسئلة`,Resources:`الموارد`,Replay:`إعادة العرض`,Schedule:`الجدول`,Event:`الفعالية`,Host:`المضيف`,About:`حول`,Stage:`المنصة`,Title:`العنوان`,Description:`الوصف`,Topic:`الموضوع`,Public:`عام`,"Anyone with the link":`أي شخص لديه الرابط`,"Invited people":`الأشخاص المدعوون`,"Who can join":`من يمكنه الانضمام`,"Date and time":`التاريخ والوقت`,"Expected length":`المدة المتوقعة`,Repeat:`تكرار`,"Does not repeat":`لا يتكرر`,"Every day":`كل يوم`,"Every week":`كل أسبوع`,Homepage:`الموقع الإلكتروني`,"Host name":`اسم المضيف`,"Profile photo URL":`رابط صورة الملف الشخصي`,"Broadcast link":`رابط البث`,"Edit event":`تعديل الفعالية`,"Save changes":`حفظ التغييرات`,"Create live":`إنشاء بث مباشر`,"Schedule class":`جدولة درس`,"Start class":`بدء الدرس`,"End event":`إنهاء الفعالية`,"End session":`إنهاء الجلسة`,"Session ended":`انتهت الجلسة`,"Event ended":`انتهت الفعالية`,Cancelled:`ملغاة`,"Replay available":`إعادة العرض متاحة`,Join:`انضمام`,"Create invite":`إنشاء دعوة`,"Invite as":`الدعوة بصفة`,"Watch now":`شاهد الآن`,"Start a room":`إنشاء غرفة`,"Recent replays":`إعادات العرض الأخيرة`,"Your account":`حسابك`,"Write with AI":`الكتابة بالذكاء الاصطناعي`,"Suggested title":`العنوان المقترح`,"Suggested description":`الوصف المقترح`,"Suggested topic":`الموضوع المقترح`,"Use these details":`استخدام هذه التفاصيل`,"Learn something live.":`تعلّم شيئًا مباشرة.`,"Screen share":`مشاركة الشاشة`,"Upload and broadcast":`رفع وبث`,Help:`مساعدة`,"Reload Player":`إعادة تحميل المشغل`,"Copy Bundled CLI Path":`نسخ مسار أداة سطر الأوامر المضمنة`,"Developer tools":`أدوات المطور`,Undo:`تراجع`,Redo:`إعادة`,Cut:`قص`,Paste:`لصق`,"Select all":`تحديد الكل`,Status:`الحالة`,"Activity log":`سجل النشاط`,Admin:`الإدارة`,"Playback controls":`عناصر التحكم بالتشغيل`,"Tracks and folders":`المقاطع والمجلدات`,"Original-language captions.":`ترجمة نصية باللغة الأصلية.`,"Skip to playback controls":`الانتقال إلى عناصر التحكم بالتشغيل`,"Skip to playlist":`الانتقال إلى قائمة التشغيل`,"Skip to transcript and translated audio":`الانتقال إلى النص المفرغ والصوت المترجم`};export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={"no-window":`Push notifications are only available in a browser.`,"insecure-context":`Push notifications need a secure (https://) connection.`,"no-service-worker":`This browser does not support service workers, which push notifications need.`,"ios-needs-install":`On iPhone and iPad, add this site to your Home Screen (Share, then "Add to Home Screen") and open it from there to get notifications.`,"no-push-manager":`This browser does not support push notifications.`,"no-notification":`This browser does not support notifications.`,denied:`Notifications are blocked for this site. Allow them in your browser’s site settings, then try again.`,"no-server-key":`Push notifications are not set up on this server yet.`};function t(e){let t=e?.userAgent??``;return/iPad|iPhone|iPod/.test(t)||/Macintosh/.test(t)&&(e?.maxTouchPoints??0)>1}function n(e){return e?.navigator?.standalone===!0||typeof e?.matchMedia==`function`&&e.matchMedia(`(display-mode: standalone)`).matches}function r(r=globalThis){let a=r,o=r?.navigator,s=t=>({supported:!1,reason:t,message:e[t],permission:i(a)});return!a||!o?s(`no-window`):a.isSecureContext===!1?s(`insecure-context`):`serviceWorker`in o?`PushManager`in a?`Notification`in a?a.Notification.permission===`denied`?s(`denied`):{supported:!0,reason:null,message:null,permission:a.Notification.permission}:s(`no-notification`):s(t(o)&&!n(a)?`ios-needs-install`:`no-push-manager`):s(`no-service-worker`)}function i(e){return e&&`Notification`in e?e.Notification.permission:`unsupported`}var a=class extends Error{constructor(t,n){super(n??e[t]??t),this.name=`PushError`,this.reason=t}},o=new Map;async function s({url:e=`/api/push/vapid-public-key`,fetch:t=globalThis.fetch}={}){if(o.has(e))return o.get(e);let n=await t(e,{headers:{accept:`application/json`}});if(!n.ok)throw new a(`no-server-key`);let r=(await n.text()).trim(),i=r;try{i=JSON.parse(r).publicKey??``}catch{}if(!i||!/^[A-Za-z0-9_-]{80,100}={0,2}$/.test(i))throw new a(`no-server-key`);return o.set(e,i),i}function c(e){let t=e+`=`.repeat((4-e.length%4)%4),n=atob(t.replace(/-/g,`+`).replace(/_/g,`/`)),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r}function l(e,t){if(!e||!t)return!1;let n=new Uint8Array(e);if(n.length!==t.length)return!1;for(let e=0;e<n.length;e++)if(n[e]!==t[e])return!1;return!0}async function u({serviceWorkerUrl:e,scope:t,env:n}){let r=n.navigator.serviceWorker;return await r.getRegistration(t)||await r.register(e,t?{scope:t}:void 0),r.ready}async function d(e={}){let t=e.env??globalThis,n=e.fetch??t.fetch?.bind(t)??globalThis.fetch,i=r(t);if(!i.supported)throw new a(i.reason);if((t.Notification.permission===`granted`?`granted`:await t.Notification.requestPermission())!==`granted`)throw new a(`denied`);let o=c(e.vapidPublicKey||await s({url:e.vapidKeyUrl,fetch:n})),d=await u({serviceWorkerUrl:e.serviceWorkerUrl??`/sw.js`,scope:e.scope,env:t}),f=await d.pushManager.getSubscription();f&&!l(f.options?.applicationServerKey,o)&&(await f.unsubscribe(),f=null),f??=await d.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:o});let p=typeof f.toJSON==`function`?f.toJSON():f;if(e.save&&await e.save(p),e.saveUrl){let t=await n(e.saveUrl,{method:`POST`,headers:{"content-type":`application/json`,...e.headers??{}},body:JSON.stringify(p),credentials:`include`});if(!t.ok)throw new a(`save-failed`,`Could not save the subscription (${t.status})`)}return p}async function f({scope:e,env:t=globalThis}={}){let n=r(t);if(!n.supported&&n.reason!==`denied`)return null;let i=await(await t.navigator.serviceWorker.getRegistration(e))?.pushManager.getSubscription();return i?i.toJSON():null}async function p({scope:e,removeUrl:t,headers:n,env:r=globalThis,fetch:i}={}){let a=await(await r.navigator?.serviceWorker?.getRegistration(e))?.pushManager.getSubscription();if(!a)return!1;let o=a.endpoint;return await a.unsubscribe(),t&&await(i??r.fetch.bind(r))(t,{method:`DELETE`,headers:{"content-type":`application/json`,...n??{}},body:JSON.stringify({endpoint:o}),credentials:`include`}).catch(()=>void 0),!0}export{p as a,d as i,f as n,r,a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./main-
|
|
1
|
+
import{t as e}from"./main-CFJDb9Yd.js";var t={...e,"No parties live right now.":`Právě neprobíhají žádné párty.`,"Could not refresh parties.":`Párty se nepodařilo aktualizovat.`,"Pick a server in the directory, or paste its link here.":`Vyberte server v seznamu nebo sem vložte jeho odkaz.`,"Interface language":`Jazyk rozhraní`,Language:`Jazyk`,"Translation language":`Jazyk překladu`,"Original (auto-detect)":`Původní (automatické rozpoznání)`,Play:`Přehrát`,Pause:`Pozastavit`,Stop:`Zastavit`,Next:`Další`,Previous:`Předchozí`,Select:`Vybrat`,"Next/Prev":`Další/Předchozí`,Quit:`Ukončit`,"Now Playing":`Právě hraje`,"Spectrum Analyser":`Spektrální analyzátor`,Playlist:`Seznam skladeb`,Files:`Soubory`,"Open files":`Otevřít soubory`,"Open folder":`Otevřít složku`,"Add to library":`Přidat do knihovny`,"Replace playlist":`Nahradit seznam`,Filter:`Filtrovat`,Search:`Hledat`,"Nothing loaded.":`Nic není načteno.`,"Empty.":`Prázdné.`,"Loading…":`Načítání…`,"Connecting…":`Připojování…`,Connected:`Připojeno`,"Not connected":`Nepřipojeno`,"No source":`Žádný zdroj`,Playing:`Přehrávání`,Stopped:`Zastaveno`,Volume:`Hlasitost`,Seek:`Pozice přehrávání`,"Full screen":`Celá obrazovka`,Download:`Stáhnout`,Share:`Sdílet`,Copy:`Kopírovat`,"Copy link":`Kopírovat odkaz`,Copied:`Zkopírováno`,Save:`Uložit`,Cancel:`Zrušit`,Close:`Zavřít`,Remove:`Odebrat`,Delete:`Smazat`,Edit:`Upravit`,Add:`Přidat`,Send:`Odeslat`,Retry:`Zkusit znovu`,Back:`Zpět`,"Next page":`Další stránka`,"Previous page":`Předchozí stránka`,"Show more":`Zobrazit více`,Panels:`Panely`,"Reset layout":`Obnovit rozložení`,Show:`Zobrazit`,Hide:`Skrýt`,Collapse:`Sbalit`,Expand:`Rozbalit`,"Move up":`Nahoru`,"Move down":`Dolů`,Install:`Nainstalovat`,"TV mode":`Režim TV`,On:`Zapnuto`,Off:`Vypnuto`,Account:`Účet`,"Sign in":`Přihlásit se`,"Sign out":`Odhlásit se`,"Create account":`Vytvořit účet`,Email:`E-mail`,Password:`Heslo`,"Forgot password?":`Zapomenuté heslo?`,"Welcome back":`Vítejte zpět`,Profile:`Profil`,Handle:`Uživatelské jméno`,"Your servers":`Vaše servery`,Server:`Server`,Connect:`Připojit`,Disconnect:`Odpojit`,Directory:`Adresář`,Favourites:`Oblíbené`,Follow:`Sledovat`,Unfollow:`Přestat sledovat`,Notifications:`Oznámení`,"Phone number":`Telefonní číslo`,"Save number":`Uložit číslo`,Transcript:`Přepis`,Captions:`Titulky`,"Translate audio":`Překládat zvuk`,"Audio language":`Jazyk zvuku`,"Audio options":`Možnosti zvuku`,"Keep background sound":`Zachovat zvuk na pozadí`,"Background level":`Hlasitost pozadí`,"Speaker voices":`Hlasy mluvčích`,"Any voice":`Libovolný hlas`,"Male voice":`Mužský hlas`,"Female voice":`Ženský hlas`,"Original audio.":`Původní zvuk.`,"Buy translated audio":`Koupit překlad zvuku`,"Audio credit":`Zvukový kredit`,"Buy pass":`Koupit přístup`,Pass:`Přístup`,"Pay with":`Zaplatit pomocí`,"Check payment":`Ověřit platbu`,"Open checkout":`Přejít k platbě`,"Free sessions":`Bezplatné relace`,"Usage rates and expiry":`Ceny a platnost`,Catalogs:`Katalogy`,"Add catalog":`Přidat katalog`,"Catalog name":`Název katalogu`,Link:`Odkaz`,"Play link":`Přehrát odkaz`,"Go live":`Vysílat živě`,Publish:`Zveřejnit`,Listen:`Poslouchat`,"Live now":`Právě živě`,Upcoming:`Připravované`,Parties:`Společná sledování`,"Join party":`Připojit se ke sledování`,"Invite code":`Kód pozvánky`,Invite:`Pozvat`,Chat:`Chat`,"Chat message":`Zpráva chatu`,People:`Lidé`,Speaker:`Mluvčí`,Speakers:`Mluvčí`,Listener:`Posluchač`,Moderator:`Moderátor`,"Raise hand":`Zvednout ruku`,"Hand raises":`Zvednuté ruce`,Questions:`Otázky`,Resources:`Materiály`,Replay:`Záznam`,Schedule:`Rozvrh`,Event:`Událost`,Host:`Pořadatel`,About:`O události`,Stage:`Pódium`,Title:`Název`,Description:`Popis`,Topic:`Téma`,Public:`Veřejné`,"Anyone with the link":`Kdokoli s odkazem`,"Invited people":`Pozvané osoby`,"Who can join":`Kdo se může připojit`,"Date and time":`Datum a čas`,"Expected length":`Očekávaná délka`,Repeat:`Opakovat`,"Does not repeat":`Neopakuje se`,"Every day":`Každý den`,"Every week":`Každý týden`,Homepage:`Webové stránky`,"Host name":`Jméno pořadatele`,"Profile photo URL":`URL profilové fotky`,"Broadcast link":`Odkaz na vysílání`,"Edit event":`Upravit událost`,"Save changes":`Uložit změny`,"Create live":`Vytvořit vysílání`,"Schedule class":`Naplánovat lekci`,"Start class":`Zahájit lekci`,"End event":`Ukončit událost`,"End session":`Ukončit relaci`,"Session ended":`Relace ukončena`,"Event ended":`Událost ukončena`,Cancelled:`Zrušeno`,"Replay available":`Záznam je k dispozici`,Join:`Připojit se`,"Create invite":`Vytvořit pozvánku`,"Invite as":`Pozvat jako`,"Watch now":`Sledovat nyní`,"Start a room":`Vytvořit místnost`,"Recent replays":`Nedávné záznamy`,"Your account":`Váš účet`,"Write with AI":`Psát pomocí AI`,"Suggested title":`Navrhovaný název`,"Suggested description":`Navrhovaný popis`,"Suggested topic":`Navrhované téma`,"Use these details":`Použít tyto údaje`,"Learn something live.":`Učte se naživo.`,"Screen share":`Sdílet obrazovku`,"Upload and broadcast":`Nahrát a vysílat`,Help:`Nápověda`,"Reload Player":`Znovu načíst přehrávač`,"Copy Bundled CLI Path":`Kopírovat cestu k přibalenému CLI`,"Developer tools":`Vývojářské nástroje`,Undo:`Zpět`,Redo:`Znovu`,Cut:`Vyjmout`,Paste:`Vložit`,"Select all":`Vybrat vše`,Status:`Stav`,"Activity log":`Protokol aktivit`,Admin:`Správa`,"Playback controls":`Ovládání přehrávání`,"Tracks and folders":`Skladby a složky`,"Original-language captions.":`Titulky v původním jazyce.`,"Skip to playback controls":`Přejít k ovládání přehrávání`,"Skip to playlist":`Přejít k seznamu skladeb`,"Skip to transcript and translated audio":`Přejít k přepisu a přeloženému zvuku`};export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./main-
|
|
1
|
+
import{t as e}from"./main-CFJDb9Yd.js";var t={...e,"No parties live right now.":`Ingen fester er live lige nu.`,"Could not refresh parties.":`Kunne ikke opdatere festerne.`,"Pick a server in the directory, or paste its link here.":`Vælg en server i oversigten, eller indsæt dens link her.`,"Interface language":`Grænsefladesprog`,Language:`Sprog`,"Translation language":`Oversættelsessprog`,"Original (auto-detect)":`Original (automatisk registrering)`,Play:`Afspil`,Pause:`Pause`,Stop:`Stop`,Next:`Næste`,Previous:`Forrige`,Select:`Vælg`,"Next/Prev":`Næste/Forrige`,Quit:`Afslut`,"Now Playing":`Afspilles nu`,"Spectrum Analyser":`Spektrumanalysator`,Playlist:`Afspilningsliste`,Files:`Filer`,"Open files":`Åbn filer`,"Open folder":`Åbn mappe`,"Add to library":`Føj til bibliotek`,"Replace playlist":`Erstat afspilningsliste`,Filter:`Filtrer`,Search:`Søg`,"Nothing loaded.":`Intet indlæst.`,"Empty.":`Tomt.`,"Loading…":`Indlæser…`,"Connecting…":`Forbinder…`,Connected:`Forbundet`,"Not connected":`Ikke forbundet`,"No source":`Ingen kilde`,Playing:`Afspiller`,Stopped:`Stoppet`,Volume:`Lydstyrke`,Seek:`Afspilningsposition`,"Full screen":`Fuld skærm`,Download:`Download`,Share:`Del`,Copy:`Kopiér`,"Copy link":`Kopiér link`,Copied:`Kopieret`,Save:`Gem`,Cancel:`Annuller`,Close:`Luk`,Remove:`Fjern`,Delete:`Slet`,Edit:`Rediger`,Add:`Tilføj`,Send:`Send`,Retry:`Prøv igen`,Back:`Tilbage`,"Next page":`Næste side`,"Previous page":`Forrige side`,"Show more":`Vis flere`,Panels:`Paneler`,"Reset layout":`Nulstil layout`,Show:`Vis`,Hide:`Skjul`,Collapse:`Fold sammen`,Expand:`Fold ud`,"Move up":`Flyt op`,"Move down":`Flyt ned`,Install:`Installer`,"TV mode":`TV-tilstand`,On:`Til`,Off:`Fra`,Account:`Konto`,"Sign in":`Log ind`,"Sign out":`Log ud`,"Create account":`Opret konto`,Email:`E-mail`,Password:`Adgangskode`,"Forgot password?":`Glemt adgangskode?`,"Welcome back":`Velkommen tilbage`,Profile:`Profil`,Handle:`Brugernavn`,"Your servers":`Dine servere`,Server:`Server`,Connect:`Forbind`,Disconnect:`Afbryd`,Directory:`Oversigt`,Favourites:`Favoritter`,Follow:`Følg`,Unfollow:`Følg ikke længere`,Notifications:`Notifikationer`,"Phone number":`Telefonnummer`,"Save number":`Gem nummer`,Transcript:`Transskription`,Captions:`Undertekster`,"Translate audio":`Oversæt lyd`,"Audio language":`Lydsprog`,"Audio options":`Lydindstillinger`,"Keep background sound":`Bevar baggrundslyd`,"Background level":`Baggrundslydstyrke`,"Speaker voices":`Talernes stemmer`,"Any voice":`Vilkårlig stemme`,"Male voice":`Mandlig stemme`,"Female voice":`Kvindelig stemme`,"Original audio.":`Original lyd.`,"Buy translated audio":`Køb oversat lyd`,"Audio credit":`Lydsaldo`,"Buy pass":`Køb adgang`,Pass:`Adgang`,"Pay with":`Betal med`,"Check payment":`Kontrollér betaling`,"Open checkout":`Gå til betaling`,"Free sessions":`Gratis sessioner`,"Usage rates and expiry":`Priser og udløb`,Catalogs:`Kataloger`,"Add catalog":`Tilføj katalog`,"Catalog name":`Katalognavn`,Link:`Link`,"Play link":`Afspil link`,"Go live":`Gå live`,Publish:`Udgiv`,Listen:`Lyt`,"Live now":`Live nu`,Upcoming:`Kommende`,Parties:`Seerfester`,"Join party":`Deltag i festen`,"Invite code":`Invitationskode`,Invite:`Inviter`,Chat:`Chat`,"Chat message":`Chatbesked`,People:`Personer`,Speaker:`Taler`,Speakers:`Talere`,Listener:`Lytter`,Moderator:`Moderator`,"Raise hand":`Ræk hånden op`,"Hand raises":`Oprakte hænder`,Questions:`Spørgsmål`,Resources:`Materialer`,Replay:`Genudsendelse`,Schedule:`Program`,Event:`Begivenhed`,Host:`Vært`,About:`Om`,Stage:`Scene`,Title:`Titel`,Description:`Beskrivelse`,Topic:`Emne`,Public:`Offentlig`,"Anyone with the link":`Alle med linket`,"Invited people":`Inviterede personer`,"Who can join":`Hvem kan deltage`,"Date and time":`Dato og klokkeslæt`,"Expected length":`Forventet varighed`,Repeat:`Gentag`,"Does not repeat":`Gentages ikke`,"Every day":`Hver dag`,"Every week":`Hver uge`,Homepage:`Hjemmeside`,"Host name":`Værtens navn`,"Profile photo URL":`URL til profilbillede`,"Broadcast link":`Udsendelseslink`,"Edit event":`Rediger begivenhed`,"Save changes":`Gem ændringer`,"Create live":`Opret livesending`,"Schedule class":`Planlæg undervisning`,"Start class":`Start undervisning`,"End event":`Afslut begivenhed`,"End session":`Afslut session`,"Session ended":`Session afsluttet`,"Event ended":`Begivenhed afsluttet`,Cancelled:`Annulleret`,"Replay available":`Genudsendelse tilgængelig`,Join:`Deltag`,"Create invite":`Opret invitation`,"Invite as":`Inviter som`,"Watch now":`Se nu`,"Start a room":`Opret et rum`,"Recent replays":`Seneste genudsendelser`,"Your account":`Din konto`,"Write with AI":`Skriv med AI`,"Suggested title":`Foreslået titel`,"Suggested description":`Foreslået beskrivelse`,"Suggested topic":`Foreslået emne`,"Use these details":`Brug disse oplysninger`,"Learn something live.":`Lær noget live.`,"Screen share":`Del skærm`,"Upload and broadcast":`Upload og udsend`,Help:`Hjælp`,"Reload Player":`Genindlæs afspiller`,"Copy Bundled CLI Path":`Kopiér stien til medfølgende CLI`,"Developer tools":`Udviklerværktøjer`,Undo:`Fortryd`,Redo:`Gentag`,Cut:`Klip`,Paste:`Indsæt`,"Select all":`Vælg alle`,Status:`Status`,"Activity log":`Aktivitetslog`,Admin:`Administration`,"Playback controls":`Afspilningskontroller`,"Tracks and folders":`Numre og mapper`,"Original-language captions.":`Undertekster på originalsproget.`,"Skip to playback controls":`Spring til afspilningskontroller`,"Skip to playlist":`Spring til afspilningslisten`,"Skip to transcript and translated audio":`Spring til transskription og oversat lyd`};export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./main-
|
|
1
|
+
import{t as e}from"./main-CFJDb9Yd.js";var t={...e,"No parties live right now.":`Gerade sind keine Partys live.`,"Could not refresh parties.":`Partys konnten nicht aktualisiert werden.`,"Pick a server in the directory, or paste its link here.":`Wähle einen Server im Verzeichnis oder füge seinen Link hier ein.`,"Interface language":`Sprache der Oberfläche`,Language:`Sprache`,"Translation language":`Übersetzungssprache`,"Original (auto-detect)":`Original (automatisch erkennen)`,Play:`Abspielen`,Pause:`Pause`,Stop:`Stopp`,Next:`Weiter`,Previous:`Zurück`,Select:`Auswählen`,"Next/Prev":`Weiter/Zurück`,Quit:`Beenden`,"Now Playing":`Aktuelle Wiedergabe`,"Spectrum Analyser":`Spektrumanalysator`,Playlist:`Wiedergabeliste`,Files:`Dateien`,"Open files":`Dateien öffnen`,"Open folder":`Ordner öffnen`,"Add to library":`Zur Mediathek hinzufügen`,"Replace playlist":`Wiedergabeliste ersetzen`,Filter:`Filtern`,Search:`Suchen`,"Nothing loaded.":`Nichts geladen.`,"Empty.":`Leer.`,"Loading…":`Wird geladen…`,"Connecting…":`Verbindung wird hergestellt…`,Connected:`Verbunden`,"Not connected":`Nicht verbunden`,"No source":`Keine Quelle`,Playing:`Wiedergabe`,Stopped:`Gestoppt`,Volume:`Lautstärke`,Seek:`Wiedergabeposition`,"Full screen":`Vollbild`,Download:`Herunterladen`,Share:`Teilen`,Copy:`Kopieren`,"Copy link":`Link kopieren`,Copied:`Kopiert`,Save:`Speichern`,Cancel:`Abbrechen`,Close:`Schließen`,Remove:`Entfernen`,Delete:`Löschen`,Edit:`Bearbeiten`,Add:`Hinzufügen`,Send:`Senden`,Retry:`Erneut versuchen`,Back:`Zurück`,"Next page":`Nächste Seite`,"Previous page":`Vorherige Seite`,"Show more":`Mehr anzeigen`,Panels:`Bereiche`,"Reset layout":`Anordnung zurücksetzen`,Show:`Anzeigen`,Hide:`Ausblenden`,Collapse:`Einklappen`,Expand:`Ausklappen`,"Move up":`Nach oben`,"Move down":`Nach unten`,Install:`Installieren`,"TV mode":`TV-Modus`,On:`Ein`,Off:`Aus`,Account:`Konto`,"Sign in":`Anmelden`,"Sign out":`Abmelden`,"Create account":`Konto erstellen`,Email:`E-Mail`,Password:`Passwort`,"Forgot password?":`Passwort vergessen?`,"Welcome back":`Willkommen zurück`,Profile:`Profil`,Handle:`Benutzername`,"Your servers":`Deine Server`,Server:`Server`,Connect:`Verbinden`,Disconnect:`Trennen`,Directory:`Verzeichnis`,Favourites:`Favoriten`,Follow:`Folgen`,Unfollow:`Nicht mehr folgen`,Notifications:`Benachrichtigungen`,"Phone number":`Telefonnummer`,"Save number":`Nummer speichern`,Transcript:`Transkript`,Captions:`Untertitel`,"Translate audio":`Audio übersetzen`,"Audio language":`Audiosprache`,"Audio options":`Audiooptionen`,"Keep background sound":`Hintergrundgeräusche beibehalten`,"Background level":`Hintergrundlautstärke`,"Speaker voices":`Sprecherstimmen`,"Any voice":`Beliebige Stimme`,"Male voice":`Männliche Stimme`,"Female voice":`Weibliche Stimme`,"Original audio.":`Originalton.`,"Buy translated audio":`Übersetztes Audio kaufen`,"Audio credit":`Audioguthaben`,"Buy pass":`Pass kaufen`,Pass:`Pass`,"Pay with":`Bezahlen mit`,"Check payment":`Zahlung prüfen`,"Open checkout":`Zur Kasse`,"Free sessions":`Kostenlose Sitzungen`,"Usage rates and expiry":`Nutzungspreise und Ablauf`,Catalogs:`Kataloge`,"Add catalog":`Katalog hinzufügen`,"Catalog name":`Katalogname`,Link:`Link`,"Play link":`Link abspielen`,"Go live":`Live gehen`,Publish:`Veröffentlichen`,Listen:`Anhören`,"Live now":`Jetzt live`,Upcoming:`Demnächst`,Parties:`Watchpartys`,"Join party":`Party beitreten`,"Invite code":`Einladungscode`,Invite:`Einladen`,Chat:`Chat`,"Chat message":`Chatnachricht`,People:`Personen`,Speaker:`Sprecher`,Speakers:`Sprecher`,Listener:`Zuhörer`,Moderator:`Moderator`,"Raise hand":`Hand heben`,"Hand raises":`Wortmeldungen`,Questions:`Fragen`,Resources:`Materialien`,Replay:`Aufzeichnung`,Schedule:`Zeitplan`,Event:`Veranstaltung`,Host:`Gastgeber`,About:`Über`,Stage:`Bühne`,Title:`Titel`,Description:`Beschreibung`,Topic:`Thema`,Public:`Öffentlich`,"Anyone with the link":`Alle mit dem Link`,"Invited people":`Eingeladene Personen`,"Who can join":`Wer teilnehmen kann`,"Date and time":`Datum und Uhrzeit`,"Expected length":`Geplante Dauer`,Repeat:`Wiederholen`,"Does not repeat":`Keine Wiederholung`,"Every day":`Jeden Tag`,"Every week":`Jede Woche`,Homepage:`Webseite`,"Host name":`Name des Gastgebers`,"Profile photo URL":`URL des Profilbilds`,"Broadcast link":`Übertragungslink`,"Edit event":`Veranstaltung bearbeiten`,"Save changes":`Änderungen speichern`,"Create live":`Live-Übertragung erstellen`,"Schedule class":`Kurs planen`,"Start class":`Kurs starten`,"End event":`Veranstaltung beenden`,"End session":`Sitzung beenden`,"Session ended":`Sitzung beendet`,"Event ended":`Veranstaltung beendet`,Cancelled:`Abgesagt`,"Replay available":`Aufzeichnung verfügbar`,Join:`Beitreten`,"Create invite":`Einladung erstellen`,"Invite as":`Einladen als`,"Watch now":`Jetzt ansehen`,"Start a room":`Raum eröffnen`,"Recent replays":`Neueste Aufzeichnungen`,"Your account":`Dein Konto`,"Write with AI":`Mit KI schreiben`,"Suggested title":`Titelvorschlag`,"Suggested description":`Beschreibungsvorschlag`,"Suggested topic":`Themenvorschlag`,"Use these details":`Diese Angaben verwenden`,"Learn something live.":`Lerne etwas live.`,"Screen share":`Bildschirm teilen`,"Upload and broadcast":`Hochladen und übertragen`,Help:`Hilfe`,"Reload Player":`Player neu laden`,"Copy Bundled CLI Path":`Pfad zur gebündelten CLI kopieren`,"Developer tools":`Entwicklerwerkzeuge`,Undo:`Rückgängig`,Redo:`Wiederholen`,Cut:`Ausschneiden`,Paste:`Einfügen`,"Select all":`Alles auswählen`,Status:`Status`,"Activity log":`Aktivitätsprotokoll`,Admin:`Verwaltung`,"Playback controls":`Wiedergabesteuerung`,"Tracks and folders":`Titel und Ordner`,"Original-language captions.":`Untertitel in der Originalsprache.`,"Skip to playback controls":`Zur Wiedergabesteuerung springen`,"Skip to playlist":`Zur Wiedergabeliste springen`,"Skip to transcript and translated audio":`Zum Transkript und übersetzten Audio springen`};export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./main-
|
|
1
|
+
import{t as e}from"./main-CFJDb9Yd.js";var t={...e,"No parties live right now.":`No hay fiestas en directo ahora.`,"Could not refresh parties.":`No se pudieron actualizar las fiestas.`,"Pick a server in the directory, or paste its link here.":`Elige un servidor del directorio o pega su enlace aquí.`,"Interface language":`Idioma de la interfaz`,Language:`Idioma`,"Translation language":`Idioma de traducción`,"Original (auto-detect)":`Original (detección automática)`,Play:`Reproducir`,Pause:`Pausar`,Stop:`Detener`,Next:`Siguiente`,Previous:`Anterior`,Select:`Seleccionar`,"Next/Prev":`Siguiente/Anterior`,Quit:`Salir`,"Now Playing":`Reproduciendo`,"Spectrum Analyser":`Analizador de espectro`,Playlist:`Lista de reproducción`,Files:`Archivos`,"Open files":`Abrir archivos`,"Open folder":`Abrir carpeta`,"Add to library":`Añadir a la biblioteca`,"Replace playlist":`Reemplazar lista`,Filter:`Filtrar`,Search:`Buscar`,"Nothing loaded.":`No hay nada cargado.`,"Empty.":`Vacío.`,"Loading…":`Cargando…`,"Connecting…":`Conectando…`,Connected:`Conectado`,"Not connected":`Sin conexión`,"No source":`Sin fuente`,Playing:`Reproduciendo`,Stopped:`Detenido`,Volume:`Volumen`,Seek:`Posición de reproducción`,"Full screen":`Pantalla completa`,Download:`Descargar`,Share:`Compartir`,Copy:`Copiar`,"Copy link":`Copiar enlace`,Copied:`Copiado`,Save:`Guardar`,Cancel:`Cancelar`,Close:`Cerrar`,Remove:`Quitar`,Delete:`Eliminar`,Edit:`Editar`,Add:`Añadir`,Send:`Enviar`,Retry:`Reintentar`,Back:`Volver`,"Next page":`Página siguiente`,"Previous page":`Página anterior`,"Show more":`Mostrar más`,Panels:`Paneles`,"Reset layout":`Restablecer diseño`,Show:`Mostrar`,Hide:`Ocultar`,Collapse:`Contraer`,Expand:`Expandir`,"Move up":`Subir`,"Move down":`Bajar`,Install:`Instalar`,"TV mode":`Modo TV`,On:`Activado`,Off:`Desactivado`,Account:`Cuenta`,"Sign in":`Iniciar sesión`,"Sign out":`Cerrar sesión`,"Create account":`Crear cuenta`,Email:`Correo electrónico`,Password:`Contraseña`,"Forgot password?":`¿Olvidaste tu contraseña?`,"Welcome back":`Te damos la bienvenida de nuevo`,Profile:`Perfil`,Handle:`Nombre de usuario`,"Your servers":`Tus servidores`,Server:`Servidor`,Connect:`Conectar`,Disconnect:`Desconectar`,Directory:`Directorio`,Favourites:`Favoritos`,Follow:`Seguir`,Unfollow:`Dejar de seguir`,Notifications:`Notificaciones`,"Phone number":`Número de teléfono`,"Save number":`Guardar número`,Transcript:`Transcripción`,Captions:`Subtítulos`,"Translate audio":`Traducir audio`,"Audio language":`Idioma del audio`,"Audio options":`Opciones de audio`,"Keep background sound":`Conservar sonido de fondo`,"Background level":`Volumen de fondo`,"Speaker voices":`Voces de los hablantes`,"Any voice":`Cualquier voz`,"Male voice":`Voz masculina`,"Female voice":`Voz femenina`,"Original audio.":`Audio original.`,"Buy translated audio":`Comprar audio traducido`,"Audio credit":`Saldo de audio`,"Buy pass":`Comprar pase`,Pass:`Pase`,"Pay with":`Pagar con`,"Check payment":`Comprobar pago`,"Open checkout":`Ir al pago`,"Free sessions":`Sesiones gratuitas`,"Usage rates and expiry":`Tarifas de uso y caducidad`,Catalogs:`Catálogos`,"Add catalog":`Añadir catálogo`,"Catalog name":`Nombre del catálogo`,Link:`Enlace`,"Play link":`Reproducir enlace`,"Go live":`Transmitir en directo`,Publish:`Publicar`,Listen:`Escuchar`,"Live now":`En directo`,Upcoming:`Próximamente`,Parties:`Fiestas`,"Join party":`Unirse a la fiesta`,"Invite code":`Código de invitación`,Invite:`Invitar`,Chat:`Chat`,"Chat message":`Mensaje de chat`,People:`Personas`,Speaker:`Hablante`,Speakers:`Hablantes`,Listener:`Oyente`,Moderator:`Moderador`,"Raise hand":`Levantar la mano`,"Hand raises":`Manos levantadas`,Questions:`Preguntas`,Resources:`Recursos`,Replay:`Repetición`,Schedule:`Programación`,Event:`Evento`,Host:`Anfitrión`,About:`Acerca de`,Stage:`Escenario`,Title:`Título`,Description:`Descripción`,Topic:`Tema`,Public:`Público`,"Anyone with the link":`Cualquiera con el enlace`,"Invited people":`Personas invitadas`,"Who can join":`Quién puede unirse`,"Date and time":`Fecha y hora`,"Expected length":`Duración prevista`,Repeat:`Repetir`,"Does not repeat":`No se repite`,"Every day":`Cada día`,"Every week":`Cada semana`,Homepage:`Página web`,"Host name":`Nombre del anfitrión`,"Profile photo URL":`URL de la foto de perfil`,"Broadcast link":`Enlace de transmisión`,"Edit event":`Editar evento`,"Save changes":`Guardar cambios`,"Create live":`Crear directo`,"Schedule class":`Programar clase`,"Start class":`Iniciar clase`,"End event":`Finalizar evento`,"End session":`Finalizar sesión`,"Session ended":`Sesión finalizada`,"Event ended":`Evento finalizado`,Cancelled:`Cancelado`,"Replay available":`Repetición disponible`,Join:`Unirse`,"Create invite":`Crear invitación`,"Invite as":`Invitar como`,"Watch now":`Ver ahora`,"Start a room":`Crear una sala`,"Recent replays":`Repeticiones recientes`,"Your account":`Tu cuenta`,"Write with AI":`Escribir con IA`,"Suggested title":`Título sugerido`,"Suggested description":`Descripción sugerida`,"Suggested topic":`Tema sugerido`,"Use these details":`Usar estos datos`,"Learn something live.":`Aprende algo en directo.`,"Screen share":`Compartir pantalla`,"Upload and broadcast":`Subir y transmitir`,Help:`Ayuda`,"Reload Player":`Recargar reproductor`,"Copy Bundled CLI Path":`Copiar ruta de la CLI incluida`,"Developer tools":`Herramientas de desarrollo`,Undo:`Deshacer`,Redo:`Rehacer`,Cut:`Cortar`,Paste:`Pegar`,"Select all":`Seleccionar todo`,Status:`Estado`,"Activity log":`Registro de actividad`,Admin:`Administración`,"Playback controls":`Controles de reproducción`,"Tracks and folders":`Pistas y carpetas`,"Original-language captions.":`Subtítulos en el idioma original.`,"Skip to playback controls":`Ir a los controles de reproducción`,"Skip to playlist":`Ir a la lista de reproducción`,"Skip to transcript and translated audio":`Ir a la transcripción y al audio traducido`};export{t as default};
|