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Qqf,gBAAkBtf,KAAKuf,iBAI/B,IACQvf,KAAK2f,KAAK6B,UACVvhB,EAAQuhB,QAAUpb,KAAKlG,MAAMF,KAAK2f,KAAK6B,SAI9C,CAFC,MAAOzW,GACL1D,GAAIoa,KAAK,qCACZ,CAED,OAAOxhB,CACV,G","sources":["webpack://@patternslib/patternslib/./node_modules/@patternslib/pat-content-mirror/src/pat-content-mirror.js","webpack://@patternslib/patternslib/./node_modules/@patternslib/pat-doclock/src/pat-doclock.js","webpack://@patternslib/patternslib/./node_modules/@patternslib/pat-shopping-cart/src/pat-shopping-cart.js","webpack://@patternslib/patternslib/./node_modules/@patternslib/pat-sortable-table/src/pat-sortable-table.js","webpack://@patternslib/patternslib/./node_modules/@patternslib/pat-tiptap/src/tiptap.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_setup.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/restArguments.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isObject.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isNull.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isUndefined.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isBoolean.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isElement.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_tagTester.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isString.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isNumber.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isDate.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isRegExp.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isError.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isSymbol.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isArrayBuffer.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isFunction.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_hasObjectTag.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_stringTagBug.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isDataView.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isArray.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_has.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isArguments.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isFinite.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isNaN.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/constant.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_createSizePropertyCheck.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_shallowProperty.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_getByteLength.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_isBufferLike.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isTypedArray.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_getLength.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_collectNonEnumProps.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/keys.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isEmpty.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isMatch.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/underscore.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_toBufferView.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isEqual.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/allKeys.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_methodFingerprint.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isMap.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isWeakMap.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isSet.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/isWeakSet.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/values.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/pairs.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/invert.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/functions.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_createAssigner.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/extend.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/extendOwn.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/defaults.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_baseCreate.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/create.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/clone.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/tap.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/toPath.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_toPath.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_deepGet.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/get.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/has.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/identity.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/matcher.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/property.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_optimizeCb.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_baseIteratee.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/iteratee.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_cb.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/mapObject.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/noop.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/propertyOf.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/times.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/random.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/now.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_createEscaper.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_escapeMap.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/escape.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/unescape.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_unescapeMap.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/templateSettings.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/template.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/result.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/uniqueId.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/chain.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_executeBound.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/partial.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/bind.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_isArrayLike.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_flatten.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/bindAll.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/memoize.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/delay.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/defer.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/throttle.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/debounce.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/wrap.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/negate.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/compose.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/after.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/before.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/once.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/findKey.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_createPredicateIndexFinder.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/findIndex.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/findLastIndex.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/sortedIndex.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_createIndexFinder.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/indexOf.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/lastIndexOf.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/find.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/findWhere.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/each.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/map.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_createReduce.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/reduce.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/reduceRight.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/filter.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/reject.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/every.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/some.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/contains.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/invoke.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/pluck.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/where.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/max.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/min.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/toArray.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/sample.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/shuffle.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/sortBy.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_group.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/groupBy.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/indexBy.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/countBy.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/partition.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/size.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_keyInObj.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/pick.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/omit.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/initial.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/first.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/rest.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/last.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/compact.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/flatten.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/difference.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/without.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/uniq.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/union.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/intersection.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/unzip.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/zip.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/object.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/range.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/chunk.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/_chainResult.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/mixin.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/underscore-array-methods.js","webpack://@patternslib/patternslib/./node_modules/underscore/modules/index-default.js","webpack://@patternslib/patternslib/./node_modules/@patternslib/pat-upload/src/pat-upload.js"],"sourcesContent":["import $ from \"jquery\";\nimport Base from \"@patternslib/patternslib/src/core/base\";\nimport Parser from \"@patternslib/patternslib/src/core/parser\";\n\nconst parser = new Parser(\"content-mirror\");\nparser.addArgument(\"target\", \"p.content-mirror .text\");\n\nexport default Base.extend({\n name: \"content-mirror\",\n trigger: \".pat-content-mirror\",\n\n init: function content_mirror_init($el) {\n this.options = parser.parse(this.el, this.options);\n const $mirror = $(this.options.target).parents(\"p.content-mirror\").first();\n $el.on(\n \"input propertychange\",\n $.proxy(this.updateMirror, this, this.options.target)\n );\n $el.parents(\"form\")\n .first()\n .on(\"reset\", function () {\n $el.val(\"\");\n $mirror.html($mirror.html());\n });\n $(\".placeholder\", this.options.target).text($el.attr(\"placeholder\") || \"\");\n },\n\n updateMirror: function updateMirror(target, ev) {\n const $el = $(ev.target);\n const the_mirror = $(target);\n the_mirror.text($el.val());\n if (!$el.val().length) {\n const placeholder = $el.attr(\"placeholder\");\n if (placeholder) {\n the_mirror.html('' + placeholder + \"\");\n }\n }\n },\n});\n","import Base from \"@patternslib/patternslib/src/core/base\";\nimport logging from \"@patternslib/patternslib/src/core/logging\";\nimport Parser from \"@patternslib/patternslib/src/core/parser\";\nimport registry from \"@patternslib/patternslib/src/core/registry\";\n\nconst logger = logging.getLogger(\"pat.doclock\");\n\nexport const parser = new Parser(\"doclock\");\nparser.add_argument(\"url\", \"\");\n\nexport default Base.extend({\n name: \"doclock\",\n trigger: \".pat-doclock\",\n _changed: false,\n\n // fields on which to check for changes\n changing_fields: \"input,select,textarea,fileupload,[contenteditable=true]\",\n\n init() {\n if (!this.el.tagName === \"FORM\") {\n return;\n }\n\n this.options = parser.parse(this.el, this.options);\n\n // unlock when changing page\n window.addEventListener(\"beforeunload\", this.unlock.bind(this), {\n capture: true,\n });\n\n // unlock when the form gets removed from the DOM\n const remove_observer = new MutationObserver((record) => {\n if (record.type === \"childList\") {\n for (const el of record.removedNodes) {\n if (el === this.el) {\n logger.debug(\"form removed\");\n this.unlock();\n }\n }\n }\n });\n remove_observer.observe(this.el.parentNode, { childList: true });\n\n // lock when elements are changed\n for (const field of this.el.querySelectorAll(this.changing_fields)) {\n field.addEventListener(\"input\", this.lock.bind(this));\n }\n },\n\n inject_response(data) {\n const data_el = document.createElement(\"div\");\n data_el.innerHTML = data;\n\n const status = data_el.querySelector(\"#global-statusmessage\");\n if (status) {\n for (const el of document.querySelectorAll(\"#global-statusmessage\")) {\n logger.debug(\"replacing statusmessage\");\n el.innerHTML = status.innerHTML;\n registry.scan(el);\n }\n }\n\n const content = data_el.querySelector(\"#content-core\");\n if (content) {\n for (const el of document.querySelectorAll(\n \".quick-functions #saving-badge, .quick-functions #save-button\"\n )) {\n logger.debug(\"replacing quick functions\");\n el.outerHTML = content.innerHTML;\n registry.scan(el);\n }\n }\n\n logger.debug(\"initialization done\");\n },\n\n async lock() {\n logger.debug(\"entering lock\");\n if (this._changed) {\n logger.debug(\"already locked\");\n return;\n }\n if (!this.options.url) {\n return;\n }\n logger.debug(\"locking\");\n this._changed = true;\n const response = await fetch(`${this.options.url}?lock=true`);\n const data = await response.text();\n this.inject_response(data);\n logger.debug(\"locked\");\n },\n\n async unlock() {\n logger.debug(\"entering unlock\");\n if (!this._changed) {\n logger.debug(\"already unlocked\");\n return;\n }\n if (!this.options.url) {\n return;\n }\n logger.debug(\"unlocking\");\n const response = await fetch(`${this.options.url}?unlock=true`);\n const data = await response.text();\n this.inject_response(data);\n this._changed = false;\n logger.debug(\"unlocked\");\n },\n});\n","import $ from \"jquery\";\nimport Base from \"@patternslib/patternslib/src/core/base\";\nimport Parser from \"@patternslib/patternslib/src/core/parser\";\nimport registry from \"@patternslib/patternslib/src/core/registry\";\nimport store from \"@patternslib/patternslib/src/core/store\";\n\nconst parser = new Parser(\"shopping-cart\");\nparser.add_argument(\"action\");\nparser.add_argument(\"id\");\nparser.add_argument(\"contents\");\nparser.add_argument(\"patterns\");\n\nexport default Base.extend({\n name: \"shopping-cart\",\n trigger: \".pat-shopping-cart\",\n storage: store.local(\"pat-shopping-cart\"),\n\n init: function ($el, opts) {\n var options = parser.parse($el, opts);\n if ($el.attr(\"type\") == \"checkbox\") {\n $el.bind(\n \"change\",\n $.proxy(function () {\n if (\"id\" in options) {\n if (this.isAddedToCart(options)) {\n this.removeFromCart($el, options);\n } else this.addToCart($el, options);\n }\n }, this)\n );\n } else {\n $el.bind(\n \"click\",\n $.proxy(function () {\n if (\"action\" in options) {\n if (options.action == \"empty\") {\n this.emptyCart();\n } else this.processCart($el, options);\n } else if (\"id\" in options) {\n if (this.isAddedToCart(options)) {\n this.removeFromCart($el, options);\n } else this.addToCart($el, options);\n }\n }, this)\n );\n }\n\n if (\"action\" in options) {\n if (this.cartIsEmpty()) {\n $el.addClass(\"is-empty\");\n $el.attr(\"disabled\", \"disabled\");\n } else {\n $el.addClass(\"has-items\");\n }\n }\n if (\"id\" in options && this.isAddedToCart(options)) {\n $el.addClass(\"in-cart\");\n if ($el.attr(\"type\") == \"checkbox\") {\n $el.attr(\"checked\", \"checked\");\n $el.parentsUntil(\"lable\").each(function (index, elem) {\n $(elem).removeClass(\"unchecked\").addClass(\"checked\");\n });\n }\n }\n if (\"contents\" in options && options.contents.toLowerCase() == \"keep\") {\n options.keep = true;\n } else options.keep = false;\n if (!(\"patterns\" in options)) options.patterns = \"\";\n },\n\n addToCart: function ($el, options) {\n var cart = this.storage.get(\"cart\");\n if (cart === null) {\n this.storage.set(\"cart\", [options.id]);\n $(\".pat-shopping-cart.is-empty\").each(function () {\n $(this).removeClass(\"is-empty\").addClass(\"has-items\");\n $(this).removeAttr(\"disabled\");\n });\n } else {\n cart.push(options.id);\n this.storage.set(\"cart\", cart);\n }\n $el.addClass(\"in-cart\");\n },\n\n removeFromCart: function ($el, options) {\n var cart = this.storage.get(\"cart\");\n $el.removeClass(\"in-cart\");\n if (cart.length === 1) {\n this.emptyCart();\n } else {\n var itemIndex = cart.indexOf(options.id);\n cart.splice(itemIndex, 1);\n this.storage.set(\"cart\", cart);\n }\n },\n\n isAddedToCart: function (options) {\n var cart = this.storage.get(\"cart\");\n if (cart === null) {\n return false;\n } else if (cart.indexOf(options.id) > -1) {\n return true;\n } else return false;\n },\n\n emptyCart: function () {\n $(\".pat-shopping-cart.has-items\").each(function () {\n $(this).removeClass(\"has-items\");\n $(this).addClass(\"is-empty\");\n });\n var cartItems = $(\".pat-shopping-cart.in-cart\");\n for (var i = 0; i < cartItems.length; i++) {\n var item = $(cartItems[i]);\n var opts = parser.parse(item, item.data());\n this.removeFromCart(item, opts);\n if (item.attr(\"type\") == \"checkbox\") {\n item.prop(\"checked\", false).trigger(\"change\");\n }\n }\n\n this.storage.remove(\"cart\");\n },\n\n cartIsEmpty: function () {\n return this.storage.get(\"cart\") === null;\n },\n\n processCart: function ($el, options) {\n var cart = this.storage.get(\"cart\");\n var patternsList = options.patterns.split(\" \");\n var patternsDataStr = \"\";\n\n if (!options.keep) this.emptyCart();\n\n for (var i = 0; i < patternsList.length; i++) {\n var patternDataId =\n \"pat-shopping-cart-\" + patternsList[i].replace(\"pat-\", \"\");\n var patternData = $el.data(patternDataId);\n patternsDataStr += \"data-\" + patternsList[i] + \"=\" + '\"' + patternData + '\"';\n }\n\n var form = $(\n '
\"\n );\n\n registry.scan(form);\n $(\"body\").append(form);\n form.submit();\n },\n});\n","import $ from \"jquery\";\nimport Base from \"@patternslib/patternslib/src/core/base\";\nimport Parser from \"@patternslib/patternslib/src/core/parser\";\nimport registry from \"@patternslib/patternslib/src/core/registry\";\n\nconst parser = new Parser(\"sortable-table\");\nparser.addArgument(\"paging-type\", \"numbers\", [\n \"numbers\",\n \"simple\",\n \"simple_numbers\",\n \"full\",\n \"full_numbers\",\n \"first_last_numbers\",\n]);\nparser.addArgument(\"page-length\", 20);\nparser.addArgument(\"page-length-menu\", [10, 20, 50, 100]);\nparser.addArgument(\"server-side\", false);\nparser.addArgument(\"ajax\", \"\");\nparser.addArgument(\"language-info\", \"Page _PAGE_ of _PAGES_\");\nparser.addArgument(\"language-info-empty\", \"Showing 0 to 0 of 0 entries\");\nparser.addArgument(\"language-info-filtered\", \"(filtered from _MAX_ total entries)\"); // prettier-ignore\nparser.addArgument(\"language-length-menu\", \"Show _MENU_ entries per page.\");\nparser.addArgument(\"language-zero-records\", \"No results found.\");\nparser.addArgument(\"language-search\", \"Search\");\nparser.addArgument(\"language-search-placeholder\", \"Search term\");\n\nexport default Base.extend({\n name: \"sortable-table\",\n trigger: \".pat-sortable-table\",\n\n async init() {\n this.options = parser.parse(this.$el, this.options);\n await import(\"datatables.net\");\n\n if (window.__patternslib_import_styles) {\n import(\"datatables.net-dt/css/jquery.dataTables.css\");\n }\n\n let pageLengthMenu = this.options.page[\"length-menu\"];\n if (typeof pageLengthMenu === \"string\") {\n pageLengthMenu = JSON.parse(pageLengthMenu);\n }\n\n $(this.el).DataTable({\n dom: '<\"data-table-top\"if>rt<\"data-table-bottom\"lp><\"data-table-clear\">',\n retrieve: true,\n pagingType: this.options.pagingType,\n pageLength: this.options.page.length,\n aLengthMenu: pageLengthMenu,\n serverSide: this.options.serverSide,\n ajax: this.options.ajax,\n language: {\n info: this.options.language.info,\n infoEmpty: this.options.language[\"info-empty\"],\n infoFiltered: this.options.language[\"info-filtered\"],\n lengthMenu: this.options.language[\"length-menu\"],\n zeroRecords: this.options.language[\"zero-records\"],\n search: this.options.language.search,\n searchPlaceholder: this.options.language[\"search-placeholder\"],\n },\n });\n $(this.el).on( 'draw.dt', function () {\n registry.scan(this); // initialize any patterns in the table\n });\n },\n});\n","import Base from \"@patternslib/patternslib/src/core/base\";\nimport Parser from \"@patternslib/patternslib/src/core/parser\";\nimport Registry from \"@patternslib/patternslib/src/core/registry\";\nimport dom from \"@patternslib/patternslib/src/core/dom\";\nimport events from \"@patternslib/patternslib/src/core/events\";\nimport logging from \"@patternslib/patternslib/src/core/logging\";\nimport utils from \"@patternslib/patternslib/src/core/utils\";\n\nexport const log = logging.getLogger(\"tiptap\");\n\nexport const parser = new Parser(\"tiptap\");\nparser.addArgument(\"collaboration-server\", null);\nparser.addArgument(\"collaboration-document\", null);\n\nparser.addArgument(\"toolbar-external\", null);\n\nparser.addArgument(\"image-panel\", null);\nparser.addArgument(\"embed-panel\", null);\nparser.addArgument(\"link-panel\", null);\nparser.addArgument(\"source-panel\", null);\n\nparser.addArgument(\"image-menu\", null);\nparser.addArgument(\"embed-menu\", null);\nparser.addArgument(\"link-menu\", null);\nparser.addArgument(\"mentions-menu\", null);\nparser.addArgument(\"tags-menu\", null);\n\n// TODO: Remove with next major version.\n// BBB - Compatibility aliases\nparser.addAlias(\"context-menu-link\", \"link-menu\");\nparser.addAlias(\"context-menu-mentions\", \"mentions-menu\");\nparser.addAlias(\"context-menu-tags\", \"tags-menu\");\n\nexport default Base.extend({\n name: \"tiptap\",\n trigger: \".pat-tiptap\",\n\n current_modal: null, // reference to currently open modal dialog\n\n async init() {\n // Constructor\n this.toolbar_el = null;\n\n const TipTap = (await import(\"@tiptap/core\")).Editor;\n const ExtDocument = (await import(\"@tiptap/extension-document\")).default;\n const ExtParagraph = (await import(\"@tiptap/extension-paragraph\")).default;\n const ExtText = (await import(\"@tiptap/extension-text\")).default;\n\n this.focus_handler = (await import(\"./focus-handler\")).focus_handler;\n\n this.options = parser.parse(this.el, this.options);\n\n // Hide element which will be replaced with tiptap instance\n this.el.style.display = \"none\";\n // Create container for tiptap\n const container = document.createElement(\"div\");\n container.setAttribute(\"class\", \"tiptap-container\");\n this.el.after(container);\n\n // Support for pat-autofocus and autofocus: Set focus depending on textarea's focus setting.\n const set_focus =\n this.el.classList.contains(\"pat-autofocus\") ||\n this.el.hasAttribute(\"autofocus\");\n\n const is_form_el = [\"TEXTAREA\", \"INPUT\"].includes(this.el.tagName);\n\n const getText = () => {\n // Textarea value getter\n return is_form_el ? this.el.value : this.el.innerHTML;\n };\n\n const setText = (text) => {\n // Textarea value setter\n if (is_form_el) {\n this.el.value = text;\n } else {\n this.el.innerHTML = text;\n }\n this.el.dispatchEvent(events.input_event());\n };\n\n const extra_extensions = [\n // Allow non-paragraph line-breaks by default.\n (await import(\"@tiptap/extension-hard-break\")).default.configure(),\n // Gapcursor for images, tables etc to be able to add content below/above.\n (await import(\"@tiptap/extension-gapcursor\")).Gapcursor.configure(),\n // Allways include undo/redo support via keyboard shortcuts.\n (await import(\"@tiptap/extension-history\")).History.configure(),\n ];\n const placeholder = this.el.getAttribute(\"placeholder\");\n if (placeholder) {\n extra_extensions.push(\n (await import(\"@tiptap/extension-placeholder\")).Placeholder.configure({\n placeholder: placeholder,\n })\n );\n }\n\n // Mentions extension\n if (this.options.mentionsMenu) {\n extra_extensions.push(\n (await import(\"./extensions/suggestion\"))\n .factory({\n app: this,\n name: \"mention\",\n char: \"@\",\n plural: \"mentions\",\n })\n .configure({\n url: this.options.mentionsMenu,\n })\n );\n }\n\n // Tags extension\n if (this.options.tagsMenu) {\n extra_extensions.push(\n (await import(\"./extensions/suggestion\"))\n .factory({\n app: this,\n name: \"tag\",\n char: \"#\",\n plural: \"tags\",\n })\n .configure({\n url: this.options.tagsMenu,\n })\n );\n }\n\n this.toolbar_el = this.options.toolbarExternal\n ? document.querySelector(this.options.toolbarExternal)\n : null;\n if (this.toolbar_el) {\n const focus_handler_targets = (await import(\"./focus-handler\")).TARGETS; // prettier-ignore\n focus_handler_targets.push(this.toolbar_el); // We register the focus handler on itself.\n this.focus_handler(this.toolbar_el);\n }\n\n const toolbar_ext = await import(\"./toolbar\");\n this.toolbar = toolbar_ext.init_pre({ app: this });\n this.editor = new TipTap({\n element: container,\n extensions: [\n ExtDocument,\n ExtText,\n ExtParagraph,\n ...(await toolbar_ext.init_extensions({ app: this })),\n ...extra_extensions,\n ],\n content: getText(),\n onUpdate() {\n // Note: ``this`` is the editor instance.\n setText(this.getHTML());\n Registry.scan(this.view.dom);\n },\n onFocus: async () => {\n // Note: ``this`` is the pattern instance.\n utils.timeout(1); // short timeout to ensure focus class is set even if tiptap_blur_handler is called concurrently.\n this.toolbar_el?.classList.add(\"tiptap-focus\");\n\n // Set the current focused pat-tiptap instance on the toolbar element.\n this.toolbar_el &&\n dom.set_data(this.toolbar_el, \"tiptap-instance\", this);\n },\n onBlur: () => {\n // Note: ``this`` is the pattern instance.\n this.toolbar_el?.classList.remove(\"tiptap-focus\");\n },\n autofocus: set_focus,\n });\n toolbar_ext.init_post({ app: this });\n\n document.addEventListener(\"pat-modal-ready\", (e) => {\n // store the reference to the modal dialog\n // We need the reference to registter some modal functionality or\n // patterns on it, where we would not easily get access to the\n // modal DOM structure otherwise.\n this.current_modal = e.target;\n });\n },\n});\n","// Current version.\nexport var VERSION = '1.13.4';\n\n// Establish the root object, `window` (`self`) in the browser, `global`\n// on the server, or `this` in some virtual machines. We use `self`\n// instead of `window` for `WebWorker` support.\nexport var root = (typeof self == 'object' && self.self === self && self) ||\n (typeof global == 'object' && global.global === global && global) ||\n Function('return this')() ||\n {};\n\n// Save bytes in the minified (but not gzipped) version:\nexport var ArrayProto = Array.prototype, ObjProto = Object.prototype;\nexport var SymbolProto = typeof Symbol !== 'undefined' ? Symbol.prototype : null;\n\n// Create quick reference variables for speed access to core prototypes.\nexport var push = ArrayProto.push,\n slice = ArrayProto.slice,\n toString = ObjProto.toString,\n hasOwnProperty = ObjProto.hasOwnProperty;\n\n// Modern feature detection.\nexport var supportsArrayBuffer = typeof ArrayBuffer !== 'undefined',\n supportsDataView = typeof DataView !== 'undefined';\n\n// All **ECMAScript 5+** native function implementations that we hope to use\n// are declared here.\nexport var nativeIsArray = Array.isArray,\n nativeKeys = Object.keys,\n nativeCreate = Object.create,\n nativeIsView = supportsArrayBuffer && ArrayBuffer.isView;\n\n// Create references to these builtin functions because we override them.\nexport var _isNaN = isNaN,\n _isFinite = isFinite;\n\n// Keys in IE < 9 that won't be iterated by `for key in ...` and thus missed.\nexport var hasEnumBug = !{toString: null}.propertyIsEnumerable('toString');\nexport var nonEnumerableProps = ['valueOf', 'isPrototypeOf', 'toString',\n 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];\n\n// The largest integer that can be represented exactly.\nexport var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;\n","// Some functions take a variable number of arguments, or a few expected\n// arguments at the beginning and then a variable number of values to operate\n// on. This helper accumulates all remaining arguments past the function’s\n// argument length (or an explicit `startIndex`), into an array that becomes\n// the last argument. Similar to ES6’s \"rest parameter\".\nexport default function restArguments(func, startIndex) {\n startIndex = startIndex == null ? func.length - 1 : +startIndex;\n return function() {\n var length = Math.max(arguments.length - startIndex, 0),\n rest = Array(length),\n index = 0;\n for (; index < length; index++) {\n rest[index] = arguments[index + startIndex];\n }\n switch (startIndex) {\n case 0: return func.call(this, rest);\n case 1: return func.call(this, arguments[0], rest);\n case 2: return func.call(this, arguments[0], arguments[1], rest);\n }\n var args = Array(startIndex + 1);\n for (index = 0; index < startIndex; index++) {\n args[index] = arguments[index];\n }\n args[startIndex] = rest;\n return func.apply(this, args);\n };\n}\n","// Is a given variable an object?\nexport default function isObject(obj) {\n var type = typeof obj;\n return type === 'function' || (type === 'object' && !!obj);\n}\n","// Is a given value equal to null?\nexport default function isNull(obj) {\n return obj === null;\n}\n","// Is a given variable undefined?\nexport default function isUndefined(obj) {\n return obj === void 0;\n}\n","import { toString } from './_setup.js';\n\n// Is a given value a boolean?\nexport default function isBoolean(obj) {\n return obj === true || obj === false || toString.call(obj) === '[object Boolean]';\n}\n","// Is a given value a DOM element?\nexport default function isElement(obj) {\n return !!(obj && obj.nodeType === 1);\n}\n","import { toString } from './_setup.js';\n\n// Internal function for creating a `toString`-based type tester.\nexport default function tagTester(name) {\n var tag = '[object ' + name + ']';\n return function(obj) {\n return toString.call(obj) === tag;\n };\n}\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('String');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Number');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Date');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('RegExp');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Error');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Symbol');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('ArrayBuffer');\n","import tagTester from './_tagTester.js';\nimport { root } from './_setup.js';\n\nvar isFunction = tagTester('Function');\n\n// Optimize `isFunction` if appropriate. Work around some `typeof` bugs in old\n// v8, IE 11 (#1621), Safari 8 (#1929), and PhantomJS (#2236).\nvar nodelist = root.document && root.document.childNodes;\nif (typeof /./ != 'function' && typeof Int8Array != 'object' && typeof nodelist != 'function') {\n isFunction = function(obj) {\n return typeof obj == 'function' || false;\n };\n}\n\nexport default isFunction;\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n","import { supportsDataView } from './_setup.js';\nimport hasObjectTag from './_hasObjectTag.js';\n\n// In IE 10 - Edge 13, `DataView` has string tag `'[object Object]'`.\n// In IE 11, the most common among them, this problem also applies to\n// `Map`, `WeakMap` and `Set`.\nexport var hasStringTagBug = (\n supportsDataView && hasObjectTag(new DataView(new ArrayBuffer(8)))\n ),\n isIE11 = (typeof Map !== 'undefined' && hasObjectTag(new Map));\n","import tagTester from './_tagTester.js';\nimport isFunction from './isFunction.js';\nimport isArrayBuffer from './isArrayBuffer.js';\nimport { hasStringTagBug } from './_stringTagBug.js';\n\nvar isDataView = tagTester('DataView');\n\n// In IE 10 - Edge 13, we need a different heuristic\n// to determine whether an object is a `DataView`.\nfunction ie10IsDataView(obj) {\n return obj != null && isFunction(obj.getInt8) && isArrayBuffer(obj.buffer);\n}\n\nexport default (hasStringTagBug ? ie10IsDataView : isDataView);\n","import { nativeIsArray } from './_setup.js';\nimport tagTester from './_tagTester.js';\n\n// Is a given value an array?\n// Delegates to ECMA5's native `Array.isArray`.\nexport default nativeIsArray || tagTester('Array');\n","import { hasOwnProperty } from './_setup.js';\n\n// Internal function to check whether `key` is an own property name of `obj`.\nexport default function has(obj, key) {\n return obj != null && hasOwnProperty.call(obj, key);\n}\n","import tagTester from './_tagTester.js';\nimport has from './_has.js';\n\nvar isArguments = tagTester('Arguments');\n\n// Define a fallback version of the method in browsers (ahem, IE < 9), where\n// there isn't any inspectable \"Arguments\" type.\n(function() {\n if (!isArguments(arguments)) {\n isArguments = function(obj) {\n return has(obj, 'callee');\n };\n }\n}());\n\nexport default isArguments;\n","import { _isFinite } from './_setup.js';\nimport isSymbol from './isSymbol.js';\n\n// Is a given object a finite number?\nexport default function isFinite(obj) {\n return !isSymbol(obj) && _isFinite(obj) && !isNaN(parseFloat(obj));\n}\n","import { _isNaN } from './_setup.js';\nimport isNumber from './isNumber.js';\n\n// Is the given value `NaN`?\nexport default function isNaN(obj) {\n return isNumber(obj) && _isNaN(obj);\n}\n","// Predicate-generating function. Often useful outside of Underscore.\nexport default function constant(value) {\n return function() {\n return value;\n };\n}\n","import { MAX_ARRAY_INDEX } from './_setup.js';\n\n// Common internal logic for `isArrayLike` and `isBufferLike`.\nexport default function createSizePropertyCheck(getSizeProperty) {\n return function(collection) {\n var sizeProperty = getSizeProperty(collection);\n return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= MAX_ARRAY_INDEX;\n }\n}\n","// Internal helper to generate a function to obtain property `key` from `obj`.\nexport default function shallowProperty(key) {\n return function(obj) {\n return obj == null ? void 0 : obj[key];\n };\n}\n","import shallowProperty from './_shallowProperty.js';\n\n// Internal helper to obtain the `byteLength` property of an object.\nexport default shallowProperty('byteLength');\n","import createSizePropertyCheck from './_createSizePropertyCheck.js';\nimport getByteLength from './_getByteLength.js';\n\n// Internal helper to determine whether we should spend extensive checks against\n// `ArrayBuffer` et al.\nexport default createSizePropertyCheck(getByteLength);\n","import { supportsArrayBuffer, nativeIsView, toString } from './_setup.js';\nimport isDataView from './isDataView.js';\nimport constant from './constant.js';\nimport isBufferLike from './_isBufferLike.js';\n\n// Is a given value a typed array?\nvar typedArrayPattern = /\\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\\]/;\nfunction isTypedArray(obj) {\n // `ArrayBuffer.isView` is the most future-proof, so use it when available.\n // Otherwise, fall back on the above regular expression.\n return nativeIsView ? (nativeIsView(obj) && !isDataView(obj)) :\n isBufferLike(obj) && typedArrayPattern.test(toString.call(obj));\n}\n\nexport default supportsArrayBuffer ? isTypedArray : constant(false);\n","import shallowProperty from './_shallowProperty.js';\n\n// Internal helper to obtain the `length` property of an object.\nexport default shallowProperty('length');\n","import { nonEnumerableProps, ObjProto } from './_setup.js';\nimport isFunction from './isFunction.js';\nimport has from './_has.js';\n\n// Internal helper to create a simple lookup structure.\n// `collectNonEnumProps` used to depend on `_.contains`, but this led to\n// circular imports. `emulatedSet` is a one-off solution that only works for\n// arrays of strings.\nfunction emulatedSet(keys) {\n var hash = {};\n for (var l = keys.length, i = 0; i < l; ++i) hash[keys[i]] = true;\n return {\n contains: function(key) { return hash[key] === true; },\n push: function(key) {\n hash[key] = true;\n return keys.push(key);\n }\n };\n}\n\n// Internal helper. Checks `keys` for the presence of keys in IE < 9 that won't\n// be iterated by `for key in ...` and thus missed. Extends `keys` in place if\n// needed.\nexport default function collectNonEnumProps(obj, keys) {\n keys = emulatedSet(keys);\n var nonEnumIdx = nonEnumerableProps.length;\n var constructor = obj.constructor;\n var proto = (isFunction(constructor) && constructor.prototype) || ObjProto;\n\n // Constructor is a special case.\n var prop = 'constructor';\n if (has(obj, prop) && !keys.contains(prop)) keys.push(prop);\n\n while (nonEnumIdx--) {\n prop = nonEnumerableProps[nonEnumIdx];\n if (prop in obj && obj[prop] !== proto[prop] && !keys.contains(prop)) {\n keys.push(prop);\n }\n }\n}\n","import isObject from './isObject.js';\nimport { nativeKeys, hasEnumBug } from './_setup.js';\nimport has from './_has.js';\nimport collectNonEnumProps from './_collectNonEnumProps.js';\n\n// Retrieve the names of an object's own properties.\n// Delegates to **ECMAScript 5**'s native `Object.keys`.\nexport default function keys(obj) {\n if (!isObject(obj)) return [];\n if (nativeKeys) return nativeKeys(obj);\n var keys = [];\n for (var key in obj) if (has(obj, key)) keys.push(key);\n // Ahem, IE < 9.\n if (hasEnumBug) collectNonEnumProps(obj, keys);\n return keys;\n}\n","import getLength from './_getLength.js';\nimport isArray from './isArray.js';\nimport isString from './isString.js';\nimport isArguments from './isArguments.js';\nimport keys from './keys.js';\n\n// Is a given array, string, or object empty?\n// An \"empty\" object has no enumerable own-properties.\nexport default function isEmpty(obj) {\n if (obj == null) return true;\n // Skip the more expensive `toString`-based type checks if `obj` has no\n // `.length`.\n var length = getLength(obj);\n if (typeof length == 'number' && (\n isArray(obj) || isString(obj) || isArguments(obj)\n )) return length === 0;\n return getLength(keys(obj)) === 0;\n}\n","import keys from './keys.js';\n\n// Returns whether an object has a given set of `key:value` pairs.\nexport default function isMatch(object, attrs) {\n var _keys = keys(attrs), length = _keys.length;\n if (object == null) return !length;\n var obj = Object(object);\n for (var i = 0; i < length; i++) {\n var key = _keys[i];\n if (attrs[key] !== obj[key] || !(key in obj)) return false;\n }\n return true;\n}\n","import { VERSION } from './_setup.js';\n\n// If Underscore is called as a function, it returns a wrapped object that can\n// be used OO-style. This wrapper holds altered versions of all functions added\n// through `_.mixin`. Wrapped objects may be chained.\nexport default function _(obj) {\n if (obj instanceof _) return obj;\n if (!(this instanceof _)) return new _(obj);\n this._wrapped = obj;\n}\n\n_.VERSION = VERSION;\n\n// Extracts the result from a wrapped and chained object.\n_.prototype.value = function() {\n return this._wrapped;\n};\n\n// Provide unwrapping proxies for some methods used in engine operations\n// such as arithmetic and JSON stringification.\n_.prototype.valueOf = _.prototype.toJSON = _.prototype.value;\n\n_.prototype.toString = function() {\n return String(this._wrapped);\n};\n","import getByteLength from './_getByteLength.js';\n\n// Internal function to wrap or shallow-copy an ArrayBuffer,\n// typed array or DataView to a new view, reusing the buffer.\nexport default function toBufferView(bufferSource) {\n return new Uint8Array(\n bufferSource.buffer || bufferSource,\n bufferSource.byteOffset || 0,\n getByteLength(bufferSource)\n );\n}\n","import _ from './underscore.js';\nimport { toString, SymbolProto } from './_setup.js';\nimport getByteLength from './_getByteLength.js';\nimport isTypedArray from './isTypedArray.js';\nimport isFunction from './isFunction.js';\nimport { hasStringTagBug } from './_stringTagBug.js';\nimport isDataView from './isDataView.js';\nimport keys from './keys.js';\nimport has from './_has.js';\nimport toBufferView from './_toBufferView.js';\n\n// We use this string twice, so give it a name for minification.\nvar tagDataView = '[object DataView]';\n\n// Internal recursive comparison function for `_.isEqual`.\nfunction eq(a, b, aStack, bStack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the [Harmony `egal` proposal](https://wiki.ecmascript.org/doku.php?id=harmony:egal).\n if (a === b) return a !== 0 || 1 / a === 1 / b;\n // `null` or `undefined` only equal to itself (strict comparison).\n if (a == null || b == null) return false;\n // `NaN`s are equivalent, but non-reflexive.\n if (a !== a) return b !== b;\n // Exhaust primitive checks\n var type = typeof a;\n if (type !== 'function' && type !== 'object' && typeof b != 'object') return false;\n return deepEq(a, b, aStack, bStack);\n}\n\n// Internal recursive comparison function for `_.isEqual`.\nfunction deepEq(a, b, aStack, bStack) {\n // Unwrap any wrapped objects.\n if (a instanceof _) a = a._wrapped;\n if (b instanceof _) b = b._wrapped;\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className !== toString.call(b)) return false;\n // Work around a bug in IE 10 - Edge 13.\n if (hasStringTagBug && className == '[object Object]' && isDataView(a)) {\n if (!isDataView(b)) return false;\n className = tagDataView;\n }\n switch (className) {\n // These types are compared by value.\n case '[object RegExp]':\n // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')\n case '[object String]':\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return '' + a === '' + b;\n case '[object Number]':\n // `NaN`s are equivalent, but non-reflexive.\n // Object(NaN) is equivalent to NaN.\n if (+a !== +a) return +b !== +b;\n // An `egal` comparison is performed for other numeric values.\n return +a === 0 ? 1 / +a === 1 / b : +a === +b;\n case '[object Date]':\n case '[object Boolean]':\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a === +b;\n case '[object Symbol]':\n return SymbolProto.valueOf.call(a) === SymbolProto.valueOf.call(b);\n case '[object ArrayBuffer]':\n case tagDataView:\n // Coerce to typed array so we can fall through.\n return deepEq(toBufferView(a), toBufferView(b), aStack, bStack);\n }\n\n var areArrays = className === '[object Array]';\n if (!areArrays && isTypedArray(a)) {\n var byteLength = getByteLength(a);\n if (byteLength !== getByteLength(b)) return false;\n if (a.buffer === b.buffer && a.byteOffset === b.byteOffset) return true;\n areArrays = true;\n }\n if (!areArrays) {\n if (typeof a != 'object' || typeof b != 'object') return false;\n\n // Objects with different constructors are not equivalent, but `Object`s or `Array`s\n // from different frames are.\n var aCtor = a.constructor, bCtor = b.constructor;\n if (aCtor !== bCtor && !(isFunction(aCtor) && aCtor instanceof aCtor &&\n isFunction(bCtor) && bCtor instanceof bCtor)\n && ('constructor' in a && 'constructor' in b)) {\n return false;\n }\n }\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n\n // Initializing stack of traversed objects.\n // It's done here since we only need them for objects and arrays comparison.\n aStack = aStack || [];\n bStack = bStack || [];\n var length = aStack.length;\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (aStack[length] === a) return bStack[length] === b;\n }\n\n // Add the first object to the stack of traversed objects.\n aStack.push(a);\n bStack.push(b);\n\n // Recursively compare objects and arrays.\n if (areArrays) {\n // Compare array lengths to determine if a deep comparison is necessary.\n length = a.length;\n if (length !== b.length) return false;\n // Deep compare the contents, ignoring non-numeric properties.\n while (length--) {\n if (!eq(a[length], b[length], aStack, bStack)) return false;\n }\n } else {\n // Deep compare objects.\n var _keys = keys(a), key;\n length = _keys.length;\n // Ensure that both objects contain the same number of properties before comparing deep equality.\n if (keys(b).length !== length) return false;\n while (length--) {\n // Deep compare each member\n key = _keys[length];\n if (!(has(b, key) && eq(a[key], b[key], aStack, bStack))) return false;\n }\n }\n // Remove the first object from the stack of traversed objects.\n aStack.pop();\n bStack.pop();\n return true;\n}\n\n// Perform a deep comparison to check if two objects are equal.\nexport default function isEqual(a, b) {\n return eq(a, b);\n}\n","import isObject from './isObject.js';\nimport { hasEnumBug } from './_setup.js';\nimport collectNonEnumProps from './_collectNonEnumProps.js';\n\n// Retrieve all the enumerable property names of an object.\nexport default function allKeys(obj) {\n if (!isObject(obj)) return [];\n var keys = [];\n for (var key in obj) keys.push(key);\n // Ahem, IE < 9.\n if (hasEnumBug) collectNonEnumProps(obj, keys);\n return keys;\n}\n","import getLength from './_getLength.js';\nimport isFunction from './isFunction.js';\nimport allKeys from './allKeys.js';\n\n// Since the regular `Object.prototype.toString` type tests don't work for\n// some types in IE 11, we use a fingerprinting heuristic instead, based\n// on the methods. It's not great, but it's the best we got.\n// The fingerprint method lists are defined below.\nexport function ie11fingerprint(methods) {\n var length = getLength(methods);\n return function(obj) {\n if (obj == null) return false;\n // `Map`, `WeakMap` and `Set` have no enumerable keys.\n var keys = allKeys(obj);\n if (getLength(keys)) return false;\n for (var i = 0; i < length; i++) {\n if (!isFunction(obj[methods[i]])) return false;\n }\n // If we are testing against `WeakMap`, we need to ensure that\n // `obj` doesn't have a `forEach` method in order to distinguish\n // it from a regular `Map`.\n return methods !== weakMapMethods || !isFunction(obj[forEachName]);\n };\n}\n\n// In the interest of compact minification, we write\n// each string in the fingerprints only once.\nvar forEachName = 'forEach',\n hasName = 'has',\n commonInit = ['clear', 'delete'],\n mapTail = ['get', hasName, 'set'];\n\n// `Map`, `WeakMap` and `Set` each have slightly different\n// combinations of the above sublists.\nexport var mapMethods = commonInit.concat(forEachName, mapTail),\n weakMapMethods = commonInit.concat(mapTail),\n setMethods = ['add'].concat(commonInit, forEachName, hasName);\n","import tagTester from './_tagTester.js';\nimport { isIE11 } from './_stringTagBug.js';\nimport { ie11fingerprint, mapMethods } from './_methodFingerprint.js';\n\nexport default isIE11 ? ie11fingerprint(mapMethods) : tagTester('Map');\n","import tagTester from './_tagTester.js';\nimport { isIE11 } from './_stringTagBug.js';\nimport { ie11fingerprint, weakMapMethods } from './_methodFingerprint.js';\n\nexport default isIE11 ? ie11fingerprint(weakMapMethods) : tagTester('WeakMap');\n","import tagTester from './_tagTester.js';\nimport { isIE11 } from './_stringTagBug.js';\nimport { ie11fingerprint, setMethods } from './_methodFingerprint.js';\n\nexport default isIE11 ? ie11fingerprint(setMethods) : tagTester('Set');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('WeakSet');\n","import keys from './keys.js';\n\n// Retrieve the values of an object's properties.\nexport default function values(obj) {\n var _keys = keys(obj);\n var length = _keys.length;\n var values = Array(length);\n for (var i = 0; i < length; i++) {\n values[i] = obj[_keys[i]];\n }\n return values;\n}\n","import keys from './keys.js';\n\n// Convert an object into a list of `[key, value]` pairs.\n// The opposite of `_.object` with one argument.\nexport default function pairs(obj) {\n var _keys = keys(obj);\n var length = _keys.length;\n var pairs = Array(length);\n for (var i = 0; i < length; i++) {\n pairs[i] = [_keys[i], obj[_keys[i]]];\n }\n return pairs;\n}\n","import keys from './keys.js';\n\n// Invert the keys and values of an object. The values must be serializable.\nexport default function invert(obj) {\n var result = {};\n var _keys = keys(obj);\n for (var i = 0, length = _keys.length; i < length; i++) {\n result[obj[_keys[i]]] = _keys[i];\n }\n return result;\n}\n","import isFunction from './isFunction.js';\n\n// Return a sorted list of the function names available on the object.\nexport default function functions(obj) {\n var names = [];\n for (var key in obj) {\n if (isFunction(obj[key])) names.push(key);\n }\n return names.sort();\n}\n","// An internal function for creating assigner functions.\nexport default function createAssigner(keysFunc, defaults) {\n return function(obj) {\n var length = arguments.length;\n if (defaults) obj = Object(obj);\n if (length < 2 || obj == null) return obj;\n for (var index = 1; index < length; index++) {\n var source = arguments[index],\n keys = keysFunc(source),\n l = keys.length;\n for (var i = 0; i < l; i++) {\n var key = keys[i];\n if (!defaults || obj[key] === void 0) obj[key] = source[key];\n }\n }\n return obj;\n };\n}\n","import createAssigner from './_createAssigner.js';\nimport allKeys from './allKeys.js';\n\n// Extend a given object with all the properties in passed-in object(s).\nexport default createAssigner(allKeys);\n","import createAssigner from './_createAssigner.js';\nimport keys from './keys.js';\n\n// Assigns a given object with all the own properties in the passed-in\n// object(s).\n// (https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)\nexport default createAssigner(keys);\n","import createAssigner from './_createAssigner.js';\nimport allKeys from './allKeys.js';\n\n// Fill in a given object with default properties.\nexport default createAssigner(allKeys, true);\n","import isObject from './isObject.js';\nimport { nativeCreate } from './_setup.js';\n\n// Create a naked function reference for surrogate-prototype-swapping.\nfunction ctor() {\n return function(){};\n}\n\n// An internal function for creating a new object that inherits from another.\nexport default function baseCreate(prototype) {\n if (!isObject(prototype)) return {};\n if (nativeCreate) return nativeCreate(prototype);\n var Ctor = ctor();\n Ctor.prototype = prototype;\n var result = new Ctor;\n Ctor.prototype = null;\n return result;\n}\n","import baseCreate from './_baseCreate.js';\nimport extendOwn from './extendOwn.js';\n\n// Creates an object that inherits from the given prototype object.\n// If additional properties are provided then they will be added to the\n// created object.\nexport default function create(prototype, props) {\n var result = baseCreate(prototype);\n if (props) extendOwn(result, props);\n return result;\n}\n","import isObject from './isObject.js';\nimport isArray from './isArray.js';\nimport extend from './extend.js';\n\n// Create a (shallow-cloned) duplicate of an object.\nexport default function clone(obj) {\n if (!isObject(obj)) return obj;\n return isArray(obj) ? obj.slice() : extend({}, obj);\n}\n","// Invokes `interceptor` with the `obj` and then returns `obj`.\n// The primary purpose of this method is to \"tap into\" a method chain, in\n// order to perform operations on intermediate results within the chain.\nexport default function tap(obj, interceptor) {\n interceptor(obj);\n return obj;\n}\n","import _ from './underscore.js';\nimport isArray from './isArray.js';\n\n// Normalize a (deep) property `path` to array.\n// Like `_.iteratee`, this function can be customized.\nexport default function toPath(path) {\n return isArray(path) ? path : [path];\n}\n_.toPath = toPath;\n","import _ from './underscore.js';\nimport './toPath.js';\n\n// Internal wrapper for `_.toPath` to enable minification.\n// Similar to `cb` for `_.iteratee`.\nexport default function toPath(path) {\n return _.toPath(path);\n}\n","// Internal function to obtain a nested property in `obj` along `path`.\nexport default function deepGet(obj, path) {\n var length = path.length;\n for (var i = 0; i < length; i++) {\n if (obj == null) return void 0;\n obj = obj[path[i]];\n }\n return length ? obj : void 0;\n}\n","import toPath from './_toPath.js';\nimport deepGet from './_deepGet.js';\nimport isUndefined from './isUndefined.js';\n\n// Get the value of the (deep) property on `path` from `object`.\n// If any property in `path` does not exist or if the value is\n// `undefined`, return `defaultValue` instead.\n// The `path` is normalized through `_.toPath`.\nexport default function get(object, path, defaultValue) {\n var value = deepGet(object, toPath(path));\n return isUndefined(value) ? defaultValue : value;\n}\n","import _has from './_has.js';\nimport toPath from './_toPath.js';\n\n// Shortcut function for checking if an object has a given property directly on\n// itself (in other words, not on a prototype). Unlike the internal `has`\n// function, this public version can also traverse nested properties.\nexport default function has(obj, path) {\n path = toPath(path);\n var length = path.length;\n for (var i = 0; i < length; i++) {\n var key = path[i];\n if (!_has(obj, key)) return false;\n obj = obj[key];\n }\n return !!length;\n}\n","// Keep the identity function around for default iteratees.\nexport default function identity(value) {\n return value;\n}\n","import extendOwn from './extendOwn.js';\nimport isMatch from './isMatch.js';\n\n// Returns a predicate for checking whether an object has a given set of\n// `key:value` pairs.\nexport default function matcher(attrs) {\n attrs = extendOwn({}, attrs);\n return function(obj) {\n return isMatch(obj, attrs);\n };\n}\n","import deepGet from './_deepGet.js';\nimport toPath from './_toPath.js';\n\n// Creates a function that, when passed an object, will traverse that object’s\n// properties down the given `path`, specified as an array of keys or indices.\nexport default function property(path) {\n path = toPath(path);\n return function(obj) {\n return deepGet(obj, path);\n };\n}\n","// Internal function that returns an efficient (for current engines) version\n// of the passed-in callback, to be repeatedly applied in other Underscore\n// functions.\nexport default function optimizeCb(func, context, argCount) {\n if (context === void 0) return func;\n switch (argCount == null ? 3 : argCount) {\n case 1: return function(value) {\n return func.call(context, value);\n };\n // The 2-argument case is omitted because we’re not using it.\n case 3: return function(value, index, collection) {\n return func.call(context, value, index, collection);\n };\n case 4: return function(accumulator, value, index, collection) {\n return func.call(context, accumulator, value, index, collection);\n };\n }\n return function() {\n return func.apply(context, arguments);\n };\n}\n","import identity from './identity.js';\nimport isFunction from './isFunction.js';\nimport isObject from './isObject.js';\nimport isArray from './isArray.js';\nimport matcher from './matcher.js';\nimport property from './property.js';\nimport optimizeCb from './_optimizeCb.js';\n\n// An internal function to generate callbacks that can be applied to each\n// element in a collection, returning the desired result — either `_.identity`,\n// an arbitrary callback, a property matcher, or a property accessor.\nexport default function baseIteratee(value, context, argCount) {\n if (value == null) return identity;\n if (isFunction(value)) return optimizeCb(value, context, argCount);\n if (isObject(value) && !isArray(value)) return matcher(value);\n return property(value);\n}\n","import _ from './underscore.js';\nimport baseIteratee from './_baseIteratee.js';\n\n// External wrapper for our callback generator. Users may customize\n// `_.iteratee` if they want additional predicate/iteratee shorthand styles.\n// This abstraction hides the internal-only `argCount` argument.\nexport default function iteratee(value, context) {\n return baseIteratee(value, context, Infinity);\n}\n_.iteratee = iteratee;\n","import _ from './underscore.js';\nimport baseIteratee from './_baseIteratee.js';\nimport iteratee from './iteratee.js';\n\n// The function we call internally to generate a callback. It invokes\n// `_.iteratee` if overridden, otherwise `baseIteratee`.\nexport default function cb(value, context, argCount) {\n if (_.iteratee !== iteratee) return _.iteratee(value, context);\n return baseIteratee(value, context, argCount);\n}\n","import cb from './_cb.js';\nimport keys from './keys.js';\n\n// Returns the results of applying the `iteratee` to each element of `obj`.\n// In contrast to `_.map` it returns an object.\nexport default function mapObject(obj, iteratee, context) {\n iteratee = cb(iteratee, context);\n var _keys = keys(obj),\n length = _keys.length,\n results = {};\n for (var index = 0; index < length; index++) {\n var currentKey = _keys[index];\n results[currentKey] = iteratee(obj[currentKey], currentKey, obj);\n }\n return results;\n}\n","// Predicate-generating function. Often useful outside of Underscore.\nexport default function noop(){}\n","import noop from './noop.js';\nimport get from './get.js';\n\n// Generates a function for a given object that returns a given property.\nexport default function propertyOf(obj) {\n if (obj == null) return noop;\n return function(path) {\n return get(obj, path);\n };\n}\n","import optimizeCb from './_optimizeCb.js';\n\n// Run a function **n** times.\nexport default function times(n, iteratee, context) {\n var accum = Array(Math.max(0, n));\n iteratee = optimizeCb(iteratee, context, 1);\n for (var i = 0; i < n; i++) accum[i] = iteratee(i);\n return accum;\n}\n","// Return a random integer between `min` and `max` (inclusive).\nexport default function random(min, max) {\n if (max == null) {\n max = min;\n min = 0;\n }\n return min + Math.floor(Math.random() * (max - min + 1));\n}\n","// A (possibly faster) way to get the current timestamp as an integer.\nexport default Date.now || function() {\n return new Date().getTime();\n};\n","import keys from './keys.js';\n\n// Internal helper to generate functions for escaping and unescaping strings\n// to/from HTML interpolation.\nexport default function createEscaper(map) {\n var escaper = function(match) {\n return map[match];\n };\n // Regexes for identifying a key that needs to be escaped.\n var source = '(?:' + keys(map).join('|') + ')';\n var testRegexp = RegExp(source);\n var replaceRegexp = RegExp(source, 'g');\n return function(string) {\n string = string == null ? '' : '' + string;\n return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;\n };\n}\n","// Internal list of HTML entities for escaping.\nexport default {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": ''',\n '`': '`'\n};\n","import createEscaper from './_createEscaper.js';\nimport escapeMap from './_escapeMap.js';\n\n// Function for escaping strings to HTML interpolation.\nexport default createEscaper(escapeMap);\n","import createEscaper from './_createEscaper.js';\nimport unescapeMap from './_unescapeMap.js';\n\n// Function for unescaping strings from HTML interpolation.\nexport default createEscaper(unescapeMap);\n","import invert from './invert.js';\nimport escapeMap from './_escapeMap.js';\n\n// Internal list of HTML entities for unescaping.\nexport default invert(escapeMap);\n","import _ from './underscore.js';\n\n// By default, Underscore uses ERB-style template delimiters. Change the\n// following template settings to use alternative delimiters.\nexport default _.templateSettings = {\n evaluate: /<%([\\s\\S]+?)%>/g,\n interpolate: /<%=([\\s\\S]+?)%>/g,\n escape: /<%-([\\s\\S]+?)%>/g\n};\n","import defaults from './defaults.js';\nimport _ from './underscore.js';\nimport './templateSettings.js';\n\n// When customizing `_.templateSettings`, if you don't want to define an\n// interpolation, evaluation or escaping regex, we need one that is\n// guaranteed not to match.\nvar noMatch = /(.)^/;\n\n// Certain characters need to be escaped so that they can be put into a\n// string literal.\nvar escapes = {\n \"'\": \"'\",\n '\\\\': '\\\\',\n '\\r': 'r',\n '\\n': 'n',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n};\n\nvar escapeRegExp = /\\\\|'|\\r|\\n|\\u2028|\\u2029/g;\n\nfunction escapeChar(match) {\n return '\\\\' + escapes[match];\n}\n\n// In order to prevent third-party code injection through\n// `_.templateSettings.variable`, we test it against the following regular\n// expression. It is intentionally a bit more liberal than just matching valid\n// identifiers, but still prevents possible loopholes through defaults or\n// destructuring assignment.\nvar bareIdentifier = /^\\s*(\\w|\\$)+\\s*$/;\n\n// JavaScript micro-templating, similar to John Resig's implementation.\n// Underscore templating handles arbitrary delimiters, preserves whitespace,\n// and correctly escapes quotes within interpolated code.\n// NB: `oldSettings` only exists for backwards compatibility.\nexport default function template(text, settings, oldSettings) {\n if (!settings && oldSettings) settings = oldSettings;\n settings = defaults({}, settings, _.templateSettings);\n\n // Combine delimiters into one regular expression via alternation.\n var matcher = RegExp([\n (settings.escape || noMatch).source,\n (settings.interpolate || noMatch).source,\n (settings.evaluate || noMatch).source\n ].join('|') + '|$', 'g');\n\n // Compile the template source, escaping string literals appropriately.\n var index = 0;\n var source = \"__p+='\";\n text.replace(matcher, function(match, escape, interpolate, evaluate, offset) {\n source += text.slice(index, offset).replace(escapeRegExp, escapeChar);\n index = offset + match.length;\n\n if (escape) {\n source += \"'+\\n((__t=(\" + escape + \"))==null?'':_.escape(__t))+\\n'\";\n } else if (interpolate) {\n source += \"'+\\n((__t=(\" + interpolate + \"))==null?'':__t)+\\n'\";\n } else if (evaluate) {\n source += \"';\\n\" + evaluate + \"\\n__p+='\";\n }\n\n // Adobe VMs need the match returned to produce the correct offset.\n return match;\n });\n source += \"';\\n\";\n\n var argument = settings.variable;\n if (argument) {\n // Insure against third-party code injection. (CVE-2021-23358)\n if (!bareIdentifier.test(argument)) throw new Error(\n 'variable is not a bare identifier: ' + argument\n );\n } else {\n // If a variable is not specified, place data values in local scope.\n source = 'with(obj||{}){\\n' + source + '}\\n';\n argument = 'obj';\n }\n\n source = \"var __t,__p='',__j=Array.prototype.join,\" +\n \"print=function(){__p+=__j.call(arguments,'');};\\n\" +\n source + 'return __p;\\n';\n\n var render;\n try {\n render = new Function(argument, '_', source);\n } catch (e) {\n e.source = source;\n throw e;\n }\n\n var template = function(data) {\n return render.call(this, data, _);\n };\n\n // Provide the compiled source as a convenience for precompilation.\n template.source = 'function(' + argument + '){\\n' + source + '}';\n\n return template;\n}\n","import isFunction from './isFunction.js';\nimport toPath from './_toPath.js';\n\n// Traverses the children of `obj` along `path`. If a child is a function, it\n// is invoked with its parent as context. Returns the value of the final\n// child, or `fallback` if any child is undefined.\nexport default function result(obj, path, fallback) {\n path = toPath(path);\n var length = path.length;\n if (!length) {\n return isFunction(fallback) ? fallback.call(obj) : fallback;\n }\n for (var i = 0; i < length; i++) {\n var prop = obj == null ? void 0 : obj[path[i]];\n if (prop === void 0) {\n prop = fallback;\n i = length; // Ensure we don't continue iterating.\n }\n obj = isFunction(prop) ? prop.call(obj) : prop;\n }\n return obj;\n}\n","// Generate a unique integer id (unique within the entire client session).\n// Useful for temporary DOM ids.\nvar idCounter = 0;\nexport default function uniqueId(prefix) {\n var id = ++idCounter + '';\n return prefix ? prefix + id : id;\n}\n","import _ from './underscore.js';\n\n// Start chaining a wrapped Underscore object.\nexport default function chain(obj) {\n var instance = _(obj);\n instance._chain = true;\n return instance;\n}\n","import baseCreate from './_baseCreate.js';\nimport isObject from './isObject.js';\n\n// Internal function to execute `sourceFunc` bound to `context` with optional\n// `args`. Determines whether to execute a function as a constructor or as a\n// normal function.\nexport default function executeBound(sourceFunc, boundFunc, context, callingContext, args) {\n if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args);\n var self = baseCreate(sourceFunc.prototype);\n var result = sourceFunc.apply(self, args);\n if (isObject(result)) return result;\n return self;\n}\n","import restArguments from './restArguments.js';\nimport executeBound from './_executeBound.js';\nimport _ from './underscore.js';\n\n// Partially apply a function by creating a version that has had some of its\n// arguments pre-filled, without changing its dynamic `this` context. `_` acts\n// as a placeholder by default, allowing any combination of arguments to be\n// pre-filled. Set `_.partial.placeholder` for a custom placeholder argument.\nvar partial = restArguments(function(func, boundArgs) {\n var placeholder = partial.placeholder;\n var bound = function() {\n var position = 0, length = boundArgs.length;\n var args = Array(length);\n for (var i = 0; i < length; i++) {\n args[i] = boundArgs[i] === placeholder ? arguments[position++] : boundArgs[i];\n }\n while (position < arguments.length) args.push(arguments[position++]);\n return executeBound(func, bound, this, this, args);\n };\n return bound;\n});\n\npartial.placeholder = _;\nexport default partial;\n","import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport executeBound from './_executeBound.js';\n\n// Create a function bound to a given object (assigning `this`, and arguments,\n// optionally).\nexport default restArguments(function(func, context, args) {\n if (!isFunction(func)) throw new TypeError('Bind must be called on a function');\n var bound = restArguments(function(callArgs) {\n return executeBound(func, bound, context, this, args.concat(callArgs));\n });\n return bound;\n});\n","import createSizePropertyCheck from './_createSizePropertyCheck.js';\nimport getLength from './_getLength.js';\n\n// Internal helper for collection methods to determine whether a collection\n// should be iterated as an array or as an object.\n// Related: https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength\n// Avoids a very nasty iOS 8 JIT bug on ARM-64. #2094\nexport default createSizePropertyCheck(getLength);\n","import getLength from './_getLength.js';\nimport isArrayLike from './_isArrayLike.js';\nimport isArray from './isArray.js';\nimport isArguments from './isArguments.js';\n\n// Internal implementation of a recursive `flatten` function.\nexport default function flatten(input, depth, strict, output) {\n output = output || [];\n if (!depth && depth !== 0) {\n depth = Infinity;\n } else if (depth <= 0) {\n return output.concat(input);\n }\n var idx = output.length;\n for (var i = 0, length = getLength(input); i < length; i++) {\n var value = input[i];\n if (isArrayLike(value) && (isArray(value) || isArguments(value))) {\n // Flatten current level of array or arguments object.\n if (depth > 1) {\n flatten(value, depth - 1, strict, output);\n idx = output.length;\n } else {\n var j = 0, len = value.length;\n while (j < len) output[idx++] = value[j++];\n }\n } else if (!strict) {\n output[idx++] = value;\n }\n }\n return output;\n}\n","import restArguments from './restArguments.js';\nimport flatten from './_flatten.js';\nimport bind from './bind.js';\n\n// Bind a number of an object's methods to that object. Remaining arguments\n// are the method names to be bound. Useful for ensuring that all callbacks\n// defined on an object belong to it.\nexport default restArguments(function(obj, keys) {\n keys = flatten(keys, false, false);\n var index = keys.length;\n if (index < 1) throw new Error('bindAll must be passed function names');\n while (index--) {\n var key = keys[index];\n obj[key] = bind(obj[key], obj);\n }\n return obj;\n});\n","import has from './_has.js';\n\n// Memoize an expensive function by storing its results.\nexport default function memoize(func, hasher) {\n var memoize = function(key) {\n var cache = memoize.cache;\n var address = '' + (hasher ? hasher.apply(this, arguments) : key);\n if (!has(cache, address)) cache[address] = func.apply(this, arguments);\n return cache[address];\n };\n memoize.cache = {};\n return memoize;\n}\n","import restArguments from './restArguments.js';\n\n// Delays a function for the given number of milliseconds, and then calls\n// it with the arguments supplied.\nexport default restArguments(function(func, wait, args) {\n return setTimeout(function() {\n return func.apply(null, args);\n }, wait);\n});\n","import partial from './partial.js';\nimport delay from './delay.js';\nimport _ from './underscore.js';\n\n// Defers a function, scheduling it to run after the current call stack has\n// cleared.\nexport default partial(delay, _, 1);\n","import now from './now.js';\n\n// Returns a function, that, when invoked, will only be triggered at most once\n// during a given window of time. Normally, the throttled function will run\n// as much as it can, without ever going more than once per `wait` duration;\n// but if you'd like to disable the execution on the leading edge, pass\n// `{leading: false}`. To disable execution on the trailing edge, ditto.\nexport default function throttle(func, wait, options) {\n var timeout, context, args, result;\n var previous = 0;\n if (!options) options = {};\n\n var later = function() {\n previous = options.leading === false ? 0 : now();\n timeout = null;\n result = func.apply(context, args);\n if (!timeout) context = args = null;\n };\n\n var throttled = function() {\n var _now = now();\n if (!previous && options.leading === false) previous = _now;\n var remaining = wait - (_now - previous);\n context = this;\n args = arguments;\n if (remaining <= 0 || remaining > wait) {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n previous = _now;\n result = func.apply(context, args);\n if (!timeout) context = args = null;\n } else if (!timeout && options.trailing !== false) {\n timeout = setTimeout(later, remaining);\n }\n return result;\n };\n\n throttled.cancel = function() {\n clearTimeout(timeout);\n previous = 0;\n timeout = context = args = null;\n };\n\n return throttled;\n}\n","import restArguments from './restArguments.js';\nimport now from './now.js';\n\n// When a sequence of calls of the returned function ends, the argument\n// function is triggered. The end of a sequence is defined by the `wait`\n// parameter. If `immediate` is passed, the argument function will be\n// triggered at the beginning of the sequence instead of at the end.\nexport default function debounce(func, wait, immediate) {\n var timeout, previous, args, result, context;\n\n var later = function() {\n var passed = now() - previous;\n if (wait > passed) {\n timeout = setTimeout(later, wait - passed);\n } else {\n timeout = null;\n if (!immediate) result = func.apply(context, args);\n // This check is needed because `func` can recursively invoke `debounced`.\n if (!timeout) args = context = null;\n }\n };\n\n var debounced = restArguments(function(_args) {\n context = this;\n args = _args;\n previous = now();\n if (!timeout) {\n timeout = setTimeout(later, wait);\n if (immediate) result = func.apply(context, args);\n }\n return result;\n });\n\n debounced.cancel = function() {\n clearTimeout(timeout);\n timeout = args = context = null;\n };\n\n return debounced;\n}\n","import partial from './partial.js';\n\n// Returns the first function passed as an argument to the second,\n// allowing you to adjust arguments, run code before and after, and\n// conditionally execute the original function.\nexport default function wrap(func, wrapper) {\n return partial(wrapper, func);\n}\n","// Returns a negated version of the passed-in predicate.\nexport default function negate(predicate) {\n return function() {\n return !predicate.apply(this, arguments);\n };\n}\n","// Returns a function that is the composition of a list of functions, each\n// consuming the return value of the function that follows.\nexport default function compose() {\n var args = arguments;\n var start = args.length - 1;\n return function() {\n var i = start;\n var result = args[start].apply(this, arguments);\n while (i--) result = args[i].call(this, result);\n return result;\n };\n}\n","// Returns a function that will only be executed on and after the Nth call.\nexport default function after(times, func) {\n return function() {\n if (--times < 1) {\n return func.apply(this, arguments);\n }\n };\n}\n","// Returns a function that will only be executed up to (but not including) the\n// Nth call.\nexport default function before(times, func) {\n var memo;\n return function() {\n if (--times > 0) {\n memo = func.apply(this, arguments);\n }\n if (times <= 1) func = null;\n return memo;\n };\n}\n","import partial from './partial.js';\nimport before from './before.js';\n\n// Returns a function that will be executed at most one time, no matter how\n// often you call it. Useful for lazy initialization.\nexport default partial(before, 2);\n","import cb from './_cb.js';\nimport keys from './keys.js';\n\n// Returns the first key on an object that passes a truth test.\nexport default function findKey(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = keys(obj), key;\n for (var i = 0, length = _keys.length; i < length; i++) {\n key = _keys[i];\n if (predicate(obj[key], key, obj)) return key;\n }\n}\n","import cb from './_cb.js';\nimport getLength from './_getLength.js';\n\n// Internal function to generate `_.findIndex` and `_.findLastIndex`.\nexport default function createPredicateIndexFinder(dir) {\n return function(array, predicate, context) {\n predicate = cb(predicate, context);\n var length = getLength(array);\n var index = dir > 0 ? 0 : length - 1;\n for (; index >= 0 && index < length; index += dir) {\n if (predicate(array[index], index, array)) return index;\n }\n return -1;\n };\n}\n","import createPredicateIndexFinder from './_createPredicateIndexFinder.js';\n\n// Returns the first index on an array-like that passes a truth test.\nexport default createPredicateIndexFinder(1);\n","import createPredicateIndexFinder from './_createPredicateIndexFinder.js';\n\n// Returns the last index on an array-like that passes a truth test.\nexport default createPredicateIndexFinder(-1);\n","import cb from './_cb.js';\nimport getLength from './_getLength.js';\n\n// Use a comparator function to figure out the smallest index at which\n// an object should be inserted so as to maintain order. Uses binary search.\nexport default function sortedIndex(array, obj, iteratee, context) {\n iteratee = cb(iteratee, context, 1);\n var value = iteratee(obj);\n var low = 0, high = getLength(array);\n while (low < high) {\n var mid = Math.floor((low + high) / 2);\n if (iteratee(array[mid]) < value) low = mid + 1; else high = mid;\n }\n return low;\n}\n","import getLength from './_getLength.js';\nimport { slice } from './_setup.js';\nimport isNaN from './isNaN.js';\n\n// Internal function to generate the `_.indexOf` and `_.lastIndexOf` functions.\nexport default function createIndexFinder(dir, predicateFind, sortedIndex) {\n return function(array, item, idx) {\n var i = 0, length = getLength(array);\n if (typeof idx == 'number') {\n if (dir > 0) {\n i = idx >= 0 ? idx : Math.max(idx + length, i);\n } else {\n length = idx >= 0 ? Math.min(idx + 1, length) : idx + length + 1;\n }\n } else if (sortedIndex && idx && length) {\n idx = sortedIndex(array, item);\n return array[idx] === item ? idx : -1;\n }\n if (item !== item) {\n idx = predicateFind(slice.call(array, i, length), isNaN);\n return idx >= 0 ? idx + i : -1;\n }\n for (idx = dir > 0 ? i : length - 1; idx >= 0 && idx < length; idx += dir) {\n if (array[idx] === item) return idx;\n }\n return -1;\n };\n}\n","import sortedIndex from './sortedIndex.js';\nimport findIndex from './findIndex.js';\nimport createIndexFinder from './_createIndexFinder.js';\n\n// Return the position of the first occurrence of an item in an array,\n// or -1 if the item is not included in the array.\n// If the array is large and already in sort order, pass `true`\n// for **isSorted** to use binary search.\nexport default createIndexFinder(1, findIndex, sortedIndex);\n","import findLastIndex from './findLastIndex.js';\nimport createIndexFinder from './_createIndexFinder.js';\n\n// Return the position of the last occurrence of an item in an array,\n// or -1 if the item is not included in the array.\nexport default createIndexFinder(-1, findLastIndex);\n","import isArrayLike from './_isArrayLike.js';\nimport findIndex from './findIndex.js';\nimport findKey from './findKey.js';\n\n// Return the first value which passes a truth test.\nexport default function find(obj, predicate, context) {\n var keyFinder = isArrayLike(obj) ? findIndex : findKey;\n var key = keyFinder(obj, predicate, context);\n if (key !== void 0 && key !== -1) return obj[key];\n}\n","import find from './find.js';\nimport matcher from './matcher.js';\n\n// Convenience version of a common use case of `_.find`: getting the first\n// object containing specific `key:value` pairs.\nexport default function findWhere(obj, attrs) {\n return find(obj, matcher(attrs));\n}\n","import optimizeCb from './_optimizeCb.js';\nimport isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// The cornerstone for collection functions, an `each`\n// implementation, aka `forEach`.\n// Handles raw objects in addition to array-likes. Treats all\n// sparse array-likes as if they were dense.\nexport default function each(obj, iteratee, context) {\n iteratee = optimizeCb(iteratee, context);\n var i, length;\n if (isArrayLike(obj)) {\n for (i = 0, length = obj.length; i < length; i++) {\n iteratee(obj[i], i, obj);\n }\n } else {\n var _keys = keys(obj);\n for (i = 0, length = _keys.length; i < length; i++) {\n iteratee(obj[_keys[i]], _keys[i], obj);\n }\n }\n return obj;\n}\n","import cb from './_cb.js';\nimport isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// Return the results of applying the iteratee to each element.\nexport default function map(obj, iteratee, context) {\n iteratee = cb(iteratee, context);\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length,\n results = Array(length);\n for (var index = 0; index < length; index++) {\n var currentKey = _keys ? _keys[index] : index;\n results[index] = iteratee(obj[currentKey], currentKey, obj);\n }\n return results;\n}\n","import isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\nimport optimizeCb from './_optimizeCb.js';\n\n// Internal helper to create a reducing function, iterating left or right.\nexport default function createReduce(dir) {\n // Wrap code that reassigns argument variables in a separate function than\n // the one that accesses `arguments.length` to avoid a perf hit. (#1991)\n var reducer = function(obj, iteratee, memo, initial) {\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length,\n index = dir > 0 ? 0 : length - 1;\n if (!initial) {\n memo = obj[_keys ? _keys[index] : index];\n index += dir;\n }\n for (; index >= 0 && index < length; index += dir) {\n var currentKey = _keys ? _keys[index] : index;\n memo = iteratee(memo, obj[currentKey], currentKey, obj);\n }\n return memo;\n };\n\n return function(obj, iteratee, memo, context) {\n var initial = arguments.length >= 3;\n return reducer(obj, optimizeCb(iteratee, context, 4), memo, initial);\n };\n}\n","import createReduce from './_createReduce.js';\n\n// **Reduce** builds up a single result from a list of values, aka `inject`,\n// or `foldl`.\nexport default createReduce(1);\n","import createReduce from './_createReduce.js';\n\n// The right-associative version of reduce, also known as `foldr`.\nexport default createReduce(-1);\n","import cb from './_cb.js';\nimport each from './each.js';\n\n// Return all the elements that pass a truth test.\nexport default function filter(obj, predicate, context) {\n var results = [];\n predicate = cb(predicate, context);\n each(obj, function(value, index, list) {\n if (predicate(value, index, list)) results.push(value);\n });\n return results;\n}\n","import filter from './filter.js';\nimport negate from './negate.js';\nimport cb from './_cb.js';\n\n// Return all the elements for which a truth test fails.\nexport default function reject(obj, predicate, context) {\n return filter(obj, negate(cb(predicate)), context);\n}\n","import cb from './_cb.js';\nimport isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// Determine whether all of the elements pass a truth test.\nexport default function every(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length;\n for (var index = 0; index < length; index++) {\n var currentKey = _keys ? _keys[index] : index;\n if (!predicate(obj[currentKey], currentKey, obj)) return false;\n }\n return true;\n}\n","import cb from './_cb.js';\nimport isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// Determine if at least one element in the object passes a truth test.\nexport default function some(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length;\n for (var index = 0; index < length; index++) {\n var currentKey = _keys ? _keys[index] : index;\n if (predicate(obj[currentKey], currentKey, obj)) return true;\n }\n return false;\n}\n","import isArrayLike from './_isArrayLike.js';\nimport values from './values.js';\nimport indexOf from './indexOf.js';\n\n// Determine if the array or object contains a given item (using `===`).\nexport default function contains(obj, item, fromIndex, guard) {\n if (!isArrayLike(obj)) obj = values(obj);\n if (typeof fromIndex != 'number' || guard) fromIndex = 0;\n return indexOf(obj, item, fromIndex) >= 0;\n}\n","import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport map from './map.js';\nimport deepGet from './_deepGet.js';\nimport toPath from './_toPath.js';\n\n// Invoke a method (with arguments) on every item in a collection.\nexport default restArguments(function(obj, path, args) {\n var contextPath, func;\n if (isFunction(path)) {\n func = path;\n } else {\n path = toPath(path);\n contextPath = path.slice(0, -1);\n path = path[path.length - 1];\n }\n return map(obj, function(context) {\n var method = func;\n if (!method) {\n if (contextPath && contextPath.length) {\n context = deepGet(context, contextPath);\n }\n if (context == null) return void 0;\n method = context[path];\n }\n return method == null ? method : method.apply(context, args);\n });\n});\n","import map from './map.js';\nimport property from './property.js';\n\n// Convenience version of a common use case of `_.map`: fetching a property.\nexport default function pluck(obj, key) {\n return map(obj, property(key));\n}\n","import filter from './filter.js';\nimport matcher from './matcher.js';\n\n// Convenience version of a common use case of `_.filter`: selecting only\n// objects containing specific `key:value` pairs.\nexport default function where(obj, attrs) {\n return filter(obj, matcher(attrs));\n}\n","import isArrayLike from './_isArrayLike.js';\nimport values from './values.js';\nimport cb from './_cb.js';\nimport each from './each.js';\n\n// Return the maximum element (or element-based computation).\nexport default function max(obj, iteratee, context) {\n var result = -Infinity, lastComputed = -Infinity,\n value, computed;\n if (iteratee == null || (typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null)) {\n obj = isArrayLike(obj) ? obj : values(obj);\n for (var i = 0, length = obj.length; i < length; i++) {\n value = obj[i];\n if (value != null && value > result) {\n result = value;\n }\n }\n } else {\n iteratee = cb(iteratee, context);\n each(obj, function(v, index, list) {\n computed = iteratee(v, index, list);\n if (computed > lastComputed || (computed === -Infinity && result === -Infinity)) {\n result = v;\n lastComputed = computed;\n }\n });\n }\n return result;\n}\n","import isArrayLike from './_isArrayLike.js';\nimport values from './values.js';\nimport cb from './_cb.js';\nimport each from './each.js';\n\n// Return the minimum element (or element-based computation).\nexport default function min(obj, iteratee, context) {\n var result = Infinity, lastComputed = Infinity,\n value, computed;\n if (iteratee == null || (typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null)) {\n obj = isArrayLike(obj) ? obj : values(obj);\n for (var i = 0, length = obj.length; i < length; i++) {\n value = obj[i];\n if (value != null && value < result) {\n result = value;\n }\n }\n } else {\n iteratee = cb(iteratee, context);\n each(obj, function(v, index, list) {\n computed = iteratee(v, index, list);\n if (computed < lastComputed || (computed === Infinity && result === Infinity)) {\n result = v;\n lastComputed = computed;\n }\n });\n }\n return result;\n}\n","import isArray from './isArray.js';\nimport { slice } from './_setup.js';\nimport isString from './isString.js';\nimport isArrayLike from './_isArrayLike.js';\nimport map from './map.js';\nimport identity from './identity.js';\nimport values from './values.js';\n\n// Safely create a real, live array from anything iterable.\nvar reStrSymbol = /[^\\ud800-\\udfff]|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff]/g;\nexport default function toArray(obj) {\n if (!obj) return [];\n if (isArray(obj)) return slice.call(obj);\n if (isString(obj)) {\n // Keep surrogate pair characters together.\n return obj.match(reStrSymbol);\n }\n if (isArrayLike(obj)) return map(obj, identity);\n return values(obj);\n}\n","import isArrayLike from './_isArrayLike.js';\nimport values from './values.js';\nimport getLength from './_getLength.js';\nimport random from './random.js';\nimport toArray from './toArray.js';\n\n// Sample **n** random values from a collection using the modern version of the\n// [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher–Yates_shuffle).\n// If **n** is not specified, returns a single random element.\n// The internal `guard` argument allows it to work with `_.map`.\nexport default function sample(obj, n, guard) {\n if (n == null || guard) {\n if (!isArrayLike(obj)) obj = values(obj);\n return obj[random(obj.length - 1)];\n }\n var sample = toArray(obj);\n var length = getLength(sample);\n n = Math.max(Math.min(n, length), 0);\n var last = length - 1;\n for (var index = 0; index < n; index++) {\n var rand = random(index, last);\n var temp = sample[index];\n sample[index] = sample[rand];\n sample[rand] = temp;\n }\n return sample.slice(0, n);\n}\n","import sample from './sample.js';\n\n// Shuffle a collection.\nexport default function shuffle(obj) {\n return sample(obj, Infinity);\n}\n","import cb from './_cb.js';\nimport pluck from './pluck.js';\nimport map from './map.js';\n\n// Sort the object's values by a criterion produced by an iteratee.\nexport default function sortBy(obj, iteratee, context) {\n var index = 0;\n iteratee = cb(iteratee, context);\n return pluck(map(obj, function(value, key, list) {\n return {\n value: value,\n index: index++,\n criteria: iteratee(value, key, list)\n };\n }).sort(function(left, right) {\n var a = left.criteria;\n var b = right.criteria;\n if (a !== b) {\n if (a > b || a === void 0) return 1;\n if (a < b || b === void 0) return -1;\n }\n return left.index - right.index;\n }), 'value');\n}\n","import cb from './_cb.js';\nimport each from './each.js';\n\n// An internal function used for aggregate \"group by\" operations.\nexport default function group(behavior, partition) {\n return function(obj, iteratee, context) {\n var result = partition ? [[], []] : {};\n iteratee = cb(iteratee, context);\n each(obj, function(value, index) {\n var key = iteratee(value, index, obj);\n behavior(result, value, key);\n });\n return result;\n };\n}\n","import group from './_group.js';\nimport has from './_has.js';\n\n// Groups the object's values by a criterion. Pass either a string attribute\n// to group by, or a function that returns the criterion.\nexport default group(function(result, value, key) {\n if (has(result, key)) result[key].push(value); else result[key] = [value];\n});\n","import group from './_group.js';\n\n// Indexes the object's values by a criterion, similar to `_.groupBy`, but for\n// when you know that your index values will be unique.\nexport default group(function(result, value, key) {\n result[key] = value;\n});\n","import group from './_group.js';\nimport has from './_has.js';\n\n// Counts instances of an object that group by a certain criterion. Pass\n// either a string attribute to count by, or a function that returns the\n// criterion.\nexport default group(function(result, value, key) {\n if (has(result, key)) result[key]++; else result[key] = 1;\n});\n","import group from './_group.js';\n\n// Split a collection into two arrays: one whose elements all pass the given\n// truth test, and one whose elements all do not pass the truth test.\nexport default group(function(result, value, pass) {\n result[pass ? 0 : 1].push(value);\n}, true);\n","import isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// Return the number of elements in a collection.\nexport default function size(obj) {\n if (obj == null) return 0;\n return isArrayLike(obj) ? obj.length : keys(obj).length;\n}\n","// Internal `_.pick` helper function to determine whether `key` is an enumerable\n// property name of `obj`.\nexport default function keyInObj(value, key, obj) {\n return key in obj;\n}\n","import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport optimizeCb from './_optimizeCb.js';\nimport allKeys from './allKeys.js';\nimport keyInObj from './_keyInObj.js';\nimport flatten from './_flatten.js';\n\n// Return a copy of the object only containing the allowed properties.\nexport default restArguments(function(obj, keys) {\n var result = {}, iteratee = keys[0];\n if (obj == null) return result;\n if (isFunction(iteratee)) {\n if (keys.length > 1) iteratee = optimizeCb(iteratee, keys[1]);\n keys = allKeys(obj);\n } else {\n iteratee = keyInObj;\n keys = flatten(keys, false, false);\n obj = Object(obj);\n }\n for (var i = 0, length = keys.length; i < length; i++) {\n var key = keys[i];\n var value = obj[key];\n if (iteratee(value, key, obj)) result[key] = value;\n }\n return result;\n});\n","import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport negate from './negate.js';\nimport map from './map.js';\nimport flatten from './_flatten.js';\nimport contains from './contains.js';\nimport pick from './pick.js';\n\n// Return a copy of the object without the disallowed properties.\nexport default restArguments(function(obj, keys) {\n var iteratee = keys[0], context;\n if (isFunction(iteratee)) {\n iteratee = negate(iteratee);\n if (keys.length > 1) context = keys[1];\n } else {\n keys = map(flatten(keys, false, false), String);\n iteratee = function(value, key) {\n return !contains(keys, key);\n };\n }\n return pick(obj, iteratee, context);\n});\n","import { slice } from './_setup.js';\n\n// Returns everything but the last entry of the array. Especially useful on\n// the arguments object. Passing **n** will return all the values in\n// the array, excluding the last N.\nexport default function initial(array, n, guard) {\n return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));\n}\n","import initial from './initial.js';\n\n// Get the first element of an array. Passing **n** will return the first N\n// values in the array. The **guard** check allows it to work with `_.map`.\nexport default function first(array, n, guard) {\n if (array == null || array.length < 1) return n == null || guard ? void 0 : [];\n if (n == null || guard) return array[0];\n return initial(array, array.length - n);\n}\n","import { slice } from './_setup.js';\n\n// Returns everything but the first entry of the `array`. Especially useful on\n// the `arguments` object. Passing an **n** will return the rest N values in the\n// `array`.\nexport default function rest(array, n, guard) {\n return slice.call(array, n == null || guard ? 1 : n);\n}\n","import rest from './rest.js';\n\n// Get the last element of an array. Passing **n** will return the last N\n// values in the array.\nexport default function last(array, n, guard) {\n if (array == null || array.length < 1) return n == null || guard ? void 0 : [];\n if (n == null || guard) return array[array.length - 1];\n return rest(array, Math.max(0, array.length - n));\n}\n","import filter from './filter.js';\n\n// Trim out all falsy values from an array.\nexport default function compact(array) {\n return filter(array, Boolean);\n}\n","import _flatten from './_flatten.js';\n\n// Flatten out an array, either recursively (by default), or up to `depth`.\n// Passing `true` or `false` as `depth` means `1` or `Infinity`, respectively.\nexport default function flatten(array, depth) {\n return _flatten(array, depth, false);\n}\n","import restArguments from './restArguments.js';\nimport flatten from './_flatten.js';\nimport filter from './filter.js';\nimport contains from './contains.js';\n\n// Take the difference between one array and a number of other arrays.\n// Only the elements present in just the first array will remain.\nexport default restArguments(function(array, rest) {\n rest = flatten(rest, true, true);\n return filter(array, function(value){\n return !contains(rest, value);\n });\n});\n","import restArguments from './restArguments.js';\nimport difference from './difference.js';\n\n// Return a version of the array that does not contain the specified value(s).\nexport default restArguments(function(array, otherArrays) {\n return difference(array, otherArrays);\n});\n","import isBoolean from './isBoolean.js';\nimport cb from './_cb.js';\nimport getLength from './_getLength.js';\nimport contains from './contains.js';\n\n// Produce a duplicate-free version of the array. If the array has already\n// been sorted, you have the option of using a faster algorithm.\n// The faster algorithm will not work with an iteratee if the iteratee\n// is not a one-to-one function, so providing an iteratee will disable\n// the faster algorithm.\nexport default function uniq(array, isSorted, iteratee, context) {\n if (!isBoolean(isSorted)) {\n context = iteratee;\n iteratee = isSorted;\n isSorted = false;\n }\n if (iteratee != null) iteratee = cb(iteratee, context);\n var result = [];\n var seen = [];\n for (var i = 0, length = getLength(array); i < length; i++) {\n var value = array[i],\n computed = iteratee ? iteratee(value, i, array) : value;\n if (isSorted && !iteratee) {\n if (!i || seen !== computed) result.push(value);\n seen = computed;\n } else if (iteratee) {\n if (!contains(seen, computed)) {\n seen.push(computed);\n result.push(value);\n }\n } else if (!contains(result, value)) {\n result.push(value);\n }\n }\n return result;\n}\n","import restArguments from './restArguments.js';\nimport uniq from './uniq.js';\nimport flatten from './_flatten.js';\n\n// Produce an array that contains the union: each distinct element from all of\n// the passed-in arrays.\nexport default restArguments(function(arrays) {\n return uniq(flatten(arrays, true, true));\n});\n","import getLength from './_getLength.js';\nimport contains from './contains.js';\n\n// Produce an array that contains every item shared between all the\n// passed-in arrays.\nexport default function intersection(array) {\n var result = [];\n var argsLength = arguments.length;\n for (var i = 0, length = getLength(array); i < length; i++) {\n var item = array[i];\n if (contains(result, item)) continue;\n var j;\n for (j = 1; j < argsLength; j++) {\n if (!contains(arguments[j], item)) break;\n }\n if (j === argsLength) result.push(item);\n }\n return result;\n}\n","import max from './max.js';\nimport getLength from './_getLength.js';\nimport pluck from './pluck.js';\n\n// Complement of zip. Unzip accepts an array of arrays and groups\n// each array's elements on shared indices.\nexport default function unzip(array) {\n var length = (array && max(array, getLength).length) || 0;\n var result = Array(length);\n\n for (var index = 0; index < length; index++) {\n result[index] = pluck(array, index);\n }\n return result;\n}\n","import restArguments from './restArguments.js';\nimport unzip from './unzip.js';\n\n// Zip together multiple lists into a single array -- elements that share\n// an index go together.\nexport default restArguments(unzip);\n","import getLength from './_getLength.js';\n\n// Converts lists into objects. Pass either a single array of `[key, value]`\n// pairs, or two parallel arrays of the same length -- one of keys, and one of\n// the corresponding values. Passing by pairs is the reverse of `_.pairs`.\nexport default function object(list, values) {\n var result = {};\n for (var i = 0, length = getLength(list); i < length; i++) {\n if (values) {\n result[list[i]] = values[i];\n } else {\n result[list[i][0]] = list[i][1];\n }\n }\n return result;\n}\n","// Generate an integer Array containing an arithmetic progression. A port of\n// the native Python `range()` function. See\n// [the Python documentation](https://docs.python.org/library/functions.html#range).\nexport default function range(start, stop, step) {\n if (stop == null) {\n stop = start || 0;\n start = 0;\n }\n if (!step) {\n step = stop < start ? -1 : 1;\n }\n\n var length = Math.max(Math.ceil((stop - start) / step), 0);\n var range = Array(length);\n\n for (var idx = 0; idx < length; idx++, start += step) {\n range[idx] = start;\n }\n\n return range;\n}\n","import { slice } from './_setup.js';\n\n// Chunk a single array into multiple arrays, each containing `count` or fewer\n// items.\nexport default function chunk(array, count) {\n if (count == null || count < 1) return [];\n var result = [];\n var i = 0, length = array.length;\n while (i < length) {\n result.push(slice.call(array, i, i += count));\n }\n return result;\n}\n","import _ from './underscore.js';\n\n// Helper function to continue chaining intermediate results.\nexport default function chainResult(instance, obj) {\n return instance._chain ? _(obj).chain() : obj;\n}\n","import _ from './underscore.js';\nimport each from './each.js';\nimport functions from './functions.js';\nimport { push } from './_setup.js';\nimport chainResult from './_chainResult.js';\n\n// Add your own custom functions to the Underscore object.\nexport default function mixin(obj) {\n each(functions(obj), function(name) {\n var func = _[name] = obj[name];\n _.prototype[name] = function() {\n var args = [this._wrapped];\n push.apply(args, arguments);\n return chainResult(this, func.apply(_, args));\n };\n });\n return _;\n}\n","import _ from './underscore.js';\nimport each from './each.js';\nimport { ArrayProto } from './_setup.js';\nimport chainResult from './_chainResult.js';\n\n// Add all mutator `Array` functions to the wrapper.\neach(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {\n var method = ArrayProto[name];\n _.prototype[name] = function() {\n var obj = this._wrapped;\n if (obj != null) {\n method.apply(obj, arguments);\n if ((name === 'shift' || name === 'splice') && obj.length === 0) {\n delete obj[0];\n }\n }\n return chainResult(this, obj);\n };\n});\n\n// Add all accessor `Array` functions to the wrapper.\neach(['concat', 'join', 'slice'], function(name) {\n var method = ArrayProto[name];\n _.prototype[name] = function() {\n var obj = this._wrapped;\n if (obj != null) obj = method.apply(obj, arguments);\n return chainResult(this, obj);\n };\n});\n\nexport default _;\n","// Default Export\n// ==============\n// In this module, we mix our bundled exports into the `_` object and export\n// the result. This is analogous to setting `module.exports = _` in CommonJS.\n// Hence, this module is also the entry point of our UMD bundle and the package\n// entry point for CommonJS and AMD users. In other words, this is (the source\n// of) the module you are interfacing with when you do any of the following:\n//\n// ```js\n// // CommonJS\n// var _ = require('underscore');\n//\n// // AMD\n// define(['underscore'], function(_) {...});\n//\n// // UMD in the browser\n// // _ is available as a global variable\n// ```\nimport * as allExports from './index.js';\nimport { mixin } from './index.js';\n\n// Add all of the Underscore functions to the wrapper object.\nvar _ = mixin(allExports);\n// Legacy Node.js API.\n_._ = _;\n// Export the Underscore API.\nexport default _;\n","import $ from \"jquery\";\nimport _ from \"underscore\";\nimport _t from \"@patternslib/patternslib/src/core/i18n\";\nimport Base from \"@patternslib/patternslib/src/core/base\";\nimport events from \"@patternslib/patternslib/src/core/events\";\nimport logging from \"@patternslib/patternslib/src/core/logging\";\nimport Parser from \"@patternslib/patternslib/src/core/parser\";\n\nconst log = logging.getLogger(\"pat-upload\");\n\nexport const parser = new Parser(\"upload\");\nparser.add_argument(\"concurrent-uploads\", \"multiple\", [\"multiple\", \"single\"]); // Only one upload at a time, or multiple ones simultaneously?\nparser.add_argument(\"ajax-upload\", true); //boolean: true or false for letting the widget upload the files via ajax. If false the form will act like a normal form. (true)\nparser.add_argument(\"post-upload\", true); //boolean: condition value for the file preview in div element to fadeout after file upload is completed. (true)\nparser.add_argument(\"class-name\", \"upload\"); //string: value for class attribute in the form element ('upload')\nparser.add_argument(\"clickable\", \"true\"); //boolean: If you can click on container to also upload (true)\nparser.add_argument(\"current-path\"); //string: Current path related items is starting with (null)\nparser.add_argument(\"label\", \"Drop files here…\"); //string: Text to show instead of the default ('Drop files here…')\nparser.add_argument(\"name\", \"file\"); //string: value for name attribute in the file input element ('file')\nparser.add_argument(\"previews-container\", \".previews\"); //selector: JavaScript selector for file preview in div element. (.previews)\nparser.add_argument(\"timeout\", 120000);\nparser.add_argument(\"trigger\", \"button\"); //string: What triggers the upload. 'button' expects user to click upload button, 'auto' starts uploading automatically after the user drags something, and always hides the upload button. ('button')\nparser.add_argument(\"url\"); //string: If not used with a form, this option must provide the URL to submit to (null)\nparser.add_argument(\"headers\"); // Optional headers as String in the form of \"{'Key': 'Value'}\"\n\nexport default Base.extend({\n name: \"upload\",\n trigger: \".pat-upload\",\n parser: \"patternslib\",\n defaults: {\n addRemoveLinks: false,\n maxFiles: null,\n maxFilesize: 99999999, // let's not have a max by default...\n previewTemplate: null,\n },\n template_preview: null,\n\n async init($el, opts) {\n if (window.__patternslib_import_styles) {\n import(\"dropzone/dist/basic.css\");\n }\n\n const Dropzone = (await import(\"dropzone\")).default;\n Dropzone.autoDiscover = false; // we do not want this plugin to auto discover\n this.template_preview = (await import(\"./templates/preview.html\")).default;\n const template_upload = (await import(\"./templates/upload.html\")).default;\n\n this.cfgs = _.extend(_.clone(this.defaults), parser.parse($el, opts, true)[0]);\n this.$el.addClass(this.cfgs.className);\n this.$el.append(\n _.template(template_upload)({ _t: _t, label: _t(this.cfgs.label) })\n );\n\n if (!this.cfgs.ajaxUpload) {\n // no ajax upload, drop the fallback\n $(\".fallback\", this.$el).remove();\n }\n try {\n // if init of Dropzone fails it says nothing and\n // it fails silently. Using this block we make sure\n // that if you break it w/ some weird or missing option\n // you can get a proper log of it\n this.dropzone = new Dropzone(\n $(\".upload-area\", this.$el)[0],\n this.getDzoneOptions()\n );\n } catch (e) {\n log.error(e);\n throw e;\n }\n this.registerHandlers();\n },\n\n refresh() {\n const subform = this.el.closest(\".pat-subform\");\n if (subform) {\n log.debug(\"Refresh subform\");\n const button = subform.querySelector(\"button[type='submit']\");\n button?.click();\n } else {\n const form = this.el.closest(\"form\");\n if (form && form.matches(\".pat-inject\")) {\n log.debug(\"Refresh form\");\n form.dispatchEvent(events.submit_event());\n }\n }\n },\n\n registerHandlers() {\n this.dropzone.on(\n \"complete\",\n $.proxy(function (file) {\n if (this.cfgs.postUpload) {\n setTimeout(function () {\n $(file.previewElement).fadeOut();\n }, 1000);\n }\n if (\n _.filter(this.dropzone.files, function (f) {\n return f.status !== \"success\";\n }).length === 0\n ) {\n this.refresh();\n }\n }, this)\n );\n },\n\n getUrl() {\n let url = this.cfgs.url;\n if (!url) {\n const $form = this.$el.closest(\"form\");\n url = $form.length > 0 ? $form.attr(\"action\") : window.location.href;\n }\n return url;\n },\n\n getDzoneOptions() {\n if (typeof this.cfgs.clickable === \"string\") {\n this.cfgs.clickable = this.cfgs.clickable === \"true\" ? true : false;\n }\n const options = $.extend({}, this.cfgs);\n delete options.postUpload;\n if (this.cfgs.previewsContainer) {\n /* If they have a select but it's not an id, let's make an id selector\n * so we can target the correct container. dropzone is weird here...\n */\n const $preview = this.$el.find(this.cfgs.previewsContainer);\n if ($preview.length > 0) {\n options.previewsContainer = $preview[0];\n }\n }\n options.url = this.getUrl();\n options.uploadMultiple = options.concurrentUploads === \"multiple\" ? true : false;\n options.previewTemplate = this.template_preview;\n // if our element is a form we should force some values\n // https://github.com/enyo/dropzone/wiki/Combine-normal-form-with-Dropzone\n\n try {\n if (this.cfgs.headers) {\n options.headers = JSON.parse(this.cfgs.headers);\n }\n } catch (e) {\n log.warn(\"Could not parse the headers option\");\n }\n\n return options;\n },\n});\n"],"names":["parser","Parser","addArgument","Base","name","trigger","init","$el","this","options","parse","el","$mirror","$","target","parents","first","on","updateMirror","val","html","text","attr","ev","the_mirror","length","placeholder","i","logger","logging","add_argument","_changed","changing_fields","tagName","window","addEventListener","unlock","bind","capture","MutationObserver","record","type","removedNodes","debug","observe","parentNode","childList","querySelectorAll","lock","inject_response","data","data_el","document","createElement","innerHTML","status","querySelector","registry","content","outerHTML","url","fetch","response","storage","store","opts","isAddedToCart","removeFromCart","addToCart","action","emptyCart","processCart","cartIsEmpty","addClass","parentsUntil","each","index","elem","removeClass","contents","toLowerCase","keep","patterns","cart","get","set","id","removeAttr","push","itemIndex","indexOf","splice","cartItems","item","prop","remove","patternsList","split","patternsDataStr","patternDataId","replace","patternData","form","append","submit","__patternslib_import_styles","pageLengthMenu","page","JSON","DataTable","dom","retrieve","pagingType","pageLength","aLengthMenu","serverSide","ajax","language","info","infoEmpty","infoFiltered","lengthMenu","zeroRecords","search","searchPlaceholder","log","addAlias","current_modal","toolbar_el","TipTap","Editor","ExtDocument","default","ExtParagraph","ExtText","focus_handler","style","display","container","setAttribute","after","set_focus","classList","contains","hasAttribute","is_form_el","includes","getText","value","setText","dispatchEvent","events","configure","Gapcursor","History","extra_extensions","getAttribute","Placeholder","mentionsMenu","factory","app","char","plural","tagsMenu","toolbarExternal","TARGETS","toolbar_ext","toolbar","init_pre","init_extensions","getHTML","Registry","view","utils","add","element","extensions","onUpdate","onFocus","onBlur","autofocus","editor","init_post","e","VERSION","root","self","global","Function","ArrayProto","Array","prototype","ObjProto","Object","SymbolProto","Symbol","slice","toString","hasOwnProperty","supportsArrayBuffer","ArrayBuffer","supportsDataView","DataView","nativeIsArray","isArray","nativeKeys","keys","nativeCreate","create","nativeIsView","isView","_isNaN","isNaN","_isFinite","isFinite","hasEnumBug","propertyIsEnumerable","nonEnumerableProps","MAX_ARRAY_INDEX","Math","pow","restArguments","func","startIndex","max","arguments","rest","call","args","apply","isObject","obj","isNull","isUndefined","isBoolean","isElement","nodeType","tagTester","tag","isFunction","nodelist","childNodes","Int8Array","hasStringTagBug","isIE11","Map","isDataView","getInt8","isArrayBuffer","buffer","has","key","isArguments","isSymbol","parseFloat","isNumber","constant","createSizePropertyCheck","getSizeProperty","collection","sizeProperty","shallowProperty","typedArrayPattern","test","collectNonEnumProps","hash","l","emulatedSet","nonEnumIdx","constructor","proto","isEmpty","isString","isMatch","object","attrs","_keys","_","_wrapped","toBufferView","bufferSource","Uint8Array","byteOffset","valueOf","toJSON","String","tagDataView","eq","a","b","aStack","bStack","deepEq","className","areArrays","aCtor","bCtor","pop","isEqual","allKeys","ie11fingerprint","methods","weakMapMethods","forEachName","commonInit","mapTail","mapMethods","concat","setMethods","values","pairs","invert","result","functions","names","sort","createAssigner","keysFunc","defaults","source","baseCreate","Ctor","props","extendOwn","clone","extend","tap","interceptor","toPath","path","deepGet","defaultValue","identity","matcher","property","optimizeCb","context","argCount","accumulator","baseIteratee","iteratee","Infinity","cb","mapObject","results","currentKey","noop","propertyOf","times","n","accum","random","min","floor","Date","now","getTime","createEscaper","map","escaper","match","join","testRegexp","RegExp","replaceRegexp","string","templateSettings","evaluate","interpolate","escape","noMatch","escapes","escapeRegExp","escapeChar","bareIdentifier","template","settings","oldSettings","offset","render","argument","variable","Error","fallback","idCounter","uniqueId","prefix","chain","instance","_chain","executeBound","sourceFunc","boundFunc","callingContext","partial","boundArgs","bound","position","TypeError","callArgs","flatten","input","depth","strict","output","idx","j","len","memoize","hasher","cache","address","wait","setTimeout","delay","throttle","timeout","previous","later","leading","throttled","_now","remaining","clearTimeout","trailing","cancel","debounce","immediate","passed","debounced","_args","wrap","wrapper","negate","predicate","compose","start","before","memo","findKey","createPredicateIndexFinder","dir","array","sortedIndex","low","high","mid","createIndexFinder","predicateFind","findIndex","findLastIndex","find","findWhere","createReduce","reducer","initial","filter","list","reject","every","some","fromIndex","guard","contextPath","method","pluck","where","computed","lastComputed","v","reStrSymbol","toArray","sample","last","rand","temp","shuffle","sortBy","criteria","left","right","group","behavior","partition","pass","size","keyInObj","pick","compact","Boolean","otherArrays","difference","uniq","isSorted","seen","arrays","intersection","argsLength","unzip","range","stop","step","ceil","chunk","count","chainResult","mixin","addRemoveLinks","maxFiles","maxFilesize","previewTemplate","template_preview","Dropzone","autoDiscover","template_upload","cfgs","_t","label","ajaxUpload","dropzone","getDzoneOptions","error","registerHandlers","refresh","subform","closest","button","click","matches","file","postUpload","previewElement","fadeOut","files","f","getUrl","$form","location","href","clickable","previewsContainer","$preview","uploadMultiple","concurrentUploads","headers","warn"],"sourceRoot":""}