\n */\n\nconst SymbolTreeNode = require('./SymbolTreeNode');\nconst TreePosition = require('./TreePosition');\nconst TreeIterator = require('./TreeIterator');\n\nfunction returnTrue() {\n return true;\n}\n\nfunction reverseArrayIndex(array, reverseIndex) {\n return array[array.length - 1 - reverseIndex]; // no need to check `index >= 0`\n}\n\nclass SymbolTree {\n\n /**\n * @constructor\n * @alias module:symbol-tree\n * @param {string} [description='SymbolTree data'] Description used for the Symbol\n */\n constructor(description) {\n this.symbol = Symbol(description || 'SymbolTree data');\n }\n\n /**\n * You can use this function to (optionally) initialize an object right after its creation,\n * to take advantage of V8's fast properties. Also useful if you would like to\n * freeze your object.\n *\n * `O(1)`\n *\n * @method\n * @alias module:symbol-tree#initialize\n * @param {Object} object\n * @return {Object} object\n */\n initialize(object) {\n this._node(object);\n\n return object;\n }\n\n _node(object) {\n if (!object) {\n return null;\n }\n\n const node = object[this.symbol];\n\n if (node) {\n return node;\n }\n\n return (object[this.symbol] = new SymbolTreeNode());\n }\n\n /**\n * Returns `true` if the object has any children. Otherwise it returns `false`.\n *\n * * `O(1)`\n *\n * @method hasChildren\n * @memberOf module:symbol-tree#\n * @param {Object} object\n * @return {Boolean}\n */\n hasChildren(object) {\n return this._node(object).hasChildren;\n }\n\n /**\n * Returns the first child of the given object.\n *\n * * `O(1)`\n *\n * @method firstChild\n * @memberOf module:symbol-tree#\n * @param {Object} object\n * @return {Object}\n */\n firstChild(object) {\n return this._node(object).firstChild;\n }\n\n /**\n * Returns the last child of the given object.\n *\n * * `O(1)`\n *\n * @method lastChild\n * @memberOf module:symbol-tree#\n * @param {Object} object\n * @return {Object}\n */\n lastChild(object) {\n return this._node(object).lastChild;\n }\n\n /**\n * Returns the previous sibling of the given object.\n *\n * * `O(1)`\n *\n * @method previousSibling\n * @memberOf module:symbol-tree#\n * @param {Object} object\n * @return {Object}\n */\n previousSibling(object) {\n return this._node(object).previousSibling;\n }\n\n /**\n * Returns the next sibling of the given object.\n *\n * * `O(1)`\n *\n * @method nextSibling\n * @memberOf module:symbol-tree#\n * @param {Object} object\n * @return {Object}\n */\n nextSibling(object) {\n return this._node(object).nextSibling;\n }\n\n /**\n * Return the parent of the given object.\n *\n * * `O(1)`\n *\n * @method parent\n * @memberOf module:symbol-tree#\n * @param {Object} object\n * @return {Object}\n */\n parent(object) {\n return this._node(object).parent;\n }\n\n /**\n * Find the inclusive descendant that is last in tree order of the given object.\n *\n * * `O(n)` (worst case) where `n` is the depth of the subtree of `object`\n *\n * @method lastInclusiveDescendant\n * @memberOf module:symbol-tree#\n * @param {Object} object\n * @return {Object}\n */\n lastInclusiveDescendant(object) {\n let lastChild;\n let current = object;\n\n while ((lastChild = this._node(current).lastChild)) {\n current = lastChild;\n }\n\n return current;\n }\n\n /**\n * Find the preceding object (A) of the given object (B).\n * An object A is preceding an object B if A and B are in the same tree\n * and A comes before B in tree order.\n *\n * * `O(n)` (worst case)\n * * `O(1)` (amortized when walking the entire tree)\n *\n * @method preceding\n * @memberOf module:symbol-tree#\n * @param {Object} object\n * @param {Object} [options]\n * @param {Object} [options.root] If set, `root` must be an inclusive ancestor\n * of the return value (or else null is returned). This check _assumes_\n * that `root` is also an inclusive ancestor of the given `object`\n * @return {?Object}\n */\n preceding(object, options) {\n const treeRoot = options && options.root;\n\n if (object === treeRoot) {\n return null;\n }\n\n const previousSibling = this._node(object).previousSibling;\n\n if (previousSibling) {\n return this.lastInclusiveDescendant(previousSibling);\n }\n\n // if there is no previous sibling return the parent (might be null)\n return this._node(object).parent;\n }\n\n /**\n * Find the following object (A) of the given object (B).\n * An object A is following an object B if A and B are in the same tree\n * and A comes after B in tree order.\n *\n * * `O(n)` (worst case) where `n` is the amount of objects in the entire tree\n * * `O(1)` (amortized when walking the entire tree)\n *\n * @method following\n * @memberOf module:symbol-tree#\n * @param {!Object} object\n * @param {Object} [options]\n * @param {Object} [options.root] If set, `root` must be an inclusive ancestor\n * of the return value (or else null is returned). This check _assumes_\n * that `root` is also an inclusive ancestor of the given `object`\n * @param {Boolean} [options.skipChildren=false] If set, ignore the children of `object`\n * @return {?Object}\n */\n following(object, options) {\n const treeRoot = options && options.root;\n const skipChildren = options && options.skipChildren;\n\n const firstChild = !skipChildren && this._node(object).firstChild;\n\n if (firstChild) {\n return firstChild;\n }\n\n let current = object;\n\n do {\n if (current === treeRoot) {\n return null;\n }\n\n const nextSibling = this._node(current).nextSibling;\n\n if (nextSibling) {\n return nextSibling;\n }\n\n current = this._node(current).parent;\n } while (current);\n\n return null;\n }\n\n /**\n * Append all children of the given object to an array.\n *\n * * `O(n)` where `n` is the amount of children of the given `parent`\n *\n * @method childrenToArray\n * @memberOf module:symbol-tree#\n * @param {Object} parent\n * @param {Object} [options]\n * @param {Object[]} [options.array=[]]\n * @param {Function} [options.filter] Function to test each object before it is added to the array.\n * Invoked with arguments (object). Should return `true` if an object\n * is to be included.\n * @param {*} [options.thisArg] Value to use as `this` when executing `filter`.\n * @return {Object[]}\n */\n childrenToArray(parent, options) {\n const array = (options && options.array) || [];\n const filter = (options && options.filter) || returnTrue;\n const thisArg = (options && options.thisArg) || undefined;\n\n const parentNode = this._node(parent);\n let object = parentNode.firstChild;\n let index = 0;\n\n while (object) {\n const node = this._node(object);\n node.setCachedIndex(parentNode, index);\n\n if (filter.call(thisArg, object)) {\n array.push(object);\n }\n\n object = node.nextSibling;\n ++index;\n }\n\n return array;\n }\n\n /**\n * Append all inclusive ancestors of the given object to an array.\n *\n * * `O(n)` where `n` is the amount of ancestors of the given `object`\n *\n * @method ancestorsToArray\n * @memberOf module:symbol-tree#\n * @param {Object} object\n * @param {Object} [options]\n * @param {Object[]} [options.array=[]]\n * @param {Function} [options.filter] Function to test each object before it is added to the array.\n * Invoked with arguments (object). Should return `true` if an object\n * is to be included.\n * @param {*} [options.thisArg] Value to use as `this` when executing `filter`.\n * @return {Object[]}\n */\n ancestorsToArray(object, options) {\n const array = (options && options.array) || [];\n const filter = (options && options.filter) || returnTrue;\n const thisArg = (options && options.thisArg) || undefined;\n\n let ancestor = object;\n\n while (ancestor) {\n if (filter.call(thisArg, ancestor)) {\n array.push(ancestor);\n }\n ancestor = this._node(ancestor).parent;\n }\n\n return array;\n }\n\n /**\n * Append all descendants of the given object to an array (in tree order).\n *\n * * `O(n)` where `n` is the amount of objects in the sub-tree of the given `object`\n *\n * @method treeToArray\n * @memberOf module:symbol-tree#\n * @param {Object} root\n * @param {Object} [options]\n * @param {Object[]} [options.array=[]]\n * @param {Function} [options.filter] Function to test each object before it is added to the array.\n * Invoked with arguments (object). Should return `true` if an object\n * is to be included.\n * @param {*} [options.thisArg] Value to use as `this` when executing `filter`.\n * @return {Object[]}\n */\n treeToArray(root, options) {\n const array = (options && options.array) || [];\n const filter = (options && options.filter) || returnTrue;\n const thisArg = (options && options.thisArg) || undefined;\n\n let object = root;\n\n while (object) {\n if (filter.call(thisArg, object)) {\n array.push(object);\n }\n object = this.following(object, {root: root});\n }\n\n return array;\n }\n\n /**\n * Iterate over all children of the given object\n *\n * * `O(1)` for a single iteration\n *\n * @method childrenIterator\n * @memberOf module:symbol-tree#\n * @param {Object} parent\n * @param {Object} [options]\n * @param {Boolean} [options.reverse=false]\n * @return {Object} An iterable iterator (ES6)\n */\n childrenIterator(parent, options) {\n const reverse = options && options.reverse;\n const parentNode = this._node(parent);\n\n return new TreeIterator(\n this,\n parent,\n reverse ? parentNode.lastChild : parentNode.firstChild,\n reverse ? TreeIterator.PREV : TreeIterator.NEXT\n );\n }\n\n /**\n * Iterate over all the previous siblings of the given object. (in reverse tree order)\n *\n * * `O(1)` for a single iteration\n *\n * @method previousSiblingsIterator\n * @memberOf module:symbol-tree#\n * @param {Object} object\n * @return {Object} An iterable iterator (ES6)\n */\n previousSiblingsIterator(object) {\n return new TreeIterator(\n this,\n object,\n this._node(object).previousSibling,\n TreeIterator.PREV\n );\n }\n\n /**\n * Iterate over all the next siblings of the given object. (in tree order)\n *\n * * `O(1)` for a single iteration\n *\n * @method nextSiblingsIterator\n * @memberOf module:symbol-tree#\n * @param {Object} object\n * @return {Object} An iterable iterator (ES6)\n */\n nextSiblingsIterator(object) {\n return new TreeIterator(\n this,\n object,\n this._node(object).nextSibling,\n TreeIterator.NEXT\n );\n }\n\n /**\n * Iterate over all inclusive ancestors of the given object\n *\n * * `O(1)` for a single iteration\n *\n * @method ancestorsIterator\n * @memberOf module:symbol-tree#\n * @param {Object} object\n * @return {Object} An iterable iterator (ES6)\n */\n ancestorsIterator(object) {\n return new TreeIterator(\n this,\n object,\n object,\n TreeIterator.PARENT\n );\n }\n\n /**\n * Iterate over all descendants of the given object (in tree order).\n *\n * Where `n` is the amount of objects in the sub-tree of the given `root`:\n *\n * * `O(n)` (worst case for a single iteration)\n * * `O(n)` (amortized, when completing the iterator)\n *\n * @method treeIterator\n * @memberOf module:symbol-tree#\n * @param {Object} root\n * @param {Object} options\n * @param {Boolean} [options.reverse=false]\n * @return {Object} An iterable iterator (ES6)\n */\n treeIterator(root, options) {\n const reverse = options && options.reverse;\n\n return new TreeIterator(\n this,\n root,\n reverse ? this.lastInclusiveDescendant(root) : root,\n reverse ? TreeIterator.PRECEDING : TreeIterator.FOLLOWING\n );\n }\n\n /**\n * Find the index of the given object (the number of preceding siblings).\n *\n * * `O(n)` where `n` is the amount of preceding siblings\n * * `O(1)` (amortized, if the tree is not modified)\n *\n * @method index\n * @memberOf module:symbol-tree#\n * @param {Object} child\n * @return {Number} The number of preceding siblings, or -1 if the object has no parent\n */\n index(child) {\n const childNode = this._node(child);\n const parentNode = this._node(childNode.parent);\n\n if (!parentNode) {\n // In principal, you could also find out the number of preceding siblings\n // for objects that do not have a parent. This method limits itself only to\n // objects that have a parent because that lets us optimize more.\n return -1;\n }\n\n let currentIndex = childNode.getCachedIndex(parentNode);\n\n if (currentIndex >= 0) {\n return currentIndex;\n }\n\n currentIndex = 0;\n let object = parentNode.firstChild;\n\n if (parentNode.childIndexCachedUpTo) {\n const cachedUpToNode = this._node(parentNode.childIndexCachedUpTo);\n object = cachedUpToNode.nextSibling;\n currentIndex = cachedUpToNode.getCachedIndex(parentNode) + 1;\n }\n\n while (object) {\n const node = this._node(object);\n node.setCachedIndex(parentNode, currentIndex);\n\n if (object === child) {\n break;\n }\n\n ++currentIndex;\n object = node.nextSibling;\n }\n\n parentNode.childIndexCachedUpTo = child;\n\n return currentIndex;\n }\n\n /**\n * Calculate the number of children.\n *\n * * `O(n)` where `n` is the amount of children\n * * `O(1)` (amortized, if the tree is not modified)\n *\n * @method childrenCount\n * @memberOf module:symbol-tree#\n * @param {Object} parent\n * @return {Number}\n */\n childrenCount(parent) {\n const parentNode = this._node(parent);\n\n if (!parentNode.lastChild) {\n return 0;\n }\n\n return this.index(parentNode.lastChild) + 1;\n }\n\n /**\n * Compare the position of an object relative to another object. A bit set is returned:\n *\n * \n * - DISCONNECTED : 1
\n * - PRECEDING : 2
\n * - FOLLOWING : 4
\n * - CONTAINS : 8
\n * - CONTAINED_BY : 16
\n *
\n *\n * The semantics are the same as compareDocumentPosition in DOM, with the exception that\n * DISCONNECTED never occurs with any other bit.\n *\n * where `n` and `m` are the amount of ancestors of `left` and `right`;\n * where `o` is the amount of children of the lowest common ancestor of `left` and `right`:\n *\n * * `O(n + m + o)` (worst case)\n * * `O(n + m)` (amortized, if the tree is not modified)\n *\n * @method compareTreePosition\n * @memberOf module:symbol-tree#\n * @param {Object} left\n * @param {Object} right\n * @return {Number}\n */\n compareTreePosition(left, right) {\n // In DOM terms:\n // left = reference / context object\n // right = other\n\n if (left === right) {\n return 0;\n }\n\n /* jshint -W016 */\n\n const leftAncestors = []; { // inclusive\n let leftAncestor = left;\n\n while (leftAncestor) {\n if (leftAncestor === right) {\n return TreePosition.CONTAINS | TreePosition.PRECEDING;\n // other is ancestor of reference\n }\n\n leftAncestors.push(leftAncestor);\n leftAncestor = this.parent(leftAncestor);\n }\n }\n\n\n const rightAncestors = []; {\n let rightAncestor = right;\n\n while (rightAncestor) {\n if (rightAncestor === left) {\n return TreePosition.CONTAINED_BY | TreePosition.FOLLOWING;\n }\n\n rightAncestors.push(rightAncestor);\n rightAncestor = this.parent(rightAncestor);\n }\n }\n\n\n const root = reverseArrayIndex(leftAncestors, 0);\n\n if (!root || root !== reverseArrayIndex(rightAncestors, 0)) {\n // note: unlike DOM, preceding / following is not set here\n return TreePosition.DISCONNECTED;\n }\n\n // find the lowest common ancestor\n let commonAncestorIndex = 0;\n const ancestorsMinLength = Math.min(leftAncestors.length, rightAncestors.length);\n\n for (let i = 0; i < ancestorsMinLength; ++i) {\n const leftAncestor = reverseArrayIndex(leftAncestors, i);\n const rightAncestor = reverseArrayIndex(rightAncestors, i);\n\n if (leftAncestor !== rightAncestor) {\n break;\n }\n\n commonAncestorIndex = i;\n }\n\n // indexes within the common ancestor\n const leftIndex = this.index(reverseArrayIndex(leftAncestors, commonAncestorIndex + 1));\n const rightIndex = this.index(reverseArrayIndex(rightAncestors, commonAncestorIndex + 1));\n\n return rightIndex < leftIndex\n ? TreePosition.PRECEDING\n : TreePosition.FOLLOWING;\n }\n\n /**\n * Remove the object from this tree.\n * Has no effect if already removed.\n *\n * * `O(1)`\n *\n * @method remove\n * @memberOf module:symbol-tree#\n * @param {Object} removeObject\n * @return {Object} removeObject\n */\n remove(removeObject) {\n const removeNode = this._node(removeObject);\n const parentNode = this._node(removeNode.parent);\n const prevNode = this._node(removeNode.previousSibling);\n const nextNode = this._node(removeNode.nextSibling);\n\n if (parentNode) {\n if (parentNode.firstChild === removeObject) {\n parentNode.firstChild = removeNode.nextSibling;\n }\n\n if (parentNode.lastChild === removeObject) {\n parentNode.lastChild = removeNode.previousSibling;\n }\n }\n\n if (prevNode) {\n prevNode.nextSibling = removeNode.nextSibling;\n }\n\n if (nextNode) {\n nextNode.previousSibling = removeNode.previousSibling;\n }\n\n removeNode.parent = null;\n removeNode.previousSibling = null;\n removeNode.nextSibling = null;\n removeNode.cachedIndex = -1;\n removeNode.cachedIndexVersion = NaN;\n\n if (parentNode) {\n parentNode.childrenChanged();\n }\n\n return removeObject;\n }\n\n /**\n * Insert the given object before the reference object.\n * `newObject` is now the previous sibling of `referenceObject`.\n *\n * * `O(1)`\n *\n * @method insertBefore\n * @memberOf module:symbol-tree#\n * @param {Object} referenceObject\n * @param {Object} newObject\n * @throws {Error} If the newObject is already present in this SymbolTree\n * @return {Object} newObject\n */\n insertBefore(referenceObject, newObject) {\n const referenceNode = this._node(referenceObject);\n const prevNode = this._node(referenceNode.previousSibling);\n const newNode = this._node(newObject);\n const parentNode = this._node(referenceNode.parent);\n\n if (newNode.isAttached) {\n throw Error('Given object is already present in this SymbolTree, remove it first');\n }\n\n newNode.parent = referenceNode.parent;\n newNode.previousSibling = referenceNode.previousSibling;\n newNode.nextSibling = referenceObject;\n referenceNode.previousSibling = newObject;\n\n if (prevNode) {\n prevNode.nextSibling = newObject;\n }\n\n if (parentNode && parentNode.firstChild === referenceObject) {\n parentNode.firstChild = newObject;\n }\n\n if (parentNode) {\n parentNode.childrenChanged();\n }\n\n return newObject;\n }\n\n /**\n * Insert the given object after the reference object.\n * `newObject` is now the next sibling of `referenceObject`.\n *\n * * `O(1)`\n *\n * @method insertAfter\n * @memberOf module:symbol-tree#\n * @param {Object} referenceObject\n * @param {Object} newObject\n * @throws {Error} If the newObject is already present in this SymbolTree\n * @return {Object} newObject\n */\n insertAfter(referenceObject, newObject) {\n const referenceNode = this._node(referenceObject);\n const nextNode = this._node(referenceNode.nextSibling);\n const newNode = this._node(newObject);\n const parentNode = this._node(referenceNode.parent);\n\n if (newNode.isAttached) {\n throw Error('Given object is already present in this SymbolTree, remove it first');\n }\n\n newNode.parent = referenceNode.parent;\n newNode.previousSibling = referenceObject;\n newNode.nextSibling = referenceNode.nextSibling;\n referenceNode.nextSibling = newObject;\n\n if (nextNode) {\n nextNode.previousSibling = newObject;\n }\n\n if (parentNode && parentNode.lastChild === referenceObject) {\n parentNode.lastChild = newObject;\n }\n\n if (parentNode) {\n parentNode.childrenChanged();\n }\n\n return newObject;\n }\n\n /**\n * Insert the given object as the first child of the given reference object.\n * `newObject` is now the first child of `referenceObject`.\n *\n * * `O(1)`\n *\n * @method prependChild\n * @memberOf module:symbol-tree#\n * @param {Object} referenceObject\n * @param {Object} newObject\n * @throws {Error} If the newObject is already present in this SymbolTree\n * @return {Object} newObject\n */\n prependChild(referenceObject, newObject) {\n const referenceNode = this._node(referenceObject);\n const newNode = this._node(newObject);\n\n if (newNode.isAttached) {\n throw Error('Given object is already present in this SymbolTree, remove it first');\n }\n\n if (referenceNode.hasChildren) {\n this.insertBefore(referenceNode.firstChild, newObject);\n }\n else {\n newNode.parent = referenceObject;\n referenceNode.firstChild = newObject;\n referenceNode.lastChild = newObject;\n referenceNode.childrenChanged();\n }\n\n return newObject;\n }\n\n /**\n * Insert the given object as the last child of the given reference object.\n * `newObject` is now the last child of `referenceObject`.\n *\n * * `O(1)`\n *\n * @method appendChild\n * @memberOf module:symbol-tree#\n * @param {Object} referenceObject\n * @param {Object} newObject\n * @throws {Error} If the newObject is already present in this SymbolTree\n * @return {Object} newObject\n */\n appendChild(referenceObject, newObject) {\n const referenceNode = this._node(referenceObject);\n const newNode = this._node(newObject);\n\n if (newNode.isAttached) {\n throw Error('Given object is already present in this SymbolTree, remove it first');\n }\n\n if (referenceNode.hasChildren) {\n this.insertAfter(referenceNode.lastChild, newObject);\n }\n else {\n newNode.parent = referenceObject;\n referenceNode.firstChild = newObject;\n referenceNode.lastChild = newObject;\n referenceNode.childrenChanged();\n }\n\n return newObject;\n }\n}\n\nmodule.exports = SymbolTree;\nSymbolTree.TreePosition = TreePosition;\n","\"use strict\";\nconst SymbolTree = require(\"symbol-tree\");\n\nexports.cloningSteps = Symbol(\"cloning steps\");\n\n// TODO: the many underscore-prefixed hooks should move here\n// E.g. _attrModified (which maybe should be split into its per-spec variants)\n\n/**\n * This SymbolTree is used to build the tree for all Node in a document\n */\nexports.domSymbolTree = new SymbolTree(\"DOM SymbolTree\");\n","export default {}","\"use strict\";\nconst path = require(\"path\");\nconst whatwgURL = require(\"whatwg-url\");\nconst { domSymbolTree } = require(\"./living/helpers/internal-constants\");\nconst SYMBOL_TREE_POSITION = require(\"symbol-tree\").TreePosition;\n\nexports.toFileUrl = function (fileName) {\n // Beyond just the `path.resolve`, this is mostly for the benefit of Windows,\n // where we need to convert \"\\\" to \"/\" and add an extra \"/\" prefix before the\n // drive letter.\n let pathname = path.resolve(process.cwd(), fileName).replace(/\\\\/g, \"/\");\n if (pathname[0] !== \"/\") {\n pathname = \"/\" + pathname;\n }\n\n // path might contain spaces, so convert those to %20\n return \"file://\" + encodeURI(pathname);\n};\n\n/**\n * Define a set of properties on an object, by copying the property descriptors\n * from the original object.\n *\n * - `object` {Object} the target object\n * - `properties` {Object} the source from which to copy property descriptors\n */\nexports.define = function define(object, properties) {\n for (const name of Object.getOwnPropertyNames(properties)) {\n const propDesc = Object.getOwnPropertyDescriptor(properties, name);\n Object.defineProperty(object, name, propDesc);\n }\n};\n\n/**\n * Define a list of constants on a constructor and its .prototype\n *\n * - `Constructor` {Function} the constructor to define the constants on\n * - `propertyMap` {Object} key/value map of properties to define\n */\nexports.addConstants = function addConstants(Constructor, propertyMap) {\n for (const property in propertyMap) {\n const value = propertyMap[property];\n addConstant(Constructor, property, value);\n addConstant(Constructor.prototype, property, value);\n }\n};\n\nfunction addConstant(object, property, value) {\n Object.defineProperty(object, property, {\n configurable: false,\n enumerable: true,\n writable: false,\n value\n });\n}\n\nexports.mixin = (target, source) => {\n const keys = Reflect.ownKeys(source);\n for (let i = 0; i < keys.length; ++i) {\n if (keys[i] in target) {\n continue;\n }\n\n Object.defineProperty(target, keys[i], Object.getOwnPropertyDescriptor(source, keys[i]));\n }\n};\n\nlet memoizeQueryTypeCounter = 0;\n\n/**\n * Returns a version of a method that memoizes specific types of calls on the object\n *\n * - `fn` {Function} the method to be memozied\n */\nexports.memoizeQuery = function memoizeQuery(fn) {\n // Only memoize query functions with arity <= 2\n if (fn.length > 2) {\n return fn;\n }\n\n const type = memoizeQueryTypeCounter++;\n\n return function (...args) {\n if (!this._memoizedQueries) {\n return fn.apply(this, args);\n }\n\n if (!this._memoizedQueries[type]) {\n this._memoizedQueries[type] = Object.create(null);\n }\n\n let key;\n if (args.length === 1 && typeof args[0] === \"string\") {\n key = args[0];\n } else if (args.length === 2 && typeof args[0] === \"string\" && typeof args[1] === \"string\") {\n key = args[0] + \"::\" + args[1];\n } else {\n return fn.apply(this, args);\n }\n\n if (!(key in this._memoizedQueries[type])) {\n this._memoizedQueries[type][key] = fn.apply(this, args);\n }\n return this._memoizedQueries[type][key];\n };\n};\n\nfunction isValidAbsoluteURL(str) {\n return whatwgURL.parseURL(str) !== null;\n}\n\nexports.isValidTargetOrigin = function (str) {\n return str === \"*\" || str === \"/\" || isValidAbsoluteURL(str);\n};\n\nexports.simultaneousIterators = function* (first, second) {\n for (;;) {\n const firstResult = first.next();\n const secondResult = second.next();\n\n if (firstResult.done && secondResult.done) {\n return;\n }\n\n yield [\n firstResult.done ? null : firstResult.value,\n secondResult.done ? null : secondResult.value\n ];\n }\n};\n\nexports.treeOrderSorter = function (a, b) {\n const compare = domSymbolTree.compareTreePosition(a, b);\n\n if (compare & SYMBOL_TREE_POSITION.PRECEDING) { // b is preceding a\n return 1;\n }\n\n if (compare & SYMBOL_TREE_POSITION.FOLLOWING) {\n return -1;\n }\n\n // disconnected or equal:\n return 0;\n};\n\n/* eslint-disable global-require */\ntry {\n exports.Canvas = require(\"canvas\");\n} catch {\n exports.Canvas = null;\n}\n","import {nodeDetachedFromDocument} from 'jsdom/lib/jsdom/living/named-properties-window.js';\n\nexport default class Utils {\n static repeat (times, iterator) {\n return Array(times).fill('').map((val, index) => iterator(index)).join('');\n }\n\n static setCssVariable(css, name, value) {\n const cssString = String(css);\n if (cssString.indexOf(`${name}:`) > -1) {\n return cssString.replace(new RegExp(`${name}:.*?(;|})`), `${name}: ${value}$1`);\n } else {\n return `* {${name}: ${value};} ${cssString}`;\n }\n }\n\n static classes(...list) {\n let classNames = [];\n let className;\n while (className = list.shift()) {\n if (!!list.shift()) classNames.push(className);\n }\n return classNames.join(' ');\n }\n\n static 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 const length = Math.max(Math.ceil((stop - start) / step), 0);\n const range = Array(length);\n\n for (let idx = 0; idx < length; idx++, start += step) {\n range[idx] = start;\n }\n\n return range;\n }\n\n static isBetween (num1, num2, num3) {\n if (num2 > num3) {\n return num1 <= num2 && num1 >= num3;\n } else {\n return num1 >= num2 && num1 <= num3;\n }\n }\n\n static makeDataUrl(data) {\n return `data:image/svg+xml,${encodeURIComponent(data)}`;\n }\n\n static xmlToObject(xmlString, options = {}) {\n const { arrays = [], exclude = [], booleans = [], numbers = [], xmlTexts = [], preserveCapitals = false } = options;\n\n function formatName(name) {\n return preserveCapitals ? name : name.charAt(0).toLowerCase() + name.slice(1);\n }\n\n function convertType(name, value) {\n if (booleans.includes(name)) {\n return value.toLowerCase() === 'true';\n }\n if (numbers.includes(name)) {\n return Number(value);\n }\n return value;\n }\n\n const parser = new DOMParser();\n let dom;\n try {\n dom = parser.parseFromString(xmlString, 'application/xml');\n } catch (error) {\n console.log('ERROR: XmlToObject failed to parse XML');\n return null;\n }\n\n function parseNode(xmlNode, result) {\n let nodeName = xmlNode.nodeName;\n if (nodeName === \"#text\") {\n let v = xmlNode.nodeValue;\n if (v.trim()) result['#text'] = v;\n return;\n }\n\n if (exclude.includes(nodeName)) {\n return;\n }\n\n name = formatName(nodeName);\n\n let jsonNode = {},\n existing = result[name];\n if (existing) {\n if (!Array.isArray(existing)) result[name] = [existing, jsonNode];\n else result[name].push(jsonNode);\n }\n else {\n if (arrays.indexOf(nodeName) !== -1) result[name] = [jsonNode];\n else result[name] = jsonNode;\n }\n\n if (xmlNode.attributes) for (let attribute of xmlNode.attributes) jsonNode[formatName(attribute.nodeName)] = convertType(attribute.nodeName, attribute.nodeValue);\n\n if (xmlTexts.includes(nodeName)) {\n jsonNode['#text'] = xmlNode.innerHTML.trim();\n } else {\n for (let node of xmlNode.childNodes) parseNode(node, jsonNode);\n }\n }\n\n let result = {};\n for (let node of dom.childNodes) parseNode(node, result);\n\n return result;\n }\n\n static doAndResizeSmoothly(element, action, endAnimationCallback = () => {}) {\n const startWidth = element.offsetWidth;\n const startHeight = element.offsetHeight;\n action();\n const childElement = element.firstElementChild;\n const childRect = childElement.getBoundingClientRect();\n const endWidth = element.offsetWidth;\n const endHeight = element.offsetHeight;\n const styleWidth = element.style.width;\n const styleHeight = element.style.height;\n const childStyleWidth = childElement.style.width;\n const childStyleHeight = childElement.style.height;\n const styleOverflow = element.style.overflow;\n element.style.overflow = 'hidden';\n element.style.width = startWidth + 'px';\n element.style.height = startHeight + 'px';\n element.style.transition = 'width 200ms, height 200ms';\n childElement.style.width = childRect.width + 'px';\n childElement.style.height = childRect.height + 'px';\n setTimeout(() => {\n element.style.width = endWidth + 'px';\n element.style.height = endHeight + 'px';\n });\n setTimeout(() => {\n element.style.width = styleWidth;\n element.style.height = styleHeight;\n element.style.overflow = styleOverflow;\n element.style.transition = 'none';\n childElement.style.width = childStyleWidth;\n childElement.style.height = childStyleHeight;\n endAnimationCallback();\n }, 201);\n }\n\n static makeDraggable(element, referenceElement = document.body) {\n class PositionInfo {\n constructor(dataObject) {\n this.pageX = dataObject.pageX;\n this.pageY = dataObject.pageY;\n this.screenX = dataObject.pageX;\n this.screenY = dataObject.pageY;\n this.clientX = dataObject.clientX;\n this.clientY = dataObject.clientY;\n this.target = dataObject.target;\n }\n }\n\n class dragController {\n constructor(element, referenceElement) {\n this._element = element;\n this._referenceElement = referenceElement;\n this._element.addEventListener('mousedown', this._onMouseDown);\n this._element.addEventListener('touchstart', this._onTouchStart, {passive: false});\n }\n\n _onMouseDown = (e) => {\n if (this._startHandler && this._startHandler(e, new PositionInfo(e), this) !== false) {\n this._referenceElement.addEventListener('mousemove', this._onMouseMove);\n this._referenceElement.addEventListener('mouseup', this._onMouseUp);\n this._referenceElement.addEventListener('mouseleave', this._onMouseLeave);\n }\n }\n\n _onMouseMove = (e) => {\n this._moveHandler && this._moveHandler(e, new PositionInfo(e), this);\n }\n\n _onMouseUp = (e) => {\n this._removeMouseEvents();\n this._endHandler && this._endHandler(e, this);\n }\n\n _onMouseLeave = (e) => {\n this._removeMouseEvents();\n this._exceptionHandler && this._exceptionHandler(e, this);\n }\n\n _removeMouseEvents() {\n this._referenceElement.removeEventListener('mousemove', this._onMouseMove);\n this._referenceElement.removeEventListener('mouseup', this._onMouseUp);\n this._referenceElement.removeEventListener('mouseleave', this._onMouseLeave);\n }\n\n\n _onTouchStart = (e) => {\n if (this._startHandler && this._startHandler(e, new PositionInfo(e.touches[0]), this) !== false) {\n this._referenceElement.addEventListener('touchmove', this._onTouchMove, {passive: false});\n this._referenceElement.addEventListener('touchend', this._onTouchEnd);\n this._referenceElement.addEventListener('touchcancel', this._onTouchCancel);\n }\n }\n\n _onTouchMove = (e) => {\n this._moveHandler && this._moveHandler(e, new PositionInfo(e.touches[0]), this);\n }\n\n _onTouchEnd = (e) => {\n this._removeTouchEvents();\n this._endHandler && this._endHandler(e, this);\n }\n\n _onTouchCancel = (e) => {\n this._removeTouchEvents();\n this._exceptionHandler && this._exceptionHandler(e, this);\n }\n\n _removeTouchEvents() {\n this._referenceElement.removeEventListener('touchmove', this._onTouchMove);\n this._referenceElement.removeEventListener('touchend', this._onTouchEnd);\n this._referenceElement.removeEventListener('touchcancel', this._onTouchCancel);\n }\n\n onStart(startHandler = (event, positionInfo, controller) => {return this}) {\n this._startHandler = startHandler;\n return this;\n }\n\n onMove(moveHandler = (event, positionInfo, controller) => {return this}) {\n this._moveHandler = moveHandler;\n return this;\n }\n\n onEnd(endHandler = (event, controller) => {return this}) {\n this._endHandler = endHandler;\n return this;\n }\n\n onException(exceptionHandler = (event, controller) => {return this}) {\n this._exceptionHandler = exceptionHandler;\n return this;\n }\n\n stopListening() {\n this._element.removeEventListener('mousedown', this._onMouseDown);\n this._element.removeEventListener('touchstart', this._onTouchStart);\n delete this._element;\n delete this._referenceElement;\n }\n }\n\n return new dragController(element, referenceElement);\n }\n\n static makeMovable(popupElement, dragHandleElement) {\n let startMousePos, startPopupPos;\n const handlers = {};\n this.makeDraggable(dragHandleElement)\n .onStart((evt, positionInfo) => {\n if (positionInfo.target === dragHandleElement) {\n evt.preventDefault();\n popupElement.style.top = popupElement.offsetTop + 'px';\n popupElement.style.left = popupElement.offsetLeft + 'px';\n popupElement.style.position = 'absolute';\n startMousePos = {\n x: positionInfo.pageX,\n y: positionInfo.pageY,\n };\n startPopupPos = {\n x: popupElement.offsetLeft,\n y: popupElement.offsetTop,\n };\n if (handlers.startHandler) {\n handlers.startHandler(evt, positionInfo);\n }\n return true;\n } else {\n return false;\n }\n })\n .onMove((evt, positionInfo) => {\n evt.preventDefault();\n const currentMousePos = {\n x: positionInfo.pageX,\n y: positionInfo.pageY,\n };\n const delta = {\n x: currentMousePos.x - startMousePos.x,\n y: currentMousePos.y - startMousePos.y,\n };\n popupElement.style.left = (startPopupPos.x + delta.x) + 'px';\n popupElement.style.top = (startPopupPos.y + delta.y) + 'px';\n if (handlers.moveHandler) {\n handlers.moveHandler(evt, positionInfo);\n }\n });\n return {\n onStart: handler => handlers.startHandler = handler,\n onMove: handler => handlers.moveHandler = handler,\n }\n }\n}\n","export default \"\\n\"","import {Model, MyassaysComponent, PropTypes, Utils} from 'myassays-global';\nimport flagSymbol from './media/flag.svg?raw';\n\nconst flagSymbolUrl = Utils.makeDataUrl(flagSymbol);\n\nconst template = props => `\\\n\n\n\n`\n\nconst subsetSelectorTemplate = chartData => {\n const kineticSeries = chartData.data.series.filter(item => item.type === 'Kinetic');\n return `\\\n${chartData.tagKey}
\n${kineticSeries.reduce((tags, series) => tags.includes(series.tags.trim()) ? tags : tags.concat(series.tags.trim()), []).map((tag, i) => `\\\n\n 0 ? '' : 'checked'}/>\n \n
`).join('')}\n`;\n}\n\nexport default class MyassaysInteractiveChart extends MyassaysComponent {\n static get propTypes() {\n return {\n id: PropTypes.string.required,\n chartDataJson: PropTypes.json.default(null).observed,\n chartDataUrl: PropTypes.string.default(null).observed,\n analysisControlDataUrl: PropTypes.string.default(null).observed,\n flaggingEnabled: PropTypes.bool.default(true).observed,\n showEquations: PropTypes.bool.default(false),\n showTables: PropTypes.bool.default(false),\n showR2: PropTypes.bool.default(false),\n }\n }\n\n static get observedAttributes() {\n return PropTypes.getObserved(this.propTypes);\n }\n\n constructor() {\n super();\n\n this._state = new Model({\n chartData: null,\n chartDataJson: null,\n chartDataUrl: null,\n analysisControlDataUrl: null,\n });\n\n this._root = this.attachShadow({mode: 'open'});\n }\n\n attributeChangedCallback(attrName, oldVal, newVal) {\n if (this._hasBeenRendered) {\n if (attrName === 'chart-data-url' || attrName === 'chart-data-json') {\n this._root.getElementById('subset-selector').innerHTML = '';\n this._setDescription();\n }\n\n this._state.set(PropTypes.attributesToProps(this, attrName));\n }\n }\n\n connectedCallback() {\n this._props = PropTypes.attributesToProps(this);\n this._root.innerHTML = template(this._props);\n this._hasBeenRendered = true;\n this._state.addEventListener('change', evt => this._onStateChange(evt));\n this._state.set(this._props);\n this._enclosingPane = this.parentElement;\n while (this._enclosingPane.tagName.toLowerCase() !== 'mp-pane') {\n if (this._enclosingPane === document.body) {\n this._enclosingPane = null;\n break;\n }\n this._enclosingPane = this._enclosingPane.parentElement;\n }\n if (this._enclosingPane) {\n this._enclosingPane.addEventListener('paneresize', this._onPaneResize);\n }\n }\n\n disconnectedCallback() {\n delete this._chart;\n if (this._enclosingPane) {\n this._enclosingPane.removeEventListener('paneresize', this._onPaneResize);\n }\n }\n\n _onPaneResize = evt => {\n this.reflow();\n }\n\n _onStateChange(evt) {\n const { hasChanged } = evt.data;\n hasChanged('chartData', newValue => {\n newValue && this._renderChart(newValue);\n });\n hasChanged('chartDataJson', newValue => {\n if (newValue) {\n this._state.set({\n chartDataUrl: null,\n analysisControlDataUrl: null,\n chartData: newValue,\n });\n } else {\n this.removeAttribute('chart-data-json');\n }\n });\n hasChanged('chartDataUrl', newValue => {\n if (newValue) {\n this._state.set({\n chartDataJson: null,\n analysisControlDataUrl: null,\n });\n fetch(newValue).then(response => {\n response.json().then(json => {\n this._state.set({chartData: json});\n });\n });\n } else {\n this.removeAttribute('chart-data-url');\n }\n });\n hasChanged('analysisControlDataUrl', newValue => {\n if (newValue) {\n this._state.set({\n chartDataJson: null,\n chartDataUrl: null,\n });\n fetch(newValue).then(response => {\n response.text().then(text => {\n this._populateFromAnalysisControlXml(text);\n });\n });\n } else {\n this.removeAttribute('analysis-control-data-url');\n }\n });\n }\n\n _renderChart(chartData) {\n if (Highcharts) {\n if (Highcharts.version !== '4.2.5') {\n console.log(`WARNING! Highcharts version ${Highcharts.version} detected, this may not be compatible with the \"myassays-interactive-chart\" component which requires version 4.2.5.`);\n }\n this._chart = Highcharts.chart(this._root.querySelector('#chart-root'), chartData);\n this._renderFlags();\n const event = new CustomEvent('chartdatachange', {\n bubbles: true,\n });\n this.dispatchEvent(event);\n } else {\n setTimeout(() => this._renderChart(chartData), 100);\n }\n }\n\n reflow() {\n this._chart && this._chart.reflow();\n }\n\n populateFromJson(dataJson) {\n this._root.getElementById('subset-selector').innerHTML = '';\n this._setDescription();\n this._state.set({\n chartDataJson: null,\n chartDataUrl: null,\n analysisControlDataUrl: null,\n chartData: dataJson,\n });\n }\n\n populateFromAnalysisControlXml(dataXml) {\n this._state.set({\n chartDataJson: null,\n chartDataUrl: null,\n analysisControlDataUrl: null,\n });\n this._populateFromAnalysisControlXml(dataXml);\n }\n\n _setDescription(text) {\n this._root.getElementById('chart-description').innerHTML = text || '';\n }\n\n _populateFromAnalysisControlXml(dataXml) {\n const styleList = getComputedStyle(this);\n const cssVar = name => styleList.getPropertyValue(name);\n\n const data = Utils.xmlToObject(dataXml, {\n arrays: ['Axis', 'Series', 'Point', 'Content', 'Equation', 'GroupTable', 'Row', 'Col'],\n xmlTexts: ['Equation'],\n booleans: ['KineticSubsetSelection', 'Hidden', 'AllowFlagging', 'Flagged', 'LegendShow'],\n numbers: ['X', 'Y', 'Min', 'Max', 'ContainerIndex', 'MatrixIndex', 'PointIndex'],\n }).analysisControl.chart;\n\n const tableToHtml = (tableObject) => {\n return `${tableObject.header.col.map(item => `${item['#text']} | `).join('')}
${tableObject.row.map(row => `${row.col.map(item => `${item['#text']} | `).join('')}
`).join('')}
`;\n }\n\n const getDescription = (content = {}) => {\n const reportText = content.report && content.report.text && content.report.text['#text'] || '';\n const equations = this._state.get('showEquations') && content.report.equation && content.report.equation.map(item => `${item['#text']}`).join('') || '';\n const tables = this._state.get('showTables') && content.report.groupTable && content.report.groupTable.map(item => `${tableToHtml(item)}`).join('') || '';\n let r2 = '';\n if (this._state.get('showR2') && content.report.groupTable) {\n const goodnessTable = content.report.groupTable.find(item => item.id.indexOf('Goodness') >= 0);\n if (goodnessTable) {\n const r2Row = goodnessTable.row.find(item => item.col[0]['#text'] === 'R²');\n if (r2Row) {\n r2 = `R² = ${r2Row.col[1]['#text']}`;\n }\n }\n }\n if (reportText !== '') {\n return reportText;\n } else {\n if (equations !== '' && tables !== '') {\n return `${equations}
${tables}
`;\n } else {\n return equations + tables + r2;\n }\n }\n }\n\n this._pointData = {};\n this._seriesData = {};\n\n this._root.getElementById('subset-selector').innerHTML = data.tagSelection ? subsetSelectorTemplate(data) : '';\n this._setDescription();\n\n if (data.tagSelection) {\n if (data.tagSelection === 'Single') {\n this._descriptions = {};\n data.description && data.description.content && data.description.content.forEach(content => {\n this._descriptions[content.tag] = getDescription(content);\n });\n }\n Array.from(this._root.querySelectorAll('#subset-selector input')).forEach((input, i, allInputs) => {\n if (i === 0) {\n this._firstSubsetTag = input.id;\n if (data.tagSelection === 'Single') {\n this._setDescription(this._descriptions[input.id]);\n }\n }\n input.__wasChecked = input.checked;\n input.addEventListener('change', evt => {\n allInputs.forEach(item => {\n if (item.checked !== item.__wasChecked) {\n this._chart.series.forEach(s => {\n if (s.options.id === `kinetic-${item.id}` || s.options.id === `slope-${item.id}`) {\n s.setVisible(item.checked);\n }\n });\n item.__wasChecked = item.checked;\n }\n if (data.tagSelection === 'Single') {\n item.checked && this._setDescription(this._descriptions[item.id]);\n }\n });\n });\n });\n } else {\n data.description && data.description.content && this._setDescription(getDescription(data.description.content[0]));\n }\n\n const xAxisData = data.axis.find(item => item.id === 'X');\n const yAxisData = data.axis.find(item => item.id === 'Y');\n const plottableSeries = data.data.series.filter(item => ['InputPoints', 'Calculated', 'FitLine', 'Kinetic'].includes(item.type) || (item.type === undefined && item.tags !== undefined));\n\n function getColor(color) {\n return color.replace(/^#[0-9A-F]{2}([0-9A-F]{6})$/i, '#$1');\n }\n\n function pointOkOnLogAxis(point) {\n return (point.x > 0 || xAxisData.type !== 'Log') && (point.y > 0 || yAxisData.type !== 'Log');\n }\n\n const getMarker = series => {\n const appearance = series.appearance || {};\n const marker = appearance.marker ? appearance.marker.toLowerCase() : 'circle';\n const markerColour = appearance.markerColour || 'red';\n return {\n enabled: marker !== 'none',\n fillColor: getColor(markerColour),\n symbol: marker,\n lineColor: 'grey',\n lineWidth: getColor(markerColour) === '#FFFFFF' ? 1 : 0,\n }\n }\n\n const inputPointsSeries = series => {\n const seriesId = series.name;\n this._seriesData[seriesId] = {\n allowFlagging: series.allowFlagging !== false,\n matrixIndex: series.matrixIndex,\n pointsHaveIds: true,\n }\n return {\n id: seriesId,\n type: 'scatter',\n animation: false,\n name: series.name,\n visible: !series.hidden,\n enableMouseTracking: series.allowFlagging !== false,\n tooltip: {\n headerFormat: '',\n pointFormat: '{point.name}',\n },\n point: {\n events: series.allowFlagging === false ? {} : {\n click: this._onFlaggablePointClick,\n }\n },\n marker: getMarker(series),\n data: series.point.filter(pointOkOnLogAxis).map(point => {\n const pointId = `${series.name}-${point.id}`;\n this._pointData[pointId] = {\n id: pointId,\n seriesId,\n flagState: point.flagged,\n detail: {\n pointId: point.id,\n seriesName: series.name,\n label: point.label,\n x: point.x,\n y: point.y,\n pointIndex: point.pointIndex,\n containerIndex: point.containerIndex,\n matrixIndex: series.matrixIndex,\n }\n };\n return {\n id: pointId,\n x: point.x,\n y: point.y,\n name: point.label,\n }\n }),\n events: {\n show: this._onSeriesVisibilityChange,\n hide: this._onSeriesVisibilityChange,\n }\n };\n }\n\n const fitLineSeries = series => {\n return {\n id: series.name,\n type: 'spline',\n animation: false,\n name: series.name,\n visible: !series.hidden,\n color: cssVar('--ma-fit-line-color') || '#000000',\n marker: {\n enabled: false,\n },\n enableMouseTracking: false,\n data: series.point.map(point => ({\n x: point.x,\n y: point.y,\n })),\n }\n }\n\n const calcCurveSeries = series => {\n const numOfPoints = 100;\n const calculatedPoints = [];\n const { equation } = series;\n for (const [key, value] of Object.entries(equation[0])) {\n if (key.length === 1) {\n equation[0][key] = Number(value);\n }\n }\n let minX = xAxisData.min;\n let maxX = xAxisData.max;\n if (minX === undefined || maxX === undefined) {\n const standardSeries = plottableSeries.find(item => item.name === 'Standard');\n const referenceSeries = standardSeries ? [standardSeries] : plottableSeries.filter(item => item.type === 'InputPoints');\n const referencePoints = [].concat(...referenceSeries.map(item => item.point.filter(pointOkOnLogAxis).map(point => point.x)));\n minX = Math.min(...referencePoints);\n maxX = Math.max(...referencePoints);\n }\n const xAxisLog = xAxisData.type === 'Log';\n\n function calcY(x) {\n switch (equation[0].type) {\n case '4PL': {\n const {a, b, c, d} = equation[0];\n return d + ((a - d) / (1 + Math.pow(x / c, b)));\n }\n case '5PL': {\n const {a, b, c, d, m} = equation[0];\n return d + ((a - d) / Math.pow(1 + Math.pow(x / c, b), m));\n }\n case 'Linear Regression': {\n const {c, m} = equation[0];\n return m * x + c;\n }\n }\n }\n\n if (xAxisLog) {\n const minLog = Math.log10(minX);\n const maxLog = Math.log10(maxX);\n const inc = (maxLog - minLog) / (numOfPoints - 1);\n for (let i = 0; i < numOfPoints; i++) {\n const x = Math.pow(10, minLog + i * inc);\n calculatedPoints.push({x, y: calcY(x)});\n }\n } else {\n const inc = (maxX - minX) / (numOfPoints - 1);\n for (let i = 0; i < numOfPoints; i++) {\n const x = minX + i * inc;\n calculatedPoints.push({x, y: calcY(x)});\n }\n }\n\n const fitLineColor = (!series.appearance || series.appearance.lineColour === undefined) ? (cssVar('--ma-fit-line-color') || '#000000') : getColor(series.appearance.lineColour);\n\n return {\n id: series.name,\n type: 'spline',\n animation: false,\n name: series.name,\n visible: !series.hidden,\n color: fitLineColor,\n marker: {\n enabled: false,\n },\n enableMouseTracking: false,\n data: calculatedPoints,\n }\n }\n\n const kineticSeries = series => {\n const seriesId = `kinetic-${series.tags}`;\n this._seriesData[seriesId] = {\n allowFlagging: series.allowFlagging !== false,\n }\n return {\n id: seriesId,\n type: 'scatter',\n lineWidth: 2,\n animation: false,\n name: series.name,\n visible: series.tags === this._firstSubsetTag,\n color: !series.appearance || series.appearance.lineColour === undefined ? '#000000' : getColor(series.appearance.lineColour),\n enableMouseTracking: series.allowFlagging !== false,\n tooltip: {\n headerFormat: '',\n pointFormat: '{point.name}',\n },\n point: {\n events: series.allowFlagging === false ? {} : {\n click: this._onFlaggablePointClick,\n }\n },\n marker: getMarker(series),\n data: series.point.filter(pointOkOnLogAxis).map(point => {\n const pointId = `${seriesId}-${point.pointIndex}`;\n const pointName = `${series.name}, point ${point.pointIndex} (x: ${point.x}, y: ${point.y})`;\n this._pointData[pointId] = {\n id: pointId,\n seriesId,\n flagState: point.flagged,\n detail: {\n pointId: point.id,\n pointIndex: point.pointIndex,\n containerIndex: series.containerIndex,\n matrixIndex: series.matrixIndex,\n seriesName: series.name,\n label: pointName,\n x: point.x,\n y: point.y,\n }\n };\n return {\n id: pointId,\n x: point.x,\n y: point.y,\n name: pointName,\n }\n }),\n events: {\n show: this._onSeriesVisibilityChange,\n hide: this._onSeriesVisibilityChange,\n }\n };\n }\n\n const kineticMaxSlopeSeries = series => {\n const seriesId = `slope-${series.tags}`;\n return {\n id: seriesId,\n type: 'line',\n animation: false,\n name: series.name,\n visible: series.tags === this._firstSubsetTag,\n color: !series.appearance || series.appearance.lineColour === undefined ? '#000000' : getColor(series.appearance.lineColour),\n enableMouseTracking: false,\n marker: getMarker(series),\n data: series.point.filter(pointOkOnLogAxis).map(point => ({\n x: point.x,\n y: point.y,\n })),\n };\n }\n\n const getFlagSeries = () => {\n return {\n id: 'Flags',\n type: 'scatter',\n animation: false,\n name: 'Flags',\n showInLegend: false,\n marker: {\n enabled: true,\n symbol: `url(${flagSymbolUrl})`,\n },\n tooltip: {\n headerFormat: '',\n pointFormat: '{point.name}',\n },\n point: {\n events: {\n click: this._onFlaggablePointClick,\n },\n },\n data: [],\n };\n }\n\n function getLegend(data) {\n if (data.legendShow === false && data.customizableChartType !== 'DoseResponseCurves') {\n return {\n enabled: false,\n };\n }\n const common = {\n backgroundColor: cssVar('--ma-legend-background-color'),\n borderColor: cssVar('--ma-legend-border-color'),\n borderWidth: parseFloat(cssVar('--ma-legend-border-width')),\n borderRadius: parseFloat(cssVar('--ma-legend-border-radius')),\n itemStyle: {\n color: cssVar('--ma-legend-item-color'),\n fontSize: cssVar('--ma-legend-item-font-size'),\n fontWeight: cssVar('--ma-legend-item-font-weight'),\n },\n itemHoverStyle: {\n color: cssVar('--ma-legend-item-hover-color'),\n },\n itemHiddenStyle: {\n color: cssVar('--ma-legend-item-hidden-color'),\n },\n }\n switch (data.legendPosition) {\n case 'Top':\n return {\n ...common,\n verticalAlign: 'top',\n };\n case 'Bottom':\n return {\n ...common,\n verticalAlign: 'bottom',\n };\n case 'Right':\n return {\n ...common,\n layout: 'vertical',\n align: 'right',\n verticalAlign: 'middle',\n itemMarginTop: 4,\n itemMarginBottom: 4,\n }\n case 'Left':\n return {\n ...common,\n layout: 'vertical',\n align: 'left',\n verticalAlign: 'middle',\n itemMarginTop: 4,\n itemMarginBottom: 4,\n }\n }\n }\n\n const config = {\n chart: {\n animation: false,\n backgroundColor: cssVar('--ma-chart-background-color'),\n borderColor: cssVar('--ma-chart-border-color'),\n borderWidth: parseFloat(cssVar('--ma-chart-border-width')),\n borderRadius: parseFloat(cssVar('--ma-chart-border-radius')),\n plotBackgroundColor: cssVar('--ma-plot-background-color'),\n plotBorderColor: cssVar('--ma-plot-border-color'),\n plotBorderWidth: parseFloat(cssVar('--ma-plot-border-width')),\n zoomType: 'y',\n ignoreHiddenSeries: true,\n style: {\n fontFamily: cssVar('--ma-chart-font-family'),\n fontSize: cssVar('--ma-chart-font-size'),\n },\n resetZoomButton: {\n theme: {\n fill: cssVar('--ma-reset-zoom-fill-color'),\n stroke: cssVar('--ma-reset-zoom-stroke-color'),\n strokeWidth: parseFloat(cssVar('--ma-reset-zoom-stroke-width')),\n r: parseFloat(cssVar('--ma-reset-zoom-border-radius')),\n style: {\n fontFamily: cssVar('--ma-reset-zoom-font-family'),\n fontSize: cssVar('--ma-reset-zoom-font-size'),\n fontWeight: cssVar('--ma-reset-zoom-font-weight'),\n color: cssVar('--ma-reset-zoom-color'),\n },\n states: {\n hover: {\n fill: cssVar('--ma-reset-zoom-hover-fill-color'),\n stroke: cssVar('--ma-reset-zoom-hover-stroke-color'),\n style: {\n color: cssVar('--ma-reset-zoom-hover-color'),\n cursor: 'pointer',\n }\n },\n },\n }\n }\n },\n credits: {\n enabled: false,\n },\n title: {\n text: '',\n },\n legend: getLegend(data),\n xAxis: {\n type: {Log: 'logarithmic', Lin: 'linear'}[xAxisData.type],\n min: xAxisData.min === undefined ? null : xAxisData.min,\n max: xAxisData.max === undefined ? null : xAxisData.max,\n gridLineWidth: 1,\n gridLineColor: cssVar('--ma-axis-grid-line-color'),\n minorGridLineColor: cssVar('--ma-axis-minor-grid-line-color'),\n minorTickInterval: \"auto\",\n tickColor: cssVar('--ma-axis-tick-color'),\n minorTickColor: cssVar('--ma-axis-minor-tick-color'),\n lineColor: cssVar('--ma-axis-line-color'),\n title: {\n text: xAxisData.title,\n style: {\n fontWeight: cssVar('--ma-axis-title-font-weight'),\n fontSize: cssVar('--ma-axis-title-font-size'),\n color: cssVar('--ma-axis-title-color'),\n },\n },\n labels: {\n style: {\n fontWeight: cssVar('--ma-axis-label-font-weight'),\n fontSize: cssVar('--ma-axis-label-font-size'),\n color: cssVar('--ma-axis-label-color'),\n },\n },\n },\n yAxis: {\n type: {Log: 'logarithmic', Lin: 'linear'}[yAxisData.type],\n min: yAxisData.min === undefined ? null : yAxisData.min,\n max: yAxisData.max === undefined ? null : yAxisData.max,\n gridLineWidth: 1,\n gridLineColor: cssVar('--ma-axis-grid-line-color'),\n minorGridLineColor: cssVar('--ma-axis-minor-grid-line-color'),\n minorTickInterval: \"auto\",\n tickColor: cssVar('--ma-axis-tick-color'),\n minorTickColor: cssVar('--ma-axis-minor-tick-color'),\n lineColor: cssVar('--ma-axis-line-color'),\n title: {\n text: yAxisData.title,\n style: {\n fontWeight: cssVar('--ma-axis-title-font-weight'),\n fontSize: cssVar('--ma-axis-title-font-size'),\n color: cssVar('--ma-axis-title-color'),\n },\n },\n labels: {\n style: {\n fontWeight: cssVar('--ma-axis-label-font-weight'),\n fontSize: cssVar('--ma-axis-label-font-size'),\n color: cssVar('--ma-axis-label-color'),\n },\n },\n },\n tooltip: {\n positioner: (labelWidth, labelHeight, point) => {\n const { plotLeft, plotTop, chartBackground } = this._chart;\n let x = point.plotX + plotLeft - labelWidth/2;\n let y = point.plotY + plotTop + 14;\n x = Math.max(0, x);\n x = Math.min(chartBackground.width - labelWidth - 2, x);\n return {x, y};\n },\n style: {\n color: cssVar('--ma-tooltip-color'),\n fontSize: cssVar('--ma-tooltip-font-size'),\n fontWeight: cssVar('--ma-tooltip-font-weight'),\n padding: parseFloat(cssVar('--ma-tooltip-padding')),\n },\n },\n plotOptions: {\n scatter: {\n cursor: 'pointer',\n },\n },\n series: [...plottableSeries.map(series => {\n switch (series.type) {\n case 'Calculated': return calcCurveSeries(series);\n case 'FitLine': return fitLineSeries(series);\n case 'InputPoints': return inputPointsSeries(series);\n case 'Kinetic': return kineticSeries(series);\n default: return kineticMaxSlopeSeries(series);\n }\n }), getFlagSeries()],\n };\n\n this._state.set({chartData: config});\n }\n\n _renderFlags() {\n Object.keys(this._seriesData).forEach(seriesId => {\n const series = this._chart.get(seriesId);\n series && series.data && series.data.filter(this._getFlagState).forEach(point => {\n this._toggleFlagPoint(series, point, series.visible);\n });\n series && series.update({\n enableMouseTracking: series.visible,\n });\n });\n }\n\n _onSeriesVisibilityChange = evt => {\n const seriesId = evt.target.options.id;\n const series = this._chart.get(seriesId);\n series.data.filter(this._getFlagState).forEach(point => {\n this._toggleFlagPoint(series, point, series.visible);\n });\n series.update({\n enableMouseTracking: series.visible,\n });\n }\n\n _onFlaggablePointClick = evt => {\n if (!this._state.get('flaggingEnabled')) {\n return;\n }\n\n let { point } = evt;\n let { series } = point;\n let pointId = point.options.id;\n const isFlag = series.name === 'Flags';\n if (isFlag) {\n pointId = pointId.replace(/^Flags-/, '');\n point = this._chart.get(pointId);\n series = this._chart.get(this._pointData[pointId].seriesId);\n }\n const newFlagState = !this._getFlagState(point);\n this._setFlagState(series, point, newFlagState);\n const event = new CustomEvent('flagchange', {\n bubbles: true,\n detail: {\n ...this._pointData[pointId].detail,\n flagState: newFlagState,\n }\n });\n this.dispatchEvent(event);\n }\n\n _getFlagState = point => {\n const data = this._pointData[point.options.id || point.id];\n return !!data && data.flagState;\n }\n\n _setFlagState(series, point, newFlagState) {\n const data = this._pointData[point.options.id || point.id];\n if (data) {\n data.flagState = newFlagState;\n if (series.visible) {\n this._toggleFlagPoint(series, point, newFlagState);\n }\n }\n }\n\n _toggleFlagPoint(series, point, newFlagState) {\n const pointId = point.options.id || point.id;\n const flagSeries = this._chart.get('Flags');\n const flagId = `Flags-${pointId}`;\n const flagPoint = this._chart.get(flagId);\n if (!newFlagState && flagPoint) {\n const index = flagSeries.data.indexOf(flagPoint);\n flagSeries.removePoint(index);\n } else if (newFlagState && !flagPoint) {\n const data = [\n ...flagSeries.data.map(pointObject => ({\n marker: {\n enabled: true,\n },\n id: pointObject.id,\n name: pointObject.options.name,\n x: pointObject.x,\n y: pointObject.y,\n })),\n {\n marker: {\n enabled: true,\n },\n id: flagId,\n name: point.options.name,\n x: point.x,\n y: point.y,\n }\n ];\n data.sort((a, b) => {\n if (a.y > b.y) {\n return 1;\n } else if (a.y < b.y) {\n return -1;\n } else if (a.x > b.x) {\n return 1;\n } else if (a.x < b.x) {\n return -1;\n } else {\n return 0;\n }\n });\n flagSeries.setData(data);\n }\n }\n\n setFlagState(state, seriesName, arg1, arg2) {\n if (typeof state !== 'boolean') throw new Error(`invalid arguments`);\n if (typeof seriesName !== 'string') throw new Error(`invalid arguments`);\n const series = this._chart.series.find(series => series.name === seriesName);\n if (!series) throw new Error(`series [${seriesName}] not found`);\n let id, x, y, point;\n if (arg2 !== undefined) {\n if (typeof arg1 !== 'number' || typeof arg2 !== 'number') throw new Error(`invalid arguments`);\n y = arg2;\n x = arg1;\n point = series.data.find(pointObject => pointObject.x === x && pointObject.y === y);\n } else if (arg1 !== undefined) {\n if (typeof arg1 !== 'string' && typeof arg1 !== 'number') throw new Error(`invalid arguments`);\n id = arg1;\n point = this._chart.get(`${series.options.id}-${id}`);\n } else {\n throw new Error(`invalid arguments`);\n }\n if (point) {\n this._setFlagState(series, point, state);\n } else {\n throw new Error('point not found');\n }\n }\n\n getFlagged() {\n const flaggedPoints = [];\n Object.keys(this._pointData).forEach(id => {\n const data = this._pointData[id];\n if (data.flagState) {\n flaggedPoints.push({...data.detail});\n }\n });\n return flaggedPoints;\n }\n\n setFlagged(dataJson) {\n this.removeAllFlags();\n Object.keys(this._pointData).forEach(id => {\n const data = this._pointData[id];\n const detail = data.detail;\n if (!!dataJson.find(item => {\n if (item.pointId !== detail.pointId) return false;\n if (item.seriesName !== detail.seriesName) return false;\n if (item.label !== detail.label) return false;\n if (item.x !== detail.x) return false;\n if (item.y !== detail.y) return false;\n if (item.containerIndex !== detail.containerIndex) return false;\n if (item.matrixIndex !== detail.matrixIndex) return false;\n return true;\n })) {\n this.setFlagState(true, detail.seriesName, detail.pointId);\n }\n });\n }\n\n removeAllFlags() {\n Object.keys(this._pointData).forEach(id => {\n const data = this._pointData[id];\n data.flagState = false;\n });\n this._chart.get('Flags').setData([]);\n }\n}\n","import MyassaysInteractiveChart from './MyassaysInteractiveChart';\n\ncustomElements.define('myassays-interactive-chart', MyassaysInteractiveChart);\n\ndocument.write(`\n\n\n\n`);\n\nif (window.MyAssaysInteractiveChart !== undefined) {\n if (!(window.MyAssaysInteractiveChart instanceof Object)) {\n throw new Error('Could not create \"window.MyAssaysInteractiveChart\" namespace.');\n }\n} else {\n window.MyassaysInteractiveChart = {};\n}\nwindow.MyAssaysInteractiveChart = {\n ...window.MyAssaysInteractiveChart,\n getById: function (id) {\n const elem = document.getElementById(id);\n if (!elem) {\n throw `An instance of MyAssaysInteractiveChart with the id \"${id}\" could not be found.`;\n } else if (! elem instanceof MyassaysInteractiveChart) {\n throw `The element with the id \"${id}\" is not a MyassaysInteractiveChart.`;\n } else {\n return elem;\n }\n },\n populateFromJson: function (id, dataJson) {\n this.getById(id).populateFromJson(dataJson);\n },\n populateFromAnalysisControlXml: function (id, dataXml) {\n this.getById(id).populateFromAnalysisControlXml(dataXml);\n },\n getFlagged: function (id) {\n return this.getById(id).getFlagged();\n },\n removeAllFlags: function (id) {\n this.getById(id).removeAllFlags();\n },\n setFlagState: function (id, state, seriesName, arg1, arg2) {\n this.getById(id).setFlagState(state, seriesName, arg1, arg2);\n },\n setFlagged: function (id, dataJson) {\n this.getById(id).setFlagged(dataJson);\n }\n}\n"],"names":["cloneValue","value","Model","returnValue","key","_Model","initialAttributes","newAttributes","noTrigger","previousAttributes","newAttribute","evt","attributes","attributeName","handler","prevValue","newValue","changed","previousValue","__publicField","types","attributesToObject","result","i","attr","PropType","type","valueArrayOrObject","regExp","noHyphens","_PropTypes","propTypes","defaults","propType","observed","docLines","commentsExist","parts","item","element","singleAttrName","hash","required","props","attrObject","elementId","name","convertedValue","lowerCaseValue","testValue","testLookup","PropTypes","MyassaysComponent","makeException","ErrorType","message","options","toNumber","evenRound","x","censorNegativeZero","integerPart","n","sign","modulo","y","signMightNotMatch","createIntegerConversion","bitLength","unsigned","lowerBound","upperBound","twoToTheBitLength","twoToOneLessThanTheBitLength","createLongLongConversion","asBigIntN","xBigInt","exports","c","S","U","d","a","b","abByteLengthGetter","sabByteLengthGetter","isNonSharedArrayBuffer","isSharedArrayBuffer","isArrayBufferDetached","dvByteLengthGetter","typedArrayNameGetter","func","article","isObject","hasOwn","define","target","source","descriptor","newObjectInRealm","globalObject","object","ctorRegistry","initCtorRegistry","wrapperSymbol","implSymbol","sameObjectCaches","ctorRegistrySymbol","AsyncIteratorPrototype","getSameObject","wrapper","prop","creator","wrapperForImpl","impl","implForWrapper","tryWrapperForImpl","tryImplForWrapper","iterInternalSymbol","isArrayIndexPropName","P","s","byteLengthGetter","isArrayBuffer","iteratorResult","kind","supportsPropertyIndex","supportedPropertyIndices","supportsPropertyName","supportedPropertyNames","indexedGet","indexedSetNew","indexedSetExisting","namedGet","namedSetNew","namedSetExisting","namedDelete","asyncIteratorNext","asyncIteratorReturn","asyncIteratorInit","asyncIteratorEOI","module","namespaces","idlUtils","require$$0","HTML_NS","require$$1","HTMLCollectionImpl_1","args","privateData","index","snapshot","id","conversions","utils","interfaceName","Impl","context","makeWrapper","newTarget","proto","makeProxy","proxyHandler","proxyHandlerCache","ProxyHandler","constructorArgs","exposed","globalNames","globalName","HTMLCollection","esValue","curArg","receiver","desc","getter","parent","keys","ignoreNamedProps","indexedValue","namedValue","V","ownDesc","existingDesc","valueDesc","require$$2","maxInt","base","tMin","tMax","skew","damp","initialBias","initialN","delimiter","regexPunycode","regexNonASCII","regexSeparators","errors","baseMinusTMin","floor","stringFromCharCode","error","map","array","callback","length","mapDomain","domain","labels","encoded","ucs2decode","string","output","counter","extra","ucs2encode","codePoints","basicToDigit","codePoint","digitToBasic","digit","flag","adapt","delta","numPoints","firstTime","k","decode","input","inputLength","bias","basic","j","oldi","w","t","baseMinusT","out","encode","currentValue","basicLength","handledCPCount","m","handledCPCountPlusOne","q","qMinusT","toUnicode","toASCII","regexes","statusMapping","punycode","mappingTable","STATUS_MAPPING","require$$3","containsNonASCII","str","findStatus","val","useSTD3ASCIIRules","start","end","mid","min","max","mapChars","domainName","processingOption","hasError","processed","ch","status","mapping","validateLabel","label","checkHyphens","checkBidi","checkJoiners","last","next","test","rtl","isBidiDomain","processing","isBidi","origLabel","curProcessing","verifyDNSLength","l","total","tr46","isASCIIDigit","isASCIIAlpha","isASCIIAlphanumeric","isASCIIHex","infra","utf8Encoder","utf8Decoder","utf8Encode","utf8DecodeWithoutBOM","bytes","encoding","p","char","percentEncode","hex","percentDecodeBytes","outputIndex","byte","bytePoint","percentDecodeString","isC0ControlPercentEncode","extraFragmentPercentEncodeSet","isFragmentPercentEncode","extraQueryPercentEncodeSet","isQueryPercentEncode","isSpecialQueryPercentEncode","extraPathPercentEncodeSet","isPathPercentEncode","extraUserinfoPercentEncodeSet","isUserinfoPercentEncode","extraComponentPercentEncodeSet","isComponentPercentEncode","extraURLEncodedPercentEncodeSet","isURLEncodedPercentEncode","utf8PercentEncodeCodePointInternal","percentEncodePredicate","utf8PercentEncodeCodePoint","utf8PercentEncodeString","spaceAsPlus","percentEncoding","specialSchemes","failure","countSymbols","at","idx","isSingleDot","buffer","isDoubleDot","isWindowsDriveLetterCodePoints","cp1","cp2","isWindowsDriveLetterString","isNormalizedWindowsDriveLetterString","containsForbiddenHostCodePoint","containsForbiddenDomainCodePoint","isSpecialScheme","scheme","isSpecial","url","isNotSpecial","defaultPort","parseIPv4Number","R","regex","parseIPv4","numbers","part","ipv4","serializeIPv4","address","parseIPv6","pieceIndex","compress","pointer","numbersSeen","ipv4Piece","number","swaps","temp","serializeIPv6","findLongestZeroSequence","ignore0","parseHost","isNotSpecialArg","parseOpaqueHost","asciiDomain","domainToASCII","endsInANumber","arr","maxIdx","maxLen","currStart","currLen","serializeHost","host","beStrict","trimControlChars","trimTabAndNewline","shortenPath","path","isNormalizedWindowsDriveLetter","includesCredentials","cannotHaveAUsernamePasswordPort","hasAnOpaquePath","URLStateMachine","encodingOverride","stateOverride","res","cStr","ret","len","encodedCodePoints","port","fileOtherwiseCodePoints","startsWithWindowsDriveLetter","queryPercentEncodePredicate","serializeURL","excludeFragment","serializePath","serializeOrigin","tuple","segment","usm","username","password","integer","parseUrlencoded","sequences","strictlySplitByteSequence","indexOfEqual","replaceByteInByteSequence","nameString","valueString","parseUrlencodedString","serializeUrlencoded","tuples","buf","cp","list","from","to","urlencoded","_Function","invokeTheCallbackFunction","thisArg","callResult","URLSearchParamsImpl_1","doNotStripQMark","init","pair","serializedQuery","found","Function","iteratorPrototype","iterator","URLSearchParams","tmp","nextItem","typedKey","typedValue","pairs","internal","values","URLImpl_1","parsedBase","parsedURL","query","v","URL","webidl2jsWrapper","urlStateMachine","sharedGlobalObject","whatwgUrl","SymbolTreeNode_1","parentNode","TreePosition","TREE","ROOT","NEXT","ITERATE_FUNC","TreeIterator$1","tree","root","firstResult","iterateFunction","iterateFunc","TreeIterator","TreeIterator_1","SymbolTreeNode","returnTrue","reverseArrayIndex","reverseIndex","SymbolTree$1","description","node","lastChild","current","treeRoot","previousSibling","firstChild","nextSibling","filter","ancestor","reverse","child","childNode","currentIndex","cachedUpToNode","left","right","leftAncestors","leftAncestor","rightAncestors","rightAncestor","commonAncestorIndex","ancestorsMinLength","leftIndex","removeObject","removeNode","prevNode","nextNode","referenceObject","newObject","referenceNode","newNode","SymbolTree_1","SymbolTree","internalConstants","whatwgURL","domSymbolTree","SYMBOL_TREE_POSITION","fileName","pathname","utils$2","properties","propDesc","Constructor","propertyMap","property","addConstant","memoizeQueryTypeCounter","fn","isValidAbsoluteURL","first","second","secondResult","compare","Canvas","require$$4","Utils","times","css","cssString","classNames","className","stop","step","range","num1","num2","num3","data","xmlString","arrays","exclude","booleans","xmlTexts","preserveCapitals","formatName","convertType","parser","dom","parseNode","xmlNode","nodeName","jsonNode","existing","attribute","action","endAnimationCallback","startWidth","startHeight","childElement","childRect","endWidth","endHeight","styleWidth","styleHeight","childStyleWidth","childStyleHeight","styleOverflow","referenceElement","PositionInfo","dataObject","dragController","e","startHandler","event","positionInfo","controller","moveHandler","endHandler","exceptionHandler","popupElement","dragHandleElement","startMousePos","startPopupPos","handlers","currentMousePos","flagSymbol","flagSymbolUrl","template","subsetSelectorTemplate","chartData","kineticSeries","tags","series","tag","MyassaysInteractiveChart","seriesId","point","pointId","newFlagState","attrName","oldVal","newVal","hasChanged","response","json","text","dataJson","dataXml","styleList","cssVar","tableToHtml","tableObject","row","getDescription","content","reportText","equations","tables","r2","goodnessTable","r2Row","allInputs","xAxisData","yAxisData","plottableSeries","getColor","color","pointOkOnLogAxis","getMarker","appearance","marker","markerColour","inputPointsSeries","fitLineSeries","calcCurveSeries","calculatedPoints","equation","minX","maxX","standardSeries","referenceSeries","referencePoints","xAxisLog","calcY","minLog","inc","fitLineColor","pointName","kineticMaxSlopeSeries","getFlagSeries","getLegend","common","config","labelWidth","labelHeight","plotLeft","plotTop","chartBackground","flagSeries","flagId","flagPoint","pointObject","state","seriesName","arg1","arg2","flaggedPoints","detail","elem"],"mappings":"6MACA,SAASA,EAAWC,EAAO,CACvB,GAAIA,aAAiBC,GACjB,OAAOD,EAAM,WACV,GAAIA,aAAiB,MACxB,OAAOA,EAAM,IAAID,CAAU,EACxB,GAAIC,aAAiB,OAAQ,CAChC,MAAME,EAAc,CAAA,EACpB,cAAO,KAAKF,CAAK,EAAE,QAAQG,GAAO,CAC9BD,EAAYC,CAAG,EAAIJ,EAAWC,EAAMG,CAAG,CAAC,CACpD,CAAS,EACMD,CACf,KACQ,QAAOF,CAEf,CAEe,MAAMI,GAAN,MAAMA,WAAc,WAAY,CAC3C,YAAYC,EAAoB,GAAI,CAChC,QACA,KAAK,oBAAsB,GAC3B,KAAK,YAAc,CAAC,GAAG,KAAK,YAAY,SAAU,GAAGA,CAAiB,CACzE,CAED,IAAIC,EAAeC,EAAY,GAAO,CAClC,KAAK,oBAAsB,CAAC,GAAG,KAAK,WAAW,EAC/C,MAAMC,EAAqB,CAAC,GAAG,KAAK,WAAW,EAc/C,GAbA,OAAO,KAAKF,CAAa,EAAE,QAAQH,GAAO,CACtC,MAAMM,EAAeH,EAAcH,CAAG,EA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