kmap-term-tree 0.9.15 → 0.9.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from 'lit
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
import { TermNode } from "./parser.js";
|
|
3
3
|
import { Token } from "./tokenizer.js";
|
|
4
4
|
interface Connection {
|
|
@@ -16,7 +16,7 @@ interface Edge {
|
|
|
16
16
|
to: Position;
|
|
17
17
|
}
|
|
18
18
|
export declare class KmapTermTree extends LitElement {
|
|
19
|
-
static styles: import("lit
|
|
19
|
+
static styles: import("lit").CSSResult;
|
|
20
20
|
private parser;
|
|
21
21
|
term?: string;
|
|
22
22
|
tension: number;
|
|
@@ -32,17 +32,17 @@ export declare class KmapTermTree extends LitElement {
|
|
|
32
32
|
tokensElement?: HTMLDivElement;
|
|
33
33
|
protected update(_changedProperties: PropertyValues): void;
|
|
34
34
|
private calcDepths;
|
|
35
|
-
render(): import("lit
|
|
35
|
+
render(): import("lit").TemplateResult<1>;
|
|
36
36
|
protected updated(_changedProperties: PropertyValues): Promise<void>;
|
|
37
37
|
_connect(connection: Connection): Edge | undefined;
|
|
38
38
|
_findAbsolutePosition(element: HTMLElement): Position;
|
|
39
39
|
private _prettify;
|
|
40
40
|
}
|
|
41
41
|
export declare class KmapTermTreeEdge extends LitElement {
|
|
42
|
-
static styles: import("lit
|
|
42
|
+
static styles: import("lit").CSSResult;
|
|
43
43
|
tension: number;
|
|
44
44
|
edges: Edge[];
|
|
45
|
-
render(): "" | import("lit
|
|
45
|
+
render(): "" | import("lit").TemplateResult<2>;
|
|
46
46
|
_path(edge: Edge): string;
|
|
47
47
|
}
|
|
48
48
|
export {};
|
package/dist/src/KmapTermTree.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { css, html, LitElement,
|
|
2
|
+
import { css, html, LitElement, svg } from 'lit';
|
|
3
|
+
import { property, state, query } from 'lit/decorators.js';
|
|
3
4
|
import { Parser } from "./parser.js";
|
|
4
5
|
import { Token } from "./tokenizer.js";
|
|
5
6
|
import { ifDefined } from "lit-html/directives/if-defined.js";
|
|
@@ -193,22 +194,22 @@ __decorate([
|
|
|
193
194
|
property({ type: Number })
|
|
194
195
|
], KmapTermTree.prototype, "tension", void 0);
|
|
195
196
|
__decorate([
|
|
196
|
-
|
|
197
|
+
state()
|
|
197
198
|
], KmapTermTree.prototype, "tokens", void 0);
|
|
198
199
|
__decorate([
|
|
199
|
-
|
|
200
|
+
state()
|
|
200
201
|
], KmapTermTree.prototype, "nodes", void 0);
|
|
201
202
|
__decorate([
|
|
202
|
-
|
|
203
|
+
state()
|
|
203
204
|
], KmapTermTree.prototype, "termNode", void 0);
|
|
204
205
|
__decorate([
|
|
205
|
-
|
|
206
|
+
state()
|
|
206
207
|
], KmapTermTree.prototype, "depths", void 0);
|
|
207
208
|
__decorate([
|
|
208
|
-
|
|
209
|
+
state()
|
|
209
210
|
], KmapTermTree.prototype, "maxDepths", void 0);
|
|
210
211
|
__decorate([
|
|
211
|
-
|
|
212
|
+
state()
|
|
212
213
|
], KmapTermTree.prototype, "connections", void 0);
|
|
213
214
|
__decorate([
|
|
214
215
|
query("kmap-term-tree-edges")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KmapTermTree.js","sourceRoot":"","sources":["../../src/KmapTermTree.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAkB,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAC,MAAM,aAAa,CAAC;AAC1G,OAAO,EAAC,MAAM,EAAW,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAC,KAAK,EAAC,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;AAgB5D,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, html, LitElement, property, PropertyValues, query, internalProperty, svg} from 'lit-element';\nimport {Parser, TermNode} from \"./parser.js\";\nimport {Token} from \"./tokenizer.js\";\nimport {ifDefined} from \"lit-html/directives/if-defined.js\";\n\ninterface Connection {\n from: number,\n to: number,\n}\ninterface Position {\n x: number,\n y: number,\n width: number,\n height: number,\n}\ninterface Edge {\n from: Position,\n to: Position,\n}\nexport class KmapTermTree extends LitElement {\n // language=CSS\n static styles = css`\n :host {\n display: block;\n color: var(--kmap-term-tree-text-color, #000);\n position: relative;\n }\n .tokens, .nodes, kmap-term-tree-edges {\n position: absolute;\n }\n .tokens, .nodes {\n white-space: nowrap;\n }\n .notokens {\n white-space: nowrap;\n height: 0px;\n }\n .notokens div {\n display: inline-block;\n }\n kmap-term-tree-edges {\n width: 100%;\n height: 100%;\n }\n .token {\n display: inline-block;\n }\n .token, .node {\n display: inline-block;\n position: relative;\n background-color: var(--kmap-term-tree-background-color, white);\n }\n .node {\n display: inline-block;\n position: relative;\n border: 1px solid var(--kmap-term-tree-border-color, #005b9f);\n padding: 0px 4px;\n border-radius: 1em;\n margin: -1px -5px;\n }\n .node[depth=\"0\"], .node:not([depth]) {\n visibility: hidden;\n }\n .node[depth=\"1\"] {\n top: calc(var(--kmap-term-tree-vertical-distance, 1.5em) * 1.5);\n }\n .node[depth=\"2\"] {\n top: calc(var(--kmap-term-tree-vertical-distance, 1.5em) * 3);\n }\n .node[depth=\"3\"] {\n top: calc(var(--kmap-term-tree-vertical-distance, 1.5em) * 4.5);\n }\n .node[depth=\"4\"] {\n top: calc(var(--kmap-term-tree-vertical-distance, 1.5em) * 6);\n }\n .node[depth=\"5\"] {\n top: calc(var(--kmap-term-tree-vertical-distance, 1.5em) * 7.5);\n }\n .node[depth=\"6\"] {\n top: calc(var(--kmap-term-tree-vertical-distance, 1.5em) * 9);\n }\n `;\n\n private parser: Parser = new Parser();\n\n @property({ type: String }) term?: string;\n @property({type: Number}) tension: number = 0;\n\n @internalProperty() tokens?: Token[];\n @internalProperty() nodes?: TermNode[];\n @internalProperty() termNode?: TermNode;\n @internalProperty() depths?: {[key: string]: number};\n @internalProperty() maxDepths?: number;\n\n @internalProperty() connections?: Connection[];\n\n @query(\"kmap-term-tree-edges\") edgesElement?: KmapTermTreeEdge;\n @query(\"#tokens\") tokensElement?: HTMLDivElement;\n\n protected update(_changedProperties: PropertyValues) {\n if (_changedProperties.has(\"term\")) {\n if (this.term !== undefined) {\n this.tokens = Token.tokenize(this.term);\n this.termNode = this.parser.parse(this.tokens);\n\n let map: {[key: string]: number} = {};\n this.maxDepths = this.calcDepths(this.termNode, map);\n\n let connections: Connection[] = [];\n this.termNode.breadthFirst((n) => {\n if (n.leftChildNode !== undefined)\n connections.push({from: n.token.id, to: n.leftChildNode.token.id})\n if (n.rightChildNode !== undefined)\n connections.push({from: n.token.id, to: n.rightChildNode.token.id})\n });\n this.depths = map;\n this.connections = connections;\n }\n }\n super.update(_changedProperties);\n }\n\n private calcDepths(node: TermNode, map: { [p: string]: number }): number {\n let depth = 0;\n if (node.leftChildNode)\n depth = Math.max(depth, this.calcDepths(node.leftChildNode, map) + 1);\n if (node.rightChildNode)\n depth = Math.max(depth, this.calcDepths(node.rightChildNode, map) + 1);\n map[node.token.id] = depth;\n return depth;\n }\n\n render() {\n return html`\n ${this.connections ? html`\n <kmap-term-tree-edges .tension=\"${this.tension}\"></kmap-term-tree-edges>\n ` : ''}\n ${!this.tokens ? '' : html`\n <div class=\"tokens\" id=\"tokens\">\n ${this.tokens.map((t) => html`\n <div class=\"token\" id=\"${t.id}\">${this._prettify(t.value)}</div>\n `)}\n </div>\n <div class=\"notokens\">\n ${this.tokens.map((t) => html`\n <div>${this._prettify(t.value)}</div>\n `)}\n </div>\n ` }\n ${this.tokens && this.depths ? html`\n <div class=\"nodes\">\n ${this.tokens.map((t) => html`\n <div class=\"node\" id=\"n${t.id}\" depth=\"${ifDefined(this.depths ? this.depths[t.id]: undefined)}\">${this._prettify(t.value)}</div>\n `)}\n </div>\n ` : ''}\n `;\n }\n\n protected async updated(_changedProperties: PropertyValues) {\n if (_changedProperties.has(\"connections\")) {\n await this.updateComplete;\n\n if (this.tokensElement && this.maxDepths ) {\n let tokensHeight = this.tokensElement.offsetHeight;\n console.log(this.maxDepths)\n console.log(tokensHeight + \"px\")\n this.style.setProperty(\"--kmap-term-tree-max-depth\", \"\" + this.maxDepths);\n this.style.setProperty(\"--kmap-term-tree-vertical-distance\", tokensHeight + \"px\");\n this.style.height = \"calc(3px + var(--kmap-term-tree-vertical-distance) * (var(--kmap-term-tree-max-depth)*1.5 + 1))\";\n console.log(this.style.height);\n }\n\n let edges: Edge[] = [];\n if (this.edgesElement && this.connections) {\n for (const connection of this.connections) {\n let edge = this._connect(connection);\n if (edge)\n edges.push(edge);\n }\n this.edgesElement.edges = edges;\n }\n }\n }\n\n _connect(connection: Connection): Edge | undefined {\n if (!this.shadowRoot)\n return;\n let from = this.shadowRoot.getElementById(\"n\" + connection.from);\n let to = this.shadowRoot.getElementById(\"n\" + connection.to);\n if (!from || !to)\n return;\n let frompos = this._findAbsolutePosition(from);\n let topos = this._findAbsolutePosition(to);\n\n return { from: frompos, to: topos };\n }\n\n _findAbsolutePosition(element: HTMLElement): Position {\n var x: number = 0;\n var y: number = 0;\n var el: HTMLElement | null = element;\n for (; el != this; el = el.offsetParent as HTMLElement) {\n x += el.offsetLeft;\n y += el.offsetTop;\n }\n return {\n x: x,\n y: y,\n width: element.offsetWidth,\n height: element.offsetHeight,\n };\n }\n\n private _prettify(value: string) {\n switch (value) {\n case '*':\n return \"·\"\n case '-':\n return \"−\"; // math minus\n default:\n return value;\n }\n }\n}\n\nexport class KmapTermTreeEdge extends LitElement {\n static styles = css`\n :host {\n display: block;\n stroke: var(--kmap-term-tree-edge-color, #fbc02d);\n position: relative;\n }\n `;\n\n @property({type: Number}) tension: number = .5;\n @property({type: Array}) edges: Edge[] = [];\n\n render() {\n const parent = this.offsetParent as HTMLElement;\n //language=SVG\n return this.edges === undefined ? '' : svg`\n <svg style=\"position:absolute;left:0px;top:0px\" width=\"${parent.clientWidth}\" height=\"${parent.clientHeight}\">\n ${this.edges.map(edge => svg`\n <path d=\"${this._path(edge)}\" fill=\"none\" stroke-width=\"2\" stroke-opacity=\".9\"/>\n `)}\n </svg>\n `;\n }\n\n _path(edge: Edge) {\n let fromx = edge.from.x + edge.from.width / 2;\n let fromy = edge.from.y + edge.from.height / 2;\n let tox = edge.to.x + edge.to.width / 2;\n let toy = edge.to.y + edge.to.height / 2;\n\n var delta = (toy-fromy) * this.tension;\n var hx1 = fromx;\n var hy1 = fromy + delta;\n var hx2 = tox;\n var hy2 = toy - delta;\n return \"M \" + fromx + \" \" + fromy +\n \" C \" + hx1 + \" \" + hy1\n + \" \" + hx2 + \" \" + hy2\n + \" \" + tox + \" \" + toy;\n }\n\n}\nwindow.customElements.define('kmap-term-tree-edges', KmapTermTreeEdge);\n"]}
|
|
1
|
+
{"version":3,"file":"KmapTermTree.js","sourceRoot":"","sources":["../../src/KmapTermTree.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,GAAG,EAAE,IAAI,EAAE,UAAU,EAAkB,GAAG,EAAC,MAAM,KAAK,CAAC;AAC/D,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,MAAM,EAAW,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAC,KAAK,EAAC,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;AAgB5D,MAAM,OAAO,YAAa,SAAQ,UAAU;IAA5C;;QAgEU,WAAM,GAAW,IAAI,MAAM,EAAE,CAAC;QAGZ,YAAO,GAAW,CAAC,CAAC;IA0IhD,CAAC;IA7HW,MAAM,CAAC,kBAAkC;QACjD,IAAI,kBAAkB,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;YAClC,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE;gBAC3B,I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AE,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,KAAK,GAAG,CAAC,CAAC;QACxC,IAAI,GAAG,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;QAEzC,IAAI,KAAK,GAAG,CAAC,GAAG,GAAC,KAAK,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;QACvC,IAAI,GAAG,GAAG,KAAK,CAAC;QAChB,IAAI,GAAG,GAAG,KAAK,GAAG,KAAK,CAAC;QACxB,IAAI,GAAG,GAAG,GAAG,CAAC;QACd,IAAI,GAAG,GAAG,GAAG,GAAG,KAAK,CAAC;QACtB,OAAO,IAAI,GAAI,KAAK,GAAG,GAAG,GAAG,KAAK;YAChC,KAAK,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG;cACrB,GAAG,GAAI,GAAG,GAAG,GAAG,GAAG,GAAG;cACtB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAC5B,CAAC;;AAtCM,uBAAM,GAAG,GAAG,CAAA;;;;;;GAMlB,CAAC;AAEwB;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;iDAAsB;AACtB;IAAxB,QAAQ,CAAC,EAAC,IAAI,EAAE,KAAK,EAAC,CAAC;+CAAoB;AAgC9C,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,sBAAsB,EAAE,gBAAgB,CAAC,CAAC","sourcesContent":["import {css, html, LitElement, PropertyValues, svg} from 'lit';\nimport {property, state, query} from 'lit/decorators.js';\nimport {Parser, TermNode} from \"./parser.js\";\nimport {Token} from \"./tokenizer.js\";\nimport {ifDefined} from \"lit-html/directives/if-defined.js\";\n\ninterface Connection {\n from: number,\n to: number,\n}\ninterface Position {\n x: number,\n y: number,\n width: number,\n height: number,\n}\ninterface Edge {\n from: Position,\n to: Position,\n}\nexport class KmapTermTree extends LitElement {\n // language=CSS\n static styles = css`\n :host {\n display: block;\n color: var(--kmap-term-tree-text-color, #000);\n position: relative;\n }\n .tokens, .nodes, kmap-term-tree-edges {\n position: absolute;\n }\n .tokens, .nodes {\n white-space: nowrap;\n }\n .notokens {\n white-space: nowrap;\n height: 0px;\n }\n .notokens div {\n display: inline-block;\n }\n kmap-term-tree-edges {\n width: 100%;\n height: 100%;\n }\n .token {\n display: inline-block;\n }\n .token, .node {\n display: inline-block;\n position: relative;\n background-color: var(--kmap-term-tree-background-color, white);\n }\n .node {\n display: inline-block;\n position: relative;\n border: 1px solid var(--kmap-term-tree-border-color, #005b9f);\n padding: 0px 4px;\n border-radius: 1em;\n margin: -1px -5px;\n }\n .node[depth=\"0\"], .node:not([depth]) {\n visibility: hidden;\n }\n .node[depth=\"1\"] {\n top: calc(var(--kmap-term-tree-vertical-distance, 1.5em) * 1.5);\n }\n .node[depth=\"2\"] {\n top: calc(var(--kmap-term-tree-vertical-distance, 1.5em) * 3);\n }\n .node[depth=\"3\"] {\n top: calc(var(--kmap-term-tree-vertical-distance, 1.5em) * 4.5);\n }\n .node[depth=\"4\"] {\n top: calc(var(--kmap-term-tree-vertical-distance, 1.5em) * 6);\n }\n .node[depth=\"5\"] {\n top: calc(var(--kmap-term-tree-vertical-distance, 1.5em) * 7.5);\n }\n .node[depth=\"6\"] {\n top: calc(var(--kmap-term-tree-vertical-distance, 1.5em) * 9);\n }\n `;\n\n private parser: Parser = new Parser();\n\n @property({ type: String }) term?: string;\n @property({type: Number}) tension: number = 0;\n\n @state() tokens?: Token[];\n @state() nodes?: TermNode[];\n @state() termNode?: TermNode;\n @state() depths?: {[key: string]: number};\n @state() maxDepths?: number;\n\n @state() connections?: Connection[];\n\n @query(\"kmap-term-tree-edges\") edgesElement?: KmapTermTreeEdge;\n @query(\"#tokens\") tokensElement?: HTMLDivElement;\n\n protected update(_changedProperties: PropertyValues) {\n if (_changedProperties.has(\"term\")) {\n if (this.term !== undefined) {\n this.tokens = Token.tokenize(this.term);\n this.termNode = this.parser.parse(this.tokens);\n\n let map: {[key: string]: number} = {};\n this.maxDepths = this.calcDepths(this.termNode, map);\n\n let connections: Connection[] = [];\n this.termNode.breadthFirst((n) => {\n if (n.leftChildNode !== undefined)\n connections.push({from: n.token.id, to: n.leftChildNode.token.id})\n if (n.rightChildNode !== undefined)\n connections.push({from: n.token.id, to: n.rightChildNode.token.id})\n });\n this.depths = map;\n this.connections = connections;\n }\n }\n super.update(_changedProperties);\n }\n\n private calcDepths(node: TermNode, map: { [p: string]: number }): number {\n let depth = 0;\n if (node.leftChildNode)\n depth = Math.max(depth, this.calcDepths(node.leftChildNode, map) + 1);\n if (node.rightChildNode)\n depth = Math.max(depth, this.calcDepths(node.rightChildNode, map) + 1);\n map[node.token.id] = depth;\n return depth;\n }\n\n render() {\n return html`\n ${this.connections ? html`\n <kmap-term-tree-edges .tension=\"${this.tension}\"></kmap-term-tree-edges>\n ` : ''}\n ${!this.tokens ? '' : html`\n <div class=\"tokens\" id=\"tokens\">\n ${this.tokens.map((t) => html`\n <div class=\"token\" id=\"${t.id}\">${this._prettify(t.value)}</div>\n `)}\n </div>\n <div class=\"notokens\">\n ${this.tokens.map((t) => html`\n <div>${this._prettify(t.value)}</div>\n `)}\n </div>\n ` }\n ${this.tokens && this.depths ? html`\n <div class=\"nodes\">\n ${this.tokens.map((t) => html`\n <div class=\"node\" id=\"n${t.id}\" depth=\"${ifDefined(this.depths ? this.depths[t.id]: undefined)}\">${this._prettify(t.value)}</div>\n `)}\n </div>\n ` : ''}\n `;\n }\n\n protected async updated(_changedProperties: PropertyValues) {\n if (_changedProperties.has(\"connections\")) {\n await this.updateComplete;\n\n if (this.tokensElement && this.maxDepths ) {\n let tokensHeight = this.tokensElement.offsetHeight;\n console.log(this.maxDepths)\n console.log(tokensHeight + \"px\")\n this.style.setProperty(\"--kmap-term-tree-max-depth\", \"\" + this.maxDepths);\n this.style.setProperty(\"--kmap-term-tree-vertical-distance\", tokensHeight + \"px\");\n this.style.height = \"calc(3px + var(--kmap-term-tree-vertical-distance) * (var(--kmap-term-tree-max-depth)*1.5 + 1))\";\n console.log(this.style.height);\n }\n\n let edges: Edge[] = [];\n if (this.edgesElement && this.connections) {\n for (const connection of this.connections) {\n let edge = this._connect(connection);\n if (edge)\n edges.push(edge);\n }\n this.edgesElement.edges = edges;\n }\n }\n }\n\n _connect(connection: Connection): Edge | undefined {\n if (!this.shadowRoot)\n return;\n let from = this.shadowRoot.getElementById(\"n\" + connection.from);\n let to = this.shadowRoot.getElementById(\"n\" + connection.to);\n if (!from || !to)\n return;\n let frompos = this._findAbsolutePosition(from);\n let topos = this._findAbsolutePosition(to);\n\n return { from: frompos, to: topos };\n }\n\n _findAbsolutePosition(element: HTMLElement): Position {\n var x: number = 0;\n var y: number = 0;\n var el: HTMLElement | null = element;\n for (; el != this; el = el.offsetParent as HTMLElement) {\n x += el.offsetLeft;\n y += el.offsetTop;\n }\n return {\n x: x,\n y: y,\n width: element.offsetWidth,\n height: element.offsetHeight,\n };\n }\n\n private _prettify(value: string) {\n switch (value) {\n case '*':\n return \"·\"\n case '-':\n return \"−\"; // math minus\n default:\n return value;\n }\n }\n}\n\nexport class KmapTermTreeEdge extends LitElement {\n static styles = css`\n :host {\n display: block;\n stroke: var(--kmap-term-tree-edge-color, #fbc02d);\n position: relative;\n }\n `;\n\n @property({type: Number}) tension: number = .5;\n @property({type: Array}) edges: Edge[] = [];\n\n render() {\n const parent = this.offsetParent as HTMLElement;\n //language=SVG\n return this.edges === undefined ? '' : svg`\n <svg style=\"position:absolute;left:0px;top:0px\" width=\"${parent.clientWidth}\" height=\"${parent.clientHeight}\">\n ${this.edges.map(edge => svg`\n <path d=\"${this._path(edge)}\" fill=\"none\" stroke-width=\"2\" stroke-opacity=\".9\"/>\n `)}\n </svg>\n `;\n }\n\n _path(edge: Edge) {\n let fromx = edge.from.x + edge.from.width / 2;\n let fromy = edge.from.y + edge.from.height / 2;\n let tox = edge.to.x + edge.to.width / 2;\n let toy = edge.to.y + edge.to.height / 2;\n\n var delta = (toy-fromy) * this.tension;\n var hx1 = fromx;\n var hy1 = fromy + delta;\n var hx2 = tox;\n var hy2 = toy - delta;\n return \"M \" + fromx + \" \" + fromy +\n \" C \" + hx1 + \" \" + hy1\n + \" \" + hx2 + \" \" + hy2\n + \" \" + tox + \" \" + toy;\n }\n\n}\nwindow.customElements.define('kmap-term-tree-edges', KmapTermTreeEdge);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/tslib/tslib.d.ts","../node_modules/lit-html/lib/part.d.ts","../node_modules/lit-html/lib/parts.d.ts","../node_modules/lit-html/lib/template-processor.d.ts","../node_modules/lit-html/lib/template-result.d.ts","../node_modules/lit-html/lib/template.d.ts","../node_modules/lit-html/lib/template-factory.d.ts","../node_modules/lit-html/lib/render-options.d.ts","../node_modules/lit-html/lib/default-template-processor.d.ts","../node_modules/lit-html/lib/directive.d.ts","../node_modules/lit-html/lib/dom.d.ts","../node_modules/lit-html/lib/render.d.ts","../node_modules/lit-html/lib/template-instance.d.ts","../node_modules/lit-html/lit-html.d.ts","../node_modules/lit-html/lib/shady-render.d.ts","../node_modules/lit-element/lib/updating-element.d.ts","../node_modules/lit-element/lib/decorators.d.ts","../node_modules/lit-element/lib/css-tag.d.ts","../node_modules/lit-element/lit-element.d.ts","../src/tokenizer.ts","../src/parser.ts","../node_modules/lit-html/directives/if-defined.d.ts","../src/KmapTermTree.ts","../src/index.ts","../src/kmap-term-tree.ts","../stories/index.stories.ts","../node_modules/@types/chai/index.d.ts","../node_modules/@open-wc/semantic-dom-diff/get-diffable-html.d.ts","../node_modules/@open-wc/semantic-dom-diff/chai-dom-diff-plugin.d.ts","../node_modules/@open-wc/semantic-dom-diff/chai-dom-diff.d.ts","../node_modules/@open-wc/semantic-dom-diff/index.d.ts","../node_modules/chai-a11y-axe/chai-a11y-axe-plugin.d.ts","../node_modules/chai-a11y-axe/src/accessible.d.ts","../node_modules/chai-a11y-axe/index.d.ts","../node_modules/@types/chai-dom/index.d.ts","../node_modules/@sinonjs/fake-timers/types/fake-timers-src.d.ts","../node_modules/@types/sinon/index.d.ts","../node_modules/@types/sinon-chai/index.d.ts","../node_modules/@open-wc/testing/register-chai-plugins.d.ts","../node_modules/@open-wc/testing-helpers/types/src/elementUpdated.d.ts","../node_modules/@open-wc/testing-helpers/types/src/litFixture.d.ts","../node_modules/@open-wc/dedupe-mixin/index.d.ts","../node_modules/@open-wc/scoped-elements/types/src/types.d.ts","../node_modules/@open-wc/scoped-elements/types/src/ScopedElementsMixin.d.ts","../node_modules/@open-wc/scoped-elements/types/index.d.ts","../node_modules/@open-wc/testing-helpers/types/src/fixture-no-side-effect.d.ts","../node_modules/@open-wc/testing-helpers/types/src/fixture.d.ts","../node_modules/@open-wc/testing-helpers/types/src/fixtureWrapper.d.ts","../node_modules/@open-wc/testing-helpers/types/src/helpers.d.ts","../node_modules/@open-wc/testing-helpers/types/src/lit-html.d.ts","../node_modules/@open-wc/testing-helpers/types/src/stringFixture.d.ts","../node_modules/@open-wc/testing-helpers/types/index.d.ts","../node_modules/@open-wc/testing/index.d.ts","../test/kmap-term-tree.test.ts","../test/tokenizer.test.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostic_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/ts3.6/base.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/base.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@types/accepts/index.d.ts","../node_modules/@types/connect/index.d.ts","../node_modules/@types/body-parser/index.d.ts","../node_modules/@types/qs/index.d.ts","../node_modules/@types/co-body/index.d.ts","../node_modules/@types/command-line-args/index.d.ts","../node_modules/@types/content-disposition/index.d.ts","../node_modules/@types/convert-source-map/index.d.ts","../node_modules/@types/keygrip/index.d.ts","../node_modules/@types/range-parser/index.d.ts","../node_modules/@types/express-serve-static-core/index.d.ts","../node_modules/@types/mime/index.d.ts","../node_modules/@types/serve-static/index.d.ts","../node_modules/@types/express/index.d.ts","../node_modules/@types/cookies/index.d.ts","../node_modules/@types/debounce/index.d.ts","../node_modules/@types/estree/index.d.ts","../node_modules/@types/unist/index.d.ts","../node_modules/@types/hast/index.d.ts","../node_modules/@types/http-assert/index.d.ts","../node_modules/@types/http-errors/index.d.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/koa-compose/index.d.ts","../node_modules/@types/koa/index.d.ts","../node_modules/@types/mdast/index.d.ts","../node_modules/@types/mocha/index.d.ts","../node_modules/@types/parse-json/index.d.ts","../node_modules/@types/parse5/index.d.ts","../node_modules/@types/resolve/index.d.ts","../node_modules/@types/uuid/index.d.ts","../node_modules/@types/ws/index.d.ts","../node_modules/@types/yauzl/index.d.ts"],"fileInfos":[{"version":"ac3a8c4040e183ce38da69d23b96939112457d1936198e6542672b7963cf0fce","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84",{"version":"1dad4fe1561d99dfd6709127608b99a76e5c2643626c800434f99c48038567ee","affectsGlobalScope":true},{"version":"cce43d02223f8049864f8568bed322c39424013275cd3bcc3f51492d8b546cb3","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"8dff1b4c2df638fcd976cbb0e636f23ab5968e836cd45084cc31d47d1ab19c49","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"8f4c9f651c8294a2eb1cbd12581fe25bfb901ab1d474bb93cd38c7e2f4be7a30","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"60761e6ea886034af0f294f025a7199360ce4e2c8ba4ec6408bc049cf9b89799","affectsGlobalScope":true},{"version":"506b80b9951c9381dc5f11897b31fca5e2a65731d96ddefa19687fbc26b23c6e","affectsGlobalScope":true},"12f4cfe2fe60b810c3174537bc2ddb20c1067b7768643d12cb1266fd183afb75","6f50729be2e6572691c3bc3a048c0590113427949f661c19dc4d9d6b0b002ec8","462c24ab9ab2d1e4a5e4e39712e4ee0f21f98503f0a47693efd9021ac20de213","6bfc18f74ce170237dcbe1811fc451777636241c91e8fddafbce965b5b541650","1d5238003ef4188c37bf66a0010426ef80323ae121b4d7fd71b1e4d3f2468072","698cd981ae211d8e3a54ac1b7c1294e9d68189f6b0e8c1b130944b9fb5e04706","d822163e1046f064067d72c24ef34cfe1d70db63a2fc00cd0c436017da7c637a","14b525e11e22e192c4f66d4a6ae04ccd30b5859623509d8db0ab1e1333d1d7e7","fbc836966312d35231137a4a2c471ec153a1e2ad004c18b64622f49028ee5af8","37969d2959cc27b71ef094fb68163c4af4cef6df7117f8eb10d6d7c864dd012c","07e68e3257ac03612286e959aa0269ea39701caaee6ba00b07efdd8295ffc3f1","681860c201a35c8b30b08dcf2850cd936decea0141c7d3b7021bbf611a8b0102","2150ad4f8930ebdbdd90b76b0a82bb6696193515534d7cd4dc7bc1ef3a661f70",{"version":"98a780cce6e0c824539a52b0d983c54bbdd75d06caf8ab2166e90c721458fd8b","affectsGlobalScope":true},"812782c8e9f322040ff874107875d68b9388467df9789d214ce88ec2141bcefa",{"version":"e5beee6638b2c39816c8c9cd48357c5c63185c605d8e6c6a27fe9a52d13288b4","affectsGlobalScope":true},"24f779b457778cd852a0518d06f41cd1031f0e1a3afda5633a3c179fd3a2a961","9b54401ac2630daf241248d55008ba86276c3069319f6b5f76daf0a716bc5ff7",{"version":"d90876b57e5b9eae685e9f9ee526d070b423eeafb4d3ab22f70c9bf82586f099","affectsGlobalScope":true},{"version":"fea38b0aa76b8a3b34bf678e78cf57a2611641206174f672523107ffd1e34815","signature":"94887cbe6c2cdfc79e754a1a77b760675cad369532953b56a220a5ef3e31d6b2"},{"version":"c17a1fe4aa26a5508e71e166f2ae5df195d10b2e925aacf8a80618638cc69eac","signature":"d909826ddb413a141169ed00d8d8eb6436519c58e4bfffb79e0efa64c1ded432"},"1881887a6443a07d510169afa1197289dd17c9db6f9d4d4f786f1d3f687df4bd",{"version":"59abc63a1cbc50be26cdb566d50104accfbd7fe23f194cd681b0962cbcaeb0c9","signature":"1421a5c2ab7525f471d77554f5b96a45149381eca150683cf57eb5195e1be8de"},"6880aa61a63c4f0cc0f522d4b7fa7246d1d43286b1fa1ffd49641c0e5e36952b",{"version":"4ac75e07b8916a8c58fb88233214c7d35b7770257c2cf8ee0d9cdbbda1509dff","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"fe673ac2bac7ed5d25fcf3c3bfd2bb37f4ef8f39af65589b9ff3f5fa331dbfef","signature":"7e4ac4a4f6af96be2b36af7334ab7a9da9eb2b33894fdd60e19c789e4a5548a7"},{"version":"f7834c76f2d4db5fb156f2f18fdf855431843cf0d32620fcf24b836cd4a85096","affectsGlobalScope":true},"8a659f7d82d932649a78f89643c5b436953424a219d705d49b8b3d9ccd6e35ff",{"version":"75cd6dce1c5f87511772c891de86d0c9e6829e6273dea9f92a5bec9d0479d1e7","affectsGlobalScope":true},{"version":"cd711db43a952f15464b571ac11b7a440332cd52342bc92c4bf908c70688f57f","affectsGlobalScope":true},"9d8709c916778cb34830708ed47b78e9a46d1fb2eb73a682b14eee990bed4aa6",{"version":"5d90911f942229eb9049feab241739a5ced76f137948f8f42a615e5f01d4e7ea","affectsGlobalScope":true},"999a90d30a3183dcee987d0a5a7c586aba5bacbf6ce087ba8635124082ccfeea","8a5878edd52f4a720560b4c6e6247e9ddc3df6118ad9cf2f9927903b03d5f440",{"version":"d95d76d79a0351572ec5b1a6cc1e5c4bce1be82eedeed7278d6f31ea1059fa69","affectsGlobalScope":true},"6b40029289530423f407a22755c85b81740f9acfd88d2b53564f8c1657c26660","15b043358a9bac56ee6a567d61adf545b3a09e2f2ead9c3ef3cc617ed3522e71",{"version":"b98f6185455945922c7cfdad772ec1c46e5c169a2d71aca6530e041f77665f03","affectsGlobalScope":true},"65b91a3725399231d3469529b5e27b85bf2aa98013e607f308e5fe260b47eeff","a11181f6d68200e83ccb1fb48b262a7132a3257e0a230f41c9dc4c351964297a","32c936b21a904ffa8f97d35fe11ba2b1c29903d12235a025312207b6d1eb9a99","88cda4269c54f0803834fd62b2fac61af8bff7a085693f7ca9df85c1f19dee8a","53295858dacf67bab25922be73cc7adcd38f4db654012dc9aaa7bf5e7cbd314a","4e2089b7fd3fc16e38918c6b84289694cd519f9f52fab3f0c29a022f35c2da92","fdf0aa1a72ff0188a9013926201a391116ef6701cd439b89850786abdf755fb8","f0b43f422b01042dd784bee89f9c67330001a575258bb49d28fd56e1a581e92e","abf9ea97b78a7b239186cf5b7ed59c4a593abac3c408c8c95fc5e604cfdfdb43","ae91c9161caf0af81c89e780a045fc5ea8382407e516342e409c5db9161d3b32","2c387828a523cc77a4300f5deb063651c9346c5a36ccfbfc127c38df8ab45b0c","6bec322c4ada7c942e133a70f0b7e0ca275d7f289a2bd6c63894002e82ce4bfd","d598157512ae6e0d3aa6bb0dd261ae34845831dccf7bc7739695ee2589eb76f5","0a7d16e19e1b337fea85b71ceef9205a9d83ecd4865963d3fd0f6f3bc5f91785","d2173e08898108c0aaa6dbfed27725b4a71f5817153800c86f03fa06456a2fc7",{"version":"ad4d00a81fee8acc30854f2acd59279faed73a3347bad38c5a8ff2618779966d","signature":"282ccf7c3a7f3ca54f7379e41caeff7497b8f76b742f22ac82f3efa650fb30a1"},{"version":"7e59d3dcc7b7ec8d9231535240e3b52eb9873c4672f8139b060efd6d3e1e54a8","signature":"37d4e09d0bfe55e9aee3900fcfc009592082f89e4d5e9d9a7329ce919f4cf121"},"f5a6d1a8e21751af6fd0a8422d72ba825c15bce9a1af9d02fc0d992406f18f5f",{"version":"bf629ebbac2c65601bcb5c032644023a2b4b3b1151c0d1bf60ced7c35cc81b5d","affectsGlobalScope":true},"9d07804fffa0680a15b100ea9312078ffd9779429719240d3576bb592511bf31",{"version":"c9ed7a82b6c15c29dd1f0350d5c8bd5b9b30fb07a8572c9e6addebf05944e160","affectsGlobalScope":true},"e5cca775079552250e94c7dbbe3ac1a4fa91caae98fd83fb488440d478a5537c","8528e5fe802d788d89df3169c7a7cde25943d1cee6748a26d4210cf37d79baba",{"version":"a4565a5ce32bca81a0bf56c71168e0ca1e0941ccc15f896f808ccc7a71ba6fa8","affectsGlobalScope":true},"3111079f3cb5f2b9c812ca3f46161562bce5bfb355e915f46ed46c41714dc1c3","087a6c005a7aa76ca849cdc25a00de881291278f84361decb42701b8aff52f49","4481cd6e85120ea80d71866890faa032687d29ad820640a2b8547f04b80ed3ba","b6c2782fb0c0f113cc1c38745c57ab499dd4f459d4f76a2c083c9f6609919df0","6ac7d92ba8f420f89f63ad99af8b146a5bbfe6522be2cd7a179cb5e066975825","3996fc0e7ecec3111a208c9f3389f15381907ccfc0804f89839ec3bfdf630576","cea1624c6870349293bb4d5a4fe7b1e963392b50d34fa916a830dac5cd186ab0",{"version":"6189edcaa78cba8c1dfd1d12a8928fe0603e646009ffb9ddfa92eff0d824ce2c","affectsGlobalScope":true},"8123b4a3b707b071088f581a21f01738c7d390a28d5d712ec396d3f411e23037","4ef819c9ddb82d8e8c841c7ba9db2729915a97a0addfcda6a6a9f852b4a2a128","eb83d39b9e8404d7c73adf30bc666894028d9e567384fbf42cbae805058e24aa","99827736d6a22022a5a4c9ad847900667704560e8b10964bdd36d4412c1eb587","ec7606080747d7e424af23f9b69b02cc47855f045edafbdb2552ccdff9556b4f","ef70156b46b854df342204565597787b04ea8067c1bfd673279fc859bcae42b7",{"version":"6583daa9760bda81669417e393cf1fb9208422fdbcb4991569e59347e93f3e34","affectsGlobalScope":true},"ab108213eabd2bb2ea48db3f43ed77ca2965b22b22ad5a3d0c3b13576c60902e","e1aea0bae8186fee1b966d4e4e2a167ed0edd86668c609b1440ed0e81247462d","d15d11ea31228ad0c57cda43b406f7bb1712c6c8fe6dd9c27a90dbfc7a8d6117","ddbc96f468abfe7c1965eb69f75d267b4493a27a8eaa76ea25f8d8ef87fec846",{"version":"6fe3ec84b325c68a572b7febee0446ddccafa67a5c0701857f26acc4fec0801e","affectsGlobalScope":true},"b89ea948a92ce598bac83e0fd39ab4dd1f938b337287abe33d756950bfe31bd7","e09cc4f66a6cf31c2224129e990b91ca00b25b0826989264fbc4aaa7bf9f6460","85df3d396d50cf6706e8a7fdc94402adbfe636ff758ced46cdd8de906957ca1d","e72c97f28066c9d46cb3fe23f2978ef3a4cedee77ff1fd70634654d7df13bc25","7b9958476fc2d098848bad9eb338d0471dc90799235b3c81286da7ed904bcdcd","328b0780f9ea2c65b5811fb3de14122c00b0a6ebe5b9581e8892decd83b1f8a8","c55b1e6bee98c27c3ff8477a47ef182841cbf7883c0e8b47c76506532366c34c",{"version":"34085490aa2954356441cf6e769f2fab1ba11800264cbdcfd9ee10d70fe1ea47","affectsGlobalScope":true},"a7d28061d1dd9315187b6be305be679c0600a335f4921ce66af79b35104e0bbe","1a3649e06d4244990d2c19e0b3a13330b30747818604cdc0ef19318df80a2b3f","5367052357620c6e14cf2a53f7ede9f8d85f4a9dab6facc3da6ae445541b7372","bb0ef00324f06a878b5c102a6b9670d3562126c7a7a09b5318d5c2113974ce1c","1bc668fc53967b5d4071a9094110b20445a5992f9a226874b2c9ac4e904ad033","5c067020e59677ac77cad8b01bdd01361f5315f289bcc50331e5750b4f29f5b7","45e9d7a11405d31fbb49e5d4fbad5c2d7dc9780f64338af388ba7ea9280b468f","6e25f951f1c64dc1fdda83ad3183b4af572b95218e736bf454185ac0c8abdf41","485a02812f947eb6011e70c44b3e815566b354efc90d4c2c5ac9d7bb3b948a42","b5cc8a2bdfe0163d116852650429c0a49ea75211dfaf66b7b0349fee7b3e8d83",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"f87509fed855ba8d77bcc1bbdd1acb8380a8092373c2caf3f04e5a8f8f3c5e5b","7e28b18588869fdeb3ff70581047ea017bae32c0baf1464b5b501c1ae00a96e0","c279f541b15691f99c82e130c9897740adf4584442b3610c5634f5684c1f5b60","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","06b4e032b397f9bad48024b5f942595d2b8c398ab462fd0ba961c5203efb8a55","6738101ae8e56cd3879ab3f99630ada7d78097fc9fd334df7e766216778ca219","6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073","65cfd1c0bc729fbc2b49fe66bc5ebddba5aa3a978c748e1d2e0d07f502238ce2","ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc","31ca972c86a1a5e53e5f72eaf7fea59102ab5f574c853ed0ba7c7ff10d5267e6","663d1f553e0ed6a5000ec34fb8ab3277c02c9ff0e07a3e47e160b58bfd4f328f","e4dfe0e169e1cb3c8dd0713972e94e2141595c840ed7387623ac8b29fc6c35b8","c1ea344dc311b2c539ed1e3b4e17e9f4853dc7f348366b51f1d8a09a40fb223f","ce013414484233b24f42c0fcfca48a60bb66ab4e13c82953662305e8f1ee4925","16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c",{"version":"61b60d145059c3c8e3c7b484713191b6d0b70999bcb11f2b26286b15926a2b5f","affectsGlobalScope":true},"84e3bbd6f80983d468260fdbfeeb431cc81f7ea98d284d836e4d168e36875e86","0b85cb069d0e427ba946e5eb2d86ef65ffd19867042810516d16919f6c1a5aec","15c88bfd1b8dc7231ff828ae8df5d955bae5ebca4cf2bcb417af5821e52299ae","eb96a2321f717bccc3e49e104e299152984b927ea4546b559ae631c06565819c","8dc552d17d8515805274740c4902367436a73295c4109bc29f897f35b0604da7","89ccbe04e737ce613f5f04990271cfa84901446350b8551b0555ddf19319723b","0039294cbe88d897df5ee6aec9429130748bf097f458a30cc5dbcbc509dc32d3","ac295e0d29ca135d7dca2069a6e57943ed18800754dbe8fcb3974fb9ce497c3c","97fd9fd06a67deac133ddeac0b4a266db5eede2e40ec6ad67b31b0b862559643","ee736349ccbd61aa257ef9811668109d57ab9e9dea654b6ccd7bb274e5584a20","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","a185ebc69c9f6798ebd67bfdfd72a37457dc67c23459784783c7128ae9bd5250","5006668996956580886022c05108e32c742823e1b5652aff7914917233731518","0c52f5366c9146ad79b546e70162c659972a2798522806e8283f3137feab3965","36b374bda8f87b67816ce80a538b52350b37357b77b6baf9b5b48cfe54ca540d",{"version":"c4c03cf65951d980ba618ae9601d10438730803fc9c8a1f7b34af8739981e205","affectsGlobalScope":true},"2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","c555dd691dd05955e99cd93dd99c685a65e5287813ccb5e6bfde951183248e26","8a19491eba2108d5c333c249699f40aff05ad312c04a17504573b27d91f0aede","fab58e600970e66547644a44bc9918e3223aa2cbd9e8763cec004b2cfb48827e","e0cc96ad7d57e06d1b05a140393f07edebfe2994895e106061af2acf99b279c0","b2d70a269840a9528db473ac7565442434333a05c1f66801a7a672e82beb903e"],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":99,"noEmitOnError":true,"outDir":"./","rootDir":"..","sourceMap":true,"strict":true,"target":5},"fileIdsList":[[123,124],[77,123,124],[47,48,52,76,123,124],[52,75,123,124],[60,61,123,124],[62,123,124],[61,63,123,124],[73,74,80,81,82,83,84,123,124],[74,78,123,124],[79,123,124],[75,123,124],[47,123,124],[47,79,123,124],[60,72,85,123,124],[64,67,68,71,123,124],[106,123,124,139],[106,123,124,139,141],[60,123,124],[106,123,124,139,143],[106,123,124,139,141,148,153],[103,106,123,124,139,143,149],[123,124,142,143,150,152],[123,124,157],[123,124,161],[123,124,162],[123,124,166],[103,106,107,111,117,123,124,128,139,140,146,148,154,159,160,165],[123,124,137],[89,123,124,137],[91,123,124],[123,124,136,137],[92,97,123,124],[93,103,104,111,120,123,124],[93,94,103,111,123,124],[95,123,124,129],[96,97,104,112,123,124],[97,120,123,124,125],[98,100,103,111,123,124],[99,123,124],[100,101,123,124],[102,103,123,124],[103,123,124],[103,104,105,120,123,124,128],[103,104,105,120,123,124],[106,111,120,123,124,128],[103,104,106,107,111,120,123,124,125,128],[106,108,123,124,125,128],[123,124,138],[103,109,123,124],[110,123,124,128],[100,103,111,120,123,124],[112,123,124],[113,123,124],[91,114,123,124],[115,123,124,127,132],[116,123,124],[117,123,124],[103,118,123,124],[118,119,123,124,129,131],[103,120,121,123,124],[120,121,123,124],[122,123,124],[123],[97,111,123,124,125],[123,124,126],[89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135],[111,123,124,127],[106,117,123,124,128],[97,123,124,129],[120,123,124,130],[123,124,131],[123,124,135],[92,97,103,105,114,120,123,124,128,131,132],[120,123,124,133],[123,124,139],[106,123,124,139,151],[60,70,123,124],[69,123,124],[103,106,108,111,120,123,124,125,128,133,139],[103,120,123,124,139],[66,123,124],[65,123,124],[49,123,124],[47,48,49,50,51,123,124],[35,36,37,41,123,124],[35,123,124],[35,41,123,124],[40,123,124],[36,41,123,124],[38,39,41,47,123,124],[38,39,123,124],[37,39,41,123,124],[35,36,41,123,124],[37,123,124],[38,123,124],[35,36,37,38,39,40,41,42,43,44,45,46,123,124],[34,52,53,54,55,123,124],[34,56,123,124],[34,53,123,124],[34,123,124],[34,47,58,123,124],[34,56,58,86,123,124],[34,53,86,123,124],[52,53,54],[53],[47,58],[58]],"referencedMap":[[75,1],[78,2],[77,3],[76,4],[62,5],[63,6],[61,1],[64,7],[85,8],[73,1],[79,9],[80,10],[81,1],[82,11],[83,12],[74,13],[84,10],[86,14],[72,15],[69,1],[140,16],[142,17],[68,18],[60,1],[144,19],[145,1],[141,16],[146,1],[147,1],[154,20],[155,1],[156,1],[150,21],[153,22],[158,23],[159,1],[160,1],[161,1],[162,24],[163,25],[164,1],[148,1],[165,26],[166,27],[167,23],[151,1],[168,1],[137,28],[89,29],[91,30],[138,31],[92,32],[93,33],[94,34],[95,35],[96,36],[97,37],[98,38],[99,39],[100,40],[101,40],[102,41],[103,42],[104,43],[105,44],[90,1],[134,1],[106,45],[107,46],[108,47],[139,48],[109,49],[110,50],[111,51],[112,52],[113,53],[114,54],[115,55],[116,56],[117,57],[118,58],[119,59],[120,60],[121,61],[122,62],[123,42],[124,63],[125,64],[126,65],[136,66],[127,67],[128,68],[129,69],[130,70],[131,71],[135,72],[132,73],[133,74],[169,1],[170,1],[143,1],[149,1],[171,75],[152,76],[71,77],[70,78],[157,1],[172,1],[173,79],[174,80],[65,18],[67,81],[66,82],[51,1],[50,83],[49,1],[52,84],[55,12],[42,85],[43,86],[44,1],[35,1],[36,87],[41,88],[45,89],[48,90],[40,91],[46,92],[37,93],[38,94],[39,95],[47,96],[34,1],[7,1],[9,1],[8,1],[2,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[3,1],[4,1],[21,1],[18,1],[19,1],[20,1],[22,1],[23,1],[24,1],[5,1],[25,1],[26,1],[27,1],[28,1],[6,1],[29,1],[30,1],[31,1],[32,1],[1,1],[33,1],[56,97],[57,98],[58,98],[54,99],[53,100],[59,101],[87,102],[88,103]],"exportedModulesMap":[[75,1],[78,2],[77,3],[76,4],[62,5],[63,6],[61,1],[64,7],[85,8],[73,1],[79,9],[80,10],[81,1],[82,11],[83,12],[74,13],[84,10],[86,14],[72,15],[69,1],[140,16],[142,17],[68,18],[60,1],[144,19],[145,1],[141,16],[146,1],[147,1],[154,20],[155,1],[156,1],[150,21],[153,22],[158,23],[159,1],[160,1],[161,1],[162,24],[163,25],[164,1],[148,1],[165,26],[166,27],[167,23],[151,1],[168,1],[137,28],[89,29],[91,30],[138,31],[92,32],[93,33],[94,34],[95,35],[96,36],[97,37],[98,38],[99,39],[100,40],[101,40],[102,41],[103,42],[104,43],[105,44],[90,1],[134,1],[106,45],[107,46],[108,47],[139,48],[109,49],[110,50],[111,51],[112,52],[113,53],[114,54],[115,55],[116,56],[117,57],[118,58],[119,59],[120,60],[121,61],[122,62],[123,42],[124,63],[125,64],[126,65],[136,66],[127,67],[128,68],[129,69],[130,70],[131,71],[135,72],[132,73],[133,74],[169,1],[170,1],[143,1],[149,1],[171,75],[152,76],[71,77],[70,78],[157,1],[172,1],[173,79],[174,80],[65,18],[67,81],[66,82],[51,1],[50,83],[49,1],[52,84],[55,12],[42,85],[43,86],[44,1],[35,1],[36,87],[41,88],[45,89],[48,90],[40,91],[46,92],[37,93],[38,94],[39,95],[47,96],[34,1],[7,1],[9,1],[8,1],[2,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[3,1],[4,1],[21,1],[18,1],[19,1],[20,1],[22,1],[23,1],[24,1],[5,1],[25,1],[26,1],[27,1],[28,1],[6,1],[29,1],[30,1],[31,1],[32,1],[1,1],[33,1],[56,104],[57,98],[54,105],[59,106],[87,107],[88,105]],"semanticDiagnosticsPerFile":[75,78,77,76,62,63,61,64,85,73,79,80,81,82,83,74,84,86,72,69,140,142,68,60,144,145,141,146,147,154,155,156,150,153,158,159,160,161,162,163,164,148,165,166,167,151,168,137,89,91,138,92,93,94,95,96,97,98,99,100,101,102,103,104,105,90,134,106,107,108,139,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,136,127,128,129,130,131,135,132,133,169,170,143,149,171,152,71,70,157,172,173,174,65,67,66,51,50,49,52,55,42,43,44,35,36,41,45,48,40,46,37,38,39,47,34,7,9,8,2,10,11,12,13,14,15,16,17,3,4,21,18,19,20,22,23,24,5,25,26,27,28,6,29,30,31,32,1,33,56,57,58,54,53,59,87,88]},"version":"4.3.5"}
|
|
1
|
+
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/tslib/tslib.d.ts","../node_modules/@lit/reactive-element/css-tag.d.ts","../node_modules/@lit/reactive-element/reactive-controller.d.ts","../node_modules/@lit/reactive-element/reactive-element.d.ts","../node_modules/@types/trusted-types/lib/index.d.ts","../node_modules/@types/trusted-types/index.d.ts","../node_modules/lit/node_modules/lit-html/directive.d.ts","../node_modules/lit/node_modules/lit-html/lit-html.d.ts","../node_modules/lit/node_modules/lit-element/lit-element.d.ts","../node_modules/lit/index.d.ts","../node_modules/@lit/reactive-element/decorators/base.d.ts","../node_modules/@lit/reactive-element/decorators/custom-element.d.ts","../node_modules/@lit/reactive-element/decorators/property.d.ts","../node_modules/@lit/reactive-element/decorators/state.d.ts","../node_modules/@lit/reactive-element/decorators/event-options.d.ts","../node_modules/@lit/reactive-element/decorators/query.d.ts","../node_modules/@lit/reactive-element/decorators/query-all.d.ts","../node_modules/@lit/reactive-element/decorators/query-async.d.ts","../node_modules/@lit/reactive-element/decorators/query-assigned-nodes.d.ts","../node_modules/@lit/reactive-element/decorators/query-assigned-elements.d.ts","../node_modules/lit/decorators.d.ts","../src/tokenizer.ts","../src/parser.ts","../node_modules/lit-html/lib/part.d.ts","../node_modules/lit-html/lib/template.d.ts","../node_modules/lit-html/lib/template-factory.d.ts","../node_modules/lit-html/lib/render-options.d.ts","../node_modules/lit-html/lib/parts.d.ts","../node_modules/lit-html/lib/template-processor.d.ts","../node_modules/lit-html/lib/template-result.d.ts","../node_modules/lit-html/lib/default-template-processor.d.ts","../node_modules/lit-html/lib/directive.d.ts","../node_modules/lit-html/lib/dom.d.ts","../node_modules/lit-html/lib/render.d.ts","../node_modules/lit-html/lib/template-instance.d.ts","../node_modules/lit-html/lit-html.d.ts","../node_modules/lit-html/directives/if-defined.d.ts","../src/KmapTermTree.ts","../src/index.ts","../src/kmap-term-tree.ts","../stories/index.stories.ts","../node_modules/@types/chai/index.d.ts","../node_modules/@open-wc/semantic-dom-diff/get-diffable-html.d.ts","../node_modules/@open-wc/semantic-dom-diff/chai-dom-diff-plugin.d.ts","../node_modules/@open-wc/semantic-dom-diff/chai-dom-diff.d.ts","../node_modules/@open-wc/semantic-dom-diff/index.d.ts","../node_modules/chai-a11y-axe/chai-a11y-axe-plugin.d.ts","../node_modules/chai-a11y-axe/src/accessible.d.ts","../node_modules/chai-a11y-axe/index.d.ts","../node_modules/@types/chai-dom/index.d.ts","../node_modules/@sinonjs/fake-timers/types/fake-timers-src.d.ts","../node_modules/@types/sinon/index.d.ts","../node_modules/@types/sinon-chai/index.d.ts","../node_modules/@open-wc/testing/register-chai-plugins.d.ts","../node_modules/@open-wc/testing-helpers/types/src/elementUpdated.d.ts","../node_modules/@open-wc/testing-helpers/types/src/litFixture.d.ts","../node_modules/@open-wc/dedupe-mixin/index.d.ts","../node_modules/lit-html/lib/shady-render.d.ts","../node_modules/lit-element/lib/updating-element.d.ts","../node_modules/lit-element/lib/decorators.d.ts","../node_modules/lit-element/lib/css-tag.d.ts","../node_modules/lit-element/lit-element.d.ts","../node_modules/@open-wc/scoped-elements/types/src/types.d.ts","../node_modules/@open-wc/scoped-elements/types/src/ScopedElementsMixin.d.ts","../node_modules/@open-wc/scoped-elements/types/index.d.ts","../node_modules/@open-wc/testing-helpers/types/src/fixture-no-side-effect.d.ts","../node_modules/@open-wc/testing-helpers/types/src/fixture.d.ts","../node_modules/@open-wc/testing-helpers/types/src/fixtureWrapper.d.ts","../node_modules/@open-wc/testing-helpers/types/src/helpers.d.ts","../node_modules/@open-wc/testing-helpers/types/src/lit-html.d.ts","../node_modules/@open-wc/testing-helpers/types/src/stringFixture.d.ts","../node_modules/@open-wc/testing-helpers/types/index.d.ts","../node_modules/@open-wc/testing/index.d.ts","../test/kmap-term-tree.test.ts","../test/tokenizer.test.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@types/accepts/index.d.ts","../node_modules/@types/babel__code-frame/index.d.ts","../node_modules/@types/connect/index.d.ts","../node_modules/@types/body-parser/index.d.ts","../node_modules/@types/qs/index.d.ts","../node_modules/@types/co-body/index.d.ts","../node_modules/@types/command-line-args/index.d.ts","../node_modules/@types/content-disposition/index.d.ts","../node_modules/@types/convert-source-map/index.d.ts","../node_modules/@types/keygrip/index.d.ts","../node_modules/@types/range-parser/index.d.ts","../node_modules/@types/express-serve-static-core/index.d.ts","../node_modules/@types/mime/index.d.ts","../node_modules/@types/serve-static/index.d.ts","../node_modules/@types/express/index.d.ts","../node_modules/@types/cookies/index.d.ts","../node_modules/@types/debounce/index.d.ts","../node_modules/@types/estree/index.d.ts","../node_modules/@types/unist/index.d.ts","../node_modules/@types/hast/index.d.ts","../node_modules/@types/http-assert/index.d.ts","../node_modules/@types/http-errors/index.d.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/json5/index.d.ts","../node_modules/@types/koa-compose/index.d.ts","../node_modules/@types/koa/index.d.ts","../node_modules/@types/mdast/index.d.ts","../node_modules/@types/mocha/index.d.ts","../node_modules/@types/parse-json/index.d.ts","../node_modules/@types/parse5/lib/tree-adapters/default.d.ts","../node_modules/@types/parse5/index.d.ts","../node_modules/@types/resolve/index.d.ts","../node_modules/@types/ws/index.d.ts","../node_modules/@types/yauzl/index.d.ts"],"fileInfos":[{"version":"ac3a8c4040e183ce38da69d23b96939112457d1936198e6542672b7963cf0fce","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"1dad4fe1561d99dfd6709127608b99a76e5c2643626c800434f99c48038567ee","affectsGlobalScope":true},{"version":"cce43d02223f8049864f8568bed322c39424013275cd3bcc3f51492d8b546cb3","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"8dff1b4c2df638fcd976cbb0e636f23ab5968e836cd45084cc31d47d1ab19c49","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"8f4c9f651c8294a2eb1cbd12581fe25bfb901ab1d474bb93cd38c7e2f4be7a30","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"60761e6ea886034af0f294f025a7199360ce4e2c8ba4ec6408bc049cf9b89799","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"506b80b9951c9381dc5f11897b31fca5e2a65731d96ddefa19687fbc26b23c6e","affectsGlobalScope":true},"12f4cfe2fe60b810c3174537bc2ddb20c1067b7768643d12cb1266fd183afb75","0c8a56610b08f55e29ffb466cd27626ad6dbe822312a398026e82270c63088e3","1e5743b25a63fd34ffbae89adcbf248ee17db6ed08d90079ffa93803c3e80d2a","bf8b9d5845b5c3c077bae570df94e39504b1b0c96a89cf05d7705cc73be9b466","2fcd2d22b1f30555e785105597cd8f57ed50300e213c4f1bbca6ae149f782c38",{"version":"bb4248c7f953233ac52332088fac897d62b82be07244e551d87c5049600b6cf7","affectsGlobalScope":true},"70f04c91d3186b1b10157157887fab664968fc9b88377785a5ee42750c202c6d","06e20da1bc94df355f22ac7a9533c2488816ec4cb9134d9b160a263629a07072","c311ef8d8b159d0c268b415f78c1949498dc2d14455a9891c5b8ef84625b1e41","f07a77a7fb1d49aa2b61cb68bf712a083487acd7130d20223a83de03af0c257d","97c58f6db61d45712d91d2260994817ae2b568bbb37cc280013079b6b5d2232d","ac388c7c7a262213a3700451bc921e382a93fb27c0252c34ccf03540b4ce044b","9bdb35d0b28dcd5d8f0879bd29f0cf07b7eb48aa63be4dd44057e32fcfeb1c83","fb0107c83e2e0e75b77dacd0c3c6c3ab6844e98dce2a8f858c6f0a57c12136a6","84610cf09dee3cefc910555318f1ad7b45f1cba36905a86849324ca4fead2385","a25d1e52291791819032826af5c52987e16ffdb96e8bb69f7f1790f5ab080be6","d660961abada6b5030461f3322ef3a2e1d9fec74167574f8b590a7796cf90a72","707b4eae3d469b2f347d2083037151922f94c370a9456ebd5ac0a4fb7441c7e7","aba5c106ed4eb1bfa975407dd5e2628a23bea66fa4f732967fe8a094f7e26c42","110cd552cc0542db72b32f931045b15197fd9c48d720de1c3fe40f682189b6fe","f0380f581cb015778c0fe51e95b5b7f6dae237280654558469b2486c1572268a",{"version":"fea38b0aa76b8a3b34bf678e78cf57a2611641206174f672523107ffd1e34815","signature":"94887cbe6c2cdfc79e754a1a77b760675cad369532953b56a220a5ef3e31d6b2"},{"version":"c17a1fe4aa26a5508e71e166f2ae5df195d10b2e925aacf8a80618638cc69eac","signature":"d909826ddb413a141169ed00d8d8eb6436519c58e4bfffb79e0efa64c1ded432"},"6f50729be2e6572691c3bc3a048c0590113427949f661c19dc4d9d6b0b002ec8","698cd981ae211d8e3a54ac1b7c1294e9d68189f6b0e8c1b130944b9fb5e04706","d822163e1046f064067d72c24ef34cfe1d70db63a2fc00cd0c436017da7c637a","14b525e11e22e192c4f66d4a6ae04ccd30b5859623509d8db0ab1e1333d1d7e7","462c24ab9ab2d1e4a5e4e39712e4ee0f21f98503f0a47693efd9021ac20de213","6bfc18f74ce170237dcbe1811fc451777636241c91e8fddafbce965b5b541650","1d5238003ef4188c37bf66a0010426ef80323ae121b4d7fd71b1e4d3f2468072","fbc836966312d35231137a4a2c471ec153a1e2ad004c18b64622f49028ee5af8","37969d2959cc27b71ef094fb68163c4af4cef6df7117f8eb10d6d7c864dd012c","07e68e3257ac03612286e959aa0269ea39701caaee6ba00b07efdd8295ffc3f1","681860c201a35c8b30b08dcf2850cd936decea0141c7d3b7021bbf611a8b0102","2150ad4f8930ebdbdd90b76b0a82bb6696193515534d7cd4dc7bc1ef3a661f70",{"version":"98a780cce6e0c824539a52b0d983c54bbdd75d06caf8ab2166e90c721458fd8b","affectsGlobalScope":true},"1881887a6443a07d510169afa1197289dd17c9db6f9d4d4f786f1d3f687df4bd",{"version":"b548ed6378e62d2f28a50c62a7beaa22ff2fbe502527b85377ad0bc26afd8844","signature":"112d975bac64fe79a6f7e4c939f29ef31e20a31181185d3e06cc9174f9973832"},"6880aa61a63c4f0cc0f522d4b7fa7246d1d43286b1fa1ffd49641c0e5e36952b",{"version":"4ac75e07b8916a8c58fb88233214c7d35b7770257c2cf8ee0d9cdbbda1509dff","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"fe673ac2bac7ed5d25fcf3c3bfd2bb37f4ef8f39af65589b9ff3f5fa331dbfef","signature":"7e4ac4a4f6af96be2b36af7334ab7a9da9eb2b33894fdd60e19c789e4a5548a7"},{"version":"c8747693e5872ad5ef3aa016731a06915e1c34dae987829d9aa5bd40c7a2c54b","affectsGlobalScope":true},"8a659f7d82d932649a78f89643c5b436953424a219d705d49b8b3d9ccd6e35ff",{"version":"75cd6dce1c5f87511772c891de86d0c9e6829e6273dea9f92a5bec9d0479d1e7","affectsGlobalScope":true},{"version":"cd711db43a952f15464b571ac11b7a440332cd52342bc92c4bf908c70688f57f","affectsGlobalScope":true},"9d8709c916778cb34830708ed47b78e9a46d1fb2eb73a682b14eee990bed4aa6",{"version":"5d90911f942229eb9049feab241739a5ced76f137948f8f42a615e5f01d4e7ea","affectsGlobalScope":true},"999a90d30a3183dcee987d0a5a7c586aba5bacbf6ce087ba8635124082ccfeea","8a5878edd52f4a720560b4c6e6247e9ddc3df6118ad9cf2f9927903b03d5f440",{"version":"d95d76d79a0351572ec5b1a6cc1e5c4bce1be82eedeed7278d6f31ea1059fa69","affectsGlobalScope":true},"6b40029289530423f407a22755c85b81740f9acfd88d2b53564f8c1657c26660","50a5b297e6c91df4f6068d98467a5e7ba4eeb888b9376757734dd4b1dfcdacd4",{"version":"0fd3b5704bf037608646df5aa053fd06819ff69302ff6ada9736c300f79df852","affectsGlobalScope":true},"65b91a3725399231d3469529b5e27b85bf2aa98013e607f308e5fe260b47eeff","a11181f6d68200e83ccb1fb48b262a7132a3257e0a230f41c9dc4c351964297a","32c936b21a904ffa8f97d35fe11ba2b1c29903d12235a025312207b6d1eb9a99","88cda4269c54f0803834fd62b2fac61af8bff7a085693f7ca9df85c1f19dee8a","812782c8e9f322040ff874107875d68b9388467df9789d214ce88ec2141bcefa",{"version":"8f6b43f3b48b283fc2085889756951c982adc02e2ed30b61daedb47ba4e9d00c","affectsGlobalScope":true},"5790da39e66a3b67698cbc16bc02570066fb655d688cec22a4313f39c21053a3","b78215ac58a5663c4c52ab3ae1a18ca74d7746e389d08cfc0ed2a6be86578105",{"version":"4221ae5712e79fb7ebd6edcbfc4c733b295e3885dc0f3f5ff5bb618ea2609ec4","affectsGlobalScope":true},"53295858dacf67bab25922be73cc7adcd38f4db654012dc9aaa7bf5e7cbd314a","4e2089b7fd3fc16e38918c6b84289694cd519f9f52fab3f0c29a022f35c2da92","fdf0aa1a72ff0188a9013926201a391116ef6701cd439b89850786abdf755fb8","f0b43f422b01042dd784bee89f9c67330001a575258bb49d28fd56e1a581e92e","abf9ea97b78a7b239186cf5b7ed59c4a593abac3c408c8c95fc5e604cfdfdb43","ae91c9161caf0af81c89e780a045fc5ea8382407e516342e409c5db9161d3b32","2c387828a523cc77a4300f5deb063651c9346c5a36ccfbfc127c38df8ab45b0c","6bec322c4ada7c942e133a70f0b7e0ca275d7f289a2bd6c63894002e82ce4bfd","d598157512ae6e0d3aa6bb0dd261ae34845831dccf7bc7739695ee2589eb76f5","0a7d16e19e1b337fea85b71ceef9205a9d83ecd4865963d3fd0f6f3bc5f91785","d2173e08898108c0aaa6dbfed27725b4a71f5817153800c86f03fa06456a2fc7",{"version":"ad4d00a81fee8acc30854f2acd59279faed73a3347bad38c5a8ff2618779966d","signature":"282ccf7c3a7f3ca54f7379e41caeff7497b8f76b742f22ac82f3efa650fb30a1"},{"version":"7e59d3dcc7b7ec8d9231535240e3b52eb9873c4672f8139b060efd6d3e1e54a8","signature":"37d4e09d0bfe55e9aee3900fcfc009592082f89e4d5e9d9a7329ce919f4cf121"},"0cba3a5d7b81356222594442753cf90dd2892e5ccfe1d262aaca6896ba6c1380","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"c2ab70bbc7a24c42a790890739dd8a0ba9d2e15038b40dff8163a97a5d148c00","affectsGlobalScope":true},"422dbb183fdced59425ca072c8bd09efaa77ce4e2ab928ec0d8a1ce062d2a45a",{"version":"2a801b0322994c3dd7f0ef30265d19b3dd3bae6d793596879166ed6219c3da68","affectsGlobalScope":true},"1dab5ab6bcf11de47ab9db295df8c4f1d92ffa750e8f095e88c71ce4c3299628","f71f46ccd5a90566f0a37b25b23bc4684381ab2180bdf6733f4e6624474e1894",{"version":"54e65985a3ee3cec182e6a555e20974ea936fc8b8d1738c14e8ed8a42bd921d4","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","bcc8caf03ee65fe8610d258752f255fbdddbb2e4de7b6c5628956a5a0d859ec8","34e5de87d983bc6aefef8b17658556e3157003e8d9555d3cb098c6bef0b5fbc8","cc0b61316c4f37393f1f9595e93b673f4184e9d07f4c127165a490ec4a928668","f27371653aded82b2b160f7a7033fb4a5b1534b6f6081ef7be1468f0f15327d3","c762cd6754b13a461c54b59d0ae0ab7aeef3c292c6cf889873f786ee4d8e75c9","f4ea7d5df644785bd9fbf419930cbaec118f0d8b4160037d2339b8e23c059e79",{"version":"c28e5baab1b53377c90d12970e207a2644bc3627840066449e37e2a59125d07e","affectsGlobalScope":true},"7a5459efa09ea82088234e6533a203d528c594b01787fb90fba148885a36e8b6","ae97e20f2e10dbeec193d6a2f9cd9a367a1e293e7d6b33b68bacea166afd7792","fce6a1a1553ff7d54ffb8bb3ae488c9cb5f2f4f4e52212c1abe40f544819ef35","ad41bb744149e92adb06eb953da195115620a3f2ad48e7d3ae04d10762dae197","bf73c576885408d4a176f44a9035d798827cc5020d58284cb18d7573430d9022","7ae078ca42a670445ae0c6a97c029cb83d143d62abd1730efb33f68f0b2c0e82",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"5d0a9ea09d990b5788f867f1c79d4878f86f7384cb7dab38eecbf22f9efd063d","12eea70b5e11e924bb0543aea5eadc16ced318aa26001b453b0d561c2fd0bd1e","08777cd9318d294646b121838574e1dd7acbb22c21a03df84e1f2c87b1ad47f2","08a90bcdc717df3d50a2ce178d966a8c353fd23e5c392fd3594a6e39d9bb6304",{"version":"8207e7e6db9aa5fc7e61c8f17ba74cf9c115d26f51f91ee93f790815a7ea9dfb","affectsGlobalScope":true},"2a12d2da5ac4c4979401a3f6eaafa874747a37c365e4bc18aa2b171ae134d21b","002b837927b53f3714308ecd96f72ee8a053b8aeb28213d8ec6de23ed1608b66","1dc9c847473bb47279e398b22c740c83ea37a5c88bf66629666e3cf4c5b9f99c","a9e4a5a24bf2c44de4c98274975a1a705a0abbaad04df3557c2d3cd8b1727949","00fa7ce8bc8acc560dc341bbfdf37840a8c59e6a67c9bfa3fa5f36254df35db2","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"cfe724f7c694aab65a9bdd1acb05997848c504548c9d4c71645c187a091cfa2a","5f0ed51db151c2cdc4fa3bb0f44ce6066912ad001b607a34e65a96c52eb76248",{"version":"3345c276cab0e76dda86c0fb79104ff915a4580ba0f3e440870e183b1baec476","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","e383ff72aabf294913f8c346f5da1445ae6ad525836d28efd52cbadc01a361a6","f52fbf64c7e480271a9096763c4882d356b05cab05bf56a64e68a95313cd2ce2","59bdb65f28d7ce52ccfc906e9aaf422f8b8534b2d21c32a27d7819be5ad81df7","1835259a20b9fa6b1882931375b69ae5978195f2b139b4e0db51ec8319261649","b52cd693219a63dd21282ac99a7bf55f77cbe8a91f097968856419cc2e05f017","3aff9c8c36192e46a84afe7b926136d520487155154ab9ba982a8b544ea8fc95","a880cf8d85af2e4189c709b0fea613741649c0e40fffb4360ec70762563d5de0","85bbf436a15bbeda4db888be3062d47f99c66fd05d7c50f0f6473a9151b6a070","9f9c49c95ecd25e0cb2587751925976cf64fd184714cb11e213749c80cf0f927","f0c75c08a71f9212c93a719a25fb0320d53f2e50ca89a812640e08f8ad8c408c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"267af67ea520cabd16402522756b19ac63d9e2c1c86e7c4d1ddeb991c32e12c9","6738101ae8e56cd3879ab3f99630ada7d78097fc9fd334df7e766216778ca219","b95f751a58d283cb5e32f2655361f6e2a27f0368f69edc463a3472aae21d1303","6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073","afc559c1b93df37c25aef6b3dfa2d64325b0e112e887ee18bf7e6f4ec383fc90","ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc","495da6628b9474e31d0636d66c54448bb8d84dbce902e8f70539ef6a525a2d7b","629766229f541d92210f30a92b6038568ec165fab14b7ee53bdf13667da37ca3","e4dfe0e169e1cb3c8dd0713972e94e2141595c840ed7387623ac8b29fc6c35b8","c1ea344dc311b2c539ed1e3b4e17e9f4853dc7f348366b51f1d8a09a40fb223f","ce013414484233b24f42c0fcfca48a60bb66ab4e13c82953662305e8f1ee4925","16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c",{"version":"548311a7ece846e4b9c70c3cb5ac0776559957ff6fcedfde938ebe2774439509","affectsGlobalScope":true},"84e3bbd6f80983d468260fdbfeeb431cc81f7ea98d284d836e4d168e36875e86","0b85cb069d0e427ba946e5eb2d86ef65ffd19867042810516d16919f6c1a5aec","15c88bfd1b8dc7231ff828ae8df5d955bae5ebca4cf2bcb417af5821e52299ae","eb96a2321f717bccc3e49e104e299152984b927ea4546b559ae631c06565819c","68c559681a043ca6d622debcce75c4d82446fec08e06bf1066f71d6c325f224e","89ccbe04e737ce613f5f04990271cfa84901446350b8551b0555ddf19319723b","cddf5c26907c0b8378bc05543161c11637b830da9fadf59e02a11e675d11e180","3d2cd8f3047fff04a71e7037a6a4cb9f4accb28dbd8c0d83164d414811025af0","e98185f4249720ace1921d59c1ff4612fa5c633a183fc9bf28e2e7b8e3c7fd51","ee736349ccbd61aa257ef9811668109d57ab9e9dea654b6ccd7bb274e5584a20","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","5006668996956580886022c05108e32c742823e1b5652aff7914917233731518","0c52f5366c9146ad79b546e70162c659972a2798522806e8283f3137feab3965","2a2e2c6463bcf3c59f31bc9ab4b6ef963bbf7dffb049cd017e2c1834e3adca63",{"version":"c4c03cf65951d980ba618ae9601d10438730803fc9c8a1f7b34af8739981e205","affectsGlobalScope":true},"2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","fc37aca06f6b8b296c42412a2e75ab53d30cd1fa8a340a3bb328a723fd678377","5f2c582b9ef260cb9559a64221b38606378c1fabe17694592cdfe5975a6d7efa","8a19491eba2108d5c333c249699f40aff05ad312c04a17504573b27d91f0aede","bc81aff061c53a7140270555f4b22da4ecfe8601e8027cf5aa175fbdc7927c31","b2d70a269840a9528db473ac7565442434333a05c1f66801a7a672e82beb903e"],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":99,"noEmitOnError":true,"outDir":"./","rootDir":"..","sourceMap":true,"strict":true,"target":5},"fileIdsList":[[158],[43,158],[50,158],[43,50,158],[43,50,58,158],[41,42,158],[103,158],[75,97,101,102,158],[96,101,158],[81,82,158],[83,158],[82,84,158],[94,95,106,107,108,109,110,158],[95,104,158],[105,158],[96,158],[75,158],[75,105,158],[81,93,111,158],[85,88,89,92,158],[133,158,165],[133,158,165,168],[81,158],[133,158,165,170],[133,158,165,168,175,180],[130,133,158,165,170,176],[158,169,170,177,179],[158,184],[158,188],[158,189],[158,194],[130,133,134,138,144,157,158,165,166,173,175,181,186,187,193],[115,158],[118,158],[119,124,158],[120,130,131,138,147,157,158],[120,121,130,138,158],[122,158],[123,124,131,139,158],[124,147,154,158],[125,127,130,138,158],[126,158],[127,128,158],[129,130,158],[130,158],[130,131,132,147,157,158],[130,131,132,147,158],[133,138,147,157,158],[130,131,133,134,138,147,154,157,158],[133,135,147,154,157,158],[115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164],[130,136,158],[137,157,158],[127,130,138,147,158],[139,158],[140,158],[118,141,158],[142,156,158,162],[143,158],[144,158],[130,145,158],[145,146,158,160],[130,147,148,149,158],[147,149,158],[147,148,158],[150,158],[151,158],[130,152,153,158],[152,153,158],[124,138,147,154,158],[155,158],[138,156,158],[119,133,144,157,158],[124,158],[147,158,159],[158,160],[158,161],[119,124,130,132,141,147,157,158,160,162],[147,158,163],[158,198],[158,199],[158,165],[133,158,165,178],[81,91,158],[90,158],[44,158],[130,133,135,138,147,154,157,158,163,165],[130,147,158,165],[87,158],[86,158],[98,158],[75,97,98,99,100,158],[63,66,67,68,158],[63,158],[63,66,158],[65,158],[66,67,158],[64,66,69,75,158],[64,69,158],[64,66,68,158],[63,66,67,158],[68,158],[69,158],[63,64,65,66,67,68,69,70,71,72,73,74,158],[51,52,53,54,55,56,57,58,59,158],[43,47,48,158],[43,47,158],[47,158],[45,46,158],[40,49,60,61,62,76,158],[40,77,158],[40,61,158],[40,158],[40,75,79,158],[40,77,79,112,158],[40,61,112,158],[152,153],[103,152,153],[75,97,101,102,152,153],[96,101,152,153],[81,82,152,153],[83,152,153],[82,84,152,153],[94,95,106,107,108,109,110,152,153],[95,104,152,153],[105,152,153],[96,152,153],[75,152,153],[75,105,152,153],[81,93,111,152,153],[85,88,89,92,152,153],[133,152,153,165],[81,152,153],[133,152,153,165,168,175,180],[152,153,169,170,177,179],[152,153,188],[152,153,189],[152,153,194],[130,133,134,138,144,152,153,157,165,166,173,175,181,186,187,193],[152,153,165],[133,152,153,165,178],[130,147,152,153,165],[87,152,153],[86,152,153],[63,66,67,68,152,153],[63,152,153],[63,66,152,153],[65,152,153],[66,67,152,153],[64,66,69,75,152,153],[64,69,152,153],[64,66,68,152,153],[63,66,67,152,153],[68,152,153],[69,152,153],[63,64,65,66,67,68,69,70,71,72,73,74,152,153],[49,61,62],[40,77,152,153],[61],[75,79],[79]],"referencedMap":[[41,1],[50,2],[51,3],[54,4],[52,4],[56,4],[59,5],[58,1],[57,4],[55,4],[53,3],[42,1],[43,6],[96,1],[104,7],[103,8],[102,9],[83,10],[84,11],[82,1],[85,12],[111,13],[94,1],[105,14],[106,15],[107,1],[108,16],[109,17],[95,18],[110,15],[112,19],[93,20],[90,1],[166,21],[167,1],[169,22],[89,23],[81,1],[171,24],[172,1],[168,21],[173,1],[174,1],[181,25],[182,1],[183,1],[177,26],[180,27],[185,28],[186,1],[187,1],[188,1],[189,29],[190,30],[191,1],[192,1],[175,1],[193,31],[194,32],[195,28],[178,1],[196,1],[115,33],[116,33],[118,34],[119,35],[120,36],[121,37],[122,38],[123,39],[124,40],[125,41],[126,42],[127,43],[128,43],[129,44],[130,45],[131,46],[132,47],[117,1],[164,1],[133,48],[134,49],[135,50],[165,51],[136,52],[137,53],[138,54],[139,55],[140,56],[141,57],[142,58],[143,59],[144,60],[145,61],[146,62],[147,63],[149,64],[148,65],[150,66],[151,67],[152,68],[153,69],[154,70],[155,71],[156,72],[157,73],[158,74],[159,75],[160,76],[161,77],[162,78],[163,79],[197,1],[199,80],[198,81],[170,1],[176,1],[200,82],[179,83],[92,84],[91,85],[45,86],[44,1],[184,1],[201,87],[202,88],[86,23],[88,89],[87,90],[100,1],[99,91],[98,1],[101,92],[76,17],[70,93],[71,94],[72,1],[63,1],[67,95],[66,96],[73,97],[97,98],[65,99],[74,100],[68,101],[69,102],[64,103],[75,104],[60,105],[49,106],[48,107],[46,108],[47,109],[40,1],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[38,1],[34,1],[35,1],[36,1],[37,1],[1,1],[39,1],[77,110],[78,111],[79,111],[62,112],[61,113],[80,114],[113,115],[114,116]],"exportedModulesMap":[[41,1],[50,2],[51,3],[54,4],[52,4],[56,4],[59,5],[58,1],[57,4],[55,4],[53,3],[42,1],[43,6],[96,117],[104,118],[103,119],[102,120],[83,121],[84,122],[82,117],[85,123],[111,124],[94,117],[105,125],[106,126],[107,117],[108,127],[109,128],[95,129],[110,126],[112,130],[93,131],[90,117],[166,132],[167,1],[169,22],[89,133],[81,1],[171,24],[172,1],[168,132],[173,117],[174,117],[181,134],[182,1],[183,117],[177,26],[180,135],[185,28],[186,1],[187,117],[188,1],[189,136],[190,137],[191,1],[192,1],[175,117],[193,138],[194,139],[195,28],[178,117],[196,117],[115,33],[116,33],[118,34],[119,35],[120,36],[121,37],[122,38],[123,39],[124,40],[125,41],[126,42],[127,43],[128,43],[129,44],[130,45],[131,46],[132,47],[117,1],[164,117],[133,48],[134,49],[135,50],[165,51],[136,52],[137,53],[138,54],[139,55],[140,56],[141,57],[142,58],[143,59],[144,60],[145,61],[146,62],[147,63],[149,64],[148,65],[150,66],[151,67],[152,68],[153,69],[154,70],[155,71],[156,72],[157,73],[158,74],[159,75],[160,76],[161,77],[162,78],[163,79],[197,117],[199,80],[198,81],[170,117],[176,117],[200,140],[179,141],[92,84],[91,85],[45,86],[44,1],[184,1],[201,87],[202,142],[86,133],[88,143],[87,144],[100,1],[99,91],[98,1],[101,92],[76,128],[70,145],[71,146],[72,117],[63,117],[67,147],[66,148],[73,149],[97,150],[65,151],[74,152],[68,153],[69,154],[64,155],[75,156],[60,105],[49,106],[48,107],[46,108],[47,109],[40,117],[8,117],[10,117],[9,117],[2,117],[11,117],[12,117],[13,117],[14,117],[15,117],[16,117],[17,117],[18,117],[3,117],[4,117],[22,117],[19,117],[20,117],[21,117],[23,117],[24,117],[25,117],[5,117],[26,117],[27,117],[28,117],[29,117],[6,117],[30,117],[31,117],[32,117],[33,117],[7,1],[38,1],[34,1],[35,1],[36,1],[37,1],[1,117],[39,117],[77,157],[78,158],[62,159],[80,160],[113,161],[114,159]],"semanticDiagnosticsPerFile":[41,50,51,54,52,56,59,58,57,55,53,42,43,96,104,103,102,83,84,82,85,111,94,105,106,107,108,109,95,110,112,93,90,166,167,169,89,81,171,172,168,173,174,181,182,183,177,180,185,186,187,188,189,190,191,192,175,193,194,195,178,196,115,116,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,117,164,133,134,135,165,136,137,138,139,140,141,142,143,144,145,146,147,149,148,150,151,152,153,154,155,156,157,158,159,160,161,162,163,197,199,198,170,176,200,179,92,91,45,44,184,201,202,86,88,87,100,99,98,101,76,70,71,72,63,67,66,73,97,65,74,68,69,64,75,60,49,48,46,47,40,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,30,31,32,33,7,38,34,35,36,37,1,39,77,78,79,62,61,80,113,114]},"version":"4.3.5"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kmap-term-tree",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.16",
|
|
4
4
|
"description": "Renders a tree from a mathematical term",
|
|
5
5
|
"author": "Holger Engels",
|
|
6
6
|
"repository": {
|
|
@@ -35,15 +35,14 @@
|
|
|
35
35
|
"storybook:build": "tsc && build-storybook"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"lit
|
|
39
|
-
"lit-html": "^1.4.1"
|
|
38
|
+
"lit": "^2.1.1"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
42
41
|
"@open-wc/eslint-config": "^4.3.0",
|
|
43
42
|
"@open-wc/testing": "^2.5.33",
|
|
44
43
|
"@typescript-eslint/eslint-plugin": "^4.28.3",
|
|
45
44
|
"@typescript-eslint/parser": "^4.28.3",
|
|
46
|
-
"@web/dev-server": "^0.1.
|
|
45
|
+
"@web/dev-server": "^0.1.29",
|
|
47
46
|
"@web/dev-server-storybook": "^0.3.5",
|
|
48
47
|
"@web/test-runner": "^0.12.20",
|
|
49
48
|
"concurrently": "^5.3.0",
|
|
@@ -52,8 +51,8 @@
|
|
|
52
51
|
"husky": "^4.3.8",
|
|
53
52
|
"lint-staged": "^10.5.4",
|
|
54
53
|
"prettier": "^2.2.1",
|
|
55
|
-
"tslib": "^2.3.
|
|
56
|
-
"typescript": "
|
|
54
|
+
"tslib": "^2.3.1",
|
|
55
|
+
"typescript": "~4.3.5"
|
|
57
56
|
},
|
|
58
57
|
"eslintConfig": {
|
|
59
58
|
"parser": "@typescript-eslint/parser",
|
package/src/KmapTermTree.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {css, html, LitElement,
|
|
1
|
+
import {css, html, LitElement, PropertyValues, svg} from 'lit';
|
|
2
|
+
import {property, state, query} from 'lit/decorators.js';
|
|
2
3
|
import {Parser, TermNode} from "./parser.js";
|
|
3
4
|
import {Token} from "./tokenizer.js";
|
|
4
5
|
import {ifDefined} from "lit-html/directives/if-defined.js";
|
|
@@ -86,13 +87,13 @@ export class KmapTermTree extends LitElement {
|
|
|
86
87
|
@property({ type: String }) term?: string;
|
|
87
88
|
@property({type: Number}) tension: number = 0;
|
|
88
89
|
|
|
89
|
-
@
|
|
90
|
-
@
|
|
91
|
-
@
|
|
92
|
-
@
|
|
93
|
-
@
|
|
90
|
+
@state() tokens?: Token[];
|
|
91
|
+
@state() nodes?: TermNode[];
|
|
92
|
+
@state() termNode?: TermNode;
|
|
93
|
+
@state() depths?: {[key: string]: number};
|
|
94
|
+
@state() maxDepths?: number;
|
|
94
95
|
|
|
95
|
-
@
|
|
96
|
+
@state() connections?: Connection[];
|
|
96
97
|
|
|
97
98
|
@query("kmap-term-tree-edges") edgesElement?: KmapTermTreeEdge;
|
|
98
99
|
@query("#tokens") tokensElement?: HTMLDivElement;
|