From 9ebc70b16d5f85cfa43b667836bd06f59d8b2487 Mon Sep 17 00:00:00 2001 From: Romain Lamothe Date: Sun, 30 Oct 2022 16:54:09 +0100 Subject: [PATCH] 2.1.0 --- dist/VueDocumentEditor.common.js | 1089 ++++++++++--------------- dist/VueDocumentEditor.common.js.map | 2 +- dist/VueDocumentEditor.css | 2 +- dist/VueDocumentEditor.umd.js | 1089 ++++++++++--------------- dist/VueDocumentEditor.umd.js.map | 2 +- dist/VueDocumentEditor.umd.min.js | 2 +- dist/VueDocumentEditor.umd.min.js.map | 2 +- docs/css/app.7c0cc6d4.css | 1 + docs/css/app.c49ee29d.css | 1 - docs/index.html | 2 +- docs/js/app.76245761.js | 2 - docs/js/app.76245761.js.map | 1 - docs/js/app.8b43990b.js | 2 + docs/js/app.8b43990b.js.map | 1 + docs/js/chunk-vendors.7f0d164e.js | 11 + docs/js/chunk-vendors.7f0d164e.js.map | 1 + docs/js/chunk-vendors.82390301.js | 11 - docs/js/chunk-vendors.82390301.js.map | 1 - package.json | 2 +- 19 files changed, 903 insertions(+), 1321 deletions(-) create mode 100644 docs/css/app.7c0cc6d4.css delete mode 100644 docs/css/app.c49ee29d.css delete mode 100644 docs/js/app.76245761.js delete mode 100644 docs/js/app.76245761.js.map create mode 100644 docs/js/app.8b43990b.js create mode 100644 docs/js/app.8b43990b.js.map create mode 100644 docs/js/chunk-vendors.7f0d164e.js create mode 100644 docs/js/chunk-vendors.7f0d164e.js.map delete mode 100644 docs/js/chunk-vendors.82390301.js delete mode 100644 docs/js/chunk-vendors.82390301.js.map diff --git a/dist/VueDocumentEditor.common.js b/dist/VueDocumentEditor.common.js index 94d505a..110df90 100644 --- a/dist/VueDocumentEditor.common.js +++ b/dist/VueDocumentEditor.common.js @@ -16,22 +16,6 @@ module.exports = function (argument) { }; -/***/ }), - -/***/ 6077: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var isCallable = __webpack_require__(614); - -var $String = String; -var $TypeError = TypeError; - -module.exports = function (argument) { - if (typeof argument == 'object' || isCallable(argument)) return argument; - throw $TypeError("Can't set " + $String(argument) + ' as a prototype'); -}; - - /***/ }), /***/ 9670: @@ -90,73 +74,51 @@ module.exports = { /***/ }), -/***/ 4326: +/***/ 3658: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { -var uncurryThis = __webpack_require__(1702); - -var toString = uncurryThis({}.toString); -var stringSlice = uncurryThis(''.slice); - -module.exports = function (it) { - return stringSlice(toString(it), 8, -1); -}; - - -/***/ }), - -/***/ 648: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var TO_STRING_TAG_SUPPORT = __webpack_require__(1694); -var isCallable = __webpack_require__(614); -var classofRaw = __webpack_require__(4326); -var wellKnownSymbol = __webpack_require__(5112); +"use strict"; -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -var $Object = Object; +var DESCRIPTORS = __webpack_require__(9781); +var isArray = __webpack_require__(3157); -// ES3 wrong here -var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments'; +var $TypeError = TypeError; +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; -// fallback for IE11 Script Access Denied error -var tryGet = function (it, key) { +// Safari < 13 does not throw an error in this case +var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () { + // makes no sense without proper strict mode support + if (this !== undefined) return true; try { - return it[key]; - } catch (error) { /* empty */ } -}; + // eslint-disable-next-line es/no-object-defineproperty -- safe + Object.defineProperty([], 'length', { writable: false }).length = 1; + } catch (error) { + return error instanceof TypeError; + } +}(); -// getting tag from ES6+ `Object.prototype.toString` -module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { - var O, tag, result; - return it === undefined ? 'Undefined' : it === null ? 'Null' - // @@toStringTag case - : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag - // builtinTag case - : CORRECT_ARGUMENTS ? classofRaw(O) - // ES3 arguments fallback - : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result; +module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) { + if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) { + throw $TypeError('Cannot set read only .length'); + } return O.length = length; +} : function (O, length) { + return O.length = length; }; /***/ }), -/***/ 7741: +/***/ 4326: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { -var uncurryThis = __webpack_require__(1702); +var uncurryThisRaw = __webpack_require__(84); -var $Error = Error; -var replace = uncurryThis(''.replace); +var toString = uncurryThisRaw({}.toString); +var stringSlice = uncurryThisRaw(''.slice); -var TEST = (function (arg) { return String($Error(arg).stack); })('zxcasd'); -var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/; -var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST); - -module.exports = function (stack, dropEntries) { - if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) { - while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, ''); - } return stack; +module.exports = function (it) { + return stringSlice(toString(it), 8, -1); }; @@ -256,7 +218,7 @@ module.exports = function (O, key, value, options) { var global = __webpack_require__(7854); -// eslint-disable-next-line es-x/no-object-defineproperty -- safe +// eslint-disable-next-line es/no-object-defineproperty -- safe var defineProperty = Object.defineProperty; module.exports = function (key, value) { @@ -277,11 +239,27 @@ var fails = __webpack_require__(7293); // Detect IE8's incomplete defineProperty implementation module.exports = !fails(function () { - // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing + // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; }); +/***/ }), + +/***/ 4154: +/***/ (function(module) { + +var documentAll = typeof document == 'object' && document.all; + +// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot +var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined; + +module.exports = { + all: documentAll, + IS_HTMLDDA: IS_HTMLDDA +}; + + /***/ }), /***/ 317: @@ -299,6 +277,20 @@ module.exports = function (it) { }; +/***/ }), + +/***/ 7207: +/***/ (function(module) { + +var $TypeError = TypeError; +var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 + +module.exports = function (it) { + if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded'); + return it; +}; + + /***/ }), /***/ 8113: @@ -360,23 +352,6 @@ module.exports = [ ]; -/***/ }), - -/***/ 2914: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var fails = __webpack_require__(7293); -var createPropertyDescriptor = __webpack_require__(9114); - -module.exports = !fails(function () { - var error = Error('a'); - if (!('stack' in error)) return true; - // eslint-disable-next-line es-x/no-object-defineproperty -- safe - Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7)); - return error.stack !== 7; -}); - - /***/ }), /***/ 2109: @@ -452,23 +427,6 @@ module.exports = function (exec) { }; -/***/ }), - -/***/ 2104: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var NATIVE_BIND = __webpack_require__(4374); - -var FunctionPrototype = Function.prototype; -var apply = FunctionPrototype.apply; -var call = FunctionPrototype.call; - -// eslint-disable-next-line es-x/no-reflect -- safe -module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () { - return call.apply(apply, arguments); -}); - - /***/ }), /***/ 4374: @@ -477,7 +435,7 @@ module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? c var fails = __webpack_require__(7293); module.exports = !fails(function () { - // eslint-disable-next-line es-x/no-function-prototype-bind -- safe + // eslint-disable-next-line es/no-function-prototype-bind -- safe var test = (function () { /* empty */ }).bind(); // eslint-disable-next-line no-prototype-builtins -- safe return typeof test != 'function' || test.hasOwnProperty('prototype'); @@ -507,7 +465,7 @@ var DESCRIPTORS = __webpack_require__(9781); var hasOwn = __webpack_require__(2597); var FunctionPrototype = Function.prototype; -// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor; var EXISTS = hasOwn(FunctionPrototype, 'name'); @@ -524,25 +482,38 @@ module.exports = { /***/ }), -/***/ 1702: +/***/ 84: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { var NATIVE_BIND = __webpack_require__(4374); var FunctionPrototype = Function.prototype; -var bind = FunctionPrototype.bind; var call = FunctionPrototype.call; -var uncurryThis = NATIVE_BIND && bind.bind(call, call); +var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call); -module.exports = NATIVE_BIND ? function (fn) { - return fn && uncurryThis(fn); -} : function (fn) { - return fn && function () { +module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) { + return function () { return call.apply(fn, arguments); }; }; +/***/ }), + +/***/ 1702: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { + +var classofRaw = __webpack_require__(4326); +var uncurryThisRaw = __webpack_require__(84); + +module.exports = function (fn) { + // Nashorn bug: + // https://github.com/zloirock/core-js/issues/1128 + // https://github.com/zloirock/core-js/issues/1130 + if (classofRaw(fn) === 'Function') return uncurryThisRaw(fn); +}; + + /***/ }), /***/ 5005: @@ -566,12 +537,13 @@ module.exports = function (namespace, method) { /***/ (function(module, __unused_webpack_exports, __webpack_require__) { var aCallable = __webpack_require__(9662); +var isNullOrUndefined = __webpack_require__(8554); // `GetMethod` abstract operation // https://tc39.es/ecma262/#sec-getmethod module.exports = function (V, P) { var func = V[P]; - return func == null ? undefined : aCallable(func); + return isNullOrUndefined(func) ? undefined : aCallable(func); }; @@ -586,7 +558,7 @@ var check = function (it) { // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 module.exports = - // eslint-disable-next-line es-x/no-global-this -- safe + // eslint-disable-next-line es/no-global-this -- safe check(typeof globalThis == 'object' && globalThis) || check(typeof window == 'object' && window) || // eslint-disable-next-line no-restricted-globals -- safe @@ -608,7 +580,7 @@ var hasOwnProperty = uncurryThis({}.hasOwnProperty); // `HasOwnProperty` abstract operation // https://tc39.es/ecma262/#sec-hasownproperty -// eslint-disable-next-line es-x/no-object-hasown -- safe +// eslint-disable-next-line es/no-object-hasown -- safe module.exports = Object.hasOwn || function hasOwn(it, key) { return hasOwnProperty(toObject(it), key); }; @@ -633,7 +605,7 @@ var createElement = __webpack_require__(317); // Thanks to IE8 for its funny defineProperty module.exports = !DESCRIPTORS && !fails(function () { - // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing + // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty(createElement('div'), 'a', { get: function () { return 7; } }).a != 7; @@ -662,31 +634,6 @@ module.exports = fails(function () { } : $Object; -/***/ }), - -/***/ 9587: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var isCallable = __webpack_require__(614); -var isObject = __webpack_require__(111); -var setPrototypeOf = __webpack_require__(7674); - -// makes subclassing work correct for wrapped built-ins -module.exports = function ($this, dummy, Wrapper) { - var NewTarget, NewTargetPrototype; - if ( - // it can work only with native `setPrototypeOf` - setPrototypeOf && - // we haven't completely correct pre-ES6 way for getting `new.target`, so use this - isCallable(NewTarget = dummy.constructor) && - NewTarget !== Wrapper && - isObject(NewTargetPrototype = NewTarget.prototype) && - NewTargetPrototype !== Wrapper.prototype - ) setPrototypeOf($this, NewTargetPrototype); - return $this; -}; - - /***/ }), /***/ 2788: @@ -708,31 +655,13 @@ if (!isCallable(store.inspectSource)) { module.exports = store.inspectSource; -/***/ }), - -/***/ 8340: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var isObject = __webpack_require__(111); -var createNonEnumerableProperty = __webpack_require__(8880); - -// `InstallErrorCause` abstract operation -// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause -module.exports = function (O, options) { - if (isObject(options) && 'cause' in options) { - createNonEnumerableProperty(O, 'cause', options.cause); - } -}; - - /***/ }), /***/ 9909: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { -var NATIVE_WEAK_MAP = __webpack_require__(8536); +var NATIVE_WEAK_MAP = __webpack_require__(4811); var global = __webpack_require__(7854); -var uncurryThis = __webpack_require__(1702); var isObject = __webpack_require__(111); var createNonEnumerableProperty = __webpack_require__(8880); var hasOwn = __webpack_require__(2597); @@ -760,26 +689,28 @@ var getterFor = function (TYPE) { if (NATIVE_WEAK_MAP || shared.state) { var store = shared.state || (shared.state = new WeakMap()); - var wmget = uncurryThis(store.get); - var wmhas = uncurryThis(store.has); - var wmset = uncurryThis(store.set); + /* eslint-disable no-self-assign -- prototype methods protection */ + store.get = store.get; + store.has = store.has; + store.set = store.set; + /* eslint-enable no-self-assign -- prototype methods protection */ set = function (it, metadata) { - if (wmhas(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); + if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; - wmset(store, it, metadata); + store.set(it, metadata); return metadata; }; get = function (it) { - return wmget(store, it) || {}; + return store.get(it) || {}; }; has = function (it) { - return wmhas(store, it); + return store.has(it); }; } else { var STATE = sharedKey('state'); hiddenKeys[STATE] = true; set = function (it, metadata) { - if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); + if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; createNonEnumerableProperty(it, STATE, metadata); return metadata; @@ -801,14 +732,35 @@ module.exports = { }; +/***/ }), + +/***/ 3157: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { + +var classof = __webpack_require__(4326); + +// `IsArray` abstract operation +// https://tc39.es/ecma262/#sec-isarray +// eslint-disable-next-line es/no-array-isarray -- safe +module.exports = Array.isArray || function isArray(argument) { + return classof(argument) == 'Array'; +}; + + /***/ }), /***/ 614: -/***/ (function(module) { +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { + +var $documentAll = __webpack_require__(4154); + +var documentAll = $documentAll.all; // `IsCallable` abstract operation // https://tc39.es/ecma262/#sec-iscallable -module.exports = function (argument) { +module.exports = $documentAll.IS_HTMLDDA ? function (argument) { + return typeof argument == 'function' || argument === documentAll; +} : function (argument) { return typeof argument == 'function'; }; @@ -842,14 +794,31 @@ var POLYFILL = isForced.POLYFILL = 'P'; module.exports = isForced; +/***/ }), + +/***/ 8554: +/***/ (function(module) { + +// we can't use just `it == null` since of `document.all` special case +// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec +module.exports = function (it) { + return it === null || it === undefined; +}; + + /***/ }), /***/ 111: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { var isCallable = __webpack_require__(614); +var $documentAll = __webpack_require__(4154); -module.exports = function (it) { +var documentAll = $documentAll.all; + +module.exports = $documentAll.IS_HTMLDDA ? function (it) { + return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll; +} : function (it) { return typeof it == 'object' ? it !== null : isCallable(it); }; @@ -911,7 +880,7 @@ var InternalStateModule = __webpack_require__(9909); var enforceInternalState = InternalStateModule.enforce; var getInternalState = InternalStateModule.get; -// eslint-disable-next-line es-x/no-object-defineproperty -- safe +// eslint-disable-next-line es/no-object-defineproperty -- safe var defineProperty = Object.defineProperty; var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () { @@ -962,59 +931,13 @@ var floor = Math.floor; // `Math.trunc` method // https://tc39.es/ecma262/#sec-math.trunc -// eslint-disable-next-line es-x/no-math-trunc -- safe +// eslint-disable-next-line es/no-math-trunc -- safe module.exports = Math.trunc || function trunc(x) { var n = +x; return (n > 0 ? floor : ceil)(n); }; -/***/ }), - -/***/ 133: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -/* eslint-disable es-x/no-symbol -- required for testing */ -var V8_VERSION = __webpack_require__(7392); -var fails = __webpack_require__(7293); - -// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing -module.exports = !!Object.getOwnPropertySymbols && !fails(function () { - var symbol = Symbol(); - // Chrome 38 Symbol has incorrect toString conversion - // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances - return !String(symbol) || !(Object(symbol) instanceof Symbol) || - // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances - !Symbol.sham && V8_VERSION && V8_VERSION < 41; -}); - - -/***/ }), - -/***/ 8536: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var global = __webpack_require__(7854); -var isCallable = __webpack_require__(614); -var inspectSource = __webpack_require__(2788); - -var WeakMap = global.WeakMap; - -module.exports = isCallable(WeakMap) && /native code/.test(inspectSource(WeakMap)); - - -/***/ }), - -/***/ 6277: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var toString = __webpack_require__(1340); - -module.exports = function (argument, $default) { - return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument); -}; - - /***/ }), /***/ 3070: @@ -1027,9 +950,9 @@ var anObject = __webpack_require__(9670); var toPropertyKey = __webpack_require__(4948); var $TypeError = TypeError; -// eslint-disable-next-line es-x/no-object-defineproperty -- safe +// eslint-disable-next-line es/no-object-defineproperty -- safe var $defineProperty = Object.defineProperty; -// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; var ENUMERABLE = 'enumerable'; var CONFIGURABLE = 'configurable'; @@ -1079,7 +1002,7 @@ var toPropertyKey = __webpack_require__(4948); var hasOwn = __webpack_require__(2597); var IE8_DOM_DEFINE = __webpack_require__(4664); -// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; // `Object.getOwnPropertyDescriptor` method @@ -1106,7 +1029,7 @@ var hiddenKeys = enumBugKeys.concat('length', 'prototype'); // `Object.getOwnPropertyNames` method // https://tc39.es/ecma262/#sec-object.getownpropertynames -// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe +// eslint-disable-next-line es/no-object-getownpropertynames -- safe exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { return internalObjectKeys(O, hiddenKeys); }; @@ -1117,7 +1040,7 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { /***/ 5181: /***/ (function(__unused_webpack_module, exports) { -// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe +// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe exports.f = Object.getOwnPropertySymbols; @@ -1166,7 +1089,7 @@ module.exports = function (object, names) { "use strict"; var $propertyIsEnumerable = {}.propertyIsEnumerable; -// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; // Nashorn ~ JDK8 bug @@ -1180,40 +1103,6 @@ exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) { } : $propertyIsEnumerable; -/***/ }), - -/***/ 7674: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -/* eslint-disable no-proto -- safe */ -var uncurryThis = __webpack_require__(1702); -var anObject = __webpack_require__(9670); -var aPossiblePrototype = __webpack_require__(6077); - -// `Object.setPrototypeOf` method -// https://tc39.es/ecma262/#sec-object.setprototypeof -// Works with __proto__ only. Old v8 can't work with null proto objects. -// eslint-disable-next-line es-x/no-object-setprototypeof -- safe -module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () { - var CORRECT_SETTER = false; - var test = {}; - var setter; - try { - // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe - setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set); - setter(test, []); - CORRECT_SETTER = test instanceof Array; - } catch (error) { /* empty */ } - return function setPrototypeOf(O, proto) { - anObject(O); - aPossiblePrototype(proto); - if (CORRECT_SETTER) setter(O, proto); - else O.__proto__ = proto; - return O; - }; -}() : undefined); - - /***/ }), /***/ 2140: @@ -1259,31 +1148,17 @@ module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { /***/ }), -/***/ 2626: +/***/ 4488: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { -var defineProperty = (__webpack_require__(3070).f); - -module.exports = function (Target, Source, key) { - key in Target || defineProperty(Target, key, { - configurable: true, - get: function () { return Source[key]; }, - set: function (it) { Source[key] = it; } - }); -}; - - -/***/ }), - -/***/ 4488: -/***/ (function(module) { +var isNullOrUndefined = __webpack_require__(8554); var $TypeError = TypeError; // `RequireObjectCoercible` abstract operation // https://tc39.es/ecma262/#sec-requireobjectcoercible module.exports = function (it) { - if (it == undefined) throw $TypeError("Can't call method on " + it); + if (isNullOrUndefined(it)) throw $TypeError("Can't call method on " + it); return it; }; @@ -1328,14 +1203,34 @@ var store = __webpack_require__(5465); (module.exports = function (key, value) { return store[key] || (store[key] = value !== undefined ? value : {}); })('versions', []).push({ - version: '3.24.1', + version: '3.26.0', mode: IS_PURE ? 'pure' : 'global', copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)', - license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE', + license: 'https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE', source: 'https://github.com/zloirock/core-js' }); +/***/ }), + +/***/ 6293: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { + +/* eslint-disable es/no-symbol -- required for testing */ +var V8_VERSION = __webpack_require__(7392); +var fails = __webpack_require__(7293); + +// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing +module.exports = !!Object.getOwnPropertySymbols && !fails(function () { + var symbol = Symbol(); + // Chrome 38 Symbol has incorrect toString conversion + // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances + return !String(symbol) || !(Object(symbol) instanceof Symbol) || + // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances + !Symbol.sham && V8_VERSION && V8_VERSION < 41; +}); + + /***/ }), /***/ 1400: @@ -1465,36 +1360,6 @@ module.exports = function (argument) { }; -/***/ }), - -/***/ 1694: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var wellKnownSymbol = __webpack_require__(5112); - -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -var test = {}; - -test[TO_STRING_TAG] = 'z'; - -module.exports = String(test) === '[object z]'; - - -/***/ }), - -/***/ 1340: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var classof = __webpack_require__(648); - -var $String = String; - -module.exports = function (argument) { - if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string'); - return $String(argument); -}; - - /***/ }), /***/ 6330: @@ -1532,8 +1397,8 @@ module.exports = function (key) { /***/ 3307: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { -/* eslint-disable es-x/no-symbol -- required for testing */ -var NATIVE_SYMBOL = __webpack_require__(133); +/* eslint-disable es/no-symbol -- required for testing */ +var NATIVE_SYMBOL = __webpack_require__(6293); module.exports = NATIVE_SYMBOL && !Symbol.sham @@ -1551,7 +1416,7 @@ var fails = __webpack_require__(7293); // V8 ~ Chrome 36- // https://bugs.chromium.org/p/v8/issues/detail?id=3334 module.exports = DESCRIPTORS && fails(function () { - // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing + // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty(function () { /* empty */ }, 'prototype', { value: 42, writable: false @@ -1559,6 +1424,19 @@ module.exports = DESCRIPTORS && fails(function () { }); +/***/ }), + +/***/ 4811: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { + +var global = __webpack_require__(7854); +var isCallable = __webpack_require__(614); + +var WeakMap = global.WeakMap; + +module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap)); + + /***/ }), /***/ 5112: @@ -1568,7 +1446,7 @@ var global = __webpack_require__(7854); var shared = __webpack_require__(2309); var hasOwn = __webpack_require__(2597); var uid = __webpack_require__(9711); -var NATIVE_SYMBOL = __webpack_require__(133); +var NATIVE_SYMBOL = __webpack_require__(6293); var USE_SYMBOL_AS_UID = __webpack_require__(3307); var WellKnownSymbolsStore = shared('wks'); @@ -1592,138 +1470,49 @@ module.exports = function (name) { /***/ }), -/***/ 9191: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { +/***/ 7658: +/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { "use strict"; -var getBuiltIn = __webpack_require__(5005); -var hasOwn = __webpack_require__(2597); -var createNonEnumerableProperty = __webpack_require__(8880); -var isPrototypeOf = __webpack_require__(7976); -var setPrototypeOf = __webpack_require__(7674); -var copyConstructorProperties = __webpack_require__(9920); -var proxyAccessor = __webpack_require__(2626); -var inheritIfRequired = __webpack_require__(9587); -var normalizeStringArgument = __webpack_require__(6277); -var installErrorCause = __webpack_require__(8340); -var clearErrorStack = __webpack_require__(7741); -var ERROR_STACK_INSTALLABLE = __webpack_require__(2914); -var DESCRIPTORS = __webpack_require__(9781); -var IS_PURE = __webpack_require__(1913); - -module.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) { - var STACK_TRACE_LIMIT = 'stackTraceLimit'; - var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1; - var path = FULL_NAME.split('.'); - var ERROR_NAME = path[path.length - 1]; - var OriginalError = getBuiltIn.apply(null, path); - - if (!OriginalError) return; - - var OriginalErrorPrototype = OriginalError.prototype; - - // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006 - if (!IS_PURE && hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause; - - if (!FORCED) return OriginalError; - - var BaseError = getBuiltIn('Error'); - - var WrappedError = wrapper(function (a, b) { - var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined); - var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError(); - if (message !== undefined) createNonEnumerableProperty(result, 'message', message); - if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty(result, 'stack', clearErrorStack(result.stack, 2)); - if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError); - if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]); - return result; - }); +var $ = __webpack_require__(2109); +var toObject = __webpack_require__(7908); +var lengthOfArrayLike = __webpack_require__(6244); +var setArrayLength = __webpack_require__(3658); +var doesNotExceedSafeInteger = __webpack_require__(7207); +var fails = __webpack_require__(7293); - WrappedError.prototype = OriginalErrorPrototype; +var INCORRECT_TO_LENGTH = fails(function () { + return [].push.call({ length: 0x100000000 }, 1) !== 4294967297; +}); - if (ERROR_NAME !== 'Error') { - if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError); - else copyConstructorProperties(WrappedError, BaseError, { name: true }); - } else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) { - proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT); - proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace'); +// V8 and Safari <= 15.4, FF < 23 throws InternalError +// https://bugs.chromium.org/p/v8/issues/detail?id=12681 +var SILENT_ON_NON_WRITABLE_LENGTH = !function () { + try { + // eslint-disable-next-line es/no-object-defineproperty -- safe + Object.defineProperty([], 'length', { writable: false }).push(); + } catch (error) { + return error instanceof TypeError; } +}(); - copyConstructorProperties(WrappedError, OriginalError); - - if (!IS_PURE) try { - // Safari 13- bug: WebAssembly errors does not have a proper `.name` - if (OriginalErrorPrototype.name !== ERROR_NAME) { - createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME); +// `Array.prototype.push` method +// https://tc39.es/ecma262/#sec-array.prototype.push +$({ target: 'Array', proto: true, arity: 1, forced: INCORRECT_TO_LENGTH || SILENT_ON_NON_WRITABLE_LENGTH }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + push: function push(item) { + var O = toObject(this); + var len = lengthOfArrayLike(O); + var argCount = arguments.length; + doesNotExceedSafeInteger(len + argCount); + for (var i = 0; i < argCount; i++) { + O[len] = arguments[i]; + len++; } - OriginalErrorPrototype.constructor = WrappedError; - } catch (error) { /* empty */ } - - return WrappedError; -}; - - -/***/ }), - -/***/ 1703: -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -/* eslint-disable no-unused-vars -- required for functions `.length` */ -var $ = __webpack_require__(2109); -var global = __webpack_require__(7854); -var apply = __webpack_require__(2104); -var wrapErrorConstructorWithCause = __webpack_require__(9191); - -var WEB_ASSEMBLY = 'WebAssembly'; -var WebAssembly = global[WEB_ASSEMBLY]; - -var FORCED = Error('e', { cause: 7 }).cause !== 7; - -var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) { - var O = {}; - O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED); - $({ global: true, constructor: true, arity: 1, forced: FORCED }, O); -}; - -var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) { - if (WebAssembly && WebAssembly[ERROR_NAME]) { - var O = {}; - O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED); - $({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O); + setArrayLength(O, len); + return len; } -}; - -// https://github.com/tc39/proposal-error-cause -exportGlobalErrorCauseWrapper('Error', function (init) { - return function Error(message) { return apply(init, this, arguments); }; -}); -exportGlobalErrorCauseWrapper('EvalError', function (init) { - return function EvalError(message) { return apply(init, this, arguments); }; -}); -exportGlobalErrorCauseWrapper('RangeError', function (init) { - return function RangeError(message) { return apply(init, this, arguments); }; -}); -exportGlobalErrorCauseWrapper('ReferenceError', function (init) { - return function ReferenceError(message) { return apply(init, this, arguments); }; -}); -exportGlobalErrorCauseWrapper('SyntaxError', function (init) { - return function SyntaxError(message) { return apply(init, this, arguments); }; -}); -exportGlobalErrorCauseWrapper('TypeError', function (init) { - return function TypeError(message) { return apply(init, this, arguments); }; -}); -exportGlobalErrorCauseWrapper('URIError', function (init) { - return function URIError(message) { return apply(init, this, arguments); }; -}); -exportWebAssemblyErrorCauseWrapper('CompileError', function (init) { - return function CompileError(message) { return apply(init, this, arguments); }; -}); -exportWebAssemblyErrorCauseWrapper('LinkError', function (init) { - return function LinkError(message) { return apply(init, this, arguments); }; -}); -exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) { - return function RuntimeError(message) { return apply(init, this, arguments); }; }); @@ -1840,22 +1629,20 @@ if (typeof window !== 'undefined') { ;// CONCATENATED MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"} var external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue"); -;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/DocumentEditor/DocumentEditor.vue?vue&type=template&id=587217e4&scoped=true - - -const _withScopeId = n => (_pushScopeId("data-v-587217e4"), n = n(), _popScopeId(), n); +;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/DocumentEditor/DocumentEditor.vue?vue&type=template&id=68da239e&scoped=true +const _withScopeId = n => (_pushScopeId("data-v-68da239e"), n = n(), _popScopeId(), n); const _hoisted_1 = { class: "editor", ref: "editor" }; const _hoisted_2 = { key: 0, - class: "overlays" + class: "overlays", + ref: "overlays" }; const _hoisted_3 = ["innerHTML"]; const _hoisted_4 = ["contenteditable"]; -const _hoisted_5 = ["data-content-idx", "data-page-idx", "contenteditable"]; function render(_ctx, _cache, $props, $setup, $data, $options) { return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", _hoisted_1, [$props.overlay ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", _hoisted_2, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderList)($data.pages, (page, page_idx) => { return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", { @@ -1866,7 +1653,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { innerHTML: $props.overlay(page_idx + 1, $data.pages.length), style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeStyle)($options.page_style(page_idx, false)) }, null, 12, _hoisted_3); - }), 128))])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", { + }), 128))], 512)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", { class: "content", ref: "content", contenteditable: $props.editable, @@ -1874,30 +1661,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { onInput: _cache[0] || (_cache[0] = (...args) => $options.input && $options.input(...args)), onKeyup: _cache[1] || (_cache[1] = (...args) => $options.process_current_text_style && $options.process_current_text_style(...args)), onKeydown: _cache[2] || (_cache[2] = (...args) => $options.keydown && $options.keydown(...args)) - }, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderList)($data.pages, (page, page_idx) => { - return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", { - class: "page", - key: page.uuid, - ref_for: true, - ref: elt => $data.pages_refs[page.uuid] = elt, - "data-content-idx": page.content_idx, - "data-page-idx": page_idx, - style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeStyle)($options.page_style(page_idx, page.template ? false : true)), - contenteditable: $props.editable && !page.template ? true : false - }, [page.template ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveDynamicComponent)(page.template), { - key: 0, - modelValue: page.props, - "onUpdate:modelValue": $event => page.props = $event - }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 12, _hoisted_5); - }), 128))], 44, _hoisted_4)], 512); + }, null, 44, _hoisted_4)], 512); } -;// CONCATENATED MODULE: ./src/DocumentEditor/DocumentEditor.vue?vue&type=template&id=587217e4&scoped=true +;// CONCATENATED MODULE: ./src/DocumentEditor/DocumentEditor.vue?vue&type=template&id=68da239e&scoped=true -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js -var es_error_cause = __webpack_require__(1703); +// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js +var es_array_push = __webpack_require__(7658); ;// CONCATENATED MODULE: ./src/DocumentEditor/imports/page-transition-mgmt.js - - /** * Utility function that acts like an Array.filter on childNodes of "container" * @param {HTMLElement} container @@ -1906,13 +1676,12 @@ var es_error_cause = __webpack_require__(1703); function find_sub_child_sibling_node(container, s_tag) { if (!container || !s_tag) return false; const child_nodes = container.childNodes; - for (let i = 0; i < child_nodes.length; i++) { if (child_nodes[i].s_tag == s_tag) return child_nodes[i]; } - return false; } + /** * This function moves every sub-child of argument "child" to the start of the "child_sibling" * argument, beginning from the last child, with word splitting and format preserving. @@ -1923,60 +1692,61 @@ function find_sub_child_sibling_node(container, s_tag) { * @param {Function} stop_condition Check function that returns a boolean if content doesn't overflow anymore * @param {Boolean} not_first_child Should be unset. Used internally to let at least one child in the page */ - - function move_children_forward_recursively(child, child_sibling, stop_condition, not_first_child) { // if the child still has nodes and the current page still overflows while (child.childNodes.length && !stop_condition()) { // check if page has only one child tree left - not_first_child = not_first_child || child.childNodes.length != 1; // select the last sub-child + not_first_child = not_first_child || child.childNodes.length != 1; - const sub_child = child.lastChild; // if it is a text node, move its content to next page word(/space) by word + // select the last sub-child + const sub_child = child.lastChild; + // if it is a text node, move its content to next page word(/space) by word if (sub_child.nodeType == Node.TEXT_NODE) { const sub_child_hashes = sub_child.textContent.match(/(\s|\S+)/g); const sub_child_continuation = document.createTextNode(''); child_sibling.prepend(sub_child_continuation); const l = sub_child_hashes ? sub_child_hashes.length : 0; - for (let i = 0; i < l; i++) { if (i == l - 1 && !not_first_child) return; // never remove the first word of the page - sub_child.textContent = sub_child_hashes.slice(0, l - i - 1).join(''); sub_child_continuation.textContent = sub_child_hashes.slice(l - i - 1, l).join(''); if (stop_condition()) return; } - } // if it is a node with no content (e.g. ), or a header title (e.g.

) we simply move it + } + + // if it is a node with no content (e.g. ), or a header title (e.g.

) we simply move it else if (!sub_child.childNodes.length || sub_child.tagName.match(/h\d/i)) { // just prevent moving the last child of the page if (!not_first_child) { console.log("Move-forward: first child reached with no stop condition. Aborting"); return; } - child_sibling.prepend(sub_child); - } // for every other node that is not text and not the first child, clone it recursively to next page + } + + // for every other node that is not text and not the first child, clone it recursively to next page else { // check if sub child has already been cloned before - let sub_child_sibling = find_sub_child_sibling_node(child_sibling, sub_child.s_tag); // if not, create it and watermark the relationship with a random tag + let sub_child_sibling = find_sub_child_sibling_node(child_sibling, sub_child.s_tag); + // if not, create it and watermark the relationship with a random tag if (!sub_child_sibling) { if (!sub_child.s_tag) { const new_random_tag = Math.random().toString(36).slice(2, 8); sub_child.s_tag = new_random_tag; } - sub_child_sibling = sub_child.cloneNode(false); sub_child_sibling.s_tag = sub_child.s_tag; child_sibling.prepend(sub_child_sibling); - } // then move/clone its children and sub-children recursively - + } + // then move/clone its children and sub-children recursively move_children_forward_recursively(sub_child, sub_child_sibling, stop_condition, not_first_child); sub_child_sibling.normalize(); // merge consecutive text nodes - } // if sub_child was a container that was cloned and is now empty, we clean it - + } + // if sub_child was a container that was cloned and is now empty, we clean it if (child.contains(sub_child)) { if (sub_child.childNodes.length == 0 || sub_child.innerHTML == "") child.removeChild(sub_child);else if (!stop_condition()) { // the only case when it can be non empty should be when stop_condition is now true @@ -1986,6 +1756,7 @@ function move_children_forward_recursively(child, child_sibling, stop_condition, } } } + /** * This function moves the first element from "next_page_html_div" to the end of "page_html_div", with * merging sibling tags previously watermarked by "move_children_forward_recursively", if any. @@ -1993,35 +1764,34 @@ function move_children_forward_recursively(child, child_sibling, stop_condition, * @param {HTMLElement} next_page_html_div Next page element * @param {Function} stop_condition Check function that returns a boolean if content overflows */ - - function move_children_backwards_with_merging(page_html_div, next_page_html_div, stop_condition) { // loop until content is overflowing while (!stop_condition()) { // find first child of next page - const first_child = next_page_html_div.firstChild; // merge it at the end of the current page + const first_child = next_page_html_div.firstChild; + // merge it at the end of the current page var merge_recursively = (container, elt) => { // check if child had been splitted (= has a sibling on previous page) const elt_sibling = find_sub_child_sibling_node(container, elt.s_tag); - if (elt_sibling && elt.childNodes.length) { // then dig for deeper children, in case of merge_recursively(elt_sibling, elt.firstChild); - } // else move the child inside the right container at current page + } + // else move the child inside the right container at current page else { container.append(elt); container.normalize(); } }; - merge_recursively(page_html_div, first_child); } } - ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/DocumentEditor/DocumentEditor.vue?vue&type=script&lang=js + + /* harmony default export */ var DocumentEditorvue_type_script_lang_js = ({ props: { // This contains the initial content of the document that can be synced @@ -2036,8 +1806,8 @@ function move_children_backwards_with_merging(page_html_div, next_page_html_div, display: { type: String, default: "grid" // ["grid", "horizontal", "vertical"] - }, + // Sets whether document text can be modified editable: { type: Boolean, @@ -2061,13 +1831,10 @@ function move_children_backwards_with_merging(page_html_div, next_page_html_div, default: 1.0 } }, - data() { return { pages: [], - // contains {uuid, content_idx, prev_html, template, props} for each pages of the document - pages_refs: {}, - // contains page ref elements indexed by uuid + // contains {uuid, content_idx, prev_html, template, props, elt} for each pages of the document pages_overlay_refs: {}, // contains page overlay ref elements indexed by uuid pages_height: 0, @@ -2076,8 +1843,9 @@ function move_children_backwards_with_merging(page_html_div, next_page_html_div, // real measured with of an empty editor
in px prevent_next_content_update_from_parent: false, // workaround to avoid infinite update loop - current_text_style: false // contains the style at caret position - + current_text_style: false, + // contains the style at caret position + printing_mode: false // flag set when page is rendering in printing mode }; }, @@ -2090,19 +1858,15 @@ function move_children_backwards_with_merging(page_html_div, next_page_html_div, window.addEventListener("beforeprint", this.before_print); window.addEventListener("afterprint", this.after_print); }, - beforeUpdate() { - this.pages_refs = []; this.pages_overlay_refs = []; }, - beforeUnmount() { window.removeEventListener("resize", this.update_editor_width); window.removeEventListener("click", this.process_current_text_style); window.removeEventListener("beforeprint", this.before_print); window.removeEventListener("afterprint", this.after_print); }, - computed: { css_media_style() { // creates a CSS \n","export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./DocumentEditor.vue?vue&type=template&id=587217e4&scoped=true\"","\n/**\n * Utility function that acts like an Array.filter on childNodes of \"container\"\n * @param {HTMLElement} container \n * @param {string} s_tag \n */\nfunction find_sub_child_sibling_node (container, s_tag){\n if(!container || !s_tag) return false;\n const child_nodes = container.childNodes;\n for(let i = 0; i < child_nodes.length; i++) {\n if(child_nodes[i].s_tag == s_tag) return child_nodes[i];\n }\n return false;\n}\n\n\n/**\n * This function moves every sub-child of argument \"child\" to the start of the \"child_sibling\"\n * argument, beginning from the last child, with word splitting and format preserving.\n * Typically, \"child\" is the current page which content overflows, and \"child_sibling\" is the \n * next page.\n * @param {HTMLElement} child Element to take children from (current page)\n * @param {HTMLElement} child_sibling Element to copy children to (next page)\n * @param {Function} stop_condition Check function that returns a boolean if content doesn't overflow anymore\n * @param {Boolean} not_first_child Should be unset. Used internally to let at least one child in the page\n */\nfunction move_children_forward_recursively (child, child_sibling, stop_condition, not_first_child) {\n\n // if the child still has nodes and the current page still overflows\n while(child.childNodes.length && !stop_condition()){\n\n // check if page has only one child tree left\n not_first_child = not_first_child || (child.childNodes.length != 1);\n\n // select the last sub-child\n const sub_child = child.lastChild;\n\n // if it is a text node, move its content to next page word(/space) by word\n if(sub_child.nodeType == Node.TEXT_NODE){\n const sub_child_hashes = sub_child.textContent.match(/(\\s|\\S+)/g);\n const sub_child_continuation = document.createTextNode('');\n child_sibling.prepend(sub_child_continuation);\n const l = sub_child_hashes ? sub_child_hashes.length : 0;\n for(let i = 0; i < l; i++) {\n if(i == l - 1 && !not_first_child) return; // never remove the first word of the page\n sub_child.textContent = sub_child_hashes.slice(0, l - i - 1).join('');\n sub_child_continuation.textContent = sub_child_hashes.slice(l - i - 1, l).join('');\n if(stop_condition()) return;\n }\n }\n\n // if it is a node with no content (e.g. ), or a header title (e.g.

) we simply move it\n else if(!sub_child.childNodes.length || sub_child.tagName.match(/h\\d/i)) {\n // just prevent moving the last child of the page\n if(!not_first_child){\n console.log(\"Move-forward: first child reached with no stop condition. Aborting\");\n return;\n }\n child_sibling.prepend(sub_child);\n }\n\n // for every other node that is not text and not the first child, clone it recursively to next page\n else {\n // check if sub child has already been cloned before\n let sub_child_sibling = find_sub_child_sibling_node(child_sibling, sub_child.s_tag);\n \n // if not, create it and watermark the relationship with a random tag\n if(!sub_child_sibling) {\n if(!sub_child.s_tag) {\n const new_random_tag = Math.random().toString(36).slice(2, 8);\n sub_child.s_tag = new_random_tag;\n }\n sub_child_sibling = sub_child.cloneNode(false);\n sub_child_sibling.s_tag = sub_child.s_tag;\n child_sibling.prepend(sub_child_sibling);\n }\n \n // then move/clone its children and sub-children recursively\n move_children_forward_recursively(sub_child, sub_child_sibling, stop_condition, not_first_child);\n sub_child_sibling.normalize(); // merge consecutive text nodes\n }\n\n // if sub_child was a container that was cloned and is now empty, we clean it\n if(child.contains(sub_child)){\n if(sub_child.childNodes.length == 0 || sub_child.innerHTML == \"\") child.removeChild(sub_child);\n else if(!stop_condition()) {\n // the only case when it can be non empty should be when stop_condition is now true\n console.log(\"sub_child:\", sub_child, \"that is in child:\", child);\n throw Error(\"Document editor is trying to remove a non-empty sub-child. This \"\n + \"is a bug and should not happen. Please report a repeatable set of actions that \"\n + \"leaded to this error to https://github.com/motla/vue-document-editor/issues/new\");\n }\n }\n }\n}\n\n\n\n/**\n * This function moves the first element from \"next_page_html_div\" to the end of \"page_html_div\", with\n * merging sibling tags previously watermarked by \"move_children_forward_recursively\", if any.\n * @param {HTMLElement} page_html_div Current page element\n * @param {HTMLElement} next_page_html_div Next page element\n * @param {Function} stop_condition Check function that returns a boolean if content overflows\n */\nfunction move_children_backwards_with_merging (page_html_div, next_page_html_div, stop_condition) {\n\n // loop until content is overflowing\n while(!stop_condition()){\n\n // find first child of next page\n const first_child = next_page_html_div.firstChild;\n\n // merge it at the end of the current page\n var merge_recursively = (container, elt) => {\n // check if child had been splitted (= has a sibling on previous page)\n const elt_sibling = find_sub_child_sibling_node(container, elt.s_tag);\n if(elt_sibling && elt.childNodes.length) {\n // then dig for deeper children, in case of\n merge_recursively(elt_sibling, elt.firstChild);\n }\n // else move the child inside the right container at current page\n else {\n container.append(elt);\n container.normalize();\n }\n }\n merge_recursively(page_html_div, first_child);\n }\n}\n\nexport {\n move_children_forward_recursively,\n move_children_backwards_with_merging\n};","export { default } from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./DocumentEditor.vue?vue&type=script&lang=js\"; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./DocumentEditor.vue?vue&type=script&lang=js\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!../../node_modules/vue-loader/dist/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./DocumentEditor.vue?vue&type=style&index=0&id=587217e4&lang=css\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!../../node_modules/vue-loader/dist/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./DocumentEditor.vue?vue&type=style&index=1&id=587217e4&lang=scss&scoped=true\"","import { render } from \"./DocumentEditor.vue?vue&type=template&id=587217e4&scoped=true\"\nimport script from \"./DocumentEditor.vue?vue&type=script&lang=js\"\nexport * from \"./DocumentEditor.vue?vue&type=script&lang=js\"\n\nimport \"./DocumentEditor.vue?vue&type=style&index=0&id=587217e4&lang=css\"\nimport \"./DocumentEditor.vue?vue&type=style&index=1&id=587217e4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/Users/romain/Developer/vue-document-editor/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-587217e4\"]])\n\nexport default __exports__","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["class","ref","_createElementBlock","$props","_Fragment","_renderList","$data","page","page_idx","key","uuid","elt","innerHTML","length","style","$options","_createElementVNode","contenteditable","onInput","onKeyup","onKeydown","content_idx","template","_createBlock","_resolveDynamicComponent","props","$event","find_sub_child_sibling_node","container","s_tag","child_nodes","childNodes","i","move_children_forward_recursively","child","child_sibling","stop_condition","not_first_child","sub_child","lastChild","nodeType","Node","TEXT_NODE","sub_child_hashes","textContent","match","sub_child_continuation","document","createTextNode","prepend","l","slice","join","tagName","console","log","sub_child_sibling","new_random_tag","Math","random","toString","cloneNode","normalize","contains","removeChild","Error","move_children_backwards_with_merging","page_html_div","next_page_html_div","first_child","firstChild","merge_recursively","elt_sibling","append","content","type","Array","required","display","String","default","editable","Boolean","overlay","Function","page_format_mm","page_margins","zoom","Number","data","pages","pages_refs","pages_overlay_refs","pages_height","editor_width","prevent_next_content_update_from_parent","current_text_style","mounted","update_editor_width","update_css_media_style","reset_content","window","addEventListener","process_current_text_style","before_print","after_print","beforeUpdate","beforeUnmount","removeEventListener","computed","css_media_style","createElement","head","appendChild","methods","new_uuid","reset_in_progress","$emit","map","$nextTick","first_page_elt","$refs","clientHeight","page_elt","fit_content_over_pages","blur","fit_in_progress","body","splice","selection","getSelection","start_marker","end_marker","rangeCount","range","getRangeAt","insertNode","collapse","prev_page_modified_flag","next_page","next_page_elt","prev_innerHTML","createRange","setStart","setEnd","removeAllRanges","addRange","parentElement","input","e","emit_new_content","inputType","keydown","keyCode","is_text","replace","preventDefault","removed_pages_flag","new_content","item","filter","children","toLowerCase","getAttribute","sel","focusNode","element","isContentEditable","getComputedStyle","textDecorationStack","headerLevel","isList","parent","parent_style","push","textDecoration","toUpperCase","page_style","allow_overflow","px_in_mm","page_width","page_spacing_mm","page_with_plus_spacing","view_padding","inner_width","nb_pages_x","page_column","x_pos","x_ofx","left_px","top_mm","bkg_width_mm","bkg_height_mm","floor","max","nb_pages_y","ceil","position","left","top","width","padding","transform","height","editor","classList","add","clientWidth","remove","_page_body","print_body","margin","background","font","className","entries","page_clone","breakBefore","overlay_elts","overlay_clone","overflow","return_overlay","right","bottom","alignItems","justifyContent","cursor","watch","handler","deep"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"VueDocumentEditor.common.js","mappings":";;;;;;AAAA,iBAAiB,mBAAO,CAAC,GAA0B;AACnD,kBAAkB,mBAAO,CAAC,IAA4B;;AAEtD;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;ACTA,eAAe,mBAAO,CAAC,GAAwB;;AAE/C;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;ACTA,sBAAsB,mBAAO,CAAC,IAAgC;AAC9D,sBAAsB,mBAAO,CAAC,IAAgC;AAC9D,wBAAwB,mBAAO,CAAC,IAAmC;;AAEnE,sBAAsB,mBAAmB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,WAAW,gBAAgB;AACjC;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AC/Ba;AACb,kBAAkB,mBAAO,CAAC,IAA0B;AACpD,cAAc,mBAAO,CAAC,IAAuB;;AAE7C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D,IAAI;AACJ;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,IAAI;AACJ,EAAE;AACF;AACA;;;;;;;;AC1BA,qBAAqB,mBAAO,CAAC,EAAwC;;AAErE,gCAAgC;AAChC;;AAEA;AACA;AACA;;;;;;;;ACPA,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,CAACsH,QAAQ,CAAC1K,MAAM,CAACkK,WAAW,CAAC;QACzC;MACF;MACA5L,QAAQ,CAACuF,IAAG,GAAI,IAAI,CAAC+F,UAAU;IACjC;EACF,CAAC;EAED;EACAe,KAAK,EAAE;IACL7J,cAAc,EAAE;MACd8J,OAAM,GAAK;QACT,IAAI,CAAChJ,sBAAsB,EAAE;QAC7B,IAAI,CAACC,aAAa,EAAE;MACtB;IACF,CAAC;IACDd,YAAY,EAAE;MACZ6J,OAAM,GAAK;QACT,IAAI,CAAC/I,aAAa,EAAE;MACtB;IACF,CAAC;IACD1B,OAAO,EAAE;MACPyK,OAAM,GAAK;QACT;QACA,IAAG,IAAI,CAACrJ,uCAAuC,EAAE;UAC/C,IAAI,CAACA,uCAAsC,GAAI,KAAK;QACtD,OAAO,IAAI,CAACM,aAAa,EAAE;MAC7B,CAAC;MACDgJ,IAAI,EAAE;IACR;EACF;AAEF,CAAC;;AGxiB0P;;ACA3P;;;;;AEAA;;;;;;;AEAuF;AACtB;AACL;;AAE5D,CAAyE;AACY;;AAEiC;AACtH,iCAAiC,+BAAe,CAAC,qCAAM,aAAa,MAAM;;AAE1E,mDAAe;;ACVS;AACA;AACxB,8CAAe,cAAG;AACI","sources":["webpack://vue-document-editor/./node_modules/core-js/internals/a-callable.js","webpack://vue-document-editor/./node_modules/core-js/internals/an-object.js","webpack://vue-document-editor/./node_modules/core-js/internals/array-includes.js","webpack://vue-document-editor/./node_modules/core-js/internals/array-set-length.js","webpack://vue-document-editor/./node_modules/core-js/internals/classof-raw.js","webpack://vue-document-editor/./node_modules/core-js/internals/copy-constructor-properties.js","webpack://vue-document-editor/./node_modules/core-js/internals/create-non-enumerable-property.js","webpack://vue-document-editor/./node_modules/core-js/internals/create-property-descriptor.js","webpack://vue-document-editor/./node_modules/core-js/internals/define-built-in.js","webpack://vue-document-editor/./node_modules/core-js/internals/define-global-property.js","webpack://vue-document-editor/./node_modules/core-js/internals/descriptors.js","webpack://vue-document-editor/./node_modules/core-js/internals/document-all.js","webpack://vue-document-editor/./node_modules/core-js/internals/document-create-element.js","webpack://vue-document-editor/./node_modules/core-js/internals/does-not-exceed-safe-integer.js","webpack://vue-document-editor/./node_modules/core-js/internals/engine-user-agent.js","webpack://vue-document-editor/./node_modules/core-js/internals/engine-v8-version.js","webpack://vue-document-editor/./node_modules/core-js/internals/enum-bug-keys.js","webpack://vue-document-editor/./node_modules/core-js/internals/export.js","webpack://vue-document-editor/./node_modules/core-js/internals/fails.js","webpack://vue-document-editor/./node_modules/core-js/internals/function-bind-native.js","webpack://vue-document-editor/./node_modules/core-js/internals/function-call.js","webpack://vue-document-editor/./node_modules/core-js/internals/function-name.js","webpack://vue-document-editor/./node_modules/core-js/internals/function-uncurry-this-raw.js","webpack://vue-document-editor/./node_modules/core-js/internals/function-uncurry-this.js","webpack://vue-document-editor/./node_modules/core-js/internals/get-built-in.js","webpack://vue-document-editor/./node_modules/core-js/internals/get-method.js","webpack://vue-document-editor/./node_modules/core-js/internals/global.js","webpack://vue-document-editor/./node_modules/core-js/internals/has-own-property.js","webpack://vue-document-editor/./node_modules/core-js/internals/hidden-keys.js","webpack://vue-document-editor/./node_modules/core-js/internals/ie8-dom-define.js","webpack://vue-document-editor/./node_modules/core-js/internals/indexed-object.js","webpack://vue-document-editor/./node_modules/core-js/internals/inspect-source.js","webpack://vue-document-editor/./node_modules/core-js/internals/internal-state.js","webpack://vue-document-editor/./node_modules/core-js/internals/is-array.js","webpack://vue-document-editor/./node_modules/core-js/internals/is-callable.js","webpack://vue-document-editor/./node_modules/core-js/internals/is-forced.js","webpack://vue-document-editor/./node_modules/core-js/internals/is-null-or-undefined.js","webpack://vue-document-editor/./node_modules/core-js/internals/is-object.js","webpack://vue-document-editor/./node_modules/core-js/internals/is-pure.js","webpack://vue-document-editor/./node_modules/core-js/internals/is-symbol.js","webpack://vue-document-editor/./node_modules/core-js/internals/length-of-array-like.js","webpack://vue-document-editor/./node_modules/core-js/internals/make-built-in.js","webpack://vue-document-editor/./node_modules/core-js/internals/math-trunc.js","webpack://vue-document-editor/./node_modules/core-js/internals/object-define-property.js","webpack://vue-document-editor/./node_modules/core-js/internals/object-get-own-property-descriptor.js","webpack://vue-document-editor/./node_modules/core-js/internals/object-get-own-property-names.js","webpack://vue-document-editor/./node_modules/core-js/internals/object-get-own-property-symbols.js","webpack://vue-document-editor/./node_modules/core-js/internals/object-is-prototype-of.js","webpack://vue-document-editor/./node_modules/core-js/internals/object-keys-internal.js","webpack://vue-document-editor/./node_modules/core-js/internals/object-property-is-enumerable.js","webpack://vue-document-editor/./node_modules/core-js/internals/ordinary-to-primitive.js","webpack://vue-document-editor/./node_modules/core-js/internals/own-keys.js","webpack://vue-document-editor/./node_modules/core-js/internals/require-object-coercible.js","webpack://vue-document-editor/./node_modules/core-js/internals/shared-key.js","webpack://vue-document-editor/./node_modules/core-js/internals/shared-store.js","webpack://vue-document-editor/./node_modules/core-js/internals/shared.js","webpack://vue-document-editor/./node_modules/core-js/internals/symbol-constructor-detection.js","webpack://vue-document-editor/./node_modules/core-js/internals/to-absolute-index.js","webpack://vue-document-editor/./node_modules/core-js/internals/to-indexed-object.js","webpack://vue-document-editor/./node_modules/core-js/internals/to-integer-or-infinity.js","webpack://vue-document-editor/./node_modules/core-js/internals/to-length.js","webpack://vue-document-editor/./node_modules/core-js/internals/to-object.js","webpack://vue-document-editor/./node_modules/core-js/internals/to-primitive.js","webpack://vue-document-editor/./node_modules/core-js/internals/to-property-key.js","webpack://vue-document-editor/./node_modules/core-js/internals/try-to-string.js","webpack://vue-document-editor/./node_modules/core-js/internals/uid.js","webpack://vue-document-editor/./node_modules/core-js/internals/use-symbol-as-uid.js","webpack://vue-document-editor/./node_modules/core-js/internals/v8-prototype-define-bug.js","webpack://vue-document-editor/./node_modules/core-js/internals/weak-map-basic-detection.js","webpack://vue-document-editor/./node_modules/core-js/internals/well-known-symbol.js","webpack://vue-document-editor/./node_modules/core-js/modules/es.array.push.js","webpack://vue-document-editor/./node_modules/vue-loader/dist/exportHelper.js","webpack://vue-document-editor/webpack/bootstrap","webpack://vue-document-editor/webpack/runtime/define property getters","webpack://vue-document-editor/webpack/runtime/global","webpack://vue-document-editor/webpack/runtime/hasOwnProperty shorthand","webpack://vue-document-editor/webpack/runtime/publicPath","webpack://vue-document-editor/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://vue-document-editor/external commonjs2 {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://vue-document-editor/./src/DocumentEditor/DocumentEditor.vue","webpack://vue-document-editor/./src/DocumentEditor/DocumentEditor.vue?64b8","webpack://vue-document-editor/./src/DocumentEditor/imports/page-transition-mgmt.js","webpack://vue-document-editor/./src/DocumentEditor/DocumentEditor.vue?6dba","webpack://vue-document-editor/./src/DocumentEditor/DocumentEditor.vue?9e2c","webpack://vue-document-editor/./src/DocumentEditor/DocumentEditor.vue?495c","webpack://vue-document-editor/./src/DocumentEditor/DocumentEditor.vue?a379","webpack://vue-document-editor/./src/DocumentEditor/DocumentEditor.vue?e265","webpack://vue-document-editor/./src/DocumentEditor/DocumentEditor.vue?a4df","webpack://vue-document-editor/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a function');\n};\n","var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw $TypeError($String(argument) + ' is not an object');\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar isArray = require('../internals/is-array');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Safari < 13 does not throw an error in this case\nvar SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {\n // makes no sense without proper strict mode support\n if (this !== undefined) return true;\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).length = 1;\n } catch (error) {\n return error instanceof TypeError;\n }\n}();\n\nmodule.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {\n if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {\n throw $TypeError('Cannot set read only .length');\n } return O.length = length;\n} : function (O, length) {\n return O.length = length;\n};\n","var uncurryThisRaw = require('../internals/function-uncurry-this-raw');\n\nvar toString = uncurryThisRaw({}.toString);\nvar stringSlice = uncurryThisRaw(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","var classofRaw = require('../internals/classof-raw');\nvar uncurryThisRaw = require('../internals/function-uncurry-this-raw');\n\nmodule.exports = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw(fn) === 'Function') return uncurryThisRaw(fn);\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","module.exports = {};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) == 'Array';\n};\n","var $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","var isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","module.exports = false;\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (String(name).slice(0, 7) === 'Symbol(') {\n name = '[' + String(name).replace(/^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = TEMPLATE.join(typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","var isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.26.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar symbolFor = Symbol && Symbol['for'];\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {\n var description = 'Symbol.' + name;\n if (NATIVE_SYMBOL && hasOwn(Symbol, name)) {\n WellKnownSymbolsStore[name] = Symbol[name];\n } else if (USE_SYMBOL_AS_UID && symbolFor) {\n WellKnownSymbolsStore[name] = symbolFor(description);\n } else {\n WellKnownSymbolsStore[name] = createWellKnownSymbol(description);\n }\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar setArrayLength = require('../internals/array-set-length');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar fails = require('../internals/fails');\n\nvar INCORRECT_TO_LENGTH = fails(function () {\n return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;\n});\n\n// V8 and Safari <= 15.4, FF < 23 throws InternalError\n// https://bugs.chromium.org/p/v8/issues/detail?id=12681\nvar SILENT_ON_NON_WRITABLE_LENGTH = !function () {\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).push();\n } catch (error) {\n return error instanceof TypeError;\n }\n}();\n\n// `Array.prototype.push` method\n// https://tc39.es/ecma262/#sec-array.prototype.push\n$({ target: 'Array', proto: true, arity: 1, forced: INCORRECT_TO_LENGTH || SILENT_ON_NON_WRITABLE_LENGTH }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n push: function push(item) {\n var O = toObject(this);\n var len = lengthOfArrayLike(O);\n var argCount = arguments.length;\n doesNotExceedSafeInteger(len + argCount);\n for (var i = 0; i < argCount; i++) {\n O[len] = arguments[i];\n len++;\n }\n setArrayLength(O, len);\n return len;\n }\n});\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// runtime helper for setting properties on components\n// in a tree-shakable way\nexports.default = (sfc, props) => {\n const target = sfc.__vccOpts || sfc;\n for (const [key, val] of props) {\n target[key] = val;\n }\n return target;\n};\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var __WEBPACK_NAMESPACE_OBJECT__ = require(\"vue\");","\n\n\n\n\n","export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./DocumentEditor.vue?vue&type=template&id=68da239e&scoped=true\"","\n/**\n * Utility function that acts like an Array.filter on childNodes of \"container\"\n * @param {HTMLElement} container \n * @param {string} s_tag \n */\nfunction find_sub_child_sibling_node (container, s_tag){\n if(!container || !s_tag) return false;\n const child_nodes = container.childNodes;\n for(let i = 0; i < child_nodes.length; i++) {\n if(child_nodes[i].s_tag == s_tag) return child_nodes[i];\n }\n return false;\n}\n\n\n/**\n * This function moves every sub-child of argument \"child\" to the start of the \"child_sibling\"\n * argument, beginning from the last child, with word splitting and format preserving.\n * Typically, \"child\" is the current page which content overflows, and \"child_sibling\" is the \n * next page.\n * @param {HTMLElement} child Element to take children from (current page)\n * @param {HTMLElement} child_sibling Element to copy children to (next page)\n * @param {Function} stop_condition Check function that returns a boolean if content doesn't overflow anymore\n * @param {Boolean} not_first_child Should be unset. Used internally to let at least one child in the page\n */\nfunction move_children_forward_recursively (child, child_sibling, stop_condition, not_first_child) {\n\n // if the child still has nodes and the current page still overflows\n while(child.childNodes.length && !stop_condition()){\n\n // check if page has only one child tree left\n not_first_child = not_first_child || (child.childNodes.length != 1);\n\n // select the last sub-child\n const sub_child = child.lastChild;\n\n // if it is a text node, move its content to next page word(/space) by word\n if(sub_child.nodeType == Node.TEXT_NODE){\n const sub_child_hashes = sub_child.textContent.match(/(\\s|\\S+)/g);\n const sub_child_continuation = document.createTextNode('');\n child_sibling.prepend(sub_child_continuation);\n const l = sub_child_hashes ? sub_child_hashes.length : 0;\n for(let i = 0; i < l; i++) {\n if(i == l - 1 && !not_first_child) return; // never remove the first word of the page\n sub_child.textContent = sub_child_hashes.slice(0, l - i - 1).join('');\n sub_child_continuation.textContent = sub_child_hashes.slice(l - i - 1, l).join('');\n if(stop_condition()) return;\n }\n }\n\n // if it is a node with no content (e.g. ), or a header title (e.g.

) we simply move it\n else if(!sub_child.childNodes.length || sub_child.tagName.match(/h\\d/i)) {\n // just prevent moving the last child of the page\n if(!not_first_child){\n console.log(\"Move-forward: first child reached with no stop condition. Aborting\");\n return;\n }\n child_sibling.prepend(sub_child);\n }\n\n // for every other node that is not text and not the first child, clone it recursively to next page\n else {\n // check if sub child has already been cloned before\n let sub_child_sibling = find_sub_child_sibling_node(child_sibling, sub_child.s_tag);\n \n // if not, create it and watermark the relationship with a random tag\n if(!sub_child_sibling) {\n if(!sub_child.s_tag) {\n const new_random_tag = Math.random().toString(36).slice(2, 8);\n sub_child.s_tag = new_random_tag;\n }\n sub_child_sibling = sub_child.cloneNode(false);\n sub_child_sibling.s_tag = sub_child.s_tag;\n child_sibling.prepend(sub_child_sibling);\n }\n \n // then move/clone its children and sub-children recursively\n move_children_forward_recursively(sub_child, sub_child_sibling, stop_condition, not_first_child);\n sub_child_sibling.normalize(); // merge consecutive text nodes\n }\n\n // if sub_child was a container that was cloned and is now empty, we clean it\n if(child.contains(sub_child)){\n if(sub_child.childNodes.length == 0 || sub_child.innerHTML == \"\") child.removeChild(sub_child);\n else if(!stop_condition()) {\n // the only case when it can be non empty should be when stop_condition is now true\n console.log(\"sub_child:\", sub_child, \"that is in child:\", child);\n throw Error(\"Document editor is trying to remove a non-empty sub-child. This \"\n + \"is a bug and should not happen. Please report a repeatable set of actions that \"\n + \"leaded to this error to https://github.com/motla/vue-document-editor/issues/new\");\n }\n }\n }\n}\n\n\n\n/**\n * This function moves the first element from \"next_page_html_div\" to the end of \"page_html_div\", with\n * merging sibling tags previously watermarked by \"move_children_forward_recursively\", if any.\n * @param {HTMLElement} page_html_div Current page element\n * @param {HTMLElement} next_page_html_div Next page element\n * @param {Function} stop_condition Check function that returns a boolean if content overflows\n */\nfunction move_children_backwards_with_merging (page_html_div, next_page_html_div, stop_condition) {\n\n // loop until content is overflowing\n while(!stop_condition()){\n\n // find first child of next page\n const first_child = next_page_html_div.firstChild;\n\n // merge it at the end of the current page\n var merge_recursively = (container, elt) => {\n // check if child had been splitted (= has a sibling on previous page)\n const elt_sibling = find_sub_child_sibling_node(container, elt.s_tag);\n if(elt_sibling && elt.childNodes.length) {\n // then dig for deeper children, in case of\n merge_recursively(elt_sibling, elt.firstChild);\n }\n // else move the child inside the right container at current page\n else {\n container.append(elt);\n container.normalize();\n }\n }\n merge_recursively(page_html_div, first_child);\n }\n}\n\nexport {\n move_children_forward_recursively,\n move_children_backwards_with_merging\n};","export { default } from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./DocumentEditor.vue?vue&type=script&lang=js\"; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./DocumentEditor.vue?vue&type=script&lang=js\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!../../node_modules/vue-loader/dist/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./DocumentEditor.vue?vue&type=style&index=0&id=68da239e&lang=css\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!../../node_modules/vue-loader/dist/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./DocumentEditor.vue?vue&type=style&index=1&id=68da239e&scoped=true&lang=css\"","import { render } from \"./DocumentEditor.vue?vue&type=template&id=68da239e&scoped=true\"\nimport script from \"./DocumentEditor.vue?vue&type=script&lang=js\"\nexport * from \"./DocumentEditor.vue?vue&type=script&lang=js\"\n\nimport \"./DocumentEditor.vue?vue&type=style&index=0&id=68da239e&lang=css\"\nimport \"./DocumentEditor.vue?vue&type=style&index=1&id=68da239e&scoped=true&lang=css\"\n\nimport exportComponent from \"/Users/romain/Developer/vue-document-editor/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-68da239e\"]])\n\nexport default __exports__","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["class","ref","_createElementBlock","_hoisted_1","$props","_hoisted_2","_Fragment","$data","page","page_idx","key","uuid","elt","innerHTML","length","style","$options","_createElementVNode","contenteditable","onInput","onKeyup","onKeydown","find_sub_child_sibling_node","container","s_tag","child_nodes","childNodes","i","move_children_forward_recursively","child","child_sibling","stop_condition","not_first_child","sub_child","lastChild","nodeType","Node","TEXT_NODE","sub_child_hashes","textContent","match","sub_child_continuation","document","createTextNode","prepend","l","slice","join","tagName","console","log","sub_child_sibling","new_random_tag","Math","random","toString","cloneNode","normalize","contains","removeChild","Error","move_children_backwards_with_merging","page_html_div","next_page_html_div","first_child","firstChild","merge_recursively","elt_sibling","append","defineCustomElement","props","content","type","Array","required","display","String","default","editable","Boolean","overlay","Function","page_format_mm","page_margins","zoom","Number","data","pages","pages_overlay_refs","pages_height","editor_width","prevent_next_content_update_from_parent","current_text_style","printing_mode","mounted","update_editor_width","update_css_media_style","reset_content","window","addEventListener","process_current_text_style","before_print","after_print","beforeUpdate","beforeUnmount","removeEventListener","computed","css_media_style","createElement","head","appendChild","methods","new_uuid","reset_in_progress","$emit","map","content_idx","template","update_pages_elts","first_page_elt","$refs","clientHeight","componentElement","customElements","define","modelValue","fit_content_over_pages","blur","fit_in_progress","body","splice","selection","getSelection","start_marker","end_marker","rangeCount","range","getRangeAt","insertNode","collapse","prev_page_modified_flag","next_page","next_page_elt","prev_innerHTML","createRange","setStart","setEnd","removeAllRanges","addRange","parentElement","input","e","emit_new_content","inputType","keydown","keyCode","is_text","replace","preventDefault","removed_pages_flag","new_content","item","filter","children","toLowerCase","getAttribute","sel","focusNode","element","isContentEditable","getComputedStyle","textDecorationStack","headerLevel","isList","parent","parent_style","push","textDecoration","toUpperCase","page_style","allow_overflow","px_in_mm","page_width","page_spacing_mm","page_with_plus_spacing","view_padding","inner_width","nb_pages_x","page_column","x_pos","x_ofx","left_px","top_mm","bkg_width_mm","bkg_height_mm","floor","max","nb_pages_y","ceil","position","left","top","width","padding","transform","height","css_to_string","css","Object","entries","k","v","page_elt","find","remove","className","insertBefore","dataset","contentIdx","contentEditable","editor","classList","add","clientWidth","_page_body","print_body","margin","background","font","breakBefore","overlay_elt","overflow","return_overlay","right","bottom","alignItems","justifyContent","cursor","overlays","watch","handler","deep"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/VueDocumentEditor.css b/dist/VueDocumentEditor.css index bb6f021..5aaf7f5 100644 --- a/dist/VueDocumentEditor.css +++ b/dist/VueDocumentEditor.css @@ -1 +1 @@ -body{-webkit-print-color-adjust:exact;print-color-adjust:exact}.editor[data-v-587217e4]{display:block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;cursor:default}.editor[data-v-587217e4] ::-webkit-scrollbar{width:16px;height:16px}.editor[data-v-587217e4] ::-webkit-scrollbar-corner,.editor[data-v-587217e4] ::-webkit-scrollbar-track{display:none}.editor[data-v-587217e4] ::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5);border:5px solid transparent;border-radius:16px;background-clip:content-box}.editor[data-v-587217e4] ::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.8)}.editor[data-v-587217e4] .hide_children>*{display:none}.editor[data-v-587217e4]>.content{position:relative;outline:none;margin:0;padding:0;min-width:100%;pointer-events:none}.editor[data-v-587217e4]>.content>.page{position:absolute;box-sizing:border-box;left:50%;transform-origin:center top;background:var(--page-background,#fff);box-shadow:var(--page-box-shadow,0 1px 3px 1px rgba(60,64,67,.15));border:var(--page-border);border-radius:var(--page-border-radius);transition:left .3s,top .3s;overflow:hidden;pointer-events:all}.editor[data-v-587217e4]>.content [contenteditable],.editor[data-v-587217e4]>.content[contenteditable]{cursor:text}.editor[data-v-587217e4]>.content [contenteditable=false]{cursor:default}.editor[data-v-587217e4]>.overlays{position:relative;margin:0;padding:0;min-width:100%;pointer-events:none}.editor[data-v-587217e4]>.overlays>.overlay{position:absolute;box-sizing:border-box;left:50%;transform-origin:center top;transition:left .3s,top .3s;overflow:hidden;z-index:1} \ No newline at end of file +body{-webkit-print-color-adjust:exact;print-color-adjust:exact}.editor[data-v-68da239e]{display:block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;cursor:default}.editor[data-v-68da239e] ::-webkit-scrollbar{width:16px;height:16px}.editor[data-v-68da239e] ::-webkit-scrollbar-corner,.editor[data-v-68da239e] ::-webkit-scrollbar-track{display:none}.editor[data-v-68da239e] ::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5);border:5px solid transparent;border-radius:16px;background-clip:content-box}.editor[data-v-68da239e] ::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.8)}.editor .hide_children>[data-v-68da239e]{display:none}.editor>.content[data-v-68da239e]{position:relative;outline:none;margin:0;padding:0;min-width:100%;pointer-events:none}.editor>.content[data-v-68da239e]>.page{position:absolute;box-sizing:border-box;left:50%;transform-origin:center top;background:var(--page-background,#fff);box-shadow:var(--page-box-shadow,0 1px 3px 1px rgba(60,64,67,.15));border:var(--page-border);border-radius:var(--page-border-radius);transition:left .3s,top .3s;overflow:hidden;pointer-events:all}.editor>.content[contenteditable][data-v-68da239e],.editor>.content[data-v-68da239e] [contenteditable]{cursor:text}.editor>.content[data-v-68da239e] [contenteditable=false]{cursor:default}.editor>.overlays[data-v-68da239e]{position:relative;margin:0;padding:0;min-width:100%;pointer-events:none}.editor>.overlays>.overlay[data-v-68da239e]{position:absolute;box-sizing:border-box;left:50%;transform-origin:center top;transition:left .3s,top .3s;overflow:hidden;z-index:1} \ No newline at end of file diff --git a/dist/VueDocumentEditor.umd.js b/dist/VueDocumentEditor.umd.js index 58edc83..39e1117 100644 --- a/dist/VueDocumentEditor.umd.js +++ b/dist/VueDocumentEditor.umd.js @@ -26,22 +26,6 @@ module.exports = function (argument) { }; -/***/ }), - -/***/ 6077: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var isCallable = __webpack_require__(614); - -var $String = String; -var $TypeError = TypeError; - -module.exports = function (argument) { - if (typeof argument == 'object' || isCallable(argument)) return argument; - throw $TypeError("Can't set " + $String(argument) + ' as a prototype'); -}; - - /***/ }), /***/ 9670: @@ -100,73 +84,51 @@ module.exports = { /***/ }), -/***/ 4326: +/***/ 3658: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { -var uncurryThis = __webpack_require__(1702); - -var toString = uncurryThis({}.toString); -var stringSlice = uncurryThis(''.slice); - -module.exports = function (it) { - return stringSlice(toString(it), 8, -1); -}; - - -/***/ }), - -/***/ 648: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var TO_STRING_TAG_SUPPORT = __webpack_require__(1694); -var isCallable = __webpack_require__(614); -var classofRaw = __webpack_require__(4326); -var wellKnownSymbol = __webpack_require__(5112); +"use strict"; -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -var $Object = Object; +var DESCRIPTORS = __webpack_require__(9781); +var isArray = __webpack_require__(3157); -// ES3 wrong here -var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments'; +var $TypeError = TypeError; +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; -// fallback for IE11 Script Access Denied error -var tryGet = function (it, key) { +// Safari < 13 does not throw an error in this case +var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () { + // makes no sense without proper strict mode support + if (this !== undefined) return true; try { - return it[key]; - } catch (error) { /* empty */ } -}; + // eslint-disable-next-line es/no-object-defineproperty -- safe + Object.defineProperty([], 'length', { writable: false }).length = 1; + } catch (error) { + return error instanceof TypeError; + } +}(); -// getting tag from ES6+ `Object.prototype.toString` -module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { - var O, tag, result; - return it === undefined ? 'Undefined' : it === null ? 'Null' - // @@toStringTag case - : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag - // builtinTag case - : CORRECT_ARGUMENTS ? classofRaw(O) - // ES3 arguments fallback - : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result; +module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) { + if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) { + throw $TypeError('Cannot set read only .length'); + } return O.length = length; +} : function (O, length) { + return O.length = length; }; /***/ }), -/***/ 7741: +/***/ 4326: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { -var uncurryThis = __webpack_require__(1702); +var uncurryThisRaw = __webpack_require__(84); -var $Error = Error; -var replace = uncurryThis(''.replace); +var toString = uncurryThisRaw({}.toString); +var stringSlice = uncurryThisRaw(''.slice); -var TEST = (function (arg) { return String($Error(arg).stack); })('zxcasd'); -var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/; -var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST); - -module.exports = function (stack, dropEntries) { - if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) { - while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, ''); - } return stack; +module.exports = function (it) { + return stringSlice(toString(it), 8, -1); }; @@ -266,7 +228,7 @@ module.exports = function (O, key, value, options) { var global = __webpack_require__(7854); -// eslint-disable-next-line es-x/no-object-defineproperty -- safe +// eslint-disable-next-line es/no-object-defineproperty -- safe var defineProperty = Object.defineProperty; module.exports = function (key, value) { @@ -287,11 +249,27 @@ var fails = __webpack_require__(7293); // Detect IE8's incomplete defineProperty implementation module.exports = !fails(function () { - // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing + // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; }); +/***/ }), + +/***/ 4154: +/***/ (function(module) { + +var documentAll = typeof document == 'object' && document.all; + +// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot +var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined; + +module.exports = { + all: documentAll, + IS_HTMLDDA: IS_HTMLDDA +}; + + /***/ }), /***/ 317: @@ -309,6 +287,20 @@ module.exports = function (it) { }; +/***/ }), + +/***/ 7207: +/***/ (function(module) { + +var $TypeError = TypeError; +var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 + +module.exports = function (it) { + if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded'); + return it; +}; + + /***/ }), /***/ 8113: @@ -370,23 +362,6 @@ module.exports = [ ]; -/***/ }), - -/***/ 2914: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var fails = __webpack_require__(7293); -var createPropertyDescriptor = __webpack_require__(9114); - -module.exports = !fails(function () { - var error = Error('a'); - if (!('stack' in error)) return true; - // eslint-disable-next-line es-x/no-object-defineproperty -- safe - Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7)); - return error.stack !== 7; -}); - - /***/ }), /***/ 2109: @@ -462,23 +437,6 @@ module.exports = function (exec) { }; -/***/ }), - -/***/ 2104: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var NATIVE_BIND = __webpack_require__(4374); - -var FunctionPrototype = Function.prototype; -var apply = FunctionPrototype.apply; -var call = FunctionPrototype.call; - -// eslint-disable-next-line es-x/no-reflect -- safe -module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () { - return call.apply(apply, arguments); -}); - - /***/ }), /***/ 4374: @@ -487,7 +445,7 @@ module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? c var fails = __webpack_require__(7293); module.exports = !fails(function () { - // eslint-disable-next-line es-x/no-function-prototype-bind -- safe + // eslint-disable-next-line es/no-function-prototype-bind -- safe var test = (function () { /* empty */ }).bind(); // eslint-disable-next-line no-prototype-builtins -- safe return typeof test != 'function' || test.hasOwnProperty('prototype'); @@ -517,7 +475,7 @@ var DESCRIPTORS = __webpack_require__(9781); var hasOwn = __webpack_require__(2597); var FunctionPrototype = Function.prototype; -// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor; var EXISTS = hasOwn(FunctionPrototype, 'name'); @@ -534,25 +492,38 @@ module.exports = { /***/ }), -/***/ 1702: +/***/ 84: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { var NATIVE_BIND = __webpack_require__(4374); var FunctionPrototype = Function.prototype; -var bind = FunctionPrototype.bind; var call = FunctionPrototype.call; -var uncurryThis = NATIVE_BIND && bind.bind(call, call); +var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call); -module.exports = NATIVE_BIND ? function (fn) { - return fn && uncurryThis(fn); -} : function (fn) { - return fn && function () { +module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) { + return function () { return call.apply(fn, arguments); }; }; +/***/ }), + +/***/ 1702: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { + +var classofRaw = __webpack_require__(4326); +var uncurryThisRaw = __webpack_require__(84); + +module.exports = function (fn) { + // Nashorn bug: + // https://github.com/zloirock/core-js/issues/1128 + // https://github.com/zloirock/core-js/issues/1130 + if (classofRaw(fn) === 'Function') return uncurryThisRaw(fn); +}; + + /***/ }), /***/ 5005: @@ -576,12 +547,13 @@ module.exports = function (namespace, method) { /***/ (function(module, __unused_webpack_exports, __webpack_require__) { var aCallable = __webpack_require__(9662); +var isNullOrUndefined = __webpack_require__(8554); // `GetMethod` abstract operation // https://tc39.es/ecma262/#sec-getmethod module.exports = function (V, P) { var func = V[P]; - return func == null ? undefined : aCallable(func); + return isNullOrUndefined(func) ? undefined : aCallable(func); }; @@ -596,7 +568,7 @@ var check = function (it) { // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 module.exports = - // eslint-disable-next-line es-x/no-global-this -- safe + // eslint-disable-next-line es/no-global-this -- safe check(typeof globalThis == 'object' && globalThis) || check(typeof window == 'object' && window) || // eslint-disable-next-line no-restricted-globals -- safe @@ -618,7 +590,7 @@ var hasOwnProperty = uncurryThis({}.hasOwnProperty); // `HasOwnProperty` abstract operation // https://tc39.es/ecma262/#sec-hasownproperty -// eslint-disable-next-line es-x/no-object-hasown -- safe +// eslint-disable-next-line es/no-object-hasown -- safe module.exports = Object.hasOwn || function hasOwn(it, key) { return hasOwnProperty(toObject(it), key); }; @@ -643,7 +615,7 @@ var createElement = __webpack_require__(317); // Thanks to IE8 for its funny defineProperty module.exports = !DESCRIPTORS && !fails(function () { - // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing + // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty(createElement('div'), 'a', { get: function () { return 7; } }).a != 7; @@ -672,31 +644,6 @@ module.exports = fails(function () { } : $Object; -/***/ }), - -/***/ 9587: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var isCallable = __webpack_require__(614); -var isObject = __webpack_require__(111); -var setPrototypeOf = __webpack_require__(7674); - -// makes subclassing work correct for wrapped built-ins -module.exports = function ($this, dummy, Wrapper) { - var NewTarget, NewTargetPrototype; - if ( - // it can work only with native `setPrototypeOf` - setPrototypeOf && - // we haven't completely correct pre-ES6 way for getting `new.target`, so use this - isCallable(NewTarget = dummy.constructor) && - NewTarget !== Wrapper && - isObject(NewTargetPrototype = NewTarget.prototype) && - NewTargetPrototype !== Wrapper.prototype - ) setPrototypeOf($this, NewTargetPrototype); - return $this; -}; - - /***/ }), /***/ 2788: @@ -718,31 +665,13 @@ if (!isCallable(store.inspectSource)) { module.exports = store.inspectSource; -/***/ }), - -/***/ 8340: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var isObject = __webpack_require__(111); -var createNonEnumerableProperty = __webpack_require__(8880); - -// `InstallErrorCause` abstract operation -// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause -module.exports = function (O, options) { - if (isObject(options) && 'cause' in options) { - createNonEnumerableProperty(O, 'cause', options.cause); - } -}; - - /***/ }), /***/ 9909: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { -var NATIVE_WEAK_MAP = __webpack_require__(8536); +var NATIVE_WEAK_MAP = __webpack_require__(4811); var global = __webpack_require__(7854); -var uncurryThis = __webpack_require__(1702); var isObject = __webpack_require__(111); var createNonEnumerableProperty = __webpack_require__(8880); var hasOwn = __webpack_require__(2597); @@ -770,26 +699,28 @@ var getterFor = function (TYPE) { if (NATIVE_WEAK_MAP || shared.state) { var store = shared.state || (shared.state = new WeakMap()); - var wmget = uncurryThis(store.get); - var wmhas = uncurryThis(store.has); - var wmset = uncurryThis(store.set); + /* eslint-disable no-self-assign -- prototype methods protection */ + store.get = store.get; + store.has = store.has; + store.set = store.set; + /* eslint-enable no-self-assign -- prototype methods protection */ set = function (it, metadata) { - if (wmhas(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); + if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; - wmset(store, it, metadata); + store.set(it, metadata); return metadata; }; get = function (it) { - return wmget(store, it) || {}; + return store.get(it) || {}; }; has = function (it) { - return wmhas(store, it); + return store.has(it); }; } else { var STATE = sharedKey('state'); hiddenKeys[STATE] = true; set = function (it, metadata) { - if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); + if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; createNonEnumerableProperty(it, STATE, metadata); return metadata; @@ -811,14 +742,35 @@ module.exports = { }; +/***/ }), + +/***/ 3157: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { + +var classof = __webpack_require__(4326); + +// `IsArray` abstract operation +// https://tc39.es/ecma262/#sec-isarray +// eslint-disable-next-line es/no-array-isarray -- safe +module.exports = Array.isArray || function isArray(argument) { + return classof(argument) == 'Array'; +}; + + /***/ }), /***/ 614: -/***/ (function(module) { +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { + +var $documentAll = __webpack_require__(4154); + +var documentAll = $documentAll.all; // `IsCallable` abstract operation // https://tc39.es/ecma262/#sec-iscallable -module.exports = function (argument) { +module.exports = $documentAll.IS_HTMLDDA ? function (argument) { + return typeof argument == 'function' || argument === documentAll; +} : function (argument) { return typeof argument == 'function'; }; @@ -852,14 +804,31 @@ var POLYFILL = isForced.POLYFILL = 'P'; module.exports = isForced; +/***/ }), + +/***/ 8554: +/***/ (function(module) { + +// we can't use just `it == null` since of `document.all` special case +// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec +module.exports = function (it) { + return it === null || it === undefined; +}; + + /***/ }), /***/ 111: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { var isCallable = __webpack_require__(614); +var $documentAll = __webpack_require__(4154); -module.exports = function (it) { +var documentAll = $documentAll.all; + +module.exports = $documentAll.IS_HTMLDDA ? function (it) { + return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll; +} : function (it) { return typeof it == 'object' ? it !== null : isCallable(it); }; @@ -921,7 +890,7 @@ var InternalStateModule = __webpack_require__(9909); var enforceInternalState = InternalStateModule.enforce; var getInternalState = InternalStateModule.get; -// eslint-disable-next-line es-x/no-object-defineproperty -- safe +// eslint-disable-next-line es/no-object-defineproperty -- safe var defineProperty = Object.defineProperty; var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () { @@ -972,59 +941,13 @@ var floor = Math.floor; // `Math.trunc` method // https://tc39.es/ecma262/#sec-math.trunc -// eslint-disable-next-line es-x/no-math-trunc -- safe +// eslint-disable-next-line es/no-math-trunc -- safe module.exports = Math.trunc || function trunc(x) { var n = +x; return (n > 0 ? floor : ceil)(n); }; -/***/ }), - -/***/ 133: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -/* eslint-disable es-x/no-symbol -- required for testing */ -var V8_VERSION = __webpack_require__(7392); -var fails = __webpack_require__(7293); - -// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing -module.exports = !!Object.getOwnPropertySymbols && !fails(function () { - var symbol = Symbol(); - // Chrome 38 Symbol has incorrect toString conversion - // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances - return !String(symbol) || !(Object(symbol) instanceof Symbol) || - // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances - !Symbol.sham && V8_VERSION && V8_VERSION < 41; -}); - - -/***/ }), - -/***/ 8536: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var global = __webpack_require__(7854); -var isCallable = __webpack_require__(614); -var inspectSource = __webpack_require__(2788); - -var WeakMap = global.WeakMap; - -module.exports = isCallable(WeakMap) && /native code/.test(inspectSource(WeakMap)); - - -/***/ }), - -/***/ 6277: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var toString = __webpack_require__(1340); - -module.exports = function (argument, $default) { - return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument); -}; - - /***/ }), /***/ 3070: @@ -1037,9 +960,9 @@ var anObject = __webpack_require__(9670); var toPropertyKey = __webpack_require__(4948); var $TypeError = TypeError; -// eslint-disable-next-line es-x/no-object-defineproperty -- safe +// eslint-disable-next-line es/no-object-defineproperty -- safe var $defineProperty = Object.defineProperty; -// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; var ENUMERABLE = 'enumerable'; var CONFIGURABLE = 'configurable'; @@ -1089,7 +1012,7 @@ var toPropertyKey = __webpack_require__(4948); var hasOwn = __webpack_require__(2597); var IE8_DOM_DEFINE = __webpack_require__(4664); -// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; // `Object.getOwnPropertyDescriptor` method @@ -1116,7 +1039,7 @@ var hiddenKeys = enumBugKeys.concat('length', 'prototype'); // `Object.getOwnPropertyNames` method // https://tc39.es/ecma262/#sec-object.getownpropertynames -// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe +// eslint-disable-next-line es/no-object-getownpropertynames -- safe exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { return internalObjectKeys(O, hiddenKeys); }; @@ -1127,7 +1050,7 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { /***/ 5181: /***/ (function(__unused_webpack_module, exports) { -// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe +// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe exports.f = Object.getOwnPropertySymbols; @@ -1176,7 +1099,7 @@ module.exports = function (object, names) { "use strict"; var $propertyIsEnumerable = {}.propertyIsEnumerable; -// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; // Nashorn ~ JDK8 bug @@ -1190,40 +1113,6 @@ exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) { } : $propertyIsEnumerable; -/***/ }), - -/***/ 7674: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -/* eslint-disable no-proto -- safe */ -var uncurryThis = __webpack_require__(1702); -var anObject = __webpack_require__(9670); -var aPossiblePrototype = __webpack_require__(6077); - -// `Object.setPrototypeOf` method -// https://tc39.es/ecma262/#sec-object.setprototypeof -// Works with __proto__ only. Old v8 can't work with null proto objects. -// eslint-disable-next-line es-x/no-object-setprototypeof -- safe -module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () { - var CORRECT_SETTER = false; - var test = {}; - var setter; - try { - // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe - setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set); - setter(test, []); - CORRECT_SETTER = test instanceof Array; - } catch (error) { /* empty */ } - return function setPrototypeOf(O, proto) { - anObject(O); - aPossiblePrototype(proto); - if (CORRECT_SETTER) setter(O, proto); - else O.__proto__ = proto; - return O; - }; -}() : undefined); - - /***/ }), /***/ 2140: @@ -1269,31 +1158,17 @@ module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { /***/ }), -/***/ 2626: +/***/ 4488: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { -var defineProperty = (__webpack_require__(3070).f); - -module.exports = function (Target, Source, key) { - key in Target || defineProperty(Target, key, { - configurable: true, - get: function () { return Source[key]; }, - set: function (it) { Source[key] = it; } - }); -}; - - -/***/ }), - -/***/ 4488: -/***/ (function(module) { +var isNullOrUndefined = __webpack_require__(8554); var $TypeError = TypeError; // `RequireObjectCoercible` abstract operation // https://tc39.es/ecma262/#sec-requireobjectcoercible module.exports = function (it) { - if (it == undefined) throw $TypeError("Can't call method on " + it); + if (isNullOrUndefined(it)) throw $TypeError("Can't call method on " + it); return it; }; @@ -1338,14 +1213,34 @@ var store = __webpack_require__(5465); (module.exports = function (key, value) { return store[key] || (store[key] = value !== undefined ? value : {}); })('versions', []).push({ - version: '3.24.1', + version: '3.26.0', mode: IS_PURE ? 'pure' : 'global', copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)', - license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE', + license: 'https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE', source: 'https://github.com/zloirock/core-js' }); +/***/ }), + +/***/ 6293: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { + +/* eslint-disable es/no-symbol -- required for testing */ +var V8_VERSION = __webpack_require__(7392); +var fails = __webpack_require__(7293); + +// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing +module.exports = !!Object.getOwnPropertySymbols && !fails(function () { + var symbol = Symbol(); + // Chrome 38 Symbol has incorrect toString conversion + // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances + return !String(symbol) || !(Object(symbol) instanceof Symbol) || + // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances + !Symbol.sham && V8_VERSION && V8_VERSION < 41; +}); + + /***/ }), /***/ 1400: @@ -1475,36 +1370,6 @@ module.exports = function (argument) { }; -/***/ }), - -/***/ 1694: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var wellKnownSymbol = __webpack_require__(5112); - -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -var test = {}; - -test[TO_STRING_TAG] = 'z'; - -module.exports = String(test) === '[object z]'; - - -/***/ }), - -/***/ 1340: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var classof = __webpack_require__(648); - -var $String = String; - -module.exports = function (argument) { - if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string'); - return $String(argument); -}; - - /***/ }), /***/ 6330: @@ -1542,8 +1407,8 @@ module.exports = function (key) { /***/ 3307: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { -/* eslint-disable es-x/no-symbol -- required for testing */ -var NATIVE_SYMBOL = __webpack_require__(133); +/* eslint-disable es/no-symbol -- required for testing */ +var NATIVE_SYMBOL = __webpack_require__(6293); module.exports = NATIVE_SYMBOL && !Symbol.sham @@ -1561,7 +1426,7 @@ var fails = __webpack_require__(7293); // V8 ~ Chrome 36- // https://bugs.chromium.org/p/v8/issues/detail?id=3334 module.exports = DESCRIPTORS && fails(function () { - // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing + // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty(function () { /* empty */ }, 'prototype', { value: 42, writable: false @@ -1569,6 +1434,19 @@ module.exports = DESCRIPTORS && fails(function () { }); +/***/ }), + +/***/ 4811: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { + +var global = __webpack_require__(7854); +var isCallable = __webpack_require__(614); + +var WeakMap = global.WeakMap; + +module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap)); + + /***/ }), /***/ 5112: @@ -1578,7 +1456,7 @@ var global = __webpack_require__(7854); var shared = __webpack_require__(2309); var hasOwn = __webpack_require__(2597); var uid = __webpack_require__(9711); -var NATIVE_SYMBOL = __webpack_require__(133); +var NATIVE_SYMBOL = __webpack_require__(6293); var USE_SYMBOL_AS_UID = __webpack_require__(3307); var WellKnownSymbolsStore = shared('wks'); @@ -1602,138 +1480,49 @@ module.exports = function (name) { /***/ }), -/***/ 9191: -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { +/***/ 7658: +/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { "use strict"; -var getBuiltIn = __webpack_require__(5005); -var hasOwn = __webpack_require__(2597); -var createNonEnumerableProperty = __webpack_require__(8880); -var isPrototypeOf = __webpack_require__(7976); -var setPrototypeOf = __webpack_require__(7674); -var copyConstructorProperties = __webpack_require__(9920); -var proxyAccessor = __webpack_require__(2626); -var inheritIfRequired = __webpack_require__(9587); -var normalizeStringArgument = __webpack_require__(6277); -var installErrorCause = __webpack_require__(8340); -var clearErrorStack = __webpack_require__(7741); -var ERROR_STACK_INSTALLABLE = __webpack_require__(2914); -var DESCRIPTORS = __webpack_require__(9781); -var IS_PURE = __webpack_require__(1913); - -module.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) { - var STACK_TRACE_LIMIT = 'stackTraceLimit'; - var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1; - var path = FULL_NAME.split('.'); - var ERROR_NAME = path[path.length - 1]; - var OriginalError = getBuiltIn.apply(null, path); - - if (!OriginalError) return; - - var OriginalErrorPrototype = OriginalError.prototype; - - // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006 - if (!IS_PURE && hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause; - - if (!FORCED) return OriginalError; - - var BaseError = getBuiltIn('Error'); - - var WrappedError = wrapper(function (a, b) { - var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined); - var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError(); - if (message !== undefined) createNonEnumerableProperty(result, 'message', message); - if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty(result, 'stack', clearErrorStack(result.stack, 2)); - if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError); - if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]); - return result; - }); +var $ = __webpack_require__(2109); +var toObject = __webpack_require__(7908); +var lengthOfArrayLike = __webpack_require__(6244); +var setArrayLength = __webpack_require__(3658); +var doesNotExceedSafeInteger = __webpack_require__(7207); +var fails = __webpack_require__(7293); - WrappedError.prototype = OriginalErrorPrototype; +var INCORRECT_TO_LENGTH = fails(function () { + return [].push.call({ length: 0x100000000 }, 1) !== 4294967297; +}); - if (ERROR_NAME !== 'Error') { - if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError); - else copyConstructorProperties(WrappedError, BaseError, { name: true }); - } else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) { - proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT); - proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace'); +// V8 and Safari <= 15.4, FF < 23 throws InternalError +// https://bugs.chromium.org/p/v8/issues/detail?id=12681 +var SILENT_ON_NON_WRITABLE_LENGTH = !function () { + try { + // eslint-disable-next-line es/no-object-defineproperty -- safe + Object.defineProperty([], 'length', { writable: false }).push(); + } catch (error) { + return error instanceof TypeError; } +}(); - copyConstructorProperties(WrappedError, OriginalError); - - if (!IS_PURE) try { - // Safari 13- bug: WebAssembly errors does not have a proper `.name` - if (OriginalErrorPrototype.name !== ERROR_NAME) { - createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME); +// `Array.prototype.push` method +// https://tc39.es/ecma262/#sec-array.prototype.push +$({ target: 'Array', proto: true, arity: 1, forced: INCORRECT_TO_LENGTH || SILENT_ON_NON_WRITABLE_LENGTH }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + push: function push(item) { + var O = toObject(this); + var len = lengthOfArrayLike(O); + var argCount = arguments.length; + doesNotExceedSafeInteger(len + argCount); + for (var i = 0; i < argCount; i++) { + O[len] = arguments[i]; + len++; } - OriginalErrorPrototype.constructor = WrappedError; - } catch (error) { /* empty */ } - - return WrappedError; -}; - - -/***/ }), - -/***/ 1703: -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -/* eslint-disable no-unused-vars -- required for functions `.length` */ -var $ = __webpack_require__(2109); -var global = __webpack_require__(7854); -var apply = __webpack_require__(2104); -var wrapErrorConstructorWithCause = __webpack_require__(9191); - -var WEB_ASSEMBLY = 'WebAssembly'; -var WebAssembly = global[WEB_ASSEMBLY]; - -var FORCED = Error('e', { cause: 7 }).cause !== 7; - -var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) { - var O = {}; - O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED); - $({ global: true, constructor: true, arity: 1, forced: FORCED }, O); -}; - -var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) { - if (WebAssembly && WebAssembly[ERROR_NAME]) { - var O = {}; - O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED); - $({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O); + setArrayLength(O, len); + return len; } -}; - -// https://github.com/tc39/proposal-error-cause -exportGlobalErrorCauseWrapper('Error', function (init) { - return function Error(message) { return apply(init, this, arguments); }; -}); -exportGlobalErrorCauseWrapper('EvalError', function (init) { - return function EvalError(message) { return apply(init, this, arguments); }; -}); -exportGlobalErrorCauseWrapper('RangeError', function (init) { - return function RangeError(message) { return apply(init, this, arguments); }; -}); -exportGlobalErrorCauseWrapper('ReferenceError', function (init) { - return function ReferenceError(message) { return apply(init, this, arguments); }; -}); -exportGlobalErrorCauseWrapper('SyntaxError', function (init) { - return function SyntaxError(message) { return apply(init, this, arguments); }; -}); -exportGlobalErrorCauseWrapper('TypeError', function (init) { - return function TypeError(message) { return apply(init, this, arguments); }; -}); -exportGlobalErrorCauseWrapper('URIError', function (init) { - return function URIError(message) { return apply(init, this, arguments); }; -}); -exportWebAssemblyErrorCauseWrapper('CompileError', function (init) { - return function CompileError(message) { return apply(init, this, arguments); }; -}); -exportWebAssemblyErrorCauseWrapper('LinkError', function (init) { - return function LinkError(message) { return apply(init, this, arguments); }; -}); -exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) { - return function RuntimeError(message) { return apply(init, this, arguments); }; }); @@ -1858,22 +1647,20 @@ if (typeof window !== 'undefined') { // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"} var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203); -;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/DocumentEditor/DocumentEditor.vue?vue&type=template&id=587217e4&scoped=true - - -const _withScopeId = n => (_pushScopeId("data-v-587217e4"), n = n(), _popScopeId(), n); +;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/DocumentEditor/DocumentEditor.vue?vue&type=template&id=68da239e&scoped=true +const _withScopeId = n => (_pushScopeId("data-v-68da239e"), n = n(), _popScopeId(), n); const _hoisted_1 = { class: "editor", ref: "editor" }; const _hoisted_2 = { key: 0, - class: "overlays" + class: "overlays", + ref: "overlays" }; const _hoisted_3 = ["innerHTML"]; const _hoisted_4 = ["contenteditable"]; -const _hoisted_5 = ["data-content-idx", "data-page-idx", "contenteditable"]; function render(_ctx, _cache, $props, $setup, $data, $options) { return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_1, [$props.overlay ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_2, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)($data.pages, (page, page_idx) => { return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", { @@ -1884,7 +1671,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { innerHTML: $props.overlay(page_idx + 1, $data.pages.length), style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)($options.page_style(page_idx, false)) }, null, 12, _hoisted_3); - }), 128))])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", { + }), 128))], 512)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", { class: "content", ref: "content", contenteditable: $props.editable, @@ -1892,30 +1679,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { onInput: _cache[0] || (_cache[0] = (...args) => $options.input && $options.input(...args)), onKeyup: _cache[1] || (_cache[1] = (...args) => $options.process_current_text_style && $options.process_current_text_style(...args)), onKeydown: _cache[2] || (_cache[2] = (...args) => $options.keydown && $options.keydown(...args)) - }, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)($data.pages, (page, page_idx) => { - return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", { - class: "page", - key: page.uuid, - ref_for: true, - ref: elt => $data.pages_refs[page.uuid] = elt, - "data-content-idx": page.content_idx, - "data-page-idx": page_idx, - style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)($options.page_style(page_idx, page.template ? false : true)), - contenteditable: $props.editable && !page.template ? true : false - }, [page.template ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveDynamicComponent)(page.template), { - key: 0, - modelValue: page.props, - "onUpdate:modelValue": $event => page.props = $event - }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 12, _hoisted_5); - }), 128))], 44, _hoisted_4)], 512); + }, null, 44, _hoisted_4)], 512); } -;// CONCATENATED MODULE: ./src/DocumentEditor/DocumentEditor.vue?vue&type=template&id=587217e4&scoped=true +;// CONCATENATED MODULE: ./src/DocumentEditor/DocumentEditor.vue?vue&type=template&id=68da239e&scoped=true -// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js -var es_error_cause = __webpack_require__(1703); +// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js +var es_array_push = __webpack_require__(7658); ;// CONCATENATED MODULE: ./src/DocumentEditor/imports/page-transition-mgmt.js - - /** * Utility function that acts like an Array.filter on childNodes of "container" * @param {HTMLElement} container @@ -1924,13 +1694,12 @@ var es_error_cause = __webpack_require__(1703); function find_sub_child_sibling_node(container, s_tag) { if (!container || !s_tag) return false; const child_nodes = container.childNodes; - for (let i = 0; i < child_nodes.length; i++) { if (child_nodes[i].s_tag == s_tag) return child_nodes[i]; } - return false; } + /** * This function moves every sub-child of argument "child" to the start of the "child_sibling" * argument, beginning from the last child, with word splitting and format preserving. @@ -1941,60 +1710,61 @@ function find_sub_child_sibling_node(container, s_tag) { * @param {Function} stop_condition Check function that returns a boolean if content doesn't overflow anymore * @param {Boolean} not_first_child Should be unset. Used internally to let at least one child in the page */ - - function move_children_forward_recursively(child, child_sibling, stop_condition, not_first_child) { // if the child still has nodes and the current page still overflows while (child.childNodes.length && !stop_condition()) { // check if page has only one child tree left - not_first_child = not_first_child || child.childNodes.length != 1; // select the last sub-child + not_first_child = not_first_child || child.childNodes.length != 1; - const sub_child = child.lastChild; // if it is a text node, move its content to next page word(/space) by word + // select the last sub-child + const sub_child = child.lastChild; + // if it is a text node, move its content to next page word(/space) by word if (sub_child.nodeType == Node.TEXT_NODE) { const sub_child_hashes = sub_child.textContent.match(/(\s|\S+)/g); const sub_child_continuation = document.createTextNode(''); child_sibling.prepend(sub_child_continuation); const l = sub_child_hashes ? sub_child_hashes.length : 0; - for (let i = 0; i < l; i++) { if (i == l - 1 && !not_first_child) return; // never remove the first word of the page - sub_child.textContent = sub_child_hashes.slice(0, l - i - 1).join(''); sub_child_continuation.textContent = sub_child_hashes.slice(l - i - 1, l).join(''); if (stop_condition()) return; } - } // if it is a node with no content (e.g. ), or a header title (e.g.

) we simply move it + } + + // if it is a node with no content (e.g. ), or a header title (e.g.

) we simply move it else if (!sub_child.childNodes.length || sub_child.tagName.match(/h\d/i)) { // just prevent moving the last child of the page if (!not_first_child) { console.log("Move-forward: first child reached with no stop condition. Aborting"); return; } - child_sibling.prepend(sub_child); - } // for every other node that is not text and not the first child, clone it recursively to next page + } + + // for every other node that is not text and not the first child, clone it recursively to next page else { // check if sub child has already been cloned before - let sub_child_sibling = find_sub_child_sibling_node(child_sibling, sub_child.s_tag); // if not, create it and watermark the relationship with a random tag + let sub_child_sibling = find_sub_child_sibling_node(child_sibling, sub_child.s_tag); + // if not, create it and watermark the relationship with a random tag if (!sub_child_sibling) { if (!sub_child.s_tag) { const new_random_tag = Math.random().toString(36).slice(2, 8); sub_child.s_tag = new_random_tag; } - sub_child_sibling = sub_child.cloneNode(false); sub_child_sibling.s_tag = sub_child.s_tag; child_sibling.prepend(sub_child_sibling); - } // then move/clone its children and sub-children recursively - + } + // then move/clone its children and sub-children recursively move_children_forward_recursively(sub_child, sub_child_sibling, stop_condition, not_first_child); sub_child_sibling.normalize(); // merge consecutive text nodes - } // if sub_child was a container that was cloned and is now empty, we clean it - + } + // if sub_child was a container that was cloned and is now empty, we clean it if (child.contains(sub_child)) { if (sub_child.childNodes.length == 0 || sub_child.innerHTML == "") child.removeChild(sub_child);else if (!stop_condition()) { // the only case when it can be non empty should be when stop_condition is now true @@ -2004,6 +1774,7 @@ function move_children_forward_recursively(child, child_sibling, stop_condition, } } } + /** * This function moves the first element from "next_page_html_div" to the end of "page_html_div", with * merging sibling tags previously watermarked by "move_children_forward_recursively", if any. @@ -2011,35 +1782,34 @@ function move_children_forward_recursively(child, child_sibling, stop_condition, * @param {HTMLElement} next_page_html_div Next page element * @param {Function} stop_condition Check function that returns a boolean if content overflows */ - - function move_children_backwards_with_merging(page_html_div, next_page_html_div, stop_condition) { // loop until content is overflowing while (!stop_condition()) { // find first child of next page - const first_child = next_page_html_div.firstChild; // merge it at the end of the current page + const first_child = next_page_html_div.firstChild; + // merge it at the end of the current page var merge_recursively = (container, elt) => { // check if child had been splitted (= has a sibling on previous page) const elt_sibling = find_sub_child_sibling_node(container, elt.s_tag); - if (elt_sibling && elt.childNodes.length) { // then dig for deeper children, in case of merge_recursively(elt_sibling, elt.firstChild); - } // else move the child inside the right container at current page + } + // else move the child inside the right container at current page else { container.append(elt); container.normalize(); } }; - merge_recursively(page_html_div, first_child); } } - ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/DocumentEditor/DocumentEditor.vue?vue&type=script&lang=js + + /* harmony default export */ var DocumentEditorvue_type_script_lang_js = ({ props: { // This contains the initial content of the document that can be synced @@ -2054,8 +1824,8 @@ function move_children_backwards_with_merging(page_html_div, next_page_html_div, display: { type: String, default: "grid" // ["grid", "horizontal", "vertical"] - }, + // Sets whether document text can be modified editable: { type: Boolean, @@ -2079,13 +1849,10 @@ function move_children_backwards_with_merging(page_html_div, next_page_html_div, default: 1.0 } }, - data() { return { pages: [], - // contains {uuid, content_idx, prev_html, template, props} for each pages of the document - pages_refs: {}, - // contains page ref elements indexed by uuid + // contains {uuid, content_idx, prev_html, template, props, elt} for each pages of the document pages_overlay_refs: {}, // contains page overlay ref elements indexed by uuid pages_height: 0, @@ -2094,8 +1861,9 @@ function move_children_backwards_with_merging(page_html_div, next_page_html_div, // real measured with of an empty editor
in px prevent_next_content_update_from_parent: false, // workaround to avoid infinite update loop - current_text_style: false // contains the style at caret position - + current_text_style: false, + // contains the style at caret position + printing_mode: false // flag set when page is rendering in printing mode }; }, @@ -2108,19 +1876,15 @@ function move_children_backwards_with_merging(page_html_div, next_page_html_div, window.addEventListener("beforeprint", this.before_print); window.addEventListener("afterprint", this.after_print); }, - beforeUpdate() { - this.pages_refs = []; this.pages_overlay_refs = []; }, - beforeUnmount() { window.removeEventListener("resize", this.update_editor_width); window.removeEventListener("click", this.process_current_text_style); window.removeEventListener("beforeprint", this.before_print); window.removeEventListener("afterprint", this.after_print); }, - computed: { css_media_style() { // creates a CSS \n","export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./DocumentEditor.vue?vue&type=template&id=587217e4&scoped=true\"","\n/**\n * Utility function that acts like an Array.filter on childNodes of \"container\"\n * @param {HTMLElement} container \n * @param {string} s_tag \n */\nfunction find_sub_child_sibling_node (container, s_tag){\n if(!container || !s_tag) return false;\n const child_nodes = container.childNodes;\n for(let i = 0; i < child_nodes.length; i++) {\n if(child_nodes[i].s_tag == s_tag) return child_nodes[i];\n }\n return false;\n}\n\n\n/**\n * This function moves every sub-child of argument \"child\" to the start of the \"child_sibling\"\n * argument, beginning from the last child, with word splitting and format preserving.\n * Typically, \"child\" is the current page which content overflows, and \"child_sibling\" is the \n * next page.\n * @param {HTMLElement} child Element to take children from (current page)\n * @param {HTMLElement} child_sibling Element to copy children to (next page)\n * @param {Function} stop_condition Check function that returns a boolean if content doesn't overflow anymore\n * @param {Boolean} not_first_child Should be unset. Used internally to let at least one child in the page\n */\nfunction move_children_forward_recursively (child, child_sibling, stop_condition, not_first_child) {\n\n // if the child still has nodes and the current page still overflows\n while(child.childNodes.length && !stop_condition()){\n\n // check if page has only one child tree left\n not_first_child = not_first_child || (child.childNodes.length != 1);\n\n // select the last sub-child\n const sub_child = child.lastChild;\n\n // if it is a text node, move its content to next page word(/space) by word\n if(sub_child.nodeType == Node.TEXT_NODE){\n const sub_child_hashes = sub_child.textContent.match(/(\\s|\\S+)/g);\n const sub_child_continuation = document.createTextNode('');\n child_sibling.prepend(sub_child_continuation);\n const l = sub_child_hashes ? sub_child_hashes.length : 0;\n for(let i = 0; i < l; i++) {\n if(i == l - 1 && !not_first_child) return; // never remove the first word of the page\n sub_child.textContent = sub_child_hashes.slice(0, l - i - 1).join('');\n sub_child_continuation.textContent = sub_child_hashes.slice(l - i - 1, l).join('');\n if(stop_condition()) return;\n }\n }\n\n // if it is a node with no content (e.g. ), or a header title (e.g.

) we simply move it\n else if(!sub_child.childNodes.length || sub_child.tagName.match(/h\\d/i)) {\n // just prevent moving the last child of the page\n if(!not_first_child){\n console.log(\"Move-forward: first child reached with no stop condition. Aborting\");\n return;\n }\n child_sibling.prepend(sub_child);\n }\n\n // for every other node that is not text and not the first child, clone it recursively to next page\n else {\n // check if sub child has already been cloned before\n let sub_child_sibling = find_sub_child_sibling_node(child_sibling, sub_child.s_tag);\n \n // if not, create it and watermark the relationship with a random tag\n if(!sub_child_sibling) {\n if(!sub_child.s_tag) {\n const new_random_tag = Math.random().toString(36).slice(2, 8);\n sub_child.s_tag = new_random_tag;\n }\n sub_child_sibling = sub_child.cloneNode(false);\n sub_child_sibling.s_tag = sub_child.s_tag;\n child_sibling.prepend(sub_child_sibling);\n }\n \n // then move/clone its children and sub-children recursively\n move_children_forward_recursively(sub_child, sub_child_sibling, stop_condition, not_first_child);\n sub_child_sibling.normalize(); // merge consecutive text nodes\n }\n\n // if sub_child was a container that was cloned and is now empty, we clean it\n if(child.contains(sub_child)){\n if(sub_child.childNodes.length == 0 || sub_child.innerHTML == \"\") child.removeChild(sub_child);\n else if(!stop_condition()) {\n // the only case when it can be non empty should be when stop_condition is now true\n console.log(\"sub_child:\", sub_child, \"that is in child:\", child);\n throw Error(\"Document editor is trying to remove a non-empty sub-child. This \"\n + \"is a bug and should not happen. Please report a repeatable set of actions that \"\n + \"leaded to this error to https://github.com/motla/vue-document-editor/issues/new\");\n }\n }\n }\n}\n\n\n\n/**\n * This function moves the first element from \"next_page_html_div\" to the end of \"page_html_div\", with\n * merging sibling tags previously watermarked by \"move_children_forward_recursively\", if any.\n * @param {HTMLElement} page_html_div Current page element\n * @param {HTMLElement} next_page_html_div Next page element\n * @param {Function} stop_condition Check function that returns a boolean if content overflows\n */\nfunction move_children_backwards_with_merging (page_html_div, next_page_html_div, stop_condition) {\n\n // loop until content is overflowing\n while(!stop_condition()){\n\n // find first child of next page\n const first_child = next_page_html_div.firstChild;\n\n // merge it at the end of the current page\n var merge_recursively = (container, elt) => {\n // check if child had been splitted (= has a sibling on previous page)\n const elt_sibling = find_sub_child_sibling_node(container, elt.s_tag);\n if(elt_sibling && elt.childNodes.length) {\n // then dig for deeper children, in case of\n merge_recursively(elt_sibling, elt.firstChild);\n }\n // else move the child inside the right container at current page\n else {\n container.append(elt);\n container.normalize();\n }\n }\n merge_recursively(page_html_div, first_child);\n }\n}\n\nexport {\n move_children_forward_recursively,\n move_children_backwards_with_merging\n};","export { default } from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./DocumentEditor.vue?vue&type=script&lang=js\"; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./DocumentEditor.vue?vue&type=script&lang=js\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!../../node_modules/vue-loader/dist/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./DocumentEditor.vue?vue&type=style&index=0&id=587217e4&lang=css\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!../../node_modules/vue-loader/dist/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./DocumentEditor.vue?vue&type=style&index=1&id=587217e4&lang=scss&scoped=true\"","import { render } from \"./DocumentEditor.vue?vue&type=template&id=587217e4&scoped=true\"\nimport script from \"./DocumentEditor.vue?vue&type=script&lang=js\"\nexport * from \"./DocumentEditor.vue?vue&type=script&lang=js\"\n\nimport \"./DocumentEditor.vue?vue&type=style&index=0&id=587217e4&lang=css\"\nimport \"./DocumentEditor.vue?vue&type=style&index=1&id=587217e4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/Users/romain/Developer/vue-document-editor/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-587217e4\"]])\n\nexport default __exports__","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["class","ref","_createElementBlock","$props","_Fragment","_renderList","$data","page","page_idx","key","uuid","elt","innerHTML","length","style","$options","_createElementVNode","contenteditable","onInput","onKeyup","onKeydown","content_idx","template","_createBlock","_resolveDynamicComponent","props","$event","find_sub_child_sibling_node","container","s_tag","child_nodes","childNodes","i","move_children_forward_recursively","child","child_sibling","stop_condition","not_first_child","sub_child","lastChild","nodeType","Node","TEXT_NODE","sub_child_hashes","textContent","match","sub_child_continuation","document","createTextNode","prepend","l","slice","join","tagName","console","log","sub_child_sibling","new_random_tag","Math","random","toString","cloneNode","normalize","contains","removeChild","Error","move_children_backwards_with_merging","page_html_div","next_page_html_div","first_child","firstChild","merge_recursively","elt_sibling","append","content","type","Array","required","display","String","default","editable","Boolean","overlay","Function","page_format_mm","page_margins","zoom","Number","data","pages","pages_refs","pages_overlay_refs","pages_height","editor_width","prevent_next_content_update_from_parent","current_text_style","mounted","update_editor_width","update_css_media_style","reset_content","window","addEventListener","process_current_text_style","before_print","after_print","beforeUpdate","beforeUnmount","removeEventListener","computed","css_media_style","createElement","head","appendChild","methods","new_uuid","reset_in_progress","$emit","map","$nextTick","first_page_elt","$refs","clientHeight","page_elt","fit_content_over_pages","blur","fit_in_progress","body","splice","selection","getSelection","start_marker","end_marker","rangeCount","range","getRangeAt","insertNode","collapse","prev_page_modified_flag","next_page","next_page_elt","prev_innerHTML","createRange","setStart","setEnd","removeAllRanges","addRange","parentElement","input","e","emit_new_content","inputType","keydown","keyCode","is_text","replace","preventDefault","removed_pages_flag","new_content","item","filter","children","toLowerCase","getAttribute","sel","focusNode","element","isContentEditable","getComputedStyle","textDecorationStack","headerLevel","isList","parent","parent_style","push","textDecoration","toUpperCase","page_style","allow_overflow","px_in_mm","page_width","page_spacing_mm","page_with_plus_spacing","view_padding","inner_width","nb_pages_x","page_column","x_pos","x_ofx","left_px","top_mm","bkg_width_mm","bkg_height_mm","floor","max","nb_pages_y","ceil","position","left","top","width","padding","transform","height","editor","classList","add","clientWidth","remove","_page_body","print_body","margin","background","font","className","entries","page_clone","breakBefore","overlay_elts","overlay_clone","overflow","return_overlay","right","bottom","alignItems","justifyContent","cursor","watch","handler","deep"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"VueDocumentEditor.umd.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;ACVA,iBAAiB,mBAAO,CAAC,GAA0B;AACnD,kBAAkB,mBAAO,CAAC,IAA4B;;AAEtD;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;ACTA,eAAe,mBAAO,CAAC,GAAwB;;AAE/C;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;ACTA,sBAAsB,mBAAO,CAAC,IAAgC;AAC9D,sBAAsB,mBAAO,CAAC,IAAgC;AAC9D,wBAAwB,mBAAO,CAAC,IAAmC;;AAEnE,sBAAsB,mBAAmB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,WAAW,gBAAgB;AACjC;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AC/Ba;AACb,kBAAkB,mBAAO,CAAC,IAA0B;AACpD,cAAc,mBAAO,CAAC,IAAuB;;AAE7C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D,IAAI;AACJ;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,IAAI;AACJ,EAAE;AACF;AACA;;;;;;;;AC1BA,qBAAqB,mBAAO,CAAC,EAAwC;;AAErE,gCAAgC;AAChC;;AAEA;AACA;AACA;;;;;;;;ACPA,aAAa,mBAAO,CAAC,IAA+B;AACpD,cAAc,mBAAO,CAAC,IAAuB;AAC7C,qCAAqC,mBAAO,CAAC,IAAiD;AAC9F,2BAA2B,mBAAO,CAAC,IAAqC;;AAExE;AACA;AACA;AACA;AACA,kBAAkB,iBAAiB;AACnC;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACfA,kBAAkB,mBAAO,CAAC,IAA0B;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E;MACtB;IACF,CAAC;IACDd,YAAY,EAAE;MACZ6J,OAAM,GAAK;QACT,IAAI,CAAC/I,aAAa,EAAE;MACtB;IACF,CAAC;IACD1B,OAAO,EAAE;MACPyK,OAAM,GAAK;QACT;QACA,IAAG,IAAI,CAACrJ,uCAAuC,EAAE;UAC/C,IAAI,CAACA,uCAAsC,GAAI,KAAK;QACtD,OAAO,IAAI,CAACM,aAAa,EAAE;MAC7B,CAAC;MACDgJ,IAAI,EAAE;IACR;EACF;AAEF,CAAC;;AGxiB0P;;ACA3P;;;;;AEAA;;;;;;;AEAuF;AACtB;AACL;;AAE5D,CAAyE;AACY;;AAEiC;AACtH,iCAAiC,+BAAe,CAAC,qCAAM,aAAa,MAAM;;AAE1E,mDAAe;;ACVS;AACA;AACxB,8CAAe,cAAG;AACI","sources":["webpack://VueDocumentEditor/webpack/universalModuleDefinition","webpack://VueDocumentEditor/./node_modules/core-js/internals/a-callable.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/an-object.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/array-includes.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/array-set-length.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/classof-raw.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/copy-constructor-properties.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/create-non-enumerable-property.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/create-property-descriptor.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/define-built-in.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/define-global-property.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/descriptors.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/document-all.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/document-create-element.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/does-not-exceed-safe-integer.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/engine-user-agent.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/engine-v8-version.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/enum-bug-keys.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/export.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/fails.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/function-bind-native.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/function-call.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/function-name.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/function-uncurry-this-raw.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/function-uncurry-this.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/get-built-in.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/get-method.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/global.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/has-own-property.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/hidden-keys.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/ie8-dom-define.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/indexed-object.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/inspect-source.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/internal-state.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/is-array.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/is-callable.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/is-forced.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/is-null-or-undefined.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/is-object.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/is-pure.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/is-symbol.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/length-of-array-like.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/make-built-in.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/math-trunc.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-define-property.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-get-own-property-descriptor.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-get-own-property-names.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-get-own-property-symbols.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-is-prototype-of.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-keys-internal.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-property-is-enumerable.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/ordinary-to-primitive.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/own-keys.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/require-object-coercible.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/shared-key.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/shared-store.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/shared.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/symbol-constructor-detection.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-absolute-index.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-indexed-object.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-integer-or-infinity.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-length.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-object.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-primitive.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-property-key.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/try-to-string.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/uid.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/use-symbol-as-uid.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/v8-prototype-define-bug.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/weak-map-basic-detection.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/well-known-symbol.js","webpack://VueDocumentEditor/./node_modules/core-js/modules/es.array.push.js","webpack://VueDocumentEditor/./node_modules/vue-loader/dist/exportHelper.js","webpack://VueDocumentEditor/external umd {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://VueDocumentEditor/webpack/bootstrap","webpack://VueDocumentEditor/webpack/runtime/define property getters","webpack://VueDocumentEditor/webpack/runtime/global","webpack://VueDocumentEditor/webpack/runtime/hasOwnProperty shorthand","webpack://VueDocumentEditor/webpack/runtime/publicPath","webpack://VueDocumentEditor/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://VueDocumentEditor/./src/DocumentEditor/DocumentEditor.vue","webpack://VueDocumentEditor/./src/DocumentEditor/DocumentEditor.vue?b042","webpack://VueDocumentEditor/./src/DocumentEditor/imports/page-transition-mgmt.js","webpack://VueDocumentEditor/./src/DocumentEditor/DocumentEditor.vue?0586","webpack://VueDocumentEditor/./src/DocumentEditor/DocumentEditor.vue?6fd1","webpack://VueDocumentEditor/./src/DocumentEditor/DocumentEditor.vue?94b3","webpack://VueDocumentEditor/./src/DocumentEditor/DocumentEditor.vue?8780","webpack://VueDocumentEditor/./src/DocumentEditor/DocumentEditor.vue?7645","webpack://VueDocumentEditor/./src/DocumentEditor/DocumentEditor.vue?a4df","webpack://VueDocumentEditor/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"vue\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VueDocumentEditor\"] = factory(require(\"vue\"));\n\telse\n\t\troot[\"VueDocumentEditor\"] = factory(root[\"Vue\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__7203__) {\nreturn ","var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a function');\n};\n","var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw $TypeError($String(argument) + ' is not an object');\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar isArray = require('../internals/is-array');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Safari < 13 does not throw an error in this case\nvar SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {\n // makes no sense without proper strict mode support\n if (this !== undefined) return true;\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).length = 1;\n } catch (error) {\n return error instanceof TypeError;\n }\n}();\n\nmodule.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {\n if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {\n throw $TypeError('Cannot set read only .length');\n } return O.length = length;\n} : function (O, length) {\n return O.length = length;\n};\n","var uncurryThisRaw = require('../internals/function-uncurry-this-raw');\n\nvar toString = uncurryThisRaw({}.toString);\nvar stringSlice = uncurryThisRaw(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","var classofRaw = require('../internals/classof-raw');\nvar uncurryThisRaw = require('../internals/function-uncurry-this-raw');\n\nmodule.exports = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw(fn) === 'Function') return uncurryThisRaw(fn);\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","module.exports = {};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) == 'Array';\n};\n","var $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","var isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","module.exports = false;\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (String(name).slice(0, 7) === 'Symbol(') {\n name = '[' + String(name).replace(/^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = TEMPLATE.join(typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","var isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.26.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar symbolFor = Symbol && Symbol['for'];\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {\n var description = 'Symbol.' + name;\n if (NATIVE_SYMBOL && hasOwn(Symbol, name)) {\n WellKnownSymbolsStore[name] = Symbol[name];\n } else if (USE_SYMBOL_AS_UID && symbolFor) {\n WellKnownSymbolsStore[name] = symbolFor(description);\n } else {\n WellKnownSymbolsStore[name] = createWellKnownSymbol(description);\n }\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar setArrayLength = require('../internals/array-set-length');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar fails = require('../internals/fails');\n\nvar INCORRECT_TO_LENGTH = fails(function () {\n return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;\n});\n\n// V8 and Safari <= 15.4, FF < 23 throws InternalError\n// https://bugs.chromium.org/p/v8/issues/detail?id=12681\nvar SILENT_ON_NON_WRITABLE_LENGTH = !function () {\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).push();\n } catch (error) {\n return error instanceof TypeError;\n }\n}();\n\n// `Array.prototype.push` method\n// https://tc39.es/ecma262/#sec-array.prototype.push\n$({ target: 'Array', proto: true, arity: 1, forced: INCORRECT_TO_LENGTH || SILENT_ON_NON_WRITABLE_LENGTH }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n push: function push(item) {\n var O = toObject(this);\n var len = lengthOfArrayLike(O);\n var argCount = arguments.length;\n doesNotExceedSafeInteger(len + argCount);\n for (var i = 0; i < argCount; i++) {\n O[len] = arguments[i];\n len++;\n }\n setArrayLength(O, len);\n return len;\n }\n});\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// runtime helper for setting properties on components\n// in a tree-shakable way\nexports.default = (sfc, props) => {\n const target = sfc.__vccOpts || sfc;\n for (const [key, val] of props) {\n target[key] = val;\n }\n return target;\n};\n","module.exports = __WEBPACK_EXTERNAL_MODULE__7203__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","\n\n\n\n\n","export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./DocumentEditor.vue?vue&type=template&id=68da239e&scoped=true\"","\n/**\n * Utility function that acts like an Array.filter on childNodes of \"container\"\n * @param {HTMLElement} container \n * @param {string} s_tag \n */\nfunction find_sub_child_sibling_node (container, s_tag){\n if(!container || !s_tag) return false;\n const child_nodes = container.childNodes;\n for(let i = 0; i < child_nodes.length; i++) {\n if(child_nodes[i].s_tag == s_tag) return child_nodes[i];\n }\n return false;\n}\n\n\n/**\n * This function moves every sub-child of argument \"child\" to the start of the \"child_sibling\"\n * argument, beginning from the last child, with word splitting and format preserving.\n * Typically, \"child\" is the current page which content overflows, and \"child_sibling\" is the \n * next page.\n * @param {HTMLElement} child Element to take children from (current page)\n * @param {HTMLElement} child_sibling Element to copy children to (next page)\n * @param {Function} stop_condition Check function that returns a boolean if content doesn't overflow anymore\n * @param {Boolean} not_first_child Should be unset. Used internally to let at least one child in the page\n */\nfunction move_children_forward_recursively (child, child_sibling, stop_condition, not_first_child) {\n\n // if the child still has nodes and the current page still overflows\n while(child.childNodes.length && !stop_condition()){\n\n // check if page has only one child tree left\n not_first_child = not_first_child || (child.childNodes.length != 1);\n\n // select the last sub-child\n const sub_child = child.lastChild;\n\n // if it is a text node, move its content to next page word(/space) by word\n if(sub_child.nodeType == Node.TEXT_NODE){\n const sub_child_hashes = sub_child.textContent.match(/(\\s|\\S+)/g);\n const sub_child_continuation = document.createTextNode('');\n child_sibling.prepend(sub_child_continuation);\n const l = sub_child_hashes ? sub_child_hashes.length : 0;\n for(let i = 0; i < l; i++) {\n if(i == l - 1 && !not_first_child) return; // never remove the first word of the page\n sub_child.textContent = sub_child_hashes.slice(0, l - i - 1).join('');\n sub_child_continuation.textContent = sub_child_hashes.slice(l - i - 1, l).join('');\n if(stop_condition()) return;\n }\n }\n\n // if it is a node with no content (e.g. ), or a header title (e.g.

) we simply move it\n else if(!sub_child.childNodes.length || sub_child.tagName.match(/h\\d/i)) {\n // just prevent moving the last child of the page\n if(!not_first_child){\n console.log(\"Move-forward: first child reached with no stop condition. Aborting\");\n return;\n }\n child_sibling.prepend(sub_child);\n }\n\n // for every other node that is not text and not the first child, clone it recursively to next page\n else {\n // check if sub child has already been cloned before\n let sub_child_sibling = find_sub_child_sibling_node(child_sibling, sub_child.s_tag);\n \n // if not, create it and watermark the relationship with a random tag\n if(!sub_child_sibling) {\n if(!sub_child.s_tag) {\n const new_random_tag = Math.random().toString(36).slice(2, 8);\n sub_child.s_tag = new_random_tag;\n }\n sub_child_sibling = sub_child.cloneNode(false);\n sub_child_sibling.s_tag = sub_child.s_tag;\n child_sibling.prepend(sub_child_sibling);\n }\n \n // then move/clone its children and sub-children recursively\n move_children_forward_recursively(sub_child, sub_child_sibling, stop_condition, not_first_child);\n sub_child_sibling.normalize(); // merge consecutive text nodes\n }\n\n // if sub_child was a container that was cloned and is now empty, we clean it\n if(child.contains(sub_child)){\n if(sub_child.childNodes.length == 0 || sub_child.innerHTML == \"\") child.removeChild(sub_child);\n else if(!stop_condition()) {\n // the only case when it can be non empty should be when stop_condition is now true\n console.log(\"sub_child:\", sub_child, \"that is in child:\", child);\n throw Error(\"Document editor is trying to remove a non-empty sub-child. This \"\n + \"is a bug and should not happen. Please report a repeatable set of actions that \"\n + \"leaded to this error to https://github.com/motla/vue-document-editor/issues/new\");\n }\n }\n }\n}\n\n\n\n/**\n * This function moves the first element from \"next_page_html_div\" to the end of \"page_html_div\", with\n * merging sibling tags previously watermarked by \"move_children_forward_recursively\", if any.\n * @param {HTMLElement} page_html_div Current page element\n * @param {HTMLElement} next_page_html_div Next page element\n * @param {Function} stop_condition Check function that returns a boolean if content overflows\n */\nfunction move_children_backwards_with_merging (page_html_div, next_page_html_div, stop_condition) {\n\n // loop until content is overflowing\n while(!stop_condition()){\n\n // find first child of next page\n const first_child = next_page_html_div.firstChild;\n\n // merge it at the end of the current page\n var merge_recursively = (container, elt) => {\n // check if child had been splitted (= has a sibling on previous page)\n const elt_sibling = find_sub_child_sibling_node(container, elt.s_tag);\n if(elt_sibling && elt.childNodes.length) {\n // then dig for deeper children, in case of\n merge_recursively(elt_sibling, elt.firstChild);\n }\n // else move the child inside the right container at current page\n else {\n container.append(elt);\n container.normalize();\n }\n }\n merge_recursively(page_html_div, first_child);\n }\n}\n\nexport {\n move_children_forward_recursively,\n move_children_backwards_with_merging\n};","export { default } from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./DocumentEditor.vue?vue&type=script&lang=js\"; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./DocumentEditor.vue?vue&type=script&lang=js\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!../../node_modules/vue-loader/dist/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./DocumentEditor.vue?vue&type=style&index=0&id=68da239e&lang=css\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!../../node_modules/vue-loader/dist/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./DocumentEditor.vue?vue&type=style&index=1&id=68da239e&scoped=true&lang=css\"","import { render } from \"./DocumentEditor.vue?vue&type=template&id=68da239e&scoped=true\"\nimport script from \"./DocumentEditor.vue?vue&type=script&lang=js\"\nexport * from \"./DocumentEditor.vue?vue&type=script&lang=js\"\n\nimport \"./DocumentEditor.vue?vue&type=style&index=0&id=68da239e&lang=css\"\nimport \"./DocumentEditor.vue?vue&type=style&index=1&id=68da239e&scoped=true&lang=css\"\n\nimport exportComponent from \"/Users/romain/Developer/vue-document-editor/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-68da239e\"]])\n\nexport default __exports__","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["class","ref","_createElementBlock","_hoisted_1","$props","_hoisted_2","_Fragment","$data","page","page_idx","key","uuid","elt","innerHTML","length","style","$options","_createElementVNode","contenteditable","onInput","onKeyup","onKeydown","find_sub_child_sibling_node","container","s_tag","child_nodes","childNodes","i","move_children_forward_recursively","child","child_sibling","stop_condition","not_first_child","sub_child","lastChild","nodeType","Node","TEXT_NODE","sub_child_hashes","textContent","match","sub_child_continuation","document","createTextNode","prepend","l","slice","join","tagName","console","log","sub_child_sibling","new_random_tag","Math","random","toString","cloneNode","normalize","contains","removeChild","Error","move_children_backwards_with_merging","page_html_div","next_page_html_div","first_child","firstChild","merge_recursively","elt_sibling","append","defineCustomElement","props","content","type","Array","required","display","String","default","editable","Boolean","overlay","Function","page_format_mm","page_margins","zoom","Number","data","pages","pages_overlay_refs","pages_height","editor_width","prevent_next_content_update_from_parent","current_text_style","printing_mode","mounted","update_editor_width","update_css_media_style","reset_content","window","addEventListener","process_current_text_style","before_print","after_print","beforeUpdate","beforeUnmount","removeEventListener","computed","css_media_style","createElement","head","appendChild","methods","new_uuid","reset_in_progress","$emit","map","content_idx","template","update_pages_elts","first_page_elt","$refs","clientHeight","componentElement","customElements","define","modelValue","fit_content_over_pages","blur","fit_in_progress","body","splice","selection","getSelection","start_marker","end_marker","rangeCount","range","getRangeAt","insertNode","collapse","prev_page_modified_flag","next_page","next_page_elt","prev_innerHTML","createRange","setStart","setEnd","removeAllRanges","addRange","parentElement","input","e","emit_new_content","inputType","keydown","keyCode","is_text","replace","preventDefault","removed_pages_flag","new_content","item","filter","children","toLowerCase","getAttribute","sel","focusNode","element","isContentEditable","getComputedStyle","textDecorationStack","headerLevel","isList","parent","parent_style","push","textDecoration","toUpperCase","page_style","allow_overflow","px_in_mm","page_width","page_spacing_mm","page_with_plus_spacing","view_padding","inner_width","nb_pages_x","page_column","x_pos","x_ofx","left_px","top_mm","bkg_width_mm","bkg_height_mm","floor","max","nb_pages_y","ceil","position","left","top","width","padding","transform","height","css_to_string","css","Object","entries","k","v","page_elt","find","remove","className","insertBefore","dataset","contentIdx","contentEditable","editor","classList","add","clientWidth","_page_body","print_body","margin","background","font","breakBefore","overlay_elt","overflow","return_overlay","right","bottom","alignItems","justifyContent","cursor","overlays","watch","handler","deep"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/VueDocumentEditor.umd.min.js b/dist/VueDocumentEditor.umd.min.js index a9ab266..e9f13b5 100644 --- a/dist/VueDocumentEditor.umd.min.js +++ b/dist/VueDocumentEditor.umd.min.js @@ -1,2 +1,2 @@ -(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["VueDocumentEditor"]=e(require("vue")):t["VueDocumentEditor"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(){var e={9662:function(t,e,n){var r=n(614),o=n(6330),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a function")}},6077:function(t,e,n){var r=n(614),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},9670:function(t,e,n){var r=n(111),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not an object")}},1318:function(t,e,n){var r=n(5656),o=n(1400),i=n(6244),s=function(t){return function(e,n,s){var a,c=r(e),u=i(c),f=o(s,u);if(t&&n!=n){while(u>f)if(a=c[f++],a!=a)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},4326:function(t,e,n){var r=n(1702),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},648:function(t,e,n){var r=n(1694),o=n(614),i=n(4326),s=n(5112),a=s("toStringTag"),c=Object,u="Arguments"==i(function(){return arguments}()),f=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=f(e=c(t),a))?n:u?i(e):"Object"==(r=i(e))&&o(e.callee)?"Arguments":r}},7741:function(t,e,n){var r=n(1702),o=Error,i=r("".replace),s=function(t){return String(o(t).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(s);t.exports=function(t,e){if(c&&"string"==typeof t&&!o.prepareStackTrace)while(e--)t=i(t,a,"");return t}},9920:function(t,e,n){var r=n(2597),o=n(3887),i=n(1236),s=n(3070);t.exports=function(t,e,n){for(var a=o(e),c=s.f,u=i.f,f=0;f0&&r[0]<4?1:+(r[0]+r[1])),!o&&s&&(r=s.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),t.exports=o},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(t,e,n){var r=n(7293),o=n(9114);t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},2109:function(t,e,n){var r=n(7854),o=n(1236).f,i=n(8880),s=n(8052),a=n(3072),c=n(9920),u=n(4705);t.exports=function(t,e){var n,f,p,l,d,h,g=t.target,m=t.global,y=t.stat;if(f=m?r:y?r[g]||a(g,{}):(r[g]||{}).prototype,f)for(p in e){if(d=e[p],t.dontCallGetSet?(h=o(f,p),l=h&&h.value):l=f[p],n=u(m?p:g+(y?".":"#")+p,t.forced),!n&&void 0!==l){if(typeof d==typeof l)continue;c(d,l)}(t.sham||l&&l.sham)&&i(d,"sham",!0),s(f,p,d,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},2104:function(t,e,n){var r=n(4374),o=Function.prototype,i=o.apply,s=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(i):function(){return s.apply(i,arguments)})},4374:function(t,e,n){var r=n(7293);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,n){var r=n(4374),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(t,e,n){var r=n(9781),o=n(2597),i=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},1702:function(t,e,n){var r=n(4374),o=Function.prototype,i=o.bind,s=o.call,a=r&&i.bind(s,s);t.exports=r?function(t){return t&&a(t)}:function(t){return t&&function(){return s.apply(t,arguments)}}},5005:function(t,e,n){var r=n(7854),o=n(614),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},8173:function(t,e,n){var r=n(9662);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},7854:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(t,e,n){var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},3501:function(t){t.exports={}},4664:function(t,e,n){var r=n(9781),o=n(7293),i=n(317);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var r=n(1702),o=n(7293),i=n(4326),s=Object,a=r("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?a(t,""):s(t)}:s},9587:function(t,e,n){var r=n(614),o=n(111),i=n(7674);t.exports=function(t,e,n){var s,a;return i&&r(s=e.constructor)&&s!==n&&o(a=s.prototype)&&a!==n.prototype&&i(t,a),t}},2788:function(t,e,n){var r=n(1702),o=n(614),i=n(5465),s=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return s(t)}),t.exports=i.inspectSource},8340:function(t,e,n){var r=n(111),o=n(8880);t.exports=function(t,e){r(e)&&"cause"in e&&o(t,"cause",e.cause)}},9909:function(t,e,n){var r,o,i,s=n(8536),a=n(7854),c=n(1702),u=n(111),f=n(8880),p=n(2597),l=n(5465),d=n(6200),h=n(3501),g="Object already initialized",m=a.TypeError,y=a.WeakMap,v=function(t){return i(t)?o(t):r(t,{})},_=function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return n}};if(s||l.state){var b=l.state||(l.state=new y),x=c(b.get),w=c(b.has),E=c(b.set);r=function(t,e){if(w(b,t))throw new m(g);return e.facade=t,E(b,t,e),e},o=function(t){return x(b,t)||{}},i=function(t){return w(b,t)}}else{var S=d("state");h[S]=!0,r=function(t,e){if(p(t,S))throw new m(g);return e.facade=t,f(t,S,e),e},o=function(t){return p(t,S)?t[S]:{}},i=function(t){return p(t,S)}}t.exports={set:r,get:o,has:i,enforce:v,getterFor:_}},614:function(t){t.exports=function(t){return"function"==typeof t}},4705:function(t,e,n){var r=n(7293),o=n(614),i=/#|\.prototype\./,s=function(t,e){var n=c[a(t)];return n==f||n!=u&&(o(e)?r(e):!!e)},a=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",f=s.POLYFILL="P";t.exports=s},111:function(t,e,n){var r=n(614);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){t.exports=!1},2190:function(t,e,n){var r=n(5005),o=n(614),i=n(7976),s=n(3307),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,a(t))}},6244:function(t,e,n){var r=n(7466);t.exports=function(t){return r(t.length)}},6339:function(t,e,n){var r=n(7293),o=n(614),i=n(2597),s=n(9781),a=n(6530).CONFIGURABLE,c=n(2788),u=n(9909),f=u.enforce,p=u.get,l=Object.defineProperty,d=s&&!r((function(){return 8!==l((function(){}),"length",{value:8}).length})),h=String(String).split("String"),g=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!i(t,"name")||a&&t.name!==e)&&(s?l(t,"name",{value:e,configurable:!0}):t.name=e),d&&n&&i(n,"arity")&&t.length!==n.arity&&l(t,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?s&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var r=f(t);return i(r,"source")||(r.source=h.join("string"==typeof e?e:"")),t};Function.prototype.toString=g((function(){return o(this)&&p(this).source||c(this)}),"toString")},4758:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},133:function(t,e,n){var r=n(7392),o=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:function(t,e,n){var r=n(7854),o=n(614),i=n(2788),s=r.WeakMap;t.exports=o(s)&&/native code/.test(i(s))},6277:function(t,e,n){var r=n(1340);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},3070:function(t,e,n){var r=n(9781),o=n(4664),i=n(3353),s=n(9670),a=n(4948),c=TypeError,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",d="writable";e.f=r?i?function(t,e,n){if(s(t),e=a(e),s(n),"function"===typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=f(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:l in n?n[l]:r[l],enumerable:p in n?n[p]:r[p],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(s(t),e=a(e),s(n),o)try{return u(t,e,n)}catch(r){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var r=n(9781),o=n(6916),i=n(5296),s=n(9114),a=n(5656),c=n(4948),u=n(2597),f=n(4664),p=Object.getOwnPropertyDescriptor;e.f=r?p:function(t,e){if(t=a(t),e=c(e),f)try{return p(t,e)}catch(n){}if(u(t,e))return s(!o(i.f,t,e),t[e])}},8006:function(t,e,n){var r=n(6324),o=n(748),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},7976:function(t,e,n){var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:function(t,e,n){var r=n(1702),o=n(2597),i=n(5656),s=n(1318).indexOf,a=n(3501),c=r([].push);t.exports=function(t,e){var n,r=i(t),u=0,f=[];for(n in r)!o(a,n)&&o(r,n)&&c(f,n);while(e.length>u)o(r,n=e[u++])&&(~s(f,n)||c(f,n));return f}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7674:function(t,e,n){var r=n(1702),o=n(9670),i=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(n,[]),e=n instanceof Array}catch(s){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},2140:function(t,e,n){var r=n(6916),o=n(614),i=n(111),s=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&o(n=t.toString)&&!i(a=r(n,t)))return a;if(o(n=t.valueOf)&&!i(a=r(n,t)))return a;if("string"!==e&&o(n=t.toString)&&!i(a=r(n,t)))return a;throw s("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),o=n(1702),i=n(8006),s=n(5181),a=n(9670),c=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=s.f;return n?c(e,n(t)):e}},2626:function(t,e,n){var r=n(3070).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},4488:function(t){var e=TypeError;t.exports=function(t){if(void 0==t)throw e("Can't call method on "+t);return t}},6200:function(t,e,n){var r=n(2309),o=n(9711),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,e,n){var r=n(7854),o=n(3072),i="__core-js_shared__",s=r[i]||o(i,{});t.exports=s},2309:function(t,e,n){var r=n(1913),o=n(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.24.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},1400:function(t,e,n){var r=n(9303),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},5656:function(t,e,n){var r=n(8361),o=n(4488);t.exports=function(t){return r(o(t))}},9303:function(t,e,n){var r=n(4758);t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},7466:function(t,e,n){var r=n(9303),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},7908:function(t,e,n){var r=n(4488),o=Object;t.exports=function(t){return o(r(t))}},7593:function(t,e,n){var r=n(6916),o=n(111),i=n(2190),s=n(8173),a=n(2140),c=n(5112),u=TypeError,f=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,c=s(t,f);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!o(n)||i(n))return n;throw u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},4948:function(t,e,n){var r=n(7593),o=n(2190);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},1694:function(t,e,n){var r=n(5112),o=r("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},1340:function(t,e,n){var r=n(648),o=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},6330:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},9711:function(t,e,n){var r=n(1702),o=0,i=Math.random(),s=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++o+i,36)}},3307:function(t,e,n){var r=n(133);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){var r=n(9781),o=n(7293);t.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5112:function(t,e,n){var r=n(7854),o=n(2309),i=n(2597),s=n(9711),a=n(133),c=n(3307),u=o("wks"),f=r.Symbol,p=f&&f["for"],l=c?f:f&&f.withoutSetter||s;t.exports=function(t){if(!i(u,t)||!a&&"string"!=typeof u[t]){var e="Symbol."+t;a&&i(f,t)?u[t]=f[t]:u[t]=c&&p?p(e):l(e)}return u[t]}},9191:function(t,e,n){"use strict";var r=n(5005),o=n(2597),i=n(8880),s=n(7976),a=n(7674),c=n(9920),u=n(2626),f=n(9587),p=n(6277),l=n(8340),d=n(7741),h=n(2914),g=n(9781),m=n(1913);t.exports=function(t,e,n,y){var v="stackTraceLimit",_=y?2:1,b=t.split("."),x=b[b.length-1],w=r.apply(null,b);if(w){var E=w.prototype;if(!m&&o(E,"cause")&&delete E.cause,!n)return w;var S=r("Error"),O=e((function(t,e){var n=p(y?e:t,void 0),r=y?new w(t):new w;return void 0!==n&&i(r,"message",n),h&&i(r,"stack",d(r.stack,2)),this&&s(E,this)&&f(r,this,O),arguments.length>_&&l(r,arguments[_]),r}));if(O.prototype=E,"Error"!==x?a?a(O,S):c(O,S,{name:!0}):g&&v in w&&(u(O,w,v),u(O,w,"prepareStackTrace")),c(O,w),!m)try{E.name!==x&&i(E,"name",x),E.constructor=O}catch(j){}return O}}},1703:function(t,e,n){var r=n(2109),o=n(7854),i=n(2104),s=n(9191),a="WebAssembly",c=o[a],u=7!==Error("e",{cause:7}).cause,f=function(t,e){var n={};n[t]=s(t,e,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},p=function(t,e){if(c&&c[t]){var n={};n[t]=s(a+"."+t,e,u),r({target:a,stat:!0,constructor:!0,arity:1,forced:u},n)}};f("Error",(function(t){return function(e){return i(t,this,arguments)}})),f("EvalError",(function(t){return function(e){return i(t,this,arguments)}})),f("RangeError",(function(t){return function(e){return i(t,this,arguments)}})),f("ReferenceError",(function(t){return function(e){return i(t,this,arguments)}})),f("SyntaxError",(function(t){return function(e){return i(t,this,arguments)}})),f("TypeError",(function(t){return function(e){return i(t,this,arguments)}})),f("URIError",(function(t){return function(e){return i(t,this,arguments)}})),p("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),p("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),p("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},3744:function(t,e){"use strict";e.Z=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n}},7203:function(e){"use strict";e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}!function(){r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){r.p=""}();var o={};return function(){"use strict";if(r.d(o,{default:function(){return v}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(r.p=e[1])}var n=r(7203);const i={class:"editor",ref:"editor"},s={key:0,class:"overlays"},a=["innerHTML"],c=["contenteditable"],u=["data-content-idx","data-page-idx","contenteditable"];function f(t,e,r,o,f,p){return(0,n.openBlock)(),(0,n.createElementBlock)("div",i,[r.overlay?((0,n.openBlock)(),(0,n.createElementBlock)("div",s,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(f.pages,((t,e)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:"overlay",key:t.uuid+"-overlay",ref_for:!0,ref:e=>f.pages_overlay_refs[t.uuid]=e,innerHTML:r.overlay(e+1,f.pages.length),style:(0,n.normalizeStyle)(p.page_style(e,!1))},null,12,a)))),128))])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",{class:"content",ref:"content",contenteditable:r.editable,style:(0,n.normalizeStyle)(p.page_style(-1)),onInput:e[0]||(e[0]=(...t)=>p.input&&p.input(...t)),onKeyup:e[1]||(e[1]=(...t)=>p.process_current_text_style&&p.process_current_text_style(...t)),onKeydown:e[2]||(e[2]=(...t)=>p.keydown&&p.keydown(...t))},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(f.pages,((t,e)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:"page",key:t.uuid,ref_for:!0,ref:e=>f.pages_refs[t.uuid]=e,"data-content-idx":t.content_idx,"data-page-idx":e,style:(0,n.normalizeStyle)(p.page_style(e,!t.template)),contenteditable:!(!r.editable||t.template)},[t.template?((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(t.template),{key:0,modelValue:t.props,"onUpdate:modelValue":e=>t.props=e},null,8,["modelValue","onUpdate:modelValue"])):(0,n.createCommentVNode)("",!0)],12,u)))),128))],44,c)],512)}r(1703);function p(t,e){if(!t||!e)return!1;const n=t.childNodes;for(let r=0;r{const n=p(t,e.s_tag);n&&e.childNodes.length?r(n,e.firstChild):(t.append(e),t.normalize())};r(t,n)}}var h={props:{content:{type:Array,required:!0},display:{type:String,default:"grid"},editable:{type:Boolean,default:!0},overlay:Function,page_format_mm:{type:Array,default:()=>[210,297]},page_margins:{type:String,default:"10mm 15mm"},zoom:{type:Number,default:1}},data(){return{pages:[],pages_refs:{},pages_overlay_refs:{},pages_height:0,editor_width:0,prevent_next_content_update_from_parent:!1,current_text_style:!1}},mounted(){this.update_editor_width(),this.update_css_media_style(),this.reset_content(),window.addEventListener("resize",this.update_editor_width),window.addEventListener("click",this.process_current_text_style),window.addEventListener("beforeprint",this.before_print),window.addEventListener("afterprint",this.after_print)},beforeUpdate(){this.pages_refs=[],this.pages_overlay_refs=[]},beforeUnmount(){window.removeEventListener("resize",this.update_editor_width),window.removeEventListener("click",this.process_current_text_style),window.removeEventListener("beforeprint",this.before_print),window.removeEventListener("afterprint",this.after_print)},computed:{css_media_style(){const t=document.createElement("style");return document.head.appendChild(t),t}},methods:{new_uuid:()=>Math.random().toString(36).slice(-5),async reset_content(){if(this.reset_in_progress)return;if(this.reset_in_progress=!0,!this.content.length)return this.reset_in_progress=!1,void this.$emit("update:content",[""]);this.pages=this.content.map(((t,e)=>({uuid:this.new_uuid(),content_idx:e,template:t.template,props:t.props}))),await this.$nextTick();const t=this.pages_refs[this.pages[0].uuid];this.$refs.content.contains(t)||this.$refs.content.appendChild(t),this.pages_height=t.clientHeight+1;for(const e of this.pages){const t=this.pages_refs[e.uuid];this.content[e.content_idx]?"string"==typeof this.content[e.content_idx]&&(t.innerHTML="
"+this.content[e.content_idx]+"
"):t.innerHTML="

",this.$refs.content.contains(t)||this.$refs.content.appendChild(t)}await this.fit_content_over_pages(),this.$refs.content.blur(),this.reset_in_progress=!1},async fit_content_over_pages(){if(!this.pages_height)return;if(this.fit_in_progress)return;this.fit_in_progress=!0;for(let o=this.pages.length-1;o>=0;o--){const t=this.pages[o],e=this.pages_refs[t.uuid];e&&document.body.contains(e)||this.pages.splice(o,1)}if(!this.pages.length)return void this.reset_content();const t=window.getSelection(),e=document.createElement("null"),n=document.createElement("null");if(t.rangeCount){const r=t.getRangeAt(0);r.insertNode(e),r.collapse(!1),r.insertNode(n)}let r=!1;for(let o=0;o!i.childNodes.length||e.clientHeight>this.pages_height)),i.childNodes.length||this.pages.splice(o+1,1)),e.clientHeight>this.pages_height&&(n&&n.content_idx==t.content_idx||(n={uuid:this.new_uuid(),content_idx:t.content_idx},this.pages.splice(o+1,0,n),await this.$nextTick(),i=this.pages_refs[n.uuid]),l(e,i,(()=>e.clientHeight<=this.pages_height)))),this.fit_in_progress=!1}if(document.body.contains(e)){const r=document.createRange();r.setStart(e,0),document.body.contains(n)&&r.setEnd(n,0),t.removeAllRanges(),t.addRange(r)}e.parentElement&&e.parentElement.removeChild(e),n.parentElement&&n.parentElement.removeChild(n);for(const o of this.pages){const t=this.pages_refs[o.uuid];o.template||t.normalize(),o.prev_innerHTML=t.innerHTML}},async input(t){t&&(await this.fit_content_over_pages(),this.emit_new_content(),"insertText"!=t.inputType&&this.process_current_text_style())},keydown(t){if(8==t.keyCode&&this.content.length<=1){const e=!(!this.content[0]||"string"!=typeof this.content[0])&&this.content[0].replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi,"");e||t.preventDefault()}},emit_new_content(){let t=!1;const e=this.content.map(((e,n)=>{const r=this.pages.filter((t=>t.content_idx==n));return r.length?"string"==typeof e?r.map((t=>{let e=this.pages_refs[t.uuid];while(1==e.children.length&&e.firstChild.tagName&&"div"==e.firstChild.tagName.toLowerCase()&&!e.firstChild.getAttribute("style"))e=e.firstChild;return e.innerHTML})).join("")||!1:{template:e.template,props:{...e.props}}:(t=!0,!1)})).filter((t=>0!=t));t||(this.prevent_next_content_update_from_parent=!0),this.$emit("update:content",e)},process_current_text_style(){let t=!1;const e=window.getSelection();if(e.focusNode){const n=e.focusNode.tagName?e.focusNode:e.focusNode.parentElement;if(n&&n.isContentEditable){t=window.getComputedStyle(n),t.textDecorationStack=[],t.headerLevel=0,t.isList=!1;let e=n;while(e){const n=window.getComputedStyle(e);if(t.textDecorationStack.push(n.textDecoration),"list-item"==n.display&&(t.isList=!0),!t.headerLevel)for(let r=1;r<=6;r++)if(e.tagName.toUpperCase()=="H"+r){t.headerLevel=r;break}e=e.parentElement}}}this.current_text_style=t},page_style(t,e){const n=.2645833333333,r=this.page_format_mm[0]/n,o=10,i=(o+this.page_format_mm[0])*this.zoom/n,s=20,a=this.editor_width-2*s;let c,u,f,p,l,d,h,g=1;if("horizontal"==this.display)a>this.pages.length*i?(g=Math.floor(a/i),p=a/(2*g)*(1+2*t)-r/2):(g=this.pages.length,p=i*t+r/2*(this.zoom-1)),l=0,d=this.zoom*(this.page_format_mm[0]*g+(g-1)*o),h=this.page_format_mm[1]*this.zoom;else{g=Math.floor(a/i),(g<1||"vertical"==this.display)&&(g=1),c=t%g,u=a/(2*g)*(1+2*c)-r/2,f=Math.max(0,(r*this.zoom-a)/2),p=u+f,l=(this.page_format_mm[1]+o)*this.zoom*Math.floor(t/g);const e=Math.ceil(this.pages.length/g);d=this.zoom*(this.page_format_mm[0]*g+(g-1)*o),h=this.zoom*(this.page_format_mm[1]*e+(e-1)*o)}if(t>=0){const t={position:"absolute",left:"calc("+p+"px + "+s+"px)",top:"calc("+l+"mm + "+s+"px)",width:this.page_format_mm[0]+"mm",padding:this.page_margins,transform:"scale("+this.zoom+")"};return t[e?"minHeight":"height"]=this.page_format_mm[1]+"mm",t}return{width:"calc("+d+"mm + "+2*s+"px)",height:"calc("+h+"mm + "+2*s+"px)"}},update_editor_width(){this.$refs.editor.classList.add("hide_children"),this.editor_width=this.$refs.editor.clientWidth,this.$refs.editor.classList.remove("hide_children")},update_css_media_style(){this.css_media_style.innerHTML="@media print { @page { size: "+this.page_format_mm[0]+"mm "+this.page_format_mm[1]+"mm; margin: 0 !important; } .hidden-print { display: none !important; } }"},before_print(){this._page_body=document.body;const t=document.createElement("body");t.style.margin="0",t.style.padding="0",t.style.background="white",t.style.font=window.getComputedStyle(this.$refs.editor).font,t.className=this.$refs.editor.className;for(const[n,r]of this.pages.entries()){const e=this.pages_refs[r.uuid],o=e.cloneNode(!0);o.style="",o.style.position="relative",o.style.padding=this.page_margins,o.style.breakBefore=n?"page":"auto";const i=this.pages_overlay_refs[r.uuid];if(i){const t=i.cloneNode(!0);t.style.position="absolute",t.style.left="0",t.style.top="0",t.style.transform="none",t.style.padding="0",t.style.overflow="hidden",o.prepend(t)}t.append(o)}const e=document.createElement("div");e.className="hidden-print",e.style.position="fixed",e.style.left="0",e.style.top="0",e.style.right="0",e.style.bottom="0",e.style.display="flex",e.style.alignItems="center",e.style.justifyContent="center",e.style.background="rgba(255, 255, 255, 0.95)",e.style.cursor="pointer",e.innerHTML='',e.addEventListener("click",this.after_print),t.append(e),document.body=t},after_print(){document.body=this._page_body,this.update_editor_width()}},watch:{page_format_mm:{async handler(){this.update_css_media_style(),await this.reset_content()}},page_margins:{async handler(){await this.reset_content()}},content:{async handler(){this.prevent_next_content_update_from_parent?this.prevent_next_content_update_from_parent=!1:await this.reset_content()},deep:!0}}},g=r(3744);const m=(0,g.Z)(h,[["render",f],["__scopeId","data-v-587217e4"]]);var y=m,v=y}(),o=o["default"],o}()})); +(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["VueDocumentEditor"]=e(require("vue")):t["VueDocumentEditor"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(){var e={9662:function(t,e,n){var r=n(614),o=n(6330),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a function")}},9670:function(t,e,n){var r=n(111),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not an object")}},1318:function(t,e,n){var r=n(5656),o=n(1400),i=n(6244),s=function(t){return function(e,n,s){var a,c=r(e),u=i(c),l=o(s,u);if(t&&n!=n){while(u>l)if(a=c[l++],a!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},3658:function(t,e,n){"use strict";var r=n(9781),o=n(3157),i=TypeError,s=Object.getOwnPropertyDescriptor,a=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(o(t)&&!s(t,"length").writable)throw i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},4326:function(t,e,n){var r=n(84),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},9920:function(t,e,n){var r=n(2597),o=n(3887),i=n(1236),s=n(3070);t.exports=function(t,e,n){for(var a=o(e),c=s.f,u=i.f,l=0;ln)throw e("Maximum allowed index exceeded");return t}},8113:function(t,e,n){var r=n(5005);t.exports=r("navigator","userAgent")||""},7392:function(t,e,n){var r,o,i=n(7854),s=n(8113),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(r=l.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&s&&(r=s.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),t.exports=o},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){var r=n(7854),o=n(1236).f,i=n(8880),s=n(8052),a=n(3072),c=n(9920),u=n(4705);t.exports=function(t,e){var n,l,p,f,d,h,g=t.target,m=t.global,y=t.stat;if(l=m?r:y?r[g]||a(g,{}):(r[g]||{}).prototype,l)for(p in e){if(d=e[p],t.dontCallGetSet?(h=o(l,p),f=h&&h.value):f=l[p],n=u(m?p:g+(y?".":"#")+p,t.forced),!n&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(t.sham||f&&f.sham)&&i(d,"sham",!0),s(l,p,d,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},4374:function(t,e,n){var r=n(7293);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,n){var r=n(4374),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(t,e,n){var r=n(9781),o=n(2597),i=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},84:function(t,e,n){var r=n(4374),o=Function.prototype,i=o.call,s=r&&o.bind.bind(i,i);t.exports=r?s:function(t){return function(){return i.apply(t,arguments)}}},1702:function(t,e,n){var r=n(4326),o=n(84);t.exports=function(t){if("Function"===r(t))return o(t)}},5005:function(t,e,n){var r=n(7854),o=n(614),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},8173:function(t,e,n){var r=n(9662),o=n(8554);t.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)}},7854:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(t,e,n){var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},3501:function(t){t.exports={}},4664:function(t,e,n){var r=n(9781),o=n(7293),i=n(317);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var r=n(1702),o=n(7293),i=n(4326),s=Object,a=r("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?a(t,""):s(t)}:s},2788:function(t,e,n){var r=n(1702),o=n(614),i=n(5465),s=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return s(t)}),t.exports=i.inspectSource},9909:function(t,e,n){var r,o,i,s=n(4811),a=n(7854),c=n(111),u=n(8880),l=n(2597),p=n(5465),f=n(6200),d=n(3501),h="Object already initialized",g=a.TypeError,m=a.WeakMap,y=function(t){return i(t)?o(t):r(t,{})},_=function(t){return function(e){var n;if(!c(e)||(n=o(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return n}};if(s||p.state){var v=p.state||(p.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,r=function(t,e){if(v.has(t))throw g(h);return e.facade=t,v.set(t,e),e},o=function(t){return v.get(t)||{}},i=function(t){return v.has(t)}}else{var b=f("state");d[b]=!0,r=function(t,e){if(l(t,b))throw g(h);return e.facade=t,u(t,b,e),e},o=function(t){return l(t,b)?t[b]:{}},i=function(t){return l(t,b)}}t.exports={set:r,get:o,has:i,enforce:y,getterFor:_}},3157:function(t,e,n){var r=n(4326);t.exports=Array.isArray||function(t){return"Array"==r(t)}},614:function(t,e,n){var r=n(4154),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},4705:function(t,e,n){var r=n(7293),o=n(614),i=/#|\.prototype\./,s=function(t,e){var n=c[a(t)];return n==l||n!=u&&(o(e)?r(e):!!e)},a=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},8554:function(t){t.exports=function(t){return null===t||void 0===t}},111:function(t,e,n){var r=n(614),o=n(4154),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===i}:function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){t.exports=!1},2190:function(t,e,n){var r=n(5005),o=n(614),i=n(7976),s=n(3307),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,a(t))}},6244:function(t,e,n){var r=n(7466);t.exports=function(t){return r(t.length)}},6339:function(t,e,n){var r=n(7293),o=n(614),i=n(2597),s=n(9781),a=n(6530).CONFIGURABLE,c=n(2788),u=n(9909),l=u.enforce,p=u.get,f=Object.defineProperty,d=s&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),h=String(String).split("String"),g=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!i(t,"name")||a&&t.name!==e)&&(s?f(t,"name",{value:e,configurable:!0}):t.name=e),d&&n&&i(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?s&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var r=l(t);return i(r,"source")||(r.source=h.join("string"==typeof e?e:"")),t};Function.prototype.toString=g((function(){return o(this)&&p(this).source||c(this)}),"toString")},4758:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},3070:function(t,e,n){var r=n(9781),o=n(4664),i=n(3353),s=n(9670),a=n(4948),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",f="configurable",d="writable";e.f=r?i?function(t,e,n){if(s(t),e=a(e),s(n),"function"===typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=l(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:p in n?n[p]:r[p],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(s(t),e=a(e),s(n),o)try{return u(t,e,n)}catch(r){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var r=n(9781),o=n(6916),i=n(5296),s=n(9114),a=n(5656),c=n(4948),u=n(2597),l=n(4664),p=Object.getOwnPropertyDescriptor;e.f=r?p:function(t,e){if(t=a(t),e=c(e),l)try{return p(t,e)}catch(n){}if(u(t,e))return s(!o(i.f,t,e),t[e])}},8006:function(t,e,n){var r=n(6324),o=n(748),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},7976:function(t,e,n){var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:function(t,e,n){var r=n(1702),o=n(2597),i=n(5656),s=n(1318).indexOf,a=n(3501),c=r([].push);t.exports=function(t,e){var n,r=i(t),u=0,l=[];for(n in r)!o(a,n)&&o(r,n)&&c(l,n);while(e.length>u)o(r,n=e[u++])&&(~s(l,n)||c(l,n));return l}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},2140:function(t,e,n){var r=n(6916),o=n(614),i=n(111),s=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&o(n=t.toString)&&!i(a=r(n,t)))return a;if(o(n=t.valueOf)&&!i(a=r(n,t)))return a;if("string"!==e&&o(n=t.toString)&&!i(a=r(n,t)))return a;throw s("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),o=n(1702),i=n(8006),s=n(5181),a=n(9670),c=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=s.f;return n?c(e,n(t)):e}},4488:function(t,e,n){var r=n(8554),o=TypeError;t.exports=function(t){if(r(t))throw o("Can't call method on "+t);return t}},6200:function(t,e,n){var r=n(2309),o=n(9711),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,e,n){var r=n(7854),o=n(3072),i="__core-js_shared__",s=r[i]||o(i,{});t.exports=s},2309:function(t,e,n){var r=n(1913),o=n(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.0",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(t,e,n){var r=n(7392),o=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1400:function(t,e,n){var r=n(9303),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},5656:function(t,e,n){var r=n(8361),o=n(4488);t.exports=function(t){return r(o(t))}},9303:function(t,e,n){var r=n(4758);t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},7466:function(t,e,n){var r=n(9303),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},7908:function(t,e,n){var r=n(4488),o=Object;t.exports=function(t){return o(r(t))}},7593:function(t,e,n){var r=n(6916),o=n(111),i=n(2190),s=n(8173),a=n(2140),c=n(5112),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,c=s(t,l);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!o(n)||i(n))return n;throw u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},4948:function(t,e,n){var r=n(7593),o=n(2190);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},6330:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},9711:function(t,e,n){var r=n(1702),o=0,i=Math.random(),s=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++o+i,36)}},3307:function(t,e,n){var r=n(6293);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){var r=n(9781),o=n(7293);t.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(t,e,n){var r=n(7854),o=n(614),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},5112:function(t,e,n){var r=n(7854),o=n(2309),i=n(2597),s=n(9711),a=n(6293),c=n(3307),u=o("wks"),l=r.Symbol,p=l&&l["for"],f=c?l:l&&l.withoutSetter||s;t.exports=function(t){if(!i(u,t)||!a&&"string"!=typeof u[t]){var e="Symbol."+t;a&&i(l,t)?u[t]=l[t]:u[t]=c&&p?p(e):f(e)}return u[t]}},7658:function(t,e,n){"use strict";var r=n(2109),o=n(7908),i=n(6244),s=n(3658),a=n(7207),c=n(7293),u=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:u||l},{push:function(t){var e=o(this),n=i(e),r=arguments.length;a(n+r);for(var c=0;c{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n}},7203:function(e){"use strict";e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}!function(){r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){r.p=""}();var o={};return function(){"use strict";if(r.d(o,{default:function(){return y}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(r.p=e[1])}var n=r(7203);const i={class:"editor",ref:"editor"},s={key:0,class:"overlays",ref:"overlays"},a=["innerHTML"],c=["contenteditable"];function u(t,e,r,o,u,l){return(0,n.openBlock)(),(0,n.createElementBlock)("div",i,[r.overlay?((0,n.openBlock)(),(0,n.createElementBlock)("div",s,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(u.pages,((t,e)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:"overlay",key:t.uuid+"-overlay",ref_for:!0,ref:e=>u.pages_overlay_refs[t.uuid]=e,innerHTML:r.overlay(e+1,u.pages.length),style:(0,n.normalizeStyle)(l.page_style(e,!1))},null,12,a)))),128))],512)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",{class:"content",ref:"content",contenteditable:r.editable,style:(0,n.normalizeStyle)(l.page_style(-1)),onInput:e[0]||(e[0]=(...t)=>l.input&&l.input(...t)),onKeyup:e[1]||(e[1]=(...t)=>l.process_current_text_style&&l.process_current_text_style(...t)),onKeydown:e[2]||(e[2]=(...t)=>l.keydown&&l.keydown(...t))},null,44,c)],512)}r(7658);function l(t,e){if(!t||!e)return!1;const n=t.childNodes;for(let r=0;r{const n=l(t,e.s_tag);n&&e.childNodes.length?r(n,e.firstChild):(t.append(e),t.normalize())};r(t,n)}}var d={props:{content:{type:Array,required:!0},display:{type:String,default:"grid"},editable:{type:Boolean,default:!0},overlay:Function,page_format_mm:{type:Array,default:()=>[210,297]},page_margins:{type:String,default:"10mm 15mm"},zoom:{type:Number,default:1}},data(){return{pages:[],pages_overlay_refs:{},pages_height:0,editor_width:0,prevent_next_content_update_from_parent:!1,current_text_style:!1,printing_mode:!1}},mounted(){this.update_editor_width(),this.update_css_media_style(),this.reset_content(),window.addEventListener("resize",this.update_editor_width),window.addEventListener("click",this.process_current_text_style),window.addEventListener("beforeprint",this.before_print),window.addEventListener("afterprint",this.after_print)},beforeUpdate(){this.pages_overlay_refs=[]},beforeUnmount(){window.removeEventListener("resize",this.update_editor_width),window.removeEventListener("click",this.process_current_text_style),window.removeEventListener("beforeprint",this.before_print),window.removeEventListener("afterprint",this.after_print)},computed:{css_media_style(){const t=document.createElement("style");return document.head.appendChild(t),t}},methods:{new_uuid:()=>Math.random().toString(36).slice(-5),reset_content(){if(this.reset_in_progress)return;if(this.reset_in_progress=!0,!this.content.length)return this.reset_in_progress=!1,void this.$emit("update:content",[""]);this.pages=this.content.map(((t,e)=>({uuid:this.new_uuid(),content_idx:e,template:t.template,props:t.props}))),this.update_pages_elts();const t=this.pages[0].elt;this.$refs.content.contains(t)||this.$refs.content.appendChild(t),this.pages_height=t.clientHeight+1;for(const e of this.pages){if(this.content[e.content_idx]){if("string"==typeof this.content[e.content_idx])e.elt.innerHTML="
"+this.content[e.content_idx]+"
";else if(e.template){const t=(0,n.defineCustomElement)(e.template);customElements.define("component-"+e.uuid,t),e.elt.appendChild(new t({modelValue:e.props}))}}else e.elt.innerHTML="

";this.$refs.content.contains(e.elt)||this.$refs.content.appendChild(e.elt)}this.fit_content_over_pages(),this.$refs.content.blur(),this.reset_in_progress=!1},fit_content_over_pages(){if(!this.pages_height)return;if(this.fit_in_progress)return;this.fit_in_progress=!0;for(let o=this.pages.length-1;o>=0;o--){const t=this.pages[o];t.elt&&document.body.contains(t.elt)||this.pages.splice(o,1)}if(!this.pages.length)return void this.$emit("update:content",[""]);const t=window.getSelection(),e=document.createElement("null"),n=document.createElement("null");if(t.rangeCount){const r=t.getRangeAt(0);r.insertNode(e),r.collapse(!1),r.insertNode(n)}let r=!1;for(let o=0;o!n.childNodes.length||t.elt.clientHeight>this.pages_height)),t.elt.clientHeight>this.pages_height&&(e&&e.content_idx==t.content_idx||(e={uuid:this.new_uuid(),content_idx:t.content_idx},this.pages.splice(o+1,0,e),this.update_pages_elts(),n=e.elt),p(t.elt,n,(()=>t.elt.clientHeight<=this.pages_height))),n&&e.content_idx==t.content_idx&&!n.childNodes.length&&this.pages.splice(o+1,1)),this.update_pages_elts()}if(document.body.contains(e)){const r=document.createRange();r.setStart(e,0),document.body.contains(n)&&r.setEnd(n,0),t.removeAllRanges(),t.addRange(r)}e.parentElement&&e.parentElement.removeChild(e),n.parentElement&&n.parentElement.removeChild(n);for(const o of this.pages)o.template||o.elt.normalize(),o.prev_innerHTML=o.elt.innerHTML;this.fit_in_progress=!1},input(t){t&&(this.fit_content_over_pages(),this.emit_new_content(),"insertText"!=t.inputType&&this.process_current_text_style())},keydown(t){if(8==t.keyCode&&this.content.length<=1){const e=!(!this.content[0]||"string"!=typeof this.content[0])&&this.content[0].replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi,"");e||t.preventDefault()}},emit_new_content(){let t=!1;const e=this.content.map(((e,n)=>{const r=this.pages.filter((t=>t.content_idx==n));return r.length?"string"==typeof e?r.map((t=>{let e=t.elt;while(1==e.children.length&&e.firstChild.tagName&&"div"==e.firstChild.tagName.toLowerCase()&&!e.firstChild.getAttribute("style"))e=e.firstChild;return e.innerHTML})).join("")||!1:{template:e.template,props:{...e.props}}:(t=!0,!1)})).filter((t=>0!=t));t||(this.prevent_next_content_update_from_parent=!0),this.$emit("update:content",e)},process_current_text_style(){let t=!1;const e=window.getSelection();if(e.focusNode){const n=e.focusNode.tagName?e.focusNode:e.focusNode.parentElement;if(n&&n.isContentEditable){t=window.getComputedStyle(n),t.textDecorationStack=[],t.headerLevel=0,t.isList=!1;let e=n;while(e){const n=window.getComputedStyle(e);if(t.textDecorationStack.push(n.textDecoration),"list-item"==n.display&&(t.isList=!0),!t.headerLevel)for(let r=1;r<=6;r++)if(e.tagName.toUpperCase()=="H"+r){t.headerLevel=r;break}e=e.parentElement}}}this.current_text_style=t},page_style(t,e){const n=.2645833333333,r=this.page_format_mm[0]/n,o=10,i=(o+this.page_format_mm[0])*this.zoom/n,s=20,a=this.editor_width-2*s;let c,u,l,p,f,d,h,g=1;if("horizontal"==this.display)a>this.pages.length*i?(g=Math.floor(a/i),p=a/(2*g)*(1+2*t)-r/2):(g=this.pages.length,p=i*t+r/2*(this.zoom-1)),f=0,d=this.zoom*(this.page_format_mm[0]*g+(g-1)*o),h=this.page_format_mm[1]*this.zoom;else{g=Math.floor(a/i),(g<1||"vertical"==this.display)&&(g=1),c=t%g,u=a/(2*g)*(1+2*c)-r/2,l=Math.max(0,(r*this.zoom-a)/2),p=u+l,f=(this.page_format_mm[1]+o)*this.zoom*Math.floor(t/g);const e=Math.ceil(this.pages.length/g);d=this.zoom*(this.page_format_mm[0]*g+(g-1)*o),h=this.zoom*(this.page_format_mm[1]*e+(e-1)*o)}if(t>=0){const t={position:"absolute",left:"calc("+p+"px + "+s+"px)",top:"calc("+f+"mm + "+s+"px)",width:this.page_format_mm[0]+"mm",padding:this.page_margins,transform:"scale("+this.zoom+")"};return t[e?"minHeight":"height"]=this.page_format_mm[1]+"mm",t}return{width:"calc("+d+"mm + "+2*s+"px)",height:"calc("+h+"mm + "+2*s+"px)"}},css_to_string:t=>Object.entries(t).map((([t,e])=>t.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()))+":"+e)).join(";"),update_pages_elts(){for(const t of this.$refs.content.children)this.pages.find((e=>e.elt==t))||t.remove();for(const[t,e]of this.pages.entries()){if(!e.elt){e.elt=document.createElement("div"),e.elt.className="page";const n=this.pages[t+1];this.$refs.content.insertBefore(e.elt,n?n.elt:null)}e.elt.dataset.contentIdx=e.content_idx,this.printing_mode||(e.elt.style=Object.entries(this.page_style(t,!e.template)).map((([t,e])=>t.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()))+":"+e)).join(";")),e.elt.contentEditable=!(!this.editable||e.template)}},update_editor_width(){this.$refs.editor.classList.add("hide_children"),this.editor_width=this.$refs.editor.clientWidth,this.update_pages_elts(),this.$refs.editor.classList.remove("hide_children")},update_css_media_style(){this.css_media_style.innerHTML="@media print { @page { size: "+this.page_format_mm[0]+"mm "+this.page_format_mm[1]+"mm; margin: 0 !important; } .hidden-print { display: none !important; } }"},before_print(){this.printing_mode=!0,this._page_body=document.body;const t=document.createElement("body");t.style.margin="0",t.style.padding="0",t.style.background="white",t.style.font=window.getComputedStyle(this.$refs.editor).font,t.className=this.$refs.editor.className;for(const[n,r]of this.pages.entries()){r.elt.style="",r.elt.style.position="relative",r.elt.style.padding=this.page_margins,r.elt.style.breakBefore=n?"page":"auto";const e=this.pages_overlay_refs[r.uuid];e&&(e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.transform="none",e.style.padding="0",e.style.overflow="hidden",r.elt.prepend(e)),t.append(r.elt)}const e=document.createElement("div");e.className="hidden-print",e.style.position="fixed",e.style.left="0",e.style.top="0",e.style.right="0",e.style.bottom="0",e.style.display="flex",e.style.alignItems="center",e.style.justifyContent="center",e.style.background="rgba(255, 255, 255, 0.95)",e.style.cursor="pointer",e.innerHTML='',e.addEventListener("click",this.after_print),t.append(e),document.body=t},after_print(){this.printing_mode=!1;for(const[t,e]of this.pages.entries()){e.elt.style=this.css_to_string(this.page_style(t,!e.template)),this.$refs.content.append(e.elt);const n=this.pages_overlay_refs[e.uuid];n&&(n.style=this.css_to_string(this.page_style(t,!1)),this.$refs.overlays.append(n))}document.body=this._page_body}},watch:{page_format_mm:{handler(){this.update_css_media_style(),this.reset_content()}},page_margins:{handler(){this.reset_content()}},content:{handler(){this.prevent_next_content_update_from_parent?this.prevent_next_content_update_from_parent=!1:this.reset_content()},deep:!0}}},h=r(3744);const g=(0,h.Z)(d,[["render",u],["__scopeId","data-v-68da239e"]]);var m=g,y=m}(),o=o["default"],o}()})); //# sourceMappingURL=VueDocumentEditor.umd.min.js.map \ No newline at end of file diff --git a/dist/VueDocumentEditor.umd.min.js.map b/dist/VueDocumentEditor.umd.min.js.map index 3c3bf43..0ea5b1f 100644 --- a/dist/VueDocumentEditor.umd.min.js.map +++ b/dist/VueDocumentEditor.umd.min.js.map @@ -1 +1 @@ -{"version":3,"file":"VueDocumentEditor.umd.min.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,kBAAZC,SAA0C,kBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,QACR,oBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIJ,GACe,kBAAZC,QACdA,QAAQ,qBAAuBD,EAAQG,QAAQ,QAE/CJ,EAAK,qBAAuBC,EAAQD,EAAK,OAC1C,EATD,CASoB,qBAATO,KAAuBA,KAAOC,MAAO,SAASC,GACzD,O,uCCVA,IAAIC,EAAa,EAAQ,KACrBC,EAAc,EAAQ,MAEtBC,EAAaC,UAGjBV,EAAOD,QAAU,SAAUY,GACzB,GAAIJ,EAAWI,GAAW,OAAOA,EACjC,MAAMF,EAAWD,EAAYG,GAAY,qBAC3C,C,u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AAWlJ,QAAQqJ,EACrB,CAEAT,EAAW3H,OAAOiI,EACpB,CAGA,MAAMK,EAAiBja,SAASE,cAAc,OAC9C+Z,EAAeP,UAAY,eAC3BO,EAAetL,MAAM8J,SAAW,QAChCwB,EAAetL,MAAM+J,KAAO,IAC5BuB,EAAetL,MAAMgK,IAAM,IAC3BsB,EAAetL,MAAMuL,MAAQ,IAC7BD,EAAetL,MAAMwL,OAAS,IAC9BF,EAAetL,MAAMmD,QAAU,OAC/BmI,EAAetL,MAAMyL,WAAa,SAClCH,EAAetL,MAAM0L,eAAiB,SACtCJ,EAAetL,MAAM6K,WAAa,4BAClCS,EAAetL,MAAM2L,OAAS,UAC9BL,EAAevL,UAAY,wVAC3BuL,EAAe/G,iBAAiB,QAASvY,KAAK0Y,aAC9CiG,EAAW3H,OAAOsI,GAGlBja,SAAS2U,KAAO2E,CACjB,EAGDjG,cACErT,SAAS2U,KAAOha,KAAK0e,WACrB1e,KAAKoY,qBACP,GAIFwH,MAAO,CACLpI,eAAgB,CACd4B,gBACEpZ,KAAKqY,+BACCrY,KAAKsY,eACb,GAEFb,aAAc,CACZ2B,sBACQpZ,KAAKsY,eACb,GAEFrB,QAAS,CACPmC,gBAEKpZ,KAAKiY,wCACNjY,KAAKiY,yCAA0C,QACpCjY,KAAKsY,eACnB,EACDuH,MAAM,K,UEnfZ,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,QCRA,G","sources":["webpack://VueDocumentEditor/webpack/universalModuleDefinition","webpack://VueDocumentEditor/./node_modules/core-js/internals/a-callable.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/a-possible-prototype.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/an-object.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/array-includes.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/classof-raw.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/classof.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/clear-error-stack.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/copy-constructor-properties.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/create-non-enumerable-property.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/create-property-descriptor.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/define-built-in.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/define-global-property.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/descriptors.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/document-create-element.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/engine-user-agent.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/engine-v8-version.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/enum-bug-keys.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/error-stack-installable.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/export.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/fails.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/function-apply.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/function-bind-native.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/function-call.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/function-name.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/function-uncurry-this.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/get-built-in.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/get-method.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/global.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/has-own-property.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/hidden-keys.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/ie8-dom-define.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/indexed-object.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/inherit-if-required.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/inspect-source.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/install-error-cause.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/internal-state.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/is-callable.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/is-forced.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/is-object.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/is-pure.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/is-symbol.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/length-of-array-like.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/make-built-in.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/math-trunc.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/native-symbol.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/native-weak-map.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/normalize-string-argument.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-define-property.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-get-own-property-descriptor.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-get-own-property-names.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-get-own-property-symbols.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-is-prototype-of.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-keys-internal.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-property-is-enumerable.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-set-prototype-of.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/ordinary-to-primitive.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/own-keys.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/proxy-accessor.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/require-object-coercible.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/shared-key.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/shared-store.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/shared.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-absolute-index.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-indexed-object.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-integer-or-infinity.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-length.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-object.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-primitive.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-property-key.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-string-tag-support.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-string.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/try-to-string.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/uid.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/use-symbol-as-uid.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/v8-prototype-define-bug.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/well-known-symbol.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/wrap-error-constructor-with-cause.js","webpack://VueDocumentEditor/./node_modules/core-js/modules/es.error.cause.js","webpack://VueDocumentEditor/./node_modules/vue-loader/dist/exportHelper.js","webpack://VueDocumentEditor/external umd {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://VueDocumentEditor/webpack/bootstrap","webpack://VueDocumentEditor/webpack/runtime/define property getters","webpack://VueDocumentEditor/webpack/runtime/global","webpack://VueDocumentEditor/webpack/runtime/hasOwnProperty shorthand","webpack://VueDocumentEditor/webpack/runtime/publicPath","webpack://VueDocumentEditor/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://VueDocumentEditor/./src/DocumentEditor/DocumentEditor.vue","webpack://VueDocumentEditor/./src/DocumentEditor/imports/page-transition-mgmt.js","webpack://VueDocumentEditor/./src/DocumentEditor/DocumentEditor.vue?a4df","webpack://VueDocumentEditor/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"vue\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VueDocumentEditor\"] = factory(require(\"vue\"));\n\telse\n\t\troot[\"VueDocumentEditor\"] = factory(root[\"Vue\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__7203__) {\nreturn ","var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a function');\n};\n","var isCallable = require('../internals/is-callable');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument) {\n if (typeof argument == 'object' || isCallable(argument)) return argument;\n throw $TypeError(\"Can't set \" + $String(argument) + ' as a prototype');\n};\n","var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw $TypeError($String(argument) + ' is not an object');\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar $Error = Error;\nvar replace = uncurryThis(''.replace);\n\nvar TEST = (function (arg) { return String($Error(arg).stack); })('zxcasd');\nvar V8_OR_CHAKRA_STACK_ENTRY = /\\n\\s*at [^:]*:[^\\n]*/;\nvar IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);\n\nmodule.exports = function (stack, dropEntries) {\n if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {\n while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');\n } return stack;\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es-x/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var fails = require('../internals/fails');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = !fails(function () {\n var error = Error('a');\n if (!('stack' in error)) return true;\n // eslint-disable-next-line es-x/no-object-defineproperty -- safe\n Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));\n return error.stack !== 7;\n});\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es-x/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es-x/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar bind = FunctionPrototype.bind;\nvar call = FunctionPrototype.call;\nvar uncurryThis = NATIVE_BIND && bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? function (fn) {\n return fn && uncurryThis(fn);\n} : function (fn) {\n return fn && function () {\n return call.apply(fn, arguments);\n };\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var aCallable = require('../internals/a-callable');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return func == null ? undefined : aCallable(func);\n};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es-x/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es-x/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","module.exports = {};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","var isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if (\n // it can work only with native `setPrototypeOf`\n setPrototypeOf &&\n // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n isCallable(NewTarget = dummy.constructor) &&\n NewTarget !== Wrapper &&\n isObject(NewTargetPrototype = NewTarget.prototype) &&\n NewTargetPrototype !== Wrapper.prototype\n ) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\n// `InstallErrorCause` abstract operation\n// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause\nmodule.exports = function (O, options) {\n if (isObject(options) && 'cause' in options) {\n createNonEnumerableProperty(O, 'cause', options.cause);\n }\n};\n","var NATIVE_WEAK_MAP = require('../internals/native-weak-map');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n var wmget = uncurryThis(store.get);\n var wmhas = uncurryThis(store.has);\n var wmset = uncurryThis(store.set);\n set = function (it, metadata) {\n if (wmhas(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n wmset(store, it, metadata);\n return metadata;\n };\n get = function (it) {\n return wmget(store, it) || {};\n };\n has = function (it) {\n return wmhas(store, it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = function (argument) {\n return typeof argument == 'function';\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var isCallable = require('../internals/is-callable');\n\nmodule.exports = function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","module.exports = false;\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\n// eslint-disable-next-line es-x/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (String(name).slice(0, 7) === 'Symbol(') {\n name = '[' + String(name).replace(/^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = TEMPLATE.join(typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es-x/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","/* eslint-disable es-x/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\nvar inspectSource = require('../internals/inspect-source');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(inspectSource(WeakMap));\n","var toString = require('../internals/to-string');\n\nmodule.exports = function (argument, $default) {\n return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es-x/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","/* eslint-disable no-proto -- safe */\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es-x/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe\n setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","var defineProperty = require('../internals/object-define-property').f;\n\nmodule.exports = function (Target, Source, key) {\n key in Target || defineProperty(Target, key, {\n configurable: true,\n get: function () { return Source[key]; },\n set: function (it) { Source[key] = it; }\n });\n};\n","var $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.24.1',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","/* eslint-disable es-x/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar symbolFor = Symbol && Symbol['for'];\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {\n var description = 'Symbol.' + name;\n if (NATIVE_SYMBOL && hasOwn(Symbol, name)) {\n WellKnownSymbolsStore[name] = Symbol[name];\n } else if (USE_SYMBOL_AS_UID && symbolFor) {\n WellKnownSymbolsStore[name] = symbolFor(description);\n } else {\n WellKnownSymbolsStore[name] = createWellKnownSymbol(description);\n }\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar hasOwn = require('../internals/has-own-property');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar proxyAccessor = require('../internals/proxy-accessor');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\nvar installErrorCause = require('../internals/install-error-cause');\nvar clearErrorStack = require('../internals/clear-error-stack');\nvar ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IS_PURE = require('../internals/is-pure');\n\nmodule.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {\n var STACK_TRACE_LIMIT = 'stackTraceLimit';\n var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;\n var path = FULL_NAME.split('.');\n var ERROR_NAME = path[path.length - 1];\n var OriginalError = getBuiltIn.apply(null, path);\n\n if (!OriginalError) return;\n\n var OriginalErrorPrototype = OriginalError.prototype;\n\n // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006\n if (!IS_PURE && hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;\n\n if (!FORCED) return OriginalError;\n\n var BaseError = getBuiltIn('Error');\n\n var WrappedError = wrapper(function (a, b) {\n var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);\n var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();\n if (message !== undefined) createNonEnumerableProperty(result, 'message', message);\n if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty(result, 'stack', clearErrorStack(result.stack, 2));\n if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);\n if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);\n return result;\n });\n\n WrappedError.prototype = OriginalErrorPrototype;\n\n if (ERROR_NAME !== 'Error') {\n if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);\n else copyConstructorProperties(WrappedError, BaseError, { name: true });\n } else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {\n proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);\n proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');\n }\n\n copyConstructorProperties(WrappedError, OriginalError);\n\n if (!IS_PURE) try {\n // Safari 13- bug: WebAssembly errors does not have a proper `.name`\n if (OriginalErrorPrototype.name !== ERROR_NAME) {\n createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);\n }\n OriginalErrorPrototype.constructor = WrappedError;\n } catch (error) { /* empty */ }\n\n return WrappedError;\n};\n","/* eslint-disable no-unused-vars -- required for functions `.length` */\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar wrapErrorConstructorWithCause = require('../internals/wrap-error-constructor-with-cause');\n\nvar WEB_ASSEMBLY = 'WebAssembly';\nvar WebAssembly = global[WEB_ASSEMBLY];\n\nvar FORCED = Error('e', { cause: 7 }).cause !== 7;\n\nvar exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {\n var O = {};\n O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);\n $({ global: true, constructor: true, arity: 1, forced: FORCED }, O);\n};\n\nvar exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {\n if (WebAssembly && WebAssembly[ERROR_NAME]) {\n var O = {};\n O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);\n $({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);\n }\n};\n\n// https://github.com/tc39/proposal-error-cause\nexportGlobalErrorCauseWrapper('Error', function (init) {\n return function Error(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('EvalError', function (init) {\n return function EvalError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('RangeError', function (init) {\n return function RangeError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('ReferenceError', function (init) {\n return function ReferenceError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('SyntaxError', function (init) {\n return function SyntaxError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('TypeError', function (init) {\n return function TypeError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('URIError', function (init) {\n return function URIError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('CompileError', function (init) {\n return function CompileError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('LinkError', function (init) {\n return function LinkError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {\n return function RuntimeError(message) { return apply(init, this, arguments); };\n});\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// runtime helper for setting properties on components\n// in a tree-shakable way\nexports.default = (sfc, props) => {\n const target = sfc.__vccOpts || sfc;\n for (const [key, val] of props) {\n target[key] = val;\n }\n return target;\n};\n","module.exports = __WEBPACK_EXTERNAL_MODULE__7203__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","\n\n\n\n\n","\n/**\n * Utility function that acts like an Array.filter on childNodes of \"container\"\n * @param {HTMLElement} container \n * @param {string} s_tag \n */\nfunction find_sub_child_sibling_node (container, s_tag){\n if(!container || !s_tag) return false;\n const child_nodes = container.childNodes;\n for(let i = 0; i < child_nodes.length; i++) {\n if(child_nodes[i].s_tag == s_tag) return child_nodes[i];\n }\n return false;\n}\n\n\n/**\n * This function moves every sub-child of argument \"child\" to the start of the \"child_sibling\"\n * argument, beginning from the last child, with word splitting and format preserving.\n * Typically, \"child\" is the current page which content overflows, and \"child_sibling\" is the \n * next page.\n * @param {HTMLElement} child Element to take children from (current page)\n * @param {HTMLElement} child_sibling Element to copy children to (next page)\n * @param {Function} stop_condition Check function that returns a boolean if content doesn't overflow anymore\n * @param {Boolean} not_first_child Should be unset. Used internally to let at least one child in the page\n */\nfunction move_children_forward_recursively (child, child_sibling, stop_condition, not_first_child) {\n\n // if the child still has nodes and the current page still overflows\n while(child.childNodes.length && !stop_condition()){\n\n // check if page has only one child tree left\n not_first_child = not_first_child || (child.childNodes.length != 1);\n\n // select the last sub-child\n const sub_child = child.lastChild;\n\n // if it is a text node, move its content to next page word(/space) by word\n if(sub_child.nodeType == Node.TEXT_NODE){\n const sub_child_hashes = sub_child.textContent.match(/(\\s|\\S+)/g);\n const sub_child_continuation = document.createTextNode('');\n child_sibling.prepend(sub_child_continuation);\n const l = sub_child_hashes ? sub_child_hashes.length : 0;\n for(let i = 0; i < l; i++) {\n if(i == l - 1 && !not_first_child) return; // never remove the first word of the page\n sub_child.textContent = sub_child_hashes.slice(0, l - i - 1).join('');\n sub_child_continuation.textContent = sub_child_hashes.slice(l - i - 1, l).join('');\n if(stop_condition()) return;\n }\n }\n\n // if it is a node with no content (e.g. ), or a header title (e.g.

) we simply move it\n else if(!sub_child.childNodes.length || sub_child.tagName.match(/h\\d/i)) {\n // just prevent moving the last child of the page\n if(!not_first_child){\n console.log(\"Move-forward: first child reached with no stop condition. Aborting\");\n return;\n }\n child_sibling.prepend(sub_child);\n }\n\n // for every other node that is not text and not the first child, clone it recursively to next page\n else {\n // check if sub child has already been cloned before\n let sub_child_sibling = find_sub_child_sibling_node(child_sibling, sub_child.s_tag);\n \n // if not, create it and watermark the relationship with a random tag\n if(!sub_child_sibling) {\n if(!sub_child.s_tag) {\n const new_random_tag = Math.random().toString(36).slice(2, 8);\n sub_child.s_tag = new_random_tag;\n }\n sub_child_sibling = sub_child.cloneNode(false);\n sub_child_sibling.s_tag = sub_child.s_tag;\n child_sibling.prepend(sub_child_sibling);\n }\n \n // then move/clone its children and sub-children recursively\n move_children_forward_recursively(sub_child, sub_child_sibling, stop_condition, not_first_child);\n sub_child_sibling.normalize(); // merge consecutive text nodes\n }\n\n // if sub_child was a container that was cloned and is now empty, we clean it\n if(child.contains(sub_child)){\n if(sub_child.childNodes.length == 0 || sub_child.innerHTML == \"\") child.removeChild(sub_child);\n else if(!stop_condition()) {\n // the only case when it can be non empty should be when stop_condition is now true\n console.log(\"sub_child:\", sub_child, \"that is in child:\", child);\n throw Error(\"Document editor is trying to remove a non-empty sub-child. This \"\n + \"is a bug and should not happen. Please report a repeatable set of actions that \"\n + \"leaded to this error to https://github.com/motla/vue-document-editor/issues/new\");\n }\n }\n }\n}\n\n\n\n/**\n * This function moves the first element from \"next_page_html_div\" to the end of \"page_html_div\", with\n * merging sibling tags previously watermarked by \"move_children_forward_recursively\", if any.\n * @param {HTMLElement} page_html_div Current page element\n * @param {HTMLElement} next_page_html_div Next page element\n * @param {Function} stop_condition Check function that returns a boolean if content overflows\n */\nfunction move_children_backwards_with_merging (page_html_div, next_page_html_div, stop_condition) {\n\n // loop until content is overflowing\n while(!stop_condition()){\n\n // find first child of next page\n const first_child = next_page_html_div.firstChild;\n\n // merge it at the end of the current page\n var merge_recursively = (container, elt) => {\n // check if child had been splitted (= has a sibling on previous page)\n const elt_sibling = find_sub_child_sibling_node(container, elt.s_tag);\n if(elt_sibling && elt.childNodes.length) {\n // then dig for deeper children, in case of\n merge_recursively(elt_sibling, elt.firstChild);\n }\n // else move the child inside the right container at current page\n else {\n container.append(elt);\n container.normalize();\n }\n }\n merge_recursively(page_html_div, first_child);\n }\n}\n\nexport {\n move_children_forward_recursively,\n move_children_backwards_with_merging\n};","import { render } from \"./DocumentEditor.vue?vue&type=template&id=587217e4&scoped=true\"\nimport script from \"./DocumentEditor.vue?vue&type=script&lang=js\"\nexport * from \"./DocumentEditor.vue?vue&type=script&lang=js\"\n\nimport \"./DocumentEditor.vue?vue&type=style&index=0&id=587217e4&lang=css\"\nimport \"./DocumentEditor.vue?vue&type=style&index=1&id=587217e4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/Users/romain/Developer/vue-document-editor/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-587217e4\"]])\n\nexport default __exports__","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE__7203__","isCallable","tryToString","$TypeError","TypeError","argument","$String","String","isObject","toIndexedObject","toAbsoluteIndex","lengthOfArrayLike","createMethod","IS_INCLUDES","$this","el","fromIndex","value","O","length","index","includes","indexOf","uncurryThis","toString","stringSlice","slice","it","TO_STRING_TAG_SUPPORT","classofRaw","wellKnownSymbol","TO_STRING_TAG","$Object","Object","CORRECT_ARGUMENTS","arguments","tryGet","key","error","tag","result","undefined","callee","$Error","Error","replace","TEST","arg","stack","V8_OR_CHAKRA_STACK_ENTRY","IS_V8_OR_CHAKRA_STACK","test","dropEntries","prepareStackTrace","hasOwn","ownKeys","getOwnPropertyDescriptorModule","definePropertyModule","target","source","exceptions","keys","defineProperty","f","getOwnPropertyDescriptor","i","DESCRIPTORS","createPropertyDescriptor","object","bitmap","enumerable","configurable","writable","makeBuiltIn","defineGlobalProperty","options","simple","name","global","unsafe","nonConfigurable","nonWritable","fails","get","document","EXISTS","createElement","getBuiltIn","match","version","userAgent","process","Deno","versions","v8","split","createNonEnumerableProperty","defineBuiltIn","copyConstructorProperties","isForced","FORCED","targetProperty","sourceProperty","descriptor","TARGET","GLOBAL","STATIC","stat","prototype","dontCallGetSet","forced","sham","exec","NATIVE_BIND","FunctionPrototype","Function","apply","call","Reflect","bind","hasOwnProperty","getDescriptor","PROPER","CONFIGURABLE","fn","aFunction","namespace","method","aCallable","V","P","func","check","Math","globalThis","window","g","toObject","a","classof","propertyIsEnumerable","setPrototypeOf","dummy","Wrapper","NewTarget","NewTargetPrototype","constructor","store","functionToString","inspectSource","cause","set","has","NATIVE_WEAK_MAP","shared","sharedKey","hiddenKeys","OBJECT_ALREADY_INITIALIZED","WeakMap","enforce","getterFor","TYPE","state","type","wmget","wmhas","wmset","metadata","facade","STATE","replacement","feature","detection","data","normalize","POLYFILL","NATIVE","string","toLowerCase","isPrototypeOf","USE_SYMBOL_AS_UID","$Symbol","toLength","obj","CONFIGURABLE_FUNCTION_NAME","InternalStateModule","enforceInternalState","getInternalState","CONFIGURABLE_LENGTH","TEMPLATE","getter","setter","arity","join","ceil","floor","trunc","x","n","V8_VERSION","getOwnPropertySymbols","symbol","Symbol","$default","IE8_DOM_DEFINE","V8_PROTOTYPE_DEFINE_BUG","anObject","toPropertyKey","$defineProperty","$getOwnPropertyDescriptor","ENUMERABLE","WRITABLE","Attributes","current","propertyIsEnumerableModule","internalObjectKeys","enumBugKeys","concat","getOwnPropertyNames","push","names","$propertyIsEnumerable","NASHORN_BUG","aPossiblePrototype","CORRECT_SETTER","Array","proto","__proto__","input","pref","val","valueOf","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","Target","Source","uid","SHARED","IS_PURE","mode","copyright","license","toIntegerOrInfinity","max","min","integer","IndexedObject","requireObjectCoercible","number","isSymbol","getMethod","ordinaryToPrimitive","TO_PRIMITIVE","exoticToPrim","toPrimitive","id","postfix","random","NATIVE_SYMBOL","iterator","WellKnownSymbolsStore","symbolFor","createWellKnownSymbol","withoutSetter","description","proxyAccessor","inheritIfRequired","normalizeStringArgument","installErrorCause","clearErrorStack","ERROR_STACK_INSTALLABLE","FULL_NAME","wrapper","IS_AGGREGATE_ERROR","STACK_TRACE_LIMIT","OPTIONS_POSITION","path","ERROR_NAME","OriginalError","OriginalErrorPrototype","BaseError","WrappedError","b","message","$","wrapErrorConstructorWithCause","WEB_ASSEMBLY","WebAssembly","exportGlobalErrorCauseWrapper","exportWebAssemblyErrorCauseWrapper","init","sfc","props","__vccOpts","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","d","definition","o","e","prop","p","currentScript","src","class","ref","_createElementBlock","$props","_Fragment","_renderList","$data","page","page_idx","uuid","elt","innerHTML","style","$options","_createElementVNode","contenteditable","onInput","onKeyup","onKeydown","content_idx","template","_createBlock","_resolveDynamicComponent","$event","find_sub_child_sibling_node","container","s_tag","child_nodes","childNodes","move_children_forward_recursively","child","child_sibling","stop_condition","not_first_child","sub_child","lastChild","nodeType","Node","TEXT_NODE","sub_child_hashes","textContent","sub_child_continuation","createTextNode","prepend","l","tagName","console","log","sub_child_sibling","new_random_tag","cloneNode","contains","removeChild","move_children_backwards_with_merging","page_html_div","next_page_html_div","first_child","firstChild","merge_recursively","elt_sibling","append","content","required","display","default","editable","Boolean","overlay","page_format_mm","page_margins","zoom","Number","pages","pages_refs","pages_overlay_refs","pages_height","editor_width","prevent_next_content_update_from_parent","current_text_style","mounted","update_editor_width","update_css_media_style","reset_content","addEventListener","process_current_text_style","before_print","after_print","beforeUpdate","beforeUnmount","removeEventListener","computed","css_media_style","head","appendChild","methods","new_uuid","async","reset_in_progress","$emit","map","$nextTick","first_page_elt","$refs","clientHeight","page_elt","fit_content_over_pages","blur","fit_in_progress","body","splice","selection","getSelection","start_marker","end_marker","rangeCount","range","getRangeAt","insertNode","collapse","prev_page_modified_flag","next_page","next_page_elt","prev_innerHTML","createRange","setStart","setEnd","removeAllRanges","addRange","parentElement","emit_new_content","inputType","keydown","keyCode","is_text","preventDefault","removed_pages_flag","new_content","item","filter","children","getAttribute","sel","focusNode","element","isContentEditable","getComputedStyle","textDecorationStack","headerLevel","isList","parent","parent_style","textDecoration","toUpperCase","page_style","allow_overflow","px_in_mm","page_width","page_spacing_mm","page_with_plus_spacing","view_padding","inner_width","page_column","x_pos","x_ofx","left_px","top_mm","bkg_width_mm","bkg_height_mm","nb_pages_x","nb_pages_y","position","left","top","width","padding","transform","height","editor","classList","add","clientWidth","remove","_page_body","print_body","margin","background","font","className","entries","page_clone","breakBefore","overlay_elts","overlay_clone","overflow","return_overlay","right","bottom","alignItems","justifyContent","cursor","watch","deep","__exports__","render"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"VueDocumentEditor.umd.min.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,kBAAZC,SAA0C,kBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,QACR,oBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIJ,GACe,kBAAZC,QACdA,QAAQ,qBAAuBD,EAAQG,QAAQ,QAE/CJ,EAAK,qBAAuBC,EAAQD,EAAK,OAC1C,EATD,CASoB,qBAATO,KAAuBA,KAAOC,MAAO,SAASC,GACzD,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L,MAAQ,IAC7BD,EAAe7L,MAAM+L,OAAS,IAC9BF,EAAe7L,MAAM+C,QAAU,OAC/B8I,EAAe7L,MAAMgM,WAAa,SAClCH,EAAe7L,MAAMiM,eAAiB,SACtCJ,EAAe7L,MAAMwL,WAAa,4BAClCK,EAAe7L,MAAMkM,OAAS,UAC9BL,EAAe9L,UAAY,wVAC3B8L,EAAe1H,iBAAiB,QAAS7V,KAAKgW,aAC9CgH,EAAW1I,OAAOiJ,GAGlBrZ,SAASwT,KAAOsF,CAClB,EAGAhH,cAEEhW,KAAKwV,eAAgB,EAGrB,IAAI,MAAOlE,EAAUD,KAASrR,KAAKkV,MAAM8G,UAAU,CACjD3K,EAAKG,IAAIE,MAAQ1R,KAAK8b,cAAc9b,KAAKsa,WAAWhJ,GAAUD,EAAKyF,WACnE9W,KAAKiX,MAAM1C,QAAQD,OAAOjD,EAAKG,KAC/B,MAAM6L,EAAcrd,KAAKmV,mBAAmB9D,EAAKE,MAC9C8L,IACDA,EAAY3L,MAAQ1R,KAAK8b,cAAc9b,KAAKsa,WAAWhJ,GAAU,IACjEtR,KAAKiX,MAAM4G,SAASvJ,OAAO+I,GAE/B,CACAnZ,SAASwT,KAAO1X,KAAK+c,UACvB,GAIFe,MAAO,CACLhJ,eAAgB,CACdiJ,UACE/d,KAAK2V,yBACL3V,KAAK4V,eACP,GAEFb,aAAc,CACZgJ,UACE/d,KAAK4V,eACP,GAEFrB,QAAS,CACPwJ,UAEK/d,KAAKsV,wCACNtV,KAAKsV,yCAA0C,EAC1CtV,KAAK4V,eACd,EACAoI,MAAM,K,UE5hBZ,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,QCRA,G","sources":["webpack://VueDocumentEditor/webpack/universalModuleDefinition","webpack://VueDocumentEditor/./node_modules/core-js/internals/a-callable.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/an-object.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/array-includes.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/array-set-length.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/classof-raw.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/copy-constructor-properties.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/create-non-enumerable-property.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/create-property-descriptor.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/define-built-in.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/define-global-property.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/descriptors.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/document-all.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/document-create-element.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/does-not-exceed-safe-integer.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/engine-user-agent.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/engine-v8-version.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/enum-bug-keys.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/export.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/fails.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/function-bind-native.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/function-call.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/function-name.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/function-uncurry-this-raw.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/function-uncurry-this.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/get-built-in.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/get-method.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/global.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/has-own-property.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/hidden-keys.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/ie8-dom-define.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/indexed-object.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/inspect-source.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/internal-state.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/is-array.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/is-callable.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/is-forced.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/is-null-or-undefined.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/is-object.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/is-pure.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/is-symbol.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/length-of-array-like.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/make-built-in.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/math-trunc.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-define-property.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-get-own-property-descriptor.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-get-own-property-names.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-get-own-property-symbols.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-is-prototype-of.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-keys-internal.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/object-property-is-enumerable.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/ordinary-to-primitive.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/own-keys.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/require-object-coercible.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/shared-key.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/shared-store.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/shared.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/symbol-constructor-detection.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-absolute-index.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-indexed-object.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-integer-or-infinity.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-length.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-object.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-primitive.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/to-property-key.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/try-to-string.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/uid.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/use-symbol-as-uid.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/v8-prototype-define-bug.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/weak-map-basic-detection.js","webpack://VueDocumentEditor/./node_modules/core-js/internals/well-known-symbol.js","webpack://VueDocumentEditor/./node_modules/core-js/modules/es.array.push.js","webpack://VueDocumentEditor/./node_modules/vue-loader/dist/exportHelper.js","webpack://VueDocumentEditor/external umd {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://VueDocumentEditor/webpack/bootstrap","webpack://VueDocumentEditor/webpack/runtime/define property getters","webpack://VueDocumentEditor/webpack/runtime/global","webpack://VueDocumentEditor/webpack/runtime/hasOwnProperty shorthand","webpack://VueDocumentEditor/webpack/runtime/publicPath","webpack://VueDocumentEditor/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://VueDocumentEditor/./src/DocumentEditor/DocumentEditor.vue","webpack://VueDocumentEditor/./src/DocumentEditor/imports/page-transition-mgmt.js","webpack://VueDocumentEditor/./src/DocumentEditor/DocumentEditor.vue?a4df","webpack://VueDocumentEditor/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"vue\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VueDocumentEditor\"] = factory(require(\"vue\"));\n\telse\n\t\troot[\"VueDocumentEditor\"] = factory(root[\"Vue\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__7203__) {\nreturn ","var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a function');\n};\n","var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw $TypeError($String(argument) + ' is not an object');\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar isArray = require('../internals/is-array');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Safari < 13 does not throw an error in this case\nvar SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {\n // makes no sense without proper strict mode support\n if (this !== undefined) return true;\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).length = 1;\n } catch (error) {\n return error instanceof TypeError;\n }\n}();\n\nmodule.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {\n if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {\n throw $TypeError('Cannot set read only .length');\n } return O.length = length;\n} : function (O, length) {\n return O.length = length;\n};\n","var uncurryThisRaw = require('../internals/function-uncurry-this-raw');\n\nvar toString = uncurryThisRaw({}.toString);\nvar stringSlice = uncurryThisRaw(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","var classofRaw = require('../internals/classof-raw');\nvar uncurryThisRaw = require('../internals/function-uncurry-this-raw');\n\nmodule.exports = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw(fn) === 'Function') return uncurryThisRaw(fn);\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","module.exports = {};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) == 'Array';\n};\n","var $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","var isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","module.exports = false;\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (String(name).slice(0, 7) === 'Symbol(') {\n name = '[' + String(name).replace(/^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = TEMPLATE.join(typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","var isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.26.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar symbolFor = Symbol && Symbol['for'];\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {\n var description = 'Symbol.' + name;\n if (NATIVE_SYMBOL && hasOwn(Symbol, name)) {\n WellKnownSymbolsStore[name] = Symbol[name];\n } else if (USE_SYMBOL_AS_UID && symbolFor) {\n WellKnownSymbolsStore[name] = symbolFor(description);\n } else {\n WellKnownSymbolsStore[name] = createWellKnownSymbol(description);\n }\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar setArrayLength = require('../internals/array-set-length');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar fails = require('../internals/fails');\n\nvar INCORRECT_TO_LENGTH = fails(function () {\n return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;\n});\n\n// V8 and Safari <= 15.4, FF < 23 throws InternalError\n// https://bugs.chromium.org/p/v8/issues/detail?id=12681\nvar SILENT_ON_NON_WRITABLE_LENGTH = !function () {\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).push();\n } catch (error) {\n return error instanceof TypeError;\n }\n}();\n\n// `Array.prototype.push` method\n// https://tc39.es/ecma262/#sec-array.prototype.push\n$({ target: 'Array', proto: true, arity: 1, forced: INCORRECT_TO_LENGTH || SILENT_ON_NON_WRITABLE_LENGTH }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n push: function push(item) {\n var O = toObject(this);\n var len = lengthOfArrayLike(O);\n var argCount = arguments.length;\n doesNotExceedSafeInteger(len + argCount);\n for (var i = 0; i < argCount; i++) {\n O[len] = arguments[i];\n len++;\n }\n setArrayLength(O, len);\n return len;\n }\n});\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// runtime helper for setting properties on components\n// in a tree-shakable way\nexports.default = (sfc, props) => {\n const target = sfc.__vccOpts || sfc;\n for (const [key, val] of props) {\n target[key] = val;\n }\n return target;\n};\n","module.exports = __WEBPACK_EXTERNAL_MODULE__7203__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","\n\n\n\n\n","\n/**\n * Utility function that acts like an Array.filter on childNodes of \"container\"\n * @param {HTMLElement} container \n * @param {string} s_tag \n */\nfunction find_sub_child_sibling_node (container, s_tag){\n if(!container || !s_tag) return false;\n const child_nodes = container.childNodes;\n for(let i = 0; i < child_nodes.length; i++) {\n if(child_nodes[i].s_tag == s_tag) return child_nodes[i];\n }\n return false;\n}\n\n\n/**\n * This function moves every sub-child of argument \"child\" to the start of the \"child_sibling\"\n * argument, beginning from the last child, with word splitting and format preserving.\n * Typically, \"child\" is the current page which content overflows, and \"child_sibling\" is the \n * next page.\n * @param {HTMLElement} child Element to take children from (current page)\n * @param {HTMLElement} child_sibling Element to copy children to (next page)\n * @param {Function} stop_condition Check function that returns a boolean if content doesn't overflow anymore\n * @param {Boolean} not_first_child Should be unset. Used internally to let at least one child in the page\n */\nfunction move_children_forward_recursively (child, child_sibling, stop_condition, not_first_child) {\n\n // if the child still has nodes and the current page still overflows\n while(child.childNodes.length && !stop_condition()){\n\n // check if page has only one child tree left\n not_first_child = not_first_child || (child.childNodes.length != 1);\n\n // select the last sub-child\n const sub_child = child.lastChild;\n\n // if it is a text node, move its content to next page word(/space) by word\n if(sub_child.nodeType == Node.TEXT_NODE){\n const sub_child_hashes = sub_child.textContent.match(/(\\s|\\S+)/g);\n const sub_child_continuation = document.createTextNode('');\n child_sibling.prepend(sub_child_continuation);\n const l = sub_child_hashes ? sub_child_hashes.length : 0;\n for(let i = 0; i < l; i++) {\n if(i == l - 1 && !not_first_child) return; // never remove the first word of the page\n sub_child.textContent = sub_child_hashes.slice(0, l - i - 1).join('');\n sub_child_continuation.textContent = sub_child_hashes.slice(l - i - 1, l).join('');\n if(stop_condition()) return;\n }\n }\n\n // if it is a node with no content (e.g. ), or a header title (e.g.

) we simply move it\n else if(!sub_child.childNodes.length || sub_child.tagName.match(/h\\d/i)) {\n // just prevent moving the last child of the page\n if(!not_first_child){\n console.log(\"Move-forward: first child reached with no stop condition. Aborting\");\n return;\n }\n child_sibling.prepend(sub_child);\n }\n\n // for every other node that is not text and not the first child, clone it recursively to next page\n else {\n // check if sub child has already been cloned before\n let sub_child_sibling = find_sub_child_sibling_node(child_sibling, sub_child.s_tag);\n \n // if not, create it and watermark the relationship with a random tag\n if(!sub_child_sibling) {\n if(!sub_child.s_tag) {\n const new_random_tag = Math.random().toString(36).slice(2, 8);\n sub_child.s_tag = new_random_tag;\n }\n sub_child_sibling = sub_child.cloneNode(false);\n sub_child_sibling.s_tag = sub_child.s_tag;\n child_sibling.prepend(sub_child_sibling);\n }\n \n // then move/clone its children and sub-children recursively\n move_children_forward_recursively(sub_child, sub_child_sibling, stop_condition, not_first_child);\n sub_child_sibling.normalize(); // merge consecutive text nodes\n }\n\n // if sub_child was a container that was cloned and is now empty, we clean it\n if(child.contains(sub_child)){\n if(sub_child.childNodes.length == 0 || sub_child.innerHTML == \"\") child.removeChild(sub_child);\n else if(!stop_condition()) {\n // the only case when it can be non empty should be when stop_condition is now true\n console.log(\"sub_child:\", sub_child, \"that is in child:\", child);\n throw Error(\"Document editor is trying to remove a non-empty sub-child. This \"\n + \"is a bug and should not happen. Please report a repeatable set of actions that \"\n + \"leaded to this error to https://github.com/motla/vue-document-editor/issues/new\");\n }\n }\n }\n}\n\n\n\n/**\n * This function moves the first element from \"next_page_html_div\" to the end of \"page_html_div\", with\n * merging sibling tags previously watermarked by \"move_children_forward_recursively\", if any.\n * @param {HTMLElement} page_html_div Current page element\n * @param {HTMLElement} next_page_html_div Next page element\n * @param {Function} stop_condition Check function that returns a boolean if content overflows\n */\nfunction move_children_backwards_with_merging (page_html_div, next_page_html_div, stop_condition) {\n\n // loop until content is overflowing\n while(!stop_condition()){\n\n // find first child of next page\n const first_child = next_page_html_div.firstChild;\n\n // merge it at the end of the current page\n var merge_recursively = (container, elt) => {\n // check if child had been splitted (= has a sibling on previous page)\n const elt_sibling = find_sub_child_sibling_node(container, elt.s_tag);\n if(elt_sibling && elt.childNodes.length) {\n // then dig for deeper children, in case of\n merge_recursively(elt_sibling, elt.firstChild);\n }\n // else move the child inside the right container at current page\n else {\n container.append(elt);\n container.normalize();\n }\n }\n merge_recursively(page_html_div, first_child);\n }\n}\n\nexport {\n move_children_forward_recursively,\n move_children_backwards_with_merging\n};","import { render } from \"./DocumentEditor.vue?vue&type=template&id=68da239e&scoped=true\"\nimport script from \"./DocumentEditor.vue?vue&type=script&lang=js\"\nexport * from \"./DocumentEditor.vue?vue&type=script&lang=js\"\n\nimport \"./DocumentEditor.vue?vue&type=style&index=0&id=68da239e&lang=css\"\nimport \"./DocumentEditor.vue?vue&type=style&index=1&id=68da239e&scoped=true&lang=css\"\n\nimport exportComponent from \"/Users/romain/Developer/vue-document-editor/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-68da239e\"]])\n\nexport default __exports__","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE__7203__","isCallable","tryToString","$TypeError","TypeError","argument","isObject","$String","String","toIndexedObject","toAbsoluteIndex","lengthOfArrayLike","createMethod","IS_INCLUDES","$this","el","fromIndex","value","O","length","index","includes","indexOf","DESCRIPTORS","isArray","getOwnPropertyDescriptor","Object","SILENT_ON_NON_WRITABLE_LENGTH_SET","undefined","defineProperty","writable","error","uncurryThisRaw","toString","stringSlice","slice","it","hasOwn","ownKeys","getOwnPropertyDescriptorModule","definePropertyModule","target","source","exceptions","keys","f","i","key","createPropertyDescriptor","object","bitmap","enumerable","configurable","makeBuiltIn","defineGlobalProperty","options","simple","name","global","unsafe","nonConfigurable","nonWritable","fails","get","documentAll","document","all","IS_HTMLDDA","EXISTS","createElement","MAX_SAFE_INTEGER","getBuiltIn","match","version","userAgent","process","Deno","versions","v8","split","createNonEnumerableProperty","defineBuiltIn","copyConstructorProperties","isForced","FORCED","targetProperty","sourceProperty","descriptor","TARGET","GLOBAL","STATIC","stat","prototype","dontCallGetSet","forced","sham","exec","test","bind","hasOwnProperty","NATIVE_BIND","call","Function","apply","arguments","FunctionPrototype","getDescriptor","PROPER","CONFIGURABLE","uncurryThisWithBind","fn","classofRaw","aFunction","namespace","method","aCallable","isNullOrUndefined","V","P","func","check","Math","globalThis","window","g","uncurryThis","toObject","a","classof","$Object","propertyIsEnumerable","store","functionToString","inspectSource","set","has","NATIVE_WEAK_MAP","shared","sharedKey","hiddenKeys","OBJECT_ALREADY_INITIALIZED","WeakMap","enforce","getterFor","TYPE","state","type","metadata","facade","STATE","Array","$documentAll","replacement","feature","detection","data","normalize","POLYFILL","NATIVE","string","replace","toLowerCase","isPrototypeOf","USE_SYMBOL_AS_UID","$Symbol","toLength","obj","CONFIGURABLE_FUNCTION_NAME","InternalStateModule","enforceInternalState","getInternalState","CONFIGURABLE_LENGTH","TEMPLATE","getter","setter","arity","constructor","join","ceil","floor","trunc","x","n","IE8_DOM_DEFINE","V8_PROTOTYPE_DEFINE_BUG","anObject","toPropertyKey","$defineProperty","$getOwnPropertyDescriptor","ENUMERABLE","WRITABLE","Attributes","current","propertyIsEnumerableModule","internalObjectKeys","enumBugKeys","concat","getOwnPropertyNames","getOwnPropertySymbols","push","names","result","$propertyIsEnumerable","NASHORN_BUG","input","pref","val","valueOf","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","uid","SHARED","IS_PURE","mode","copyright","license","V8_VERSION","symbol","Symbol","toIntegerOrInfinity","max","min","integer","IndexedObject","requireObjectCoercible","number","isSymbol","getMethod","ordinaryToPrimitive","wellKnownSymbol","TO_PRIMITIVE","exoticToPrim","toPrimitive","id","postfix","random","NATIVE_SYMBOL","iterator","WellKnownSymbolsStore","symbolFor","createWellKnownSymbol","withoutSetter","description","$","setArrayLength","doesNotExceedSafeInteger","INCORRECT_TO_LENGTH","SILENT_ON_NON_WRITABLE_LENGTH","proto","item","len","argCount","sfc","props","__vccOpts","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","d","definition","o","e","prop","p","currentScript","src","class","ref","_createElementBlock","_hoisted_1","$props","_hoisted_2","_Fragment","$data","page","page_idx","uuid","elt","innerHTML","style","$options","_createElementVNode","contenteditable","onInput","onKeyup","onKeydown","find_sub_child_sibling_node","container","s_tag","child_nodes","childNodes","move_children_forward_recursively","child","child_sibling","stop_condition","not_first_child","sub_child","lastChild","nodeType","Node","TEXT_NODE","sub_child_hashes","textContent","sub_child_continuation","createTextNode","prepend","l","tagName","console","log","sub_child_sibling","new_random_tag","cloneNode","contains","removeChild","Error","move_children_backwards_with_merging","page_html_div","next_page_html_div","first_child","firstChild","merge_recursively","elt_sibling","append","content","required","display","default","editable","Boolean","overlay","page_format_mm","page_margins","zoom","Number","pages","pages_overlay_refs","pages_height","editor_width","prevent_next_content_update_from_parent","current_text_style","printing_mode","mounted","update_editor_width","update_css_media_style","reset_content","addEventListener","process_current_text_style","before_print","after_print","beforeUpdate","beforeUnmount","removeEventListener","computed","css_media_style","head","appendChild","methods","new_uuid","reset_in_progress","$emit","map","content_idx","template","update_pages_elts","first_page_elt","$refs","clientHeight","componentElement","defineCustomElement","customElements","modelValue","fit_content_over_pages","blur","fit_in_progress","body","splice","selection","getSelection","start_marker","end_marker","rangeCount","range","getRangeAt","insertNode","collapse","prev_page_modified_flag","next_page","next_page_elt","prev_innerHTML","createRange","setStart","setEnd","removeAllRanges","addRange","parentElement","emit_new_content","inputType","keydown","keyCode","is_text","preventDefault","removed_pages_flag","new_content","filter","children","getAttribute","sel","focusNode","element","isContentEditable","getComputedStyle","textDecorationStack","headerLevel","isList","parent","parent_style","textDecoration","toUpperCase","page_style","allow_overflow","px_in_mm","page_width","page_spacing_mm","page_with_plus_spacing","view_padding","inner_width","page_column","x_pos","x_ofx","left_px","top_mm","bkg_width_mm","bkg_height_mm","nb_pages_x","nb_pages_y","position","left","top","width","padding","transform","height","css_to_string","css","entries","k","v","page_elt","find","remove","className","insertBefore","dataset","contentIdx","contentEditable","editor","classList","add","clientWidth","_page_body","print_body","margin","background","font","breakBefore","overlay_elt","overflow","return_overlay","right","bottom","alignItems","justifyContent","cursor","overlays","watch","handler","deep","__exports__","render"],"sourceRoot":""} \ No newline at end of file diff --git a/docs/css/app.7c0cc6d4.css b/docs/css/app.7c0cc6d4.css new file mode 100644 index 0000000..2be49b6 --- /dev/null +++ b/docs/css/app.7c0cc6d4.css @@ -0,0 +1 @@ +.bar-button>.color-square[data-v-2fe7124b]{width:15px;height:15px;border:1px solid rgba(0,0,0,.7);margin:0 3px}.bar-button.disabled>.color-square[data-v-2fe7124b]{border:solid 1px var(--bar-button-disabled-color,rgba(0,0,0,.3))}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;font-display:block;src:url(../fonts/material-icons.59322316.woff2) format("woff2"),url(../fonts/material-icons.4ad034d2.woff) format("woff")}.material-icons{font-family:Material Icons;font-feature-settings:"liga"}@font-face{font-family:Material Icons Outlined;font-style:normal;font-weight:400;font-display:block;src:url(../fonts/material-icons-outlined.f86cb7b0.woff2) format("woff2"),url(../fonts/material-icons-outlined.78a93b20.woff) format("woff")}.material-icons,.material-icons-outlined{font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}.material-icons-outlined{font-family:Material Icons Outlined;font-feature-settings:"liga"}@font-face{font-family:Material Icons Round;font-style:normal;font-weight:400;font-display:block;src:url(../fonts/material-icons-round.b10ec9db.woff2) format("woff2"),url(../fonts/material-icons-round.92dc7ca2.woff) format("woff")}.material-icons-round{font-family:Material Icons Round;font-feature-settings:"liga"}@font-face{font-family:Material Icons Sharp;font-style:normal;font-weight:400;font-display:block;src:url(../fonts/material-icons-sharp.3885863e.woff2) format("woff2"),url(../fonts/material-icons-sharp.a71cb2bf.woff) format("woff")}.material-icons-round,.material-icons-sharp{font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}.material-icons-sharp{font-family:Material Icons Sharp;font-feature-settings:"liga"}@font-face{font-family:Material Icons Two Tone;font-style:normal;font-weight:400;font-display:block;src:url(../fonts/material-icons-two-tone.675bd578.woff2) format("woff2"),url(../fonts/material-icons-two-tone.588d6313.woff) format("woff")}.material-icons-two-tone{font-family:Material Icons Two Tone;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;font-feature-settings:"liga"}.bar[data-v-9653a704]{display:flex;align-items:stretch;justify-content:flex-start;flex-wrap:wrap;color:var(--bar-font-color,rgba(0,0,0,.7));font-family:var(--bar-font-family,Avenir,Helvetica,Arial,sans-serif);font-size:var(--bar-font-size,16px);font-weight:var(--bar-font-weight,500);font-style:var(--bar-font-style);letter-spacing:var(--bar-letter-spacing);margin:var(--bar-margin);padding:var(--bar-padding);border:var(--bar-border);border-radius:var(--bar-border-radius);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.bar[data-v-9653a704] ::-webkit-scrollbar{width:16px;height:16px}.bar[data-v-9653a704] ::-webkit-scrollbar-corner,.bar[data-v-9653a704] ::-webkit-scrollbar-track{display:none}.bar[data-v-9653a704] ::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5);border:5px solid transparent;border-radius:16px;background-clip:content-box}.bar[data-v-9653a704] ::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.8)}.bar[data-v-9653a704] .ellipsis{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bar[data-v-9653a704] .bar-button{position:relative;display:flex;align-items:center;justify-content:center;padding:var(--bar-button-padding,7px);border-radius:var(--bar-button-radius,3px);white-space:nowrap}.bar[data-v-9653a704] .bar-button.active{color:var(--bar-button-active-color,#41b883);background:var(--bar-button-active-bkg,#eaf7f4)}.bar[data-v-9653a704] .bar-button.open:hover{color:var(--bar-button-open-color,#41b883);background:var(--bar-button-open-bkg,#eaf7f4)}.bar[data-v-9653a704] .bar-button.disabled{color:var(--bar-button-disabled-color,rgba(0,0,0,.3));background:var(--bar-button-disabled-bkg)}.bar[data-v-9653a704] .bar-button:not(.active):not(.open):not(.disabled):hover{color:var(--bar-button-hover-color);background:var(--bar-button-hover-bkg,#f1f3f4)}.bar[data-v-9653a704] .bar-button>.label{display:flex;align-items:center;padding:var(--bar-button-label-padding,0 3px)}.bar[data-v-9653a704] .bar-button>.emoji,.bar[data-v-9653a704] .bar-button>.icon{font-display:block;width:1em;font-size:var(--bar-button-icon-size,24px);margin:var(--bar-button-icon-margin)}.bar[data-v-9653a704] .bar-button>.chevron{font-display:block;width:1em;margin:var(--bar-button-chevron-margin,0 -5px 0 0)}.bar[data-v-9653a704] .bar-button>.menu{position:absolute;left:0;top:100%;display:none;z-index:1000}.bar[data-v-9653a704] .bar-button>.menu.align-left{left:0}.bar[data-v-9653a704] .bar-button>.menu.align-center{left:auto}.bar[data-v-9653a704] .bar-button>.menu.align-right{left:auto;right:0}.bar[data-v-9653a704] .bar-button.open:hover>.menu{display:block}.bar[data-v-9653a704] .bar-menu{position:relative;white-space:normal}.bar[data-v-9653a704] .bar-menu>.extended-hover-zone{position:absolute;top:0;left:-100px;right:-100px;bottom:-40px}.bar[data-v-9653a704] .bar-menu>.bar-menu-items{position:relative;min-width:var(--bar-menu-min-width,160px);color:var(--bar-menu-color,rgba(0,0,0,.7));background:var(--bar-menu-bkg,#fff);padding:var(--bar-menu-padding,5px 0);box-shadow:var(--bar-menu-shadow,rgba(60,64,67,.15) 0 2px 6px 2px);border:var(--bar-menu-border);border-radius:var(--bar-menu-border-radius)}@supports ((-webkit-backdrop-filter:var(--bar-menu-backdrop-filter )) or (backdrop-filter:var(--bar-menu-backdrop-filter ))){.bar[data-v-9653a704] .bar-menu>.bar-menu-items{-webkit-backdrop-filter:var(--bar-menu-backdrop-filter);backdrop-filter:var(--bar-menu-backdrop-filter);background:var(--bar-menu-backdrop-filter-bkg,var(--bar-menu-bkg,#fff))}}.bar[data-v-9653a704] .bar-menu>.bar-menu-items>.bar-menu-item{position:relative;display:flex;align-items:center;justify-content:flex-start;font-size:var(--bar-menu-item-font-size);padding:var(--bar-menu-item-padding,8px 15px)}.bar[data-v-9653a704] .bar-men>.bar-menu-items>.bar-menu-item.active{color:var(--bar-menu-item-active-color);background:var(--bar-menu-item-active-bkg,#e7e8e9)}.bar[data-v-9653a704] .bar-menu>.bar-menu-items>.bar-menu-item.disabled{color:var(--bar-menu-item-disabled-color,rgba(0,0,0,.3))}.bar[data-v-9653a704] .bar-menu>.bar-menu-items>.bar-menu-item:not(.active):not(.disabled):hover{color:var(--bar-menu-item-hover-color);background:var(--bar-menu-item-hover-bkg,#f1f3f4)}.bar[data-v-9653a704] .bar-menu>.bar-menu-items>.bar-menu-item>.label{display:flex;align-items:center;flex-grow:1}.bar[data-v-9653a704] .bar-menu>.bar-menu-items>.bar-menu-item>.emoji,.bar[data-v-9653a704] .bar-menu>.bar-menu-items>.bar-menu-item>.icon{font-display:block;width:1em;font-size:var(--bar-menu-item-icon-size,24px);margin:var(--bar-menu-item-icon-margin,0 10px 0 0)}.bar[data-v-9653a704] .bar-menu>.bar-menu-items>.bar-menu-item>.chevron{font-display:block;width:1em;margin:var(--bar-menu-item-chevron-margin,0 -6px 0 0)}.bar[data-v-9653a704] .bar-menu>.bar-menu-items>.bar-menu-item>.menu{position:absolute;left:100%;top:0;display:none;z-index:1000}.bar[data-v-9653a704] .bar-menu>.bar-menu-items>.bar-menu-item:hover>.menu{display:block}.bar[data-v-9653a704] .bar-menu>.bar-menu-items>.bar-menu-item>.bar-menu{border-radius:var(--bar-sub-menu-border-radius)}.bar[data-v-9653a704] .bar-menu>.bar-menu-items>.bar-menu-item>.bar-menu>.extended-hover-zone{top:-100px;left:0;bottom:-100px}.bar[data-v-9653a704] .bar-menu>.bar-menu-items>.bar-menu-separator{height:var(--bar-menu-separator-height,1px);margin:var(--bar-menu-separator-margin,5px 0);background-color:var(--bar-menu-separator-color,rgba(0,0,0,.1))}.bar[data-v-9653a704] .bar-separator{width:var(--bar-separator-width,2px);margin:var(--bar-separator-margin,5px);background-color:var(--bar-separator-color,rgba(0,0,0,.1))}.bar[data-v-9653a704] .bar-spacer{flex-grow:1}body{-webkit-print-color-adjust:exact;print-color-adjust:exact}.editor[data-v-68da239e]{display:block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;cursor:default}.editor[data-v-68da239e] ::-webkit-scrollbar{width:16px;height:16px}.editor[data-v-68da239e] ::-webkit-scrollbar-corner,.editor[data-v-68da239e] ::-webkit-scrollbar-track{display:none}.editor[data-v-68da239e] ::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5);border:5px solid transparent;border-radius:16px;background-clip:content-box}.editor[data-v-68da239e] ::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.8)}.editor .hide_children>[data-v-68da239e]{display:none}.editor>.content[data-v-68da239e]{position:relative;outline:none;margin:0;padding:0;min-width:100%;pointer-events:none}.editor>.content[data-v-68da239e]>.page{position:absolute;box-sizing:border-box;left:50%;transform-origin:center top;background:var(--page-background,#fff);box-shadow:var(--page-box-shadow,0 1px 3px 1px rgba(60,64,67,.15));border:var(--page-border);border-radius:var(--page-border-radius);transition:left .3s,top .3s;overflow:hidden;pointer-events:all}.editor>.content[contenteditable][data-v-68da239e],.editor>.content[data-v-68da239e] [contenteditable]{cursor:text}.editor>.content[data-v-68da239e] [contenteditable=false]{cursor:default}.editor>.overlays[data-v-68da239e]{position:relative;margin:0;padding:0;min-width:100%;pointer-events:none}.editor>.overlays>.overlay[data-v-68da239e]{position:absolute;box-sizing:border-box;left:50%;transform-origin:center top;transition:left .3s,top .3s;overflow:hidden;z-index:1}html{height:100%}body{margin:0;font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#000;background:#f8f9fa}::-webkit-scrollbar{width:16px;height:16px}::-webkit-scrollbar-corner,::-webkit-scrollbar-track{display:none}::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5);border:5px solid transparent;border-radius:16px;background-clip:content-box}::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.8)}.main[data-v-40b973fe]{width:-moz-fit-content;width:fit-content;min-width:100%}.bar[data-v-40b973fe]{position:sticky;left:0;top:0;width:calc(100vw - 16px);z-index:1000;background:rgba(248,249,250,.8);border-bottom:1px solid #f8f9fa;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);--bar-button-active-color:#188038;--bar-button-open-color:#188038;--bar-button-active-bkg:#e6f4ea;--bar-button-open-bkg:#e6f4ea} \ No newline at end of file diff --git a/docs/css/app.c49ee29d.css b/docs/css/app.c49ee29d.css deleted file mode 100644 index 1c46416..0000000 --- a/docs/css/app.c49ee29d.css +++ /dev/null @@ -1 +0,0 @@ -.bar-button>.color-square[data-v-2fe7124b]{width:15px;height:15px;border:1px solid rgba(0,0,0,.7);margin:0 3px}.bar-button.disabled>.color-square[data-v-2fe7124b]{border:solid 1px var(--bar-button-disabled-color,rgba(0,0,0,.3))}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;font-display:block;src:url(../fonts/material-icons.59322316.woff2) format("woff2"),url(../fonts/material-icons.4ad034d2.woff) format("woff")}.material-icons{font-family:Material Icons;font-feature-settings:"liga"}@font-face{font-family:Material Icons Outlined;font-style:normal;font-weight:400;font-display:block;src:url(../fonts/material-icons-outlined.f86cb7b0.woff2) format("woff2"),url(../fonts/material-icons-outlined.78a93b20.woff) format("woff")}.material-icons,.material-icons-outlined{font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}.material-icons-outlined{font-family:Material Icons Outlined;font-feature-settings:"liga"}@font-face{font-family:Material Icons Round;font-style:normal;font-weight:400;font-display:block;src:url(../fonts/material-icons-round.b10ec9db.woff2) format("woff2"),url(../fonts/material-icons-round.92dc7ca2.woff) format("woff")}.material-icons-round{font-family:Material Icons Round;font-feature-settings:"liga"}@font-face{font-family:Material Icons Sharp;font-style:normal;font-weight:400;font-display:block;src:url(../fonts/material-icons-sharp.3885863e.woff2) format("woff2"),url(../fonts/material-icons-sharp.a71cb2bf.woff) format("woff")}.material-icons-round,.material-icons-sharp{font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}.material-icons-sharp{font-family:Material Icons Sharp;font-feature-settings:"liga"}@font-face{font-family:Material Icons Two Tone;font-style:normal;font-weight:400;font-display:block;src:url(../fonts/material-icons-two-tone.675bd578.woff2) format("woff2"),url(../fonts/material-icons-two-tone.588d6313.woff) format("woff")}.material-icons-two-tone{font-family:Material Icons Two Tone;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;font-feature-settings:"liga"}.bar[data-v-28ea666c]{display:flex;align-items:stretch;justify-content:flex-start;flex-wrap:wrap;color:var(--bar-font-color,rgba(0,0,0,.7));font-family:var(--bar-font-family,Avenir,Helvetica,Arial,sans-serif);font-size:var(--bar-font-size,16px);font-weight:var(--bar-font-weight,500);font-style:var(--bar-font-style);letter-spacing:var(--bar-letter-spacing);margin:var(--bar-margin);padding:var(--bar-padding);border:var(--bar-border);border-radius:var(--bar-border-radius);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.bar[data-v-28ea666c] ::-webkit-scrollbar{width:16px;height:16px}.bar[data-v-28ea666c] ::-webkit-scrollbar-corner,.bar[data-v-28ea666c] ::-webkit-scrollbar-track{display:none}.bar[data-v-28ea666c] ::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5);border:5px solid transparent;border-radius:16px;background-clip:content-box}.bar[data-v-28ea666c] ::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.8)}.bar[data-v-28ea666c] .ellipsis{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bar[data-v-28ea666c] .bar-button{position:relative;display:flex;align-items:center;justify-content:center;padding:var(--bar-button-padding,7px);border-radius:var(--bar-button-radius,3px);white-space:nowrap}.bar[data-v-28ea666c] .bar-button.active{color:var(--bar-button-active-color,#41b883);background:var(--bar-button-active-bkg,#eaf7f4)}.bar[data-v-28ea666c] .bar-button.open:hover{color:var(--bar-button-open-color,#41b883);background:var(--bar-button-open-bkg,#eaf7f4)}.bar[data-v-28ea666c] .bar-button.disabled{color:var(--bar-button-disabled-color,rgba(0,0,0,.3));background:var(--bar-button-disabled-bkg)}.bar[data-v-28ea666c] .bar-button:not(.active):not(.open):not(.disabled):hover{color:var(--bar-button-hover-color);background:var(--bar-button-hover-bkg,#f1f3f4)}.bar[data-v-28ea666c] .bar-button>.label{display:flex;align-items:center;padding:var(--bar-button-label-padding,0 3px)}.bar[data-v-28ea666c] .bar-button>.emoji,.bar[data-v-28ea666c] .bar-button>.icon{font-display:block;width:1em;font-size:var(--bar-button-icon-size,24px);margin:var(--bar-button-icon-margin)}.bar[data-v-28ea666c] .bar-button>.chevron{font-display:block;width:1em;margin:var(--bar-button-chevron-margin,0 -5px 0 0)}.bar[data-v-28ea666c] .bar-button>.menu{position:absolute;left:0;top:100%;display:none;z-index:1000}.bar[data-v-28ea666c] .bar-button>.menu.align-left{left:0}.bar[data-v-28ea666c] .bar-button>.menu.align-center{left:auto}.bar[data-v-28ea666c] .bar-button>.menu.align-right{left:auto;right:0}.bar[data-v-28ea666c] .bar-button.open:hover>.menu{display:block}.bar[data-v-28ea666c] .bar-menu{position:relative;white-space:normal}.bar[data-v-28ea666c] .bar-menu>.extended-hover-zone{position:absolute;top:0;left:-100px;right:-100px;bottom:-40px}.bar[data-v-28ea666c] .bar-menu>.bar-menu-items{position:relative;min-width:var(--bar-menu-min-width,160px);color:var(--bar-menu-color,rgba(0,0,0,.7));background:var(--bar-menu-bkg,#fff);padding:var(--bar-menu-padding,5px 0);box-shadow:var(--bar-menu-shadow,rgba(60,64,67,.15) 0 2px 6px 2px);border:var(--bar-menu-border);border-radius:var(--bar-menu-border-radius)}@supports((-webkit-backdrop-filter:var(--bar-menu-backdrop-filter )) or (backdrop-filter:var(--bar-menu-backdrop-filter ))){.bar[data-v-28ea666c] .bar-menu>.bar-menu-items{-webkit-backdrop-filter:var(--bar-menu-backdrop-filter);backdrop-filter:var(--bar-menu-backdrop-filter);background:var(--bar-menu-backdrop-filter-bkg,var(--bar-menu-bkg,#fff))}}.bar[data-v-28ea666c] .bar-menu>.bar-menu-items>.bar-menu-item{position:relative;display:flex;align-items:center;justify-content:flex-start;font-size:var(--bar-menu-item-font-size);padding:var(--bar-menu-item-padding,8px 15px)}.bar[data-v-28ea666c] .bar-menu>.bar-menu-items>.bar-menu-item.active{color:var(--bar-menu-item-active-color);background:var(--bar-menu-item-active-bkg,#e7e8e9)}.bar[data-v-28ea666c] .bar-menu>.bar-menu-items>.bar-menu-item.disabled{color:var(--bar-menu-item-disabled-color,rgba(0,0,0,.3))}.bar[data-v-28ea666c] .bar-menu>.bar-menu-items>.bar-menu-item:not(.active):not(.disabled):hover{color:var(--bar-menu-item-hover-color);background:var(--bar-menu-item-hover-bkg,#f1f3f4)}.bar[data-v-28ea666c] .bar-menu>.bar-menu-items>.bar-menu-item>.label{display:flex;align-items:center;flex-grow:1}.bar[data-v-28ea666c] .bar-menu>.bar-menu-items>.bar-menu-item>.emoji,.bar[data-v-28ea666c] .bar-menu>.bar-menu-items>.bar-menu-item>.icon{font-display:block;width:1em;font-size:var(--bar-menu-item-icon-size,24px);margin:var(--bar-menu-item-icon-margin,0 10px 0 0)}.bar[data-v-28ea666c] .bar-menu>.bar-menu-items>.bar-menu-item>.chevron{font-display:block;width:1em;margin:var(--bar-menu-item-chevron-margin,0 -6px 0 0)}.bar[data-v-28ea666c] .bar-menu>.bar-menu-items>.bar-menu-item>.menu{position:absolute;left:100%;top:0;display:none;z-index:1000}.bar[data-v-28ea666c] .bar-menu>.bar-menu-items>.bar-menu-item:hover>.menu{display:block}.bar[data-v-28ea666c] .bar-menu>.bar-menu-items>.bar-menu-item>.bar-menu{border-radius:var(--bar-sub-menu-border-radius)}.bar[data-v-28ea666c] .bar-menu>.bar-menu-items>.bar-menu-item>.bar-menu>.extended-hover-zone{top:-100px;left:0;bottom:-100px}.bar[data-v-28ea666c] .bar-menu>.bar-menu-items>.bar-menu-separator{height:var(--bar-menu-separator-height,1px);margin:var(--bar-menu-separator-margin,5px 0);background-color:var(--bar-menu-separator-color,rgba(0,0,0,.1))}.bar[data-v-28ea666c] .bar-separator{width:var(--bar-separator-width,2px);margin:var(--bar-separator-margin,5px);background-color:var(--bar-separator-color,rgba(0,0,0,.1))}.bar[data-v-28ea666c] .bar-spacer{flex-grow:1}body{-webkit-print-color-adjust:exact;print-color-adjust:exact}.editor[data-v-587217e4]{display:block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;cursor:default}.editor[data-v-587217e4] ::-webkit-scrollbar{width:16px;height:16px}.editor[data-v-587217e4] ::-webkit-scrollbar-corner,.editor[data-v-587217e4] ::-webkit-scrollbar-track{display:none}.editor[data-v-587217e4] ::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5);border:5px solid transparent;border-radius:16px;background-clip:content-box}.editor[data-v-587217e4] ::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.8)}.editor[data-v-587217e4] .hide_children>*{display:none}.editor[data-v-587217e4]>.content{position:relative;outline:none;margin:0;padding:0;min-width:100%;pointer-events:none}.editor[data-v-587217e4]>.content>.page{position:absolute;box-sizing:border-box;left:50%;transform-origin:center top;background:var(--page-background,#fff);box-shadow:var(--page-box-shadow,0 1px 3px 1px rgba(60,64,67,.15));border:var(--page-border);border-radius:var(--page-border-radius);transition:left .3s,top .3s;overflow:hidden;pointer-events:all}.editor[data-v-587217e4]>.content [contenteditable],.editor[data-v-587217e4]>.content[contenteditable]{cursor:text}.editor[data-v-587217e4]>.content [contenteditable=false]{cursor:default}.editor[data-v-587217e4]>.overlays{position:relative;margin:0;padding:0;min-width:100%;pointer-events:none}.editor[data-v-587217e4]>.overlays>.overlay{position:absolute;box-sizing:border-box;left:50%;transform-origin:center top;transition:left .3s,top .3s;overflow:hidden;z-index:1}table[data-v-618f9e64]{width:100%;border-spacing:0}table td[data-v-618f9e64]{position:relative;padding:6px;vertical-align:top}table.order-table td[data-v-618f9e64]{vertical-align:middle}table thead td[data-v-618f9e64]{font-weight:700}table tbody td[data-v-618f9e64]{border-top:1px solid #ccc}input[type=number][data-v-618f9e64]{border:none;font-family:inherit;font-size:inherit;color:inherit;background:rgba(200,250,230,.4);padding:6px}[contenteditable][data-v-618f9e64]{background:rgba(200,250,230,.4);transition:padding .05s linear}span[contenteditable][data-v-618f9e64]:focus{padding:0 4px}@media print{[contenteditable][data-v-618f9e64],input[data-v-618f9e64]{background:none}.hide-in-print[data-v-618f9e64]{display:none}input[data-v-618f9e64]::-webkit-inner-spin-button,input[data-v-618f9e64]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-618f9e64]{-moz-appearance:textfield;background:none}}.header[data-v-618f9e64],.order[data-v-618f9e64]{display:flex;justify-content:space-between;margin-bottom:10px}.left-btn[data-v-618f9e64]{position:absolute;left:-40px;top:2px}.left-btn[data-v-618f9e64]:hover{opacity:.6}html{height:100%}body{margin:0;font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#000;background:#f8f9fa}::-webkit-scrollbar{width:16px;height:16px}::-webkit-scrollbar-corner,::-webkit-scrollbar-track{display:none}::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5);border:5px solid transparent;border-radius:16px;background-clip:content-box}::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.8)}.main[data-v-3d8807e0]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;min-width:100%}.bar[data-v-3d8807e0]{position:sticky;left:0;top:0;width:calc(100vw - 16px);z-index:1000;background:rgba(248,249,250,.8);border-bottom:1px solid #f8f9fa;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);--bar-button-active-color:#188038;--bar-button-open-color:#188038;--bar-button-active-bkg:#e6f4ea;--bar-button-open-bkg:#e6f4ea} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index b03d0b3..22b902b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1 +1 @@ -vue-document-editor
\ No newline at end of file +vue-document-editor
\ No newline at end of file diff --git a/docs/js/app.76245761.js b/docs/js/app.76245761.js deleted file mode 100644 index 7ded424..0000000 --- a/docs/js/app.76245761.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){"use strict";var e={7411:function(e,t,i){var n=i(9963),s=i(6252);const a={class:"main"};function o(e,t,i,n,o,r){const l=(0,s.up)("vue-file-toolbar-menu"),c=(0,s.up)("vue-document-editor");return(0,s.wg)(),(0,s.iD)("div",a,[(0,s.Wm)(l,{content:r.menu,class:"bar"},null,8,["content"]),(0,s.Wm)(c,{class:"editor",ref:"editor",content:o.content,"onUpdate:content":t[0]||(t[0]=e=>o.content=e),overlay:r.overlay,zoom:o.zoom,page_format_mm:o.page_format_mm,page_margins:o.page_margins,display:o.display},null,8,["content","overlay","zoom","page_format_mm","page_margins","display"])])}i(6699);var r=i(9921),l=i(3577);const c={class:"editor",ref:"editor"},d={key:0,class:"overlays"},u=["innerHTML"],m=["contenteditable"],h=["data-content-idx","data-page-idx","contenteditable"];function p(e,t,i,n,a,o){return(0,s.wg)(),(0,s.iD)("div",c,[i.overlay?((0,s.wg)(),(0,s.iD)("div",d,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(a.pages,((e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:"overlay",key:e.uuid+"-overlay",ref_for:!0,ref:t=>a.pages_overlay_refs[e.uuid]=t,innerHTML:i.overlay(t+1,a.pages.length),style:(0,l.j5)(o.page_style(t,!1))},null,12,u)))),128))])):(0,s.kq)("",!0),(0,s._)("div",{class:"content",ref:"content",contenteditable:i.editable,style:(0,l.j5)(o.page_style(-1)),onInput:t[0]||(t[0]=(...e)=>o.input&&o.input(...e)),onKeyup:t[1]||(t[1]=(...e)=>o.process_current_text_style&&o.process_current_text_style(...e)),onKeydown:t[2]||(t[2]=(...e)=>o.keydown&&o.keydown(...e))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(a.pages,((e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:"page",key:e.uuid,ref_for:!0,ref:t=>a.pages_refs[e.uuid]=t,"data-content-idx":e.content_idx,"data-page-idx":t,style:(0,l.j5)(o.page_style(t,!e.template)),contenteditable:!(!i.editable||e.template)},[e.template?((0,s.wg)(),(0,s.j4)((0,s.LL)(e.template),{key:0,modelValue:e.props,"onUpdate:modelValue":t=>e.props=t},null,8,["modelValue","onUpdate:modelValue"])):(0,s.kq)("",!0)],12,h)))),128))],44,m)],512)}i(1703);function g(e,t){if(!e||!t)return!1;const i=e.childNodes;for(let n=0;n{const i=g(e,t.s_tag);i&&t.childNodes.length?n(i,t.firstChild):(e.append(t),e.normalize())};n(e,i)}}var y={props:{content:{type:Array,required:!0},display:{type:String,default:"grid"},editable:{type:Boolean,default:!0},overlay:Function,page_format_mm:{type:Array,default:()=>[210,297]},page_margins:{type:String,default:"10mm 15mm"},zoom:{type:Number,default:1}},data(){return{pages:[],pages_refs:{},pages_overlay_refs:{},pages_height:0,editor_width:0,prevent_next_content_update_from_parent:!1,current_text_style:!1}},mounted(){this.update_editor_width(),this.update_css_media_style(),this.reset_content(),window.addEventListener("resize",this.update_editor_width),window.addEventListener("click",this.process_current_text_style),window.addEventListener("beforeprint",this.before_print),window.addEventListener("afterprint",this.after_print)},beforeUpdate(){this.pages_refs=[],this.pages_overlay_refs=[]},beforeUnmount(){window.removeEventListener("resize",this.update_editor_width),window.removeEventListener("click",this.process_current_text_style),window.removeEventListener("beforeprint",this.before_print),window.removeEventListener("afterprint",this.after_print)},computed:{css_media_style(){const e=document.createElement("style");return document.head.appendChild(e),e}},methods:{new_uuid:()=>Math.random().toString(36).slice(-5),async reset_content(){if(this.reset_in_progress)return;if(this.reset_in_progress=!0,!this.content.length)return this.reset_in_progress=!1,void this.$emit("update:content",[""]);this.pages=this.content.map(((e,t)=>({uuid:this.new_uuid(),content_idx:t,template:e.template,props:e.props}))),await this.$nextTick();const e=this.pages_refs[this.pages[0].uuid];this.$refs.content.contains(e)||this.$refs.content.appendChild(e),this.pages_height=e.clientHeight+1;for(const t of this.pages){const e=this.pages_refs[t.uuid];this.content[t.content_idx]?"string"==typeof this.content[t.content_idx]&&(e.innerHTML="
"+this.content[t.content_idx]+"
"):e.innerHTML="

",this.$refs.content.contains(e)||this.$refs.content.appendChild(e)}await this.fit_content_over_pages(),this.$refs.content.blur(),this.reset_in_progress=!1},async fit_content_over_pages(){if(!this.pages_height)return;if(this.fit_in_progress)return;this.fit_in_progress=!0;for(let s=this.pages.length-1;s>=0;s--){const e=this.pages[s],t=this.pages_refs[e.uuid];t&&document.body.contains(t)||this.pages.splice(s,1)}if(!this.pages.length)return void this.reset_content();const e=window.getSelection(),t=document.createElement("null"),i=document.createElement("null");if(e.rangeCount){const n=e.getRangeAt(0);n.insertNode(t),n.collapse(!1),n.insertNode(i)}let n=!1;for(let s=0;s!a.childNodes.length||t.clientHeight>this.pages_height)),a.childNodes.length||this.pages.splice(s+1,1)),t.clientHeight>this.pages_height&&(i&&i.content_idx==e.content_idx||(i={uuid:this.new_uuid(),content_idx:e.content_idx},this.pages.splice(s+1,0,i),await this.$nextTick(),a=this.pages_refs[i.uuid]),f(t,a,(()=>t.clientHeight<=this.pages_height)))),this.fit_in_progress=!1}if(document.body.contains(t)){const n=document.createRange();n.setStart(t,0),document.body.contains(i)&&n.setEnd(i,0),e.removeAllRanges(),e.addRange(n)}t.parentElement&&t.parentElement.removeChild(t),i.parentElement&&i.parentElement.removeChild(i);for(const s of this.pages){const e=this.pages_refs[s.uuid];s.template||e.normalize(),s.prev_innerHTML=e.innerHTML}},async input(e){e&&(await this.fit_content_over_pages(),this.emit_new_content(),"insertText"!=e.inputType&&this.process_current_text_style())},keydown(e){if(8==e.keyCode&&this.content.length<=1){const t=!(!this.content[0]||"string"!=typeof this.content[0])&&this.content[0].replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi,"");t||e.preventDefault()}},emit_new_content(){let e=!1;const t=this.content.map(((t,i)=>{const n=this.pages.filter((e=>e.content_idx==i));return n.length?"string"==typeof t?n.map((e=>{let t=this.pages_refs[e.uuid];while(1==t.children.length&&t.firstChild.tagName&&"div"==t.firstChild.tagName.toLowerCase()&&!t.firstChild.getAttribute("style"))t=t.firstChild;return t.innerHTML})).join("")||!1:{template:t.template,props:{...t.props}}:(e=!0,!1)})).filter((e=>0!=e));e||(this.prevent_next_content_update_from_parent=!0),this.$emit("update:content",t)},process_current_text_style(){let e=!1;const t=window.getSelection();if(t.focusNode){const i=t.focusNode.tagName?t.focusNode:t.focusNode.parentElement;if(i&&i.isContentEditable){e=window.getComputedStyle(i),e.textDecorationStack=[],e.headerLevel=0,e.isList=!1;let t=i;while(t){const i=window.getComputedStyle(t);if(e.textDecorationStack.push(i.textDecoration),"list-item"==i.display&&(e.isList=!0),!e.headerLevel)for(let n=1;n<=6;n++)if(t.tagName.toUpperCase()=="H"+n){e.headerLevel=n;break}t=t.parentElement}}}this.current_text_style=e},page_style(e,t){const i=.2645833333333,n=this.page_format_mm[0]/i,s=10,a=(s+this.page_format_mm[0])*this.zoom/i,o=20,r=this.editor_width-2*o;let l,c,d,u,m,h,p,g=1;if("horizontal"==this.display)r>this.pages.length*a?(g=Math.floor(r/a),u=r/(2*g)*(1+2*e)-n/2):(g=this.pages.length,u=a*e+n/2*(this.zoom-1)),m=0,h=this.zoom*(this.page_format_mm[0]*g+(g-1)*s),p=this.page_format_mm[1]*this.zoom;else{g=Math.floor(r/a),(g<1||"vertical"==this.display)&&(g=1),l=e%g,c=r/(2*g)*(1+2*l)-n/2,d=Math.max(0,(n*this.zoom-r)/2),u=c+d,m=(this.page_format_mm[1]+s)*this.zoom*Math.floor(e/g);const t=Math.ceil(this.pages.length/g);h=this.zoom*(this.page_format_mm[0]*g+(g-1)*s),p=this.zoom*(this.page_format_mm[1]*t+(t-1)*s)}if(e>=0){const e={position:"absolute",left:"calc("+u+"px + "+o+"px)",top:"calc("+m+"mm + "+o+"px)",width:this.page_format_mm[0]+"mm",padding:this.page_margins,transform:"scale("+this.zoom+")"};return e[t?"minHeight":"height"]=this.page_format_mm[1]+"mm",e}return{width:"calc("+h+"mm + "+2*o+"px)",height:"calc("+p+"mm + "+2*o+"px)"}},update_editor_width(){this.$refs.editor.classList.add("hide_children"),this.editor_width=this.$refs.editor.clientWidth,this.$refs.editor.classList.remove("hide_children")},update_css_media_style(){this.css_media_style.innerHTML="@media print { @page { size: "+this.page_format_mm[0]+"mm "+this.page_format_mm[1]+"mm; margin: 0 !important; } .hidden-print { display: none !important; } }"},before_print(){this._page_body=document.body;const e=document.createElement("body");e.style.margin="0",e.style.padding="0",e.style.background="white",e.style.font=window.getComputedStyle(this.$refs.editor).font,e.className=this.$refs.editor.className;for(const[i,n]of this.pages.entries()){const t=this.pages_refs[n.uuid],s=t.cloneNode(!0);s.style="",s.style.position="relative",s.style.padding=this.page_margins,s.style.breakBefore=i?"page":"auto";const a=this.pages_overlay_refs[n.uuid];if(a){const e=a.cloneNode(!0);e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.transform="none",e.style.padding="0",e.style.overflow="hidden",s.prepend(e)}e.append(s)}const t=document.createElement("div");t.className="hidden-print",t.style.position="fixed",t.style.left="0",t.style.top="0",t.style.right="0",t.style.bottom="0",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.background="rgba(255, 255, 255, 0.95)",t.style.cursor="pointer",t.innerHTML='',t.addEventListener("click",this.after_print),e.append(t),document.body=e},after_print(){document.body=this._page_body,this.update_editor_width()}},watch:{page_format_mm:{async handler(){this.update_css_media_style(),await this.reset_content()}},page_margins:{async handler(){await this.reset_content()}},content:{async handler(){this.prevent_next_content_update_from_parent?this.prevent_next_content_update_from_parent=!1:await this.reset_content()},deep:!0}}},b=i(3744);const v=(0,b.Z)(y,[["render",p],["__scopeId","data-v-587217e4"]]);var k=v,w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE0IDc5LjE1Njc5NywgMjAxNC8wOC8yMC0wOTo1MzowMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZ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e64"),e=e(),(0,s.Cn)(),e),C={class:"template"},L=(0,s.uE)('

INTERACTIVE INVOICE

This page is rendered from a "template" Vue.js component.
You can modify the fields highlighted in green and interact with the buttons without having them in the print. Check out InvoiceTemplate.vue
',1),I=x((()=>(0,s._)("thead",null,[(0,s._)("tr",null,[(0,s._)("td",null,"OUR DETAILS"),(0,s._)("td",{style:{"text-align":"right"}},"INVOICE DETAILS")])],-1))),z=x((()=>(0,s._)("td",{contenteditable:""},[(0,s._)("div",null,[(0,s._)("b",null,"MyCompany")]),(0,s._)("div",null,"24 Poazkz Pazoek"),(0,s._)("div",null,"89232 Oijzrazro"),(0,s._)("div",null,"FRIGNEDRY"),(0,s._)("div",null,"AB251648730890")],-1))),M={style:{"min-width":"250px","text-align":"right"}},N=x((()=>(0,s._)("b",null,"Invoice number:",-1))),E=x((()=>(0,s._)("b",null,"Invoice date:",-1))),A=x((()=>(0,s._)("b",null,"Order number:",-1))),T=x((()=>(0,s._)("b",null,"Order date:",-1))),R=x((()=>(0,s._)("b",null,"Your client number:",-1))),P={style:{margin:"10px 0 35px 0"}},U=x((()=>(0,s._)("td",{style:{width:"50%"}},"BILLING ADDRESS",-1))),B={class:"hide-in-print",style:{"margin-left":"10px"}},S=["innerHTML"],D={key:1,contenteditable:""},O=x((()=>(0,s._)("h2",null,"Your order",-1))),V={style:{"margin-top":"10px"},class:"order-table"},H=x((()=>(0,s._)("thead",null,[(0,s._)("tr",{style:{"font-size":"13px"}},[(0,s._)("td",null,"ITEM #"),(0,s._)("td",null,"REFERENCE"),(0,s._)("td",null,"DESIGNATION"),(0,s._)("td",null,"QUANTITY"),(0,s._)("td",null,"UNIT PRICE"),(0,s._)("td",{style:{"text-align":"right"}},"TOTAL PRICE")])],-1))),W=["onClick"],Z={contenteditable:""},Y={contenteditable:""},j={style:{padding:"0","text-align":"center"}},G=["onUpdate:modelValue"],Q={style:{padding:"0"}},q=["onUpdate:modelValue"],J={style:{"text-align":"right"}},K={colspan:"5",style:{"text-align":"right"}},X={colspan:"6",style:{"text-align":"right"}},F={colspan:"6",style:{"text-align":"right"}},$={colspan:"6",style:{"text-align":"right","font-weight":"bold"}},ee=x((()=>(0,s._)("div",{style:{"margin-bottom":"20px"}},"Thank you for your order.",-1))),te=x((()=>(0,s._)("b",null,"Payment method:",-1))),ie=x((()=>(0,s._)("b",null,"Payment term:",-1)));function ne(e,t,i,a,o,r){return(0,s.wg)(),(0,s.iD)("div",C,[L,(0,s._)("table",null,[I,(0,s._)("tbody",null,[(0,s._)("tr",null,[z,(0,s._)("td",M,[(0,s._)("div",null,[N,(0,s.Uk)(),(0,s._)("span",{contenteditable:"",onKeydown:t[0]||(t[0]=(...e)=>r.preventLineBreaks&&r.preventLineBreaks(...e))},(0,l.zw)(i.modelValue.invoice_number),33)]),(0,s._)("div",null,[E,(0,s.Uk)(),(0,s._)("span",{contenteditable:"",onKeydown:t[1]||(t[1]=(...e)=>r.preventLineBreaks&&r.preventLineBreaks(...e))},(0,l.zw)(r.today),33)]),(0,s._)("div",null,[A,(0,s.Uk)(),(0,s._)("span",{contenteditable:"",onKeydown:t[2]||(t[2]=(...e)=>r.preventLineBreaks&&r.preventLineBreaks(...e))},"W210984204",32)]),(0,s._)("div",null,[T,(0,s.Uk)(),(0,s._)("span",{contenteditable:"",onKeydown:t[3]||(t[3]=(...e)=>r.preventLineBreaks&&r.preventLineBreaks(...e))},(0,l.zw)(r.today),33)]),(0,s._)("div",null,[R,(0,s.Uk)(),(0,s._)("span",{contenteditable:"",onKeydown:t[4]||(t[4]=(...e)=>r.preventLineBreaks&&r.preventLineBreaks(...e))},"120948",32)])])])])]),(0,s._)("table",P,[(0,s._)("thead",null,[(0,s._)("tr",null,[U,(0,s._)("td",null,[(0,s.Uk)("SHIPPING ADDRESS "),(0,s._)("label",B,[(0,s.wy)((0,s._)("input",{type:"checkbox","onUpdate:modelValue":t[5]||(t[5]=e=>o.is_shipping_identical=e)},null,512),[[n.e8,o.is_shipping_identical]]),(0,s.Uk)(" Identical ")])])])]),(0,s._)("tbody",null,[(0,s._)("tr",null,[(0,s._)("td",{ref:"billing_address",contenteditable:"",onInput:t[6]||(t[6]=e=>this.billing_address=e.target.innerHTML)},null,544),o.is_shipping_identical?((0,s.wg)(),(0,s.iD)("td",{key:0,innerHTML:o.billing_address,contenteditable:"false"},null,8,S)):((0,s.wg)(),(0,s.iD)("td",D,"Insert custom shipping address"))])])]),O,(0,s._)("table",V,[H,(0,s._)("tbody",null,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(o.items,((e,t)=>((0,s.wg)(),(0,s.iD)("tr",{key:e.key},[(0,s._)("td",null,[(0,s._)("div",{class:"left-btn hide-in-print",onClick:()=>o.items.splice(t,1)},"➖",8,W),(0,s.Uk)((0,l.zw)(t+1),1)]),(0,s._)("td",Z,(0,l.zw)(e.ref),1),(0,s._)("td",Y,(0,l.zw)(e.desc),1),(0,s._)("td",j,[(0,s.wy)((0,s._)("input",{type:"number",min:"1",style:{width:"3em"},"onUpdate:modelValue":t=>e.qty=t},null,8,G),[[n.nr,e.qty]])]),(0,s._)("td",Q,[(0,s.Uk)("€ "),(0,s.wy)((0,s._)("input",{type:"number",step:"0.01",style:{width:"4em"},"onUpdate:modelValue":t=>e.price=t},null,8,q),[[n.nr,e.price]])]),(0,s._)("td",J,"€ "+(0,l.zw)((e.qty*e.price).toFixed(2)),1)])))),128)),(0,s._)("tr",null,[(0,s._)("td",null,[o.items.length<5?((0,s.wg)(),(0,s.iD)("div",{key:0,class:"left-btn hide-in-print",onClick:t[7]||(t[7]=()=>o.items.push({key:Math.random(),ref:"MyRef",desc:"My description",qty:1,price:0}))},"➕")):(0,s.kq)("",!0)]),(0,s._)("td",K,"Sub-total: € "+(0,l.zw)(r.sub_total.toFixed(2)),1)]),(0,s._)("tr",null,[(0,s._)("td",X,[(0,s.Uk)("Taxes: "),(0,s._)("span",{ref:"tax_percent",contenteditable:"",onInput:t[8]||(t[8]=e=>this.tax_percent=parseFloat(e.target.innerText))},null,544),(0,s.Uk)("%")])]),(0,s._)("tr",null,[(0,s._)("td",F,[(0,s.Uk)("Shipping: € "),(0,s._)("span",{ref:"shipping",contenteditable:"",onInput:t[9]||(t[9]=e=>this.shipping=parseFloat(e.target.innerText))},null,544)])]),(0,s._)("tr",null,[(0,s._)("td",$,"Order total: € "+(0,l.zw)(r.total.toFixed(2)),1)])])]),ee,(0,s._)("div",null,[te,(0,s.Uk)(),(0,s._)("span",{contenteditable:"",onKeydown:t[10]||(t[10]=(...e)=>r.preventLineBreaks&&r.preventLineBreaks(...e))},"Bank transfer",32)]),(0,s._)("div",null,[ie,(0,s.Uk)(),(0,s._)("span",{contenteditable:"",onKeydown:t[11]||(t[11]=(...e)=>r.preventLineBreaks&&r.preventLineBreaks(...e))},(0,l.zw)(r.next_month),33)])])}var se={props:{modelValue:Object},data(){return{is_shipping_identical:!0,billing_address:"M. John Doe
98 Ooezfjefoi Laozdij
09823 Ljeiznr
FOPKSOFOF
AC310592815039",items:[{key:Math.random(),ref:"X3000",desc:"My great product",qty:1,price:299}],tax_percent:20,shipping:15}},mounted(){this.$refs.billing_address.innerHTML=this.billing_address,this.$refs.tax_percent.innerHTML=this.tax_percent,this.$refs.shipping.innerHTML=this.shipping+".00"},computed:{today(){var e=new Date;return e.toJSON().slice(0,10).replace(/-/g,".")},next_month(){var e=new Date;return e.setDate(e.getDate()+30),e.toJSON().slice(0,10).replace(/-/g,".")},sub_total(){return this.items.reduce(((e,t)=>e+t.qty*t.price),0)},total(){return this.sub_total*(1+this.tax_percent/100)+this.shipping}},methods:{preventLineBreaks(e){13==e.which&&e.preventDefault()}}};const ae=(0,b.Z)(se,[["render",ne],["__scopeId","data-v-618f9e64"]]);var oe=ae,re=i(2262),le={components:{VueDocumentEditor:k,VueFileToolbarMenu:r.Z},data(){return{content:['

Hello world!

This is a rich-text editor built on top of Vue.js using the native contenteditable browser implementation and some JavaScript trickery to spread content over paper-sized pages.

Built-in functionality includes:

  • Using Vue.js components as interactive page templates (see next page)
  • Word-by-word page splitting with forward and backward propagation (still experimental)
  • Native Print compatible
  • Dynamic document format and margins in millimeters
  • Custom page overlays (headers, footers, page numbers)
  • Page breaks
  • Smart zoom and page display modes
  • Computes text style at caret position

This library may be useful if you design an application that generate documents and you would let the user to modify them slightly before printing / saving, but with limited / interactive possibilities. It does not intend to replace a proper document editor with full functionality.
Make sure this project is suitable to your needs before using it.

This demo adds:

  • The top bar (vue-file-toolbar-menu component) and the functions associated with it
  • Rewritten history stack (undo/redo) compatible with native commands
  • Pinch and trackpad zooming

Check out the Demo.vue file if you need to add these functionalities to your application.

The link below is an example of non-editable block set with contenteditable="false":

View docs on Github, you can\'t edit me.

But you can still edit this.

',{template:(0,re.Xl)(oe),props:{invoice_number:"AB38052985"}},'

Headers / footers example


Page numbers have been added on every page of this document.
Header and footer overlays will be added from page 3 to all subsequent ones.

Check out the overlay method of the Demo.vue file to customize this.','

«

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi. Proin porttitor, orci nec nonummy molestie, enim est eleifend mi, non fermentum diam nisl sit amet erat. Duis semper. Duis arcu massa, scelerisque vitae, consequat in, pretium a, enim. Pellentesque congue. Ut in risus volutpat libero pharetra tempor. Cras vestibulum bibendum augue. Praesent egestas leo in pede. Praesent blandit odio eu enim. Pellentesque sed dui ut augue blandit sodales. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam nibh. Mauris ac mauris sed pede pellentesque fermentum. Maecenas adipiscing ante non diam sodales hendrerit.

Ut velit mauris, egestas sed, gravida nec, ornare ut, mi. Aenean ut orci vel massa suscipit pulvinar. Nulla sollicitudin. Fusce varius, ligula non tempus aliquam, nunc turpis ullamcorper nibh, in tempus sapien eros vitae ligula. Pellentesque rhoncus nunc et augue. Integer id felis. Curabitur aliquet pellentesque diam. Integer quis metus vitae elit lobortis egestas. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi vel erat non mauris convallis vehicula. Nulla et sapien. Integer tortor tellus, aliquam faucibus, convallis id, congue eu, quam. Mauris ullamcorper felis vitae erat. Proin feugiat, augue non elementum posuere, metus purus iaculis lectus, et tristique ligula justo vitae magna.

Aliquam convallis sollicitudin purus. Praesent aliquam, enim at fermentum mollis, ligula massa adipiscing nisl, ac euismod nibh nisl eu lectus. Fusce vulputate sem at sapien. Vivamus leo. Aliquam euismod libero eu enim. Nulla nec felis sed leo placerat imperdiet. Aenean suscipit nulla in justo. Suspendisse cursus rutrum augue. Nulla tincidunt tincidunt mi. Curabitur iaculis, lorem vel rhoncus faucibus, felis magna fermentum augue, et ultricies lacus lorem varius purus. Curabitur eu amet.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi. Proin porttitor, orci nec nonummy molestie, enim est eleifend mi, non fermentum diam nisl sit amet erat. Duis semper. Duis arcu massa, scelerisque vitae, consequat in, pretium a, enim. Pellentesque congue. Ut in risus volutpat libero pharetra tempor. Cras vestibulum bibendum augue. Praesent egestas leo in pede. Praesent blandit odio eu enim. Pellentesque sed dui ut augue blandit sodales. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam nibh. Mauris ac mauris sed pede pellentesque fermentum. Maecenas adipiscing ante non diam sodales hendrerit.

Ut velit mauris, egestas sed, gravida nec, ornare ut, mi. Aenean ut orci vel massa suscipit pulvinar. Nulla sollicitudin. Fusce varius, ligula non tempus aliquam, nunc turpis ullamcorper nibh, in tempus sapien eros vitae ligula. Pellentesque rhoncus nunc et augue. Integer id felis. Curabitur aliquet pellentesque diam. Integer quis metus vitae elit lobortis egestas. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi vel erat non mauris convallis vehicula. Nulla et sapien. Integer tortor tellus, aliquam faucibus, convallis id, congue eu, quam. Mauris ullamcorper felis vitae erat. Proin feugiat, augue non elementum posuere, metus purus iaculis lectus, et tristique ligula justo vitae magna.

Aliquam convallis sollicitudin purus. Praesent aliquam, enim at fermentum mollis, ligula massa adipiscing nisl, ac euismod nibh nisl eu lectus. Fusce vulputate sem at sapien. Vivamus leo. Aliquam euismod libero eu enim. Nulla nec felis sed leo placerat imperdiet. Aenean suscipit nulla in justo. Suspendisse cursus rutrum augue. Nulla tincidunt tincidunt mi. Curabitur iaculis, lorem vel rhoncus faucibus, felis magna fermentum augue, et ultricies lacus lorem varius purus. Curabitur eu amet.

»

','

--- This is a page break. ---

'],zoom:.8,zoom_min:.1,zoom_max:5,page_format_mm:[210,297],page_margins:"10mm 15mm",display:"grid",mounted:!1,undo_count:-1,content_history:[]}},created(){let e=!1,t=!1,i=!1;window.addEventListener("wheel",(e=>{e.ctrlKey&&(e.preventDefault(),this.zoom=Math.min(Math.max(this.zoom-.01*e.deltaY,this.zoom_min),this.zoom_max))}),{passive:!1}),window.addEventListener("gesturestart",(t=>{t.preventDefault(),e=this.zoom})),window.addEventListener("gesturechange",(t=>{t.preventDefault(),i||(this.zoom=Math.min(Math.max(e*t.scale,this.zoom_min),this.zoom_max))})),window.addEventListener("gestureend",(()=>{e=!1})),window.addEventListener("touchstart",(e=>{2==e.touches.length&&(e.preventDefault(),t=Math.hypot(e.touches[0].pageX-e.touches[1].pageX,e.touches[0].pageY-e.touches[1].pageY),i=this.zoom)}),{passive:!1}),window.addEventListener("touchmove",(e=>{if(t&&i){e.preventDefault();let n=i*Math.hypot(e.touches[0].pageX-e.touches[1].pageX,e.touches[0].pageY-e.touches[1].pageY)/t;this.zoom=Math.min(Math.max(n,this.zoom_min),this.zoom_max)}}),{passive:!1}),window.addEventListener("touchend",(()=>{t=!1,i=!1}),{passive:!1});const n=e=>{switch(e&&e.inputType){case"historyUndo":e.preventDefault(),e.stopPropagation(),this.undo();break;case"historyRedo":e.preventDefault(),e.stopPropagation(),this.redo();break}};window.addEventListener("beforeinput",n),window.addEventListener("input",n)},mounted(){this.mounted=!0},computed:{menu(){return[{text:"New",title:"New",icon:"description",click:()=>{confirm("This will create an empty document. Are you sure?")&&(this.content=[""],this.resetContentHistory())}},{text:"Print",title:"Print",icon:"print",click:()=>window.print()},{is:"spacer"},{title:"Undo",icon:"undo",disabled:!this.can_undo,hotkey:this.isMacLike?"command+z":"ctrl+z",click:()=>this.undo()},{title:"Redo",icon:"redo",disabled:!this.can_redo,hotkey:this.isMacLike?"shift+command+z":"ctrl+y",click:()=>this.redo()},{is:"spacer"},{icon:"format_align_left",title:"Align left",active:this.isLeftAligned,disabled:!this.current_text_style,hotkey:this.isMacLike?"shift+command+l":"ctrl+shift+l",click:()=>document.execCommand("justifyLeft")},{icon:"format_align_center",title:"Align center",active:this.isCentered,disabled:!this.current_text_style,hotkey:this.isMacLike?"shift+command+e":"ctrl+shift+e",click:()=>document.execCommand("justifyCenter")},{icon:"format_align_right",title:"Align right",active:this.isRightAligned,disabled:!this.current_text_style,hotkey:this.isMacLike?"shift+command+r":"ctrl+shift+r",click:()=>document.execCommand("justifyRight")},{icon:"format_align_justify",title:"Justify content",active:this.isJustified,disabled:!this.current_text_style,hotkey:this.isMacLike?"shift+command+j":"ctrl+shift+j",click:()=>document.execCommand("justifyFull")},{is:"separator"},{icon:"format_bold",title:"Bold",active:this.isBold,disabled:!this.current_text_style,hotkey:this.isMacLike?"command+b":"ctrl+b",click:()=>document.execCommand("bold")},{icon:"format_italic",title:"Italic",active:this.isItalic,disabled:!this.current_text_style,hotkey:this.isMacLike?"command+i":"ctrl+i",click:()=>document.execCommand("italic")},{icon:"format_underline",title:"Underline",active:this.isUnderline,disabled:!this.current_text_style,hotkey:this.isMacLike?"command+u":"ctrl+u",click:()=>document.execCommand("underline")},{icon:"format_strikethrough",title:"Strike through",active:this.isStrikeThrough,disabled:!this.current_text_style,click:()=>document.execCommand("strikethrough")},{is:"button-color",type:"compact",menu_class:"align-center",disabled:!this.current_text_style,color:this.curColor,update_color:e=>document.execCommand("foreColor",!1,e.hex8)},{is:"separator"},{icon:"format_list_numbered",title:"Numbered list",active:this.isNumberedList,disabled:!this.current_text_style,click:()=>document.execCommand("insertOrderedList")},{icon:"format_list_bulleted",title:"Bulleted list",active:this.isBulletedList,disabled:!this.current_text_style,click:()=>document.execCommand("insertUnorderedList")},{html:"H1",title:"Header 1",active:this.isH1,disabled:!this.current_text_style,click:()=>document.execCommand("formatBlock",!1,"

")},{html:"H2",title:"Header 2",active:this.isH2,disabled:!this.current_text_style,click:()=>document.execCommand("formatBlock",!1,"

")},{html:"H3",title:"Header 3",active:this.isH3,disabled:!this.current_text_style,click:()=>document.execCommand("formatBlock",!1,"

")},{icon:"format_clear",title:"Clear format",disabled:!this.current_text_style,click(){document.execCommand("removeFormat"),document.execCommand("formatBlock",!1,"
")}},{icon:"splitscreen",title:"Page break",disabled:!this.current_text_style,click:()=>this.insertPageBreak()},{is:"spacer"},{text:this.current_format_name,title:"Format",icon:"crop_free",chevron:!0,menu:this.formats.map((([e,t,i])=>({text:e,active:this.page_format_mm[0]==t&&this.page_format_mm[1]==i,click:()=>{this.page_format_mm=[t,i]}}))),menu_width:80,menu_height:280},{text:this.current_margins_name,title:"Margins",icon:"select_all",chevron:!0,menu:this.margins.map((([e,t])=>({text:e+" ("+t+")",active:this.page_margins==t,click:()=>{this.page_margins=t}}))),menu_width:200,menu_class:"align-center"},{text:Math.floor(100*this.zoom)+"%",title:"Zoom",icon:"zoom_in",chevron:!0,menu:[["200%",2],["150%",1.5],["125%",1.25],["100%",1],["75%",.75],["50%",.5],["25%",.25]].map((([e,t])=>({text:e,active:this.zoom==t,click:()=>{this.zoom=t}}))),menu_width:80,menu_height:280,menu_class:"align-center"},{title:"Display",icon:"horizontal"==this.display?"view_column":"vertical"==this.display?"view_stream":"view_module",chevron:!0,menu:[{icon:"view_module",active:"grid"==this.display,click:()=>{this.display="grid"}},{icon:"view_column",active:"horizontal"==this.display,click:()=>{this.display="horizontal"}},{icon:"view_stream",active:"vertical"==this.display,click:()=>{this.display="vertical"}}],menu_width:55,menu_class:"align-right"}]},current_format_name(){const e=this.formats.find((([,e,t])=>this.page_format_mm[0]==e&&this.page_format_mm[1]==t));return e?e[0]:this.page_format_mm[0]+"mm x "+this.page_format_mm[1]+"mm"},formats:()=>[["A0",841,1189],["A0L",1189,841],["A1",594,841],["A1L",841,594],["A2",420,594],["A2L",594,420],["A3",297,420],["A3L",420,297],["A4",210,297],["A4L",297,210],["A5",148,210],["A5L",210,148],["A6",105,148],["A6L",148,105]],current_margins_name(){const e=this.margins.find((([,e])=>this.page_margins==e));return e?e[0]:e[1]},margins:()=>[["Medium","20mm"],["Small","15mm"],["Slim","10mm 15mm"],["Tiny","5mm"]],current_text_style(){return!!this.mounted&&this.$refs.editor.current_text_style},isLeftAligned(){return["start","left","-moz-left"].includes(this.current_text_style.textAlign)},isRightAligned(){return["end","right","-moz-right"].includes(this.current_text_style.textAlign)},isCentered(){return["center","-moz-center"].includes(this.current_text_style.textAlign)},isJustified(){return["justify","justify-all"].includes(this.current_text_style.textAlign)},isBold(){const e=this.current_text_style.fontWeight;return e&&(parseInt(e)>400||0==e.indexOf("bold"))},isItalic(){return"italic"==this.current_text_style.fontStyle},isUnderline(){const e=this.current_text_style.textDecorationStack;return e&&e.some((e=>0==e.indexOf("underline")))},isStrikeThrough(){const e=this.current_text_style.textDecorationStack;return e&&e.some((e=>0==e.indexOf("line-through")))},isNumberedList(){return this.current_text_style.isList&&"decimal"==this.current_text_style.listStyleType},isBulletedList(){return this.current_text_style.isList&&["disc","circle"].includes(this.current_text_style.listStyleType)},isH1(){return 1==this.current_text_style.headerLevel},isH2(){return 2==this.current_text_style.headerLevel},isH3(){return 3==this.current_text_style.headerLevel},curColor(){return this.current_text_style.color||"transparent"},isMacLike:()=>/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),can_undo(){return this.undo_count>0},can_redo(){return this.content_history.length-this.undo_count-1>0}},methods:{overlay(e,t){let i='
Page '+e+" of "+t+"
";return e>=3&&(i+='
MYCOMPANY example.com /// This is a custom header overlay
',i+='
MY COMPANY - example.com /// This is a custom footer overlay
'),i},undo(){this.can_undo&&(this._mute_next_content_watcher=!0,this.content=this.content_history[--this.undo_count])},redo(){this.can_redo&&(this._mute_next_content_watcher=!0,this.content=this.content_history[++this.undo_count])},resetContentHistory(){this.content_history=[],this.undo_count=-1},async insertPageBreak(){document.execCommand("insertParagraph");const e="###PB###";document.execCommand("insertText",!1,e),await this.$nextTick(),await this.$nextTick();const t=new RegExp("<(p|div|h\\d)( [^/>]+)*>(<[^/>]+>)*"+e);for(let i=0;i"+a),void this.content.splice(i,1,n.substr(0,s.index),t+a)}}for(let i=0;i=a)&&Object.keys(i.O).every((function(e){return i.O[e](n[l])}))?n.splice(l--,1):(r=!1,a0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[n,s,a]}}(),function(){i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){i.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){var e={143:0};i.O.j=function(t){return 0===e[t]};var t=function(t,n){var s,a,o=n[0],r=n[1],l=n[2],c=0;if(o.some((function(t){return 0!==e[t]}))){for(s in r)i.o(r,s)&&(i.m[s]=r[s]);if(l)var d=l(i)}for(t&&t(n);c\n
\n\n \n \n\n \n \n \n\n
\n\n\n\n\n\n\n","\n\n\n\n\n","\n/**\n * Utility function that acts like an Array.filter on childNodes of \"container\"\n * @param {HTMLElement} container \n * @param {string} s_tag \n */\nfunction find_sub_child_sibling_node (container, s_tag){\n if(!container || !s_tag) return false;\n const child_nodes = container.childNodes;\n for(let i = 0; i < child_nodes.length; i++) {\n if(child_nodes[i].s_tag == s_tag) return child_nodes[i];\n }\n return false;\n}\n\n\n/**\n * This function moves every sub-child of argument \"child\" to the start of the \"child_sibling\"\n * argument, beginning from the last child, with word splitting and format preserving.\n * Typically, \"child\" is the current page which content overflows, and \"child_sibling\" is the \n * next page.\n * @param {HTMLElement} child Element to take children from (current page)\n * @param {HTMLElement} child_sibling Element to copy children to (next page)\n * @param {Function} stop_condition Check function that returns a boolean if content doesn't overflow anymore\n * @param {Boolean} not_first_child Should be unset. Used internally to let at least one child in the page\n */\nfunction move_children_forward_recursively (child, child_sibling, stop_condition, not_first_child) {\n\n // if the child still has nodes and the current page still overflows\n while(child.childNodes.length && !stop_condition()){\n\n // check if page has only one child tree left\n not_first_child = not_first_child || (child.childNodes.length != 1);\n\n // select the last sub-child\n const sub_child = child.lastChild;\n\n // if it is a text node, move its content to next page word(/space) by word\n if(sub_child.nodeType == Node.TEXT_NODE){\n const sub_child_hashes = sub_child.textContent.match(/(\\s|\\S+)/g);\n const sub_child_continuation = document.createTextNode('');\n child_sibling.prepend(sub_child_continuation);\n const l = sub_child_hashes ? sub_child_hashes.length : 0;\n for(let i = 0; i < l; i++) {\n if(i == l - 1 && !not_first_child) return; // never remove the first word of the page\n sub_child.textContent = sub_child_hashes.slice(0, l - i - 1).join('');\n sub_child_continuation.textContent = sub_child_hashes.slice(l - i - 1, l).join('');\n if(stop_condition()) return;\n }\n }\n\n // if it is a node with no content (e.g. ), or a header title (e.g.

) we simply move it\n else if(!sub_child.childNodes.length || sub_child.tagName.match(/h\\d/i)) {\n // just prevent moving the last child of the page\n if(!not_first_child){\n console.log(\"Move-forward: first child reached with no stop condition. Aborting\");\n return;\n }\n child_sibling.prepend(sub_child);\n }\n\n // for every other node that is not text and not the first child, clone it recursively to next page\n else {\n // check if sub child has already been cloned before\n let sub_child_sibling = find_sub_child_sibling_node(child_sibling, sub_child.s_tag);\n \n // if not, create it and watermark the relationship with a random tag\n if(!sub_child_sibling) {\n if(!sub_child.s_tag) {\n const new_random_tag = Math.random().toString(36).slice(2, 8);\n sub_child.s_tag = new_random_tag;\n }\n sub_child_sibling = sub_child.cloneNode(false);\n sub_child_sibling.s_tag = sub_child.s_tag;\n child_sibling.prepend(sub_child_sibling);\n }\n \n // then move/clone its children and sub-children recursively\n move_children_forward_recursively(sub_child, sub_child_sibling, stop_condition, not_first_child);\n sub_child_sibling.normalize(); // merge consecutive text nodes\n }\n\n // if sub_child was a container that was cloned and is now empty, we clean it\n if(child.contains(sub_child)){\n if(sub_child.childNodes.length == 0 || sub_child.innerHTML == \"\") child.removeChild(sub_child);\n else if(!stop_condition()) {\n // the only case when it can be non empty should be when stop_condition is now true\n console.log(\"sub_child:\", sub_child, \"that is in child:\", child);\n throw Error(\"Document editor is trying to remove a non-empty sub-child. This \"\n + \"is a bug and should not happen. Please report a repeatable set of actions that \"\n + \"leaded to this error to https://github.com/motla/vue-document-editor/issues/new\");\n }\n }\n }\n}\n\n\n\n/**\n * This function moves the first element from \"next_page_html_div\" to the end of \"page_html_div\", with\n * merging sibling tags previously watermarked by \"move_children_forward_recursively\", if any.\n * @param {HTMLElement} page_html_div Current page element\n * @param {HTMLElement} next_page_html_div Next page element\n * @param {Function} stop_condition Check function that returns a boolean if content overflows\n */\nfunction move_children_backwards_with_merging (page_html_div, next_page_html_div, stop_condition) {\n\n // loop until content is overflowing\n while(!stop_condition()){\n\n // find first child of next page\n const first_child = next_page_html_div.firstChild;\n\n // merge it at the end of the current page\n var merge_recursively = (container, elt) => {\n // check if child had been splitted (= has a sibling on previous page)\n const elt_sibling = find_sub_child_sibling_node(container, elt.s_tag);\n if(elt_sibling && elt.childNodes.length) {\n // then dig for deeper children, in case of\n merge_recursively(elt_sibling, elt.firstChild);\n }\n // else move the child inside the right container at current page\n else {\n container.append(elt);\n container.normalize();\n }\n }\n merge_recursively(page_html_div, first_child);\n }\n}\n\nexport {\n move_children_forward_recursively,\n move_children_backwards_with_merging\n};","import { render } from \"./DocumentEditor.vue?vue&type=template&id=587217e4&scoped=true\"\nimport script from \"./DocumentEditor.vue?vue&type=script&lang=js\"\nexport * from \"./DocumentEditor.vue?vue&type=script&lang=js\"\n\nimport \"./DocumentEditor.vue?vue&type=style&index=0&id=587217e4&lang=css\"\nimport \"./DocumentEditor.vue?vue&type=style&index=1&id=587217e4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/Users/romain/Developer/vue-document-editor/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-587217e4\"]])\n\nexport default __exports__","\n\n\n\n","import { render } from \"./InvoiceTemplate.vue?vue&type=template&id=618f9e64&scoped=true\"\nimport script from \"./InvoiceTemplate.vue?vue&type=script&lang=js\"\nexport * from \"./InvoiceTemplate.vue?vue&type=script&lang=js\"\n\nimport \"./InvoiceTemplate.vue?vue&type=style&index=0&id=618f9e64&scoped=true&lang=css\"\n\nimport exportComponent from \"/Users/romain/Developer/vue-document-editor/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-618f9e64\"]])\n\nexport default __exports__","import { render } from \"./Demo.vue?vue&type=template&id=3d8807e0&scoped=true\"\nimport script from \"./Demo.vue?vue&type=script&lang=js\"\nexport * from \"./Demo.vue?vue&type=script&lang=js\"\n\nimport \"./Demo.vue?vue&type=style&index=0&id=3d8807e0&lang=css\"\nimport \"./Demo.vue?vue&type=style&index=1&id=3d8807e0&scoped=true&lang=css\"\n\nimport exportComponent from \"/Users/romain/Developer/vue-document-editor/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3d8807e0\"]])\n\nexport default __exports__","import { createApp } from 'vue'\nimport Demo from './Demo/Demo.vue'\n\nconst app = createApp(Demo);\n\n// enable devtools for the demo\napp.config.devtools = true;\n\napp.mount('#app');","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t143: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkvue_document_editor\"] = self[\"webpackChunkvue_document_editor\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [998], function() { return __webpack_require__(7411); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["class","_createElementBlock","_createVNode","_component_vue_file_toolbar_menu","content","$options","_component_vue_document_editor","ref","$data","$event","overlay","zoom","page_format_mm","page_margins","display","$props","_Fragment","_renderList","page","page_idx","key","uuid","elt","innerHTML","length","style","_createElementVNode","contenteditable","onInput","onKeyup","onKeydown","content_idx","template","_createBlock","_resolveDynamicComponent","props","find_sub_child_sibling_node","container","s_tag","child_nodes","childNodes","i","move_children_forward_recursively","child","child_sibling","stop_condition","not_first_child","sub_child","lastChild","nodeType","Node","TEXT_NODE","sub_child_hashes","textContent","match","sub_child_continuation","document","createTextNode","prepend","l","slice","join","tagName","console","log","sub_child_sibling","new_random_tag","Math","random","toString","cloneNode","normalize","contains","removeChild","Error","move_children_backwards_with_merging","page_html_div","next_page_html_div","first_child","firstChild","merge_recursively","elt_sibling","append","type","Array","required","String","default","editable","Boolean","Function","Number","data","pages","pages_refs","pages_overlay_refs","pages_height","editor_width","prevent_next_content_update_from_parent","current_text_style","mounted","this","update_editor_width","update_css_media_style","reset_content","window","addEventListener","process_current_text_style","before_print","after_print","beforeUpdate","beforeUnmount","removeEventListener","computed","css_media_style","createElement","head","appendChild","methods","new_uuid","async","reset_in_progress","$emit","map","$nextTick","first_page_elt","$refs","clientHeight","page_elt","fit_content_over_pages","blur","fit_in_progress","body","splice","selection","getSelection","start_marker","end_marker","rangeCount","range","getRangeAt","insertNode","collapse","prev_page_modified_flag","next_page","next_page_elt","prev_innerHTML","createRange","setStart","setEnd","removeAllRanges","addRange","parentElement","e","emit_new_content","inputType","keydown","keyCode","is_text","replace","preventDefault","removed_pages_flag","new_content","item","filter","children","toLowerCase","getAttribute","sel","focusNode","element","isContentEditable","getComputedStyle","textDecorationStack","headerLevel","isList","parent","parent_style","push","textDecoration","toUpperCase","page_style","allow_overflow","px_in_mm","page_width","page_spacing_mm","page_with_plus_spacing","view_padding","inner_width","page_column","x_pos","x_ofx","left_px","top_mm","bkg_width_mm","bkg_height_mm","nb_pages_x","floor","max","nb_pages_y","ceil","position","left","top","width","padding","transform","height","editor","classList","add","clientWidth","remove","_page_body","print_body","margin","background","font","className","entries","page_clone","breakBefore","overlay_elts","overlay_clone","overflow","return_overlay","right","bottom","alignItems","justifyContent","cursor","watch","deep","__exports__","colspan","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_6","invoice_number","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_12","billing_address","target","_hoisted_16","_hoisted_18","onClick","_hoisted_19","_toDisplayString","desc","min","qty","step","price","toFixed","tax_percent","parseFloat","innerText","shipping","_hoisted_31","_hoisted_32","_hoisted_33","modelValue","Object","is_shipping_identical","items","today","date","Date","toJSON","next_month","setDate","getDate","sub_total","reduce","acc","total","preventLineBreaks","which","components","VueDocumentEditor","VueFileToolbarMenu","markRaw","InvoiceTemplate","zoom_min","zoom_max","undo_count","content_history","created","start_zoom_gesture","start_dist_touch","start_zoom_touch","ctrlKey","deltaY","passive","scale","touches","hypot","pageX","pageY","manage_undo_redo","stopPropagation","undo","redo","menu","text","title","icon","click","confirm","resetContentHistory","print","is","disabled","can_undo","hotkey","isMacLike","can_redo","active","isLeftAligned","execCommand","isCentered","isRightAligned","isJustified","isBold","isItalic","isUnderline","isStrikeThrough","menu_class","color","curColor","update_color","new_color","hex8","isNumberedList","isBulletedList","html","isH1","isH2","isH3","insertPageBreak","current_format_name","chevron","formats","w","h","menu_width","menu_height","current_margins_name","margins","value","format","find","width_mm","height_mm","includes","textAlign","fontWeight","parseInt","indexOf","fontStyle","stack","some","d","listStyleType","test","navigator","platform","_mute_next_content_watcher","marker","regexp","RegExp","exec","tags_open","content_plus_tags_close","substr","index","immediate","handler","render","app","createApp","Demo","config","devtools","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","keys","every","r","definition","o","defineProperty","enumerable","get","g","globalThis","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","id","chunkLoadingGlobal","self","forEach","bind","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/docs/js/app.8b43990b.js b/docs/js/app.8b43990b.js new file mode 100644 index 0000000..17130a7 --- /dev/null +++ b/docs/js/app.8b43990b.js @@ -0,0 +1,2 @@ +(function(){"use strict";var e={9121:function(e,t,i){var n=i(9963),s=i(6252);const a={class:"main"};function o(e,t,i,n,o,r){const l=(0,s.up)("vue-file-toolbar-menu"),c=(0,s.up)("vue-document-editor");return(0,s.wg)(),(0,s.iD)("div",a,[(0,s.Wm)(l,{content:r.menu,class:"bar"},null,8,["content"]),(0,s.Wm)(c,{class:"editor",ref:"editor",content:o.content,"onUpdate:content":t[0]||(t[0]=e=>o.content=e),overlay:r.overlay,zoom:o.zoom,page_format_mm:o.page_format_mm,page_margins:o.page_margins,display:o.display},null,8,["content","overlay","zoom","page_format_mm","page_margins","display"])])}var r=i(3177),l=i(3577);const c={class:"editor",ref:"editor"},d={key:0,class:"overlays",ref:"overlays"},u=["innerHTML"],m=["contenteditable"];function h(e,t,i,n,a,o){return(0,s.wg)(),(0,s.iD)("div",c,[i.overlay?((0,s.wg)(),(0,s.iD)("div",d,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(a.pages,((e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:"overlay",key:e.uuid+"-overlay",ref_for:!0,ref:t=>a.pages_overlay_refs[e.uuid]=t,innerHTML:i.overlay(t+1,a.pages.length),style:(0,l.j5)(o.page_style(t,!1))},null,12,u)))),128))],512)):(0,s.kq)("",!0),(0,s._)("div",{class:"content",ref:"content",contenteditable:i.editable,style:(0,l.j5)(o.page_style(-1)),onInput:t[0]||(t[0]=(...e)=>o.input&&o.input(...e)),onKeyup:t[1]||(t[1]=(...e)=>o.process_current_text_style&&o.process_current_text_style(...e)),onKeydown:t[2]||(t[2]=(...e)=>o.keydown&&o.keydown(...e))},null,44,m)],512)}i(7658);function p(e,t){if(!e||!t)return!1;const i=e.childNodes;for(let n=0;n{const i=p(e,t.s_tag);i&&t.childNodes.length?n(i,t.firstChild):(e.append(t),e.normalize())};n(e,i)}}var _={props:{content:{type:Array,required:!0},display:{type:String,default:"grid"},editable:{type:Boolean,default:!0},overlay:Function,page_format_mm:{type:Array,default:()=>[210,297]},page_margins:{type:String,default:"10mm 15mm"},zoom:{type:Number,default:1}},data(){return{pages:[],pages_overlay_refs:{},pages_height:0,editor_width:0,prevent_next_content_update_from_parent:!1,current_text_style:!1,printing_mode:!1}},mounted(){this.update_editor_width(),this.update_css_media_style(),this.reset_content(),window.addEventListener("resize",this.update_editor_width),window.addEventListener("click",this.process_current_text_style),window.addEventListener("beforeprint",this.before_print),window.addEventListener("afterprint",this.after_print)},beforeUpdate(){this.pages_overlay_refs=[]},beforeUnmount(){window.removeEventListener("resize",this.update_editor_width),window.removeEventListener("click",this.process_current_text_style),window.removeEventListener("beforeprint",this.before_print),window.removeEventListener("afterprint",this.after_print)},computed:{css_media_style(){const e=document.createElement("style");return document.head.appendChild(e),e}},methods:{new_uuid:()=>Math.random().toString(36).slice(-5),reset_content(){if(this.reset_in_progress)return;if(this.reset_in_progress=!0,!this.content.length)return this.reset_in_progress=!1,void this.$emit("update:content",[""]);this.pages=this.content.map(((e,t)=>({uuid:this.new_uuid(),content_idx:t,template:e.template,props:e.props}))),this.update_pages_elts();const e=this.pages[0].elt;this.$refs.content.contains(e)||this.$refs.content.appendChild(e),this.pages_height=e.clientHeight+1;for(const t of this.pages){if(this.content[t.content_idx]){if("string"==typeof this.content[t.content_idx])t.elt.innerHTML="
"+this.content[t.content_idx]+"
";else if(t.template){const e=(0,n.MW)(t.template);customElements.define("component-"+t.uuid,e),t.elt.appendChild(new e({modelValue:t.props}))}}else t.elt.innerHTML="

";this.$refs.content.contains(t.elt)||this.$refs.content.appendChild(t.elt)}this.fit_content_over_pages(),this.$refs.content.blur(),this.reset_in_progress=!1},fit_content_over_pages(){if(!this.pages_height)return;if(this.fit_in_progress)return;this.fit_in_progress=!0;for(let s=this.pages.length-1;s>=0;s--){const e=this.pages[s];e.elt&&document.body.contains(e.elt)||this.pages.splice(s,1)}if(!this.pages.length)return void this.$emit("update:content",[""]);const e=window.getSelection(),t=document.createElement("null"),i=document.createElement("null");if(e.rangeCount){const n=e.getRangeAt(0);n.insertNode(t),n.collapse(!1),n.insertNode(i)}let n=!1;for(let s=0;s!i.childNodes.length||e.elt.clientHeight>this.pages_height)),e.elt.clientHeight>this.pages_height&&(t&&t.content_idx==e.content_idx||(t={uuid:this.new_uuid(),content_idx:e.content_idx},this.pages.splice(s+1,0,t),this.update_pages_elts(),i=t.elt),g(e.elt,i,(()=>e.elt.clientHeight<=this.pages_height))),i&&t.content_idx==e.content_idx&&!i.childNodes.length&&this.pages.splice(s+1,1)),this.update_pages_elts()}if(document.body.contains(t)){const n=document.createRange();n.setStart(t,0),document.body.contains(i)&&n.setEnd(i,0),e.removeAllRanges(),e.addRange(n)}t.parentElement&&t.parentElement.removeChild(t),i.parentElement&&i.parentElement.removeChild(i);for(const s of this.pages)s.template||s.elt.normalize(),s.prev_innerHTML=s.elt.innerHTML;this.fit_in_progress=!1},input(e){e&&(this.fit_content_over_pages(),this.emit_new_content(),"insertText"!=e.inputType&&this.process_current_text_style())},keydown(e){if(8==e.keyCode&&this.content.length<=1){const t=!(!this.content[0]||"string"!=typeof this.content[0])&&this.content[0].replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi,"");t||e.preventDefault()}},emit_new_content(){let e=!1;const t=this.content.map(((t,i)=>{const n=this.pages.filter((e=>e.content_idx==i));return n.length?"string"==typeof t?n.map((e=>{let t=e.elt;while(1==t.children.length&&t.firstChild.tagName&&"div"==t.firstChild.tagName.toLowerCase()&&!t.firstChild.getAttribute("style"))t=t.firstChild;return t.innerHTML})).join("")||!1:{template:t.template,props:{...t.props}}:(e=!0,!1)})).filter((e=>0!=e));e||(this.prevent_next_content_update_from_parent=!0),this.$emit("update:content",t)},process_current_text_style(){let e=!1;const t=window.getSelection();if(t.focusNode){const i=t.focusNode.tagName?t.focusNode:t.focusNode.parentElement;if(i&&i.isContentEditable){e=window.getComputedStyle(i),e.textDecorationStack=[],e.headerLevel=0,e.isList=!1;let t=i;while(t){const i=window.getComputedStyle(t);if(e.textDecorationStack.push(i.textDecoration),"list-item"==i.display&&(e.isList=!0),!e.headerLevel)for(let n=1;n<=6;n++)if(t.tagName.toUpperCase()=="H"+n){e.headerLevel=n;break}t=t.parentElement}}}this.current_text_style=e},page_style(e,t){const i=.2645833333333,n=this.page_format_mm[0]/i,s=10,a=(s+this.page_format_mm[0])*this.zoom/i,o=20,r=this.editor_width-2*o;let l,c,d,u,m,h,p,g=1;if("horizontal"==this.display)r>this.pages.length*a?(g=Math.floor(r/a),u=r/(2*g)*(1+2*e)-n/2):(g=this.pages.length,u=a*e+n/2*(this.zoom-1)),m=0,h=this.zoom*(this.page_format_mm[0]*g+(g-1)*s),p=this.page_format_mm[1]*this.zoom;else{g=Math.floor(r/a),(g<1||"vertical"==this.display)&&(g=1),l=e%g,c=r/(2*g)*(1+2*l)-n/2,d=Math.max(0,(n*this.zoom-r)/2),u=c+d,m=(this.page_format_mm[1]+s)*this.zoom*Math.floor(e/g);const t=Math.ceil(this.pages.length/g);h=this.zoom*(this.page_format_mm[0]*g+(g-1)*s),p=this.zoom*(this.page_format_mm[1]*t+(t-1)*s)}if(e>=0){const e={position:"absolute",left:"calc("+u+"px + "+o+"px)",top:"calc("+m+"mm + "+o+"px)",width:this.page_format_mm[0]+"mm",padding:this.page_margins,transform:"scale("+this.zoom+")"};return e[t?"minHeight":"height"]=this.page_format_mm[1]+"mm",e}return{width:"calc("+h+"mm + "+2*o+"px)",height:"calc("+p+"mm + "+2*o+"px)"}},css_to_string:e=>Object.entries(e).map((([e,t])=>e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+":"+t)).join(";"),update_pages_elts(){for(const e of this.$refs.content.children)this.pages.find((t=>t.elt==e))||e.remove();for(const[e,t]of this.pages.entries()){if(!t.elt){t.elt=document.createElement("div"),t.elt.className="page";const i=this.pages[e+1];this.$refs.content.insertBefore(t.elt,i?i.elt:null)}t.elt.dataset.contentIdx=t.content_idx,this.printing_mode||(t.elt.style=Object.entries(this.page_style(e,!t.template)).map((([e,t])=>e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+":"+t)).join(";")),t.elt.contentEditable=!(!this.editable||t.template)}},update_editor_width(){this.$refs.editor.classList.add("hide_children"),this.editor_width=this.$refs.editor.clientWidth,this.update_pages_elts(),this.$refs.editor.classList.remove("hide_children")},update_css_media_style(){this.css_media_style.innerHTML="@media print { @page { size: "+this.page_format_mm[0]+"mm "+this.page_format_mm[1]+"mm; margin: 0 !important; } .hidden-print { display: none !important; } }"},before_print(){this.printing_mode=!0,this._page_body=document.body;const e=document.createElement("body");e.style.margin="0",e.style.padding="0",e.style.background="white",e.style.font=window.getComputedStyle(this.$refs.editor).font,e.className=this.$refs.editor.className;for(const[i,n]of this.pages.entries()){n.elt.style="",n.elt.style.position="relative",n.elt.style.padding=this.page_margins,n.elt.style.breakBefore=i?"page":"auto";const t=this.pages_overlay_refs[n.uuid];t&&(t.style.position="absolute",t.style.left="0",t.style.top="0",t.style.transform="none",t.style.padding="0",t.style.overflow="hidden",n.elt.prepend(t)),e.append(n.elt)}const t=document.createElement("div");t.className="hidden-print",t.style.position="fixed",t.style.left="0",t.style.top="0",t.style.right="0",t.style.bottom="0",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.background="rgba(255, 255, 255, 0.95)",t.style.cursor="pointer",t.innerHTML='',t.addEventListener("click",this.after_print),e.append(t),document.body=e},after_print(){this.printing_mode=!1;for(const[e,t]of this.pages.entries()){t.elt.style=this.css_to_string(this.page_style(e,!t.template)),this.$refs.content.append(t.elt);const i=this.pages_overlay_refs[t.uuid];i&&(i.style=this.css_to_string(this.page_style(e,!1)),this.$refs.overlays.append(i))}document.body=this._page_body}},watch:{page_format_mm:{handler(){this.update_css_media_style(),this.reset_content()}},page_margins:{handler(){this.reset_content()}},content:{handler(){this.prevent_next_content_update_from_parent?this.prevent_next_content_update_from_parent=!1:this.reset_content()},deep:!0}}},y=i(3744);const b=(0,y.Z)(_,[["render",h],["__scopeId","data-v-68da239e"]]);var v=b,x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE0IDc5LjE1Njc5NywgMjAxNC8wOC8yMC0wOTo1MzowMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6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SuQmCC";const k=e=>((0,s.dD)("data-v-92e7f4a0"),e=e(),(0,s.Cn)(),e),w={class:"template"},C=(0,s.uE)('

INTERACTIVE INVOICE

This page is rendered from a "template" Vue.js component.
You can modify the fields highlighted in green and interact with the buttons without having them in the print. Check out InvoiceTemplate.ce.vue
',1),I=k((()=>(0,s._)("thead",null,[(0,s._)("tr",null,[(0,s._)("td",null,"OUR DETAILS"),(0,s._)("td",{style:{"text-align":"right"}},"INVOICE DETAILS")])],-1))),L=k((()=>(0,s._)("td",{contenteditable:""},[(0,s._)("div",null,[(0,s._)("b",null,"MyCompany")]),(0,s._)("div",null,"24 Poazkz Pazoek"),(0,s._)("div",null,"89232 Oijzrazro"),(0,s._)("div",null,"FRIGNEDRY"),(0,s._)("div",null,"AB251648730890")],-1))),z={style:{"min-width":"250px","text-align":"right"}},M=k((()=>(0,s._)("b",null,"Invoice number:",-1))),E=k((()=>(0,s._)("b",null,"Invoice date:",-1))),N=k((()=>(0,s._)("b",null,"Order number:",-1))),A=k((()=>(0,s._)("b",null,"Order date:",-1))),T=k((()=>(0,s._)("b",null,"Your client number:",-1))),R={style:{margin:"10px 0 35px 0"}},P=k((()=>(0,s._)("td",{style:{width:"50%"}},"BILLING ADDRESS",-1))),B={class:"hide-in-print",style:{"margin-left":"10px"}},U=["innerHTML"],S={key:1,contenteditable:""},D=k((()=>(0,s._)("h2",null,"Your order",-1))),O={style:{"margin-top":"10px"},class:"order-table"},V=k((()=>(0,s._)("thead",null,[(0,s._)("tr",{style:{"font-size":"13px"}},[(0,s._)("td",null,"ITEM #"),(0,s._)("td",null,"REFERENCE"),(0,s._)("td",null,"DESIGNATION"),(0,s._)("td",null,"QUANTITY"),(0,s._)("td",null,"UNIT PRICE"),(0,s._)("td",{style:{"text-align":"right"}},"TOTAL PRICE")])],-1))),W=["onClick"],H={contenteditable:""},Z={contenteditable:""},j={style:{padding:"0","text-align":"center"}},Y=["onUpdate:modelValue"],G={style:{padding:"0"}},Q=["onUpdate:modelValue"],q={style:{"text-align":"right"}},J={colspan:"5",style:{"text-align":"right"}},K={colspan:"6",style:{"text-align":"right"}},X={colspan:"6",style:{"text-align":"right"}},F={colspan:"6",style:{"text-align":"right","font-weight":"bold"}},$=k((()=>(0,s._)("div",{style:{"margin-bottom":"20px"}},"Thank you for your order.",-1))),ee=k((()=>(0,s._)("b",null,"Payment method:",-1))),te=k((()=>(0,s._)("b",null,"Payment term:",-1)));function ie(e,t,i,a,o,r){return(0,s.wg)(),(0,s.iD)("div",w,[C,(0,s._)("table",null,[I,(0,s._)("tbody",null,[(0,s._)("tr",null,[L,(0,s._)("td",z,[(0,s._)("div",null,[M,(0,s.Uk)(),(0,s._)("span",{contenteditable:"",onKeydown:t[0]||(t[0]=(...e)=>r.preventLineBreaks&&r.preventLineBreaks(...e))},(0,l.zw)(i.modelValue.invoice_number),33)]),(0,s._)("div",null,[E,(0,s.Uk)(),(0,s._)("span",{contenteditable:"",onKeydown:t[1]||(t[1]=(...e)=>r.preventLineBreaks&&r.preventLineBreaks(...e))},(0,l.zw)(r.today),33)]),(0,s._)("div",null,[N,(0,s.Uk)(),(0,s._)("span",{contenteditable:"",onKeydown:t[2]||(t[2]=(...e)=>r.preventLineBreaks&&r.preventLineBreaks(...e))},"W210984204",32)]),(0,s._)("div",null,[A,(0,s.Uk)(),(0,s._)("span",{contenteditable:"",onKeydown:t[3]||(t[3]=(...e)=>r.preventLineBreaks&&r.preventLineBreaks(...e))},(0,l.zw)(r.today),33)]),(0,s._)("div",null,[T,(0,s.Uk)(),(0,s._)("span",{contenteditable:"",onKeydown:t[4]||(t[4]=(...e)=>r.preventLineBreaks&&r.preventLineBreaks(...e))},"120948",32)])])])])]),(0,s._)("table",R,[(0,s._)("thead",null,[(0,s._)("tr",null,[P,(0,s._)("td",null,[(0,s.Uk)("SHIPPING ADDRESS "),(0,s._)("label",B,[(0,s.wy)((0,s._)("input",{type:"checkbox","onUpdate:modelValue":t[5]||(t[5]=e=>o.is_shipping_identical=e)},null,512),[[n.e8,o.is_shipping_identical]]),(0,s.Uk)(" Identical ")])])])]),(0,s._)("tbody",null,[(0,s._)("tr",null,[(0,s._)("td",{ref:"billing_address",contenteditable:"",onInput:t[6]||(t[6]=e=>this.billing_address=e.target.innerHTML)},null,544),o.is_shipping_identical?((0,s.wg)(),(0,s.iD)("td",{key:0,innerHTML:o.billing_address,contenteditable:"false"},null,8,U)):((0,s.wg)(),(0,s.iD)("td",S,"Insert custom shipping address"))])])]),D,(0,s._)("table",O,[V,(0,s._)("tbody",null,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(o.items,((e,t)=>((0,s.wg)(),(0,s.iD)("tr",{key:e.key},[(0,s._)("td",null,[(0,s._)("div",{class:"left-btn hide-in-print",onClick:()=>o.items.splice(t,1)},"➖",8,W),(0,s.Uk)((0,l.zw)(t+1),1)]),(0,s._)("td",H,(0,l.zw)(e.ref),1),(0,s._)("td",Z,(0,l.zw)(e.desc),1),(0,s._)("td",j,[(0,s.wy)((0,s._)("input",{type:"number",min:"1",style:{width:"3em"},"onUpdate:modelValue":t=>e.qty=t},null,8,Y),[[n.nr,e.qty]])]),(0,s._)("td",G,[(0,s.Uk)("€ "),(0,s.wy)((0,s._)("input",{type:"number",step:"0.01",style:{width:"4em"},"onUpdate:modelValue":t=>e.price=t},null,8,Q),[[n.nr,e.price]])]),(0,s._)("td",q,"€ "+(0,l.zw)((e.qty*e.price).toFixed(2)),1)])))),128)),(0,s._)("tr",null,[(0,s._)("td",null,[o.items.length<5?((0,s.wg)(),(0,s.iD)("div",{key:0,class:"left-btn hide-in-print",onClick:t[7]||(t[7]=()=>o.items.push({key:Math.random(),ref:"MyRef",desc:"My description",qty:1,price:0}))},"➕")):(0,s.kq)("",!0)]),(0,s._)("td",J,"Sub-total: € "+(0,l.zw)(r.sub_total.toFixed(2)),1)]),(0,s._)("tr",null,[(0,s._)("td",K,[(0,s.Uk)("Taxes: "),(0,s._)("span",{ref:"tax_percent",contenteditable:"",onInput:t[8]||(t[8]=e=>this.tax_percent=parseFloat(e.target.innerText))},null,544),(0,s.Uk)("%")])]),(0,s._)("tr",null,[(0,s._)("td",X,[(0,s.Uk)("Shipping: € "),(0,s._)("span",{ref:"shipping",contenteditable:"",onInput:t[9]||(t[9]=e=>this.shipping=parseFloat(e.target.innerText))},null,544)])]),(0,s._)("tr",null,[(0,s._)("td",F,"Order total: € "+(0,l.zw)(r.total.toFixed(2)),1)])])]),$,(0,s._)("div",null,[ee,(0,s.Uk)(),(0,s._)("span",{contenteditable:"",onKeydown:t[10]||(t[10]=(...e)=>r.preventLineBreaks&&r.preventLineBreaks(...e))},"Bank transfer",32)]),(0,s._)("div",null,[te,(0,s.Uk)(),(0,s._)("span",{contenteditable:"",onKeydown:t[11]||(t[11]=(...e)=>r.preventLineBreaks&&r.preventLineBreaks(...e))},(0,l.zw)(r.next_month),33)])])}var ne={props:{modelValue:Object},data(){return{is_shipping_identical:!0,billing_address:"M. John Doe
98 Ooezfjefoi Laozdij
09823 Ljeiznr
FOPKSOFOF
AC310592815039",items:[{key:Math.random(),ref:"X3000",desc:"My great product",qty:1,price:299}],tax_percent:20,shipping:15}},mounted(){this.$refs.billing_address.innerHTML=this.billing_address,this.$refs.tax_percent.innerHTML=this.tax_percent,this.$refs.shipping.innerHTML=this.shipping+".00"},computed:{today(){var e=new Date;return e.toJSON().slice(0,10).replace(/-/g,".")},next_month(){var e=new Date;return e.setDate(e.getDate()+30),e.toJSON().slice(0,10).replace(/-/g,".")},sub_total(){return this.items.reduce(((e,t)=>e+t.qty*t.price),0)},total(){return this.sub_total*(1+this.tax_percent/100)+this.shipping}},methods:{preventLineBreaks(e){13==e.which&&e.preventDefault()}}},se="\ntable[data-v-92e7f4a0] {\n width: 100%;\n border-spacing: 0;\n}\ntable td[data-v-92e7f4a0] {\n position: relative;\n padding: 6px;\n vertical-align: top;\n}\ntable.order-table td[data-v-92e7f4a0] {\n vertical-align: middle;\n}\ntable thead td[data-v-92e7f4a0] {\n font-weight: bold;\n}\ntable tbody td[data-v-92e7f4a0] {\n border-top: solid 1px #CCC;\n}\ninput[type=number][data-v-92e7f4a0] {\n border: none;\n font-family: inherit;\n font-size: inherit;\n color: inherit;\n background: rgba(200, 250, 230, 0.4);\n padding: 6px;\n}\n*[contenteditable][data-v-92e7f4a0] {\n background: rgba(200, 250, 230, 0.4);\n transition: padding 0.05s linear;\n}\nspan[contenteditable][data-v-92e7f4a0]:focus {\n padding: 0 4px;\n}\n@media print {\n*[contenteditable][data-v-92e7f4a0], input[data-v-92e7f4a0] {\n background: none;\n}\n.hide-in-print[data-v-92e7f4a0] {\n display: none;\n}\ninput[data-v-92e7f4a0]::-webkit-outer-spin-button,\n input[data-v-92e7f4a0]::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\ninput[type=number][data-v-92e7f4a0] {\n -moz-appearance: textfield;\n background: none;\n}\n}\n.header[data-v-92e7f4a0] {\n display: flex;\n justify-content: space-between;\n margin-bottom: 10px;\n}\n.order[data-v-92e7f4a0] {\n display: flex;\n justify-content: space-between;\n margin-bottom: 10px;\n}\n.left-btn[data-v-92e7f4a0] {\n position: absolute;\n left: -40px;\n top: 2px;\n}\n.left-btn[data-v-92e7f4a0]:hover {\n opacity: 0.6;\n}\n";const ae=(0,y.Z)(ne,[["render",ie],["styles",[se]],["__scopeId","data-v-92e7f4a0"]]);var oe=ae,re=i(2262),le={components:{VueDocumentEditor:v,VueFileToolbarMenu:r.Z},data(){return{content:['

Hello world!

This is a rich-text editor built on top of Vue.js using the native contenteditable browser implementation and some JavaScript trickery to spread content over paper-sized pages.

Built-in functionality includes:

  • Using Vue.js components as interactive page templates (see next page)
  • Word-by-word page splitting with forward and backward propagation (still experimental)
  • Native Print compatible
  • Dynamic document format and margins in millimeters
  • Custom page overlays (headers, footers, page numbers)
  • Page breaks
  • Smart zoom and page display modes
  • Computes text style at caret position

This library may be useful if you design an application that generate documents and you would let the user to modify them slightly before printing / saving, but with limited / interactive possibilities. It does not intend to replace a proper document editor with full functionality.
Make sure this project is suitable to your needs before using it.

This demo adds:

  • The top bar (vue-file-toolbar-menu component) and the functions associated with it
  • Rewritten history stack (undo/redo) compatible with native commands
  • Pinch and trackpad zooming

Check out the Demo.vue file if you need to add these functionalities to your application.

The link below is an example of non-editable block set with contenteditable="false":

View docs on Github, you can\'t edit me.

But you can still edit this.

',{template:(0,re.Xl)(oe),props:{invoice_number:"AB38052985"}},'

Headers / footers example


Page numbers have been added on every page of this document.
Header and footer overlays will be added from page 3 to all subsequent ones.

Check out the overlay method of the Demo.vue file to customize this.','

«

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi. Proin porttitor, orci nec nonummy molestie, enim est eleifend mi, non fermentum diam nisl sit amet erat. Duis semper. Duis arcu massa, scelerisque vitae, consequat in, pretium a, enim. Pellentesque congue. Ut in risus volutpat libero pharetra tempor. Cras vestibulum bibendum augue. Praesent egestas leo in pede. Praesent blandit odio eu enim. Pellentesque sed dui ut augue blandit sodales. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam nibh. Mauris ac mauris sed pede pellentesque fermentum. Maecenas adipiscing ante non diam sodales hendrerit.

Ut velit mauris, egestas sed, gravida nec, ornare ut, mi. Aenean ut orci vel massa suscipit pulvinar. Nulla sollicitudin. Fusce varius, ligula non tempus aliquam, nunc turpis ullamcorper nibh, in tempus sapien eros vitae ligula. Pellentesque rhoncus nunc et augue. Integer id felis. Curabitur aliquet pellentesque diam. Integer quis metus vitae elit lobortis egestas. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi vel erat non mauris convallis vehicula. Nulla et sapien. Integer tortor tellus, aliquam faucibus, convallis id, congue eu, quam. Mauris ullamcorper felis vitae erat. Proin feugiat, augue non elementum posuere, metus purus iaculis lectus, et tristique ligula justo vitae magna.

Aliquam convallis sollicitudin purus. Praesent aliquam, enim at fermentum mollis, ligula massa adipiscing nisl, ac euismod nibh nisl eu lectus. Fusce vulputate sem at sapien. Vivamus leo. Aliquam euismod libero eu enim. Nulla nec felis sed leo placerat imperdiet. Aenean suscipit nulla in justo. Suspendisse cursus rutrum augue. Nulla tincidunt tincidunt mi. Curabitur iaculis, lorem vel rhoncus faucibus, felis magna fermentum augue, et ultricies lacus lorem varius purus. Curabitur eu amet.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi. Proin porttitor, orci nec nonummy molestie, enim est eleifend mi, non fermentum diam nisl sit amet erat. Duis semper. Duis arcu massa, scelerisque vitae, consequat in, pretium a, enim. Pellentesque congue. Ut in risus volutpat libero pharetra tempor. Cras vestibulum bibendum augue. Praesent egestas leo in pede. Praesent blandit odio eu enim. Pellentesque sed dui ut augue blandit sodales. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam nibh. Mauris ac mauris sed pede pellentesque fermentum. Maecenas adipiscing ante non diam sodales hendrerit.

Ut velit mauris, egestas sed, gravida nec, ornare ut, mi. Aenean ut orci vel massa suscipit pulvinar. Nulla sollicitudin. Fusce varius, ligula non tempus aliquam, nunc turpis ullamcorper nibh, in tempus sapien eros vitae ligula. Pellentesque rhoncus nunc et augue. Integer id felis. Curabitur aliquet pellentesque diam. Integer quis metus vitae elit lobortis egestas. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi vel erat non mauris convallis vehicula. Nulla et sapien. Integer tortor tellus, aliquam faucibus, convallis id, congue eu, quam. Mauris ullamcorper felis vitae erat. Proin feugiat, augue non elementum posuere, metus purus iaculis lectus, et tristique ligula justo vitae magna.

Aliquam convallis sollicitudin purus. Praesent aliquam, enim at fermentum mollis, ligula massa adipiscing nisl, ac euismod nibh nisl eu lectus. Fusce vulputate sem at sapien. Vivamus leo. Aliquam euismod libero eu enim. Nulla nec felis sed leo placerat imperdiet. Aenean suscipit nulla in justo. Suspendisse cursus rutrum augue. Nulla tincidunt tincidunt mi. Curabitur iaculis, lorem vel rhoncus faucibus, felis magna fermentum augue, et ultricies lacus lorem varius purus. Curabitur eu amet.

»

','

--- This is a page break. ---

'],zoom:.8,zoom_min:.1,zoom_max:5,page_format_mm:[210,297],page_margins:"10mm 15mm",display:"grid",mounted:!1,undo_count:-1,content_history:[]}},created(){let e=!1,t=!1,i=!1;window.addEventListener("wheel",(e=>{e.ctrlKey&&(e.preventDefault(),this.zoom=Math.min(Math.max(this.zoom-.01*e.deltaY,this.zoom_min),this.zoom_max))}),{passive:!1}),window.addEventListener("gesturestart",(t=>{t.preventDefault(),e=this.zoom})),window.addEventListener("gesturechange",(t=>{t.preventDefault(),i||(this.zoom=Math.min(Math.max(e*t.scale,this.zoom_min),this.zoom_max))})),window.addEventListener("gestureend",(()=>{e=!1})),window.addEventListener("touchstart",(e=>{2==e.touches.length&&(e.preventDefault(),t=Math.hypot(e.touches[0].pageX-e.touches[1].pageX,e.touches[0].pageY-e.touches[1].pageY),i=this.zoom)}),{passive:!1}),window.addEventListener("touchmove",(e=>{if(t&&i){e.preventDefault();let n=i*Math.hypot(e.touches[0].pageX-e.touches[1].pageX,e.touches[0].pageY-e.touches[1].pageY)/t;this.zoom=Math.min(Math.max(n,this.zoom_min),this.zoom_max)}}),{passive:!1}),window.addEventListener("touchend",(()=>{t=!1,i=!1}),{passive:!1});const n=e=>{switch(e&&e.inputType){case"historyUndo":e.preventDefault(),e.stopPropagation(),this.undo();break;case"historyRedo":e.preventDefault(),e.stopPropagation(),this.redo();break}};window.addEventListener("beforeinput",n),window.addEventListener("input",n)},mounted(){this.mounted=!0},computed:{menu(){return[{text:"New",title:"New",icon:"description",click:()=>{confirm("This will create an empty document. Are you sure?")&&(this.content=[""],this.resetContentHistory())}},{text:"Print",title:"Print",icon:"print",click:()=>window.print()},{is:"spacer"},{title:"Undo",icon:"undo",disabled:!this.can_undo,hotkey:this.isMacLike?"command+z":"ctrl+z",click:()=>this.undo()},{title:"Redo",icon:"redo",disabled:!this.can_redo,hotkey:this.isMacLike?"shift+command+z":"ctrl+y",click:()=>this.redo()},{is:"spacer"},{icon:"format_align_left",title:"Align left",active:this.isLeftAligned,disabled:!this.current_text_style,hotkey:this.isMacLike?"shift+command+l":"ctrl+shift+l",click:()=>document.execCommand("justifyLeft")},{icon:"format_align_center",title:"Align center",active:this.isCentered,disabled:!this.current_text_style,hotkey:this.isMacLike?"shift+command+e":"ctrl+shift+e",click:()=>document.execCommand("justifyCenter")},{icon:"format_align_right",title:"Align right",active:this.isRightAligned,disabled:!this.current_text_style,hotkey:this.isMacLike?"shift+command+r":"ctrl+shift+r",click:()=>document.execCommand("justifyRight")},{icon:"format_align_justify",title:"Justify content",active:this.isJustified,disabled:!this.current_text_style,hotkey:this.isMacLike?"shift+command+j":"ctrl+shift+j",click:()=>document.execCommand("justifyFull")},{is:"separator"},{icon:"format_bold",title:"Bold",active:this.isBold,disabled:!this.current_text_style,hotkey:this.isMacLike?"command+b":"ctrl+b",click:()=>document.execCommand("bold")},{icon:"format_italic",title:"Italic",active:this.isItalic,disabled:!this.current_text_style,hotkey:this.isMacLike?"command+i":"ctrl+i",click:()=>document.execCommand("italic")},{icon:"format_underline",title:"Underline",active:this.isUnderline,disabled:!this.current_text_style,hotkey:this.isMacLike?"command+u":"ctrl+u",click:()=>document.execCommand("underline")},{icon:"format_strikethrough",title:"Strike through",active:this.isStrikeThrough,disabled:!this.current_text_style,click:()=>document.execCommand("strikethrough")},{is:"button-color",type:"compact",menu_class:"align-center",disabled:!this.current_text_style,color:this.curColor,update_color:e=>document.execCommand("foreColor",!1,e.hex8)},{is:"separator"},{icon:"format_list_numbered",title:"Numbered list",active:this.isNumberedList,disabled:!this.current_text_style,click:()=>document.execCommand("insertOrderedList")},{icon:"format_list_bulleted",title:"Bulleted list",active:this.isBulletedList,disabled:!this.current_text_style,click:()=>document.execCommand("insertUnorderedList")},{html:"H1",title:"Header 1",active:this.isH1,disabled:!this.current_text_style,click:()=>document.execCommand("formatBlock",!1,"

")},{html:"H2",title:"Header 2",active:this.isH2,disabled:!this.current_text_style,click:()=>document.execCommand("formatBlock",!1,"

")},{html:"H3",title:"Header 3",active:this.isH3,disabled:!this.current_text_style,click:()=>document.execCommand("formatBlock",!1,"

")},{icon:"format_clear",title:"Clear format",disabled:!this.current_text_style,click(){document.execCommand("removeFormat"),document.execCommand("formatBlock",!1,"
")}},{icon:"splitscreen",title:"Page break",disabled:!this.current_text_style,click:()=>this.insertPageBreak()},{is:"spacer"},{text:this.current_format_name,title:"Format",icon:"crop_free",chevron:!0,menu:this.formats.map((([e,t,i])=>({text:e,active:this.page_format_mm[0]==t&&this.page_format_mm[1]==i,click:()=>{this.page_format_mm=[t,i]}}))),menu_width:80,menu_height:280},{text:this.current_margins_name,title:"Margins",icon:"select_all",chevron:!0,menu:this.margins.map((([e,t])=>({text:e+" ("+t+")",active:this.page_margins==t,click:()=>{this.page_margins=t}}))),menu_width:200,menu_class:"align-center"},{text:Math.floor(100*this.zoom)+"%",title:"Zoom",icon:"zoom_in",chevron:!0,menu:[["200%",2],["150%",1.5],["125%",1.25],["100%",1],["75%",.75],["50%",.5],["25%",.25]].map((([e,t])=>({text:e,active:this.zoom==t,click:()=>{this.zoom=t}}))),menu_width:80,menu_height:280,menu_class:"align-center"},{title:"Display",icon:"horizontal"==this.display?"view_column":"vertical"==this.display?"view_stream":"view_module",chevron:!0,menu:[{icon:"view_module",active:"grid"==this.display,click:()=>{this.display="grid"}},{icon:"view_column",active:"horizontal"==this.display,click:()=>{this.display="horizontal"}},{icon:"view_stream",active:"vertical"==this.display,click:()=>{this.display="vertical"}}],menu_width:55,menu_class:"align-right"}]},current_format_name(){const e=this.formats.find((([,e,t])=>this.page_format_mm[0]==e&&this.page_format_mm[1]==t));return e?e[0]:this.page_format_mm[0]+"mm x "+this.page_format_mm[1]+"mm"},formats:()=>[["A0",841,1189],["A0L",1189,841],["A1",594,841],["A1L",841,594],["A2",420,594],["A2L",594,420],["A3",297,420],["A3L",420,297],["A4",210,297],["A4L",297,210],["A5",148,210],["A5L",210,148],["A6",105,148],["A6L",148,105]],current_margins_name(){const e=this.margins.find((([,e])=>this.page_margins==e));return e?e[0]:e[1]},margins:()=>[["Medium","20mm"],["Small","15mm"],["Slim","10mm 15mm"],["Tiny","5mm"]],current_text_style(){return!!this.mounted&&this.$refs.editor.current_text_style},isLeftAligned(){return["start","left","-moz-left"].includes(this.current_text_style.textAlign)},isRightAligned(){return["end","right","-moz-right"].includes(this.current_text_style.textAlign)},isCentered(){return["center","-moz-center"].includes(this.current_text_style.textAlign)},isJustified(){return["justify","justify-all"].includes(this.current_text_style.textAlign)},isBold(){const e=this.current_text_style.fontWeight;return e&&(parseInt(e)>400||0==e.indexOf("bold"))},isItalic(){return"italic"==this.current_text_style.fontStyle},isUnderline(){const e=this.current_text_style.textDecorationStack;return e&&e.some((e=>0==e.indexOf("underline")))},isStrikeThrough(){const e=this.current_text_style.textDecorationStack;return e&&e.some((e=>0==e.indexOf("line-through")))},isNumberedList(){return this.current_text_style.isList&&"decimal"==this.current_text_style.listStyleType},isBulletedList(){return this.current_text_style.isList&&["disc","circle"].includes(this.current_text_style.listStyleType)},isH1(){return 1==this.current_text_style.headerLevel},isH2(){return 2==this.current_text_style.headerLevel},isH3(){return 3==this.current_text_style.headerLevel},curColor(){return this.current_text_style.color||"transparent"},isMacLike:()=>/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),can_undo(){return this.undo_count>0},can_redo(){return this.content_history.length-this.undo_count-1>0}},methods:{overlay(e,t){let i='
Page '+e+" of "+t+"
";return e>=3&&(i+='
MYCOMPANY example.com /// This is a custom header overlay
',i+='
MY COMPANY - example.com /// This is a custom footer overlay
'),i},undo(){this.can_undo&&(this._mute_next_content_watcher=!0,this.content=this.content_history[--this.undo_count])},redo(){this.can_redo&&(this._mute_next_content_watcher=!0,this.content=this.content_history[++this.undo_count])},resetContentHistory(){this.content_history=[],this.undo_count=-1},async insertPageBreak(){document.execCommand("insertParagraph");const e="###PB###";document.execCommand("insertText",!1,e),await this.$nextTick(),await this.$nextTick();const t=new RegExp("<(p|div|h\\d)( [^/>]+)*>(<[^/>]+>)*"+e);for(let i=0;i"+a),void this.content.splice(i,1,n.substr(0,s.index),t+a)}}for(let i=0;i=a)&&Object.keys(i.O).every((function(e){return i.O[e](n[l])}))?n.splice(l--,1):(r=!1,a0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[n,s,a]}}(),function(){i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){i.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){var e={143:0};i.O.j=function(t){return 0===e[t]};var t=function(t,n){var s,a,o=n[0],r=n[1],l=n[2],c=0;if(o.some((function(t){return 0!==e[t]}))){for(s in r)i.o(r,s)&&(i.m[s]=r[s]);if(l)var d=l(i)}for(t&&t(n);c\n
\n\n \n \n\n \n \n\n
\n\n\n\n\n\n\n","\n\n\n\n\n","\n/**\n * Utility function that acts like an Array.filter on childNodes of \"container\"\n * @param {HTMLElement} container \n * @param {string} s_tag \n */\nfunction find_sub_child_sibling_node (container, s_tag){\n if(!container || !s_tag) return false;\n const child_nodes = container.childNodes;\n for(let i = 0; i < child_nodes.length; i++) {\n if(child_nodes[i].s_tag == s_tag) return child_nodes[i];\n }\n return false;\n}\n\n\n/**\n * This function moves every sub-child of argument \"child\" to the start of the \"child_sibling\"\n * argument, beginning from the last child, with word splitting and format preserving.\n * Typically, \"child\" is the current page which content overflows, and \"child_sibling\" is the \n * next page.\n * @param {HTMLElement} child Element to take children from (current page)\n * @param {HTMLElement} child_sibling Element to copy children to (next page)\n * @param {Function} stop_condition Check function that returns a boolean if content doesn't overflow anymore\n * @param {Boolean} not_first_child Should be unset. Used internally to let at least one child in the page\n */\nfunction move_children_forward_recursively (child, child_sibling, stop_condition, not_first_child) {\n\n // if the child still has nodes and the current page still overflows\n while(child.childNodes.length && !stop_condition()){\n\n // check if page has only one child tree left\n not_first_child = not_first_child || (child.childNodes.length != 1);\n\n // select the last sub-child\n const sub_child = child.lastChild;\n\n // if it is a text node, move its content to next page word(/space) by word\n if(sub_child.nodeType == Node.TEXT_NODE){\n const sub_child_hashes = sub_child.textContent.match(/(\\s|\\S+)/g);\n const sub_child_continuation = document.createTextNode('');\n child_sibling.prepend(sub_child_continuation);\n const l = sub_child_hashes ? sub_child_hashes.length : 0;\n for(let i = 0; i < l; i++) {\n if(i == l - 1 && !not_first_child) return; // never remove the first word of the page\n sub_child.textContent = sub_child_hashes.slice(0, l - i - 1).join('');\n sub_child_continuation.textContent = sub_child_hashes.slice(l - i - 1, l).join('');\n if(stop_condition()) return;\n }\n }\n\n // if it is a node with no content (e.g. ), or a header title (e.g.

) we simply move it\n else if(!sub_child.childNodes.length || sub_child.tagName.match(/h\\d/i)) {\n // just prevent moving the last child of the page\n if(!not_first_child){\n console.log(\"Move-forward: first child reached with no stop condition. Aborting\");\n return;\n }\n child_sibling.prepend(sub_child);\n }\n\n // for every other node that is not text and not the first child, clone it recursively to next page\n else {\n // check if sub child has already been cloned before\n let sub_child_sibling = find_sub_child_sibling_node(child_sibling, sub_child.s_tag);\n \n // if not, create it and watermark the relationship with a random tag\n if(!sub_child_sibling) {\n if(!sub_child.s_tag) {\n const new_random_tag = Math.random().toString(36).slice(2, 8);\n sub_child.s_tag = new_random_tag;\n }\n sub_child_sibling = sub_child.cloneNode(false);\n sub_child_sibling.s_tag = sub_child.s_tag;\n child_sibling.prepend(sub_child_sibling);\n }\n \n // then move/clone its children and sub-children recursively\n move_children_forward_recursively(sub_child, sub_child_sibling, stop_condition, not_first_child);\n sub_child_sibling.normalize(); // merge consecutive text nodes\n }\n\n // if sub_child was a container that was cloned and is now empty, we clean it\n if(child.contains(sub_child)){\n if(sub_child.childNodes.length == 0 || sub_child.innerHTML == \"\") child.removeChild(sub_child);\n else if(!stop_condition()) {\n // the only case when it can be non empty should be when stop_condition is now true\n console.log(\"sub_child:\", sub_child, \"that is in child:\", child);\n throw Error(\"Document editor is trying to remove a non-empty sub-child. This \"\n + \"is a bug and should not happen. Please report a repeatable set of actions that \"\n + \"leaded to this error to https://github.com/motla/vue-document-editor/issues/new\");\n }\n }\n }\n}\n\n\n\n/**\n * This function moves the first element from \"next_page_html_div\" to the end of \"page_html_div\", with\n * merging sibling tags previously watermarked by \"move_children_forward_recursively\", if any.\n * @param {HTMLElement} page_html_div Current page element\n * @param {HTMLElement} next_page_html_div Next page element\n * @param {Function} stop_condition Check function that returns a boolean if content overflows\n */\nfunction move_children_backwards_with_merging (page_html_div, next_page_html_div, stop_condition) {\n\n // loop until content is overflowing\n while(!stop_condition()){\n\n // find first child of next page\n const first_child = next_page_html_div.firstChild;\n\n // merge it at the end of the current page\n var merge_recursively = (container, elt) => {\n // check if child had been splitted (= has a sibling on previous page)\n const elt_sibling = find_sub_child_sibling_node(container, elt.s_tag);\n if(elt_sibling && elt.childNodes.length) {\n // then dig for deeper children, in case of\n merge_recursively(elt_sibling, elt.firstChild);\n }\n // else move the child inside the right container at current page\n else {\n container.append(elt);\n container.normalize();\n }\n }\n merge_recursively(page_html_div, first_child);\n }\n}\n\nexport {\n move_children_forward_recursively,\n move_children_backwards_with_merging\n};","import { render } from \"./DocumentEditor.vue?vue&type=template&id=68da239e&scoped=true\"\nimport script from \"./DocumentEditor.vue?vue&type=script&lang=js\"\nexport * from \"./DocumentEditor.vue?vue&type=script&lang=js\"\n\nimport \"./DocumentEditor.vue?vue&type=style&index=0&id=68da239e&lang=css\"\nimport \"./DocumentEditor.vue?vue&type=style&index=1&id=68da239e&scoped=true&lang=css\"\n\nimport exportComponent from \"/Users/romain/Developer/vue-document-editor/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-68da239e\"]])\n\nexport default __exports__","\n\n\n\n","export default \"\\ntable[data-v-92e7f4a0] {\\n width: 100%;\\n border-spacing: 0;\\n}\\ntable td[data-v-92e7f4a0] {\\n position: relative;\\n padding: 6px;\\n vertical-align: top;\\n}\\ntable.order-table td[data-v-92e7f4a0] {\\n vertical-align: middle;\\n}\\ntable thead td[data-v-92e7f4a0] {\\n font-weight: bold;\\n}\\ntable tbody td[data-v-92e7f4a0] {\\n border-top: solid 1px #CCC;\\n}\\ninput[type=number][data-v-92e7f4a0] {\\n border: none;\\n font-family: inherit;\\n font-size: inherit;\\n color: inherit;\\n background: rgba(200, 250, 230, 0.4);\\n padding: 6px;\\n}\\n*[contenteditable][data-v-92e7f4a0] {\\n background: rgba(200, 250, 230, 0.4);\\n transition: padding 0.05s linear;\\n}\\nspan[contenteditable][data-v-92e7f4a0]:focus {\\n padding: 0 4px;\\n}\\n@media print {\\n*[contenteditable][data-v-92e7f4a0], input[data-v-92e7f4a0] {\\n background: none;\\n}\\n.hide-in-print[data-v-92e7f4a0] {\\n display: none;\\n}\\ninput[data-v-92e7f4a0]::-webkit-outer-spin-button,\\n input[data-v-92e7f4a0]::-webkit-inner-spin-button {\\n -webkit-appearance: none;\\n margin: 0;\\n}\\ninput[type=number][data-v-92e7f4a0] {\\n -moz-appearance: textfield;\\n background: none;\\n}\\n}\\n.header[data-v-92e7f4a0] {\\n display: flex;\\n justify-content: space-between;\\n margin-bottom: 10px;\\n}\\n.order[data-v-92e7f4a0] {\\n display: flex;\\n justify-content: space-between;\\n margin-bottom: 10px;\\n}\\n.left-btn[data-v-92e7f4a0] {\\n position: absolute;\\n left: -40px;\\n top: 2px;\\n}\\n.left-btn[data-v-92e7f4a0]:hover {\\n opacity: 0.6;\\n}\\n\"","import { render } from \"./InvoiceTemplate.ce.vue?vue&type=template&id=92e7f4a0&scoped=true\"\nimport script from \"./InvoiceTemplate.ce.vue?vue&type=script&lang=js\"\nexport * from \"./InvoiceTemplate.ce.vue?vue&type=script&lang=js\"\n\nimport _style_0 from \"./InvoiceTemplate.ce.vue?vue&type=style&index=0&id=92e7f4a0&inline&scoped=true&lang=css\"\n\nimport exportComponent from \"/Users/romain/Developer/vue-document-editor/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['styles',[_style_0]],['__scopeId',\"data-v-92e7f4a0\"]])\n\nexport default __exports__","import { render } from \"./Demo.vue?vue&type=template&id=40b973fe&scoped=true\"\nimport script from \"./Demo.vue?vue&type=script&lang=js\"\nexport * from \"./Demo.vue?vue&type=script&lang=js\"\n\nimport \"./Demo.vue?vue&type=style&index=0&id=40b973fe&lang=css\"\nimport \"./Demo.vue?vue&type=style&index=1&id=40b973fe&scoped=true&lang=css\"\n\nimport exportComponent from \"/Users/romain/Developer/vue-document-editor/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-40b973fe\"]])\n\nexport default __exports__","import { createApp } from 'vue'\nimport Demo from './Demo/Demo.vue'\n\nconst app = createApp(Demo);\n\n// enable devtools for the demo\napp.config.devtools = true;\n\napp.mount('#app');","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t143: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkvue_document_editor\"] = self[\"webpackChunkvue_document_editor\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [998], function() { return __webpack_require__(9121); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["class","_createElementBlock","_hoisted_1","_createVNode","_component_vue_file_toolbar_menu","content","$options","_component_vue_document_editor","ref","$data","overlay","zoom","page_format_mm","page_margins","display","$props","_hoisted_2","_Fragment","page","page_idx","key","uuid","elt","innerHTML","length","style","_createElementVNode","contenteditable","onInput","onKeyup","onKeydown","find_sub_child_sibling_node","container","s_tag","child_nodes","childNodes","i","move_children_forward_recursively","child","child_sibling","stop_condition","not_first_child","sub_child","lastChild","nodeType","Node","TEXT_NODE","sub_child_hashes","textContent","match","sub_child_continuation","document","createTextNode","prepend","l","slice","join","tagName","console","log","sub_child_sibling","new_random_tag","Math","random","toString","cloneNode","normalize","contains","removeChild","Error","move_children_backwards_with_merging","page_html_div","next_page_html_div","first_child","firstChild","merge_recursively","elt_sibling","append","props","type","Array","required","String","default","editable","Boolean","Function","Number","data","pages","pages_overlay_refs","pages_height","editor_width","prevent_next_content_update_from_parent","current_text_style","printing_mode","mounted","this","update_editor_width","update_css_media_style","reset_content","window","addEventListener","process_current_text_style","before_print","after_print","beforeUpdate","beforeUnmount","removeEventListener","computed","css_media_style","createElement","head","appendChild","methods","new_uuid","reset_in_progress","$emit","map","content_idx","template","update_pages_elts","first_page_elt","$refs","clientHeight","componentElement","defineCustomElement","customElements","define","modelValue","fit_content_over_pages","blur","fit_in_progress","body","splice","selection","getSelection","start_marker","end_marker","rangeCount","range","getRangeAt","insertNode","collapse","prev_page_modified_flag","next_page","next_page_elt","prev_innerHTML","createRange","setStart","setEnd","removeAllRanges","addRange","parentElement","input","e","emit_new_content","inputType","keydown","keyCode","is_text","replace","preventDefault","removed_pages_flag","new_content","item","filter","children","toLowerCase","getAttribute","sel","focusNode","element","isContentEditable","getComputedStyle","textDecorationStack","headerLevel","isList","parent","parent_style","push","textDecoration","toUpperCase","page_style","allow_overflow","px_in_mm","page_width","page_spacing_mm","page_with_plus_spacing","view_padding","inner_width","page_column","x_pos","x_ofx","left_px","top_mm","bkg_width_mm","bkg_height_mm","nb_pages_x","floor","max","nb_pages_y","ceil","position","left","top","width","padding","transform","height","css_to_string","css","Object","entries","k","v","page_elt","find","remove","className","insertBefore","dataset","contentIdx","contentEditable","editor","classList","add","clientWidth","_page_body","print_body","margin","background","font","breakBefore","overlay_elt","overflow","return_overlay","right","bottom","alignItems","justifyContent","cursor","overlays","watch","handler","deep","__exports__","colspan","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","invoice_number","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","billing_address","target","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","onClick","_hoisted_20","_hoisted_21","desc","_hoisted_22","min","qty","_hoisted_24","step","price","_hoisted_26","toFixed","_hoisted_27","_hoisted_28","tax_percent","parseFloat","innerText","_hoisted_29","shipping","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","is_shipping_identical","items","today","date","Date","toJSON","next_month","setDate","getDate","sub_total","reduce","acc","total","preventLineBreaks","which","components","VueDocumentEditor","VueFileToolbarMenu","markRaw","InvoiceTemplate","zoom_min","zoom_max","undo_count","content_history","created","start_zoom_gesture","start_dist_touch","start_zoom_touch","ctrlKey","deltaY","passive","scale","touches","hypot","pageX","pageY","manage_undo_redo","stopPropagation","undo","redo","menu","text","title","icon","click","confirm","resetContentHistory","print","is","disabled","can_undo","hotkey","isMacLike","can_redo","active","isLeftAligned","execCommand","isCentered","isRightAligned","isJustified","isBold","isItalic","isUnderline","isStrikeThrough","menu_class","color","curColor","update_color","new_color","hex8","isNumberedList","isBulletedList","html","isH1","isH2","isH3","insertPageBreak","current_format_name","chevron","formats","w","h","menu_width","menu_height","current_margins_name","margins","value","format","width_mm","height_mm","includes","textAlign","fontWeight","parseInt","indexOf","fontStyle","stack","some","d","listStyleType","test","navigator","platform","_mute_next_content_watcher","async","marker","$nextTick","regexp","RegExp","exec","tags_open","content_plus_tags_close","substr","index","immediate","render","app","createApp","Demo","config","devtools","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","keys","every","r","definition","o","defineProperty","enumerable","get","g","globalThis","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","id","chunkLoadingGlobal","self","forEach","bind","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/docs/js/chunk-vendors.7f0d164e.js b/docs/js/chunk-vendors.7f0d164e.js new file mode 100644 index 0000000..1d58d2a --- /dev/null +++ b/docs/js/chunk-vendors.7f0d164e.js @@ -0,0 +1,11 @@ +(self["webpackChunkvue_document_editor"]=self["webpackChunkvue_document_editor"]||[]).push([[998],{2262:function(e,t,n){"use strict";n.d(t,{Bj:function(){return a},Fl:function(){return Ne},IU:function(){return je},Jd:function(){return k},PG:function(){return Ce},Um:function(){return ye},WL:function(){return qe},X$:function(){return A},X3:function(){return Ae},Xl:function(){return Ee},dq:function(){return Re},iH:function(){return Te},j:function(){return S},lk:function(){return C},qj:function(){return we},qq:function(){return v},yT:function(){return Fe}});var r=n(3577);let o;class a{constructor(e=!1){this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=o,!e&&o&&(this.index=(o.scopes||(o.scopes=[])).push(this)-1)}run(e){if(this.active){const t=o;try{return o=this,e()}finally{o=t}}else 0}on(){o=this}off(){o=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},s=e=>(e.w&d)>0,c=e=>(e.n&d)>0,u=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{("length"===t||t>=o)&&c.push(e)}));else switch(void 0!==n&&c.push(s.get(n)),t){case"add":(0,r.kJ)(e)?(0,r.S0)(n)&&c.push(s.get("length")):(c.push(s.get(_)),(0,r._N)(e)&&c.push(s.get(b)));break;case"delete":(0,r.kJ)(e)||(c.push(s.get(_)),(0,r._N)(e)&&c.push(s.get(b)));break;case"set":(0,r._N)(e)&&c.push(s.get(_));break}if(1===c.length)c[0]&&j(c[0]);else{const e=[];for(const t of c)t&&e.push(...t);j(l(e))}}function j(e,t){const n=(0,r.kJ)(e)?e:[...e];for(const r of n)r.computed&&E(r,t);for(const r of n)r.computed||E(r,t)}function E(e,t){(e!==m||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const M=(0,r.fY)("__proto__,__v_isRef,__isVue"),D=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(r.yk)),O=P(),L=P(!1,!0),R=P(!0),T=I();function I(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=je(this);for(let t=0,o=this.length;t{e[t]=function(...e){k();const n=je(this)[t].apply(this,e);return C(),n}})),e}function P(e=!1,t=!1){return function(n,o,a){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&a===(e?t?_e:me:t?ge:de).get(n))return n;const i=(0,r.kJ)(n);if(!e&&i&&(0,r.RI)(T,o))return Reflect.get(T,o,a);const l=Reflect.get(n,o,a);return((0,r.yk)(o)?D.has(o):M(o))?l:(e||S(n,"get",o),t?l:Re(l)?i&&(0,r.S0)(o)?l:l.value:(0,r.Kn)(l)?e?xe(l):we(l):l)}}const H=q(),z=q(!0);function q(e=!1){return function(t,n,o,a){let i=t[n];if(Se(i)&&Re(i)&&!Re(o))return!1;if(!e&&(Fe(o)||Se(o)||(i=je(i),o=je(o)),!(0,r.kJ)(t)&&Re(i)&&!Re(o)))return i.value=o,!0;const l=(0,r.kJ)(t)&&(0,r.S0)(n)?Number(n)e,J=e=>Reflect.getPrototypeOf(e);function G(e,t,n=!1,r=!1){e=e["__v_raw"];const o=je(e),a=je(t);n||(t!==a&&S(o,"get",t),S(o,"get",a));const{has:i}=J(o),l=r?V:n?De:Me;return i.call(o,t)?l(e.get(t)):i.call(o,a)?l(e.get(a)):void(e!==o&&e.get(t))}function Z(e,t=!1){const n=this["__v_raw"],r=je(n),o=je(e);return t||(e!==o&&S(r,"has",e),S(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Y(e,t=!1){return e=e["__v_raw"],!t&&S(je(e),"iterate",_),Reflect.get(e,"size",e)}function X(e){e=je(e);const t=je(this),n=J(t),r=n.has.call(t,e);return r||(t.add(e),A(t,"add",e,e)),this}function Q(e,t){t=je(t);const n=je(this),{has:o,get:a}=J(n);let i=o.call(n,e);i||(e=je(e),i=o.call(n,e));const l=a.call(n,e);return n.set(e,t),i?(0,r.aU)(t,l)&&A(n,"set",e,t,l):A(n,"add",e,t),this}function ee(e){const t=je(this),{has:n,get:r}=J(t);let o=n.call(t,e);o||(e=je(e),o=n.call(t,e));const a=r?r.call(t,e):void 0,i=t.delete(e);return o&&A(t,"delete",e,void 0,a),i}function te(){const e=je(this),t=0!==e.size,n=void 0,r=e.clear();return t&&A(e,"clear",void 0,void 0,n),r}function ne(e,t){return function(n,r){const o=this,a=o["__v_raw"],i=je(a),l=t?V:e?De:Me;return!e&&S(i,"iterate",_),a.forEach(((e,t)=>n.call(r,l(e),l(t),o)))}}function re(e,t,n){return function(...o){const a=this["__v_raw"],i=je(a),l=(0,r._N)(i),s="entries"===e||e===Symbol.iterator&&l,c="keys"===e&&l,u=a[e](...o),h=n?V:t?De:Me;return!t&&S(i,"iterate",c?b:_),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[h(e[0]),h(e[1])]:h(e),done:t}},[Symbol.iterator](){return this}}}}function oe(e){return function(...t){return"delete"!==e&&this}}function ae(){const e={get(e){return G(this,e)},get size(){return Y(this)},has:Z,add:X,set:Q,delete:ee,clear:te,forEach:ne(!1,!1)},t={get(e){return G(this,e,!1,!0)},get size(){return Y(this)},has:Z,add:X,set:Q,delete:ee,clear:te,forEach:ne(!1,!0)},n={get(e){return G(this,e,!0)},get size(){return Y(this,!0)},has(e){return Z.call(this,e,!0)},add:oe("add"),set:oe("set"),delete:oe("delete"),clear:oe("clear"),forEach:ne(!0,!1)},r={get(e){return G(this,e,!0,!0)},get size(){return Y(this,!0)},has(e){return Z.call(this,e,!0)},add:oe("add"),set:oe("set"),delete:oe("delete"),clear:oe("clear"),forEach:ne(!0,!0)},o=["keys","values","entries",Symbol.iterator];return o.forEach((o=>{e[o]=re(o,!1,!1),n[o]=re(o,!0,!1),t[o]=re(o,!1,!0),r[o]=re(o,!0,!0)})),[e,n,t,r]}const[ie,le,se,ce]=ae();function ue(e,t){const n=t?e?ce:se:e?le:ie;return(t,o,a)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get((0,r.RI)(n,o)&&o in t?n:t,o,a)}const he={get:ue(!1,!1)},fe={get:ue(!1,!0)},pe={get:ue(!0,!1)};const de=new WeakMap,ge=new WeakMap,me=new WeakMap,_e=new WeakMap;function be(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ve(e){return e["__v_skip"]||!Object.isExtensible(e)?0:be((0,r.W7)(e))}function we(e){return Se(e)?e:ke(e,!1,U,he,de)}function ye(e){return ke(e,!1,K,fe,ge)}function xe(e){return ke(e,!0,W,pe,me)}function ke(e,t,n,o,a){if(!(0,r.Kn)(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const i=a.get(e);if(i)return i;const l=ve(e);if(0===l)return e;const s=new Proxy(e,2===l?o:n);return a.set(e,s),s}function Ce(e){return Se(e)?Ce(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function Se(e){return!(!e||!e["__v_isReadonly"])}function Fe(e){return!(!e||!e["__v_isShallow"])}function Ae(e){return Ce(e)||Se(e)}function je(e){const t=e&&e["__v_raw"];return t?je(t):e}function Ee(e){return(0,r.Nj)(e,"__v_skip",!0),e}const Me=e=>(0,r.Kn)(e)?we(e):e,De=e=>(0,r.Kn)(e)?xe(e):e;function Oe(e){y&&m&&(e=je(e),F(e.dep||(e.dep=l())))}function Le(e,t){e=je(e),e.dep&&j(e.dep)}function Re(e){return!(!e||!0!==e.__v_isRef)}function Te(e){return Ie(e,!1)}function Ie(e,t){return Re(e)?e:new Pe(e,t)}class Pe{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:je(e),this._value=t?e:Me(e)}get value(){return Oe(this),this._value}set value(e){const t=this.__v_isShallow||Fe(e)||Se(e);e=t?e:je(e),(0,r.aU)(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Me(e),Le(this,e))}}function He(e){return Re(e)?e.value:e}const ze={get:(e,t,n)=>He(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Re(o)&&!Re(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function qe(e){return Ce(e)?e:new Proxy(e,ze)}var Be;class $e{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[Be]=!1,this._dirty=!0,this.effect=new v(e,(()=>{this._dirty||(this._dirty=!0,Le(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this["__v_isReadonly"]=n}get value(){const e=je(this);return Oe(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Ne(e,t,n=!1){let o,a;const i=(0,r.mf)(e);i?(o=e,a=r.dG):(o=e.get,a=e.set);const l=new $e(o,a,i||!a,n);return l}Be="__v_isReadonly"},6252:function(e,t,n){"use strict";n.d(t,{$d:function(){return i},Cn:function(){return I},FN:function(){return mn},HY:function(){return Rt},Ko:function(){return $e},LL:function(){return ze},P$:function(){return re},Q6:function(){return ce},RC:function(){return fe},U2:function(){return ae},Uk:function(){return rn},Us:function(){return jt},Wm:function(){return Qt},Y3:function(){return b},Y8:function(){return ee},_:function(){return Xt},aZ:function(){return ue},dD:function(){return T},h:function(){return Ln},iD:function(){return Wt},ic:function(){return Ae},j4:function(){return Kt},kq:function(){return an},nK:function(){return se},uE:function(){return on},up:function(){return Pe},w5:function(){return P},wg:function(){return qt},wy:function(){return Re}});var r=n(2262),o=n(3577);function a(e,t,n,r){let o;try{o=r?e(...r):e()}catch(a){l(a,t,n)}return o}function i(e,t,n,r){if((0,o.mf)(e)){const i=a(e,t,n,r);return i&&(0,o.tI)(i)&&i.catch((e=>{l(e,t,n)})),i}const s=[];for(let o=0;o>>1,o=F(h[r]);of&&h.splice(t,1)}function k(e){(0,o.kJ)(e)?p.push(...e):d&&d.includes(e,e.allowRecurse?g+1:g)||p.push(e),y()}function C(e,t=(c?f+1:0)){for(0;tF(e)-F(t))),g=0;gnull==e.id?1/0:e.id,A=(e,t)=>{const n=F(e)-F(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function j(e){u=!1,c=!0,h.sort(A);o.dG;try{for(f=0;fe.trim()))),t&&(a=n.map(o.He))}let c;let u=r[c=(0,o.hR)(t)]||r[c=(0,o.hR)((0,o._A)(t))];!u&&l&&(u=r[c=(0,o.hR)((0,o.rs)(t))]),u&&i(u,e,6,a);const h=r[c+"Once"];if(h){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,i(h,e,6,a)}}function M(e,t,n=!1){const r=t.emitsCache,a=r.get(e);if(void 0!==a)return a;const i=e.emits;let l={},s=!1;if(!(0,o.mf)(e)){const r=e=>{const n=M(e,t,!0);n&&(s=!0,(0,o.l7)(l,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return i||s?((0,o.kJ)(i)?i.forEach((e=>l[e]=null)):(0,o.l7)(l,i),(0,o.Kn)(e)&&r.set(e,l),l):((0,o.Kn)(e)&&r.set(e,null),null)}function D(e,t){return!(!e||!(0,o.F7)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,o.RI)(e,t[0].toLowerCase()+t.slice(1))||(0,o.RI)(e,(0,o.rs)(t))||(0,o.RI)(e,t))}let O=null,L=null;function R(e){const t=O;return O=e,L=e&&e.type.__scopeId||null,t}function T(e){L=e}function I(){L=null}function P(e,t=O,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Nt(-1);const o=R(t);let a;try{a=e(...n)}finally{R(o),r._d&&Nt(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function H(e){const{type:t,vnode:n,proxy:r,withProxy:a,props:i,propsOptions:[s],slots:c,attrs:u,emit:h,render:f,renderCache:p,data:d,setupState:g,ctx:m,inheritAttrs:_}=e;let b,v;const w=R(e);try{if(4&n.shapeFlag){const e=a||r;b=ln(f.call(e,e,p,i,g,d,m)),v=u}else{const e=t;0,b=ln(e.length>1?e(i,{attrs:u,slots:c,emit:h}):e(i,null)),v=t.props?u:z(u)}}catch(x){Ht.length=0,l(x,e,1),b=Qt(It)}let y=b;if(v&&!1!==_){const e=Object.keys(v),{shapeFlag:t}=y;e.length&&7&t&&(s&&e.some(o.tR)&&(v=q(v,s)),y=nn(y,v))}return n.dirs&&(y=nn(y),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),b=y,R(w),b}const z=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,o.F7)(n))&&((t||(t={}))[n]=e[n]);return t},q=(e,t)=>{const n={};for(const r in e)(0,o.tR)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function B(e,t,n){const{props:r,children:o,component:a}=e,{props:i,children:l,patchFlag:s}=t,c=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&s>=0))return!(!o&&!l||l&&l.$stable)||r!==i&&(r?!i||$(r,i,c):!!i);if(1024&s)return!0;if(16&s)return r?$(r,i,c):!!i;if(8&s){const e=t.dynamicProps;for(let t=0;te.__isSuspense;function W(e,t){t&&t.pendingBranch?(0,o.kJ)(e)?t.effects.push(...e):t.effects.push(e):k(e)}function K(e,t){if(gn){let n=gn.provides;const r=gn.parent&&gn.parent.provides;r===n&&(n=gn.provides=Object.create(r)),n[e]=t}else 0}function V(e,t,n=!1){const r=gn||O;if(r){const a=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(a&&e in a)return a[e];if(arguments.length>1)return n&&(0,o.mf)(t)?t.call(r.proxy):t}else 0}const J={};function G(e,t,n){return Z(e,t,n)}function Z(e,t,{immediate:n,deep:l,flush:s,onTrack:c,onTrigger:u}=o.kT){const h=gn;let f,p,d=!1,g=!1;if((0,r.dq)(e)?(f=()=>e.value,d=(0,r.yT)(e)):(0,r.PG)(e)?(f=()=>e,l=!0):(0,o.kJ)(e)?(g=!0,d=e.some((e=>(0,r.PG)(e)||(0,r.yT)(e))),f=()=>e.map((e=>(0,r.dq)(e)?e.value:(0,r.PG)(e)?Q(e):(0,o.mf)(e)?a(e,h,2):void 0))):f=(0,o.mf)(e)?t?()=>a(e,h,2):()=>{if(!h||!h.isUnmounted)return p&&p(),i(e,h,3,[m])}:o.dG,t&&l){const e=f;f=()=>Q(e())}let m=e=>{p=y.onStop=()=>{a(e,h,4)}};if(xn)return m=o.dG,t?n&&i(t,h,3,[f(),g?[]:void 0,m]):f(),o.dG;let _=g?[]:J;const b=()=>{if(y.active)if(t){const e=y.run();(l||d||(g?e.some(((e,t)=>(0,o.aU)(e,_[t]))):(0,o.aU)(e,_)))&&(p&&p(),i(t,h,3,[e,_===J?void 0:_,m]),_=e)}else y.run()};let v;b.allowRecurse=!!t,"sync"===s?v=b:"post"===s?v=()=>At(b,h&&h.suspense):(b.pre=!0,h&&(b.id=h.uid),v=()=>w(b));const y=new r.qq(f,v);return t?n?b():_=y.run():"post"===s?At(y.run.bind(y),h&&h.suspense):y.run(),()=>{y.stop(),h&&h.scope&&(0,o.Od)(h.scope.effects,y)}}function Y(e,t,n){const r=this.proxy,a=(0,o.HD)(e)?e.includes(".")?X(r,e):()=>r[e]:e.bind(r,r);let i;(0,o.mf)(t)?i=t:(i=t.handler,n=t);const l=gn;_n(this);const s=Z(a,i.bind(r),n);return l?_n(l):bn(),s}function X(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{Q(e,t)}));else if((0,o.PO)(e))for(const n in e)Q(e[n],t);return e}function ee(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Se((()=>{e.isMounted=!0})),je((()=>{e.isUnmounting=!0})),e}const te=[Function,Array],ne={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:te,onEnter:te,onAfterEnter:te,onEnterCancelled:te,onBeforeLeave:te,onLeave:te,onAfterLeave:te,onLeaveCancelled:te,onBeforeAppear:te,onAppear:te,onAfterAppear:te,onAppearCancelled:te},setup(e,{slots:t}){const n=mn(),o=ee();let a;return()=>{const i=t.default&&ce(t.default(),!0);if(!i||!i.length)return;let l=i[0];if(i.length>1){let e=!1;for(const t of i)if(t.type!==It){0,l=t,e=!0;break}}const s=(0,r.IU)(e),{mode:c}=s;if(o.isLeaving)return ie(l);const u=le(l);if(!u)return ie(l);const h=ae(u,s,o,n);se(u,h);const f=n.subTree,p=f&&le(f);let d=!1;const{getTransitionKey:g}=u.type;if(g){const e=g();void 0===a?a=e:e!==a&&(a=e,d=!0)}if(p&&p.type!==It&&(!Jt(u,p)||d)){const e=ae(p,s,o,n);if(se(p,e),"out-in"===c)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},ie(l);"in-out"===c&&u.type!==It&&(e.delayLeave=(e,t,n)=>{const r=oe(o,p);r[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete h.delayedLeave},h.delayedLeave=n})}return l}}},re=ne;function oe(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ae(e,t,n,r){const{appear:a,mode:l,persisted:s=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:h,onEnterCancelled:f,onBeforeLeave:p,onLeave:d,onAfterLeave:g,onLeaveCancelled:m,onBeforeAppear:_,onAppear:b,onAfterAppear:v,onAppearCancelled:w}=t,y=String(e.key),x=oe(n,e),k=(e,t)=>{e&&i(e,r,9,t)},C=(e,t)=>{const n=t[1];k(e,t),(0,o.kJ)(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},S={mode:l,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted){if(!a)return;r=_||c}t._leaveCb&&t._leaveCb(!0);const o=x[y];o&&Jt(e,o)&&o.el._leaveCb&&o.el._leaveCb(),k(r,[t])},enter(e){let t=u,r=h,o=f;if(!n.isMounted){if(!a)return;t=b||u,r=v||h,o=w||f}let i=!1;const l=e._enterCb=t=>{i||(i=!0,k(t?o:r,[e]),S.delayedLeave&&S.delayedLeave(),e._enterCb=void 0)};t?C(t,[e,l]):l()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();k(p,[t]);let a=!1;const i=t._leaveCb=n=>{a||(a=!0,r(),k(n?m:g,[t]),t._leaveCb=void 0,x[o]===e&&delete x[o])};x[o]=e,d?C(d,[t,i]):i()},clone(e){return ae(e,t,n,r)}};return S}function ie(e){if(de(e))return e=nn(e),e.children=null,e}function le(e){return de(e)?e.children?e.children[0]:void 0:e}function se(e,t){6&e.shapeFlag&&e.component?se(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ce(e,t=!1,n){let r=[],o=0;for(let a=0;a1)for(let a=0;a!!e.type.__asyncLoader;function fe(e){(0,o.mf)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:a,delay:i=200,timeout:s,suspensible:c=!0,onError:u}=e;let h,f=null,p=0;const d=()=>(p++,f=null,g()),g=()=>{let e;return f||(e=f=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),u)return new Promise(((t,n)=>{const r=()=>t(d()),o=()=>n(e);u(e,r,o,p+1)}));throw e})).then((t=>e!==f&&f?f:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),h=t,t))))};return ue({name:"AsyncComponentWrapper",__asyncLoader:g,get __asyncResolved(){return h},setup(){const e=gn;if(h)return()=>pe(h,e);const t=t=>{f=null,l(t,e,13,!a)};if(c&&e.suspense||xn)return g().then((t=>()=>pe(t,e))).catch((e=>(t(e),()=>a?Qt(a,{error:e}):null)));const o=(0,r.iH)(!1),u=(0,r.iH)(),p=(0,r.iH)(!!i);return i&&setTimeout((()=>{p.value=!1}),i),null!=s&&setTimeout((()=>{if(!o.value&&!u.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),u.value=e}}),s),g().then((()=>{o.value=!0,e.parent&&de(e.parent.vnode)&&w(e.parent.update)})).catch((e=>{t(e),u.value=e})),()=>o.value&&h?pe(h,e):u.value&&a?Qt(a,{error:u.value}):n&&!p.value?Qt(n):void 0}})}function pe(e,{vnode:{ref:t,props:n,children:r,shapeFlag:o},parent:a}){const i=Qt(e,n,r);return i.ref=t,i}const de=e=>e.type.__isKeepAlive;RegExp,RegExp;function ge(e,t){return(0,o.kJ)(e)?e.some((e=>ge(e,t))):(0,o.HD)(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function me(e,t){be(e,"a",t)}function _e(e,t){be(e,"da",t)}function be(e,t,n=gn){const r=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(xe(t,r,n),n){let e=n.parent;while(e&&e.parent)de(e.parent.vnode)&&ve(r,t,n,e),e=e.parent}}function ve(e,t,n,r){const a=xe(t,e,r,!0);Ee((()=>{(0,o.Od)(r[t],a)}),n)}function we(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function ye(e){return 128&e.shapeFlag?e.ssContent:e}function xe(e,t,n=gn,o=!1){if(n){const a=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;(0,r.Jd)(),_n(n);const a=i(t,n,e,o);return bn(),(0,r.lk)(),a});return o?a.unshift(l):a.push(l),l}}const ke=e=>(t,n=gn)=>(!xn||"sp"===e)&&xe(e,((...e)=>t(...e)),n),Ce=ke("bm"),Se=ke("m"),Fe=ke("bu"),Ae=ke("u"),je=ke("bum"),Ee=ke("um"),Me=ke("sp"),De=ke("rtg"),Oe=ke("rtc");function Le(e,t=gn){xe("ec",e,t)}function Re(e,t){const n=O;if(null===n)return e;const r=En(n)||n.proxy,a=e.dirs||(e.dirs=[]);for(let i=0;it(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);a=new Array(n.length);for(let r=0,o=n.length;re?vn(e)?En(e)||e.proxy:Ne(e.parent):null,Ue=(0,o.l7)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ne(e.parent),$root:e=>Ne(e.root),$emit:e=>e.emit,$options:e=>Ye(e),$forceUpdate:e=>e.f||(e.f=()=>w(e.update)),$nextTick:e=>e.n||(e.n=b.bind(e.proxy)),$watch:e=>Y.bind(e)}),We={get({_:e},t){const{ctx:n,setupState:a,data:i,props:l,accessCache:s,type:c,appContext:u}=e;let h;if("$"!==t[0]){const r=s[t];if(void 0!==r)switch(r){case 1:return a[t];case 2:return i[t];case 4:return n[t];case 3:return l[t]}else{if(a!==o.kT&&(0,o.RI)(a,t))return s[t]=1,a[t];if(i!==o.kT&&(0,o.RI)(i,t))return s[t]=2,i[t];if((h=e.propsOptions[0])&&(0,o.RI)(h,t))return s[t]=3,l[t];if(n!==o.kT&&(0,o.RI)(n,t))return s[t]=4,n[t];Ke&&(s[t]=0)}}const f=Ue[t];let p,d;return f?("$attrs"===t&&(0,r.j)(e,"get",t),f(e)):(p=c.__cssModules)&&(p=p[t])?p:n!==o.kT&&(0,o.RI)(n,t)?(s[t]=4,n[t]):(d=u.config.globalProperties,(0,o.RI)(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:r,setupState:a,ctx:i}=e;return a!==o.kT&&(0,o.RI)(a,t)?(a[t]=n,!0):r!==o.kT&&(0,o.RI)(r,t)?(r[t]=n,!0):!(0,o.RI)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:a,propsOptions:i}},l){let s;return!!n[l]||e!==o.kT&&(0,o.RI)(e,l)||t!==o.kT&&(0,o.RI)(t,l)||(s=i[0])&&(0,o.RI)(s,l)||(0,o.RI)(r,l)||(0,o.RI)(Ue,l)||(0,o.RI)(a.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,o.RI)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Ke=!0;function Ve(e){const t=Ye(e),n=e.proxy,a=e.ctx;Ke=!1,t.beforeCreate&&Ge(t.beforeCreate,e,"bc");const{data:i,computed:l,methods:s,watch:c,provide:u,inject:h,created:f,beforeMount:p,mounted:d,beforeUpdate:g,updated:m,activated:_,deactivated:b,beforeDestroy:v,beforeUnmount:w,destroyed:y,unmounted:x,render:k,renderTracked:C,renderTriggered:S,errorCaptured:F,serverPrefetch:A,expose:j,inheritAttrs:E,components:M,directives:D,filters:O}=t,L=null;if(h&&Je(h,a,L,e.appContext.config.unwrapInjectedRef),s)for(const r in s){const e=s[r];(0,o.mf)(e)&&(a[r]=e.bind(n))}if(i){0;const t=i.call(n,n);0,(0,o.Kn)(t)&&(e.data=(0,r.qj)(t))}if(Ke=!0,l)for(const r in l){const e=l[r],t=(0,o.mf)(e)?e.bind(n,n):(0,o.mf)(e.get)?e.get.bind(n,n):o.dG;0;const i=!(0,o.mf)(e)&&(0,o.mf)(e.set)?e.set.bind(n):o.dG,s=On({get:t,set:i});Object.defineProperty(a,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(c)for(const r in c)Ze(c[r],a,n,r);if(u){const e=(0,o.mf)(u)?u.call(n):u;Reflect.ownKeys(e).forEach((t=>{K(t,e[t])}))}function R(e,t){(0,o.kJ)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(f&&Ge(f,e,"c"),R(Ce,p),R(Se,d),R(Fe,g),R(Ae,m),R(me,_),R(_e,b),R(Le,F),R(Oe,C),R(De,S),R(je,w),R(Ee,x),R(Me,A),(0,o.kJ)(j))if(j.length){const t=e.exposed||(e.exposed={});j.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});k&&e.render===o.dG&&(e.render=k),null!=E&&(e.inheritAttrs=E),M&&(e.components=M),D&&(e.directives=D)}function Je(e,t,n=o.dG,a=!1){(0,o.kJ)(e)&&(e=nt(e));for(const i in e){const n=e[i];let l;l=(0,o.Kn)(n)?"default"in n?V(n.from||i,n.default,!0):V(n.from||i):V(n),(0,r.dq)(l)&&a?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e}):t[i]=l}}function Ge(e,t,n){i((0,o.kJ)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Ze(e,t,n,r){const a=r.includes(".")?X(n,r):()=>n[r];if((0,o.HD)(e)){const n=t[e];(0,o.mf)(n)&&G(a,n)}else if((0,o.mf)(e))G(a,e.bind(n));else if((0,o.Kn)(e))if((0,o.kJ)(e))e.forEach((e=>Ze(e,t,n,r)));else{const r=(0,o.mf)(e.handler)?e.handler.bind(n):t[e.handler];(0,o.mf)(r)&&G(a,r,e)}else 0}function Ye(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,s=i.get(t);let c;return s?c=s:a.length||n||r?(c={},a.length&&a.forEach((e=>Xe(c,e,l,!0))),Xe(c,t,l)):c=t,(0,o.Kn)(t)&&i.set(t,c),c}function Xe(e,t,n,r=!1){const{mixins:o,extends:a}=t;a&&Xe(e,a,n,!0),o&&o.forEach((t=>Xe(e,t,n,!0)));for(const i in t)if(r&&"expose"===i);else{const r=Qe[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}const Qe={data:et,props:ot,emits:ot,methods:ot,computed:ot,beforeCreate:rt,created:rt,beforeMount:rt,mounted:rt,beforeUpdate:rt,updated:rt,beforeDestroy:rt,beforeUnmount:rt,destroyed:rt,unmounted:rt,activated:rt,deactivated:rt,errorCaptured:rt,serverPrefetch:rt,components:ot,directives:ot,watch:at,provide:et,inject:tt};function et(e,t){return t?e?function(){return(0,o.l7)((0,o.mf)(e)?e.call(this,this):e,(0,o.mf)(t)?t.call(this,this):t)}:t:e}function tt(e,t){return ot(nt(e),nt(t))}function nt(e){if((0,o.kJ)(e)){const t={};for(let n=0;n0)||16&s){let r;st(e,t,i,l)&&(h=!0);for(const a in c)t&&((0,o.RI)(t,a)||(r=(0,o.rs)(a))!==a&&(0,o.RI)(t,r))||(u?!n||void 0===n[a]&&void 0===n[r]||(i[a]=ct(u,c,a,void 0,e,!0)):delete i[a]);if(l!==c)for(const e in l)t&&(0,o.RI)(t,e)||(delete l[e],h=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let r=0;r{c=!0;const[n,r]=ut(e,t,!0);(0,o.l7)(l,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!i&&!c)return(0,o.Kn)(e)&&r.set(e,o.Z6),o.Z6;if((0,o.kJ)(i))for(let h=0;h-1,r[1]=n<0||e-1||(0,o.RI)(r,"default"))&&s.push(t)}}}}const u=[l,s];return(0,o.Kn)(e)&&r.set(e,u),u}function ht(e){return"$"!==e[0]}function ft(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function pt(e,t){return ft(e)===ft(t)}function dt(e,t){return(0,o.kJ)(t)?t.findIndex((t=>pt(t,e))):(0,o.mf)(t)&&pt(t,e)?0:-1}const gt=e=>"_"===e[0]||"$stable"===e,mt=e=>(0,o.kJ)(e)?e.map(ln):[ln(e)],_t=(e,t,n)=>{if(t._n)return t;const r=P(((...e)=>mt(t(...e))),n);return r._c=!1,r},bt=(e,t,n)=>{const r=e._ctx;for(const a in e){if(gt(a))continue;const n=e[a];if((0,o.mf)(n))t[a]=_t(a,n,r);else if(null!=n){0;const e=mt(n);t[a]=()=>e}}},vt=(e,t)=>{const n=mt(t);e.slots.default=()=>n},wt=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=(0,r.IU)(t),(0,o.Nj)(t,"_",n)):bt(t,e.slots={})}else e.slots={},t&&vt(e,t);(0,o.Nj)(e.slots,Gt,1)},yt=(e,t,n)=>{const{vnode:r,slots:a}=e;let i=!0,l=o.kT;if(32&r.shapeFlag){const e=t._;e?n&&1===e?i=!1:((0,o.l7)(a,t),n||1!==e||delete a._):(i=!t.$stable,bt(t,a)),l=t}else t&&(vt(e,t),l={default:1});if(i)for(const o in a)gt(o)||o in l||delete a[o]};function xt(){return{app:null,config:{isNativeTag:o.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let kt=0;function Ct(e,t){return function(n,r=null){(0,o.mf)(n)||(n=Object.assign({},n)),null==r||(0,o.Kn)(r)||(r=null);const a=xt(),i=new Set;let l=!1;const s=a.app={_uid:kt++,_component:n,_props:r,_container:null,_context:a,_instance:null,version:Rn,get config(){return a.config},set config(e){0},use(e,...t){return i.has(e)||(e&&(0,o.mf)(e.install)?(i.add(e),e.install(s,...t)):(0,o.mf)(e)&&(i.add(e),e(s,...t))),s},mixin(e){return a.mixins.includes(e)||a.mixins.push(e),s},component(e,t){return t?(a.components[e]=t,s):a.components[e]},directive(e,t){return t?(a.directives[e]=t,s):a.directives[e]},mount(o,i,c){if(!l){0;const u=Qt(n,r);return u.appContext=a,i&&t?t(u,o):e(u,o,c),l=!0,s._container=o,o.__vue_app__=s,En(u.component)||u.component.proxy}},unmount(){l&&(e(null,s._container),delete s._container.__vue_app__)},provide(e,t){return a.provides[e]=t,s}};return s}}function St(e,t,n,i,l=!1){if((0,o.kJ)(e))return void e.forEach(((e,r)=>St(e,t&&((0,o.kJ)(t)?t[r]:t),n,i,l)));if(he(i)&&!l)return;const s=4&i.shapeFlag?En(i.component)||i.component.proxy:i.el,c=l?null:s,{i:u,r:h}=e;const f=t&&t.r,p=u.refs===o.kT?u.refs={}:u.refs,d=u.setupState;if(null!=f&&f!==h&&((0,o.HD)(f)?(p[f]=null,(0,o.RI)(d,f)&&(d[f]=null)):(0,r.dq)(f)&&(f.value=null)),(0,o.mf)(h))a(h,u,12,[c,p]);else{const t=(0,o.HD)(h),a=(0,r.dq)(h);if(t||a){const r=()=>{if(e.f){const n=t?(0,o.RI)(d,h)?d[h]:p[h]:h.value;l?(0,o.kJ)(n)&&(0,o.Od)(n,s):(0,o.kJ)(n)?n.includes(s)||n.push(s):t?(p[h]=[s],(0,o.RI)(d,h)&&(d[h]=p[h])):(h.value=[s],e.k&&(p[e.k]=h.value))}else t?(p[h]=c,(0,o.RI)(d,h)&&(d[h]=c)):a&&(h.value=c,e.k&&(p[e.k]=c))};c?(r.id=-1,At(r,n)):r()}else 0}}function Ft(){}const At=W;function jt(e){return Et(e)}function Et(e,t){Ft();const n=(0,o.E9)();n.__VUE__=!0;const{insert:a,remove:i,patchProp:l,createElement:s,createText:c,createComment:u,setText:h,setElementText:f,parentNode:p,nextSibling:d,setScopeId:g=o.dG,insertStaticContent:m}=e,_=(e,t,n,r=null,o=null,a=null,i=!1,l=null,s=!!t.dynamicChildren)=>{if(e===t)return;e&&!Jt(e,t)&&(r=X(e),V(e,o,a,!0),e=null),-2===t.patchFlag&&(s=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:h}=t;switch(c){case Tt:b(e,t,n,r);break;case It:v(e,t,n,r);break;case Pt:null==e&&y(t,n,r,i);break;case Rt:R(e,t,n,r,o,a,i,l,s);break;default:1&h?A(e,t,n,r,o,a,i,l,s):6&h?T(e,t,n,r,o,a,i,l,s):(64&h||128&h)&&c.process(e,t,n,r,o,a,i,l,s,ee)}null!=u&&o&&St(u,e&&e.ref,a,t||e,!t)},b=(e,t,n,r)=>{if(null==e)a(t.el=c(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&h(n,t.children)}},v=(e,t,n,r)=>{null==e?a(t.el=u(t.children||""),n,r):t.el=e.el},y=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},k=({el:e,anchor:t},n,r)=>{let o;while(e&&e!==t)o=d(e),a(e,n,r),e=o;a(t,n,r)},F=({el:e,anchor:t})=>{let n;while(e&&e!==t)n=d(e),i(e),e=n;i(t)},A=(e,t,n,r,o,a,i,l,s)=>{i=i||"svg"===t.type,null==e?j(t,n,r,o,a,i,l,s):D(e,t,o,a,i,l,s)},j=(e,t,n,r,i,c,u,h)=>{let p,d;const{type:g,props:m,shapeFlag:_,transition:b,dirs:v}=e;if(p=e.el=s(e.type,c,m&&m.is,m),8&_?f(p,e.children):16&_&&M(e.children,p,null,r,i,c&&"foreignObject"!==g,u,h),v&&Te(e,null,r,"created"),m){for(const t in m)"value"===t||(0,o.Gg)(t)||l(p,t,null,m[t],c,e.children,r,i,Y);"value"in m&&l(p,"value",null,m.value),(d=m.onVnodeBeforeMount)&&hn(d,r,e)}E(p,e,e.scopeId,u,r),v&&Te(e,null,r,"beforeMount");const w=(!i||i&&!i.pendingBranch)&&b&&!b.persisted;w&&b.beforeEnter(p),a(p,t,n),((d=m&&m.onVnodeMounted)||w||v)&&At((()=>{d&&hn(d,r,e),w&&b.enter(p),v&&Te(e,null,r,"mounted")}),i)},E=(e,t,n,r,o)=>{if(n&&g(e,n),r)for(let a=0;a{for(let c=s;c{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:h,dirs:p}=t;u|=16&e.patchFlag;const d=e.props||o.kT,g=t.props||o.kT;let m;n&&Mt(n,!1),(m=g.onVnodeBeforeUpdate)&&hn(m,n,t,e),p&&Te(t,e,n,"beforeUpdate"),n&&Mt(n,!0);const _=a&&"foreignObject"!==t.type;if(h?O(e.dynamicChildren,h,c,n,r,_,i):s||$(e,t,c,null,n,r,_,i,!1),u>0){if(16&u)L(c,t,d,g,n,r,a);else if(2&u&&d.class!==g.class&&l(c,"class",null,g.class,a),4&u&&l(c,"style",d.style,g.style,a),8&u){const o=t.dynamicProps;for(let t=0;t{m&&hn(m,n,t,e),p&&Te(t,e,n,"updated")}),r)},O=(e,t,n,r,o,a,i)=>{for(let l=0;l{if(n!==r){if(n!==o.kT)for(const c in n)(0,o.Gg)(c)||c in r||l(e,c,n[c],null,s,t.children,a,i,Y);for(const c in r){if((0,o.Gg)(c))continue;const u=r[c],h=n[c];u!==h&&"value"!==c&&l(e,c,h,u,s,t.children,a,i,Y)}"value"in r&&l(e,"value",n.value,r.value)}},R=(e,t,n,r,o,i,l,s,u)=>{const h=t.el=e?e.el:c(""),f=t.anchor=e?e.anchor:c("");let{patchFlag:p,dynamicChildren:d,slotScopeIds:g}=t;g&&(s=s?s.concat(g):g),null==e?(a(h,n,r),a(f,n,r),M(t.children,n,f,o,i,l,s,u)):p>0&&64&p&&d&&e.dynamicChildren?(O(e.dynamicChildren,d,n,o,i,l,s),(null!=t.key||o&&t===o.subTree)&&Dt(e,t,!0)):$(e,t,n,f,o,i,l,s,u)},T=(e,t,n,r,o,a,i,l,s)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,i,s):I(t,n,r,o,a,i,s):P(e,t,s)},I=(e,t,n,r,o,a,i)=>{const l=e.component=dn(e,r,o);if(de(e)&&(l.ctx.renderer=ee),kn(l),l.asyncDep){if(o&&o.registerDep(l,z),!e.el){const e=l.subTree=Qt(It);v(null,e,t,n)}}else z(l,e,t,n,o,a,i)},P=(e,t,n)=>{const r=t.component=e.component;if(B(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void q(r,t,n);r.next=t,x(r.update),r.update()}else t.el=e.el,r.vnode=t},z=(e,t,n,a,i,l,s)=>{const c=()=>{if(e.isMounted){let t,{next:n,bu:r,u:a,parent:c,vnode:u}=e,h=n;0,Mt(e,!1),n?(n.el=u.el,q(e,n,s)):n=u,r&&(0,o.ir)(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&hn(t,c,n,u),Mt(e,!0);const f=H(e);0;const d=e.subTree;e.subTree=f,_(d,f,p(d.el),X(d),e,i,l),n.el=f.el,null===h&&N(e,f.el),a&&At(a,i),(t=n.props&&n.props.onVnodeUpdated)&&At((()=>hn(t,c,n,u)),i)}else{let r;const{el:s,props:c}=t,{bm:u,m:h,parent:f}=e,p=he(t);if(Mt(e,!1),u&&(0,o.ir)(u),!p&&(r=c&&c.onVnodeBeforeMount)&&hn(r,f,t),Mt(e,!0),s&&ne){const n=()=>{e.subTree=H(e),ne(s,e.subTree,e,i,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const r=e.subTree=H(e);0,_(null,r,n,a,e,i,l),t.el=r.el}if(h&&At(h,i),!p&&(r=c&&c.onVnodeMounted)){const e=t;At((()=>hn(r,f,e)),i)}(256&t.shapeFlag||f&&he(f.vnode)&&256&f.vnode.shapeFlag)&&e.a&&At(e.a,i),e.isMounted=!0,t=n=a=null}},u=e.effect=new r.qq(c,(()=>w(h)),e.scope),h=e.update=()=>u.run();h.id=e.uid,Mt(e,!0),h()},q=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,lt(e,t.props,o,n),yt(e,t.children,n),(0,r.Jd)(),C(),(0,r.lk)()},$=(e,t,n,r,o,a,i,l,s=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,h=t.children,{patchFlag:p,shapeFlag:d}=t;if(p>0){if(128&p)return void W(c,h,n,r,o,a,i,l,s);if(256&p)return void U(c,h,n,r,o,a,i,l,s)}8&d?(16&u&&Y(c,o,a),h!==c&&f(n,h)):16&u?16&d?W(c,h,n,r,o,a,i,l,s):Y(c,o,a,!0):(8&u&&f(n,""),16&d&&M(h,n,r,o,a,i,l,s))},U=(e,t,n,r,a,i,l,s,c)=>{e=e||o.Z6,t=t||o.Z6;const u=e.length,h=t.length,f=Math.min(u,h);let p;for(p=0;ph?Y(e,a,i,!0,!1,f):M(t,n,r,a,i,l,s,c,f)},W=(e,t,n,r,a,i,l,s,c)=>{let u=0;const h=t.length;let f=e.length-1,p=h-1;while(u<=f&&u<=p){const r=e[u],o=t[u]=c?sn(t[u]):ln(t[u]);if(!Jt(r,o))break;_(r,o,n,null,a,i,l,s,c),u++}while(u<=f&&u<=p){const r=e[f],o=t[p]=c?sn(t[p]):ln(t[p]);if(!Jt(r,o))break;_(r,o,n,null,a,i,l,s,c),f--,p--}if(u>f){if(u<=p){const e=p+1,o=ep)while(u<=f)V(e[u],a,i,!0),u++;else{const d=u,g=u,m=new Map;for(u=g;u<=p;u++){const e=t[u]=c?sn(t[u]):ln(t[u]);null!=e.key&&m.set(e.key,u)}let b,v=0;const w=p-g+1;let y=!1,x=0;const k=new Array(w);for(u=0;u=w){V(r,a,i,!0);continue}let o;if(null!=r.key)o=m.get(r.key);else for(b=g;b<=p;b++)if(0===k[b-g]&&Jt(r,t[b])){o=b;break}void 0===o?V(r,a,i,!0):(k[o-g]=u+1,o>=x?x=o:y=!0,_(r,t[o],n,null,a,i,l,s,c),v++)}const C=y?Ot(k):o.Z6;for(b=C.length-1,u=w-1;u>=0;u--){const e=g+u,o=t[e],f=e+1{const{el:i,type:l,transition:s,children:c,shapeFlag:u}=e;if(6&u)return void K(e.component.subTree,t,n,r);if(128&u)return void e.suspense.move(t,n,r);if(64&u)return void l.move(e,t,n,ee);if(l===Rt){a(i,t,n);for(let e=0;es.enter(i)),o);else{const{leave:e,delayLeave:r,afterLeave:o}=s,l=()=>a(i,t,n),c=()=>{e(i,(()=>{l(),o&&o()}))};r?r(i,l,c):c()}else a(i,t,n)},V=(e,t,n,r=!1,o=!1)=>{const{type:a,props:i,ref:l,children:s,dynamicChildren:c,shapeFlag:u,patchFlag:h,dirs:f}=e;if(null!=l&&St(l,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const p=1&u&&f,d=!he(e);let g;if(d&&(g=i&&i.onVnodeBeforeUnmount)&&hn(g,t,e),6&u)Z(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);p&&Te(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,ee,r):c&&(a!==Rt||h>0&&64&h)?Y(c,t,n,!1,!0):(a===Rt&&384&h||!o&&16&u)&&Y(s,t,n),r&&J(e)}(d&&(g=i&&i.onVnodeUnmounted)||p)&&At((()=>{g&&hn(g,t,e),p&&Te(e,null,t,"unmounted")}),n)},J=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===Rt)return void G(n,r);if(t===Pt)return void F(e);const a=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,a);r?r(e.el,a,i):i()}else a()},G=(e,t)=>{let n;while(e!==t)n=d(e),i(e),e=n;i(t)},Z=(e,t,n)=>{const{bum:r,scope:a,update:i,subTree:l,um:s}=e;r&&(0,o.ir)(r),a.stop(),i&&(i.active=!1,V(l,e,t,n)),s&&At(s,t),At((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Y=(e,t,n,r=!1,o=!1,a=0)=>{for(let i=a;i6&e.shapeFlag?X(e.component.subTree):128&e.shapeFlag?e.suspense.next():d(e.anchor||e.el),Q=(e,t,n)=>{null==e?t._vnode&&V(t._vnode,null,null,!0):_(t._vnode||null,e,t,null,null,null,n),C(),S(),t._vnode=e},ee={p:_,um:V,m:K,r:J,mt:I,mc:M,pc:$,pbc:O,n:X,o:e};let te,ne;return t&&([te,ne]=t(ee)),{render:Q,hydrate:te,createApp:Ct(Q,te)}}function Mt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Dt(e,t,n=!1){const r=e.children,a=t.children;if((0,o.kJ)(r)&&(0,o.kJ)(a))for(let o=0;o>1,e[n[l]]0&&(t[r]=n[a-1]),n[a]=r)}}a=n.length,i=n[a-1];while(a-- >0)n[a]=i,i=t[i];return n}const Lt=e=>e.__isTeleport;const Rt=Symbol(void 0),Tt=Symbol(void 0),It=Symbol(void 0),Pt=Symbol(void 0),Ht=[];let zt=null;function qt(e=!1){Ht.push(zt=e?null:[])}function Bt(){Ht.pop(),zt=Ht[Ht.length-1]||null}let $t=1;function Nt(e){$t+=e}function Ut(e){return e.dynamicChildren=$t>0?zt||o.Z6:null,Bt(),$t>0&&zt&&zt.push(e),e}function Wt(e,t,n,r,o,a){return Ut(Xt(e,t,n,r,o,a,!0))}function Kt(e,t,n,r,o){return Ut(Qt(e,t,n,r,o,!0))}function Vt(e){return!!e&&!0===e.__v_isVNode}function Jt(e,t){return e.type===t.type&&e.key===t.key}const Gt="__vInternal",Zt=({key:e})=>null!=e?e:null,Yt=({ref:e,ref_key:t,ref_for:n})=>null!=e?(0,o.HD)(e)||(0,r.dq)(e)||(0,o.mf)(e)?{i:O,r:e,k:t,f:!!n}:e:null;function Xt(e,t=null,n=null,r=0,a=null,i=(e===Rt?0:1),l=!1,s=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Zt(t),ref:t&&Yt(t),scopeId:L,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null};return s?(cn(c,n),128&i&&e.normalize(c)):n&&(c.shapeFlag|=(0,o.HD)(n)?8:16),$t>0&&!l&&zt&&(c.patchFlag>0||6&i)&&32!==c.patchFlag&&zt.push(c),c}const Qt=en;function en(e,t=null,n=null,a=0,i=null,l=!1){if(e&&e!==He||(e=It),Vt(e)){const r=nn(e,t,!0);return n&&cn(r,n),$t>0&&!l&&zt&&(6&r.shapeFlag?zt[zt.indexOf(e)]=r:zt.push(r)),r.patchFlag|=-2,r}if(Dn(e)&&(e=e.__vccOpts),t){t=tn(t);let{class:e,style:n}=t;e&&!(0,o.HD)(e)&&(t.class=(0,o.C_)(e)),(0,o.Kn)(n)&&((0,r.X3)(n)&&!(0,o.kJ)(n)&&(n=(0,o.l7)({},n)),t.style=(0,o.j5)(n))}const s=(0,o.HD)(e)?1:U(e)?128:Lt(e)?64:(0,o.Kn)(e)?4:(0,o.mf)(e)?2:0;return Xt(e,t,n,a,i,s,l,!0)}function tn(e){return e?(0,r.X3)(e)||Gt in e?(0,o.l7)({},e):e:null}function nn(e,t,n=!1){const{props:r,ref:a,patchFlag:i,children:l}=e,s=t?un(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Zt(s),ref:t&&t.ref?n&&a?(0,o.kJ)(a)?a.concat(Yt(t)):[a,Yt(t)]:Yt(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Rt?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nn(e.ssContent),ssFallback:e.ssFallback&&nn(e.ssFallback),el:e.el,anchor:e.anchor};return c}function rn(e=" ",t=0){return Qt(Tt,null,e,t)}function on(e,t){const n=Qt(Pt,null,e);return n.staticCount=t,n}function an(e="",t=!1){return t?(qt(),Kt(It,null,e)):Qt(It,null,e)}function ln(e){return null==e||"boolean"===typeof e?Qt(It):(0,o.kJ)(e)?Qt(Rt,null,e.slice()):"object"===typeof e?sn(e):Qt(Tt,null,String(e))}function sn(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:nn(e)}function cn(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if((0,o.kJ)(t))n=16;else if("object"===typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),cn(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Gt in t?3===r&&O&&(1===O.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=O}}else(0,o.mf)(t)?(t={default:t,_ctx:O},n=32):(t=String(t),64&r?(n=16,t=[rn(t)]):n=8);e.children=t,e.shapeFlag|=n}function un(...e){const t={};for(let n=0;ngn||O,_n=e=>{gn=e,e.scope.on()},bn=()=>{gn&&gn.scope.off(),gn=null};function vn(e){return 4&e.vnode.shapeFlag}let wn,yn,xn=!1;function kn(e,t=!1){xn=t;const{props:n,children:r}=e.vnode,o=vn(e);it(e,n,o,t),wt(e,r);const a=o?Cn(e,t):void 0;return xn=!1,a}function Cn(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=(0,r.Xl)(new Proxy(e.ctx,We));const{setup:i}=n;if(i){const n=e.setupContext=i.length>1?jn(e):null;_n(e),(0,r.Jd)();const s=a(i,e,0,[e.props,n]);if((0,r.lk)(),bn(),(0,o.tI)(s)){if(s.then(bn,bn),t)return s.then((n=>{Sn(e,n,t)})).catch((t=>{l(t,e,0)}));e.asyncDep=s}else Sn(e,s,t)}else Fn(e,t)}function Sn(e,t,n){(0,o.mf)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,o.Kn)(t)&&(e.setupState=(0,r.WL)(t)),Fn(e,n)}function Fn(e,t,n){const a=e.type;if(!e.render){if(!t&&wn&&!a.render){const t=a.template||Ye(e).template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:i,compilerOptions:l}=a,s=(0,o.l7)((0,o.l7)({isCustomElement:n,delimiters:i},r),l);a.render=wn(t,s)}}e.render=a.render||o.dG,yn&&yn(e)}_n(e),(0,r.Jd)(),Ve(e),(0,r.lk)(),bn()}function An(e){return new Proxy(e.attrs,{get(t,n){return(0,r.j)(e,"get","$attrs"),t[n]}})}function jn(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=An(e))},slots:e.slots,emit:e.emit,expose:t}}function En(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,r.WL)((0,r.Xl)(e.exposed)),{get(t,n){return n in t?t[n]:n in Ue?Ue[n](e):void 0}}))}function Mn(e,t=!0){return(0,o.mf)(e)?e.displayName||e.name:e.name||t&&e.__name}function Dn(e){return(0,o.mf)(e)&&"__vccOpts"in e}const On=(e,t)=>(0,r.Fl)(e,t,xn);function Ln(e,t,n){const r=arguments.length;return 2===r?(0,o.Kn)(t)&&!(0,o.kJ)(t)?Vt(t)?Qt(e,null,[t]):Qt(e,t):Qt(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Vt(n)&&(n=[n]),Qt(e,t,n))}Symbol("");const Rn="3.2.41"},9963:function(e,t,n){"use strict";n.d(t,{F8:function(){return le},MW:function(){return O},e8:function(){return re},nr:function(){return ne},ri:function(){return pe}});var r=n(3577),o=n(6252);n(2262);const a="http://www.w3.org/2000/svg",i="undefined"!==typeof document?document:null,l=i&&i.createElement("template"),s={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?i.createElementNS(a,e):i.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>i.createTextNode(e),createComment:e=>i.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>i.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,a){const i=n?n.previousSibling:t.lastChild;if(o&&(o===a||o.nextSibling)){while(1)if(t.insertBefore(o.cloneNode(!0),n),o===a||!(o=o.nextSibling))break}else{l.innerHTML=r?`${e}`:e;const o=l.content;if(r){const e=o.firstChild;while(e.firstChild)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function c(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function u(e,t,n){const o=e.style,a=(0,r.HD)(n);if(n&&!a){for(const e in n)f(o,e,n[e]);if(t&&!(0,r.HD)(t))for(const e in t)null==n[e]&&f(o,e,"")}else{const r=o.display;a?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=r)}}const h=/\s*!important$/;function f(e,t,n){if((0,r.kJ)(n))n.forEach((n=>f(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=g(e,t);h.test(n)?e.setProperty((0,r.rs)(o),n.replace(h,""),"important"):e[o]=n}}const p=["Webkit","Moz","ms"],d={};function g(e,t){const n=d[t];if(n)return n;let o=(0,r._A)(t);if("filter"!==o&&o in e)return d[t]=o;o=(0,r.kC)(o);for(let r=0;rC||(S.then((()=>C=0)),C=Date.now());function A(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();(0,o.$d)(j(e,n.value),t,5,[e])};return n.value=e,n.attached=F(),n}function j(e,t){if((0,r.kJ)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}const E=/^on[a-z]/,M=(e,t,n,o,a=!1,i,l,s,h)=>{"class"===t?c(e,o,a):"style"===t?u(e,n,o):(0,r.F7)(t)?(0,r.tR)(t)||y(e,t,n,o,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):D(e,t,o,a))?b(e,t,o,i,l,s,h):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),_(e,t,o,a))};function D(e,t,n,o){return o?"innerHTML"===t||"textContent"===t||!!(t in e&&E.test(t)&&(0,r.mf)(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!E.test(t)||!(0,r.HD)(n))&&t in e))))}function O(e,t){const n=(0,o.aZ)(e);class r extends R{constructor(e){super(n,e,t)}}return r.def=n,r}const L="undefined"!==typeof HTMLElement?HTMLElement:class{};class R extends L{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,(0,o.Y3)((()=>{this._connected||(fe(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let n=0;n{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0});const e=e=>{const{props:t,styles:n}=e,o=!(0,r.kJ)(t),a=t?o?Object.keys(t):t:[];let i;if(o)for(const l in this._props){const e=t[l];(e===Number||e&&e.type===Number)&&(this._props[l]=(0,r.He)(this._props[l]),(i||(i=Object.create(null)))[l]=!0)}this._numberProps=i;for(const r of Object.keys(this))"_"!==r[0]&&this._setProp(r,this[r],!0,!1);for(const l of a.map(r._A))Object.defineProperty(this,l,{get(){return this._getProp(l)},set(e){this._setProp(l,e)}});this._applyStyles(n),this._update()},t=this._def.__asyncLoader;t?t().then(e):e(this._def)}_setAttr(e){let t=this.getAttribute(e);this._numberProps&&this._numberProps[e]&&(t=(0,r.He)(t)),this._setProp((0,r._A)(e),t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute((0,r.rs)(e),""):"string"===typeof t||"number"===typeof t?this.setAttribute((0,r.rs)(e),t+""):t||this.removeAttribute((0,r.rs)(e))))}_update(){fe(this._createVNode(),this.shadowRoot)}_createVNode(){const e=(0,o.Wm)(this._def,(0,r.l7)({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0,e.emit=(e,...t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};let t=this;while(t=t&&(t.parentNode||t.host))if(t instanceof R){e.parent=t._instance;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}const T="transition",I="animation",P=(e,{slots:t})=>(0,o.h)(o.P$,B(e),t);P.displayName="Transition";const H={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},z=(P.props=(0,r.l7)({},o.P$.props,H),(e,t=[])=>{(0,r.kJ)(e)?e.forEach((e=>e(...t))):e&&e(...t)}),q=e=>!!e&&((0,r.kJ)(e)?e.some((e=>e.length>1)):e.length>1);function B(e){const t={};for(const r in e)r in H||(t[r]=e[r]);if(!1===e.css)return t;const{name:n="v",type:o,duration:a,enterFromClass:i=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=l,appearToClass:h=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=e,g=$(a),m=g&&g[0],_=g&&g[1],{onBeforeEnter:b,onEnter:v,onEnterCancelled:w,onLeave:y,onLeaveCancelled:x,onBeforeAppear:k=b,onAppear:C=v,onAppearCancelled:S=w}=t,F=(e,t,n)=>{W(e,t?h:s),W(e,t?u:l),n&&n()},A=(e,t)=>{e._isLeaving=!1,W(e,f),W(e,d),W(e,p),t&&t()},j=e=>(t,n)=>{const r=e?C:v,a=()=>F(t,e,n);z(r,[t,a]),K((()=>{W(t,e?c:i),U(t,e?h:s),q(r)||J(t,o,m,a)}))};return(0,r.l7)(t,{onBeforeEnter(e){z(b,[e]),U(e,i),U(e,l)},onBeforeAppear(e){z(k,[e]),U(e,c),U(e,u)},onEnter:j(!1),onAppear:j(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>A(e,t);U(e,f),X(),U(e,p),K((()=>{e._isLeaving&&(W(e,f),U(e,d),q(y)||J(e,o,_,n))})),z(y,[e,n])},onEnterCancelled(e){F(e,!1),z(w,[e])},onAppearCancelled(e){F(e,!0),z(S,[e])},onLeaveCancelled(e){A(e),z(x,[e])}})}function $(e){if(null==e)return null;if((0,r.Kn)(e))return[N(e.enter),N(e.leave)];{const t=N(e);return[t,t]}}function N(e){const t=(0,r.He)(e);return t}function U(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function W(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function K(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let V=0;function J(e,t,n,r){const o=e._endId=++V,a=()=>{o===e._endId&&r()};if(n)return setTimeout(a,n);const{type:i,timeout:l,propCount:s}=G(e,t);if(!i)return r();const c=i+"end";let u=0;const h=()=>{e.removeEventListener(c,f),a()},f=t=>{t.target===e&&++u>=s&&h()};setTimeout((()=>{u(n[e]||"").split(", "),o=r(T+"Delay"),a=r(T+"Duration"),i=Z(o,a),l=r(I+"Delay"),s=r(I+"Duration"),c=Z(l,s);let u=null,h=0,f=0;t===T?i>0&&(u=T,h=i,f=a.length):t===I?c>0&&(u=I,h=c,f=s.length):(h=Math.max(i,c),u=h>0?i>c?T:I:null,f=u?u===T?a.length:s.length:0);const p=u===T&&/\b(transform|all)(,|$)/.test(n[T+"Property"]);return{type:u,timeout:h,propCount:f,hasTransform:p}}function Z(e,t){while(e.lengthY(t)+Y(e[n]))))}function Y(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function X(){return document.body.offsetHeight}new WeakMap,new WeakMap;const Q=e=>{const t=e.props["onUpdate:modelValue"]||!1;return(0,r.kJ)(t)?e=>(0,r.ir)(t,e):t};function ee(e){e.target.composing=!0}function te(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ne={created(e,{modifiers:{lazy:t,trim:n,number:o}},a){e._assign=Q(a);const i=o||a.props&&"number"===a.props.type;v(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=(0,r.He)(o)),e._assign(o)})),n&&v(e,"change",(()=>{e.value=e.value.trim()})),t||(v(e,"compositionstart",ee),v(e,"compositionend",te),v(e,"change",te))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:a}},i){if(e._assign=Q(i),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(o&&e.value.trim()===t)return;if((a||"number"===e.type)&&(0,r.He)(e.value)===t)return}const l=null==t?"":t;e.value!==l&&(e.value=l)}},re={deep:!0,created(e,t,n){e._assign=Q(n),v(e,"change",(()=>{const t=e._modelValue,n=ae(e),o=e.checked,a=e._assign;if((0,r.kJ)(t)){const e=(0,r.hq)(t,n),i=-1!==e;if(o&&!i)a(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),a(n)}}else if((0,r.DM)(t)){const e=new Set(t);o?e.add(n):e.delete(n),a(e)}else a(ie(e,o))}))},mounted:oe,beforeUpdate(e,t,n){e._assign=Q(n),oe(e,t,n)}};function oe(e,{value:t,oldValue:n},o){e._modelValue=t,(0,r.kJ)(t)?e.checked=(0,r.hq)(t,o.props.value)>-1:(0,r.DM)(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=(0,r.WV)(t,ie(e,!0)))}function ae(e){return"_value"in e?e._value:e.value}function ie(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const le={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):se(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!==!n&&(r?t?(r.beforeEnter(e),se(e,!0),r.enter(e)):r.leave(e,(()=>{se(e,!1)})):se(e,t))},beforeUnmount(e,{value:t}){se(e,t)}};function se(e,t){e.style.display=t?e._vod:"none"}const ce=(0,r.l7)({patchProp:M},s);let ue;function he(){return ue||(ue=(0,o.Us)(ce))}const fe=(...e)=>{he().render(...e)},pe=(...e)=>{const t=he().createApp(...e);const{mount:n}=t;return t.mount=e=>{const o=de(e);if(!o)return;const a=t._component;(0,r.mf)(a)||a.render||a.template||(a.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function de(e){if((0,r.HD)(e)){const t=document.querySelector(e);return t}return e}},3577:function(e,t,n){"use strict";function r(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,{C_:function(){return p},DM:function(){return O},E9:function(){return re},F7:function(){return C},Gg:function(){return U},HD:function(){return T},He:function(){return te},Kn:function(){return P},NO:function(){return x},Nj:function(){return ee},Od:function(){return A},PO:function(){return $},Pq:function(){return l},RI:function(){return E},S0:function(){return N},W7:function(){return B},WV:function(){return g},Z6:function(){return w},_A:function(){return V},_N:function(){return D},aU:function(){return X},dG:function(){return y},e1:function(){return a},fY:function(){return r},hR:function(){return Y},hq:function(){return m},ir:function(){return Q},j5:function(){return c},kC:function(){return Z},kJ:function(){return M},kT:function(){return v},l7:function(){return F},mf:function(){return R},rs:function(){return G},tI:function(){return H},tR:function(){return S},yA:function(){return s},yk:function(){return I},zw:function(){return _}});const o="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",a=r(o);const i="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",l=r(i);function s(e){return!!e||""===e}function c(e){if(M(e)){const t={};for(let n=0;n{if(e){const n=e.split(h);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function p(e){let t="";if(T(e))t=e;else if(M(e))for(let n=0;ng(e,t)))}const _=e=>T(e)?e:null==e?"":M(e)||P(e)&&(e.toString===z||!R(e.toString))?JSON.stringify(e,b,2):String(e),b=(e,t)=>t&&t.__v_isRef?b(e,t.value):D(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:O(t)?{[`Set(${t.size})`]:[...t.values()]}:!P(t)||M(t)||$(t)?t:String(t),v={},w=[],y=()=>{},x=()=>!1,k=/^on[^a-z]/,C=e=>k.test(e),S=e=>e.startsWith("onUpdate:"),F=Object.assign,A=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},j=Object.prototype.hasOwnProperty,E=(e,t)=>j.call(e,t),M=Array.isArray,D=e=>"[object Map]"===q(e),O=e=>"[object Set]"===q(e),L=e=>"[object Date]"===q(e),R=e=>"function"===typeof e,T=e=>"string"===typeof e,I=e=>"symbol"===typeof e,P=e=>null!==e&&"object"===typeof e,H=e=>P(e)&&R(e.then)&&R(e.catch),z=Object.prototype.toString,q=e=>z.call(e),B=e=>q(e).slice(8,-1),$=e=>"[object Object]"===q(e),N=e=>T(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,U=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),W=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},K=/-(\w)/g,V=W((e=>e.replace(K,((e,t)=>t?t.toUpperCase():"")))),J=/\B([A-Z])/g,G=W((e=>e.replace(J,"-$1").toLowerCase())),Z=W((e=>e.charAt(0).toUpperCase()+e.slice(1))),Y=W((e=>e?`on${Z(e)}`:"")),X=(e,t)=>!Object.is(e,t),Q=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},te=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ne;const re=()=>ne||(ne="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{})},9662:function(e,t,n){var r=n(614),o=n(6330),a=TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not a function")}},9670:function(e,t,n){var r=n(111),o=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not an object")}},1318:function(e,t,n){var r=n(5656),o=n(1400),a=n(6244),i=function(e){return function(t,n,i){var l,s=r(t),c=a(s),u=o(i,c);if(e&&n!=n){while(c>u)if(l=s[u++],l!=l)return!0}else for(;c>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},3658:function(e,t,n){"use strict";var r=n(9781),o=n(3157),a=TypeError,i=Object.getOwnPropertyDescriptor,l=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=l?function(e,t){if(o(e)&&!i(e,"length").writable)throw a("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4326:function(e,t,n){var r=n(84),o=r({}.toString),a=r("".slice);e.exports=function(e){return a(o(e),8,-1)}},9920:function(e,t,n){var r=n(2597),o=n(3887),a=n(1236),i=n(3070);e.exports=function(e,t,n){for(var l=o(t),s=i.f,c=a.f,u=0;un)throw t("Maximum allowed index exceeded");return e}},8113:function(e,t,n){var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:function(e,t,n){var r,o,a=n(7854),i=n(8113),l=a.process,s=a.Deno,c=l&&l.versions||s&&s.version,u=c&&c.v8;u&&(r=u.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&i&&(r=i.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),e.exports=o},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,n){var r=n(7854),o=n(1236).f,a=n(8880),i=n(8052),l=n(3072),s=n(9920),c=n(4705);e.exports=function(e,t){var n,u,h,f,p,d,g=e.target,m=e.global,_=e.stat;if(u=m?r:_?r[g]||l(g,{}):(r[g]||{}).prototype,u)for(h in t){if(p=t[h],e.dontCallGetSet?(d=o(u,h),f=d&&d.value):f=u[h],n=c(m?h:g+(_?".":"#")+h,e.forced),!n&&void 0!==f){if(typeof p==typeof f)continue;s(p,f)}(e.sham||f&&f.sham)&&a(p,"sham",!0),i(u,h,p,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},4374:function(e,t,n){var r=n(7293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,n){var r=n(4374),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(e,t,n){var r=n(9781),o=n(2597),a=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,l=o(a,"name"),s=l&&"something"===function(){}.name,c=l&&(!r||r&&i(a,"name").configurable);e.exports={EXISTS:l,PROPER:s,CONFIGURABLE:c}},84:function(e,t,n){var r=n(4374),o=Function.prototype,a=o.call,i=r&&o.bind.bind(a,a);e.exports=r?i:function(e){return function(){return a.apply(e,arguments)}}},1702:function(e,t,n){var r=n(4326),o=n(84);e.exports=function(e){if("Function"===r(e))return o(e)}},5005:function(e,t,n){var r=n(7854),o=n(614),a=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}},8173:function(e,t,n){var r=n(9662),o=n(8554);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},7854:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(e,t,n){var r=n(1702),o=n(7908),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(o(e),t)}},3501:function(e){e.exports={}},4664:function(e,t,n){var r=n(9781),o=n(7293),a=n(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var r=n(1702),o=n(7293),a=n(4326),i=Object,l=r("".split);e.exports=o((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?l(e,""):i(e)}:i},2788:function(e,t,n){var r=n(1702),o=n(614),a=n(5465),i=r(Function.toString);o(a.inspectSource)||(a.inspectSource=function(e){return i(e)}),e.exports=a.inspectSource},9909:function(e,t,n){var r,o,a,i=n(4811),l=n(7854),s=n(111),c=n(8880),u=n(2597),h=n(5465),f=n(6200),p=n(3501),d="Object already initialized",g=l.TypeError,m=l.WeakMap,_=function(e){return a(e)?o(e):r(e,{})},b=function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return n}};if(i||h.state){var v=h.state||(h.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,t){if(v.has(e))throw g(d);return t.facade=e,v.set(e,t),t},o=function(e){return v.get(e)||{}},a=function(e){return v.has(e)}}else{var w=f("state");p[w]=!0,r=function(e,t){if(u(e,w))throw g(d);return t.facade=e,c(e,w,t),t},o=function(e){return u(e,w)?e[w]:{}},a=function(e){return u(e,w)}}e.exports={set:r,get:o,has:a,enforce:_,getterFor:b}},3157:function(e,t,n){var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},614:function(e,t,n){var r=n(4154),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},4705:function(e,t,n){var r=n(7293),o=n(614),a=/#|\.prototype\./,i=function(e,t){var n=s[l(e)];return n==u||n!=c&&(o(t)?r(t):!!t)},l=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},s=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},8554:function(e){e.exports=function(e){return null===e||void 0===e}},111:function(e,t,n){var r=n(614),o=n(4154),a=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===a}:function(e){return"object"==typeof e?null!==e:r(e)}},1913:function(e){e.exports=!1},2190:function(e,t,n){var r=n(5005),o=n(614),a=n(7976),i=n(3307),l=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&a(t.prototype,l(e))}},6244:function(e,t,n){var r=n(7466);e.exports=function(e){return r(e.length)}},6339:function(e,t,n){var r=n(7293),o=n(614),a=n(2597),i=n(9781),l=n(6530).CONFIGURABLE,s=n(2788),c=n(9909),u=c.enforce,h=c.get,f=Object.defineProperty,p=i&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),d=String(String).split("String"),g=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(i?f(e,"name",{value:t,configurable:!0}):e.name=t),p&&n&&a(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?i&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var r=u(e);return a(r,"source")||(r.source=d.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return o(this)&&h(this).source||s(this)}),"toString")},4758:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},3070:function(e,t,n){var r=n(9781),o=n(4664),a=n(3353),i=n(9670),l=n(4948),s=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",p="writable";t.f=r?a?function(e,t,n){if(i(e),t=l(t),i(n),"function"===typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=u(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:h in n?n[h]:r[h],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(i(e),t=l(t),i(n),o)try{return c(e,t,n)}catch(r){}if("get"in n||"set"in n)throw s("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){var r=n(9781),o=n(6916),a=n(5296),i=n(9114),l=n(5656),s=n(4948),c=n(2597),u=n(4664),h=Object.getOwnPropertyDescriptor;t.f=r?h:function(e,t){if(e=l(e),t=s(t),u)try{return h(e,t)}catch(n){}if(c(e,t))return i(!o(a.f,e,t),e[t])}},8006:function(e,t,n){var r=n(6324),o=n(748),a=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},7976:function(e,t,n){var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:function(e,t,n){var r=n(1702),o=n(2597),a=n(5656),i=n(1318).indexOf,l=n(3501),s=r([].push);e.exports=function(e,t){var n,r=a(e),c=0,u=[];for(n in r)!o(l,n)&&o(r,n)&&s(u,n);while(t.length>c)o(r,n=t[c++])&&(~i(u,n)||s(u,n));return u}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},2140:function(e,t,n){var r=n(6916),o=n(614),a=n(111),i=TypeError;e.exports=function(e,t){var n,l;if("string"===t&&o(n=e.toString)&&!a(l=r(n,e)))return l;if(o(n=e.valueOf)&&!a(l=r(n,e)))return l;if("string"!==t&&o(n=e.toString)&&!a(l=r(n,e)))return l;throw i("Can't convert object to primitive value")}},3887:function(e,t,n){var r=n(5005),o=n(1702),a=n(8006),i=n(5181),l=n(9670),s=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(l(e)),n=i.f;return n?s(t,n(e)):t}},4488:function(e,t,n){var r=n(8554),o=TypeError;e.exports=function(e){if(r(e))throw o("Can't call method on "+e);return e}},6200:function(e,t,n){var r=n(2309),o=n(9711),a=r("keys");e.exports=function(e){return a[e]||(a[e]=o(e))}},5465:function(e,t,n){var r=n(7854),o=n(3072),a="__core-js_shared__",i=r[a]||o(a,{});e.exports=i},2309:function(e,t,n){var r=n(1913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.0",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(e,t,n){var r=n(7392),o=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1400:function(e,t,n){var r=n(9303),o=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):a(n,t)}},5656:function(e,t,n){var r=n(8361),o=n(4488);e.exports=function(e){return r(o(e))}},9303:function(e,t,n){var r=n(4758);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},7466:function(e,t,n){var r=n(9303),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},7908:function(e,t,n){var r=n(4488),o=Object;e.exports=function(e){return o(r(e))}},7593:function(e,t,n){var r=n(6916),o=n(111),a=n(2190),i=n(8173),l=n(2140),s=n(5112),c=TypeError,u=s("toPrimitive");e.exports=function(e,t){if(!o(e)||a(e))return e;var n,s=i(e,u);if(s){if(void 0===t&&(t="default"),n=r(s,e,t),!o(n)||a(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},4948:function(e,t,n){var r=n(7593),o=n(2190);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},6330:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},9711:function(e,t,n){var r=n(1702),o=0,a=Math.random(),i=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++o+a,36)}},3307:function(e,t,n){var r=n(6293);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){var r=n(9781),o=n(7293);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(e,t,n){var r=n(7854),o=n(614),a=r.WeakMap;e.exports=o(a)&&/native code/.test(String(a))},5112:function(e,t,n){var r=n(7854),o=n(2309),a=n(2597),i=n(9711),l=n(6293),s=n(3307),c=o("wks"),u=r.Symbol,h=u&&u["for"],f=s?u:u&&u.withoutSetter||i;e.exports=function(e){if(!a(c,e)||!l&&"string"!=typeof c[e]){var t="Symbol."+e;l&&a(u,e)?c[e]=u[e]:c[e]=s&&h?h(t):f(t)}return c[e]}},7658:function(e,t,n){"use strict";var r=n(2109),o=n(7908),a=n(6244),i=n(3658),l=n(7207),s=n(7293),c=s((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:c||u},{push:function(e){var t=o(this),n=a(t),r=arguments.length;l(n+r);for(var s=0;s + * http://jaywcjlove.github.io/hotkeys + * Licensed under the MIT license + */ +var r="undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function o(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function a(e,t){for(var n=t.slice(0,t.length-1),r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function l(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,a=0;a=0&&d.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&d.splice(0,d.length),93!==t&&224!==t||(t=91),t in h)for(var r in h[t]=!1,c)c[r]===t&&(R[r]=!1)}function E(e){if("undefined"===typeof e)Object.keys(f).forEach((function(e){return delete f[e]}));else if(Array.isArray(e))e.forEach((function(e){e.key&&M(e)}));else if("object"===typeof e)e.key&&M(e);else if("string"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?a(c,t):[];f[u]=f[u].filter((function(e){var t=!r||e.method===r;return!(t&&e.scope===n&&l(e.mods,h))}))}}))};function D(e,t,n,r){var o;if(t.element===r&&(t.scope===n||"all"===t.scope)){for(var a in o=t.mods.length>0,h)Object.prototype.hasOwnProperty.call(h,a)&&(!h[a]&&t.mods.indexOf(+a)>-1||h[a]&&-1===t.mods.indexOf(+a))&&(o=!1);(0!==t.mods.length||h[16]||h[18]||h[17]||h[91])&&!o&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function O(e,t){var n=f["*"],r=e.keyCode||e.which||e.charCode;if(R.filter.call(this,e)){if(93!==r&&224!==r||(r=91),-1===d.indexOf(r)&&229!==r&&d.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=u[t];e[t]&&-1===d.indexOf(n)?d.push(n):!e[t]&&d.indexOf(n)>-1?d.splice(d.indexOf(n),1):"metaKey"===t&&e[t]&&3===d.length&&(e.ctrlKey||e.shiftKey||e.altKey||(d=d.slice(d.indexOf(n))))})),r in h){for(var o in h[r]=!0,c)c[o]===r&&(R[o]=!0);if(!n)return}for(var a in h)Object.prototype.hasOwnProperty.call(h,a)&&(h[a]=e[u[a]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===d.indexOf(17)&&d.push(17),-1===d.indexOf(18)&&d.push(18),h[17]=!0,h[18]=!0);var i=x();if(n)for(var l=0;l-1}function R(e,t,n){d=[];var r=i(e),l=[],s="all",u=document,h=0,p=!1,m=!0,v="+",w=!1;for(void 0===n&&"function"===typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(s=t.scope),t.element&&(u=t.element),t.keyup&&(p=t.keyup),void 0!==t.keydown&&(m=t.keydown),void 0!==t.capture&&(w=t.capture),"string"===typeof t.splitKey&&(v=t.splitKey)),"string"===typeof t&&(s=t);h1&&(l=a(c,e)),e=e[e.length-1],e="*"===e?"*":b(e),e in f||(f[e]=[]),f[e].push({keyup:p,keydown:m,scope:s,mods:l,shortcut:r[h],method:n,key:r[h],splitKey:v,element:u});"undefined"!==typeof u&&!L(u)&&window&&(_.push(u),o(u,"keydown",(function(e){O(e,u)}),w),g||(g=!0,o(window,"focus",(function(){d=[]}),w)),o(u,"keyup",(function(e){O(e,u),j(e)}),w))}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(f).forEach((function(n){var r=f[n].find((function(n){return n.scope===t&&n.shortcut===e}));r&&r.method&&r.method()}))}var I={getPressedKeyString:C,setScope:y,getScope:x,deleteScope:A,getPressedKeyCodes:k,isPressed:F,filter:S,trigger:T,unbind:E,keyMap:s,modifier:c,modifierMap:u};for(var P in I)Object.prototype.hasOwnProperty.call(I,P)&&(R[P]=I[P]);if("undefined"!==typeof window){var H=window.hotkeys;R.noConflict=function(e){return e&&window.hotkeys===R&&(window.hotkeys=H),R},window.hotkeys=R}R.filter=function(){return!0};var z={props:{item:{type:Object,required:!0}},computed:{isMacLike:()=>/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),hotkey(){let e=this.item.hotkey;return"string"==typeof e&&(e=e.toUpperCase(),e=e.replace(/(shift|⇧)\+/gi,this.isMacLike?"⇧":"Shift+"),e=e.replace(/(control|ctrl|⌃)\+/gi,this.isMacLike?"⌃":"Ctrl+"),e=e.replace(/(option|alt|⌥)\+/gi,this.isMacLike?"⌥":"Alt+"),e=e.replace(/(cmd|command|⌘)\+/gi,this.isMacLike?"⌘":"Cmd+"),e)}},methods:{update_hotkey(e,t){t&&R.unbind(t,this.hotkey_fn),e&&R(e,this.hotkey_fn)},hotkey_fn(e,t){e.preventDefault(),this.item.click&&!this.item.disabled&&this.item.click(e,t)}},watch:{"item.hotkey":{handler:"update_hotkey",immediate:!0}},beforeUnmount(){this.item.hotkey&&R.unbind(this.item.hotkey,this.hotkey_fn)}}},3744:function(e,t){"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},3177:function(e,t,n){"use strict";n.d(t,{Z:function(){return Kr}});var r=n(6252),o=n(3577);const a={class:"bar"};function i(e,t,n,i,l,s){return(0,r.wg)(),(0,r.iD)("div",a,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(n.content,((e,t)=>((0,r.wg)(),(0,r.j4)((0,r.LL)(s.get_component(e.is)),{key:"bar-item-"+t,item:e,class:(0,o.C_)(e.class),id:e.id,is_open:l.menu_open,ref_for:!0,ref:t=>Object.defineProperty(e,"_el",{value:t,writable:!0}),onClick:t=>s.toggle_menu(e,t)},null,8,["item","class","id","is_open","onClick"])))),128))])}const l=["title"],s={key:0,class:"material-icons icon"},c={key:1,class:"emoji"},u={key:2,class:"label"},h=["innerHTML"],f={key:4,class:"material-icons chevron"},p=["innerHTML"];function d(e,t,n,a,i,d){return(0,r.wg)(),(0,r.iD)("div",{class:(0,o.C_)(["bar-button",d.button_class]),title:d.title,onMousedown:t[0]||(t[0]=e=>e.preventDefault()),onClick:t[1]||(t[1]=e=>n.item.click&&!n.item.disabled?n.item.click(e):e.stopPropagation())},[n.item.icon?((0,r.wg)(),(0,r.iD)("span",s,(0,o.zw)(n.item.icon),1)):(0,r.kq)("",!0),n.item.emoji?((0,r.wg)(),(0,r.iD)("span",c,(0,o.zw)(d.get_emoji(n.item.emoji)),1)):(0,r.kq)("",!0),n.item.text?((0,r.wg)(),(0,r.iD)("span",u,(0,o.zw)(n.item.text),1)):(0,r.kq)("",!0),n.item.html?((0,r.wg)(),(0,r.iD)("span",{key:3,class:"label",innerHTML:n.item.html},null,8,h)):(0,r.kq)("",!0),!0===n.item.chevron?((0,r.wg)(),(0,r.iD)("span",f,"expand_more")):n.item.chevron?((0,r.wg)(),(0,r.iD)("span",{key:5,class:"chevron",innerHTML:n.item.chevron},null,8,p)):(0,r.kq)("",!0),n.item.menu?((0,r.wg)(),(0,r.j4)((0,r.LL)(d.get_component(n.item.menu)),{key:6,class:(0,o.C_)(["menu",n.item.menu_class]),menu:n.item.menu,id:n.item.menu_id,width:n.item.menu_width,height:n.item.menu_height},null,8,["menu","class","id","width","height"])):(0,r.kq)("",!0)],42,l)}var g=n(4964),m=n(9451),_=n(7347),b={mixins:[_.Z],components:{BarMenu:m["default"]},props:{item:{type:Object,required:!0},is_open:Boolean},computed:{is_menu(){return!!this.item.menu},button_class(){const e=this.is_open&&this.is_menu,t=this.item.active,n=this.item.disabled;return{open:e,active:t,disabled:n}},title(){if(this.item.title){let e=this.item.title;return this.hotkey&&(e+=" ("+this.hotkey+")"),e}return null}},methods:{get_emoji:e=>e in g?g[e]:"",get_component(e){return e&&!Array.isArray(e)&&"object"==typeof e?e:"bar-menu"}}},v=n(3744);const w=(0,v.Z)(b,[["render",d]]);var y=w;const x=["title"],k=["id"];function C(e,t,n,a,i,l){return(0,r.wg)(),(0,r.iD)("div",{class:(0,o.C_)(["bar-button",e.button_class]),title:e.title,onMousedown:t[2]||(t[2]=(...e)=>l.mousedown_handler&&l.mousedown_handler(...e))},[(0,r._)("div",{class:"color-square",style:(0,o.j5)({"background-color":l.css_color})},null,4),(0,r._)("div",{class:(0,o.C_)(["menu",e.item.menu_class]),id:e.item.menu_id,onClick:t[1]||(t[1]=t=>!e.item.stay_open||t.stopPropagation())},[((0,r.wg)(),(0,r.j4)((0,r.LL)(e.item.type||"compact"),{modelValue:i.color,"onUpdate:modelValue":t[0]||(t[0]=e=>i.color=e)},null,8,["modelValue"]))],10,k)],42,x)}function S(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}const F="",A=function(e,t){const{componentPrefix:n=F}=t||{};e.component(`${n}${this.name}`,this)},j={};var E={name:"Checkboard",props:{size:{type:[Number,String],default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},computed:{bgStyle(){return{"background-image":`url(${D(this.white,this.grey,this.size)})`}}}};function M(e,t,n){if("undefined"===typeof document)return null;const r=document.createElement("canvas");r.width=r.height=2*n;const o=r.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,r.width,r.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),r.toDataURL()):null}function D(e,t,n){const r=`${e},${t},${n}`;if(j[r])return j[r];const o=M(e,t,n);return j[r]=o,o}function O(e,t,n,a,i,l){return(0,r.wg)(),(0,r.iD)("div",{class:"vc-checkerboard",style:(0,o.j5)(l.bgStyle)},null,4)}var L=".vc-checkerboard{background-size:contain;bottom:0;left:0;position:absolute;right:0;top:0}";S(L),E.render=O,E.__file="src/components/checkboard/checkboard.vue",E.install=A;var R={name:"Alpha",components:{Checkboard:E},props:{value:Object,onChange:Function},computed:{colors(){return this.value},gradientColor(){const{rgba:e}=this.colors,t=[e.r,e.g,e.b].join(",");return`linear-gradient(to right, rgba(${t}, 0) 0%, rgba(${t}, 1) 100%)`}},methods:{handleChange(e,t){!t&&e.preventDefault();const{container:n}=this.$refs;if(!n)return;const r=n.clientWidth,o=n.getBoundingClientRect().left+window.pageXOffset,a=e.pageX||(e.touches?e.touches[0].pageX:0),i=a-o;let l;l=i<0?0:i>r?1:Math.round(100*i/r)/100,this.colors.a!==l&&this.$emit("change",{h:this.colors.hsl.h,s:this.colors.hsl.s,l:this.colors.hsl.l,a:l,source:"rgba"})},handleMouseDown(e){this.handleChange(e,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};const T={class:"vc-alpha"},I={class:"vc-alpha-checkboard-wrap"},P=(0,r._)("div",{class:"vc-alpha-picker"},null,-1),H=[P];function z(e,t,n,a,i,l){const s=(0,r.up)("Checkboard");return(0,r.wg)(),(0,r.iD)("div",T,[(0,r._)("div",I,[(0,r.Wm)(s)]),(0,r._)("div",{class:"vc-alpha-gradient",style:(0,o.j5)({background:l.gradientColor})},null,4),(0,r._)("div",{ref:"container",class:"vc-alpha-container",onMousedown:t[0]||(t[0]=(...e)=>l.handleMouseDown&&l.handleMouseDown(...e)),onTouchmove:t[1]||(t[1]=(...e)=>l.handleChange&&l.handleChange(...e)),onTouchstart:t[2]||(t[2]=(...e)=>l.handleChange&&l.handleChange(...e))},[(0,r._)("div",{class:"vc-alpha-pointer",style:(0,o.j5)({left:100*l.colors.a+"%"})},H,4)],544)])}var q=".vc-alpha,.vc-alpha-checkboard-wrap{bottom:0;left:0;position:absolute;right:0;top:0}.vc-alpha-checkboard-wrap{overflow:hidden}.vc-alpha-gradient{bottom:0;left:0;position:absolute;right:0;top:0}.vc-alpha-container{cursor:pointer;height:100%;margin:0 3px;position:relative;z-index:2}.vc-alpha-pointer{position:absolute;z-index:2}.vc-alpha-picker{background:#fff;border-radius:1px;box-shadow:0 0 2px rgba(0,0,0,.6);cursor:pointer;height:8px;margin-top:1px;transform:translateX(-2px);width:4px}";function B(e,t){N(e)&&(e="100%");var n=U(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t)),e)}function $(e){return Math.min(1,Math.max(0,e))}function N(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)}function U(e){return"string"===typeof e&&-1!==e.indexOf("%")}function W(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function K(e){return e<=1?"".concat(100*Number(e),"%"):e}function V(e){return 1===e.length?"0"+e:String(e)}function J(e,t,n){return{r:255*B(e,255),g:255*B(t,255),b:255*B(n,255)}}function G(e,t,n){e=B(e,255),t=B(t,255),n=B(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,l=(r+o)/2;if(r===o)i=0,a=0;else{var s=r-o;switch(i=l>.5?s/(2-r-o):s/(r+o),r){case e:a=(t-n)/s+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Y(e,t,n){var r,o,a;if(e=B(e,360),t=B(t,100),n=B(n,100),0===t)o=n,a=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=Z(l,i,e+1/3),o=Z(l,i,e),a=Z(l,i,e-1/3)}return{r:255*r,g:255*o,b:255*a}}function X(e,t,n){e=B(e,255),t=B(t,255),n=B(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,l=r-o,s=0===r?0:l/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/l+(t>16,g:(65280&e)>>8,b:255&e}}S(q),R.render=z,R.__file="src/components/alpha/alpha.vue",R.install=A;var ie={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function le(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,l=!1;return"string"===typeof e&&(e=de(e)),"object"===typeof e&&(ge(e.r)&&ge(e.g)&&ge(e.b)?(t=J(e.r,e.g,e.b),i=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):ge(e.h)&&ge(e.s)&&ge(e.v)?(r=K(e.s),o=K(e.v),t=Q(e.h,r,o),i=!0,l="hsv"):ge(e.h)&&ge(e.s)&&ge(e.l)&&(r=K(e.s),a=K(e.l),t=Y(e.h,r,a),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=W(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var se="[-\\+]?\\d+%?",ce="[-\\+]?\\d*\\.\\d+%?",ue="(?:".concat(ce,")|(?:").concat(se,")"),he="[\\s|\\(]+(".concat(ue,")[,|\\s]+(").concat(ue,")[,|\\s]+(").concat(ue,")\\s*\\)?"),fe="[\\s|\\(]+(".concat(ue,")[,|\\s]+(").concat(ue,")[,|\\s]+(").concat(ue,")[,|\\s]+(").concat(ue,")\\s*\\)?"),pe={CSS_UNIT:new RegExp(ue),rgb:new RegExp("rgb"+he),rgba:new RegExp("rgba"+fe),hsl:new RegExp("hsl"+he),hsla:new RegExp("hsla"+fe),hsv:new RegExp("hsv"+he),hsva:new RegExp("hsva"+fe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function de(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(ie[e])e=ie[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=pe.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=pe.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=pe.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=pe.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=pe.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=pe.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=pe.hex8.exec(e),n?{r:oe(n[1]),g:oe(n[2]),b:oe(n[3]),a:re(n[4]),format:t?"name":"hex8"}:(n=pe.hex6.exec(e),n?{r:oe(n[1]),g:oe(n[2]),b:oe(n[3]),format:t?"name":"hex"}:(n=pe.hex4.exec(e),n?{r:oe(n[1]+n[1]),g:oe(n[2]+n[2]),b:oe(n[3]+n[3]),a:re(n[4]+n[4]),format:t?"name":"hex8"}:(n=pe.hex3.exec(e),!!n&&{r:oe(n[1]+n[1]),g:oe(n[2]+n[2]),b:oe(n[3]+n[3]),format:t?"name":"hex"})))))))))}function ge(e){return Boolean(pe.CSS_UNIT.exec(String(e)))}var me=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=ae(t)),this.originalInput=t;var o=le(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e,t,n,r=this.toRgb(),o=r.r/255,a=r.g/255,i=r.b/255;return e=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),t=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),n=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),.2126*e+.7152*t+.0722*n},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=W(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=X(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=X(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=G(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=G(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),ee(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),te(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*B(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*B(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+ee(this.r,this.g,this.b,!1),t=0,n=Object.entries(ie);t=0,o=!t&&r&&(e.startsWith("hex")||"name"===e);return o?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=$(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=$(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=$(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=$(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;while(t--)i.push(new e({h:r,s:o,v:a})),a=(a+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb();return new e({r:r.r+(n.r-r.r)*n.a,g:r.g+(n.g-r.g)*n.a,b:r.b+(n.b-r.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;i0?_e(e.hex):e&&e.hsv?_e(e.hsv):e&&e.rgba?_e(e.rgba):e&&e.rgb?_e(e.rgb):_e(e),!r||void 0!==r._a&&null!==r._a||r.setAlpha(n||r.getAlpha());const o=r.toHsl(),a=r.toHsv();return 0===o.s&&(a.h=o.h=e.h||e.hsl&&e.hsl.h||t||0),{hsl:o,hex:r.toHexString().toUpperCase(),hex8:r.toHex8String().toUpperCase(),rgba:r.toRgb(),hsv:a,oldHue:e.h||t||o.h,source:e.source,a:r.getAlpha()}}var ve={model:{prop:"modelValue",event:"update:modelValue"},props:["modelValue"],data(){return{val:be(this.modelValue)}},computed:{colors:{get(){return this.val},set(e){this.val=e,this.$emit("update:modelValue",e)}}},watch:{modelValue(e){this.val=be(e)}},methods:{colorChange(e,t){this.oldHue=this.colors.hsl.h,this.colors=be(e,t||this.oldHue)},isValidHex(e){return _e(e).isValid},simpleCheckForValidColor(e){const t=["r","g","b","a","h","s","l","v"];let n=0,r=0;for(let o=0;oe.toUpperCase()))},isTransparent(e){return 0===_e(e).getAlpha()}}},we=n(9963),ye={name:"EditableInput",props:{label:String,labelText:String,desc:String,value:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get(){return this.value},set(e){if(!(void 0!==this.max&&+e>this.max))return e;this.$refs.input.value=this.max}},labelId(){return`input__label__${this.label}__${Math.random().toString().slice(2,5)}`},labelSpanText(){return this.labelText||this.label}},methods:{update(e){this.handleChange(e.target.value)},handleChange(e){const t={};t[this.label]=e,(void 0===t.hex&&void 0===t["#"]||e.length>5)&&this.$emit("change",t)},handleKeyDown(e){let{val:t}=this;const n=Number(t);if(n){const r=this.arrowOffset||1;38===e.keyCode&&(t=n+r,this.handleChange(t),e.preventDefault()),40===e.keyCode&&(t=n-r,this.handleChange(t),e.preventDefault())}}}};const xe={class:"vc-editable-input"},ke=["aria-labelledby"],Ce=["id","for"],Se={class:"vc-input__desc"};function Fe(e,t,n,a,i,l){return(0,r.wg)(),(0,r.iD)("div",xe,[(0,r.wy)((0,r._)("input",{ref:"input","onUpdate:modelValue":t[0]||(t[0]=e=>l.val=e),"aria-labelledby":l.labelId,class:"vc-input__input",onKeydown:t[1]||(t[1]=(...e)=>l.handleKeyDown&&l.handleKeyDown(...e)),onInput:t[2]||(t[2]=(...e)=>l.update&&l.update(...e))},null,40,ke),[[we.nr,l.val]]),(0,r._)("span",{id:l.labelId,for:n.label,class:"vc-input__label"},(0,o.zw)(l.labelSpanText),9,Ce),(0,r._)("span",Se,(0,o.zw)(n.desc),1)])}var Ae=".vc-editable-input{position:relative}.vc-input__input{border:0;outline:none;padding:0}.vc-input__label{text-transform:capitalize}";function je(e,t,n){return tn?n:e:et?t:e}S(Ae),ye.render=Fe,ye.__file="src/components/editable-input/editable-input.vue",ye.install=A;var Ee={name:"Saturation",props:{value:Object},computed:{colors(){return this.value},bgColor(){return`hsl(${this.colors.hsv.h}, 100%, 50%)`},pointerTop(){return-100*this.colors.hsv.v+1+100+"%"},pointerLeft(){return 100*this.colors.hsv.s+"%"}},methods:{handleChange(e,t){!t&&e.preventDefault();const{container:n}=this.$refs;if(!n)return;const r=n.clientWidth,o=n.clientHeight,a=n.getBoundingClientRect().left+window.pageXOffset,i=n.getBoundingClientRect().top+window.pageYOffset,l=e.pageX||(e.touches?e.touches[0].pageX:0),s=e.pageY||(e.touches?e.touches[0].pageY:0),c=je(l-a,0,r),u=je(s-i,0,o),h=c/r,f=je(-u/o+1,0,1);this.onChange({h:this.colors.hsv.h,s:h,v:f,a:this.colors.hsv.a,source:"hsva"})},onChange(e){this.$emit("change",e)},handleMouseDown(e){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(e){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};const Me=(0,r._)("div",{class:"vc-saturation--white"},null,-1),De=(0,r._)("div",{class:"vc-saturation--black"},null,-1),Oe=(0,r._)("div",{class:"vc-saturation-circle"},null,-1),Le=[Oe];function Re(e,t,n,a,i,l){return(0,r.wg)(),(0,r.iD)("div",{ref:"container",class:"vc-saturation",style:(0,o.j5)({background:l.bgColor}),onMousedown:t[0]||(t[0]=(...e)=>l.handleMouseDown&&l.handleMouseDown(...e)),onTouchmove:t[1]||(t[1]=(...e)=>l.handleChange&&l.handleChange(...e)),onTouchstart:t[2]||(t[2]=(...e)=>l.handleChange&&l.handleChange(...e))},[Me,De,(0,r._)("div",{class:"vc-saturation-pointer",style:(0,o.j5)({top:l.pointerTop,left:l.pointerLeft})},Le,4)],36)}var Te=".vc-saturation,.vc-saturation--black,.vc-saturation--white{bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0}.vc-saturation--white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.vc-saturation--black{background:linear-gradient(0deg,#000,transparent)}.vc-saturation-pointer{cursor:pointer;position:absolute}.vc-saturation-circle{border-radius:50%;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);cursor:head;height:4px;transform:translate(-2px,-2px);width:4px}";S(Te),Ee.render=Re,Ee.__file="src/components/saturation/saturation.vue",Ee.install=A;var Ie={name:"Hue",props:{value:Object,direction:{type:String,default:"horizontal"}},data(){return{oldHue:0,pullDirection:""}},computed:{colors(){return this.value},directionClass(){return{"vc-hue--horizontal":"horizontal"===this.direction,"vc-hue--vertical":"vertical"===this.direction}},pointerTop(){return"vertical"===this.direction?0===this.colors.hsl.h&&"right"===this.pullDirection?0:-100*this.colors.hsl.h/360+100+"%":0},pointerLeft(){return"vertical"===this.direction?0:0===this.colors.hsl.h&&"right"===this.pullDirection?"100%":100*this.colors.hsl.h/360+"%"}},watch:{value:{handler(e,t){const{h:n}=e.hsl;0!==n&&n-this.oldHue>0&&(this.pullDirection="right"),0!==n&&n-this.oldHue<0&&(this.pullDirection="left"),this.oldHue=n},deep:!0,immediate:!0}},methods:{handleChange(e,t){!t&&e.preventDefault();const{container:n}=this.$refs;if(!n)return;const r=n.clientWidth,o=n.clientHeight,a=n.getBoundingClientRect().left+window.pageXOffset,i=n.getBoundingClientRect().top+window.pageYOffset,l=e.pageX||(e.touches?e.touches[0].pageX:0),s=e.pageY||(e.touches?e.touches[0].pageY:0),c=l-a,u=s-i;let h,f;"vertical"===this.direction?(u<0?h=360:u>o?h=0:(f=-100*u/o+100,h=360*f/100),this.colors.hsl.h!==h&&this.$emit("change",{h:h,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"})):(c<0?h=0:c>r?h=360:(f=100*c/r,h=360*f/100),this.colors.hsl.h!==h&&this.$emit("change",{h:h,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"}))},handleMouseDown(e){this.handleChange(e,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(e){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};const Pe=["aria-valuenow"],He=(0,r._)("div",{class:"vc-hue-picker"},null,-1),ze=[He];function qe(e,t,n,a,i,l){return(0,r.wg)(),(0,r.iD)("div",{class:(0,o.C_)(["vc-hue",[l.directionClass]])},[(0,r._)("div",{ref:"container",class:"vc-hue-container",role:"slider","aria-valuenow":l.colors.hsl.h,"aria-valuemin":"0","aria-valuemax":"360",onMousedown:t[0]||(t[0]=(...e)=>l.handleMouseDown&&l.handleMouseDown(...e)),onTouchmove:t[1]||(t[1]=(...e)=>l.handleChange&&l.handleChange(...e)),onTouchstart:t[2]||(t[2]=(...e)=>l.handleChange&&l.handleChange(...e))},[(0,r._)("div",{class:"vc-hue-pointer",style:(0,o.j5)({top:l.pointerTop,left:l.pointerLeft}),role:"presentation"},ze,4)],40,Pe)],2)}var Be=".vc-hue{border-radius:2px;bottom:0;left:0;position:absolute;right:0;top:0}.vc-hue--horizontal{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue--vertical{background:linear-gradient(0deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue-container{cursor:pointer;height:100%;margin:0 2px;position:relative}.vc-hue-pointer{position:absolute;z-index:2}.vc-hue-picker{background:#fff;border-radius:1px;box-shadow:0 0 2px rgba(0,0,0,.6);cursor:pointer;height:8px;margin-top:1px;transform:translateX(-2px);width:4px}";S(Be),Ie.render=qe,Ie.__file="src/components/hue/hue.vue",Ie.install=A;var $e={name:"Chrome",components:{Saturation:Ee,Hue:Ie,Alpha:R,EdIn:ye,Checkboard:E},mixins:[ve],props:{disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},data(){return{fieldsIndex:0,highlight:!1}},computed:{hsl(){const{h:e,s:t,l:n}=this.colors.hsl;return{h:e.toFixed(),s:`${(100*t).toFixed()}%`,l:`${(100*n).toFixed()}%`}},activeColor(){const{rgba:e}=this.colors;return`rgba(${[e.r,e.g,e.b,e.a].join(",")})`},hasAlpha(){return this.colors.a<1}},methods:{childChange(e){this.colorChange(e)},inputChange(e){if(e)if(e.hex)this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:"hex"});else if(e.r||e.g||e.b||e.a)this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"});else if(e.h||e.s||e.l){const t=e.s?e.s.replace("%","")/100:this.colors.hsl.s,n=e.l?e.l.replace("%","")/100:this.colors.hsl.l;this.colorChange({h:e.h||this.colors.hsl.h,s:t,l:n,source:"hsl"})}},toggleViews(){this.fieldsIndex>=2?this.fieldsIndex=0:this.fieldsIndex++},showHighlight(){this.highlight=!0},hideHighlight(){this.highlight=!1}}};const Ne={class:"vc-chrome-saturation-wrap"},Ue={class:"vc-chrome-body"},We={class:"vc-chrome-controls"},Ke={class:"vc-chrome-color-wrap"},Ve=["aria-label"],Je={class:"vc-chrome-sliders"},Ge={class:"vc-chrome-hue-wrap"},Ze={key:0,class:"vc-chrome-alpha-wrap"},Ye={key:0,class:"vc-chrome-fields-wrap"},Xe={class:"vc-chrome-fields"},Qe={class:"vc-chrome-field"},et={class:"vc-chrome-fields"},tt={class:"vc-chrome-field"},nt={class:"vc-chrome-field"},rt={class:"vc-chrome-field"},ot={key:0,class:"vc-chrome-field"},at={class:"vc-chrome-fields"},it={class:"vc-chrome-field"},lt={class:"vc-chrome-field"},st={class:"vc-chrome-field"},ct={key:0,class:"vc-chrome-field"},ut={class:"vc-chrome-toggle-icon"},ht=(0,r._)("path",{fill:"#333",d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"},null,-1),ft=[ht],pt={class:"vc-chrome-toggle-icon-highlight"};function dt(e,t,n,a,i,l){const s=(0,r.up)("Saturation"),c=(0,r.up)("Checkboard"),u=(0,r.up)("Hue"),h=(0,r.up)("Alpha"),f=(0,r.up)("EdIn");return(0,r.wg)(),(0,r.iD)("div",{role:"application","aria-label":"Chrome color picker",class:(0,o.C_)(["vc-chrome",[n.disableAlpha?"vc-chrome__disable-alpha":""]])},[(0,r._)("div",Ne,[(0,r.Wm)(s,{value:e.colors,onChange:l.childChange},null,8,["value","onChange"])]),(0,r._)("div",Ue,[(0,r._)("div",We,[(0,r._)("div",Ke,[(0,r._)("div",{"aria-label":`current color is ${e.colors.hex}`,class:"vc-chrome-active-color",style:(0,o.j5)({background:l.activeColor})},null,12,Ve),n.disableAlpha?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.j4)(c,{key:0}))]),(0,r._)("div",Je,[(0,r._)("div",Ge,[(0,r.Wm)(u,{value:e.colors,onChange:l.childChange},null,8,["value","onChange"])]),n.disableAlpha?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.iD)("div",Ze,[(0,r.Wm)(h,{value:e.colors,onChange:l.childChange},null,8,["value","onChange"])]))])]),n.disableFields?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.iD)("div",Ye,[(0,r.wy)((0,r._)("div",Xe,[(0,r.kq)(" hex "),(0,r._)("div",Qe,[l.hasAlpha?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.j4)(f,{key:0,label:"hex",value:e.colors.hex,onChange:l.inputChange},null,8,["value","onChange"])),l.hasAlpha?((0,r.wg)(),(0,r.j4)(f,{key:1,label:"hex",value:e.colors.hex8,onChange:l.inputChange},null,8,["value","onChange"])):(0,r.kq)("v-if",!0)])],512),[[we.F8,0===i.fieldsIndex]]),(0,r.wy)((0,r._)("div",et,[(0,r.kq)(" rgba "),(0,r._)("div",tt,[(0,r.Wm)(f,{label:"r",value:e.colors.rgba.r,onChange:l.inputChange},null,8,["value","onChange"])]),(0,r._)("div",nt,[(0,r.Wm)(f,{label:"g",value:e.colors.rgba.g,onChange:l.inputChange},null,8,["value","onChange"])]),(0,r._)("div",rt,[(0,r.Wm)(f,{label:"b",value:e.colors.rgba.b,onChange:l.inputChange},null,8,["value","onChange"])]),n.disableAlpha?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.iD)("div",ot,[(0,r.Wm)(f,{label:"a",value:e.colors.a,"arrow-offset":.01,max:1,onChange:l.inputChange},null,8,["value","arrow-offset","onChange"])]))],512),[[we.F8,1===i.fieldsIndex]]),(0,r.wy)((0,r._)("div",at,[(0,r.kq)(" hsla "),(0,r._)("div",it,[(0,r.Wm)(f,{label:"h",value:l.hsl.h,onChange:l.inputChange},null,8,["value","onChange"])]),(0,r._)("div",lt,[(0,r.Wm)(f,{label:"s",value:l.hsl.s,onChange:l.inputChange},null,8,["value","onChange"])]),(0,r._)("div",st,[(0,r.Wm)(f,{label:"l",value:l.hsl.l,onChange:l.inputChange},null,8,["value","onChange"])]),n.disableAlpha?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.iD)("div",ct,[(0,r.Wm)(f,{label:"a",value:e.colors.a,"arrow-offset":.01,max:1,onChange:l.inputChange},null,8,["value","arrow-offset","onChange"])]))],512),[[we.F8,2===i.fieldsIndex]]),(0,r.kq)(" btn "),(0,r._)("div",{class:"vc-chrome-toggle-btn",role:"button","aria-label":"Change another color definition",onClick:t[3]||(t[3]=(...e)=>l.toggleViews&&l.toggleViews(...e))},[(0,r._)("div",ut,[((0,r.wg)(),(0,r.iD)("svg",{style:{width:"24px",height:"24px"},viewBox:"0 0 24 24",onMouseover:t[0]||(t[0]=(...e)=>l.showHighlight&&l.showHighlight(...e)),onMouseenter:t[1]||(t[1]=(...e)=>l.showHighlight&&l.showHighlight(...e)),onMouseout:t[2]||(t[2]=(...e)=>l.hideHighlight&&l.hideHighlight(...e))},ft,32))]),(0,r.wy)((0,r._)("div",pt,null,512),[[we.F8,i.highlight]])]),(0,r.kq)(" btn ")]))])],2)}var gt=".vc-chrome{background:#fff;background-color:#fff;border-radius:2px;box-shadow:0 0 2px rgba(0,0,0,.3),0 4px 8px rgba(0,0,0,.3);box-sizing:initial;font-family:Menlo;width:225px}.vc-chrome-controls{display:flex}.vc-chrome-color-wrap{position:relative;width:36px}.vc-chrome-active-color{border-radius:15px;height:30px;overflow:hidden;position:relative;width:30px;z-index:1}.vc-chrome-color-wrap .vc-checkerboard{background-size:auto;border-radius:15px;height:30px;width:30px}.vc-chrome-sliders{flex:1}.vc-chrome-fields-wrap{display:flex;padding-top:16px}.vc-chrome-fields{display:flex;flex:1;margin-left:-6px}.vc-chrome-field{padding-left:6px;width:100%}.vc-chrome-toggle-btn{position:relative;text-align:right;width:32px}.vc-chrome-toggle-icon{cursor:pointer;margin-right:-4px;margin-top:12px;position:relative;z-index:2}.vc-chrome-toggle-icon-highlight{background:#eee;border-radius:4px;height:28px;left:12px;position:absolute;top:10px;width:24px}.vc-chrome-hue-wrap{margin-bottom:8px}.vc-chrome-alpha-wrap,.vc-chrome-hue-wrap{height:10px;position:relative}.vc-chrome-alpha-wrap .vc-alpha-gradient,.vc-chrome-hue-wrap .vc-hue{border-radius:2px}.vc-chrome-alpha-wrap .vc-alpha-picker,.vc-chrome-hue-wrap .vc-hue-picker{background-color:#f8f8f8;border-radius:6px;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);height:12px;transform:translate(-6px,-2px);width:12px}.vc-chrome-body{background-color:#fff;padding:16px 16px 12px}.vc-chrome-saturation-wrap{border-radius:2px 2px 0 0;overflow:hidden;padding-bottom:55%;position:relative;width:100%}.vc-chrome-saturation-wrap .vc-saturation-circle{height:12px;width:12px}.vc-chrome-fields .vc-input__input{border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #dadada;color:#333;font-size:11px;height:21px;text-align:center;width:100%}.vc-chrome-fields .vc-input__label{color:#969696;display:block;font-size:11px;line-height:11px;margin-top:12px;text-align:center;text-transform:uppercase}.vc-chrome__disable-alpha .vc-chrome-active-color{height:18px;width:18px}.vc-chrome__disable-alpha .vc-chrome-color-wrap{width:30px}.vc-chrome__disable-alpha .vc-chrome-hue-wrap{margin-bottom:4px;margin-top:4px}";S(gt),$e.render=dt,$e.__file="src/components/chrome/chrome.vue",$e.install=A;const mt=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#CCCCCC","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"];var _t={name:"Compact",mixins:[ve],props:{palette:{type:Array,default(){return mt}}},computed:{pick(){return this.colors.hex.toUpperCase()}},methods:{handlerClick(e){this.colorChange({hex:e,source:"hex"})}}};const bt={role:"application","aria-label":"Compact color picker",class:"vc-compact"},vt={class:"vc-compact-colors",role:"listbox"},wt=["aria-label","aria-selected","onClick"],yt={class:"vc-compact-dot"};function xt(e,t,n,a,i,l){return(0,r.wg)(),(0,r.iD)("div",bt,[(0,r._)("ul",vt,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.paletteUpperCase(n.palette),(e=>((0,r.wg)(),(0,r.iD)("li",{key:e,role:"option","aria-label":`color:${e}`,"aria-selected":e===l.pick,class:(0,o.C_)(["vc-compact-color-item",{"vc-compact-color-item--white":"#FFFFFF"===e}]),style:(0,o.j5)({background:e}),onClick:t=>l.handlerClick(e)},[(0,r.wy)((0,r._)("div",yt,null,512),[[we.F8,e===l.pick]])],14,wt)))),128))])])}var kt=".vc-compact{background-color:#fff;border-radius:2px;box-shadow:0 2px 10px rgba(0,0,0,.12),0 2px 5px rgba(0,0,0,.16);box-sizing:border-box;padding-left:5px;padding-top:5px;width:245px}.vc-compact-colors{margin:0;overflow:hidden;padding:0}.vc-compact-color-item{cursor:pointer;float:left;height:15px;list-style:none;margin-bottom:5px;margin-right:5px;position:relative;width:15px}.vc-compact-color-item--white{box-shadow:inset 0 0 0 1px #ddd}.vc-compact-color-item--white .vc-compact-dot{background:#000}.vc-compact-dot{background:#fff;border-radius:50%;bottom:5px;left:5px;opacity:1;position:absolute;right:5px;top:5px}";S(kt),_t.render=xt,_t.__file="src/components/compact/compact.vue",_t.install=A;const Ct=["#FFFFFF","#F2F2F2","#E6E6E6","#D9D9D9","#CCCCCC","#BFBFBF","#B3B3B3","#A6A6A6","#999999","#8C8C8C","#808080","#737373","#666666","#595959","#4D4D4D","#404040","#333333","#262626","#0D0D0D","#000000"];var St={name:"Grayscale",components:{},mixins:[ve],props:{palette:{type:Array,default(){return Ct}}},computed:{pick(){return this.colors.hex.toUpperCase()}},methods:{handlerClick(e){this.colorChange({hex:e,source:"hex"})}}};const Ft={role:"application","aria-label":"Grayscale color picker",class:"vc-grayscale"},At={class:"vc-grayscale-colors",role:"listbox"},jt=["aria-label","aria-selected","onClick"],Et={class:"vc-grayscale-dot"};function Mt(e,t,n,a,i,l){return(0,r.wg)(),(0,r.iD)("div",Ft,[(0,r._)("ul",At,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.paletteUpperCase(n.palette),(e=>((0,r.wg)(),(0,r.iD)("li",{key:e,role:"option","aria-label":`Color:${e}`,"aria-selected":e===l.pick,class:(0,o.C_)(["vc-grayscale-color-item",{"vc-grayscale-color-item--white":"#FFFFFF"===e}]),style:(0,o.j5)({background:e}),onClick:t=>l.handlerClick(e)},[(0,r.wy)((0,r._)("div",Et,null,512),[[we.F8,e===l.pick]])],14,jt)))),128))])])}var Dt=".vc-grayscale{background-color:#fff;border-radius:2px;box-shadow:0 2px 15px rgba(0,0,0,.12),0 2px 10px rgba(0,0,0,.16);width:125px}.vc-grayscale-colors{border-radius:2px;margin:0;overflow:hidden;padding:0}.vc-grayscale-color-item{cursor:pointer;float:left;height:25px;list-style:none;position:relative;width:25px}.vc-grayscale-color-item--white .vc-grayscale-dot{background:#000}.vc-grayscale-dot{background:#fff;border-radius:50%;height:6px;left:50%;margin:-3px 0 0 -2px;opacity:1;position:absolute;top:50%;width:6px}";S(Dt),St.render=Mt,St.__file="src/components/grayscale/grayscale.vue",St.install=A;var Ot={name:"Material",components:{EdIn:ye},mixins:[ve],methods:{onChange(e){e&&(e.hex?this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:"hex"}):(e.r||e.g||e.b)&&this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"}))}}};const Lt={role:"application","aria-label":"Material color picker",class:"vc-material"},Rt={class:"vc-material-split"},Tt={class:"vc-material-third"},It={class:"vc-material-third"},Pt={class:"vc-material-third"};function Ht(e,t,n,a,i,l){const s=(0,r.up)("EdIn");return(0,r.wg)(),(0,r.iD)("div",Lt,[(0,r.Wm)(s,{class:"vc-material-hex",label:"hex",value:e.colors.hex,style:(0,o.j5)({borderColor:e.colors.hex}),onChange:l.onChange},null,8,["value","style","onChange"]),(0,r._)("div",Rt,[(0,r._)("div",Tt,[(0,r.Wm)(s,{label:"r",value:e.colors.rgba.r,onChange:l.onChange},null,8,["value","onChange"])]),(0,r._)("div",It,[(0,r.Wm)(s,{label:"g",value:e.colors.rgba.g,onChange:l.onChange},null,8,["value","onChange"])]),(0,r._)("div",Pt,[(0,r.Wm)(s,{label:"b",value:e.colors.rgba.b,onChange:l.onChange},null,8,["value","onChange"])])])])}var zt=".vc-material{background-color:#fff;border-radius:2px;box-shadow:0 2px 10px rgba(0,0,0,.12),0 2px 5px rgba(0,0,0,.16);font-family:Roboto;height:98px;padding:16px;position:relative;width:98px}.vc-material .vc-input__input{color:#333;font-size:15px;height:30px;margin-top:12px;width:100%}.vc-material .vc-input__label{color:#999;font-size:11px;left:0;position:absolute;text-transform:capitalize;top:0}.vc-material-hex{border-bottom-style:solid;border-bottom-width:2px}.vc-material-split{display:flex;margin-right:-10px;padding-top:11px}.vc-material-third{flex:1;padding-right:10px}";S(zt),Ot.render=Ht,Ot.__file="src/components/material/material.vue",Ot.install=A;var qt={name:"Photoshop",components:{Saturation:Ee,Hue:Ie,EdIn:ye},mixins:[ve],props:{head:{type:String,default:"Color Picker"},disableFields:{type:Boolean,default:!1},hasResetButton:{type:Boolean,default:!1},acceptLabel:{type:String,default:"OK"},cancelLabel:{type:String,default:"Cancel"},resetLabel:{type:String,default:"Reset"},newLabel:{type:String,default:"new"},currentLabel:{type:String,default:"current"}},data(){return{currentColor:"#FFF"}},computed:{hsv(){const{hsv:e}=this.colors;return{h:e.h.toFixed(),s:(100*e.s).toFixed(),v:(100*e.v).toFixed()}},hex(){const{hex:e}=this.colors;return e&&e.replace("#","")}},created(){this.currentColor=this.colors.hex},methods:{childChange(e){this.colorChange(e)},inputChange(e){e&&(e["#"]?this.isValidHex(e["#"])&&this.colorChange({hex:e["#"],source:"hex"}):e.r||e.g||e.b||e.a?this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"}):(e.h||e.s||e.v)&&this.colorChange({h:e.h||this.colors.hsv.h,s:e.s/100||this.colors.hsv.s,v:e.v/100||this.colors.hsv.v,source:"hsv"}))},clickCurrentColor(){this.colorChange({hex:this.currentColor,source:"hex"})},handleAccept(){this.$emit("ok")},handleCancel(){this.$emit("cancel")},handleReset(){this.$emit("reset")}}};const Bt={role:"heading",class:"vc-ps-head"},$t={class:"vc-ps-body"},Nt={class:"vc-ps-saturation-wrap"},Ut={class:"vc-ps-hue-wrap"},Wt=(0,r._)("div",{class:"vc-ps-hue-pointer"},[(0,r._)("i",{class:"vc-ps-hue-pointer--left"}),(0,r._)("i",{class:"vc-ps-hue-pointer--right"})],-1),Kt={class:"vc-ps-previews"},Vt={class:"vc-ps-previews__label"},Jt={class:"vc-ps-previews__swatches"},Gt=["aria-label"],Zt=["aria-label"],Yt={class:"vc-ps-previews__label"},Xt={key:0,class:"vc-ps-actions"},Qt=["aria-label"],en=["aria-label"],tn={class:"vc-ps-fields"},nn=(0,r._)("div",{class:"vc-ps-fields__divider"},null,-1),rn=(0,r._)("div",{class:"vc-ps-fields__divider"},null,-1);function on(e,t,n,a,i,l){const s=(0,r.up)("Saturation"),c=(0,r.up)("Hue"),u=(0,r.up)("EdIn");return(0,r.wg)(),(0,r.iD)("div",{role:"application","aria-label":"PhotoShop color picker",class:(0,o.C_)(["vc-photoshop",[n.disableFields?"vc-photoshop__disable-fields":""]])},[(0,r._)("div",Bt,(0,o.zw)(n.head),1),(0,r._)("div",$t,[(0,r._)("div",Nt,[(0,r.Wm)(s,{value:e.colors,onChange:l.childChange},null,8,["value","onChange"])]),(0,r._)("div",Ut,[(0,r.Wm)(c,{value:e.colors,direction:"vertical",onChange:l.childChange},{default:(0,r.w5)((()=>[Wt])),_:1},8,["value","onChange"])]),(0,r._)("div",{class:(0,o.C_)(["vc-ps-controls",[n.disableFields?"vc-ps-controls__disable-fields":""]])},[(0,r._)("div",Kt,[(0,r._)("div",Vt,(0,o.zw)(n.newLabel),1),(0,r._)("div",Jt,[(0,r._)("div",{class:"vc-ps-previews__pr-color","aria-label":`New color is ${e.colors.hex}`,style:(0,o.j5)({background:e.colors.hex})},null,12,Gt),(0,r._)("div",{class:"vc-ps-previews__pr-color","aria-label":`Current color is ${i.currentColor}`,style:(0,o.j5)({background:i.currentColor}),onClick:t[0]||(t[0]=(...e)=>l.clickCurrentColor&&l.clickCurrentColor(...e))},null,12,Zt)]),(0,r._)("div",Yt,(0,o.zw)(n.currentLabel),1)]),n.disableFields?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.iD)("div",Xt,[(0,r._)("div",{class:"vc-ps-ac-btn",role:"button","aria-label":n.acceptLabel,onClick:t[1]||(t[1]=(...e)=>l.handleAccept&&l.handleAccept(...e))},(0,o.zw)(n.acceptLabel),9,Qt),(0,r._)("div",{class:"vc-ps-ac-btn",role:"button","aria-label":n.cancelLabel,onClick:t[2]||(t[2]=(...e)=>l.handleCancel&&l.handleCancel(...e))},(0,o.zw)(n.cancelLabel),9,en),(0,r._)("div",tn,[(0,r.kq)(" hsla "),(0,r.Wm)(u,{label:"h",desc:"°",value:l.hsv.h,onChange:l.inputChange},null,8,["value","onChange"]),(0,r.Wm)(u,{label:"s",desc:"%",value:l.hsv.s,max:100,onChange:l.inputChange},null,8,["value","onChange"]),(0,r.Wm)(u,{label:"v",desc:"%",value:l.hsv.v,max:100,onChange:l.inputChange},null,8,["value","onChange"]),nn,(0,r.kq)(" rgba "),(0,r.Wm)(u,{label:"r",value:e.colors.rgba.r,onChange:l.inputChange},null,8,["value","onChange"]),(0,r.Wm)(u,{label:"g",value:e.colors.rgba.g,onChange:l.inputChange},null,8,["value","onChange"]),(0,r.Wm)(u,{label:"b",value:e.colors.rgba.b,onChange:l.inputChange},null,8,["value","onChange"]),rn,(0,r.kq)(" hex "),(0,r.Wm)(u,{label:"#",class:"vc-ps-fields__hex",value:l.hex,onChange:l.inputChange},null,8,["value","onChange"])]),n.hasResetButton?((0,r.wg)(),(0,r.iD)("div",{key:0,class:"vc-ps-ac-btn","aria-label":"reset",onClick:t[3]||(t[3]=(...e)=>l.handleReset&&l.handleReset(...e))},(0,o.zw)(n.resetLabel),1)):(0,r.kq)("v-if",!0)]))],2)])],2)}var an='.vc-photoshop{background:#dcdcdc;border-radius:4px;box-shadow:0 0 0 1px rgba(0,0,0,.25),0 8px 16px rgba(0,0,0,.15);box-sizing:initial;font-family:Roboto;width:513px}.vc-photoshop__disable-fields{width:390px}.vc-ps-head{background-image:linear-gradient(-180deg,#f0f0f0,#d4d4d4);border-bottom:1px solid #b1b1b1;border-radius:4px 4px 0 0;box-shadow:inset 0 1px 0 0 hsla(0,0%,100%,.2),inset 0 -1px 0 0 rgba(0,0,0,.02);color:#4d4d4d;font-size:13px;height:23px;line-height:24px;text-align:center}.vc-ps-body{display:flex;padding:15px}.vc-ps-saturation-wrap{border:2px solid #b3b3b3;border-bottom-color:#f0f0f0;height:256px;overflow:hidden;position:relative;width:256px}.vc-ps-saturation-wrap .vc-saturation-circle{height:12px;width:12px}.vc-ps-hue-wrap{border:2px solid #b3b3b3;border-bottom-color:#f0f0f0;height:256px;margin-left:10px;width:19px}.vc-ps-hue-pointer,.vc-ps-hue-wrap{position:relative}.vc-ps-hue-pointer--left,.vc-ps-hue-pointer--right{border-color:transparent transparent transparent #555;border-style:solid;border-width:5px 0 5px 8px;height:0;position:absolute;width:0}.vc-ps-hue-pointer--left:after,.vc-ps-hue-pointer--right:after{border-color:transparent transparent transparent #fff;border-style:solid;border-width:4px 0 4px 6px;content:"";height:0;left:1px;position:absolute;top:1px;transform:translate(-8px,-5px);width:0}.vc-ps-hue-pointer--left{transform:translate(-13px,-4px)}.vc-ps-hue-pointer--right{transform:translate(20px,-4px) rotate(180deg)}.vc-ps-controls{display:flex;margin-left:10px;width:180px}.vc-ps-controls__disable-fields{width:auto}.vc-ps-actions{flex:1;margin-left:20px}.vc-ps-ac-btn{background-image:linear-gradient(-180deg,#fff,#e6e6e6);border:1px solid #878787;border-radius:2px;box-shadow:0 1px 0 0 #eaeaea;color:#000;cursor:pointer;font-size:14px;height:20px;line-height:20px;margin-bottom:10px;text-align:center}.vc-ps-previews{width:60px}.vc-ps-previews__swatches{border:1px solid #b3b3b3;border-bottom-color:#f0f0f0;margin-bottom:2px;margin-top:1px}.vc-ps-previews__pr-color{box-shadow:inset 1px 0 0 #000,inset -1px 0 0 #000,inset 0 1px 0 #000;height:34px}.vc-ps-previews__label{color:#000;font-size:14px;text-align:center}.vc-ps-fields{padding-bottom:9px;padding-top:5px;position:relative;width:80px}.vc-ps-fields .vc-input__input{border:1px solid #888;box-shadow:inset 0 1px 1px rgba(0,0,0,.1),0 1px 0 0 #ececec;font-size:13px;height:18px;margin-bottom:5px;margin-left:40%;margin-right:10px;padding-left:3px;width:40%}.vc-ps-fields .vc-input__desc,.vc-ps-fields .vc-input__label{font-size:13px;height:18px;line-height:22px;position:absolute;text-transform:uppercase;top:0}.vc-ps-fields .vc-input__label{left:0;width:34px}.vc-ps-fields .vc-input__desc{right:0;width:0}.vc-ps-fields__divider{height:5px}.vc-ps-fields__hex .vc-input__input{border:1px solid #888;box-shadow:inset 0 1px 1px rgba(0,0,0,.1),0 1px 0 0 #ececec;font-size:13px;height:18px;margin-bottom:6px;margin-left:20%;padding-left:3px;width:80%}.vc-ps-fields__hex .vc-input__label{font-size:13px;height:18px;left:0;line-height:22px;position:absolute;text-transform:uppercase;top:0;width:14px}';S(an),qt.render=on,qt.__file="src/components/photoshop/photoshop.vue",qt.install=A;const ln=["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF","rgba(0,0,0,0)"];var sn={name:"Sketch",components:{Saturation:Ee,Hue:Ie,Alpha:R,EdIn:ye,Checkboard:E},mixins:[ve],props:{presetColors:{type:Array,default(){return ln}},disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},computed:{hex(){let e;return e=this.colors.a<1?this.colors.hex8:this.colors.hex,e.replace("#","")},activeColor(){const{rgba:e}=this.colors;return`rgba(${[e.r,e.g,e.b,e.a].join(",")})`}},methods:{handlePreset(e){this.colorChange(e)},childChange(e){this.colorChange(e)},inputChange(e){e&&(e.hex?this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:"hex"}):(e.r||e.g||e.b||e.a)&&this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"}))}}};const cn={class:"vc-sketch-saturation-wrap"},un={class:"vc-sketch-controls"},hn={class:"vc-sketch-sliders"},fn={class:"vc-sketch-hue-wrap"},pn={key:0,class:"vc-sketch-alpha-wrap"},dn={class:"vc-sketch-color-wrap"},gn=["aria-label"],mn={key:0,class:"vc-sketch-field"},_n={class:"vc-sketch-field--double"},bn={class:"vc-sketch-field--single"},vn={class:"vc-sketch-field--single"},wn={class:"vc-sketch-field--single"},yn={key:0,class:"vc-sketch-field--single"},xn={class:"vc-sketch-presets",role:"group","aria-label":"A color preset, pick one to set as current color"},kn=["aria-label","onClick"],Cn=["aria-label","onClick"];function Sn(e,t,n,a,i,l){const s=(0,r.up)("Saturation"),c=(0,r.up)("Hue"),u=(0,r.up)("Alpha"),h=(0,r.up)("Checkboard"),f=(0,r.up)("EdIn");return(0,r.wg)(),(0,r.iD)("div",{role:"application","aria-label":"Sketch color picker",class:(0,o.C_)(["vc-sketch",[n.disableAlpha?"vc-sketch__disable-alpha":""]])},[(0,r._)("div",cn,[(0,r.Wm)(s,{value:e.colors,onChange:l.childChange},null,8,["value","onChange"])]),(0,r._)("div",un,[(0,r._)("div",hn,[(0,r._)("div",fn,[(0,r.Wm)(c,{value:e.colors,onChange:l.childChange},null,8,["value","onChange"])]),n.disableAlpha?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.iD)("div",pn,[(0,r.Wm)(u,{value:e.colors,onChange:l.childChange},null,8,["value","onChange"])]))]),(0,r._)("div",dn,[(0,r._)("div",{"aria-label":`Current color is ${l.activeColor}`,class:"vc-sketch-active-color",style:(0,o.j5)({background:l.activeColor})},null,12,gn),(0,r.Wm)(h)])]),n.disableFields?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.iD)("div",mn,[(0,r.kq)(" rgba "),(0,r._)("div",_n,[(0,r.Wm)(f,{label:"hex",value:l.hex,onChange:l.inputChange},null,8,["value","onChange"])]),(0,r._)("div",bn,[(0,r.Wm)(f,{label:"r",value:e.colors.rgba.r,onChange:l.inputChange},null,8,["value","onChange"])]),(0,r._)("div",vn,[(0,r.Wm)(f,{label:"g",value:e.colors.rgba.g,onChange:l.inputChange},null,8,["value","onChange"])]),(0,r._)("div",wn,[(0,r.Wm)(f,{label:"b",value:e.colors.rgba.b,onChange:l.inputChange},null,8,["value","onChange"])]),n.disableAlpha?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.iD)("div",yn,[(0,r.Wm)(f,{label:"a",value:e.colors.a,"arrow-offset":.01,max:1,onChange:l.inputChange},null,8,["value","arrow-offset","onChange"])]))])),(0,r._)("div",xn,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(n.presetColors,(t=>((0,r.wg)(),(0,r.iD)(r.HY,null,[e.isTransparent(t)?((0,r.wg)(),(0,r.iD)("div",{key:t,"aria-label":`Color:${t}`,class:"vc-sketch-presets-color",onClick:e=>l.handlePreset(t)},[(0,r.Wm)(h)],8,Cn)):((0,r.wg)(),(0,r.iD)("div",{key:`!${t}`,class:"vc-sketch-presets-color","aria-label":`Color:${t}`,style:(0,o.j5)({background:t}),onClick:e=>l.handlePreset(t)},null,12,kn))],64)))),256))])],2)}var Fn=".vc-sketch{background:#fff;border-radius:4px;box-shadow:0 0 0 1px rgba(0,0,0,.15),0 8px 16px rgba(0,0,0,.15);box-sizing:initial;padding:10px 10px 0;position:relative;width:200px}.vc-sketch-saturation-wrap{overflow:hidden;padding-bottom:75%;position:relative;width:100%}.vc-sketch-controls{display:flex}.vc-sketch-sliders{flex:1;padding:4px 0}.vc-sketch-sliders .vc-alpha-gradient,.vc-sketch-sliders .vc-hue{border-radius:2px}.vc-sketch-alpha-wrap,.vc-sketch-hue-wrap{height:10px;position:relative}.vc-sketch-alpha-wrap{margin-top:4px;overflow:hidden}.vc-sketch-color-wrap{border-radius:3px;height:24px;margin-left:4px;margin-top:4px;position:relative;width:24px}.vc-sketch-active-color{border-radius:2px;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15),inset 0 0 4px rgba(0,0,0,.25);left:0;position:absolute;right:0;top:0;z-index:2}.vc-sketch-color-wrap .vc-checkerboard{background-size:auto}.vc-sketch-field{display:flex;padding-top:4px}.vc-sketch-field .vc-input__input{border:none;box-shadow:inset 0 0 0 1px #ccc;font-size:10px;padding:4px 0 3px 10%;width:90%}.vc-sketch-field .vc-input__label{color:#222;display:block;font-size:11px;padding-bottom:4px;padding-top:3px;text-align:center;text-transform:capitalize}.vc-sketch-field--single{flex:1;padding-left:6px}.vc-sketch-field--double{flex:2}.vc-sketch-presets{border-top:1px solid #eee;margin-left:-10px;margin-right:-10px;padding-left:10px;padding-top:10px}.vc-sketch-presets-color{cursor:pointer;display:inline-block;height:16px;margin:0 10px 10px 0;overflow:hidden;position:relative;vertical-align:top;width:16px}.vc-sketch-presets-color,.vc-sketch-presets-color .vc-checkerboard{border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}.vc-sketch__disable-alpha .vc-sketch-color-wrap{height:10px}";S(Fn),sn.render=Sn,sn.__file="src/components/sketch/sketch.vue",sn.install=A;const An=.5;var jn={name:"Slider",components:{Hue:Ie},mixins:[ve],props:{swatches:{type:Array,default(){return[{s:An,l:.8},{s:An,l:.65},{s:An,l:.5},{s:An,l:.35},{s:An,l:.2}]}}},computed:{normalizedSwatches(){const{swatches:e}=this;return e.map((e=>"object"!==typeof e?{s:An,l:e}:e))}},methods:{isActive(e,t){const{hsl:n}=this.colors;return 1===n.l&&1===e.l||(0===n.l&&0===e.l||Math.abs(n.l-e.l)<.01&&Math.abs(n.s-e.s)<.01)},hueChange(e){this.colorChange(e)},handleSwClick(e,t){this.colorChange({h:this.colors.hsl.h,s:t.s,l:t.l,source:"hsl"})}}};const En={role:"application","aria-label":"Slider color picker",class:"vc-slider"},Mn={class:"vc-slider-hue-warp"},Dn={class:"vc-slider-swatches",role:"group"},On=["data-index","aria-label","onClick"];function Ln(e,t,n,a,i,l){const s=(0,r.up)("Hue");return(0,r.wg)(),(0,r.iD)("div",En,[(0,r._)("div",Mn,[(0,r.Wm)(s,{value:e.colors,onChange:l.hueChange},null,8,["value","onChange"])]),(0,r._)("div",Dn,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(l.normalizedSwatches,((t,n)=>((0,r.wg)(),(0,r.iD)("div",{key:n,class:"vc-slider-swatch","data-index":n,"aria-label":`color:${e.colors.hex}`,role:"button",onClick:e=>l.handleSwClick(n,t)},[(0,r._)("div",{class:(0,o.C_)(["vc-slider-swatch-picker",{"vc-slider-swatch-picker--active":l.isActive(t,n),"vc-slider-swatch-picker--white":1===t.l}]),style:(0,o.j5)({background:`hsl(${e.colors.hsl.h}, ${100*t.s}%, ${100*t.l}%)`})},null,6)],8,On)))),128))])])}var Rn=".vc-slider{position:relative;width:410px}.vc-slider-hue-warp{height:12px;position:relative}.vc-slider-hue-warp .vc-hue-picker{background-color:#f8f8f8;border-radius:6px;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);height:14px;transform:translate(-7px,-2px);width:14px}.vc-slider-swatches{display:flex;margin-top:20px}.vc-slider-swatch{flex:1;margin-right:1px;width:20%}.vc-slider-swatch:first-child{margin-right:1px}.vc-slider-swatch:first-child .vc-slider-swatch-picker{border-radius:2px 0 0 2px}.vc-slider-swatch:last-child{margin-right:0}.vc-slider-swatch:last-child .vc-slider-swatch-picker{border-radius:0 2px 2px 0}.vc-slider-swatch-picker{cursor:pointer;height:12px}.vc-slider-swatch:nth-child(n) .vc-slider-swatch-picker.vc-slider-swatch-picker--active{border-radius:3.6px/2px;transform:scaleY(1.8)}.vc-slider-swatch-picker--white{box-shadow:inset 0 0 0 1px #ddd}.vc-slider-swatch-picker--active.vc-slider-swatch-picker--white{box-shadow:inset 0 0 0 .6px #ddd}";S(Rn),jn.render=Ln,jn.__file="src/components/slider/slider.vue",jn.install=A;var Tn={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},In={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},Pn={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},Hn={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},zn={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},qn={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},Bn={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},$n={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},Nn={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},Un={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},Wn={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},Kn={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},Vn={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},Jn={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},Gn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},Zn={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},Yn={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},Xn={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},Qn={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},er={primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},tr={primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},nr={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},rr={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},or="#ffffff",ar="#000000",ir={red:Tn,pink:In,purple:Pn,deepPurple:Hn,indigo:zn,blue:qn,lightBlue:Bn,cyan:$n,teal:Nn,green:Un,lightGreen:Wn,lime:Kn,yellow:Vn,amber:Jn,orange:Gn,deepOrange:Zn,brown:Yn,grey:Xn,blueGrey:Qn,darkText:er,lightText:tr,darkIcons:nr,lightIcons:rr,white:or,black:ar};const lr=["red","pink","purple","deepPurple","indigo","blue","lightBlue","cyan","teal","green","lightGreen","lime","yellow","amber","orange","deepOrange","brown","blueGrey","black"],sr=["900","700","500","300","100"],cr=(()=>{const e=[];return lr.forEach((t=>{let n=[];"black"===t.toLowerCase()||"white"===t.toLowerCase()?n=n.concat(["#000000","#FFFFFF"]):sr.forEach((e=>{const r=ir[t][e];n.push(r.toUpperCase())})),e.push(n)})),e})();var ur={name:"Swatches",mixins:[ve],props:{palette:{type:Array,default(){return cr}}},computed:{pick(){return this.colors.hex}},methods:{equal(e){return e.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick(e){this.colorChange({hex:e,source:"hex"})}}};const hr=["data-pick"],fr={class:"vc-swatches-box",role:"listbox"},pr=["aria-label","aria-selected","data-color","onClick"],dr={class:"vc-swatches-pick"},gr={style:{width:"24px",height:"24px"},viewBox:"0 0 24 24"},mr=(0,r._)("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},null,-1),_r=[mr];function br(e,t,n,a,i,l){return(0,r.wg)(),(0,r.iD)("div",{role:"application","aria-label":"Swatches color picker",class:"vc-swatches","data-pick":l.pick},[(0,r._)("div",fr,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(n.palette,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{key:t,class:"vc-swatches-color-group"},[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e,(e=>((0,r.wg)(),(0,r.iD)("div",{key:e,class:(0,o.C_)(["vc-swatches-color-it",[{"vc-swatches-color--white":"#FFFFFF"===e}]]),role:"option","aria-label":`Color:${e}`,"aria-selected":l.equal(e),"data-color":e,style:(0,o.j5)({background:e}),onClick:t=>l.handlerClick(e)},[(0,r.wy)((0,r._)("div",dr,[((0,r.wg)(),(0,r.iD)("svg",gr,_r))],512),[[we.F8,l.equal(e)]])],14,pr)))),128))])))),128))])],8,hr)}var vr=".vc-swatches{background-color:#fff;box-shadow:0 2px 10px rgba(0,0,0,.12),0 2px 5px rgba(0,0,0,.16);height:240px;overflow-y:scroll;width:320px}.vc-swatches-box{overflow:hidden;padding:16px 0 6px 16px}.vc-swatches-color-group{float:left;margin-right:10px;padding-bottom:10px;width:40px}.vc-swatches-color-it{background:#880e4f;-ms-border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-o-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;border-radius:2px 2px 0 0;box-sizing:border-box;cursor:pointer;height:24px;margin-bottom:1px;overflow:hidden;width:40px}.vc-swatches-color--white{border:1px solid #ddd}.vc-swatches-pick{fill:#fff;display:block;margin-left:8px}.vc-swatches-color--white .vc-swatches-pick{fill:#333}";S(vr),ur.render=br,ur.__file="src/components/swatches/swatches.vue",ur.install=A;const wr=["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"];var yr={name:"Twitter",components:{EditableInput:ye},mixins:[ve],props:{width:{type:[String,Number],default:276},defaultColors:{type:Array,default(){return wr}},triangle:{default:"top-left",validator(e){return["hide","top-left","top-right"].includes(e)}}},computed:{hsv(){const{hsv:e}=this.colors;return{h:e.h.toFixed(),s:(100*e.s).toFixed(),v:(100*e.v).toFixed()}},hex(){const{hex:e}=this.colors;return e&&e.replace("#","")}},methods:{equal(e){return e.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick(e){this.colorChange({hex:e,source:"hex"})},inputChange(e){e&&(e["#"]?this.isValidHex(e["#"])&&this.colorChange({hex:e["#"],source:"hex"}):e.r||e.g||e.b||e.a?this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"}):(e.h||e.s||e.v)&&this.colorChange({h:e.h||this.colors.hsv.h,s:e.s/100||this.colors.hsv.s,v:e.v/100||this.colors.hsv.v,source:"hsv"}))}}};const xr=(0,r._)("div",{class:"vc-twitter-triangle-shadow"},null,-1),kr=(0,r._)("div",{class:"vc-twitter-triangle"},null,-1),Cr={class:"vc-twitter-body"},Sr=["onClick"],Fr=(0,r._)("div",{class:"vc-twitter-hash"}," # ",-1),Ar=(0,r._)("div",{class:"vc-twitter-clear"},null,-1);function jr(e,t,n,a,i,l){const s=(0,r.up)("EditableInput");return(0,r.wg)(),(0,r.iD)("div",{class:(0,o.C_)(["vc-twitter",{"vc-twitter-hide-triangle ":"hide"===n.triangle,"vc-twitter-top-left-triangle ":"top-left"===n.triangle,"vc-twitter-top-right-triangle ":"top-right"===n.triangle}]),style:(0,o.j5)({width:"number"===typeof n.width?`${n.width}px`:n.width})},[xr,kr,(0,r._)("div",Cr,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(n.defaultColors,((e,t)=>((0,r.wg)(),(0,r.iD)("span",{key:t,class:"vc-twitter-swatch",style:(0,o.j5)({background:e,boxShadow:`0 0 4px ${l.equal(e)?e:"transparent"}`}),onClick:t=>l.handlerClick(e)},null,12,Sr)))),128)),Fr,(0,r.Wm)(s,{label:"#",value:l.hex,onChange:l.inputChange},null,8,["value","onChange"]),Ar])],6)}var Er=".vc-twitter{background:#fff;border:0 solid rgba(0,0,0,.25);border-radius:4px;box-shadow:0 1px 4px rgba(0,0,0,.25);position:relative}.vc-twitter-triangle{border-color:transparent transparent #fff}.vc-twitter-triangle,.vc-twitter-triangle-shadow{border-style:solid;border-width:0 9px 10px;height:0;position:absolute;width:0}.vc-twitter-triangle-shadow{border-color:transparent transparent rgba(0,0,0,.1)}.vc-twitter-body{padding:15px 9px 9px 15px}.vc-twitter .vc-editable-input{position:relative}.vc-twitter .vc-editable-input input{border:0;border-radius:0 4px 4px 0;box-shadow:inset 0 0 0 1px #f0f0f0;box-sizing:content-box;color:#666;float:left;font-size:14px;height:28px;outline:none;padding:1px 1px 1px 8px;width:100px}.vc-twitter .vc-editable-input span{display:none}.vc-twitter-hash{align-items:center;background:#f0f0f0;border-radius:4px 0 0 4px;color:#98a1a4;display:flex;float:left;height:30px;justify-content:center;width:30px}.vc-twitter-swatch{border-radius:4px;cursor:pointer;float:left;height:30px;margin:0 6px 6px 0;outline:none;position:relative;width:30px}.vc-twitter-clear{clear:both}.vc-twitter-hide-triangle .vc-twitter-triangle,.vc-twitter-hide-triangle .vc-twitter-triangle-shadow{display:none}.vc-twitter-top-left-triangle .vc-twitter-triangle{left:12px;top:-10px}.vc-twitter-top-left-triangle .vc-twitter-triangle-shadow{left:12px;top:-11px}.vc-twitter-top-right-triangle .vc-twitter-triangle{right:12px;top:-10px}.vc-twitter-top-right-triangle .vc-twitter-triangle-shadow{right:12px;top:-11px}";S(Er),yr.render=jr,yr.__file="src/components/twitter/twitter.vue",yr.install=A;const Mr=[R,E,$e,_t,ye,St,Ie,Ot,qt,Ee,sn,jn,ur,yr];var Dr={mixins:[y],components:Mr.reduce(((e,t)=>(e[t.name]=t,e)),{}),data(){return{color:this.item.color}},computed:{is_menu(){return!0},css_color(){return this.color.hex8||this.color||"#000"}},methods:{mousedown_handler(e){"input"!=e.target.tagName.toLowerCase()&&e.preventDefault()}},watch:{"item.color"(e){this.color!=e&&(this._prevent_next_color_update=!0,this.color=e)},color(e){this.item.update_color&&!this._prevent_next_color_update&&this.item.update_color(e),this._prevent_next_color_update=!1}}};const Or=(0,v.Z)(Dr,[["render",C],["__scopeId","data-v-2fe7124b"]]);var Lr=Or;const Rr={class:"bar-separator"};function Tr(e,t){return(0,r.wg)(),(0,r.iD)("div",Rr)}const Ir={},Pr=(0,v.Z)(Ir,[["render",Tr]]);var Hr=Pr;const zr={class:"bar-spacer"};function qr(e,t){return(0,r.wg)(),(0,r.iD)("div",zr)}const Br={},$r=(0,v.Z)(Br,[["render",qr]]);var Nr=$r,Ur={components:{BarButtonGeneric:y,BarButtonColor:Lr,BarSeparator:Hr,BarSpacer:Nr},props:{content:{type:Array,required:!0}},data(){return{menu_open:!1}},methods:{clickaway(e){this.$el.contains(e.target)||(this.menu_open=!1)},toggle_menu(e,t){t.stopPropagation();const n=t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents;this.menu_open=!(!e._el.is_menu||e.disabled)&&(!!n||!this.menu_open)},get_component(e){return e&&!Array.isArray(e)&&"object"==typeof e?e:"string"==typeof e?"bar-"+e:"bar-button-generic"}},mounted(){document.addEventListener("click",this.clickaway)},beforeUnmount(){document.removeEventListener("click",this.clickaway)}};const Wr=(0,v.Z)(Ur,[["render",i],["__scopeId","data-v-9653a704"]]);var Kr=Wr},9451:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return M}});var r=n(6252),o=n(3577);const a={class:"bar-menu"},i=(0,r._)("div",{class:"extended-hover-zone"},null,-1);function l(e,t,n,l,s,c){return(0,r.wg)(),(0,r.iD)("div",a,[i,(0,r._)("div",{class:"bar-menu-items",style:(0,o.j5)({width:n.width+"px",minWidth:n.width+"px",maxHeight:n.height+"px",overflow:n.height?"auto":"visible"})},[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(n.menu,((e,t)=>((0,r.wg)(),(0,r.j4)((0,r.LL)(c.get_component(e.is)),{item:e,class:(0,o.C_)(e.class),id:e.id,key:"menu-"+t},null,8,["item","class","id"])))),128))],4)])}const s=["title"],c={key:0,class:"material-icons icon"},u={key:1,class:"emoji"},h={key:2,class:"label"},f=["innerHTML"],p={key:4,class:"hotkey"},d=["innerHTML"],g={key:6,class:"material-icons chevron"};function m(e,t,n,a,i,l){return(0,r.wg)(),(0,r.iD)("div",{class:(0,o.C_)(["bar-menu-item",{disabled:n.item.disabled,active:n.item.active}]),onMousedown:t[0]||(t[0]=e=>e.preventDefault()),onClick:t[1]||(t[1]=(...e)=>l.click&&l.click(...e)),title:n.item.title,style:(0,o.j5)({height:n.item.height+"px"})},[n.item.icon?((0,r.wg)(),(0,r.iD)("span",c,(0,o.zw)(n.item.icon),1)):(0,r.kq)("",!0),n.item.emoji?((0,r.wg)(),(0,r.iD)("span",u,(0,o.zw)(l.get_emoji(n.item.emoji)),1)):(0,r.kq)("",!0),n.item.text?((0,r.wg)(),(0,r.iD)("span",h,(0,o.zw)(n.item.text),1)):(0,r.kq)("",!0),n.item.html?((0,r.wg)(),(0,r.iD)("span",{key:3,class:"label",innerHTML:n.item.html},null,8,f)):(0,r.kq)("",!0),n.item.hotkey?((0,r.wg)(),(0,r.iD)("span",p,(0,o.zw)(e.hotkey),1)):(0,r.kq)("",!0),n.item.menu&&n.item.custom_chevron?((0,r.wg)(),(0,r.iD)("span",{key:5,class:"chevron",innerHTML:n.item.custom_chevron},null,8,d)):n.item.menu?((0,r.wg)(),(0,r.iD)("span",g,"chevron_right")):(0,r.kq)("",!0),n.item.menu?((0,r.wg)(),(0,r.j4)((0,r.LL)(l.get_component(n.item.menu)),{key:7,ref:"menu",class:(0,o.C_)(["menu",n.item.menu_class]),menu:n.item.menu,id:n.item.menu_id,width:n.item.menu_width,height:n.item.menu_height},null,8,["menu","class","id","width","height"])):(0,r.kq)("",!0)],46,s)}var _=n(4964),b=n(7347),v={mixins:[b.Z],components:{BarMenu:(0,r.RC)((()=>Promise.resolve().then(n.bind(n,9451))))},props:{item:{type:Object,required:!0}},methods:{click(e){this.item.click&&!this.item.disabled?this.item.click(e):this.$refs.menu&&e.composedPath&&e.composedPath().includes(this.$refs.menu.$el)||e.stopPropagation()},get_emoji:e=>e in _?_[e]:"",get_component(e){return e&&!Array.isArray(e)&&"object"==typeof e?e:"bar-menu"}}},w=n(3744);const y=(0,w.Z)(v,[["render",m]]);var x=y;const k={class:"bar-menu-separator"};function C(e,t){return(0,r.wg)(),(0,r.iD)("div",k)}const S={},F=(0,w.Z)(S,[["render",C]]);var A=F,j={components:{BarMenuItem:x,BarMenuSeparator:A},props:{menu:{type:Array,required:!0},width:Number,height:Number},methods:{get_component(e){return"object"==typeof e?e:"string"==typeof e?"bar-menu-"+e:"bar-menu-item"}}};const E=(0,w.Z)(j,[["render",l]]);var M=E},4964:function(e){"use strict";e.exports=JSON.parse('{"100":"💯","1234":"🔢","umbrella_with_rain_drops":"☔","coffee":"☕","aries":"♈","taurus":"♉","sagittarius":"♐","capricorn":"♑","aquarius":"♒","pisces":"♓","anchor":"⚓","white_check_mark":"✅","sparkles":"✨","question":"❓","grey_question":"❔","grey_exclamation":"❕","exclamation":"❗","heavy_exclamation_mark":"❗","heavy_plus_sign":"➕","heavy_minus_sign":"➖","heavy_division_sign":"➗","hash":"#️⃣","keycap_star":"*️⃣","zero":"0️⃣","one":"1️⃣","two":"2️⃣","three":"3️⃣","four":"4️⃣","five":"5️⃣","six":"6️⃣","seven":"7️⃣","eight":"8️⃣","nine":"9️⃣","copyright":"©️","registered":"®️","mahjong":"🀄","black_joker":"🃏","a":"🅰️","b":"🅱️","o2":"🅾️","parking":"🅿️","ab":"🆎","cl":"🆑","cool":"🆒","free":"🆓","id":"🆔","new":"🆕","ng":"🆖","ok":"🆗","sos":"🆘","up":"🆙","vs":"🆚","flag-ac":"🇦🇨","flag-ad":"🇦🇩","flag-ae":"🇦🇪","flag-af":"🇦🇫","flag-ag":"🇦🇬","flag-ai":"🇦🇮","flag-al":"🇦🇱","flag-am":"🇦🇲","flag-ao":"🇦🇴","flag-aq":"🇦🇶","flag-ar":"🇦🇷","flag-as":"🇦🇸","flag-at":"🇦🇹","flag-au":"🇦🇺","flag-aw":"🇦🇼","flag-ax":"🇦🇽","flag-az":"🇦🇿","flag-ba":"🇧🇦","flag-bb":"🇧🇧","flag-bd":"🇧🇩","flag-be":"🇧🇪","flag-bf":"🇧🇫","flag-bg":"🇧🇬","flag-bh":"🇧🇭","flag-bi":"🇧🇮","flag-bj":"🇧🇯","flag-bl":"🇧🇱","flag-bm":"🇧🇲","flag-bn":"🇧🇳","flag-bo":"🇧🇴","flag-bq":"🇧🇶","flag-br":"🇧🇷","flag-bs":"🇧🇸","flag-bt":"🇧🇹","flag-bv":"🇧🇻","flag-bw":"🇧🇼","flag-by":"🇧🇾","flag-bz":"🇧🇿","flag-ca":"🇨🇦","flag-cc":"🇨🇨","flag-cd":"🇨🇩","flag-cf":"🇨🇫","flag-cg":"🇨🇬","flag-ch":"🇨🇭","flag-ci":"🇨🇮","flag-ck":"🇨🇰","flag-cl":"🇨🇱","flag-cm":"🇨🇲","cn":"🇨🇳","flag-cn":"🇨🇳","flag-co":"🇨🇴","flag-cp":"🇨🇵","flag-cr":"🇨🇷","flag-cu":"🇨🇺","flag-cv":"🇨🇻","flag-cw":"🇨🇼","flag-cx":"🇨🇽","flag-cy":"🇨🇾","flag-cz":"🇨🇿","de":"🇩🇪","flag-de":"🇩🇪","flag-dg":"🇩🇬","flag-dj":"🇩🇯","flag-dk":"🇩🇰","flag-dm":"🇩🇲","flag-do":"🇩🇴","flag-dz":"🇩🇿","flag-ea":"🇪🇦","flag-ec":"🇪🇨","flag-ee":"🇪🇪","flag-eg":"🇪🇬","flag-eh":"🇪🇭","flag-er":"🇪🇷","es":"🇪🇸","flag-es":"🇪🇸","flag-et":"🇪🇹","flag-eu":"🇪🇺","flag-fi":"🇫🇮","flag-fj":"🇫🇯","flag-fk":"🇫🇰","flag-fm":"🇫🇲","flag-fo":"🇫🇴","fr":"🇫🇷","flag-fr":"🇫🇷","flag-ga":"🇬🇦","gb":"🇬🇧","uk":"🇬🇧","flag-gb":"🇬🇧","flag-gd":"🇬🇩","flag-ge":"🇬🇪","flag-gf":"🇬🇫","flag-gg":"🇬🇬","flag-gh":"🇬🇭","flag-gi":"🇬🇮","flag-gl":"🇬🇱","flag-gm":"🇬🇲","flag-gn":"🇬🇳","flag-gp":"🇬🇵","flag-gq":"🇬🇶","flag-gr":"🇬🇷","flag-gs":"🇬🇸","flag-gt":"🇬🇹","flag-gu":"🇬🇺","flag-gw":"🇬🇼","flag-gy":"🇬🇾","flag-hk":"🇭🇰","flag-hm":"🇭🇲","flag-hn":"🇭🇳","flag-hr":"🇭🇷","flag-ht":"🇭🇹","flag-hu":"🇭🇺","flag-ic":"🇮🇨","flag-id":"🇮🇩","flag-ie":"🇮🇪","flag-il":"🇮🇱","flag-im":"🇮🇲","flag-in":"🇮🇳","flag-io":"🇮🇴","flag-iq":"🇮🇶","flag-ir":"🇮🇷","flag-is":"🇮🇸","it":"🇮🇹","flag-it":"🇮🇹","flag-je":"🇯🇪","flag-jm":"🇯🇲","flag-jo":"🇯🇴","jp":"🇯🇵","flag-jp":"🇯🇵","flag-ke":"🇰🇪","flag-kg":"🇰🇬","flag-kh":"🇰🇭","flag-ki":"🇰🇮","flag-km":"🇰🇲","flag-kn":"🇰🇳","flag-kp":"🇰🇵","kr":"🇰🇷","flag-kr":"🇰🇷","flag-kw":"🇰🇼","flag-ky":"🇰🇾","flag-kz":"🇰🇿","flag-la":"🇱🇦","flag-lb":"🇱🇧","flag-lc":"🇱🇨","flag-li":"🇱🇮","flag-lk":"🇱🇰","flag-lr":"🇱🇷","flag-ls":"🇱🇸","flag-lt":"🇱🇹","flag-lu":"🇱🇺","flag-lv":"🇱🇻","flag-ly":"🇱🇾","flag-ma":"🇲🇦","flag-mc":"🇲🇨","flag-md":"🇲🇩","flag-me":"🇲🇪","flag-mf":"🇲🇫","flag-mg":"🇲🇬","flag-mh":"🇲🇭","flag-mk":"🇲🇰","flag-ml":"🇲🇱","flag-mm":"🇲🇲","flag-mn":"🇲🇳","flag-mo":"🇲🇴","flag-mp":"🇲🇵","flag-mq":"🇲🇶","flag-mr":"🇲🇷","flag-ms":"🇲🇸","flag-mt":"🇲🇹","flag-mu":"🇲🇺","flag-mv":"🇲🇻","flag-mw":"🇲🇼","flag-mx":"🇲🇽","flag-my":"🇲🇾","flag-mz":"🇲🇿","flag-na":"🇳🇦","flag-nc":"🇳🇨","flag-ne":"🇳🇪","flag-nf":"🇳🇫","flag-ng":"🇳🇬","flag-ni":"🇳🇮","flag-nl":"🇳🇱","flag-no":"🇳🇴","flag-np":"🇳🇵","flag-nr":"🇳🇷","flag-nu":"🇳🇺","flag-nz":"🇳🇿","flag-om":"🇴🇲","flag-pa":"🇵🇦","flag-pe":"🇵🇪","flag-pf":"🇵🇫","flag-pg":"🇵🇬","flag-ph":"🇵🇭","flag-pk":"🇵🇰","flag-pl":"🇵🇱","flag-pm":"🇵🇲","flag-pn":"🇵🇳","flag-pr":"🇵🇷","flag-ps":"🇵🇸","flag-pt":"🇵🇹","flag-pw":"🇵🇼","flag-py":"🇵🇾","flag-qa":"🇶🇦","flag-re":"🇷🇪","flag-ro":"🇷🇴","flag-rs":"🇷🇸","ru":"🇷🇺","flag-ru":"🇷🇺","flag-rw":"🇷🇼","flag-sa":"🇸🇦","flag-sb":"🇸🇧","flag-sc":"🇸🇨","flag-sd":"🇸🇩","flag-se":"🇸🇪","flag-sg":"🇸🇬","flag-sh":"🇸🇭","flag-si":"🇸🇮","flag-sj":"🇸🇯","flag-sk":"🇸🇰","flag-sl":"🇸🇱","flag-sm":"🇸🇲","flag-sn":"🇸🇳","flag-so":"🇸🇴","flag-sr":"🇸🇷","flag-ss":"🇸🇸","flag-st":"🇸🇹","flag-sv":"🇸🇻","flag-sx":"🇸🇽","flag-sy":"🇸🇾","flag-sz":"🇸🇿","flag-ta":"🇹🇦","flag-tc":"🇹🇨","flag-td":"🇹🇩","flag-tf":"🇹🇫","flag-tg":"🇹🇬","flag-th":"🇹🇭","flag-tj":"🇹🇯","flag-tk":"🇹🇰","flag-tl":"🇹🇱","flag-tm":"🇹🇲","flag-tn":"🇹🇳","flag-to":"🇹🇴","flag-tr":"🇹🇷","flag-tt":"🇹🇹","flag-tv":"🇹🇻","flag-tw":"🇹🇼","flag-tz":"🇹🇿","flag-ua":"🇺🇦","flag-ug":"🇺🇬","flag-um":"🇺🇲","flag-un":"🇺🇳","us":"🇺🇸","flag-us":"🇺🇸","flag-uy":"🇺🇾","flag-uz":"🇺🇿","flag-va":"🇻🇦","flag-vc":"🇻🇨","flag-ve":"🇻🇪","flag-vg":"🇻🇬","flag-vi":"🇻🇮","flag-vn":"🇻🇳","flag-vu":"🇻🇺","flag-wf":"🇼🇫","flag-ws":"🇼🇸","flag-xk":"🇽🇰","flag-ye":"🇾🇪","flag-yt":"🇾🇹","flag-za":"🇿🇦","flag-zm":"🇿🇲","flag-zw":"🇿🇼","koko":"🈁","sa":"🈂️","u7121":"🈚","u6307":"🈯","u7981":"🈲","u7a7a":"🈳","u5408":"🈴","u6e80":"🈵","u6709":"🈶","u6708":"🈷️","u7533":"🈸","u5272":"🈹","u55b6":"🈺","ideograph_advantage":"🉐","accept":"🉑","cyclone":"🌀","foggy":"🌁","closed_umbrella":"🌂","night_with_stars":"🌃","sunrise_over_mountains":"🌄","sunrise":"🌅","city_sunset":"🌆","city_sunrise":"🌇","rainbow":"🌈","bridge_at_night":"🌉","ocean":"🌊","volcano":"🌋","milky_way":"🌌","earth_africa":"🌍","earth_americas":"🌎","earth_asia":"🌏","globe_with_meridians":"🌐","new_moon":"🌑","waxing_crescent_moon":"🌒","first_quarter_moon":"🌓","moon":"🌔","waxing_gibbous_moon":"🌔","full_moon":"🌕","waning_gibbous_moon":"🌖","last_quarter_moon":"🌗","waning_crescent_moon":"🌘","crescent_moon":"🌙","new_moon_with_face":"🌚","first_quarter_moon_with_face":"🌛","last_quarter_moon_with_face":"🌜","full_moon_with_face":"🌝","sun_with_face":"🌞","star2":"🌟","stars":"🌠","thermometer":"🌡️","mostly_sunny":"🌤️","sun_small_cloud":"🌤️","barely_sunny":"🌥️","sun_behind_cloud":"🌥️","partly_sunny_rain":"🌦️","sun_behind_rain_cloud":"🌦️","rain_cloud":"🌧️","snow_cloud":"🌨️","lightning":"🌩️","lightning_cloud":"🌩️","tornado":"🌪️","tornado_cloud":"🌪️","fog":"🌫️","wind_blowing_face":"🌬️","hotdog":"🌭","taco":"🌮","burrito":"🌯","chestnut":"🌰","seedling":"🌱","evergreen_tree":"🌲","deciduous_tree":"🌳","palm_tree":"🌴","cactus":"🌵","hot_pepper":"🌶️","tulip":"🌷","cherry_blossom":"🌸","rose":"🌹","hibiscus":"🌺","sunflower":"🌻","blossom":"🌼","corn":"🌽","ear_of_rice":"🌾","herb":"🌿","four_leaf_clover":"🍀","maple_leaf":"🍁","fallen_leaf":"🍂","leaves":"🍃","mushroom":"🍄","tomato":"🍅","eggplant":"🍆","grapes":"🍇","melon":"🍈","watermelon":"🍉","tangerine":"🍊","lemon":"🍋","banana":"🍌","pineapple":"🍍","apple":"🍎","green_apple":"🍏","pear":"🍐","peach":"🍑","cherries":"🍒","strawberry":"🍓","hamburger":"🍔","pizza":"🍕","meat_on_bone":"🍖","poultry_leg":"🍗","rice_cracker":"🍘","rice_ball":"🍙","rice":"🍚","curry":"🍛","ramen":"🍜","spaghetti":"🍝","bread":"🍞","fries":"🍟","sweet_potato":"🍠","dango":"🍡","oden":"🍢","sushi":"🍣","fried_shrimp":"🍤","fish_cake":"🍥","icecream":"🍦","shaved_ice":"🍧","ice_cream":"🍨","doughnut":"🍩","cookie":"🍪","chocolate_bar":"🍫","candy":"🍬","lollipop":"🍭","custard":"🍮","honey_pot":"🍯","cake":"🍰","bento":"🍱","stew":"🍲","fried_egg":"🍳","cooking":"🍳","fork_and_knife":"🍴","tea":"🍵","sake":"🍶","wine_glass":"🍷","cocktail":"🍸","tropical_drink":"🍹","beer":"🍺","beers":"🍻","baby_bottle":"🍼","knife_fork_plate":"🍽️","champagne":"🍾","popcorn":"🍿","ribbon":"🎀","gift":"🎁","birthday":"🎂","jack_o_lantern":"🎃","christmas_tree":"🎄","santa":"🎅","fireworks":"🎆","sparkler":"🎇","balloon":"🎈","tada":"🎉","confetti_ball":"🎊","tanabata_tree":"🎋","crossed_flags":"🎌","bamboo":"🎍","dolls":"🎎","flags":"🎏","wind_chime":"🎐","rice_scene":"🎑","school_satchel":"🎒","mortar_board":"🎓","medal":"🎖️","reminder_ribbon":"🎗️","studio_microphone":"🎙️","level_slider":"🎚️","control_knobs":"🎛️","film_frames":"🎞️","admission_tickets":"🎟️","carousel_horse":"🎠","ferris_wheel":"🎡","roller_coaster":"🎢","fishing_pole_and_fish":"🎣","microphone":"🎤","movie_camera":"🎥","cinema":"🎦","headphones":"🎧","art":"🎨","tophat":"🎩","circus_tent":"🎪","ticket":"🎫","clapper":"🎬","performing_arts":"🎭","video_game":"🎮","dart":"🎯","slot_machine":"🎰","8ball":"🎱","game_die":"🎲","bowling":"🎳","flower_playing_cards":"🎴","musical_note":"🎵","notes":"🎶","saxophone":"🎷","guitar":"🎸","musical_keyboard":"🎹","trumpet":"🎺","violin":"🎻","musical_score":"🎼","running_shirt_with_sash":"🎽","tennis":"🎾","ski":"🎿","basketball":"🏀","checkered_flag":"🏁","snowboarder":"🏂","woman-running":"🏃‍♀️","man-running":"🏃‍♂️","runner":"🏃‍♂️","running":"🏃‍♂️","woman-surfing":"🏄‍♀️","man-surfing":"🏄‍♂️","surfer":"🏄‍♂️","sports_medal":"🏅","trophy":"🏆","horse_racing":"🏇","football":"🏈","rugby_football":"🏉","woman-swimming":"🏊‍♀️","man-swimming":"🏊‍♂️","swimmer":"🏊‍♂️","woman-lifting-weights":"🏋️‍♀️","man-lifting-weights":"🏋️‍♂️","weight_lifter":"🏋️‍♂️","woman-golfing":"🏌️‍♀️","man-golfing":"🏌️‍♂️","golfer":"🏌️‍♂️","racing_motorcycle":"🏍️","racing_car":"🏎️","cricket_bat_and_ball":"🏏","volleyball":"🏐","field_hockey_stick_and_ball":"🏑","ice_hockey_stick_and_puck":"🏒","table_tennis_paddle_and_ball":"🏓","snow_capped_mountain":"🏔️","camping":"🏕️","beach_with_umbrella":"🏖️","building_construction":"🏗️","house_buildings":"🏘️","cityscape":"🏙️","derelict_house_building":"🏚️","classical_building":"🏛️","desert":"🏜️","desert_island":"🏝️","national_park":"🏞️","stadium":"🏟️","house":"🏠","house_with_garden":"🏡","office":"🏢","post_office":"🏣","european_post_office":"🏤","hospital":"🏥","bank":"🏦","atm":"🏧","hotel":"🏨","love_hotel":"🏩","convenience_store":"🏪","school":"🏫","department_store":"🏬","factory":"🏭","izakaya_lantern":"🏮","lantern":"🏮","japanese_castle":"🏯","european_castle":"🏰","rainbow-flag":"🏳️‍🌈","transgender_flag":"🏳️‍⚧️","waving_white_flag":"🏳️","pirate_flag":"🏴‍☠️","flag-england":"🏴󠁧󠁢󠁥󠁮󠁧󠁿","flag-scotland":"🏴󠁧󠁢󠁳󠁣󠁴󠁿","flag-wales":"🏴󠁧󠁢󠁷󠁬󠁳󠁿","waving_black_flag":"🏴","rosette":"🏵️","label":"🏷️","badminton_racquet_and_shuttlecock":"🏸","bow_and_arrow":"🏹","amphora":"🏺","skin-tone-2":"🏻","skin-tone-3":"🏼","skin-tone-4":"🏽","skin-tone-5":"🏾","skin-tone-6":"🏿","rat":"🐀","mouse2":"🐁","ox":"🐂","water_buffalo":"🐃","cow2":"🐄","tiger2":"🐅","leopard":"🐆","rabbit2":"🐇","black_cat":"🐈‍⬛","cat2":"🐈","dragon":"🐉","crocodile":"🐊","whale2":"🐋","snail":"🐌","snake":"🐍","racehorse":"🐎","ram":"🐏","goat":"🐐","sheep":"🐑","monkey":"🐒","rooster":"🐓","chicken":"🐔","service_dog":"🐕‍🦺","dog2":"🐕","pig2":"🐖","boar":"🐗","elephant":"🐘","octopus":"🐙","shell":"🐚","bug":"🐛","ant":"🐜","bee":"🐝","honeybee":"🐝","ladybug":"🐞","lady_beetle":"🐞","fish":"🐟","tropical_fish":"🐠","blowfish":"🐡","turtle":"🐢","hatching_chick":"🐣","baby_chick":"🐤","hatched_chick":"🐥","bird":"🐦","penguin":"🐧","koala":"🐨","poodle":"🐩","dromedary_camel":"🐪","camel":"🐫","dolphin":"🐬","flipper":"🐬","mouse":"🐭","cow":"🐮","tiger":"🐯","rabbit":"🐰","cat":"🐱","dragon_face":"🐲","whale":"🐳","horse":"🐴","monkey_face":"🐵","dog":"🐶","pig":"🐷","frog":"🐸","hamster":"🐹","wolf":"🐺","polar_bear":"🐻‍❄️","bear":"🐻","panda_face":"🐼","pig_nose":"🐽","feet":"🐾","paw_prints":"🐾","chipmunk":"🐿️","eyes":"👀","eye-in-speech-bubble":"👁️‍🗨️","eye":"👁️","ear":"👂","nose":"👃","lips":"👄","tongue":"👅","point_up_2":"👆","point_down":"👇","point_left":"👈","point_right":"👉","facepunch":"👊","punch":"👊","wave":"👋","ok_hand":"👌","+1":"👍","thumbsup":"👍","-1":"👎","thumbsdown":"👎","clap":"👏","open_hands":"👐","crown":"👑","womans_hat":"👒","eyeglasses":"👓","necktie":"👔","shirt":"👕","tshirt":"👕","jeans":"👖","dress":"👗","kimono":"👘","bikini":"👙","womans_clothes":"👚","purse":"👛","handbag":"👜","pouch":"👝","mans_shoe":"👞","shoe":"👞","athletic_shoe":"👟","high_heel":"👠","sandal":"👡","boot":"👢","footprints":"👣","bust_in_silhouette":"👤","busts_in_silhouette":"👥","boy":"👦","girl":"👧","male-farmer":"👨‍🌾","male-cook":"👨‍🍳","man_feeding_baby":"👨‍🍼","male-student":"👨‍🎓","male-singer":"👨‍🎤","male-artist":"👨‍🎨","male-teacher":"👨‍🏫","male-factory-worker":"👨‍🏭","man-boy-boy":"👨‍👦‍👦","man-boy":"👨‍👦","man-girl-boy":"👨‍👧‍👦","man-girl-girl":"👨‍👧‍👧","man-girl":"👨‍👧","man-man-boy":"👨‍👨‍👦","man-man-boy-boy":"👨‍👨‍👦‍👦","man-man-girl":"👨‍👨‍👧","man-man-girl-boy":"👨‍👨‍👧‍👦","man-man-girl-girl":"👨‍👨‍👧‍👧","man-woman-boy":"👨‍👩‍👦","family":"👨‍👩‍👦","man-woman-boy-boy":"👨‍👩‍👦‍👦","man-woman-girl":"👨‍👩‍👧","man-woman-girl-boy":"👨‍👩‍👧‍👦","man-woman-girl-girl":"👨‍👩‍👧‍👧","male-technologist":"👨‍💻","male-office-worker":"👨‍💼","male-mechanic":"👨‍🔧","male-scientist":"👨‍🔬","male-astronaut":"👨‍🚀","male-firefighter":"👨‍🚒","man_with_probing_cane":"👨‍🦯","red_haired_man":"👨‍🦰","curly_haired_man":"👨‍🦱","bald_man":"👨‍🦲","white_haired_man":"👨‍🦳","man_in_motorized_wheelchair":"👨‍🦼","man_in_manual_wheelchair":"👨‍🦽","male-doctor":"👨‍⚕️","male-judge":"👨‍⚖️","male-pilot":"👨‍✈️","man-heart-man":"👨‍❤️‍👨","man-kiss-man":"👨‍❤️‍💋‍👨","man":"👨","female-farmer":"👩‍🌾","female-cook":"👩‍🍳","woman_feeding_baby":"👩‍🍼","female-student":"👩‍🎓","female-singer":"👩‍🎤","female-artist":"👩‍🎨","female-teacher":"👩‍🏫","female-factory-worker":"👩‍🏭","woman-boy-boy":"👩‍👦‍👦","woman-boy":"👩‍👦","woman-girl-boy":"👩‍👧‍👦","woman-girl-girl":"👩‍👧‍👧","woman-girl":"👩‍👧","woman-woman-boy":"👩‍👩‍👦","woman-woman-boy-boy":"👩‍👩‍👦‍👦","woman-woman-girl":"👩‍👩‍👧","woman-woman-girl-boy":"👩‍👩‍👧‍👦","woman-woman-girl-girl":"👩‍👩‍👧‍👧","female-technologist":"👩‍💻","female-office-worker":"👩‍💼","female-mechanic":"👩‍🔧","female-scientist":"👩‍🔬","female-astronaut":"👩‍🚀","female-firefighter":"👩‍🚒","woman_with_probing_cane":"👩‍🦯","red_haired_woman":"👩‍🦰","curly_haired_woman":"👩‍🦱","bald_woman":"👩‍🦲","white_haired_woman":"👩‍🦳","woman_in_motorized_wheelchair":"👩‍🦼","woman_in_manual_wheelchair":"👩‍🦽","female-doctor":"👩‍⚕️","female-judge":"👩‍⚖️","female-pilot":"👩‍✈️","woman-heart-man":"👩‍❤️‍👨","woman-heart-woman":"👩‍❤️‍👩","woman-kiss-man":"👩‍❤️‍💋‍👨","woman-kiss-woman":"👩‍❤️‍💋‍👩","woman":"👩","man_and_woman_holding_hands":"👫","woman_and_man_holding_hands":"👫","couple":"👫","two_men_holding_hands":"👬","men_holding_hands":"👬","two_women_holding_hands":"👭","women_holding_hands":"👭","female-police-officer":"👮‍♀️","male-police-officer":"👮‍♂️","cop":"👮‍♂️","women-with-bunny-ears-partying":"👯‍♀️","woman-with-bunny-ears-partying":"👯‍♀️","dancers":"👯‍♀️","men-with-bunny-ears-partying":"👯‍♂️","man-with-bunny-ears-partying":"👯‍♂️","woman_with_veil":"👰‍♀️","man_with_veil":"👰‍♂️","bride_with_veil":"👰","blond-haired-woman":"👱‍♀️","blond-haired-man":"👱‍♂️","person_with_blond_hair":"👱‍♂️","man_with_gua_pi_mao":"👲","woman-wearing-turban":"👳‍♀️","man-wearing-turban":"👳‍♂️","man_with_turban":"👳‍♂️","older_man":"👴","older_woman":"👵","baby":"👶","female-construction-worker":"👷‍♀️","male-construction-worker":"👷‍♂️","construction_worker":"👷‍♂️","princess":"👸","japanese_ogre":"👹","japanese_goblin":"👺","ghost":"👻","angel":"👼","alien":"👽","space_invader":"👾","imp":"👿","skull":"💀","woman-tipping-hand":"💁‍♀️","information_desk_person":"💁‍♀️","man-tipping-hand":"💁‍♂️","female-guard":"💂‍♀️","male-guard":"💂‍♂️","guardsman":"💂‍♂️","dancer":"💃","lipstick":"💄","nail_care":"💅","woman-getting-massage":"💆‍♀️","massage":"💆‍♀️","man-getting-massage":"💆‍♂️","woman-getting-haircut":"💇‍♀️","haircut":"💇‍♀️","man-getting-haircut":"💇‍♂️","barber":"💈","syringe":"💉","pill":"💊","kiss":"💋","love_letter":"💌","ring":"💍","gem":"💎","couplekiss":"💏","bouquet":"💐","couple_with_heart":"💑","wedding":"💒","heartbeat":"💓","broken_heart":"💔","two_hearts":"💕","sparkling_heart":"💖","heartpulse":"💗","cupid":"💘","blue_heart":"💙","green_heart":"💚","yellow_heart":"💛","purple_heart":"💜","gift_heart":"💝","revolving_hearts":"💞","heart_decoration":"💟","diamond_shape_with_a_dot_inside":"💠","bulb":"💡","anger":"💢","bomb":"💣","zzz":"💤","boom":"💥","collision":"💥","sweat_drops":"💦","droplet":"💧","dash":"💨","hankey":"💩","poop":"💩","shit":"💩","muscle":"💪","dizzy":"💫","speech_balloon":"💬","thought_balloon":"💭","white_flower":"💮","moneybag":"💰","currency_exchange":"💱","heavy_dollar_sign":"💲","credit_card":"💳","yen":"💴","dollar":"💵","euro":"💶","pound":"💷","money_with_wings":"💸","chart":"💹","seat":"💺","computer":"💻","briefcase":"💼","minidisc":"💽","floppy_disk":"💾","cd":"💿","dvd":"📀","file_folder":"📁","open_file_folder":"📂","page_with_curl":"📃","page_facing_up":"📄","date":"📅","calendar":"📆","card_index":"📇","chart_with_upwards_trend":"📈","chart_with_downwards_trend":"📉","bar_chart":"📊","clipboard":"📋","pushpin":"📌","round_pushpin":"📍","paperclip":"📎","straight_ruler":"📏","triangular_ruler":"📐","bookmark_tabs":"📑","ledger":"📒","notebook":"📓","notebook_with_decorative_cover":"📔","closed_book":"📕","book":"📖","open_book":"📖","green_book":"📗","blue_book":"📘","orange_book":"📙","books":"📚","name_badge":"📛","scroll":"📜","memo":"📝","pencil":"📝","telephone_receiver":"📞","pager":"📟","fax":"📠","satellite_antenna":"📡","loudspeaker":"📢","mega":"📣","outbox_tray":"📤","inbox_tray":"📥","package":"📦","e-mail":"📧","incoming_envelope":"📨","envelope_with_arrow":"📩","mailbox_closed":"📪","mailbox":"📫","mailbox_with_mail":"📬","mailbox_with_no_mail":"📭","postbox":"📮","postal_horn":"📯","newspaper":"📰","iphone":"📱","calling":"📲","vibration_mode":"📳","mobile_phone_off":"📴","no_mobile_phones":"📵","signal_strength":"📶","camera":"📷","camera_with_flash":"📸","video_camera":"📹","tv":"📺","radio":"📻","vhs":"📼","film_projector":"📽️","prayer_beads":"📿","twisted_rightwards_arrows":"🔀","repeat":"🔁","repeat_one":"🔂","arrows_clockwise":"🔃","arrows_counterclockwise":"🔄","low_brightness":"🔅","high_brightness":"🔆","mute":"🔇","speaker":"🔈","sound":"🔉","loud_sound":"🔊","battery":"🔋","electric_plug":"🔌","mag":"🔍","mag_right":"🔎","lock_with_ink_pen":"🔏","closed_lock_with_key":"🔐","key":"🔑","lock":"🔒","unlock":"🔓","bell":"🔔","no_bell":"🔕","bookmark":"🔖","link":"🔗","radio_button":"🔘","back":"🔙","end":"🔚","on":"🔛","soon":"🔜","top":"🔝","underage":"🔞","keycap_ten":"🔟","capital_abcd":"🔠","abcd":"🔡","symbols":"🔣","abc":"🔤","fire":"🔥","flashlight":"🔦","wrench":"🔧","hammer":"🔨","nut_and_bolt":"🔩","hocho":"🔪","knife":"🔪","gun":"🔫","microscope":"🔬","telescope":"🔭","crystal_ball":"🔮","six_pointed_star":"🔯","beginner":"🔰","trident":"🔱","black_square_button":"🔲","white_square_button":"🔳","red_circle":"🔴","large_blue_circle":"🔵","large_orange_diamond":"🔶","large_blue_diamond":"🔷","small_orange_diamond":"🔸","small_blue_diamond":"🔹","small_red_triangle":"🔺","small_red_triangle_down":"🔻","arrow_up_small":"🔼","arrow_down_small":"🔽","om_symbol":"🕉️","dove_of_peace":"🕊️","kaaba":"🕋","mosque":"🕌","synagogue":"🕍","menorah_with_nine_branches":"🕎","clock1":"🕐","clock2":"🕑","clock3":"🕒","clock4":"🕓","clock5":"🕔","clock6":"🕕","clock7":"🕖","clock8":"🕗","clock9":"🕘","clock10":"🕙","clock11":"🕚","clock12":"🕛","clock130":"🕜","clock230":"🕝","clock330":"🕞","clock430":"🕟","clock530":"🕠","clock630":"🕡","clock730":"🕢","clock830":"🕣","clock930":"🕤","clock1030":"🕥","clock1130":"🕦","clock1230":"🕧","candle":"🕯️","mantelpiece_clock":"🕰️","hole":"🕳️","man_in_business_suit_levitating":"🕴️","female-detective":"🕵️‍♀️","male-detective":"🕵️‍♂️","sleuth_or_spy":"🕵️‍♂️","dark_sunglasses":"🕶️","spider":"🕷️","spider_web":"🕸️","joystick":"🕹️","man_dancing":"🕺","linked_paperclips":"🖇️","lower_left_ballpoint_pen":"🖊️","lower_left_fountain_pen":"🖋️","lower_left_paintbrush":"🖌️","lower_left_crayon":"🖍️","raised_hand_with_fingers_splayed":"🖐️","middle_finger":"🖕","reversed_hand_with_middle_finger_extended":"🖕","spock-hand":"🖖","black_heart":"🖤","desktop_computer":"🖥️","printer":"🖨️","three_button_mouse":"🖱️","trackball":"🖲️","frame_with_picture":"🖼️","card_index_dividers":"🗂️","card_file_box":"🗃️","file_cabinet":"🗄️","wastebasket":"🗑️","spiral_note_pad":"🗒️","spiral_calendar_pad":"🗓️","compression":"🗜️","old_key":"🗝️","rolled_up_newspaper":"🗞️","dagger_knife":"🗡️","speaking_head_in_silhouette":"🗣️","left_speech_bubble":"🗨️","right_anger_bubble":"🗯️","ballot_box_with_ballot":"🗳️","world_map":"🗺️","mount_fuji":"🗻","tokyo_tower":"🗼","statue_of_liberty":"🗽","japan":"🗾","moyai":"🗿","grinning":"😀","grin":"😁","joy":"😂","smiley":"😃","smile":"😄","sweat_smile":"😅","laughing":"😆","satisfied":"😆","innocent":"😇","smiling_imp":"😈","wink":"😉","blush":"😊","yum":"😋","relieved":"😌","heart_eyes":"😍","sunglasses":"😎","smirk":"😏","neutral_face":"😐","expressionless":"😑","unamused":"😒","sweat":"😓","pensive":"😔","confused":"😕","confounded":"😖","kissing":"😗","kissing_heart":"😘","kissing_smiling_eyes":"😙","kissing_closed_eyes":"😚","stuck_out_tongue":"😛","stuck_out_tongue_winking_eye":"😜","stuck_out_tongue_closed_eyes":"😝","disappointed":"😞","worried":"😟","angry":"😠","rage":"😡","cry":"😢","persevere":"😣","triumph":"😤","disappointed_relieved":"😥","frowning":"😦","anguished":"😧","fearful":"😨","weary":"😩","sleepy":"😪","tired_face":"😫","grimacing":"😬","sob":"😭","face_exhaling":"😮‍💨","open_mouth":"😮","hushed":"😯","cold_sweat":"😰","scream":"😱","astonished":"😲","flushed":"😳","sleeping":"😴","face_with_spiral_eyes":"😵‍💫","dizzy_face":"😵","face_in_clouds":"😶‍🌫️","no_mouth":"😶","mask":"😷","smile_cat":"😸","joy_cat":"😹","smiley_cat":"😺","heart_eyes_cat":"😻","smirk_cat":"😼","kissing_cat":"😽","pouting_cat":"😾","crying_cat_face":"😿","scream_cat":"🙀","slightly_frowning_face":"🙁","slightly_smiling_face":"🙂","upside_down_face":"🙃","face_with_rolling_eyes":"🙄","woman-gesturing-no":"🙅‍♀️","no_good":"🙅‍♀️","man-gesturing-no":"🙅‍♂️","woman-gesturing-ok":"🙆‍♀️","ok_woman":"🙆‍♀️","man-gesturing-ok":"🙆‍♂️","woman-bowing":"🙇‍♀️","man-bowing":"🙇‍♂️","bow":"🙇‍♂️","see_no_evil":"🙈","hear_no_evil":"🙉","speak_no_evil":"🙊","woman-raising-hand":"🙋‍♀️","raising_hand":"🙋‍♀️","man-raising-hand":"🙋‍♂️","raised_hands":"🙌","woman-frowning":"🙍‍♀️","person_frowning":"🙍‍♀️","man-frowning":"🙍‍♂️","woman-pouting":"🙎‍♀️","person_with_pouting_face":"🙎‍♀️","man-pouting":"🙎‍♂️","pray":"🙏","rocket":"🚀","helicopter":"🚁","steam_locomotive":"🚂","railway_car":"🚃","bullettrain_side":"🚄","bullettrain_front":"🚅","train2":"🚆","metro":"🚇","light_rail":"🚈","station":"🚉","tram":"🚊","train":"🚋","bus":"🚌","oncoming_bus":"🚍","trolleybus":"🚎","busstop":"🚏","minibus":"🚐","ambulance":"🚑","fire_engine":"🚒","police_car":"🚓","oncoming_police_car":"🚔","taxi":"🚕","oncoming_taxi":"🚖","car":"🚗","red_car":"🚗","oncoming_automobile":"🚘","blue_car":"🚙","truck":"🚚","articulated_lorry":"🚛","tractor":"🚜","monorail":"🚝","mountain_railway":"🚞","suspension_railway":"🚟","mountain_cableway":"🚠","aerial_tramway":"🚡","ship":"🚢","woman-rowing-boat":"🚣‍♀️","man-rowing-boat":"🚣‍♂️","rowboat":"🚣‍♂️","speedboat":"🚤","traffic_light":"🚥","vertical_traffic_light":"🚦","construction":"🚧","rotating_light":"🚨","triangular_flag_on_post":"🚩","door":"🚪","no_entry_sign":"🚫","smoking":"🚬","no_smoking":"🚭","put_litter_in_its_place":"🚮","do_not_litter":"🚯","potable_water":"🚰","non-potable_water":"🚱","bike":"🚲","no_bicycles":"🚳","woman-biking":"🚴‍♀️","man-biking":"🚴‍♂️","bicyclist":"🚴‍♂️","woman-mountain-biking":"🚵‍♀️","man-mountain-biking":"🚵‍♂️","mountain_bicyclist":"🚵‍♂️","woman-walking":"🚶‍♀️","man-walking":"🚶‍♂️","walking":"🚶‍♂️","no_pedestrians":"🚷","children_crossing":"🚸","mens":"🚹","womens":"🚺","restroom":"🚻","baby_symbol":"🚼","toilet":"🚽","wc":"🚾","shower":"🚿","bath":"🛀","bathtub":"🛁","passport_control":"🛂","customs":"🛃","baggage_claim":"🛄","left_luggage":"🛅","couch_and_lamp":"🛋️","sleeping_accommodation":"🛌","shopping_bags":"🛍️","bellhop_bell":"🛎️","bed":"🛏️","place_of_worship":"🛐","octagonal_sign":"🛑","shopping_trolley":"🛒","hindu_temple":"🛕","hut":"🛖","elevator":"🛗","hammer_and_wrench":"🛠️","shield":"🛡️","oil_drum":"🛢️","motorway":"🛣️","railway_track":"🛤️","motor_boat":"🛥️","small_airplane":"🛩️","airplane_departure":"🛫","airplane_arriving":"🛬","satellite":"🛰️","passenger_ship":"🛳️","scooter":"🛴","motor_scooter":"🛵","canoe":"🛶","sled":"🛷","flying_saucer":"🛸","skateboard":"🛹","auto_rickshaw":"🛺","pickup_truck":"🛻","roller_skate":"🛼","large_orange_circle":"🟠","large_yellow_circle":"🟡","large_green_circle":"🟢","large_purple_circle":"🟣","large_brown_circle":"🟤","large_red_square":"🟥","large_blue_square":"🟦","large_orange_square":"🟧","large_yellow_square":"🟨","large_green_square":"🟩","large_purple_square":"🟪","large_brown_square":"🟫","pinched_fingers":"🤌","white_heart":"🤍","brown_heart":"🤎","pinching_hand":"🤏","zipper_mouth_face":"🤐","money_mouth_face":"🤑","face_with_thermometer":"🤒","nerd_face":"🤓","thinking_face":"🤔","face_with_head_bandage":"🤕","robot_face":"🤖","hugging_face":"🤗","the_horns":"🤘","sign_of_the_horns":"🤘","call_me_hand":"🤙","raised_back_of_hand":"🤚","left-facing_fist":"🤛","right-facing_fist":"🤜","handshake":"🤝","crossed_fingers":"🤞","hand_with_index_and_middle_fingers_crossed":"🤞","i_love_you_hand_sign":"🤟","face_with_cowboy_hat":"🤠","clown_face":"🤡","nauseated_face":"🤢","rolling_on_the_floor_laughing":"🤣","drooling_face":"🤤","lying_face":"🤥","woman-facepalming":"🤦‍♀️","man-facepalming":"🤦‍♂️","face_palm":"🤦","sneezing_face":"🤧","face_with_raised_eyebrow":"🤨","face_with_one_eyebrow_raised":"🤨","star-struck":"🤩","grinning_face_with_star_eyes":"🤩","zany_face":"🤪","grinning_face_with_one_large_and_one_small_eye":"🤪","shushing_face":"🤫","face_with_finger_covering_closed_lips":"🤫","face_with_symbols_on_mouth":"🤬","serious_face_with_symbols_covering_mouth":"🤬","face_with_hand_over_mouth":"🤭","smiling_face_with_smiling_eyes_and_hand_covering_mouth":"🤭","face_vomiting":"🤮","face_with_open_mouth_vomiting":"🤮","exploding_head":"🤯","shocked_face_with_exploding_head":"🤯","pregnant_woman":"🤰","breast-feeding":"🤱","palms_up_together":"🤲","selfie":"🤳","prince":"🤴","woman_in_tuxedo":"🤵‍♀️","man_in_tuxedo":"🤵‍♂️","person_in_tuxedo":"🤵","mrs_claus":"🤶","mother_christmas":"🤶","woman-shrugging":"🤷‍♀️","man-shrugging":"🤷‍♂️","shrug":"🤷","woman-cartwheeling":"🤸‍♀️","man-cartwheeling":"🤸‍♂️","person_doing_cartwheel":"🤸","woman-juggling":"🤹‍♀️","man-juggling":"🤹‍♂️","juggling":"🤹","fencer":"🤺","woman-wrestling":"🤼‍♀️","man-wrestling":"🤼‍♂️","wrestlers":"🤼","woman-playing-water-polo":"🤽‍♀️","man-playing-water-polo":"🤽‍♂️","water_polo":"🤽","woman-playing-handball":"🤾‍♀️","man-playing-handball":"🤾‍♂️","handball":"🤾","diving_mask":"🤿","wilted_flower":"🥀","drum_with_drumsticks":"🥁","clinking_glasses":"🥂","tumbler_glass":"🥃","spoon":"🥄","goal_net":"🥅","first_place_medal":"🥇","second_place_medal":"🥈","third_place_medal":"🥉","boxing_glove":"🥊","martial_arts_uniform":"🥋","curling_stone":"🥌","lacrosse":"🥍","softball":"🥎","flying_disc":"🥏","croissant":"🥐","avocado":"🥑","cucumber":"🥒","bacon":"🥓","potato":"🥔","carrot":"🥕","baguette_bread":"🥖","green_salad":"🥗","shallow_pan_of_food":"🥘","stuffed_flatbread":"🥙","egg":"🥚","glass_of_milk":"🥛","peanuts":"🥜","kiwifruit":"🥝","pancakes":"🥞","dumpling":"🥟","fortune_cookie":"🥠","takeout_box":"🥡","chopsticks":"🥢","bowl_with_spoon":"🥣","cup_with_straw":"🥤","coconut":"🥥","broccoli":"🥦","pie":"🥧","pretzel":"🥨","cut_of_meat":"🥩","sandwich":"🥪","canned_food":"🥫","leafy_green":"🥬","mango":"🥭","moon_cake":"🥮","bagel":"🥯","smiling_face_with_3_hearts":"🥰","yawning_face":"🥱","smiling_face_with_tear":"🥲","partying_face":"🥳","woozy_face":"🥴","hot_face":"🥵","cold_face":"🥶","ninja":"🥷","disguised_face":"🥸","pleading_face":"🥺","sari":"🥻","lab_coat":"🥼","goggles":"🥽","hiking_boot":"🥾","womans_flat_shoe":"🥿","crab":"🦀","lion_face":"🦁","scorpion":"🦂","turkey":"🦃","unicorn_face":"🦄","eagle":"🦅","duck":"🦆","bat":"🦇","shark":"🦈","owl":"🦉","fox_face":"🦊","butterfly":"🦋","deer":"🦌","gorilla":"🦍","lizard":"🦎","rhinoceros":"🦏","shrimp":"🦐","squid":"🦑","giraffe_face":"🦒","zebra_face":"🦓","hedgehog":"🦔","sauropod":"🦕","t-rex":"🦖","cricket":"🦗","kangaroo":"🦘","llama":"🦙","peacock":"🦚","hippopotamus":"🦛","parrot":"🦜","raccoon":"🦝","lobster":"🦞","mosquito":"🦟","microbe":"🦠","badger":"🦡","swan":"🦢","mammoth":"🦣","dodo":"🦤","sloth":"🦥","otter":"🦦","orangutan":"🦧","skunk":"🦨","flamingo":"🦩","oyster":"🦪","beaver":"🦫","bison":"🦬","seal":"🦭","guide_dog":"🦮","probing_cane":"🦯","bone":"🦴","leg":"🦵","foot":"🦶","tooth":"🦷","female_superhero":"🦸‍♀️","male_superhero":"🦸‍♂️","superhero":"🦸","female_supervillain":"🦹‍♀️","male_supervillain":"🦹‍♂️","supervillain":"🦹","safety_vest":"🦺","ear_with_hearing_aid":"🦻","motorized_wheelchair":"🦼","manual_wheelchair":"🦽","mechanical_arm":"🦾","mechanical_leg":"🦿","cheese_wedge":"🧀","cupcake":"🧁","salt":"🧂","beverage_box":"🧃","garlic":"🧄","onion":"🧅","falafel":"🧆","waffle":"🧇","butter":"🧈","mate_drink":"🧉","ice_cube":"🧊","bubble_tea":"🧋","woman_standing":"🧍‍♀️","man_standing":"🧍‍♂️","standing_person":"🧍","woman_kneeling":"🧎‍♀️","man_kneeling":"🧎‍♂️","kneeling_person":"🧎","deaf_woman":"🧏‍♀️","deaf_man":"🧏‍♂️","deaf_person":"🧏","face_with_monocle":"🧐","farmer":"🧑‍🌾","cook":"🧑‍🍳","person_feeding_baby":"🧑‍🍼","mx_claus":"🧑‍🎄","student":"🧑‍🎓","singer":"🧑‍🎤","artist":"🧑‍🎨","teacher":"🧑‍🏫","factory_worker":"🧑‍🏭","technologist":"🧑‍💻","office_worker":"🧑‍💼","mechanic":"🧑‍🔧","scientist":"🧑‍🔬","astronaut":"🧑‍🚀","firefighter":"🧑‍🚒","people_holding_hands":"🧑‍🤝‍🧑","person_with_probing_cane":"🧑‍🦯","red_haired_person":"🧑‍🦰","curly_haired_person":"🧑‍🦱","bald_person":"🧑‍🦲","white_haired_person":"🧑‍🦳","person_in_motorized_wheelchair":"🧑‍🦼","person_in_manual_wheelchair":"🧑‍🦽","health_worker":"🧑‍⚕️","judge":"🧑‍⚖️","pilot":"🧑‍✈️","adult":"🧑","child":"🧒","older_adult":"🧓","woman_with_beard":"🧔‍♀️","man_with_beard":"🧔‍♂️","bearded_person":"🧔","person_with_headscarf":"🧕","woman_in_steamy_room":"🧖‍♀️","man_in_steamy_room":"🧖‍♂️","person_in_steamy_room":"🧖‍♂️","woman_climbing":"🧗‍♀️","person_climbing":"🧗‍♀️","man_climbing":"🧗‍♂️","woman_in_lotus_position":"🧘‍♀️","person_in_lotus_position":"🧘‍♀️","man_in_lotus_position":"🧘‍♂️","female_mage":"🧙‍♀️","mage":"🧙‍♀️","male_mage":"🧙‍♂️","female_fairy":"🧚‍♀️","fairy":"🧚‍♀️","male_fairy":"🧚‍♂️","female_vampire":"🧛‍♀️","vampire":"🧛‍♀️","male_vampire":"🧛‍♂️","mermaid":"🧜‍♀️","merman":"🧜‍♂️","merperson":"🧜‍♂️","female_elf":"🧝‍♀️","male_elf":"🧝‍♂️","elf":"🧝‍♂️","female_genie":"🧞‍♀️","male_genie":"🧞‍♂️","genie":"🧞‍♂️","female_zombie":"🧟‍♀️","male_zombie":"🧟‍♂️","zombie":"🧟‍♂️","brain":"🧠","orange_heart":"🧡","billed_cap":"🧢","scarf":"🧣","gloves":"🧤","coat":"🧥","socks":"🧦","red_envelope":"🧧","firecracker":"🧨","jigsaw":"🧩","test_tube":"🧪","petri_dish":"🧫","dna":"🧬","compass":"🧭","abacus":"🧮","fire_extinguisher":"🧯","toolbox":"🧰","bricks":"🧱","magnet":"🧲","luggage":"🧳","lotion_bottle":"🧴","thread":"🧵","yarn":"🧶","safety_pin":"🧷","teddy_bear":"🧸","broom":"🧹","basket":"🧺","roll_of_paper":"🧻","soap":"🧼","sponge":"🧽","receipt":"🧾","nazar_amulet":"🧿","ballet_shoes":"🩰","one-piece_swimsuit":"🩱","briefs":"🩲","shorts":"🩳","thong_sandal":"🩴","drop_of_blood":"🩸","adhesive_bandage":"🩹","stethoscope":"🩺","yo-yo":"🪀","kite":"🪁","parachute":"🪂","boomerang":"🪃","magic_wand":"🪄","pinata":"🪅","nesting_dolls":"🪆","ringed_planet":"🪐","chair":"🪑","razor":"🪒","axe":"🪓","diya_lamp":"🪔","banjo":"🪕","military_helmet":"🪖","accordion":"🪗","long_drum":"🪘","coin":"🪙","carpentry_saw":"🪚","screwdriver":"🪛","ladder":"🪜","hook":"🪝","mirror":"🪞","window":"🪟","plunger":"🪠","sewing_needle":"🪡","knot":"🪢","bucket":"🪣","mouse_trap":"🪤","toothbrush":"🪥","headstone":"🪦","placard":"🪧","rock":"🪨","fly":"🪰","worm":"🪱","beetle":"🪲","cockroach":"🪳","potted_plant":"🪴","wood":"🪵","feather":"🪶","anatomical_heart":"🫀","lungs":"🫁","people_hugging":"🫂","blueberries":"🫐","bell_pepper":"🫑","olive":"🫒","flatbread":"🫓","tamale":"🫔","fondue":"🫕","teapot":"🫖","bangbang":"‼️","interrobang":"⁉️","tm":"™️","information_source":"ℹ️","left_right_arrow":"↔️","arrow_up_down":"↕️","arrow_upper_left":"↖️","arrow_upper_right":"↗️","arrow_lower_right":"↘️","arrow_lower_left":"↙️","leftwards_arrow_with_hook":"↩️","arrow_right_hook":"↪️","watch":"⌚","hourglass":"⌛","keyboard":"⌨️","eject":"⏏️","fast_forward":"⏩","rewind":"⏪","arrow_double_up":"⏫","arrow_double_down":"⏬","black_right_pointing_double_triangle_with_vertical_bar":"⏭️","black_left_pointing_double_triangle_with_vertical_bar":"⏮️","black_right_pointing_triangle_with_double_vertical_bar":"⏯️","alarm_clock":"⏰","stopwatch":"⏱️","timer_clock":"⏲️","hourglass_flowing_sand":"⏳","double_vertical_bar":"⏸️","black_square_for_stop":"⏹️","black_circle_for_record":"⏺️","m":"Ⓜ️","black_small_square":"▪️","white_small_square":"▫️","arrow_forward":"▶️","arrow_backward":"◀️","white_medium_square":"◻️","black_medium_square":"◼️","white_medium_small_square":"◽","black_medium_small_square":"◾","sunny":"☀️","cloud":"☁️","umbrella":"☂️","snowman":"☃️","comet":"☄️","phone":"☎️","telephone":"☎️","ballot_box_with_check":"☑️","shamrock":"☘️","point_up":"☝️","skull_and_crossbones":"☠️","radioactive_sign":"☢️","biohazard_sign":"☣️","orthodox_cross":"☦️","star_and_crescent":"☪️","peace_symbol":"☮️","yin_yang":"☯️","wheel_of_dharma":"☸️","white_frowning_face":"☹️","relaxed":"☺️","female_sign":"♀️","male_sign":"♂️","gemini":"♊","cancer":"♋","leo":"♌","virgo":"♍","libra":"♎","scorpius":"♏","chess_pawn":"♟️","spades":"♠️","clubs":"♣️","hearts":"♥️","diamonds":"♦️","hotsprings":"♨️","recycle":"♻️","infinity":"♾️","wheelchair":"♿","hammer_and_pick":"⚒️","crossed_swords":"⚔️","medical_symbol":"⚕️","staff_of_aesculapius":"⚕️","scales":"⚖️","alembic":"⚗️","gear":"⚙️","atom_symbol":"⚛️","fleur_de_lis":"⚜️","warning":"⚠️","zap":"⚡","transgender_symbol":"⚧️","white_circle":"⚪","black_circle":"⚫","coffin":"⚰️","funeral_urn":"⚱️","soccer":"⚽","baseball":"⚾","snowman_without_snow":"⛄","partly_sunny":"⛅","thunder_cloud_and_rain":"⛈️","ophiuchus":"⛎","pick":"⛏️","helmet_with_white_cross":"⛑️","chains":"⛓️","no_entry":"⛔","shinto_shrine":"⛩️","church":"⛪","mountain":"⛰️","umbrella_on_ground":"⛱️","fountain":"⛲","golf":"⛳","ferry":"⛴️","boat":"⛵","sailboat":"⛵","skier":"⛷️","ice_skate":"⛸️","woman-bouncing-ball":"⛹️‍♀️","man-bouncing-ball":"⛹️‍♂️","person_with_ball":"⛹️‍♂️","tent":"⛺","fuelpump":"⛽","scissors":"✂️","airplane":"✈️","email":"✉️","envelope":"✉️","fist":"✊","hand":"✋","raised_hand":"✋","v":"✌️","writing_hand":"✍️","pencil2":"✏️","black_nib":"✒️","heavy_check_mark":"✔️","heavy_multiplication_x":"✖️","latin_cross":"✝️","star_of_david":"✡️","eight_spoked_asterisk":"✳️","eight_pointed_black_star":"✴️","snowflake":"❄️","sparkle":"❇️","x":"❌","negative_squared_cross_mark":"❎","heavy_heart_exclamation_mark_ornament":"❣️","heart_on_fire":"❤️‍🔥","mending_heart":"❤️‍🩹","heart":"❤️","arrow_right":"➡️","curly_loop":"➰","loop":"➿","arrow_heading_up":"⤴️","arrow_heading_down":"⤵️","arrow_left":"⬅️","arrow_up":"⬆️","arrow_down":"⬇️","black_large_square":"⬛","white_large_square":"⬜","star":"⭐","o":"⭕","wavy_dash":"〰️","part_alternation_mark":"〽️","congratulations":"㊗️","secret":"㊙️"}')}}]); +//# sourceMappingURL=chunk-vendors.7f0d164e.js.map \ No newline at end of file diff --git a/docs/js/chunk-vendors.7f0d164e.js.map b/docs/js/chunk-vendors.7f0d164e.js.map new file mode 100644 index 0000000..795b786 --- /dev/null +++ b/docs/js/chunk-vendors.7f0d164e.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/chunk-vendors.7f0d164e.js","mappings":"8jBAMA,IAAIA,EACJ,MAAMC,EACFC,YAAYC,GAAW,GACnBC,KAAKD,SAAWA,EAIhBC,KAAKC,QAAS,EAIdD,KAAKE,QAAU,GAIfF,KAAKG,SAAW,GAChBH,KAAKI,OAASR,GACTG,GAAYH,IACbI,KAAKK,OACAT,EAAkBU,SAAWV,EAAkBU,OAAS,KAAKC,KAAKP,MAAQ,EAEvF,CACAQ,IAAIC,GACA,GAAIT,KAAKC,OAAQ,CACb,MAAMS,EAAqBd,EAC3B,IAEI,OADAA,EAAoBI,KACbS,GAIX,CAFA,QACIb,EAAoBc,CACxB,CACJ,MACS,CAGb,CAKAC,KACIf,EAAoBI,IACxB,CAKAY,MACIhB,EAAoBI,KAAKI,MAC7B,CACAS,KAAKC,GACD,GAAId,KAAKC,OAAQ,CACb,IAAIc,EAAGC,EACP,IAAKD,EAAI,EAAGC,EAAIhB,KAAKE,QAAQe,OAAQF,EAAIC,EAAGD,IACxCf,KAAKE,QAAQa,GAAGF,OAEpB,IAAKE,EAAI,EAAGC,EAAIhB,KAAKG,SAASc,OAAQF,EAAIC,EAAGD,IACzCf,KAAKG,SAASY,KAElB,GAAIf,KAAKM,OACL,IAAKS,EAAI,EAAGC,EAAIhB,KAAKM,OAAOW,OAAQF,EAAIC,EAAGD,IACvCf,KAAKM,OAAOS,GAAGF,MAAK,GAI5B,IAAKb,KAAKD,UAAYC,KAAKI,SAAWU,EAAY,CAE9C,MAAMI,EAAOlB,KAAKI,OAAOE,OAAOa,MAC5BD,GAAQA,IAASlB,OACjBA,KAAKI,OAAOE,OAAON,KAAKK,OAASa,EACjCA,EAAKb,MAAQL,KAAKK,MAE1B,CACAL,KAAKI,YAASgB,EACdpB,KAAKC,QAAS,CAClB,CACJ,EAKJ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MAAMpmB,GAClD/9B,KAAK6kB,MAAMsgC,MAASpnB,EAAE8kC,cAAiB9kC,EAAE8kC,eAAehzD,SAAS7P,KAAK6kB,MAAMsgC,KAAK3gC,MACxFuZ,EAAE0kB,iBAEN,EACAsC,UAAWc,GAAeA,KAAcb,EAASA,EAAMa,GAAc,GACrEtB,cAAezxB,GACb,OAAGA,IAAO3Y,MAAM2yB,QAAQha,IAAoB,iBAANA,EAAuBA,EACjD,UACd,I,UCrDJ,MAAMgzB,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAAS,KAEpE,Q,SCNO9xB,MAAM,sB,kCAAX,QAAsC,MAAtC,E,CCAF,MAAM2yB,EAAS,CAAC,EAGV,GAA2B,OAAgBA,EAAQ,CAAC,CAAC,SAAS,KAEpE,QJiBA,GAEEl/B,WAAY,CACVq7C,YAAW,EACXC,iBAAgB,GAGlB3xD,MAAO,CACL+zC,KAAM,CACJ1hD,KAAM0W,MACNwpC,UAAU,GAEZ2B,MAAOt+C,OACPw+C,OAAQx+C,QAGVuf,QAAS,CACPg+B,cAAczxB,GACZ,MAAgB,iBAANA,EAAuBA,EACZ,iBAANA,EAAuB,YAAYA,EACtC,eACd,IKvCJ,MAAM,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASte,KAEpE,O","sources":["webpack://vue-document-editor/./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js","webpack://vue-document-editor/./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js","webpack://vue-document-editor/./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js","webpack://vue-document-editor/./node_modules/@vue/shared/dist/shared.esm-bundler.js","webpack://vue-document-editor/./node_modules/core-js/internals/a-callable.js","webpack://vue-document-editor/./node_modules/core-js/internals/an-object.js","webpack://vue-document-editor/./node_modules/core-js/internals/array-includes.js","webpack://vue-document-editor/./node_modules/core-js/internals/array-set-length.js","webpack://vue-document-editor/./node_modules/core-js/internals/classof-raw.js","webpack://vue-document-editor/./node_modules/core-js/internals/copy-constructor-properties.js","webpack://vue-document-editor/./node_modules/core-js/internals/create-non-enumerable-property.js","webpack://vue-document-editor/./node_modules/core-js/internals/create-property-descriptor.js","webpack://vue-document-editor/./node_modules/core-js/internals/define-built-in.js","webpack://vue-document-editor/./node_modules/core-js/internals/define-global-property.js","webpack://vue-document-editor/./node_modules/core-js/internals/descriptors.js","webpack://vue-document-editor/./node_modules/core-js/internals/document-all.js","webpack://vue-document-editor/./node_modules/core-js/internals/document-create-element.js","webpack://vue-document-editor/./node_modules/core-js/internals/does-not-exceed-safe-integer.js","webpack://vue-document-editor/./node_modules/core-js/internals/engine-user-agent.js","webpack://vue-document-editor/./node_modules/core-js/internals/engine-v8-version.js","webpack://vue-document-editor/./node_modules/core-js/internals/enum-bug-keys.js","webpack://vue-document-editor/./node_modules/core-js/internals/export.js","webpack://vue-document-editor/./node_modules/core-js/internals/fails.js","webpack://vue-document-editor/./node_modules/core-js/internals/function-bind-native.js","webpack://vue-document-editor/./node_modules/core-js/internals/function-call.js","webpack://vue-document-editor/./node_modules/core-js/internals/function-name.js","webpack://vue-document-editor/./node_modules/core-js/internals/function-uncurry-this-raw.js","webpack://vue-document-editor/./node_modules/core-js/internals/function-uncurry-this.js","webpack://vue-document-editor/./node_modules/core-js/internals/get-built-in.js","webpack://vue-document-editor/./node_modules/core-js/internals/get-method.js","webpack://vue-document-editor/./node_modules/core-js/internals/global.js","webpack://vue-document-editor/./node_modules/core-js/internals/has-own-property.js","webpack://vue-document-editor/./node_modules/core-js/internals/hidden-keys.js","webpack://vue-document-editor/./node_modules/core-js/internals/ie8-dom-define.js","webpack://vue-document-editor/./node_modules/core-js/internals/indexed-object.js","webpack://vue-document-editor/./node_modules/core-js/internals/inspect-source.js","webpack://vue-document-editor/./node_modules/core-js/internals/internal-state.js","webpack://vue-document-editor/./node_modules/core-js/internals/is-array.js","webpack://vue-document-editor/./node_modules/core-js/internals/is-callable.js","webpack://vue-document-editor/./node_modules/core-js/internals/is-forced.js","webpack://vue-document-editor/./node_modules/core-js/internals/is-null-or-undefined.js","webpack://vue-document-editor/./node_modules/core-js/internals/is-object.js","webpack://vue-document-editor/./node_modules/core-js/internals/is-pure.js","webpack://vue-document-editor/./node_modules/core-js/internals/is-symbol.js","webpack://vue-document-editor/./node_modules/core-js/internals/length-of-array-like.js","webpack://vue-document-editor/./node_modules/core-js/internals/make-built-in.js","webpack://vue-document-editor/./node_modules/core-js/internals/math-trunc.js","webpack://vue-document-editor/./node_modules/core-js/internals/object-define-property.js","webpack://vue-document-editor/./node_modules/core-js/internals/object-get-own-property-descriptor.js","webpack://vue-document-editor/./node_modules/core-js/internals/object-get-own-property-names.js","webpack://vue-document-editor/./node_modules/core-js/internals/object-get-own-property-symbols.js","webpack://vue-document-editor/./node_modules/core-js/internals/object-is-prototype-of.js","webpack://vue-document-editor/./node_modules/core-js/internals/object-keys-internal.js","webpack://vue-document-editor/./node_modules/core-js/internals/object-property-is-enumerable.js","webpack://vue-document-editor/./node_modules/core-js/internals/ordinary-to-primitive.js","webpack://vue-document-editor/./node_modules/core-js/internals/own-keys.js","webpack://vue-document-editor/./node_modules/core-js/internals/require-object-coercible.js","webpack://vue-document-editor/./node_modules/core-js/internals/shared-key.js","webpack://vue-document-editor/./node_modules/core-js/internals/shared-store.js","webpack://vue-document-editor/./node_modules/core-js/internals/shared.js","webpack://vue-document-editor/./node_modules/core-js/internals/symbol-constructor-detection.js","webpack://vue-document-editor/./node_modules/core-js/internals/to-absolute-index.js","webpack://vue-document-editor/./node_modules/core-js/internals/to-indexed-object.js","webpack://vue-document-editor/./node_modules/core-js/internals/to-integer-or-infinity.js","webpack://vue-document-editor/./node_modules/core-js/internals/to-length.js","webpack://vue-document-editor/./node_modules/core-js/internals/to-object.js","webpack://vue-document-editor/./node_modules/core-js/internals/to-primitive.js","webpack://vue-document-editor/./node_modules/core-js/internals/to-property-key.js","webpack://vue-document-editor/./node_modules/core-js/internals/try-to-string.js","webpack://vue-document-editor/./node_modules/core-js/internals/uid.js","webpack://vue-document-editor/./node_modules/core-js/internals/use-symbol-as-uid.js","webpack://vue-document-editor/./node_modules/core-js/internals/v8-prototype-define-bug.js","webpack://vue-document-editor/./node_modules/core-js/internals/weak-map-basic-detection.js","webpack://vue-document-editor/./node_modules/core-js/internals/well-known-symbol.js","webpack://vue-document-editor/./node_modules/core-js/modules/es.array.push.js","webpack://vue-document-editor/./node_modules/hotkeys-js/dist/hotkeys.esm.js","webpack://vue-document-editor/./node_modules/vue-file-toolbar-menu/src/Bar/imports/bar-hotkey-manager.js","webpack://vue-document-editor/./node_modules/vue-loader/dist/exportHelper.js","webpack://vue-document-editor/./node_modules/vue-file-toolbar-menu/src/Bar/Bar.vue","webpack://vue-document-editor/./node_modules/vue-file-toolbar-menu/src/Bar/BarButtonGeneric.vue","webpack://vue-document-editor/./node_modules/vue-file-toolbar-menu/src/Bar/BarButtonGeneric.vue?68b1","webpack://vue-document-editor/./node_modules/vue-file-toolbar-menu/src/Bar/BarButtonColor.vue","webpack://vue-document-editor/./node_modules/@ckpack/vue-color/libs/style-inject.es-746bb8ed.js","webpack://vue-document-editor/./node_modules/@ckpack/vue-color/libs/defaultConfig.js","webpack://vue-document-editor/./node_modules/@ckpack/vue-color/libs/utils/compoent.js","webpack://vue-document-editor/./node_modules/@ckpack/vue-color/libs/components/checkboard/index.js","webpack://vue-document-editor/./node_modules/@ckpack/vue-color/libs/components/alpha/index.js","webpack://vue-document-editor/./node_modules/@ctrl/tinycolor/dist/module/util.js","webpack://vue-document-editor/./node_modules/@ctrl/tinycolor/dist/module/conversion.js","webpack://vue-document-editor/./node_modules/@ctrl/tinycolor/dist/module/css-color-names.js","webpack://vue-document-editor/./node_modules/@ctrl/tinycolor/dist/module/format-input.js","webpack://vue-document-editor/./node_modules/@ctrl/tinycolor/dist/module/index.js","webpack://vue-document-editor/./node_modules/@ckpack/vue-color/libs/mixin/color.js","webpack://vue-document-editor/./node_modules/@ckpack/vue-color/libs/components/editable-input/index.js","webpack://vue-document-editor/./node_modules/@ckpack/vue-color/libs/utils/utils.js","webpack://vue-document-editor/./node_modules/@ckpack/vue-color/libs/components/saturation/index.js","webpack://vue-document-editor/./node_modules/@ckpack/vue-color/libs/components/hue/index.js","webpack://vue-document-editor/./node_modules/@ckpack/vue-color/libs/components/chrome/index.js","webpack://vue-document-editor/./node_modules/@ckpack/vue-color/libs/components/compact/index.js","webpack://vue-document-editor/./node_modules/@ckpack/vue-color/libs/components/grayscale/index.js","webpack://vue-document-editor/./node_modules/@ckpack/vue-color/libs/components/material/index.js","webpack://vue-document-editor/./node_modules/@ckpack/vue-color/libs/components/photoshop/index.js","webpack://vue-document-editor/./node_modules/@ckpack/vue-color/libs/components/sketch/index.js","webpack://vue-document-editor/./node_modules/@ckpack/vue-color/libs/components/slider/index.js","webpack://vue-document-editor/./node_modules/material-colors/dist/colors.es2015.js","webpack://vue-document-editor/./node_modules/@ckpack/vue-color/libs/components/swatches/index.js","webpack://vue-document-editor/./node_modules/@ckpack/vue-color/libs/components/twitter/index.js","webpack://vue-document-editor/./node_modules/@ckpack/vue-color/libs/components.js","webpack://vue-document-editor/./node_modules/vue-file-toolbar-menu/src/Bar/BarButtonColor.vue?2d37","webpack://vue-document-editor/./node_modules/vue-file-toolbar-menu/src/Bar/BarSeparator.vue","webpack://vue-document-editor/./node_modules/vue-file-toolbar-menu/src/Bar/BarSeparator.vue?a46f","webpack://vue-document-editor/./node_modules/vue-file-toolbar-menu/src/Bar/BarSpacer.vue","webpack://vue-document-editor/./node_modules/vue-file-toolbar-menu/src/Bar/BarSpacer.vue?8e19","webpack://vue-document-editor/./node_modules/vue-file-toolbar-menu/src/Bar/Bar.vue?855e","webpack://vue-document-editor/./node_modules/vue-file-toolbar-menu/src/Bar/BarMenu.vue","webpack://vue-document-editor/./node_modules/vue-file-toolbar-menu/src/Bar/BarMenuItem.vue","webpack://vue-document-editor/./node_modules/vue-file-toolbar-menu/src/Bar/BarMenuItem.vue?4eb2","webpack://vue-document-editor/./node_modules/vue-file-toolbar-menu/src/Bar/BarMenuSeparator.vue","webpack://vue-document-editor/./node_modules/vue-file-toolbar-menu/src/Bar/BarMenuSeparator.vue?59f5","webpack://vue-document-editor/./node_modules/vue-file-toolbar-menu/src/Bar/BarMenu.vue?d5fc"],"sourcesContent":["import { extend, isArray, isMap, isIntegerKey, hasOwn, isSymbol, isObject, hasChanged, makeMap, capitalize, toRawType, def, isFunction, NOOP } from '@vue/shared';\n\nfunction warn(msg, ...args) {\n console.warn(`[Vue warn] ${msg}`, ...args);\n}\n\nlet activeEffectScope;\nclass EffectScope {\n constructor(detached = false) {\n this.detached = detached;\n /**\n * @internal\n */\n this.active = true;\n /**\n * @internal\n */\n this.effects = [];\n /**\n * @internal\n */\n this.cleanups = [];\n this.parent = activeEffectScope;\n if (!detached && activeEffectScope) {\n this.index =\n (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;\n }\n }\n run(fn) {\n if (this.active) {\n const currentEffectScope = activeEffectScope;\n try {\n activeEffectScope = this;\n return fn();\n }\n finally {\n activeEffectScope = currentEffectScope;\n }\n }\n else if ((process.env.NODE_ENV !== 'production')) {\n warn(`cannot run an inactive effect scope.`);\n }\n }\n /**\n * This should only be called on non-detached scopes\n * @internal\n */\n on() {\n activeEffectScope = this;\n }\n /**\n * This should only be called on non-detached scopes\n * @internal\n */\n off() {\n activeEffectScope = this.parent;\n }\n stop(fromParent) {\n if (this.active) {\n let i, l;\n for (i = 0, l = this.effects.length; i < l; i++) {\n this.effects[i].stop();\n }\n for (i = 0, l = this.cleanups.length; i < l; i++) {\n this.cleanups[i]();\n }\n if (this.scopes) {\n for (i = 0, l = this.scopes.length; i < l; i++) {\n this.scopes[i].stop(true);\n }\n }\n // nested scope, dereference from parent to avoid memory leaks\n if (!this.detached && this.parent && !fromParent) {\n // optimized O(1) removal\n const last = this.parent.scopes.pop();\n if (last && last !== this) {\n this.parent.scopes[this.index] = last;\n last.index = this.index;\n }\n }\n this.parent = undefined;\n this.active = false;\n }\n }\n}\nfunction effectScope(detached) {\n return new EffectScope(detached);\n}\nfunction recordEffectScope(effect, scope = activeEffectScope) {\n if (scope && scope.active) {\n scope.effects.push(effect);\n }\n}\nfunction getCurrentScope() {\n return activeEffectScope;\n}\nfunction onScopeDispose(fn) {\n if (activeEffectScope) {\n activeEffectScope.cleanups.push(fn);\n }\n else if ((process.env.NODE_ENV !== 'production')) {\n warn(`onScopeDispose() is called when there is no active effect scope` +\n ` to be associated with.`);\n }\n}\n\nconst createDep = (effects) => {\n const dep = new Set(effects);\n dep.w = 0;\n dep.n = 0;\n return dep;\n};\nconst wasTracked = (dep) => (dep.w & trackOpBit) > 0;\nconst newTracked = (dep) => (dep.n & trackOpBit) > 0;\nconst initDepMarkers = ({ deps }) => {\n if (deps.length) {\n for (let i = 0; i < deps.length; i++) {\n deps[i].w |= trackOpBit; // set was tracked\n }\n }\n};\nconst finalizeDepMarkers = (effect) => {\n const { deps } = effect;\n if (deps.length) {\n let ptr = 0;\n for (let i = 0; i < deps.length; i++) {\n const dep = deps[i];\n if (wasTracked(dep) && !newTracked(dep)) {\n dep.delete(effect);\n }\n else {\n deps[ptr++] = dep;\n }\n // clear bits\n dep.w &= ~trackOpBit;\n dep.n &= ~trackOpBit;\n }\n deps.length = ptr;\n }\n};\n\nconst targetMap = new WeakMap();\n// The number of effects currently being tracked recursively.\nlet effectTrackDepth = 0;\nlet trackOpBit = 1;\n/**\n * The bitwise track markers support at most 30 levels of recursion.\n * This value is chosen to enable modern JS engines to use a SMI on all platforms.\n * When recursion depth is greater, fall back to using a full cleanup.\n */\nconst maxMarkerBits = 30;\nlet activeEffect;\nconst ITERATE_KEY = Symbol((process.env.NODE_ENV !== 'production') ? 'iterate' : '');\nconst MAP_KEY_ITERATE_KEY = Symbol((process.env.NODE_ENV !== 'production') ? 'Map key iterate' : '');\nclass ReactiveEffect {\n constructor(fn, scheduler = null, scope) {\n this.fn = fn;\n this.scheduler = scheduler;\n this.active = true;\n this.deps = [];\n this.parent = undefined;\n recordEffectScope(this, scope);\n }\n run() {\n if (!this.active) {\n return this.fn();\n }\n let parent = activeEffect;\n let lastShouldTrack = shouldTrack;\n while (parent) {\n if (parent === this) {\n return;\n }\n parent = parent.parent;\n }\n try {\n this.parent = activeEffect;\n activeEffect = this;\n shouldTrack = true;\n trackOpBit = 1 << ++effectTrackDepth;\n if (effectTrackDepth <= maxMarkerBits) {\n initDepMarkers(this);\n }\n else {\n cleanupEffect(this);\n }\n return this.fn();\n }\n finally {\n if (effectTrackDepth <= maxMarkerBits) {\n finalizeDepMarkers(this);\n }\n trackOpBit = 1 << --effectTrackDepth;\n activeEffect = this.parent;\n shouldTrack = lastShouldTrack;\n this.parent = undefined;\n if (this.deferStop) {\n this.stop();\n }\n }\n }\n stop() {\n // stopped while running itself - defer the cleanup\n if (activeEffect === this) {\n this.deferStop = true;\n }\n else if (this.active) {\n cleanupEffect(this);\n if (this.onStop) {\n this.onStop();\n }\n this.active = false;\n }\n }\n}\nfunction cleanupEffect(effect) {\n const { deps } = effect;\n if (deps.length) {\n for (let i = 0; i < deps.length; i++) {\n deps[i].delete(effect);\n }\n deps.length = 0;\n }\n}\nfunction effect(fn, options) {\n if (fn.effect) {\n fn = fn.effect.fn;\n }\n const _effect = new ReactiveEffect(fn);\n if (options) {\n extend(_effect, options);\n if (options.scope)\n recordEffectScope(_effect, options.scope);\n }\n if (!options || !options.lazy) {\n _effect.run();\n }\n const runner = _effect.run.bind(_effect);\n runner.effect = _effect;\n return runner;\n}\nfunction stop(runner) {\n runner.effect.stop();\n}\nlet shouldTrack = true;\nconst trackStack = [];\nfunction pauseTracking() {\n trackStack.push(shouldTrack);\n shouldTrack = false;\n}\nfunction enableTracking() {\n trackStack.push(shouldTrack);\n shouldTrack = true;\n}\nfunction resetTracking() {\n const last = trackStack.pop();\n shouldTrack = last === undefined ? true : last;\n}\nfunction track(target, type, key) {\n if (shouldTrack && activeEffect) {\n let depsMap = targetMap.get(target);\n if (!depsMap) {\n targetMap.set(target, (depsMap = new Map()));\n }\n let dep = depsMap.get(key);\n if (!dep) {\n depsMap.set(key, (dep = createDep()));\n }\n const eventInfo = (process.env.NODE_ENV !== 'production')\n ? { effect: activeEffect, target, type, key }\n : undefined;\n trackEffects(dep, eventInfo);\n }\n}\nfunction trackEffects(dep, debuggerEventExtraInfo) {\n let shouldTrack = false;\n if (effectTrackDepth <= maxMarkerBits) {\n if (!newTracked(dep)) {\n dep.n |= trackOpBit; // set newly tracked\n shouldTrack = !wasTracked(dep);\n }\n }\n else {\n // Full cleanup mode.\n shouldTrack = !dep.has(activeEffect);\n }\n if (shouldTrack) {\n dep.add(activeEffect);\n activeEffect.deps.push(dep);\n if ((process.env.NODE_ENV !== 'production') && activeEffect.onTrack) {\n activeEffect.onTrack(Object.assign({ effect: activeEffect }, debuggerEventExtraInfo));\n }\n }\n}\nfunction trigger(target, type, key, newValue, oldValue, oldTarget) {\n const depsMap = targetMap.get(target);\n if (!depsMap) {\n // never been tracked\n return;\n }\n let deps = [];\n if (type === \"clear\" /* TriggerOpTypes.CLEAR */) {\n // collection being cleared\n // trigger all effects for target\n deps = [...depsMap.values()];\n }\n else if (key === 'length' && isArray(target)) {\n depsMap.forEach((dep, key) => {\n if (key === 'length' || key >= newValue) {\n deps.push(dep);\n }\n });\n }\n else {\n // schedule runs for SET | ADD | DELETE\n if (key !== void 0) {\n deps.push(depsMap.get(key));\n }\n // also run for iteration key on ADD | DELETE | Map.SET\n switch (type) {\n case \"add\" /* TriggerOpTypes.ADD */:\n if (!isArray(target)) {\n deps.push(depsMap.get(ITERATE_KEY));\n if (isMap(target)) {\n deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));\n }\n }\n else if (isIntegerKey(key)) {\n // new index added to array -> length changes\n deps.push(depsMap.get('length'));\n }\n break;\n case \"delete\" /* TriggerOpTypes.DELETE */:\n if (!isArray(target)) {\n deps.push(depsMap.get(ITERATE_KEY));\n if (isMap(target)) {\n deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));\n }\n }\n break;\n case \"set\" /* TriggerOpTypes.SET */:\n if (isMap(target)) {\n deps.push(depsMap.get(ITERATE_KEY));\n }\n break;\n }\n }\n const eventInfo = (process.env.NODE_ENV !== 'production')\n ? { target, type, key, newValue, oldValue, oldTarget }\n : undefined;\n if (deps.length === 1) {\n if (deps[0]) {\n if ((process.env.NODE_ENV !== 'production')) {\n triggerEffects(deps[0], eventInfo);\n }\n else {\n triggerEffects(deps[0]);\n }\n }\n }\n else {\n const effects = [];\n for (const dep of deps) {\n if (dep) {\n effects.push(...dep);\n }\n }\n if ((process.env.NODE_ENV !== 'production')) {\n triggerEffects(createDep(effects), eventInfo);\n }\n else {\n triggerEffects(createDep(effects));\n }\n }\n}\nfunction triggerEffects(dep, debuggerEventExtraInfo) {\n // spread into array for stabilization\n const effects = isArray(dep) ? dep : [...dep];\n for (const effect of effects) {\n if (effect.computed) {\n triggerEffect(effect, debuggerEventExtraInfo);\n }\n }\n for (const effect of effects) {\n if (!effect.computed) {\n triggerEffect(effect, debuggerEventExtraInfo);\n }\n }\n}\nfunction triggerEffect(effect, debuggerEventExtraInfo) {\n if (effect !== activeEffect || effect.allowRecurse) {\n if ((process.env.NODE_ENV !== 'production') && effect.onTrigger) {\n effect.onTrigger(extend({ effect }, debuggerEventExtraInfo));\n }\n if (effect.scheduler) {\n effect.scheduler();\n }\n else {\n effect.run();\n }\n }\n}\n\nconst isNonTrackableKeys = /*#__PURE__*/ makeMap(`__proto__,__v_isRef,__isVue`);\nconst builtInSymbols = new Set(\n/*#__PURE__*/\nObject.getOwnPropertyNames(Symbol)\n // ios10.x Object.getOwnPropertyNames(Symbol) can enumerate 'arguments' and 'caller'\n // but accessing them on Symbol leads to TypeError because Symbol is a strict mode\n // function\n .filter(key => key !== 'arguments' && key !== 'caller')\n .map(key => Symbol[key])\n .filter(isSymbol));\nconst get = /*#__PURE__*/ createGetter();\nconst shallowGet = /*#__PURE__*/ createGetter(false, true);\nconst readonlyGet = /*#__PURE__*/ createGetter(true);\nconst shallowReadonlyGet = /*#__PURE__*/ createGetter(true, true);\nconst arrayInstrumentations = /*#__PURE__*/ createArrayInstrumentations();\nfunction createArrayInstrumentations() {\n const instrumentations = {};\n ['includes', 'indexOf', 'lastIndexOf'].forEach(key => {\n instrumentations[key] = function (...args) {\n const arr = toRaw(this);\n for (let i = 0, l = this.length; i < l; i++) {\n track(arr, \"get\" /* TrackOpTypes.GET */, i + '');\n }\n // we run the method using the original args first (which may be reactive)\n const res = arr[key](...args);\n if (res === -1 || res === false) {\n // if that didn't work, run it again using raw values.\n return arr[key](...args.map(toRaw));\n }\n else {\n return res;\n }\n };\n });\n ['push', 'pop', 'shift', 'unshift', 'splice'].forEach(key => {\n instrumentations[key] = function (...args) {\n pauseTracking();\n const res = toRaw(this)[key].apply(this, args);\n resetTracking();\n return res;\n };\n });\n return instrumentations;\n}\nfunction createGetter(isReadonly = false, shallow = false) {\n return function get(target, key, receiver) {\n if (key === \"__v_isReactive\" /* ReactiveFlags.IS_REACTIVE */) {\n return !isReadonly;\n }\n else if (key === \"__v_isReadonly\" /* ReactiveFlags.IS_READONLY */) {\n return isReadonly;\n }\n else if (key === \"__v_isShallow\" /* ReactiveFlags.IS_SHALLOW */) {\n return shallow;\n }\n else if (key === \"__v_raw\" /* ReactiveFlags.RAW */ &&\n receiver ===\n (isReadonly\n ? shallow\n ? shallowReadonlyMap\n : readonlyMap\n : shallow\n ? shallowReactiveMap\n : reactiveMap).get(target)) {\n return target;\n }\n const targetIsArray = isArray(target);\n if (!isReadonly && targetIsArray && hasOwn(arrayInstrumentations, key)) {\n return Reflect.get(arrayInstrumentations, key, receiver);\n }\n const res = Reflect.get(target, key, receiver);\n if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {\n return res;\n }\n if (!isReadonly) {\n track(target, \"get\" /* TrackOpTypes.GET */, key);\n }\n if (shallow) {\n return res;\n }\n if (isRef(res)) {\n // ref unwrapping - skip unwrap for Array + integer key.\n return targetIsArray && isIntegerKey(key) ? res : res.value;\n }\n if (isObject(res)) {\n // Convert returned value into a proxy as well. we do the isObject check\n // here to avoid invalid value warning. Also need to lazy access readonly\n // and reactive here to avoid circular dependency.\n return isReadonly ? readonly(res) : reactive(res);\n }\n return res;\n };\n}\nconst set = /*#__PURE__*/ createSetter();\nconst shallowSet = /*#__PURE__*/ createSetter(true);\nfunction createSetter(shallow = false) {\n return function set(target, key, value, receiver) {\n let oldValue = target[key];\n if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {\n return false;\n }\n if (!shallow) {\n if (!isShallow(value) && !isReadonly(value)) {\n oldValue = toRaw(oldValue);\n value = toRaw(value);\n }\n if (!isArray(target) && isRef(oldValue) && !isRef(value)) {\n oldValue.value = value;\n return true;\n }\n }\n const hadKey = isArray(target) && isIntegerKey(key)\n ? Number(key) < target.length\n : hasOwn(target, key);\n const result = Reflect.set(target, key, value, receiver);\n // don't trigger if target is something up in the prototype chain of original\n if (target === toRaw(receiver)) {\n if (!hadKey) {\n trigger(target, \"add\" /* TriggerOpTypes.ADD */, key, value);\n }\n else if (hasChanged(value, oldValue)) {\n trigger(target, \"set\" /* TriggerOpTypes.SET */, key, value, oldValue);\n }\n }\n return result;\n };\n}\nfunction deleteProperty(target, key) {\n const hadKey = hasOwn(target, key);\n const oldValue = target[key];\n const result = Reflect.deleteProperty(target, key);\n if (result && hadKey) {\n trigger(target, \"delete\" /* TriggerOpTypes.DELETE */, key, undefined, oldValue);\n }\n return result;\n}\nfunction has(target, key) {\n const result = Reflect.has(target, key);\n if (!isSymbol(key) || !builtInSymbols.has(key)) {\n track(target, \"has\" /* TrackOpTypes.HAS */, key);\n }\n return result;\n}\nfunction ownKeys(target) {\n track(target, \"iterate\" /* TrackOpTypes.ITERATE */, isArray(target) ? 'length' : ITERATE_KEY);\n return Reflect.ownKeys(target);\n}\nconst mutableHandlers = {\n get,\n set,\n deleteProperty,\n has,\n ownKeys\n};\nconst readonlyHandlers = {\n get: readonlyGet,\n set(target, key) {\n if ((process.env.NODE_ENV !== 'production')) {\n warn(`Set operation on key \"${String(key)}\" failed: target is readonly.`, target);\n }\n return true;\n },\n deleteProperty(target, key) {\n if ((process.env.NODE_ENV !== 'production')) {\n warn(`Delete operation on key \"${String(key)}\" failed: target is readonly.`, target);\n }\n return true;\n }\n};\nconst shallowReactiveHandlers = /*#__PURE__*/ extend({}, mutableHandlers, {\n get: shallowGet,\n set: shallowSet\n});\n// Props handlers are special in the sense that it should not unwrap top-level\n// refs (in order to allow refs to be explicitly passed down), but should\n// retain the reactivity of the normal readonly object.\nconst shallowReadonlyHandlers = /*#__PURE__*/ extend({}, readonlyHandlers, {\n get: shallowReadonlyGet\n});\n\nconst toShallow = (value) => value;\nconst getProto = (v) => Reflect.getPrototypeOf(v);\nfunction get$1(target, key, isReadonly = false, isShallow = false) {\n // #1772: readonly(reactive(Map)) should return readonly + reactive version\n // of the value\n target = target[\"__v_raw\" /* ReactiveFlags.RAW */];\n const rawTarget = toRaw(target);\n const rawKey = toRaw(key);\n if (!isReadonly) {\n if (key !== rawKey) {\n track(rawTarget, \"get\" /* TrackOpTypes.GET */, key);\n }\n track(rawTarget, \"get\" /* TrackOpTypes.GET */, rawKey);\n }\n const { has } = getProto(rawTarget);\n const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\n if (has.call(rawTarget, key)) {\n return wrap(target.get(key));\n }\n else if (has.call(rawTarget, rawKey)) {\n return wrap(target.get(rawKey));\n }\n else if (target !== rawTarget) {\n // #3602 readonly(reactive(Map))\n // ensure that the nested reactive `Map` can do tracking for itself\n target.get(key);\n }\n}\nfunction has$1(key, isReadonly = false) {\n const target = this[\"__v_raw\" /* ReactiveFlags.RAW */];\n const rawTarget = toRaw(target);\n const rawKey = toRaw(key);\n if (!isReadonly) {\n if (key !== rawKey) {\n track(rawTarget, \"has\" /* TrackOpTypes.HAS */, key);\n }\n track(rawTarget, \"has\" /* TrackOpTypes.HAS */, rawKey);\n }\n return key === rawKey\n ? target.has(key)\n : target.has(key) || target.has(rawKey);\n}\nfunction size(target, isReadonly = false) {\n target = target[\"__v_raw\" /* ReactiveFlags.RAW */];\n !isReadonly && track(toRaw(target), \"iterate\" /* TrackOpTypes.ITERATE */, ITERATE_KEY);\n return Reflect.get(target, 'size', target);\n}\nfunction add(value) {\n value = toRaw(value);\n const target = toRaw(this);\n const proto = getProto(target);\n const hadKey = proto.has.call(target, value);\n if (!hadKey) {\n target.add(value);\n trigger(target, \"add\" /* TriggerOpTypes.ADD */, value, value);\n }\n return this;\n}\nfunction set$1(key, value) {\n value = toRaw(value);\n const target = toRaw(this);\n const { has, get } = getProto(target);\n let hadKey = has.call(target, key);\n if (!hadKey) {\n key = toRaw(key);\n hadKey = has.call(target, key);\n }\n else if ((process.env.NODE_ENV !== 'production')) {\n checkIdentityKeys(target, has, key);\n }\n const oldValue = get.call(target, key);\n target.set(key, value);\n if (!hadKey) {\n trigger(target, \"add\" /* TriggerOpTypes.ADD */, key, value);\n }\n else if (hasChanged(value, oldValue)) {\n trigger(target, \"set\" /* TriggerOpTypes.SET */, key, value, oldValue);\n }\n return this;\n}\nfunction deleteEntry(key) {\n const target = toRaw(this);\n const { has, get } = getProto(target);\n let hadKey = has.call(target, key);\n if (!hadKey) {\n key = toRaw(key);\n hadKey = has.call(target, key);\n }\n else if ((process.env.NODE_ENV !== 'production')) {\n checkIdentityKeys(target, has, key);\n }\n const oldValue = get ? get.call(target, key) : undefined;\n // forward the operation before queueing reactions\n const result = target.delete(key);\n if (hadKey) {\n trigger(target, \"delete\" /* TriggerOpTypes.DELETE */, key, undefined, oldValue);\n }\n return result;\n}\nfunction clear() {\n const target = toRaw(this);\n const hadItems = target.size !== 0;\n const oldTarget = (process.env.NODE_ENV !== 'production')\n ? isMap(target)\n ? new Map(target)\n : new Set(target)\n : undefined;\n // forward the operation before queueing reactions\n const result = target.clear();\n if (hadItems) {\n trigger(target, \"clear\" /* TriggerOpTypes.CLEAR */, undefined, undefined, oldTarget);\n }\n return result;\n}\nfunction createForEach(isReadonly, isShallow) {\n return function forEach(callback, thisArg) {\n const observed = this;\n const target = observed[\"__v_raw\" /* ReactiveFlags.RAW */];\n const rawTarget = toRaw(target);\n const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\n !isReadonly && track(rawTarget, \"iterate\" /* TrackOpTypes.ITERATE */, ITERATE_KEY);\n return target.forEach((value, key) => {\n // important: make sure the callback is\n // 1. invoked with the reactive map as `this` and 3rd arg\n // 2. the value received should be a corresponding reactive/readonly.\n return callback.call(thisArg, wrap(value), wrap(key), observed);\n });\n };\n}\nfunction createIterableMethod(method, isReadonly, isShallow) {\n return function (...args) {\n const target = this[\"__v_raw\" /* ReactiveFlags.RAW */];\n const rawTarget = toRaw(target);\n const targetIsMap = isMap(rawTarget);\n const isPair = method === 'entries' || (method === Symbol.iterator && targetIsMap);\n const isKeyOnly = method === 'keys' && targetIsMap;\n const innerIterator = target[method](...args);\n const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\n !isReadonly &&\n track(rawTarget, \"iterate\" /* TrackOpTypes.ITERATE */, isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);\n // return a wrapped iterator which returns observed versions of the\n // values emitted from the real iterator\n return {\n // iterator protocol\n next() {\n const { value, done } = innerIterator.next();\n return done\n ? { value, done }\n : {\n value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),\n done\n };\n },\n // iterable protocol\n [Symbol.iterator]() {\n return this;\n }\n };\n };\n}\nfunction createReadonlyMethod(type) {\n return function (...args) {\n if ((process.env.NODE_ENV !== 'production')) {\n const key = args[0] ? `on key \"${args[0]}\" ` : ``;\n console.warn(`${capitalize(type)} operation ${key}failed: target is readonly.`, toRaw(this));\n }\n return type === \"delete\" /* TriggerOpTypes.DELETE */ ? false : this;\n };\n}\nfunction createInstrumentations() {\n const mutableInstrumentations = {\n get(key) {\n return get$1(this, key);\n },\n get size() {\n return size(this);\n },\n has: has$1,\n add,\n set: set$1,\n delete: deleteEntry,\n clear,\n forEach: createForEach(false, false)\n };\n const shallowInstrumentations = {\n get(key) {\n return get$1(this, key, false, true);\n },\n get size() {\n return size(this);\n },\n has: has$1,\n add,\n set: set$1,\n delete: deleteEntry,\n clear,\n forEach: createForEach(false, true)\n };\n const readonlyInstrumentations = {\n get(key) {\n return get$1(this, key, true);\n },\n get size() {\n return size(this, true);\n },\n has(key) {\n return has$1.call(this, key, true);\n },\n add: createReadonlyMethod(\"add\" /* TriggerOpTypes.ADD */),\n set: createReadonlyMethod(\"set\" /* TriggerOpTypes.SET */),\n delete: createReadonlyMethod(\"delete\" /* TriggerOpTypes.DELETE */),\n clear: createReadonlyMethod(\"clear\" /* TriggerOpTypes.CLEAR */),\n forEach: createForEach(true, false)\n };\n const shallowReadonlyInstrumentations = {\n get(key) {\n return get$1(this, key, true, true);\n },\n get size() {\n return size(this, true);\n },\n has(key) {\n return has$1.call(this, key, true);\n },\n add: createReadonlyMethod(\"add\" /* TriggerOpTypes.ADD */),\n set: createReadonlyMethod(\"set\" /* TriggerOpTypes.SET */),\n delete: createReadonlyMethod(\"delete\" /* TriggerOpTypes.DELETE */),\n clear: createReadonlyMethod(\"clear\" /* TriggerOpTypes.CLEAR */),\n forEach: createForEach(true, true)\n };\n const iteratorMethods = ['keys', 'values', 'entries', Symbol.iterator];\n iteratorMethods.forEach(method => {\n mutableInstrumentations[method] = createIterableMethod(method, false, false);\n readonlyInstrumentations[method] = createIterableMethod(method, true, false);\n shallowInstrumentations[method] = createIterableMethod(method, false, true);\n shallowReadonlyInstrumentations[method] = createIterableMethod(method, true, true);\n });\n return [\n mutableInstrumentations,\n readonlyInstrumentations,\n shallowInstrumentations,\n shallowReadonlyInstrumentations\n ];\n}\nconst [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* #__PURE__*/ createInstrumentations();\nfunction createInstrumentationGetter(isReadonly, shallow) {\n const instrumentations = shallow\n ? isReadonly\n ? shallowReadonlyInstrumentations\n : shallowInstrumentations\n : isReadonly\n ? readonlyInstrumentations\n : mutableInstrumentations;\n return (target, key, receiver) => {\n if (key === \"__v_isReactive\" /* ReactiveFlags.IS_REACTIVE */) {\n return !isReadonly;\n }\n else if (key === \"__v_isReadonly\" /* ReactiveFlags.IS_READONLY */) {\n return isReadonly;\n }\n else if (key === \"__v_raw\" /* ReactiveFlags.RAW */) {\n return target;\n }\n return Reflect.get(hasOwn(instrumentations, key) && key in target\n ? instrumentations\n : target, key, receiver);\n };\n}\nconst mutableCollectionHandlers = {\n get: /*#__PURE__*/ createInstrumentationGetter(false, false)\n};\nconst shallowCollectionHandlers = {\n get: /*#__PURE__*/ createInstrumentationGetter(false, true)\n};\nconst readonlyCollectionHandlers = {\n get: /*#__PURE__*/ createInstrumentationGetter(true, false)\n};\nconst shallowReadonlyCollectionHandlers = {\n get: /*#__PURE__*/ createInstrumentationGetter(true, true)\n};\nfunction checkIdentityKeys(target, has, key) {\n const rawKey = toRaw(key);\n if (rawKey !== key && has.call(target, rawKey)) {\n const type = toRawType(target);\n console.warn(`Reactive ${type} contains both the raw and reactive ` +\n `versions of the same object${type === `Map` ? ` as keys` : ``}, ` +\n `which can lead to inconsistencies. ` +\n `Avoid differentiating between the raw and reactive versions ` +\n `of an object and only use the reactive version if possible.`);\n }\n}\n\nconst reactiveMap = new WeakMap();\nconst shallowReactiveMap = new WeakMap();\nconst readonlyMap = new WeakMap();\nconst shallowReadonlyMap = new WeakMap();\nfunction targetTypeMap(rawType) {\n switch (rawType) {\n case 'Object':\n case 'Array':\n return 1 /* TargetType.COMMON */;\n case 'Map':\n case 'Set':\n case 'WeakMap':\n case 'WeakSet':\n return 2 /* TargetType.COLLECTION */;\n default:\n return 0 /* TargetType.INVALID */;\n }\n}\nfunction getTargetType(value) {\n return value[\"__v_skip\" /* ReactiveFlags.SKIP */] || !Object.isExtensible(value)\n ? 0 /* TargetType.INVALID */\n : targetTypeMap(toRawType(value));\n}\nfunction reactive(target) {\n // if trying to observe a readonly proxy, return the readonly version.\n if (isReadonly(target)) {\n return target;\n }\n return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);\n}\n/**\n * Return a shallowly-reactive copy of the original object, where only the root\n * level properties are reactive. It also does not auto-unwrap refs (even at the\n * root level).\n */\nfunction shallowReactive(target) {\n return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap);\n}\n/**\n * Creates a readonly copy of the original object. Note the returned copy is not\n * made reactive, but `readonly` can be called on an already reactive object.\n */\nfunction readonly(target) {\n return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);\n}\n/**\n * Returns a reactive-copy of the original object, where only the root level\n * properties are readonly, and does NOT unwrap refs nor recursively convert\n * returned properties.\n * This is used for creating the props proxy object for stateful components.\n */\nfunction shallowReadonly(target) {\n return createReactiveObject(target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap);\n}\nfunction createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) {\n if (!isObject(target)) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.warn(`value cannot be made reactive: ${String(target)}`);\n }\n return target;\n }\n // target is already a Proxy, return it.\n // exception: calling readonly() on a reactive object\n if (target[\"__v_raw\" /* ReactiveFlags.RAW */] &&\n !(isReadonly && target[\"__v_isReactive\" /* ReactiveFlags.IS_REACTIVE */])) {\n return target;\n }\n // target already has corresponding Proxy\n const existingProxy = proxyMap.get(target);\n if (existingProxy) {\n return existingProxy;\n }\n // only specific value types can be observed.\n const targetType = getTargetType(target);\n if (targetType === 0 /* TargetType.INVALID */) {\n return target;\n }\n const proxy = new Proxy(target, targetType === 2 /* TargetType.COLLECTION */ ? collectionHandlers : baseHandlers);\n proxyMap.set(target, proxy);\n return proxy;\n}\nfunction isReactive(value) {\n if (isReadonly(value)) {\n return isReactive(value[\"__v_raw\" /* ReactiveFlags.RAW */]);\n }\n return !!(value && value[\"__v_isReactive\" /* ReactiveFlags.IS_REACTIVE */]);\n}\nfunction isReadonly(value) {\n return !!(value && value[\"__v_isReadonly\" /* ReactiveFlags.IS_READONLY */]);\n}\nfunction isShallow(value) {\n return !!(value && value[\"__v_isShallow\" /* ReactiveFlags.IS_SHALLOW */]);\n}\nfunction isProxy(value) {\n return isReactive(value) || isReadonly(value);\n}\nfunction toRaw(observed) {\n const raw = observed && observed[\"__v_raw\" /* ReactiveFlags.RAW */];\n return raw ? toRaw(raw) : observed;\n}\nfunction markRaw(value) {\n def(value, \"__v_skip\" /* ReactiveFlags.SKIP */, true);\n return value;\n}\nconst toReactive = (value) => isObject(value) ? reactive(value) : value;\nconst toReadonly = (value) => isObject(value) ? readonly(value) : value;\n\nfunction trackRefValue(ref) {\n if (shouldTrack && activeEffect) {\n ref = toRaw(ref);\n if ((process.env.NODE_ENV !== 'production')) {\n trackEffects(ref.dep || (ref.dep = createDep()), {\n target: ref,\n type: \"get\" /* TrackOpTypes.GET */,\n key: 'value'\n });\n }\n else {\n trackEffects(ref.dep || (ref.dep = createDep()));\n }\n }\n}\nfunction triggerRefValue(ref, newVal) {\n ref = toRaw(ref);\n if (ref.dep) {\n if ((process.env.NODE_ENV !== 'production')) {\n triggerEffects(ref.dep, {\n target: ref,\n type: \"set\" /* TriggerOpTypes.SET */,\n key: 'value',\n newValue: newVal\n });\n }\n else {\n triggerEffects(ref.dep);\n }\n }\n}\nfunction isRef(r) {\n return !!(r && r.__v_isRef === true);\n}\nfunction ref(value) {\n return createRef(value, false);\n}\nfunction shallowRef(value) {\n return createRef(value, true);\n}\nfunction createRef(rawValue, shallow) {\n if (isRef(rawValue)) {\n return rawValue;\n }\n return new RefImpl(rawValue, shallow);\n}\nclass RefImpl {\n constructor(value, __v_isShallow) {\n this.__v_isShallow = __v_isShallow;\n this.dep = undefined;\n this.__v_isRef = true;\n this._rawValue = __v_isShallow ? value : toRaw(value);\n this._value = __v_isShallow ? value : toReactive(value);\n }\n get value() {\n trackRefValue(this);\n return this._value;\n }\n set value(newVal) {\n const useDirectValue = this.__v_isShallow || isShallow(newVal) || isReadonly(newVal);\n newVal = useDirectValue ? newVal : toRaw(newVal);\n if (hasChanged(newVal, this._rawValue)) {\n this._rawValue = newVal;\n this._value = useDirectValue ? newVal : toReactive(newVal);\n triggerRefValue(this, newVal);\n }\n }\n}\nfunction triggerRef(ref) {\n triggerRefValue(ref, (process.env.NODE_ENV !== 'production') ? ref.value : void 0);\n}\nfunction unref(ref) {\n return isRef(ref) ? ref.value : ref;\n}\nconst shallowUnwrapHandlers = {\n get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),\n set: (target, key, value, receiver) => {\n const oldValue = target[key];\n if (isRef(oldValue) && !isRef(value)) {\n oldValue.value = value;\n return true;\n }\n else {\n return Reflect.set(target, key, value, receiver);\n }\n }\n};\nfunction proxyRefs(objectWithRefs) {\n return isReactive(objectWithRefs)\n ? objectWithRefs\n : new Proxy(objectWithRefs, shallowUnwrapHandlers);\n}\nclass CustomRefImpl {\n constructor(factory) {\n this.dep = undefined;\n this.__v_isRef = true;\n const { get, set } = factory(() => trackRefValue(this), () => triggerRefValue(this));\n this._get = get;\n this._set = set;\n }\n get value() {\n return this._get();\n }\n set value(newVal) {\n this._set(newVal);\n }\n}\nfunction customRef(factory) {\n return new CustomRefImpl(factory);\n}\nfunction toRefs(object) {\n if ((process.env.NODE_ENV !== 'production') && !isProxy(object)) {\n console.warn(`toRefs() expects a reactive object but received a plain one.`);\n }\n const ret = isArray(object) ? new Array(object.length) : {};\n for (const key in object) {\n ret[key] = toRef(object, key);\n }\n return ret;\n}\nclass ObjectRefImpl {\n constructor(_object, _key, _defaultValue) {\n this._object = _object;\n this._key = _key;\n this._defaultValue = _defaultValue;\n this.__v_isRef = true;\n }\n get value() {\n const val = this._object[this._key];\n return val === undefined ? this._defaultValue : val;\n }\n set value(newVal) {\n this._object[this._key] = newVal;\n }\n}\nfunction toRef(object, key, defaultValue) {\n const val = object[key];\n return isRef(val)\n ? val\n : new ObjectRefImpl(object, key, defaultValue);\n}\n\nvar _a;\nclass ComputedRefImpl {\n constructor(getter, _setter, isReadonly, isSSR) {\n this._setter = _setter;\n this.dep = undefined;\n this.__v_isRef = true;\n this[_a] = false;\n this._dirty = true;\n this.effect = new ReactiveEffect(getter, () => {\n if (!this._dirty) {\n this._dirty = true;\n triggerRefValue(this);\n }\n });\n this.effect.computed = this;\n this.effect.active = this._cacheable = !isSSR;\n this[\"__v_isReadonly\" /* ReactiveFlags.IS_READONLY */] = isReadonly;\n }\n get value() {\n // the computed ref may get wrapped by other proxies e.g. readonly() #3376\n const self = toRaw(this);\n trackRefValue(self);\n if (self._dirty || !self._cacheable) {\n self._dirty = false;\n self._value = self.effect.run();\n }\n return self._value;\n }\n set value(newValue) {\n this._setter(newValue);\n }\n}\n_a = \"__v_isReadonly\" /* ReactiveFlags.IS_READONLY */;\nfunction computed(getterOrOptions, debugOptions, isSSR = false) {\n let getter;\n let setter;\n const onlyGetter = isFunction(getterOrOptions);\n if (onlyGetter) {\n getter = getterOrOptions;\n setter = (process.env.NODE_ENV !== 'production')\n ? () => {\n console.warn('Write operation failed: computed value is readonly');\n }\n : NOOP;\n }\n else {\n getter = getterOrOptions.get;\n setter = getterOrOptions.set;\n }\n const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR);\n if ((process.env.NODE_ENV !== 'production') && debugOptions && !isSSR) {\n cRef.effect.onTrack = debugOptions.onTrack;\n cRef.effect.onTrigger = debugOptions.onTrigger;\n }\n return cRef;\n}\n\nvar _a$1;\nconst tick = /*#__PURE__*/ Promise.resolve();\nconst queue = [];\nlet queued = false;\nconst scheduler = (fn) => {\n queue.push(fn);\n if (!queued) {\n queued = true;\n tick.then(flush);\n }\n};\nconst flush = () => {\n for (let i = 0; i < queue.length; i++) {\n queue[i]();\n }\n queue.length = 0;\n queued = false;\n};\nclass DeferredComputedRefImpl {\n constructor(getter) {\n this.dep = undefined;\n this._dirty = true;\n this.__v_isRef = true;\n this[_a$1] = true;\n let compareTarget;\n let hasCompareTarget = false;\n let scheduled = false;\n this.effect = new ReactiveEffect(getter, (computedTrigger) => {\n if (this.dep) {\n if (computedTrigger) {\n compareTarget = this._value;\n hasCompareTarget = true;\n }\n else if (!scheduled) {\n const valueToCompare = hasCompareTarget ? compareTarget : this._value;\n scheduled = true;\n hasCompareTarget = false;\n scheduler(() => {\n if (this.effect.active && this._get() !== valueToCompare) {\n triggerRefValue(this);\n }\n scheduled = false;\n });\n }\n // chained upstream computeds are notified synchronously to ensure\n // value invalidation in case of sync access; normal effects are\n // deferred to be triggered in scheduler.\n for (const e of this.dep) {\n if (e.computed instanceof DeferredComputedRefImpl) {\n e.scheduler(true /* computedTrigger */);\n }\n }\n }\n this._dirty = true;\n });\n this.effect.computed = this;\n }\n _get() {\n if (this._dirty) {\n this._dirty = false;\n return (this._value = this.effect.run());\n }\n return this._value;\n }\n get value() {\n trackRefValue(this);\n // the computed ref may get wrapped by other proxies e.g. readonly() #3376\n return toRaw(this)._get();\n }\n}\n_a$1 = \"__v_isReadonly\" /* ReactiveFlags.IS_READONLY */;\nfunction deferredComputed(getter) {\n return new DeferredComputedRefImpl(getter);\n}\n\nexport { EffectScope, ITERATE_KEY, ReactiveEffect, computed, customRef, deferredComputed, effect, effectScope, enableTracking, getCurrentScope, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, pauseTracking, proxyRefs, reactive, readonly, ref, resetTracking, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, track, trigger, triggerRef, unref };\n","import { pauseTracking, resetTracking, isRef, toRaw, isShallow as isShallow$1, isReactive, ReactiveEffect, ref, shallowReadonly, track, reactive, shallowReactive, trigger, isProxy, EffectScope, markRaw, proxyRefs, computed as computed$1, isReadonly } from '@vue/reactivity';\nexport { EffectScope, ReactiveEffect, customRef, effect, effectScope, getCurrentScope, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, triggerRef, unref } from '@vue/reactivity';\nimport { isString, isFunction, isPromise, isArray, NOOP, getGlobalThis, extend, EMPTY_OBJ, toHandlerKey, toNumber, hyphenate, camelize, isObject, isOn, hasOwn, isModelListener, hasChanged, remove, isSet, isMap, isPlainObject, invokeArrayFns, isBuiltInDirective, capitalize, isGloballyWhitelisted, def, isReservedProp, EMPTY_ARR, toRawType, makeMap, NO, normalizeClass, normalizeStyle } from '@vue/shared';\nexport { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';\n\nconst stack = [];\nfunction pushWarningContext(vnode) {\n stack.push(vnode);\n}\nfunction popWarningContext() {\n stack.pop();\n}\nfunction warn(msg, ...args) {\n // avoid props formatting or warn handler tracking deps that might be mutated\n // during patch, leading to infinite recursion.\n pauseTracking();\n const instance = stack.length ? stack[stack.length - 1].component : null;\n const appWarnHandler = instance && instance.appContext.config.warnHandler;\n const trace = getComponentTrace();\n if (appWarnHandler) {\n callWithErrorHandling(appWarnHandler, instance, 11 /* ErrorCodes.APP_WARN_HANDLER */, [\n msg + args.join(''),\n instance && instance.proxy,\n trace\n .map(({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`)\n .join('\\n'),\n trace\n ]);\n }\n else {\n const warnArgs = [`[Vue warn]: ${msg}`, ...args];\n /* istanbul ignore if */\n if (trace.length &&\n // avoid spamming console during tests\n !false) {\n warnArgs.push(`\\n`, ...formatTrace(trace));\n }\n console.warn(...warnArgs);\n }\n resetTracking();\n}\nfunction getComponentTrace() {\n let currentVNode = stack[stack.length - 1];\n if (!currentVNode) {\n return [];\n }\n // we can't just use the stack because it will be incomplete during updates\n // that did not start from the root. Re-construct the parent chain using\n // instance parent pointers.\n const normalizedStack = [];\n while (currentVNode) {\n const last = normalizedStack[0];\n if (last && last.vnode === currentVNode) {\n last.recurseCount++;\n }\n else {\n normalizedStack.push({\n vnode: currentVNode,\n recurseCount: 0\n });\n }\n const parentInstance = currentVNode.component && currentVNode.component.parent;\n currentVNode = parentInstance && parentInstance.vnode;\n }\n return normalizedStack;\n}\n/* istanbul ignore next */\nfunction formatTrace(trace) {\n const logs = [];\n trace.forEach((entry, i) => {\n logs.push(...(i === 0 ? [] : [`\\n`]), ...formatTraceEntry(entry));\n });\n return logs;\n}\nfunction formatTraceEntry({ vnode, recurseCount }) {\n const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``;\n const isRoot = vnode.component ? vnode.component.parent == null : false;\n const open = ` at <${formatComponentName(vnode.component, vnode.type, isRoot)}`;\n const close = `>` + postfix;\n return vnode.props\n ? [open, ...formatProps(vnode.props), close]\n : [open + close];\n}\n/* istanbul ignore next */\nfunction formatProps(props) {\n const res = [];\n const keys = Object.keys(props);\n keys.slice(0, 3).forEach(key => {\n res.push(...formatProp(key, props[key]));\n });\n if (keys.length > 3) {\n res.push(` ...`);\n }\n return res;\n}\n/* istanbul ignore next */\nfunction formatProp(key, value, raw) {\n if (isString(value)) {\n value = JSON.stringify(value);\n return raw ? value : [`${key}=${value}`];\n }\n else if (typeof value === 'number' ||\n typeof value === 'boolean' ||\n value == null) {\n return raw ? value : [`${key}=${value}`];\n }\n else if (isRef(value)) {\n value = formatProp(key, toRaw(value.value), true);\n return raw ? value : [`${key}=Ref<`, value, `>`];\n }\n else if (isFunction(value)) {\n return [`${key}=fn${value.name ? `<${value.name}>` : ``}`];\n }\n else {\n value = toRaw(value);\n return raw ? value : [`${key}=`, value];\n }\n}\n\nconst ErrorTypeStrings = {\n [\"sp\" /* LifecycleHooks.SERVER_PREFETCH */]: 'serverPrefetch hook',\n [\"bc\" /* LifecycleHooks.BEFORE_CREATE */]: 'beforeCreate hook',\n [\"c\" /* LifecycleHooks.CREATED */]: 'created hook',\n [\"bm\" /* LifecycleHooks.BEFORE_MOUNT */]: 'beforeMount hook',\n [\"m\" /* LifecycleHooks.MOUNTED */]: 'mounted hook',\n [\"bu\" /* LifecycleHooks.BEFORE_UPDATE */]: 'beforeUpdate hook',\n [\"u\" /* LifecycleHooks.UPDATED */]: 'updated',\n [\"bum\" /* LifecycleHooks.BEFORE_UNMOUNT */]: 'beforeUnmount hook',\n [\"um\" /* LifecycleHooks.UNMOUNTED */]: 'unmounted hook',\n [\"a\" /* LifecycleHooks.ACTIVATED */]: 'activated hook',\n [\"da\" /* LifecycleHooks.DEACTIVATED */]: 'deactivated hook',\n [\"ec\" /* LifecycleHooks.ERROR_CAPTURED */]: 'errorCaptured hook',\n [\"rtc\" /* LifecycleHooks.RENDER_TRACKED */]: 'renderTracked hook',\n [\"rtg\" /* LifecycleHooks.RENDER_TRIGGERED */]: 'renderTriggered hook',\n [0 /* ErrorCodes.SETUP_FUNCTION */]: 'setup function',\n [1 /* ErrorCodes.RENDER_FUNCTION */]: 'render function',\n [2 /* ErrorCodes.WATCH_GETTER */]: 'watcher getter',\n [3 /* ErrorCodes.WATCH_CALLBACK */]: 'watcher callback',\n [4 /* ErrorCodes.WATCH_CLEANUP */]: 'watcher cleanup function',\n [5 /* ErrorCodes.NATIVE_EVENT_HANDLER */]: 'native event handler',\n [6 /* ErrorCodes.COMPONENT_EVENT_HANDLER */]: 'component event handler',\n [7 /* ErrorCodes.VNODE_HOOK */]: 'vnode hook',\n [8 /* ErrorCodes.DIRECTIVE_HOOK */]: 'directive hook',\n [9 /* ErrorCodes.TRANSITION_HOOK */]: 'transition hook',\n [10 /* ErrorCodes.APP_ERROR_HANDLER */]: 'app errorHandler',\n [11 /* ErrorCodes.APP_WARN_HANDLER */]: 'app warnHandler',\n [12 /* ErrorCodes.FUNCTION_REF */]: 'ref function',\n [13 /* ErrorCodes.ASYNC_COMPONENT_LOADER */]: 'async component loader',\n [14 /* ErrorCodes.SCHEDULER */]: 'scheduler flush. This is likely a Vue internals bug. ' +\n 'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core'\n};\nfunction callWithErrorHandling(fn, instance, type, args) {\n let res;\n try {\n res = args ? fn(...args) : fn();\n }\n catch (err) {\n handleError(err, instance, type);\n }\n return res;\n}\nfunction callWithAsyncErrorHandling(fn, instance, type, args) {\n if (isFunction(fn)) {\n const res = callWithErrorHandling(fn, instance, type, args);\n if (res && isPromise(res)) {\n res.catch(err => {\n handleError(err, instance, type);\n });\n }\n return res;\n }\n const values = [];\n for (let i = 0; i < fn.length; i++) {\n values.push(callWithAsyncErrorHandling(fn[i], instance, type, args));\n }\n return values;\n}\nfunction handleError(err, instance, type, throwInDev = true) {\n const contextVNode = instance ? instance.vnode : null;\n if (instance) {\n let cur = instance.parent;\n // the exposed instance is the render proxy to keep it consistent with 2.x\n const exposedInstance = instance.proxy;\n // in production the hook receives only the error code\n const errorInfo = (process.env.NODE_ENV !== 'production') ? ErrorTypeStrings[type] : type;\n while (cur) {\n const errorCapturedHooks = cur.ec;\n if (errorCapturedHooks) {\n for (let i = 0; i < errorCapturedHooks.length; i++) {\n if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) {\n return;\n }\n }\n }\n cur = cur.parent;\n }\n // app-level handling\n const appErrorHandler = instance.appContext.config.errorHandler;\n if (appErrorHandler) {\n callWithErrorHandling(appErrorHandler, null, 10 /* ErrorCodes.APP_ERROR_HANDLER */, [err, exposedInstance, errorInfo]);\n return;\n }\n }\n logError(err, type, contextVNode, throwInDev);\n}\nfunction logError(err, type, contextVNode, throwInDev = true) {\n if ((process.env.NODE_ENV !== 'production')) {\n const info = ErrorTypeStrings[type];\n if (contextVNode) {\n pushWarningContext(contextVNode);\n }\n warn(`Unhandled error${info ? ` during execution of ${info}` : ``}`);\n if (contextVNode) {\n popWarningContext();\n }\n // crash in dev by default so it's more noticeable\n if (throwInDev) {\n throw err;\n }\n else {\n console.error(err);\n }\n }\n else {\n // recover in prod to reduce the impact on end-user\n console.error(err);\n }\n}\n\nlet isFlushing = false;\nlet isFlushPending = false;\nconst queue = [];\nlet flushIndex = 0;\nconst pendingPostFlushCbs = [];\nlet activePostFlushCbs = null;\nlet postFlushIndex = 0;\nconst resolvedPromise = /*#__PURE__*/ Promise.resolve();\nlet currentFlushPromise = null;\nconst RECURSION_LIMIT = 100;\nfunction nextTick(fn) {\n const p = currentFlushPromise || resolvedPromise;\n return fn ? p.then(this ? fn.bind(this) : fn) : p;\n}\n// #2768\n// Use binary-search to find a suitable position in the queue,\n// so that the queue maintains the increasing order of job's id,\n// which can prevent the job from being skipped and also can avoid repeated patching.\nfunction findInsertionIndex(id) {\n // the start index should be `flushIndex + 1`\n let start = flushIndex + 1;\n let end = queue.length;\n while (start < end) {\n const middle = (start + end) >>> 1;\n const middleJobId = getId(queue[middle]);\n middleJobId < id ? (start = middle + 1) : (end = middle);\n }\n return start;\n}\nfunction queueJob(job) {\n // the dedupe search uses the startIndex argument of Array.includes()\n // by default the search index includes the current job that is being run\n // so it cannot recursively trigger itself again.\n // if the job is a watch() callback, the search will start with a +1 index to\n // allow it recursively trigger itself - it is the user's responsibility to\n // ensure it doesn't end up in an infinite loop.\n if (!queue.length ||\n !queue.includes(job, isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex)) {\n if (job.id == null) {\n queue.push(job);\n }\n else {\n queue.splice(findInsertionIndex(job.id), 0, job);\n }\n queueFlush();\n }\n}\nfunction queueFlush() {\n if (!isFlushing && !isFlushPending) {\n isFlushPending = true;\n currentFlushPromise = resolvedPromise.then(flushJobs);\n }\n}\nfunction invalidateJob(job) {\n const i = queue.indexOf(job);\n if (i > flushIndex) {\n queue.splice(i, 1);\n }\n}\nfunction queuePostFlushCb(cb) {\n if (!isArray(cb)) {\n if (!activePostFlushCbs ||\n !activePostFlushCbs.includes(cb, cb.allowRecurse ? postFlushIndex + 1 : postFlushIndex)) {\n pendingPostFlushCbs.push(cb);\n }\n }\n else {\n // if cb is an array, it is a component lifecycle hook which can only be\n // triggered by a job, which is already deduped in the main queue, so\n // we can skip duplicate check here to improve perf\n pendingPostFlushCbs.push(...cb);\n }\n queueFlush();\n}\nfunction flushPreFlushCbs(seen, \n// if currently flushing, skip the current job itself\ni = isFlushing ? flushIndex + 1 : 0) {\n if ((process.env.NODE_ENV !== 'production')) {\n seen = seen || new Map();\n }\n for (; i < queue.length; i++) {\n const cb = queue[i];\n if (cb && cb.pre) {\n if ((process.env.NODE_ENV !== 'production') && checkRecursiveUpdates(seen, cb)) {\n continue;\n }\n queue.splice(i, 1);\n i--;\n cb();\n }\n }\n}\nfunction flushPostFlushCbs(seen) {\n if (pendingPostFlushCbs.length) {\n const deduped = [...new Set(pendingPostFlushCbs)];\n pendingPostFlushCbs.length = 0;\n // #1947 already has active queue, nested flushPostFlushCbs call\n if (activePostFlushCbs) {\n activePostFlushCbs.push(...deduped);\n return;\n }\n activePostFlushCbs = deduped;\n if ((process.env.NODE_ENV !== 'production')) {\n seen = seen || new Map();\n }\n activePostFlushCbs.sort((a, b) => getId(a) - getId(b));\n for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {\n if ((process.env.NODE_ENV !== 'production') &&\n checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) {\n continue;\n }\n activePostFlushCbs[postFlushIndex]();\n }\n activePostFlushCbs = null;\n postFlushIndex = 0;\n }\n}\nconst getId = (job) => job.id == null ? Infinity : job.id;\nconst comparator = (a, b) => {\n const diff = getId(a) - getId(b);\n if (diff === 0) {\n if (a.pre && !b.pre)\n return -1;\n if (b.pre && !a.pre)\n return 1;\n }\n return diff;\n};\nfunction flushJobs(seen) {\n isFlushPending = false;\n isFlushing = true;\n if ((process.env.NODE_ENV !== 'production')) {\n seen = seen || new Map();\n }\n // Sort queue before flush.\n // This ensures that:\n // 1. Components are updated from parent to child. (because parent is always\n // created before the child so its render effect will have smaller\n // priority number)\n // 2. If a component is unmounted during a parent component's update,\n // its update can be skipped.\n queue.sort(comparator);\n // conditional usage of checkRecursiveUpdate must be determined out of\n // try ... catch block since Rollup by default de-optimizes treeshaking\n // inside try-catch. This can leave all warning code unshaked. Although\n // they would get eventually shaken by a minifier like terser, some minifiers\n // would fail to do that (e.g. https://github.com/evanw/esbuild/issues/1610)\n const check = (process.env.NODE_ENV !== 'production')\n ? (job) => checkRecursiveUpdates(seen, job)\n : NOOP;\n try {\n for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {\n const job = queue[flushIndex];\n if (job && job.active !== false) {\n if ((process.env.NODE_ENV !== 'production') && check(job)) {\n continue;\n }\n // console.log(`running:`, job.id)\n callWithErrorHandling(job, null, 14 /* ErrorCodes.SCHEDULER */);\n }\n }\n }\n finally {\n flushIndex = 0;\n queue.length = 0;\n flushPostFlushCbs(seen);\n isFlushing = false;\n currentFlushPromise = null;\n // some postFlushCb queued jobs!\n // keep flushing until it drains.\n if (queue.length || pendingPostFlushCbs.length) {\n flushJobs(seen);\n }\n }\n}\nfunction checkRecursiveUpdates(seen, fn) {\n if (!seen.has(fn)) {\n seen.set(fn, 1);\n }\n else {\n const count = seen.get(fn);\n if (count > RECURSION_LIMIT) {\n const instance = fn.ownerInstance;\n const componentName = instance && getComponentName(instance.type);\n warn(`Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. ` +\n `This means you have a reactive effect that is mutating its own ` +\n `dependencies and thus recursively triggering itself. Possible sources ` +\n `include component template, render function, updated hook or ` +\n `watcher source function.`);\n return true;\n }\n else {\n seen.set(fn, count + 1);\n }\n }\n}\n\n/* eslint-disable no-restricted-globals */\nlet isHmrUpdating = false;\nconst hmrDirtyComponents = new Set();\n// Expose the HMR runtime on the global object\n// This makes it entirely tree-shakable without polluting the exports and makes\n// it easier to be used in toolings like vue-loader\n// Note: for a component to be eligible for HMR it also needs the __hmrId option\n// to be set so that its instances can be registered / removed.\nif ((process.env.NODE_ENV !== 'production')) {\n getGlobalThis().__VUE_HMR_RUNTIME__ = {\n createRecord: tryWrap(createRecord),\n rerender: tryWrap(rerender),\n reload: tryWrap(reload)\n };\n}\nconst map = new Map();\nfunction registerHMR(instance) {\n const id = instance.type.__hmrId;\n let record = map.get(id);\n if (!record) {\n createRecord(id, instance.type);\n record = map.get(id);\n }\n record.instances.add(instance);\n}\nfunction unregisterHMR(instance) {\n map.get(instance.type.__hmrId).instances.delete(instance);\n}\nfunction createRecord(id, initialDef) {\n if (map.has(id)) {\n return false;\n }\n map.set(id, {\n initialDef: normalizeClassComponent(initialDef),\n instances: new Set()\n });\n return true;\n}\nfunction normalizeClassComponent(component) {\n return isClassComponent(component) ? component.__vccOpts : component;\n}\nfunction rerender(id, newRender) {\n const record = map.get(id);\n if (!record) {\n return;\n }\n // update initial record (for not-yet-rendered component)\n record.initialDef.render = newRender;\n [...record.instances].forEach(instance => {\n if (newRender) {\n instance.render = newRender;\n normalizeClassComponent(instance.type).render = newRender;\n }\n instance.renderCache = [];\n // this flag forces child components with slot content to update\n isHmrUpdating = true;\n instance.update();\n isHmrUpdating = false;\n });\n}\nfunction reload(id, newComp) {\n const record = map.get(id);\n if (!record)\n return;\n newComp = normalizeClassComponent(newComp);\n // update initial def (for not-yet-rendered components)\n updateComponentDef(record.initialDef, newComp);\n // create a snapshot which avoids the set being mutated during updates\n const instances = [...record.instances];\n for (const instance of instances) {\n const oldComp = normalizeClassComponent(instance.type);\n if (!hmrDirtyComponents.has(oldComp)) {\n // 1. Update existing comp definition to match new one\n if (oldComp !== record.initialDef) {\n updateComponentDef(oldComp, newComp);\n }\n // 2. mark definition dirty. This forces the renderer to replace the\n // component on patch.\n hmrDirtyComponents.add(oldComp);\n }\n // 3. invalidate options resolution cache\n instance.appContext.optionsCache.delete(instance.type);\n // 4. actually update\n if (instance.ceReload) {\n // custom element\n hmrDirtyComponents.add(oldComp);\n instance.ceReload(newComp.styles);\n hmrDirtyComponents.delete(oldComp);\n }\n else if (instance.parent) {\n // 4. Force the parent instance to re-render. This will cause all updated\n // components to be unmounted and re-mounted. Queue the update so that we\n // don't end up forcing the same parent to re-render multiple times.\n queueJob(instance.parent.update);\n // instance is the inner component of an async custom element\n // invoke to reset styles\n if (instance.parent.type.__asyncLoader &&\n instance.parent.ceReload) {\n instance.parent.ceReload(newComp.styles);\n }\n }\n else if (instance.appContext.reload) {\n // root instance mounted via createApp() has a reload method\n instance.appContext.reload();\n }\n else if (typeof window !== 'undefined') {\n // root instance inside tree created via raw render(). Force reload.\n window.location.reload();\n }\n else {\n console.warn('[HMR] Root or manually mounted instance modified. Full reload required.');\n }\n }\n // 5. make sure to cleanup dirty hmr components after update\n queuePostFlushCb(() => {\n for (const instance of instances) {\n hmrDirtyComponents.delete(normalizeClassComponent(instance.type));\n }\n });\n}\nfunction updateComponentDef(oldComp, newComp) {\n extend(oldComp, newComp);\n for (const key in oldComp) {\n if (key !== '__file' && !(key in newComp)) {\n delete oldComp[key];\n }\n }\n}\nfunction tryWrap(fn) {\n return (id, arg) => {\n try {\n return fn(id, arg);\n }\n catch (e) {\n console.error(e);\n console.warn(`[HMR] Something went wrong during Vue component hot-reload. ` +\n `Full reload required.`);\n }\n };\n}\n\nlet devtools;\nlet buffer = [];\nlet devtoolsNotInstalled = false;\nfunction emit(event, ...args) {\n if (devtools) {\n devtools.emit(event, ...args);\n }\n else if (!devtoolsNotInstalled) {\n buffer.push({ event, args });\n }\n}\nfunction setDevtoolsHook(hook, target) {\n var _a, _b;\n devtools = hook;\n if (devtools) {\n devtools.enabled = true;\n buffer.forEach(({ event, args }) => devtools.emit(event, ...args));\n buffer = [];\n }\n else if (\n // handle late devtools injection - only do this if we are in an actual\n // browser environment to avoid the timer handle stalling test runner exit\n // (#4815)\n typeof window !== 'undefined' &&\n // some envs mock window but not fully\n window.HTMLElement &&\n // also exclude jsdom\n !((_b = (_a = window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === null || _b === void 0 ? void 0 : _b.includes('jsdom'))) {\n const replay = (target.__VUE_DEVTOOLS_HOOK_REPLAY__ =\n target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []);\n replay.push((newHook) => {\n setDevtoolsHook(newHook, target);\n });\n // clear buffer after 3s - the user probably doesn't have devtools installed\n // at all, and keeping the buffer will cause memory leaks (#4738)\n setTimeout(() => {\n if (!devtools) {\n target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;\n devtoolsNotInstalled = true;\n buffer = [];\n }\n }, 3000);\n }\n else {\n // non-browser env, assume not installed\n devtoolsNotInstalled = true;\n buffer = [];\n }\n}\nfunction devtoolsInitApp(app, version) {\n emit(\"app:init\" /* DevtoolsHooks.APP_INIT */, app, version, {\n Fragment,\n Text,\n Comment,\n Static\n });\n}\nfunction devtoolsUnmountApp(app) {\n emit(\"app:unmount\" /* DevtoolsHooks.APP_UNMOUNT */, app);\n}\nconst devtoolsComponentAdded = /*#__PURE__*/ createDevtoolsComponentHook(\"component:added\" /* DevtoolsHooks.COMPONENT_ADDED */);\nconst devtoolsComponentUpdated = \n/*#__PURE__*/ createDevtoolsComponentHook(\"component:updated\" /* DevtoolsHooks.COMPONENT_UPDATED */);\nconst _devtoolsComponentRemoved = /*#__PURE__*/ createDevtoolsComponentHook(\"component:removed\" /* DevtoolsHooks.COMPONENT_REMOVED */);\nconst devtoolsComponentRemoved = (component) => {\n if (devtools &&\n typeof devtools.cleanupBuffer === 'function' &&\n // remove the component if it wasn't buffered\n !devtools.cleanupBuffer(component)) {\n _devtoolsComponentRemoved(component);\n }\n};\nfunction createDevtoolsComponentHook(hook) {\n return (component) => {\n emit(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : undefined, component);\n };\n}\nconst devtoolsPerfStart = /*#__PURE__*/ createDevtoolsPerformanceHook(\"perf:start\" /* DevtoolsHooks.PERFORMANCE_START */);\nconst devtoolsPerfEnd = /*#__PURE__*/ createDevtoolsPerformanceHook(\"perf:end\" /* DevtoolsHooks.PERFORMANCE_END */);\nfunction createDevtoolsPerformanceHook(hook) {\n return (component, type, time) => {\n emit(hook, component.appContext.app, component.uid, component, type, time);\n };\n}\nfunction devtoolsComponentEmit(component, event, params) {\n emit(\"component:emit\" /* DevtoolsHooks.COMPONENT_EMIT */, component.appContext.app, component, event, params);\n}\n\nfunction emit$1(instance, event, ...rawArgs) {\n if (instance.isUnmounted)\n return;\n const props = instance.vnode.props || EMPTY_OBJ;\n if ((process.env.NODE_ENV !== 'production')) {\n const { emitsOptions, propsOptions: [propsOptions] } = instance;\n if (emitsOptions) {\n if (!(event in emitsOptions) &&\n !(false )) {\n if (!propsOptions || !(toHandlerKey(event) in propsOptions)) {\n warn(`Component emitted event \"${event}\" but it is neither declared in ` +\n `the emits option nor as an \"${toHandlerKey(event)}\" prop.`);\n }\n }\n else {\n const validator = emitsOptions[event];\n if (isFunction(validator)) {\n const isValid = validator(...rawArgs);\n if (!isValid) {\n warn(`Invalid event arguments: event validation failed for event \"${event}\".`);\n }\n }\n }\n }\n }\n let args = rawArgs;\n const isModelListener = event.startsWith('update:');\n // for v-model update:xxx events, apply modifiers on args\n const modelArg = isModelListener && event.slice(7);\n if (modelArg && modelArg in props) {\n const modifiersKey = `${modelArg === 'modelValue' ? 'model' : modelArg}Modifiers`;\n const { number, trim } = props[modifiersKey] || EMPTY_OBJ;\n if (trim) {\n args = rawArgs.map(a => a.trim());\n }\n if (number) {\n args = rawArgs.map(toNumber);\n }\n }\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\n devtoolsComponentEmit(instance, event, args);\n }\n if ((process.env.NODE_ENV !== 'production')) {\n const lowerCaseEvent = event.toLowerCase();\n if (lowerCaseEvent !== event && props[toHandlerKey(lowerCaseEvent)]) {\n warn(`Event \"${lowerCaseEvent}\" is emitted in component ` +\n `${formatComponentName(instance, instance.type)} but the handler is registered for \"${event}\". ` +\n `Note that HTML attributes are case-insensitive and you cannot use ` +\n `v-on to listen to camelCase events when using in-DOM templates. ` +\n `You should probably use \"${hyphenate(event)}\" instead of \"${event}\".`);\n }\n }\n let handlerName;\n let handler = props[(handlerName = toHandlerKey(event))] ||\n // also try camelCase event handler (#2249)\n props[(handlerName = toHandlerKey(camelize(event)))];\n // for v-model update:xxx events, also trigger kebab-case equivalent\n // for props passed via kebab-case\n if (!handler && isModelListener) {\n handler = props[(handlerName = toHandlerKey(hyphenate(event)))];\n }\n if (handler) {\n callWithAsyncErrorHandling(handler, instance, 6 /* ErrorCodes.COMPONENT_EVENT_HANDLER */, args);\n }\n const onceHandler = props[handlerName + `Once`];\n if (onceHandler) {\n if (!instance.emitted) {\n instance.emitted = {};\n }\n else if (instance.emitted[handlerName]) {\n return;\n }\n instance.emitted[handlerName] = true;\n callWithAsyncErrorHandling(onceHandler, instance, 6 /* ErrorCodes.COMPONENT_EVENT_HANDLER */, args);\n }\n}\nfunction normalizeEmitsOptions(comp, appContext, asMixin = false) {\n const cache = appContext.emitsCache;\n const cached = cache.get(comp);\n if (cached !== undefined) {\n return cached;\n }\n const raw = comp.emits;\n let normalized = {};\n // apply mixin/extends props\n let hasExtends = false;\n if (__VUE_OPTIONS_API__ && !isFunction(comp)) {\n const extendEmits = (raw) => {\n const normalizedFromExtend = normalizeEmitsOptions(raw, appContext, true);\n if (normalizedFromExtend) {\n hasExtends = true;\n extend(normalized, normalizedFromExtend);\n }\n };\n if (!asMixin && appContext.mixins.length) {\n appContext.mixins.forEach(extendEmits);\n }\n if (comp.extends) {\n extendEmits(comp.extends);\n }\n if (comp.mixins) {\n comp.mixins.forEach(extendEmits);\n }\n }\n if (!raw && !hasExtends) {\n if (isObject(comp)) {\n cache.set(comp, null);\n }\n return null;\n }\n if (isArray(raw)) {\n raw.forEach(key => (normalized[key] = null));\n }\n else {\n extend(normalized, raw);\n }\n if (isObject(comp)) {\n cache.set(comp, normalized);\n }\n return normalized;\n}\n// Check if an incoming prop key is a declared emit event listener.\n// e.g. With `emits: { click: null }`, props named `onClick` and `onclick` are\n// both considered matched listeners.\nfunction isEmitListener(options, key) {\n if (!options || !isOn(key)) {\n return false;\n }\n key = key.slice(2).replace(/Once$/, '');\n return (hasOwn(options, key[0].toLowerCase() + key.slice(1)) ||\n hasOwn(options, hyphenate(key)) ||\n hasOwn(options, key));\n}\n\n/**\n * mark the current rendering instance for asset resolution (e.g.\n * resolveComponent, resolveDirective) during render\n */\nlet currentRenderingInstance = null;\nlet currentScopeId = null;\n/**\n * Note: rendering calls maybe nested. The function returns the parent rendering\n * instance if present, which should be restored after the render is done:\n *\n * ```js\n * const prev = setCurrentRenderingInstance(i)\n * // ...render\n * setCurrentRenderingInstance(prev)\n * ```\n */\nfunction setCurrentRenderingInstance(instance) {\n const prev = currentRenderingInstance;\n currentRenderingInstance = instance;\n currentScopeId = (instance && instance.type.__scopeId) || null;\n return prev;\n}\n/**\n * Set scope id when creating hoisted vnodes.\n * @private compiler helper\n */\nfunction pushScopeId(id) {\n currentScopeId = id;\n}\n/**\n * Technically we no longer need this after 3.0.8 but we need to keep the same\n * API for backwards compat w/ code generated by compilers.\n * @private\n */\nfunction popScopeId() {\n currentScopeId = null;\n}\n/**\n * Only for backwards compat\n * @private\n */\nconst withScopeId = (_id) => withCtx;\n/**\n * Wrap a slot function to memoize current rendering instance\n * @private compiler helper\n */\nfunction withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot // false only\n) {\n if (!ctx)\n return fn;\n // already normalized\n if (fn._n) {\n return fn;\n }\n const renderFnWithContext = (...args) => {\n // If a user calls a compiled slot inside a template expression (#1745), it\n // can mess up block tracking, so by default we disable block tracking and\n // force bail out when invoking a compiled slot (indicated by the ._d flag).\n // This isn't necessary if rendering a compiled ``, so we flip the\n // ._d flag off when invoking the wrapped fn inside `renderSlot`.\n if (renderFnWithContext._d) {\n setBlockTracking(-1);\n }\n const prevInstance = setCurrentRenderingInstance(ctx);\n let res;\n try {\n res = fn(...args);\n }\n finally {\n setCurrentRenderingInstance(prevInstance);\n if (renderFnWithContext._d) {\n setBlockTracking(1);\n }\n }\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\n devtoolsComponentUpdated(ctx);\n }\n return res;\n };\n // mark normalized to avoid duplicated wrapping\n renderFnWithContext._n = true;\n // mark this as compiled by default\n // this is used in vnode.ts -> normalizeChildren() to set the slot\n // rendering flag.\n renderFnWithContext._c = true;\n // disable block tracking by default\n renderFnWithContext._d = true;\n return renderFnWithContext;\n}\n\n/**\n * dev only flag to track whether $attrs was used during render.\n * If $attrs was used during render then the warning for failed attrs\n * fallthrough can be suppressed.\n */\nlet accessedAttrs = false;\nfunction markAttrsAccessed() {\n accessedAttrs = true;\n}\nfunction renderComponentRoot(instance) {\n const { type: Component, vnode, proxy, withProxy, props, propsOptions: [propsOptions], slots, attrs, emit, render, renderCache, data, setupState, ctx, inheritAttrs } = instance;\n let result;\n let fallthroughAttrs;\n const prev = setCurrentRenderingInstance(instance);\n if ((process.env.NODE_ENV !== 'production')) {\n accessedAttrs = false;\n }\n try {\n if (vnode.shapeFlag & 4 /* ShapeFlags.STATEFUL_COMPONENT */) {\n // withProxy is a proxy with a different `has` trap only for\n // runtime-compiled render functions using `with` block.\n const proxyToUse = withProxy || proxy;\n result = normalizeVNode(render.call(proxyToUse, proxyToUse, renderCache, props, setupState, data, ctx));\n fallthroughAttrs = attrs;\n }\n else {\n // functional\n const render = Component;\n // in dev, mark attrs accessed if optional props (attrs === props)\n if ((process.env.NODE_ENV !== 'production') && attrs === props) {\n markAttrsAccessed();\n }\n result = normalizeVNode(render.length > 1\n ? render(props, (process.env.NODE_ENV !== 'production')\n ? {\n get attrs() {\n markAttrsAccessed();\n return attrs;\n },\n slots,\n emit\n }\n : { attrs, slots, emit })\n : render(props, null /* we know it doesn't need it */));\n fallthroughAttrs = Component.props\n ? attrs\n : getFunctionalFallthrough(attrs);\n }\n }\n catch (err) {\n blockStack.length = 0;\n handleError(err, instance, 1 /* ErrorCodes.RENDER_FUNCTION */);\n result = createVNode(Comment);\n }\n // attr merging\n // in dev mode, comments are preserved, and it's possible for a template\n // to have comments along side the root element which makes it a fragment\n let root = result;\n let setRoot = undefined;\n if ((process.env.NODE_ENV !== 'production') &&\n result.patchFlag > 0 &&\n result.patchFlag & 2048 /* PatchFlags.DEV_ROOT_FRAGMENT */) {\n [root, setRoot] = getChildRoot(result);\n }\n if (fallthroughAttrs && inheritAttrs !== false) {\n const keys = Object.keys(fallthroughAttrs);\n const { shapeFlag } = root;\n if (keys.length) {\n if (shapeFlag & (1 /* ShapeFlags.ELEMENT */ | 6 /* ShapeFlags.COMPONENT */)) {\n if (propsOptions && keys.some(isModelListener)) {\n // If a v-model listener (onUpdate:xxx) has a corresponding declared\n // prop, it indicates this component expects to handle v-model and\n // it should not fallthrough.\n // related: #1543, #1643, #1989\n fallthroughAttrs = filterModelListeners(fallthroughAttrs, propsOptions);\n }\n root = cloneVNode(root, fallthroughAttrs);\n }\n else if ((process.env.NODE_ENV !== 'production') && !accessedAttrs && root.type !== Comment) {\n const allAttrs = Object.keys(attrs);\n const eventAttrs = [];\n const extraAttrs = [];\n for (let i = 0, l = allAttrs.length; i < l; i++) {\n const key = allAttrs[i];\n if (isOn(key)) {\n // ignore v-model handlers when they fail to fallthrough\n if (!isModelListener(key)) {\n // remove `on`, lowercase first letter to reflect event casing\n // accurately\n eventAttrs.push(key[2].toLowerCase() + key.slice(3));\n }\n }\n else {\n extraAttrs.push(key);\n }\n }\n if (extraAttrs.length) {\n warn(`Extraneous non-props attributes (` +\n `${extraAttrs.join(', ')}) ` +\n `were passed to component but could not be automatically inherited ` +\n `because component renders fragment or text root nodes.`);\n }\n if (eventAttrs.length) {\n warn(`Extraneous non-emits event listeners (` +\n `${eventAttrs.join(', ')}) ` +\n `were passed to component but could not be automatically inherited ` +\n `because component renders fragment or text root nodes. ` +\n `If the listener is intended to be a component custom event listener only, ` +\n `declare it using the \"emits\" option.`);\n }\n }\n }\n }\n // inherit directives\n if (vnode.dirs) {\n if ((process.env.NODE_ENV !== 'production') && !isElementRoot(root)) {\n warn(`Runtime directive used on component with non-element root node. ` +\n `The directives will not function as intended.`);\n }\n // clone before mutating since the root may be a hoisted vnode\n root = cloneVNode(root);\n root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;\n }\n // inherit transition data\n if (vnode.transition) {\n if ((process.env.NODE_ENV !== 'production') && !isElementRoot(root)) {\n warn(`Component inside renders non-element root node ` +\n `that cannot be animated.`);\n }\n root.transition = vnode.transition;\n }\n if ((process.env.NODE_ENV !== 'production') && setRoot) {\n setRoot(root);\n }\n else {\n result = root;\n }\n setCurrentRenderingInstance(prev);\n return result;\n}\n/**\n * dev only\n * In dev mode, template root level comments are rendered, which turns the\n * template into a fragment root, but we need to locate the single element\n * root for attrs and scope id processing.\n */\nconst getChildRoot = (vnode) => {\n const rawChildren = vnode.children;\n const dynamicChildren = vnode.dynamicChildren;\n const childRoot = filterSingleRoot(rawChildren);\n if (!childRoot) {\n return [vnode, undefined];\n }\n const index = rawChildren.indexOf(childRoot);\n const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;\n const setRoot = (updatedRoot) => {\n rawChildren[index] = updatedRoot;\n if (dynamicChildren) {\n if (dynamicIndex > -1) {\n dynamicChildren[dynamicIndex] = updatedRoot;\n }\n else if (updatedRoot.patchFlag > 0) {\n vnode.dynamicChildren = [...dynamicChildren, updatedRoot];\n }\n }\n };\n return [normalizeVNode(childRoot), setRoot];\n};\nfunction filterSingleRoot(children) {\n let singleRoot;\n for (let i = 0; i < children.length; i++) {\n const child = children[i];\n if (isVNode(child)) {\n // ignore user comment\n if (child.type !== Comment || child.children === 'v-if') {\n if (singleRoot) {\n // has more than 1 non-comment child, return now\n return;\n }\n else {\n singleRoot = child;\n }\n }\n }\n else {\n return;\n }\n }\n return singleRoot;\n}\nconst getFunctionalFallthrough = (attrs) => {\n let res;\n for (const key in attrs) {\n if (key === 'class' || key === 'style' || isOn(key)) {\n (res || (res = {}))[key] = attrs[key];\n }\n }\n return res;\n};\nconst filterModelListeners = (attrs, props) => {\n const res = {};\n for (const key in attrs) {\n if (!isModelListener(key) || !(key.slice(9) in props)) {\n res[key] = attrs[key];\n }\n }\n return res;\n};\nconst isElementRoot = (vnode) => {\n return (vnode.shapeFlag & (6 /* ShapeFlags.COMPONENT */ | 1 /* ShapeFlags.ELEMENT */) ||\n vnode.type === Comment // potential v-if branch switch\n );\n};\nfunction shouldUpdateComponent(prevVNode, nextVNode, optimized) {\n const { props: prevProps, children: prevChildren, component } = prevVNode;\n const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;\n const emits = component.emitsOptions;\n // Parent component's render function was hot-updated. Since this may have\n // caused the child component's slots content to have changed, we need to\n // force the child to update as well.\n if ((process.env.NODE_ENV !== 'production') && (prevChildren || nextChildren) && isHmrUpdating) {\n return true;\n }\n // force child update for runtime directive or transition on component vnode.\n if (nextVNode.dirs || nextVNode.transition) {\n return true;\n }\n if (optimized && patchFlag >= 0) {\n if (patchFlag & 1024 /* PatchFlags.DYNAMIC_SLOTS */) {\n // slot content that references values that might have changed,\n // e.g. in a v-for\n return true;\n }\n if (patchFlag & 16 /* PatchFlags.FULL_PROPS */) {\n if (!prevProps) {\n return !!nextProps;\n }\n // presence of this flag indicates props are always non-null\n return hasPropsChanged(prevProps, nextProps, emits);\n }\n else if (patchFlag & 8 /* PatchFlags.PROPS */) {\n const dynamicProps = nextVNode.dynamicProps;\n for (let i = 0; i < dynamicProps.length; i++) {\n const key = dynamicProps[i];\n if (nextProps[key] !== prevProps[key] &&\n !isEmitListener(emits, key)) {\n return true;\n }\n }\n }\n }\n else {\n // this path is only taken by manually written render functions\n // so presence of any children leads to a forced update\n if (prevChildren || nextChildren) {\n if (!nextChildren || !nextChildren.$stable) {\n return true;\n }\n }\n if (prevProps === nextProps) {\n return false;\n }\n if (!prevProps) {\n return !!nextProps;\n }\n if (!nextProps) {\n return true;\n }\n return hasPropsChanged(prevProps, nextProps, emits);\n }\n return false;\n}\nfunction hasPropsChanged(prevProps, nextProps, emitsOptions) {\n const nextKeys = Object.keys(nextProps);\n if (nextKeys.length !== Object.keys(prevProps).length) {\n return true;\n }\n for (let i = 0; i < nextKeys.length; i++) {\n const key = nextKeys[i];\n if (nextProps[key] !== prevProps[key] &&\n !isEmitListener(emitsOptions, key)) {\n return true;\n }\n }\n return false;\n}\nfunction updateHOCHostEl({ vnode, parent }, el // HostNode\n) {\n while (parent && parent.subTree === vnode) {\n (vnode = parent.vnode).el = el;\n parent = parent.parent;\n }\n}\n\nconst isSuspense = (type) => type.__isSuspense;\n// Suspense exposes a component-like API, and is treated like a component\n// in the compiler, but internally it's a special built-in type that hooks\n// directly into the renderer.\nconst SuspenseImpl = {\n name: 'Suspense',\n // In order to make Suspense tree-shakable, we need to avoid importing it\n // directly in the renderer. The renderer checks for the __isSuspense flag\n // on a vnode's type and calls the `process` method, passing in renderer\n // internals.\n __isSuspense: true,\n process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, \n // platform-specific impl passed from renderer\n rendererInternals) {\n if (n1 == null) {\n mountSuspense(n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals);\n }\n else {\n patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, rendererInternals);\n }\n },\n hydrate: hydrateSuspense,\n create: createSuspenseBoundary,\n normalize: normalizeSuspenseChildren\n};\n// Force-casted public typing for h and TSX props inference\nconst Suspense = (SuspenseImpl\n );\nfunction triggerEvent(vnode, name) {\n const eventListener = vnode.props && vnode.props[name];\n if (isFunction(eventListener)) {\n eventListener();\n }\n}\nfunction mountSuspense(vnode, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals) {\n const { p: patch, o: { createElement } } = rendererInternals;\n const hiddenContainer = createElement('div');\n const suspense = (vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals));\n // start mounting the content subtree in an off-dom container\n patch(null, (suspense.pendingBranch = vnode.ssContent), hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds);\n // now check if we have encountered any async deps\n if (suspense.deps > 0) {\n // has async\n // invoke @fallback event\n triggerEvent(vnode, 'onPending');\n triggerEvent(vnode, 'onFallback');\n // mount the fallback tree\n patch(null, vnode.ssFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context\n isSVG, slotScopeIds);\n setActiveBranch(suspense, vnode.ssFallback);\n }\n else {\n // Suspense has no async deps. Just resolve.\n suspense.resolve();\n }\n}\nfunction patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, { p: patch, um: unmount, o: { createElement } }) {\n const suspense = (n2.suspense = n1.suspense);\n suspense.vnode = n2;\n n2.el = n1.el;\n const newBranch = n2.ssContent;\n const newFallback = n2.ssFallback;\n const { activeBranch, pendingBranch, isInFallback, isHydrating } = suspense;\n if (pendingBranch) {\n suspense.pendingBranch = newBranch;\n if (isSameVNodeType(newBranch, pendingBranch)) {\n // same root type but content may have changed.\n patch(pendingBranch, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);\n if (suspense.deps <= 0) {\n suspense.resolve();\n }\n else if (isInFallback) {\n patch(activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context\n isSVG, slotScopeIds, optimized);\n setActiveBranch(suspense, newFallback);\n }\n }\n else {\n // toggled before pending tree is resolved\n suspense.pendingId++;\n if (isHydrating) {\n // if toggled before hydration is finished, the current DOM tree is\n // no longer valid. set it as the active branch so it will be unmounted\n // when resolved\n suspense.isHydrating = false;\n suspense.activeBranch = pendingBranch;\n }\n else {\n unmount(pendingBranch, parentComponent, suspense);\n }\n // increment pending ID. this is used to invalidate async callbacks\n // reset suspense state\n suspense.deps = 0;\n // discard effects from pending branch\n suspense.effects.length = 0;\n // discard previous container\n suspense.hiddenContainer = createElement('div');\n if (isInFallback) {\n // already in fallback state\n patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);\n if (suspense.deps <= 0) {\n suspense.resolve();\n }\n else {\n patch(activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context\n isSVG, slotScopeIds, optimized);\n setActiveBranch(suspense, newFallback);\n }\n }\n else if (activeBranch && isSameVNodeType(newBranch, activeBranch)) {\n // toggled \"back\" to current active branch\n patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, isSVG, slotScopeIds, optimized);\n // force resolve\n suspense.resolve(true);\n }\n else {\n // switched to a 3rd branch\n patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);\n if (suspense.deps <= 0) {\n suspense.resolve();\n }\n }\n }\n }\n else {\n if (activeBranch && isSameVNodeType(newBranch, activeBranch)) {\n // root did not change, just normal patch\n patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, isSVG, slotScopeIds, optimized);\n setActiveBranch(suspense, newBranch);\n }\n else {\n // root node toggled\n // invoke @pending event\n triggerEvent(n2, 'onPending');\n // mount pending branch in off-dom container\n suspense.pendingBranch = newBranch;\n suspense.pendingId++;\n patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);\n if (suspense.deps <= 0) {\n // incoming branch has no async deps, resolve now.\n suspense.resolve();\n }\n else {\n const { timeout, pendingId } = suspense;\n if (timeout > 0) {\n setTimeout(() => {\n if (suspense.pendingId === pendingId) {\n suspense.fallback(newFallback);\n }\n }, timeout);\n }\n else if (timeout === 0) {\n suspense.fallback(newFallback);\n }\n }\n }\n }\n}\nlet hasWarned = false;\nfunction createSuspenseBoundary(vnode, parent, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals, isHydrating = false) {\n /* istanbul ignore if */\n if ((process.env.NODE_ENV !== 'production') && !false && !hasWarned) {\n hasWarned = true;\n // @ts-ignore `console.info` cannot be null error\n console[console.info ? 'info' : 'log'](` is an experimental feature and its API will likely change.`);\n }\n const { p: patch, m: move, um: unmount, n: next, o: { parentNode, remove } } = rendererInternals;\n const timeout = toNumber(vnode.props && vnode.props.timeout);\n const suspense = {\n vnode,\n parent,\n parentComponent,\n isSVG,\n container,\n hiddenContainer,\n anchor,\n deps: 0,\n pendingId: 0,\n timeout: typeof timeout === 'number' ? timeout : -1,\n activeBranch: null,\n pendingBranch: null,\n isInFallback: true,\n isHydrating,\n isUnmounted: false,\n effects: [],\n resolve(resume = false) {\n if ((process.env.NODE_ENV !== 'production')) {\n if (!resume && !suspense.pendingBranch) {\n throw new Error(`suspense.resolve() is called without a pending branch.`);\n }\n if (suspense.isUnmounted) {\n throw new Error(`suspense.resolve() is called on an already unmounted suspense boundary.`);\n }\n }\n const { vnode, activeBranch, pendingBranch, pendingId, effects, parentComponent, container } = suspense;\n if (suspense.isHydrating) {\n suspense.isHydrating = false;\n }\n else if (!resume) {\n const delayEnter = activeBranch &&\n pendingBranch.transition &&\n pendingBranch.transition.mode === 'out-in';\n if (delayEnter) {\n activeBranch.transition.afterLeave = () => {\n if (pendingId === suspense.pendingId) {\n move(pendingBranch, container, anchor, 0 /* MoveType.ENTER */);\n }\n };\n }\n // this is initial anchor on mount\n let { anchor } = suspense;\n // unmount current active tree\n if (activeBranch) {\n // if the fallback tree was mounted, it may have been moved\n // as part of a parent suspense. get the latest anchor for insertion\n anchor = next(activeBranch);\n unmount(activeBranch, parentComponent, suspense, true);\n }\n if (!delayEnter) {\n // move content from off-dom container to actual container\n move(pendingBranch, container, anchor, 0 /* MoveType.ENTER */);\n }\n }\n setActiveBranch(suspense, pendingBranch);\n suspense.pendingBranch = null;\n suspense.isInFallback = false;\n // flush buffered effects\n // check if there is a pending parent suspense\n let parent = suspense.parent;\n let hasUnresolvedAncestor = false;\n while (parent) {\n if (parent.pendingBranch) {\n // found a pending parent suspense, merge buffered post jobs\n // into that parent\n parent.effects.push(...effects);\n hasUnresolvedAncestor = true;\n break;\n }\n parent = parent.parent;\n }\n // no pending parent suspense, flush all jobs\n if (!hasUnresolvedAncestor) {\n queuePostFlushCb(effects);\n }\n suspense.effects = [];\n // invoke @resolve event\n triggerEvent(vnode, 'onResolve');\n },\n fallback(fallbackVNode) {\n if (!suspense.pendingBranch) {\n return;\n }\n const { vnode, activeBranch, parentComponent, container, isSVG } = suspense;\n // invoke @fallback event\n triggerEvent(vnode, 'onFallback');\n const anchor = next(activeBranch);\n const mountFallback = () => {\n if (!suspense.isInFallback) {\n return;\n }\n // mount the fallback tree\n patch(null, fallbackVNode, container, anchor, parentComponent, null, // fallback tree will not have suspense context\n isSVG, slotScopeIds, optimized);\n setActiveBranch(suspense, fallbackVNode);\n };\n const delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === 'out-in';\n if (delayEnter) {\n activeBranch.transition.afterLeave = mountFallback;\n }\n suspense.isInFallback = true;\n // unmount current active branch\n unmount(activeBranch, parentComponent, null, // no suspense so unmount hooks fire now\n true // shouldRemove\n );\n if (!delayEnter) {\n mountFallback();\n }\n },\n move(container, anchor, type) {\n suspense.activeBranch &&\n move(suspense.activeBranch, container, anchor, type);\n suspense.container = container;\n },\n next() {\n return suspense.activeBranch && next(suspense.activeBranch);\n },\n registerDep(instance, setupRenderEffect) {\n const isInPendingSuspense = !!suspense.pendingBranch;\n if (isInPendingSuspense) {\n suspense.deps++;\n }\n const hydratedEl = instance.vnode.el;\n instance\n .asyncDep.catch(err => {\n handleError(err, instance, 0 /* ErrorCodes.SETUP_FUNCTION */);\n })\n .then(asyncSetupResult => {\n // retry when the setup() promise resolves.\n // component may have been unmounted before resolve.\n if (instance.isUnmounted ||\n suspense.isUnmounted ||\n suspense.pendingId !== instance.suspenseId) {\n return;\n }\n // retry from this component\n instance.asyncResolved = true;\n const { vnode } = instance;\n if ((process.env.NODE_ENV !== 'production')) {\n pushWarningContext(vnode);\n }\n handleSetupResult(instance, asyncSetupResult, false);\n if (hydratedEl) {\n // vnode may have been replaced if an update happened before the\n // async dep is resolved.\n vnode.el = hydratedEl;\n }\n const placeholder = !hydratedEl && instance.subTree.el;\n setupRenderEffect(instance, vnode, \n // component may have been moved before resolve.\n // if this is not a hydration, instance.subTree will be the comment\n // placeholder.\n parentNode(hydratedEl || instance.subTree.el), \n // anchor will not be used if this is hydration, so only need to\n // consider the comment placeholder case.\n hydratedEl ? null : next(instance.subTree), suspense, isSVG, optimized);\n if (placeholder) {\n remove(placeholder);\n }\n updateHOCHostEl(instance, vnode.el);\n if ((process.env.NODE_ENV !== 'production')) {\n popWarningContext();\n }\n // only decrease deps count if suspense is not already resolved\n if (isInPendingSuspense && --suspense.deps === 0) {\n suspense.resolve();\n }\n });\n },\n unmount(parentSuspense, doRemove) {\n suspense.isUnmounted = true;\n if (suspense.activeBranch) {\n unmount(suspense.activeBranch, parentComponent, parentSuspense, doRemove);\n }\n if (suspense.pendingBranch) {\n unmount(suspense.pendingBranch, parentComponent, parentSuspense, doRemove);\n }\n }\n };\n return suspense;\n}\nfunction hydrateSuspense(node, vnode, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals, hydrateNode) {\n /* eslint-disable no-restricted-globals */\n const suspense = (vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, node.parentNode, document.createElement('div'), null, isSVG, slotScopeIds, optimized, rendererInternals, true /* hydrating */));\n // there are two possible scenarios for server-rendered suspense:\n // - success: ssr content should be fully resolved\n // - failure: ssr content should be the fallback branch.\n // however, on the client we don't really know if it has failed or not\n // attempt to hydrate the DOM assuming it has succeeded, but we still\n // need to construct a suspense boundary first\n const result = hydrateNode(node, (suspense.pendingBranch = vnode.ssContent), parentComponent, suspense, slotScopeIds, optimized);\n if (suspense.deps === 0) {\n suspense.resolve();\n }\n return result;\n /* eslint-enable no-restricted-globals */\n}\nfunction normalizeSuspenseChildren(vnode) {\n const { shapeFlag, children } = vnode;\n const isSlotChildren = shapeFlag & 32 /* ShapeFlags.SLOTS_CHILDREN */;\n vnode.ssContent = normalizeSuspenseSlot(isSlotChildren ? children.default : children);\n vnode.ssFallback = isSlotChildren\n ? normalizeSuspenseSlot(children.fallback)\n : createVNode(Comment);\n}\nfunction normalizeSuspenseSlot(s) {\n let block;\n if (isFunction(s)) {\n const trackBlock = isBlockTreeEnabled && s._c;\n if (trackBlock) {\n // disableTracking: false\n // allow block tracking for compiled slots\n // (see ./componentRenderContext.ts)\n s._d = false;\n openBlock();\n }\n s = s();\n if (trackBlock) {\n s._d = true;\n block = currentBlock;\n closeBlock();\n }\n }\n if (isArray(s)) {\n const singleChild = filterSingleRoot(s);\n if ((process.env.NODE_ENV !== 'production') && !singleChild) {\n warn(` slots expect a single root node.`);\n }\n s = singleChild;\n }\n s = normalizeVNode(s);\n if (block && !s.dynamicChildren) {\n s.dynamicChildren = block.filter(c => c !== s);\n }\n return s;\n}\nfunction queueEffectWithSuspense(fn, suspense) {\n if (suspense && suspense.pendingBranch) {\n if (isArray(fn)) {\n suspense.effects.push(...fn);\n }\n else {\n suspense.effects.push(fn);\n }\n }\n else {\n queuePostFlushCb(fn);\n }\n}\nfunction setActiveBranch(suspense, branch) {\n suspense.activeBranch = branch;\n const { vnode, parentComponent } = suspense;\n const el = (vnode.el = branch.el);\n // in case suspense is the root node of a component,\n // recursively update the HOC el\n if (parentComponent && parentComponent.subTree === vnode) {\n parentComponent.vnode.el = el;\n updateHOCHostEl(parentComponent, el);\n }\n}\n\nfunction provide(key, value) {\n if (!currentInstance) {\n if ((process.env.NODE_ENV !== 'production')) {\n warn(`provide() can only be used inside setup().`);\n }\n }\n else {\n let provides = currentInstance.provides;\n // by default an instance inherits its parent's provides object\n // but when it needs to provide values of its own, it creates its\n // own provides object using parent provides object as prototype.\n // this way in `inject` we can simply look up injections from direct\n // parent and let the prototype chain do the work.\n const parentProvides = currentInstance.parent && currentInstance.parent.provides;\n if (parentProvides === provides) {\n provides = currentInstance.provides = Object.create(parentProvides);\n }\n // TS doesn't allow symbol as index type\n provides[key] = value;\n }\n}\nfunction inject(key, defaultValue, treatDefaultAsFactory = false) {\n // fallback to `currentRenderingInstance` so that this can be called in\n // a functional component\n const instance = currentInstance || currentRenderingInstance;\n if (instance) {\n // #2400\n // to support `app.use` plugins,\n // fallback to appContext's `provides` if the instance is at root\n const provides = instance.parent == null\n ? instance.vnode.appContext && instance.vnode.appContext.provides\n : instance.parent.provides;\n if (provides && key in provides) {\n // TS doesn't allow symbol as index type\n return provides[key];\n }\n else if (arguments.length > 1) {\n return treatDefaultAsFactory && isFunction(defaultValue)\n ? defaultValue.call(instance.proxy)\n : defaultValue;\n }\n else if ((process.env.NODE_ENV !== 'production')) {\n warn(`injection \"${String(key)}\" not found.`);\n }\n }\n else if ((process.env.NODE_ENV !== 'production')) {\n warn(`inject() can only be used inside setup() or functional components.`);\n }\n}\n\n// Simple effect.\nfunction watchEffect(effect, options) {\n return doWatch(effect, null, options);\n}\nfunction watchPostEffect(effect, options) {\n return doWatch(effect, null, ((process.env.NODE_ENV !== 'production')\n ? Object.assign(Object.assign({}, options), { flush: 'post' }) : { flush: 'post' }));\n}\nfunction watchSyncEffect(effect, options) {\n return doWatch(effect, null, ((process.env.NODE_ENV !== 'production')\n ? Object.assign(Object.assign({}, options), { flush: 'sync' }) : { flush: 'sync' }));\n}\n// initial value for watchers to trigger on undefined initial values\nconst INITIAL_WATCHER_VALUE = {};\n// implementation\nfunction watch(source, cb, options) {\n if ((process.env.NODE_ENV !== 'production') && !isFunction(cb)) {\n warn(`\\`watch(fn, options?)\\` signature has been moved to a separate API. ` +\n `Use \\`watchEffect(fn, options?)\\` instead. \\`watch\\` now only ` +\n `supports \\`watch(source, cb, options?) signature.`);\n }\n return doWatch(source, cb, options);\n}\nfunction doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EMPTY_OBJ) {\n if ((process.env.NODE_ENV !== 'production') && !cb) {\n if (immediate !== undefined) {\n warn(`watch() \"immediate\" option is only respected when using the ` +\n `watch(source, callback, options?) signature.`);\n }\n if (deep !== undefined) {\n warn(`watch() \"deep\" option is only respected when using the ` +\n `watch(source, callback, options?) signature.`);\n }\n }\n const warnInvalidSource = (s) => {\n warn(`Invalid watch source: `, s, `A watch source can only be a getter/effect function, a ref, ` +\n `a reactive object, or an array of these types.`);\n };\n const instance = currentInstance;\n let getter;\n let forceTrigger = false;\n let isMultiSource = false;\n if (isRef(source)) {\n getter = () => source.value;\n forceTrigger = isShallow$1(source);\n }\n else if (isReactive(source)) {\n getter = () => source;\n deep = true;\n }\n else if (isArray(source)) {\n isMultiSource = true;\n forceTrigger = source.some(s => isReactive(s) || isShallow$1(s));\n getter = () => source.map(s => {\n if (isRef(s)) {\n return s.value;\n }\n else if (isReactive(s)) {\n return traverse(s);\n }\n else if (isFunction(s)) {\n return callWithErrorHandling(s, instance, 2 /* ErrorCodes.WATCH_GETTER */);\n }\n else {\n (process.env.NODE_ENV !== 'production') && warnInvalidSource(s);\n }\n });\n }\n else if (isFunction(source)) {\n if (cb) {\n // getter with cb\n getter = () => callWithErrorHandling(source, instance, 2 /* ErrorCodes.WATCH_GETTER */);\n }\n else {\n // no cb -> simple effect\n getter = () => {\n if (instance && instance.isUnmounted) {\n return;\n }\n if (cleanup) {\n cleanup();\n }\n return callWithAsyncErrorHandling(source, instance, 3 /* ErrorCodes.WATCH_CALLBACK */, [onCleanup]);\n };\n }\n }\n else {\n getter = NOOP;\n (process.env.NODE_ENV !== 'production') && warnInvalidSource(source);\n }\n if (cb && deep) {\n const baseGetter = getter;\n getter = () => traverse(baseGetter());\n }\n let cleanup;\n let onCleanup = (fn) => {\n cleanup = effect.onStop = () => {\n callWithErrorHandling(fn, instance, 4 /* ErrorCodes.WATCH_CLEANUP */);\n };\n };\n // in SSR there is no need to setup an actual effect, and it should be noop\n // unless it's eager\n if (isInSSRComponentSetup) {\n // we will also not call the invalidate callback (+ runner is not set up)\n onCleanup = NOOP;\n if (!cb) {\n getter();\n }\n else if (immediate) {\n callWithAsyncErrorHandling(cb, instance, 3 /* ErrorCodes.WATCH_CALLBACK */, [\n getter(),\n isMultiSource ? [] : undefined,\n onCleanup\n ]);\n }\n return NOOP;\n }\n let oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE;\n const job = () => {\n if (!effect.active) {\n return;\n }\n if (cb) {\n // watch(source, cb)\n const newValue = effect.run();\n if (deep ||\n forceTrigger ||\n (isMultiSource\n ? newValue.some((v, i) => hasChanged(v, oldValue[i]))\n : hasChanged(newValue, oldValue)) ||\n (false )) {\n // cleanup before running cb again\n if (cleanup) {\n cleanup();\n }\n callWithAsyncErrorHandling(cb, instance, 3 /* ErrorCodes.WATCH_CALLBACK */, [\n newValue,\n // pass undefined as the old value when it's changed for the first time\n oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue,\n onCleanup\n ]);\n oldValue = newValue;\n }\n }\n else {\n // watchEffect\n effect.run();\n }\n };\n // important: mark the job as a watcher callback so that scheduler knows\n // it is allowed to self-trigger (#1727)\n job.allowRecurse = !!cb;\n let scheduler;\n if (flush === 'sync') {\n scheduler = job; // the scheduler function gets called directly\n }\n else if (flush === 'post') {\n scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);\n }\n else {\n // default: 'pre'\n job.pre = true;\n if (instance)\n job.id = instance.uid;\n scheduler = () => queueJob(job);\n }\n const effect = new ReactiveEffect(getter, scheduler);\n if ((process.env.NODE_ENV !== 'production')) {\n effect.onTrack = onTrack;\n effect.onTrigger = onTrigger;\n }\n // initial run\n if (cb) {\n if (immediate) {\n job();\n }\n else {\n oldValue = effect.run();\n }\n }\n else if (flush === 'post') {\n queuePostRenderEffect(effect.run.bind(effect), instance && instance.suspense);\n }\n else {\n effect.run();\n }\n return () => {\n effect.stop();\n if (instance && instance.scope) {\n remove(instance.scope.effects, effect);\n }\n };\n}\n// this.$watch\nfunction instanceWatch(source, value, options) {\n const publicThis = this.proxy;\n const getter = isString(source)\n ? source.includes('.')\n ? createPathGetter(publicThis, source)\n : () => publicThis[source]\n : source.bind(publicThis, publicThis);\n let cb;\n if (isFunction(value)) {\n cb = value;\n }\n else {\n cb = value.handler;\n options = value;\n }\n const cur = currentInstance;\n setCurrentInstance(this);\n const res = doWatch(getter, cb.bind(publicThis), options);\n if (cur) {\n setCurrentInstance(cur);\n }\n else {\n unsetCurrentInstance();\n }\n return res;\n}\nfunction createPathGetter(ctx, path) {\n const segments = path.split('.');\n return () => {\n let cur = ctx;\n for (let i = 0; i < segments.length && cur; i++) {\n cur = cur[segments[i]];\n }\n return cur;\n };\n}\nfunction traverse(value, seen) {\n if (!isObject(value) || value[\"__v_skip\" /* ReactiveFlags.SKIP */]) {\n return value;\n }\n seen = seen || new Set();\n if (seen.has(value)) {\n return value;\n }\n seen.add(value);\n if (isRef(value)) {\n traverse(value.value, seen);\n }\n else if (isArray(value)) {\n for (let i = 0; i < value.length; i++) {\n traverse(value[i], seen);\n }\n }\n else if (isSet(value) || isMap(value)) {\n value.forEach((v) => {\n traverse(v, seen);\n });\n }\n else if (isPlainObject(value)) {\n for (const key in value) {\n traverse(value[key], seen);\n }\n }\n return value;\n}\n\nfunction useTransitionState() {\n const state = {\n isMounted: false,\n isLeaving: false,\n isUnmounting: false,\n leavingVNodes: new Map()\n };\n onMounted(() => {\n state.isMounted = true;\n });\n onBeforeUnmount(() => {\n state.isUnmounting = true;\n });\n return state;\n}\nconst TransitionHookValidator = [Function, Array];\nconst BaseTransitionImpl = {\n name: `BaseTransition`,\n props: {\n mode: String,\n appear: Boolean,\n persisted: Boolean,\n // enter\n onBeforeEnter: TransitionHookValidator,\n onEnter: TransitionHookValidator,\n onAfterEnter: TransitionHookValidator,\n onEnterCancelled: TransitionHookValidator,\n // leave\n onBeforeLeave: TransitionHookValidator,\n onLeave: TransitionHookValidator,\n onAfterLeave: TransitionHookValidator,\n onLeaveCancelled: TransitionHookValidator,\n // appear\n onBeforeAppear: TransitionHookValidator,\n onAppear: TransitionHookValidator,\n onAfterAppear: TransitionHookValidator,\n onAppearCancelled: TransitionHookValidator\n },\n setup(props, { slots }) {\n const instance = getCurrentInstance();\n const state = useTransitionState();\n let prevTransitionKey;\n return () => {\n const children = slots.default && getTransitionRawChildren(slots.default(), true);\n if (!children || !children.length) {\n return;\n }\n let child = children[0];\n if (children.length > 1) {\n let hasFound = false;\n // locate first non-comment child\n for (const c of children) {\n if (c.type !== Comment) {\n if ((process.env.NODE_ENV !== 'production') && hasFound) {\n // warn more than one non-comment child\n warn(' can only be used on a single element or component. ' +\n 'Use for lists.');\n break;\n }\n child = c;\n hasFound = true;\n if (!(process.env.NODE_ENV !== 'production'))\n break;\n }\n }\n }\n // there's no need to track reactivity for these props so use the raw\n // props for a bit better perf\n const rawProps = toRaw(props);\n const { mode } = rawProps;\n // check mode\n if ((process.env.NODE_ENV !== 'production') &&\n mode &&\n mode !== 'in-out' &&\n mode !== 'out-in' &&\n mode !== 'default') {\n warn(`invalid mode: ${mode}`);\n }\n if (state.isLeaving) {\n return emptyPlaceholder(child);\n }\n // in the case of , we need to\n // compare the type of the kept-alive children.\n const innerChild = getKeepAliveChild(child);\n if (!innerChild) {\n return emptyPlaceholder(child);\n }\n const enterHooks = resolveTransitionHooks(innerChild, rawProps, state, instance);\n setTransitionHooks(innerChild, enterHooks);\n const oldChild = instance.subTree;\n const oldInnerChild = oldChild && getKeepAliveChild(oldChild);\n let transitionKeyChanged = false;\n const { getTransitionKey } = innerChild.type;\n if (getTransitionKey) {\n const key = getTransitionKey();\n if (prevTransitionKey === undefined) {\n prevTransitionKey = key;\n }\n else if (key !== prevTransitionKey) {\n prevTransitionKey = key;\n transitionKeyChanged = true;\n }\n }\n // handle mode\n if (oldInnerChild &&\n oldInnerChild.type !== Comment &&\n (!isSameVNodeType(innerChild, oldInnerChild) || transitionKeyChanged)) {\n const leavingHooks = resolveTransitionHooks(oldInnerChild, rawProps, state, instance);\n // update old tree's hooks in case of dynamic transition\n setTransitionHooks(oldInnerChild, leavingHooks);\n // switching between different views\n if (mode === 'out-in') {\n state.isLeaving = true;\n // return placeholder node and queue update when leave finishes\n leavingHooks.afterLeave = () => {\n state.isLeaving = false;\n instance.update();\n };\n return emptyPlaceholder(child);\n }\n else if (mode === 'in-out' && innerChild.type !== Comment) {\n leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => {\n const leavingVNodesCache = getLeavingNodesForType(state, oldInnerChild);\n leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild;\n // early removal callback\n el._leaveCb = () => {\n earlyRemove();\n el._leaveCb = undefined;\n delete enterHooks.delayedLeave;\n };\n enterHooks.delayedLeave = delayedLeave;\n };\n }\n }\n return child;\n };\n }\n};\n// export the public type for h/tsx inference\n// also to avoid inline import() in generated d.ts files\nconst BaseTransition = BaseTransitionImpl;\nfunction getLeavingNodesForType(state, vnode) {\n const { leavingVNodes } = state;\n let leavingVNodesCache = leavingVNodes.get(vnode.type);\n if (!leavingVNodesCache) {\n leavingVNodesCache = Object.create(null);\n leavingVNodes.set(vnode.type, leavingVNodesCache);\n }\n return leavingVNodesCache;\n}\n// The transition hooks are attached to the vnode as vnode.transition\n// and will be called at appropriate timing in the renderer.\nfunction resolveTransitionHooks(vnode, props, state, instance) {\n const { appear, mode, persisted = false, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled, onBeforeAppear, onAppear, onAfterAppear, onAppearCancelled } = props;\n const key = String(vnode.key);\n const leavingVNodesCache = getLeavingNodesForType(state, vnode);\n const callHook = (hook, args) => {\n hook &&\n callWithAsyncErrorHandling(hook, instance, 9 /* ErrorCodes.TRANSITION_HOOK */, args);\n };\n const callAsyncHook = (hook, args) => {\n const done = args[1];\n callHook(hook, args);\n if (isArray(hook)) {\n if (hook.every(hook => hook.length <= 1))\n done();\n }\n else if (hook.length <= 1) {\n done();\n }\n };\n const hooks = {\n mode,\n persisted,\n beforeEnter(el) {\n let hook = onBeforeEnter;\n if (!state.isMounted) {\n if (appear) {\n hook = onBeforeAppear || onBeforeEnter;\n }\n else {\n return;\n }\n }\n // for same element (v-show)\n if (el._leaveCb) {\n el._leaveCb(true /* cancelled */);\n }\n // for toggled element with same key (v-if)\n const leavingVNode = leavingVNodesCache[key];\n if (leavingVNode &&\n isSameVNodeType(vnode, leavingVNode) &&\n leavingVNode.el._leaveCb) {\n // force early removal (not cancelled)\n leavingVNode.el._leaveCb();\n }\n callHook(hook, [el]);\n },\n enter(el) {\n let hook = onEnter;\n let afterHook = onAfterEnter;\n let cancelHook = onEnterCancelled;\n if (!state.isMounted) {\n if (appear) {\n hook = onAppear || onEnter;\n afterHook = onAfterAppear || onAfterEnter;\n cancelHook = onAppearCancelled || onEnterCancelled;\n }\n else {\n return;\n }\n }\n let called = false;\n const done = (el._enterCb = (cancelled) => {\n if (called)\n return;\n called = true;\n if (cancelled) {\n callHook(cancelHook, [el]);\n }\n else {\n callHook(afterHook, [el]);\n }\n if (hooks.delayedLeave) {\n hooks.delayedLeave();\n }\n el._enterCb = undefined;\n });\n if (hook) {\n callAsyncHook(hook, [el, done]);\n }\n else {\n done();\n }\n },\n leave(el, remove) {\n const key = String(vnode.key);\n if (el._enterCb) {\n el._enterCb(true /* cancelled */);\n }\n if (state.isUnmounting) {\n return remove();\n }\n callHook(onBeforeLeave, [el]);\n let called = false;\n const done = (el._leaveCb = (cancelled) => {\n if (called)\n return;\n called = true;\n remove();\n if (cancelled) {\n callHook(onLeaveCancelled, [el]);\n }\n else {\n callHook(onAfterLeave, [el]);\n }\n el._leaveCb = undefined;\n if (leavingVNodesCache[key] === vnode) {\n delete leavingVNodesCache[key];\n }\n });\n leavingVNodesCache[key] = vnode;\n if (onLeave) {\n callAsyncHook(onLeave, [el, done]);\n }\n else {\n done();\n }\n },\n clone(vnode) {\n return resolveTransitionHooks(vnode, props, state, instance);\n }\n };\n return hooks;\n}\n// the placeholder really only handles one special case: KeepAlive\n// in the case of a KeepAlive in a leave phase we need to return a KeepAlive\n// placeholder with empty content to avoid the KeepAlive instance from being\n// unmounted.\nfunction emptyPlaceholder(vnode) {\n if (isKeepAlive(vnode)) {\n vnode = cloneVNode(vnode);\n vnode.children = null;\n return vnode;\n }\n}\nfunction getKeepAliveChild(vnode) {\n return isKeepAlive(vnode)\n ? vnode.children\n ? vnode.children[0]\n : undefined\n : vnode;\n}\nfunction setTransitionHooks(vnode, hooks) {\n if (vnode.shapeFlag & 6 /* ShapeFlags.COMPONENT */ && vnode.component) {\n setTransitionHooks(vnode.component.subTree, hooks);\n }\n else if (vnode.shapeFlag & 128 /* ShapeFlags.SUSPENSE */) {\n vnode.ssContent.transition = hooks.clone(vnode.ssContent);\n vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);\n }\n else {\n vnode.transition = hooks;\n }\n}\nfunction getTransitionRawChildren(children, keepComment = false, parentKey) {\n let ret = [];\n let keyedFragmentCount = 0;\n for (let i = 0; i < children.length; i++) {\n let child = children[i];\n // #5360 inherit parent key in case of