zds-pickers 4.1.6 → 4.1.7

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/index.es.js CHANGED
@@ -1,22 +1,22 @@
1
- var Cg = Object.defineProperty;
2
- var Mg = (A, V, g) => V in A ? Cg(A, V, { enumerable: !0, configurable: !0, writable: !0, value: g }) : A[V] = g;
3
- var UV = (A, V, g) => Mg(A, typeof V != "symbol" ? V + "" : V, g);
4
- import qA, { createElement as Dg, Fragment as Ug, useState as wA, useCallback as DA, useEffect as TA, useRef as HA, useMemo as hA, forwardRef as UA, Children as og, isValidElement as wg, useLayoutEffect as Fg } from "react";
1
+ var $B = Object.defineProperty;
2
+ var Ag = (A, V, g) => V in A ? $B(A, V, { enumerable: !0, configurable: !0, writable: !0, value: g }) : A[V] = g;
3
+ var MV = (A, V, g) => Ag(A, typeof V != "symbol" ? V + "" : V, g);
4
+ import qA, { createElement as Vg, Fragment as qg, useState as wA, useCallback as DA, useEffect as TA, useRef as HA, useMemo as hA, forwardRef as UA, Children as Bg, isValidElement as gg, useLayoutEffect as Eg } from "react";
5
5
  import { jsx as l, jsxs as VA, Fragment as ZA } from "react/jsx-runtime";
6
6
  import xA from "classnames";
7
- import wq, { components as Sg } from "react-select";
8
- import { drag as Rg } from "d3-drag";
9
- import { scaleLinear as Fq } from "d3-scale";
10
- import { select as Sq } from "d3-selection";
11
- import Gg from "react-dom";
12
- import { getStockNames as Yg, getUserMappingNames as ig, emptyMapping as Rq } from "zds-mappings";
7
+ import Cq, { components as Qg } from "react-select";
8
+ import { drag as Ig } from "d3-drag";
9
+ import { scaleLinear as Mq } from "d3-scale";
10
+ import { select as Dq } from "d3-selection";
11
+ import Cg from "react-dom";
12
+ import { getStockNames as Mg, getUserMappingNames as Dg, emptyMapping as Uq } from "zds-mappings";
13
13
  const _A = (A) => Array.from(new Array(A).keys()), zA = (A, V = 127, g = 0) => {
14
14
  let q = typeof A == "string" ? Number.parseInt(A, 10) : A;
15
15
  return (Number.isNaN(q) || q === null) && (q = g), q >= g ? q <= V ? q : V : g;
16
- }, Tg = (A, V) => (g) => g == null ? void 0 : g.find((q) => (q == null ? void 0 : q[A]) === V), sg = (...A) => (V) => Object.entries(V).filter(([g]) => !A.flat().map(String).includes(g)).reduce((g, [q, B]) => Object.assign(g, { [q]: B }), {}), mI = (...A) => (V) => Object.entries(V).filter(([g]) => A.flat().map(String).includes(g)).reduce((g, [q, B]) => Object.assign(g, { [q]: B }), {}), nI = (A, V) => (g) => ({
16
+ }, Ug = (A, V) => (g) => g == null ? void 0 : g.find((q) => (q == null ? void 0 : q[A]) === V), og = (...A) => (V) => Object.entries(V).filter(([g]) => !A.flat().map(String).includes(g)).reduce((g, [q, B]) => Object.assign(g, { [q]: B }), {}), NI = (...A) => (V) => Object.entries(V).filter(([g]) => A.flat().map(String).includes(g)).reduce((g, [q, B]) => Object.assign(g, { [q]: B }), {}), eI = (A, V) => (g) => ({
17
17
  ...g,
18
18
  [A]: V
19
- }), hg = [
19
+ }), wg = [
20
20
  "Bank Select",
21
21
  "Modulation Wheel",
22
22
  "Breath Controller",
@@ -165,7 +165,7 @@ const _A = (A) => Array.from(new Array(A).keys()), zA = (A, V = 127, g = 0) => {
165
165
  // 1101
166
166
  pitchWheel: 14
167
167
  // 1110
168
- }, kg = 15, Kg = 240, Jg = [
168
+ }, Fg = 15, Sg = 240, Rg = [
169
169
  { value: sA.noteOn, label: "Note On" },
170
170
  { value: sA.noteOff, label: "Note Stack" },
171
171
  { value: sA.controlChange, label: "Control Change" },
@@ -173,54 +173,54 @@ const _A = (A) => Array.from(new Array(A).keys()), zA = (A, V = 127, g = 0) => {
173
173
  { value: sA.aftertouch, label: "Aftertouch" },
174
174
  { value: sA.channelPressure, label: "Channel Pressure" },
175
175
  { value: sA.pitchWheel, label: "Pitch Wheel" }
176
- ], OI = (A) => {
176
+ ], lI = (A) => {
177
177
  var V;
178
- return ((V = Jg.filter(({ value: g }) => g === A)[0]) == null ? void 0 : V.label) || "???";
179
- }, jI = (A, V) => A | V << 4, uI = (A) => ({
180
- status: (A & Kg) >> 4 | 8,
181
- channel: A & kg
182
- }), ag = 0, Ng = 1, eg = 2, lg = 3, xg = 4, tg = 5, Wg = 6, rg = 7, Gq = {
183
- [ag]: "Linear, no change",
184
- [Ng]: "A little less sensitive",
185
- [eg]: "Even less sensitive",
186
- [lg]: "Least sensitive",
187
- [xg]: "A little sensitive",
188
- [tg]: "Moderately sensitive",
189
- [Wg]: "Most sensitive",
190
- [rg]: "Always maxed out"
191
- }, wB = Object.keys(Gq).map(Number).map((A) => ({
178
+ return ((V = Rg.filter(({ value: g }) => g === A)[0]) == null ? void 0 : V.label) || "???";
179
+ }, xI = (A, V) => A | V << 4, tI = (A) => ({
180
+ status: (A & Sg) >> 4 | 8,
181
+ channel: A & Fg
182
+ }), Gg = 0, Yg = 1, ig = 2, Tg = 3, sg = 4, hg = 5, kg = 6, Kg = 7, oq = {
183
+ [Gg]: "Linear, no change",
184
+ [Yg]: "A little less sensitive",
185
+ [ig]: "Even less sensitive",
186
+ [Tg]: "Least sensitive",
187
+ [sg]: "A little sensitive",
188
+ [hg]: "Moderately sensitive",
189
+ [kg]: "Most sensitive",
190
+ [Kg]: "Always maxed out"
191
+ }, CB = Object.keys(oq).map(Number).map((A) => ({
192
192
  value: A,
193
- label: Gq[A]
194
- })), FB = ({ children: A }) => Dg(Ug, null, A);
195
- function SB(A) {
193
+ label: oq[A]
194
+ })), MB = ({ children: A }) => Vg(qg, null, A);
195
+ function DB(A) {
196
196
  return A !== null && typeof A == "object" && "name" in A && typeof A.name == "string";
197
197
  }
198
- function RB(A) {
198
+ function UB(A) {
199
199
  return A !== null && typeof A == "object" && "step" in A && typeof A.step == "number" && "alt" in A && typeof A.alt == "number" && !isNaN(A.step) && !isNaN(A.alt);
200
200
  }
201
- var GB = [0, 2, 4, -1, 1, 3, 5], YB = GB.map(
201
+ var oB = [0, 2, 4, -1, 1, 3, 5], wB = oB.map(
202
202
  (A) => Math.floor(A * 7 / 12)
203
203
  );
204
- function iB(A) {
205
- const { step: V, alt: g, oct: q, dir: B = 1 } = A, Q = GB[V] + 7 * g;
204
+ function FB(A) {
205
+ const { step: V, alt: g, oct: q, dir: B = 1 } = A, Q = oB[V] + 7 * g;
206
206
  if (q === void 0)
207
207
  return [B * Q];
208
- const C = q - YB[V] - 4 * g;
208
+ const C = q - wB[V] - 4 * g;
209
209
  return [B * Q, B * C];
210
210
  }
211
- var Hg = [3, 0, 4, 1, 5, 2, 6];
212
- function Zg(A) {
213
- const [V, g, q] = A, B = Hg[pg(V)], Q = Math.floor((V + 1) / 7);
211
+ var Jg = [3, 0, 4, 1, 5, 2, 6];
212
+ function ag(A) {
213
+ const [V, g, q] = A, B = Jg[Ng(V)], Q = Math.floor((V + 1) / 7);
214
214
  if (g === void 0)
215
215
  return { step: B, alt: Q, dir: q };
216
- const C = g + 4 * Q + YB[B];
216
+ const C = g + 4 * Q + wB[B];
217
217
  return { step: B, alt: Q, oct: C, dir: q };
218
218
  }
219
- function pg(A) {
219
+ function Ng(A) {
220
220
  const V = (A + 1) % 7;
221
221
  return V < 0 ? 7 + V : V;
222
222
  }
223
- var Yq = (A, V) => Array(Math.abs(V) + 1).join(A), nV = Object.freeze({
223
+ var wq = (A, V) => Array(Math.abs(V) + 1).join(A), PV = Object.freeze({
224
224
  empty: !0,
225
225
  name: "",
226
226
  num: NaN,
@@ -234,26 +234,26 @@ var Yq = (A, V) => Array(Math.abs(V) + 1).join(A), nV = Object.freeze({
234
234
  chroma: NaN,
235
235
  coord: [],
236
236
  oct: NaN
237
- }), yg = "([-+]?\\d+)(d{1,4}|m|M|P|A{1,4})", cg = "(AA|A|P|M|m|d|dd)([-+]?\\d+)", Lg = new RegExp(
238
- "^" + yg + "|" + cg + "$"
237
+ }), eg = "([-+]?\\d+)(d{1,4}|m|M|P|A{1,4})", lg = "(AA|A|P|M|m|d|dd)([-+]?\\d+)", xg = new RegExp(
238
+ "^" + eg + "|" + lg + "$"
239
239
  );
240
- function Pg(A) {
241
- const V = Lg.exec(`${A}`);
240
+ function tg(A) {
241
+ const V = xg.exec(`${A}`);
242
242
  return V === null ? ["", ""] : V[1] ? [V[1], V[2]] : [V[4], V[3]];
243
243
  }
244
- var iq = {};
244
+ var Fq = {};
245
245
  function fA(A) {
246
- return typeof A == "string" ? iq[A] || (iq[A] = mg(A)) : RB(A) ? fA(Og(A)) : SB(A) ? fA(A.name) : nV;
246
+ return typeof A == "string" ? Fq[A] || (Fq[A] = Wg(A)) : UB(A) ? fA(Hg(A)) : DB(A) ? fA(A.name) : PV;
247
247
  }
248
- var Tq = [0, 2, 4, 5, 7, 9, 11], TB = "PMMPPMM";
249
- function mg(A) {
250
- const V = Pg(A);
248
+ var Sq = [0, 2, 4, 5, 7, 9, 11], SB = "PMMPPMM";
249
+ function Wg(A) {
250
+ const V = tg(A);
251
251
  if (V[0] === "")
252
- return nV;
253
- const g = +V[0], q = V[1], B = (Math.abs(g) - 1) % 7, Q = TB[B];
252
+ return PV;
253
+ const g = +V[0], q = V[1], B = (Math.abs(g) - 1) % 7, Q = SB[B];
254
254
  if (Q === "M" && q === "P")
255
- return nV;
256
- const C = Q === "M" ? "majorable" : "perfectable", E = "" + g + q, I = g < 0 ? -1 : 1, M = g === 8 || g === -8 ? g : I * (B + 1), F = ng(C, q), D = Math.floor((Math.abs(g) - 1) / 7), w = I * (Tq[B] + F + 12 * D), U = (I * (Tq[B] + F) % 12 + 12) % 12, o = iB({ step: B, alt: F, oct: D, dir: I });
255
+ return PV;
256
+ const C = Q === "M" ? "majorable" : "perfectable", E = "" + g + q, I = g < 0 ? -1 : 1, M = g === 8 || g === -8 ? g : I * (B + 1), F = rg(C, q), D = Math.floor((Math.abs(g) - 1) / 7), w = I * (Sq[B] + F + 12 * D), U = (I * (Sq[B] + F) % 12 + 12) % 12, o = FB({ step: B, alt: F, oct: D, dir: I });
257
257
  return {
258
258
  empty: !1,
259
259
  name: E,
@@ -270,20 +270,20 @@ function mg(A) {
270
270
  oct: D
271
271
  };
272
272
  }
273
- function ng(A, V) {
273
+ function rg(A, V) {
274
274
  return V === "M" && A === "majorable" || V === "P" && A === "perfectable" ? 0 : V === "m" && A === "majorable" ? -1 : /^A+$/.test(V) ? V.length : /^d+$/.test(V) ? -1 * (A === "perfectable" ? V.length : V.length + 1) : 0;
275
275
  }
276
- function Og(A) {
276
+ function Hg(A) {
277
277
  const { step: V, alt: g, oct: q = 0, dir: B } = A;
278
278
  if (!B)
279
279
  return "";
280
- const Q = V + 1 + 7 * q, C = Q === 0 ? V + 1 : Q, E = B < 0 ? "-" : "", I = TB[V] === "M" ? "majorable" : "perfectable";
281
- return E + C + jg(I, g);
280
+ const Q = V + 1 + 7 * q, C = Q === 0 ? V + 1 : Q, E = B < 0 ? "-" : "", I = SB[V] === "M" ? "majorable" : "perfectable";
281
+ return E + C + Zg(I, g);
282
282
  }
283
- function jg(A, V) {
284
- return V === 0 ? A === "majorable" ? "M" : "P" : V === -1 && A === "majorable" ? "m" : V > 0 ? Yq("A", V) : Yq("d", A === "perfectable" ? V : V + 1);
283
+ function Zg(A, V) {
284
+ return V === 0 ? A === "majorable" ? "M" : "P" : V === -1 && A === "majorable" ? "m" : V > 0 ? wq("A", V) : wq("d", A === "perfectable" ? V : V + 1);
285
285
  }
286
- var sq = (A, V) => Array(Math.abs(V) + 1).join(A), sB = Object.freeze({
286
+ var Rq = (A, V) => Array(Math.abs(V) + 1).join(A), RB = Object.freeze({
287
287
  empty: !0,
288
288
  name: "",
289
289
  letter: "",
@@ -296,28 +296,28 @@ var sq = (A, V) => Array(Math.abs(V) + 1).join(A), sB = Object.freeze({
296
296
  coord: [],
297
297
  midi: null,
298
298
  freq: null
299
- }), hq = /* @__PURE__ */ new Map(), ug = (A) => "CDEFGAB".charAt(A), zg = (A) => A < 0 ? sq("b", -A) : sq("#", A), fg = (A) => A[0] === "b" ? -A.length : A.length;
300
- function kA(A) {
301
- const V = JSON.stringify(A), g = hq.get(V);
299
+ }), Gq = /* @__PURE__ */ new Map(), pg = (A) => "CDEFGAB".charAt(A), yg = (A) => A < 0 ? Rq("b", -A) : Rq("#", A), Lg = (A) => A[0] === "b" ? -A.length : A.length;
300
+ function lA(A) {
301
+ const V = JSON.stringify(A), g = Gq.get(V);
302
302
  if (g)
303
303
  return g;
304
- const q = typeof A == "string" ? _g(A) : RB(A) ? kA($g(A)) : SB(A) ? kA(A.name) : sB;
305
- return hq.set(V, q), q;
304
+ const q = typeof A == "string" ? Og(A) : UB(A) ? lA(jg(A)) : DB(A) ? lA(A.name) : RB;
305
+ return Gq.set(V, q), q;
306
306
  }
307
- var dg = /^([a-gA-G]?)(#{1,}|b{1,}|x{1,}|)(-?\d*)\s*(.*)$/;
308
- function Xg(A) {
309
- const V = dg.exec(A);
307
+ var cg = /^([a-gA-G]?)(#{1,}|b{1,}|x{1,}|)(-?\d*)\s*(.*)$/;
308
+ function Pg(A) {
309
+ const V = cg.exec(A);
310
310
  return V ? [V[1].toUpperCase(), V[2].replace(/x/g, "##"), V[3], V[4]] : ["", "", "", ""];
311
311
  }
312
- function bg(A) {
313
- return kA(Zg(A));
312
+ function mg(A) {
313
+ return lA(ag(A));
314
314
  }
315
- var vg = (A, V) => (A % V + V) % V, oV = [0, 2, 4, 5, 7, 9, 11];
316
- function _g(A) {
317
- const V = Xg(A);
315
+ var ng = (A, V) => (A % V + V) % V, DV = [0, 2, 4, 5, 7, 9, 11];
316
+ function Og(A) {
317
+ const V = Pg(A);
318
318
  if (V[0] === "" || V[3] !== "")
319
- return sB;
320
- const g = V[0], q = V[1], B = V[2], Q = (g.charCodeAt(0) + 3) % 7, C = fg(q), E = B.length ? +B : void 0, I = iB({ step: Q, alt: C, oct: E }), M = g + q + B, F = g + q, D = (oV[Q] + C + 120) % 12, w = E === void 0 ? vg(oV[Q] + C, 12) - 12 * 99 : oV[Q] + C + 12 * (E + 1), U = w >= 0 && w <= 127 ? w : null, o = E === void 0 ? null : Math.pow(2, (w - 69) / 12) * 440;
319
+ return RB;
320
+ const g = V[0], q = V[1], B = V[2], Q = (g.charCodeAt(0) + 3) % 7, C = Lg(q), E = B.length ? +B : void 0, I = FB({ step: Q, alt: C, oct: E }), M = g + q + B, F = g + q, D = (DV[Q] + C + 120) % 12, w = E === void 0 ? ng(DV[Q] + C, 12) - 12 * 99 : DV[Q] + C + 12 * (E + 1), U = w >= 0 && w <= 127 ? w : null, o = E === void 0 ? null : Math.pow(2, (w - 69) / 12) * 440;
321
321
  return {
322
322
  empty: !1,
323
323
  acc: q,
@@ -334,41 +334,41 @@ function _g(A) {
334
334
  step: Q
335
335
  };
336
336
  }
337
- function $g(A) {
338
- const { step: V, alt: g, oct: q } = A, B = ug(V);
337
+ function jg(A) {
338
+ const { step: V, alt: g, oct: q } = A, B = pg(V);
339
339
  if (!B)
340
340
  return "";
341
- const Q = B + zg(g);
341
+ const Q = B + yg(g);
342
342
  return q || q === 0 ? Q + q : Q;
343
343
  }
344
- function AE(A, V) {
345
- const g = kA(A), q = Array.isArray(V) ? V : fA(V).coord;
344
+ function ug(A, V) {
345
+ const g = lA(A), q = Array.isArray(V) ? V : fA(V).coord;
346
346
  if (g.empty || !q || q.length < 2)
347
347
  return "";
348
348
  const B = g.coord, Q = B.length === 1 ? [B[0] + q[0]] : [B[0] + q[0], B[1] + q[1]];
349
- return bg(Q).name;
349
+ return mg(Q).name;
350
350
  }
351
- function hB(A, V) {
351
+ function GB(A, V) {
352
352
  const g = V.length, q = (A % g + g) % g;
353
353
  return V.slice(q, g).concat(V.slice(0, q));
354
354
  }
355
- var KA = {
355
+ var kA = {
356
356
  empty: !0,
357
357
  name: "",
358
358
  setNum: 0,
359
359
  chroma: "000000000000",
360
360
  normalized: "000000000000",
361
361
  intervals: []
362
- }, kB = (A) => Number(A).toString(2).padStart(12, "0"), kq = (A) => parseInt(A, 2), VE = /^[01]{12}$/;
363
- function KB(A) {
364
- return VE.test(A);
362
+ }, YB = (A) => Number(A).toString(2).padStart(12, "0"), Yq = (A) => parseInt(A, 2), zg = /^[01]{12}$/;
363
+ function iB(A) {
364
+ return zg.test(A);
365
365
  }
366
- var qE = (A) => typeof A == "number" && A >= 0 && A <= 4095, BE = (A) => A && KB(A.chroma), Kq = { [KA.chroma]: KA };
367
- function JB(A) {
368
- const V = KB(A) ? A : qE(A) ? kB(A) : Array.isArray(A) ? CE(A) : BE(A) ? A.chroma : KA.chroma;
369
- return Kq[V] = Kq[V] || IE(V);
366
+ var fg = (A) => typeof A == "number" && A >= 0 && A <= 4095, dg = (A) => A && iB(A.chroma), iq = { [kA.chroma]: kA };
367
+ function TB(A) {
368
+ const V = iB(A) ? A : fg(A) ? YB(A) : Array.isArray(A) ? $g(A) : dg(A) ? A.chroma : kA.chroma;
369
+ return iq[V] = iq[V] || _g(V);
370
370
  }
371
- var gE = [
371
+ var Xg = [
372
372
  "1P",
373
373
  "2m",
374
374
  "2M",
@@ -382,18 +382,18 @@ var gE = [
382
382
  "7m",
383
383
  "7M"
384
384
  ];
385
- function EE(A) {
385
+ function bg(A) {
386
386
  const V = [];
387
387
  for (let g = 0; g < 12; g++)
388
- A.charAt(g) === "1" && V.push(gE[g]);
388
+ A.charAt(g) === "1" && V.push(Xg[g]);
389
389
  return V;
390
390
  }
391
- function QE(A) {
391
+ function vg(A) {
392
392
  const V = A.split("");
393
- return V.map((g, q) => hB(q, V).join(""));
393
+ return V.map((g, q) => GB(q, V).join(""));
394
394
  }
395
- function IE(A) {
396
- const V = kq(A), g = QE(A).map(kq).filter((Q) => Q >= 2048).sort()[0], q = kB(g), B = EE(A);
395
+ function _g(A) {
396
+ const V = Yq(A), g = vg(A).map(Yq).filter((Q) => Q >= 2048).sort()[0], q = YB(g), B = bg(A);
397
397
  return {
398
398
  empty: !1,
399
399
  name: "",
@@ -403,16 +403,16 @@ function IE(A) {
403
403
  intervals: B
404
404
  };
405
405
  }
406
- function CE(A) {
406
+ function $g(A) {
407
407
  if (A.length === 0)
408
- return KA.chroma;
408
+ return kA.chroma;
409
409
  let V;
410
410
  const g = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
411
411
  for (let q = 0; q < A.length; q++)
412
- V = kA(A[q]), V.empty && (V = fA(A[q])), V.empty || (g[V.chroma] = 1);
412
+ V = lA(A[q]), V.empty && (V = fA(A[q])), V.empty || (g[V.chroma] = 1);
413
413
  return g.join("");
414
414
  }
415
- var ME = [
415
+ var AE = [
416
416
  // ==Major==
417
417
  ["1P 3M 5P", "major", "M ^ maj"],
418
418
  ["1P 3M 5P 7M", "major seventh", "maj7 Δ ma7 M7 Maj7 ^7"],
@@ -545,33 +545,33 @@ var ME = [
545
545
  ["1P 4P 5P 7m 9m 13m", "", "7sus4b9b13 7b9b13sus4"],
546
546
  ["1P 4P 7m 10m", "", "4 quartal"],
547
547
  ["1P 5P 7m 9m 11P", "", "11b9"]
548
- ], DE = ME;
548
+ ], VE = AE;
549
549
  ({
550
- ...KA
550
+ ...kA
551
551
  });
552
- var aB = [], uA = {};
553
- function UE(A, V, g) {
554
- const q = wE(A), B = {
555
- ...JB(A),
552
+ var sB = [], uA = {};
553
+ function qE(A, V, g) {
554
+ const q = gE(A), B = {
555
+ ...TB(A),
556
556
  name: g || "",
557
557
  quality: q,
558
558
  intervals: A,
559
559
  aliases: V
560
560
  };
561
- aB.push(B), B.name && (uA[B.name] = B), uA[B.setNum] = B, uA[B.chroma] = B, B.aliases.forEach((Q) => oE(B, Q));
561
+ sB.push(B), B.name && (uA[B.name] = B), uA[B.setNum] = B, uA[B.chroma] = B, B.aliases.forEach((Q) => BE(B, Q));
562
562
  }
563
- function oE(A, V) {
563
+ function BE(A, V) {
564
564
  uA[V] = A;
565
565
  }
566
- function wE(A) {
566
+ function gE(A) {
567
567
  const V = (g) => A.indexOf(g) !== -1;
568
568
  return V("5A") ? "Augmented" : V("3M") ? "Major" : V("5d") ? "Diminished" : V("3m") ? "Minor" : "Unknown";
569
569
  }
570
- DE.forEach(
571
- ([A, V, g]) => UE(A.split(" "), g.split(" "), V)
570
+ VE.forEach(
571
+ ([A, V, g]) => qE(A.split(" "), g.split(" "), V)
572
572
  );
573
- aB.sort((A, V) => A.setNum - V.setNum);
574
- var FE = [
573
+ sB.sort((A, V) => A.setNum - V.setNum);
574
+ var EE = [
575
575
  // Basic scales
576
576
  ["1P 2M 3M 5P 6M", "major pentatonic", "pentatonic"],
577
577
  ["1P 2M 3M 4P 5P 6M 7M", "major", "ionian"],
@@ -713,25 +713,25 @@ var FE = [
713
713
  ["1P 2m 2M 3m 4P 4A 5P 6m 6M 7M", "messiaen's mode #7"],
714
714
  // 12-note scales
715
715
  ["1P 2m 2M 3m 3M 4P 5d 5P 6m 6M 7m 7M", "chromatic"]
716
- ], SE = FE, RE = {
717
- ...KA,
716
+ ], QE = EE, IE = {
717
+ ...kA,
718
718
  intervals: [],
719
719
  aliases: []
720
720
  }, rA = {};
721
- function GE(A) {
722
- return rA[A] || RE;
721
+ function CE(A) {
722
+ return rA[A] || IE;
723
723
  }
724
- function YE(A, V, g = []) {
725
- const q = { ...JB(A), name: V, intervals: A, aliases: g };
726
- return rA[q.name] = q, rA[q.setNum] = q, rA[q.chroma] = q, q.aliases.forEach((B) => iE(q, B)), q;
724
+ function ME(A, V, g = []) {
725
+ const q = { ...TB(A), name: V, intervals: A, aliases: g };
726
+ return rA[q.name] = q, rA[q.setNum] = q, rA[q.chroma] = q, q.aliases.forEach((B) => DE(q, B)), q;
727
727
  }
728
- function iE(A, V) {
728
+ function DE(A, V) {
729
729
  rA[V] = A;
730
730
  }
731
- SE.forEach(
732
- ([A, V, ...g]) => YE(A.split(" "), V, g)
731
+ QE.forEach(
732
+ ([A, V, ...g]) => ME(A.split(" "), V, g)
733
733
  );
734
- var TE = [
734
+ var UE = [
735
735
  [
736
736
  0.125,
737
737
  "dl",
@@ -748,104 +748,29 @@ var TE = [
748
748
  [64, "sf", ["sixty-fourth", "hemidemisemiquaver"]],
749
749
  [128, "h", ["hundred twenty-eighth"]],
750
750
  [256, "th", ["two hundred fifty-sixth"]]
751
- ], sE = TE;
752
- sE.forEach(
751
+ ], oE = UE;
752
+ oE.forEach(
753
753
  ([A, V, g]) => void 0
754
754
  );
755
- function XV(A) {
756
- return +A >= 0 && +A <= 127;
757
- }
758
- function NB(A) {
759
- if (XV(A))
760
- return +A;
761
- const V = kA(A);
762
- return V.empty ? null : V.midi;
763
- }
764
- function eB(A, V = 440) {
765
- return Math.pow(2, (A - 69) / 12) * V;
766
- }
767
- var hE = Math.log(2), kE = Math.log(440);
768
- function lB(A) {
769
- const V = 12 * (Math.log(A) - kE) / hE + 69;
770
- return Math.round(V * 100) / 100;
771
- }
772
- var KE = "C C# D D# E F F# G G# A A# B".split(" "), JE = "C Db D Eb E F Gb G Ab A Bb B".split(" ");
773
- function bV(A, V = {}) {
755
+ var wE = "C C# D D# E F F# G G# A A# B".split(" "), FE = "C Db D Eb E F Gb G Ab A Bb B".split(" ");
756
+ function hB(A, V = {}) {
774
757
  if (isNaN(A) || A === -1 / 0 || A === 1 / 0) return "";
775
758
  A = Math.round(A);
776
- const q = (V.sharps === !0 ? KE : JE)[A % 12];
759
+ const q = (V.sharps === !0 ? wE : FE)[A % 12];
777
760
  if (V.pitchClass)
778
761
  return q;
779
762
  const B = Math.floor(A / 12) - 1;
780
763
  return q + B;
781
764
  }
782
- function $A(A) {
783
- return A % 12;
784
- }
785
- function aE(A) {
786
- return A.split("").reduce((V, g, q) => (q < 12 && g === "1" && V.push(q), V), []);
787
- }
788
- function NE(A) {
789
- return A.map($A).sort((V, g) => V - g).filter((V, g, q) => g === 0 || V !== q[g - 1]);
790
- }
791
- function AV(A) {
792
- return Array.isArray(A) ? NE(A) : aE(A);
793
- }
794
- function xB(A) {
795
- const V = AV(A);
796
- return (g) => {
797
- const q = $A(g);
798
- for (let B = 0; B < 12; B++) {
799
- if (V.includes(q + B)) return g + B;
800
- if (V.includes(q - B)) return g - B;
801
- }
802
- };
803
- }
804
- function vV(A, V) {
805
- const g = AV(A), q = g.length;
806
- return (B) => {
807
- const Q = B < 0 ? (q - -B % q) % q : B % q, C = Math.floor(B / q);
808
- return g[Q] + C * 12 + V;
809
- };
810
- }
811
- function tB(A, V) {
812
- const g = vV(A, V);
813
- return (q) => {
814
- if (q !== 0)
815
- return g(q > 0 ? q - 1 : q);
816
- };
817
- }
818
- var eE = {
819
- chroma: $A,
820
- freqToMidi: lB,
821
- isMidi: XV,
822
- midiToFreq: eB,
823
- midiToNoteName: bV,
824
- pcsetNearest: xB,
825
- pcset: AV,
826
- pcsetDegrees: tB,
827
- pcsetSteps: vV,
828
- toMidi: NB
829
- };
830
- const lE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
765
+ const SE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
831
766
  __proto__: null,
832
- chroma: $A,
833
- default: eE,
834
- freqToMidi: lB,
835
- isMidi: XV,
836
- midiToFreq: eB,
837
- midiToNoteName: bV,
838
- pcset: AV,
839
- pcsetDegrees: tB,
840
- pcsetNearest: xB,
841
- pcsetSteps: vV,
842
- toMidi: NB
767
+ midiToNoteName: hB
843
768
  }, Symbol.toStringTag, { value: "Module" }));
844
- var WB = kA, xE = (A) => WB(A).pc, Jq = (A) => WB(A).midi;
845
- function rB(A) {
846
- return bV(A);
769
+ var kB = lA, RE = (A) => kB(A).pc, Tq = (A) => kB(A).midi;
770
+ function KB(A) {
771
+ return hB(A);
847
772
  }
848
- var _V = [
773
+ var fV = [
849
774
  [0, 2773, 0, "ionian", "", "Maj7", "major"],
850
775
  [1, 2902, 2, "dorian", "m", "m7"],
851
776
  [2, 3418, 4, "phrygian", "m", "m7"],
@@ -853,28 +778,28 @@ var _V = [
853
778
  [4, 2774, 1, "mixolydian", "", "7"],
854
779
  [5, 2906, 3, "aeolian", "m", "m7", "minor"],
855
780
  [6, 3434, 5, "locrian", "dim", "m7b5"]
856
- ], aq = {
857
- ...KA,
781
+ ], sq = {
782
+ ...kA,
858
783
  name: "",
859
784
  alt: 0,
860
785
  modeNum: NaN,
861
786
  triad: "",
862
787
  seventh: "",
863
788
  aliases: []
864
- }, tE = _V.map(WE), OV = {};
865
- tE.forEach((A) => {
866
- OV[A.name] = A, A.aliases.forEach((V) => {
867
- OV[V] = A;
789
+ }, GE = fV.map(YE), mV = {};
790
+ GE.forEach((A) => {
791
+ mV[A.name] = A, A.aliases.forEach((V) => {
792
+ mV[V] = A;
868
793
  });
869
794
  });
870
- function HB(A) {
871
- return typeof A == "string" ? OV[A.toLowerCase()] || aq : A && A.name ? HB(A.name) : aq;
795
+ function JB(A) {
796
+ return typeof A == "string" ? mV[A.toLowerCase()] || sq : A && A.name ? JB(A.name) : sq;
872
797
  }
873
- function WE(A) {
798
+ function YE(A) {
874
799
  const [V, g, q, B, Q, C, E] = A, I = E ? [E] : [], M = Number(g).toString(2);
875
800
  return {
876
801
  empty: !1,
877
- intervals: GE(B).intervals,
802
+ intervals: CE(B).intervals,
878
803
  modeNum: V,
879
804
  chroma: M,
880
805
  normalized: M,
@@ -886,21 +811,21 @@ function WE(A) {
886
811
  aliases: I
887
812
  };
888
813
  }
889
- function ZB(A) {
814
+ function aB(A) {
890
815
  return (V, g) => {
891
- const q = HB(V);
816
+ const q = JB(V);
892
817
  if (q.empty) return [];
893
- const B = hB(q.modeNum, A), Q = q.intervals.map((C) => AE(g, C));
818
+ const B = GB(q.modeNum, A), Q = q.intervals.map((C) => ug(g, C));
894
819
  return B.map((C, E) => Q[E] + C);
895
820
  };
896
821
  }
897
- ZB(_V.map((A) => A[4]));
898
- ZB(_V.map((A) => A[5]));
822
+ aB(fV.map((A) => A[4]));
823
+ aB(fV.map((A) => A[5]));
899
824
  var PA = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
900
- function VV(A) {
825
+ function $A(A) {
901
826
  return A && A.__esModule && Object.prototype.hasOwnProperty.call(A, "default") ? A.default : A;
902
827
  }
903
- function rE(A) {
828
+ function iE(A) {
904
829
  if (Object.prototype.hasOwnProperty.call(A, "__esModule")) return A;
905
830
  var V = A.default;
906
831
  if (typeof V == "function") {
@@ -919,10 +844,10 @@ function rE(A) {
919
844
  });
920
845
  }), g;
921
846
  }
922
- var wV, Nq;
923
- function HE() {
924
- if (Nq) return wV;
925
- Nq = 1, wV = A;
847
+ var UV, hq;
848
+ function TE() {
849
+ if (hq) return UV;
850
+ hq = 1, UV = A;
926
851
  function A(V, g, q) {
927
852
  if (V != null && typeof V != "number")
928
853
  throw new Error("start must be a number or null");
@@ -935,10 +860,10 @@ function HE() {
935
860
  B.push(V);
936
861
  return B;
937
862
  }
938
- return wV;
863
+ return UV;
939
864
  }
940
- var ZE = HE();
941
- const $V = /* @__PURE__ */ VV(ZE);
865
+ var sE = TE();
866
+ const dV = /* @__PURE__ */ $A(sE);
942
867
  var mA = { exports: {} }, nA = { exports: {} }, f = {};
943
868
  /** @license React v16.13.1
944
869
  * react-is.production.min.js
@@ -948,10 +873,10 @@ var mA = { exports: {} }, nA = { exports: {} }, f = {};
948
873
  * This source code is licensed under the MIT license found in the
949
874
  * LICENSE file in the root directory of this source tree.
950
875
  */
951
- var eq;
952
- function pE() {
953
- if (eq) return f;
954
- eq = 1;
876
+ var kq;
877
+ function hE() {
878
+ if (kq) return f;
879
+ kq = 1;
955
880
  var A = typeof Symbol == "function" && Symbol.for, V = A ? Symbol.for("react.element") : 60103, g = A ? Symbol.for("react.portal") : 60106, q = A ? Symbol.for("react.fragment") : 60107, B = A ? Symbol.for("react.strict_mode") : 60108, Q = A ? Symbol.for("react.profiler") : 60114, C = A ? Symbol.for("react.provider") : 60109, E = A ? Symbol.for("react.context") : 60110, I = A ? Symbol.for("react.async_mode") : 60111, M = A ? Symbol.for("react.concurrent_mode") : 60111, F = A ? Symbol.for("react.forward_ref") : 60112, D = A ? Symbol.for("react.suspense") : 60113, w = A ? Symbol.for("react.suspense_list") : 60120, U = A ? Symbol.for("react.memo") : 60115, o = A ? Symbol.for("react.lazy") : 60116, R = A ? Symbol.for("react.block") : 60121, Y = A ? Symbol.for("react.fundamental") : 60117, p = A ? Symbol.for("react.responder") : 60118, H = A ? Symbol.for("react.scope") : 60119;
956
881
  function k(S) {
957
882
  if (typeof S == "object" && S !== null) {
@@ -1023,9 +948,9 @@ var d = {};
1023
948
  * This source code is licensed under the MIT license found in the
1024
949
  * LICENSE file in the root directory of this source tree.
1025
950
  */
1026
- var lq;
1027
- function yE() {
1028
- return lq || (lq = 1, process.env.NODE_ENV !== "production" && function() {
951
+ var Kq;
952
+ function kE() {
953
+ return Kq || (Kq = 1, process.env.NODE_ENV !== "production" && function() {
1029
954
  var A = typeof Symbol == "function" && Symbol.for, V = A ? Symbol.for("react.element") : 60103, g = A ? Symbol.for("react.portal") : 60106, q = A ? Symbol.for("react.fragment") : 60107, B = A ? Symbol.for("react.strict_mode") : 60108, Q = A ? Symbol.for("react.profiler") : 60114, C = A ? Symbol.for("react.provider") : 60109, E = A ? Symbol.for("react.context") : 60110, I = A ? Symbol.for("react.async_mode") : 60111, M = A ? Symbol.for("react.concurrent_mode") : 60111, F = A ? Symbol.for("react.forward_ref") : 60112, D = A ? Symbol.for("react.suspense") : 60113, w = A ? Symbol.for("react.suspense_list") : 60120, U = A ? Symbol.for("react.memo") : 60115, o = A ? Symbol.for("react.lazy") : 60116, R = A ? Symbol.for("react.block") : 60121, Y = A ? Symbol.for("react.fundamental") : 60117, p = A ? Symbol.for("react.responder") : 60118, H = A ? Symbol.for("react.scope") : 60119;
1030
955
  function k(N) {
1031
956
  return typeof N == "string" || typeof N == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
@@ -1046,14 +971,14 @@ function yE() {
1046
971
  case D:
1047
972
  return YA;
1048
973
  default:
1049
- var JA = YA && YA.$$typeof;
1050
- switch (JA) {
974
+ var KA = YA && YA.$$typeof;
975
+ switch (KA) {
1051
976
  case E:
1052
977
  case F:
1053
978
  case o:
1054
979
  case U:
1055
980
  case C:
1056
- return JA;
981
+ return KA;
1057
982
  default:
1058
983
  return _;
1059
984
  }
@@ -1073,7 +998,7 @@ function yE() {
1073
998
  function J(N) {
1074
999
  return a(N) === E;
1075
1000
  }
1076
- function L(N) {
1001
+ function c(N) {
1077
1002
  return a(N) === C;
1078
1003
  }
1079
1004
  function P(N) {
@@ -1088,7 +1013,7 @@ function yE() {
1088
1013
  function W(N) {
1089
1014
  return a(N) === o;
1090
1015
  }
1091
- function c(N) {
1016
+ function L(N) {
1092
1017
  return a(N) === U;
1093
1018
  }
1094
1019
  function n(N) {
@@ -1103,22 +1028,22 @@ function yE() {
1103
1028
  function b(N) {
1104
1029
  return a(N) === D;
1105
1030
  }
1106
- d.AsyncMode = S, d.ConcurrentMode = T, d.ContextConsumer = i, d.ContextProvider = K, d.Element = e, d.ForwardRef = Z, d.Fragment = m, d.Lazy = u, d.Memo = BA, d.Portal = EA, d.Profiler = oA, d.StrictMode = v, d.Suspense = QA, d.isAsyncMode = gA, d.isConcurrentMode = s, d.isContextConsumer = J, d.isContextProvider = L, d.isElement = P, d.isForwardRef = y, d.isFragment = x, d.isLazy = W, d.isMemo = c, d.isPortal = n, d.isProfiler = j, d.isStrictMode = O, d.isSuspense = b, d.isValidElementType = k, d.typeOf = a;
1031
+ d.AsyncMode = S, d.ConcurrentMode = T, d.ContextConsumer = i, d.ContextProvider = K, d.Element = e, d.ForwardRef = Z, d.Fragment = m, d.Lazy = u, d.Memo = BA, d.Portal = EA, d.Profiler = oA, d.StrictMode = v, d.Suspense = QA, d.isAsyncMode = gA, d.isConcurrentMode = s, d.isContextConsumer = J, d.isContextProvider = c, d.isElement = P, d.isForwardRef = y, d.isFragment = x, d.isLazy = W, d.isMemo = L, d.isPortal = n, d.isProfiler = j, d.isStrictMode = O, d.isSuspense = b, d.isValidElementType = k, d.typeOf = a;
1107
1032
  }()), d;
1108
1033
  }
1109
- var xq;
1110
- function pB() {
1111
- return xq || (xq = 1, process.env.NODE_ENV === "production" ? nA.exports = pE() : nA.exports = yE()), nA.exports;
1034
+ var Jq;
1035
+ function NB() {
1036
+ return Jq || (Jq = 1, process.env.NODE_ENV === "production" ? nA.exports = hE() : nA.exports = kE()), nA.exports;
1112
1037
  }
1113
1038
  /*
1114
1039
  object-assign
1115
1040
  (c) Sindre Sorhus
1116
1041
  @license MIT
1117
1042
  */
1118
- var FV, tq;
1119
- function cE() {
1120
- if (tq) return FV;
1121
- tq = 1;
1043
+ var oV, aq;
1044
+ function KE() {
1045
+ if (aq) return oV;
1046
+ aq = 1;
1122
1047
  var A = Object.getOwnPropertySymbols, V = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
1123
1048
  function q(Q) {
1124
1049
  if (Q == null)
@@ -1147,7 +1072,7 @@ function cE() {
1147
1072
  return !1;
1148
1073
  }
1149
1074
  }
1150
- return FV = B() ? Object.assign : function(Q, C) {
1075
+ return oV = B() ? Object.assign : function(Q, C) {
1151
1076
  for (var E, I = q(Q), M, F = 1; F < arguments.length; F++) {
1152
1077
  E = Object(arguments[F]);
1153
1078
  for (var D in E)
@@ -1159,27 +1084,27 @@ function cE() {
1159
1084
  }
1160
1085
  }
1161
1086
  return I;
1162
- }, FV;
1087
+ }, oV;
1163
1088
  }
1164
- var SV, Wq;
1165
- function Aq() {
1166
- if (Wq) return SV;
1167
- Wq = 1;
1089
+ var wV, Nq;
1090
+ function XV() {
1091
+ if (Nq) return wV;
1092
+ Nq = 1;
1168
1093
  var A = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
1169
- return SV = A, SV;
1094
+ return wV = A, wV;
1170
1095
  }
1171
- var RV, rq;
1172
- function yB() {
1173
- return rq || (rq = 1, RV = Function.call.bind(Object.prototype.hasOwnProperty)), RV;
1096
+ var FV, eq;
1097
+ function eB() {
1098
+ return eq || (eq = 1, FV = Function.call.bind(Object.prototype.hasOwnProperty)), FV;
1174
1099
  }
1175
- var GV, Hq;
1176
- function LE() {
1177
- if (Hq) return GV;
1178
- Hq = 1;
1100
+ var SV, lq;
1101
+ function JE() {
1102
+ if (lq) return SV;
1103
+ lq = 1;
1179
1104
  var A = function() {
1180
1105
  };
1181
1106
  if (process.env.NODE_ENV !== "production") {
1182
- var V = /* @__PURE__ */ Aq(), g = {}, q = /* @__PURE__ */ yB();
1107
+ var V = /* @__PURE__ */ XV(), g = {}, q = /* @__PURE__ */ eB();
1183
1108
  A = function(Q) {
1184
1109
  var C = "Warning: " + Q;
1185
1110
  typeof console < "u" && console.error(C);
@@ -1219,13 +1144,13 @@ function LE() {
1219
1144
  }
1220
1145
  return B.resetWarningCache = function() {
1221
1146
  process.env.NODE_ENV !== "production" && (g = {});
1222
- }, GV = B, GV;
1147
+ }, SV = B, SV;
1223
1148
  }
1224
- var YV, Zq;
1225
- function PE() {
1226
- if (Zq) return YV;
1227
- Zq = 1;
1228
- var A = pB(), V = cE(), g = /* @__PURE__ */ Aq(), q = /* @__PURE__ */ yB(), B = /* @__PURE__ */ LE(), Q = function() {
1149
+ var RV, xq;
1150
+ function aE() {
1151
+ if (xq) return RV;
1152
+ xq = 1;
1153
+ var A = NB(), V = KE(), g = /* @__PURE__ */ XV(), q = /* @__PURE__ */ eB(), B = /* @__PURE__ */ JE(), Q = function() {
1229
1154
  };
1230
1155
  process.env.NODE_ENV !== "production" && (Q = function(E) {
1231
1156
  var I = "Warning: " + E;
@@ -1238,7 +1163,7 @@ function PE() {
1238
1163
  function C() {
1239
1164
  return null;
1240
1165
  }
1241
- return YV = function(E, I) {
1166
+ return RV = function(E, I) {
1242
1167
  var M = typeof Symbol == "function" && Symbol.iterator, F = "@@iterator";
1243
1168
  function D(s) {
1244
1169
  var J = s && (M && s[M] || s[F]);
@@ -1275,30 +1200,30 @@ function PE() {
1275
1200
  R.prototype = Error.prototype;
1276
1201
  function Y(s) {
1277
1202
  if (process.env.NODE_ENV !== "production")
1278
- var J = {}, L = 0;
1279
- function P(x, W, c, n, j, O, b) {
1280
- if (n = n || w, O = O || c, b !== g) {
1203
+ var J = {}, c = 0;
1204
+ function P(x, W, L, n, j, O, b) {
1205
+ if (n = n || w, O = O || L, b !== g) {
1281
1206
  if (I) {
1282
1207
  var N = new Error(
1283
1208
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
1284
1209
  );
1285
1210
  throw N.name = "Invariant Violation", N;
1286
1211
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
1287
- var _ = n + ":" + c;
1212
+ var _ = n + ":" + L;
1288
1213
  !J[_] && // Avoid spamming the console because they are often not actionable except for lib authors
1289
- L < 3 && (Q(
1214
+ c < 3 && (Q(
1290
1215
  "You are manually calling a React.PropTypes validation function for the `" + O + "` prop on `" + n + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
1291
- ), J[_] = !0, L++);
1216
+ ), J[_] = !0, c++);
1292
1217
  }
1293
1218
  }
1294
- return W[c] == null ? x ? W[c] === null ? new R("The " + j + " `" + O + "` is marked as required " + ("in `" + n + "`, but its value is `null`.")) : new R("The " + j + " `" + O + "` is marked as required in " + ("`" + n + "`, but its value is `undefined`.")) : null : s(W, c, n, j, O);
1219
+ return W[L] == null ? x ? W[L] === null ? new R("The " + j + " `" + O + "` is marked as required " + ("in `" + n + "`, but its value is `null`.")) : new R("The " + j + " `" + O + "` is marked as required in " + ("`" + n + "`, but its value is `undefined`.")) : null : s(W, L, n, j, O);
1295
1220
  }
1296
1221
  var y = P.bind(null, !1);
1297
1222
  return y.isRequired = P.bind(null, !0), y;
1298
1223
  }
1299
1224
  function p(s) {
1300
- function J(L, P, y, x, W, c) {
1301
- var n = L[P], j = v(n);
1225
+ function J(c, P, y, x, W, L) {
1226
+ var n = c[P], j = v(n);
1302
1227
  if (j !== s) {
1303
1228
  var O = QA(n);
1304
1229
  return new R(
@@ -1314,16 +1239,16 @@ function PE() {
1314
1239
  return Y(C);
1315
1240
  }
1316
1241
  function k(s) {
1317
- function J(L, P, y, x, W) {
1242
+ function J(c, P, y, x, W) {
1318
1243
  if (typeof s != "function")
1319
1244
  return new R("Property `" + W + "` of component `" + y + "` has invalid PropType notation inside arrayOf.");
1320
- var c = L[P];
1321
- if (!Array.isArray(c)) {
1322
- var n = v(c);
1245
+ var L = c[P];
1246
+ if (!Array.isArray(L)) {
1247
+ var n = v(L);
1323
1248
  return new R("Invalid " + x + " `" + W + "` of type " + ("`" + n + "` supplied to `" + y + "`, expected an array."));
1324
1249
  }
1325
- for (var j = 0; j < c.length; j++) {
1326
- var O = s(c, j, y, x, W + "[" + j + "]", g);
1250
+ for (var j = 0; j < L.length; j++) {
1251
+ var O = s(L, j, y, x, W + "[" + j + "]", g);
1327
1252
  if (O instanceof Error)
1328
1253
  return O;
1329
1254
  }
@@ -1332,32 +1257,32 @@ function PE() {
1332
1257
  return Y(J);
1333
1258
  }
1334
1259
  function a() {
1335
- function s(J, L, P, y, x) {
1336
- var W = J[L];
1260
+ function s(J, c, P, y, x) {
1261
+ var W = J[c];
1337
1262
  if (!E(W)) {
1338
- var c = v(W);
1339
- return new R("Invalid " + y + " `" + x + "` of type " + ("`" + c + "` supplied to `" + P + "`, expected a single ReactElement."));
1263
+ var L = v(W);
1264
+ return new R("Invalid " + y + " `" + x + "` of type " + ("`" + L + "` supplied to `" + P + "`, expected a single ReactElement."));
1340
1265
  }
1341
1266
  return null;
1342
1267
  }
1343
1268
  return Y(s);
1344
1269
  }
1345
1270
  function S() {
1346
- function s(J, L, P, y, x) {
1347
- var W = J[L];
1271
+ function s(J, c, P, y, x) {
1272
+ var W = J[c];
1348
1273
  if (!A.isValidElementType(W)) {
1349
- var c = v(W);
1350
- return new R("Invalid " + y + " `" + x + "` of type " + ("`" + c + "` supplied to `" + P + "`, expected a single ReactElement type."));
1274
+ var L = v(W);
1275
+ return new R("Invalid " + y + " `" + x + "` of type " + ("`" + L + "` supplied to `" + P + "`, expected a single ReactElement type."));
1351
1276
  }
1352
1277
  return null;
1353
1278
  }
1354
1279
  return Y(s);
1355
1280
  }
1356
1281
  function T(s) {
1357
- function J(L, P, y, x, W) {
1358
- if (!(L[P] instanceof s)) {
1359
- var c = s.name || w, n = gA(L[P]);
1360
- return new R("Invalid " + x + " `" + W + "` of type " + ("`" + n + "` supplied to `" + y + "`, expected ") + ("instance of `" + c + "`."));
1282
+ function J(c, P, y, x, W) {
1283
+ if (!(c[P] instanceof s)) {
1284
+ var L = s.name || w, n = gA(c[P]);
1285
+ return new R("Invalid " + x + " `" + W + "` of type " + ("`" + n + "` supplied to `" + y + "`, expected ") + ("instance of `" + L + "`."));
1361
1286
  }
1362
1287
  return null;
1363
1288
  }
@@ -1368,28 +1293,28 @@ function PE() {
1368
1293
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? Q(
1369
1294
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
1370
1295
  ) : Q("Invalid argument supplied to oneOf, expected an array.")), C;
1371
- function J(L, P, y, x, W) {
1372
- for (var c = L[P], n = 0; n < s.length; n++)
1373
- if (o(c, s[n]))
1296
+ function J(c, P, y, x, W) {
1297
+ for (var L = c[P], n = 0; n < s.length; n++)
1298
+ if (o(L, s[n]))
1374
1299
  return null;
1375
1300
  var j = JSON.stringify(s, function(b, N) {
1376
1301
  var _ = QA(N);
1377
1302
  return _ === "symbol" ? String(N) : N;
1378
1303
  });
1379
- return new R("Invalid " + x + " `" + W + "` of value `" + String(c) + "` " + ("supplied to `" + y + "`, expected one of " + j + "."));
1304
+ return new R("Invalid " + x + " `" + W + "` of value `" + String(L) + "` " + ("supplied to `" + y + "`, expected one of " + j + "."));
1380
1305
  }
1381
1306
  return Y(J);
1382
1307
  }
1383
1308
  function K(s) {
1384
- function J(L, P, y, x, W) {
1309
+ function J(c, P, y, x, W) {
1385
1310
  if (typeof s != "function")
1386
1311
  return new R("Property `" + W + "` of component `" + y + "` has invalid PropType notation inside objectOf.");
1387
- var c = L[P], n = v(c);
1312
+ var L = c[P], n = v(L);
1388
1313
  if (n !== "object")
1389
1314
  return new R("Invalid " + x + " `" + W + "` of type " + ("`" + n + "` supplied to `" + y + "`, expected an object."));
1390
- for (var j in c)
1391
- if (q(c, j)) {
1392
- var O = s(c, j, y, x, W + "." + j, g);
1315
+ for (var j in L)
1316
+ if (q(L, j)) {
1317
+ var O = s(L, j, y, x, W + "." + j, g);
1393
1318
  if (O instanceof Error)
1394
1319
  return O;
1395
1320
  }
@@ -1401,45 +1326,45 @@ function PE() {
1401
1326
  if (!Array.isArray(s))
1402
1327
  return process.env.NODE_ENV !== "production" && Q("Invalid argument supplied to oneOfType, expected an instance of array."), C;
1403
1328
  for (var J = 0; J < s.length; J++) {
1404
- var L = s[J];
1405
- if (typeof L != "function")
1329
+ var c = s[J];
1330
+ if (typeof c != "function")
1406
1331
  return Q(
1407
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + SA(L) + " at index " + J + "."
1332
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + SA(c) + " at index " + J + "."
1408
1333
  ), C;
1409
1334
  }
1410
- function P(y, x, W, c, n) {
1335
+ function P(y, x, W, L, n) {
1411
1336
  for (var j = [], O = 0; O < s.length; O++) {
1412
- var b = s[O], N = b(y, x, W, c, n, g);
1337
+ var b = s[O], N = b(y, x, W, L, n, g);
1413
1338
  if (N == null)
1414
1339
  return null;
1415
1340
  N.data && q(N.data, "expectedType") && j.push(N.data.expectedType);
1416
1341
  }
1417
1342
  var _ = j.length > 0 ? ", expected one of type [" + j.join(", ") + "]" : "";
1418
- return new R("Invalid " + c + " `" + n + "` supplied to " + ("`" + W + "`" + _ + "."));
1343
+ return new R("Invalid " + L + " `" + n + "` supplied to " + ("`" + W + "`" + _ + "."));
1419
1344
  }
1420
1345
  return Y(P);
1421
1346
  }
1422
1347
  function Z() {
1423
- function s(J, L, P, y, x) {
1424
- return EA(J[L]) ? null : new R("Invalid " + y + " `" + x + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
1348
+ function s(J, c, P, y, x) {
1349
+ return EA(J[c]) ? null : new R("Invalid " + y + " `" + x + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
1425
1350
  }
1426
1351
  return Y(s);
1427
1352
  }
1428
- function m(s, J, L, P, y) {
1353
+ function m(s, J, c, P, y) {
1429
1354
  return new R(
1430
- (s || "React class") + ": " + J + " type `" + L + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + y + "`."
1355
+ (s || "React class") + ": " + J + " type `" + c + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + y + "`."
1431
1356
  );
1432
1357
  }
1433
1358
  function u(s) {
1434
- function J(L, P, y, x, W) {
1435
- var c = L[P], n = v(c);
1359
+ function J(c, P, y, x, W) {
1360
+ var L = c[P], n = v(L);
1436
1361
  if (n !== "object")
1437
1362
  return new R("Invalid " + x + " `" + W + "` of type `" + n + "` " + ("supplied to `" + y + "`, expected `object`."));
1438
1363
  for (var j in s) {
1439
1364
  var O = s[j];
1440
1365
  if (typeof O != "function")
1441
1366
  return m(y, x, W, j, QA(O));
1442
- var b = O(c, j, y, x, W + "." + j, g);
1367
+ var b = O(L, j, y, x, W + "." + j, g);
1443
1368
  if (b)
1444
1369
  return b;
1445
1370
  }
@@ -1448,21 +1373,21 @@ function PE() {
1448
1373
  return Y(J);
1449
1374
  }
1450
1375
  function BA(s) {
1451
- function J(L, P, y, x, W) {
1452
- var c = L[P], n = v(c);
1376
+ function J(c, P, y, x, W) {
1377
+ var L = c[P], n = v(L);
1453
1378
  if (n !== "object")
1454
1379
  return new R("Invalid " + x + " `" + W + "` of type `" + n + "` " + ("supplied to `" + y + "`, expected `object`."));
1455
- var j = V({}, L[P], s);
1380
+ var j = V({}, c[P], s);
1456
1381
  for (var O in j) {
1457
1382
  var b = s[O];
1458
1383
  if (q(s, O) && typeof b != "function")
1459
1384
  return m(y, x, W, O, QA(b));
1460
1385
  if (!b)
1461
1386
  return new R(
1462
- "Invalid " + x + " `" + W + "` key `" + O + "` supplied to `" + y + "`.\nBad object: " + JSON.stringify(L[P], null, " ") + `
1387
+ "Invalid " + x + " `" + W + "` key `" + O + "` supplied to `" + y + "`.\nBad object: " + JSON.stringify(c[P], null, " ") + `
1463
1388
  Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
1464
1389
  );
1465
- var N = b(c, O, y, x, W + "." + O, g);
1390
+ var N = b(L, O, y, x, W + "." + O, g);
1466
1391
  if (N)
1467
1392
  return N;
1468
1393
  }
@@ -1485,13 +1410,13 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
1485
1410
  return !0;
1486
1411
  var J = D(s);
1487
1412
  if (J) {
1488
- var L = J.call(s), P;
1413
+ var c = J.call(s), P;
1489
1414
  if (J !== s.entries) {
1490
- for (; !(P = L.next()).done; )
1415
+ for (; !(P = c.next()).done; )
1491
1416
  if (!EA(P.value))
1492
1417
  return !1;
1493
1418
  } else
1494
- for (; !(P = L.next()).done; ) {
1419
+ for (; !(P = c.next()).done; ) {
1495
1420
  var y = P.value;
1496
1421
  if (y && !EA(y[1]))
1497
1422
  return !1;
@@ -1540,18 +1465,18 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
1540
1465
  return !s.constructor || !s.constructor.name ? w : s.constructor.name;
1541
1466
  }
1542
1467
  return U.checkPropTypes = B, U.resetWarningCache = B.resetWarningCache, U.PropTypes = U, U;
1543
- }, YV;
1468
+ }, RV;
1544
1469
  }
1545
- var iV, pq;
1546
- function mE() {
1547
- if (pq) return iV;
1548
- pq = 1;
1549
- var A = /* @__PURE__ */ Aq();
1470
+ var GV, tq;
1471
+ function NE() {
1472
+ if (tq) return GV;
1473
+ tq = 1;
1474
+ var A = /* @__PURE__ */ XV();
1550
1475
  function V() {
1551
1476
  }
1552
1477
  function g() {
1553
1478
  }
1554
- return g.resetWarningCache = V, iV = function() {
1479
+ return g.resetWarningCache = V, GV = function() {
1555
1480
  function q(C, E, I, M, F, D) {
1556
1481
  if (D !== A) {
1557
1482
  var w = new Error(
@@ -1588,24 +1513,24 @@ function mE() {
1588
1513
  resetWarningCache: V
1589
1514
  };
1590
1515
  return Q.PropTypes = Q, Q;
1591
- }, iV;
1592
- }
1593
- var yq;
1594
- function cB() {
1595
- if (yq) return mA.exports;
1596
- if (yq = 1, process.env.NODE_ENV !== "production") {
1597
- var A = pB(), V = !0;
1598
- mA.exports = /* @__PURE__ */ PE()(A.isElement, V);
1516
+ }, GV;
1517
+ }
1518
+ var Wq;
1519
+ function lB() {
1520
+ if (Wq) return mA.exports;
1521
+ if (Wq = 1, process.env.NODE_ENV !== "production") {
1522
+ var A = NB(), V = !0;
1523
+ mA.exports = /* @__PURE__ */ aE()(A.isElement, V);
1599
1524
  } else
1600
- mA.exports = /* @__PURE__ */ mE()();
1525
+ mA.exports = /* @__PURE__ */ NE()();
1601
1526
  return mA.exports;
1602
1527
  }
1603
- var nE = /* @__PURE__ */ cB();
1604
- const t = /* @__PURE__ */ VV(nE);
1605
- var TV, cq;
1606
- function OE() {
1607
- if (cq) return TV;
1608
- cq = 1;
1528
+ var eE = /* @__PURE__ */ lB();
1529
+ const t = /* @__PURE__ */ $A(eE);
1530
+ var YV, rq;
1531
+ function lE() {
1532
+ if (rq) return YV;
1533
+ rq = 1;
1609
1534
  var A = 200, V = "__lodash_hash_undefined__", g = 9007199254740991, q = "[object Arguments]", B = "[object Function]", Q = "[object GeneratorFunction]", C = /[\\^$.*+?()[\]{}|]/g, E = /^\[object .+?Constructor\]$/, I = typeof PA == "object" && PA && PA.Object === Object && PA, M = typeof self == "object" && self && self.Object === Object && self, F = I || M || Function("return this")();
1610
1535
  function D(G, h, r) {
1611
1536
  switch (r.length) {
@@ -1666,7 +1591,7 @@ function OE() {
1666
1591
  return G ? "Symbol(src)_1." + G : "";
1667
1592
  }(), e = S.toString, Z = T.hasOwnProperty, m = T.toString, u = RegExp(
1668
1593
  "^" + e.call(Z).replace(C, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1669
- ), BA = F.Symbol, EA = T.propertyIsEnumerable, oA = a.splice, v = BA ? BA.isConcatSpreadable : void 0, QA = Math.max, SA = Mq(F, "Map"), gA = Mq(Object, "create");
1594
+ ), BA = F.Symbol, EA = T.propertyIsEnumerable, oA = a.splice, v = BA ? BA.isConcatSpreadable : void 0, QA = Math.max, SA = gq(F, "Map"), gA = gq(Object, "create");
1670
1595
  function s(G) {
1671
1596
  var h = -1, r = G ? G.length : 0;
1672
1597
  for (this.clear(); ++h < r; ) {
@@ -1677,7 +1602,7 @@ function OE() {
1677
1602
  function J() {
1678
1603
  this.__data__ = gA ? gA(null) : {};
1679
1604
  }
1680
- function L(G) {
1605
+ function c(G) {
1681
1606
  return this.has(G) && delete this.__data__[G];
1682
1607
  }
1683
1608
  function P(G) {
@@ -1696,7 +1621,7 @@ function OE() {
1696
1621
  var r = this.__data__;
1697
1622
  return r[G] = gA && h === void 0 ? V : h, this;
1698
1623
  }
1699
- s.prototype.clear = J, s.prototype.delete = L, s.prototype.get = P, s.prototype.has = y, s.prototype.set = x;
1624
+ s.prototype.clear = J, s.prototype.delete = c, s.prototype.get = P, s.prototype.has = y, s.prototype.set = x;
1700
1625
  function W(G) {
1701
1626
  var h = -1, r = G ? G.length : 0;
1702
1627
  for (this.clear(); ++h < r; ) {
@@ -1704,7 +1629,7 @@ function OE() {
1704
1629
  this.set(z[0], z[1]);
1705
1630
  }
1706
1631
  }
1707
- function c() {
1632
+ function L() {
1708
1633
  this.__data__ = [];
1709
1634
  }
1710
1635
  function n(G) {
@@ -1725,7 +1650,7 @@ function OE() {
1725
1650
  var r = this.__data__, z = tA(r, G);
1726
1651
  return z < 0 ? r.push([G, h]) : r[z][1] = h, this;
1727
1652
  }
1728
- W.prototype.clear = c, W.prototype.delete = n, W.prototype.get = j, W.prototype.has = O, W.prototype.set = b;
1653
+ W.prototype.clear = L, W.prototype.delete = n, W.prototype.get = j, W.prototype.has = O, W.prototype.set = b;
1729
1654
  function N(G) {
1730
1655
  var h = -1, r = G ? G.length : 0;
1731
1656
  for (this.clear(); ++h < r; ) {
@@ -1743,16 +1668,16 @@ function OE() {
1743
1668
  function YA(G) {
1744
1669
  return yA(this, G).delete(G);
1745
1670
  }
1746
- function JA(G) {
1671
+ function KA(G) {
1747
1672
  return yA(this, G).get(G);
1748
1673
  }
1749
- function QV(G) {
1674
+ function gV(G) {
1750
1675
  return yA(this, G).has(G);
1751
1676
  }
1752
- function IV(G, h) {
1677
+ function EV(G, h) {
1753
1678
  return yA(this, G).set(G, h), this;
1754
1679
  }
1755
- N.prototype.clear = _, N.prototype.delete = YA, N.prototype.get = JA, N.prototype.has = QV, N.prototype.set = IV;
1680
+ N.prototype.clear = _, N.prototype.delete = YA, N.prototype.get = KA, N.prototype.has = gV, N.prototype.set = EV;
1756
1681
  function $(G) {
1757
1682
  var h = -1, r = G ? G.length : 0;
1758
1683
  for (this.__data__ = new N(); ++h < r; )
@@ -1767,42 +1692,42 @@ function OE() {
1767
1692
  $.prototype.add = $.prototype.push = CA, $.prototype.has = pA;
1768
1693
  function tA(G, h) {
1769
1694
  for (var r = G.length; r--; )
1770
- if (Vg(G[r][0], h))
1695
+ if (zB(G[r][0], h))
1771
1696
  return r;
1772
1697
  return -1;
1773
1698
  }
1774
- function CV(G, h, r, z) {
1775
- var IA = -1, MA = w, iA = !0, WA = G.length, cA = [], Ig = h.length;
1699
+ function QV(G, h, r, z) {
1700
+ var IA = -1, MA = w, iA = !0, WA = G.length, LA = [], _B = h.length;
1776
1701
  if (!WA)
1777
- return cA;
1702
+ return LA;
1778
1703
  h.length >= A && (MA = p, iA = !1, h = new $(h));
1779
1704
  A:
1780
1705
  for (; ++IA < WA; ) {
1781
- var NA = G[IA], LA = NA;
1782
- if (NA = NA !== 0 ? NA : 0, iA && LA === LA) {
1783
- for (var oq = Ig; oq--; )
1784
- if (h[oq] === LA)
1706
+ var aA = G[IA], cA = aA;
1707
+ if (aA = aA !== 0 ? aA : 0, iA && cA === cA) {
1708
+ for (var Iq = _B; Iq--; )
1709
+ if (h[Iq] === cA)
1785
1710
  continue A;
1786
- cA.push(NA);
1787
- } else MA(h, LA, z) || cA.push(NA);
1711
+ LA.push(aA);
1712
+ } else MA(h, cA, z) || LA.push(aA);
1788
1713
  }
1789
- return cA;
1714
+ return LA;
1790
1715
  }
1791
- function aA(G, h, r, z, IA) {
1716
+ function JA(G, h, r, z, IA) {
1792
1717
  var MA = -1, iA = G.length;
1793
- for (r || (r = bB), IA || (IA = []); ++MA < iA; ) {
1718
+ for (r || (r = mB), IA || (IA = []); ++MA < iA; ) {
1794
1719
  var WA = G[MA];
1795
1720
  r(WA) && U(IA, WA);
1796
1721
  }
1797
1722
  return IA;
1798
1723
  }
1799
- function MV(G) {
1800
- if (!Uq(G) || _B(G))
1724
+ function IV(G) {
1725
+ if (!Qq(G) || OB(G))
1801
1726
  return !1;
1802
- var h = Dq(G) || k(G) ? u : E;
1803
- return h.test($B(G));
1727
+ var h = Eq(G) || k(G) ? u : E;
1728
+ return h.test(jB(G));
1804
1729
  }
1805
- function XB(G, h) {
1730
+ function PB(G, h) {
1806
1731
  return h = QA(h === void 0 ? G.length - 1 : h, 0), function() {
1807
1732
  for (var r = arguments, z = -1, IA = QA(r.length - h, 0), MA = Array(IA); ++z < IA; )
1808
1733
  MA[z] = r[h + z];
@@ -1814,23 +1739,23 @@ function OE() {
1814
1739
  }
1815
1740
  function yA(G, h) {
1816
1741
  var r = G.__data__;
1817
- return vB(h) ? r[typeof h == "string" ? "string" : "hash"] : r.map;
1742
+ return nB(h) ? r[typeof h == "string" ? "string" : "hash"] : r.map;
1818
1743
  }
1819
- function Mq(G, h) {
1744
+ function gq(G, h) {
1820
1745
  var r = H(G, h);
1821
- return MV(r) ? r : void 0;
1746
+ return IV(r) ? r : void 0;
1822
1747
  }
1823
- function bB(G) {
1824
- return Bg(G) || qg(G) || !!(v && G && G[v]);
1748
+ function mB(G) {
1749
+ return dB(G) || fB(G) || !!(v && G && G[v]);
1825
1750
  }
1826
- function vB(G) {
1751
+ function nB(G) {
1827
1752
  var h = typeof G;
1828
1753
  return h == "string" || h == "number" || h == "symbol" || h == "boolean" ? G !== "__proto__" : G === null;
1829
1754
  }
1830
- function _B(G) {
1755
+ function OB(G) {
1831
1756
  return !!K && K in G;
1832
1757
  }
1833
- function $B(G) {
1758
+ function jB(G) {
1834
1759
  if (G != null) {
1835
1760
  try {
1836
1761
  return e.call(G);
@@ -1843,41 +1768,41 @@ function OE() {
1843
1768
  }
1844
1769
  return "";
1845
1770
  }
1846
- var Ag = XB(function(G, h) {
1847
- return DV(G) ? CV(G, aA(h, 1, DV)) : [];
1771
+ var uB = PB(function(G, h) {
1772
+ return CV(G) ? QV(G, JA(h, 1, CV)) : [];
1848
1773
  });
1849
- function Vg(G, h) {
1774
+ function zB(G, h) {
1850
1775
  return G === h || G !== G && h !== h;
1851
1776
  }
1852
- function qg(G) {
1853
- return DV(G) && Z.call(G, "callee") && (!EA.call(G, "callee") || m.call(G) == q);
1777
+ function fB(G) {
1778
+ return CV(G) && Z.call(G, "callee") && (!EA.call(G, "callee") || m.call(G) == q);
1854
1779
  }
1855
- var Bg = Array.isArray;
1856
- function gg(G) {
1857
- return G != null && Eg(G.length) && !Dq(G);
1780
+ var dB = Array.isArray;
1781
+ function XB(G) {
1782
+ return G != null && bB(G.length) && !Eq(G);
1858
1783
  }
1859
- function DV(G) {
1860
- return Qg(G) && gg(G);
1784
+ function CV(G) {
1785
+ return vB(G) && XB(G);
1861
1786
  }
1862
- function Dq(G) {
1863
- var h = Uq(G) ? m.call(G) : "";
1787
+ function Eq(G) {
1788
+ var h = Qq(G) ? m.call(G) : "";
1864
1789
  return h == B || h == Q;
1865
1790
  }
1866
- function Eg(G) {
1791
+ function bB(G) {
1867
1792
  return typeof G == "number" && G > -1 && G % 1 == 0 && G <= g;
1868
1793
  }
1869
- function Uq(G) {
1794
+ function Qq(G) {
1870
1795
  var h = typeof G;
1871
1796
  return !!G && (h == "object" || h == "function");
1872
1797
  }
1873
- function Qg(G) {
1798
+ function vB(G) {
1874
1799
  return !!G && typeof G == "object";
1875
1800
  }
1876
- return TV = Ag, TV;
1801
+ return YV = uB, YV;
1877
1802
  }
1878
- var jE = OE();
1879
- const Lq = /* @__PURE__ */ VV(jE);
1880
- function uE(A, V) {
1803
+ var xE = lE();
1804
+ const Hq = /* @__PURE__ */ $A(xE);
1805
+ function tE(A, V) {
1881
1806
  var g = A == null ? null : typeof Symbol < "u" && A[Symbol.iterator] || A["@@iterator"];
1882
1807
  if (g != null) {
1883
1808
  var q, B, Q, C, E = [], I = !0, M = !1;
@@ -1895,40 +1820,40 @@ function uE(A, V) {
1895
1820
  return E;
1896
1821
  }
1897
1822
  }
1898
- function qV(A, V) {
1823
+ function AV(A, V) {
1899
1824
  if (!(A instanceof V))
1900
1825
  throw new TypeError("Cannot call a class as a function");
1901
1826
  }
1902
- function zE(A, V) {
1827
+ function WE(A, V) {
1903
1828
  for (var g = 0; g < V.length; g++) {
1904
1829
  var q = V[g];
1905
- q.enumerable = q.enumerable || !1, q.configurable = !0, "value" in q && (q.writable = !0), Object.defineProperty(A, LB(q.key), q);
1830
+ q.enumerable = q.enumerable || !1, q.configurable = !0, "value" in q && (q.writable = !0), Object.defineProperty(A, xB(q.key), q);
1906
1831
  }
1907
1832
  }
1908
- function BV(A, V, g) {
1909
- return V && zE(A.prototype, V), Object.defineProperty(A, "prototype", {
1833
+ function VV(A, V, g) {
1834
+ return V && WE(A.prototype, V), Object.defineProperty(A, "prototype", {
1910
1835
  writable: !1
1911
1836
  }), A;
1912
1837
  }
1913
1838
  function X(A, V, g) {
1914
- return V = LB(V), V in A ? Object.defineProperty(A, V, {
1839
+ return V = xB(V), V in A ? Object.defineProperty(A, V, {
1915
1840
  value: g,
1916
1841
  enumerable: !0,
1917
1842
  configurable: !0,
1918
1843
  writable: !0
1919
1844
  }) : A[V] = g, A;
1920
1845
  }
1921
- function jV() {
1922
- return jV = Object.assign ? Object.assign.bind() : function(A) {
1846
+ function nV() {
1847
+ return nV = Object.assign ? Object.assign.bind() : function(A) {
1923
1848
  for (var V = 1; V < arguments.length; V++) {
1924
1849
  var g = arguments[V];
1925
1850
  for (var q in g)
1926
1851
  Object.prototype.hasOwnProperty.call(g, q) && (A[q] = g[q]);
1927
1852
  }
1928
1853
  return A;
1929
- }, jV.apply(this, arguments);
1854
+ }, nV.apply(this, arguments);
1930
1855
  }
1931
- function gV(A, V) {
1856
+ function qV(A, V) {
1932
1857
  if (typeof V != "function" && V !== null)
1933
1858
  throw new TypeError("Super expression must either be null or a function");
1934
1859
  A.prototype = Object.create(V && V.prototype, {
@@ -1939,19 +1864,19 @@ function gV(A, V) {
1939
1864
  }
1940
1865
  }), Object.defineProperty(A, "prototype", {
1941
1866
  writable: !1
1942
- }), V && uV(A, V);
1867
+ }), V && OV(A, V);
1943
1868
  }
1944
1869
  function dA(A) {
1945
1870
  return dA = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(g) {
1946
1871
  return g.__proto__ || Object.getPrototypeOf(g);
1947
1872
  }, dA(A);
1948
1873
  }
1949
- function uV(A, V) {
1950
- return uV = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(q, B) {
1874
+ function OV(A, V) {
1875
+ return OV = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(q, B) {
1951
1876
  return q.__proto__ = B, q;
1952
- }, uV(A, V);
1877
+ }, OV(A, V);
1953
1878
  }
1954
- function fE() {
1879
+ function rE() {
1955
1880
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
1956
1881
  if (typeof Proxy == "function") return !0;
1957
1882
  try {
@@ -1961,16 +1886,16 @@ function fE() {
1961
1886
  return !1;
1962
1887
  }
1963
1888
  }
1964
- function dE(A, V) {
1889
+ function HE(A, V) {
1965
1890
  if (A == null) return {};
1966
1891
  var g = {}, q = Object.keys(A), B, Q;
1967
1892
  for (Q = 0; Q < q.length; Q++)
1968
1893
  B = q[Q], !(V.indexOf(B) >= 0) && (g[B] = A[B]);
1969
1894
  return g;
1970
1895
  }
1971
- function XE(A, V) {
1896
+ function ZE(A, V) {
1972
1897
  if (A == null) return {};
1973
- var g = dE(A, V), q, B;
1898
+ var g = HE(A, V), q, B;
1974
1899
  if (Object.getOwnPropertySymbols) {
1975
1900
  var Q = Object.getOwnPropertySymbols(A);
1976
1901
  for (B = 0; B < Q.length; B++)
@@ -1983,15 +1908,15 @@ function AA(A) {
1983
1908
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1984
1909
  return A;
1985
1910
  }
1986
- function bE(A, V) {
1911
+ function pE(A, V) {
1987
1912
  if (V && (typeof V == "object" || typeof V == "function"))
1988
1913
  return V;
1989
1914
  if (V !== void 0)
1990
1915
  throw new TypeError("Derived constructors may only return object or undefined");
1991
1916
  return AA(A);
1992
1917
  }
1993
- function EV(A) {
1994
- var V = fE();
1918
+ function BV(A) {
1919
+ var V = rE();
1995
1920
  return function() {
1996
1921
  var q = dA(A), B;
1997
1922
  if (V) {
@@ -1999,33 +1924,33 @@ function EV(A) {
1999
1924
  B = Reflect.construct(q, arguments, Q);
2000
1925
  } else
2001
1926
  B = q.apply(this, arguments);
2002
- return bE(this, B);
1927
+ return pE(this, B);
2003
1928
  };
2004
1929
  }
2005
- function vE(A, V) {
2006
- return _E(A) || uE(A, V) || $E(A, V) || AQ();
1930
+ function yE(A, V) {
1931
+ return LE(A) || tE(A, V) || cE(A, V) || PE();
2007
1932
  }
2008
- function _E(A) {
1933
+ function LE(A) {
2009
1934
  if (Array.isArray(A)) return A;
2010
1935
  }
2011
- function $E(A, V) {
1936
+ function cE(A, V) {
2012
1937
  if (A) {
2013
- if (typeof A == "string") return Pq(A, V);
1938
+ if (typeof A == "string") return Zq(A, V);
2014
1939
  var g = Object.prototype.toString.call(A).slice(8, -1);
2015
1940
  if (g === "Object" && A.constructor && (g = A.constructor.name), g === "Map" || g === "Set") return Array.from(A);
2016
- if (g === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g)) return Pq(A, V);
1941
+ if (g === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g)) return Zq(A, V);
2017
1942
  }
2018
1943
  }
2019
- function Pq(A, V) {
1944
+ function Zq(A, V) {
2020
1945
  (V == null || V > A.length) && (V = A.length);
2021
1946
  for (var g = 0, q = new Array(V); g < V; g++) q[g] = A[g];
2022
1947
  return q;
2023
1948
  }
2024
- function AQ() {
1949
+ function PE() {
2025
1950
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2026
1951
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2027
1952
  }
2028
- function VQ(A, V) {
1953
+ function mE(A, V) {
2029
1954
  if (typeof A != "object" || A === null) return A;
2030
1955
  var g = A[Symbol.toPrimitive];
2031
1956
  if (g !== void 0) {
@@ -2035,11 +1960,11 @@ function VQ(A, V) {
2035
1960
  }
2036
1961
  return (V === "string" ? String : Number)(A);
2037
1962
  }
2038
- function LB(A) {
2039
- var V = VQ(A, "string");
1963
+ function xB(A) {
1964
+ var V = mE(A, "string");
2040
1965
  return typeof V == "symbol" ? V : String(V);
2041
1966
  }
2042
- var qQ = ["C", "Db", "D", "Eb", "E", "F", "Gb", "G", "Ab", "A", "Bb", "B"], BQ = ["Db", "Eb", "Gb", "Ab", "Bb"], gQ = {
1967
+ var nE = ["C", "Db", "D", "Eb", "E", "F", "Gb", "G", "Ab", "A", "Bb", "B"], OE = ["Db", "Eb", "Gb", "Ab", "Bb"], jE = {
2043
1968
  C: 0,
2044
1969
  "C#": 1,
2045
1970
  Db: 1,
@@ -2057,54 +1982,54 @@ var qQ = ["C", "Db", "D", "Eb", "E", "F", "Gb", "G", "Ab", "A", "Bb", "B"], BQ =
2057
1982
  "A#": 10,
2058
1983
  Bb: 10,
2059
1984
  B: 11
2060
- }, XA = 12, Vq = XA, qq = 127, EQ = /([a-g])([#b]?)(\d+)/, zV = 12;
2061
- function QQ(A) {
1985
+ }, XA = 12, bV = XA, vV = 127, uE = /([a-g])([#b]?)(\d+)/, jV = 12;
1986
+ function zE(A) {
2062
1987
  if (!A)
2063
1988
  throw Error("Invalid note argument");
2064
- var V = EQ.exec(A.toLowerCase());
1989
+ var V = uE.exec(A.toLowerCase());
2065
1990
  if (!V)
2066
1991
  throw Error("Invalid note argument");
2067
- var g = vE(V, 4), q = g[1], B = g[2], Q = g[3], C = "".concat(q.toUpperCase()).concat(B), E = gQ[C];
1992
+ var g = yE(V, 4), q = g[1], B = g[2], Q = g[3], C = "".concat(q.toUpperCase()).concat(B), E = jE[C];
2068
1993
  if (E == null)
2069
1994
  throw Error("Invalid note argument");
2070
- return XA + E + zV * parseInt(Q, 10);
1995
+ return XA + E + jV * parseInt(Q, 10);
2071
1996
  }
2072
- function IQ(A) {
2073
- var V = (A - XA) % zV, g = Math.floor((A - XA) / zV), q = qQ[V];
1997
+ function fE(A) {
1998
+ var V = (A - XA) % jV, g = Math.floor((A - XA) / jV), q = nE[V];
2074
1999
  return {
2075
2000
  note: "".concat(q).concat(g),
2076
2001
  pitchName: q,
2077
2002
  octave: g,
2078
2003
  midiNumber: A,
2079
- isAccidental: BQ.includes(q)
2004
+ isAccidental: OE.includes(q)
2080
2005
  };
2081
2006
  }
2082
- function CQ() {
2083
- return $V(Vq, qq + 1).reduce(function(A, V) {
2084
- return A[V] = IQ(V), A;
2007
+ function dE() {
2008
+ return dV(bV, vV + 1).reduce(function(A, V) {
2009
+ return A[V] = fE(V), A;
2085
2010
  }, {});
2086
2011
  }
2087
- var MQ = CQ();
2088
- function PB(A) {
2089
- var V = MQ[A];
2012
+ var XE = dE();
2013
+ function tB(A) {
2014
+ var V = XE[A];
2090
2015
  if (!V)
2091
2016
  throw Error("Invalid MIDI number");
2092
2017
  return V;
2093
2018
  }
2094
- var DQ = $V(Vq, qq + 1).filter(function(A) {
2095
- return !PB(A).isAccidental;
2019
+ var bE = dV(bV, vV + 1).filter(function(A) {
2020
+ return !tB(A).isAccidental;
2096
2021
  }), bA = {
2097
- fromNote: QQ,
2098
- getAttributes: PB,
2099
- MIN_MIDI_NUMBER: Vq,
2100
- MAX_MIDI_NUMBER: qq,
2101
- NATURAL_MIDI_NUMBERS: DQ
2102
- }, UQ = 60, Bq = /* @__PURE__ */ function(A) {
2103
- gV(g, A);
2104
- var V = EV(g);
2022
+ fromNote: zE,
2023
+ getAttributes: tB,
2024
+ MIN_MIDI_NUMBER: bV,
2025
+ MAX_MIDI_NUMBER: vV,
2026
+ NATURAL_MIDI_NUMBERS: bE
2027
+ }, vE = 60, _V = /* @__PURE__ */ function(A) {
2028
+ qV(g, A);
2029
+ var V = BV(g);
2105
2030
  function g() {
2106
2031
  var q;
2107
- qV(this, g);
2032
+ AV(this, g);
2108
2033
  for (var B = arguments.length, Q = new Array(B), C = 0; C < B; C++)
2109
2034
  Q[C] = arguments[C];
2110
2035
  return q = V.call.apply(V, [this].concat(Q)), X(AA(q), "onPlayNoteInput", function() {
@@ -2113,7 +2038,7 @@ var DQ = $V(Vq, qq + 1).filter(function(A) {
2113
2038
  q.props.onStopNoteInput(q.props.midiNumber), q.props.onKeyMouseLeave && q.props.onKeyMouseLeave(q.props.midiNumber);
2114
2039
  }), q;
2115
2040
  }
2116
- return BV(g, [{
2041
+ return VV(g, [{
2117
2042
  key: "getAbsoluteKeyPosition",
2118
2043
  value: (
2119
2044
  // Key position is represented by the number of natural key widths from the left
@@ -2130,7 +2055,7 @@ var DQ = $V(Vq, qq + 1).filter(function(A) {
2130
2055
  }, {
2131
2056
  key: "render",
2132
2057
  value: function() {
2133
- var B = this, Q = this.props, C = Q.naturalKeyWidth, E = Q.accidentalWidthRatio, I = Q.midiNumber, M = Q.gliss, F = Q.useTouchEvents, D = Q.accidental, w = Q.active, U = Q.selected, o = Q.disabled, R = Q.children, Y = sV(D ? this.getRelativeKeyPosition(I) * C : this.getRelativeKeyPosition(I) * C), p = sV(D ? E * C : C);
2058
+ var B = this, Q = this.props, C = Q.naturalKeyWidth, E = Q.accidentalWidthRatio, I = Q.midiNumber, M = Q.gliss, F = Q.useTouchEvents, D = Q.accidental, w = Q.active, U = Q.selected, o = Q.disabled, R = Q.children, Y = iV(D ? this.getRelativeKeyPosition(I) * C : this.getRelativeKeyPosition(I) * C), p = iV(D ? E * C : C);
2134
2059
  return /* @__PURE__ */ qA.createElement("div", {
2135
2060
  "data-midinumber": I,
2136
2061
  className: xA("ReactPiano__Key", {
@@ -2139,7 +2064,7 @@ var DQ = $V(Vq, qq + 1).filter(function(A) {
2139
2064
  "ReactPiano__Key--disabled": o,
2140
2065
  "ReactPiano__Key--active": w,
2141
2066
  "ReactPiano__Key--selected": U,
2142
- "ReactPiano__Key--middleC": I === UQ
2067
+ "ReactPiano__Key--middleC": I === vE
2143
2068
  }),
2144
2069
  style: {
2145
2070
  left: Y,
@@ -2170,7 +2095,7 @@ var DQ = $V(Vq, qq + 1).filter(function(A) {
2170
2095
  }
2171
2096
  }]), g;
2172
2097
  }(qA.Component);
2173
- X(Bq, "propTypes", {
2098
+ X(_V, "propTypes", {
2174
2099
  midiNumber: t.number.isRequired,
2175
2100
  naturalKeyWidth: t.number.isRequired,
2176
2101
  // Width as a ratio between 0 and 1
@@ -2188,7 +2113,7 @@ X(Bq, "propTypes", {
2188
2113
  pitchPositions: t.object.isRequired,
2189
2114
  children: t.node
2190
2115
  });
2191
- X(Bq, "defaultProps", {
2116
+ X(_V, "defaultProps", {
2192
2117
  accidentalWidthRatio: 0.65,
2193
2118
  selected: !1,
2194
2119
  onKeyMouseEnter: void 0,
@@ -2208,21 +2133,21 @@ X(Bq, "defaultProps", {
2208
2133
  B: 6
2209
2134
  }
2210
2135
  });
2211
- function sV(A) {
2136
+ function iV(A) {
2212
2137
  return "".concat(A * 100, "%");
2213
2138
  }
2214
- var gq = /* @__PURE__ */ function(A) {
2215
- gV(g, A);
2216
- var V = EV(g);
2139
+ var $V = /* @__PURE__ */ function(A) {
2140
+ qV(g, A);
2141
+ var V = BV(g);
2217
2142
  function g() {
2218
- return qV(this, g), V.apply(this, arguments);
2143
+ return AV(this, g), V.apply(this, arguments);
2219
2144
  }
2220
- return BV(g, [{
2145
+ return VV(g, [{
2221
2146
  key: "getMidiNumbers",
2222
2147
  value: (
2223
2148
  // Range of midi numbers on keyboard
2224
2149
  function() {
2225
- return $V(this.props.noteRange.first, this.props.noteRange.last + 1);
2150
+ return dV(this.props.noteRange.first, this.props.noteRange.last + 1);
2226
2151
  }
2227
2152
  )
2228
2153
  }, {
@@ -2266,7 +2191,7 @@ var gq = /* @__PURE__ */ function(A) {
2266
2191
  var E = bA.getAttributes(C);
2267
2192
  E.note;
2268
2193
  var I = E.isAccidental, M = !B.props.disabled && B.props.activeNotes.includes(C), F = B.props.selectedNotes && B.props.selectedNotes.includes(C);
2269
- return /* @__PURE__ */ qA.createElement(Bq, {
2194
+ return /* @__PURE__ */ qA.createElement(_V, {
2270
2195
  accidental: I,
2271
2196
  active: M,
2272
2197
  selected: F,
@@ -2292,8 +2217,8 @@ var gq = /* @__PURE__ */ function(A) {
2292
2217
  }
2293
2218
  }]), g;
2294
2219
  }(qA.Component);
2295
- X(gq, "propTypes", {
2296
- noteRange: oQ,
2220
+ X($V, "propTypes", {
2221
+ noteRange: _E,
2297
2222
  activeNotes: t.arrayOf(t.number),
2298
2223
  selectedNotes: t.arrayOf(t.number),
2299
2224
  onKeyMouseEnter: t.func,
@@ -2309,7 +2234,7 @@ X(gq, "propTypes", {
2309
2234
  // If width is not provided, must have fixed width and height in parent container
2310
2235
  width: t.number
2311
2236
  });
2312
- X(gq, "defaultProps", {
2237
+ X($V, "defaultProps", {
2313
2238
  disabled: !1,
2314
2239
  gliss: !1,
2315
2240
  keyWidthToHeight: 0.33,
@@ -2319,24 +2244,24 @@ X(gq, "defaultProps", {
2319
2244
  },
2320
2245
  useTouchEvents: !1
2321
2246
  });
2322
- function mq(A) {
2247
+ function pq(A) {
2323
2248
  return typeof A != "number" ? !1 : bA.NATURAL_MIDI_NUMBERS.includes(A);
2324
2249
  }
2325
- function oQ(A, V, g) {
2250
+ function _E(A, V, g) {
2326
2251
  var q = A[V], B = q.first, Q = q.last;
2327
2252
  if (!B || !Q)
2328
2253
  return new Error("Invalid prop ".concat(V, " supplied to ").concat(g, ". ").concat(V, " must be an object with .first and .last values."));
2329
- if (!mq(B) || !mq(Q))
2254
+ if (!pq(B) || !pq(Q))
2330
2255
  return new Error("Invalid prop ".concat(V, " supplied to ").concat(g, ". ").concat(V, " values must be valid MIDI numbers, and should not be accidentals (sharp or flat notes)."));
2331
2256
  if (B >= Q)
2332
2257
  return new Error("Invalid prop ".concat(V, " supplied to ").concat(g, ". ").concat(V, ".first must be smaller than ").concat(V, ".last."));
2333
2258
  }
2334
- var Eq = /* @__PURE__ */ function(A) {
2335
- gV(g, A);
2336
- var V = EV(g);
2259
+ var Aq = /* @__PURE__ */ function(A) {
2260
+ qV(g, A);
2261
+ var V = BV(g);
2337
2262
  function g() {
2338
2263
  var q;
2339
- qV(this, g);
2264
+ AV(this, g);
2340
2265
  for (var B = arguments.length, Q = new Array(B), C = 0; C < B; C++)
2341
2266
  Q[C] = arguments[C];
2342
2267
  return q = V.call.apply(V, [this].concat(Q)), X(AA(q), "state", {
@@ -2345,7 +2270,7 @@ var Eq = /* @__PURE__ */ function(A) {
2345
2270
  }), X(AA(q), "handleNoteChanges", function(E) {
2346
2271
  var I = E.prevActiveNotes, M = E.nextActiveNotes;
2347
2272
  if (!q.props.disabled) {
2348
- var F = Lq(I, M), D = Lq(M, I);
2273
+ var F = Hq(I, M), D = Hq(M, I);
2349
2274
  D.forEach(function(w) {
2350
2275
  q.props.playNote(w);
2351
2276
  }), F.forEach(function(w) {
@@ -2400,7 +2325,7 @@ var Eq = /* @__PURE__ */ function(A) {
2400
2325
  });
2401
2326
  }), q;
2402
2327
  }
2403
- return BV(g, [{
2328
+ return VV(g, [{
2404
2329
  key: "componentDidMount",
2405
2330
  value: function() {
2406
2331
  window.addEventListener("keydown", this.onKeyDown), window.addEventListener("keyup", this.onKeyUp);
@@ -2432,7 +2357,7 @@ var Eq = /* @__PURE__ */ function(A) {
2432
2357
  onMouseUp: this.onMouseUp,
2433
2358
  onTouchStart: this.onTouchStart,
2434
2359
  "data-testid": "container"
2435
- }, /* @__PURE__ */ qA.createElement(gq, {
2360
+ }, /* @__PURE__ */ qA.createElement($V, {
2436
2361
  activeNotes: this.props.activeNotes,
2437
2362
  selectedNotes: this.props.selectedNotes,
2438
2363
  className: this.props.className,
@@ -2453,7 +2378,7 @@ var Eq = /* @__PURE__ */ function(A) {
2453
2378
  }
2454
2379
  }]), g;
2455
2380
  }(qA.Component);
2456
- X(Eq, "propTypes", {
2381
+ X(Aq, "propTypes", {
2457
2382
  noteRange: t.object.isRequired,
2458
2383
  activeNotes: t.arrayOf(t.number.isRequired).isRequired,
2459
2384
  selectedNotes: t.arrayOf(t.number),
@@ -2475,7 +2400,7 @@ X(Eq, "propTypes", {
2475
2400
  midiNumber: t.number.isRequired
2476
2401
  }))
2477
2402
  });
2478
- X(Eq, "defaultProps", {
2403
+ X(Aq, "defaultProps", {
2479
2404
  onKeyMouseEnter: void 0,
2480
2405
  onKeyMouseLeave: void 0,
2481
2406
  renderNoteLabel: function(V) {
@@ -2491,12 +2416,12 @@ X(Eq, "defaultProps", {
2491
2416
  }, g) : null;
2492
2417
  }
2493
2418
  });
2494
- var wQ = ["activeNotes", "selectedNotes", "onPlayNoteInput", "onStopNoteInput"], Qq = /* @__PURE__ */ function(A) {
2495
- gV(g, A);
2496
- var V = EV(g);
2419
+ var $E = ["activeNotes", "selectedNotes", "onPlayNoteInput", "onStopNoteInput"], Vq = /* @__PURE__ */ function(A) {
2420
+ qV(g, A);
2421
+ var V = BV(g);
2497
2422
  function g() {
2498
2423
  var q;
2499
- qV(this, g);
2424
+ AV(this, g);
2500
2425
  for (var B = arguments.length, Q = new Array(B), C = 0; C < B; C++)
2501
2426
  Q[C] = arguments[C];
2502
2427
  return q = V.call.apply(V, [this].concat(Q)), X(AA(q), "state", {
@@ -2521,7 +2446,7 @@ var wQ = ["activeNotes", "selectedNotes", "onPlayNoteInput", "onStopNoteInput"],
2521
2446
  });
2522
2447
  }), q;
2523
2448
  }
2524
- return BV(g, [{
2449
+ return VV(g, [{
2525
2450
  key: "componentDidUpdate",
2526
2451
  value: function(B) {
2527
2452
  B.activeNotes !== this.props.activeNotes && this.state.activeNotes !== this.props.activeNotes && this.setState({
@@ -2535,8 +2460,8 @@ var wQ = ["activeNotes", "selectedNotes", "onPlayNoteInput", "onStopNoteInput"],
2535
2460
  B.activeNotes;
2536
2461
  var Q = B.selectedNotes;
2537
2462
  B.onPlayNoteInput, B.onStopNoteInput;
2538
- var C = XE(B, wQ);
2539
- return /* @__PURE__ */ qA.createElement(Eq, jV({
2463
+ var C = ZE(B, $E);
2464
+ return /* @__PURE__ */ qA.createElement(Aq, nV({
2540
2465
  activeNotes: this.state.activeNotes,
2541
2466
  selectedNotes: Q,
2542
2467
  onPlayNoteInput: this.handlePlayNoteInput,
@@ -2545,7 +2470,7 @@ var wQ = ["activeNotes", "selectedNotes", "onPlayNoteInput", "onStopNoteInput"],
2545
2470
  }
2546
2471
  }]), g;
2547
2472
  }(qA.Component);
2548
- X(Qq, "propTypes", {
2473
+ X(Vq, "propTypes", {
2549
2474
  noteRange: t.object.isRequired,
2550
2475
  activeNotes: t.arrayOf(t.number.isRequired),
2551
2476
  selectedNotes: t.arrayOf(t.number),
@@ -2563,10 +2488,10 @@ X(Qq, "propTypes", {
2563
2488
  midiNumber: t.number.isRequired
2564
2489
  }))
2565
2490
  });
2566
- var hV = { exports: {} }, kV = { exports: {} }, KV, nq;
2567
- function FQ() {
2568
- if (nq) return KV;
2569
- nq = 1;
2491
+ var TV = { exports: {} }, sV = { exports: {} }, hV, yq;
2492
+ function AQ() {
2493
+ if (yq) return hV;
2494
+ yq = 1;
2570
2495
  function A(g) {
2571
2496
  return g > 64 && g < 91 ? g - 65 : g > 96 && g < 123 ? g - 71 : g > 47 && g < 58 ? g + 4 : g === 43 ? 62 : g === 47 ? 63 : 0;
2572
2497
  }
@@ -2579,11 +2504,11 @@ function FQ() {
2579
2504
  }
2580
2505
  return E;
2581
2506
  }
2582
- return KV = { decode: V }, KV;
2507
+ return hV = { decode: V }, hV;
2583
2508
  }
2584
- var JV, Oq;
2585
- function SQ() {
2586
- return Oq || (Oq = 1, JV = function(A, V) {
2509
+ var kV, Lq;
2510
+ function VQ() {
2511
+ return Lq || (Lq = 1, kV = function(A, V) {
2587
2512
  return new Promise(function(g, q) {
2588
2513
  var B = new XMLHttpRequest();
2589
2514
  V && (B.responseType = V), B.open("GET", A), B.onload = function() {
@@ -2592,12 +2517,12 @@ function SQ() {
2592
2517
  q(Error("Network Error"));
2593
2518
  }, B.send();
2594
2519
  });
2595
- }), JV;
2520
+ }), kV;
2596
2521
  }
2597
- var jq;
2598
- function RQ() {
2599
- return jq || (jq = 1, function(A) {
2600
- var V = FQ(), g = SQ();
2522
+ var cq;
2523
+ function qQ() {
2524
+ return cq || (cq = 1, function(A) {
2525
+ var V = AQ(), g = VQ();
2601
2526
  function q(i) {
2602
2527
  return function(K) {
2603
2528
  return typeof K == "string" && i.test(K);
@@ -2687,12 +2612,12 @@ function RQ() {
2687
2612
  return JSON.parse(i.slice(K, e) + "}");
2688
2613
  }
2689
2614
  A.exports && (A.exports = Q), typeof window < "u" && (window.loadAudio = Q);
2690
- }(kV)), kV.exports;
2615
+ }(sV)), sV.exports;
2691
2616
  }
2692
- var aV = { exports: {} }, NV, uq;
2693
- function GQ() {
2694
- if (uq) return NV;
2695
- uq = 1, NV = A;
2617
+ var KV = { exports: {} }, JV, Pq;
2618
+ function BQ() {
2619
+ if (Pq) return JV;
2620
+ Pq = 1, JV = A;
2696
2621
  function A(E) {
2697
2622
  var I = E.createGain(), M = I._voltage = q(E), F = B(M), D = B(M), w = B(M);
2698
2623
  return I._startAmount = B(D), I._endAmount = B(w), I._multiplier = B(F), I._multiplier.connect(I), I._startAmount.connect(I), I._endAmount.connect(I), I.value = F.gain, I.startValue = D.gain, I.endValue = w.gain, I.startValue.value = 0, I.endValue.value = 0, Object.defineProperties(I, V), I;
@@ -2756,13 +2681,13 @@ function GQ() {
2756
2681
  var w = I - E, U = F - M, o = D - M, R = o / U, Y = E + R * w;
2757
2682
  return Y <= E && (Y = E), Y >= I && (Y = I), Y;
2758
2683
  }
2759
- return NV;
2684
+ return JV;
2760
2685
  }
2761
- var eV, zq;
2762
- function YQ() {
2763
- if (zq) return eV;
2764
- zq = 1;
2765
- var A = GQ(), V = {}, g = {
2686
+ var aV, mq;
2687
+ function gQ() {
2688
+ if (mq) return aV;
2689
+ mq = 1;
2690
+ var A = BQ(), V = {}, g = {
2766
2691
  gain: 1,
2767
2692
  attack: 0.01,
2768
2693
  decay: 0.1,
@@ -2836,12 +2761,12 @@ function YQ() {
2836
2761
  function E(I) {
2837
2762
  return I ? Math.pow(2, I / 1200) : 1;
2838
2763
  }
2839
- return eV = q, eV;
2764
+ return aV = q, aV;
2840
2765
  }
2841
- var lV, fq;
2842
- function iQ() {
2843
- if (fq) return lV;
2844
- fq = 1, lV = function(V) {
2766
+ var NV, nq;
2767
+ function EQ() {
2768
+ if (nq) return NV;
2769
+ nq = 1, NV = function(V) {
2845
2770
  return V.on = function(g, q) {
2846
2771
  if (arguments.length === 1 && typeof g == "function") return V.on("event", g);
2847
2772
  var B = "on" + g, Q = V[B];
@@ -2853,12 +2778,12 @@ function iQ() {
2853
2778
  V(q, B, Q, C), g(q, B, Q, C);
2854
2779
  };
2855
2780
  }
2856
- return lV;
2781
+ return NV;
2857
2782
  }
2858
- var xV, dq;
2859
- function TQ() {
2860
- if (dq) return xV;
2861
- dq = 1;
2783
+ var eV, Oq;
2784
+ function QQ() {
2785
+ if (Oq) return eV;
2786
+ Oq = 1;
2862
2787
  var A = /^([a-gA-G])(#{1,}|b{1,}|x{1,}|)(-?\d*)\s*(.*)\s*$/;
2863
2788
  function V() {
2864
2789
  return A;
@@ -2880,18 +2805,18 @@ function TQ() {
2880
2805
  var M = q(I);
2881
2806
  return M && typeof M[E] < "u" ? M[E] : null;
2882
2807
  };
2883
- }), xV = Q, xV;
2808
+ }), eV = Q, eV;
2884
2809
  }
2885
- var tV, Xq;
2886
- function sQ() {
2887
- if (Xq) return tV;
2888
- Xq = 1;
2889
- var A = TQ(), V = function(B) {
2810
+ var lV, jq;
2811
+ function IQ() {
2812
+ if (jq) return lV;
2813
+ jq = 1;
2814
+ var A = QQ(), V = function(B) {
2890
2815
  return B !== null && B !== [] && B >= 0 && B < 129;
2891
2816
  }, g = function(B) {
2892
2817
  return V(B) ? +B : A.midi(B);
2893
2818
  };
2894
- tV = function(B) {
2819
+ lV = function(B) {
2895
2820
  if (B.buffers) {
2896
2821
  var Q = B.opts.map, C = typeof Q == "function" ? Q : g, E = function(M) {
2897
2822
  return M ? C(M) || M : null;
@@ -2910,16 +2835,16 @@ function sQ() {
2910
2835
  return C[Q(E)] = B[E], C;
2911
2836
  }, {});
2912
2837
  }
2913
- return tV;
2838
+ return lV;
2914
2839
  }
2915
- var WV, bq;
2916
- function hQ() {
2917
- if (bq) return WV;
2918
- bq = 1;
2840
+ var xV, uq;
2841
+ function CQ() {
2842
+ if (uq) return xV;
2843
+ uq = 1;
2919
2844
  var A = Array.isArray, V = function(q) {
2920
2845
  return q && typeof q == "object";
2921
2846
  }, g = {};
2922
- return WV = function(q) {
2847
+ return xV = function(q) {
2923
2848
  return q.schedule = function(B, Q) {
2924
2849
  var C = q.context.currentTime, E = B < C ? C : B;
2925
2850
  q.emit("schedule", E, Q);
@@ -2930,14 +2855,14 @@ function hQ() {
2930
2855
  return V(M) ? (F = M.name || M.key || M.note || M.midi || null, D = M) : (F = M, D = g), q.start(F, E + (I || 0), D);
2931
2856
  });
2932
2857
  }, q;
2933
- }, WV;
2858
+ }, xV;
2934
2859
  }
2935
2860
  function OA(A) {
2936
2861
  throw new Error('Could not dynamically require "' + A + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
2937
2862
  }
2938
- var rV = { exports: {} }, vq;
2939
- function kQ() {
2940
- return vq || (vq = 1, function(A, V) {
2863
+ var tV = { exports: {} }, zq;
2864
+ function MQ() {
2865
+ return zq || (zq = 1, function(A, V) {
2941
2866
  (function(g) {
2942
2867
  A.exports = g();
2943
2868
  })(function() {
@@ -2998,14 +2923,14 @@ function kQ() {
2998
2923
  }, q.exports = B.default;
2999
2924
  }, {}] }, {}, [1])(1);
3000
2925
  });
3001
- }(rV)), rV.exports;
3002
- }
3003
- var HV, _q;
3004
- function KQ() {
3005
- if (_q) return HV;
3006
- _q = 1;
3007
- var A = kQ();
3008
- return HV = function(V) {
2926
+ }(tV)), tV.exports;
2927
+ }
2928
+ var WV, fq;
2929
+ function DQ() {
2930
+ if (fq) return WV;
2931
+ fq = 1;
2932
+ var A = MQ();
2933
+ return WV = function(V) {
3009
2934
  return V.listenToMidi = function(g, q) {
3010
2935
  var B = {}, Q = q || {}, C = Q.gain || function(E) {
3011
2936
  return E / 127;
@@ -3023,107 +2948,107 @@ function KQ() {
3023
2948
  }
3024
2949
  }, V;
3025
2950
  }, V;
3026
- }, HV;
2951
+ }, WV;
3027
2952
  }
3028
- var $q;
3029
- function JQ() {
3030
- return $q || ($q = 1, function(A) {
3031
- var V = YQ(), g = iQ(), q = sQ(), B = hQ(), Q = KQ();
2953
+ var dq;
2954
+ function UQ() {
2955
+ return dq || (dq = 1, function(A) {
2956
+ var V = gQ(), g = EQ(), q = IQ(), B = CQ(), Q = DQ();
3032
2957
  function C(E, I, M) {
3033
2958
  return Q(B(q(g(V(E, I, M)))));
3034
2959
  }
3035
2960
  A.exports && (A.exports = C), typeof window < "u" && (window.SamplePlayer = C);
3036
- }(aV)), aV.exports;
2961
+ }(KV)), KV.exports;
3037
2962
  }
3038
- function AB(A, V) {
2963
+ function Xq(A, V) {
3039
2964
  return Array(V + 1).join(A);
3040
2965
  }
3041
- function Iq(A) {
2966
+ function qq(A) {
3042
2967
  return typeof A == "number";
3043
2968
  }
3044
- function aQ(A) {
2969
+ function oQ(A) {
3045
2970
  return typeof A == "string";
3046
2971
  }
3047
- function NQ(A) {
2972
+ function wQ(A) {
3048
2973
  return typeof A < "u";
3049
2974
  }
3050
- function mB(A, V) {
2975
+ function WB(A, V) {
3051
2976
  return Math.pow(2, (A - 69) / 12) * (V || 440);
3052
2977
  }
3053
- var nB = /^([a-gA-G])(#{1,}|b{1,}|x{1,}|)(-?\d*)\s*(.*)\s*$/;
3054
- function eQ() {
3055
- return nB;
2978
+ var rB = /^([a-gA-G])(#{1,}|b{1,}|x{1,}|)(-?\d*)\s*(.*)\s*$/;
2979
+ function FQ() {
2980
+ return rB;
3056
2981
  }
3057
- var lQ = [0, 2, 4, 5, 7, 9, 11];
2982
+ var SQ = [0, 2, 4, 5, 7, 9, 11];
3058
2983
  function GA(A, V, g) {
3059
2984
  if (typeof A != "string") return null;
3060
- var q = nB.exec(A);
2985
+ var q = rB.exec(A);
3061
2986
  if (!q || !V && q[4]) return null;
3062
2987
  var B = { letter: q[1].toUpperCase(), acc: q[2].replace(/x/g, "##") };
3063
2988
  B.pc = B.letter + B.acc, B.step = (B.letter.charCodeAt(0) + 3) % 7, B.alt = B.acc[0] === "b" ? -B.acc.length : B.acc.length;
3064
- var Q = lQ[B.step] + B.alt;
3065
- return B.chroma = Q < 0 ? 12 + Q : Q % 12, q[3] && (B.oct = +q[3], B.midi = Q + 12 * (B.oct + 1), B.freq = mB(B.midi, g)), V && (B.tonicOf = q[4]), B;
2989
+ var Q = SQ[B.step] + B.alt;
2990
+ return B.chroma = Q < 0 ? 12 + Q : Q % 12, q[3] && (B.oct = +q[3], B.midi = Q + 12 * (B.oct + 1), B.freq = WB(B.midi, g)), V && (B.tonicOf = q[4]), B;
3066
2991
  }
3067
- var xQ = "CDEFGAB";
3068
- function tQ(A) {
3069
- return Iq(A) ? A < 0 ? AB("b", -A) : AB("#", A) : "";
2992
+ var RQ = "CDEFGAB";
2993
+ function GQ(A) {
2994
+ return qq(A) ? A < 0 ? Xq("b", -A) : Xq("#", A) : "";
3070
2995
  }
3071
- function WQ(A) {
3072
- return Iq(A) ? "" + A : "";
2996
+ function YQ(A) {
2997
+ return qq(A) ? "" + A : "";
3073
2998
  }
3074
- function OB(A, V, g) {
3075
- return A === null || typeof A > "u" ? null : A.step ? OB(A.step, A.alt, A.oct) : A < 0 || A > 6 ? null : xQ.charAt(A) + tQ(V) + WQ(g);
2999
+ function HB(A, V, g) {
3000
+ return A === null || typeof A > "u" ? null : A.step ? HB(A.step, A.alt, A.oct) : A < 0 || A > 6 ? null : RQ.charAt(A) + GQ(V) + YQ(g);
3076
3001
  }
3077
- function jB(A) {
3078
- if ((Iq(A) || aQ(A)) && A >= 0 && A < 128) return +A;
3002
+ function ZB(A) {
3003
+ if ((qq(A) || oQ(A)) && A >= 0 && A < 128) return +A;
3079
3004
  var V = GA(A);
3080
- return V && NQ(V.midi) ? V.midi : null;
3005
+ return V && wQ(V.midi) ? V.midi : null;
3081
3006
  }
3082
- function rQ(A, V) {
3083
- var g = jB(A);
3084
- return g === null ? null : mB(g, V);
3007
+ function iQ(A, V) {
3008
+ var g = ZB(A);
3009
+ return g === null ? null : WB(g, V);
3085
3010
  }
3086
- function HQ(A) {
3011
+ function TQ(A) {
3087
3012
  return (GA(A) || {}).letter;
3088
3013
  }
3089
- function ZQ(A) {
3014
+ function sQ(A) {
3090
3015
  return (GA(A) || {}).acc;
3091
3016
  }
3092
- function pQ(A) {
3017
+ function hQ(A) {
3093
3018
  return (GA(A) || {}).pc;
3094
3019
  }
3095
- function yQ(A) {
3020
+ function kQ(A) {
3096
3021
  return (GA(A) || {}).step;
3097
3022
  }
3098
- function cQ(A) {
3023
+ function KQ(A) {
3099
3024
  return (GA(A) || {}).alt;
3100
3025
  }
3101
- function LQ(A) {
3026
+ function JQ(A) {
3102
3027
  return (GA(A) || {}).chroma;
3103
3028
  }
3104
- function PQ(A) {
3029
+ function aQ(A) {
3105
3030
  return (GA(A) || {}).oct;
3106
3031
  }
3107
- const mQ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3032
+ const NQ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3108
3033
  __proto__: null,
3109
- acc: ZQ,
3110
- alt: cQ,
3111
- build: OB,
3112
- chroma: LQ,
3113
- freq: rQ,
3114
- letter: HQ,
3115
- midi: jB,
3116
- oct: PQ,
3034
+ acc: sQ,
3035
+ alt: KQ,
3036
+ build: HB,
3037
+ chroma: JQ,
3038
+ freq: iQ,
3039
+ letter: TQ,
3040
+ midi: ZB,
3041
+ oct: aQ,
3117
3042
  parse: GA,
3118
- pc: pQ,
3119
- regex: eQ,
3120
- step: yQ
3121
- }, Symbol.toStringTag, { value: "Module" })), nQ = /* @__PURE__ */ rE(mQ);
3122
- var ZV, VB;
3123
- function OQ() {
3124
- if (VB) return ZV;
3125
- VB = 1;
3126
- var A = nQ;
3043
+ pc: hQ,
3044
+ regex: FQ,
3045
+ step: kQ
3046
+ }, Symbol.toStringTag, { value: "Module" })), eQ = /* @__PURE__ */ iE(NQ);
3047
+ var rV, bq;
3048
+ function lQ() {
3049
+ if (bq) return rV;
3050
+ bq = 1;
3051
+ var A = eQ;
3127
3052
  function V(B, Q) {
3128
3053
  if (console.warn("new Soundfont() is deprected"), console.log("Please use Soundfont.instrument() instead of new Soundfont().instrument()"), !(this instanceof V)) return new V(B);
3129
3054
  this.nameToUrl = Q || V.nameToUrl, this.ctx = B, this.instruments = {}, this.promises = [];
@@ -3167,12 +3092,12 @@ function OQ() {
3167
3092
  }
3168
3093
  };
3169
3094
  }
3170
- return V.noteToMidi = A.midi, ZV = V, ZV;
3095
+ return V.noteToMidi = A.midi, rV = V, rV;
3171
3096
  }
3172
- var qB;
3173
- function jQ() {
3174
- return qB || (qB = 1, function(A) {
3175
- var V = RQ(), g = JQ();
3097
+ var vq;
3098
+ function xQ() {
3099
+ return vq || (vq = 1, function(A) {
3100
+ var V = qQ(), g = UQ();
3176
3101
  function q(E, I, M) {
3177
3102
  if (arguments.length === 1) return function(o, R) {
3178
3103
  return q(E, o, R);
@@ -3189,12 +3114,12 @@ function jQ() {
3189
3114
  function Q(E, I, M) {
3190
3115
  return M = M === "ogg" ? M : "mp3", I = I === "FluidR3_GM" ? I : "MusyngKite", "https://gleitz.github.io/midi-js-soundfonts/" + I + "/" + E + "-" + M + ".js";
3191
3116
  }
3192
- var C = OQ();
3117
+ var C = lQ();
3193
3118
  C.instrument = q, C.nameToUrl = Q, A.exports && (A.exports = C), typeof window < "u" && (window.Soundfont = C);
3194
- }(hV)), hV.exports;
3119
+ }(TV)), TV.exports;
3195
3120
  }
3196
- var uQ = jQ();
3197
- const fV = /* @__PURE__ */ VV(uQ);
3121
+ var tQ = xQ();
3122
+ const uV = /* @__PURE__ */ $A(tQ);
3198
3123
  if (typeof window < "u" && window.MIDI)
3199
3124
  var RA = window.MIDI;
3200
3125
  else if (typeof globalThis < "u" && globalThis.MIDI)
@@ -3298,12 +3223,12 @@ RA.Soundfont.acoustic_grand_piano = {
3298
3223
  };
3299
3224
  typeof window < "u" && (window.MIDI || (window.MIDI = { Soundfont: {} }));
3300
3225
  typeof globalThis < "u" && !globalThis.MIDI && (globalThis.MIDI = typeof window < "u" && window.MIDI ? window.MIDI : { Soundfont: {} });
3301
- const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3226
+ const zV = (A) => A != null && !Number.isNaN(A), WQ = (A) => {
3302
3227
  const V = typeof A == "string" ? Number.parseInt(A, 10) : A;
3303
- return rB(V);
3304
- }, fQ = (A) => ({
3228
+ return KB(V);
3229
+ }, rQ = (A) => ({
3305
3230
  play: (g, q) => {
3306
- const B = zQ(g), Q = A[B];
3231
+ const B = WQ(g), Q = A[B];
3307
3232
  if (!Q)
3308
3233
  return { stop: () => {
3309
3234
  } };
@@ -3315,20 +3240,20 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3315
3240
  };
3316
3241
  },
3317
3242
  stop: () => []
3318
- }), dQ = (A, V, g, q, B) => {
3243
+ }), HQ = (A, V, g, q, B) => {
3319
3244
  var C, E;
3320
3245
  const Q = (E = (C = window.MIDI) == null ? void 0 : C.Soundfont) == null ? void 0 : E[V];
3321
- return Q ? Promise.resolve(fQ(Q)) : (console.warn(
3246
+ return Q ? Promise.resolve(rQ(Q)) : (console.warn(
3322
3247
  `[zds-pickers] Bundled soundfont "${V}" not found; falling back to remote load.`
3323
- ), dV(B) ? fV.instrument(A, V, {
3248
+ ), zV(B) ? uV.instrument(A, V, {
3324
3249
  format: g,
3325
3250
  soundfont: q,
3326
3251
  nameToUrl: (I, M, F) => `${B}/${M}/${I}-${F}.js`
3327
- }) : fV.instrument(A, V, {
3252
+ }) : uV.instrument(A, V, {
3328
3253
  format: g,
3329
3254
  soundfont: q
3330
3255
  }));
3331
- }, uB = (A) => {
3256
+ }, pB = (A) => {
3332
3257
  const {
3333
3258
  audioContext: V,
3334
3259
  format: g,
@@ -3343,8 +3268,8 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3343
3268
  M(!1);
3344
3269
  return;
3345
3270
  }
3346
- if (dV(q)) {
3347
- fV.instrument(V, H, {
3271
+ if (zV(q)) {
3272
+ uV.instrument(V, H, {
3348
3273
  format: g,
3349
3274
  soundfont: E,
3350
3275
  nameToUrl: (k, a, S) => `${q}/${a}/${k}-${S}.js`
@@ -3358,7 +3283,7 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3358
3283
  });
3359
3284
  return;
3360
3285
  }
3361
- dQ(
3286
+ HQ(
3362
3287
  V,
3363
3288
  H,
3364
3289
  g,
@@ -3378,7 +3303,7 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3378
3303
  return TA(() => {
3379
3304
  B && o(B);
3380
3305
  }, [B, o]), TA(() => {
3381
- dV(B) && M(!w);
3306
+ zV(B) && M(!w);
3382
3307
  }, [w, B]), C({
3383
3308
  isLoading: I,
3384
3309
  playNote: (H) => {
@@ -3406,7 +3331,7 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3406
3331
  });
3407
3332
  }
3408
3333
  });
3409
- }, pV = [
3334
+ }, HV = [
3410
3335
  "C",
3411
3336
  "C#",
3412
3337
  "D",
@@ -3419,7 +3344,7 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3419
3344
  "A",
3420
3345
  "A#",
3421
3346
  "B"
3422
- ], XQ = 12, bQ = XQ * 0.7, vQ = new window.AudioContext(), _Q = ({
3347
+ ], ZQ = 12, pQ = ZQ * 0.7, yQ = new window.AudioContext(), LQ = ({
3423
3348
  className: A,
3424
3349
  octave: V,
3425
3350
  height: g,
@@ -3427,9 +3352,9 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3427
3352
  width: B,
3428
3353
  ...Q
3429
3354
  }) => {
3430
- const E = (B / bQ + 2) / g, I = Jq(pV[0] + String(V)) || 0, M = Jq(pV[pV.length - 1] + String(V)) || 0;
3355
+ const E = (B / pQ + 2) / g, I = Tq(HV[0] + String(V)) || 0, M = Tq(HV[HV.length - 1] + String(V)) || 0;
3431
3356
  return /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
3432
- Qq,
3357
+ Vq,
3433
3358
  {
3434
3359
  className: A,
3435
3360
  keyWidthToHeight: E,
@@ -3439,7 +3364,7 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3439
3364
  ...Q
3440
3365
  }
3441
3366
  ) });
3442
- }, $Q = ({
3367
+ }, cQ = ({
3443
3368
  className: A,
3444
3369
  format: V,
3445
3370
  height: g,
@@ -3457,16 +3382,16 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3457
3382
  Tooltip: o,
3458
3383
  width: R
3459
3384
  }) => /* @__PURE__ */ l(
3460
- uB,
3385
+ pB,
3461
3386
  {
3462
- audioContext: vQ,
3387
+ audioContext: yQ,
3463
3388
  format: V,
3464
3389
  hostname: q,
3465
3390
  instrumentName: B,
3466
3391
  onChange: C,
3467
3392
  soundfont: U,
3468
3393
  render: ({ isLoading: Y, playNote: p, stopNote: H }) => /* @__PURE__ */ l(
3469
- _Q,
3394
+ LQ,
3470
3395
  {
3471
3396
  disabled: Y,
3472
3397
  className: A,
@@ -3485,7 +3410,7 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3485
3410
  }
3486
3411
  )
3487
3412
  }
3488
- ), BB = "__react_svg_text_measurement_id", AI = (A, V, g, q) => {
3413
+ ), _q = "__react_svg_text_measurement_id", PQ = (A, V, g, q) => {
3489
3414
  const { lineHeight: B, spaceWidth: Q, wordsWithComputedWidth: C } = V;
3490
3415
  return A.split(/\s+/).reduce((E, I) => {
3491
3416
  const M = C[I], F = E[E.length - 1];
@@ -3501,7 +3426,7 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3501
3426
  }
3502
3427
  return E;
3503
3428
  }, []);
3504
- }, VI = (A, V, g) => {
3429
+ }, mQ = (A, V, g) => {
3505
3430
  var q;
3506
3431
  if (A && V) {
3507
3432
  Array.from(A).forEach(
@@ -3516,7 +3441,7 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3516
3441
  const C = ((q = V == null ? void 0 : V.getComputedTextLength) == null ? void 0 : q.call(V)) || 8, E = V.getBBox().height;
3517
3442
  return V.setAttribute("style", ""), { wordsWithComputedWidth: Q, spaceWidth: C, lineHeight: E };
3518
3443
  }
3519
- }, gB = (A) => {
3444
+ }, $q = (A) => {
3520
3445
  const {
3521
3446
  className: V = "",
3522
3447
  dx: g = 0,
@@ -3542,10 +3467,10 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3542
3467
  []
3543
3468
  );
3544
3469
  TA(() => {
3545
- const T = document.getElementById(BB);
3470
+ const T = document.getElementById(_q);
3546
3471
  if (T === null) {
3547
3472
  const i = document.createElementNS("http://www.w3.org/2000/svg", "svg");
3548
- return i.setAttribute("id", BB), document.body.appendChild(i), i.appendChild(
3473
+ return i.setAttribute("id", _q), document.body.appendChild(i), i.appendChild(
3549
3474
  document.createElementNS("http://www.w3.org/2000/svg", "text")
3550
3475
  ), H.current = i, () => {
3551
3476
  document.body.removeChild(i);
@@ -3553,7 +3478,7 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3553
3478
  }
3554
3479
  H.current = T;
3555
3480
  }, []), TA(() => {
3556
- const T = VI(
3481
+ const T = mQ(
3557
3482
  Y,
3558
3483
  H.current,
3559
3484
  C
@@ -3562,7 +3487,7 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3562
3487
  }, [C, Y]), TA(() => {
3563
3488
  if (Q && w) {
3564
3489
  const T = C.split(/\n/).flatMap(
3565
- (i) => AI(i, w, Q, B)
3490
+ (i) => PQ(i, w, Q, B)
3566
3491
  );
3567
3492
  R(T);
3568
3493
  }
@@ -3608,13 +3533,13 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3608
3533
  ] })
3609
3534
  }
3610
3535
  );
3611
- }, lA = 255, { IndicatorsContainer: qI, Placeholder: EB, ValueContainer: BI } = Sg, zI = {
3536
+ }, eA = 255, { IndicatorsContainer: nQ, Placeholder: AB, ValueContainer: OQ } = Qg, WI = {
3612
3537
  label: "--",
3613
- value: lA
3614
- }, QB = (A) => {
3538
+ value: eA
3539
+ }, VB = (A) => {
3615
3540
  var B;
3616
3541
  const { children: V, ...g } = A, q = (B = g.selectProps) == null ? void 0 : B.actionButton;
3617
- return /* @__PURE__ */ l(qI, { ...g, children: /* @__PURE__ */ VA(
3542
+ return /* @__PURE__ */ l(nQ, { ...g, children: /* @__PURE__ */ VA(
3618
3543
  "div",
3619
3544
  {
3620
3545
  onMouseDown: (Q) => {
@@ -3627,12 +3552,12 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3627
3552
  ]
3628
3553
  }
3629
3554
  ) });
3630
- }, gI = ({
3555
+ }, jQ = ({
3631
3556
  children: A,
3632
3557
  ...V
3633
- }) => /* @__PURE__ */ VA(BI, { ...V, children: [
3558
+ }) => /* @__PURE__ */ VA(OQ, { ...V, children: [
3634
3559
  /* @__PURE__ */ l(
3635
- EB,
3560
+ AB,
3636
3561
  {
3637
3562
  ...V,
3638
3563
  innerProps: V.innerProps || {},
@@ -3641,9 +3566,9 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3641
3566
  children: V.selectProps.placeholder
3642
3567
  }
3643
3568
  ),
3644
- og.map(
3569
+ Bg.map(
3645
3570
  A,
3646
- (g) => wg(g) && g.type !== EB ? g : null
3571
+ (g) => gg(g) && g.type !== AB ? g : null
3647
3572
  )
3648
3573
  ] }), FA = UA(
3649
3574
  (A, V) => {
@@ -3664,7 +3589,7 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3664
3589
  [Q]
3665
3590
  ), w = C.reduce((R, Y) => "options" in Y ? R.concat(Y.options) : R.concat(Y), []), U = w.find((R) => M === R.value) || void 0, o = hA(() => {
3666
3591
  const R = E ? {
3667
- menu: (Y) => sg("width")(Y),
3592
+ menu: (Y) => og("width")(Y),
3668
3593
  menuList: (Y) => ({
3669
3594
  ...Y,
3670
3595
  overflowX: "hidden"
@@ -3697,13 +3622,13 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3697
3622
  };
3698
3623
  }, [E, I]);
3699
3624
  return I ? /* @__PURE__ */ l("div", { className: "zds-pickers__container", children: /* @__PURE__ */ l(
3700
- wq,
3625
+ Cq,
3701
3626
  {
3702
3627
  ...F,
3703
3628
  classNamePrefix: "zds-pickers",
3704
3629
  components: {
3705
- IndicatorsContainer: QB,
3706
- ValueContainer: gI,
3630
+ IndicatorsContainer: VB,
3631
+ ValueContainer: jQ,
3707
3632
  ...g
3708
3633
  },
3709
3634
  isDisabled: q,
@@ -3717,12 +3642,12 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3717
3642
  ) }) : /* @__PURE__ */ VA("div", { className: "zds-pickers__container", children: [
3718
3643
  !!B && /* @__PURE__ */ l("span", { className: "zds-pickers__label", children: B }),
3719
3644
  /* @__PURE__ */ l(
3720
- wq,
3645
+ Cq,
3721
3646
  {
3722
3647
  ...F,
3723
3648
  classNamePrefix: "zds-pickers",
3724
3649
  components: {
3725
- IndicatorsContainer: QB,
3650
+ IndicatorsContainer: VB,
3726
3651
  ...g
3727
3652
  },
3728
3653
  isDisabled: q,
@@ -3735,17 +3660,17 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3735
3660
  )
3736
3661
  ] });
3737
3662
  }
3738
- ), fI = UA((A, V) => /* @__PURE__ */ l(
3663
+ ), rI = UA((A, V) => /* @__PURE__ */ l(
3739
3664
  FA,
3740
3665
  {
3741
3666
  ...A,
3742
- options: hg,
3667
+ options: wg,
3743
3668
  ref: V
3744
3669
  }
3745
- )), EI = _A(16).map((A) => ({
3670
+ )), uQ = _A(16).map((A) => ({
3746
3671
  value: A,
3747
3672
  label: A
3748
- })), dI = UA(({ channels: A, className: V, ...g }, q) => {
3673
+ })), HI = UA(({ channels: A, className: V, ...g }, q) => {
3749
3674
  const [B, Q] = wA([]), C = DA(
3750
3675
  ({ value: E, label: I }, { context: M }) => {
3751
3676
  if (E === "separator")
@@ -3753,13 +3678,13 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3753
3678
  if (typeof E != "number") return null;
3754
3679
  const F = A[E];
3755
3680
  return F ? /* @__PURE__ */ VA("span", { className: "mapping-entry", children: [
3756
- /* @__PURE__ */ l("b", { children: E !== lA && /* @__PURE__ */ VA(ZA, { children: [
3681
+ /* @__PURE__ */ l("b", { children: E !== eA && /* @__PURE__ */ VA(ZA, { children: [
3757
3682
  E + 1,
3758
3683
  M === "value" && " -"
3759
3684
  ] }) }),
3760
3685
  /* @__PURE__ */ l("span", { className: "mapping-entry-label", children: F.label })
3761
3686
  ] }) : /* @__PURE__ */ VA("span", { className: "mapping-entry empty-mapping-entry", children: [
3762
- /* @__PURE__ */ l("b", { children: E !== lA && /* @__PURE__ */ VA(ZA, { children: [
3687
+ /* @__PURE__ */ l("b", { children: E !== eA && /* @__PURE__ */ VA(ZA, { children: [
3763
3688
  E + 1,
3764
3689
  M === "value" && " -"
3765
3690
  ] }) }),
@@ -3769,10 +3694,10 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3769
3694
  [A]
3770
3695
  );
3771
3696
  return TA(() => {
3772
- const E = EI.sort(
3697
+ const E = uQ.sort(
3773
3698
  (F, D) => typeof F.value == "number" && typeof D.value == "number" && A[F.value] && !A[D.value] ? -1 : typeof F.value == "number" && typeof D.value == "number" && !A[F.value] && A[D.value] ? 1 : typeof F.value == "number" && typeof D.value == "number" ? F.value - D.value : 0
3774
3699
  ), I = E.filter(
3775
- ({ value: F }) => typeof F == "number" && !!A[F] || F === lA
3700
+ ({ value: F }) => typeof F == "number" && !!A[F] || F === eA
3776
3701
  ).length, M = E.some(({ value: F }) => F === "separator");
3777
3702
  I && I < 16 && !M && E.splice(I, 0, { label: /* @__PURE__ */ l("hr", {}), value: "separator" }), Q(E);
3778
3703
  }, [A]), /* @__PURE__ */ l(
@@ -3785,10 +3710,10 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3785
3710
  ref: q
3786
3711
  }
3787
3712
  );
3788
- }), QI = _A(16).map((A) => ({
3713
+ }), zQ = _A(16).map((A) => ({
3789
3714
  value: A,
3790
3715
  label: `Channel ${A + 1}`
3791
- })), II = (A, V) => V ? String(A.label).toLowerCase().includes(V.toLowerCase()) : !0, XI = UA(({ className: A, value: V = lA, ...g }, q) => {
3716
+ })), fQ = (A, V) => V ? String(A.label).toLowerCase().includes(V.toLowerCase()) : !0, ZI = UA(({ className: A, value: V = eA, ...g }, q) => {
3792
3717
  const B = DA(
3793
3718
  (Q, { context: C }) => V === void 0 ? "--" : C === "value" ? Q.label : Number.parseInt(String(Q.value)) + 1,
3794
3719
  [V]
@@ -3798,19 +3723,19 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3798
3723
  {
3799
3724
  ...g,
3800
3725
  className: xA(A, "channel-picker"),
3801
- filterOptions: II,
3726
+ filterOptions: fQ,
3802
3727
  formatOptionLabel: B,
3803
- options: QI,
3728
+ options: zQ,
3804
3729
  value: V,
3805
3730
  ref: q
3806
3731
  }
3807
3732
  );
3808
- }), CI = (A) => A.replace(/([A-G])b/g, "$1♭"), MI = /* @__PURE__ */ new Set(["C", "F"]), DI = /* @__PURE__ */ new Set(["E", "B"]), UI = ({
3733
+ }), dQ = (A) => A.replace(/([A-G])b/g, "$1♭"), XQ = /* @__PURE__ */ new Set(["C", "F"]), bQ = /* @__PURE__ */ new Set(["E", "B"]), vQ = ({
3809
3734
  isAccidental: A,
3810
3735
  isActive: V,
3811
3736
  midiNumber: g
3812
3737
  }) => {
3813
- const q = xE(rB(g) ?? ""), B = CI(q);
3738
+ const q = RE(KB(g) ?? ""), B = dQ(q);
3814
3739
  return B ? /* @__PURE__ */ l(
3815
3740
  "div",
3816
3741
  {
@@ -3821,14 +3746,14 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3821
3746
  "ReactPiano__NoteLabel--active": V,
3822
3747
  "ReactPiano__NoteLabel--accidental": A,
3823
3748
  "ReactPiano__NoteLabel--natural": !A,
3824
- "ReactPiano__NoteLabel--nudgeLeft": !A && MI.has(q),
3825
- "ReactPiano__NoteLabel--nudgeRight": !A && DI.has(q)
3749
+ "ReactPiano__NoteLabel--nudgeLeft": !A && XQ.has(q),
3750
+ "ReactPiano__NoteLabel--nudgeRight": !A && bQ.has(q)
3826
3751
  }
3827
3752
  ),
3828
3753
  children: B
3829
3754
  }
3830
3755
  ) : null;
3831
- }, bI = (A) => {
3756
+ }, pI = (A) => {
3832
3757
  const {
3833
3758
  value: V,
3834
3759
  onChange: g,
@@ -3843,31 +3768,31 @@ const dV = (A) => A != null && !Number.isNaN(A), zQ = (A) => {
3843
3768
  q || g(U);
3844
3769
  },
3845
3770
  [q, g]
3846
- ), F = 60 + (E - 4) * 12, D = F + 11, w = V !== lA && V >= F && V <= D;
3771
+ ), F = 60 + (E - 4) * 12, D = F + 11, w = V !== eA && V >= F && V <= D;
3847
3772
  return /* @__PURE__ */ l(
3848
- $Q,
3773
+ cQ,
3849
3774
  {
3850
3775
  ...I,
3851
3776
  className: Q ? "ReactPiano--showNoteNames" : void 0,
3852
3777
  selectedNotes: w ? [V] : [],
3853
3778
  disabled: q,
3854
3779
  height: B,
3855
- renderNoteLabel: Q ? UI : void 0,
3780
+ renderNoteLabel: Q ? vQ : void 0,
3856
3781
  width: C,
3857
3782
  octave: E,
3858
3783
  onClick: M,
3859
3784
  instrumentName: "acoustic_grand_piano"
3860
3785
  }
3861
3786
  );
3862
- }, Cq = (A) => {
3787
+ }, Bq = (A) => {
3863
3788
  const [V, g] = wA(A);
3864
3789
  return TA(() => {
3865
3790
  g(A);
3866
3791
  }, [A]), [V, g];
3867
3792
  };
3868
- var yV, IB;
3869
- function oI() {
3870
- return IB || (IB = 1, yV = function(A) {
3793
+ var ZV, qB;
3794
+ function _Q() {
3795
+ return qB || (qB = 1, ZV = function(A) {
3871
3796
  var V = {};
3872
3797
  function g(q) {
3873
3798
  if (V[q]) return V[q].exports;
@@ -3898,7 +3823,7 @@ function oI() {
3898
3823
  }([function(A, V) {
3899
3824
  A.exports = qA;
3900
3825
  }, function(A, V) {
3901
- A.exports = /* @__PURE__ */ cB();
3826
+ A.exports = /* @__PURE__ */ lB();
3902
3827
  }, function(A, V, g) {
3903
3828
  Object.defineProperty(V, "__esModule", { value: !0 });
3904
3829
  var q, B = g(0), Q = ((q = B) && q.__esModule ? q : { default: q }).default.createContext(null);
@@ -4098,7 +4023,7 @@ function oI() {
4098
4023
  K && T.setAttribute("title", K);
4099
4024
  var e = [].concat(T.getAttribute("class") || [], "injected-svg", S.getAttribute("class") || []).join(" ");
4100
4025
  T.setAttribute("class", function(J) {
4101
- for (var L = {}, P = (J = J.split(" ")).length, y = []; P--; ) L.hasOwnProperty(J[P]) || (L[J[P]] = 1, y.unshift(J[P]));
4026
+ for (var c = {}, P = (J = J.split(" ")).length, y = []; P--; ) c.hasOwnProperty(J[P]) || (c[J[P]] = 1, y.unshift(J[P]));
4102
4027
  return y.join(" ");
4103
4028
  }(e));
4104
4029
  var Z = S.getAttribute("style");
@@ -4112,11 +4037,11 @@ function oI() {
4112
4037
  var u, BA, EA, oA, v, QA = { clipPath: ["clip-path"], "color-profile": ["color-profile"], cursor: ["cursor"], filter: ["filter"], linearGradient: ["fill", "stroke"], marker: ["marker", "marker-start", "marker-mid", "marker-end"], mask: ["mask"], pattern: ["fill", "stroke"], radialGradient: ["fill", "stroke"] };
4113
4038
  Object.keys(QA).forEach(function(J) {
4114
4039
  u = J, EA = QA[J];
4115
- for (var L = 0, P = (BA = T.querySelectorAll("defs " + u + "[id]")).length; L < P; L++) {
4040
+ for (var c = 0, P = (BA = T.querySelectorAll("defs " + u + "[id]")).length; c < P; c++) {
4116
4041
  var y;
4117
- oA = BA[L].id, v = oA + "-" + D, M.call(EA, function(x) {
4118
- for (var W = 0, c = (y = T.querySelectorAll("[" + x + '*="' + oA + '"]')).length; W < c; W++) y[W].setAttribute(x, "url(#" + v + ")");
4119
- }), BA[L].id = v;
4042
+ oA = BA[c].id, v = oA + "-" + D, M.call(EA, function(x) {
4043
+ for (var W = 0, L = (y = T.querySelectorAll("[" + x + '*="' + oA + '"]')).length; W < L; W++) y[W].setAttribute(x, "url(#" + v + ")");
4044
+ }), BA[c].id = v;
4120
4045
  }
4121
4046
  }), T.removeAttribute("xmlns:a");
4122
4047
  var SA = T.querySelectorAll("style");
@@ -4250,14 +4175,14 @@ function oI() {
4250
4175
  }(B.default.Component);
4251
4176
  V.default = F, F.propTypes = { selector: Q.default.string.isRequired, onElementSelected: Q.default.func }, F.defaultProps = { onElementSelected: function() {
4252
4177
  } };
4253
- }])), yV;
4178
+ }])), ZV;
4254
4179
  }
4255
- var cV, CB;
4256
- function wI() {
4257
- return CB || (CB = 1, cV = oI()), cV;
4180
+ var pV, BB;
4181
+ function $Q() {
4182
+ return BB || (BB = 1, pV = _Q()), pV;
4258
4183
  }
4259
- var LV = wI();
4260
- class zB extends qA.Component {
4184
+ var yV = $Q();
4185
+ class yB extends qA.Component {
4261
4186
  render() {
4262
4187
  const V = this.props, g = {};
4263
4188
  function q(D) {
@@ -4280,22 +4205,22 @@ class zB extends qA.Component {
4280
4205
  );
4281
4206
  }
4282
4207
  }
4283
- UV(zB, "defaultProps", {
4208
+ MV(yB, "defaultProps", {
4284
4209
  step: 1
4285
4210
  });
4286
- function MB(A) {
4211
+ function gB(A) {
4287
4212
  return A * Math.PI / 180;
4288
4213
  }
4289
- function FI(A, V) {
4214
+ function AI(A, V) {
4290
4215
  return A >= 0 && V >= 0 ? 1 : A <= 0 && V >= 0 ? 2 : A <= 0 && V <= 0 ? 3 : A >= 0 && V <= 0 ? 4 : 1;
4291
4216
  }
4292
- function PV(A, V) {
4217
+ function LV(A, V) {
4293
4218
  if (A === 0 && V === 0) return 0;
4294
4219
  let q = Math.atan(A / V) * 180 / Math.PI;
4295
- const B = FI(A, V);
4220
+ const B = AI(A, V);
4296
4221
  return B === 1 && (q = 90 - q), B === 2 && (q = 90 - q), B === 3 && (q = 270 - q), B === 4 && (q = 270 - q), q;
4297
4222
  }
4298
- class DB extends qA.Component {
4223
+ class EB extends qA.Component {
4299
4224
  render() {
4300
4225
  const {
4301
4226
  r: V,
@@ -4317,7 +4242,7 @@ class DB extends qA.Component {
4317
4242
  );
4318
4243
  }
4319
4244
  }
4320
- class SI extends qA.Component {
4245
+ class VI extends qA.Component {
4321
4246
  render() {
4322
4247
  const { width: V = 2, color: g = "black", p1: q, p2: B, ...Q } = this.props;
4323
4248
  return /* @__PURE__ */ l(
@@ -4334,7 +4259,7 @@ class SI extends qA.Component {
4334
4259
  );
4335
4260
  }
4336
4261
  }
4337
- class RI extends qA.Component {
4262
+ class qI extends qA.Component {
4338
4263
  render() {
4339
4264
  const { children: V, ...g } = this.props, q = {
4340
4265
  overlay: Object.assign(
@@ -4352,7 +4277,7 @@ class RI extends qA.Component {
4352
4277
  this.props.overlayStyle
4353
4278
  )
4354
4279
  };
4355
- return Gg.createPortal(
4280
+ return Cg.createPortal(
4356
4281
  /* @__PURE__ */ l(
4357
4282
  "div",
4358
4283
  {
@@ -4365,10 +4290,10 @@ class RI extends qA.Component {
4365
4290
  );
4366
4291
  }
4367
4292
  }
4368
- class GI extends qA.Component {
4293
+ class BI extends qA.Component {
4369
4294
  constructor() {
4370
4295
  super(...arguments);
4371
- UV(this, "state", {
4296
+ MV(this, "state", {
4372
4297
  centerX: 0,
4373
4298
  centerY: 0,
4374
4299
  valueMarkerX: 0,
@@ -4377,7 +4302,7 @@ class GI extends qA.Component {
4377
4302
  }
4378
4303
  static getDerivedStateFromProps(g, q) {
4379
4304
  if (!g.svgRef) return q;
4380
- const B = g.svgRef.getBoundingClientRect(), Q = B.width / 2, C = g.radius * Math.cos(MB(g.valueAngle - 90)), E = g.radius * Math.sin(MB(g.valueAngle - 90));
4305
+ const B = g.svgRef.getBoundingClientRect(), Q = B.width / 2, C = g.radius * Math.cos(gB(g.valueAngle - 90)), E = g.radius * Math.sin(gB(g.valueAngle - 90));
4381
4306
  return {
4382
4307
  ...q,
4383
4308
  centerX: B.left + Q,
@@ -4388,7 +4313,7 @@ class GI extends qA.Component {
4388
4313
  }
4389
4314
  render() {
4390
4315
  const g = this.props.minimumDragDistance <= this.props.radius ? "green" : "grey", q = this.props.minimumDragDistance <= this.props.radius ? "#88E22D" : "#D8D8D8", B = this.props.minimumDragDistance >= this.props.radius;
4391
- return /* @__PURE__ */ l(RI, { children: /* @__PURE__ */ VA(
4316
+ return /* @__PURE__ */ l(qI, { children: /* @__PURE__ */ VA(
4392
4317
  "svg",
4393
4318
  {
4394
4319
  style: { position: "absolute", top: "0", left: "0" },
@@ -4409,7 +4334,7 @@ class GI extends qA.Component {
4409
4334
  }
4410
4335
  ) }),
4411
4336
  /* @__PURE__ */ l(
4412
- DB,
4337
+ EB,
4413
4338
  {
4414
4339
  borderColor: g,
4415
4340
  fillColor: q,
@@ -4420,7 +4345,7 @@ class GI extends qA.Component {
4420
4345
  }
4421
4346
  ),
4422
4347
  B && /* @__PURE__ */ l(
4423
- DB,
4348
+ EB,
4424
4349
  {
4425
4350
  borderColor: g,
4426
4351
  fillColor: q,
@@ -4431,7 +4356,7 @@ class GI extends qA.Component {
4431
4356
  }
4432
4357
  ),
4433
4358
  /* @__PURE__ */ l(
4434
- SI,
4359
+ VI,
4435
4360
  {
4436
4361
  p1: { x: this.state.centerX, y: this.state.centerY },
4437
4362
  p2: {
@@ -4446,7 +4371,7 @@ class GI extends qA.Component {
4446
4371
  ) });
4447
4372
  }
4448
4373
  }
4449
- const YI = {
4374
+ const gI = {
4450
4375
  knobX: 71,
4451
4376
  knobY: 71,
4452
4377
  svg: `
@@ -4514,7 +4439,7 @@ const YI = {
4514
4439
  </g>
4515
4440
  </svg>
4516
4441
  `
4517
- }, iI = (A) => {
4442
+ }, EI = (A) => {
4518
4443
  const {
4519
4444
  clampMax: V = 360,
4520
4445
  clampMin: g = 0,
@@ -4531,7 +4456,7 @@ const YI = {
4531
4456
  },
4532
4457
  preciseMode: D = !0,
4533
4458
  rotateDegrees: w = 0,
4534
- skin: U = YI,
4459
+ skin: U = gI,
4535
4460
  step: o = 1,
4536
4461
  style: R,
4537
4462
  unlockDistance: Y = 100,
@@ -4552,7 +4477,7 @@ const YI = {
4552
4477
  }, BA = (x) => {
4553
4478
  const W = x - w;
4554
4479
  return EA().invert(m(W));
4555
- }, EA = () => ((!K || K.min !== E || K.max !== C || K.clampMin !== g || K.clampMax !== V) && (w < 270 && w > 90 ? i = Fq().domain([E, C]).range([g, V]) : i = Fq().domain([C, E]).range([V, g]), i.clamp(!0), K = {
4480
+ }, EA = () => ((!K || K.min !== E || K.max !== C || K.clampMin !== g || K.clampMax !== V) && (w < 270 && w > 90 ? i = Mq().domain([E, C]).range([g, V]) : i = Mq().domain([C, E]).range([V, g]), i.clamp(!0), K = {
4556
4481
  min: E,
4557
4482
  max: C,
4558
4483
  clampMin: g,
@@ -4562,51 +4487,51 @@ const YI = {
4562
4487
  a(p !== void 0), Z((x) => ({
4563
4488
  ...x,
4564
4489
  uncontrolledValue: p ?? q ?? 0
4565
- })), S.current && (Sq(S.current).on(".drag", null), B || SA(Sq(S.current)));
4490
+ })), S.current && (Dq(S.current).on(".drag", null), B || SA(Dq(S.current)));
4566
4491
  }, [p, q, B]);
4567
4492
  const oA = (x) => {
4568
4493
  e.svgRef || Z({ ...e, svgRef: x });
4569
4494
  }, v = (x) => {
4570
4495
  const W = BA(x);
4571
- k || Z((c) => ({ ...c, uncontrolledValue: W })), B || I(W);
4496
+ k || Z((L) => ({ ...L, uncontrolledValue: W })), B || I(W);
4572
4497
  }, QA = () => k ? p ?? 0 : e.uncontrolledValue ?? 0, SA = (x) => {
4573
4498
  if (!(x != null && x.node())) return;
4574
4499
  const W = x.node();
4575
4500
  if (!W) return;
4576
- let c = W.getBoundingClientRect();
4577
- const n = c.width / 2, j = c.height / 2;
4501
+ let L = W.getBoundingClientRect();
4502
+ const n = L.width / 2, j = L.height / 2;
4578
4503
  let O, b, N, _ = !1;
4579
4504
  function YA($) {
4580
4505
  if (!($ != null && $.sourceEvent) || !W) return;
4581
4506
  const CA = QA();
4582
- c = W.getBoundingClientRect(), x.classed("dragging", !0), F(), O = { x: $.x - n, y: $.y - j }, b = PV(O.x, O.y), N = u(CA), _ = !1;
4507
+ L = W.getBoundingClientRect(), x.classed("dragging", !0), F(), O = { x: $.x - n, y: $.y - j }, b = LV(O.x, O.y), N = u(CA), _ = !1;
4583
4508
  }
4584
- function JA($) {
4509
+ function KA($) {
4585
4510
  const CA = { x: $.x - n, y: $.y - j }, pA = Math.sqrt(
4586
4511
  CA.x ** 2 + CA.y ** 2
4587
4512
  );
4588
- D ? !_ && pA >= Y && (O = CA, b = PV(CA.x, CA.y), _ = !0) : _ = !0;
4589
- const CV = PV(CA.x, CA.y) - b;
4590
- let aA = N + CV;
4591
- aA = m(aA), _ && v(aA), Z((MV) => ({
4592
- ...MV,
4513
+ D ? !_ && pA >= Y && (O = CA, b = LV(CA.x, CA.y), _ = !0) : _ = !0;
4514
+ const QV = LV(CA.x, CA.y) - b;
4515
+ let JA = N + QV;
4516
+ JA = m(JA), _ && v(JA), Z((IV) => ({
4517
+ ...IV,
4593
4518
  dragDistance: pA,
4594
4519
  mousePos: {
4595
4520
  x: $.sourceEvent.clientX,
4596
4521
  y: $.sourceEvent.clientY
4597
4522
  },
4598
- valueAngle: _ ? aA : N
4523
+ valueAngle: _ ? JA : N
4599
4524
  }));
4600
4525
  }
4601
- function QV() {
4526
+ function gV() {
4602
4527
  var $;
4603
4528
  x.classed("dragging", !1), Z((CA) => ({ ...CA, dragging: !1 })), M(), ($ = T.current) == null || $.focus();
4604
4529
  }
4605
- const IV = Rg().container(() => W).on("start", YA).on("drag", JA).on("end", QV);
4606
- x.call(IV);
4530
+ const EV = Ig().container(() => W).on("start", YA).on("drag", KA).on("end", gV);
4531
+ x.call(EV);
4607
4532
  }, gA = (x) => {
4608
4533
  k || Z((W) => ({ ...W, uncontrolledValue: x })), B || I(x);
4609
- }, s = QA(), J = u(s), L = {
4534
+ }, s = QA(), J = u(s), c = {
4610
4535
  container: Object.assign(
4611
4536
  {},
4612
4537
  {
@@ -4626,17 +4551,17 @@ const YI = {
4626
4551
  left: "-100%"
4627
4552
  }
4628
4553
  }, P = U.updateAttributes, y = P ? P.map((x, W) => {
4629
- let c = null;
4630
- x.content && (c = x.content(A, s));
4554
+ let L = null;
4555
+ x.content && (L = x.content(A, s));
4631
4556
  const n = {};
4632
4557
  for (const j of x.attrs || [])
4633
4558
  n[j.name] = j.value(A, s);
4634
4559
  return /* @__PURE__ */ l(
4635
- LV.SvgProxy,
4560
+ yV.SvgProxy,
4636
4561
  {
4637
4562
  selector: x.element,
4638
4563
  ...n,
4639
- children: c
4564
+ children: L
4640
4565
  },
4641
4566
  W
4642
4567
  );
@@ -4646,15 +4571,15 @@ const YI = {
4646
4571
  "div",
4647
4572
  {
4648
4573
  ref: S,
4649
- style: L.container,
4574
+ style: c.container,
4650
4575
  ...H,
4651
4576
  children: [
4652
4577
  /* @__PURE__ */ l(
4653
- zB,
4578
+ yB,
4654
4579
  {
4655
4580
  disabled: B,
4656
4581
  inputRef: T,
4657
- style: L.input,
4582
+ style: c.input,
4658
4583
  value: s,
4659
4584
  min: E,
4660
4585
  max: C,
@@ -4663,7 +4588,7 @@ const YI = {
4663
4588
  }
4664
4589
  ),
4665
4590
  /* @__PURE__ */ VA(
4666
- LV.SvgLoader,
4591
+ yV.SvgLoader,
4667
4592
  {
4668
4593
  height: "100%",
4669
4594
  svgXML: U.svg,
@@ -4671,7 +4596,7 @@ const YI = {
4671
4596
  onSVGReady: oA,
4672
4597
  children: [
4673
4598
  /* @__PURE__ */ l(
4674
- LV.SvgProxy,
4599
+ yV.SvgProxy,
4675
4600
  {
4676
4601
  selector: "#knob",
4677
4602
  transform: `$ORIGINAL rotate(${J}, ${U.knobX}, ${U.knobY})`
@@ -4685,7 +4610,7 @@ const YI = {
4685
4610
  }
4686
4611
  ),
4687
4612
  e.dragging && D && /* @__PURE__ */ l(
4688
- GI,
4613
+ BI,
4689
4614
  {
4690
4615
  svgRef: e.svgRef,
4691
4616
  radius: e.dragDistance,
@@ -4695,7 +4620,7 @@ const YI = {
4695
4620
  }
4696
4621
  )
4697
4622
  ] });
4698
- }, TI = {
4623
+ }, QI = {
4699
4624
  knobX: 71.44,
4700
4625
  knobY: 71.44,
4701
4626
  svg: `
@@ -4804,7 +4729,7 @@ const YI = {
4804
4729
  ]
4805
4730
  }
4806
4731
  ]
4807
- }, sI = (A) => {
4732
+ }, II = (A) => {
4808
4733
  const {
4809
4734
  disabled: V = !1,
4810
4735
  max: g = 127,
@@ -4814,7 +4739,7 @@ const YI = {
4814
4739
  wheelEnabled: C = !1,
4815
4740
  wheelSensitivity: E = 0.1,
4816
4741
  ...I
4817
- } = A, [M, F] = Cq(Q), D = (U) => {
4742
+ } = A, [M, F] = Bq(Q), D = (U) => {
4818
4743
  if (V) return;
4819
4744
  const o = zA(Number.parseInt(String(U), 10), g, q);
4820
4745
  F(o), B && B(o);
@@ -4837,7 +4762,7 @@ const YI = {
4837
4762
  ]
4838
4763
  );
4839
4764
  return /* @__PURE__ */ l(
4840
- iI,
4765
+ EI,
4841
4766
  {
4842
4767
  clampMax: 320,
4843
4768
  clampMin: 40,
@@ -4847,7 +4772,7 @@ const YI = {
4847
4772
  onWheel: C ? w : void 0,
4848
4773
  preciseMode: !1,
4849
4774
  rotateDegrees: 180,
4850
- skin: TI,
4775
+ skin: QI,
4851
4776
  style: { opacity: V ? 0.4 : 1 },
4852
4777
  unlockDistance: 0,
4853
4778
  defaultValue: M,
@@ -4857,7 +4782,7 @@ const YI = {
4857
4782
  ...I
4858
4783
  }
4859
4784
  );
4860
- }, vI = UA((A, V) => {
4785
+ }, yI = UA((A, V) => {
4861
4786
  const {
4862
4787
  disabled: g,
4863
4788
  highToLow: q,
@@ -4893,7 +4818,7 @@ const YI = {
4893
4818
  }
4894
4819
  ),
4895
4820
  /* @__PURE__ */ l(
4896
- sI,
4821
+ II,
4897
4822
  {
4898
4823
  disabled: g,
4899
4824
  max: I,
@@ -4907,18 +4832,18 @@ const YI = {
4907
4832
  )
4908
4833
  ] })
4909
4834
  ] });
4910
- }), hI = [
4835
+ }), CI = [
4911
4836
  { value: 0, label: "Momentary" },
4912
4837
  { value: 1, label: "Latching" }
4913
- ], _I = UA((A, V) => /* @__PURE__ */ l(
4838
+ ], LI = UA((A, V) => /* @__PURE__ */ l(
4914
4839
  FA,
4915
4840
  {
4916
4841
  ...A,
4917
- options: hI,
4842
+ options: CI,
4918
4843
  ref: V
4919
4844
  }
4920
- )), $I = UA(({ allowClearing: A, ...V }, g) => {
4921
- const q = Yg(), B = ig(), Q = hA(() => [
4845
+ )), cI = UA(({ allowClearing: A, ...V }, g) => {
4846
+ const q = Mg(), B = Dg(), Q = hA(() => [
4922
4847
  ...A ? [
4923
4848
  {
4924
4849
  value: "No Mapping",
@@ -4948,10 +4873,10 @@ const YI = {
4948
4873
  ref: g
4949
4874
  }
4950
4875
  );
4951
- }), { midiToNoteName: kI } = lE, KI = ({ note: A, name: V }) => `${A} ${V.length ? "-" : ""} ${V}`, UB = (A, V) => ({
4876
+ }), { midiToNoteName: MI } = SE, DI = ({ note: A, name: V }) => `${A} ${V.length ? "-" : ""} ${V}`, QB = (A, V) => ({
4952
4877
  label: A,
4953
4878
  value: V + 1
4954
- }), AC = UA((A, V) => {
4879
+ }), PI = UA((A, V) => {
4955
4880
  const {
4956
4881
  channel: g,
4957
4882
  disabled: q = !1,
@@ -4960,7 +4885,7 @@ const YI = {
4960
4885
  onChange: C,
4961
4886
  value: E,
4962
4887
  ...I
4963
- } = A, M = hA(() => B ? Rq().map(({ note: U }) => `${kI(U, { sharps: !1 }).replace("b", "♭").replace("#", "♯")} (#${U})`).map(UB) : (Q || Rq()).map(KI).map(UB), [B, Q]), [F, D] = Cq(E), w = DA(
4888
+ } = A, M = hA(() => B ? Uq().map(({ note: U }) => `${MI(U, { sharps: !1 }).replace("b", "♭").replace("#", "♯")} (#${U})`).map(QB) : (Q || Uq()).map(DI).map(QB), [B, Q]), [F, D] = Bq(E), w = DA(
4964
4889
  (U) => {
4965
4890
  if (typeof U == "string") return;
4966
4891
  const o = zA(U, 128, 0);
@@ -4979,18 +4904,18 @@ const YI = {
4979
4904
  value: F
4980
4905
  }
4981
4906
  );
4982
- }), fB = 21, dB = 108, JI = dB - fB - 1, aI = JI * 0.7, NI = new window.AudioContext(), eI = ({ height: A, width: V, ...g }) => {
4983
- const B = (V / aI + 2) / A;
4907
+ }), LB = 21, cB = 108, UI = cB - LB - 1, oI = UI * 0.7, wI = new window.AudioContext(), FI = ({ height: A, width: V, ...g }) => {
4908
+ const B = (V / oI + 2) / A;
4984
4909
  return /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
4985
- Qq,
4910
+ Vq,
4986
4911
  {
4987
4912
  keyWidthToHeight: B,
4988
- noteRange: { first: fB, last: dB },
4913
+ noteRange: { first: LB, last: cB },
4989
4914
  width: V,
4990
4915
  ...g
4991
4916
  }
4992
4917
  ) });
4993
- }, VC = ({
4918
+ }, mI = ({
4994
4919
  format: A,
4995
4920
  height: V,
4996
4921
  hostname: g,
@@ -5004,16 +4929,16 @@ const YI = {
5004
4929
  soundfont: F,
5005
4930
  width: D
5006
4931
  }) => /* @__PURE__ */ l(
5007
- uB,
4932
+ pB,
5008
4933
  {
5009
- audioContext: NI,
4934
+ audioContext: wI,
5010
4935
  format: A,
5011
4936
  hostname: g,
5012
4937
  instrumentName: q,
5013
4938
  onChange: B,
5014
4939
  soundfont: F,
5015
4940
  render: ({ isLoading: w, playNote: U, stopNote: o }) => /* @__PURE__ */ l(
5016
- eI,
4941
+ FI,
5017
4942
  {
5018
4943
  disabled: w,
5019
4944
  height: V,
@@ -5028,7 +4953,7 @@ const YI = {
5028
4953
  }
5029
4954
  )
5030
4955
  }
5031
- ), qC = UA(({ labelOff: A = "Normally Off", labelOn: V = "Normally On", ...g }, q) => /* @__PURE__ */ l(
4956
+ ), nI = UA(({ labelOff: A = "Normally Off", labelOn: V = "Normally On", ...g }, q) => /* @__PURE__ */ l(
5032
4957
  FA,
5033
4958
  {
5034
4959
  ...g,
@@ -5038,19 +4963,19 @@ const YI = {
5038
4963
  ],
5039
4964
  ref: q
5040
4965
  }
5041
- )), oB = (A) => A ? {
4966
+ )), IB = (A) => A ? {
5042
4967
  width: A.offsetWidth,
5043
4968
  height: A.offsetHeight
5044
4969
  } : {
5045
4970
  width: 0,
5046
4971
  height: 0
5047
- }, lI = (A) => {
4972
+ }, SI = (A) => {
5048
4973
  const [V, g] = wA(
5049
- oB(A ? A.current : null)
4974
+ IB(A ? A.current : null)
5050
4975
  ), q = DA(() => {
5051
- A.current && g(oB(A.current));
4976
+ A.current && g(IB(A.current));
5052
4977
  }, [A]);
5053
- return Fg(() => {
4978
+ return Eg(() => {
5054
4979
  if (A.current) {
5055
4980
  if (q(), typeof ResizeObserver == "function") {
5056
4981
  const B = new ResizeObserver(() => {
@@ -5065,18 +4990,18 @@ const YI = {
5065
4990
  };
5066
4991
  }
5067
4992
  }, [A.current]), V;
5068
- }, vA = 20, mV = 15, eA = vA, jA = vA, xI = (A) => {
4993
+ }, vA = 20, cV = 15, NA = vA, jA = vA, RI = (A) => {
5069
4994
  const {
5070
- Tooltip: V = FB,
4995
+ Tooltip: V = MB,
5071
4996
  autosize: g,
5072
4997
  disabled: q,
5073
4998
  inverted: B,
5074
4999
  onChange: Q,
5075
5000
  value: C
5076
- } = A, E = HA(null), I = HA(null), { height: M, width: F } = lI(E), D = g && F || 218, w = g && M || 150, U = D - vA, o = w - vA, R = D / 2, Y = w / 2, p = { ref: I }, H = wB.map(
5001
+ } = A, E = HA(null), I = HA(null), { height: M, width: F } = SI(E), D = g && F || 218, w = g && M || 150, U = D - vA, o = w - vA, R = D / 2, Y = w / 2, p = { ref: I }, H = CB.map(
5077
5002
  // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: <explanation>
5078
5003
  ({ value: k, label: a }) => {
5079
- let S = 0, T = 0, i = eA, K = B ? jA : o, e = U, Z = B ? o : jA, m = R, u = Y;
5004
+ let S = 0, T = 0, i = NA, K = B ? jA : o, e = U, Z = B ? o : jA, m = R, u = Y;
5080
5005
  switch (k) {
5081
5006
  case 0:
5082
5007
  S = R, T = Y, u += 3;
@@ -5100,7 +5025,7 @@ const YI = {
5100
5025
  S = B ? R - D * 0.35 : R + D * 0.35, T = Y + w * 0.35, m = B ? R - D * 0.28 : R + D * 0.28, u = Y + w * 0.25;
5101
5026
  break;
5102
5027
  case 7:
5103
- i = B ? eA : U, K = jA, e = i, Z = o, S = i, T = Y, m = i - 5, u = w - 30;
5028
+ i = B ? NA : U, K = jA, e = i, Z = o, S = i, T = Y, m = i - 5, u = w - 30;
5104
5029
  break;
5105
5030
  }
5106
5031
  return {
@@ -5136,18 +5061,18 @@ const YI = {
5136
5061
  }
5137
5062
  ),
5138
5063
  /* @__PURE__ */ l(
5139
- gB,
5064
+ $q,
5140
5065
  {
5141
5066
  className: "axis",
5142
5067
  textAnchor: "middle",
5143
- transform: `translate(${eA - 14} ${w / 2}) rotate(90)`,
5068
+ transform: `translate(${NA - 14} ${w / 2}) rotate(90)`,
5144
5069
  x: 0,
5145
5070
  y: 0,
5146
5071
  text: "Applied force"
5147
5072
  }
5148
5073
  ),
5149
5074
  /* @__PURE__ */ l(
5150
- gB,
5075
+ $q,
5151
5076
  {
5152
5077
  className: "axis",
5153
5078
  textAnchor: "middle",
@@ -5161,8 +5086,8 @@ const YI = {
5161
5086
  "line",
5162
5087
  {
5163
5088
  className: "axis",
5164
- x1: eA,
5165
- x2: eA,
5089
+ x1: NA,
5090
+ x2: NA,
5166
5091
  y1: jA,
5167
5092
  y2: o
5168
5093
  }
@@ -5171,7 +5096,7 @@ const YI = {
5171
5096
  "line",
5172
5097
  {
5173
5098
  className: "axis",
5174
- x1: eA,
5099
+ x1: NA,
5175
5100
  x2: U,
5176
5101
  y1: o,
5177
5102
  y2: o
@@ -5195,14 +5120,14 @@ const YI = {
5195
5120
  "rect",
5196
5121
  {
5197
5122
  className: k === C ? "button-selected" : "button",
5198
- height: mV,
5123
+ height: cV,
5199
5124
  onClick: q ? (BA) => BA : () => Q({
5200
5125
  target: {
5201
5126
  value: Number.parseInt(String(k))
5202
5127
  }
5203
5128
  }),
5204
- transform: `translate(${m + 3} ${u - mV / 1.05}) rotate(45)`,
5205
- width: mV
5129
+ transform: `translate(${m + 3} ${u - cV / 1.05}) rotate(45)`,
5130
+ width: cV
5206
5131
  }
5207
5132
  )
5208
5133
  }
@@ -5223,19 +5148,19 @@ const YI = {
5223
5148
  ] })
5224
5149
  }
5225
5150
  );
5226
- }, BC = UA((A, V) => {
5151
+ }, OI = UA((A, V) => {
5227
5152
  const {
5228
- Tooltip: g = FB,
5153
+ Tooltip: g = MB,
5229
5154
  inverted: q = !1,
5230
5155
  onChange: B,
5231
5156
  value: Q,
5232
5157
  ...C
5233
5158
  } = A, E = DA(() => {
5234
- const M = Tg("value", Q)(wB);
5159
+ const M = Ug("value", Q)(CB);
5235
5160
  return M ? /* @__PURE__ */ l("div", { className: "singleValue", children: M.label }) : /* @__PURE__ */ l("div", { className: "zds-pickers__placeholder", children: "Select..." });
5236
5161
  }, [Q]), I = DA(
5237
5162
  ({ setValue: M }) => /* @__PURE__ */ l(
5238
- xI,
5163
+ RI,
5239
5164
  {
5240
5165
  autosize: !0,
5241
5166
  inverted: q,
@@ -5262,14 +5187,14 @@ const YI = {
5262
5187
  value: Q
5263
5188
  }
5264
5189
  );
5265
- }), gC = UA(({ statuses: A, ...V }, g) => /* @__PURE__ */ l(
5190
+ }), jI = UA(({ statuses: A, ...V }, g) => /* @__PURE__ */ l(
5266
5191
  FA,
5267
5192
  {
5268
5193
  ...V,
5269
5194
  options: A,
5270
5195
  ref: g
5271
5196
  }
5272
- )), EC = UA((A, V) => {
5197
+ )), uI = UA((A, V) => {
5273
5198
  const {
5274
5199
  disabled: g,
5275
5200
  highToLow: q,
@@ -5281,7 +5206,7 @@ const YI = {
5281
5206
  } = A, M = hA(() => {
5282
5207
  const U = _A(B - Q + 1).map((o) => Q + o).map((o) => ({ value: o, label: o }));
5283
5208
  return q ? U.reverse() : U;
5284
- }, [q, B, Q]), [F, D] = Cq(E), w = DA(
5209
+ }, [q, B, Q]), [F, D] = Bq(E), w = DA(
5285
5210
  (U) => {
5286
5211
  C(zA(U, B, Q)), D(Number.parseInt(String(U), 10));
5287
5212
  },
@@ -5300,43 +5225,43 @@ const YI = {
5300
5225
  );
5301
5226
  });
5302
5227
  export {
5303
- fI as CCPicker,
5304
- dI as ChannelMappingPicker,
5305
- XI as ChannelPicker,
5306
- FB as DefaultTooltip,
5307
- bI as KeyPicker,
5308
- sI as Knob,
5309
- vI as KnobPicker,
5310
- _I as LatchPicker,
5311
- kg as MASK_CHANNEL,
5312
- Kg as MASK_STATUS,
5313
- BB as MEASUREMENT_ELEMENT_ID,
5314
- $I as MappingPicker,
5315
- AC as NotePicker,
5316
- $Q as OctavePlayer,
5317
- VC as PianoPicker,
5318
- qC as PolarityPicker,
5319
- xI as ResponseCurve,
5320
- Gq as ResponseCurveLabels,
5321
- BC as ResponseCurvePicker,
5228
+ rI as CCPicker,
5229
+ HI as ChannelMappingPicker,
5230
+ ZI as ChannelPicker,
5231
+ MB as DefaultTooltip,
5232
+ pI as KeyPicker,
5233
+ II as Knob,
5234
+ yI as KnobPicker,
5235
+ LI as LatchPicker,
5236
+ Fg as MASK_CHANNEL,
5237
+ Sg as MASK_STATUS,
5238
+ _q as MEASUREMENT_ELEMENT_ID,
5239
+ cI as MappingPicker,
5240
+ PI as NotePicker,
5241
+ cQ as OctavePlayer,
5242
+ mI as PianoPicker,
5243
+ nI as PolarityPicker,
5244
+ RI as ResponseCurve,
5245
+ oq as ResponseCurveLabels,
5246
+ OI as ResponseCurvePicker,
5322
5247
  FA as Select,
5323
- gC as StatusPicker,
5248
+ jI as StatusPicker,
5324
5249
  sA as Statuses,
5325
- gB as SvgText,
5326
- EC as ValuePicker,
5250
+ $q as SvgText,
5251
+ uI as ValuePicker,
5327
5252
  _A as arraySequence,
5328
5253
  zA as assertRange,
5329
- hg as changeControllerOptions,
5330
- jI as combineStatusWithChannel,
5331
- uI as extractStatusAndChannel,
5332
- Tg as findObj,
5333
- OI as getStatusLabel,
5334
- lA as noSelection,
5335
- zI as noSelectionOption,
5336
- sg as omit,
5337
- mI as pick,
5338
- wB as responseCurves,
5339
- nI as set,
5340
- Jg as statusOptions
5254
+ wg as changeControllerOptions,
5255
+ xI as combineStatusWithChannel,
5256
+ tI as extractStatusAndChannel,
5257
+ Ug as findObj,
5258
+ lI as getStatusLabel,
5259
+ eA as noSelection,
5260
+ WI as noSelectionOption,
5261
+ og as omit,
5262
+ NI as pick,
5263
+ CB as responseCurves,
5264
+ eI as set,
5265
+ Rg as statusOptions
5341
5266
  };
5342
5267
  //# sourceMappingURL=index.es.js.map