@podlite/toc 0.0.7 → 0.0.8

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.
@@ -0,0 +1,2 @@
1
+ export declare const prepareDataForToc: (data: any[]) => any;
2
+ export declare const getTocPod: (tocTree: any, tocTitle?: string) => string;
package/esm/helpers.js ADDED
@@ -0,0 +1,119 @@
1
+ import { makeTransformer, getNodeId, getTextContentFromNode } from '@podlite/schema';
2
+ export const prepareDataForToc = (data) => {
3
+ const isSemanticBlock = node => {
4
+ const name = node.name || '';
5
+ const isTypeBlock = (node.type || '') === 'block';
6
+ return isTypeBlock && name === name.toUpperCase();
7
+ };
8
+ const reduceLevel = arr => {
9
+ return arr.reduce((i, c) => {
10
+ return (i.includes(c) ? [...i] : [...i, c]).sort((a, b) => a - b);
11
+ }, []);
12
+ };
13
+ const normalizeLevels = data => {
14
+ const namesLevels = {};
15
+ for (const node of data) {
16
+ if (isSemanticBlock(node)) {
17
+ const level = 1;
18
+ node.level = level;
19
+ namesLevels['head'] = reduceLevel([...(namesLevels['head'] || []), 1]);
20
+ }
21
+ else {
22
+ // TODO: eliminate string level (=item)
23
+ // default level is 1 for all items
24
+ namesLevels[node.name] = reduceLevel([...(namesLevels[node.name] || []), parseInt(node.level, 10) || 1]);
25
+ }
26
+ }
27
+ return namesLevels;
28
+ };
29
+ const levelsMap = normalizeLevels(data);
30
+ const tocTree = [[-1, { item: 'toc', level: 0, node: {} }]];
31
+ /**
32
+ // find nearest by level
33
+ const tocTree = [
34
+ [ -1, { item: 'toc', level:0 } ],
35
+ [ 0, { item: 'head', level:1 } ],
36
+ [ 1, { item: 'head2', level:2 } ],
37
+ [ 0, { item: 'head', level:1 } ],
38
+ [ 3, { item: 'item2', level:3 } ],
39
+ ];
40
+ const sq = getIndexByLevel(tocTree, 4)
41
+ */
42
+ const getRootIndexByLevel = (tocTree, level) => {
43
+ return (tocTree.length -
44
+ tocTree
45
+ .slice()
46
+ .reverse()
47
+ .findIndex(e => e[1].level < level) -
48
+ 1);
49
+ };
50
+ let currentLevel = 1;
51
+ // prepare normilized data
52
+ for (let i = 0; i < data.length; i++) {
53
+ const item = data[i];
54
+ // deafult level is 1 for all items
55
+ const normalizedLevel = levelsMap[item.name].findIndex(l => l === parseInt(item.level || 1)) + 1;
56
+ switch (item.name) {
57
+ case 'head':
58
+ {
59
+ const parent = getRootIndexByLevel(tocTree, normalizedLevel);
60
+ tocTree.push([parent, { item: item.name, level: normalizedLevel, node: item }]);
61
+ if (currentLevel != normalizedLevel) {
62
+ currentLevel = normalizedLevel;
63
+ }
64
+ }
65
+ break;
66
+ default:
67
+ {
68
+ const newlevel = currentLevel + normalizedLevel;
69
+ const parent = getRootIndexByLevel(tocTree, newlevel);
70
+ tocTree.push([parent, { item: item.name, level: newlevel, node: item }]);
71
+ }
72
+ break;
73
+ }
74
+ }
75
+ //Turns given flat arr into a tree and returns root..
76
+ //(Assumes that no child is declared before parent)
77
+ function makeTree(arr) {
78
+ //Array with all the children elements set correctly..
79
+ var treeArr = new Array(arr.length);
80
+ for (var i = 0, len = arr.length; i < len; i++) {
81
+ var arrI = arr[i];
82
+ var newNode = (treeArr[i] = {
83
+ type: arrI[1].item,
84
+ level: arrI[1].level,
85
+ node: arrI[1].node,
86
+ content: [],
87
+ });
88
+ var parentI = arrI[0];
89
+ if (parentI > -1) {
90
+ //i.e. not the root..
91
+ treeArr[parentI].content.push(newNode);
92
+ }
93
+ }
94
+ return treeArr[0]; //return the root..
95
+ }
96
+ return makeTree(tocTree);
97
+ };
98
+ export const getTocPod = (tocTree, tocTitle = 'Table of contents') => {
99
+ let blocks = [];
100
+ const rules = {
101
+ ':toc': (node, _, visiter) => {
102
+ blocks.push(`=head1 ${tocTitle}`);
103
+ visiter(node.content);
104
+ },
105
+ ':head': (node, ctx, visiter) => {
106
+ const id = getNodeId(node.node, ctx);
107
+ blocks.push(`=item${node.level} L<${getTextContentFromNode(node.node).trim()} ${id ? `|#${id}` : ''}>`);
108
+ visiter(node.content);
109
+ },
110
+ ':item': (node, _, visiter) => {
111
+ blocks.push(`=item${node.level} ${getTextContentFromNode(node.node).trim()}`);
112
+ visiter(node.content);
113
+ },
114
+ };
115
+ const transformer = makeTransformer(rules);
116
+ const res = transformer(tocTree, {});
117
+ return blocks.join('\n');
118
+ };
119
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AAEpF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,IAAW,EAAE,EAAE;IAC/C,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE;QAC7B,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE,CAAA;QAC5B,MAAM,WAAW,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC,KAAK,OAAO,CAAA;QACjD,OAAO,WAAW,IAAI,IAAI,KAAK,IAAI,CAAC,WAAW,EAAE,CAAA;IACnD,CAAC,CAAA;IACD,MAAM,WAAW,GAAG,GAAG,CAAC,EAAE;QACxB,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YACzB,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAA;QACnE,CAAC,EAAE,EAAE,CAAC,CAAA;IACR,CAAC,CAAA;IACD,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE;QAC7B,MAAM,WAAW,GAAG,EAAE,CAAA;QACtB,KAAK,MAA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,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;YACvG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QACvB,CAAC;QACD,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE;YAC5B,MAAM,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,KAAK,IAAI,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;YAC7E,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QACvB,CAAC;KACF,CAAA;IACD,MAAM,WAAW,GAAG,eAAe,CAAC,KAAK,CAAC,CAAA;IAC1C,MAAM,GAAG,GAAG,WAAW,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;IACpC,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AAC1B,CAAC,CAAA"}
package/esm/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { Plugin, Plugins } from '@podlite/schema';
2
+ import { PodNode } from '@podlite/schema';
3
+ export declare const getContentForToc: (node: PodNode) => string;
4
+ export declare const plugin: Plugin;
5
+ export declare const PluginRegister: Plugins;
6
+ export default plugin;
package/esm/index.js ADDED
@@ -0,0 +1,82 @@
1
+ import { getFromTree, getTextContentFromNode, mkTocItem, mkTocList, mkToc, getNodeId, makeAttrs, isNamedBlock, } from '@podlite/schema';
2
+ import { prepareDataForToc } from './helpers';
3
+ export const getContentForToc = (node) => {
4
+ if (typeof node !== 'string' && 'type' in node) {
5
+ if (node.type === 'block') {
6
+ const conf = makeAttrs(node, {});
7
+ if (isNamedBlock(node.name)) {
8
+ const caption = ((conf, nodeName) => {
9
+ if (conf.exists('caption')) {
10
+ return conf.getFirstValue('caption');
11
+ }
12
+ else if (conf.exists('title')) {
13
+ return conf.getFirstValue('title');
14
+ }
15
+ else {
16
+ // try to find content child node
17
+ const [captionNode] = getFromTree(node, 'caption');
18
+ if (captionNode) {
19
+ return getTextContentFromNode(captionNode);
20
+ }
21
+ }
22
+ return `${nodeName} not have :caption`;
23
+ })(conf, node.name);
24
+ return caption;
25
+ }
26
+ if (node.name == 'image') {
27
+ const caption = getTextContentFromNode(conf.getFirstValue('caption'));
28
+ return caption || 'image not have caption';
29
+ }
30
+ if (node.name == 'table') {
31
+ const caption = getTextContentFromNode(conf.getFirstValue('caption'));
32
+ return caption || 'table not have :caption';
33
+ }
34
+ return getTextContentFromNode(node);
35
+ }
36
+ }
37
+ return 'Not supported toc element';
38
+ };
39
+ export const plugin = {
40
+ toAstAfter: (writer, processor, fulltree) => {
41
+ return (node, ctx) => {
42
+ const content = getTextContentFromNode(node);
43
+ const blocks = content
44
+ .trim()
45
+ .split(/(?:\s*,\s*|\s+)/)
46
+ .filter(Boolean);
47
+ if (blocks.length == 0) {
48
+ blocks.push({ name: 'head' });
49
+ }
50
+ const nodes = getFromTree(fulltree, ...blocks);
51
+ const tocTree = prepareDataForToc(nodes);
52
+ const createList = (items, level) => {
53
+ const resultList = [];
54
+ items.map(item => {
55
+ const { level, node, content } = item;
56
+ // create new node for each item
57
+ const text = getContentForToc(node) || ' '; // ' ' needs to avoid lack of L<>
58
+ //TODO: getNodeId should use ctx of node, but using {} instead
59
+ const para = `L<${text}|#${getNodeId(node, {})}>`;
60
+ const tocNode = processor(para)[0];
61
+ resultList.push(mkTocItem(tocNode));
62
+ if (Array.isArray(content) && content.length > 0) {
63
+ resultList.push(createList(content, level + 1));
64
+ }
65
+ });
66
+ return mkTocList(resultList, level);
67
+ };
68
+ const conf = makeAttrs(node, ctx);
69
+ const tocTitle = conf.getFirstValue('title');
70
+ const makeToc = (tocTree, title) => {
71
+ return mkToc(createList(tocTree.content, 1), title);
72
+ };
73
+ return makeToc(tocTree, tocTitle);
74
+ };
75
+ },
76
+ };
77
+ export const PluginRegister = {
78
+ Toc: plugin,
79
+ toc: plugin,
80
+ };
81
+ export default plugin;
82
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EACX,sBAAsB,EACtB,SAAS,EACT,SAAS,EACT,KAAK,EAGL,SAAS,EAET,SAAS,EACT,YAAY,GACb,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAE7C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAa,EAAU,EAAE;IACxD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,MAAM,IAAI,IAAI,EAAE;QAC9C,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;YACzB,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;YAChC,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBAC3B,MAAM,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE;oBAClC,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE;wBAC1B,OAAO,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAA;qBACrC;yBAAM,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;wBAC/B,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;qBACnC;yBAAM;wBACL,iCAAiC;wBACjC,MAAM,CAAC,WAAW,CAAC,GAAG,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC,CAAA;wBAClD,IAAI,WAAW,EAAE;4BACf,OAAO,sBAAsB,CAAC,WAAW,CAAC,CAAA;yBAC3C;qBACF;oBACD,OAAO,GAAG,QAAQ,oBAAoB,CAAA;gBACxC,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC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}
package/package.json CHANGED
@@ -1,20 +1,28 @@
1
1
  {
2
2
  "name": "@podlite/toc",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "'Table of contents' plugin for Podlite markup language",
5
5
  "main": "lib/index.js",
6
6
  "types": "./lib/index.d.ts",
7
7
  "license": "MIT",
8
8
  "scripts": {
9
9
  "clean": "rm -rf dist lib tsconfig.tsbuildinfo",
10
- "build": "tsc",
10
+ "build": "yarn g:build",
11
11
  "test": "yarn g:jest --passWithNoTests"
12
12
  },
13
13
  "publishConfig": {
14
14
  "access": "public",
15
15
  "main": "lib/index.js",
16
- "types": "./lib/index.d.ts"
16
+ "types": "./lib/index.d.ts",
17
+ "module": "./esm/index.js"
17
18
  },
19
+ "files": [
20
+ "lib",
21
+ "esm",
22
+ "README.md",
23
+ "CHANGELOG.md",
24
+ "LICENSE"
25
+ ],
18
26
  "keywords": [
19
27
  "markdown",
20
28
  "pod6",
@@ -27,9 +35,10 @@
27
35
  "react-dom": "^16.0.0 || ^17.0.0"
28
36
  },
29
37
  "dependencies": {
30
- "@podlite/schema": "0.0.14",
38
+ "@podlite/schema": "0.0.15",
31
39
  "react": "^16.0.0 || ^17.0.0 ",
32
40
  "react-dom": "^16.0.0 || ^17.0.0",
33
41
  "react-is": "^17.0.0"
34
- }
42
+ },
43
+ "module": "./esm/index.js"
35
44
  }
package/index.js DELETED
@@ -1,2 +0,0 @@
1
- 'use strict'
2
- module.exports = require('./lib')
package/jest.config.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require('../../jest.config')
@@ -1 +0,0 @@
1
- { "extends": "../../jest.tsconfig.json" }
package/src/helpers.ts DELETED
@@ -1,122 +0,0 @@
1
- import { makeTransformer, getNodeId, getTextContentFromNode } from '@podlite/schema'
2
-
3
- export const prepareDataForToc = (data: any[]) => {
4
- const isSemanticBlock = node => {
5
- const name = node.name || ''
6
- const isTypeBlock = (node.type || '') === 'block'
7
- return isTypeBlock && name === name.toUpperCase()
8
- }
9
- const reduceLevel = arr => {
10
- return arr.reduce((i, c) => {
11
- return (i.includes(c) ? [...i] : [...i, c]).sort((a, b) => a - b)
12
- }, [])
13
- }
14
- const normalizeLevels = data => {
15
- const namesLevels = {}
16
- for (const node of data) {
17
- if (isSemanticBlock(node)) {
18
- const level = 1
19
- node.level = level
20
- namesLevels['head'] = reduceLevel([...(namesLevels['head'] || []), 1])
21
- } else {
22
- // TODO: eliminate string level (=item)
23
- // default level is 1 for all items
24
- namesLevels[node.name] = reduceLevel([...(namesLevels[node.name] || []), parseInt(node.level, 10) || 1])
25
- }
26
- }
27
- return namesLevels
28
- }
29
- const levelsMap = normalizeLevels(data)
30
- const tocTree = [[-1, { item: 'toc', level: 0, node: {} }]]
31
- /**
32
- // find nearest by level
33
- const tocTree = [
34
- [ -1, { item: 'toc', level:0 } ],
35
- [ 0, { item: 'head', level:1 } ],
36
- [ 1, { item: 'head2', level:2 } ],
37
- [ 0, { item: 'head', level:1 } ],
38
- [ 3, { item: 'item2', level:3 } ],
39
- ];
40
- const sq = getIndexByLevel(tocTree, 4)
41
- */
42
- const getRootIndexByLevel = (tocTree, level) => {
43
- return (
44
- tocTree.length -
45
- tocTree
46
- .slice()
47
- .reverse()
48
- .findIndex(e => e[1].level < level) -
49
- 1
50
- )
51
- }
52
- let currentLevel = 1
53
- // prepare normilized data
54
- for (let i = 0; i < data.length; i++) {
55
- const item = data[i]
56
- // deafult level is 1 for all items
57
- const normalizedLevel: number = levelsMap[item.name].findIndex(l => l === parseInt(item.level || 1)) + 1
58
- switch (item.name) {
59
- case 'head':
60
- {
61
- const parent = getRootIndexByLevel(tocTree, normalizedLevel)
62
- tocTree.push([parent, { item: item.name, level: normalizedLevel, node: item }])
63
- if (currentLevel != normalizedLevel) {
64
- currentLevel = normalizedLevel
65
- }
66
- }
67
- break
68
- default:
69
- {
70
- const newlevel = currentLevel + normalizedLevel
71
- const parent = getRootIndexByLevel(tocTree, newlevel)
72
- tocTree.push([parent, { item: item.name, level: newlevel, node: item }])
73
- }
74
- break
75
- }
76
- }
77
- //Turns given flat arr into a tree and returns root..
78
- //(Assumes that no child is declared before parent)
79
- function makeTree(arr) {
80
- //Array with all the children elements set correctly..
81
- var treeArr = new Array(arr.length)
82
-
83
- for (var i = 0, len = arr.length; i < len; i++) {
84
- var arrI = arr[i]
85
- var newNode = (treeArr[i] = {
86
- type: arrI[1].item,
87
- level: arrI[1].level,
88
- node: arrI[1].node,
89
- content: [],
90
- })
91
- var parentI = arrI[0]
92
- if (parentI > -1) {
93
- //i.e. not the root..
94
- treeArr[parentI].content.push(newNode)
95
- }
96
- }
97
- return treeArr[0] //return the root..
98
- }
99
- return makeTree(tocTree)
100
- }
101
-
102
- export const getTocPod = (tocTree: any, tocTitle = 'Table of contents'): string => {
103
- let blocks = []
104
- const rules = {
105
- ':toc': (node, _, visiter) => {
106
- blocks.push(`=head1 ${tocTitle}`)
107
- visiter(node.content)
108
- },
109
- ':head': (node, ctx, visiter) => {
110
- const id = getNodeId(node.node, ctx)
111
- blocks.push(`=item${node.level} L<${getTextContentFromNode(node.node).trim()} ${id ? `|#${id}` : ''}>`)
112
- visiter(node.content)
113
- },
114
- ':item': (node, _, visiter) => {
115
- blocks.push(`=item${node.level} ${getTextContentFromNode(node.node).trim()}`)
116
- visiter(node.content)
117
- },
118
- }
119
- const transformer = makeTransformer(rules)
120
- const res = transformer(tocTree, {})
121
- return blocks.join('\n')
122
- }
package/src/index.tsx DELETED
@@ -1,94 +0,0 @@
1
- import {
2
- Plugin,
3
- getFromTree,
4
- getTextContentFromNode,
5
- mkTocItem,
6
- mkTocList,
7
- mkToc,
8
- TocList,
9
- Toc,
10
- getNodeId,
11
- Plugins,
12
- makeAttrs,
13
- isNamedBlock,
14
- } from '@podlite/schema'
15
- import { prepareDataForToc } from './helpers'
16
- import { PodNode } from '@podlite/schema'
17
- export const getContentForToc = (node: PodNode): string => {
18
- if (typeof node !== 'string' && 'type' in node) {
19
- if (node.type === 'block') {
20
- const conf = makeAttrs(node, {})
21
- if (isNamedBlock(node.name)) {
22
- const caption = ((conf, nodeName) => {
23
- if (conf.exists('caption')) {
24
- return conf.getFirstValue('caption')
25
- } else if (conf.exists('title')) {
26
- return conf.getFirstValue('title')
27
- } else {
28
- // try to find content child node
29
- const [captionNode] = getFromTree(node, 'caption')
30
- if (captionNode) {
31
- return getTextContentFromNode(captionNode)
32
- }
33
- }
34
- return `${nodeName} not have :caption`
35
- })(conf, node.name)
36
- return caption
37
- }
38
- if (node.name == 'image') {
39
- const caption = getTextContentFromNode(conf.getFirstValue('caption'))
40
- return caption || 'image not have caption'
41
- }
42
- if (node.name == 'table') {
43
- const caption = getTextContentFromNode(conf.getFirstValue('caption'))
44
- return caption || 'table not have :caption'
45
- }
46
- return getTextContentFromNode(node)
47
- }
48
- }
49
- return 'Not supported toc element'
50
- }
51
- export const plugin: Plugin = {
52
- toAstAfter: (writer, processor, fulltree) => {
53
- return (node, ctx) => {
54
- const content = getTextContentFromNode(node)
55
- const blocks: Array<any> = content
56
- .trim()
57
- .split(/(?:\s*,\s*|\s+)/)
58
- .filter(Boolean)
59
- if (blocks.length == 0) {
60
- blocks.push({ name: 'head' })
61
- }
62
- const nodes = getFromTree(fulltree, ...blocks)
63
- const tocTree = prepareDataForToc(nodes)
64
- const createList = (items: any[], level): TocList => {
65
- const resultList = []
66
- items.map(item => {
67
- const { level, node, content } = item
68
- // create new node for each item
69
- const text = getContentForToc(node) || ' ' // ' ' needs to avoid lack of L<>
70
- //TODO: getNodeId should use ctx of node, but using {} instead
71
- const para = `L<${text}|#${getNodeId(node, {})}>`
72
- const tocNode = processor(para)[0]
73
- resultList.push(mkTocItem(tocNode))
74
- if (Array.isArray(content) && content.length > 0) {
75
- resultList.push(createList(content, level + 1))
76
- }
77
- })
78
- return mkTocList(resultList, level)
79
- }
80
- const conf = makeAttrs(node, ctx)
81
- const tocTitle = conf.getFirstValue('title')
82
- const makeToc = (tocTree: any, title): Toc => {
83
- return mkToc(createList(tocTree.content, 1), title)
84
- }
85
-
86
- return makeToc(tocTree, tocTitle)
87
- }
88
- },
89
- }
90
- export const PluginRegister: Plugins = {
91
- Toc: plugin, //TODO: deprecate it
92
- toc: plugin,
93
- }
94
- export default plugin
package/t/plugin.test.tsx DELETED
@@ -1,232 +0,0 @@
1
- import { frozenIds, getFromTree, PodliteDocument, podlitePluggable, validatePodliteAst } from '@podlite/schema'
2
- import { plugin } from '../src/index'
3
- import Image from '@podlite/image'
4
-
5
- export const parse = (str: string): PodliteDocument => {
6
- let podlite = podlitePluggable().use({
7
- toc: plugin,
8
- })
9
- let tree = podlite.parse(str)
10
- const asAst = podlite.toAstResult(tree)
11
- return asAst.interator
12
- }
13
-
14
- export const parseImage = (str: string): PodliteDocument => {
15
- let podlite = podlitePluggable().use({
16
- toc: plugin,
17
- Image,
18
- })
19
- let tree = podlite.parse(str)
20
- const asAst = podlite.toAstResult(tree)
21
- return asAst.interator
22
- }
23
-
24
- const parseToHtml = (str: string): string => {
25
- let podlite = podlitePluggable().use({
26
- toc: plugin,
27
- Image,
28
- })
29
- let tree = podlite.parse(str)
30
- const asAst = podlite.toAst(frozenIds()(tree))
31
- return podlite.toHtml(asAst).toString()
32
- }
33
-
34
- const pod = `
35
- =begin pod
36
- =toc head1 head3 item item2
37
- =head2 test2
38
- =end pod`
39
- // =head1 test1 I<test> L<ddd | test >
40
-
41
- it('=toc: toAst', () => {
42
- const p = parse(pod)
43
- // try to validate Formal AST
44
- const r = validatePodliteAst(p)
45
- expect(r).toEqual([])
46
- })
47
-
48
- it('=para: parse to html', () => {
49
- const pod = `=para head1 head3 item item2`
50
- expect(parseToHtml(pod)).toMatchInlineSnapshot(`
51
- <p>
52
- head1 head3 item item2
53
- </p>
54
- `)
55
- })
56
-
57
- it('=toc: parse to html', () => {
58
- const pod = `=toc head1 head3 item item2`
59
- expect(parseToHtml(pod)).toMatchInlineSnapshot(`
60
- <div classname="toc">
61
- <ul class="toc-list listlevel1">
62
- </ul>
63
- </div>
64
- `)
65
- })
66
-
67
- it('=toc: head1 head2', () => {
68
- const pod = `=toc head1 head2
69
- =for head1 :id<123>
70
- Test head1
71
- `
72
- expect(parseToHtml(pod)).toMatchInlineSnapshot(`
73
- <div classname="toc">
74
- <ul class="toc-list listlevel1">
75
- <li class="toc-item">
76
- <p>
77
- <a href="#123">
78
- Test head1
79
- </a>
80
- </p>
81
- </li>
82
- </ul>
83
- </div>
84
- <h1 id="123">
85
- Test head1
86
- </h1>
87
- `)
88
- })
89
-
90
- it('[check default list]=toc', () => {
91
- const pod = `=toc
92
- =head1 head
93
- =head2 head
94
- =head3 head
95
- =head4 head
96
- =head5 head
97
- =head6 head
98
- `
99
- expect(parseToHtml(pod)).toMatchInlineSnapshot(`
100
- <div classname="toc">
101
- <ul class="toc-list listlevel1">
102
- <li class="toc-item">
103
- <p>
104
- <a href="#id">
105
- head
106
- </a>
107
- </p>
108
- </li>
109
- <ul class="toc-list listlevel2">
110
- <li class="toc-item">
111
- <p>
112
- <a href="#id">
113
- head
114
- </a>
115
- </p>
116
- </li>
117
- <ul class="toc-list listlevel3">
118
- <li class="toc-item">
119
- <p>
120
- <a href="#id">
121
- head
122
- </a>
123
- </p>
124
- </li>
125
- <ul class="toc-list listlevel4">
126
- <li class="toc-item">
127
- <p>
128
- <a href="#id">
129
- head
130
- </a>
131
- </p>
132
- </li>
133
- <ul class="toc-list listlevel5">
134
- <li class="toc-item">
135
- <p>
136
- <a href="#id">
137
- head
138
- </a>
139
- </p>
140
- </li>
141
- <ul class="toc-list listlevel6">
142
- <li class="toc-item">
143
- <p>
144
- <a href="#id">
145
- head
146
- </a>
147
- </p>
148
- </li>
149
- </ul>
150
- </ul>
151
- </ul>
152
- </ul>
153
- </ul>
154
- </ul>
155
- </div>
156
- <h1 id="id">
157
- head
158
- </h1>
159
- <h2 id="id">
160
- head
161
- </h2>
162
- <h3 id="id">
163
- head
164
- </h3>
165
- <h4 id="id">
166
- head
167
- </h4>
168
- <h5 id="id">
169
- head
170
- </h5>
171
- <h6 id="id">
172
- head
173
- </h6>
174
- `)
175
- })
176
- it.skip('=toc Image Diagram1', () => {
177
- const pod = `=for toc :title<Table of Media>
178
- Image Diagram
179
- =for Image :caption<Image caption> :id(1)
180
- https://example.com.image.png
181
- =Image https://example.com.image.png
182
-
183
- =for Diagram :caption<Diagram caption> :id(2)
184
- User content
185
- `
186
- const nodes = getFromTree(parseImage(pod), ':image')
187
- console.log(JSON.stringify(nodes, null, 2))
188
- // console.log(parseToHtml(nodes));
189
- // expect(parseToHtml(pod)).toMatchInlineSnapshot()
190
- })
191
-
192
- it('=toc Image Diagram', () => {
193
- const pod = `=for toc :title<Table of Media>
194
- Image Diagram
195
- =for Image :caption<Image caption> :id(1)
196
- https://example.com.image.png
197
- =for Diagram :caption<Diagram caption> :id(2)
198
- User content
199
- `
200
- expect(parseToHtml(pod)).toMatchInlineSnapshot(`
201
- <div classname="toc">
202
- <ul class="toc-list listlevel1">
203
- <li class="toc-item">
204
- <p>
205
- <a href="#1">
206
- Image caption
207
- </a>
208
- </p>
209
- </li>
210
- <li class="toc-item">
211
- <p>
212
- <a href="#2">
213
- Diagram caption
214
- </a>
215
- </p>
216
- </li>
217
- </ul>
218
- </div>
219
- <div class="image_block"
220
- id="1"
221
- >
222
- <img src="https://example.com.image.png"
223
- alt="undefined"
224
- >
225
- <div class="caption">
226
- <p>
227
- Image caption
228
- </p>
229
- </div>
230
- </div>
231
- `)
232
- })
package/tsconfig.json DELETED
@@ -1,18 +0,0 @@
1
- {
2
- "extends": "../core/tsconfig.json",
3
- "include": ["src/**/*"],
4
- "compilerOptions": {
5
- "outDir": "./lib",
6
- "rootDir": "./src",
7
- "baseUrl": ".",
8
- "jsx": "react"
9
- },
10
- "references": [
11
- {
12
- "path": "../core"
13
- },
14
- {
15
- "path": "../podlite-schema"
16
- }
17
- ]
18
- }
@@ -1 +0,0 @@
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.es2021.d.ts","../../node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.dom.iterable.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.es2021.promise.d.ts","../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/ajv/dist/compile/codegen/code.d.ts","../../node_modules/ajv/dist/compile/codegen/scope.d.ts","../../node_modules/ajv/dist/compile/codegen/index.d.ts","../../node_modules/ajv/dist/compile/rules.d.ts","../../node_modules/ajv/dist/compile/subschema.d.ts","../../node_modules/ajv/dist/compile/context.d.ts","../../node_modules/ajv/dist/compile/validate/dataType.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/contains.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/not.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/if.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/index.d.ts","../../node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts","../../node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts","../../node_modules/ajv/dist/vocabularies/validation/pattern.d.ts","../../node_modules/ajv/dist/vocabularies/validation/required.d.ts","../../node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts","../../node_modules/ajv/dist/vocabularies/validation/const.d.ts","../../node_modules/ajv/dist/vocabularies/validation/enum.d.ts","../../node_modules/ajv/dist/vocabularies/validation/index.d.ts","../../node_modules/ajv/dist/vocabularies/format/format.d.ts","../../node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts","../../node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts","../../node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts","../../node_modules/ajv/dist/vocabularies/errors.d.ts","../../node_modules/ajv/dist/types/json-schema.d.ts","../../node_modules/ajv/dist/types/jtd-schema.d.ts","../../node_modules/ajv/dist/compile/error_classes.d.ts","../../node_modules/ajv/dist/core.d.ts","../../node_modules/uri-js/dist/es5/uri.all.d.ts","../../node_modules/ajv/dist/compile/resolve.d.ts","../../node_modules/ajv/dist/compile/index.d.ts","../../node_modules/ajv/dist/types/index.d.ts","../../node_modules/ajv/dist/ajv.d.ts","../podlite-schema/lib/types.d.ts","../podlite-schema/lib/blocks-helpers.d.ts","../podlite-schema/lib/query-helpers.d.ts","../podlite-schema/lib/helpers/config.d.ts","../podlite-schema/lib/ast-helpers.d.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","../podlite-schema/lib/writer.d.ts","../podlite-schema/lib/helpers/makeQuery.d.ts","../podlite-schema/lib/helpers/handlers.d.ts","../podlite-schema/lib/ast-inerator.d.ts","../podlite-schema/lib/helpers/makeTransformer.d.ts","../podlite-schema/lib/exportAny.d.ts","../podlite-schema/lib/plugin-clean-location.d.ts","../podlite-schema/lib/helpers/plugins.d.ts","../podlite-schema/lib/helpers/ids.d.ts","../podlite-schema/lib/pluggableParser.d.ts","../podlite-schema/lib/exportHtml.d.ts","../podlite-schema/lib/index.d.ts","./src/helpers.ts","./src/index.tsx","../../node_modules/@babel/types/lib/index.d.ts","../../node_modules/@types/babel__generator/index.d.ts","../../node_modules/@babel/parser/node_modules/@babel/types/lib/index.d.ts","../../node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/@types/babel__template/index.d.ts","../../node_modules/@types/babel__traverse/index.d.ts","../../node_modules/@types/babel__core/index.d.ts","../../node_modules/@types/ms/index.d.ts","../../node_modules/@types/debug/index.d.ts","../../node_modules/@types/graceful-fs/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/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../node_modules/@types/jest/index.d.ts","../../node_modules/@types/json-schema/index.d.ts","../../node_modules/@types/json5/index.d.ts","../../node_modules/@types/unist/index.d.ts","../../node_modules/@types/mdast/index.d.ts","../../node_modules/@types/minimatch/index.d.ts","../../node_modules/@types/minimist/index.d.ts","../../node_modules/@types/normalize-package-data/index.d.ts","../../node_modules/@types/parse-json/index.d.ts","../../node_modules/@types/prettier/index.d.ts","../../node_modules/@types/prop-types/index.d.ts","../../node_modules/@types/react/global.d.ts","../../node_modules/csstype/index.d.ts","../../node_modules/@types/scheduler/tracing.d.ts","../../node_modules/@types/react/index.d.ts","../../node_modules/@types/react-dom/index.d.ts","../../node_modules/@types/scheduler/index.d.ts","../../node_modules/@types/stack-utils/index.d.ts","../../node_modules/@types/yargs-parser/index.d.ts","../../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"abba1071bfd89e55e88a054b0c851ea3e8a494c340d0f3fab19eb18f6afb0c9e","affectsGlobalScope":true},{"version":"927cb2b60048e1395b183bf74b2b80a75bdb1dbe384e1d9fac654313ea2fb136","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","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":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"e8c9f4e445a489991ca1a4232667de3ac36b07ba75ea335971fbeacf2d26fe67","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"2274b0f0e4f20a1af3309985337bd8a7f45610145db3c37485ea8697c0778eda","60bb0e47502bf8716d1230288b4e6387c1d34cded12752ab5338108e2e662e67","b250a278297e209148e3ee53c5f27b773a351618b0a0c5b8fe0397d2fbd08576","b3ae4ded82f27cabba780b9af9647f6e08c9a4cabe8fbb7a0cca69c7add9ef4b","b57d661f8123e266307b11fbf08ec29363f84f482622f99e42cf3fdf94059255","726416fd6b5f6d16c91fe5f2dee9ac722bceddd8f8e5d0fc9c3399c7c2efd9b1","1a23b521db8d7ec9e2b96c6fbd4c7e96d12f408b1e03661b3b9f7da7291103e6","1c68c3020dfada02f9e9671c7c13fb7adea15118f3acc2d21f02a7b3c632482c","ae0951e44973e928fe2e999b11960493835d094b16adac0b085a79cff181bcb9","9e8575c515e21e1b51ab7eb78cfd763ec857cfd7b4f985a4f394f9ea8c0ac36d","1609ad4d488c356ee91eba7d7aa87cc6fb59bc8ac05c1a8f08665285ba3b71ad","8add088f72326098d68d622ddb024c00ae56a912383efe96b03f0481db88f7c9","dd17fe6332567b8f13e33dd3ff8926553cdcea2ad32d4350ce0063a2addaa764","4091d56a4622480549350b8811ec64c7826cd41a70ce5d9c1cc20384bb144049","353c0125b9e50c2a71e18394d46be5ccb37161cc0f0e7c69216aa6932c8cdafb","9c5d5f167e86b6ddf7142559a17d13fd39c34e868ae947c40381db866eed6609","6539823527c9349664b239204197757434e287e9ef7c2c29afaad10a79f3348a","aae698ceead4edad0695b9ea87e43f274e698bdb302c8cb5fd2cab4dc496ccf0","51631e9a0c041e12479ab01f5801d8a237327d19e9ee37d5f1f66be912631425","c9d5d8adb1455f49182751ce885745dcc5f9697e9c260388bc3ae9d1860d5d10","f64289e3fa8d5719eaf5ba1bb02dd32dbbf7c603dda75c16770a6bc6e9c6b6d9","b1aa0e2e3511a8d10990f35866405c64c9e576258ef99eeb9ebafed980fd7506","2d255a5287f2fb5295688cb25bd18e1cd59866179f795f3f1fd6b71b7f0edf8f","43c1dbb78d5277a5fdd8fddce8b257f84ffa2b4253f58b95c04a310710d19e97","6c669d7e080344c1574aa276a89e57c3b9f0e97fab96a09427e7dfb19ca261bf","b71ac126853867d8e64c910f47d46d05c5ea797987d2604f63d401507dc43b6d","9a37238558d28b7ee06d08599e92eab30b90704541cc85e6448009d6d55fffa9","120b14d66a061910309ff97e7b06b5c6c09444218178b80b687a92af4d22d5dc","3de958065e3a44cbe0bfa667813bc59c63e63c9ce522af8dc1b64714910fa9ba","4dbd5a4e8c71e60af9af1d38d1ac5f6eedef3591afb556ed164f169061706f15","5db5754073f92ef99fef159a3415a733db507af67126b287daa51553cb9107d2","ac162509239b1a48ab6aa39a3fc34dd7d8cde209c59188f699b3ef78964165e0","44fa175d725f678ed47ee3cbaf2fcdf688559e672352ac24c721dd9ceef7d7c1","9556b6427e049169448398e1e59fb393e4de91852abda84dd569d0e7b038e641","9f3c5498245c38c9016a369795ec5ef1768d09db63643c8dba9656e5ab294825","8f35095ce6914b0e95d563adae6f2546dddd8f85c4034d9050530076d860b5b8","893edbff0dcaf7c4ef650c24cfcf87e6ad63d3e0457f7524d5706f8599e7bac3","06f6c325a4cec7589a46fb8c335b4da840b125bf20d514411fead13478b008b9","a3b6fafae3db815903c6ee13b8c77a43a89fba98fabf263a254f015b388cf190","b5e11df0ee4265a947149685f2dc03c068fe0ed9b8d66fef22a5796538e45244","170dc96be6d2fcfecf7348404d6adf230fbaa74a60c9b65918c518a1fb0f14e4","8db4789c08e463840af20c7f5440a3945987cdf14820b60fff63e03a75bd0c90","7d172510abda2eb827b492615c40cde28e1a899c5241dd0c3cc25cdcc636aef3","859f7f021bb081aa1da8a57ed935f65555340e5cb4f3d67b53bdade24ad9503e","0cba3a5d7b81356222594442753cf90dd2892e5ccfe1d262aaca6896ba6c1380","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"c2ab70bbc7a24c42a790890739dd8a0ba9d2e15038b40dff8163a97a5d148c00","affectsGlobalScope":true},"422dbb183fdced59425ca072c8bd09efaa77ce4e2ab928ec0d8a1ce062d2a45a",{"version":"19fa46aae5c730811087296a9dff1dbb7be3b63170668628c3018b28775d1b4d","affectsGlobalScope":true},"1dab5ab6bcf11de47ab9db295df8c4f1d92ffa750e8f095e88c71ce4c3299628","f71f46ccd5a90566f0a37b25b23bc4684381ab2180bdf6733f4e6624474e1894",{"version":"54e65985a3ee3cec182e6a555e20974ea936fc8b8d1738c14e8ed8a42bd921d4","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","98a3ebfa494b46265634a73459050befba5da8fdc6ca0ef9b7269421780f4ff3","34e5de87d983bc6aefef8b17658556e3157003e8d9555d3cb098c6bef0b5fbc8","cc0b61316c4f37393f1f9595e93b673f4184e9d07f4c127165a490ec4a928668","f27371653aded82b2b160f7a7033fb4a5b1534b6f6081ef7be1468f0f15327d3","c762cd6754b13a461c54b59d0ae0ab7aeef3c292c6cf889873f786ee4d8e75c9","f4ea7d5df644785bd9fbf419930cbaec118f0d8b4160037d2339b8e23c059e79",{"version":"bfea28e6162ed21a0aeed181b623dcf250aa79abf49e24a6b7e012655af36d81","affectsGlobalScope":true},"7a5459efa09ea82088234e6533a203d528c594b01787fb90fba148885a36e8b6","ae97e20f2e10dbeec193d6a2f9cd9a367a1e293e7d6b33b68bacea166afd7792","10d4796a130577d57003a77b95d8723530bbec84718e364aa2129fa8ffba0378","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",{"version":"3a2da34079a2567161c1359316a32e712404b56566c45332ac9dcee015ecce9f","affectsGlobalScope":true},"28a2e7383fd898c386ffdcacedf0ec0845e5d1a86b5a43f25b86bc315f556b79","3aff9c8c36192e46a84afe7b926136d520487155154ab9ba982a8b544ea8fc95","a880cf8d85af2e4189c709b0fea613741649c0e40fffb4360ec70762563d5de0","85bbf436a15bbeda4db888be3062d47f99c66fd05d7c50f0f6473a9151b6a070","9f9c49c95ecd25e0cb2587751925976cf64fd184714cb11e213749c80cf0f927","f0c75c08a71f9212c93a719a25fb0320d53f2e50ca89a812640e08f8ad8c408c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"9cafe917bf667f1027b2bb62e2de454ecd2119c80873ad76fc41d941089753b8","6f310052978d351ebf9033e90bf009e718522c7cb7c148cc9cb9413a73657250","142f7ea2d6affb8c5f4c14723ad122124f1fd1a29aa6ef9b5c46daf6cda719ce","dd6fc277379bfe5da22e38dae767e07da2abad6faf9fc1e0fa6e927b99a91bba","d624acaa27aac918d6264edc0d53ec1261a2d53214dd85f6cfd3b43db815b4b8","12e3c9f17fa31bcbdb082f5fe8a85ab102748c6b21d2b18ea51440d6bb6736e6","4dd326a132f4f5925c45895f192fa3d313fe46e6e6d42b2aca7cf83fd76efd88","fe1089035b474a7af21cdcc063bd625ffba806ef64634b02e682c9fc9cba0f14","6747ec8ef994e5047516c03ba0ee1cf0dbebf53843638207d3e73f10864d892b","0d9697ac268816705b887507a283a763e950b7ac29ae8f437fe583e9da18be62","86d5507f162b09b1088aafd9866d1e35661b475b45a01a9a81e5745a994a6d7b","05455184c5dd8d248ae921fc1bf1aa48a8960622112f93fd7decb45c5fc4ec63","3bbbc76268462d388d3cc02a3f58354bc5ea93d179344825142b649b8febd134","0693aea96c877f6519c56e8128f210a79b9b43511cd6713a909b64c30ee755bd","b4fddd5cdec8016b5db0d536edd1e62c03935cffd55a276e79a393e62b3727e4","b668b7fb7c52a05fb9233a27ba5099a73cd8e157b037d67399336635495ab483","b25c5f2970d06c729f464c0aeaa64b1a5b5f1355aa93554bb5f9c199b8624b1e","272c2dac4baaf7fdd2d7efeef0fa2547af54cc21883c5e138b8c4d1661697a54","069733dc220affbe58d9c1d1a93af3707bc515aaed761701d8741b57da4cb964","3051751533eee92572241b3cef28333212401408c4e7aa21718714b793c0f4ed","691aea9772797ca98334eb743e7686e29325b02c6931391bcee4cc7bf27a9f3b","6f1d39d26959517da3bd105c552eded4c34702705c64d75b03f54d864b6e41c2","6a9c5127096b35264eb7cd21b2417bfc1d42cceca9ba4ce2bb0c3410b7816042","78828b06c0d3b586954015e9ebde5480b009e166c71244763bda328ec0920f41","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","905c3e8f7ddaa6c391b60c05b2f4c3931d7127ad717a080359db3df510b7bdab","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","7adecb2c3238794c378d336a8182d4c3dd2c4fa6fa1785e2797a3db550edea62","dc12dc0e5aa06f4e1a7692149b78f89116af823b9e1f1e4eae140cd3e0e674e6","1bfc6565b90c8771615cd8cfcf9b36efc0275e5e83ac7d9181307e96eb495161","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190",{"version":"6ff2ca51e2c9d88d6d904c481879b12ec0cad2a69b88e220859a52207444773b","affectsGlobalScope":true},"0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","cddf5c26907c0b8378bc05543161c11637b830da9fadf59e02a11e675d11e180","2a2e2c6463bcf3c59f31bc9ab4b6ef963bbf7dffb049cd017e2c1834e3adca63","95c22bc19835e28e2e524a4bb8898eb5f2107b640d7279a6d3aade261916bbf2","e437d83044ba17246a861aa9691aa14223ff4a9d6f338ab1269c41c758586a88","c9ad058b2cc9ce6dc2ed92960d6d009e8c04bef46d3f5312283debca6869f613","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","08b428a44bc98005536a12456518797e9afe2a08e8b5d9785641713a54475881","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380",{"version":"3b75495c77f85fef76a898491b2eff2e4eb80a37d798a8ad8b39a578c2303859","affectsGlobalScope":true},"381899b8d1d4c1be716f18cb5242ba39f66f4b1e31d45af62a32a99f8edcb39d","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"7e6f46ed7dbebb2b1a5bdfac5a41582dfd266217a30387d9cbdeb2af84a39c52","affectsGlobalScope":true},"8a02143a323c05741ec49533d54c4928dbf6618d297d855f12114304c3b69846","74b0245c42990ed8a849df955db3f4362c81b13f799ebc981b7bec2d5b414a57","c6c4fea9acc55d5e38ff2b70d57ab0b5cdbd08f8bc5d7a226e322cea128c5b57","3bdd93ec24853e61bfa4c63ebaa425ff3e474156e87a47d90122e1d8cc717c1f","5a2a25feca554a8f289ed62114771b8c63d89f2b58325e2f8b7043e4e0160d11"],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"esModuleInterop":true,"jsx":2,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"target":99},"fileIdsList":[[134],[134,158],[134,156,157,159,160,161],[134,156],[134,156,159],[134,163],[107,134,141],[134,166],[134,167],[134,171,175],[134,169,172],[134,169,172,173,174],[134,171],[134,170],[134,179],[91,134],[94,134],[95,100,134],[96,106,107,114,123,133,134],[96,97,106,114,134],[98,134],[99,100,107,115,134],[100,123,130,134],[101,103,106,114,134],[102,134],[103,104,134],[105,106,134],[106,134],[106,107,108,123,133,134],[106,107,108,123,134],[109,114,123,133,134],[106,107,109,110,114,123,130,133,134],[109,111,123,130,133,134],[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,136,137,138,139,140],[106,112,134],[113,133,134],[103,106,114,123,134],[115,134],[116,134],[94,117,134],[118,132,134,138],[119,134],[120,134],[106,121,134],[121,122,134,136],[106,123,124,125,134],[123,125,134],[123,124,134],[126,134],[127,134],[106,128,129,134],[128,129,134],[100,114,123,130,134],[131,134],[114,132,134],[95,109,120,133,134],[100,134],[123,134,135],[134,136],[134,137],[95,100,106,108,117,123,133,134,136,138],[123,134,139],[134,190],[134,186,187,188,189],[134,194],[49,50,52,76,77,80,83,84,134],[47,48,134],[47,134],[49,50,51,83,84,134],[84,134],[49,50,80,82,84,134],[81,84,85,134],[49,50,83,84,134],[49,50,52,76,77,78,79,83,84,134],[49,50,52,80,83,134],[52,84,134],[54,55,56,57,58,59,60,61,62,84,134],[53,63,71,72,73,74,75,134],[56,84,134],[64,65,66,67,68,69,70,84,134],[89,134],[86,134],[134,143],[134,153],[134,142],[85,86,87,88,89,90,134,142,144,145,146,147,148,149,151,152],[134,150,153],[106,134,141],[134,153,154]],"referencedMap":[[158,1],[159,2],[156,1],[162,3],[157,4],[160,5],[161,4],[164,6],[165,7],[166,1],[167,8],[168,9],[176,10],[169,1],[173,11],[175,12],[174,11],[172,13],[171,14],[170,1],[177,1],[178,1],[180,15],[181,1],[182,1],[163,1],[91,16],[92,16],[94,17],[95,18],[96,19],[97,20],[98,21],[99,22],[100,23],[101,24],[102,25],[103,26],[104,26],[105,27],[106,28],[107,29],[108,30],[93,1],[140,1],[109,31],[110,32],[111,33],[141,34],[112,35],[113,36],[114,37],[115,38],[116,39],[117,40],[118,41],[119,42],[120,43],[121,44],[122,45],[123,46],[125,47],[124,48],[126,49],[127,50],[128,51],[129,52],[130,53],[131,54],[132,55],[133,56],[134,57],[135,58],[136,59],[137,60],[138,61],[139,62],[183,1],[184,1],[185,1],[186,1],[191,63],[187,1],[190,64],[192,1],[189,1],[193,1],[179,1],[194,1],[195,65],[85,66],[47,1],[49,67],[48,68],[52,69],[79,70],[83,71],[82,72],[50,70],[51,73],[53,73],[80,74],[84,75],[77,1],[78,1],[54,70],[58,70],[60,70],[55,70],[56,76],[62,70],[63,77],[59,70],[61,70],[57,70],[76,78],[72,70],[74,70],[73,70],[69,70],[75,79],[70,70],[71,80],[64,70],[65,70],[66,70],[67,70],[68,70],[188,1],[10,1],[11,1],[13,1],[12,1],[2,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[3,1],[4,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[29,1],[30,1],[31,1],[32,1],[6,1],[33,1],[34,1],[35,1],[36,1],[7,1],[41,1],[37,1],[38,1],[39,1],[40,1],[8,1],[45,1],[42,1],[43,1],[44,1],[1,1],[9,1],[46,1],[81,1],[90,81],[145,1],[87,82],[147,1],[152,1],[89,1],[144,83],[150,84],[143,85],[146,1],[149,84],[153,86],[151,87],[148,1],[88,82],[86,1],[142,88],[154,84],[155,89]],"exportedModulesMap":[[158,1],[159,2],[156,1],[162,3],[157,4],[160,5],[161,4],[164,6],[165,7],[166,1],[167,8],[168,9],[176,10],[169,1],[173,11],[175,12],[174,11],[172,13],[171,14],[170,1],[177,1],[178,1],[180,15],[181,1],[182,1],[163,1],[91,16],[92,16],[94,17],[95,18],[96,19],[97,20],[98,21],[99,22],[100,23],[101,24],[102,25],[103,26],[104,26],[105,27],[106,28],[107,29],[108,30],[93,1],[140,1],[109,31],[110,32],[111,33],[141,34],[112,35],[113,36],[114,37],[115,38],[116,39],[117,40],[118,41],[119,42],[120,43],[121,44],[122,45],[123,46],[125,47],[124,48],[126,49],[127,50],[128,51],[129,52],[130,53],[131,54],[132,55],[133,56],[134,57],[135,58],[136,59],[137,60],[138,61],[139,62],[183,1],[184,1],[185,1],[186,1],[191,63],[187,1],[190,64],[192,1],[189,1],[193,1],[179,1],[194,1],[195,65],[85,66],[47,1],[49,67],[48,68],[52,69],[79,70],[83,71],[82,72],[50,70],[51,73],[53,73],[80,74],[84,75],[77,1],[78,1],[54,70],[58,70],[60,70],[55,70],[56,76],[62,70],[63,77],[59,70],[61,70],[57,70],[76,78],[72,70],[74,70],[73,70],[69,70],[75,79],[70,70],[71,80],[64,70],[65,70],[66,70],[67,70],[68,70],[188,1],[10,1],[11,1],[13,1],[12,1],[2,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[3,1],[4,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[29,1],[30,1],[31,1],[32,1],[6,1],[33,1],[34,1],[35,1],[36,1],[7,1],[41,1],[37,1],[38,1],[39,1],[40,1],[8,1],[45,1],[42,1],[43,1],[44,1],[1,1],[9,1],[46,1],[81,1],[90,81],[145,1],[87,82],[147,1],[152,1],[89,1],[144,83],[150,84],[143,85],[146,1],[149,84],[153,86],[151,87],[148,1],[88,82],[86,1],[142,88],[154,84],[155,89]],"semanticDiagnosticsPerFile":[158,159,156,162,157,160,161,164,165,166,167,168,176,169,173,175,174,172,171,170,177,178,180,181,182,163,91,92,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,93,140,109,110,111,141,112,113,114,115,116,117,118,119,120,121,122,123,125,124,126,127,128,129,130,131,132,133,134,135,136,137,138,139,183,184,185,186,191,187,190,192,189,193,179,194,195,85,47,49,48,52,79,83,82,50,51,53,80,84,77,78,54,58,60,55,56,62,63,59,61,57,76,72,74,73,69,75,70,71,64,65,66,67,68,188,10,11,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,33,34,35,36,7,41,37,38,39,40,8,45,42,43,44,1,9,46,81,90,145,87,147,152,89,144,150,143,146,149,153,151,148,88,86,142,154,155]},"version":"4.5.5"}