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