@antv/s2-vue 2.0.0-next.11 → 2.0.0-next.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1,4 +1,23 @@
1
1
  "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
+ var __spreadValues = (a, b) => {
10
+ for (var prop in b || (b = {}))
11
+ if (__hasOwnProp.call(b, prop))
12
+ __defNormalProp(a, prop, b[prop]);
13
+ if (__getOwnPropSymbols)
14
+ for (var prop of __getOwnPropSymbols(b)) {
15
+ if (__propIsEnum.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ }
18
+ return a;
19
+ };
20
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2
21
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
22
  const s2 = require("@antv/s2");
4
23
  const vue = require("vue");
@@ -110,18 +129,15 @@ const getBaseSheetComponentOptions = (...options) => s2.customMerge(
110
129
  ...options
111
130
  );
112
131
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
113
- const freeGlobal$1 = freeGlobal;
114
132
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
115
- var root = freeGlobal$1 || freeSelf || Function("return this")();
116
- const root$1 = root;
117
- var Symbol$1 = root$1.Symbol;
118
- const Symbol$2 = Symbol$1;
119
- var objectProto$f = Object.prototype;
120
- var hasOwnProperty$c = objectProto$f.hasOwnProperty;
121
- var nativeObjectToString$1 = objectProto$f.toString;
122
- var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
133
+ var root = freeGlobal || freeSelf || Function("return this")();
134
+ var Symbol$1 = root.Symbol;
135
+ var objectProto$g = Object.prototype;
136
+ var hasOwnProperty$d = objectProto$g.hasOwnProperty;
137
+ var nativeObjectToString$1 = objectProto$g.toString;
138
+ var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : void 0;
123
139
  function getRawTag(value) {
124
- var isOwn = hasOwnProperty$c.call(value, symToStringTag$1), tag = value[symToStringTag$1];
140
+ var isOwn = hasOwnProperty$d.call(value, symToStringTag$1), tag = value[symToStringTag$1];
125
141
  try {
126
142
  value[symToStringTag$1] = void 0;
127
143
  var unmasked = true;
@@ -137,13 +153,13 @@ function getRawTag(value) {
137
153
  }
138
154
  return result;
139
155
  }
140
- var objectProto$e = Object.prototype;
141
- var nativeObjectToString = objectProto$e.toString;
156
+ var objectProto$f = Object.prototype;
157
+ var nativeObjectToString = objectProto$f.toString;
142
158
  function objectToString(value) {
143
159
  return nativeObjectToString.call(value);
144
160
  }
145
161
  var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
146
- var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
162
+ var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : void 0;
147
163
  function baseGetTag(value) {
148
164
  if (value == null) {
149
165
  return value === void 0 ? undefinedTag : nullTag;
@@ -165,14 +181,13 @@ function arrayMap(array, iteratee) {
165
181
  return result;
166
182
  }
167
183
  var isArray = Array.isArray;
168
- const isArray$1 = isArray;
169
184
  var INFINITY$1 = 1 / 0;
170
- var symbolProto$2 = Symbol$2 ? Symbol$2.prototype : void 0, symbolToString = symbolProto$2 ? symbolProto$2.toString : void 0;
185
+ var symbolProto$2 = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto$2 ? symbolProto$2.toString : void 0;
171
186
  function baseToString(value) {
172
187
  if (typeof value == "string") {
173
188
  return value;
174
189
  }
175
- if (isArray$1(value)) {
190
+ if (isArray(value)) {
176
191
  return arrayMap(value, baseToString) + "";
177
192
  }
178
193
  if (isSymbol(value)) {
@@ -230,21 +245,20 @@ function isFunction(value) {
230
245
  var tag = baseGetTag(value);
231
246
  return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
232
247
  }
233
- var coreJsData = root$1["__core-js_shared__"];
234
- const coreJsData$1 = coreJsData;
248
+ var coreJsData = root["__core-js_shared__"];
235
249
  var maskSrcKey = function() {
236
- var uid = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || "");
250
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
237
251
  return uid ? "Symbol(src)_1." + uid : "";
238
252
  }();
239
253
  function isMasked(func) {
240
254
  return !!maskSrcKey && maskSrcKey in func;
241
255
  }
242
- var funcProto$1 = Function.prototype;
243
- var funcToString$1 = funcProto$1.toString;
256
+ var funcProto$2 = Function.prototype;
257
+ var funcToString$2 = funcProto$2.toString;
244
258
  function toSource(func) {
245
259
  if (func != null) {
246
260
  try {
247
- return funcToString$1.call(func);
261
+ return funcToString$2.call(func);
248
262
  } catch (e) {
249
263
  }
250
264
  try {
@@ -256,11 +270,11 @@ function toSource(func) {
256
270
  }
257
271
  var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
258
272
  var reIsHostCtor = /^\[object .+?Constructor\]$/;
259
- var funcProto = Function.prototype, objectProto$d = Object.prototype;
260
- var funcToString = funcProto.toString;
261
- var hasOwnProperty$b = objectProto$d.hasOwnProperty;
273
+ var funcProto$1 = Function.prototype, objectProto$e = Object.prototype;
274
+ var funcToString$1 = funcProto$1.toString;
275
+ var hasOwnProperty$c = objectProto$e.hasOwnProperty;
262
276
  var reIsNative = RegExp(
263
- "^" + funcToString.call(hasOwnProperty$b).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
277
+ "^" + funcToString$1.call(hasOwnProperty$c).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
264
278
  );
265
279
  function baseIsNative(value) {
266
280
  if (!isObject(value) || isMasked(value)) {
@@ -276,10 +290,9 @@ function getNative(object, key) {
276
290
  var value = getValue(object, key);
277
291
  return baseIsNative(value) ? value : void 0;
278
292
  }
279
- var WeakMap = getNative(root$1, "WeakMap");
280
- const WeakMap$1 = WeakMap;
293
+ var WeakMap = getNative(root, "WeakMap");
281
294
  var objectCreate = Object.create;
282
- var baseCreate = function() {
295
+ var baseCreate = /* @__PURE__ */ function() {
283
296
  function object() {
284
297
  }
285
298
  return function(proto) {
@@ -295,7 +308,19 @@ var baseCreate = function() {
295
308
  return result;
296
309
  };
297
310
  }();
298
- const baseCreate$1 = baseCreate;
311
+ function apply(func, thisArg, args) {
312
+ switch (args.length) {
313
+ case 0:
314
+ return func.call(thisArg);
315
+ case 1:
316
+ return func.call(thisArg, args[0]);
317
+ case 2:
318
+ return func.call(thisArg, args[0], args[1]);
319
+ case 3:
320
+ return func.call(thisArg, args[0], args[1], args[2]);
321
+ }
322
+ return func.apply(thisArg, args);
323
+ }
299
324
  function copyArray(source, array) {
300
325
  var index2 = -1, length = source.length;
301
326
  array || (array = Array(length));
@@ -304,6 +329,28 @@ function copyArray(source, array) {
304
329
  }
305
330
  return array;
306
331
  }
332
+ var HOT_COUNT = 800, HOT_SPAN = 16;
333
+ var nativeNow = Date.now;
334
+ function shortOut(func) {
335
+ var count = 0, lastCalled = 0;
336
+ return function() {
337
+ var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
338
+ lastCalled = stamp;
339
+ if (remaining > 0) {
340
+ if (++count >= HOT_COUNT) {
341
+ return arguments[0];
342
+ }
343
+ } else {
344
+ count = 0;
345
+ }
346
+ return func.apply(void 0, arguments);
347
+ };
348
+ }
349
+ function constant(value) {
350
+ return function() {
351
+ return value;
352
+ };
353
+ }
307
354
  var defineProperty = function() {
308
355
  try {
309
356
  var func = getNative(Object, "defineProperty");
@@ -312,7 +359,16 @@ var defineProperty = function() {
312
359
  } catch (e) {
313
360
  }
314
361
  }();
315
- const defineProperty$1 = defineProperty;
362
+ var baseSetToString = !defineProperty ? identity : function(func, string) {
363
+ return defineProperty(func, "toString", {
364
+ "configurable": true,
365
+ "enumerable": false,
366
+ "value": constant(string),
367
+ "writable": true
368
+ });
369
+ };
370
+ const baseSetToString$1 = baseSetToString;
371
+ var setToString = shortOut(baseSetToString$1);
316
372
  function arrayEach(array, iteratee) {
317
373
  var index2 = -1, length = array == null ? 0 : array.length;
318
374
  while (++index2 < length) {
@@ -330,8 +386,8 @@ function isIndex(value, length) {
330
386
  return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
331
387
  }
332
388
  function baseAssignValue(object, key, value) {
333
- if (key == "__proto__" && defineProperty$1) {
334
- defineProperty$1(object, key, {
389
+ if (key == "__proto__" && defineProperty) {
390
+ defineProperty(object, key, {
335
391
  "configurable": true,
336
392
  "enumerable": true,
337
393
  "value": value,
@@ -344,11 +400,11 @@ function baseAssignValue(object, key, value) {
344
400
  function eq(value, other) {
345
401
  return value === other || value !== value && other !== other;
346
402
  }
347
- var objectProto$c = Object.prototype;
348
- var hasOwnProperty$a = objectProto$c.hasOwnProperty;
403
+ var objectProto$d = Object.prototype;
404
+ var hasOwnProperty$b = objectProto$d.hasOwnProperty;
349
405
  function assignValue(object, key, value) {
350
406
  var objValue = object[key];
351
- if (!(hasOwnProperty$a.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
407
+ if (!(hasOwnProperty$b.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
352
408
  baseAssignValue(object, key, value);
353
409
  }
354
410
  }
@@ -370,6 +426,23 @@ function copyObject(source, props, object, customizer) {
370
426
  }
371
427
  return object;
372
428
  }
429
+ var nativeMax$1 = Math.max;
430
+ function overRest(func, start, transform) {
431
+ start = nativeMax$1(start === void 0 ? func.length - 1 : start, 0);
432
+ return function() {
433
+ var args = arguments, index2 = -1, length = nativeMax$1(args.length - start, 0), array = Array(length);
434
+ while (++index2 < length) {
435
+ array[index2] = args[start + index2];
436
+ }
437
+ index2 = -1;
438
+ var otherArgs = Array(start + 1);
439
+ while (++index2 < start) {
440
+ otherArgs[index2] = args[index2];
441
+ }
442
+ otherArgs[start] = transform(array);
443
+ return apply(func, this, otherArgs);
444
+ };
445
+ }
373
446
  var MAX_SAFE_INTEGER = 9007199254740991;
374
447
  function isLength(value) {
375
448
  return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
@@ -377,9 +450,9 @@ function isLength(value) {
377
450
  function isArrayLike(value) {
378
451
  return value != null && isLength(value.length) && !isFunction(value);
379
452
  }
380
- var objectProto$b = Object.prototype;
453
+ var objectProto$c = Object.prototype;
381
454
  function isPrototype(value) {
382
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$b;
455
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$c;
383
456
  return value === proto;
384
457
  }
385
458
  function baseTimes(n, iteratee) {
@@ -393,13 +466,13 @@ var argsTag$3 = "[object Arguments]";
393
466
  function baseIsArguments(value) {
394
467
  return isObjectLike(value) && baseGetTag(value) == argsTag$3;
395
468
  }
396
- var objectProto$a = Object.prototype;
397
- var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
398
- var propertyIsEnumerable$1 = objectProto$a.propertyIsEnumerable;
399
- var isArguments = baseIsArguments(function() {
469
+ var objectProto$b = Object.prototype;
470
+ var hasOwnProperty$a = objectProto$b.hasOwnProperty;
471
+ var propertyIsEnumerable$1 = objectProto$b.propertyIsEnumerable;
472
+ var isArguments = baseIsArguments(/* @__PURE__ */ function() {
400
473
  return arguments;
401
474
  }()) ? baseIsArguments : function(value) {
402
- return isObjectLike(value) && hasOwnProperty$9.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
475
+ return isObjectLike(value) && hasOwnProperty$a.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
403
476
  };
404
477
  const isArguments$1 = isArguments;
405
478
  function stubFalse() {
@@ -408,15 +481,15 @@ function stubFalse() {
408
481
  var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports;
409
482
  var freeModule$2 = freeExports$2 && typeof module == "object" && module && !module.nodeType && module;
410
483
  var moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2;
411
- var Buffer$1 = moduleExports$2 ? root$1.Buffer : void 0;
484
+ var Buffer$1 = moduleExports$2 ? root.Buffer : void 0;
412
485
  var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : void 0;
413
486
  var isBuffer = nativeIsBuffer || stubFalse;
414
487
  const isBuffer$1 = isBuffer;
415
- var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$4 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$2 = "[object Error]", funcTag$1 = "[object Function]", mapTag$7 = "[object Map]", numberTag$3 = "[object Number]", objectTag$3 = "[object Object]", regexpTag$3 = "[object RegExp]", setTag$7 = "[object Set]", stringTag$4 = "[object String]", weakMapTag$2 = "[object WeakMap]";
488
+ var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$4 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$2 = "[object Error]", funcTag$1 = "[object Function]", mapTag$7 = "[object Map]", numberTag$3 = "[object Number]", objectTag$4 = "[object Object]", regexpTag$3 = "[object RegExp]", setTag$7 = "[object Set]", stringTag$4 = "[object String]", weakMapTag$2 = "[object WeakMap]";
416
489
  var arrayBufferTag$3 = "[object ArrayBuffer]", dataViewTag$4 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
417
490
  var typedArrayTags = {};
418
491
  typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
419
- typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$4] = typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] = typedArrayTags[errorTag$2] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$7] = typedArrayTags[numberTag$3] = typedArrayTags[objectTag$3] = typedArrayTags[regexpTag$3] = typedArrayTags[setTag$7] = typedArrayTags[stringTag$4] = typedArrayTags[weakMapTag$2] = false;
492
+ typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$4] = typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] = typedArrayTags[errorTag$2] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$7] = typedArrayTags[numberTag$3] = typedArrayTags[objectTag$4] = typedArrayTags[regexpTag$3] = typedArrayTags[setTag$7] = typedArrayTags[stringTag$4] = typedArrayTags[weakMapTag$2] = false;
420
493
  function baseIsTypedArray(value) {
421
494
  return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
422
495
  }
@@ -428,7 +501,7 @@ function baseUnary(func) {
428
501
  var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
429
502
  var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
430
503
  var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
431
- var freeProcess = moduleExports$1 && freeGlobal$1.process;
504
+ var freeProcess = moduleExports$1 && freeGlobal.process;
432
505
  var nodeUtil = function() {
433
506
  try {
434
507
  var types = freeModule$1 && freeModule$1.require && freeModule$1.require("util").types;
@@ -439,16 +512,15 @@ var nodeUtil = function() {
439
512
  } catch (e) {
440
513
  }
441
514
  }();
442
- const nodeUtil$1 = nodeUtil;
443
- var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray;
515
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
444
516
  var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
445
517
  const isTypedArray$1 = isTypedArray;
446
- var objectProto$9 = Object.prototype;
447
- var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
518
+ var objectProto$a = Object.prototype;
519
+ var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
448
520
  function arrayLikeKeys(value, inherited) {
449
- var isArr = isArray$1(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
521
+ var isArr = isArray(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
450
522
  for (var key in value) {
451
- if ((inherited || hasOwnProperty$8.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
523
+ if ((inherited || hasOwnProperty$9.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
452
524
  (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
453
525
  isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
454
526
  isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
@@ -464,16 +536,15 @@ function overArg(func, transform) {
464
536
  };
465
537
  }
466
538
  var nativeKeys = overArg(Object.keys, Object);
467
- const nativeKeys$1 = nativeKeys;
468
- var objectProto$8 = Object.prototype;
469
- var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
539
+ var objectProto$9 = Object.prototype;
540
+ var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
470
541
  function baseKeys(object) {
471
542
  if (!isPrototype(object)) {
472
- return nativeKeys$1(object);
543
+ return nativeKeys(object);
473
544
  }
474
545
  var result = [];
475
546
  for (var key in Object(object)) {
476
- if (hasOwnProperty$7.call(object, key) && key != "constructor") {
547
+ if (hasOwnProperty$8.call(object, key) && key != "constructor") {
477
548
  result.push(key);
478
549
  }
479
550
  }
@@ -491,15 +562,15 @@ function nativeKeysIn(object) {
491
562
  }
492
563
  return result;
493
564
  }
494
- var objectProto$7 = Object.prototype;
495
- var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
565
+ var objectProto$8 = Object.prototype;
566
+ var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
496
567
  function baseKeysIn(object) {
497
568
  if (!isObject(object)) {
498
569
  return nativeKeysIn(object);
499
570
  }
500
571
  var isProto = isPrototype(object), result = [];
501
572
  for (var key in object) {
502
- if (!(key == "constructor" && (isProto || !hasOwnProperty$6.call(object, key)))) {
573
+ if (!(key == "constructor" && (isProto || !hasOwnProperty$7.call(object, key)))) {
503
574
  result.push(key);
504
575
  }
505
576
  }
@@ -510,7 +581,7 @@ function keysIn(object) {
510
581
  }
511
582
  var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
512
583
  function isKey(value, object) {
513
- if (isArray$1(value)) {
584
+ if (isArray(value)) {
514
585
  return false;
515
586
  }
516
587
  var type = typeof value;
@@ -520,9 +591,8 @@ function isKey(value, object) {
520
591
  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
521
592
  }
522
593
  var nativeCreate = getNative(Object, "create");
523
- const nativeCreate$1 = nativeCreate;
524
594
  function hashClear() {
525
- this.__data__ = nativeCreate$1 ? nativeCreate$1(null) : {};
595
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
526
596
  this.size = 0;
527
597
  }
528
598
  function hashDelete(key) {
@@ -531,27 +601,27 @@ function hashDelete(key) {
531
601
  return result;
532
602
  }
533
603
  var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
534
- var objectProto$6 = Object.prototype;
535
- var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
604
+ var objectProto$7 = Object.prototype;
605
+ var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
536
606
  function hashGet(key) {
537
607
  var data = this.__data__;
538
- if (nativeCreate$1) {
608
+ if (nativeCreate) {
539
609
  var result = data[key];
540
610
  return result === HASH_UNDEFINED$2 ? void 0 : result;
541
611
  }
542
- return hasOwnProperty$5.call(data, key) ? data[key] : void 0;
612
+ return hasOwnProperty$6.call(data, key) ? data[key] : void 0;
543
613
  }
544
- var objectProto$5 = Object.prototype;
545
- var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
614
+ var objectProto$6 = Object.prototype;
615
+ var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
546
616
  function hashHas(key) {
547
617
  var data = this.__data__;
548
- return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$4.call(data, key);
618
+ return nativeCreate ? data[key] !== void 0 : hasOwnProperty$5.call(data, key);
549
619
  }
550
620
  var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
551
621
  function hashSet(key, value) {
552
622
  var data = this.__data__;
553
623
  this.size += this.has(key) ? 0 : 1;
554
- data[key] = nativeCreate$1 && value === void 0 ? HASH_UNDEFINED$1 : value;
624
+ data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
555
625
  return this;
556
626
  }
557
627
  function Hash(entries) {
@@ -626,13 +696,12 @@ ListCache.prototype["delete"] = listCacheDelete;
626
696
  ListCache.prototype.get = listCacheGet;
627
697
  ListCache.prototype.has = listCacheHas;
628
698
  ListCache.prototype.set = listCacheSet;
629
- var Map = getNative(root$1, "Map");
630
- const Map$1 = Map;
699
+ var Map = getNative(root, "Map");
631
700
  function mapCacheClear() {
632
701
  this.size = 0;
633
702
  this.__data__ = {
634
703
  "hash": new Hash(),
635
- "map": new (Map$1 || ListCache)(),
704
+ "map": new (Map || ListCache)(),
636
705
  "string": new Hash()
637
706
  };
638
707
  }
@@ -715,15 +784,14 @@ var stringToPath = memoizeCapped(function(string) {
715
784
  });
716
785
  return result;
717
786
  });
718
- const stringToPath$1 = stringToPath;
719
787
  function toString(value) {
720
788
  return value == null ? "" : baseToString(value);
721
789
  }
722
790
  function castPath(value, object) {
723
- if (isArray$1(value)) {
791
+ if (isArray(value)) {
724
792
  return value;
725
793
  }
726
- return isKey(value, object) ? [value] : stringToPath$1(toString(value));
794
+ return isKey(value, object) ? [value] : stringToPath(toString(value));
727
795
  }
728
796
  var INFINITY = 1 / 0;
729
797
  function toKey(value) {
@@ -752,8 +820,69 @@ function arrayPush(array, values) {
752
820
  }
753
821
  return array;
754
822
  }
823
+ var spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : void 0;
824
+ function isFlattenable(value) {
825
+ return isArray(value) || isArguments$1(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
826
+ }
827
+ function baseFlatten(array, depth, predicate, isStrict, result) {
828
+ var index2 = -1, length = array.length;
829
+ predicate || (predicate = isFlattenable);
830
+ result || (result = []);
831
+ while (++index2 < length) {
832
+ var value = array[index2];
833
+ if (depth > 0 && predicate(value)) {
834
+ if (depth > 1) {
835
+ baseFlatten(value, depth - 1, predicate, isStrict, result);
836
+ } else {
837
+ arrayPush(result, value);
838
+ }
839
+ } else if (!isStrict) {
840
+ result[result.length] = value;
841
+ }
842
+ }
843
+ return result;
844
+ }
845
+ function flatten(array) {
846
+ var length = array == null ? 0 : array.length;
847
+ return length ? baseFlatten(array, 1) : [];
848
+ }
849
+ function flatRest(func) {
850
+ return setToString(overRest(func, void 0, flatten), func + "");
851
+ }
755
852
  var getPrototype = overArg(Object.getPrototypeOf, Object);
756
- const getPrototype$1 = getPrototype;
853
+ var objectTag$3 = "[object Object]";
854
+ var funcProto = Function.prototype, objectProto$5 = Object.prototype;
855
+ var funcToString = funcProto.toString;
856
+ var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
857
+ var objectCtorString = funcToString.call(Object);
858
+ function isPlainObject(value) {
859
+ if (!isObjectLike(value) || baseGetTag(value) != objectTag$3) {
860
+ return false;
861
+ }
862
+ var proto = getPrototype(value);
863
+ if (proto === null) {
864
+ return true;
865
+ }
866
+ var Ctor = hasOwnProperty$4.call(proto, "constructor") && proto.constructor;
867
+ return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
868
+ }
869
+ function baseSlice(array, start, end) {
870
+ var index2 = -1, length = array.length;
871
+ if (start < 0) {
872
+ start = -start > length ? 0 : length + start;
873
+ }
874
+ end = end > length ? length : end;
875
+ if (end < 0) {
876
+ end += length;
877
+ }
878
+ length = start > end ? 0 : end - start >>> 0;
879
+ start >>>= 0;
880
+ var result = Array(length);
881
+ while (++index2 < length) {
882
+ result[index2] = array[index2 + start];
883
+ }
884
+ return result;
885
+ }
757
886
  var rsAstralRange$1 = "\\ud800-\\udfff", rsComboMarksRange$1 = "\\u0300-\\u036f", reComboHalfMarksRange$1 = "\\ufe20-\\ufe2f", rsComboSymbolsRange$1 = "\\u20d0-\\u20ff", rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1, rsVarRange$1 = "\\ufe0e\\ufe0f";
758
887
  var rsZWJ$1 = "\\u200d";
759
888
  var reHasUnicode = RegExp("[" + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rsVarRange$1 + "]");
@@ -790,7 +919,7 @@ function stackSet(key, value) {
790
919
  var data = this.__data__;
791
920
  if (data instanceof ListCache) {
792
921
  var pairs = data.__data__;
793
- if (!Map$1 || pairs.length < LARGE_ARRAY_SIZE - 1) {
922
+ if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
794
923
  pairs.push([key, value]);
795
924
  this.size = ++data.size;
796
925
  return this;
@@ -819,7 +948,7 @@ function baseAssignIn(object, source) {
819
948
  var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
820
949
  var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
821
950
  var moduleExports = freeModule && freeModule.exports === freeExports;
822
- var Buffer = moduleExports ? root$1.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
951
+ var Buffer2 = moduleExports ? root.Buffer : void 0, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
823
952
  function cloneBuffer(buffer, isDeep) {
824
953
  if (isDeep) {
825
954
  return buffer.slice();
@@ -853,16 +982,15 @@ var getSymbols = !nativeGetSymbols$1 ? stubArray : function(object) {
853
982
  return propertyIsEnumerable.call(object, symbol);
854
983
  });
855
984
  };
856
- const getSymbols$1 = getSymbols;
857
985
  function copySymbols(source, object) {
858
- return copyObject(source, getSymbols$1(source), object);
986
+ return copyObject(source, getSymbols(source), object);
859
987
  }
860
988
  var nativeGetSymbols = Object.getOwnPropertySymbols;
861
989
  var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
862
990
  var result = [];
863
991
  while (object) {
864
- arrayPush(result, getSymbols$1(object));
865
- object = getPrototype$1(object);
992
+ arrayPush(result, getSymbols(object));
993
+ object = getPrototype(object);
866
994
  }
867
995
  return result;
868
996
  };
@@ -872,25 +1000,22 @@ function copySymbolsIn(source, object) {
872
1000
  }
873
1001
  function baseGetAllKeys(object, keysFunc, symbolsFunc) {
874
1002
  var result = keysFunc(object);
875
- return isArray$1(object) ? result : arrayPush(result, symbolsFunc(object));
1003
+ return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
876
1004
  }
877
1005
  function getAllKeys(object) {
878
- return baseGetAllKeys(object, keys, getSymbols$1);
1006
+ return baseGetAllKeys(object, keys, getSymbols);
879
1007
  }
880
1008
  function getAllKeysIn(object) {
881
1009
  return baseGetAllKeys(object, keysIn, getSymbolsIn$1);
882
1010
  }
883
- var DataView = getNative(root$1, "DataView");
884
- const DataView$1 = DataView;
885
- var Promise$1 = getNative(root$1, "Promise");
886
- const Promise$2 = Promise$1;
887
- var Set = getNative(root$1, "Set");
888
- const Set$1 = Set;
1011
+ var DataView = getNative(root, "DataView");
1012
+ var Promise$1 = getNative(root, "Promise");
1013
+ var Set = getNative(root, "Set");
889
1014
  var mapTag$6 = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag$6 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
890
1015
  var dataViewTag$3 = "[object DataView]";
891
- var dataViewCtorString = toSource(DataView$1), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$2), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap$1);
1016
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
892
1017
  var getTag = baseGetTag;
893
- if (DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$3 || Map$1 && getTag(new Map$1()) != mapTag$6 || Promise$2 && getTag(Promise$2.resolve()) != promiseTag || Set$1 && getTag(new Set$1()) != setTag$6 || WeakMap$1 && getTag(new WeakMap$1()) != weakMapTag$1) {
1018
+ if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag$3 || Map && getTag(new Map()) != mapTag$6 || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set && getTag(new Set()) != setTag$6 || WeakMap && getTag(new WeakMap()) != weakMapTag$1) {
894
1019
  getTag = function(value) {
895
1020
  var result = baseGetTag(value), Ctor = result == objectTag$2 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
896
1021
  if (ctorString) {
@@ -921,8 +1046,8 @@ function initCloneArray(array) {
921
1046
  }
922
1047
  return result;
923
1048
  }
924
- var Uint8Array = root$1.Uint8Array;
925
- const Uint8Array$1 = Uint8Array;
1049
+ var Uint8Array2 = root.Uint8Array;
1050
+ const Uint8Array$1 = Uint8Array2;
926
1051
  function cloneArrayBuffer(arrayBuffer) {
927
1052
  var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
928
1053
  new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer));
@@ -938,7 +1063,7 @@ function cloneRegExp(regexp) {
938
1063
  result.lastIndex = regexp.lastIndex;
939
1064
  return result;
940
1065
  }
941
- var symbolProto$1 = Symbol$2 ? Symbol$2.prototype : void 0, symbolValueOf$1 = symbolProto$1 ? symbolProto$1.valueOf : void 0;
1066
+ var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf$1 = symbolProto$1 ? symbolProto$1.valueOf : void 0;
942
1067
  function cloneSymbol(symbol) {
943
1068
  return symbolValueOf$1 ? Object(symbolValueOf$1.call(symbol)) : {};
944
1069
  }
@@ -982,30 +1107,28 @@ function initCloneByTag(object, tag, isDeep) {
982
1107
  }
983
1108
  }
984
1109
  function initCloneObject(object) {
985
- return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate$1(getPrototype$1(object)) : {};
1110
+ return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
986
1111
  }
987
1112
  var mapTag$4 = "[object Map]";
988
1113
  function baseIsMap(value) {
989
1114
  return isObjectLike(value) && getTag$1(value) == mapTag$4;
990
1115
  }
991
- var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
1116
+ var nodeIsMap = nodeUtil && nodeUtil.isMap;
992
1117
  var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
993
- const isMap$1 = isMap;
994
1118
  var setTag$4 = "[object Set]";
995
1119
  function baseIsSet(value) {
996
1120
  return isObjectLike(value) && getTag$1(value) == setTag$4;
997
1121
  }
998
- var nodeIsSet = nodeUtil$1 && nodeUtil$1.isSet;
1122
+ var nodeIsSet = nodeUtil && nodeUtil.isSet;
999
1123
  var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
1000
- const isSet$1 = isSet;
1001
- var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
1124
+ var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG$1 = 2, CLONE_SYMBOLS_FLAG$2 = 4;
1002
1125
  var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag$3 = "[object Map]", numberTag$1 = "[object Number]", objectTag$1 = "[object Object]", regexpTag$1 = "[object RegExp]", setTag$3 = "[object Set]", stringTag$2 = "[object String]", symbolTag$1 = "[object Symbol]", weakMapTag = "[object WeakMap]";
1003
1126
  var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
1004
1127
  var cloneableTags = {};
1005
1128
  cloneableTags[argsTag$1] = cloneableTags[arrayTag$1] = cloneableTags[arrayBufferTag$1] = cloneableTags[dataViewTag$1] = cloneableTags[boolTag$2] = cloneableTags[dateTag$1] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag$3] = cloneableTags[numberTag$1] = cloneableTags[objectTag$1] = cloneableTags[regexpTag$1] = cloneableTags[setTag$3] = cloneableTags[stringTag$2] = cloneableTags[symbolTag$1] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
1006
1129
  cloneableTags[errorTag$1] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
1007
1130
  function baseClone(value, bitmask, customizer, key, object, stack) {
1008
- var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
1131
+ var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG$1, isFull = bitmask & CLONE_SYMBOLS_FLAG$2;
1009
1132
  if (customizer) {
1010
1133
  result = object ? customizer(value, key, object, stack) : customizer(value);
1011
1134
  }
@@ -1015,7 +1138,7 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
1015
1138
  if (!isObject(value)) {
1016
1139
  return value;
1017
1140
  }
1018
- var isArr = isArray$1(value);
1141
+ var isArr = isArray(value);
1019
1142
  if (isArr) {
1020
1143
  result = initCloneArray(value);
1021
1144
  if (!isDeep) {
@@ -1044,11 +1167,11 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
1044
1167
  return stacked;
1045
1168
  }
1046
1169
  stack.set(value, result);
1047
- if (isSet$1(value)) {
1170
+ if (isSet(value)) {
1048
1171
  value.forEach(function(subValue) {
1049
1172
  result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
1050
1173
  });
1051
- } else if (isMap$1(value)) {
1174
+ } else if (isMap(value)) {
1052
1175
  value.forEach(function(subValue, key2) {
1053
1176
  result.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
1054
1177
  });
@@ -1064,9 +1187,9 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
1064
1187
  });
1065
1188
  return result;
1066
1189
  }
1067
- var CLONE_SYMBOLS_FLAG = 4;
1190
+ var CLONE_SYMBOLS_FLAG$1 = 4;
1068
1191
  function clone(value) {
1069
- return baseClone(value, CLONE_SYMBOLS_FLAG);
1192
+ return baseClone(value, CLONE_SYMBOLS_FLAG$1);
1070
1193
  }
1071
1194
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
1072
1195
  function setCacheAdd(value) {
@@ -1158,7 +1281,7 @@ function setToArray(set) {
1158
1281
  var COMPARE_PARTIAL_FLAG$4 = 1, COMPARE_UNORDERED_FLAG$2 = 2;
1159
1282
  var boolTag$1 = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag$2 = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag = "[object Symbol]";
1160
1283
  var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
1161
- var symbolProto = Symbol$2 ? Symbol$2.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
1284
+ var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
1162
1285
  function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
1163
1286
  switch (tag) {
1164
1287
  case dataViewTag:
@@ -1256,7 +1379,7 @@ var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[o
1256
1379
  var objectProto$1 = Object.prototype;
1257
1380
  var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
1258
1381
  function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
1259
- var objIsArr = isArray$1(object), othIsArr = isArray$1(other), objTag = objIsArr ? arrayTag : getTag$1(object), othTag = othIsArr ? arrayTag : getTag$1(other);
1382
+ var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag$1(object), othTag = othIsArr ? arrayTag : getTag$1(other);
1260
1383
  objTag = objTag == argsTag ? objectTag : objTag;
1261
1384
  othTag = othTag == argsTag ? objectTag : othTag;
1262
1385
  var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
@@ -1371,7 +1494,7 @@ function hasPath(object, path, hasFunc) {
1371
1494
  return result;
1372
1495
  }
1373
1496
  length = object == null ? 0 : object.length;
1374
- return !!length && isLength(length) && isIndex(key, length) && (isArray$1(object) || isArguments$1(object));
1497
+ return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments$1(object));
1375
1498
  }
1376
1499
  function hasIn(object, path) {
1377
1500
  return object != null && hasPath(object, path, baseHasIn);
@@ -1407,7 +1530,7 @@ function baseIteratee(value) {
1407
1530
  return identity;
1408
1531
  }
1409
1532
  if (typeof value == "object") {
1410
- return isArray$1(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
1533
+ return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
1411
1534
  }
1412
1535
  return property(value);
1413
1536
  }
@@ -1448,9 +1571,8 @@ function createBaseEach(eachFunc, fromRight) {
1448
1571
  var baseEach = createBaseEach(baseForOwn);
1449
1572
  const baseEach$1 = baseEach;
1450
1573
  var now = function() {
1451
- return root$1.Date.now();
1574
+ return root.Date.now();
1452
1575
  };
1453
- const now$1 = now;
1454
1576
  var FUNC_ERROR_TEXT = "Expected a function";
1455
1577
  var nativeMax = Math.max, nativeMin = Math.min;
1456
1578
  function debounce(func, wait, options) {
@@ -1486,7 +1608,7 @@ function debounce(func, wait, options) {
1486
1608
  return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
1487
1609
  }
1488
1610
  function timerExpired() {
1489
- var time = now$1();
1611
+ var time = now();
1490
1612
  if (shouldInvoke(time)) {
1491
1613
  return trailingEdge(time);
1492
1614
  }
@@ -1508,10 +1630,10 @@ function debounce(func, wait, options) {
1508
1630
  lastArgs = lastCallTime = lastThis = timerId = void 0;
1509
1631
  }
1510
1632
  function flush() {
1511
- return timerId === void 0 ? result : trailingEdge(now$1());
1633
+ return timerId === void 0 ? result : trailingEdge(now());
1512
1634
  }
1513
1635
  function debounced() {
1514
- var time = now$1(), isInvoking = shouldInvoke(time);
1636
+ var time = now(), isInvoking = shouldInvoke(time);
1515
1637
  lastArgs = arguments;
1516
1638
  lastThis = this;
1517
1639
  lastCallTime = time;
@@ -1534,6 +1656,10 @@ function debounce(func, wait, options) {
1534
1656
  debounced.flush = flush;
1535
1657
  return debounced;
1536
1658
  }
1659
+ function last(array) {
1660
+ var length = array == null ? 0 : array.length;
1661
+ return length ? array[length - 1] : void 0;
1662
+ }
1537
1663
  function baseFilter(collection, predicate) {
1538
1664
  var result = [];
1539
1665
  baseEach$1(collection, function(value, index2, collection2) {
@@ -1544,12 +1670,15 @@ function baseFilter(collection, predicate) {
1544
1670
  return result;
1545
1671
  }
1546
1672
  function filter(collection, predicate) {
1547
- var func = isArray$1(collection) ? arrayFilter : baseFilter;
1673
+ var func = isArray(collection) ? arrayFilter : baseFilter;
1548
1674
  return func(collection, baseIteratee(predicate));
1549
1675
  }
1550
1676
  var stringTag = "[object String]";
1551
1677
  function isString(value) {
1552
- return typeof value == "string" || !isArray$1(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
1678
+ return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
1679
+ }
1680
+ function parent(object, path) {
1681
+ return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
1553
1682
  }
1554
1683
  var boolTag = "[object Boolean]";
1555
1684
  function isBoolean(value) {
@@ -1562,7 +1691,7 @@ function isEmpty(value) {
1562
1691
  if (value == null) {
1563
1692
  return true;
1564
1693
  }
1565
- if (isArrayLike(value) && (isArray$1(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer$1(value) || isTypedArray$1(value) || isArguments$1(value))) {
1694
+ if (isArrayLike(value) && (isArray(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer$1(value) || isTypedArray$1(value) || isArguments$1(value))) {
1566
1695
  return !value.length;
1567
1696
  }
1568
1697
  var tag = getTag$1(value);
@@ -1579,8 +1708,37 @@ function isEmpty(value) {
1579
1708
  }
1580
1709
  return true;
1581
1710
  }
1711
+ function baseUnset(object, path) {
1712
+ path = castPath(path, object);
1713
+ object = parent(object, path);
1714
+ return object == null || delete object[toKey(last(path))];
1715
+ }
1716
+ function customOmitClone(value) {
1717
+ return isPlainObject(value) ? void 0 : value;
1718
+ }
1719
+ var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4;
1720
+ var omit = flatRest(function(object, paths) {
1721
+ var result = {};
1722
+ if (object == null) {
1723
+ return result;
1724
+ }
1725
+ var isDeep = false;
1726
+ paths = arrayMap(paths, function(path) {
1727
+ path = castPath(path, object);
1728
+ isDeep || (isDeep = path.length > 1);
1729
+ return path;
1730
+ });
1731
+ copyObject(object, getAllKeysIn(object), result);
1732
+ if (isDeep) {
1733
+ result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
1734
+ }
1735
+ var length = paths.length;
1736
+ while (length--) {
1737
+ baseUnset(result, paths[length]);
1738
+ }
1739
+ return result;
1740
+ });
1582
1741
  var asciiSize = baseProperty("length");
1583
- const asciiSize$1 = asciiSize;
1584
1742
  var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsVarRange = "\\ufe0e\\ufe0f";
1585
1743
  var rsAstral = "[" + rsAstralRange + "]", rsCombo = "[" + rsComboRange + "]", rsFitz = "\\ud83c[\\udffb-\\udfff]", rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")", rsNonAstral = "[^" + rsAstralRange + "]", rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}", rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]", rsZWJ = "\\u200d";
1586
1744
  var reOptMod = rsModifier + "?", rsOptVar = "[" + rsVarRange + "]?", rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*", rsSeq = rsOptVar + reOptMod + rsOptJoin, rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")";
@@ -1593,7 +1751,7 @@ function unicodeSize(string) {
1593
1751
  return result;
1594
1752
  }
1595
1753
  function stringSize(string) {
1596
- return hasUnicode(string) ? unicodeSize(string) : asciiSize$1(string);
1754
+ return hasUnicode(string) ? unicodeSize(string) : asciiSize(string);
1597
1755
  }
1598
1756
  function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
1599
1757
  eachFunc(collection, function(value, index2, collection2) {
@@ -1602,7 +1760,7 @@ function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
1602
1760
  return accumulator;
1603
1761
  }
1604
1762
  function reduce(collection, iteratee, accumulator) {
1605
- var func = isArray$1(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3;
1763
+ var func = isArray(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3;
1606
1764
  return func(collection, baseIteratee(iteratee), accumulator, initAccum, baseEach$1);
1607
1765
  }
1608
1766
  var mapTag = "[object Map]", setTag = "[object Set]";
@@ -1620,7 +1778,7 @@ function size(collection) {
1620
1778
  return baseKeys(collection).length;
1621
1779
  }
1622
1780
  const analyzeAdaptive = (defaultContainer, adaptive) => {
1623
- var _a;
1781
+ var _a, _b, _c;
1624
1782
  if (isBoolean(adaptive)) {
1625
1783
  return {
1626
1784
  container: defaultContainer,
@@ -1630,8 +1788,8 @@ const analyzeAdaptive = (defaultContainer, adaptive) => {
1630
1788
  }
1631
1789
  return {
1632
1790
  container: ((_a = adaptive == null ? void 0 : adaptive.getContainer) == null ? void 0 : _a.call(adaptive)) || defaultContainer,
1633
- adaptiveWidth: (adaptive == null ? void 0 : adaptive.width) ?? true,
1634
- adaptiveHeight: (adaptive == null ? void 0 : adaptive.height) ?? true
1791
+ adaptiveWidth: (_b = adaptive == null ? void 0 : adaptive.width) != null ? _b : true,
1792
+ adaptiveHeight: (_c = adaptive == null ? void 0 : adaptive.height) != null ? _c : true
1635
1793
  };
1636
1794
  };
1637
1795
  const createResizeObserver = (params) => {
@@ -1652,8 +1810,8 @@ const createResizeObserver = (params) => {
1652
1810
  const debounceRender = debounce(render2, RESIZE_RENDER_DELAY);
1653
1811
  const onResize = () => {
1654
1812
  const { clientWidth: containerWidth, clientHeight: containerHeight } = container;
1655
- const width = adaptiveWidth ? s2.floor(containerWidth ?? s2$1.options.width) : s2$1.options.width;
1656
- const height = adaptiveHeight ? s2.floor(containerHeight ?? s2$1.options.height) : s2$1.options.height;
1813
+ const width = adaptiveWidth ? s2.floor(containerWidth != null ? containerWidth : s2$1.options.width) : s2$1.options.width;
1814
+ const height = adaptiveHeight ? s2.floor(containerHeight != null ? containerHeight : s2$1.options.height) : s2$1.options.height;
1657
1815
  if (!adaptiveWidth && !adaptiveHeight) {
1658
1816
  return;
1659
1817
  }
@@ -1683,7 +1841,7 @@ const getDrillDownCache = (spreadsheet, meta) => {
1683
1841
  "drillDownDataCache",
1684
1842
  []
1685
1843
  );
1686
- const cache = drillDownDataCache.find((dc) => dc.rowId === meta.id);
1844
+ const cache = drillDownDataCache == null ? void 0 : drillDownDataCache.find(({ rowId }) => rowId === meta.id);
1687
1845
  return {
1688
1846
  drillDownDataCache,
1689
1847
  drillDownCurrentCache: cache
@@ -1746,10 +1904,9 @@ const buildDrillDownOptions = (options, partDrillDown, callback) => {
1746
1904
  };
1747
1905
  nextHeaderIcons.push(drillDownActionIcon);
1748
1906
  }
1749
- return {
1750
- ...options,
1907
+ return __spreadProps(__spreadValues({}, options), {
1751
1908
  headerActionIcons: nextHeaderIcons
1752
- };
1909
+ });
1753
1910
  };
1754
1911
  const handleDrillDown = (params) => {
1755
1912
  const { fetchData, spreadsheet, drillFields, drillItemsNum = -1 } = params;
@@ -2096,7 +2253,6 @@ const _sfc_main$7 = vue.defineComponent({
2096
2253
  TooltipOperatorMenu
2097
2254
  }
2098
2255
  });
2099
- const index_vue_vue_type_style_index_0_lang$1 = "";
2100
2256
  function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
2101
2257
  const _component_TooltipOperatorMenu = vue.resolveComponent("TooltipOperatorMenu");
2102
2258
  const _component_Menu = vue.resolveComponent("Menu");
@@ -2186,7 +2342,6 @@ const _sfc_main$6 = vue.defineComponent({
2186
2342
  TooltipOperator
2187
2343
  }
2188
2344
  });
2189
- const index_vue_vue_type_style_index_0_lang = "";
2190
2345
  function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
2191
2346
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
2192
2347
  const _component_TooltipOperator = vue.resolveComponent("TooltipOperator");
@@ -2235,18 +2390,17 @@ class CustomTooltip extends s2.BaseTooltip {
2235
2390
  super(spreadsheet);
2236
2391
  }
2237
2392
  renderContent() {
2238
- var _a;
2393
+ var _a, _b;
2239
2394
  const { tooltip } = this.spreadsheet.options;
2240
2395
  const showOptions = this.options;
2241
2396
  const cell = this.spreadsheet.getCell(
2242
2397
  (_a = showOptions.event) == null ? void 0 : _a.target
2243
2398
  );
2244
- const content = showOptions.content ?? (tooltip == null ? void 0 : tooltip.content);
2245
- const tooltipProps = {
2246
- ...showOptions,
2399
+ const content = (_b = showOptions.content) != null ? _b : tooltip == null ? void 0 : tooltip.content;
2400
+ const tooltipProps = __spreadProps(__spreadValues({}, showOptions), {
2247
2401
  cell,
2248
2402
  content
2249
- };
2403
+ });
2250
2404
  const tooltipVNode = vue.createVNode(
2251
2405
  TooltipComponent,
2252
2406
  tooltipProps,
@@ -2267,13 +2421,13 @@ class CustomTooltip extends s2.BaseTooltip {
2267
2421
  const DEFAULT_PAGE_NUMBER = 1;
2268
2422
  const DEFAULT_PAGE_SIZE = 10;
2269
2423
  const usePagination = (s2Ref, props) => {
2270
- var _a, _b, _c, _d;
2271
- const current = vue.ref(
2272
- ((_b = (_a = props.options) == null ? void 0 : _a.pagination) == null ? void 0 : _b.current) ?? DEFAULT_PAGE_NUMBER
2273
- );
2274
- const pageSize = vue.ref(
2275
- ((_d = (_c = props.options) == null ? void 0 : _c.pagination) == null ? void 0 : _d.pageSize) ?? DEFAULT_PAGE_SIZE
2276
- );
2424
+ var _a, _b;
2425
+ const {
2426
+ options: { pagination: paginationCfg },
2427
+ showPagination
2428
+ } = props;
2429
+ const current = vue.ref((_a = paginationCfg == null ? void 0 : paginationCfg.current) != null ? _a : DEFAULT_PAGE_NUMBER);
2430
+ const pageSize = vue.ref((_b = paginationCfg == null ? void 0 : paginationCfg.pageSize) != null ? _b : DEFAULT_PAGE_SIZE);
2277
2431
  const total = vue.ref(0);
2278
2432
  const change = (nextCurrent) => {
2279
2433
  current.value = nextCurrent;
@@ -2281,18 +2435,14 @@ const usePagination = (s2Ref, props) => {
2281
2435
  const showSizeChange = (nextPageSize) => {
2282
2436
  pageSize.value = nextPageSize;
2283
2437
  };
2284
- const visible = vue.computed(
2285
- () => {
2286
- var _a2;
2287
- return props.showPagination && !isEmpty((_a2 = props.options) == null ? void 0 : _a2.pagination);
2288
- }
2289
- );
2438
+ const visible = vue.computed(() => {
2439
+ return showPagination && !isEmpty(paginationCfg);
2440
+ });
2290
2441
  vue.watch([current, pageSize], () => {
2291
- var _a2;
2292
2442
  if (!s2Ref.value) {
2293
2443
  return;
2294
2444
  }
2295
- const nextPagination = isEmpty((_a2 = props.options) == null ? void 0 : _a2.pagination) ? null : {
2445
+ const nextPagination = isEmpty(paginationCfg) ? null : {
2296
2446
  current: current.value,
2297
2447
  pageSize: pageSize.value
2298
2448
  };
@@ -2300,15 +2450,12 @@ const usePagination = (s2Ref, props) => {
2300
2450
  s2Ref.value.render(false);
2301
2451
  });
2302
2452
  vue.watch(
2303
- [() => {
2304
- var _a2;
2305
- return (_a2 = props.options) == null ? void 0 : _a2.pagination;
2306
- }, s2Ref],
2453
+ [() => paginationCfg, s2Ref],
2307
2454
  () => {
2308
- var _a2, _b2, _c2, _d2, _e, _f;
2309
- current.value = ((_b2 = (_a2 = props.options) == null ? void 0 : _a2.pagination) == null ? void 0 : _b2.current) ?? DEFAULT_PAGE_NUMBER;
2310
- pageSize.value = ((_d2 = (_c2 = props.options) == null ? void 0 : _c2.pagination) == null ? void 0 : _d2.pageSize) ?? DEFAULT_PAGE_SIZE;
2311
- total.value = ((_f = (_e = s2Ref.value) == null ? void 0 : _e.facet) == null ? void 0 : _f.viewCellHeights.getTotalLength()) ?? 0;
2455
+ var _a2, _b2, _c, _d, _e;
2456
+ current.value = (_a2 = paginationCfg == null ? void 0 : paginationCfg.current) != null ? _a2 : DEFAULT_PAGE_NUMBER;
2457
+ pageSize.value = (_b2 = paginationCfg == null ? void 0 : paginationCfg.pageSize) != null ? _b2 : DEFAULT_PAGE_SIZE;
2458
+ total.value = (_e = (_d = (_c = s2Ref.value) == null ? void 0 : _c.facet) == null ? void 0 : _d.viewCellHeights.getTotalLength()) != null ? _e : 0;
2312
2459
  },
2313
2460
  {
2314
2461
  immediate: true
@@ -2319,8 +2466,7 @@ const usePagination = (s2Ref, props) => {
2319
2466
  return;
2320
2467
  }
2321
2468
  const totalUpdateCallback = (data) => {
2322
- var _a2;
2323
- if (isEmpty((_a2 = props.options) == null ? void 0 : _a2.pagination)) {
2469
+ if (isEmpty(paginationCfg)) {
2324
2470
  return;
2325
2471
  }
2326
2472
  total.value = data.total;
@@ -2332,6 +2478,7 @@ const usePagination = (s2Ref, props) => {
2332
2478
  });
2333
2479
  });
2334
2480
  return {
2481
+ customOptions: omit(paginationCfg, ["current", "pageSize", "total"]),
2335
2482
  visible,
2336
2483
  current,
2337
2484
  pageSize,
@@ -2355,7 +2502,8 @@ const _sfc_main$5 = vue.defineComponent({
2355
2502
  pageSize: {
2356
2503
  type: Number,
2357
2504
  default: DEFAULT_PAGE_SIZE
2358
- }
2505
+ },
2506
+ customOptions: Object
2359
2507
  },
2360
2508
  emits: ["change", "showSizeChange"],
2361
2509
  setup: (props) => {
@@ -2375,17 +2523,18 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
2375
2523
  return vue.openBlock(), vue.createElementBlock("div", {
2376
2524
  class: vue.normalizeClass(_ctx.PRE_CLASS)
2377
2525
  }, [
2378
- vue.createVNode(_component_AntDPagination, {
2526
+ vue.createVNode(_component_AntDPagination, vue.mergeProps({
2527
+ size: "small",
2379
2528
  "default-current": 1,
2529
+ showSizeChanger: true,
2530
+ showQuickJumper: _ctx.showQuickJumper
2531
+ }, _ctx.customOptions, {
2380
2532
  current: _ctx.current,
2381
2533
  total: _ctx.total,
2382
2534
  pageSize: _ctx.pageSize,
2383
- showSizeChanger: true,
2384
2535
  onShowSizeChange: _cache[0] || (_cache[0] = (_, size2) => _ctx.$emit("showSizeChange", size2)),
2385
- size: "small",
2386
- showQuickJumper: _ctx.showQuickJumper,
2387
2536
  onChange: _cache[1] || (_cache[1] = (current) => _ctx.$emit("change", current))
2388
- }, null, 8, ["current", "total", "pageSize", "showQuickJumper"]),
2537
+ }), null, 16, ["showQuickJumper", "current", "total", "pageSize"]),
2389
2538
  vue.createElementVNode("span", {
2390
2539
  class: vue.normalizeClass(`${_ctx.PRE_CLASS}-count`)
2391
2540
  }, vue.toDisplayString(_ctx.i18n("共计")) + " " + vue.toDisplayString(_ctx.total || " - ") + " " + vue.toDisplayString(_ctx.i18n("条")), 3)
@@ -3015,7 +3164,6 @@ const _sfc_main$4 = vue.defineComponent({
3015
3164
  S2Pagination
3016
3165
  }
3017
3166
  });
3018
- const baseSheet_vue_vue_type_style_index_0_lang = "";
3019
3167
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
3020
3168
  const _component_S2Pagination = vue.resolveComponent("S2Pagination");
3021
3169
  const _component_Spin = vue.resolveComponent("Spin");
@@ -3037,9 +3185,10 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
3037
3185
  current: _ctx.pagination.current.value,
3038
3186
  pageSize: _ctx.pagination.pageSize.value,
3039
3187
  total: _ctx.pagination.total.value,
3188
+ customOptions: _ctx.pagination.customOptions,
3040
3189
  onChange: _ctx.handlePageChange,
3041
3190
  onShowSizeChange: _ctx.handlePageSizeChange
3042
- }, null, 8, ["current", "pageSize", "total", "onChange", "onShowSizeChange"])) : vue.createCommentVNode("", true)
3191
+ }, null, 8, ["current", "pageSize", "total", "customOptions", "onChange", "onShowSizeChange"])) : vue.createCommentVNode("", true)
3043
3192
  ], 2)
3044
3193
  ]),
3045
3194
  _: 1
@@ -3171,7 +3320,6 @@ const _sfc_main$3 = vue.defineComponent({
3171
3320
  };
3172
3321
  }
3173
3322
  });
3174
- const index_vue_vue_type_style_index_0_scoped_8dd920ec_lang = "";
3175
3323
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
3176
3324
  const _component_Button = vue.resolveComponent("Button");
3177
3325
  const _component_Input = vue.resolveComponent("Input");
@@ -3250,7 +3398,7 @@ const _sfc_main$2 = vue.defineComponent({
3250
3398
  const { dataCfg, partDrillDown } = vue.toRefs(props);
3251
3399
  const drillFields = vue.ref([]);
3252
3400
  const setDrillFields = (fields) => {
3253
- var _a, _b, _c, _d, _e;
3401
+ var _a, _b, _c, _d, _e, _f;
3254
3402
  const instance = (_a = s2Ref == null ? void 0 : s2Ref.value) == null ? void 0 : _a.instance;
3255
3403
  drillFields.value = fields;
3256
3404
  instance == null ? void 0 : instance.hideTooltip();
@@ -3258,10 +3406,10 @@ const _sfc_main$2 = vue.defineComponent({
3258
3406
  instance == null ? void 0 : instance.clearDrillDownData((_b = instance == null ? void 0 : instance.store.get("drillDownNode")) == null ? void 0 : _b.id);
3259
3407
  } else {
3260
3408
  handleDrillDown({
3261
- rows: ((_c = dataCfg.value) == null ? void 0 : _c.fields.rows) ?? [],
3409
+ rows: (_d = (_c = dataCfg.value) == null ? void 0 : _c.fields.rows) != null ? _d : [],
3262
3410
  drillFields: fields,
3263
- fetchData: (_d = partDrillDown.value) == null ? void 0 : _d["fetchData"],
3264
- drillItemsNum: (_e = partDrillDown.value) == null ? void 0 : _e["drillItemsNum"],
3411
+ fetchData: (_e = partDrillDown.value) == null ? void 0 : _e["fetchData"],
3412
+ drillItemsNum: (_f = partDrillDown.value) == null ? void 0 : _f["drillItemsNum"],
3265
3413
  spreadsheet: instance
3266
3414
  });
3267
3415
  }
@@ -3271,12 +3419,11 @@ const _sfc_main$2 = vue.defineComponent({
3271
3419
  const { event, disabledFields } = params;
3272
3420
  if (event) {
3273
3421
  const instance = (_a = s2Ref == null ? void 0 : s2Ref.value) == null ? void 0 : _a.instance;
3274
- const drillDownNode = vue.createVNode(DrillDown, {
3275
- ...(_b = partDrillDown.value) == null ? void 0 : _b["drillConfig"],
3422
+ const drillDownNode = vue.createVNode(DrillDown, __spreadProps(__spreadValues({}, (_b = partDrillDown.value) == null ? void 0 : _b["drillConfig"]), {
3276
3423
  setDrillFields,
3277
3424
  drillFields: drillFields.value,
3278
3425
  disabledFields
3279
- });
3426
+ }));
3280
3427
  instance == null ? void 0 : instance.showTooltip({
3281
3428
  position: {
3282
3429
  x: event.clientX,
@@ -3354,7 +3501,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
3354
3501
  return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.sheetType), { ref: "s2Ref" }, null, 512);
3355
3502
  }
3356
3503
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
3357
- const version = "@antv/s2-vue-v2.0.0-next.11";
3504
+ const version = "@antv/s2-vue-v2.0.0-next.13";
3358
3505
  exports.BaseSheet = BaseSheet;
3359
3506
  exports.CustomTooltip = CustomTooltip;
3360
3507
  exports.PivotSheet = PivotSheet;