@94ai/nf-text-overflow 3.3.37 → 3.3.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,1033 @@
1
1
  import { defineComponent, ref, computed, useSlots, onMounted, onUnmounted, watch } from "vue-demi";
2
2
  import { normalizeComponent } from "@94ai/vue2-runtime-helpers";
3
- const __sfc_main = defineComponent({
3
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
4
+ function getDefaultExportFromCjs(x) {
5
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
6
+ }
7
+ var fails$b = function(exec2) {
8
+ try {
9
+ return !!exec2();
10
+ } catch (error) {
11
+ return true;
12
+ }
13
+ };
14
+ var fails$a = fails$b;
15
+ var functionBindNative = !fails$a(function() {
16
+ var test2 = (function() {
17
+ }).bind();
18
+ return typeof test2 != "function" || test2.hasOwnProperty("prototype");
19
+ });
20
+ var NATIVE_BIND$3 = functionBindNative;
21
+ var FunctionPrototype$1 = Function.prototype;
22
+ var call$6 = FunctionPrototype$1.call;
23
+ var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$1.bind.bind(call$6, call$6);
24
+ var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function(fn) {
25
+ return function() {
26
+ return call$6.apply(fn, arguments);
27
+ };
28
+ };
29
+ var uncurryThis$d = functionUncurryThis;
30
+ var objectIsPrototypeOf = uncurryThis$d({}.isPrototypeOf);
31
+ var check = function(it) {
32
+ return it && it.Math === Math && it;
33
+ };
34
+ var global$a = (
35
+ // eslint-disable-next-line es/no-global-this -- safe
36
+ check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
37
+ check(typeof self == "object" && self) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback
38
+ function() {
39
+ return this;
40
+ }() || commonjsGlobal || Function("return this")()
41
+ );
42
+ var NATIVE_BIND$2 = functionBindNative;
43
+ var FunctionPrototype = Function.prototype;
44
+ var apply$1 = FunctionPrototype.apply;
45
+ var call$5 = FunctionPrototype.call;
46
+ var functionApply = typeof Reflect == "object" && Reflect.apply || (NATIVE_BIND$2 ? call$5.bind(apply$1) : function() {
47
+ return call$5.apply(apply$1, arguments);
48
+ });
49
+ var uncurryThis$c = functionUncurryThis;
50
+ var toString$1 = uncurryThis$c({}.toString);
51
+ var stringSlice = uncurryThis$c("".slice);
52
+ var classofRaw$2 = function(it) {
53
+ return stringSlice(toString$1(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$a = $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$9 = fails$b;
76
+ var descriptors = !fails$9(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$3 = 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$8 = fails$b;
108
+ var classof$4 = classofRaw$2;
109
+ var $Object$3 = Object;
110
+ var split = uncurryThis$a("".split);
111
+ var indexedObject = fails$8(function() {
112
+ return !$Object$3("z").propertyIsEnumerable(0);
113
+ }) ? function(it) {
114
+ return classof$4(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$5 = TypeError;
121
+ var requireObjectCoercible$2 = function(it) {
122
+ if (isNullOrUndefined$1(it))
123
+ throw new $TypeError$5("Can't call method on " + it);
124
+ return it;
125
+ };
126
+ var IndexedObject$2 = indexedObject;
127
+ var requireObjectCoercible$1 = requireObjectCoercible$2;
128
+ var toIndexedObject$4 = function(it) {
129
+ return IndexedObject$2(requireObjectCoercible$1(it));
130
+ };
131
+ var isCallable$9 = isCallable$a;
132
+ var $documentAll = documentAll_1;
133
+ var documentAll = $documentAll.all;
134
+ var isObject$6 = $documentAll.IS_HTMLDDA ? function(it) {
135
+ return typeof it == "object" ? it !== null : isCallable$9(it) || it === documentAll;
136
+ } : function(it) {
137
+ return typeof it == "object" ? it !== null : isCallable$9(it);
138
+ };
139
+ var path$4 = {};
140
+ var path$3 = path$4;
141
+ var global$9 = global$a;
142
+ var isCallable$8 = isCallable$a;
143
+ var aFunction = function(variable) {
144
+ return isCallable$8(variable) ? variable : void 0;
145
+ };
146
+ var getBuiltIn$2 = function(namespace, method2) {
147
+ return arguments.length < 2 ? aFunction(path$3[namespace]) || aFunction(global$9[namespace]) : path$3[namespace] && path$3[namespace][method2] || global$9[namespace] && global$9[namespace][method2];
148
+ };
149
+ var engineUserAgent = typeof navigator != "undefined" && String(navigator.userAgent) || "";
150
+ var global$8 = global$a;
151
+ var userAgent = engineUserAgent;
152
+ var process = global$8.process;
153
+ var Deno = global$8.Deno;
154
+ var versions = process && process.versions || Deno && Deno.version;
155
+ var v8 = versions && versions.v8;
156
+ var match, version;
157
+ if (v8) {
158
+ match = v8.split(".");
159
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
160
+ }
161
+ if (!version && userAgent) {
162
+ match = userAgent.match(/Edge\/(\d+)/);
163
+ if (!match || match[1] >= 74) {
164
+ match = userAgent.match(/Chrome\/(\d+)/);
165
+ if (match)
166
+ version = +match[1];
167
+ }
168
+ }
169
+ var engineV8Version = version;
170
+ var V8_VERSION$1 = engineV8Version;
171
+ var fails$7 = fails$b;
172
+ var global$7 = global$a;
173
+ var $String$2 = global$7.String;
174
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function() {
175
+ var symbol = Symbol("symbol detection");
176
+ return !$String$2(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
177
+ !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
178
+ });
179
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
180
+ var useSymbolAsUid = NATIVE_SYMBOL$1 && !Symbol.sham && typeof Symbol.iterator == "symbol";
181
+ var getBuiltIn$1 = getBuiltIn$2;
182
+ var isCallable$7 = isCallable$a;
183
+ var isPrototypeOf$2 = objectIsPrototypeOf;
184
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
185
+ var $Object$2 = Object;
186
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function(it) {
187
+ return typeof it == "symbol";
188
+ } : function(it) {
189
+ var $Symbol = getBuiltIn$1("Symbol");
190
+ return isCallable$7($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
191
+ };
192
+ var $String$1 = String;
193
+ var tryToString$1 = function(argument) {
194
+ try {
195
+ return $String$1(argument);
196
+ } catch (error) {
197
+ return "Object";
198
+ }
199
+ };
200
+ var isCallable$6 = isCallable$a;
201
+ var tryToString = tryToString$1;
202
+ var $TypeError$4 = TypeError;
203
+ var aCallable$2 = function(argument) {
204
+ if (isCallable$6(argument))
205
+ return argument;
206
+ throw new $TypeError$4(tryToString(argument) + " is not a function");
207
+ };
208
+ var aCallable$1 = aCallable$2;
209
+ var isNullOrUndefined = isNullOrUndefined$2;
210
+ var getMethod$1 = function(V, P) {
211
+ var func = V[P];
212
+ return isNullOrUndefined(func) ? void 0 : aCallable$1(func);
213
+ };
214
+ var call$3 = functionCall;
215
+ var isCallable$5 = isCallable$a;
216
+ var isObject$5 = isObject$6;
217
+ var $TypeError$3 = TypeError;
218
+ var ordinaryToPrimitive$1 = function(input, pref) {
219
+ var fn, val;
220
+ if (pref === "string" && isCallable$5(fn = input.toString) && !isObject$5(val = call$3(fn, input)))
221
+ return val;
222
+ if (isCallable$5(fn = input.valueOf) && !isObject$5(val = call$3(fn, input)))
223
+ return val;
224
+ if (pref !== "string" && isCallable$5(fn = input.toString) && !isObject$5(val = call$3(fn, input)))
225
+ return val;
226
+ throw new $TypeError$3("Can't convert object to primitive value");
227
+ };
228
+ var shared$1 = { exports: {} };
229
+ var global$6 = global$a;
230
+ var defineProperty$1 = Object.defineProperty;
231
+ var defineGlobalProperty$1 = function(key, value) {
232
+ try {
233
+ defineProperty$1(global$6, key, {
234
+ value,
235
+ configurable: true,
236
+ writable: true
237
+ });
238
+ } catch (error) {
239
+ global$6[key] = value;
240
+ }
241
+ return value;
242
+ };
243
+ var global$5 = global$a;
244
+ var defineGlobalProperty = defineGlobalProperty$1;
245
+ var SHARED = "__core-js_shared__";
246
+ var store$2 = global$5[SHARED] || defineGlobalProperty(SHARED, {});
247
+ var sharedStore = store$2;
248
+ var store$1 = sharedStore;
249
+ (shared$1.exports = function(key, value) {
250
+ return store$1[key] || (store$1[key] = value !== void 0 ? value : {});
251
+ })("versions", []).push({
252
+ version: "3.33.2",
253
+ mode: "pure",
254
+ copyright: "© 2014-2023 Denis Pushkarev (zloirock.ru)",
255
+ license: "https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",
256
+ source: "https://github.com/zloirock/core-js"
257
+ });
258
+ var sharedExports = shared$1.exports;
259
+ var requireObjectCoercible = requireObjectCoercible$2;
260
+ var $Object$1 = Object;
261
+ var toObject$3 = function(argument) {
262
+ return $Object$1(requireObjectCoercible(argument));
263
+ };
264
+ var uncurryThis$9 = functionUncurryThis;
265
+ var toObject$2 = toObject$3;
266
+ var hasOwnProperty = uncurryThis$9({}.hasOwnProperty);
267
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
268
+ return hasOwnProperty(toObject$2(it), key);
269
+ };
270
+ var uncurryThis$8 = functionUncurryThis;
271
+ var id = 0;
272
+ var postfix = Math.random();
273
+ var toString = uncurryThis$8(1 .toString);
274
+ var uid$1 = function(key) {
275
+ return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString(++id + postfix, 36);
276
+ };
277
+ var global$4 = global$a;
278
+ var shared = sharedExports;
279
+ var hasOwn$4 = hasOwnProperty_1;
280
+ var uid = uid$1;
281
+ var NATIVE_SYMBOL = symbolConstructorDetection;
282
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
283
+ var Symbol$1 = global$4.Symbol;
284
+ var WellKnownSymbolsStore = shared("wks");
285
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1["for"] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
286
+ var wellKnownSymbol$6 = function(name) {
287
+ if (!hasOwn$4(WellKnownSymbolsStore, name)) {
288
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$4(Symbol$1, name) ? Symbol$1[name] : createWellKnownSymbol("Symbol." + name);
289
+ }
290
+ return WellKnownSymbolsStore[name];
291
+ };
292
+ var call$2 = functionCall;
293
+ var isObject$4 = isObject$6;
294
+ var isSymbol$1 = isSymbol$2;
295
+ var getMethod = getMethod$1;
296
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
297
+ var wellKnownSymbol$5 = wellKnownSymbol$6;
298
+ var $TypeError$2 = TypeError;
299
+ var TO_PRIMITIVE = wellKnownSymbol$5("toPrimitive");
300
+ var toPrimitive$1 = function(input, pref) {
301
+ if (!isObject$4(input) || isSymbol$1(input))
302
+ return input;
303
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
304
+ var result;
305
+ if (exoticToPrim) {
306
+ if (pref === void 0)
307
+ pref = "default";
308
+ result = call$2(exoticToPrim, input, pref);
309
+ if (!isObject$4(result) || isSymbol$1(result))
310
+ return result;
311
+ throw new $TypeError$2("Can't convert object to primitive value");
312
+ }
313
+ if (pref === void 0)
314
+ pref = "number";
315
+ return ordinaryToPrimitive(input, pref);
316
+ };
317
+ var toPrimitive = toPrimitive$1;
318
+ var isSymbol = isSymbol$2;
319
+ var toPropertyKey$3 = function(argument) {
320
+ var key = toPrimitive(argument, "string");
321
+ return isSymbol(key) ? key : key + "";
322
+ };
323
+ var global$3 = global$a;
324
+ var isObject$3 = isObject$6;
325
+ var document$1 = global$3.document;
326
+ var EXISTS = isObject$3(document$1) && isObject$3(document$1.createElement);
327
+ var documentCreateElement = function(it) {
328
+ return EXISTS ? document$1.createElement(it) : {};
329
+ };
330
+ var DESCRIPTORS$5 = descriptors;
331
+ var fails$6 = fails$b;
332
+ var createElement = documentCreateElement;
333
+ var ie8DomDefine = !DESCRIPTORS$5 && !fails$6(function() {
334
+ return Object.defineProperty(createElement("div"), "a", {
335
+ get: function() {
336
+ return 7;
337
+ }
338
+ }).a !== 7;
339
+ });
340
+ var DESCRIPTORS$4 = descriptors;
341
+ var call$1 = functionCall;
342
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
343
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
344
+ var toIndexedObject$3 = toIndexedObject$4;
345
+ var toPropertyKey$2 = toPropertyKey$3;
346
+ var hasOwn$3 = hasOwnProperty_1;
347
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
348
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
349
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
350
+ O = toIndexedObject$3(O);
351
+ P = toPropertyKey$2(P);
352
+ if (IE8_DOM_DEFINE$1)
353
+ try {
354
+ return $getOwnPropertyDescriptor$1(O, P);
355
+ } catch (error) {
356
+ }
357
+ if (hasOwn$3(O, P))
358
+ return createPropertyDescriptor$2(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
359
+ };
360
+ var fails$5 = fails$b;
361
+ var isCallable$4 = isCallable$a;
362
+ var replacement = /#|\.prototype\./;
363
+ var isForced$1 = function(feature, detection) {
364
+ var value = data[normalize(feature)];
365
+ return value === POLYFILL ? true : value === NATIVE ? false : isCallable$4(detection) ? fails$5(detection) : !!detection;
366
+ };
367
+ var normalize = isForced$1.normalize = function(string) {
368
+ return String(string).replace(replacement, ".").toLowerCase();
369
+ };
370
+ var data = isForced$1.data = {};
371
+ var NATIVE = isForced$1.NATIVE = "N";
372
+ var POLYFILL = isForced$1.POLYFILL = "P";
373
+ var isForced_1 = isForced$1;
374
+ var uncurryThis$7 = functionUncurryThisClause;
375
+ var aCallable = aCallable$2;
376
+ var NATIVE_BIND = functionBindNative;
377
+ var bind$2 = uncurryThis$7(uncurryThis$7.bind);
378
+ var functionBindContext = function(fn, that) {
379
+ aCallable(fn);
380
+ return that === void 0 ? fn : NATIVE_BIND ? bind$2(fn, that) : function() {
381
+ return fn.apply(that, arguments);
382
+ };
383
+ };
384
+ var objectDefineProperty = {};
385
+ var DESCRIPTORS$3 = descriptors;
386
+ var fails$4 = fails$b;
387
+ var v8PrototypeDefineBug = DESCRIPTORS$3 && fails$4(function() {
388
+ return Object.defineProperty(function() {
389
+ }, "prototype", {
390
+ value: 42,
391
+ writable: false
392
+ }).prototype !== 42;
393
+ });
394
+ var isObject$2 = isObject$6;
395
+ var $String = String;
396
+ var $TypeError$1 = TypeError;
397
+ var anObject$1 = function(argument) {
398
+ if (isObject$2(argument))
399
+ return argument;
400
+ throw new $TypeError$1($String(argument) + " is not an object");
401
+ };
402
+ var DESCRIPTORS$2 = descriptors;
403
+ var IE8_DOM_DEFINE = ie8DomDefine;
404
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
405
+ var anObject = anObject$1;
406
+ var toPropertyKey$1 = toPropertyKey$3;
407
+ var $TypeError = TypeError;
408
+ var $defineProperty = Object.defineProperty;
409
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
410
+ var ENUMERABLE = "enumerable";
411
+ var CONFIGURABLE = "configurable";
412
+ var WRITABLE = "writable";
413
+ objectDefineProperty.f = DESCRIPTORS$2 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
414
+ anObject(O);
415
+ P = toPropertyKey$1(P);
416
+ anObject(Attributes);
417
+ if (typeof O === "function" && P === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
418
+ var current = $getOwnPropertyDescriptor(O, P);
419
+ if (current && current[WRITABLE]) {
420
+ O[P] = Attributes.value;
421
+ Attributes = {
422
+ configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
423
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
424
+ writable: false
425
+ };
426
+ }
427
+ }
428
+ return $defineProperty(O, P, Attributes);
429
+ } : $defineProperty : function defineProperty2(O, P, Attributes) {
430
+ anObject(O);
431
+ P = toPropertyKey$1(P);
432
+ anObject(Attributes);
433
+ if (IE8_DOM_DEFINE)
434
+ try {
435
+ return $defineProperty(O, P, Attributes);
436
+ } catch (error) {
437
+ }
438
+ if ("get" in Attributes || "set" in Attributes)
439
+ throw new $TypeError("Accessors not supported");
440
+ if ("value" in Attributes)
441
+ O[P] = Attributes.value;
442
+ return O;
443
+ };
444
+ var DESCRIPTORS$1 = descriptors;
445
+ var definePropertyModule$1 = objectDefineProperty;
446
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
447
+ var createNonEnumerableProperty$1 = DESCRIPTORS$1 ? function(object, key, value) {
448
+ return definePropertyModule$1.f(object, key, createPropertyDescriptor$1(1, value));
449
+ } : function(object, key, value) {
450
+ object[key] = value;
451
+ return object;
452
+ };
453
+ var global$2 = global$a;
454
+ var apply = functionApply;
455
+ var uncurryThis$6 = functionUncurryThisClause;
456
+ var isCallable$3 = isCallable$a;
457
+ var getOwnPropertyDescriptor2 = objectGetOwnPropertyDescriptor.f;
458
+ var isForced = isForced_1;
459
+ var path$2 = path$4;
460
+ var bind$1 = functionBindContext;
461
+ var createNonEnumerableProperty = createNonEnumerableProperty$1;
462
+ var hasOwn$2 = hasOwnProperty_1;
463
+ var wrapConstructor = function(NativeConstructor) {
464
+ var Wrapper = function(a, b, c) {
465
+ if (this instanceof Wrapper) {
466
+ switch (arguments.length) {
467
+ case 0:
468
+ return new NativeConstructor();
469
+ case 1:
470
+ return new NativeConstructor(a);
471
+ case 2:
472
+ return new NativeConstructor(a, b);
473
+ }
474
+ return new NativeConstructor(a, b, c);
475
+ }
476
+ return apply(NativeConstructor, this, arguments);
477
+ };
478
+ Wrapper.prototype = NativeConstructor.prototype;
479
+ return Wrapper;
480
+ };
481
+ var _export = function(options, source) {
482
+ var TARGET = options.target;
483
+ var GLOBAL = options.global;
484
+ var STATIC = options.stat;
485
+ var PROTO = options.proto;
486
+ var nativeSource = GLOBAL ? global$2 : STATIC ? global$2[TARGET] : (global$2[TARGET] || {}).prototype;
487
+ var target = GLOBAL ? path$2 : path$2[TARGET] || createNonEnumerableProperty(path$2, TARGET, {})[TARGET];
488
+ var targetPrototype = target.prototype;
489
+ var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;
490
+ var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;
491
+ for (key in source) {
492
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
493
+ USE_NATIVE = !FORCED && nativeSource && hasOwn$2(nativeSource, key);
494
+ targetProperty = target[key];
495
+ if (USE_NATIVE)
496
+ if (options.dontCallGetSet) {
497
+ descriptor = getOwnPropertyDescriptor2(nativeSource, key);
498
+ nativeProperty = descriptor && descriptor.value;
499
+ } else
500
+ nativeProperty = nativeSource[key];
501
+ sourceProperty = USE_NATIVE && nativeProperty ? nativeProperty : source[key];
502
+ if (USE_NATIVE && typeof targetProperty == typeof sourceProperty)
503
+ continue;
504
+ if (options.bind && USE_NATIVE)
505
+ resultProperty = bind$1(sourceProperty, global$2);
506
+ else if (options.wrap && USE_NATIVE)
507
+ resultProperty = wrapConstructor(sourceProperty);
508
+ else if (PROTO && isCallable$3(sourceProperty))
509
+ resultProperty = uncurryThis$6(sourceProperty);
510
+ else
511
+ resultProperty = sourceProperty;
512
+ if (options.sham || sourceProperty && sourceProperty.sham || targetProperty && targetProperty.sham) {
513
+ createNonEnumerableProperty(resultProperty, "sham", true);
514
+ }
515
+ createNonEnumerableProperty(target, key, resultProperty);
516
+ if (PROTO) {
517
+ VIRTUAL_PROTOTYPE = TARGET + "Prototype";
518
+ if (!hasOwn$2(path$2, VIRTUAL_PROTOTYPE)) {
519
+ createNonEnumerableProperty(path$2, VIRTUAL_PROTOTYPE, {});
520
+ }
521
+ createNonEnumerableProperty(path$2[VIRTUAL_PROTOTYPE], key, sourceProperty);
522
+ if (options.real && targetPrototype && (FORCED || !targetPrototype[key])) {
523
+ createNonEnumerableProperty(targetPrototype, key, sourceProperty);
524
+ }
525
+ }
526
+ }
527
+ };
528
+ var classof$3 = classofRaw$2;
529
+ var isArray$2 = Array.isArray || function isArray(argument) {
530
+ return classof$3(argument) === "Array";
531
+ };
532
+ var wellKnownSymbol$4 = wellKnownSymbol$6;
533
+ var TO_STRING_TAG$1 = wellKnownSymbol$4("toStringTag");
534
+ var test = {};
535
+ test[TO_STRING_TAG$1] = "z";
536
+ var toStringTagSupport = String(test) === "[object z]";
537
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
538
+ var isCallable$2 = isCallable$a;
539
+ var classofRaw = classofRaw$2;
540
+ var wellKnownSymbol$3 = wellKnownSymbol$6;
541
+ var TO_STRING_TAG = wellKnownSymbol$3("toStringTag");
542
+ var $Object = Object;
543
+ var CORRECT_ARGUMENTS = classofRaw(function() {
544
+ return arguments;
545
+ }()) === "Arguments";
546
+ var tryGet = function(it, key) {
547
+ try {
548
+ return it[key];
549
+ } catch (error) {
550
+ }
551
+ };
552
+ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function(it) {
553
+ var O, tag, result;
554
+ 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$2(O.callee) ? "Arguments" : result;
555
+ };
556
+ var uncurryThis$5 = functionUncurryThis;
557
+ var isCallable$1 = isCallable$a;
558
+ var store = sharedStore;
559
+ var functionToString = uncurryThis$5(Function.toString);
560
+ if (!isCallable$1(store.inspectSource)) {
561
+ store.inspectSource = function(it) {
562
+ return functionToString(it);
563
+ };
564
+ }
565
+ var inspectSource$1 = store.inspectSource;
566
+ var uncurryThis$4 = functionUncurryThis;
567
+ var fails$3 = fails$b;
568
+ var isCallable = isCallable$a;
569
+ var classof$1 = classof$2;
570
+ var getBuiltIn = getBuiltIn$2;
571
+ var inspectSource = inspectSource$1;
572
+ var noop = function() {
573
+ };
574
+ var empty = [];
575
+ var construct = getBuiltIn("Reflect", "construct");
576
+ var constructorRegExp = /^\s*(?:class|function)\b/;
577
+ var exec = uncurryThis$4(constructorRegExp.exec);
578
+ var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
579
+ var isConstructorModern = function isConstructor(argument) {
580
+ if (!isCallable(argument))
581
+ return false;
582
+ try {
583
+ construct(noop, empty, argument);
584
+ return true;
585
+ } catch (error) {
586
+ return false;
587
+ }
588
+ };
589
+ var isConstructorLegacy = function isConstructor2(argument) {
590
+ if (!isCallable(argument))
591
+ return false;
592
+ switch (classof$1(argument)) {
593
+ case "AsyncFunction":
594
+ case "GeneratorFunction":
595
+ case "AsyncGeneratorFunction":
596
+ return false;
597
+ }
598
+ try {
599
+ return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
600
+ } catch (error) {
601
+ return true;
602
+ }
603
+ };
604
+ isConstructorLegacy.sham = true;
605
+ var isConstructor$2 = !construct || fails$3(function() {
606
+ var called;
607
+ return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function() {
608
+ called = true;
609
+ }) || called;
610
+ }) ? isConstructorLegacy : isConstructorModern;
611
+ var ceil = Math.ceil;
612
+ var floor = Math.floor;
613
+ var mathTrunc = Math.trunc || function trunc(x) {
614
+ var n = +x;
615
+ return (n > 0 ? floor : ceil)(n);
616
+ };
617
+ var trunc2 = mathTrunc;
618
+ var toIntegerOrInfinity$2 = function(argument) {
619
+ var number = +argument;
620
+ return number !== number || number === 0 ? 0 : trunc2(number);
621
+ };
622
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
623
+ var max$1 = Math.max;
624
+ var min$1 = Math.min;
625
+ var toAbsoluteIndex$2 = function(index, length) {
626
+ var integer = toIntegerOrInfinity$1(index);
627
+ return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
628
+ };
629
+ var toIntegerOrInfinity = toIntegerOrInfinity$2;
630
+ var min = Math.min;
631
+ var toLength$1 = function(argument) {
632
+ return argument > 0 ? min(toIntegerOrInfinity(argument), 9007199254740991) : 0;
633
+ };
634
+ var toLength = toLength$1;
635
+ var lengthOfArrayLike$3 = function(obj) {
636
+ return toLength(obj.length);
637
+ };
638
+ var toPropertyKey = toPropertyKey$3;
639
+ var definePropertyModule = objectDefineProperty;
640
+ var createPropertyDescriptor = createPropertyDescriptor$3;
641
+ var createProperty$1 = function(object, key, value) {
642
+ var propertyKey = toPropertyKey(key);
643
+ if (propertyKey in object)
644
+ definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
645
+ else
646
+ object[propertyKey] = value;
647
+ };
648
+ var fails$2 = fails$b;
649
+ var wellKnownSymbol$2 = wellKnownSymbol$6;
650
+ var V8_VERSION = engineV8Version;
651
+ var SPECIES$2 = wellKnownSymbol$2("species");
652
+ var arrayMethodHasSpeciesSupport$1 = function(METHOD_NAME) {
653
+ return V8_VERSION >= 51 || !fails$2(function() {
654
+ var array = [];
655
+ var constructor = array.constructor = {};
656
+ constructor[SPECIES$2] = function() {
657
+ return {
658
+ foo: 1
659
+ };
660
+ };
661
+ return array[METHOD_NAME](Boolean).foo !== 1;
662
+ });
663
+ };
664
+ var uncurryThis$3 = functionUncurryThis;
665
+ var arraySlice = uncurryThis$3([].slice);
666
+ var $$2 = _export;
667
+ var isArray$1 = isArray$2;
668
+ var isConstructor$1 = isConstructor$2;
669
+ var isObject$1 = isObject$6;
670
+ var toAbsoluteIndex$1 = toAbsoluteIndex$2;
671
+ var lengthOfArrayLike$2 = lengthOfArrayLike$3;
672
+ var toIndexedObject$2 = toIndexedObject$4;
673
+ var createProperty = createProperty$1;
674
+ var wellKnownSymbol$1 = wellKnownSymbol$6;
675
+ var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
676
+ var nativeSlice = arraySlice;
677
+ var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("slice");
678
+ var SPECIES$1 = wellKnownSymbol$1("species");
679
+ var $Array$1 = Array;
680
+ var max = Math.max;
681
+ $$2({
682
+ target: "Array",
683
+ proto: true,
684
+ forced: !HAS_SPECIES_SUPPORT
685
+ }, {
686
+ slice: function slice(start, end) {
687
+ var O = toIndexedObject$2(this);
688
+ var length = lengthOfArrayLike$2(O);
689
+ var k = toAbsoluteIndex$1(start, length);
690
+ var fin = toAbsoluteIndex$1(end === void 0 ? length : end, length);
691
+ var Constructor, result, n;
692
+ if (isArray$1(O)) {
693
+ Constructor = O.constructor;
694
+ if (isConstructor$1(Constructor) && (Constructor === $Array$1 || isArray$1(Constructor.prototype))) {
695
+ Constructor = void 0;
696
+ } else if (isObject$1(Constructor)) {
697
+ Constructor = Constructor[SPECIES$1];
698
+ if (Constructor === null)
699
+ Constructor = void 0;
700
+ }
701
+ if (Constructor === $Array$1 || Constructor === void 0) {
702
+ return nativeSlice(O, k, fin);
703
+ }
704
+ }
705
+ result = new (Constructor === void 0 ? $Array$1 : Constructor)(max(fin - k, 0));
706
+ for (n = 0; k < fin; k++, n++)
707
+ if (k in O)
708
+ createProperty(result, n, O[k]);
709
+ result.length = n;
710
+ return result;
711
+ }
712
+ });
713
+ var global$1 = global$a;
714
+ var path$1 = path$4;
715
+ var getBuiltInPrototypeMethod$2 = function(CONSTRUCTOR, METHOD) {
716
+ var Namespace = path$1[CONSTRUCTOR + "Prototype"];
717
+ var pureMethod = Namespace && Namespace[METHOD];
718
+ if (pureMethod)
719
+ return pureMethod;
720
+ var NativeConstructor = global$1[CONSTRUCTOR];
721
+ var NativePrototype = NativeConstructor && NativeConstructor.prototype;
722
+ return NativePrototype && NativePrototype[METHOD];
723
+ };
724
+ var getBuiltInPrototypeMethod$1 = getBuiltInPrototypeMethod$2;
725
+ var slice$6 = getBuiltInPrototypeMethod$1("Array", "slice");
726
+ var isPrototypeOf$1 = objectIsPrototypeOf;
727
+ var method$1 = slice$6;
728
+ var ArrayPrototype$1 = Array.prototype;
729
+ var slice$5 = function(it) {
730
+ var own = it.slice;
731
+ return it === ArrayPrototype$1 || isPrototypeOf$1(ArrayPrototype$1, it) && own === ArrayPrototype$1.slice ? method$1 : own;
732
+ };
733
+ var parent$8 = slice$5;
734
+ var slice$4 = parent$8;
735
+ var parent$7 = slice$4;
736
+ var slice$3 = parent$7;
737
+ var parent$6 = slice$3;
738
+ var slice$2 = parent$6;
739
+ var slice$1 = slice$2;
740
+ var slice2 = slice$1;
741
+ const _sliceInstanceProperty = /* @__PURE__ */ getDefaultExportFromCjs(slice2);
742
+ var isArray2 = isArray$2;
743
+ var isConstructor3 = isConstructor$2;
744
+ var isObject = isObject$6;
745
+ var wellKnownSymbol = wellKnownSymbol$6;
746
+ var SPECIES = wellKnownSymbol("species");
747
+ var $Array = Array;
748
+ var arraySpeciesConstructor$1 = function(originalArray) {
749
+ var C;
750
+ if (isArray2(originalArray)) {
751
+ C = originalArray.constructor;
752
+ if (isConstructor3(C) && (C === $Array || isArray2(C.prototype)))
753
+ C = void 0;
754
+ else if (isObject(C)) {
755
+ C = C[SPECIES];
756
+ if (C === null)
757
+ C = void 0;
758
+ }
759
+ }
760
+ return C === void 0 ? $Array : C;
761
+ };
762
+ var arraySpeciesConstructor = arraySpeciesConstructor$1;
763
+ var arraySpeciesCreate$1 = function(originalArray, length) {
764
+ return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
765
+ };
766
+ var bind = functionBindContext;
767
+ var uncurryThis$2 = functionUncurryThis;
768
+ var IndexedObject$1 = indexedObject;
769
+ var toObject$1 = toObject$3;
770
+ var lengthOfArrayLike$1 = lengthOfArrayLike$3;
771
+ var arraySpeciesCreate = arraySpeciesCreate$1;
772
+ var push$1 = uncurryThis$2([].push);
773
+ var createMethod$1 = function(TYPE) {
774
+ var IS_MAP = TYPE === 1;
775
+ var IS_FILTER = TYPE === 2;
776
+ var IS_SOME = TYPE === 3;
777
+ var IS_EVERY = TYPE === 4;
778
+ var IS_FIND_INDEX = TYPE === 6;
779
+ var IS_FILTER_REJECT = TYPE === 7;
780
+ var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
781
+ return function($this, callbackfn, that, specificCreate) {
782
+ var O = toObject$1($this);
783
+ var self2 = IndexedObject$1(O);
784
+ var boundFunction = bind(callbackfn, that);
785
+ var length = lengthOfArrayLike$1(self2);
786
+ var index = 0;
787
+ var create = specificCreate || arraySpeciesCreate;
788
+ var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : void 0;
789
+ var value, result;
790
+ for (; length > index; index++)
791
+ if (NO_HOLES || index in self2) {
792
+ value = self2[index];
793
+ result = boundFunction(value, index, O);
794
+ if (TYPE) {
795
+ if (IS_MAP)
796
+ target[index] = result;
797
+ else if (result)
798
+ switch (TYPE) {
799
+ case 3:
800
+ return true;
801
+ case 5:
802
+ return value;
803
+ case 6:
804
+ return index;
805
+ case 2:
806
+ push$1(target, value);
807
+ }
808
+ else
809
+ switch (TYPE) {
810
+ case 4:
811
+ return false;
812
+ case 7:
813
+ push$1(target, value);
814
+ }
815
+ }
816
+ }
817
+ return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
818
+ };
819
+ };
820
+ var arrayIteration = {
821
+ // `Array.prototype.forEach` method
822
+ // https://tc39.es/ecma262/#sec-array.prototype.foreach
823
+ forEach: createMethod$1(0),
824
+ // `Array.prototype.map` method
825
+ // https://tc39.es/ecma262/#sec-array.prototype.map
826
+ map: createMethod$1(1),
827
+ // `Array.prototype.filter` method
828
+ // https://tc39.es/ecma262/#sec-array.prototype.filter
829
+ filter: createMethod$1(2),
830
+ // `Array.prototype.some` method
831
+ // https://tc39.es/ecma262/#sec-array.prototype.some
832
+ some: createMethod$1(3),
833
+ // `Array.prototype.every` method
834
+ // https://tc39.es/ecma262/#sec-array.prototype.every
835
+ every: createMethod$1(4),
836
+ // `Array.prototype.find` method
837
+ // https://tc39.es/ecma262/#sec-array.prototype.find
838
+ find: createMethod$1(5),
839
+ // `Array.prototype.findIndex` method
840
+ // https://tc39.es/ecma262/#sec-array.prototype.findIndex
841
+ findIndex: createMethod$1(6),
842
+ // `Array.prototype.filterReject` method
843
+ // https://github.com/tc39/proposal-array-filtering
844
+ filterReject: createMethod$1(7)
845
+ };
846
+ var fails$1 = fails$b;
847
+ var arrayMethodIsStrict$1 = function(METHOD_NAME, argument) {
848
+ var method2 = [][METHOD_NAME];
849
+ return !!method2 && fails$1(function() {
850
+ method2.call(null, argument || function() {
851
+ return 1;
852
+ }, 1);
853
+ });
854
+ };
855
+ var $forEach = arrayIteration.forEach;
856
+ var arrayMethodIsStrict = arrayMethodIsStrict$1;
857
+ var STRICT_METHOD = arrayMethodIsStrict("forEach");
858
+ var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn) {
859
+ return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
860
+ } : [].forEach;
861
+ var $$1 = _export;
862
+ var forEach$7 = arrayForEach;
863
+ $$1({
864
+ target: "Array",
865
+ proto: true,
866
+ forced: [].forEach !== forEach$7
867
+ }, {
868
+ forEach: forEach$7
869
+ });
870
+ var getBuiltInPrototypeMethod = getBuiltInPrototypeMethod$2;
871
+ var forEach$6 = getBuiltInPrototypeMethod("Array", "forEach");
872
+ var parent$5 = forEach$6;
873
+ var forEach$5 = parent$5;
874
+ var classof = classof$2;
875
+ var hasOwn$1 = hasOwnProperty_1;
876
+ var isPrototypeOf = objectIsPrototypeOf;
877
+ var method = forEach$5;
878
+ var ArrayPrototype = Array.prototype;
879
+ var DOMIterables = {
880
+ DOMTokenList: true,
881
+ NodeList: true
882
+ };
883
+ var forEach$4 = function(it) {
884
+ var own = it.forEach;
885
+ return it === ArrayPrototype || isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.forEach || hasOwn$1(DOMIterables, classof(it)) ? method : own;
886
+ };
887
+ var parent$4 = forEach$4;
888
+ var forEach$3 = parent$4;
889
+ var parent$3 = forEach$3;
890
+ var forEach$2 = parent$3;
891
+ var forEach$1 = forEach$2;
892
+ var forEach2 = forEach$1;
893
+ const _forEachInstanceProperty = /* @__PURE__ */ getDefaultExportFromCjs(forEach2);
894
+ var toIndexedObject$1 = toIndexedObject$4;
895
+ var toAbsoluteIndex = toAbsoluteIndex$2;
896
+ var lengthOfArrayLike = lengthOfArrayLike$3;
897
+ var createMethod = function(IS_INCLUDES) {
898
+ return function($this, el, fromIndex) {
899
+ var O = toIndexedObject$1($this);
900
+ var length = lengthOfArrayLike(O);
901
+ var index = toAbsoluteIndex(fromIndex, length);
902
+ var value;
903
+ if (IS_INCLUDES && el !== el)
904
+ while (length > index) {
905
+ value = O[index++];
906
+ if (value !== value)
907
+ return true;
908
+ }
909
+ else
910
+ for (; length > index; index++) {
911
+ if ((IS_INCLUDES || index in O) && O[index] === el)
912
+ return IS_INCLUDES || index || 0;
913
+ }
914
+ return !IS_INCLUDES && -1;
915
+ };
916
+ };
917
+ var arrayIncludes = {
918
+ // `Array.prototype.includes` method
919
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
920
+ includes: createMethod(true),
921
+ // `Array.prototype.indexOf` method
922
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
923
+ indexOf: createMethod(false)
924
+ };
925
+ var hiddenKeys$1 = {};
926
+ var uncurryThis$1 = functionUncurryThis;
927
+ var hasOwn2 = hasOwnProperty_1;
928
+ var toIndexedObject = toIndexedObject$4;
929
+ var indexOf = arrayIncludes.indexOf;
930
+ var hiddenKeys = hiddenKeys$1;
931
+ var push = uncurryThis$1([].push);
932
+ var objectKeysInternal = function(object, names) {
933
+ var O = toIndexedObject(object);
934
+ var i = 0;
935
+ var result = [];
936
+ var key;
937
+ for (key in O)
938
+ !hasOwn2(hiddenKeys, key) && hasOwn2(O, key) && push(result, key);
939
+ while (names.length > i)
940
+ if (hasOwn2(O, key = names[i++])) {
941
+ ~indexOf(result, key) || push(result, key);
942
+ }
943
+ return result;
944
+ };
945
+ var enumBugKeys$1 = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"];
946
+ var internalObjectKeys = objectKeysInternal;
947
+ var enumBugKeys = enumBugKeys$1;
948
+ var objectKeys$1 = Object.keys || function keys(O) {
949
+ return internalObjectKeys(O, enumBugKeys);
950
+ };
951
+ var objectGetOwnPropertySymbols = {};
952
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
953
+ var DESCRIPTORS = descriptors;
954
+ var uncurryThis = functionUncurryThis;
955
+ var call = functionCall;
956
+ var fails = fails$b;
957
+ var objectKeys = objectKeys$1;
958
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
959
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
960
+ var toObject = toObject$3;
961
+ var IndexedObject = indexedObject;
962
+ var $assign = Object.assign;
963
+ var defineProperty3 = Object.defineProperty;
964
+ var concat = uncurryThis([].concat);
965
+ var objectAssign = !$assign || fails(function() {
966
+ if (DESCRIPTORS && $assign({
967
+ b: 1
968
+ }, $assign(defineProperty3({}, "a", {
969
+ enumerable: true,
970
+ get: function() {
971
+ defineProperty3(this, "b", {
972
+ value: 3,
973
+ enumerable: false
974
+ });
975
+ }
976
+ }), {
977
+ b: 2
978
+ })).b !== 1)
979
+ return true;
980
+ var A = {};
981
+ var B = {};
982
+ var symbol = Symbol("assign detection");
983
+ var alphabet = "abcdefghijklmnopqrst";
984
+ A[symbol] = 7;
985
+ alphabet.split("").forEach(function(chr) {
986
+ B[chr] = chr;
987
+ });
988
+ return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join("") !== alphabet;
989
+ }) ? function assign(target, source) {
990
+ var T = toObject(target);
991
+ var argumentsLength = arguments.length;
992
+ var index = 1;
993
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
994
+ var propertyIsEnumerable2 = propertyIsEnumerableModule.f;
995
+ while (argumentsLength > index) {
996
+ var S = IndexedObject(arguments[index++]);
997
+ var keys2 = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
998
+ var length = keys2.length;
999
+ var j = 0;
1000
+ var key;
1001
+ while (length > j) {
1002
+ key = keys2[j++];
1003
+ if (!DESCRIPTORS || call(propertyIsEnumerable2, S, key))
1004
+ T[key] = S[key];
1005
+ }
1006
+ }
1007
+ return T;
1008
+ } : $assign;
1009
+ var $ = _export;
1010
+ var assign$6 = objectAssign;
1011
+ $({
1012
+ target: "Object",
1013
+ stat: true,
1014
+ arity: 2,
1015
+ forced: Object.assign !== assign$6
1016
+ }, {
1017
+ assign: assign$6
1018
+ });
1019
+ var path = path$4;
1020
+ var assign$5 = path.Object.assign;
1021
+ var parent$2 = assign$5;
1022
+ var assign$4 = parent$2;
1023
+ var parent$1 = assign$4;
1024
+ var assign$3 = parent$1;
1025
+ var parent = assign$3;
1026
+ var assign$2 = parent;
1027
+ var assign$1 = assign$2;
1028
+ var assign2 = assign$1;
1029
+ const _Object$assign = /* @__PURE__ */ getDefaultExportFromCjs(assign2);
1030
+ var __sfc_main = defineComponent({
4
1031
  name: "nf-text-overflow"
5
1032
  });
6
1033
  __sfc_main.props = {
@@ -8,57 +1035,61 @@ __sfc_main.props = {
8
1035
  key: "content",
9
1036
  required: false,
10
1037
  type: String,
11
- default: ""
1038
+ "default": ""
12
1039
  },
13
1040
  expandText: {
14
1041
  key: "expandText",
15
1042
  required: false,
16
1043
  type: String,
17
- default: "展开"
1044
+ "default": "展开"
18
1045
  },
19
1046
  collapseText: {
20
1047
  key: "collapseText",
21
1048
  required: false,
22
1049
  type: String,
23
- default: "收起"
1050
+ "default": "收起"
24
1051
  },
25
1052
  rows: {
26
1053
  key: "rows",
27
1054
  required: false,
28
1055
  type: [String, Number],
29
- default: 1
1056
+ "default": 1
30
1057
  },
31
1058
  rowHeight: {
32
1059
  key: "rowHeight",
33
1060
  required: false,
34
1061
  type: [String, Number],
35
- default: 20
36
- }
37
- };
38
- __sfc_main.setup = (__props, __ctx) => {
39
- const props = __props;
40
- const emit = __ctx.emit;
41
- const text = ref("");
42
- const expanded = ref(false);
43
- const hasAction = ref(false);
44
- const textbox = ref();
45
- const contentHeight = ref();
46
- const hasDefaultSlot = computed(() => !!useSlots().default);
47
- const maxContentHeight = computed(() => Number(props.rows) * Number(props.rowHeight));
48
- const pxToNum = (value) => {
1062
+ "default": 20
1063
+ }
1064
+ };
1065
+ __sfc_main.setup = function(__props, __ctx) {
1066
+ var props = __props;
1067
+ var emit = __ctx.emit;
1068
+ var text = ref("");
1069
+ var expanded = ref(false);
1070
+ var hasAction = ref(false);
1071
+ var textbox = ref();
1072
+ var contentHeight = ref();
1073
+ var hasDefaultSlot = computed(function() {
1074
+ return !!useSlots()["default"];
1075
+ });
1076
+ var maxContentHeight = computed(function() {
1077
+ return Number(props.rows) * Number(props.rowHeight);
1078
+ });
1079
+ var pxToNum = function pxToNum2(value) {
49
1080
  if (!value)
50
1081
  return 0;
51
- const match = value.match(/^\d*(\.\d*)?/);
52
- return match ? Number(match[0]) : 0;
1082
+ var match2 = value.match(/^\d*(\.\d*)?/);
1083
+ return match2 ? Number(match2[0]) : 0;
53
1084
  };
54
- const calcEllipsised = () => {
55
- const cloneContainer = () => {
1085
+ var calcEllipsised = function calcEllipsised2() {
1086
+ var cloneContainer = function cloneContainer2() {
56
1087
  if (!textbox.value)
57
1088
  return;
58
- const originStyle = window.getComputedStyle(textbox.value);
59
- const container2 = document.createElement("div");
60
- const styleNames = Array.prototype.slice.apply(originStyle);
61
- styleNames.forEach((name) => {
1089
+ var originStyle = window.getComputedStyle(textbox.value);
1090
+ var container2 = document.createElement("div");
1091
+ var styleNames = _sliceInstanceProperty(Array.prototype).apply(originStyle);
1092
+ _forEachInstanceProperty(styleNames).call(styleNames, function(name) {
62
1093
  container2.style.setProperty(name, originStyle.getPropertyValue(name));
63
1094
  });
64
1095
  container2.style.position = "fixed";
@@ -71,16 +1102,14 @@ __sfc_main.setup = (__props, __ctx) => {
71
1102
  document.body.appendChild(container2);
72
1103
  return container2;
73
1104
  };
74
- const calcEllipsisText = (container2, maxHeight2) => {
75
- const {
76
- content
77
- } = props;
78
- let left = 0;
79
- let right = content.length;
80
- let res = -1;
1105
+ var calcEllipsisText = function calcEllipsisText2(container2, maxHeight2) {
1106
+ var content = props.content;
1107
+ var left = 0;
1108
+ var right = content.length;
1109
+ var res = -1;
81
1110
  while (left <= right) {
82
- const mid = Math.floor((left + right) / 2);
83
- container2.innerText = content.slice(0, mid);
1111
+ var mid = Math.floor((left + right) / 2);
1112
+ container2.innerText = _sliceInstanceProperty(content).call(content, 0, mid);
84
1113
  if (container2.offsetHeight <= maxHeight2) {
85
1114
  left = mid + 1;
86
1115
  res = mid;
@@ -88,17 +1117,13 @@ __sfc_main.setup = (__props, __ctx) => {
88
1117
  right = mid - 1;
89
1118
  }
90
1119
  }
91
- return content.slice(0, res);
1120
+ return _sliceInstanceProperty(content).call(content, 0, res);
92
1121
  };
93
- const container = cloneContainer();
1122
+ var container = cloneContainer();
94
1123
  if (!container)
95
1124
  return;
96
- const {
97
- paddingBottom,
98
- paddingTop,
99
- lineHeight
100
- } = container.style;
101
- const maxHeight = (Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom);
1125
+ var _container$style = container.style, paddingBottom = _container$style.paddingBottom, paddingTop = _container$style.paddingTop, lineHeight = _container$style.lineHeight;
1126
+ var maxHeight = (Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom);
102
1127
  if (maxHeight < container.offsetHeight) {
103
1128
  hasAction.value = true;
104
1129
  text.value = calcEllipsisText(container, maxHeight);
@@ -108,35 +1133,37 @@ __sfc_main.setup = (__props, __ctx) => {
108
1133
  }
109
1134
  document.body.removeChild(container);
110
1135
  };
111
- const calcContentHeight = () => {
1136
+ var calcContentHeight = function calcContentHeight2() {
112
1137
  if (!textbox.value)
113
1138
  return;
114
- const height = textbox.value.offsetHeight;
1139
+ var height = textbox.value.offsetHeight;
115
1140
  if (height > maxContentHeight.value) {
116
1141
  hasAction.value = true;
117
- contentHeight.value = `${maxContentHeight.value}px`;
1142
+ contentHeight.value = "".concat(maxContentHeight.value, "px");
118
1143
  }
119
1144
  };
120
- const init = hasDefaultSlot.value ? calcContentHeight : calcEllipsised;
121
- const onClickAction = (event) => {
1145
+ var init = hasDefaultSlot.value ? calcContentHeight : calcEllipsised;
1146
+ var onClickAction = function onClickAction2(event) {
122
1147
  expanded.value = !expanded.value;
123
1148
  if (hasDefaultSlot.value) {
124
- contentHeight.value = expanded.value ? "auto" : `${maxContentHeight.value}px`;
1149
+ contentHeight.value = expanded.value ? "auto" : "".concat(maxContentHeight.value, "px");
125
1150
  }
126
1151
  emit("clickAction", {
127
1152
  event,
128
1153
  expanded: expanded.value
129
1154
  });
130
1155
  };
131
- onMounted(() => {
1156
+ onMounted(function() {
132
1157
  init();
133
1158
  window.addEventListener("resize", init);
134
1159
  });
135
- onUnmounted(() => {
1160
+ onUnmounted(function() {
136
1161
  window.removeEventListener("resize", init);
137
1162
  });
138
- watch(() => [props.content, props.rows], init);
139
- return Object.assign({
1163
+ watch(function() {
1164
+ return [props.content, props.rows];
1165
+ }, init);
1166
+ return _Object$assign({
140
1167
  text,
141
1168
  expanded,
142
1169
  hasAction,
@@ -157,7 +1184,7 @@ var _sfc_render = function render() {
157
1184
  staticClass: "nf-text-overflow__content",
158
1185
  style: {
159
1186
  height: _vm.contentHeight,
160
- lineHeight: `${_vm.rowHeight}px`
1187
+ lineHeight: "".concat(_vm.rowHeight, "px")
161
1188
  }
162
1189
  }, [_vm._t("default", function() {
163
1190
  return [_vm._v(_vm._s(_vm.expanded ? _vm.content : _vm.text))];
@@ -168,13 +1195,13 @@ var _sfc_render = function render() {
168
1195
  }
169
1196
  }, [_vm._v(" " + _vm._s(_vm.expanded ? _vm.collapseText : _vm.expandText) + " "), _c("i", {
170
1197
  staticClass: "nf-text-overflow__icon",
171
- class: [_vm.expanded ? "el-icon-arrow-up" : "el-icon-arrow-down"]
1198
+ "class": [_vm.expanded ? "el-icon-arrow-up" : "el-icon-arrow-down"]
172
1199
  })]) : _vm._e()]);
173
1200
  };
174
1201
  var _sfc_staticRenderFns = [];
175
1202
  var __component__ = /* @__PURE__ */ normalizeComponent(__sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
176
1203
  const NfTextOverflow = __component__.exports;
177
- NfTextOverflow.install = (app) => {
1204
+ NfTextOverflow.install = function(app) {
178
1205
  app.component("nf-text-overflow", NfTextOverflow);
179
1206
  };
180
1207
  export {