vue-mount-plugin 1.1.0 → 2.1.0

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.
@@ -0,0 +1,1046 @@
1
+ /*!
2
+ * vue-mount-plugin v2.1.0
3
+ * A simple and easy to use vue instance extension plugin that supports vue2.0 and vue3.0
4
+ * (c) 2021-2023 saqqdy <saqqdy@qq.com>
5
+ * Released under the MIT License.
6
+ */
7
+ this.VueMount = (function (vueDemi) {
8
+ 'use strict';
9
+
10
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
11
+
12
+ var check = function (it) {
13
+ return it && it.Math == Math && it;
14
+ };
15
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
16
+ var global$a =
17
+ // eslint-disable-next-line es/no-global-this -- safe
18
+ check(typeof globalThis == 'object' && globalThis) ||
19
+ check(typeof window == 'object' && window) ||
20
+ // eslint-disable-next-line no-restricted-globals -- safe
21
+ check(typeof self == 'object' && self) ||
22
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
23
+ // eslint-disable-next-line no-new-func -- fallback
24
+ (function () { return this; })() || Function('return this')();
25
+
26
+ var objectGetOwnPropertyDescriptor = {};
27
+
28
+ var fails$9 = function (exec) {
29
+ try {
30
+ return !!exec();
31
+ } catch (error) {
32
+ return true;
33
+ }
34
+ };
35
+
36
+ var fails$8 = fails$9;
37
+ // Detect IE8's incomplete defineProperty implementation
38
+ var descriptors = !fails$8(function () {
39
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
40
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
41
+ });
42
+
43
+ var fails$7 = fails$9;
44
+ var functionBindNative = !fails$7(function () {
45
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
46
+ var test = (function () { /* empty */ }).bind();
47
+ // eslint-disable-next-line no-prototype-builtins -- safe
48
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
49
+ });
50
+
51
+ var NATIVE_BIND$1 = functionBindNative;
52
+ var call$5 = Function.prototype.call;
53
+ var functionCall = NATIVE_BIND$1 ? call$5.bind(call$5) : function () {
54
+ return call$5.apply(call$5, arguments);
55
+ };
56
+
57
+ var objectPropertyIsEnumerable = {};
58
+
59
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
60
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
61
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
62
+ // Nashorn ~ JDK8 bug
63
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
64
+ // `Object.prototype.propertyIsEnumerable` method implementation
65
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
66
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
67
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
68
+ return !!descriptor && descriptor.enumerable;
69
+ } : $propertyIsEnumerable;
70
+
71
+ var createPropertyDescriptor$2 = function (bitmap, value) {
72
+ return {
73
+ enumerable: !(bitmap & 1),
74
+ configurable: !(bitmap & 2),
75
+ writable: !(bitmap & 4),
76
+ value: value
77
+ };
78
+ };
79
+
80
+ var NATIVE_BIND = functionBindNative;
81
+ var FunctionPrototype$1 = Function.prototype;
82
+ var call$4 = FunctionPrototype$1.call;
83
+ var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$4, call$4);
84
+ var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
85
+ return function () {
86
+ return call$4.apply(fn, arguments);
87
+ };
88
+ };
89
+
90
+ var uncurryThis$9 = functionUncurryThis;
91
+ var toString$1 = uncurryThis$9({}.toString);
92
+ var stringSlice$1 = uncurryThis$9(''.slice);
93
+ var classofRaw = function (it) {
94
+ return stringSlice$1(toString$1(it), 8, -1);
95
+ };
96
+
97
+ var uncurryThis$8 = functionUncurryThis;
98
+ var fails$6 = fails$9;
99
+ var classof = classofRaw;
100
+ var $Object$2 = Object;
101
+ var split = uncurryThis$8(''.split);
102
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
103
+ var indexedObject = fails$6(function () {
104
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
105
+ // eslint-disable-next-line no-prototype-builtins -- safe
106
+ return !$Object$2('z').propertyIsEnumerable(0);
107
+ }) ? function (it) {
108
+ return classof(it) == 'String' ? split(it, '') : $Object$2(it);
109
+ } : $Object$2;
110
+
111
+ // we can't use just `it == null` since of `document.all` special case
112
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
113
+ var isNullOrUndefined$2 = function (it) {
114
+ return it === null || it === undefined;
115
+ };
116
+
117
+ var isNullOrUndefined$1 = isNullOrUndefined$2;
118
+ var $TypeError$5 = TypeError;
119
+ // `RequireObjectCoercible` abstract operation
120
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
121
+ var requireObjectCoercible$2 = function (it) {
122
+ if (isNullOrUndefined$1(it)) throw $TypeError$5("Can't call method on " + it);
123
+ return it;
124
+ };
125
+
126
+ // toObject with fallback for non-array-like ES3 strings
127
+ var IndexedObject$1 = indexedObject;
128
+ var requireObjectCoercible$1 = requireObjectCoercible$2;
129
+ var toIndexedObject$3 = function (it) {
130
+ return IndexedObject$1(requireObjectCoercible$1(it));
131
+ };
132
+
133
+ var documentAll$2 = typeof document == 'object' && document.all;
134
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
135
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
136
+ var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
137
+ var documentAll_1 = {
138
+ all: documentAll$2,
139
+ IS_HTMLDDA: IS_HTMLDDA
140
+ };
141
+
142
+ var $documentAll$1 = documentAll_1;
143
+ var documentAll$1 = $documentAll$1.all;
144
+ // `IsCallable` abstract operation
145
+ // https://tc39.es/ecma262/#sec-iscallable
146
+ var isCallable$a = $documentAll$1.IS_HTMLDDA ? function (argument) {
147
+ return typeof argument == 'function' || argument === documentAll$1;
148
+ } : function (argument) {
149
+ return typeof argument == 'function';
150
+ };
151
+
152
+ var isCallable$9 = isCallable$a;
153
+ var $documentAll = documentAll_1;
154
+ var documentAll = $documentAll.all;
155
+ var isObject$5 = $documentAll.IS_HTMLDDA ? function (it) {
156
+ return typeof it == 'object' ? it !== null : isCallable$9(it) || it === documentAll;
157
+ } : function (it) {
158
+ return typeof it == 'object' ? it !== null : isCallable$9(it);
159
+ };
160
+
161
+ var global$9 = global$a;
162
+ var isCallable$8 = isCallable$a;
163
+ var aFunction = function (argument) {
164
+ return isCallable$8(argument) ? argument : undefined;
165
+ };
166
+ var getBuiltIn$2 = function (namespace, method) {
167
+ return arguments.length < 2 ? aFunction(global$9[namespace]) : global$9[namespace] && global$9[namespace][method];
168
+ };
169
+
170
+ var uncurryThis$7 = functionUncurryThis;
171
+ var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
172
+
173
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
174
+
175
+ var global$8 = global$a;
176
+ var userAgent = engineUserAgent;
177
+ var process = global$8.process;
178
+ var Deno = global$8.Deno;
179
+ var versions = process && process.versions || Deno && Deno.version;
180
+ var v8 = versions && versions.v8;
181
+ var match, version;
182
+ if (v8) {
183
+ match = v8.split('.');
184
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
185
+ // but their correct versions are not interesting for us
186
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
187
+ }
188
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
189
+ // so check `userAgent` even if `.v8` exists, but 0
190
+ if (!version && userAgent) {
191
+ match = userAgent.match(/Edge\/(\d+)/);
192
+ if (!match || match[1] >= 74) {
193
+ match = userAgent.match(/Chrome\/(\d+)/);
194
+ if (match) version = +match[1];
195
+ }
196
+ }
197
+ var engineV8Version = version;
198
+
199
+ /* eslint-disable es/no-symbol -- required for testing */
200
+ var V8_VERSION = engineV8Version;
201
+ var fails$5 = fails$9;
202
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
203
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {
204
+ var symbol = Symbol();
205
+ // Chrome 38 Symbol has incorrect toString conversion
206
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
207
+ return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
208
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
209
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
210
+ });
211
+
212
+ /* eslint-disable es/no-symbol -- required for testing */
213
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
214
+ var useSymbolAsUid = NATIVE_SYMBOL$1
215
+ && !Symbol.sham
216
+ && typeof Symbol.iterator == 'symbol';
217
+
218
+ var getBuiltIn$1 = getBuiltIn$2;
219
+ var isCallable$7 = isCallable$a;
220
+ var isPrototypeOf = objectIsPrototypeOf;
221
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
222
+ var $Object$1 = Object;
223
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
224
+ return typeof it == 'symbol';
225
+ } : function (it) {
226
+ var $Symbol = getBuiltIn$1('Symbol');
227
+ return isCallable$7($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
228
+ };
229
+
230
+ var $String$2 = String;
231
+ var tryToString$1 = function (argument) {
232
+ try {
233
+ return $String$2(argument);
234
+ } catch (error) {
235
+ return 'Object';
236
+ }
237
+ };
238
+
239
+ var isCallable$6 = isCallable$a;
240
+ var tryToString = tryToString$1;
241
+ var $TypeError$4 = TypeError;
242
+ // `Assert: IsCallable(argument) is true`
243
+ var aCallable$1 = function (argument) {
244
+ if (isCallable$6(argument)) return argument;
245
+ throw $TypeError$4(tryToString(argument) + ' is not a function');
246
+ };
247
+
248
+ var aCallable = aCallable$1;
249
+ var isNullOrUndefined = isNullOrUndefined$2;
250
+ // `GetMethod` abstract operation
251
+ // https://tc39.es/ecma262/#sec-getmethod
252
+ var getMethod$1 = function (V, P) {
253
+ var func = V[P];
254
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
255
+ };
256
+
257
+ var call$3 = functionCall;
258
+ var isCallable$5 = isCallable$a;
259
+ var isObject$4 = isObject$5;
260
+ var $TypeError$3 = TypeError;
261
+ // `OrdinaryToPrimitive` abstract operation
262
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
263
+ var ordinaryToPrimitive$1 = function (input, pref) {
264
+ var fn, val;
265
+ if (pref === 'string' && isCallable$5(fn = input.toString) && !isObject$4(val = call$3(fn, input))) return val;
266
+ if (isCallable$5(fn = input.valueOf) && !isObject$4(val = call$3(fn, input))) return val;
267
+ if (pref !== 'string' && isCallable$5(fn = input.toString) && !isObject$4(val = call$3(fn, input))) return val;
268
+ throw $TypeError$3("Can't convert object to primitive value");
269
+ };
270
+
271
+ var sharedExports = {};
272
+ var shared$3 = {
273
+ get exports(){ return sharedExports; },
274
+ set exports(v){ sharedExports = v; },
275
+ };
276
+
277
+ var global$7 = global$a;
278
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
279
+ var defineProperty$2 = Object.defineProperty;
280
+ var defineGlobalProperty$3 = function (key, value) {
281
+ try {
282
+ defineProperty$2(global$7, key, { value: value, configurable: true, writable: true });
283
+ } catch (error) {
284
+ global$7[key] = value;
285
+ } return value;
286
+ };
287
+
288
+ var global$6 = global$a;
289
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
290
+ var SHARED = '__core-js_shared__';
291
+ var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {});
292
+ var sharedStore = store$3;
293
+
294
+ var store$2 = sharedStore;
295
+ (shared$3.exports = function (key, value) {
296
+ return store$2[key] || (store$2[key] = value !== undefined ? value : {});
297
+ })('versions', []).push({
298
+ version: '3.29.1',
299
+ mode: 'global',
300
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
301
+ license: 'https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE',
302
+ source: 'https://github.com/zloirock/core-js'
303
+ });
304
+
305
+ var requireObjectCoercible = requireObjectCoercible$2;
306
+ var $Object = Object;
307
+ // `ToObject` abstract operation
308
+ // https://tc39.es/ecma262/#sec-toobject
309
+ var toObject$2 = function (argument) {
310
+ return $Object(requireObjectCoercible(argument));
311
+ };
312
+
313
+ var uncurryThis$6 = functionUncurryThis;
314
+ var toObject$1 = toObject$2;
315
+ var hasOwnProperty = uncurryThis$6({}.hasOwnProperty);
316
+ // `HasOwnProperty` abstract operation
317
+ // https://tc39.es/ecma262/#sec-hasownproperty
318
+ // eslint-disable-next-line es/no-object-hasown -- safe
319
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
320
+ return hasOwnProperty(toObject$1(it), key);
321
+ };
322
+
323
+ var uncurryThis$5 = functionUncurryThis;
324
+ var id = 0;
325
+ var postfix = Math.random();
326
+ var toString = uncurryThis$5(1.0.toString);
327
+ var uid$2 = function (key) {
328
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
329
+ };
330
+
331
+ var global$5 = global$a;
332
+ var shared$2 = sharedExports;
333
+ var hasOwn$6 = hasOwnProperty_1;
334
+ var uid$1 = uid$2;
335
+ var NATIVE_SYMBOL = symbolConstructorDetection;
336
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
337
+ var Symbol$1 = global$5.Symbol;
338
+ var WellKnownSymbolsStore = shared$2('wks');
339
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
340
+ var wellKnownSymbol$1 = function (name) {
341
+ if (!hasOwn$6(WellKnownSymbolsStore, name)) {
342
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
343
+ ? Symbol$1[name]
344
+ : createWellKnownSymbol('Symbol.' + name);
345
+ } return WellKnownSymbolsStore[name];
346
+ };
347
+
348
+ var call$2 = functionCall;
349
+ var isObject$3 = isObject$5;
350
+ var isSymbol$1 = isSymbol$2;
351
+ var getMethod = getMethod$1;
352
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
353
+ var wellKnownSymbol = wellKnownSymbol$1;
354
+ var $TypeError$2 = TypeError;
355
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
356
+ // `ToPrimitive` abstract operation
357
+ // https://tc39.es/ecma262/#sec-toprimitive
358
+ var toPrimitive$1 = function (input, pref) {
359
+ if (!isObject$3(input) || isSymbol$1(input)) return input;
360
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
361
+ var result;
362
+ if (exoticToPrim) {
363
+ if (pref === undefined) pref = 'default';
364
+ result = call$2(exoticToPrim, input, pref);
365
+ if (!isObject$3(result) || isSymbol$1(result)) return result;
366
+ throw $TypeError$2("Can't convert object to primitive value");
367
+ }
368
+ if (pref === undefined) pref = 'number';
369
+ return ordinaryToPrimitive(input, pref);
370
+ };
371
+
372
+ var toPrimitive = toPrimitive$1;
373
+ var isSymbol = isSymbol$2;
374
+ // `ToPropertyKey` abstract operation
375
+ // https://tc39.es/ecma262/#sec-topropertykey
376
+ var toPropertyKey$2 = function (argument) {
377
+ var key = toPrimitive(argument, 'string');
378
+ return isSymbol(key) ? key : key + '';
379
+ };
380
+
381
+ var global$4 = global$a;
382
+ var isObject$2 = isObject$5;
383
+ var document$1 = global$4.document;
384
+ // typeof document.createElement is 'object' in old IE
385
+ var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
386
+ var documentCreateElement = function (it) {
387
+ return EXISTS$1 ? document$1.createElement(it) : {};
388
+ };
389
+
390
+ var DESCRIPTORS$7 = descriptors;
391
+ var fails$4 = fails$9;
392
+ var createElement = documentCreateElement;
393
+ // Thanks to IE8 for its funny defineProperty
394
+ var ie8DomDefine = !DESCRIPTORS$7 && !fails$4(function () {
395
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
396
+ return Object.defineProperty(createElement('div'), 'a', {
397
+ get: function () { return 7; }
398
+ }).a != 7;
399
+ });
400
+
401
+ var DESCRIPTORS$6 = descriptors;
402
+ var call$1 = functionCall;
403
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
404
+ var createPropertyDescriptor$1 = createPropertyDescriptor$2;
405
+ var toIndexedObject$2 = toIndexedObject$3;
406
+ var toPropertyKey$1 = toPropertyKey$2;
407
+ var hasOwn$5 = hasOwnProperty_1;
408
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
409
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
410
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
411
+ // `Object.getOwnPropertyDescriptor` method
412
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
413
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
414
+ O = toIndexedObject$2(O);
415
+ P = toPropertyKey$1(P);
416
+ if (IE8_DOM_DEFINE$1) try {
417
+ return $getOwnPropertyDescriptor$1(O, P);
418
+ } catch (error) { /* empty */ }
419
+ if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
420
+ };
421
+
422
+ var objectDefineProperty = {};
423
+
424
+ var DESCRIPTORS$5 = descriptors;
425
+ var fails$3 = fails$9;
426
+ // V8 ~ Chrome 36-
427
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
428
+ var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$3(function () {
429
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
430
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
431
+ value: 42,
432
+ writable: false
433
+ }).prototype != 42;
434
+ });
435
+
436
+ var isObject$1 = isObject$5;
437
+ var $String$1 = String;
438
+ var $TypeError$1 = TypeError;
439
+ // `Assert: Type(argument) is Object`
440
+ var anObject$2 = function (argument) {
441
+ if (isObject$1(argument)) return argument;
442
+ throw $TypeError$1($String$1(argument) + ' is not an object');
443
+ };
444
+
445
+ var DESCRIPTORS$4 = descriptors;
446
+ var IE8_DOM_DEFINE = ie8DomDefine;
447
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
448
+ var anObject$1 = anObject$2;
449
+ var toPropertyKey = toPropertyKey$2;
450
+ var $TypeError = TypeError;
451
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
452
+ var $defineProperty = Object.defineProperty;
453
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
454
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
455
+ var ENUMERABLE = 'enumerable';
456
+ var CONFIGURABLE$1 = 'configurable';
457
+ var WRITABLE = 'writable';
458
+ // `Object.defineProperty` method
459
+ // https://tc39.es/ecma262/#sec-object.defineproperty
460
+ objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
461
+ anObject$1(O);
462
+ P = toPropertyKey(P);
463
+ anObject$1(Attributes);
464
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
465
+ var current = $getOwnPropertyDescriptor(O, P);
466
+ if (current && current[WRITABLE]) {
467
+ O[P] = Attributes.value;
468
+ Attributes = {
469
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
470
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
471
+ writable: false
472
+ };
473
+ }
474
+ } return $defineProperty(O, P, Attributes);
475
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
476
+ anObject$1(O);
477
+ P = toPropertyKey(P);
478
+ anObject$1(Attributes);
479
+ if (IE8_DOM_DEFINE) try {
480
+ return $defineProperty(O, P, Attributes);
481
+ } catch (error) { /* empty */ }
482
+ if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');
483
+ if ('value' in Attributes) O[P] = Attributes.value;
484
+ return O;
485
+ };
486
+
487
+ var DESCRIPTORS$3 = descriptors;
488
+ var definePropertyModule$2 = objectDefineProperty;
489
+ var createPropertyDescriptor = createPropertyDescriptor$2;
490
+ var createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function (object, key, value) {
491
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor(1, value));
492
+ } : function (object, key, value) {
493
+ object[key] = value;
494
+ return object;
495
+ };
496
+
497
+ var makeBuiltInExports = {};
498
+ var makeBuiltIn$2 = {
499
+ get exports(){ return makeBuiltInExports; },
500
+ set exports(v){ makeBuiltInExports = v; },
501
+ };
502
+
503
+ var DESCRIPTORS$2 = descriptors;
504
+ var hasOwn$4 = hasOwnProperty_1;
505
+ var FunctionPrototype = Function.prototype;
506
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
507
+ var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
508
+ var EXISTS = hasOwn$4(FunctionPrototype, 'name');
509
+ // additional protection from minified / mangled / dropped function names
510
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
511
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
512
+ var functionName = {
513
+ EXISTS: EXISTS,
514
+ PROPER: PROPER,
515
+ CONFIGURABLE: CONFIGURABLE
516
+ };
517
+
518
+ var uncurryThis$4 = functionUncurryThis;
519
+ var isCallable$4 = isCallable$a;
520
+ var store$1 = sharedStore;
521
+ var functionToString = uncurryThis$4(Function.toString);
522
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
523
+ if (!isCallable$4(store$1.inspectSource)) {
524
+ store$1.inspectSource = function (it) {
525
+ return functionToString(it);
526
+ };
527
+ }
528
+ var inspectSource$1 = store$1.inspectSource;
529
+
530
+ var global$3 = global$a;
531
+ var isCallable$3 = isCallable$a;
532
+ var WeakMap$1 = global$3.WeakMap;
533
+ var weakMapBasicDetection = isCallable$3(WeakMap$1) && /native code/.test(String(WeakMap$1));
534
+
535
+ var shared$1 = sharedExports;
536
+ var uid = uid$2;
537
+ var keys = shared$1('keys');
538
+ var sharedKey$1 = function (key) {
539
+ return keys[key] || (keys[key] = uid(key));
540
+ };
541
+
542
+ var hiddenKeys$3 = {};
543
+
544
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
545
+ var global$2 = global$a;
546
+ var isObject = isObject$5;
547
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
548
+ var hasOwn$3 = hasOwnProperty_1;
549
+ var shared = sharedStore;
550
+ var sharedKey = sharedKey$1;
551
+ var hiddenKeys$2 = hiddenKeys$3;
552
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
553
+ var TypeError$1 = global$2.TypeError;
554
+ var WeakMap = global$2.WeakMap;
555
+ var set, get, has;
556
+ var enforce = function (it) {
557
+ return has(it) ? get(it) : set(it, {});
558
+ };
559
+ var getterFor = function (TYPE) {
560
+ return function (it) {
561
+ var state;
562
+ if (!isObject(it) || (state = get(it)).type !== TYPE) {
563
+ throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
564
+ } return state;
565
+ };
566
+ };
567
+ if (NATIVE_WEAK_MAP || shared.state) {
568
+ var store = shared.state || (shared.state = new WeakMap());
569
+ /* eslint-disable no-self-assign -- prototype methods protection */
570
+ store.get = store.get;
571
+ store.has = store.has;
572
+ store.set = store.set;
573
+ /* eslint-enable no-self-assign -- prototype methods protection */
574
+ set = function (it, metadata) {
575
+ if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
576
+ metadata.facade = it;
577
+ store.set(it, metadata);
578
+ return metadata;
579
+ };
580
+ get = function (it) {
581
+ return store.get(it) || {};
582
+ };
583
+ has = function (it) {
584
+ return store.has(it);
585
+ };
586
+ } else {
587
+ var STATE = sharedKey('state');
588
+ hiddenKeys$2[STATE] = true;
589
+ set = function (it, metadata) {
590
+ if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
591
+ metadata.facade = it;
592
+ createNonEnumerableProperty$1(it, STATE, metadata);
593
+ return metadata;
594
+ };
595
+ get = function (it) {
596
+ return hasOwn$3(it, STATE) ? it[STATE] : {};
597
+ };
598
+ has = function (it) {
599
+ return hasOwn$3(it, STATE);
600
+ };
601
+ }
602
+ var internalState = {
603
+ set: set,
604
+ get: get,
605
+ has: has,
606
+ enforce: enforce,
607
+ getterFor: getterFor
608
+ };
609
+
610
+ var uncurryThis$3 = functionUncurryThis;
611
+ var fails$2 = fails$9;
612
+ var isCallable$2 = isCallable$a;
613
+ var hasOwn$2 = hasOwnProperty_1;
614
+ var DESCRIPTORS$1 = descriptors;
615
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
616
+ var inspectSource = inspectSource$1;
617
+ var InternalStateModule = internalState;
618
+ var enforceInternalState = InternalStateModule.enforce;
619
+ var getInternalState = InternalStateModule.get;
620
+ var $String = String;
621
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
622
+ var defineProperty$1 = Object.defineProperty;
623
+ var stringSlice = uncurryThis$3(''.slice);
624
+ var replace = uncurryThis$3(''.replace);
625
+ var join = uncurryThis$3([].join);
626
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$2(function () {
627
+ return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
628
+ });
629
+ var TEMPLATE = String(String).split('String');
630
+ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
631
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
632
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
633
+ }
634
+ if (options && options.getter) name = 'get ' + name;
635
+ if (options && options.setter) name = 'set ' + name;
636
+ if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
637
+ if (DESCRIPTORS$1) defineProperty$1(value, 'name', { value: name, configurable: true });
638
+ else value.name = name;
639
+ }
640
+ if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
641
+ defineProperty$1(value, 'length', { value: options.arity });
642
+ }
643
+ try {
644
+ if (options && hasOwn$2(options, 'constructor') && options.constructor) {
645
+ if (DESCRIPTORS$1) defineProperty$1(value, 'prototype', { writable: false });
646
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
647
+ } else if (value.prototype) value.prototype = undefined;
648
+ } catch (error) { /* empty */ }
649
+ var state = enforceInternalState(value);
650
+ if (!hasOwn$2(state, 'source')) {
651
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
652
+ } return value;
653
+ };
654
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
655
+ // eslint-disable-next-line no-extend-native -- required
656
+ Function.prototype.toString = makeBuiltIn$1(function toString() {
657
+ return isCallable$2(this) && getInternalState(this).source || inspectSource(this);
658
+ }, 'toString');
659
+
660
+ var isCallable$1 = isCallable$a;
661
+ var definePropertyModule$1 = objectDefineProperty;
662
+ var makeBuiltIn = makeBuiltInExports;
663
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
664
+ var defineBuiltIn$1 = function (O, key, value, options) {
665
+ if (!options) options = {};
666
+ var simple = options.enumerable;
667
+ var name = options.name !== undefined ? options.name : key;
668
+ if (isCallable$1(value)) makeBuiltIn(value, name, options);
669
+ if (options.global) {
670
+ if (simple) O[key] = value;
671
+ else defineGlobalProperty$1(key, value);
672
+ } else {
673
+ try {
674
+ if (!options.unsafe) delete O[key];
675
+ else if (O[key]) simple = true;
676
+ } catch (error) { /* empty */ }
677
+ if (simple) O[key] = value;
678
+ else definePropertyModule$1.f(O, key, {
679
+ value: value,
680
+ enumerable: false,
681
+ configurable: !options.nonConfigurable,
682
+ writable: !options.nonWritable
683
+ });
684
+ } return O;
685
+ };
686
+
687
+ var objectGetOwnPropertyNames = {};
688
+
689
+ var ceil = Math.ceil;
690
+ var floor = Math.floor;
691
+ // `Math.trunc` method
692
+ // https://tc39.es/ecma262/#sec-math.trunc
693
+ // eslint-disable-next-line es/no-math-trunc -- safe
694
+ var mathTrunc = Math.trunc || function trunc(x) {
695
+ var n = +x;
696
+ return (n > 0 ? floor : ceil)(n);
697
+ };
698
+
699
+ var trunc = mathTrunc;
700
+ // `ToIntegerOrInfinity` abstract operation
701
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
702
+ var toIntegerOrInfinity$2 = function (argument) {
703
+ var number = +argument;
704
+ // eslint-disable-next-line no-self-compare -- NaN check
705
+ return number !== number || number === 0 ? 0 : trunc(number);
706
+ };
707
+
708
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
709
+ var max = Math.max;
710
+ var min$1 = Math.min;
711
+ // Helper for a popular repeating case of the spec:
712
+ // Let integer be ? ToInteger(index).
713
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
714
+ var toAbsoluteIndex$1 = function (index, length) {
715
+ var integer = toIntegerOrInfinity$1(index);
716
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
717
+ };
718
+
719
+ var toIntegerOrInfinity = toIntegerOrInfinity$2;
720
+ var min = Math.min;
721
+ // `ToLength` abstract operation
722
+ // https://tc39.es/ecma262/#sec-tolength
723
+ var toLength$1 = function (argument) {
724
+ return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
725
+ };
726
+
727
+ var toLength = toLength$1;
728
+ // `LengthOfArrayLike` abstract operation
729
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
730
+ var lengthOfArrayLike$1 = function (obj) {
731
+ return toLength(obj.length);
732
+ };
733
+
734
+ var toIndexedObject$1 = toIndexedObject$3;
735
+ var toAbsoluteIndex = toAbsoluteIndex$1;
736
+ var lengthOfArrayLike = lengthOfArrayLike$1;
737
+ // `Array.prototype.{ indexOf, includes }` methods implementation
738
+ var createMethod = function (IS_INCLUDES) {
739
+ return function ($this, el, fromIndex) {
740
+ var O = toIndexedObject$1($this);
741
+ var length = lengthOfArrayLike(O);
742
+ var index = toAbsoluteIndex(fromIndex, length);
743
+ var value;
744
+ // Array#includes uses SameValueZero equality algorithm
745
+ // eslint-disable-next-line no-self-compare -- NaN check
746
+ if (IS_INCLUDES && el != el) while (length > index) {
747
+ value = O[index++];
748
+ // eslint-disable-next-line no-self-compare -- NaN check
749
+ if (value != value) return true;
750
+ // Array#indexOf ignores holes, Array#includes - not
751
+ } else for (;length > index; index++) {
752
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
753
+ } return !IS_INCLUDES && -1;
754
+ };
755
+ };
756
+ var arrayIncludes = {
757
+ // `Array.prototype.includes` method
758
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
759
+ includes: createMethod(true),
760
+ // `Array.prototype.indexOf` method
761
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
762
+ indexOf: createMethod(false)
763
+ };
764
+
765
+ var uncurryThis$2 = functionUncurryThis;
766
+ var hasOwn$1 = hasOwnProperty_1;
767
+ var toIndexedObject = toIndexedObject$3;
768
+ var indexOf = arrayIncludes.indexOf;
769
+ var hiddenKeys$1 = hiddenKeys$3;
770
+ var push = uncurryThis$2([].push);
771
+ var objectKeysInternal = function (object, names) {
772
+ var O = toIndexedObject(object);
773
+ var i = 0;
774
+ var result = [];
775
+ var key;
776
+ for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key);
777
+ // Don't enum bug & hidden keys
778
+ while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
779
+ ~indexOf(result, key) || push(result, key);
780
+ }
781
+ return result;
782
+ };
783
+
784
+ // IE8- don't enum bug keys
785
+ var enumBugKeys$2 = [
786
+ 'constructor',
787
+ 'hasOwnProperty',
788
+ 'isPrototypeOf',
789
+ 'propertyIsEnumerable',
790
+ 'toLocaleString',
791
+ 'toString',
792
+ 'valueOf'
793
+ ];
794
+
795
+ var internalObjectKeys$1 = objectKeysInternal;
796
+ var enumBugKeys$1 = enumBugKeys$2;
797
+ var hiddenKeys = enumBugKeys$1.concat('length', 'prototype');
798
+ // `Object.getOwnPropertyNames` method
799
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
800
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
801
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
802
+ return internalObjectKeys$1(O, hiddenKeys);
803
+ };
804
+
805
+ var objectGetOwnPropertySymbols = {};
806
+
807
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
808
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
809
+
810
+ var getBuiltIn = getBuiltIn$2;
811
+ var uncurryThis$1 = functionUncurryThis;
812
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
813
+ var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
814
+ var anObject = anObject$2;
815
+ var concat$1 = uncurryThis$1([].concat);
816
+ // all object keys, includes non-enumerable and symbols
817
+ var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
818
+ var keys = getOwnPropertyNamesModule.f(anObject(it));
819
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
820
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
821
+ };
822
+
823
+ var hasOwn = hasOwnProperty_1;
824
+ var ownKeys = ownKeys$1;
825
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
826
+ var definePropertyModule = objectDefineProperty;
827
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
828
+ var keys = ownKeys(source);
829
+ var defineProperty = definePropertyModule.f;
830
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
831
+ for (var i = 0; i < keys.length; i++) {
832
+ var key = keys[i];
833
+ if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
834
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
835
+ }
836
+ }
837
+ };
838
+
839
+ var fails$1 = fails$9;
840
+ var isCallable = isCallable$a;
841
+ var replacement = /#|\.prototype\./;
842
+ var isForced$1 = function (feature, detection) {
843
+ var value = data[normalize(feature)];
844
+ return value == POLYFILL ? true
845
+ : value == NATIVE ? false
846
+ : isCallable(detection) ? fails$1(detection)
847
+ : !!detection;
848
+ };
849
+ var normalize = isForced$1.normalize = function (string) {
850
+ return String(string).replace(replacement, '.').toLowerCase();
851
+ };
852
+ var data = isForced$1.data = {};
853
+ var NATIVE = isForced$1.NATIVE = 'N';
854
+ var POLYFILL = isForced$1.POLYFILL = 'P';
855
+ var isForced_1 = isForced$1;
856
+
857
+ var global$1 = global$a;
858
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
859
+ var createNonEnumerableProperty = createNonEnumerableProperty$2;
860
+ var defineBuiltIn = defineBuiltIn$1;
861
+ var defineGlobalProperty = defineGlobalProperty$3;
862
+ var copyConstructorProperties = copyConstructorProperties$1;
863
+ var isForced = isForced_1;
864
+ /*
865
+ options.target - name of the target object
866
+ options.global - target is the global object
867
+ options.stat - export as static methods of target
868
+ options.proto - export as prototype methods of target
869
+ options.real - real prototype method for the `pure` version
870
+ options.forced - export even if the native feature is available
871
+ options.bind - bind methods to the target, required for the `pure` version
872
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
873
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
874
+ options.sham - add a flag to not completely full polyfills
875
+ options.enumerable - export as enumerable property
876
+ options.dontCallGetSet - prevent calling a getter on target
877
+ options.name - the .name of the function if it does not match the key
878
+ */
879
+ var _export = function (options, source) {
880
+ var TARGET = options.target;
881
+ var GLOBAL = options.global;
882
+ var STATIC = options.stat;
883
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
884
+ if (GLOBAL) {
885
+ target = global$1;
886
+ } else if (STATIC) {
887
+ target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
888
+ } else {
889
+ target = (global$1[TARGET] || {}).prototype;
890
+ }
891
+ if (target) for (key in source) {
892
+ sourceProperty = source[key];
893
+ if (options.dontCallGetSet) {
894
+ descriptor = getOwnPropertyDescriptor(target, key);
895
+ targetProperty = descriptor && descriptor.value;
896
+ } else targetProperty = target[key];
897
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
898
+ // contained in target
899
+ if (!FORCED && targetProperty !== undefined) {
900
+ if (typeof sourceProperty == typeof targetProperty) continue;
901
+ copyConstructorProperties(sourceProperty, targetProperty);
902
+ }
903
+ // add a flag to not completely full polyfills
904
+ if (options.sham || (targetProperty && targetProperty.sham)) {
905
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
906
+ }
907
+ defineBuiltIn(target, key, sourceProperty, options);
908
+ }
909
+ };
910
+
911
+ var internalObjectKeys = objectKeysInternal;
912
+ var enumBugKeys = enumBugKeys$2;
913
+ // `Object.keys` method
914
+ // https://tc39.es/ecma262/#sec-object.keys
915
+ // eslint-disable-next-line es/no-object-keys -- safe
916
+ var objectKeys$1 = Object.keys || function keys(O) {
917
+ return internalObjectKeys(O, enumBugKeys);
918
+ };
919
+
920
+ var DESCRIPTORS = descriptors;
921
+ var uncurryThis = functionUncurryThis;
922
+ var call = functionCall;
923
+ var fails = fails$9;
924
+ var objectKeys = objectKeys$1;
925
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
926
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
927
+ var toObject = toObject$2;
928
+ var IndexedObject = indexedObject;
929
+ // eslint-disable-next-line es/no-object-assign -- safe
930
+ var $assign = Object.assign;
931
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
932
+ var defineProperty = Object.defineProperty;
933
+ var concat = uncurryThis([].concat);
934
+ // `Object.assign` method
935
+ // https://tc39.es/ecma262/#sec-object.assign
936
+ var objectAssign = !$assign || fails(function () {
937
+ // should have correct order of operations (Edge bug)
938
+ if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
939
+ enumerable: true,
940
+ get: function () {
941
+ defineProperty(this, 'b', {
942
+ value: 3,
943
+ enumerable: false
944
+ });
945
+ }
946
+ }), { b: 2 })).b !== 1) return true;
947
+ // should work with symbols and should have deterministic property order (V8 bug)
948
+ var A = {};
949
+ var B = {};
950
+ // eslint-disable-next-line es/no-symbol -- safe
951
+ var symbol = Symbol();
952
+ var alphabet = 'abcdefghijklmnopqrst';
953
+ A[symbol] = 7;
954
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
955
+ return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
956
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
957
+ var T = toObject(target);
958
+ var argumentsLength = arguments.length;
959
+ var index = 1;
960
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
961
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
962
+ while (argumentsLength > index) {
963
+ var S = IndexedObject(arguments[index++]);
964
+ var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
965
+ var length = keys.length;
966
+ var j = 0;
967
+ var key;
968
+ while (length > j) {
969
+ key = keys[j++];
970
+ if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
971
+ }
972
+ } return T;
973
+ } : $assign;
974
+
975
+ var $ = _export;
976
+ var assign = objectAssign;
977
+ // `Object.assign` method
978
+ // https://tc39.es/ecma262/#sec-object.assign
979
+ // eslint-disable-next-line es/no-object-assign -- required for testing
980
+ $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
981
+ assign: assign
982
+ });
983
+
984
+ var Mount = function () {
985
+ function Mount(component, options) {
986
+ if (options === void 0) {
987
+ options = {};
988
+ }
989
+ this.vNode = null;
990
+ this.options = {};
991
+ this.seed = 1;
992
+ if (typeof document === 'undefined') throw new Error('This plugin works in browser');
993
+ this.options = options;
994
+ this.target = (typeof options.target === 'string' ? document.querySelector(options.target) : options.target) || document.createElement(options.tagName || 'div');
995
+ this.vNode = this.createVM(component, options);
996
+ }
997
+ Mount.prototype.createVM = function (component, _a) {
998
+ var _b = _a === void 0 ? {} : _a,
999
+ props = _b.props,
1000
+ children = _b.children,
1001
+ patchFlag = _b.patchFlag,
1002
+ dynamicProps = _b.dynamicProps,
1003
+ isBlockNode = _b.isBlockNode,
1004
+ app = _b.app,
1005
+ context = _b.context,
1006
+ parent = _b.parent;
1007
+ var vNode;
1008
+ if (vueDemi.isVue2) {
1009
+ var VueConstructor = vueDemi.Vue2.extend(Object.assign({}, context || {}, component));
1010
+ vNode = new VueConstructor({
1011
+ parent: parent,
1012
+ propsData: props
1013
+ });
1014
+ vNode.id = 'mount-plugin-' + this.seed++;
1015
+ return vNode;
1016
+ } else {
1017
+ vNode = vueDemi.createVNode(component, props, children, patchFlag, dynamicProps, isBlockNode);
1018
+ if (app === null || app === void 0 ? void 0 : app._context) vNode.appContext = app._context;
1019
+ return vNode;
1020
+ }
1021
+ };
1022
+ Mount.prototype.mount = function () {
1023
+ !this.options.target && document.body.appendChild(this.target);
1024
+ if (vueDemi.isVue2) {
1025
+ this.vNode && this.vNode.$mount(this.target);
1026
+ } else {
1027
+ vueDemi.render(this.vNode, this.target);
1028
+ }
1029
+ };
1030
+ Mount.prototype.unmount = function () {
1031
+ if (vueDemi.isVue2) {
1032
+ this.vNode.$destroy();
1033
+ document.body.removeChild(this.vNode.$el);
1034
+ } else {
1035
+ vueDemi.render(null, this.target);
1036
+ document.body.removeChild(this.target);
1037
+ }
1038
+ this.vNode = null;
1039
+ this.target = null;
1040
+ };
1041
+ return Mount;
1042
+ }();
1043
+
1044
+ return Mount;
1045
+
1046
+ })(VueDemi);