@94ai/nf-audio 3.3.37 → 3.3.38

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.
@@ -3,16 +3,867 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const vueDemi = require("vue-demi");
4
4
  const vue2RuntimeHelpers = require("@94ai/vue2-runtime-helpers");
5
5
  const elementUi = require("element-ui");
6
- const __sfc_main = {};
6
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
7
+ function getDefaultExportFromCjs(x) {
8
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
9
+ }
10
+ var check = function(it) {
11
+ return it && it.Math === Math && it;
12
+ };
13
+ var global$d = (
14
+ // eslint-disable-next-line es/no-global-this -- safe
15
+ check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
16
+ check(typeof self == "object" && self) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback
17
+ function() {
18
+ return this;
19
+ }() || commonjsGlobal || Function("return this")()
20
+ );
21
+ var fails$9 = function(exec2) {
22
+ try {
23
+ return !!exec2();
24
+ } catch (error) {
25
+ return true;
26
+ }
27
+ };
28
+ var fails$8 = fails$9;
29
+ var functionBindNative = !fails$8(function() {
30
+ var test2 = (function() {
31
+ }).bind();
32
+ return typeof test2 != "function" || test2.hasOwnProperty("prototype");
33
+ });
34
+ var NATIVE_BIND$3 = functionBindNative;
35
+ var FunctionPrototype$1 = Function.prototype;
36
+ var apply$2 = FunctionPrototype$1.apply;
37
+ var call$6 = FunctionPrototype$1.call;
38
+ var functionApply = typeof Reflect == "object" && Reflect.apply || (NATIVE_BIND$3 ? call$6.bind(apply$2) : function() {
39
+ return call$6.apply(apply$2, arguments);
40
+ });
41
+ var NATIVE_BIND$2 = functionBindNative;
42
+ var FunctionPrototype = Function.prototype;
43
+ var call$5 = FunctionPrototype.call;
44
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype.bind.bind(call$5, call$5);
45
+ var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function(fn) {
46
+ return function() {
47
+ return call$5.apply(fn, arguments);
48
+ };
49
+ };
50
+ var uncurryThis$c = functionUncurryThis;
51
+ var toString$4 = uncurryThis$c({}.toString);
52
+ var stringSlice = uncurryThis$c("".slice);
53
+ var classofRaw$2 = function(it) {
54
+ return stringSlice(toString$4(it), 8, -1);
55
+ };
56
+ var classofRaw$1 = classofRaw$2;
57
+ var uncurryThis$b = functionUncurryThis;
58
+ var functionUncurryThisClause = function(fn) {
59
+ if (classofRaw$1(fn) === "Function")
60
+ return uncurryThis$b(fn);
61
+ };
62
+ var documentAll$2 = typeof document == "object" && document.all;
63
+ var IS_HTMLDDA = typeof documentAll$2 == "undefined" && documentAll$2 !== void 0;
64
+ var documentAll_1 = {
65
+ all: documentAll$2,
66
+ IS_HTMLDDA
67
+ };
68
+ var $documentAll$1 = documentAll_1;
69
+ var documentAll$1 = $documentAll$1.all;
70
+ var isCallable$9 = $documentAll$1.IS_HTMLDDA ? function(argument) {
71
+ return typeof argument == "function" || argument === documentAll$1;
72
+ } : function(argument) {
73
+ return typeof argument == "function";
74
+ };
75
+ var objectGetOwnPropertyDescriptor = {};
76
+ var fails$7 = fails$9;
77
+ var descriptors = !fails$7(function() {
78
+ return Object.defineProperty({}, 1, {
79
+ get: function() {
80
+ return 7;
81
+ }
82
+ })[1] !== 7;
83
+ });
84
+ var NATIVE_BIND$1 = functionBindNative;
85
+ var call$4 = Function.prototype.call;
86
+ var functionCall = NATIVE_BIND$1 ? call$4.bind(call$4) : function() {
87
+ return call$4.apply(call$4, arguments);
88
+ };
89
+ var objectPropertyIsEnumerable = {};
90
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
91
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
92
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({
93
+ 1: 2
94
+ }, 1);
95
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
96
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
97
+ return !!descriptor && descriptor.enumerable;
98
+ } : $propertyIsEnumerable;
99
+ var createPropertyDescriptor$2 = function(bitmap, value) {
100
+ return {
101
+ enumerable: !(bitmap & 1),
102
+ configurable: !(bitmap & 2),
103
+ writable: !(bitmap & 4),
104
+ value
105
+ };
106
+ };
107
+ var uncurryThis$a = functionUncurryThis;
108
+ var fails$6 = fails$9;
109
+ var classof$2 = classofRaw$2;
110
+ var $Object$3 = Object;
111
+ var split = uncurryThis$a("".split);
112
+ var indexedObject = fails$6(function() {
113
+ return !$Object$3("z").propertyIsEnumerable(0);
114
+ }) ? function(it) {
115
+ return classof$2(it) === "String" ? split(it, "") : $Object$3(it);
116
+ } : $Object$3;
117
+ var isNullOrUndefined$2 = function(it) {
118
+ return it === null || it === void 0;
119
+ };
120
+ var isNullOrUndefined$1 = isNullOrUndefined$2;
121
+ var $TypeError$6 = TypeError;
122
+ var requireObjectCoercible$3 = function(it) {
123
+ if (isNullOrUndefined$1(it))
124
+ throw new $TypeError$6("Can't call method on " + it);
125
+ return it;
126
+ };
127
+ var IndexedObject$1 = indexedObject;
128
+ var requireObjectCoercible$2 = requireObjectCoercible$3;
129
+ var toIndexedObject$3 = function(it) {
130
+ return IndexedObject$1(requireObjectCoercible$2(it));
131
+ };
132
+ var isCallable$8 = isCallable$9;
133
+ var $documentAll = documentAll_1;
134
+ var documentAll = $documentAll.all;
135
+ var isObject$4 = $documentAll.IS_HTMLDDA ? function(it) {
136
+ return typeof it == "object" ? it !== null : isCallable$8(it) || it === documentAll;
137
+ } : function(it) {
138
+ return typeof it == "object" ? it !== null : isCallable$8(it);
139
+ };
140
+ var path$5 = {};
141
+ var path$4 = path$5;
142
+ var global$c = global$d;
143
+ var isCallable$7 = isCallable$9;
144
+ var aFunction = function(variable) {
145
+ return isCallable$7(variable) ? variable : void 0;
146
+ };
147
+ var getBuiltIn$1 = function(namespace, method) {
148
+ return arguments.length < 2 ? aFunction(path$4[namespace]) || aFunction(global$c[namespace]) : path$4[namespace] && path$4[namespace][method] || global$c[namespace] && global$c[namespace][method];
149
+ };
150
+ var uncurryThis$9 = functionUncurryThis;
151
+ var objectIsPrototypeOf = uncurryThis$9({}.isPrototypeOf);
152
+ var engineUserAgent = typeof navigator != "undefined" && String(navigator.userAgent) || "";
153
+ var global$b = global$d;
154
+ var userAgent = engineUserAgent;
155
+ var process = global$b.process;
156
+ var Deno = global$b.Deno;
157
+ var versions = process && process.versions || Deno && Deno.version;
158
+ var v8 = versions && versions.v8;
159
+ var match, version;
160
+ if (v8) {
161
+ match = v8.split(".");
162
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
163
+ }
164
+ if (!version && userAgent) {
165
+ match = userAgent.match(/Edge\/(\d+)/);
166
+ if (!match || match[1] >= 74) {
167
+ match = userAgent.match(/Chrome\/(\d+)/);
168
+ if (match)
169
+ version = +match[1];
170
+ }
171
+ }
172
+ var engineV8Version = version;
173
+ var V8_VERSION = engineV8Version;
174
+ var fails$5 = fails$9;
175
+ var global$a = global$d;
176
+ var $String$3 = global$a.String;
177
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function() {
178
+ var symbol = Symbol("symbol detection");
179
+ return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
180
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
181
+ });
182
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
183
+ var useSymbolAsUid = NATIVE_SYMBOL$1 && !Symbol.sham && typeof Symbol.iterator == "symbol";
184
+ var getBuiltIn = getBuiltIn$1;
185
+ var isCallable$6 = isCallable$9;
186
+ var isPrototypeOf = objectIsPrototypeOf;
187
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
188
+ var $Object$2 = Object;
189
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function(it) {
190
+ return typeof it == "symbol";
191
+ } : function(it) {
192
+ var $Symbol = getBuiltIn("Symbol");
193
+ return isCallable$6($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
194
+ };
195
+ var $String$2 = String;
196
+ var tryToString$1 = function(argument) {
197
+ try {
198
+ return $String$2(argument);
199
+ } catch (error) {
200
+ return "Object";
201
+ }
202
+ };
203
+ var isCallable$5 = isCallable$9;
204
+ var tryToString = tryToString$1;
205
+ var $TypeError$5 = TypeError;
206
+ var aCallable$2 = function(argument) {
207
+ if (isCallable$5(argument))
208
+ return argument;
209
+ throw new $TypeError$5(tryToString(argument) + " is not a function");
210
+ };
211
+ var aCallable$1 = aCallable$2;
212
+ var isNullOrUndefined = isNullOrUndefined$2;
213
+ var getMethod$1 = function(V, P) {
214
+ var func = V[P];
215
+ return isNullOrUndefined(func) ? void 0 : aCallable$1(func);
216
+ };
217
+ var call$3 = functionCall;
218
+ var isCallable$4 = isCallable$9;
219
+ var isObject$3 = isObject$4;
220
+ var $TypeError$4 = TypeError;
221
+ var ordinaryToPrimitive$1 = function(input, pref) {
222
+ var fn, val;
223
+ if (pref === "string" && isCallable$4(fn = input.toString) && !isObject$3(val = call$3(fn, input)))
224
+ return val;
225
+ if (isCallable$4(fn = input.valueOf) && !isObject$3(val = call$3(fn, input)))
226
+ return val;
227
+ if (pref !== "string" && isCallable$4(fn = input.toString) && !isObject$3(val = call$3(fn, input)))
228
+ return val;
229
+ throw new $TypeError$4("Can't convert object to primitive value");
230
+ };
231
+ var shared$1 = { exports: {} };
232
+ var global$9 = global$d;
233
+ var defineProperty$1 = Object.defineProperty;
234
+ var defineGlobalProperty$1 = function(key, value) {
235
+ try {
236
+ defineProperty$1(global$9, key, {
237
+ value,
238
+ configurable: true,
239
+ writable: true
240
+ });
241
+ } catch (error) {
242
+ global$9[key] = value;
243
+ }
244
+ return value;
245
+ };
246
+ var global$8 = global$d;
247
+ var defineGlobalProperty = defineGlobalProperty$1;
248
+ var SHARED = "__core-js_shared__";
249
+ var store$1 = global$8[SHARED] || defineGlobalProperty(SHARED, {});
250
+ var sharedStore = store$1;
251
+ var store = sharedStore;
252
+ (shared$1.exports = function(key, value) {
253
+ return store[key] || (store[key] = value !== void 0 ? value : {});
254
+ })("versions", []).push({
255
+ version: "3.33.2",
256
+ mode: "pure",
257
+ copyright: "© 2014-2023 Denis Pushkarev (zloirock.ru)",
258
+ license: "https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",
259
+ source: "https://github.com/zloirock/core-js"
260
+ });
261
+ var sharedExports = shared$1.exports;
262
+ var requireObjectCoercible$1 = requireObjectCoercible$3;
263
+ var $Object$1 = Object;
264
+ var toObject$2 = function(argument) {
265
+ return $Object$1(requireObjectCoercible$1(argument));
266
+ };
267
+ var uncurryThis$8 = functionUncurryThis;
268
+ var toObject$1 = toObject$2;
269
+ var hasOwnProperty = uncurryThis$8({}.hasOwnProperty);
270
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
271
+ return hasOwnProperty(toObject$1(it), key);
272
+ };
273
+ var uncurryThis$7 = functionUncurryThis;
274
+ var id = 0;
275
+ var postfix = Math.random();
276
+ var toString$3 = uncurryThis$7(1 .toString);
277
+ var uid$1 = function(key) {
278
+ return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString$3(++id + postfix, 36);
279
+ };
280
+ var global$7 = global$d;
281
+ var shared = sharedExports;
282
+ var hasOwn$3 = hasOwnProperty_1;
283
+ var uid = uid$1;
284
+ var NATIVE_SYMBOL = symbolConstructorDetection;
285
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
286
+ var Symbol$2 = global$7.Symbol;
287
+ var WellKnownSymbolsStore = shared("wks");
288
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2["for"] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid;
289
+ var wellKnownSymbol$3 = function(name) {
290
+ if (!hasOwn$3(WellKnownSymbolsStore, name)) {
291
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$3(Symbol$2, name) ? Symbol$2[name] : createWellKnownSymbol("Symbol." + name);
292
+ }
293
+ return WellKnownSymbolsStore[name];
294
+ };
295
+ var call$2 = functionCall;
296
+ var isObject$2 = isObject$4;
297
+ var isSymbol$1 = isSymbol$2;
298
+ var getMethod = getMethod$1;
299
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
300
+ var wellKnownSymbol$2 = wellKnownSymbol$3;
301
+ var $TypeError$3 = TypeError;
302
+ var TO_PRIMITIVE = wellKnownSymbol$2("toPrimitive");
303
+ var toPrimitive$1 = function(input, pref) {
304
+ if (!isObject$2(input) || isSymbol$1(input))
305
+ return input;
306
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
307
+ var result;
308
+ if (exoticToPrim) {
309
+ if (pref === void 0)
310
+ pref = "default";
311
+ result = call$2(exoticToPrim, input, pref);
312
+ if (!isObject$2(result) || isSymbol$1(result))
313
+ return result;
314
+ throw new $TypeError$3("Can't convert object to primitive value");
315
+ }
316
+ if (pref === void 0)
317
+ pref = "number";
318
+ return ordinaryToPrimitive(input, pref);
319
+ };
320
+ var toPrimitive = toPrimitive$1;
321
+ var isSymbol = isSymbol$2;
322
+ var toPropertyKey$2 = function(argument) {
323
+ var key = toPrimitive(argument, "string");
324
+ return isSymbol(key) ? key : key + "";
325
+ };
326
+ var global$6 = global$d;
327
+ var isObject$1 = isObject$4;
328
+ var document$1 = global$6.document;
329
+ var EXISTS = isObject$1(document$1) && isObject$1(document$1.createElement);
330
+ var documentCreateElement = function(it) {
331
+ return EXISTS ? document$1.createElement(it) : {};
332
+ };
333
+ var DESCRIPTORS$5 = descriptors;
334
+ var fails$4 = fails$9;
335
+ var createElement = documentCreateElement;
336
+ var ie8DomDefine = !DESCRIPTORS$5 && !fails$4(function() {
337
+ return Object.defineProperty(createElement("div"), "a", {
338
+ get: function() {
339
+ return 7;
340
+ }
341
+ }).a !== 7;
342
+ });
343
+ var DESCRIPTORS$4 = descriptors;
344
+ var call$1 = functionCall;
345
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
346
+ var createPropertyDescriptor$1 = createPropertyDescriptor$2;
347
+ var toIndexedObject$2 = toIndexedObject$3;
348
+ var toPropertyKey$1 = toPropertyKey$2;
349
+ var hasOwn$2 = hasOwnProperty_1;
350
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
351
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
352
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
353
+ O = toIndexedObject$2(O);
354
+ P = toPropertyKey$1(P);
355
+ if (IE8_DOM_DEFINE$1)
356
+ try {
357
+ return $getOwnPropertyDescriptor$1(O, P);
358
+ } catch (error) {
359
+ }
360
+ if (hasOwn$2(O, P))
361
+ return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
362
+ };
363
+ var fails$3 = fails$9;
364
+ var isCallable$3 = isCallable$9;
365
+ var replacement = /#|\.prototype\./;
366
+ var isForced$1 = function(feature, detection) {
367
+ var value = data[normalize(feature)];
368
+ return value === POLYFILL ? true : value === NATIVE ? false : isCallable$3(detection) ? fails$3(detection) : !!detection;
369
+ };
370
+ var normalize = isForced$1.normalize = function(string) {
371
+ return String(string).replace(replacement, ".").toLowerCase();
372
+ };
373
+ var data = isForced$1.data = {};
374
+ var NATIVE = isForced$1.NATIVE = "N";
375
+ var POLYFILL = isForced$1.POLYFILL = "P";
376
+ var isForced_1 = isForced$1;
377
+ var uncurryThis$6 = functionUncurryThisClause;
378
+ var aCallable = aCallable$2;
379
+ var NATIVE_BIND = functionBindNative;
380
+ var bind$1 = uncurryThis$6(uncurryThis$6.bind);
381
+ var functionBindContext = function(fn, that) {
382
+ aCallable(fn);
383
+ return that === void 0 ? fn : NATIVE_BIND ? bind$1(fn, that) : function() {
384
+ return fn.apply(that, arguments);
385
+ };
386
+ };
387
+ var objectDefineProperty = {};
388
+ var DESCRIPTORS$3 = descriptors;
389
+ var fails$2 = fails$9;
390
+ var v8PrototypeDefineBug = DESCRIPTORS$3 && fails$2(function() {
391
+ return Object.defineProperty(function() {
392
+ }, "prototype", {
393
+ value: 42,
394
+ writable: false
395
+ }).prototype !== 42;
396
+ });
397
+ var isObject = isObject$4;
398
+ var $String$1 = String;
399
+ var $TypeError$2 = TypeError;
400
+ var anObject$1 = function(argument) {
401
+ if (isObject(argument))
402
+ return argument;
403
+ throw new $TypeError$2($String$1(argument) + " is not an object");
404
+ };
405
+ var DESCRIPTORS$2 = descriptors;
406
+ var IE8_DOM_DEFINE = ie8DomDefine;
407
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
408
+ var anObject = anObject$1;
409
+ var toPropertyKey = toPropertyKey$2;
410
+ var $TypeError$1 = TypeError;
411
+ var $defineProperty = Object.defineProperty;
412
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
413
+ var ENUMERABLE = "enumerable";
414
+ var CONFIGURABLE = "configurable";
415
+ var WRITABLE = "writable";
416
+ objectDefineProperty.f = DESCRIPTORS$2 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
417
+ anObject(O);
418
+ P = toPropertyKey(P);
419
+ anObject(Attributes);
420
+ if (typeof O === "function" && P === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
421
+ var current = $getOwnPropertyDescriptor(O, P);
422
+ if (current && current[WRITABLE]) {
423
+ O[P] = Attributes.value;
424
+ Attributes = {
425
+ configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
426
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
427
+ writable: false
428
+ };
429
+ }
430
+ }
431
+ return $defineProperty(O, P, Attributes);
432
+ } : $defineProperty : function defineProperty2(O, P, Attributes) {
433
+ anObject(O);
434
+ P = toPropertyKey(P);
435
+ anObject(Attributes);
436
+ if (IE8_DOM_DEFINE)
437
+ try {
438
+ return $defineProperty(O, P, Attributes);
439
+ } catch (error) {
440
+ }
441
+ if ("get" in Attributes || "set" in Attributes)
442
+ throw new $TypeError$1("Accessors not supported");
443
+ if ("value" in Attributes)
444
+ O[P] = Attributes.value;
445
+ return O;
446
+ };
447
+ var DESCRIPTORS$1 = descriptors;
448
+ var definePropertyModule = objectDefineProperty;
449
+ var createPropertyDescriptor = createPropertyDescriptor$2;
450
+ var createNonEnumerableProperty$1 = DESCRIPTORS$1 ? function(object, key, value) {
451
+ return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
452
+ } : function(object, key, value) {
453
+ object[key] = value;
454
+ return object;
455
+ };
456
+ var global$5 = global$d;
457
+ var apply$1 = functionApply;
458
+ var uncurryThis$5 = functionUncurryThisClause;
459
+ var isCallable$2 = isCallable$9;
460
+ var getOwnPropertyDescriptor2 = objectGetOwnPropertyDescriptor.f;
461
+ var isForced = isForced_1;
462
+ var path$3 = path$5;
463
+ var bind = functionBindContext;
464
+ var createNonEnumerableProperty = createNonEnumerableProperty$1;
465
+ var hasOwn$1 = hasOwnProperty_1;
466
+ var wrapConstructor = function(NativeConstructor) {
467
+ var Wrapper = function(a, b, c) {
468
+ if (this instanceof Wrapper) {
469
+ switch (arguments.length) {
470
+ case 0:
471
+ return new NativeConstructor();
472
+ case 1:
473
+ return new NativeConstructor(a);
474
+ case 2:
475
+ return new NativeConstructor(a, b);
476
+ }
477
+ return new NativeConstructor(a, b, c);
478
+ }
479
+ return apply$1(NativeConstructor, this, arguments);
480
+ };
481
+ Wrapper.prototype = NativeConstructor.prototype;
482
+ return Wrapper;
483
+ };
484
+ var _export = function(options, source) {
485
+ var TARGET = options.target;
486
+ var GLOBAL = options.global;
487
+ var STATIC = options.stat;
488
+ var PROTO = options.proto;
489
+ var nativeSource = GLOBAL ? global$5 : STATIC ? global$5[TARGET] : (global$5[TARGET] || {}).prototype;
490
+ var target = GLOBAL ? path$3 : path$3[TARGET] || createNonEnumerableProperty(path$3, TARGET, {})[TARGET];
491
+ var targetPrototype = target.prototype;
492
+ var FORCED2, USE_NATIVE, VIRTUAL_PROTOTYPE;
493
+ var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;
494
+ for (key in source) {
495
+ FORCED2 = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
496
+ USE_NATIVE = !FORCED2 && nativeSource && hasOwn$1(nativeSource, key);
497
+ targetProperty = target[key];
498
+ if (USE_NATIVE)
499
+ if (options.dontCallGetSet) {
500
+ descriptor = getOwnPropertyDescriptor2(nativeSource, key);
501
+ nativeProperty = descriptor && descriptor.value;
502
+ } else
503
+ nativeProperty = nativeSource[key];
504
+ sourceProperty = USE_NATIVE && nativeProperty ? nativeProperty : source[key];
505
+ if (USE_NATIVE && typeof targetProperty == typeof sourceProperty)
506
+ continue;
507
+ if (options.bind && USE_NATIVE)
508
+ resultProperty = bind(sourceProperty, global$5);
509
+ else if (options.wrap && USE_NATIVE)
510
+ resultProperty = wrapConstructor(sourceProperty);
511
+ else if (PROTO && isCallable$2(sourceProperty))
512
+ resultProperty = uncurryThis$5(sourceProperty);
513
+ else
514
+ resultProperty = sourceProperty;
515
+ if (options.sham || sourceProperty && sourceProperty.sham || targetProperty && targetProperty.sham) {
516
+ createNonEnumerableProperty(resultProperty, "sham", true);
517
+ }
518
+ createNonEnumerableProperty(target, key, resultProperty);
519
+ if (PROTO) {
520
+ VIRTUAL_PROTOTYPE = TARGET + "Prototype";
521
+ if (!hasOwn$1(path$3, VIRTUAL_PROTOTYPE)) {
522
+ createNonEnumerableProperty(path$3, VIRTUAL_PROTOTYPE, {});
523
+ }
524
+ createNonEnumerableProperty(path$3[VIRTUAL_PROTOTYPE], key, sourceProperty);
525
+ if (options.real && targetPrototype && (FORCED2 || !targetPrototype[key])) {
526
+ createNonEnumerableProperty(targetPrototype, key, sourceProperty);
527
+ }
528
+ }
529
+ }
530
+ };
531
+ var wellKnownSymbol$1 = wellKnownSymbol$3;
532
+ var TO_STRING_TAG$1 = wellKnownSymbol$1("toStringTag");
533
+ var test = {};
534
+ test[TO_STRING_TAG$1] = "z";
535
+ var toStringTagSupport = String(test) === "[object z]";
536
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
537
+ var isCallable$1 = isCallable$9;
538
+ var classofRaw = classofRaw$2;
539
+ var wellKnownSymbol = wellKnownSymbol$3;
540
+ var TO_STRING_TAG = wellKnownSymbol("toStringTag");
541
+ var $Object = Object;
542
+ var CORRECT_ARGUMENTS = classofRaw(function() {
543
+ return arguments;
544
+ }()) === "Arguments";
545
+ var tryGet = function(it, key) {
546
+ try {
547
+ return it[key];
548
+ } catch (error) {
549
+ }
550
+ };
551
+ var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function(it) {
552
+ var O, tag, result;
553
+ return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) === "Object" && isCallable$1(O.callee) ? "Arguments" : result;
554
+ };
555
+ var classof = classof$1;
556
+ var $String = String;
557
+ var toString$2 = function(argument) {
558
+ if (classof(argument) === "Symbol")
559
+ throw new TypeError("Cannot convert a Symbol value to a string");
560
+ return $String(argument);
561
+ };
562
+ var whitespaces$2 = " \n\v\f\r                 \u2028\u2029\uFEFF";
563
+ var uncurryThis$4 = functionUncurryThis;
564
+ var requireObjectCoercible = requireObjectCoercible$3;
565
+ var toString$1 = toString$2;
566
+ var whitespaces$1 = whitespaces$2;
567
+ var replace = uncurryThis$4("".replace);
568
+ var ltrim = RegExp("^[" + whitespaces$1 + "]+");
569
+ var rtrim = RegExp("(^|[^" + whitespaces$1 + "])[" + whitespaces$1 + "]+$");
570
+ var createMethod$1 = function(TYPE) {
571
+ return function($this) {
572
+ var string = toString$1(requireObjectCoercible($this));
573
+ if (TYPE & 1)
574
+ string = replace(string, ltrim, "");
575
+ if (TYPE & 2)
576
+ string = replace(string, rtrim, "$1");
577
+ return string;
578
+ };
579
+ };
580
+ var stringTrim = {
581
+ // `String.prototype.{ trimLeft, trimStart }` methods
582
+ // https://tc39.es/ecma262/#sec-string.prototype.trimstart
583
+ start: createMethod$1(1),
584
+ // `String.prototype.{ trimRight, trimEnd }` methods
585
+ // https://tc39.es/ecma262/#sec-string.prototype.trimend
586
+ end: createMethod$1(2),
587
+ // `String.prototype.trim` method
588
+ // https://tc39.es/ecma262/#sec-string.prototype.trim
589
+ trim: createMethod$1(3)
590
+ };
591
+ var global$4 = global$d;
592
+ var fails$1 = fails$9;
593
+ var uncurryThis$3 = functionUncurryThis;
594
+ var toString = toString$2;
595
+ var trim = stringTrim.trim;
596
+ var whitespaces = whitespaces$2;
597
+ var $parseInt$1 = global$4.parseInt;
598
+ var Symbol$1 = global$4.Symbol;
599
+ var ITERATOR = Symbol$1 && Symbol$1.iterator;
600
+ var hex = /^[+-]?0x/i;
601
+ var exec = uncurryThis$3(hex.exec);
602
+ var FORCED = $parseInt$1(whitespaces + "08") !== 8 || $parseInt$1(whitespaces + "0x16") !== 22 || ITERATOR && !fails$1(function() {
603
+ $parseInt$1(Object(ITERATOR));
604
+ });
605
+ var numberParseInt = FORCED ? function parseInt2(string, radix) {
606
+ var S = trim(toString(string));
607
+ return $parseInt$1(S, radix >>> 0 || (exec(hex, S) ? 16 : 10));
608
+ } : $parseInt$1;
609
+ var $$3 = _export;
610
+ var $parseInt = numberParseInt;
611
+ $$3({
612
+ global: true,
613
+ forced: parseInt !== $parseInt
614
+ }, {
615
+ parseInt: $parseInt
616
+ });
617
+ var path$2 = path$5;
618
+ var _parseInt$6 = path$2.parseInt;
619
+ var parent$7 = _parseInt$6;
620
+ var _parseInt$5 = parent$7;
621
+ var parent$6 = _parseInt$5;
622
+ var _parseInt$4 = parent$6;
623
+ var parent$5 = _parseInt$4;
624
+ var _parseInt$3 = parent$5;
625
+ var _parseInt$2 = _parseInt$3;
626
+ var _parseInt = _parseInt$2;
627
+ const _parseInt$1 = /* @__PURE__ */ getDefaultExportFromCjs(_parseInt);
628
+ var engineIsBun = typeof Bun == "function" && Bun && typeof Bun.version == "string";
629
+ var uncurryThis$2 = functionUncurryThis;
630
+ var arraySlice$1 = uncurryThis$2([].slice);
631
+ var $TypeError = TypeError;
632
+ var validateArgumentsLength$1 = function(passed, required) {
633
+ if (passed < required)
634
+ throw new $TypeError("Not enough arguments");
635
+ return passed;
636
+ };
637
+ var global$3 = global$d;
638
+ var apply = functionApply;
639
+ var isCallable = isCallable$9;
640
+ var ENGINE_IS_BUN = engineIsBun;
641
+ var USER_AGENT = engineUserAgent;
642
+ var arraySlice = arraySlice$1;
643
+ var validateArgumentsLength = validateArgumentsLength$1;
644
+ var Function$1 = global$3.Function;
645
+ var WRAP = /MSIE .\./.test(USER_AGENT) || ENGINE_IS_BUN && function() {
646
+ var version2 = global$3.Bun.version.split(".");
647
+ return version2.length < 3 || version2[0] === "0" && (version2[1] < 3 || version2[1] === "3" && version2[2] === "0");
648
+ }();
649
+ var schedulersFix$2 = function(scheduler, hasTimeArg) {
650
+ var firstParamIndex = hasTimeArg ? 2 : 1;
651
+ return WRAP ? function(handler, timeout) {
652
+ var boundArgs = validateArgumentsLength(arguments.length, 1) > firstParamIndex;
653
+ var fn = isCallable(handler) ? handler : Function$1(handler);
654
+ var params = boundArgs ? arraySlice(arguments, firstParamIndex) : [];
655
+ var callback = boundArgs ? function() {
656
+ apply(fn, this, params);
657
+ } : fn;
658
+ return hasTimeArg ? scheduler(callback, timeout) : scheduler(callback);
659
+ } : scheduler;
660
+ };
661
+ var $$2 = _export;
662
+ var global$2 = global$d;
663
+ var schedulersFix$1 = schedulersFix$2;
664
+ var setInterval = schedulersFix$1(global$2.setInterval, true);
665
+ $$2({
666
+ global: true,
667
+ bind: true,
668
+ forced: global$2.setInterval !== setInterval
669
+ }, {
670
+ setInterval
671
+ });
672
+ var $$1 = _export;
673
+ var global$1 = global$d;
674
+ var schedulersFix = schedulersFix$2;
675
+ var setTimeout$5 = schedulersFix(global$1.setTimeout, true);
676
+ $$1({
677
+ global: true,
678
+ bind: true,
679
+ forced: global$1.setTimeout !== setTimeout$5
680
+ }, {
681
+ setTimeout: setTimeout$5
682
+ });
683
+ var path$1 = path$5;
684
+ var setTimeout$4 = path$1.setTimeout;
685
+ var parent$4 = setTimeout$4;
686
+ var setTimeout$3 = parent$4;
687
+ var parent$3 = setTimeout$3;
688
+ var setTimeout$2 = parent$3;
689
+ var setTimeout$1 = setTimeout$2;
690
+ var setTimeout = setTimeout$1;
691
+ const _setTimeout = /* @__PURE__ */ getDefaultExportFromCjs(setTimeout);
692
+ var ceil = Math.ceil;
693
+ var floor = Math.floor;
694
+ var mathTrunc = Math.trunc || function trunc(x) {
695
+ var n = +x;
696
+ return (n > 0 ? floor : ceil)(n);
697
+ };
698
+ var trunc2 = mathTrunc;
699
+ var toIntegerOrInfinity$2 = function(argument) {
700
+ var number = +argument;
701
+ return number !== number || number === 0 ? 0 : trunc2(number);
702
+ };
703
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
704
+ var max = Math.max;
705
+ var min$1 = Math.min;
706
+ var toAbsoluteIndex$1 = function(index, length) {
707
+ var integer = toIntegerOrInfinity$1(index);
708
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
709
+ };
710
+ var toIntegerOrInfinity = toIntegerOrInfinity$2;
711
+ var min = Math.min;
712
+ var toLength$1 = function(argument) {
713
+ return argument > 0 ? min(toIntegerOrInfinity(argument), 9007199254740991) : 0;
714
+ };
715
+ var toLength = toLength$1;
716
+ var lengthOfArrayLike$1 = function(obj) {
717
+ return toLength(obj.length);
718
+ };
719
+ var toIndexedObject$1 = toIndexedObject$3;
720
+ var toAbsoluteIndex = toAbsoluteIndex$1;
721
+ var lengthOfArrayLike = lengthOfArrayLike$1;
722
+ var createMethod = function(IS_INCLUDES) {
723
+ return function($this, el, fromIndex) {
724
+ var O = toIndexedObject$1($this);
725
+ var length = lengthOfArrayLike(O);
726
+ var index = toAbsoluteIndex(fromIndex, length);
727
+ var value;
728
+ if (IS_INCLUDES && el !== el)
729
+ while (length > index) {
730
+ value = O[index++];
731
+ if (value !== value)
732
+ return true;
733
+ }
734
+ else
735
+ for (; length > index; index++) {
736
+ if ((IS_INCLUDES || index in O) && O[index] === el)
737
+ return IS_INCLUDES || index || 0;
738
+ }
739
+ return !IS_INCLUDES && -1;
740
+ };
741
+ };
742
+ var arrayIncludes = {
743
+ // `Array.prototype.includes` method
744
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
745
+ includes: createMethod(true),
746
+ // `Array.prototype.indexOf` method
747
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
748
+ indexOf: createMethod(false)
749
+ };
750
+ var hiddenKeys$1 = {};
751
+ var uncurryThis$1 = functionUncurryThis;
752
+ var hasOwn2 = hasOwnProperty_1;
753
+ var toIndexedObject = toIndexedObject$3;
754
+ var indexOf = arrayIncludes.indexOf;
755
+ var hiddenKeys = hiddenKeys$1;
756
+ var push = uncurryThis$1([].push);
757
+ var objectKeysInternal = function(object, names) {
758
+ var O = toIndexedObject(object);
759
+ var i = 0;
760
+ var result = [];
761
+ var key;
762
+ for (key in O)
763
+ !hasOwn2(hiddenKeys, key) && hasOwn2(O, key) && push(result, key);
764
+ while (names.length > i)
765
+ if (hasOwn2(O, key = names[i++])) {
766
+ ~indexOf(result, key) || push(result, key);
767
+ }
768
+ return result;
769
+ };
770
+ var enumBugKeys$1 = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"];
771
+ var internalObjectKeys = objectKeysInternal;
772
+ var enumBugKeys = enumBugKeys$1;
773
+ var objectKeys$1 = Object.keys || function keys(O) {
774
+ return internalObjectKeys(O, enumBugKeys);
775
+ };
776
+ var objectGetOwnPropertySymbols = {};
777
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
778
+ var DESCRIPTORS = descriptors;
779
+ var uncurryThis = functionUncurryThis;
780
+ var call = functionCall;
781
+ var fails = fails$9;
782
+ var objectKeys = objectKeys$1;
783
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
784
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
785
+ var toObject = toObject$2;
786
+ var IndexedObject = indexedObject;
787
+ var $assign = Object.assign;
788
+ var defineProperty3 = Object.defineProperty;
789
+ var concat = uncurryThis([].concat);
790
+ var objectAssign = !$assign || fails(function() {
791
+ if (DESCRIPTORS && $assign({
792
+ b: 1
793
+ }, $assign(defineProperty3({}, "a", {
794
+ enumerable: true,
795
+ get: function() {
796
+ defineProperty3(this, "b", {
797
+ value: 3,
798
+ enumerable: false
799
+ });
800
+ }
801
+ }), {
802
+ b: 2
803
+ })).b !== 1)
804
+ return true;
805
+ var A = {};
806
+ var B = {};
807
+ var symbol = Symbol("assign detection");
808
+ var alphabet = "abcdefghijklmnopqrst";
809
+ A[symbol] = 7;
810
+ alphabet.split("").forEach(function(chr) {
811
+ B[chr] = chr;
812
+ });
813
+ return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join("") !== alphabet;
814
+ }) ? function assign(target, source) {
815
+ var T = toObject(target);
816
+ var argumentsLength = arguments.length;
817
+ var index = 1;
818
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
819
+ var propertyIsEnumerable2 = propertyIsEnumerableModule.f;
820
+ while (argumentsLength > index) {
821
+ var S = IndexedObject(arguments[index++]);
822
+ var keys2 = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
823
+ var length = keys2.length;
824
+ var j = 0;
825
+ var key;
826
+ while (length > j) {
827
+ key = keys2[j++];
828
+ if (!DESCRIPTORS || call(propertyIsEnumerable2, S, key))
829
+ T[key] = S[key];
830
+ }
831
+ }
832
+ return T;
833
+ } : $assign;
834
+ var $ = _export;
835
+ var assign$6 = objectAssign;
836
+ $({
837
+ target: "Object",
838
+ stat: true,
839
+ arity: 2,
840
+ forced: Object.assign !== assign$6
841
+ }, {
842
+ assign: assign$6
843
+ });
844
+ var path = path$5;
845
+ var assign$5 = path.Object.assign;
846
+ var parent$2 = assign$5;
847
+ var assign$4 = parent$2;
848
+ var parent$1 = assign$4;
849
+ var assign$3 = parent$1;
850
+ var parent = assign$3;
851
+ var assign$2 = parent;
852
+ var assign$1 = assign$2;
853
+ var assign2 = assign$1;
854
+ const _Object$assign = /* @__PURE__ */ getDefaultExportFromCjs(assign2);
855
+ var __sfc_main = {};
7
856
  __sfc_main.props = {
8
857
  visible: [Boolean, String]
9
858
  };
10
- __sfc_main.setup = (__props, __ctx) => {
11
- const emits = __ctx.emit;
12
- const props = __props;
13
- const reference = vueDemi.ref();
14
- const popperRef = vueDemi.ref();
15
- vueDemi.watch(() => props.visible, (newValue) => {
859
+ __sfc_main.setup = function(__props, __ctx) {
860
+ var emits = __ctx.emit;
861
+ var props = __props;
862
+ var reference = vueDemi.ref();
863
+ var popperRef = vueDemi.ref();
864
+ vueDemi.watch(function() {
865
+ return props.visible;
866
+ }, function(newValue) {
16
867
  if (newValue) {
17
868
  window.addEventListener("mousedown", docClick);
18
869
  } else {
@@ -28,10 +879,10 @@ __sfc_main.setup = (__props, __ctx) => {
28
879
  function showPopper() {
29
880
  emits("update:visible", true);
30
881
  }
31
- vueDemi.onUnmounted(() => {
882
+ vueDemi.onUnmounted(function() {
32
883
  emits("update:visible", false);
33
884
  });
34
- return Object.assign({
885
+ return _Object$assign({
35
886
  reference,
36
887
  popperRef,
37
888
  showPopper
@@ -39,13 +890,13 @@ __sfc_main.setup = (__props, __ctx) => {
39
890
  showPopper
40
891
  });
41
892
  };
42
- const _sfc_main$2 = __sfc_main;
893
+ var _sfc_main$2 = __sfc_main;
43
894
  var _sfc_render$2 = function render() {
44
895
  var _vm = this, _c = _vm._self._c;
45
896
  _vm._self._setupProxy;
46
897
  return _c("div", {
47
898
  staticClass: "nf-volume-tool",
48
- class: _vm.visible ? "nf-tool-show" : "nf-tool-hide",
899
+ "class": _vm.visible ? "nf-tool-show" : "nf-tool-hide",
49
900
  on: {
50
901
  "click": _vm.showPopper
51
902
  }
@@ -69,22 +920,22 @@ var _sfc_render$2 = function render() {
69
920
  var _sfc_staticRenderFns$2 = [];
70
921
  var __component__$2 = /* @__PURE__ */ vue2RuntimeHelpers.normalizeComponent(_sfc_main$2, _sfc_render$2, _sfc_staticRenderFns$2, false, null, null, null, null);
71
922
  const volumeTool = __component__$2.exports;
72
- const _sfc_main$1 = {
923
+ var _sfc_main$1 = {
73
924
  name: "more-btn",
74
925
  components: {},
75
- data() {
926
+ data: function data2() {
76
927
  return {
77
928
  multipleArray: ["1.0", "1.25", "1.5", "1.75", "2.0"],
78
929
  speed: ""
79
930
  };
80
931
  },
81
- mounted() {
932
+ mounted: function mounted() {
82
933
  },
83
934
  methods: {
84
- handleDown() {
935
+ handleDown: function handleDown() {
85
936
  this.$emit("down");
86
937
  },
87
- handleSpeed(speed) {
938
+ handleSpeed: function handleSpeed(speed) {
88
939
  this.speed = speed;
89
940
  this.$emit("speed", speed);
90
941
  }
@@ -112,9 +963,9 @@ var _sfc_render$1 = function render2() {
112
963
  return _c("div", {
113
964
  key: index,
114
965
  staticClass: "btn-item",
115
- class: _vm.speed === item ? "active" : "",
966
+ "class": _vm.speed === item ? "active" : "",
116
967
  on: {
117
- "click": function($event) {
968
+ "click": function click($event) {
118
969
  return _vm.handleSpeed(item);
119
970
  }
120
971
  }
@@ -143,7 +994,7 @@ var _sfc_render$1 = function render2() {
143
994
  var _sfc_staticRenderFns$1 = [];
144
995
  var __component__$1 = /* @__PURE__ */ vue2RuntimeHelpers.normalizeComponent(_sfc_main$1, _sfc_render$1, _sfc_staticRenderFns$1, false, null, null, null, null);
145
996
  const moreBtn = __component__$1.exports;
146
- const _sfc_main = {
997
+ var _sfc_main = {
147
998
  name: "nf-audio",
148
999
  components: {
149
1000
  volumeTool,
@@ -152,22 +1003,22 @@ const _sfc_main = {
152
1003
  props: {
153
1004
  audioSrc: {
154
1005
  type: String,
155
- default: ""
1006
+ "default": ""
156
1007
  },
157
1008
  backSecond: {
158
1009
  type: Number,
159
- default: 3
1010
+ "default": 3
160
1011
  },
161
1012
  forwardSecond: {
162
1013
  type: Number,
163
- default: 10
1014
+ "default": 10
164
1015
  },
165
1016
  startTime: {
166
1017
  type: Number,
167
- default: 0
1018
+ "default": 0
168
1019
  }
169
1020
  },
170
- data() {
1021
+ data: function data3() {
171
1022
  return {
172
1023
  duration: "00:00",
173
1024
  currentDuration: "00:00",
@@ -180,24 +1031,24 @@ const _sfc_main = {
180
1031
  speed: 1
181
1032
  };
182
1033
  },
183
- mounted() {
1034
+ mounted: function mounted2() {
184
1035
  this.audio = this.$refs.audio;
185
1036
  },
186
1037
  methods: {
187
1038
  //后退
188
- handleBack() {
1039
+ handleBack: function handleBack() {
189
1040
  if (this.audio.currentTime > this.backSecond) {
190
1041
  this.audio.currentTime = this.audio.currentTime - this.backSecond;
191
1042
  }
192
1043
  },
193
1044
  //前进
194
- handleForward() {
1045
+ handleForward: function handleForward() {
195
1046
  if (this.audio.duration - this.audio.currentTime > this.forwardSecond) {
196
1047
  this.audio.currentTime = this.audio.currentTime + 10;
197
1048
  }
198
1049
  },
199
1050
  //暂停或播放
200
- handlePauseOrPlay() {
1051
+ handlePauseOrPlay: function handlePauseOrPlay() {
201
1052
  if (this.audio.readyState >= 2) {
202
1053
  this.audio.paused ? this.audio.play() : this.audio.pause();
203
1054
  this.audio.playbackRate = this.speed;
@@ -208,36 +1059,36 @@ const _sfc_main = {
208
1059
  }
209
1060
  },
210
1061
  //视频在可以播放时触发
211
- getDuration() {
1062
+ getDuration: function getDuration() {
212
1063
  this.duration = this.timeFormat(this.$refs.audio.duration);
213
1064
  this.audio.volume = this.volume;
214
1065
  },
215
1066
  //将单位为秒的的时间转换成mm:ss的形式
216
- timeFormat(number) {
217
- let minute = parseInt(number / 60);
218
- let second = parseInt(number % 60);
1067
+ timeFormat: function timeFormat(number) {
1068
+ var minute = _parseInt$1(number / 60);
1069
+ var second = _parseInt$1(number % 60);
219
1070
  minute = minute >= 10 ? minute : "0" + minute;
220
1071
  second = second >= 10 ? second : "0" + second;
221
1072
  return minute + ":" + second;
222
1073
  },
223
1074
  //进度条发生变化时触发
224
- updateTime() {
1075
+ updateTime: function updateTime() {
225
1076
  if (!this.$refs.progress)
226
1077
  return;
227
1078
  this.currentDuration = this.timeFormat(this.audio.currentTime);
228
1079
  if (!this.audio.paused) {
229
- let MoveX = this.$refs.progress.clientWidth * (this.audio.currentTime / this.audio.duration);
1080
+ var MoveX = this.$refs.progress.clientWidth * (this.audio.currentTime / this.audio.duration);
230
1081
  this.$refs.currentProgress.style.width = MoveX + "px";
231
1082
  this.$refs.circle.style.left = MoveX - this.$refs.circle.clientWidth / 2 + "px";
232
1083
  this.paused = false;
233
1084
  }
234
1085
  },
235
- handleAudioEnded() {
1086
+ handleAudioEnded: function handleAudioEnded() {
236
1087
  console.log("音频播放完毕!");
237
1088
  this.paused = true;
238
1089
  },
239
1090
  //点击进度条更新进度
240
- clickProgress(e) {
1091
+ clickProgress: function clickProgress(e) {
241
1092
  if (this.duration === "00:00") {
242
1093
  elementUi.Message.warning("音频还未加载完成");
243
1094
  return false;
@@ -247,73 +1098,75 @@ const _sfc_main = {
247
1098
  }
248
1099
  },
249
1100
  //更新进度
250
- updateProgress(MoveX) {
251
- let clickProgress = MoveX / this.$refs.progress.clientWidth;
252
- this.audio.currentTime = this.audio.duration * clickProgress;
1101
+ updateProgress: function updateProgress(MoveX) {
1102
+ var clickProgress2 = MoveX / this.$refs.progress.clientWidth;
1103
+ this.audio.currentTime = this.audio.duration * clickProgress2;
253
1104
  this.$refs.currentProgress.style.width = MoveX + "px";
254
1105
  this.$refs.circle.style.left = MoveX - this.$refs.circle.clientWidth / 2 + "px";
255
1106
  },
256
1107
  //鼠标弹起
257
- handleMouseup() {
1108
+ handleMouseup: function handleMouseup() {
1109
+ var _this = this;
258
1110
  if (this.duration === "00:00") {
259
1111
  elementUi.Message.warning("音频还未加载完成");
260
1112
  return false;
261
1113
  }
262
- const timer = setTimeout(() => {
263
- this.audio.play();
264
- this.paused = false;
1114
+ var timer = _setTimeout(function() {
1115
+ _this.audio.play();
1116
+ _this.paused = false;
265
1117
  clearTimeout(timer);
266
1118
  }, 200);
267
- this.$once("hook:beforeDestroy", () => {
1119
+ this.$once("hook:beforeDestroy", function() {
268
1120
  clearTimeout(timer);
269
1121
  });
270
1122
  },
271
1123
  //调整进度
272
- handleMousedown() {
1124
+ handleMousedown: function handleMousedown() {
1125
+ var _this2 = this;
273
1126
  this.audio.pause();
274
1127
  this.paused = true;
275
- let progress = this.$refs.progress;
276
- let moveMin = progress.offsetParent.offsetLeft + progress.offsetLeft;
277
- let moveMax = progress.offsetParent.offsetLeft + progress.offsetLeft + progress.clientWidth;
278
- let circleWidth = this.$refs.circle.clientWidth / 2;
279
- let moveX = (e) => {
1128
+ var progress = this.$refs.progress;
1129
+ var moveMin = progress.offsetParent.offsetLeft + progress.offsetLeft;
1130
+ var moveMax = progress.offsetParent.offsetLeft + progress.offsetLeft + progress.clientWidth;
1131
+ var circleWidth = this.$refs.circle.clientWidth / 2;
1132
+ var moveX = function moveX2(e) {
280
1133
  if (e.pageX >= moveMax) {
281
1134
  return;
282
1135
  } else if (e.pageX <= moveMin) {
283
1136
  return;
284
1137
  }
285
- this.$refs.circle.style.left = e.pageX - moveMin - circleWidth + "px";
286
- this.updateProgress(e.pageX - moveMin);
1138
+ _this2.$refs.circle.style.left = e.pageX - moveMin - circleWidth + "px";
1139
+ _this2.updateProgress(e.pageX - moveMin);
287
1140
  };
288
1141
  document.addEventListener("mousemove", moveX);
289
- document.addEventListener("mouseup", () => {
1142
+ document.addEventListener("mouseup", function() {
290
1143
  document.removeEventListener("mousemove", moveX);
291
1144
  });
292
1145
  },
293
- rangeVolume(val) {
1146
+ rangeVolume: function rangeVolume(val) {
294
1147
  console.log(val);
295
1148
  },
296
1149
  /** 设置倍速播放 */
297
- changeSpeed(command) {
298
- const audioPlayer = this.$refs.audio;
1150
+ changeSpeed: function changeSpeed(command) {
1151
+ var audioPlayer = this.$refs.audio;
299
1152
  if (audioPlayer) {
300
1153
  audioPlayer.playbackRate = command;
301
1154
  }
302
1155
  this.speed = command;
303
1156
  },
304
- downRecord() {
1157
+ downRecord: function downRecord() {
305
1158
  this.$emit("downloadCallback");
306
1159
  },
307
- calcMoveX() {
1160
+ calcMoveX: function calcMoveX() {
308
1161
  if (!this.audio.paused) {
309
- let MoveX = this.$refs.progress.clientWidth * (this.audio.currentTime / this.audio.duration);
1162
+ var MoveX = this.$refs.progress.clientWidth * (this.audio.currentTime / this.audio.duration);
310
1163
  this.$refs.currentProgress.style.width = MoveX + "px";
311
1164
  this.$refs.circle.style.left = MoveX - this.$refs.circle.clientWidth / 2 + "px";
312
1165
  }
313
1166
  },
314
- jumpToTime() {
1167
+ jumpToTime: function jumpToTime() {
315
1168
  this.audio.pause();
316
- const formatStartT = this.timeFormat(this.startTime);
1169
+ var formatStartT = this.timeFormat(this.startTime);
317
1170
  if (this.duration === "00:00") {
318
1171
  elementUi.Message.warning("音频还未加载完成");
319
1172
  return false;
@@ -339,7 +1192,7 @@ const _sfc_main = {
339
1192
  }
340
1193
  },
341
1194
  watch: {
342
- volumeValue(val) {
1195
+ volumeValue: function volumeValue(val) {
343
1196
  this.volume = val / 100;
344
1197
  this.audio.volume = val / 100;
345
1198
  }
@@ -426,13 +1279,13 @@ var _sfc_render = function render3() {
426
1279
  "visible": _vm.volumeVisible
427
1280
  },
428
1281
  on: {
429
- "update:visible": function($event) {
1282
+ "update:visible": function updateVisible($event) {
430
1283
  _vm.volumeVisible = $event;
431
1284
  }
432
1285
  },
433
1286
  scopedSlots: _vm._u([{
434
1287
  key: "reference",
435
- fn: function() {
1288
+ fn: function fn() {
436
1289
  return [_vm.volume == 0 ? _c("i", {
437
1290
  staticClass: "iconfont icon-yinliang_guanbi volume-mute"
438
1291
  }) : _c("i", {
@@ -442,7 +1295,7 @@ var _sfc_render = function render3() {
442
1295
  proxy: true
443
1296
  }])
444
1297
  }, [_c("el-slider", {
445
- class: _vm.volumeValue === 0 ? "volume-mute-slider" : "volume-phonic",
1298
+ "class": _vm.volumeValue === 0 ? "volume-mute-slider" : "volume-phonic",
446
1299
  attrs: {
447
1300
  "vertical": "",
448
1301
  "min": 0,
@@ -455,7 +1308,7 @@ var _sfc_render = function render3() {
455
1308
  },
456
1309
  model: {
457
1310
  value: _vm.volumeValue,
458
- callback: function($$v) {
1311
+ callback: function callback($$v) {
459
1312
  _vm.volumeValue = $$v;
460
1313
  },
461
1314
  expression: "volumeValue"
@@ -464,7 +1317,7 @@ var _sfc_render = function render3() {
464
1317
  staticClass: "option"
465
1318
  }, [_c("moreBtn", {
466
1319
  on: {
467
- "down": function($event) {
1320
+ "down": function down($event) {
468
1321
  return _vm.downRecord();
469
1322
  },
470
1323
  "speed": _vm.changeSpeed
@@ -474,7 +1327,7 @@ var _sfc_render = function render3() {
474
1327
  var _sfc_staticRenderFns = [];
475
1328
  var __component__ = /* @__PURE__ */ vue2RuntimeHelpers.normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
476
1329
  const NfAudio = __component__.exports;
477
- NfAudio.install = (app) => {
1330
+ NfAudio.install = function(app) {
478
1331
  app.component("nf-audio", NfAudio);
479
1332
  };
480
1333
  exports.default = NfAudio;