@94ai/nf-text-overflow 3.1.37 → 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.
@@ -1,1416 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vueDemi = require("vue-demi");
4
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
5
- function getDefaultExportFromCjs(x) {
6
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
7
- }
8
- var fails$c = function(exec2) {
9
- try {
10
- return !!exec2();
11
- } catch (error) {
12
- return true;
13
- }
14
- };
15
- var fails$b = fails$c;
16
- var functionBindNative = !fails$b(function() {
17
- var test2 = (function() {
18
- }).bind();
19
- return typeof test2 != "function" || test2.hasOwnProperty("prototype");
20
- });
21
- var NATIVE_BIND$3 = functionBindNative;
22
- var FunctionPrototype$2 = Function.prototype;
23
- var call$6 = FunctionPrototype$2.call;
24
- var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$6, call$6);
25
- var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function(fn) {
26
- return function() {
27
- return call$6.apply(fn, arguments);
28
- };
29
- };
30
- var uncurryThis$c = functionUncurryThis;
31
- var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
32
- var check = function(it) {
33
- return it && it.Math == Math && it;
34
- };
35
- var global$c = (
36
- // eslint-disable-next-line es/no-global-this -- safe
37
- check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
38
- check(typeof self == "object" && self) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback
39
- function() {
40
- return this;
41
- }() || commonjsGlobal || Function("return this")()
42
- );
43
- var NATIVE_BIND$2 = functionBindNative;
44
- var FunctionPrototype$1 = Function.prototype;
45
- var apply$1 = FunctionPrototype$1.apply;
46
- var call$5 = FunctionPrototype$1.call;
47
- var functionApply = typeof Reflect == "object" && Reflect.apply || (NATIVE_BIND$2 ? call$5.bind(apply$1) : function() {
48
- return call$5.apply(apply$1, arguments);
49
- });
50
- var uncurryThis$b = functionUncurryThis;
51
- var toString$2 = uncurryThis$b({}.toString);
52
- var stringSlice = uncurryThis$b("".slice);
53
- var classofRaw$2 = function(it) {
54
- return stringSlice(toString$2(it), 8, -1);
55
- };
56
- var classofRaw$1 = classofRaw$2;
57
- var uncurryThis$a = functionUncurryThis;
58
- var functionUncurryThisClause = function(fn) {
59
- if (classofRaw$1(fn) === "Function")
60
- return uncurryThis$a(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$d = $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$a = fails$c;
77
- var descriptors = !fails$a(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$4 = function(bitmap, value) {
100
- return {
101
- enumerable: !(bitmap & 1),
102
- configurable: !(bitmap & 2),
103
- writable: !(bitmap & 4),
104
- value
105
- };
106
- };
107
- var uncurryThis$9 = functionUncurryThis;
108
- var fails$9 = fails$c;
109
- var classof$6 = classofRaw$2;
110
- var $Object$4 = Object;
111
- var split = uncurryThis$9("".split);
112
- var indexedObject = fails$9(function() {
113
- return !$Object$4("z").propertyIsEnumerable(0);
114
- }) ? function(it) {
115
- return classof$6(it) == "String" ? split(it, "") : $Object$4(it);
116
- } : $Object$4;
117
- var isNullOrUndefined$2 = function(it) {
118
- return it === null || it === void 0;
119
- };
120
- var isNullOrUndefined$1 = isNullOrUndefined$2;
121
- var $TypeError$5 = TypeError;
122
- var requireObjectCoercible$2 = function(it) {
123
- if (isNullOrUndefined$1(it))
124
- throw $TypeError$5("Can't call method on " + it);
125
- return it;
126
- };
127
- var IndexedObject$1 = indexedObject;
128
- var requireObjectCoercible$1 = requireObjectCoercible$2;
129
- var toIndexedObject$6 = function(it) {
130
- return IndexedObject$1(requireObjectCoercible$1(it));
131
- };
132
- var isCallable$c = isCallable$d;
133
- var $documentAll = documentAll_1;
134
- var documentAll = $documentAll.all;
135
- var isObject$8 = $documentAll.IS_HTMLDDA ? function(it) {
136
- return typeof it == "object" ? it !== null : isCallable$c(it) || it === documentAll;
137
- } : function(it) {
138
- return typeof it == "object" ? it !== null : isCallable$c(it);
139
- };
140
- var path$3 = {};
141
- var path$2 = path$3;
142
- var global$b = global$c;
143
- var isCallable$b = isCallable$d;
144
- var aFunction = function(variable) {
145
- return isCallable$b(variable) ? variable : void 0;
146
- };
147
- var getBuiltIn$3 = function(namespace, method2) {
148
- return arguments.length < 2 ? aFunction(path$2[namespace]) || aFunction(global$b[namespace]) : path$2[namespace] && path$2[namespace][method2] || global$b[namespace] && global$b[namespace][method2];
149
- };
150
- var engineUserAgent = typeof navigator != "undefined" && String(navigator.userAgent) || "";
151
- var global$a = global$c;
152
- var userAgent = engineUserAgent;
153
- var process = global$a.process;
154
- var Deno = global$a.Deno;
155
- var versions = process && process.versions || Deno && Deno.version;
156
- var v8 = versions && versions.v8;
157
- var match, version;
158
- if (v8) {
159
- match = v8.split(".");
160
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
161
- }
162
- if (!version && userAgent) {
163
- match = userAgent.match(/Edge\/(\d+)/);
164
- if (!match || match[1] >= 74) {
165
- match = userAgent.match(/Chrome\/(\d+)/);
166
- if (match)
167
- version = +match[1];
168
- }
169
- }
170
- var engineV8Version = version;
171
- var V8_VERSION$1 = engineV8Version;
172
- var fails$8 = fails$c;
173
- var global$9 = global$c;
174
- var $String$2 = global$9.String;
175
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function() {
176
- var symbol = Symbol();
177
- return !$String$2(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
178
- !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
179
- });
180
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
181
- var useSymbolAsUid = NATIVE_SYMBOL$1 && !Symbol.sham && typeof Symbol.iterator == "symbol";
182
- var getBuiltIn$2 = getBuiltIn$3;
183
- var isCallable$a = isCallable$d;
184
- var isPrototypeOf$2 = objectIsPrototypeOf;
185
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
186
- var $Object$3 = Object;
187
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function(it) {
188
- return typeof it == "symbol";
189
- } : function(it) {
190
- var $Symbol = getBuiltIn$2("Symbol");
191
- return isCallable$a($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
192
- };
193
- var $String$1 = String;
194
- var tryToString$1 = function(argument) {
195
- try {
196
- return $String$1(argument);
197
- } catch (error) {
198
- return "Object";
199
- }
200
- };
201
- var isCallable$9 = isCallable$d;
202
- var tryToString = tryToString$1;
203
- var $TypeError$4 = TypeError;
204
- var aCallable$2 = function(argument) {
205
- if (isCallable$9(argument))
206
- return argument;
207
- throw $TypeError$4(tryToString(argument) + " is not a function");
208
- };
209
- var aCallable$1 = aCallable$2;
210
- var isNullOrUndefined = isNullOrUndefined$2;
211
- var getMethod$1 = function(V, P) {
212
- var func = V[P];
213
- return isNullOrUndefined(func) ? void 0 : aCallable$1(func);
214
- };
215
- var call$3 = functionCall;
216
- var isCallable$8 = isCallable$d;
217
- var isObject$7 = isObject$8;
218
- var $TypeError$3 = TypeError;
219
- var ordinaryToPrimitive$1 = function(input, pref) {
220
- var fn, val;
221
- if (pref === "string" && isCallable$8(fn = input.toString) && !isObject$7(val = call$3(fn, input)))
222
- return val;
223
- if (isCallable$8(fn = input.valueOf) && !isObject$7(val = call$3(fn, input)))
224
- return val;
225
- if (pref !== "string" && isCallable$8(fn = input.toString) && !isObject$7(val = call$3(fn, input)))
226
- return val;
227
- throw $TypeError$3("Can't convert object to primitive value");
228
- };
229
- var shared$3 = { exports: {} };
230
- var global$8 = global$c;
231
- var defineProperty$1 = Object.defineProperty;
232
- var defineGlobalProperty$1 = function(key, value) {
233
- try {
234
- defineProperty$1(global$8, key, {
235
- value,
236
- configurable: true,
237
- writable: true
238
- });
239
- } catch (error) {
240
- global$8[key] = value;
241
- }
242
- return value;
243
- };
244
- var global$7 = global$c;
245
- var defineGlobalProperty = defineGlobalProperty$1;
246
- var SHARED = "__core-js_shared__";
247
- var store$3 = global$7[SHARED] || defineGlobalProperty(SHARED, {});
248
- var sharedStore = store$3;
249
- var store$2 = sharedStore;
250
- (shared$3.exports = function(key, value) {
251
- return store$2[key] || (store$2[key] = value !== void 0 ? value : {});
252
- })("versions", []).push({
253
- version: "3.31.1",
254
- mode: "pure",
255
- copyright: "© 2014-2023 Denis Pushkarev (zloirock.ru)",
256
- license: "https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",
257
- source: "https://github.com/zloirock/core-js"
258
- });
259
- var sharedExports = shared$3.exports;
260
- var requireObjectCoercible = requireObjectCoercible$2;
261
- var $Object$2 = Object;
262
- var toObject$3 = function(argument) {
263
- return $Object$2(requireObjectCoercible(argument));
264
- };
265
- var uncurryThis$8 = functionUncurryThis;
266
- var toObject$2 = toObject$3;
267
- var hasOwnProperty = uncurryThis$8({}.hasOwnProperty);
268
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
269
- return hasOwnProperty(toObject$2(it), key);
270
- };
271
- var uncurryThis$7 = functionUncurryThis;
272
- var id = 0;
273
- var postfix = Math.random();
274
- var toString$1 = uncurryThis$7(1 .toString);
275
- var uid$2 = function(key) {
276
- return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString$1(++id + postfix, 36);
277
- };
278
- var global$6 = global$c;
279
- var shared$2 = sharedExports;
280
- var hasOwn$8 = hasOwnProperty_1;
281
- var uid$1 = uid$2;
282
- var NATIVE_SYMBOL = symbolConstructorDetection;
283
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
284
- var Symbol$1 = global$6.Symbol;
285
- var WellKnownSymbolsStore = shared$2("wks");
286
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1["for"] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
287
- var wellKnownSymbol$a = function(name) {
288
- if (!hasOwn$8(WellKnownSymbolsStore, name)) {
289
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name) ? Symbol$1[name] : createWellKnownSymbol("Symbol." + name);
290
- }
291
- return WellKnownSymbolsStore[name];
292
- };
293
- var call$2 = functionCall;
294
- var isObject$6 = isObject$8;
295
- var isSymbol$1 = isSymbol$2;
296
- var getMethod = getMethod$1;
297
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
298
- var wellKnownSymbol$9 = wellKnownSymbol$a;
299
- var $TypeError$2 = TypeError;
300
- var TO_PRIMITIVE = wellKnownSymbol$9("toPrimitive");
301
- var toPrimitive$1 = function(input, pref) {
302
- if (!isObject$6(input) || isSymbol$1(input))
303
- return input;
304
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
305
- var result;
306
- if (exoticToPrim) {
307
- if (pref === void 0)
308
- pref = "default";
309
- result = call$2(exoticToPrim, input, pref);
310
- if (!isObject$6(result) || isSymbol$1(result))
311
- return result;
312
- throw $TypeError$2("Can't convert object to primitive value");
313
- }
314
- if (pref === void 0)
315
- pref = "number";
316
- return ordinaryToPrimitive(input, pref);
317
- };
318
- var toPrimitive = toPrimitive$1;
319
- var isSymbol = isSymbol$2;
320
- var toPropertyKey$3 = function(argument) {
321
- var key = toPrimitive(argument, "string");
322
- return isSymbol(key) ? key : key + "";
323
- };
324
- var global$5 = global$c;
325
- var isObject$5 = isObject$8;
326
- var document$1 = global$5.document;
327
- var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
328
- var documentCreateElement$1 = function(it) {
329
- return EXISTS$1 ? document$1.createElement(it) : {};
330
- };
331
- var DESCRIPTORS$6 = descriptors;
332
- var fails$7 = fails$c;
333
- var createElement = documentCreateElement$1;
334
- var ie8DomDefine = !DESCRIPTORS$6 && !fails$7(function() {
335
- return Object.defineProperty(createElement("div"), "a", {
336
- get: function() {
337
- return 7;
338
- }
339
- }).a != 7;
340
- });
341
- var DESCRIPTORS$5 = descriptors;
342
- var call$1 = functionCall;
343
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
344
- var createPropertyDescriptor$3 = createPropertyDescriptor$4;
345
- var toIndexedObject$5 = toIndexedObject$6;
346
- var toPropertyKey$2 = toPropertyKey$3;
347
- var hasOwn$7 = hasOwnProperty_1;
348
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
349
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
350
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
351
- O = toIndexedObject$5(O);
352
- P = toPropertyKey$2(P);
353
- if (IE8_DOM_DEFINE$1)
354
- try {
355
- return $getOwnPropertyDescriptor$1(O, P);
356
- } catch (error) {
357
- }
358
- if (hasOwn$7(O, P))
359
- return createPropertyDescriptor$3(!call$1(propertyIsEnumerableModule.f, O, P), O[P]);
360
- };
361
- var fails$6 = fails$c;
362
- var isCallable$7 = isCallable$d;
363
- var replacement = /#|\.prototype\./;
364
- var isForced$1 = function(feature, detection) {
365
- var value = data[normalize(feature)];
366
- return value == POLYFILL ? true : value == NATIVE ? false : isCallable$7(detection) ? fails$6(detection) : !!detection;
367
- };
368
- var normalize = isForced$1.normalize = function(string) {
369
- return String(string).replace(replacement, ".").toLowerCase();
370
- };
371
- var data = isForced$1.data = {};
372
- var NATIVE = isForced$1.NATIVE = "N";
373
- var POLYFILL = isForced$1.POLYFILL = "P";
374
- var isForced_1 = isForced$1;
375
- var uncurryThis$6 = functionUncurryThisClause;
376
- var aCallable = aCallable$2;
377
- var NATIVE_BIND = functionBindNative;
378
- var bind$2 = uncurryThis$6(uncurryThis$6.bind);
379
- var functionBindContext = function(fn, that) {
380
- aCallable(fn);
381
- return that === void 0 ? fn : NATIVE_BIND ? bind$2(fn, that) : function() {
382
- return fn.apply(that, arguments);
383
- };
384
- };
385
- var objectDefineProperty = {};
386
- var DESCRIPTORS$4 = descriptors;
387
- var fails$5 = fails$c;
388
- var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$5(function() {
389
- return Object.defineProperty(function() {
390
- }, "prototype", {
391
- value: 42,
392
- writable: false
393
- }).prototype != 42;
394
- });
395
- var isObject$4 = isObject$8;
396
- var $String = String;
397
- var $TypeError$1 = TypeError;
398
- var anObject$3 = function(argument) {
399
- if (isObject$4(argument))
400
- return argument;
401
- throw $TypeError$1($String(argument) + " is not an object");
402
- };
403
- var DESCRIPTORS$3 = descriptors;
404
- var IE8_DOM_DEFINE = ie8DomDefine;
405
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
406
- var anObject$2 = anObject$3;
407
- var toPropertyKey$1 = toPropertyKey$3;
408
- var $TypeError = TypeError;
409
- var $defineProperty = Object.defineProperty;
410
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
411
- var ENUMERABLE = "enumerable";
412
- var CONFIGURABLE$1 = "configurable";
413
- var WRITABLE = "writable";
414
- objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
415
- anObject$2(O);
416
- P = toPropertyKey$1(P);
417
- anObject$2(Attributes);
418
- if (typeof O === "function" && P === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
419
- var current = $getOwnPropertyDescriptor(O, P);
420
- if (current && current[WRITABLE]) {
421
- O[P] = Attributes.value;
422
- Attributes = {
423
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
424
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
425
- writable: false
426
- };
427
- }
428
- }
429
- return $defineProperty(O, P, Attributes);
430
- } : $defineProperty : function defineProperty2(O, P, Attributes) {
431
- anObject$2(O);
432
- P = toPropertyKey$1(P);
433
- anObject$2(Attributes);
434
- if (IE8_DOM_DEFINE)
435
- try {
436
- return $defineProperty(O, P, Attributes);
437
- } catch (error) {
438
- }
439
- if ("get" in Attributes || "set" in Attributes)
440
- throw $TypeError("Accessors not supported");
441
- if ("value" in Attributes)
442
- O[P] = Attributes.value;
443
- return O;
444
- };
445
- var DESCRIPTORS$2 = descriptors;
446
- var definePropertyModule$2 = objectDefineProperty;
447
- var createPropertyDescriptor$2 = createPropertyDescriptor$4;
448
- var createNonEnumerableProperty$5 = DESCRIPTORS$2 ? function(object, key, value) {
449
- return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
450
- } : function(object, key, value) {
451
- object[key] = value;
452
- return object;
453
- };
454
- var global$4 = global$c;
455
- var apply = functionApply;
456
- var uncurryThis$5 = functionUncurryThisClause;
457
- var isCallable$6 = isCallable$d;
458
- var getOwnPropertyDescriptor2 = objectGetOwnPropertyDescriptor.f;
459
- var isForced = isForced_1;
460
- var path$1 = path$3;
461
- var bind$1 = functionBindContext;
462
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
463
- var hasOwn$6 = hasOwnProperty_1;
464
- var wrapConstructor = function(NativeConstructor) {
465
- var Wrapper = function(a, b, c) {
466
- if (this instanceof Wrapper) {
467
- switch (arguments.length) {
468
- case 0:
469
- return new NativeConstructor();
470
- case 1:
471
- return new NativeConstructor(a);
472
- case 2:
473
- return new NativeConstructor(a, b);
474
- }
475
- return new NativeConstructor(a, b, c);
476
- }
477
- return apply(NativeConstructor, this, arguments);
478
- };
479
- Wrapper.prototype = NativeConstructor.prototype;
480
- return Wrapper;
481
- };
482
- var _export = function(options, source) {
483
- var TARGET = options.target;
484
- var GLOBAL = options.global;
485
- var STATIC = options.stat;
486
- var PROTO = options.proto;
487
- var nativeSource = GLOBAL ? global$4 : STATIC ? global$4[TARGET] : (global$4[TARGET] || {}).prototype;
488
- var target = GLOBAL ? path$1 : path$1[TARGET] || createNonEnumerableProperty$4(path$1, TARGET, {})[TARGET];
489
- var targetPrototype = target.prototype;
490
- var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;
491
- var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;
492
- for (key in source) {
493
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
494
- USE_NATIVE = !FORCED && nativeSource && hasOwn$6(nativeSource, key);
495
- targetProperty = target[key];
496
- if (USE_NATIVE)
497
- if (options.dontCallGetSet) {
498
- descriptor = getOwnPropertyDescriptor2(nativeSource, key);
499
- nativeProperty = descriptor && descriptor.value;
500
- } else
501
- nativeProperty = nativeSource[key];
502
- sourceProperty = USE_NATIVE && nativeProperty ? nativeProperty : source[key];
503
- if (USE_NATIVE && typeof targetProperty == typeof sourceProperty)
504
- continue;
505
- if (options.bind && USE_NATIVE)
506
- resultProperty = bind$1(sourceProperty, global$4);
507
- else if (options.wrap && USE_NATIVE)
508
- resultProperty = wrapConstructor(sourceProperty);
509
- else if (PROTO && isCallable$6(sourceProperty))
510
- resultProperty = uncurryThis$5(sourceProperty);
511
- else
512
- resultProperty = sourceProperty;
513
- if (options.sham || sourceProperty && sourceProperty.sham || targetProperty && targetProperty.sham) {
514
- createNonEnumerableProperty$4(resultProperty, "sham", true);
515
- }
516
- createNonEnumerableProperty$4(target, key, resultProperty);
517
- if (PROTO) {
518
- VIRTUAL_PROTOTYPE = TARGET + "Prototype";
519
- if (!hasOwn$6(path$1, VIRTUAL_PROTOTYPE)) {
520
- createNonEnumerableProperty$4(path$1, VIRTUAL_PROTOTYPE, {});
521
- }
522
- createNonEnumerableProperty$4(path$1[VIRTUAL_PROTOTYPE], key, sourceProperty);
523
- if (options.real && targetPrototype && (FORCED || !targetPrototype[key])) {
524
- createNonEnumerableProperty$4(targetPrototype, key, sourceProperty);
525
- }
526
- }
527
- }
528
- };
529
- var classof$5 = classofRaw$2;
530
- var isArray$2 = Array.isArray || function isArray(argument) {
531
- return classof$5(argument) == "Array";
532
- };
533
- var wellKnownSymbol$8 = wellKnownSymbol$a;
534
- var TO_STRING_TAG$3 = wellKnownSymbol$8("toStringTag");
535
- var test = {};
536
- test[TO_STRING_TAG$3] = "z";
537
- var toStringTagSupport = String(test) === "[object z]";
538
- var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
539
- var isCallable$5 = isCallable$d;
540
- var classofRaw = classofRaw$2;
541
- var wellKnownSymbol$7 = wellKnownSymbol$a;
542
- var TO_STRING_TAG$2 = wellKnownSymbol$7("toStringTag");
543
- var $Object$1 = Object;
544
- var CORRECT_ARGUMENTS = classofRaw(function() {
545
- return arguments;
546
- }()) == "Arguments";
547
- var tryGet = function(it, key) {
548
- try {
549
- return it[key];
550
- } catch (error) {
551
- }
552
- };
553
- var classof$4 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function(it) {
554
- var O, tag, result;
555
- return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$2)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) == "Object" && isCallable$5(O.callee) ? "Arguments" : result;
556
- };
557
- var uncurryThis$4 = functionUncurryThis;
558
- var isCallable$4 = isCallable$d;
559
- var store$1 = sharedStore;
560
- var functionToString = uncurryThis$4(Function.toString);
561
- if (!isCallable$4(store$1.inspectSource)) {
562
- store$1.inspectSource = function(it) {
563
- return functionToString(it);
564
- };
565
- }
566
- var inspectSource$1 = store$1.inspectSource;
567
- var uncurryThis$3 = functionUncurryThis;
568
- var fails$4 = fails$c;
569
- var isCallable$3 = isCallable$d;
570
- var classof$3 = classof$4;
571
- var getBuiltIn$1 = getBuiltIn$3;
572
- var inspectSource = inspectSource$1;
573
- var noop = function() {
574
- };
575
- var empty = [];
576
- var construct = getBuiltIn$1("Reflect", "construct");
577
- var constructorRegExp = /^\s*(?:class|function)\b/;
578
- var exec = uncurryThis$3(constructorRegExp.exec);
579
- var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
580
- var isConstructorModern = function isConstructor(argument) {
581
- if (!isCallable$3(argument))
582
- return false;
583
- try {
584
- construct(noop, empty, argument);
585
- return true;
586
- } catch (error) {
587
- return false;
588
- }
589
- };
590
- var isConstructorLegacy = function isConstructor2(argument) {
591
- if (!isCallable$3(argument))
592
- return false;
593
- switch (classof$3(argument)) {
594
- case "AsyncFunction":
595
- case "GeneratorFunction":
596
- case "AsyncGeneratorFunction":
597
- return false;
598
- }
599
- try {
600
- return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
601
- } catch (error) {
602
- return true;
603
- }
604
- };
605
- isConstructorLegacy.sham = true;
606
- var isConstructor$2 = !construct || fails$4(function() {
607
- var called;
608
- return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function() {
609
- called = true;
610
- }) || called;
611
- }) ? isConstructorLegacy : isConstructorModern;
612
- var ceil = Math.ceil;
613
- var floor = Math.floor;
614
- var mathTrunc = Math.trunc || function trunc(x) {
615
- var n = +x;
616
- return (n > 0 ? floor : ceil)(n);
617
- };
618
- var trunc2 = mathTrunc;
619
- var toIntegerOrInfinity$2 = function(argument) {
620
- var number = +argument;
621
- return number !== number || number === 0 ? 0 : trunc2(number);
622
- };
623
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
624
- var max$1 = Math.max;
625
- var min$1 = Math.min;
626
- var toAbsoluteIndex$2 = function(index, length) {
627
- var integer = toIntegerOrInfinity$1(index);
628
- return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
629
- };
630
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
631
- var min = Math.min;
632
- var toLength$1 = function(argument) {
633
- return argument > 0 ? min(toIntegerOrInfinity(argument), 9007199254740991) : 0;
634
- };
635
- var toLength = toLength$1;
636
- var lengthOfArrayLike$3 = function(obj) {
637
- return toLength(obj.length);
638
- };
639
- var toPropertyKey = toPropertyKey$3;
640
- var definePropertyModule$1 = objectDefineProperty;
641
- var createPropertyDescriptor$1 = createPropertyDescriptor$4;
642
- var createProperty$1 = function(object, key, value) {
643
- var propertyKey = toPropertyKey(key);
644
- if (propertyKey in object)
645
- definePropertyModule$1.f(object, propertyKey, createPropertyDescriptor$1(0, value));
646
- else
647
- object[propertyKey] = value;
648
- };
649
- var fails$3 = fails$c;
650
- var wellKnownSymbol$6 = wellKnownSymbol$a;
651
- var V8_VERSION = engineV8Version;
652
- var SPECIES$2 = wellKnownSymbol$6("species");
653
- var arrayMethodHasSpeciesSupport$1 = function(METHOD_NAME) {
654
- return V8_VERSION >= 51 || !fails$3(function() {
655
- var array = [];
656
- var constructor = array.constructor = {};
657
- constructor[SPECIES$2] = function() {
658
- return {
659
- foo: 1
660
- };
661
- };
662
- return array[METHOD_NAME](Boolean).foo !== 1;
663
- });
664
- };
665
- var uncurryThis$2 = functionUncurryThis;
666
- var arraySlice = uncurryThis$2([].slice);
667
- var $$2 = _export;
668
- var isArray$1 = isArray$2;
669
- var isConstructor$1 = isConstructor$2;
670
- var isObject$3 = isObject$8;
671
- var toAbsoluteIndex$1 = toAbsoluteIndex$2;
672
- var lengthOfArrayLike$2 = lengthOfArrayLike$3;
673
- var toIndexedObject$4 = toIndexedObject$6;
674
- var createProperty = createProperty$1;
675
- var wellKnownSymbol$5 = wellKnownSymbol$a;
676
- var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
677
- var nativeSlice = arraySlice;
678
- var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("slice");
679
- var SPECIES$1 = wellKnownSymbol$5("species");
680
- var $Array$1 = Array;
681
- var max = Math.max;
682
- $$2({
683
- target: "Array",
684
- proto: true,
685
- forced: !HAS_SPECIES_SUPPORT
686
- }, {
687
- slice: function slice(start, end) {
688
- var O = toIndexedObject$4(this);
689
- var length = lengthOfArrayLike$2(O);
690
- var k = toAbsoluteIndex$1(start, length);
691
- var fin = toAbsoluteIndex$1(end === void 0 ? length : end, length);
692
- var Constructor, result, n;
693
- if (isArray$1(O)) {
694
- Constructor = O.constructor;
695
- if (isConstructor$1(Constructor) && (Constructor === $Array$1 || isArray$1(Constructor.prototype))) {
696
- Constructor = void 0;
697
- } else if (isObject$3(Constructor)) {
698
- Constructor = Constructor[SPECIES$1];
699
- if (Constructor === null)
700
- Constructor = void 0;
701
- }
702
- if (Constructor === $Array$1 || Constructor === void 0) {
703
- return nativeSlice(O, k, fin);
704
- }
705
- }
706
- result = new (Constructor === void 0 ? $Array$1 : Constructor)(max(fin - k, 0));
707
- for (n = 0; k < fin; k++, n++)
708
- if (k in O)
709
- createProperty(result, n, O[k]);
710
- result.length = n;
711
- return result;
712
- }
713
- });
714
- var path = path$3;
715
- var entryVirtual$2 = function(CONSTRUCTOR) {
716
- return path[CONSTRUCTOR + "Prototype"];
717
- };
718
- var entryVirtual$1 = entryVirtual$2;
719
- var slice$6 = entryVirtual$1("Array").slice;
720
- var isPrototypeOf$1 = objectIsPrototypeOf;
721
- var method$1 = slice$6;
722
- var ArrayPrototype$1 = Array.prototype;
723
- var slice$5 = function(it) {
724
- var own = it.slice;
725
- return it === ArrayPrototype$1 || isPrototypeOf$1(ArrayPrototype$1, it) && own === ArrayPrototype$1.slice ? method$1 : own;
726
- };
727
- var parent$5 = slice$5;
728
- var slice$4 = parent$5;
729
- var parent$4 = slice$4;
730
- var slice$3 = parent$4;
731
- var parent$3 = slice$3;
732
- var slice$2 = parent$3;
733
- var slice$1 = slice$2;
734
- var slice2 = slice$1;
735
- const _sliceInstanceProperty = /* @__PURE__ */ getDefaultExportFromCjs(slice2);
736
- var iterators = {};
737
- var global$3 = global$c;
738
- var isCallable$2 = isCallable$d;
739
- var WeakMap$1 = global$3.WeakMap;
740
- var weakMapBasicDetection = isCallable$2(WeakMap$1) && /native code/.test(String(WeakMap$1));
741
- var shared$1 = sharedExports;
742
- var uid = uid$2;
743
- var keys = shared$1("keys");
744
- var sharedKey$3 = function(key) {
745
- return keys[key] || (keys[key] = uid(key));
746
- };
747
- var hiddenKeys$3 = {};
748
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
749
- var global$2 = global$c;
750
- var isObject$2 = isObject$8;
751
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
752
- var hasOwn$5 = hasOwnProperty_1;
753
- var shared = sharedStore;
754
- var sharedKey$2 = sharedKey$3;
755
- var hiddenKeys$2 = hiddenKeys$3;
756
- var OBJECT_ALREADY_INITIALIZED = "Object already initialized";
757
- var TypeError$1 = global$2.TypeError;
758
- var WeakMap = global$2.WeakMap;
759
- var set, get, has;
760
- var enforce = function(it) {
761
- return has(it) ? get(it) : set(it, {});
762
- };
763
- var getterFor = function(TYPE) {
764
- return function(it) {
765
- var state;
766
- if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
767
- throw TypeError$1("Incompatible receiver, " + TYPE + " required");
768
- }
769
- return state;
770
- };
771
- };
772
- if (NATIVE_WEAK_MAP || shared.state) {
773
- var store = shared.state || (shared.state = new WeakMap());
774
- store.get = store.get;
775
- store.has = store.has;
776
- store.set = store.set;
777
- set = function(it, metadata) {
778
- if (store.has(it))
779
- throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
780
- metadata.facade = it;
781
- store.set(it, metadata);
782
- return metadata;
783
- };
784
- get = function(it) {
785
- return store.get(it) || {};
786
- };
787
- has = function(it) {
788
- return store.has(it);
789
- };
790
- } else {
791
- var STATE = sharedKey$2("state");
792
- hiddenKeys$2[STATE] = true;
793
- set = function(it, metadata) {
794
- if (hasOwn$5(it, STATE))
795
- throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
796
- metadata.facade = it;
797
- createNonEnumerableProperty$3(it, STATE, metadata);
798
- return metadata;
799
- };
800
- get = function(it) {
801
- return hasOwn$5(it, STATE) ? it[STATE] : {};
802
- };
803
- has = function(it) {
804
- return hasOwn$5(it, STATE);
805
- };
806
- }
807
- var internalState = {
808
- set,
809
- get,
810
- has,
811
- enforce,
812
- getterFor
813
- };
814
- var DESCRIPTORS$1 = descriptors;
815
- var hasOwn$4 = hasOwnProperty_1;
816
- var FunctionPrototype = Function.prototype;
817
- var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor;
818
- var EXISTS = hasOwn$4(FunctionPrototype, "name");
819
- var PROPER = EXISTS && (function something() {
820
- }).name === "something";
821
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || DESCRIPTORS$1 && getDescriptor(FunctionPrototype, "name").configurable);
822
- var functionName = {
823
- EXISTS,
824
- PROPER,
825
- CONFIGURABLE
826
- };
827
- var objectDefineProperties = {};
828
- var toIndexedObject$3 = toIndexedObject$6;
829
- var toAbsoluteIndex = toAbsoluteIndex$2;
830
- var lengthOfArrayLike$1 = lengthOfArrayLike$3;
831
- var createMethod$1 = function(IS_INCLUDES) {
832
- return function($this, el, fromIndex) {
833
- var O = toIndexedObject$3($this);
834
- var length = lengthOfArrayLike$1(O);
835
- var index = toAbsoluteIndex(fromIndex, length);
836
- var value;
837
- if (IS_INCLUDES && el != el)
838
- while (length > index) {
839
- value = O[index++];
840
- if (value != value)
841
- return true;
842
- }
843
- else
844
- for (; length > index; index++) {
845
- if ((IS_INCLUDES || index in O) && O[index] === el)
846
- return IS_INCLUDES || index || 0;
847
- }
848
- return !IS_INCLUDES && -1;
849
- };
850
- };
851
- var arrayIncludes = {
852
- // `Array.prototype.includes` method
853
- // https://tc39.es/ecma262/#sec-array.prototype.includes
854
- includes: createMethod$1(true),
855
- // `Array.prototype.indexOf` method
856
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
857
- indexOf: createMethod$1(false)
858
- };
859
- var uncurryThis$1 = functionUncurryThis;
860
- var hasOwn$3 = hasOwnProperty_1;
861
- var toIndexedObject$2 = toIndexedObject$6;
862
- var indexOf = arrayIncludes.indexOf;
863
- var hiddenKeys$1 = hiddenKeys$3;
864
- var push$1 = uncurryThis$1([].push);
865
- var objectKeysInternal = function(object, names) {
866
- var O = toIndexedObject$2(object);
867
- var i = 0;
868
- var result = [];
869
- var key;
870
- for (key in O)
871
- !hasOwn$3(hiddenKeys$1, key) && hasOwn$3(O, key) && push$1(result, key);
872
- while (names.length > i)
873
- if (hasOwn$3(O, key = names[i++])) {
874
- ~indexOf(result, key) || push$1(result, key);
875
- }
876
- return result;
877
- };
878
- var enumBugKeys$2 = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"];
879
- var internalObjectKeys = objectKeysInternal;
880
- var enumBugKeys$1 = enumBugKeys$2;
881
- var objectKeys$1 = Object.keys || function keys2(O) {
882
- return internalObjectKeys(O, enumBugKeys$1);
883
- };
884
- var DESCRIPTORS = descriptors;
885
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
886
- var definePropertyModule = objectDefineProperty;
887
- var anObject$1 = anObject$3;
888
- var toIndexedObject$1 = toIndexedObject$6;
889
- var objectKeys = objectKeys$1;
890
- objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
891
- anObject$1(O);
892
- var props = toIndexedObject$1(Properties);
893
- var keys3 = objectKeys(Properties);
894
- var length = keys3.length;
895
- var index = 0;
896
- var key;
897
- while (length > index)
898
- definePropertyModule.f(O, key = keys3[index++], props[key]);
899
- return O;
900
- };
901
- var getBuiltIn = getBuiltIn$3;
902
- var html$1 = getBuiltIn("document", "documentElement");
903
- var anObject = anObject$3;
904
- var definePropertiesModule = objectDefineProperties;
905
- var enumBugKeys = enumBugKeys$2;
906
- var hiddenKeys = hiddenKeys$3;
907
- var html = html$1;
908
- var documentCreateElement = documentCreateElement$1;
909
- var sharedKey$1 = sharedKey$3;
910
- var GT = ">";
911
- var LT = "<";
912
- var PROTOTYPE = "prototype";
913
- var SCRIPT = "script";
914
- var IE_PROTO$1 = sharedKey$1("IE_PROTO");
915
- var EmptyConstructor = function() {
916
- };
917
- var scriptTag = function(content) {
918
- return LT + SCRIPT + GT + content + LT + "/" + SCRIPT + GT;
919
- };
920
- var NullProtoObjectViaActiveX = function(activeXDocument2) {
921
- activeXDocument2.write(scriptTag(""));
922
- activeXDocument2.close();
923
- var temp = activeXDocument2.parentWindow.Object;
924
- activeXDocument2 = null;
925
- return temp;
926
- };
927
- var NullProtoObjectViaIFrame = function() {
928
- var iframe = documentCreateElement("iframe");
929
- var JS = "java" + SCRIPT + ":";
930
- var iframeDocument;
931
- iframe.style.display = "none";
932
- html.appendChild(iframe);
933
- iframe.src = String(JS);
934
- iframeDocument = iframe.contentWindow.document;
935
- iframeDocument.open();
936
- iframeDocument.write(scriptTag("document.F=Object"));
937
- iframeDocument.close();
938
- return iframeDocument.F;
939
- };
940
- var activeXDocument;
941
- var NullProtoObject = function() {
942
- try {
943
- activeXDocument = new ActiveXObject("htmlfile");
944
- } catch (error) {
945
- }
946
- NullProtoObject = typeof document != "undefined" ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument);
947
- var length = enumBugKeys.length;
948
- while (length--)
949
- delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
950
- return NullProtoObject();
951
- };
952
- hiddenKeys[IE_PROTO$1] = true;
953
- var objectCreate = Object.create || function create(O, Properties) {
954
- var result;
955
- if (O !== null) {
956
- EmptyConstructor[PROTOTYPE] = anObject(O);
957
- result = new EmptyConstructor();
958
- EmptyConstructor[PROTOTYPE] = null;
959
- result[IE_PROTO$1] = O;
960
- } else
961
- result = NullProtoObject();
962
- return Properties === void 0 ? result : definePropertiesModule.f(result, Properties);
963
- };
964
- var fails$2 = fails$c;
965
- var correctPrototypeGetter = !fails$2(function() {
966
- function F() {
967
- }
968
- F.prototype.constructor = null;
969
- return Object.getPrototypeOf(new F()) !== F.prototype;
970
- });
971
- var hasOwn$2 = hasOwnProperty_1;
972
- var isCallable$1 = isCallable$d;
973
- var toObject$1 = toObject$3;
974
- var sharedKey = sharedKey$3;
975
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
976
- var IE_PROTO = sharedKey("IE_PROTO");
977
- var $Object = Object;
978
- var ObjectPrototype = $Object.prototype;
979
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function(O) {
980
- var object = toObject$1(O);
981
- if (hasOwn$2(object, IE_PROTO))
982
- return object[IE_PROTO];
983
- var constructor = object.constructor;
984
- if (isCallable$1(constructor) && object instanceof constructor) {
985
- return constructor.prototype;
986
- }
987
- return object instanceof $Object ? ObjectPrototype : null;
988
- };
989
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
990
- var defineBuiltIn$2 = function(target, key, value, options) {
991
- if (options && options.enumerable)
992
- target[key] = value;
993
- else
994
- createNonEnumerableProperty$2(target, key, value);
995
- return target;
996
- };
997
- var fails$1 = fails$c;
998
- var isCallable = isCallable$d;
999
- var isObject$1 = isObject$8;
1000
- var create$1 = objectCreate;
1001
- var getPrototypeOf$1 = objectGetPrototypeOf;
1002
- var defineBuiltIn$1 = defineBuiltIn$2;
1003
- var wellKnownSymbol$4 = wellKnownSymbol$a;
1004
- var ITERATOR$1 = wellKnownSymbol$4("iterator");
1005
- var BUGGY_SAFARI_ITERATORS$1 = false;
1006
- var IteratorPrototype$1, PrototypeOfArrayIteratorPrototype, arrayIterator;
1007
- if ([].keys) {
1008
- arrayIterator = [].keys();
1009
- if (!("next" in arrayIterator))
1010
- BUGGY_SAFARI_ITERATORS$1 = true;
1011
- else {
1012
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1013
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype)
1014
- IteratorPrototype$1 = PrototypeOfArrayIteratorPrototype;
1015
- }
1016
- }
1017
- var NEW_ITERATOR_PROTOTYPE = !isObject$1(IteratorPrototype$1) || fails$1(function() {
1018
- var test2 = {};
1019
- return IteratorPrototype$1[ITERATOR$1].call(test2) !== test2;
1020
- });
1021
- if (NEW_ITERATOR_PROTOTYPE)
1022
- IteratorPrototype$1 = {};
1023
- else
1024
- IteratorPrototype$1 = create$1(IteratorPrototype$1);
1025
- if (!isCallable(IteratorPrototype$1[ITERATOR$1])) {
1026
- defineBuiltIn$1(IteratorPrototype$1, ITERATOR$1, function() {
1027
- return this;
1028
- });
1029
- }
1030
- var iteratorsCore = {
1031
- IteratorPrototype: IteratorPrototype$1,
1032
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1033
- };
1034
- var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
1035
- var classof$2 = classof$4;
1036
- var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
1037
- return "[object " + classof$2(this) + "]";
1038
- };
1039
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1040
- var defineProperty3 = objectDefineProperty.f;
1041
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1042
- var hasOwn$1 = hasOwnProperty_1;
1043
- var toString2 = objectToString;
1044
- var wellKnownSymbol$3 = wellKnownSymbol$a;
1045
- var TO_STRING_TAG$1 = wellKnownSymbol$3("toStringTag");
1046
- var setToStringTag$2 = function(it, TAG, STATIC, SET_METHOD) {
1047
- if (it) {
1048
- var target = STATIC ? it : it.prototype;
1049
- if (!hasOwn$1(target, TO_STRING_TAG$1)) {
1050
- defineProperty3(target, TO_STRING_TAG$1, {
1051
- configurable: true,
1052
- value: TAG
1053
- });
1054
- }
1055
- if (SET_METHOD && !TO_STRING_TAG_SUPPORT) {
1056
- createNonEnumerableProperty$1(target, "toString", toString2);
1057
- }
1058
- }
1059
- };
1060
- var IteratorPrototype = iteratorsCore.IteratorPrototype;
1061
- var create2 = objectCreate;
1062
- var createPropertyDescriptor = createPropertyDescriptor$4;
1063
- var setToStringTag$1 = setToStringTag$2;
1064
- var Iterators$3 = iterators;
1065
- var returnThis$1 = function() {
1066
- return this;
1067
- };
1068
- var iteratorCreateConstructor = function(IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1069
- var TO_STRING_TAG2 = NAME + " Iterator";
1070
- IteratorConstructor.prototype = create2(IteratorPrototype, {
1071
- next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next)
1072
- });
1073
- setToStringTag$1(IteratorConstructor, TO_STRING_TAG2, false, true);
1074
- Iterators$3[TO_STRING_TAG2] = returnThis$1;
1075
- return IteratorConstructor;
1076
- };
1077
- var $$1 = _export;
1078
- var call = functionCall;
1079
- var FunctionName = functionName;
1080
- var createIteratorConstructor = iteratorCreateConstructor;
1081
- var getPrototypeOf = objectGetPrototypeOf;
1082
- var setToStringTag = setToStringTag$2;
1083
- var defineBuiltIn = defineBuiltIn$2;
1084
- var wellKnownSymbol$2 = wellKnownSymbol$a;
1085
- var Iterators$2 = iterators;
1086
- var IteratorsCore = iteratorsCore;
1087
- var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1088
- FunctionName.CONFIGURABLE;
1089
- IteratorsCore.IteratorPrototype;
1090
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1091
- var ITERATOR = wellKnownSymbol$2("iterator");
1092
- var KEYS = "keys";
1093
- var VALUES = "values";
1094
- var ENTRIES = "entries";
1095
- var returnThis = function() {
1096
- return this;
1097
- };
1098
- var iteratorDefine = function(Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1099
- createIteratorConstructor(IteratorConstructor, NAME, next);
1100
- var getIterationMethod = function(KIND) {
1101
- if (KIND === DEFAULT && defaultIterator)
1102
- return defaultIterator;
1103
- if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype)
1104
- return IterablePrototype[KIND];
1105
- switch (KIND) {
1106
- case KEYS:
1107
- return function keys3() {
1108
- return new IteratorConstructor(this, KIND);
1109
- };
1110
- case VALUES:
1111
- return function values() {
1112
- return new IteratorConstructor(this, KIND);
1113
- };
1114
- case ENTRIES:
1115
- return function entries() {
1116
- return new IteratorConstructor(this, KIND);
1117
- };
1118
- }
1119
- return function() {
1120
- return new IteratorConstructor(this);
1121
- };
1122
- };
1123
- var TO_STRING_TAG2 = NAME + " Iterator";
1124
- var INCORRECT_VALUES_NAME = false;
1125
- var IterablePrototype = Iterable.prototype;
1126
- var nativeIterator = IterablePrototype[ITERATOR] || IterablePrototype["@@iterator"] || DEFAULT && IterablePrototype[DEFAULT];
1127
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1128
- var anyNativeIterator = NAME == "Array" ? IterablePrototype.entries || nativeIterator : nativeIterator;
1129
- var CurrentIteratorPrototype, methods, KEY;
1130
- if (anyNativeIterator) {
1131
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1132
- if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1133
- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG2, true, true);
1134
- Iterators$2[TO_STRING_TAG2] = returnThis;
1135
- }
1136
- }
1137
- if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1138
- {
1139
- INCORRECT_VALUES_NAME = true;
1140
- defaultIterator = function values() {
1141
- return call(nativeIterator, this);
1142
- };
1143
- }
1144
- }
1145
- if (DEFAULT) {
1146
- methods = {
1147
- values: getIterationMethod(VALUES),
1148
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1149
- entries: getIterationMethod(ENTRIES)
1150
- };
1151
- if (FORCED)
1152
- for (KEY in methods) {
1153
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1154
- defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
1155
- }
1156
- }
1157
- else
1158
- $$1({
1159
- target: NAME,
1160
- proto: true,
1161
- forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME
1162
- }, methods);
1163
- }
1164
- if (FORCED && IterablePrototype[ITERATOR] !== defaultIterator) {
1165
- defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, {
1166
- name: DEFAULT
1167
- });
1168
- }
1169
- Iterators$2[NAME] = defaultIterator;
1170
- return methods;
1171
- };
1172
- var createIterResultObject$1 = function(value, done) {
1173
- return {
1174
- value,
1175
- done
1176
- };
1177
- };
1178
- var toIndexedObject = toIndexedObject$6;
1179
- var Iterators$1 = iterators;
1180
- var InternalStateModule = internalState;
1181
- objectDefineProperty.f;
1182
- var defineIterator = iteratorDefine;
1183
- var createIterResultObject = createIterResultObject$1;
1184
- var ARRAY_ITERATOR = "Array Iterator";
1185
- var setInternalState = InternalStateModule.set;
1186
- var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
1187
- defineIterator(Array, "Array", function(iterated, kind) {
1188
- setInternalState(this, {
1189
- type: ARRAY_ITERATOR,
1190
- target: toIndexedObject(iterated),
1191
- // target
1192
- index: 0,
1193
- // next index
1194
- kind
1195
- // kind
1196
- });
1197
- }, function() {
1198
- var state = getInternalState(this);
1199
- var target = state.target;
1200
- var kind = state.kind;
1201
- var index = state.index++;
1202
- if (!target || index >= target.length) {
1203
- state.target = void 0;
1204
- return createIterResultObject(void 0, true);
1205
- }
1206
- if (kind == "keys")
1207
- return createIterResultObject(index, false);
1208
- if (kind == "values")
1209
- return createIterResultObject(target[index], false);
1210
- return createIterResultObject([index, target[index]], false);
1211
- }, "values");
1212
- Iterators$1.Arguments = Iterators$1.Array;
1213
- var domIterables = {
1214
- CSSRuleList: 0,
1215
- CSSStyleDeclaration: 0,
1216
- CSSValueList: 0,
1217
- ClientRectList: 0,
1218
- DOMRectList: 0,
1219
- DOMStringList: 0,
1220
- DOMTokenList: 1,
1221
- DataTransferItemList: 0,
1222
- FileList: 0,
1223
- HTMLAllCollection: 0,
1224
- HTMLCollection: 0,
1225
- HTMLFormElement: 0,
1226
- HTMLSelectElement: 0,
1227
- MediaList: 0,
1228
- MimeTypeArray: 0,
1229
- NamedNodeMap: 0,
1230
- NodeList: 1,
1231
- PaintRequestList: 0,
1232
- Plugin: 0,
1233
- PluginArray: 0,
1234
- SVGLengthList: 0,
1235
- SVGNumberList: 0,
1236
- SVGPathSegList: 0,
1237
- SVGPointList: 0,
1238
- SVGStringList: 0,
1239
- SVGTransformList: 0,
1240
- SourceBufferList: 0,
1241
- StyleSheetList: 0,
1242
- TextTrackCueList: 0,
1243
- TextTrackList: 0,
1244
- TouchList: 0
1245
- };
1246
- var DOMIterables$1 = domIterables;
1247
- var global$1 = global$c;
1248
- var classof$1 = classof$4;
1249
- var createNonEnumerableProperty = createNonEnumerableProperty$5;
1250
- var Iterators = iterators;
1251
- var wellKnownSymbol$1 = wellKnownSymbol$a;
1252
- var TO_STRING_TAG = wellKnownSymbol$1("toStringTag");
1253
- for (var COLLECTION_NAME in DOMIterables$1) {
1254
- var Collection = global$1[COLLECTION_NAME];
1255
- var CollectionPrototype = Collection && Collection.prototype;
1256
- if (CollectionPrototype && classof$1(CollectionPrototype) !== TO_STRING_TAG) {
1257
- createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
1258
- }
1259
- Iterators[COLLECTION_NAME] = Iterators.Array;
1260
- }
1261
- var isArray2 = isArray$2;
1262
- var isConstructor3 = isConstructor$2;
1263
- var isObject = isObject$8;
1264
- var wellKnownSymbol = wellKnownSymbol$a;
1265
- var SPECIES = wellKnownSymbol("species");
1266
- var $Array = Array;
1267
- var arraySpeciesConstructor$1 = function(originalArray) {
1268
- var C;
1269
- if (isArray2(originalArray)) {
1270
- C = originalArray.constructor;
1271
- if (isConstructor3(C) && (C === $Array || isArray2(C.prototype)))
1272
- C = void 0;
1273
- else if (isObject(C)) {
1274
- C = C[SPECIES];
1275
- if (C === null)
1276
- C = void 0;
1277
- }
1278
- }
1279
- return C === void 0 ? $Array : C;
1280
- };
1281
- var arraySpeciesConstructor = arraySpeciesConstructor$1;
1282
- var arraySpeciesCreate$1 = function(originalArray, length) {
1283
- return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1284
- };
1285
- var bind = functionBindContext;
1286
- var uncurryThis = functionUncurryThis;
1287
- var IndexedObject = indexedObject;
1288
- var toObject = toObject$3;
1289
- var lengthOfArrayLike = lengthOfArrayLike$3;
1290
- var arraySpeciesCreate = arraySpeciesCreate$1;
1291
- var push = uncurryThis([].push);
1292
- var createMethod = function(TYPE) {
1293
- var IS_MAP = TYPE == 1;
1294
- var IS_FILTER = TYPE == 2;
1295
- var IS_SOME = TYPE == 3;
1296
- var IS_EVERY = TYPE == 4;
1297
- var IS_FIND_INDEX = TYPE == 6;
1298
- var IS_FILTER_REJECT = TYPE == 7;
1299
- var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
1300
- return function($this, callbackfn, that, specificCreate) {
1301
- var O = toObject($this);
1302
- var self2 = IndexedObject(O);
1303
- var boundFunction = bind(callbackfn, that);
1304
- var length = lengthOfArrayLike(self2);
1305
- var index = 0;
1306
- var create3 = specificCreate || arraySpeciesCreate;
1307
- var target = IS_MAP ? create3($this, length) : IS_FILTER || IS_FILTER_REJECT ? create3($this, 0) : void 0;
1308
- var value, result;
1309
- for (; length > index; index++)
1310
- if (NO_HOLES || index in self2) {
1311
- value = self2[index];
1312
- result = boundFunction(value, index, O);
1313
- if (TYPE) {
1314
- if (IS_MAP)
1315
- target[index] = result;
1316
- else if (result)
1317
- switch (TYPE) {
1318
- case 3:
1319
- return true;
1320
- case 5:
1321
- return value;
1322
- case 6:
1323
- return index;
1324
- case 2:
1325
- push(target, value);
1326
- }
1327
- else
1328
- switch (TYPE) {
1329
- case 4:
1330
- return false;
1331
- case 7:
1332
- push(target, value);
1333
- }
1334
- }
1335
- }
1336
- return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
1337
- };
1338
- };
1339
- var arrayIteration = {
1340
- // `Array.prototype.forEach` method
1341
- // https://tc39.es/ecma262/#sec-array.prototype.foreach
1342
- forEach: createMethod(0),
1343
- // `Array.prototype.map` method
1344
- // https://tc39.es/ecma262/#sec-array.prototype.map
1345
- map: createMethod(1),
1346
- // `Array.prototype.filter` method
1347
- // https://tc39.es/ecma262/#sec-array.prototype.filter
1348
- filter: createMethod(2),
1349
- // `Array.prototype.some` method
1350
- // https://tc39.es/ecma262/#sec-array.prototype.some
1351
- some: createMethod(3),
1352
- // `Array.prototype.every` method
1353
- // https://tc39.es/ecma262/#sec-array.prototype.every
1354
- every: createMethod(4),
1355
- // `Array.prototype.find` method
1356
- // https://tc39.es/ecma262/#sec-array.prototype.find
1357
- find: createMethod(5),
1358
- // `Array.prototype.findIndex` method
1359
- // https://tc39.es/ecma262/#sec-array.prototype.findIndex
1360
- findIndex: createMethod(6),
1361
- // `Array.prototype.filterReject` method
1362
- // https://github.com/tc39/proposal-array-filtering
1363
- filterReject: createMethod(7)
1364
- };
1365
- var fails = fails$c;
1366
- var arrayMethodIsStrict$1 = function(METHOD_NAME, argument) {
1367
- var method2 = [][METHOD_NAME];
1368
- return !!method2 && fails(function() {
1369
- method2.call(null, argument || function() {
1370
- return 1;
1371
- }, 1);
1372
- });
1373
- };
1374
- var $forEach = arrayIteration.forEach;
1375
- var arrayMethodIsStrict = arrayMethodIsStrict$1;
1376
- var STRICT_METHOD = arrayMethodIsStrict("forEach");
1377
- var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn) {
1378
- return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
1379
- } : [].forEach;
1380
- var $ = _export;
1381
- var forEach$7 = arrayForEach;
1382
- $({
1383
- target: "Array",
1384
- proto: true,
1385
- forced: [].forEach != forEach$7
1386
- }, {
1387
- forEach: forEach$7
1388
- });
1389
- var entryVirtual = entryVirtual$2;
1390
- var forEach$6 = entryVirtual("Array").forEach;
1391
- var parent$2 = forEach$6;
1392
- var forEach$5 = parent$2;
1393
- var classof = classof$4;
1394
- var hasOwn2 = hasOwnProperty_1;
1395
- var isPrototypeOf = objectIsPrototypeOf;
1396
- var method = forEach$5;
1397
- var ArrayPrototype = Array.prototype;
1398
- var DOMIterables = {
1399
- DOMTokenList: true,
1400
- NodeList: true
1401
- };
1402
- var forEach$4 = function(it) {
1403
- var own = it.forEach;
1404
- return it === ArrayPrototype || isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.forEach || hasOwn2(DOMIterables, classof(it)) ? method : own;
1405
- };
1406
- var parent$1 = forEach$4;
1407
- var forEach$3 = parent$1;
1408
- var parent = forEach$3;
1409
- var forEach$2 = parent;
1410
- var forEach$1 = forEach$2;
1411
- var forEach2 = forEach$1;
1412
- const _forEachInstanceProperty = /* @__PURE__ */ getDefaultExportFromCjs(forEach2);
1413
- var __sfc_main = vueDemi.defineComponent({
4
+ const vue2RuntimeHelpers = require("@94ai/vue2-runtime-helpers");
5
+ const __sfc_main = vueDemi.defineComponent({
1414
6
  name: "nf-text-overflow"
1415
7
  });
1416
8
  __sfc_main.props = {
@@ -1418,61 +10,57 @@ __sfc_main.props = {
1418
10
  key: "content",
1419
11
  required: false,
1420
12
  type: String,
1421
- "default": ""
13
+ default: ""
1422
14
  },
1423
15
  expandText: {
1424
16
  key: "expandText",
1425
17
  required: false,
1426
18
  type: String,
1427
- "default": "展开"
19
+ default: "展开"
1428
20
  },
1429
21
  collapseText: {
1430
22
  key: "collapseText",
1431
23
  required: false,
1432
24
  type: String,
1433
- "default": "收起"
25
+ default: "收起"
1434
26
  },
1435
27
  rows: {
1436
28
  key: "rows",
1437
29
  required: false,
1438
30
  type: [String, Number],
1439
- "default": 1
31
+ default: 1
1440
32
  },
1441
33
  rowHeight: {
1442
34
  key: "rowHeight",
1443
35
  required: false,
1444
36
  type: [String, Number],
1445
- "default": 20
1446
- }
1447
- };
1448
- __sfc_main.setup = function(__props, __ctx) {
1449
- var props = __props;
1450
- var emit = __ctx.emit;
1451
- var text = vueDemi.ref("");
1452
- var expanded = vueDemi.ref(false);
1453
- var hasAction = vueDemi.ref(false);
1454
- var textbox = vueDemi.ref();
1455
- var contentHeight = vueDemi.ref();
1456
- var hasDefaultSlot = vueDemi.computed(function() {
1457
- return !!vueDemi.useSlots()["default"];
1458
- });
1459
- var maxContentHeight = vueDemi.computed(function() {
1460
- return Number(props.rows) * Number(props.rowHeight);
1461
- });
1462
- var pxToNum = function pxToNum2(value) {
37
+ default: 20
38
+ }
39
+ };
40
+ __sfc_main.setup = (__props, __ctx) => {
41
+ const props = __props;
42
+ const emit = __ctx.emit;
43
+ const text = vueDemi.ref("");
44
+ const expanded = vueDemi.ref(false);
45
+ const hasAction = vueDemi.ref(false);
46
+ const textbox = vueDemi.ref();
47
+ const contentHeight = vueDemi.ref();
48
+ const hasDefaultSlot = vueDemi.computed(() => !!vueDemi.useSlots().default);
49
+ const maxContentHeight = vueDemi.computed(() => Number(props.rows) * Number(props.rowHeight));
50
+ const pxToNum = (value) => {
1463
51
  if (!value)
1464
52
  return 0;
1465
- var match2 = value.match(/^\d*(\.\d*)?/);
1466
- return match2 ? Number(match2[0]) : 0;
53
+ const match = value.match(/^\d*(\.\d*)?/);
54
+ return match ? Number(match[0]) : 0;
1467
55
  };
1468
- var calcEllipsised = function calcEllipsised2() {
1469
- var cloneContainer = function cloneContainer2() {
56
+ const calcEllipsised = () => {
57
+ const cloneContainer = () => {
1470
58
  if (!textbox.value)
1471
59
  return;
1472
- var originStyle = window.getComputedStyle(textbox.value);
1473
- var container2 = document.createElement("div");
1474
- var styleNames = _sliceInstanceProperty(Array.prototype).apply(originStyle);
1475
- _forEachInstanceProperty(styleNames).call(styleNames, function(name) {
60
+ const originStyle = window.getComputedStyle(textbox.value);
61
+ const container2 = document.createElement("div");
62
+ const styleNames = Array.prototype.slice.apply(originStyle);
63
+ styleNames.forEach((name) => {
1476
64
  container2.style.setProperty(name, originStyle.getPropertyValue(name));
1477
65
  });
1478
66
  container2.style.position = "fixed";
@@ -1485,14 +73,16 @@ __sfc_main.setup = function(__props, __ctx) {
1485
73
  document.body.appendChild(container2);
1486
74
  return container2;
1487
75
  };
1488
- var calcEllipsisText = function calcEllipsisText2(container2, maxHeight2) {
1489
- var content = props.content;
1490
- var left = 0;
1491
- var right = content.length;
1492
- var res = -1;
76
+ const calcEllipsisText = (container2, maxHeight2) => {
77
+ const {
78
+ content
79
+ } = props;
80
+ let left = 0;
81
+ let right = content.length;
82
+ let res = -1;
1493
83
  while (left <= right) {
1494
- var mid = Math.floor((left + right) / 2);
1495
- container2.innerText = _sliceInstanceProperty(content).call(content, 0, mid);
84
+ const mid = Math.floor((left + right) / 2);
85
+ container2.innerText = content.slice(0, mid);
1496
86
  if (container2.offsetHeight <= maxHeight2) {
1497
87
  left = mid + 1;
1498
88
  res = mid;
@@ -1500,13 +90,17 @@ __sfc_main.setup = function(__props, __ctx) {
1500
90
  right = mid - 1;
1501
91
  }
1502
92
  }
1503
- return _sliceInstanceProperty(content).call(content, 0, res);
93
+ return content.slice(0, res);
1504
94
  };
1505
- var container = cloneContainer();
95
+ const container = cloneContainer();
1506
96
  if (!container)
1507
97
  return;
1508
- var _container$style = container.style, paddingBottom = _container$style.paddingBottom, paddingTop = _container$style.paddingTop, lineHeight = _container$style.lineHeight;
1509
- var maxHeight = (Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom);
98
+ const {
99
+ paddingBottom,
100
+ paddingTop,
101
+ lineHeight
102
+ } = container.style;
103
+ const maxHeight = (Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom);
1510
104
  if (maxHeight < container.offsetHeight) {
1511
105
  hasAction.value = true;
1512
106
  text.value = calcEllipsisText(container, maxHeight);
@@ -1516,33 +110,31 @@ __sfc_main.setup = function(__props, __ctx) {
1516
110
  }
1517
111
  document.body.removeChild(container);
1518
112
  };
1519
- var calcContentHeight = function calcContentHeight2() {
113
+ const calcContentHeight = () => {
1520
114
  if (!textbox.value)
1521
115
  return;
1522
- var height = textbox.value.offsetHeight;
116
+ const height = textbox.value.offsetHeight;
1523
117
  if (height > maxContentHeight.value) {
1524
118
  hasAction.value = true;
1525
- contentHeight.value = "".concat(maxContentHeight.value, "px");
119
+ contentHeight.value = `${maxContentHeight.value}px`;
1526
120
  }
1527
121
  };
1528
- var init = hasDefaultSlot.value ? calcContentHeight : calcEllipsised;
1529
- var onClickAction = function onClickAction2(event) {
122
+ const init = hasDefaultSlot.value ? calcContentHeight : calcEllipsised;
123
+ const onClickAction = (event) => {
1530
124
  expanded.value = !expanded.value;
1531
125
  if (hasDefaultSlot.value) {
1532
- contentHeight.value = expanded.value ? "auto" : "".concat(maxContentHeight.value, "px");
126
+ contentHeight.value = expanded.value ? "auto" : `${maxContentHeight.value}px`;
1533
127
  }
1534
128
  emit("clickAction", event);
1535
129
  };
1536
- vueDemi.onMounted(function() {
130
+ vueDemi.onMounted(() => {
1537
131
  init();
1538
132
  window.addEventListener("resize", init);
1539
133
  });
1540
- vueDemi.onUnmounted(function() {
134
+ vueDemi.onUnmounted(() => {
1541
135
  window.removeEventListener("resize", init);
1542
136
  });
1543
- vueDemi.watch(function() {
1544
- return [props.content, props.rows];
1545
- }, init);
137
+ vueDemi.watch(() => [props.content, props.rows], init);
1546
138
  return {
1547
139
  text,
1548
140
  expanded,
@@ -1552,62 +144,6 @@ __sfc_main.setup = function(__props, __ctx) {
1552
144
  onClickAction
1553
145
  };
1554
146
  };
1555
- function normalizeComponent(scriptExports, render2, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
1556
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
1557
- if (render2) {
1558
- options.render = render2;
1559
- options.staticRenderFns = staticRenderFns;
1560
- options._compiled = true;
1561
- }
1562
- if (functionalTemplate) {
1563
- options.functional = true;
1564
- }
1565
- if (scopeId) {
1566
- options._scopeId = "data-v-" + scopeId;
1567
- }
1568
- var hook;
1569
- if (moduleIdentifier) {
1570
- hook = function(context) {
1571
- context = context || // cached call
1572
- this.$vnode && this.$vnode.ssrContext || // stateful
1573
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
1574
- if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
1575
- context = __VUE_SSR_CONTEXT__;
1576
- }
1577
- if (injectStyles) {
1578
- injectStyles.call(this, context);
1579
- }
1580
- if (context && context._registeredComponents) {
1581
- context._registeredComponents.add(moduleIdentifier);
1582
- }
1583
- };
1584
- options._ssrRegister = hook;
1585
- } else if (injectStyles) {
1586
- hook = shadowMode ? function() {
1587
- injectStyles.call(
1588
- this,
1589
- (options.functional ? this.parent : this).$root.$options.shadowRoot
1590
- );
1591
- } : injectStyles;
1592
- }
1593
- if (hook) {
1594
- if (options.functional) {
1595
- options._injectStyles = hook;
1596
- var originalRender = options.render;
1597
- options.render = function renderWithStyleInjection(h, context) {
1598
- hook.call(context);
1599
- return originalRender(h, context);
1600
- };
1601
- } else {
1602
- var existing = options.beforeCreate;
1603
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
1604
- }
1605
- }
1606
- return {
1607
- exports: scriptExports,
1608
- options
1609
- };
1610
- }
1611
147
  var _sfc_render = function render() {
1612
148
  var _vm = this, _c = _vm._self._c;
1613
149
  _vm._self._setupProxy;
@@ -1618,7 +154,7 @@ var _sfc_render = function render() {
1618
154
  staticClass: "nf-text-overflow__content",
1619
155
  style: {
1620
156
  height: _vm.contentHeight,
1621
- lineHeight: "".concat(_vm.rowHeight, "px")
157
+ lineHeight: `${_vm.rowHeight}px`
1622
158
  }
1623
159
  }, [_vm._t("default", function() {
1624
160
  return [_vm._v(_vm._s(_vm.expanded ? _vm.content : _vm.text))];
@@ -1629,13 +165,13 @@ var _sfc_render = function render() {
1629
165
  }
1630
166
  }, [_vm._v(" " + _vm._s(_vm.expanded ? _vm.collapseText : _vm.expandText) + " "), _c("i", {
1631
167
  staticClass: "nf-text-overflow__icon",
1632
- "class": [_vm.expanded ? "el-icon-arrow-up" : "el-icon-arrow-down"]
168
+ class: [_vm.expanded ? "el-icon-arrow-up" : "el-icon-arrow-down"]
1633
169
  })]) : _vm._e()]);
1634
170
  };
1635
171
  var _sfc_staticRenderFns = [];
1636
- var __component__ = /* @__PURE__ */ normalizeComponent(__sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
172
+ var __component__ = /* @__PURE__ */ vue2RuntimeHelpers.normalizeComponent(__sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
1637
173
  const NfTextOverflow = __component__.exports;
1638
- NfTextOverflow.install = function(app) {
174
+ NfTextOverflow.install = (app) => {
1639
175
  app.component("nf-text-overflow", NfTextOverflow);
1640
176
  };
1641
177
  exports.default = NfTextOverflow;