1 |
- {"ast":null,"code":"\"use strict\";\n\nvar __extends = this && this.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __assign = this && this.__assign || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __values = this && this.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nvar __read = this && this.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n return ar;\n};\nvar __spreadArray = this && this.__spreadArray || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.liteAdaptor = exports.LiteAdaptor = exports.LiteBase = void 0;\nvar DOMAdaptor_js_1 = require(\"../core/DOMAdaptor.js\");\nvar NodeMixin_js_1 = require(\"./NodeMixin.js\");\nvar Document_js_1 = require(\"./lite/Document.js\");\nvar Element_js_1 = require(\"./lite/Element.js\");\nvar Text_js_1 = require(\"./lite/Text.js\");\nvar Window_js_1 = require(\"./lite/Window.js\");\nvar Parser_js_1 = require(\"./lite/Parser.js\");\nvar Styles_js_1 = require(\"../util/Styles.js\");\nvar LiteBase = function (_super) {\n __extends(LiteBase, _super);\n function LiteBase() {\n var _this = _super.call(this) || this;\n _this.parser = new Parser_js_1.LiteParser();\n _this.window = new Window_js_1.LiteWindow();\n return _this;\n }\n LiteBase.prototype.parse = function (text, format) {\n return this.parser.parseFromString(text, format, this);\n };\n LiteBase.prototype.create = function (kind, _ns) {\n if (_ns === void 0) {\n _ns = null;\n }\n return new Element_js_1.LiteElement(kind);\n };\n LiteBase.prototype.text = function (text) {\n return new Text_js_1.LiteText(text);\n };\n LiteBase.prototype.comment = function (text) {\n return new Text_js_1.LiteComment(text);\n };\n LiteBase.prototype.createDocument = function () {\n return new Document_js_1.LiteDocument();\n };\n LiteBase.prototype.head = function (doc) {\n return doc.head;\n };\n LiteBase.prototype.body = function (doc) {\n return doc.body;\n };\n LiteBase.prototype.root = function (doc) {\n return doc.root;\n };\n LiteBase.prototype.doctype = function (doc) {\n return doc.type;\n };\n LiteBase.prototype.tags = function (node, name, ns) {\n if (ns === void 0) {\n ns = null;\n }\n var stack = [];\n var tags = [];\n if (ns) {\n return tags;\n }\n var n = node;\n while (n) {\n var kind = n.kind;\n if (kind !== '#text' && kind !== '#comment') {\n n = n;\n if (kind === name) {\n tags.push(n);\n }\n if (n.children.length) {\n stack = n.children.concat(stack);\n }\n }\n n = stack.shift();\n }\n return tags;\n };\n LiteBase.prototype.elementById = function (node, id) {\n var stack = [];\n var n = node;\n while (n) {\n if (n.kind !== '#text' && n.kind !== '#comment') {\n n = n;\n if (n.attributes['id'] === id) {\n return n;\n }\n if (n.children.length) {\n stack = n.children.concat(stack);\n }\n }\n n = stack.shift();\n }\n return null;\n };\n LiteBase.prototype.elementsByClass = function (node, name) {\n var stack = [];\n var tags = [];\n var n = node;\n while (n) {\n if (n.kind !== '#text' && n.kind !== '#comment') {\n n = n;\n var classes = (n.attributes['class'] || '').trim().split(/ +/);\n if (classes.includes(name)) {\n tags.push(n);\n }\n if (n.children.length) {\n stack = n.children.concat(stack);\n }\n }\n n = stack.shift();\n }\n return tags;\n };\n LiteBase.prototype.getElements = function (nodes, document) {\n var e_1, _a;\n var containers = [];\n var body = this.body(document);\n try {\n for (var nodes_1 = __values(nodes), nodes_1_1 = nodes_1.next(); !nodes_1_1.done; nodes_1_1 = nodes_1.next()) {\n var node = nodes_1_1.value;\n if (typeof node === 'string') {\n if (node.charAt(0) === '#') {\n var n = this.elementById(body, node.slice(1));\n if (n) {\n containers.push(n);\n }\n } else if (node.charAt(0) === '.') {\n containers = containers.concat(this.elementsByClass(body, node.slice(1)));\n } else if (node.match(/^[-a-z][-a-z0-9]*$/i)) {\n containers = containers.concat(this.tags(body, node));\n }\n } else if (Array.isArray(node)) {\n containers = containers.concat(node);\n } else if (node instanceof this.window.NodeList || node instanceof this.window.HTMLCollection) {\n containers = containers.concat(node.nodes);\n } else {\n containers.push(node);\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (nodes_1_1 && !nodes_1_1.done && (_a = nodes_1.return)) _a.call(nodes_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n return containers;\n };\n LiteBase.prototype.contains = function (container, node) {\n while (node && node !== container) {\n node = this.parent(node);\n }\n return !!node;\n };\n LiteBase.prototype.parent = function (node) {\n return node.parent;\n };\n LiteBase.prototype.childIndex = function (node) {\n return node.parent ? node.parent.children.findIndex(function (n) {\n return n === node;\n }) : -1;\n };\n LiteBase.prototype.append = function (node, child) {\n if (child.parent) {\n this.remove(child);\n }\n node.children.push(child);\n child.parent = node;\n return child;\n };\n LiteBase.prototype.insert = function (nchild, ochild) {\n if (nchild.parent) {\n this.remove(nchild);\n }\n if (ochild && ochild.parent) {\n var i = this.childIndex(ochild);\n ochild.parent.children.splice(i, 0, nchild);\n nchild.parent = ochild.parent;\n }\n };\n LiteBase.prototype.remove = function (child) {\n var i = this.childIndex(child);\n if (i >= 0) {\n child.parent.children.splice(i, 1);\n }\n child.parent = null;\n return child;\n };\n LiteBase.prototype.replace = function (nnode, onode) {\n var i = this.childIndex(onode);\n if (i >= 0) {\n onode.parent.children[i] = nnode;\n nnode.parent = onode.parent;\n onode.parent = null;\n }\n return onode;\n };\n LiteBase.prototype.clone = function (node) {\n var _this = this;\n var nnode = new Element_js_1.LiteElement(node.kind);\n nnode.attributes = __assign({}, node.attributes);\n nnode.children = node.children.map(function (n) {\n if (n.kind === '#text') {\n return new Text_js_1.LiteText(n.value);\n } else if (n.kind === '#comment') {\n return new Text_js_1.LiteComment(n.value);\n } else {\n var m = _this.clone(n);\n m.parent = nnode;\n return m;\n }\n });\n return nnode;\n };\n LiteBase.prototype.split = function (node, n) {\n var text = new Text_js_1.LiteText(node.value.slice(n));\n node.value = node.value.slice(0, n);\n node.parent.children.splice(this.childIndex(node) + 1, 0, text);\n text.parent = node.parent;\n return text;\n };\n LiteBase.prototype.next = function (node) {\n var parent = node.parent;\n if (!parent) return null;\n var i = this.childIndex(node) + 1;\n return i >= 0 && i < parent.children.length ? parent.children[i] : null;\n };\n LiteBase.prototype.previous = function (node) {\n var parent = node.parent;\n if (!parent) return null;\n var i = this.childIndex(node) - 1;\n return i >= 0 ? parent.children[i] : null;\n };\n LiteBase.prototype.firstChild = function (node) {\n return node.children[0];\n };\n LiteBase.prototype.lastChild = function (node) {\n return node.children[node.children.length - 1];\n };\n LiteBase.prototype.childNodes = function (node) {\n return __spreadArray([], __read(node.children), false);\n };\n LiteBase.prototype.childNode = function (node, i) {\n return node.children[i];\n };\n LiteBase.prototype.kind = function (node) {\n return node.kind;\n };\n LiteBase.prototype.value = function (node) {\n return node.kind === '#text' ? node.value : node.kind === '#comment' ? node.value.replace(/^<!(--)?((?:.|\\n)*)\\1>$/, '$2') : '';\n };\n LiteBase.prototype.textContent = function (node) {\n var _this = this;\n return node.children.reduce(function (s, n) {\n return s + (n.kind === '#text' ? n.value : n.kind === '#comment' ? '' : _this.textContent(n));\n }, '');\n };\n LiteBase.prototype.innerHTML = function (node) {\n return this.parser.serializeInner(this, node);\n };\n LiteBase.prototype.outerHTML = function (node) {\n return this.parser.serialize(this, node);\n };\n LiteBase.prototype.serializeXML = function (node) {\n return this.parser.serialize(this, node, true);\n };\n LiteBase.prototype.setAttribute = function (node, name, value, ns) {\n if (ns === void 0) {\n ns = null;\n }\n if (typeof value !== 'string') {\n value = String(value);\n }\n if (ns) {\n name = ns.replace(/.*\\//, '') + ':' + name.replace(/^.*:/, '');\n }\n node.attributes[name] = value;\n if (name === 'style') {\n node.styles = null;\n }\n };\n LiteBase.prototype.getAttribute = function (node, name) {\n return node.attributes[name];\n };\n LiteBase.prototype.removeAttribute = function (node, name) {\n delete node.attributes[name];\n };\n LiteBase.prototype.hasAttribute = function (node, name) {\n return node.attributes.hasOwnProperty(name);\n };\n LiteBase.prototype.allAttributes = function (node) {\n var e_2, _a;\n var attributes = node.attributes;\n var list = [];\n try {\n for (var _b = __values(Object.keys(attributes)), _c = _b.next(); !_c.done; _c = _b.next()) {\n var name_1 = _c.value;\n list.push({\n name: name_1,\n value: attributes[name_1]\n });\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally {\n if (e_2) throw e_2.error;\n }\n }\n return list;\n };\n LiteBase.prototype.addClass = function (node, name) {\n var classes = (node.attributes['class'] || '').split(/ /);\n if (!classes.find(function (n) {\n return n === name;\n })) {\n classes.push(name);\n node.attributes['class'] = classes.join(' ');\n }\n };\n LiteBase.prototype.removeClass = function (node, name) {\n var classes = (node.attributes['class'] || '').split(/ /);\n var i = classes.findIndex(function (n) {\n return n === name;\n });\n if (i >= 0) {\n classes.splice(i, 1);\n node.attributes['class'] = classes.join(' ');\n }\n };\n LiteBase.prototype.hasClass = function (node, name) {\n var classes = (node.attributes['class'] || '').split(/ /);\n return !!classes.find(function (n) {\n return n === name;\n });\n };\n LiteBase.prototype.setStyle = function (node, name, value) {\n if (!node.styles) {\n node.styles = new Styles_js_1.Styles(this.getAttribute(node, 'style'));\n }\n node.styles.set(name, value);\n node.attributes['style'] = node.styles.cssText;\n };\n LiteBase.prototype.getStyle = function (node, name) {\n if (!node.styles) {\n var style = this.getAttribute(node, 'style');\n if (!style) {\n return '';\n }\n node.styles = new Styles_js_1.Styles(style);\n }\n return node.styles.get(name);\n };\n LiteBase.prototype.allStyles = function (node) {\n return this.getAttribute(node, 'style');\n };\n LiteBase.prototype.insertRules = function (node, rules) {\n node.children = [this.text(rules.join('\\n\\n') + '\\n\\n' + this.textContent(node))];\n };\n LiteBase.prototype.fontSize = function (_node) {\n return 0;\n };\n LiteBase.prototype.fontFamily = function (_node) {\n return '';\n };\n LiteBase.prototype.nodeSize = function (_node, _em, _local) {\n if (_em === void 0) {\n _em = 1;\n }\n if (_local === void 0) {\n _local = null;\n }\n return [0, 0];\n };\n LiteBase.prototype.nodeBBox = function (_node) {\n return {\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n };\n };\n return LiteBase;\n}(DOMAdaptor_js_1.AbstractDOMAdaptor);\nexports.LiteBase = LiteBase;\nvar LiteAdaptor = function (_super) {\n __extends(LiteAdaptor, _super);\n function LiteAdaptor() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n return LiteAdaptor;\n}((0, NodeMixin_js_1.NodeMixin)(LiteBase));\nexports.LiteAdaptor = LiteAdaptor;\nfunction liteAdaptor(options) {\n if (options === void 0) {\n options = null;\n }\n return new LiteAdaptor(null, options);\n}\nexports.liteAdaptor = liteAdaptor;","map":{"version":3,"names":["__extends","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","TypeError","String","__","constructor","create","__assign","assign","t","s","i","n","arguments","length","apply","__values","o","Symbol","iterator","m","next","value","done","__read","r","ar","e","push","error","__spreadArray","to","from","pack","l","slice","concat","defineProperty","exports","liteAdaptor","LiteAdaptor","LiteBase","DOMAdaptor_js_1","require","NodeMixin_js_1","Document_js_1","Element_js_1","Text_js_1","Window_js_1","Parser_js_1","Styles_js_1","_super","_this","parser","LiteParser","window","LiteWindow","parse","text","format","parseFromString","kind","_ns","LiteElement","LiteText","comment","LiteComment","createDocument","LiteDocument","head","doc","body","root","doctype","type","tags","node","name","ns","stack","children","shift","elementById","id","attributes","elementsByClass","classes","trim","split","includes","getElements","nodes","document","e_1","_a","containers","nodes_1","nodes_1_1","charAt","match","isArray","NodeList","HTMLCollection","e_1_1","return","contains","container","parent","childIndex","findIndex","append","child","remove","insert","nchild","ochild","splice","replace","nnode","onode","clone","map","previous","firstChild","lastChild","childNodes","childNode","textContent","reduce","innerHTML","serializeInner","outerHTML","serialize","serializeXML","setAttribute","styles","getAttribute","removeAttribute","hasAttribute","allAttributes","e_2","list","_b","keys","_c","name_1","e_2_1","addClass","find","join","removeClass","hasClass","setStyle","Styles","set","cssText","getStyle","style","get","allStyles","insertRules","rules","fontSize","_node","fontFamily","nodeSize","_em","_local","nodeBBox","left","right","top","bottom","AbstractDOMAdaptor","NodeMixin","options"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/mathjax-full/js/adaptors/liteAdaptor.js"],"sourcesContent":["\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.liteAdaptor = exports.LiteAdaptor = exports.LiteBase = void 0;\nvar DOMAdaptor_js_1 = require(\"../core/DOMAdaptor.js\");\nvar NodeMixin_js_1 = require(\"./NodeMixin.js\");\nvar Document_js_1 = require(\"./lite/Document.js\");\nvar Element_js_1 = require(\"./lite/Element.js\");\nvar Text_js_1 = require(\"./lite/Text.js\");\nvar Window_js_1 = require(\"./lite/Window.js\");\nvar Parser_js_1 = require(\"./lite/Parser.js\");\nvar Styles_js_1 = require(\"../util/Styles.js\");\nvar LiteBase = (function (_super) {\n __extends(LiteBase, _super);\n function LiteBase() {\n var _this = _super.call(this) || this;\n _this.parser = new Parser_js_1.LiteParser();\n _this.window = new Window_js_1.LiteWindow();\n return _this;\n }\n LiteBase.prototype.parse = function (text, format) {\n return this.parser.parseFromString(text, format, this);\n };\n LiteBase.prototype.create = function (kind, _ns) {\n if (_ns === void 0) { _ns = null; }\n return new Element_js_1.LiteElement(kind);\n };\n LiteBase.prototype.text = function (text) {\n return new Text_js_1.LiteText(text);\n };\n LiteBase.prototype.comment = function (text) {\n return new Text_js_1.LiteComment(text);\n };\n LiteBase.prototype.createDocument = function () {\n return new Document_js_1.LiteDocument();\n };\n LiteBase.prototype.head = function (doc) {\n return doc.head;\n };\n LiteBase.prototype.body = function (doc) {\n return doc.body;\n };\n LiteBase.prototype.root = function (doc) {\n return doc.root;\n };\n LiteBase.prototype.doctype = function (doc) {\n return doc.type;\n };\n LiteBase.prototype.tags = function (node, name, ns) {\n if (ns === void 0) { ns = null; }\n var stack = [];\n var tags = [];\n if (ns) {\n return tags;\n }\n var n = node;\n while (n) {\n var kind = n.kind;\n if (kind !== '#text' && kind !== '#comment') {\n n = n;\n if (kind === name) {\n tags.push(n);\n }\n if (n.children.length) {\n stack = n.children.concat(stack);\n }\n }\n n = stack.shift();\n }\n return tags;\n };\n LiteBase.prototype.elementById = function (node, id) {\n var stack = [];\n var n = node;\n while (n) {\n if (n.kind !== '#text' && n.kind !== '#comment') {\n n = n;\n if (n.attributes['id'] === id) {\n return n;\n }\n if (n.children.length) {\n stack = n.children.concat(stack);\n }\n }\n n = stack.shift();\n }\n return null;\n };\n LiteBase.prototype.elementsByClass = function (node, name) {\n var stack = [];\n var tags = [];\n var n = node;\n while (n) {\n if (n.kind !== '#text' && n.kind !== '#comment') {\n n = n;\n var classes = (n.attributes['class'] || '').trim().split(/ +/);\n if (classes.includes(name)) {\n tags.push(n);\n }\n if (n.children.length) {\n stack = n.children.concat(stack);\n }\n }\n n = stack.shift();\n }\n return tags;\n };\n LiteBase.prototype.getElements = function (nodes, document) {\n var e_1, _a;\n var containers = [];\n var body = this.body(document);\n try {\n for (var nodes_1 = __values(nodes), nodes_1_1 = nodes_1.next(); !nodes_1_1.done; nodes_1_1 = nodes_1.next()) {\n var node = nodes_1_1.value;\n if (typeof (node) === 'string') {\n if (node.charAt(0) === '#') {\n var n = this.elementById(body, node.slice(1));\n if (n) {\n containers.push(n);\n }\n }\n else if (node.charAt(0) === '.') {\n containers = containers.concat(this.elementsByClass(body, node.slice(1)));\n }\n else if (node.match(/^[-a-z][-a-z0-9]*$/i)) {\n containers = containers.concat(this.tags(body, node));\n }\n }\n else if (Array.isArray(node)) {\n containers = containers.concat(node);\n }\n else if (node instanceof this.window.NodeList || node instanceof this.window.HTMLCollection) {\n containers = containers.concat(node.nodes);\n }\n else {\n containers.push(node);\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (nodes_1_1 && !nodes_1_1.done && (_a = nodes_1.return)) _a.call(nodes_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n return containers;\n };\n LiteBase.prototype.contains = function (container, node) {\n while (node && node !== container) {\n node = this.parent(node);\n }\n return !!node;\n };\n LiteBase.prototype.parent = function (node) {\n return node.parent;\n };\n LiteBase.prototype.childIndex = function (node) {\n return (node.parent ? node.parent.children.findIndex(function (n) { return n === node; }) : -1);\n };\n LiteBase.prototype.append = function (node, child) {\n if (child.parent) {\n this.remove(child);\n }\n node.children.push(child);\n child.parent = node;\n return child;\n };\n LiteBase.prototype.insert = function (nchild, ochild) {\n if (nchild.parent) {\n this.remove(nchild);\n }\n if (ochild && ochild.parent) {\n var i = this.childIndex(ochild);\n ochild.parent.children.splice(i, 0, nchild);\n nchild.parent = ochild.parent;\n }\n };\n LiteBase.prototype.remove = function (child) {\n var i = this.childIndex(child);\n if (i >= 0) {\n child.parent.children.splice(i, 1);\n }\n child.parent = null;\n return child;\n };\n LiteBase.prototype.replace = function (nnode, onode) {\n var i = this.childIndex(onode);\n if (i >= 0) {\n onode.parent.children[i] = nnode;\n nnode.parent = onode.parent;\n onode.parent = null;\n }\n return onode;\n };\n LiteBase.prototype.clone = function (node) {\n var _this = this;\n var nnode = new Element_js_1.LiteElement(node.kind);\n nnode.attributes = __assign({}, node.attributes);\n nnode.children = node.children.map(function (n) {\n if (n.kind === '#text') {\n return new Text_js_1.LiteText(n.value);\n }\n else if (n.kind === '#comment') {\n return new Text_js_1.LiteComment(n.value);\n }\n else {\n var m = _this.clone(n);\n m.parent = nnode;\n return m;\n }\n });\n return nnode;\n };\n LiteBase.prototype.split = function (node, n) {\n var text = new Text_js_1.LiteText(node.value.slice(n));\n node.value = node.value.slice(0, n);\n node.parent.children.splice(this.childIndex(node) + 1, 0, text);\n text.parent = node.parent;\n return text;\n };\n LiteBase.prototype.next = function (node) {\n var parent = node.parent;\n if (!parent)\n return null;\n var i = this.childIndex(node) + 1;\n return (i >= 0 && i < parent.children.length ? parent.children[i] : null);\n };\n LiteBase.prototype.previous = function (node) {\n var parent = node.parent;\n if (!parent)\n return null;\n var i = this.childIndex(node) - 1;\n return (i >= 0 ? parent.children[i] : null);\n };\n LiteBase.prototype.firstChild = function (node) {\n return node.children[0];\n };\n LiteBase.prototype.lastChild = function (node) {\n return node.children[node.children.length - 1];\n };\n LiteBase.prototype.childNodes = function (node) {\n return __spreadArray([], __read(node.children), false);\n };\n LiteBase.prototype.childNode = function (node, i) {\n return node.children[i];\n };\n LiteBase.prototype.kind = function (node) {\n return node.kind;\n };\n LiteBase.prototype.value = function (node) {\n return (node.kind === '#text' ? node.value :\n node.kind === '#comment' ? node.value.replace(/^<!(--)?((?:.|\\n)*)\\1>$/, '$2') : '');\n };\n LiteBase.prototype.textContent = function (node) {\n var _this = this;\n return node.children.reduce(function (s, n) {\n return s + (n.kind === '#text' ? n.value :\n n.kind === '#comment' ? '' : _this.textContent(n));\n }, '');\n };\n LiteBase.prototype.innerHTML = function (node) {\n return this.parser.serializeInner(this, node);\n };\n LiteBase.prototype.outerHTML = function (node) {\n return this.parser.serialize(this, node);\n };\n LiteBase.prototype.serializeXML = function (node) {\n return this.parser.serialize(this, node, true);\n };\n LiteBase.prototype.setAttribute = function (node, name, value, ns) {\n if (ns === void 0) { ns = null; }\n if (typeof value !== 'string') {\n value = String(value);\n }\n if (ns) {\n name = ns.replace(/.*\\//, '') + ':' + name.replace(/^.*:/, '');\n }\n node.attributes[name] = value;\n if (name === 'style') {\n node.styles = null;\n }\n };\n LiteBase.prototype.getAttribute = function (node, name) {\n return node.attributes[name];\n };\n LiteBase.prototype.removeAttribute = function (node, name) {\n delete node.attributes[name];\n };\n LiteBase.prototype.hasAttribute = function (node, name) {\n return node.attributes.hasOwnProperty(name);\n };\n LiteBase.prototype.allAttributes = function (node) {\n var e_2, _a;\n var attributes = node.attributes;\n var list = [];\n try {\n for (var _b = __values(Object.keys(attributes)), _c = _b.next(); !_c.done; _c = _b.next()) {\n var name_1 = _c.value;\n list.push({ name: name_1, value: attributes[name_1] });\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_2) throw e_2.error; }\n }\n return list;\n };\n LiteBase.prototype.addClass = function (node, name) {\n var classes = (node.attributes['class'] || '').split(/ /);\n if (!classes.find(function (n) { return n === name; })) {\n classes.push(name);\n node.attributes['class'] = classes.join(' ');\n }\n };\n LiteBase.prototype.removeClass = function (node, name) {\n var classes = (node.attributes['class'] || '').split(/ /);\n var i = classes.findIndex(function (n) { return n === name; });\n if (i >= 0) {\n classes.splice(i, 1);\n node.attributes['class'] = classes.join(' ');\n }\n };\n LiteBase.prototype.hasClass = function (node, name) {\n var classes = (node.attributes['class'] || '').split(/ /);\n return !!classes.find(function (n) { return n === name; });\n };\n LiteBase.prototype.setStyle = function (node, name, value) {\n if (!node.styles) {\n node.styles = new Styles_js_1.Styles(this.getAttribute(node, 'style'));\n }\n node.styles.set(name, value);\n node.attributes['style'] = node.styles.cssText;\n };\n LiteBase.prototype.getStyle = function (node, name) {\n if (!node.styles) {\n var style = this.getAttribute(node, 'style');\n if (!style) {\n return '';\n }\n node.styles = new Styles_js_1.Styles(style);\n }\n return node.styles.get(name);\n };\n LiteBase.prototype.allStyles = function (node) {\n return this.getAttribute(node, 'style');\n };\n LiteBase.prototype.insertRules = function (node, rules) {\n node.children = [this.text(rules.join('\\n\\n') + '\\n\\n' + this.textContent(node))];\n };\n LiteBase.prototype.fontSize = function (_node) {\n return 0;\n };\n LiteBase.prototype.fontFamily = function (_node) {\n return '';\n };\n LiteBase.prototype.nodeSize = function (_node, _em, _local) {\n if (_em === void 0) { _em = 1; }\n if (_local === void 0) { _local = null; }\n return [0, 0];\n };\n LiteBase.prototype.nodeBBox = function (_node) {\n return { left: 0, right: 0, top: 0, bottom: 0 };\n };\n return LiteBase;\n}(DOMAdaptor_js_1.AbstractDOMAdaptor));\nexports.LiteBase = LiteBase;\nvar LiteAdaptor = (function (_super) {\n __extends(LiteAdaptor, _super);\n function LiteAdaptor() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n return LiteAdaptor;\n}((0, NodeMixin_js_1.NodeMixin)(LiteBase)));\nexports.LiteAdaptor = LiteAdaptor;\nfunction liteAdaptor(options) {\n if (options === void 0) { options = null; }\n return new LiteAdaptor(null, options);\n}\nexports.liteAdaptor = liteAdaptor;\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAI,IAAI,IAAI,IAAI,CAACA,SAAS,IAAM,YAAY;EACrD,IAAIC,aAAa,GAAG,SAAAA,CAAUC,CAAC,EAAEC,CAAC,EAAE;IAChCF,aAAa,GAAGG,MAA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