diff --git a/.babelrc b/.babelrc index 9d8d516..20c5ebc 100644 --- a/.babelrc +++ b/.babelrc @@ -1 +1,7 @@ -{ "presets": ["es2015"] } +{ + "presets": ["@babel/env"], + "plugins": [ + "@babel/plugin-transform-runtime", + ["@babel/plugin-proposal-decorators", { "legacy": true }] + ] +} \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..8720ea2 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,43 @@ +{ + "env": { + "node": true, + "es6": true, + "browser": true, + "jest": true + }, + "extends": "eslint:recommended", + "rules": { + "no-console": "off", + "indent": [ + "error", + 2, + { + "FunctionDeclaration": { + "parameters": "first" + }, + "FunctionExpression": { + "parameters": "first" + }, + "CallExpression": { + "arguments": 1 + }, + "SwitchCase": 1 + } + ], + "quotes": [ + "error", + "double", + { + "allowTemplateLiterals": true + } + ], + "semi": [ + "error", + "always" + ] + }, + "parser": "babel-eslint", + "parserOptions": { + "ecmaVersion": 2017 + } +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index dcb7ca3..f350885 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,5 @@ Session.vim .netrwhist *~ +# IntelliJ +.idea \ No newline at end of file diff --git a/.jsdoc.json b/.jsdoc.json new file mode 100644 index 0000000..d340470 --- /dev/null +++ b/.jsdoc.json @@ -0,0 +1,19 @@ +{ + "plugins": [ + "plugins/markdown" + ], + "templates": { + "referenceTitle": "TextAnnotationGraphs", + "disableSort": true, + "collapse": false, + "resources": { + "SVG Path Spec
": "https://www.w3.org/TR/SVG/paths.html#PathData", + "SVG Cubic Bézier Curve Generator": "https://codepen.io/explosion/pen/YGApwd" + } + }, + "opts": { + "encoding": "utf8", + "recurse": true, + "template": "src/jsdoc-template" + } +} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..94ca44d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +dist: trusty +language: node_js +node_js: + - "8" + +install: + - npm install diff --git a/README.md b/README.md index 895bca1..48bebea 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,23 @@ # TextAnnotationGraphs (TAG) A modular annotation system that supports complex, interactive annotation graphs embedded on top of sequences of text. An additional view displays a subgraph of selected connections between words/phrases using an interactive network layout. -![TAG](/figs/OneRow.png) +![TAG](figs/OneRow.png) --- -![TAG](/figs/taxonomyColors.png) +![TAG](figs/taxonomyColors.png) --- -![TAG](/figs/TwoRows.png) +![TAG](figs/TwoRows.png) --- -![TAG](/figs/trees.png) +![TAG](figs/trees.png) ## Development -TAG was developed by Angus Forbes (UC Santa Cruz) and Kristine Lee (University of Illinios at Chicago), in collaboration with Gus Hahn-Powell, Marco Antonio Valenzuela Escárcega, and Mihai Surdeanu (University of Arizona). Contact angus@ucsc.edu for more information. +TAG was developed by Angus Forbes (UC Santa Cruz) and Kristine Lee (University of Illinios at Chicago), in collaboration with Gus Hahn-Powell, Marco Antonio Valenzuela Escárcega, Zechy Wong, and Mihai Surdeanu (University of Arizona). Contact angus@ucsc.edu for more information. # Citing TAG @@ -51,17 +51,64 @@ TAG can be built and installed using [`npm`](https://docs.npmjs.com/getting-star npm install git+https://github.com/CreativeCodingLab/TextAnnotationGraphs.git ``` +## Usage + +To use TAG with your own applications, first include the library in your script: + +#### Browserify (CommonJS) + +``` +const TAG = require("text-annotation-graphs"); +``` + +#### ES6 + +``` +import TAG from "text-annotation-graphs"; +``` + +Then initialise the visualisation on an element, optionally specifying the initial data set to load and any overrides to the default options. For more details, consult the full API documentation. + +``` +const graph = TAG.tag({ + container: $container, + data: {...}, + format: "odin", + options: {...} +}); +``` + ## Development -Tasks are managed with [`npm` scripts](https://docs.npmjs.com/misc/scripts). +Tasks are managed via [`npm` scripts](https://docs.npmjs.com/misc/scripts) and the [`runjs` build tool](https://github.com/pawelgalazka/runjs). The most commonly used tasks are listed in `package.json`, and details for the various sub-tasks can be found in `runfile.js`. + +### Demo + +After cloning the repository and installing the project dependencies via `npm install`, you can run the interactive demo using `npm run demo` and directing your browser to `localhost:8080`. + +To run the demo on a different port, set the `PORT` environmental variable. For example, running `PORT=9000 npm run demo` will start the demo server on `localhost:9000` instead. + ### Building the source -Assuming you've cloned the repository, simply run `npm run all` to install dependencies and transpile the source to ES2015. + +TAG is written in ES6, and uses [Sass](https://sass-lang.com/) for its styles. + +Assuming you've cloned the repository, simply run `npm install && npm run build` to install dependencies and transpile the source to ES2015. ### Live monitoring of changes -For convience, you can monitor changes to the library's source (css + js) with the following `npm` task: +For convenience, you can monitor changes to the library's sources (css + js) with the following `npm` task: ``` npm run watch ``` + +### Generating documentation + +TAG uses [JSDoc](http://usejsdoc.org/) to generate its documentation. By default, the documentation is generated using the template in `src/jsdoc-template` (adapted from the [Braintree JSDoc Template](https://github.com/braintree/jsdoc-template)) and stored in the `docs` folder. + +To regenerate the documentation, use the following `npm` task: + +``` +npm run generate-docs +``` \ No newline at end of file diff --git a/__mocks__/svg.draggable.js.js b/__mocks__/svg.draggable.js.js new file mode 100644 index 0000000..595d1a2 --- /dev/null +++ b/__mocks__/svg.draggable.js.js @@ -0,0 +1,6 @@ +/** + * svg.draggable.js doesn't play nice with Jest, for some reason. (Probably + * because it expects `SVG` to be available as a bare global) + * We don't need its functionality in testing, so we're replacing it + * completely with this mock that does nothing. + */ \ No newline at end of file diff --git a/data/angus-ex.json b/data/angus-ex.json deleted file mode 100644 index 7de1e09..0000000 --- a/data/angus-ex.json +++ /dev/null @@ -1,384 +0,0 @@ -{ - "documents":{ - "1562568976":{ - "id":"", - "text":"The ubiquitination of RAS inhibits the phosphorylation of MEK by SMAD.", - "sentences":[{ - "words":["The","ubiquitination","of","RAS","inhibits","the","phosphorylation","of","MEK","by","SMAD","."], - "startOffsets":[0,4,19,22,26,35,39,55,58,62,65,69], - "endOffsets":[3,18,21,25,34,38,54,57,61,64,69,70], - "tags":["DT","NN","IN","NN","VBZ","DT","NN","IN","NN","IN","NN","."], - "lemmas":["the","ubiquitination","of","ra","inhibit","the","phosphorylation","of","mek","by","smad","."], - "entities":["O","O","O","B-Family","O","O","O","O","B-Family","O","B-Family","O"], - "graphs":{ - "stanford-basic":{ - "edges":[{ - "source":1, - "destination":0, - "relation":"det" - },{ - "source":1, - "destination":2, - "relation":"prep" - },{ - "source":2, - "destination":3, - "relation":"pobj" - },{ - "source":4, - "destination":1, - "relation":"nsubj" - },{ - "source":4, - "destination":6, - "relation":"dobj" - },{ - "source":4, - "destination":9, - "relation":"prep" - },{ - "source":6, - "destination":5, - "relation":"det" - },{ - "source":6, - "destination":7, - "relation":"prep" - },{ - "source":7, - "destination":8, - "relation":"pobj" - },{ - "source":9, - "destination":10, - "relation":"pobj" - }], - "roots":[4] - }, - "stanford-collapsed":{ - "edges":[{ - "source":1, - "destination":0, - "relation":"det" - },{ - "source":1, - "destination":3, - "relation":"prep_of" - },{ - "source":4, - "destination":1, - "relation":"nsubj" - },{ - "source":4, - "destination":6, - "relation":"dobj" - },{ - "source":4, - "destination":10, - "relation":"prep_by" - },{ - "source":6, - "destination":5, - "relation":"det" - },{ - "source":6, - "destination":8, - "relation":"prep_of" - }], - "roots":[4] - } - } - }] - } - }, - "mentions":[{ - "type":"CorefEventMention", - "id":"E:-396724983", - "text":"ubiquitination of RAS inhibits the phosphorylation of MEK by SMAD", - "labels":["Negative_regulation","Regulation","ComplexEvent","Event","PossibleController"], - "trigger":{ - "type":"TextBoundMention", - "id":"T:196298108", - "text":"inhibits", - "labels":["Negative_regulation","Regulation","ComplexEvent","Event","PossibleController"], - "tokenInterval":{ - "start":4, - "end":5 - }, - "characterStartOffset":26, - "characterEndOffset":34, - "sentence":0, - "document":"1562568976", - "keep":true, - "foundBy":"Negative_regulation_syntax_1_verb" - }, - "arguments":{ - "controlled":[{ - "type":"CorefRelationMention", - "id":"R:-862872185", - "text":"phosphorylation of MEK by SMAD", - "labels":["Positive_regulation","Regulation","ComplexEvent","Event","PossibleController"], - "arguments":{ - "controlled":[{ - "type":"CorefEventMention", - "id":"E:-502695970", - "text":"phosphorylation of MEK", - "labels":["Phosphorylation","AdditionEvent","SimpleEvent","Event","PossibleController"], - "trigger":{ - "type":"TextBoundMention", - "id":"T:-108959762", - "text":"phosphorylation", - "labels":["Phosphorylation","AdditionEvent","SimpleEvent","Event","PossibleController"], - "tokenInterval":{ - "start":6, - "end":7 - }, - "characterStartOffset":39, - "characterEndOffset":54, - "sentence":0, - "document":"1562568976", - "keep":true, - "foundBy":"Phosphorylation_syntax_1a_noun" - }, - "arguments":{ - "theme":[{ - "type":"CorefTextBoundMention", - "id":"T:1797966142", - "text":"MEK", - "labels":["Family","Equivalable","BioChemicalEntity","BioEntity","Entity","PossibleController"], - "tokenInterval":{ - "start":8, - "end":9 - }, - "characterStartOffset":58, - "characterEndOffset":61, - "sentence":0, - "document":"1562568976", - "keep":true, - "foundBy":"ner-family-entities", - "grounding":{ - "text":"MEK", - "key":"mek", - "namespace":"be", - "id":"MEK", - "species":"" - }, - "displayLabel":"Family" - }] - }, - "paths":{ - "theme":{ - "T:1797966142":[{ - "source":6, - "destination":8, - "relation":"prep_of" - }] - }, - "cause":{ - "T:-590805021":[{ - "source":4, - "destination":6, - "relation":"dobj" - },{ - "source":4, - "destination":10, - "relation":"prep_by" - }] - } - }, - "tokenInterval":{ - "start":6, - "end":9 - }, - "characterStartOffset":39, - "characterEndOffset":61, - "sentence":0, - "document":"1562568976", - "keep":true, - "foundBy":"Phosphorylation_syntax_1a_noun", - "displayLabel":"Phosphorylation", - "isDirect":true - }], - "controller":[{ - "type":"CorefTextBoundMention", - "id":"T:-590805021", - "text":"SMAD", - "labels":["Family","Equivalable","BioChemicalEntity","BioEntity","Entity","PossibleController"], - "tokenInterval":{ - "start":10, - "end":11 - }, - "characterStartOffset":65, - "characterEndOffset":69, - "sentence":0, - "document":"1562568976", - "keep":true, - "foundBy":"ner-family-entities", - "grounding":{ - "text":"SMAD", - "key":"smad", - "namespace":"be", - "id":"SMAD", - "species":"" - }, - "displayLabel":"Family" - }] - }, - "paths":{ - "theme":{ - "T:1797966142":[{ - "source":6, - "destination":8, - "relation":"prep_of" - }] - }, - "cause":{ - "T:-590805021":[{ - "source":4, - "destination":6, - "relation":"dobj" - },{ - "source":4, - "destination":10, - "relation":"prep_by" - }] - } - }, - "tokenInterval":{ - "start":6, - "end":11 - }, - "characterStartOffset":39, - "characterEndOffset":69, - "sentence":0, - "document":"1562568976", - "keep":true, - "foundBy":"Phosphorylation_syntax_1a_noun + toRelationMention", - "displayLabel":"Positive_regulation" - }], - "controller":[{ - "type":"CorefEventMention", - "id":"E:-17760206", - "text":"ubiquitination of RAS", - "labels":["Ubiquitination","AdditionEvent","SimpleEvent","Event","PossibleController"], - "trigger":{ - "type":"TextBoundMention", - "id":"T:-2127049353", - "text":"ubiquitination", - "labels":["Ubiquitination","AdditionEvent","SimpleEvent","Event","PossibleController"], - "tokenInterval":{ - "start":1, - "end":2 - }, - "characterStartOffset":4, - "characterEndOffset":18, - "sentence":0, - "document":"1562568976", - "keep":true, - "foundBy":"Ubiquitination_syntax_1a_noun" - }, - "arguments":{ - "theme":[{ - "type":"CorefTextBoundMention", - "id":"T:-1080682775", - "text":"RAS", - "labels":["Family","Equivalable","BioChemicalEntity","BioEntity","Entity","PossibleController"], - "tokenInterval":{ - "start":3, - "end":4 - }, - "characterStartOffset":22, - "characterEndOffset":25, - "sentence":0, - "document":"1562568976", - "keep":true, - "foundBy":"ner-family-entities", - "grounding":{ - "text":"RAS", - "key":"ras", - "namespace":"pfam", - "id":"PF00071", - "species":"human" - }, - "displayLabel":"Family" - }] - }, - "paths":{ - "theme":{ - "T:-1080682775":[{ - "source":1, - "destination":3, - "relation":"prep_of" - }] - } - }, - "tokenInterval":{ - "start":1, - "end":4 - }, - "characterStartOffset":4, - "characterEndOffset":25, - "sentence":0, - "document":"1562568976", - "keep":true, - "foundBy":"Ubiquitination_syntax_1a_noun", - "displayLabel":"Ubiquitination", - "isDirect":false - }] - }, - "paths":{ - "controlled":{ - "E:-502695970":[{ - "source":4, - "destination":6, - "relation":"dobj" - },{ - "source":6, - "destination":8, - "relation":"prep_of" - }], - "R:-862872185":[{ - "source":4, - "destination":6, - "relation":"dobj" - },{ - "source":6, - "destination":8, - "relation":"prep_of" - }] - }, - "controller":{ - "E:-17760206":[{ - "source":4, - "destination":1, - "relation":"nsubj" - },{ - "source":1, - "destination":3, - "relation":"prep_of" - }], - "T:-1080682775":[{ - "source":4, - "destination":1, - "relation":"nsubj" - },{ - "source":1, - "destination":3, - "relation":"prep_of" - }] - } - }, - "tokenInterval":{ - "start":1, - "end":11 - }, - "characterStartOffset":4, - "characterEndOffset":69, - "sentence":0, - "document":"1562568976", - "keep":true, - "foundBy":"Negative_regulation_syntax_1_verb", - "displayLabel":"Negative_regulation", - "isDirect":false - }] -} \ No newline at end of file diff --git a/data/data1.json b/data/data1.json deleted file mode 100644 index 0cbaa5e..0000000 --- a/data/data1.json +++ /dev/null @@ -1,346 +0,0 @@ -{ - "eventData": { - "comments": [ - [ - "R1", - "FoundByRule", - "Phosphorylation_syntax_1a_noun + toRelationMention" - ], - [ - "E3", - "FoundByRule", - "Negative_regulation_syntax_1_verb" - ], - [ - "T3", - "FoundByRule", - "ner-family-entities" - ], - [ - "T4", - "FoundByRule", - "ner-family-entities" - ], - [ - "T1", - "FoundByRule", - "ner-family-entities" - ], - [ - "E1", - "FoundByRule", - "Phosphorylation_syntax_1a_noun" - ], - [ - "E2", - "FoundByRule", - "Ubiquitination_syntax_1a_noun" - ] - ], - "entities": [ - [ - "T1", - "Family", - [[ - "65", - "69" - ]] - ], - [ - "T3", - "Family", - [[ - "22", - "25" - ]] - ], - [ - "T4", - "Family", - [[ - "58", - "61" - ]] - ] - ], - "attributes": [], - "text": "The ubiquitination of RAS inhibits the phosphorylation of MEK by SMAD.", - "relations": [[ - "R1", - "Positive_regulation", - [ - [ - "Controlled", - "E1" - ], - [ - "Controller", - "T1" - ] - ] - ]], - "triggers": [ - [ - "T5", - "Phosphorylation", - [[ - "39", - "54" - ]] - ], - [ - "T6", - "Ubiquitination", - [[ - "4", - "18" - ]] - ], - [ - "T2", - "Negative_regulation", - [[ - "26", - "34" - ]] - ] - ], - "events": [ - [ - "E1", - "T5", - [[ - "Theme", - "T4" - ]] - ], - [ - "E2", - "T6", - [[ - "Theme", - "T3" - ]] - ], - [ - "E3", - "T2", - [ - [ - "Controlled", - "E1" - ], - [ - "Controller", - "E2" - ] - ] - ] - ] - }, - "syntaxData": { - "comments": [], - "entities": [ - [ - "T1", - "IN", - [[ - "19", - "21" - ]] - ], - [ - "T2", - "DT", - [[ - "0", - "3" - ]] - ], - [ - "T3", - "NN", - [[ - "65", - "69" - ]] - ], - [ - "T4", - "IN", - [[ - "62", - "64" - ]] - ], - [ - "T5", - "IN", - [[ - "55", - "57" - ]] - ], - [ - "T6", - "NN", - [[ - "22", - "25" - ]] - ], - [ - "T7", - "DT", - [[ - "35", - "38" - ]] - ], - [ - "T8", - "NN", - [[ - "58", - "61" - ]] - ], - [ - "T9", - "VBZ", - [[ - "26", - "34" - ]] - ], - [ - "T10", - ".", - [[ - "69", - "70" - ]] - ], - [ - "T11", - "NN", - [[ - "4", - "18" - ]] - ], - [ - "T12", - "NN", - [[ - "39", - "54" - ]] - ] - ], - "attributes": [], - "text": "The ubiquitination of RAS inhibits the phosphorylation of MEK by SMAD.", - "relations": [ - [ - "R1", - "det", - [ - [ - "governor", - "T11" - ], - [ - "dependent", - "T2" - ] - ] - ], - [ - "R2", - "prep_of", - [ - [ - "governor", - "T11" - ], - [ - "dependent", - "T6" - ] - ] - ], - [ - "R3", - "nsubj", - [ - [ - "governor", - "T9" - ], - [ - "dependent", - "T11" - ] - ] - ], - [ - "R4", - "dobj", - [ - [ - "governor", - "T9" - ], - [ - "dependent", - "T12" - ] - ] - ], - [ - "R5", - "prep_by", - [ - [ - "governor", - "T9" - ], - [ - "dependent", - "T3" - ] - ] - ], - [ - "R6", - "det", - [ - [ - "governor", - "T12" - ], - [ - "dependent", - "T7" - ] - ] - ], - [ - "R7", - "prep_of", - [ - [ - "governor", - "T12" - ], - [ - "dependent", - "T8" - ] - ] - ] - ], - "triggers": [], - "events": [] - } -} \ No newline at end of file diff --git a/data/data2.json b/data/data2.json deleted file mode 100644 index 82040a0..0000000 --- a/data/data2.json +++ /dev/null @@ -1,346 +0,0 @@ -{ - "eventData": { - "comments": [ - [ - "E3", - "FoundByRule", - "Positive_regulation_syntax_1_verb" - ], - [ - "R1", - "FoundByRule", - "Phosphorylation_syntax_1a_noun + toRelationMention" - ], - [ - "T3", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T2", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T4", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "E1", - "FoundByRule", - "Ubiquitination_syntax_1a_noun" - ], - [ - "E2", - "FoundByRule", - "Phosphorylation_syntax_1a_noun" - ] - ], - "entities": [ - [ - "T2", - "Gene_or_gene_product", - [[ - "31", - "34" - ]] - ], - [ - "T3", - "Gene_or_gene_product", - [[ - "23", - "27" - ]] - ], - [ - "T4", - "Gene_or_gene_product", - [[ - "66", - "69" - ]] - ] - ], - "attributes": [], - "text": "The phosphorylation of Hdm2 by MK2 promotes the ubiquitination of p53.", - "relations": [[ - "R1", - "Positive_regulation", - [ - [ - "Controlled", - "E2" - ], - [ - "Controller", - "T2" - ] - ] - ]], - "triggers": [ - [ - "T5", - "Ubiquitination", - [[ - "48", - "62" - ]] - ], - [ - "T6", - "Phosphorylation", - [[ - "4", - "19" - ]] - ], - [ - "T1", - "Positive_regulation", - [[ - "35", - "43" - ]] - ] - ], - "events": [ - [ - "E1", - "T5", - [[ - "Theme", - "T4" - ]] - ], - [ - "E2", - "T6", - [[ - "Theme", - "T3" - ]] - ], - [ - "E3", - "T1", - [ - [ - "Controlled", - "E1" - ], - [ - "Controller", - "E2" - ] - ] - ] - ] - }, - "syntaxData": { - "comments": [], - "entities": [ - [ - "T1", - "IN", - [[ - "20", - "22" - ]] - ], - [ - "T2", - "DT", - [[ - "0", - "3" - ]] - ], - [ - "T3", - "NN", - [[ - "66", - "69" - ]] - ], - [ - "T4", - "IN", - [[ - "63", - "65" - ]] - ], - [ - "T5", - "DT", - [[ - "44", - "47" - ]] - ], - [ - "T6", - "NN", - [[ - "23", - "27" - ]] - ], - [ - "T7", - "NN", - [[ - "31", - "34" - ]] - ], - [ - "T8", - "NN", - [[ - "48", - "62" - ]] - ], - [ - "T9", - "IN", - [[ - "28", - "30" - ]] - ], - [ - "T10", - ".", - [[ - "69", - "70" - ]] - ], - [ - "T11", - "NN", - [[ - "4", - "19" - ]] - ], - [ - "T12", - "VBZ", - [[ - "35", - "43" - ]] - ] - ], - "attributes": [], - "text": "The phosphorylation of Hdm2 by MK2 promotes the ubiquitination of p53.", - "relations": [ - [ - "R1", - "det", - [ - [ - "governor", - "T11" - ], - [ - "dependent", - "T2" - ] - ] - ], - [ - "R2", - "prep_of", - [ - [ - "governor", - "T11" - ], - [ - "dependent", - "T6" - ] - ] - ], - [ - "R3", - "prep_by", - [ - [ - "governor", - "T6" - ], - [ - "dependent", - "T7" - ] - ] - ], - [ - "R4", - "nsubj", - [ - [ - "governor", - "T12" - ], - [ - "dependent", - "T11" - ] - ] - ], - [ - "R5", - "dobj", - [ - [ - "governor", - "T12" - ], - [ - "dependent", - "T8" - ] - ] - ], - [ - "R6", - "det", - [ - [ - "governor", - "T8" - ], - [ - "dependent", - "T5" - ] - ] - ], - [ - "R7", - "prep_of", - [ - [ - "governor", - "T8" - ], - [ - "dependent", - "T3" - ] - ] - ] - ], - "triggers": [], - "events": [] - } -} \ No newline at end of file diff --git a/data/data3.json b/data/data3.json deleted file mode 100644 index a7a192c..0000000 --- a/data/data3.json +++ /dev/null @@ -1,1898 +0,0 @@ -{ - "eventData": { - "comments": [ - [ - "R1", - "FoundByRule", - "Phosphorylation_syntax_1a_verb + toRelationMention, pronominalMatch" - ], - [ - "R2", - "FoundByRule", - "Phosphorylation_syntax_1a_verb + toRelationMention" - ], - [ - "T3", - "FoundByRule", - "ner-family-entities" - ], - [ - "T4", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T5", - "FoundByRule", - "PRP" - ], - [ - "T6", - "FoundByRule", - "ner-family-entities" - ], - [ - "T7", - "FoundByRule", - "PRP" - ], - [ - "T8", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T9", - "FoundByRule", - "ner-family-entities" - ], - [ - "T10", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T11", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T12", - "FoundByRule", - "ner-family-entities" - ], - [ - "T13", - "FoundByRule", - "PRP" - ], - [ - "T14", - "FoundByRule", - "ner-family-entities" - ], - [ - "T15", - "FoundByRule", - "ner-family-entities" - ], - [ - "T1", - "FoundByRule", - "PRP" - ], - [ - "T16", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T17", - "FoundByRule", - "ner-family-entities" - ], - [ - "T18", - "FoundByRule", - "ner-family-entities" - ], - [ - "T2", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T19", - "FoundByRule", - "PRP" - ], - [ - "E3", - "FoundByRule", - "Ubiquitination_token_3_noun, pronominalMatch" - ], - [ - "E1", - "FoundByRule", - "Phosphorylation_syntax_1a_verb" - ], - [ - "E4", - "FoundByRule", - "binding1b, pronominalMatch" - ], - [ - "E5", - "FoundByRule", - "binding_token_1, pronominalMatch" - ], - [ - "E6", - "FoundByRule", - "Ubiquitination_syntax_4_noun" - ], - [ - "E2", - "FoundByRule", - "Phosphorylation_syntax_1a_verb, pronominalMatch" - ] - ], - "entities": [ - [ - "T1", - "Generic_entity", - [[ - "351", - "355" - ]] - ], - [ - "T2", - "Gene_or_gene_product", - [[ - "412", - "417" - ]] - ], - [ - "T3", - "Family", - [[ - "15", - "18" - ]] - ], - [ - "T4", - "Gene_or_gene_product", - [[ - "20", - "25" - ]] - ], - [ - "T5", - "Generic_entity", - [[ - "43", - "46" - ]] - ], - [ - "T6", - "Family", - [[ - "89", - "92" - ]] - ], - [ - "T7", - "Generic_entity", - [[ - "111", - "114" - ]] - ], - [ - "T8", - "Gene_or_gene_product", - [[ - "126", - "130" - ]] - ], - [ - "T9", - "Family", - [[ - "135", - "138" - ]] - ], - [ - "T10", - "Gene_or_gene_product", - [[ - "215", - "225" - ]] - ], - [ - "T11", - "Gene_or_gene_product", - [[ - "278", - "283" - ]] - ], - [ - "T12", - "Family", - [[ - "302", - "305" - ]] - ], - [ - "T13", - "Generic_entity", - [[ - "312", - "314" - ]] - ], - [ - "T14", - "Family", - [[ - "317", - "320" - ]] - ], - [ - "T15", - "Family", - [[ - "325", - "328" - ]] - ], - [ - "T16", - "Gene_or_gene_product", - [[ - "370", - "375" - ]] - ], - [ - "T17", - "Family", - [[ - "378", - "381" - ]] - ], - [ - "T18", - "Family", - [[ - "386", - "389" - ]] - ], - [ - "T19", - "Generic_entity", - [[ - "433", - "437" - ]] - ] - ], - "attributes": [], - "text": "Even more than Ras, ASPP2 is common, as is its ubiquitination.\r\nTo address the effect of Ras ubiquitination on its binding to PI3K and Raf family members, either total G12V-K-Ras or the ubiquitinated subfraction of G12V-K-Ras was immunoprecipitated.\r\nMuch work has been done on ASPP2. It is known that Ras binds it.\r\nRas and Mek are in proximity, and they phosphorylate ASPP2.\r\nRas and Mek are in proximity, and ASPP2 phosphorylates them.", - "relations": [ - [ - "R1", - "Positive_regulation", - [ - [ - "Controlled", - "E1" - ], - [ - "Controller", - "T1" - ] - ] - ], - [ - "R2", - "Positive_regulation", - [ - [ - "Controlled", - "E2" - ], - [ - "Controller", - "T2" - ] - ] - ] - ], - "triggers": [ - [ - "T21", - "Phosphorylation", - [[ - "356", - "369" - ]] - ], - [ - "T25", - "Phosphorylation", - [[ - "418", - "432" - ]] - ], - [ - "T20", - "Ubiquitination", - [[ - "47", - "61" - ]] - ], - [ - "T22", - "Binding", - [[ - "306", - "311" - ]] - ], - [ - "T23", - "Binding", - [[ - "115", - "122" - ]] - ], - [ - "T24", - "Ubiquitination", - [[ - "93", - "107" - ]] - ] - ], - "events": [ - [ - "E1", - "T21", - [[ - "Theme", - "T16" - ]] - ], - [ - "E2", - "T25", - [[ - "Theme", - "T19" - ]] - ], - [ - "E3", - "T20", - [[ - "Theme", - "T5" - ]] - ], - [ - "E4", - "T22", - [ - [ - "Theme", - "T12" - ], - [ - "Theme", - "T13" - ] - ] - ], - [ - "E5", - "T23", - [ - [ - "Theme", - "T7" - ], - [ - "Theme", - "T8" - ] - ] - ], - [ - "E6", - "T24", - [[ - "Theme", - "T6" - ]] - ] - ] - }, - "syntaxData": { - "comments": [], - "entities": [ - [ - "T1", - "CC", - [[ - "179", - "181" - ]] - ], - [ - "T2", - "PRP$", - [[ - "111", - "114" - ]] - ], - [ - "T3", - "IN", - [[ - "275", - "277" - ]] - ], - [ - "T4", - "NN", - [[ - "89", - "92" - ]] - ], - [ - "T5", - "NN", - [[ - "378", - "381" - ]] - ], - [ - "T6", - "DT", - [[ - "182", - "185" - ]] - ], - [ - "T7", - "IN", - [[ - "10", - "14" - ]] - ], - [ - "T8", - "RB", - [[ - "0", - "4" - ]] - ], - [ - "T9", - "NN", - [[ - "386", - "389" - ]] - ], - [ - "T10", - "CC", - [[ - "382", - "385" - ]] - ], - [ - "T11", - "NN", - [[ - "317", - "320" - ]] - ], - [ - "T12", - ".", - [[ - "248", - "249" - ]] - ], - [ - "T13", - "NN", - [[ - "370", - "375" - ]] - ], - [ - "T14", - "NN", - [[ - "302", - "305" - ]] - ], - [ - "T15", - "VBZ", - [[ - "40", - "42" - ]] - ], - [ - "T16", - "CC", - [[ - "347", - "350" - ]] - ], - [ - "T17", - "IN", - [[ - "212", - "214" - ]] - ], - [ - "T18", - "IN", - [[ - "37", - "39" - ]] - ], - [ - "T19", - ".", - [[ - "437", - "438" - ]] - ], - [ - "T20", - "VBZ", - [[ - "288", - "290" - ]] - ], - [ - "T21", - "CC", - [[ - "321", - "324" - ]] - ], - [ - "T22", - "VBZ", - [[ - "418", - "432" - ]] - ], - [ - "T23", - "JJ", - [[ - "162", - "167" - ]] - ], - [ - "T24", - "JJ", - [[ - "29", - "35" - ]] - ], - [ - "T25", - "JJ", - [[ - "251", - "255" - ]] - ], - [ - "T26", - "NN", - [[ - "15", - "18" - ]] - ], - [ - "T27", - "IN", - [[ - "333", - "335" - ]] - ], - [ - "T28", - "PRP", - [[ - "285", - "287" - ]] - ], - [ - "T29", - "PRP", - [[ - "433", - "437" - ]] - ], - [ - "T30", - "NN", - [[ - "93", - "107" - ]] - ], - [ - "T31", - "NN", - [[ - "126", - "130" - ]] - ], - [ - "T32", - "NN", - [[ - "20", - "25" - ]] - ], - [ - "T33", - "PRP", - [[ - "312", - "314" - ]] - ], - [ - "T34", - "NNS", - [[ - "168", - "178" - ]] - ], - [ - "T35", - "CC", - [[ - "131", - "134" - ]] - ], - [ - "T36", - "VB", - [[ - "67", - "74" - ]] - ], - [ - "T37", - "VBZ", - [[ - "306", - "311" - ]] - ], - [ - "T38", - "TO", - [[ - "123", - "125" - ]] - ], - [ - "T39", - ",", - [[ - "345", - "346" - ]] - ], - [ - "T40", - ".", - [[ - "375", - "376" - ]] - ], - [ - "T41", - "NN", - [[ - "115", - "122" - ]] - ], - [ - "T42", - "NN", - [[ - "215", - "225" - ]] - ], - [ - "T43", - "NN", - [[ - "336", - "345" - ]] - ], - [ - "T44", - "IN", - [[ - "86", - "88" - ]] - ], - [ - "T45", - "NN", - [[ - "278", - "283" - ]] - ], - [ - "T46", - ",", - [[ - "35", - "36" - ]] - ], - [ - "T47", - "VB", - [[ - "356", - "369" - ]] - ], - [ - "T48", - ",", - [[ - "18", - "19" - ]] - ], - [ - "T49", - "VBN", - [[ - "230", - "248" - ]] - ], - [ - "T50", - "CC", - [[ - "408", - "411" - ]] - ], - [ - "T51", - "IN", - [[ - "394", - "396" - ]] - ], - [ - "T52", - "VBN", - [[ - "291", - "296" - ]] - ], - [ - "T53", - ",", - [[ - "153", - "154" - ]] - ], - [ - "T54", - "NN", - [[ - "47", - "61" - ]] - ], - [ - "T55", - ".", - [[ - "61", - "62" - ]] - ], - [ - "T56", - "NN", - [[ - "79", - "85" - ]] - ], - [ - "T57", - "VBZ", - [[ - "261", - "264" - ]] - ], - [ - "T58", - "NN", - [[ - "397", - "406" - ]] - ], - [ - "T59", - "NNS", - [[ - "146", - "153" - ]] - ], - [ - "T60", - "PRP", - [[ - "351", - "355" - ]] - ], - [ - "T61", - ".", - [[ - "283", - "284" - ]] - ], - [ - "T62", - "NN", - [[ - "325", - "328" - ]] - ], - [ - "T63", - "VBN", - [[ - "270", - "274" - ]] - ], - [ - "T64", - "JJ", - [[ - "186", - "199" - ]] - ], - [ - "T65", - ".", - [[ - "314", - "315" - ]] - ], - [ - "T66", - "NN", - [[ - "139", - "145" - ]] - ], - [ - "T67", - "PRP$", - [[ - "43", - "46" - ]] - ], - [ - "T68", - "VBD", - [[ - "226", - "229" - ]] - ], - [ - "T69", - "JJR", - [[ - "5", - "9" - ]] - ], - [ - "T70", - "NN", - [[ - "200", - "211" - ]] - ], - [ - "T71", - "VBP", - [[ - "390", - "393" - ]] - ], - [ - "T72", - "CC", - [[ - "155", - "161" - ]] - ], - [ - "T73", - "NN", - [[ - "135", - "138" - ]] - ], - [ - "T74", - "NN", - [[ - "412", - "417" - ]] - ], - [ - "T75", - "IN", - [[ - "297", - "301" - ]] - ], - [ - "T76", - "IN", - [[ - "108", - "110" - ]] - ], - [ - "T77", - "VBN", - [[ - "265", - "269" - ]] - ], - [ - "T78", - "DT", - [[ - "75", - "78" - ]] - ], - [ - "T79", - "NN", - [[ - "256", - "260" - ]] - ], - [ - "T80", - "VBP", - [[ - "329", - "332" - ]] - ], - [ - "T81", - "TO", - [[ - "64", - "66" - ]] - ], - [ - "T82", - ",", - [[ - "406", - "407" - ]] - ], - [ - "T83", - "VBZ", - [[ - "26", - "28" - ]] - ] - ], - "attributes": [], - "text": "Even more than Ras, ASPP2 is common, as is its ubiquitination.\r\nTo address the effect of Ras ubiquitination on its binding to PI3K and Raf family members, either total G12V-K-Ras or the ubiquitinated subfraction of G12V-K-Ras was immunoprecipitated.\r\nMuch work has been done on ASPP2. It is known that Ras binds it.\r\nRas and Mek are in proximity, and they phosphorylate ASPP2.\r\nRas and Mek are in proximity, and ASPP2 phosphorylates them.", - "relations": [ - [ - "R1", - "advmod", - [ - [ - "governor", - "T69" - ], - [ - "dependent", - "T8" - ] - ] - ], - [ - "R2", - "prep_than", - [ - [ - "governor", - "T69" - ], - [ - "dependent", - "T26" - ] - ] - ], - [ - "R3", - "appos", - [ - [ - "governor", - "T26" - ], - [ - "dependent", - "T32" - ] - ] - ], - [ - "R4", - "nsubj", - [ - [ - "governor", - "T24" - ], - [ - "dependent", - "T69" - ] - ] - ], - [ - "R5", - "cop", - [ - [ - "governor", - "T24" - ], - [ - "dependent", - "T83" - ] - ] - ], - [ - "R6", - "advcl", - [ - [ - "governor", - "T24" - ], - [ - "dependent", - "T54" - ] - ] - ], - [ - "R7", - "mark", - [ - [ - "governor", - "T54" - ], - [ - "dependent", - "T18" - ] - ] - ], - [ - "R8", - "cop", - [ - [ - "governor", - "T54" - ], - [ - "dependent", - "T15" - ] - ] - ], - [ - "R9", - "poss", - [ - [ - "governor", - "T54" - ], - [ - "dependent", - "T67" - ] - ] - ], - [ - "R10", - "aux", - [ - [ - "governor", - "T36" - ], - [ - "dependent", - "T81" - ] - ] - ], - [ - "R11", - "dobj", - [ - [ - "governor", - "T36" - ], - [ - "dependent", - "T56" - ] - ] - ], - [ - "R12", - "prep_on", - [ - [ - "governor", - "T36" - ], - [ - "dependent", - "T41" - ] - ] - ], - [ - "R13", - "prep_to", - [ - [ - "governor", - "T36" - ], - [ - "dependent", - "T59" - ] - ] - ], - [ - "R14", - "det", - [ - [ - "governor", - "T56" - ], - [ - "dependent", - "T78" - ] - ] - ], - [ - "R15", - "prep_of", - [ - [ - "governor", - "T56" - ], - [ - "dependent", - "T30" - ] - ] - ], - [ - "R16", - "nn", - [ - [ - "governor", - "T30" - ], - [ - "dependent", - "T4" - ] - ] - ], - [ - "R17", - "poss", - [ - [ - "governor", - "T41" - ], - [ - "dependent", - "T2" - ] - ] - ], - [ - "R18", - "conj_and", - [ - [ - "governor", - "T31" - ], - [ - "dependent", - "T73" - ] - ] - ], - [ - "R19", - "nn", - [ - [ - "governor", - "T59" - ], - [ - "dependent", - "T31" - ] - ] - ], - [ - "R20", - "nn", - [ - [ - "governor", - "T59" - ], - [ - "dependent", - "T73" - ] - ] - ], - [ - "R21", - "nn", - [ - [ - "governor", - "T59" - ], - [ - "dependent", - "T66" - ] - ] - ], - [ - "R22", - "preconj", - [ - [ - "governor", - "T34" - ], - [ - "dependent", - "T72" - ] - ] - ], - [ - "R23", - "amod", - [ - [ - "governor", - "T34" - ], - [ - "dependent", - "T23" - ] - ] - ], - [ - "R24", - "conj_or", - [ - [ - "governor", - "T34" - ], - [ - "dependent", - "T70" - ] - ] - ], - [ - "R25", - "det", - [ - [ - "governor", - "T70" - ], - [ - "dependent", - "T6" - ] - ] - ], - [ - "R26", - "amod", - [ - [ - "governor", - "T70" - ], - [ - "dependent", - "T64" - ] - ] - ], - [ - "R27", - "prep_of", - [ - [ - "governor", - "T70" - ], - [ - "dependent", - "T42" - ] - ] - ], - [ - "R28", - "advcl", - [ - [ - "governor", - "T49" - ], - [ - "dependent", - "T36" - ] - ] - ], - [ - "R29", - "nsubjpass", - [ - [ - "governor", - "T49" - ], - [ - "dependent", - "T34" - ] - ] - ], - [ - "R30", - "nsubjpass", - [ - [ - "governor", - "T49" - ], - [ - "dependent", - "T70" - ] - ] - ], - [ - "R31", - "auxpass", - [ - [ - "governor", - "T49" - ], - [ - "dependent", - "T68" - ] - ] - ], - [ - "R32", - "amod", - [ - [ - "governor", - "T79" - ], - [ - "dependent", - "T25" - ] - ] - ], - [ - "R33", - "nsubjpass", - [ - [ - "governor", - "T63" - ], - [ - "dependent", - "T79" - ] - ] - ], - [ - "R34", - "aux", - [ - [ - "governor", - "T63" - ], - [ - "dependent", - "T57" - ] - ] - ], - [ - "R35", - "auxpass", - [ - [ - "governor", - "T63" - ], - [ - "dependent", - "T77" - ] - ] - ], - [ - "R36", - "prep_on", - [ - [ - "governor", - "T63" - ], - [ - "dependent", - "T45" - ] - ] - ], - [ - "R37", - "nsubjpass", - [ - [ - "governor", - "T52" - ], - [ - "dependent", - "T28" - ] - ] - ], - [ - "R38", - "auxpass", - [ - [ - "governor", - "T52" - ], - [ - "dependent", - "T20" - ] - ] - ], - [ - "R39", - "ccomp", - [ - [ - "governor", - "T52" - ], - [ - "dependent", - "T37" - ] - ] - ], - [ - "R40", - "mark", - [ - [ - "governor", - "T37" - ], - [ - "dependent", - "T75" - ] - ] - ], - [ - "R41", - "nsubj", - [ - [ - "governor", - "T37" - ], - [ - "dependent", - "T14" - ] - ] - ], - [ - "R42", - "dobj", - [ - [ - "governor", - "T37" - ], - [ - "dependent", - "T33" - ] - ] - ], - [ - "R43", - "conj_and", - [ - [ - "governor", - "T11" - ], - [ - "dependent", - "T62" - ] - ] - ], - [ - "R44", - "nsubj", - [ - [ - "governor", - "T80" - ], - [ - "dependent", - "T11" - ] - ] - ], - [ - "R45", - "nsubj", - [ - [ - "governor", - "T80" - ], - [ - "dependent", - "T62" - ] - ] - ], - [ - "R46", - "prep_in", - [ - [ - "governor", - "T80" - ], - [ - "dependent", - "T43" - ] - ] - ], - [ - "R47", - "conj_and", - [ - [ - "governor", - "T80" - ], - [ - "dependent", - "T47" - ] - ] - ], - [ - "R48", - "nsubj", - [ - [ - "governor", - "T47" - ], - [ - "dependent", - "T60" - ] - ] - ], - [ - "R49", - "dobj", - [ - [ - "governor", - "T47" - ], - [ - "dependent", - "T13" - ] - ] - ], - [ - "R50", - "conj_and", - [ - [ - "governor", - "T5" - ], - [ - "dependent", - "T9" - ] - ] - ], - [ - "R51", - "nsubj", - [ - [ - "governor", - "T71" - ], - [ - "dependent", - "T5" - ] - ] - ], - [ - "R52", - "nsubj", - [ - [ - "governor", - "T71" - ], - [ - "dependent", - "T9" - ] - ] - ], - [ - "R53", - "prep_in", - [ - [ - "governor", - "T71" - ], - [ - "dependent", - "T58" - ] - ] - ], - [ - "R54", - "conj_and", - [ - [ - "governor", - "T71" - ], - [ - "dependent", - "T22" - ] - ] - ], - [ - "R55", - "nsubj", - [ - [ - "governor", - "T22" - ], - [ - "dependent", - "T74" - ] - ] - ], - [ - "R56", - "dobj", - [ - [ - "governor", - "T22" - ], - [ - "dependent", - "T29" - ] - ] - ] - ], - "triggers": [], - "events": [] - } -} \ No newline at end of file diff --git a/data/data4.json b/data/data4.json deleted file mode 100644 index e2c7aed..0000000 --- a/data/data4.json +++ /dev/null @@ -1,4510 +0,0 @@ -{ - "eventData": { - "comments": [ - [ - "E2", - "FoundByRule", - "Positive_regulation_syntax_6_verb" - ], - [ - "E4", - "FoundByRule", - "Positive_regulation_syntax_6_verb" - ], - [ - "T3", - "FoundByRule", - "ner-family-entities" - ], - [ - "T4", - "FoundByRule", - "ner-family-entities" - ], - [ - "T5", - "FoundByRule", - "ner-family-entities" - ], - [ - "T6", - "FoundByRule", - "site_long" - ], - [ - "T7", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T8", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T9", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T10", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T11", - "FoundByRule", - "missing-location" - ], - [ - "T12", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T13", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T14", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T15", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T16", - "FoundByRule", - "ner-family-entities" - ], - [ - "T17", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T18", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T19", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T20", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T21", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T22", - "FoundByRule", - "site_long" - ], - [ - "T2", - "FoundByRule", - "ner-family-entities" - ], - [ - "T23", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T24", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T25", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T26", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T27", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T28", - "FoundByRule", - "ner-family-entities" - ], - [ - "T29", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T30", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T31", - "FoundByRule", - "ner-family-entities" - ], - [ - "T32", - "FoundByRule", - "site_long" - ], - [ - "T33", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T34", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T35", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "E5", - "FoundByRule", - "Phosphorylation_syntax_4_noun" - ], - [ - "E1", - "FoundByRule", - "Phosphorylation_syntax_4_noun" - ], - [ - "E3", - "FoundByRule", - "Phosphorylation_syntax_4_noun" - ], - [ - "E6", - "FoundByRule", - "Phosphorylation_syntax_4_noun" - ] - ], - "entities": [ - [ - "T2", - "Family", - [[ - "730", - "733" - ]] - ], - [ - "T3", - "Family", - [[ - "21", - "24" - ]] - ], - [ - "T4", - "Family", - [[ - "46", - "49" - ]] - ], - [ - "T5", - "Family", - [[ - "64", - "67" - ]] - ], - [ - "T6", - "Site", - [[ - "105", - "114" - ]] - ], - [ - "T7", - "Gene_or_gene_product", - [[ - "163", - "167" - ]] - ], - [ - "T8", - "Gene_or_gene_product", - [[ - "172", - "176" - ]] - ], - [ - "T9", - "Gene_or_gene_product", - [[ - "197", - "202" - ]] - ], - [ - "T10", - "Gene_or_gene_product", - [[ - "308", - "312" - ]] - ], - [ - "T11", - "Gene_or_gene_product", - [[ - "308", - "322" - ]] - ], - [ - "T12", - "Gene_or_gene_product", - [[ - "352", - "357" - ]] - ], - [ - "T13", - "Gene_or_gene_product", - [[ - "380", - "384" - ]] - ], - [ - "T14", - "Gene_or_gene_product", - [[ - "388", - "397" - ]] - ], - [ - "T15", - "Gene_or_gene_product", - [[ - "436", - "440" - ]] - ], - [ - "T16", - "Family", - [[ - "442", - "445" - ]] - ], - [ - "T17", - "Gene_or_gene_product", - [[ - "487", - "500" - ]] - ], - [ - "T18", - "Gene_or_gene_product", - [[ - "505", - "516" - ]] - ], - [ - "T19", - "Gene_or_gene_product", - [[ - "626", - "642" - ]] - ], - [ - "T20", - "Gene_or_gene_product", - [[ - "664", - "668" - ]] - ], - [ - "T21", - "Gene_or_gene_product", - [[ - "673", - "678" - ]] - ], - [ - "T22", - "Site", - [[ - "679", - "687" - ]] - ], - [ - "T23", - "Gene_or_gene_product", - [[ - "796", - "805" - ]] - ], - [ - "T24", - "Gene_or_gene_product", - [[ - "811", - "814" - ]] - ], - [ - "T25", - "Gene_or_gene_product", - [[ - "840", - "845" - ]] - ], - [ - "T26", - "Gene_or_gene_product", - [[ - "916", - "929" - ]] - ], - [ - "T27", - "Gene_or_gene_product", - [[ - "933", - "942" - ]] - ], - [ - "T28", - "Family", - [[ - "970", - "973" - ]] - ], - [ - "T29", - "Gene_or_gene_product", - [[ - "1124", - "1129" - ]] - ], - [ - "T30", - "Gene_or_gene_product", - [[ - "1176", - "1180" - ]] - ], - [ - "T31", - "Family", - [[ - "1260", - "1263" - ]] - ], - [ - "T32", - "Site", - [[ - "1325", - "1342" - ]] - ], - [ - "T33", - "Gene_or_gene_product", - [[ - "1375", - "1379" - ]] - ], - [ - "T34", - "Gene_or_gene_product", - [[ - "1381", - "1385" - ]] - ], - [ - "T35", - "Gene_or_gene_product", - [[ - "1391", - "1396" - ]] - ] - ], - "attributes": [], - "text": "We hypothesized that MEK inhibition activates AKT by inhibiting ERK activity, which blocks an inhibitory threonine phosphorylation on the juxtamembrane domains of EGFR and HER2, thereby increasing ERBB3 phosphorylation.\r\nTo test this hypothesis, we transiently transfected CHO-KI cells, which do not express ERBB receptors endogenously, with wild-type ERBB3 with either wild-type EGFR or EGFRT669A.\r\nIn cells transfected with wild-type EGFR, MEK inhibition led to feedback activation of phospho-ERBB3 and phosho-EGFR, recapitulating the results we had observed in our panel of cancer cell lines (Figure 6A).\r\nIn contrast, the EGFRT669A mutant increased both basal EGFR and ERBB3 tyrosine phosphorylation that was not augmented by MEK inhibition.\r\nAs a control, we treated CHO-KI cells expressing EGFRT669A with HRG ligand to induce maximal ERBB3 phosphorylation (Figure 6A), indicating that the lack of induction of phospho-ERBB3 in EGFRT669A expressing cells following MEK inhibition was not simply due to the saturation of the system with phospho-ERBB3.\r\nWe observed analogous results in CHO-KI cells expressing wild-type ERBB3 in combination with wild-type or T677A mutant HER2 (Figure 6B).\r\nTogether these results support the hypothesis that inhibition of ERK-mediated phosphorylation of a conserved juxtamembrane domain threonine residue leads to feedback activation of EGFR, HER2, and ERBB3 (Figure 7).", - "relations": [], - "triggers": [ - [ - "T37", - "Phosphorylation", - [[ - "688", - "703" - ]] - ], - [ - "T1", - "Negative_regulation", - [[ - "717", - "726" - ]] - ], - [ - "T36", - "Phosphorylation", - [[ - "846", - "861" - ]] - ], - [ - "T38", - "Phosphorylation", - [[ - "203", - "218" - ]] - ] - ], - "events": [ - [ - "E1", - "T37", - [ - [ - "Theme", - "T20" - ], - [ - "Site", - "T22" - ] - ] - ], - [ - "E2", - "T1", - [ - [ - "Controlled", - "E1" - ], - [ - "Controller", - "T2" - ] - ] - ], - [ - "E3", - "T37", - [ - [ - "Theme", - "T21" - ], - [ - "Site", - "T22" - ] - ] - ], - [ - "E4", - "T1", - [ - [ - "Controlled", - "E3" - ], - [ - "Controller", - "T2" - ] - ] - ], - [ - "E5", - "T36", - [[ - "Theme", - "T25" - ]] - ], - [ - "E6", - "T38", - [[ - "Theme", - "T9" - ]] - ] - ] - }, - "syntaxData": { - "comments": [], - "entities": [ - [ - "T1", - "JJ", - [[ - "342", - "351" - ]] - ], - [ - "T2", - "NN", - [[ - "273", - "279" - ]] - ], - [ - "T3", - "NN", - [[ - "916", - "929" - ]] - ], - [ - "T4", - "NN", - [[ - "436", - "440" - ]] - ], - [ - "T5", - "NN", - [[ - "577", - "583" - ]] - ], - [ - "T6", - "VBG", - [[ - "186", - "196" - ]] - ], - [ - "T7", - "NN", - [[ - "197", - "202" - ]] - ], - [ - "T8", - "NN", - [[ - "673", - "678" - ]] - ], - [ - "T9", - "PRP", - [[ - "246", - "248" - ]] - ], - [ - "T10", - "PRP", - [[ - "1057", - "1059" - ]] - ], - [ - "T11", - ",", - [[ - "516", - "517" - ]] - ], - [ - "T12", - "NN", - [[ - "815", - "821" - ]] - ], - [ - "T13", - "TO", - [[ - "1004", - "1006" - ]] - ], - [ - "T14", - "NN", - [[ - "1246", - "1256" - ]] - ], - [ - "T15", - "NN", - [[ - "203", - "218" - ]] - ], - [ - "T16", - "NN", - [[ - "115", - "130" - ]] - ], - [ - "T17", - ".", - [[ - "1407", - "1408" - ]] - ], - [ - "T18", - "IN", - [[ - "1022", - "1024" - ]] - ], - [ - "T19", - "NN", - [[ - "1163", - "1168" - ]] - ], - [ - "T20", - "NN", - [[ - "664", - "668" - ]] - ], - [ - "T21", - "NN", - [[ - "352", - "357" - ]] - ], - [ - "T22", - "IN", - [[ - "574", - "576" - ]] - ], - [ - "T23", - "NN", - [[ - "1375", - "1379" - ]] - ], - [ - "T24", - "IN", - [[ - "16", - "20" - ]] - ], - [ - "T25", - "PRP", - [[ - "0", - "2" - ]] - ], - [ - "T26", - "NN", - [[ - "172", - "176" - ]] - ], - [ - "T27", - "JJ", - [[ - "1069", - "1078" - ]] - ], - [ - "T28", - "CC", - [[ - "669", - "672" - ]] - ], - [ - "T29", - "VBD", - [[ - "1264", - "1272" - ]] - ], - [ - "T30", - "DT", - [[ - "533", - "536" - ]] - ], - [ - "T31", - "DT", - [[ - "134", - "137" - ]] - ], - [ - "T32", - "JJ", - [[ - "1294", - "1303" - ]] - ], - [ - "T33", - "VBD", - [[ - "1060", - "1068" - ]] - ], - [ - "T34", - "JJ", - [[ - "1150", - "1159" - ]] - ], - [ - "T35", - "IN", - [[ - "747", - "749" - ]] - ], - [ - "T36", - ".", - [[ - "397", - "398" - ]] - ], - [ - "T37", - "IN", - [[ - "806", - "810" - ]] - ], - [ - "T38", - "IN", - [[ - "160", - "162" - ]] - ], - [ - "T39", - "NN", - [[ - "846", - "861" - ]] - ], - [ - "T40", - "NN", - [[ - "626", - "635" - ]] - ], - [ - "T41", - "DT", - [[ - "1226", - "1229" - ]] - ], - [ - "T42", - "NN", - [[ - "68", - "76" - ]] - ], - [ - "T43", - "RB", - [[ - "993", - "999" - ]] - ], - [ - "T44", - "RB", - [[ - "989", - "992" - ]] - ], - [ - "T45", - "NNS", - [[ - "779", - "784" - ]] - ], - [ - "T46", - "NN", - [[ - "974", - "984" - ]] - ], - [ - "T47", - "TO", - [[ - "461", - "463" - ]] - ], - [ - "T48", - "NN", - [[ - "1361", - "1371" - ]] - ], - [ - "T49", - "IN", - [[ - "561", - "563" - ]] - ], - [ - "T50", - "NN", - [[ - "138", - "151" - ]] - ], - [ - "T51", - "IN", - [[ - "131", - "133" - ]] - ], - [ - "T52", - "JJ", - [[ - "370", - "379" - ]] - ], - [ - "T53", - "NN", - [[ - "64", - "67" - ]] - ], - [ - "T54", - "IN", - [[ - "1241", - "1245" - ]] - ], - [ - "T55", - "NN", - [[ - "1133", - "1144" - ]] - ], - [ - "T56", - "NN", - [[ - "612", - "620" - ]] - ], - [ - "T57", - "DT", - [[ - "1204", - "1209" - ]] - ], - [ - "T58", - "DT", - [[ - "750", - "751" - ]] - ], - [ - "T59", - "NN", - [[ - "1124", - "1129" - ]] - ], - [ - "T60", - "NN", - [[ - "1011", - "1021" - ]] - ], - [ - "T61", - ",", - [[ - "335", - "336" - ]] - ], - [ - "T62", - "NNS", - [[ - "1210", - "1217" - ]] - ], - [ - "T63", - "NN", - [[ - "688", - "703" - ]] - ], - [ - "T64", - "IN", - [[ - "50", - "52" - ]] - ], - [ - "T65", - "IN", - [[ - "400", - "402" - ]] - ], - [ - "T66", - "IN", - [[ - "484", - "486" - ]] - ], - [ - "T67", - "NN", - [[ - "21", - "24" - ]] - ], - [ - "T68", - "NN", - [[ - "1260", - "1263" - ]] - ], - [ - "T69", - "PRP", - [[ - "761", - "763" - ]] - ], - [ - "T70", - "IN", - [[ - "609", - "611" - ]] - ], - [ - "T71", - "NN", - [[ - "933", - "942" - ]] - ], - [ - "T72", - "JJ", - [[ - "1000", - "1003" - ]] - ], - [ - "T73", - "DT", - [[ - "91", - "93" - ]] - ], - [ - "T74", - "NN", - [[ - "1176", - "1180" - ]] - ], - [ - "T75", - "IN", - [[ - "1130", - "1132" - ]] - ], - [ - "T76", - "RB", - [[ - "249", - "260" - ]] - ], - [ - "T77", - "WDT", - [[ - "287", - "292" - ]] - ], - [ - "T78", - "VBZ", - [[ - "36", - "45" - ]] - ], - [ - "T79", - "VBD", - [[ - "643", - "652" - ]] - ], - [ - "T80", - "IN", - [[ - "1372", - "1374" - ]] - ], - [ - "T81", - "NN", - [[ - "1230", - "1240" - ]] - ], - [ - "T82", - "NN", - [[ - "446", - "456" - ]] - ], - [ - "T83", - "IN", - [[ - "337", - "341" - ]] - ], - [ - "T84", - "IN", - [[ - "1257", - "1259" - ]] - ], - [ - "T85", - ",", - [[ - "1385", - "1386" - ]] - ], - [ - "T86", - "VBP", - [[ - "293", - "295" - ]] - ], - [ - "T87", - "VB", - [[ - "224", - "228" - ]] - ], - [ - "T88", - "VBP", - [[ - "1218", - "1225" - ]] - ], - [ - "T89", - "NN", - [[ - "1304", - "1317" - ]] - ], - [ - "T90", - "NN", - [[ - "1273", - "1288" - ]] - ], - [ - "T91", - "NN", - [[ - "636", - "642" - ]] - ], - [ - "T92", - "JJ", - [[ - "94", - "104" - ]] - ], - [ - "T93", - "NN", - [[ - "1041", - "1054" - ]] - ], - [ - "T94", - ",", - [[ - "285", - "286" - ]] - ], - [ - "T95", - "NN", - [[ - "943", - "953" - ]] - ], - [ - "T96", - "IN", - [[ - "727", - "729" - ]] - ], - [ - "T97", - "NN", - [[ - "772", - "778" - ]] - ], - [ - "T98", - "DT", - [[ - "1292", - "1293" - ]] - ], - [ - "T99", - "IN", - [[ - "886", - "890" - ]] - ], - [ - "T100", - "NN", - [[ - "811", - "814" - ]] - ], - [ - "T101", - "DT", - [[ - "1007", - "1010" - ]] - ], - [ - "T102", - "NNS", - [[ - "280", - "285" - ]] - ], - [ - "T103", - "NN", - [[ - "679", - "687" - ]] - ], - [ - "T104", - "TO", - [[ - "822", - "824" - ]] - ], - [ - "T105", - "NN", - [[ - "380", - "384" - ]] - ], - [ - "T106", - "CC", - [[ - "501", - "504" - ]] - ], - [ - "T107", - "VBD", - [[ - "764", - "771" - ]] - ], - [ - "T108", - "NN", - [[ - "1318", - "1324" - ]] - ], - [ - "T109", - ",", - [[ - "244", - "245" - ]] - ], - [ - "T110", - ",", - [[ - "440", - "441" - ]] - ], - [ - "T111", - "VBG", - [[ - "53", - "63" - ]] - ], - [ - "T112", - ",", - [[ - "873", - "874" - ]] - ], - [ - "T113", - ".", - [[ - "606", - "607" - ]] - ], - [ - "T114", - "NN", - [[ - "796", - "805" - ]] - ], - [ - "T115", - "NN", - [[ - "25", - "35" - ]] - ], - [ - "T116", - "NN", - [[ - "163", - "167" - ]] - ], - [ - "T117", - "NN", - [[ - "388", - "397" - ]] - ], - [ - "T118", - "VBD", - [[ - "457", - "460" - ]] - ], - [ - "T119", - "NN", - [[ - "584", - "588" - ]] - ], - [ - "T120", - "VBG", - [[ - "1103", - "1113" - ]] - ], - [ - "T121", - "IN", - [[ - "1087", - "1089" - ]] - ], - [ - "T122", - "IN", - [[ - "930", - "932" - ]] - ], - [ - "T123", - "IN", - [[ - "1145", - "1149" - ]] - ], - [ - "T124", - ".", - [[ - "744", - "745" - ]] - ], - [ - "T125", - ",", - [[ - "620", - "621" - ]] - ], - [ - "T126", - "NN", - [[ - "1169", - "1175" - ]] - ], - [ - "T127", - "CC", - [[ - "1387", - "1390" - ]] - ], - [ - "T128", - "NNS", - [[ - "313", - "322" - ]] - ], - [ - "T129", - "WDT", - [[ - "78", - "83" - ]] - ], - [ - "T130", - "NN", - [[ - "105", - "114" - ]] - ], - [ - "T131", - "VBZ", - [[ - "1343", - "1348" - ]] - ], - [ - "T132", - ".", - [[ - "1054", - "1055" - ]] - ], - [ - "T133", - "PRP", - [[ - "545", - "547" - ]] - ], - [ - "T134", - "VBZ", - [[ - "84", - "90" - ]] - ], - [ - "T135", - "RB", - [[ - "178", - "185" - ]] - ], - [ - "T136", - "NN", - [[ - "234", - "244" - ]] - ], - [ - "T137", - "VBN", - [[ - "409", - "420" - ]] - ], - [ - "T138", - "NN", - [[ - "1090", - "1096" - ]] - ], - [ - "T139", - "NN", - [[ - "308", - "312" - ]] - ], - [ - "T140", - "NN", - [[ - "1352", - "1360" - ]] - ], - [ - "T141", - "VBG", - [[ - "785", - "795" - ]] - ], - [ - "T142", - "IN", - [[ - "900", - "902" - ]] - ], - [ - "T143", - "NN", - [[ - "487", - "500" - ]] - ], - [ - "T144", - "VBN", - [[ - "552", - "560" - ]] - ], - [ - "T145", - "NN", - [[ - "442", - "445" - ]] - ], - [ - "T146", - "NN", - [[ - "752", - "759" - ]] - ], - [ - "T147", - "NN", - [[ - "1335", - "1342" - ]] - ], - [ - "T148", - "JJ", - [[ - "426", - "435" - ]] - ], - [ - "T149", - "IN", - [[ - "913", - "915" - ]] - ], - [ - "T150", - "NNS", - [[ - "954", - "959" - ]] - ], - [ - "T151", - "IN", - [[ - "358", - "362" - ]] - ], - [ - "T152", - "CC", - [[ - "653", - "657" - ]] - ], - [ - "T153", - "VB", - [[ - "300", - "307" - ]] - ], - [ - "T154", - ",", - [[ - "76", - "77" - ]] - ], - [ - "T155", - "CC", - [[ - "385", - "387" - ]] - ], - [ - "T156", - "NN", - [[ - "903", - "912" - ]] - ], - [ - "T157", - "VBD", - [[ - "709", - "712" - ]] - ], - [ - "T158", - "NN", - [[ - "1325", - "1334" - ]] - ], - [ - "T159", - "NN", - [[ - "970", - "973" - ]] - ], - [ - "T160", - "VBD", - [[ - "3", - "15" - ]] - ], - [ - "T161", - "NNS", - [[ - "152", - "159" - ]] - ], - [ - "T162", - "VB", - [[ - "825", - "831" - ]] - ], - [ - "T163", - "VBD", - [[ - "548", - "551" - ]] - ], - [ - "T164", - "CC", - [[ - "363", - "369" - ]] - ], - [ - "T165", - "NNS", - [[ - "1079", - "1086" - ]] - ], - [ - "T166", - "RB", - [[ - "323", - "335" - ]] - ], - [ - "T167", - "RB", - [[ - "296", - "299" - ]] - ], - [ - "T168", - "JJ", - [[ - "832", - "839" - ]] - ], - [ - "T169", - "NN", - [[ - "464", - "472" - ]] - ], - [ - "T170", - "JJ", - [[ - "1114", - "1123" - ]] - ], - [ - "T171", - "NN", - [[ - "505", - "516" - ]] - ], - [ - "T172", - "DT", - [[ - "622", - "625" - ]] - ], - [ - "T173", - "TO", - [[ - "1349", - "1351" - ]] - ], - [ - "T174", - "IN", - [[ - "1289", - "1291" - ]] - ], - [ - "T175", - "VBD", - [[ - "261", - "272" - ]] - ], - [ - "T176", - ",", - [[ - "176", - "177" - ]] - ], - [ - "T177", - "NN", - [[ - "730", - "733" - ]] - ], - [ - "T178", - "NN", - [[ - "1381", - "1385" - ]] - ], - [ - "T179", - "IN", - [[ - "421", - "425" - ]] - ], - [ - "T180", - ".", - [[ - "1192", - "1193" - ]] - ], - [ - "T181", - "NN", - [[ - "895", - "899" - ]] - ], - [ - "T182", - "NNS", - [[ - "537", - "544" - ]] - ], - [ - "T183", - "DT", - [[ - "229", - "233" - ]] - ], - [ - "T184", - "VBG", - [[ - "960", - "969" - ]] - ], - [ - "T185", - "RB", - [[ - "713", - "716" - ]] - ], - [ - "T186", - "WDT", - [[ - "704", - "708" - ]] - ], - [ - "T187", - "NNS", - [[ - "403", - "408" - ]] - ], - [ - "T188", - "VBN", - [[ - "717", - "726" - ]] - ], - [ - "T189", - ",", - [[ - "759", - "760" - ]] - ], - [ - "T190", - "RB", - [[ - "1195", - "1203" - ]] - ], - [ - "T191", - "NNS", - [[ - "589", - "594" - ]] - ], - [ - "T192", - "NN", - [[ - "1029", - "1035" - ]] - ], - [ - "T193", - "NN", - [[ - "568", - "573" - ]] - ], - [ - "T194", - "CC", - [[ - "1160", - "1162" - ]] - ], - [ - "T195", - "TO", - [[ - "221", - "223" - ]] - ], - [ - "T196", - "JJ", - [[ - "658", - "663" - ]] - ], - [ - "T197", - "VBG", - [[ - "875", - "885" - ]] - ], - [ - "T198", - "NNS", - [[ - "1097", - "1102" - ]] - ], - [ - "T199", - "DT", - [[ - "1025", - "1028" - ]] - ], - [ - "T200", - "PRP$", - [[ - "564", - "567" - ]] - ], - [ - "T201", - "IN", - [[ - "1036", - "1040" - ]] - ], - [ - "T202", - "NN", - [[ - "840", - "845" - ]] - ], - [ - "T203", - ".", - [[ - "218", - "219" - ]] - ], - [ - "T204", - "NN", - [[ - "46", - "49" - ]] - ], - [ - "T205", - "VBD", - [[ - "985", - "988" - ]] - ], - [ - "T206", - "NN", - [[ - "473", - "483" - ]] - ], - [ - "T207", - "CC", - [[ - "168", - "171" - ]] - ], - [ - "T208", - "NN", - [[ - "734", - "744" - ]] - ], - [ - "T209", - "VBG", - [[ - "518", - "532" - ]] - ], - [ - "T210", - "NN", - [[ - "1391", - "1396" - ]] - ], - [ - "T211", - ",", - [[ - "1379", - "1380" - ]] - ], - [ - "T212", - "DT", - [[ - "891", - "894" - ]] - ] - ], - "attributes": [], - "text": "We hypothesized that MEK inhibition activates AKT by inhibiting ERK activity, which blocks an inhibitory threonine phosphorylation on the juxtamembrane domains of EGFR and HER2, thereby increasing ERBB3 phosphorylation.\r\nTo test this hypothesis, we transiently transfected CHO-KI cells, which do not express ERBB receptors endogenously, with wild-type ERBB3 with either wild-type EGFR or EGFRT669A.\r\nIn cells transfected with wild-type EGFR, MEK inhibition led to feedback activation of phospho-ERBB3 and phosho-EGFR, recapitulating the results we had observed in our panel of cancer cell lines (Figure 6A).\r\nIn contrast, the EGFRT669A mutant increased both basal EGFR and ERBB3 tyrosine phosphorylation that was not augmented by MEK inhibition.\r\nAs a control, we treated CHO-KI cells expressing EGFRT669A with HRG ligand to induce maximal ERBB3 phosphorylation (Figure 6A), indicating that the lack of induction of phospho-ERBB3 in EGFRT669A expressing cells following MEK inhibition was not simply due to the saturation of the system with phospho-ERBB3.\r\nWe observed analogous results in CHO-KI cells expressing wild-type ERBB3 in combination with wild-type or T677A mutant HER2 (Figure 6B).\r\nTogether these results support the hypothesis that inhibition of ERK-mediated phosphorylation of a conserved juxtamembrane domain threonine residue leads to feedback activation of EGFR, HER2, and ERBB3 (Figure 7).", - "relations": [ - [ - "R1", - "nsubj", - [ - [ - "governor", - "T160" - ], - [ - "dependent", - "T25" - ] - ] - ], - [ - "R2", - "ccomp", - [ - [ - "governor", - "T160" - ], - [ - "dependent", - "T78" - ] - ] - ], - [ - "R3", - "nn", - [ - [ - "governor", - "T115" - ], - [ - "dependent", - "T67" - ] - ] - ], - [ - "R4", - "mark", - [ - [ - "governor", - "T78" - ], - [ - "dependent", - "T24" - ] - ] - ], - [ - "R5", - "nsubj", - [ - [ - "governor", - "T78" - ], - [ - "dependent", - "T115" - ] - ] - ], - [ - "R6", - "dobj", - [ - [ - "governor", - "T78" - ], - [ - "dependent", - "T204" - ] - ] - ], - [ - "R7", - "prep_by", - [ - [ - "governor", - "T78" - ], - [ - "dependent", - "T42" - ] - ] - ], - [ - "R8", - "amod", - [ - [ - "governor", - "T42" - ], - [ - "dependent", - "T111" - ] - ] - ], - [ - "R9", - "nn", - [ - [ - "governor", - "T42" - ], - [ - "dependent", - "T53" - ] - ] - ], - [ - "R10", - "rcmod", - [ - [ - "governor", - "T42" - ], - [ - "dependent", - "T134" - ] - ] - ], - [ - "R11", - "nsubj", - [ - [ - "governor", - "T134" - ], - [ - "dependent", - "T129" - ] - ] - ], - [ - "R12", - "dobj", - [ - [ - "governor", - "T134" - ], - [ - "dependent", - "T16" - ] - ] - ], - [ - "R13", - "prep_on", - [ - [ - "governor", - "T134" - ], - [ - "dependent", - "T161" - ] - ] - ], - [ - "R14", - "vmod", - [ - [ - "governor", - "T134" - ], - [ - "dependent", - "T6" - ] - ] - ], - [ - "R15", - "det", - [ - [ - "governor", - "T16" - ], - [ - "dependent", - "T73" - ] - ] - ], - [ - "R16", - "amod", - [ - [ - "governor", - "T16" - ], - [ - "dependent", - "T92" - ] - ] - ], - [ - "R17", - "nn", - [ - [ - "governor", - "T16" - ], - [ - "dependent", - "T130" - ] - ] - ], - [ - "R18", - "det", - [ - [ - "governor", - "T161" - ], - [ - "dependent", - "T31" - ] - ] - ], - [ - "R19", - "nn", - [ - [ - "governor", - "T161" - ], - [ - "dependent", - "T50" - ] - ] - ], - [ - "R20", - "prep_of", - [ - [ - "governor", - "T161" - ], - [ - "dependent", - "T116" - ] - ] - ], - [ - "R21", - "prep_of", - [ - [ - "governor", - "T161" - ], - [ - "dependent", - "T26" - ] - ] - ], - [ - "R22", - "conj_and", - [ - [ - "governor", - "T116" - ], - [ - "dependent", - "T26" - ] - ] - ], - [ - "R23", - "advmod", - [ - [ - "governor", - "T6" - ], - [ - "dependent", - "T135" - ] - ] - ], - [ - "R24", - "dobj", - [ - [ - "governor", - "T6" - ], - [ - "dependent", - "T15" - ] - ] - ], - [ - "R25", - "nn", - [ - [ - "governor", - "T15" - ], - [ - "dependent", - "T7" - ] - ] - ], - [ - "R26", - "aux", - [ - [ - "governor", - "T87" - ], - [ - "dependent", - "T195" - ] - ] - ], - [ - "R27", - "dobj", - [ - [ - "governor", - "T87" - ], - [ - "dependent", - "T136" - ] - ] - ], - [ - "R28", - "det", - [ - [ - "governor", - "T136" - ], - [ - "dependent", - "T183" - ] - ] - ], - [ - "R29", - "advcl", - [ - [ - "governor", - "T175" - ], - [ - "dependent", - "T87" - ] - ] - ], - [ - "R30", - "nsubj", - [ - [ - "governor", - "T175" - ], - [ - "dependent", - "T9" - ] - ] - ], - [ - "R31", - "advmod", - [ - [ - "governor", - "T175" - ], - [ - "dependent", - "T76" - ] - ] - ], - [ - "R32", - "dobj", - [ - [ - "governor", - "T175" - ], - [ - "dependent", - "T102" - ] - ] - ], - [ - "R33", - "nn", - [ - [ - "governor", - "T102" - ], - [ - "dependent", - "T2" - ] - ] - ], - [ - "R34", - "rcmod", - [ - [ - "governor", - "T102" - ], - [ - "dependent", - "T153" - ] - ] - ], - [ - "R35", - "nsubj", - [ - [ - "governor", - "T153" - ], - [ - "dependent", - "T77" - ] - ] - ], - [ - "R36", - "aux", - [ - [ - "governor", - "T153" - ], - [ - "dependent", - "T86" - ] - ] - ], - [ - "R37", - "neg", - [ - [ - "governor", - "T153" - ], - [ - "dependent", - "T167" - ] - ] - ], - [ - "R38", - "dobj", - [ - [ - "governor", - "T153" - ], - [ - "dependent", - "T128" - ] - ] - ], - [ - "R39", - "advmod", - [ - [ - "governor", - "T153" - ], - [ - "dependent", - "T166" - ] - ] - ], - [ - "R40", - "prep_with", - [ - [ - "governor", - "T153" - ], - [ - "dependent", - "T21" - ] - ] - ], - [ - "R41", - "nn", - [ - [ - "governor", - "T128" - ], - [ - "dependent", - "T139" - ] - ] - ], - [ - "R42", - "amod", - [ - [ - "governor", - "T21" - ], - [ - "dependent", - "T1" - ] - ] - ], - [ - "R43", - "prep_with", - [ - [ - "governor", - "T21" - ], - [ - "dependent", - "T105" - ] - ] - ], - [ - "R44", - "prep_with", - [ - [ - "governor", - "T21" - ], - [ - "dependent", - "T117" - ] - ] - ], - [ - "R45", - "preconj", - [ - [ - "governor", - "T105" - ], - [ - "dependent", - "T164" - ] - ] - ], - [ - "R46", - "amod", - [ - [ - "governor", - "T105" - ], - [ - "dependent", - "T52" - ] - ] - ], - [ - "R47", - "conj_or", - [ - [ - "governor", - "T105" - ], - [ - "dependent", - "T117" - ] - ] - ], - [ - "R48", - "vmod", - [ - [ - "governor", - "T187" - ], - [ - "dependent", - "T137" - ] - ] - ], - [ - "R49", - "prep_with", - [ - [ - "governor", - "T137" - ], - [ - "dependent", - "T4" - ] - ] - ], - [ - "R50", - "amod", - [ - [ - "governor", - "T4" - ], - [ - "dependent", - "T148" - ] - ] - ], - [ - "R51", - "nn", - [ - [ - "governor", - "T82" - ], - [ - "dependent", - "T145" - ] - ] - ], - [ - "R52", - "prep_in", - [ - [ - "governor", - "T118" - ], - [ - "dependent", - "T187" - ] - ] - ], - [ - "R53", - "nsubj", - [ - [ - "governor", - "T118" - ], - [ - "dependent", - "T82" - ] - ] - ], - [ - "R54", - "prep_to", - [ - [ - "governor", - "T118" - ], - [ - "dependent", - "T206" - ] - ] - ], - [ - "R55", - "xcomp", - [ - [ - "governor", - "T118" - ], - [ - "dependent", - "T209" - ] - ] - ], - [ - "R56", - "nn", - [ - [ - "governor", - "T206" - ], - [ - "dependent", - "T169" - ] - ] - ], - [ - "R57", - "prep_of", - [ - [ - "governor", - "T206" - ], - [ - "dependent", - "T143" - ] - ] - ], - [ - "R58", - "prep_of", - [ - [ - "governor", - "T206" - ], - [ - "dependent", - "T171" - ] - ] - ], - [ - "R59", - "conj_and", - [ - [ - "governor", - "T143" - ], - [ - "dependent", - "T171" - ] - ] - ], - [ - "R60", - "dobj", - [ - [ - "governor", - "T209" - ], - [ - "dependent", - "T182" - ] - ] - ], - [ - "R61", - "det", - [ - [ - "governor", - "T182" - ], - [ - "dependent", - "T30" - ] - ] - ], - [ - "R62", - "rcmod", - [ - [ - "governor", - "T182" - ], - [ - "dependent", - "T144" - ] - ] - ], - [ - "R63", - "nsubj", - [ - [ - "governor", - "T144" - ], - [ - "dependent", - "T133" - ] - ] - ], - [ - "R64", - "aux", - [ - [ - "governor", - "T144" - ], - [ - "dependent", - "T163" - ] - ] - ], - [ - "R65", - "prep_in", - [ - [ - "governor", - "T144" - ], - [ - "dependent", - "T193" - ] - ] - ], - [ - "R66", - "poss", - [ - [ - "governor", - "T193" - ], - [ - "dependent", - "T200" - ] - ] - ], - [ - "R67", - "prep_of", - [ - [ - "governor", - "T193" - ], - [ - "dependent", - "T191" - ] - ] - ], - [ - "R68", - "nn", - [ - [ - "governor", - "T191" - ], - [ - "dependent", - "T5" - ] - ] - ], - [ - "R69", - "nn", - [ - [ - "governor", - "T191" - ], - [ - "dependent", - "T119" - ] - ] - ], - [ - "R70", - "det", - [ - [ - "governor", - "T91" - ], - [ - "dependent", - "T172" - ] - ] - ], - [ - "R71", - "nn", - [ - [ - "governor", - "T91" - ], - [ - "dependent", - "T40" - ] - ] - ], - [ - "R72", - "prep_in", - [ - [ - "governor", - "T79" - ], - [ - "dependent", - "T56" - ] - ] - ], - [ - "R73", - "nsubj", - [ - [ - "governor", - "T79" - ], - [ - "dependent", - "T91" - ] - ] - ], - [ - "R74", - "prep", - [ - [ - "governor", - "T79" - ], - [ - "dependent", - "T152" - ] - ] - ], - [ - "R75", - "pobj", - [ - [ - "governor", - "T152" - ], - [ - "dependent", - "T20" - ] - ] - ], - [ - "R76", - "pobj", - [ - [ - "governor", - "T152" - ], - [ - "dependent", - "T63" - ] - ] - ], - [ - "R77", - "amod", - [ - [ - "governor", - "T20" - ], - [ - "dependent", - "T196" - ] - ] - ], - [ - "R78", - "conj_and", - [ - [ - "governor", - "T20" - ], - [ - "dependent", - "T63" - ] - ] - ], - [ - "R79", - "rcmod", - [ - [ - "governor", - "T20" - ], - [ - "dependent", - "T188" - ] - ] - ], - [ - "R80", - "nn", - [ - [ - "governor", - "T63" - ], - [ - "dependent", - "T8" - ] - ] - ], - [ - "R81", - "nn", - [ - [ - "governor", - "T63" - ], - [ - "dependent", - "T103" - ] - ] - ], - [ - "R82", - "nsubjpass", - [ - [ - "governor", - "T188" - ], - [ - "dependent", - "T186" - ] - ] - ], - [ - "R83", - "auxpass", - [ - [ - "governor", - "T188" - ], - [ - "dependent", - "T157" - ] - ] - ], - [ - "R84", - "neg", - [ - [ - "governor", - "T188" - ], - [ - "dependent", - "T185" - ] - ] - ], - [ - "R85", - "agent", - [ - [ - "governor", - "T188" - ], - [ - "dependent", - "T208" - ] - ] - ], - [ - "R86", - "nn", - [ - [ - "governor", - "T208" - ], - [ - "dependent", - "T177" - ] - ] - ], - [ - "R87", - "det", - [ - [ - "governor", - "T146" - ], - [ - "dependent", - "T58" - ] - ] - ], - [ - "R88", - "prep_as", - [ - [ - "governor", - "T107" - ], - [ - "dependent", - "T146" - ] - ] - ], - [ - "R89", - "nsubj", - [ - [ - "governor", - "T107" - ], - [ - "dependent", - "T69" - ] - ] - ], - [ - "R90", - "dobj", - [ - [ - "governor", - "T107" - ], - [ - "dependent", - "T45" - ] - ] - ], - [ - "R91", - "vmod", - [ - [ - "governor", - "T107" - ], - [ - "dependent", - "T197" - ] - ] - ], - [ - "R92", - "nn", - [ - [ - "governor", - "T45" - ], - [ - "dependent", - "T97" - ] - ] - ], - [ - "R93", - "vmod", - [ - [ - "governor", - "T45" - ], - [ - "dependent", - "T141" - ] - ] - ], - [ - "R94", - "dobj", - [ - [ - "governor", - "T141" - ], - [ - "dependent", - "T114" - ] - ] - ], - [ - "R95", - "prep_with", - [ - [ - "governor", - "T141" - ], - [ - "dependent", - "T12" - ] - ] - ], - [ - "R96", - "vmod", - [ - [ - "governor", - "T141" - ], - [ - "dependent", - "T162" - ] - ] - ], - [ - "R97", - "nn", - [ - [ - "governor", - "T12" - ], - [ - "dependent", - "T100" - ] - ] - ], - [ - "R98", - "aux", - [ - [ - "governor", - "T162" - ], - [ - "dependent", - "T104" - ] - ] - ], - [ - "R99", - "dobj", - [ - [ - "governor", - "T162" - ], - [ - "dependent", - "T39" - ] - ] - ], - [ - "R100", - "amod", - [ - [ - "governor", - "T39" - ], - [ - "dependent", - "T168" - ] - ] - ], - [ - "R101", - "nn", - [ - [ - "governor", - "T39" - ], - [ - "dependent", - "T202" - ] - ] - ], - [ - "R102", - "ccomp", - [ - [ - "governor", - "T197" - ], - [ - "dependent", - "T72" - ] - ] - ], - [ - "R103", - "det", - [ - [ - "governor", - "T181" - ], - [ - "dependent", - "T212" - ] - ] - ], - [ - "R104", - "prep_of", - [ - [ - "governor", - "T181" - ], - [ - "dependent", - "T156" - ] - ] - ], - [ - "R105", - "prep_of", - [ - [ - "governor", - "T156" - ], - [ - "dependent", - "T3" - ] - ] - ], - [ - "R106", - "prep_in", - [ - [ - "governor", - "T3" - ], - [ - "dependent", - "T150" - ] - ] - ], - [ - "R107", - "nn", - [ - [ - "governor", - "T150" - ], - [ - "dependent", - "T71" - ] - ] - ], - [ - "R108", - "nn", - [ - [ - "governor", - "T150" - ], - [ - "dependent", - "T95" - ] - ] - ], - [ - "R109", - "prep_following", - [ - [ - "governor", - "T150" - ], - [ - "dependent", - "T46" - ] - ] - ], - [ - "R110", - "nn", - [ - [ - "governor", - "T46" - ], - [ - "dependent", - "T159" - ] - ] - ], - [ - "R111", - "mark", - [ - [ - "governor", - "T72" - ], - [ - "dependent", - "T99" - ] - ] - ], - [ - "R112", - "nsubj", - [ - [ - "governor", - "T72" - ], - [ - "dependent", - "T181" - ] - ] - ], - [ - "R113", - "cop", - [ - [ - "governor", - "T72" - ], - [ - "dependent", - "T205" - ] - ] - ], - [ - "R114", - "neg", - [ - [ - "governor", - "T72" - ], - [ - "dependent", - "T44" - ] - ] - ], - [ - "R115", - "advmod", - [ - [ - "governor", - "T72" - ], - [ - "dependent", - "T43" - ] - ] - ], - [ - "R116", - "prep_to", - [ - [ - "governor", - "T72" - ], - [ - "dependent", - "T60" - ] - ] - ], - [ - "R117", - "det", - [ - [ - "governor", - "T60" - ], - [ - "dependent", - "T101" - ] - ] - ], - [ - "R118", - "prep_of", - [ - [ - "governor", - "T60" - ], - [ - "dependent", - "T192" - ] - ] - ], - [ - "R119", - "det", - [ - [ - "governor", - "T192" - ], - [ - "dependent", - "T199" - ] - ] - ], - [ - "R120", - "prep_with", - [ - [ - "governor", - "T192" - ], - [ - "dependent", - "T93" - ] - ] - ], - [ - "R121", - "nsubj", - [ - [ - "governor", - "T33" - ], - [ - "dependent", - "T10" - ] - ] - ], - [ - "R122", - "dobj", - [ - [ - "governor", - "T33" - ], - [ - "dependent", - "T165" - ] - ] - ], - [ - "R123", - "prep_in", - [ - [ - "governor", - "T33" - ], - [ - "dependent", - "T198" - ] - ] - ], - [ - "R124", - "xcomp", - [ - [ - "governor", - "T33" - ], - [ - "dependent", - "T120" - ] - ] - ], - [ - "R125", - "amod", - [ - [ - "governor", - "T165" - ], - [ - "dependent", - "T27" - ] - ] - ], - [ - "R126", - "nn", - [ - [ - "governor", - "T198" - ], - [ - "dependent", - "T138" - ] - ] - ], - [ - "R127", - "dobj", - [ - [ - "governor", - "T120" - ], - [ - "dependent", - "T59" - ] - ] - ], - [ - "R128", - "prep_in", - [ - [ - "governor", - "T120" - ], - [ - "dependent", - "T55" - ] - ] - ], - [ - "R129", - "prep_with", - [ - [ - "governor", - "T120" - ], - [ - "dependent", - "T34" - ] - ] - ], - [ - "R130", - "prep_with", - [ - [ - "governor", - "T120" - ], - [ - "dependent", - "T74" - ] - ] - ], - [ - "R131", - "amod", - [ - [ - "governor", - "T59" - ], - [ - "dependent", - "T170" - ] - ] - ], - [ - "R132", - "conj_or", - [ - [ - "governor", - "T34" - ], - [ - "dependent", - "T74" - ] - ] - ], - [ - "R133", - "nn", - [ - [ - "governor", - "T74" - ], - [ - "dependent", - "T19" - ] - ] - ], - [ - "R134", - "nn", - [ - [ - "governor", - "T74" - ], - [ - "dependent", - "T126" - ] - ] - ], - [ - "R135", - "det", - [ - [ - "governor", - "T62" - ], - [ - "dependent", - "T57" - ] - ] - ], - [ - "R136", - "advmod", - [ - [ - "governor", - "T88" - ], - [ - "dependent", - "T190" - ] - ] - ], - [ - "R137", - "nsubj", - [ - [ - "governor", - "T88" - ], - [ - "dependent", - "T62" - ] - ] - ], - [ - "R138", - "dobj", - [ - [ - "governor", - "T88" - ], - [ - "dependent", - "T81" - ] - ] - ], - [ - "R139", - "ccomp", - [ - [ - "governor", - "T88" - ], - [ - "dependent", - "T29" - ] - ] - ], - [ - "R140", - "det", - [ - [ - "governor", - "T81" - ], - [ - "dependent", - "T41" - ] - ] - ], - [ - "R141", - "prep_of", - [ - [ - "governor", - "T14" - ], - [ - "dependent", - "T68" - ] - ] - ], - [ - "R142", - "mark", - [ - [ - "governor", - "T29" - ], - [ - "dependent", - "T54" - ] - ] - ], - [ - "R143", - "nsubj", - [ - [ - "governor", - "T29" - ], - [ - "dependent", - "T14" - ] - ] - ], - [ - "R144", - "ccomp", - [ - [ - "governor", - "T29" - ], - [ - "dependent", - "T131" - ] - ] - ], - [ - "R145", - "prep_of", - [ - [ - "governor", - "T90" - ], - [ - "dependent", - "T147" - ] - ] - ], - [ - "R146", - "det", - [ - [ - "governor", - "T147" - ], - [ - "dependent", - "T98" - ] - ] - ], - [ - "R147", - "amod", - [ - [ - "governor", - "T147" - ], - [ - "dependent", - "T32" - ] - ] - ], - [ - "R148", - "nn", - [ - [ - "governor", - "T147" - ], - [ - "dependent", - "T89" - ] - ] - ], - [ - "R149", - "nn", - [ - [ - "governor", - "T147" - ], - [ - "dependent", - "T108" - ] - ] - ], - [ - "R150", - "nn", - [ - [ - "governor", - "T147" - ], - [ - "dependent", - "T158" - ] - ] - ], - [ - "R151", - "nsubj", - [ - [ - "governor", - "T131" - ], - [ - "dependent", - "T90" - ] - ] - ], - [ - "R152", - "prep_to", - [ - [ - "governor", - "T131" - ], - [ - "dependent", - "T48" - ] - ] - ], - [ - "R153", - "nn", - [ - [ - "governor", - "T48" - ], - [ - "dependent", - "T140" - ] - ] - ], - [ - "R154", - "prep_of", - [ - [ - "governor", - "T48" - ], - [ - "dependent", - "T23" - ] - ] - ], - [ - "R155", - "prep_of", - [ - [ - "governor", - "T48" - ], - [ - "dependent", - "T178" - ] - ] - ], - [ - "R156", - "prep_of", - [ - [ - "governor", - "T48" - ], - [ - "dependent", - "T210" - ] - ] - ], - [ - "R157", - "conj_and", - [ - [ - "governor", - "T23" - ], - [ - "dependent", - "T178" - ] - ] - ], - [ - "R158", - "conj_and", - [ - [ - "governor", - "T23" - ], - [ - "dependent", - "T210" - ] - ] - ] - ], - "triggers": [], - "events": [] - } -} \ No newline at end of file diff --git a/data/data5.json b/data/data5.json deleted file mode 100644 index be9fd78..0000000 --- a/data/data5.json +++ /dev/null @@ -1,8106 +0,0 @@ -{ - "eventData": { - "comments": [ - [ - "E2", - "FoundByRule", - "Positive_early_regulation" - ], - [ - "E4", - "FoundByRule", - "Positive_regulation_syntax_3_noun" - ], - [ - "E5", - "FoundByRule", - "Positive_regulation_syntax_1_verb, nounPhraseMatch, strictHeadMatch" - ], - [ - "R1", - "FoundByRule", - "Phosphorylation_syntax_8_noun + toRelationMention" - ], - [ - "T8", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T9", - "FoundByRule", - "ner-family-entities" - ], - [ - "T10", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T11", - "FoundByRule", - "ner-tissue-type" - ], - [ - "T12", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T13", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T14", - "FoundByRule", - "ner-family-entities" - ], - [ - "T15", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T16", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T17", - "FoundByRule", - "ner-tissue-type" - ], - [ - "T4", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T18", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T19", - "FoundByRule", - "ner-bioprocess-entities" - ], - [ - "T20", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T21", - "FoundByRule", - "site_1letter_b" - ], - [ - "T22", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T23", - "FoundByRule", - "multi-site" - ], - [ - "T24", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T25", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T26", - "FoundByRule", - "ner-tissue-type" - ], - [ - "T27", - "FoundByRule", - "protein-inhibitor" - ], - [ - "T28", - "FoundByRule", - "ner-simple_chemical-entities" - ], - [ - "T29", - "FoundByRule", - "protein-inhibitor" - ], - [ - "T30", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T31", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T32", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T33", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T34", - "FoundByRule", - "ner-family-entities" - ], - [ - "T35", - "FoundByRule", - "protein-inhibitor" - ], - [ - "T36", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T37", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T38", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T39", - "FoundByRule", - "ner-family-entities" - ], - [ - "T40", - "FoundByRule", - "ner-cell-lines" - ], - [ - "T41", - "FoundByRule", - "site_1letter_b" - ], - [ - "T42", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T43", - "FoundByRule", - "ner-simple_chemical-entities" - ], - [ - "T44", - "FoundByRule", - "ner-simple_chemical-entities" - ], - [ - "T45", - "FoundByRule", - "ner-family-entities" - ], - [ - "T7", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T46", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T47", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T48", - "FoundByRule", - "ner-family-entities" - ], - [ - "T49", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T50", - "FoundByRule", - "protein-inhibitor" - ], - [ - "T51", - "FoundByRule", - "ner-bioprocess-entities" - ], - [ - "T52", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T53", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T54", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T55", - "FoundByRule", - "ner-tissue-type" - ], - [ - "T56", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T57", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T58", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T59", - "FoundByRule", - "ner-cell-lines" - ], - [ - "T60", - "FoundByRule", - "site_1letter_b" - ], - [ - "T61", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T6", - "FoundByRule", - "Nstar_not_in_Nstar_proteins" - ], - [ - "T2", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T62", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T63", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T64", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T65", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T66", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "E3", - "FoundByRule", - "transcription_1" - ], - [ - "E1", - "FoundByRule", - "amount_1" - ], - [ - "E7", - "FoundByRule", - "Positive_activation_syntax_1_verb" - ], - [ - "E8", - "FoundByRule", - "Positive_activation_syntax_1_verb" - ], - [ - "E6", - "FoundByRule", - "Phosphorylation_syntax_1a_noun" - ], - [ - "E9", - "FoundByRule", - "Positive_activation_syntax_1_verb" - ], - [ - "E10", - "FoundByRule", - "Positive_early_activation" - ], - [ - "E11", - "FoundByRule", - "Negative_activation_syntax_3_noun" - ] - ], - "entities": [ - [ - "T2", - "Gene_or_gene_product", - [[ - "2020", - "2027" - ]] - ], - [ - "T4", - "Gene_or_gene_product", - [[ - "308", - "314" - ]] - ], - [ - "T6", - "Generic_entity", - [[ - "1983", - "1990" - ]] - ], - [ - "T7", - "Gene_or_gene_product", - [[ - "1151", - "1158" - ]] - ], - [ - "T8", - "Gene_or_gene_product", - [[ - "63", - "67" - ]] - ], - [ - "T9", - "Family", - [[ - "71", - "75" - ]] - ], - [ - "T10", - "Gene_or_gene_product", - [[ - "98", - "102" - ]] - ], - [ - "T11", - "TissueType", - [[ - "110", - "117" - ]] - ], - [ - "T12", - "Gene_or_gene_product", - [[ - "147", - "151" - ]] - ], - [ - "T13", - "Gene_or_gene_product", - [[ - "192", - "196" - ]] - ], - [ - "T14", - "Family", - [[ - "197", - "200" - ]] - ], - [ - "T15", - "Gene_or_gene_product", - [[ - "209", - "213" - ]] - ], - [ - "T16", - "Gene_or_gene_product", - [[ - "233", - "237" - ]] - ], - [ - "T17", - "TissueType", - [[ - "248", - "261" - ]] - ], - [ - "T18", - "Gene_or_gene_product", - [[ - "338", - "342" - ]] - ], - [ - "T19", - "BioProcess", - [[ - "348", - "361" - ]] - ], - [ - "T20", - "Gene_or_gene_product", - [[ - "376", - "380" - ]] - ], - [ - "T21", - "Site", - [[ - "381", - "383" - ]] - ], - [ - "T22", - "Gene_or_gene_product", - [[ - "385", - "392" - ]] - ], - [ - "T23", - "Site", - [[ - "385", - "392" - ]] - ], - [ - "T24", - "Gene_or_gene_product", - [[ - "413", - "417" - ]] - ], - [ - "T25", - "Gene_or_gene_product", - [[ - "422", - "426" - ]] - ], - [ - "T26", - "TissueType", - [[ - "456", - "470" - ]] - ], - [ - "T27", - "Simple_chemical", - [[ - "547", - "560" - ]] - ], - [ - "T28", - "Simple_chemical", - [[ - "561", - "568" - ]] - ], - [ - "T29", - "Simple_chemical", - [[ - "602", - "615" - ]] - ], - [ - "T30", - "Gene_or_gene_product", - [[ - "625", - "629" - ]] - ], - [ - "T31", - "Gene_or_gene_product", - [[ - "631", - "635" - ]] - ], - [ - "T32", - "Gene_or_gene_product", - [[ - "651", - "656" - ]] - ], - [ - "T33", - "Gene_or_gene_product", - [[ - "736", - "740" - ]] - ], - [ - "T34", - "Family", - [[ - "753", - "756" - ]] - ], - [ - "T35", - "Simple_chemical", - [[ - "760", - "774" - ]] - ], - [ - "T36", - "Gene_or_gene_product", - [[ - "783", - "793" - ]] - ], - [ - "T37", - "Gene_or_gene_product", - [[ - "808", - "812" - ]] - ], - [ - "T38", - "Gene_or_gene_product", - [[ - "841", - "844" - ]] - ], - [ - "T39", - "Family", - [[ - "880", - "885" - ]] - ], - [ - "T40", - "CellLine", - [[ - "894", - "899" - ]] - ], - [ - "T41", - "Site", - [[ - "894", - "899" - ]] - ], - [ - "T42", - "Gene_or_gene_product", - [[ - "946", - "950" - ]] - ], - [ - "T43", - "Simple_chemical", - [[ - "998", - "1009" - ]] - ], - [ - "T44", - "Simple_chemical", - [[ - "1014", - "1021" - ]] - ], - [ - "T45", - "Family", - [[ - "1120", - "1124" - ]] - ], - [ - "T46", - "Gene_or_gene_product", - [[ - "1200", - "1208" - ]] - ], - [ - "T47", - "Gene_or_gene_product", - [[ - "1398", - "1402" - ]] - ], - [ - "T48", - "Family", - [[ - "1418", - "1422" - ]] - ], - [ - "T49", - "Gene_or_gene_product", - [[ - "1456", - "1460" - ]] - ], - [ - "T50", - "Simple_chemical", - [[ - "1490", - "1505" - ]] - ], - [ - "T51", - "BioProcess", - [[ - "1612", - "1625" - ]] - ], - [ - "T52", - "Gene_or_gene_product", - [[ - "1637", - "1642" - ]] - ], - [ - "T53", - "Gene_or_gene_product", - [[ - "1643", - "1648" - ]] - ], - [ - "T54", - "Gene_or_gene_product", - [[ - "1758", - "1762" - ]] - ], - [ - "T55", - "TissueType", - [[ - "1775", - "1791" - ]] - ], - [ - "T56", - "Gene_or_gene_product", - [[ - "1823", - "1828" - ]] - ], - [ - "T57", - "Gene_or_gene_product", - [[ - "1853", - "1858" - ]] - ], - [ - "T58", - "Gene_or_gene_product", - [[ - "1876", - "1880" - ]] - ], - [ - "T59", - "CellLine", - [[ - "1884", - "1889" - ]] - ], - [ - "T60", - "Site", - [[ - "1884", - "1889" - ]] - ], - [ - "T61", - "Gene_or_gene_product", - [[ - "1937", - "1944" - ]] - ], - [ - "T62", - "Gene_or_gene_product", - [[ - "2036", - "2040" - ]] - ], - [ - "T63", - "Gene_or_gene_product", - [[ - "2150", - "2155" - ]] - ], - [ - "T64", - "Gene_or_gene_product", - [[ - "2160", - "2165" - ]] - ], - [ - "T65", - "Gene_or_gene_product", - [[ - "2235", - "2239" - ]] - ], - [ - "T66", - "Gene_or_gene_product", - [[ - "2270", - "2277" - ]] - ] - ], - "attributes": [], - "text": "We next examined the mechanisms accounting for the increase in HER3 by MAPK pathway inhibitors in BRAF mutant thyroid cell lines.\r\nUpregulation of HER3 has been found to mediate resistance to PI3K/AKT (26) or HER2 (27) inhibitors in HER2-amplified breast cancer cell lines, which is caused in part through a FoxO3A-dependent induction of HER3 gene transcription.\r\nAs shown in Fig. 5A, PLX4032 treatment increased HER3 and HER2 mRNAs in all six BRAF-mutant thyroid cancer cell lines tested.\r\nSimilar results were found following treatment with the MEK inhibitor AZD6244 (not shown).\r\nThe effects of the MEK inhibitor on total HER2, HER3 protein and on pHER3 were dose dependent, and inversely associated with the degree of inhibition of pERK (Fig. 5B).\r\nRAF or MEK inhibitors induced luciferase activity of a HER3 promoter construct spanning ~ 1 kb upstream of the transcriptional start site in 8505C cells.\r\nSerial deletions identified a minimal HER3 promoter retaining transcriptional response to vemurafenib and AZD6244, which was located between −401 and −42 bp (Fig. 5C).\r\nThis region does not contain any predicted FoxO binding sites.\r\nMoreover, PLX4032 led to an increase in phosphorylation of FoxO1/3A between 4–10h after addition of compound (not shown), which is known to promote its dissociation from DNA, and likely discards involvement of these factors as transcriptional regulators of HER3 in response to MAPK pathway inhibition.\r\nThe minimal HER3 promoter region regulated by MAPK inhibitors overlaps with sequences previously described to be immunoprecipitated using antibodies against the ZFN217 transcription factor and CtBP1/CtBP2 corepressors (28–30).\r\nCtBPs have also been described to negatively regulate transcriptional activity of the HER3 promoter in breast carcinoma cell lines (30).\r\nSilencing of CtBP1, and to a lesser extent CtBP2, increased basal HER3 in 8505C cells, and markedly potentiated the effects of PLX4032 (Fig. 5D and 5E).\r\nKnockdown of these factors modestly increased basal and PLX4032-induced HER2 levels, which likely contributes to the remarkable increase in pHER3 we observed (Fig. 5D and 5E).\r\nFinally, CtBP1 and CtBP2 chromatin immunoprecipitation assays showed decreased binding to the HER3 promoter after treatment with PLX4032 (Fig. 5F).\r\nThese findings were confirmed in a second cell line (Supplementary Fig. S5A).", - "relations": [[ - "R1", - "Positive_regulation", - [ - [ - "Controlled", - "E6" - ], - [ - "Controller", - "T7" - ] - ] - ]], - "triggers": [ - [ - "T68", - "Amount", - [[ - "2041", - "2047" - ]] - ], - [ - "T1", - "Positive_regulation", - [[ - "2028", - "2035" - ]] - ], - [ - "T67", - "Transcription", - [[ - "348", - "361" - ]] - ], - [ - "T3", - "Positive_regulation", - [[ - "325", - "334" - ]] - ], - [ - "T5", - "Positive_regulation", - [[ - "2000", - "2009" - ]] - ], - [ - "T70", - "Phosphorylation", - [[ - "1181", - "1196" - ]] - ], - [ - "T69", - "Positive_activation", - [[ - "403", - "412" - ]] - ], - [ - "T71", - "Negative_activation", - [[ - "1910", - "1921" - ]] - ], - [ - "T72", - "Negative_activation", - [[ - "775", - "782" - ]] - ], - [ - "T73", - "Negative_activation", - [[ - "84", - "94" - ]] - ] - ], - "events": [ - [ - "E1", - "T68", - [[ - "Theme", - "T62" - ]] - ], - [ - "E2", - "T1", - [ - [ - "Controller", - "T2" - ], - [ - "Controlled", - "E1" - ] - ] - ], - [ - "E3", - "T67", - [[ - "Theme", - "T18" - ]] - ], - [ - "E4", - "T3", - [ - [ - "Controlled", - "E3" - ], - [ - "Controller", - "T4" - ] - ] - ], - [ - "E5", - "T5", - [ - [ - "Controlled", - "E2" - ], - [ - "Controller", - "T6" - ] - ] - ], - [ - "E6", - "T70", - [[ - "Theme", - "T46" - ]] - ], - [ - "E7", - "T69", - [ - [ - "Controlled", - "T24" - ], - [ - "Controller", - "T22" - ] - ] - ], - [ - "E8", - "T69", - [ - [ - "Controlled", - "T25" - ], - [ - "Controller", - "T22" - ] - ] - ], - [ - "E9", - "T71", - [ - [ - "Controlled", - "T61" - ], - [ - "Controller", - "T56" - ] - ] - ], - [ - "E10", - "T72", - [ - [ - "Controller", - "T35" - ], - [ - "Controlled", - "T36" - ] - ] - ], - [ - "E11", - "T73", - [ - [ - "Controlled", - "T10" - ], - [ - "Controller", - "T9" - ] - ] - ] - ] - }, - "syntaxData": { - "comments": [], - "entities": [ - [ - "T1", - "NN", - [[ - "1082", - "1088" - ]] - ], - [ - "T2", - "-RRB-", - [[ - "217", - "218" - ]] - ], - [ - "T3", - "DT", - [[ - "1106", - "1109" - ]] - ], - [ - "T4", - "NN", - [[ - "178", - "188" - ]] - ], - [ - "T5", - "JJ", - [[ - "1110", - "1119" - ]] - ], - [ - "T6", - "NN", - [[ - "722", - "732" - ]] - ], - [ - "T7", - ",", - [[ - "383", - "384" - ]] - ], - [ - "T8", - "VBN", - [[ - "1688", - "1692" - ]] - ], - [ - "T9", - "NNS", - [[ - "1357", - "1364" - ]] - ], - [ - "T10", - "-LRB-", - [[ - "569", - "570" - ]] - ], - [ - "T11", - "VBN", - [[ - "161", - "166" - ]] - ], - [ - "T12", - "NNS", - [[ - "1133", - "1138" - ]] - ], - [ - "T13", - "IN", - [[ - "1515", - "1519" - ]] - ], - [ - "T14", - "NN", - [[ - "1775", - "1781" - ]] - ], - [ - "T15", - "NN", - [[ - "753", - "756" - ]] - ], - [ - "T16", - "NN", - [[ - "1200", - "1208" - ]] - ], - [ - "T17", - "PRP$", - [[ - "1289", - "1292" - ]] - ], - [ - "T18", - "TO", - [[ - "1703", - "1705" - ]] - ], - [ - "T19", - "JJR", - [[ - "1839", - "1845" - ]] - ], - [ - "T20", - "NN", - [[ - "456", - "463" - ]] - ], - [ - "T21", - "NN", - [[ - "1398", - "1402" - ]] - ], - [ - "T22", - "CC", - [[ - "644", - "647" - ]] - ], - [ - "T23", - "DT", - [[ - "1837", - "1838" - ]] - ], - [ - "T24", - "DT", - [[ - "1444", - "1447" - ]] - ], - [ - "T25", - "VBG", - [[ - "960", - "969" - ]] - ], - [ - "T26", - "IN", - [[ - "1197", - "1199" - ]] - ], - [ - "T27", - "NN", - [[ - "1758", - "1762" - ]] - ], - [ - "T28", - "NN", - [[ - "103", - "109" - ]] - ], - [ - "T29", - "NN", - [[ - "338", - "342" - ]] - ], - [ - "T30", - "VBN", - [[ - "1557", - "1575" - ]] - ], - [ - "T31", - "NN", - [[ - "845", - "847" - ]] - ], - [ - "T32", - "VBD", - [[ - "2113", - "2121" - ]] - ], - [ - "T33", - "NN", - [[ - "551", - "560" - ]] - ], - [ - "T34", - "NNS", - [[ - "219", - "229" - ]] - ], - [ - "T35", - "VBD", - [[ - "8", - "16" - ]] - ], - [ - "T36", - "PRP", - [[ - "0", - "2" - ]] - ], - [ - "T37", - "TO", - [[ - "1834", - "1836" - ]] - ], - [ - "T38", - "NN", - [[ - "1637", - "1642" - ]] - ], - [ - "T39", - ".", - [[ - "2287", - "2288" - ]] - ], - [ - "T40", - "NNS", - [[ - "2296", - "2304" - ]] - ], - [ - "T41", - "NN", - [[ - "760", - "763" - ]] - ], - [ - "T42", - "NN", - [[ - "561", - "568" - ]] - ], - [ - "T43", - "TO", - [[ - "995", - "997" - ]] - ], - [ - "T44", - "-LRB-", - [[ - "1803", - "1804" - ]] - ], - [ - "T45", - "NN", - [[ - "2166", - "2175" - ]] - ], - [ - "T46", - "NN", - [[ - "1431", - "1441" - ]] - ], - [ - "T47", - "IN", - [[ - "1820", - "1822" - ]] - ], - [ - "T48", - "NN", - [[ - "471", - "475" - ]] - ], - [ - "T49", - "NN", - [[ - "118", - "122" - ]] - ], - [ - "T50", - ",", - [[ - "1021", - "1022" - ]] - ], - [ - "T51", - "VB", - [[ - "1098", - "1105" - ]] - ], - [ - "T52", - "CC", - [[ - "757", - "759" - ]] - ], - [ - "T53", - "NN", - [[ - "841", - "842" - ]] - ], - [ - "T54", - ".", - [[ - "361", - "362" - ]] - ], - [ - "T55", - "DT", - [[ - "583", - "586" - ]] - ], - [ - "T56", - "NNS", - [[ - "267", - "272" - ]] - ], - [ - "T57", - "IN", - [[ - "1395", - "1397" - ]] - ], - [ - "T58", - ",", - [[ - "272", - "273" - ]] - ], - [ - "T59", - "NN", - [[ - "631", - "635" - ]] - ], - [ - "T60", - "-RRB-", - [[ - "1668", - "1669" - ]] - ], - [ - "T61", - "IN", - [[ - "1974", - "1976" - ]] - ], - [ - "T62", - "JJ", - [[ - "667", - "676" - ]] - ], - [ - "T63", - "VBG", - [[ - "518", - "527" - ]] - ], - [ - "T64", - "DT", - [[ - "2231", - "2234" - ]] - ], - [ - "T65", - "NN", - [[ - "1423", - "1430" - ]] - ], - [ - "T66", - "JJ", - [[ - "938", - "945" - ]] - ], - [ - "T67", - "JJ", - [[ - "315", - "324" - ]] - ], - [ - "T68", - "IN", - [[ - "2265", - "2269" - ]] - ], - [ - "T69", - "IN", - [[ - "298", - "305" - ]] - ], - [ - "T70", - "CD", - [[ - "1804", - "1806" - ]] - ], - [ - "T71", - "NN", - [[ - "63", - "67" - ]] - ], - [ - "T72", - "JJ", - [[ - "864", - "879" - ]] - ], - [ - "T73", - "NN", - [[ - "1120", - "1124" - ]] - ], - [ - "T74", - "RB", - [[ - "1901", - "1909" - ]] - ], - [ - "T75", - "VBN", - [[ - "1255", - "1260" - ]] - ], - [ - "T76", - "NN", - [[ - "2036", - "2040" - ]] - ], - [ - "T77", - "IN", - [[ - "1593", - "1600" - ]] - ], - [ - "T78", - "JJ", - [[ - "619", - "624" - ]] - ], - [ - "T79", - "NN", - [[ - "1626", - "1632" - ]] - ], - [ - "T80", - "DT", - [[ - "2077", - "2080" - ]] - ], - [ - "T81", - "IN", - [[ - "2320", - "2322" - ]] - ], - [ - "T82", - "CC", - [[ - "418", - "421" - ]] - ], - [ - "T83", - "NN", - [[ - "1062", - "1064" - ]] - ], - [ - "T84", - "RB", - [[ - "2141", - "2148" - ]] - ], - [ - "T85", - ".", - [[ - "2366", - "2367" - ]] - ], - [ - "T86", - "NNS", - [[ - "123", - "128" - ]] - ], - [ - "T87", - "TO", - [[ - "1415", - "1417" - ]] - ], - [ - "T88", - "VBD", - [[ - "2000", - "2009" - ]] - ], - [ - "T89", - "NN", - [[ - "110", - "117" - ]] - ], - [ - "T90", - "NN", - [[ - "1937", - "1944" - ]] - ], - [ - "T91", - "VBD", - [[ - "238", - "247" - ]] - ], - [ - "T92", - "IN", - [[ - "2249", - "2254" - ]] - ], - [ - "T93", - "IN", - [[ - "60", - "62" - ]] - ], - [ - "T94", - "NN", - [[ - "951", - "959" - ]] - ], - [ - "T95", - "IN", - [[ - "2101", - "2103" - ]] - ], - [ - "T96", - "NN", - [[ - "822", - "831" - ]] - ], - [ - "T97", - "RB", - [[ - "1251", - "1254" - ]] - ], - [ - "T98", - "VBG", - [[ - "1125", - "1132" - ]] - ], - [ - "T99", - "VB", - [[ - "1281", - "1288" - ]] - ], - [ - "T100", - "IN", - [[ - "335", - "337" - ]] - ], - [ - "T101", - "NNS", - [[ - "499", - "506" - ]] - ], - [ - "T102", - "JJ", - [[ - "1448", - "1455" - ]] - ], - [ - "T103", - "NNS", - [[ - "1582", - "1592" - ]] - ], - [ - "T104", - "-RRB-", - [[ - "1806", - "1807" - ]] - ], - [ - "T105", - "IN", - [[ - "1306", - "1310" - ]] - ], - [ - "T106", - ",", - [[ - "2148", - "2149" - ]] - ], - [ - "T107", - "NNS", - [[ - "915", - "924" - ]] - ], - [ - "T108", - "NNS", - [[ - "587", - "594" - ]] - ], - [ - "T109", - "NN", - [[ - "808", - "812" - ]] - ], - [ - "T110", - "DT", - [[ - "2290", - "2295" - ]] - ], - [ - "T111", - "NN", - [[ - "2150", - "2155" - ]] - ], - [ - "T112", - "CC", - [[ - "1830", - "1833" - ]] - ], - [ - "T113", - "CD", - [[ - "1663", - "1668" - ]] - ], - [ - "T114", - "-LRB-", - [[ - "214", - "215" - ]] - ], - [ - "T115", - "IN", - [[ - "1881", - "1883" - ]] - ], - [ - "T116", - "VBD", - [[ - "925", - "935" - ]] - ], - [ - "T117", - "VBN", - [[ - "574", - "579" - ]] - ], - [ - "T118", - ",", - [[ - "1149", - "1150" - ]] - ], - [ - "T119", - "DT", - [[ - "47", - "50" - ]] - ], - [ - "T120", - "IN", - [[ - "364", - "366" - ]] - ], - [ - "T121", - "IN", - [[ - "433", - "435" - ]] - ], - [ - "T122", - "DT", - [[ - "17", - "20" - ]] - ], - [ - "T123", - "NN", - [[ - "986", - "994" - ]] - ], - [ - "T124", - "NN", - [[ - "602", - "605" - ]] - ], - [ - "T125", - "JJ", - [[ - "491", - "498" - ]] - ], - [ - "T126", - "NNS", - [[ - "1327", - "1335" - ]] - ], - [ - "T127", - "NN", - [[ - "736", - "740" - ]] - ], - [ - "T128", - "NN", - [[ - "880", - "885" - ]] - ], - [ - "T129", - "IN", - [[ - "1209", - "1216" - ]] - ], - [ - "T130", - "DT", - [[ - "1977", - "1982" - ]] - ], - [ - "T131", - "RB", - [[ - "1141", - "1149" - ]] - ], - [ - "T132", - "JJ", - [[ - "2081", - "2091" - ]] - ], - [ - "T133", - "NNS", - [[ - "84", - "94" - ]] - ], - [ - "T134", - "JJ", - [[ - "2325", - "2331" - ]] - ], - [ - "T135", - "-LRB-", - [[ - "1250", - "1251" - ]] - ], - [ - "T136", - "IN", - [[ - "857", - "859" - ]] - ], - [ - "T137", - "TO", - [[ - "2228", - "2230" - ]] - ], - [ - "T138", - "NN", - [[ - "813", - "821" - ]] - ], - [ - "T139", - "IN", - [[ - "1751", - "1753" - ]] - ], - [ - "T140", - "VBN", - [[ - "1541", - "1550" - ]] - ], - [ - "T141", - "DT", - [[ - "306", - "307" - ]] - ], - [ - "T142", - "TO", - [[ - "167", - "169" - ]] - ], - [ - "T143", - "CC", - [[ - "196", - "197" - ]] - ], - [ - "T144", - "VBG", - [[ - "32", - "42" - ]] - ], - [ - "T145", - "VBP", - [[ - "1678", - "1682" - ]] - ], - [ - "T146", - "VBN", - [[ - "2210", - "2219" - ]] - ], - [ - "T147", - "IN", - [[ - "538", - "542" - ]] - ], - [ - "T148", - ".", - [[ - "1074", - "1075" - ]] - ], - [ - "T149", - "NN", - [[ - "946", - "950" - ]] - ], - [ - "T150", - "NNS", - [[ - "1797", - "1802" - ]] - ], - [ - "T151", - "VBD", - [[ - "403", - "412" - ]] - ], - [ - "T152", - "CD", - [[ - "215", - "217" - ]] - ], - [ - "T153", - "IN", - [[ - "1223", - "1228" - ]] - ], - [ - "T154", - "NNS", - [[ - "1890", - "1895" - ]] - ], - [ - "T155", - "JJ", - [[ - "970", - "985" - ]] - ], - [ - "T156", - ",", - [[ - "1858", - "1859" - ]] - ], - [ - "T157", - "NN", - [[ - "197", - "200" - ]] - ], - [ - "T158", - "NN", - [[ - "343", - "347" - ]] - ], - [ - "T159", - "VBD", - [[ - "2305", - "2309" - ]] - ], - [ - "T160", - "VBD", - [[ - "2028", - "2035" - ]] - ], - [ - "T161", - ",", - [[ - "1828", - "1829" - ]] - ], - [ - "T162", - "IN", - [[ - "144", - "146" - ]] - ], - [ - "T163", - "DT", - [[ - "936", - "937" - ]] - ], - [ - "T164", - "WDT", - [[ - "1023", - "1028" - ]] - ], - [ - "T165", - "VBN", - [[ - "2310", - "2319" - ]] - ], - [ - "T166", - "NN", - [[ - "998", - "1009" - ]] - ], - [ - "T167", - "NNS", - [[ - "1926", - "1933" - ]] - ], - [ - "T168", - "NN", - [[ - "528", - "537" - ]] - ], - [ - "T169", - "WDT", - [[ - "274", - "279" - ]] - ], - [ - "T170", - "NN", - [[ - "2235", - "2239" - ]] - ], - [ - "T171", - "IN", - [[ - "95", - "97" - ]] - ], - [ - "T172", - "TO", - [[ - "1278", - "1280" - ]] - ], - [ - "T173", - "RB", - [[ - "1094", - "1097" - ]] - ], - [ - "T174", - "NN", - [[ - "192", - "196" - ]] - ], - [ - "T175", - ".", - [[ - "750", - "751" - ]] - ], - [ - "T176", - "NNS", - [[ - "1649", - "1661" - ]] - ], - [ - "T177", - "IN", - [[ - "616", - "618" - ]] - ], - [ - "T178", - "VBD", - [[ - "1159", - "1162" - ]] - ], - [ - "T179", - "VBZ", - [[ - "1269", - "1271" - ]] - ], - [ - "T180", - "NN", - [[ - "1014", - "1021" - ]] - ], - [ - "T181", - "RB", - [[ - "682", - "691" - ]] - ], - [ - "T182", - "NN", - [[ - "636", - "643" - ]] - ], - [ - "T183", - "VB", - [[ - "1717", - "1725" - ]] - ], - [ - "T184", - "NNS", - [[ - "1495", - "1505" - ]] - ], - [ - "T185", - "TO", - [[ - "189", - "191" - ]] - ], - [ - "T186", - "RB", - [[ - "570", - "573" - ]] - ], - [ - "T187", - "NN", - [[ - "2220", - "2227" - ]] - ], - [ - "T188", - "IN", - [[ - "648", - "650" - ]] - ], - [ - "T189", - "NN", - [[ - "248", - "254" - ]] - ], - [ - "T190", - "NN", - [[ - "1846", - "1852" - ]] - ], - [ - "T191", - "VBN", - [[ - "1272", - "1277" - ]] - ], - [ - "T192", - "CD", - [[ - "440", - "443" - ]] - ], - [ - "T193", - "DT", - [[ - "2323", - "2324" - ]] - ], - [ - "T194", - "NN", - [[ - "606", - "615" - ]] - ], - [ - "T195", - "IN", - [[ - "1365", - "1367" - ]] - ], - [ - "T196", - "VBD", - [[ - "1029", - "1032" - ]] - ], - [ - "T197", - "VBN", - [[ - "156", - "160" - ]] - ], - [ - "T198", - "VBZ", - [[ - "280", - "282" - ]] - ], - [ - "T199", - "TO", - [[ - "2074", - "2076" - ]] - ], - [ - "T200", - "NN", - [[ - "385", - "392" - ]] - ], - [ - "T201", - "RB", - [[ - "1683", - "1687" - ]] - ], - [ - "T202", - "NN", - [[ - "1151", - "1158" - ]] - ], - [ - "T203", - "NN", - [[ - "1763", - "1771" - ]] - ], - [ - "T204", - "NN", - [[ - "51", - "59" - ]] - ], - [ - "T205", - "-RRB-", - [[ - "1260", - "1261" - ]] - ], - [ - "T206", - ",", - [[ - "676", - "677" - ]] - ], - [ - "T207", - "VB", - [[ - "1554", - "1556" - ]] - ], - [ - "T208", - "NN", - [[ - "2270", - "2277" - ]] - ], - [ - "T209", - "NN", - [[ - "2337", - "2341" - ]] - ], - [ - "T210", - "IN", - [[ - "1238", - "1240" - ]] - ], - [ - "T211", - "NN", - [[ - "2020", - "2027" - ]] - ], - [ - "T212", - "CC", - [[ - "2016", - "2019" - ]] - ], - [ - "T213", - "NN", - [[ - "1823", - "1828" - ]] - ], - [ - "T214", - "DT", - [[ - "1922", - "1925" - ]] - ], - [ - "T215", - "NN", - [[ - "1181", - "1196" - ]] - ], - [ - "T216", - ",", - [[ - "629", - "630" - ]] - ], - [ - "T217", - "JJ", - [[ - "1368", - "1383" - ]] - ], - [ - "T218", - "NNS", - [[ - "21", - "31" - ]] - ], - [ - "T219", - "VBZ", - [[ - "2062", - "2073" - ]] - ], - [ - "T220", - "NN", - [[ - "262", - "266" - ]] - ], - [ - "T221", - "NN", - [[ - "413", - "417" - ]] - ], - [ - "T222", - "NNS", - [[ - "2041", - "2047" - ]] - ], - [ - "T223", - "NN", - [[ - "2160", - "2165" - ]] - ], - [ - "T224", - "NNS", - [[ - "1983", - "1990" - ]] - ], - [ - "T225", - "NN", - [[ - "1782", - "1791" - ]] - ], - [ - "T226", - "NN", - [[ - "1406", - "1414" - ]] - ], - [ - "T227", - "IN", - [[ - "803", - "805" - ]] - ], - [ - "T228", - "WDT", - [[ - "2049", - "2054" - ]] - ], - [ - "T229", - "VBD", - [[ - "775", - "782" - ]] - ], - [ - "T230", - "IN", - [[ - "733", - "735" - ]] - ], - [ - "T231", - "VBG", - [[ - "832", - "840" - ]] - ], - [ - "T232", - "PRP", - [[ - "2110", - "2112" - ]] - ], - [ - "T233", - ",", - [[ - "1895", - "1896" - ]] - ], - [ - "T234", - "NN", - [[ - "2332", - "2336" - ]] - ], - [ - "T235", - "NN", - [[ - "1490", - "1494" - ]] - ], - [ - "T236", - ".", - [[ - "1961", - "1962" - ]] - ], - [ - "T237", - "NN", - [[ - "1241", - "1249" - ]] - ], - [ - "T238", - "IN", - [[ - "1772", - "1774" - ]] - ], - [ - "T239", - "VBD", - [[ - "507", - "511" - ]] - ], - [ - "T240", - "RB", - [[ - "848", - "856" - ]] - ], - [ - "T241", - "RB", - [[ - "1706", - "1716" - ]] - ], - [ - "T242", - "NN", - [[ - "308", - "314" - ]] - ], - [ - "T243", - "CC", - [[ - "206", - "208" - ]] - ], - [ - "T244", - "NN", - [[ - "1643", - "1648" - ]] - ], - [ - "T245", - ".", - [[ - "1138", - "1139" - ]] - ], - [ - "T246", - "NN", - [[ - "1853", - "1858" - ]] - ], - [ - "T247", - "NN", - [[ - "71", - "75" - ]] - ], - [ - "T248", - "NN", - [[ - "98", - "102" - ]] - ], - [ - "T249", - "CD", - [[ - "1049", - "1053" - ]] - ], - [ - "T250", - "IN", - [[ - "1934", - "1936" - ]] - ], - [ - "T251", - "VBN", - [[ - "482", - "488" - ]] - ], - [ - "T252", - "NN", - [[ - "76", - "83" - ]] - ], - [ - "T253", - "VBZ", - [[ - "152", - "155" - ]] - ], - [ - "T254", - "VBD", - [[ - "1860", - "1869" - ]] - ], - [ - "T255", - "IN", - [[ - "373", - "375" - ]] - ], - [ - "T256", - "NN", - [[ - "783", - "793" - ]] - ], - [ - "T257", - "-RRB-", - [[ - "204", - "205" - ]] - ], - [ - "T258", - "CD", - [[ - "1058", - "1061" - ]] - ], - [ - "T259", - "NN", - [[ - "625", - "629" - ]] - ], - [ - "T260", - "DT", - [[ - "708", - "711" - ]] - ], - [ - "T261", - "DT", - [[ - "436", - "439" - ]] - ], - [ - "T262", - "DT", - [[ - "1754", - "1757" - ]] - ], - [ - "T263", - "NN", - [[ - "393", - "402" - ]] - ], - [ - "T264", - "NN", - [[ - "886", - "890" - ]] - ], - [ - "T265", - "TO", - [[ - "1551", - "1553" - ]] - ], - [ - "T266", - "IN", - [[ - "595", - "597" - ]] - ], - [ - "T267", - "IN", - [[ - "1041", - "1048" - ]] - ], - [ - "T268", - "CC", - [[ - "1642", - "1643" - ]] - ], - [ - "T269", - "NN", - [[ - "381", - "383" - ]] - ], - [ - "T270", - "NN", - [[ - "1876", - "1880" - ]] - ], - [ - "T271", - "IN", - [[ - "719", - "721" - ]] - ], - [ - "T272", - "IN", - [[ - "230", - "232" - ]] - ], - [ - "T273", - "NN", - [[ - "2176", - "2195" - ]] - ], - [ - "T274", - "DT", - [[ - "543", - "546" - ]] - ], - [ - "T275", - "CD", - [[ - "202", - "204" - ]] - ], - [ - "T276", - "JJ", - [[ - "1320", - "1326" - ]] - ], - [ - "T277", - "IN", - [[ - "68", - "70" - ]] - ], - [ - "T278", - ",", - [[ - "1261", - "1262" - ]] - ], - [ - "T279", - "NN", - [[ - "1605", - "1611" - ]] - ], - [ - "T280", - "NN", - [[ - "255", - "261" - ]] - ], - [ - "T281", - "NN", - [[ - "712", - "718" - ]] - ], - [ - "T282", - ".", - [[ - "580", - "581" - ]] - ], - [ - "T283", - "NNS", - [[ - "2196", - "2202" - ]] - ], - [ - "T284", - "CC", - [[ - "1897", - "1900" - ]] - ], - [ - "T285", - "NN", - [[ - "2092", - "2100" - ]] - ], - [ - "T286", - "JJ", - [[ - "1033", - "1040" - ]] - ], - [ - "T287", - "VBG", - [[ - "1576", - "1581" - ]] - ], - [ - "T288", - "NN", - [[ - "1742", - "1750" - ]] - ], - [ - "T289", - "NN", - [[ - "1612", - "1625" - ]] - ], - [ - "T290", - "RB", - [[ - "3", - "7" - ]] - ], - [ - "T291", - ".", - [[ - "128", - "129" - ]] - ], - [ - "T292", - ",", - [[ - "2047", - "2048" - ]] - ], - [ - "T293", - "RB", - [[ - "1991", - "1999" - ]] - ], - [ - "T294", - "VBN", - [[ - "1693", - "1702" - ]] - ], - [ - "T295", - "IN", - [[ - "1487", - "1489" - ]] - ], - [ - "T296", - "NNS", - [[ - "1384", - "1394" - ]] - ], - [ - "T297", - "IN", - [[ - "1403", - "1405" - ]] - ], - [ - "T298", - "TO", - [[ - "1163", - "1165" - ]] - ], - [ - "T299", - "NN", - [[ - "651", - "656" - ]] - ], - [ - "T300", - ".", - [[ - "488", - "489" - ]] - ], - [ - "T301", - "JJ", - [[ - "2010", - "2015" - ]] - ], - [ - "T302", - "NN", - [[ - "325", - "334" - ]] - ], - [ - "T303", - "NN", - [[ - "233", - "237" - ]] - ], - [ - "T304", - "NN", - [[ - "1792", - "1796" - ]] - ], - [ - "T305", - "NNS", - [[ - "764", - "774" - ]] - ], - [ - "T306", - "NN", - [[ - "209", - "213" - ]] - ], - [ - "T307", - "WDT", - [[ - "1263", - "1268" - ]] - ], - [ - "T308", - "NN", - [[ - "2104", - "2109" - ]] - ], - [ - "T309", - "-LRB-", - [[ - "201", - "202" - ]] - ], - [ - "T310", - "VBD", - [[ - "657", - "661" - ]] - ], - [ - "T311", - "NN", - [[ - "422", - "426" - ]] - ], - [ - "T312", - ".", - [[ - "905", - "906" - ]] - ], - [ - "T313", - "DT", - [[ - "806", - "807" - ]] - ], - [ - "T314", - "JJ", - [[ - "444", - "455" - ]] - ], - [ - "T315", - "VBN", - [[ - "512", - "517" - ]] - ], - [ - "T316", - "CC", - [[ - "1054", - "1057" - ]] - ], - [ - "T317", - ",", - [[ - "1314", - "1315" - ]] - ], - [ - "T318", - "CC", - [[ - "1010", - "1013" - ]] - ], - [ - "T319", - "IN", - [[ - "891", - "893" - ]] - ], - [ - "T320", - "VB", - [[ - "170", - "177" - ]] - ], - [ - "T321", - "CC", - [[ - "2156", - "2159" - ]] - ], - [ - "T322", - "CC", - [[ - "1316", - "1319" - ]] - ], - [ - "T323", - "NN", - [[ - "376", - "380" - ]] - ], - [ - "T324", - "DT", - [[ - "860", - "863" - ]] - ], - [ - "T325", - "NNS", - [[ - "1672", - "1677" - ]] - ], - [ - "T326", - "IN", - [[ - "1348", - "1350" - ]] - ], - [ - "T327", - "IN", - [[ - "703", - "707" - ]] - ], - [ - "T328", - "NN", - [[ - "1418", - "1422" - ]] - ], - [ - "T329", - "NNS", - [[ - "476", - "481" - ]] - ], - [ - "T330", - "NN", - [[ - "1884", - "1889" - ]] - ], - [ - "T331", - "NN", - [[ - "147", - "151" - ]] - ], - [ - "T332", - "NN", - [[ - "894", - "899" - ]] - ], - [ - "T333", - ".", - [[ - "1807", - "1808" - ]] - ], - [ - "T334", - "-RRB-", - [[ - "579", - "580" - ]] - ], - [ - "T335", - "VBN", - [[ - "367", - "372" - ]] - ], - [ - "T336", - "JJ", - [[ - "1217", - "1222" - ]] - ], - [ - "T337", - "CC", - [[ - "1633", - "1636" - ]] - ], - [ - "T338", - "DT", - [[ - "598", - "601" - ]] - ], - [ - "T339", - "VBZ", - [[ - "1506", - "1514" - ]] - ], - [ - "T340", - "IN", - [[ - "1178", - "1180" - ]] - ], - [ - "T341", - "IN", - [[ - "290", - "292" - ]] - ], - [ - "T342", - "JJ", - [[ - "908", - "914" - ]] - ], - [ - "T343", - ".", - [[ - "2138", - "2139" - ]] - ], - [ - "T344", - "VBD", - [[ - "1910", - "1921" - ]] - ], - [ - "T345", - "DT", - [[ - "1351", - "1356" - ]] - ], - [ - "T346", - "DT", - [[ - "1166", - "1168" - ]] - ], - [ - "T347", - ".", - [[ - "1441", - "1442" - ]] - ], - [ - "T348", - "NN", - [[ - "1461", - "1469" - ]] - ], - [ - "T349", - "NN", - [[ - "1470", - "1476" - ]] - ], - [ - "T350", - "NN", - [[ - "348", - "361" - ]] - ], - [ - "T351", - "NN", - [[ - "293", - "297" - ]] - ], - [ - "T352", - "NN", - [[ - "2240", - "2248" - ]] - ], - [ - "T353", - "JJ", - [[ - "1870", - "1875" - ]] - ], - [ - "T354", - "CD", - [[ - "843", - "844" - ]] - ], - [ - "T355", - "VBZ", - [[ - "1089", - "1093" - ]] - ], - [ - "T356", - "JJ", - [[ - "1726", - "1741" - ]] - ], - [ - "T357", - "NN", - [[ - "1311", - "1314" - ]] - ], - [ - "T358", - "RB", - [[ - "1530", - "1540" - ]] - ], - [ - "T359", - "NN", - [[ - "1810", - "1819" - ]] - ], - [ - "T360", - "VBN", - [[ - "1477", - "1486" - ]] - ], - [ - "T361", - "DT", - [[ - "1601", - "1604" - ]] - ], - [ - "T362", - "NN", - [[ - "1169", - "1177" - ]] - ], - [ - "T363", - "VBD", - [[ - "2203", - "2209" - ]] - ], - [ - "T364", - "NN", - [[ - "131", - "143" - ]] - ], - [ - "T365", - "NN", - [[ - "547", - "550" - ]] - ], - [ - "T366", - "NNP", - [[ - "1964", - "1973" - ]] - ], - [ - "T367", - "NN", - [[ - "1293", - "1305" - ]] - ], - [ - "T368", - "NN", - [[ - "2255", - "2264" - ]] - ], - [ - "T369", - "NN", - [[ - "1336", - "1347" - ]] - ], - [ - "T370", - "CC", - [[ - "678", - "681" - ]] - ], - [ - "T371", - "NN", - [[ - "794", - "802" - ]] - ], - [ - "T372", - "NN", - [[ - "662", - "666" - ]] - ], - [ - "T373", - "RB", - [[ - "2055", - "2061" - ]] - ], - [ - "T374", - "IN", - [[ - "43", - "46" - ]] - ], - [ - "T375", - ".", - [[ - "1669", - "1670" - ]] - ], - [ - "T376", - "NN", - [[ - "1456", - "1460" - ]] - ], - [ - "T377", - "NNS", - [[ - "900", - "905" - ]] - ], - [ - "T378", - "NNS", - [[ - "427", - "432" - ]] - ], - [ - "T379", - "DT", - [[ - "1077", - "1081" - ]] - ], - [ - "T380", - "NN", - [[ - "464", - "470" - ]] - ], - [ - "T381", - "NN", - [[ - "1229", - "1237" - ]] - ], - [ - "T382", - "VBN", - [[ - "283", - "289" - ]] - ], - [ - "T383", - "-LRB-", - [[ - "1662", - "1663" - ]] - ], - [ - "T384", - "VBN", - [[ - "692", - "702" - ]] - ], - [ - "T385", - "NNS", - [[ - "1520", - "1529" - ]] - ] - ], - "attributes": [], - "text": "We next examined the mechanisms accounting for the increase in HER3 by MAPK pathway inhibitors in BRAF mutant thyroid cell lines.\r\nUpregulation of HER3 has been found to mediate resistance to PI3K/AKT (26) or HER2 (27) inhibitors in HER2-amplified breast cancer cell lines, which is caused in part through a FoxO3A-dependent induction of HER3 gene transcription.\r\nAs shown in Fig. 5A, PLX4032 treatment increased HER3 and HER2 mRNAs in all six BRAF-mutant thyroid cancer cell lines tested.\r\nSimilar results were found following treatment with the MEK inhibitor AZD6244 (not shown).\r\nThe effects of the MEK inhibitor on total HER2, HER3 protein and on pHER3 were dose dependent, and inversely associated with the degree of inhibition of pERK (Fig. 5B).\r\nRAF or MEK inhibitors induced luciferase activity of a HER3 promoter construct spanning ~ 1 kb upstream of the transcriptional start site in 8505C cells.\r\nSerial deletions identified a minimal HER3 promoter retaining transcriptional response to vemurafenib and AZD6244, which was located between −401 and −42 bp (Fig. 5C).\r\nThis region does not contain any predicted FoxO binding sites.\r\nMoreover, PLX4032 led to an increase in phosphorylation of FoxO1/3A between 4–10h after addition of compound (not shown), which is known to promote its dissociation from DNA, and likely discards involvement of these factors as transcriptional regulators of HER3 in response to MAPK pathway inhibition.\r\nThe minimal HER3 promoter region regulated by MAPK inhibitors overlaps with sequences previously described to be immunoprecipitated using antibodies against the ZFN217 transcription factor and CtBP1/CtBP2 corepressors (28–30).\r\nCtBPs have also been described to negatively regulate transcriptional activity of the HER3 promoter in breast carcinoma cell lines (30).\r\nSilencing of CtBP1, and to a lesser extent CtBP2, increased basal HER3 in 8505C cells, and markedly potentiated the effects of PLX4032 (Fig. 5D and 5E).\r\nKnockdown of these factors modestly increased basal and PLX4032-induced HER2 levels, which likely contributes to the remarkable increase in pHER3 we observed (Fig. 5D and 5E).\r\nFinally, CtBP1 and CtBP2 chromatin immunoprecipitation assays showed decreased binding to the HER3 promoter after treatment with PLX4032 (Fig. 5F).\r\nThese findings were confirmed in a second cell line (Supplementary Fig. S5A).", - "relations": [ - [ - "R1", - "nsubj", - [ - [ - "governor", - "T35" - ], - [ - "dependent", - "T36" - ] - ] - ], - [ - "R2", - "advmod", - [ - [ - "governor", - "T35" - ], - [ - "dependent", - "T290" - ] - ] - ], - [ - "R3", - "dobj", - [ - [ - "governor", - "T35" - ], - [ - "dependent", - "T218" - ] - ] - ], - [ - "R4", - "det", - [ - [ - "governor", - "T218" - ], - [ - "dependent", - "T122" - ] - ] - ], - [ - "R5", - "vmod", - [ - [ - "governor", - "T218" - ], - [ - "dependent", - "T144" - ] - ] - ], - [ - "R6", - "prep_for", - [ - [ - "governor", - "T144" - ], - [ - "dependent", - "T204" - ] - ] - ], - [ - "R7", - "agent", - [ - [ - "governor", - "T144" - ], - [ - "dependent", - "T133" - ] - ] - ], - [ - "R8", - "det", - [ - [ - "governor", - "T204" - ], - [ - "dependent", - "T119" - ] - ] - ], - [ - "R9", - "prep_in", - [ - [ - "governor", - "T204" - ], - [ - "dependent", - "T71" - ] - ] - ], - [ - "R10", - "nn", - [ - [ - "governor", - "T133" - ], - [ - "dependent", - "T247" - ] - ] - ], - [ - "R11", - "nn", - [ - [ - "governor", - "T133" - ], - [ - "dependent", - "T252" - ] - ] - ], - [ - "R12", - "prep_in", - [ - [ - "governor", - "T133" - ], - [ - "dependent", - "T86" - ] - ] - ], - [ - "R13", - "nn", - [ - [ - "governor", - "T86" - ], - [ - "dependent", - "T248" - ] - ] - ], - [ - "R14", - "nn", - [ - [ - "governor", - "T86" - ], - [ - "dependent", - "T28" - ] - ] - ], - [ - "R15", - "nn", - [ - [ - "governor", - "T86" - ], - [ - "dependent", - "T89" - ] - ] - ], - [ - "R16", - "nn", - [ - [ - "governor", - "T86" - ], - [ - "dependent", - "T49" - ] - ] - ], - [ - "R17", - "prep_of", - [ - [ - "governor", - "T364" - ], - [ - "dependent", - "T331" - ] - ] - ], - [ - "R18", - "nsubjpass", - [ - [ - "governor", - "T11" - ], - [ - "dependent", - "T364" - ] - ] - ], - [ - "R19", - "aux", - [ - [ - "governor", - "T11" - ], - [ - "dependent", - "T253" - ] - ] - ], - [ - "R20", - "auxpass", - [ - [ - "governor", - "T11" - ], - [ - "dependent", - "T197" - ] - ] - ], - [ - "R21", - "xcomp", - [ - [ - "governor", - "T11" - ], - [ - "dependent", - "T320" - ] - ] - ], - [ - "R22", - "ccomp", - [ - [ - "governor", - "T11" - ], - [ - "dependent", - "T91" - ] - ] - ], - [ - "R23", - "aux", - [ - [ - "governor", - "T320" - ], - [ - "dependent", - "T142" - ] - ] - ], - [ - "R24", - "dobj", - [ - [ - "governor", - "T320" - ], - [ - "dependent", - "T4" - ] - ] - ], - [ - "R25", - "prep_to", - [ - [ - "governor", - "T320" - ], - [ - "dependent", - "T174" - ] - ] - ], - [ - "R26", - "prep_to", - [ - [ - "governor", - "T320" - ], - [ - "dependent", - "T157" - ] - ] - ], - [ - "R27", - "prep_to", - [ - [ - "governor", - "T320" - ], - [ - "dependent", - "T306" - ] - ] - ], - [ - "R28", - "conj_and", - [ - [ - "governor", - "T174" - ], - [ - "dependent", - "T157" - ] - ] - ], - [ - "R29", - "appos", - [ - [ - "governor", - "T174" - ], - [ - "dependent", - "T275" - ] - ] - ], - [ - "R30", - "conj_or", - [ - [ - "governor", - "T174" - ], - [ - "dependent", - "T306" - ] - ] - ], - [ - "R31", - "appos", - [ - [ - "governor", - "T174" - ], - [ - "dependent", - "T152" - ] - ] - ], - [ - "R32", - "prep_in", - [ - [ - "governor", - "T34" - ], - [ - "dependent", - "T303" - ] - ] - ], - [ - "R33", - "nsubj", - [ - [ - "governor", - "T91" - ], - [ - "dependent", - "T34" - ] - ] - ], - [ - "R34", - "dobj", - [ - [ - "governor", - "T91" - ], - [ - "dependent", - "T56" - ] - ] - ], - [ - "R35", - "nn", - [ - [ - "governor", - "T56" - ], - [ - "dependent", - "T189" - ] - ] - ], - [ - "R36", - "nn", - [ - [ - "governor", - "T56" - ], - [ - "dependent", - "T280" - ] - ] - ], - [ - "R37", - "nn", - [ - [ - "governor", - "T56" - ], - [ - "dependent", - "T220" - ] - ] - ], - [ - "R38", - "rcmod", - [ - [ - "governor", - "T56" - ], - [ - "dependent", - "T382" - ] - ] - ], - [ - "R39", - "nsubjpass", - [ - [ - "governor", - "T382" - ], - [ - "dependent", - "T169" - ] - ] - ], - [ - "R40", - "auxpass", - [ - [ - "governor", - "T382" - ], - [ - "dependent", - "T198" - ] - ] - ], - [ - "R41", - "prep_in", - [ - [ - "governor", - "T382" - ], - [ - "dependent", - "T351" - ] - ] - ], - [ - "R42", - "prep_through", - [ - [ - "governor", - "T382" - ], - [ - "dependent", - "T302" - ] - ] - ], - [ - "R43", - "det", - [ - [ - "governor", - "T302" - ], - [ - "dependent", - "T141" - ] - ] - ], - [ - "R44", - "nn", - [ - [ - "governor", - "T302" - ], - [ - "dependent", - "T242" - ] - ] - ], - [ - "R45", - "amod", - [ - [ - "governor", - "T302" - ], - [ - "dependent", - "T67" - ] - ] - ], - [ - "R46", - "prep_of", - [ - [ - "governor", - "T302" - ], - [ - "dependent", - "T350" - ] - ] - ], - [ - "R47", - "nn", - [ - [ - "governor", - "T350" - ], - [ - "dependent", - "T29" - ] - ] - ], - [ - "R48", - "nn", - [ - [ - "governor", - "T350" - ], - [ - "dependent", - "T158" - ] - ] - ], - [ - "R49", - "mark", - [ - [ - "governor", - "T335" - ], - [ - "dependent", - "T120" - ] - ] - ], - [ - "R50", - "prep_in", - [ - [ - "governor", - "T335" - ], - [ - "dependent", - "T269" - ] - ] - ], - [ - "R51", - "nn", - [ - [ - "governor", - "T269" - ], - [ - "dependent", - "T323" - ] - ] - ], - [ - "R52", - "nn", - [ - [ - "governor", - "T263" - ], - [ - "dependent", - "T200" - ] - ] - ], - [ - "R53", - "advcl", - [ - [ - "governor", - "T151" - ], - [ - "dependent", - "T335" - ] - ] - ], - [ - "R54", - "nsubj", - [ - [ - "governor", - "T151" - ], - [ - "dependent", - "T263" - ] - ] - ], - [ - "R55", - "dobj", - [ - [ - "governor", - "T151" - ], - [ - "dependent", - "T378" - ] - ] - ], - [ - "R56", - "prep_in", - [ - [ - "governor", - "T151" - ], - [ - "dependent", - "T329" - ] - ] - ], - [ - "R57", - "conj_and", - [ - [ - "governor", - "T221" - ], - [ - "dependent", - "T311" - ] - ] - ], - [ - "R58", - "nn", - [ - [ - "governor", - "T378" - ], - [ - "dependent", - "T221" - ] - ] - ], - [ - "R59", - "nn", - [ - [ - "governor", - "T378" - ], - [ - "dependent", - "T311" - ] - ] - ], - [ - "R60", - "det", - [ - [ - "governor", - "T329" - ], - [ - "dependent", - "T261" - ] - ] - ], - [ - "R61", - "num", - [ - [ - "governor", - "T329" - ], - [ - "dependent", - "T192" - ] - ] - ], - [ - "R62", - "amod", - [ - [ - "governor", - "T329" - ], - [ - "dependent", - "T314" - ] - ] - ], - [ - "R63", - "nn", - [ - [ - "governor", - "T329" - ], - [ - "dependent", - "T20" - ] - ] - ], - [ - "R64", - "nn", - [ - [ - "governor", - "T329" - ], - [ - "dependent", - "T380" - ] - ] - ], - [ - "R65", - "nn", - [ - [ - "governor", - "T329" - ], - [ - "dependent", - "T48" - ] - ] - ], - [ - "R66", - "vmod", - [ - [ - "governor", - "T329" - ], - [ - "dependent", - "T251" - ] - ] - ], - [ - "R67", - "amod", - [ - [ - "governor", - "T101" - ], - [ - "dependent", - "T125" - ] - ] - ], - [ - "R68", - "nsubjpass", - [ - [ - "governor", - "T315" - ], - [ - "dependent", - "T101" - ] - ] - ], - [ - "R69", - "auxpass", - [ - [ - "governor", - "T315" - ], - [ - "dependent", - "T239" - ] - ] - ], - [ - "R70", - "prep_following", - [ - [ - "governor", - "T315" - ], - [ - "dependent", - "T168" - ] - ] - ], - [ - "R71", - "prep_with", - [ - [ - "governor", - "T168" - ], - [ - "dependent", - "T42" - ] - ] - ], - [ - "R72", - "det", - [ - [ - "governor", - "T42" - ], - [ - "dependent", - "T274" - ] - ] - ], - [ - "R73", - "nn", - [ - [ - "governor", - "T42" - ], - [ - "dependent", - "T365" - ] - ] - ], - [ - "R74", - "nn", - [ - [ - "governor", - "T42" - ], - [ - "dependent", - "T33" - ] - ] - ], - [ - "R75", - "dep", - [ - [ - "governor", - "T42" - ], - [ - "dependent", - "T117" - ] - ] - ], - [ - "R76", - "neg", - [ - [ - "governor", - "T117" - ], - [ - "dependent", - "T186" - ] - ] - ], - [ - "R77", - "det", - [ - [ - "governor", - "T108" - ], - [ - "dependent", - "T55" - ] - ] - ], - [ - "R78", - "prep_of", - [ - [ - "governor", - "T108" - ], - [ - "dependent", - "T194" - ] - ] - ], - [ - "R79", - "det", - [ - [ - "governor", - "T194" - ], - [ - "dependent", - "T338" - ] - ] - ], - [ - "R80", - "nn", - [ - [ - "governor", - "T194" - ], - [ - "dependent", - "T124" - ] - ] - ], - [ - "R81", - "prep_on", - [ - [ - "governor", - "T194" - ], - [ - "dependent", - "T259" - ] - ] - ], - [ - "R82", - "prep_on", - [ - [ - "governor", - "T194" - ], - [ - "dependent", - "T299" - ] - ] - ], - [ - "R83", - "amod", - [ - [ - "governor", - "T259" - ], - [ - "dependent", - "T78" - ] - ] - ], - [ - "R84", - "appos", - [ - [ - "governor", - "T259" - ], - [ - "dependent", - "T182" - ] - ] - ], - [ - "R85", - "conj_and", - [ - [ - "governor", - "T259" - ], - [ - "dependent", - "T299" - ] - ] - ], - [ - "R86", - "nn", - [ - [ - "governor", - "T182" - ], - [ - "dependent", - "T59" - ] - ] - ], - [ - "R87", - "nsubjpass", - [ - [ - "governor", - "T62" - ], - [ - "dependent", - "T108" - ] - ] - ], - [ - "R88", - "auxpass", - [ - [ - "governor", - "T62" - ], - [ - "dependent", - "T310" - ] - ] - ], - [ - "R89", - "npadvmod", - [ - [ - "governor", - "T62" - ], - [ - "dependent", - "T372" - ] - ] - ], - [ - "R90", - "conj_and", - [ - [ - "governor", - "T62" - ], - [ - "dependent", - "T384" - ] - ] - ], - [ - "R91", - "nsubjpass", - [ - [ - "governor", - "T384" - ], - [ - "dependent", - "T108" - ] - ] - ], - [ - "R92", - "advmod", - [ - [ - "governor", - "T384" - ], - [ - "dependent", - "T181" - ] - ] - ], - [ - "R93", - "prep_with", - [ - [ - "governor", - "T384" - ], - [ - "dependent", - "T281" - ] - ] - ], - [ - "R94", - "det", - [ - [ - "governor", - "T281" - ], - [ - "dependent", - "T260" - ] - ] - ], - [ - "R95", - "prep_of", - [ - [ - "governor", - "T281" - ], - [ - "dependent", - "T6" - ] - ] - ], - [ - "R96", - "prep_of", - [ - [ - "governor", - "T6" - ], - [ - "dependent", - "T127" - ] - ] - ], - [ - "R97", - "conj_or", - [ - [ - "governor", - "T15" - ], - [ - "dependent", - "T41" - ] - ] - ], - [ - "R98", - "nn", - [ - [ - "governor", - "T305" - ], - [ - "dependent", - "T15" - ] - ] - ], - [ - "R99", - "nn", - [ - [ - "governor", - "T305" - ], - [ - "dependent", - "T41" - ] - ] - ], - [ - "R100", - "nsubj", - [ - [ - "governor", - "T229" - ], - [ - "dependent", - "T305" - ] - ] - ], - [ - "R101", - "dobj", - [ - [ - "governor", - "T229" - ], - [ - "dependent", - "T371" - ] - ] - ], - [ - "R102", - "nn", - [ - [ - "governor", - "T371" - ], - [ - "dependent", - "T256" - ] - ] - ], - [ - "R103", - "prep_of", - [ - [ - "governor", - "T371" - ], - [ - "dependent", - "T96" - ] - ] - ], - [ - "R104", - "det", - [ - [ - "governor", - "T96" - ], - [ - "dependent", - "T313" - ] - ] - ], - [ - "R105", - "nn", - [ - [ - "governor", - "T96" - ], - [ - "dependent", - "T109" - ] - ] - ], - [ - "R106", - "nn", - [ - [ - "governor", - "T96" - ], - [ - "dependent", - "T138" - ] - ] - ], - [ - "R107", - "vmod", - [ - [ - "governor", - "T96" - ], - [ - "dependent", - "T231" - ] - ] - ], - [ - "R108", - "dobj", - [ - [ - "governor", - "T231" - ], - [ - "dependent", - "T53" - ] - ] - ], - [ - "R109", - "advmod", - [ - [ - "governor", - "T53" - ], - [ - "dependent", - "T240" - ] - ] - ], - [ - "R110", - "prep_of", - [ - [ - "governor", - "T53" - ], - [ - "dependent", - "T264" - ] - ] - ], - [ - "R111", - "num", - [ - [ - "governor", - "T31" - ], - [ - "dependent", - "T354" - ] - ] - ], - [ - "R112", - "npadvmod", - [ - [ - "governor", - "T240" - ], - [ - "dependent", - "T31" - ] - ] - ], - [ - "R113", - "det", - [ - [ - "governor", - "T264" - ], - [ - "dependent", - "T324" - ] - ] - ], - [ - "R114", - "amod", - [ - [ - "governor", - "T264" - ], - [ - "dependent", - "T72" - ] - ] - ], - [ - "R115", - "nn", - [ - [ - "governor", - "T264" - ], - [ - "dependent", - "T128" - ] - ] - ], - [ - "R116", - "prep_in", - [ - [ - "governor", - "T264" - ], - [ - "dependent", - "T377" - ] - ] - ], - [ - "R117", - "nn", - [ - [ - "governor", - "T377" - ], - [ - "dependent", - "T332" - ] - ] - ], - [ - "R118", - "amod", - [ - [ - "governor", - "T107" - ], - [ - "dependent", - "T342" - ] - ] - ], - [ - "R119", - "nsubj", - [ - [ - "governor", - "T116" - ], - [ - "dependent", - "T107" - ] - ] - ], - [ - "R120", - "dobj", - [ - [ - "governor", - "T116" - ], - [ - "dependent", - "T94" - ] - ] - ], - [ - "R121", - "xcomp", - [ - [ - "governor", - "T116" - ], - [ - "dependent", - "T25" - ] - ] - ], - [ - "R122", - "det", - [ - [ - "governor", - "T94" - ], - [ - "dependent", - "T163" - ] - ] - ], - [ - "R123", - "amod", - [ - [ - "governor", - "T94" - ], - [ - "dependent", - "T66" - ] - ] - ], - [ - "R124", - "nn", - [ - [ - "governor", - "T94" - ], - [ - "dependent", - "T149" - ] - ] - ], - [ - "R125", - "dobj", - [ - [ - "governor", - "T25" - ], - [ - "dependent", - "T123" - ] - ] - ], - [ - "R126", - "prep_to", - [ - [ - "governor", - "T25" - ], - [ - "dependent", - "T166" - ] - ] - ], - [ - "R127", - "prep_to", - [ - [ - "governor", - "T25" - ], - [ - "dependent", - "T180" - ] - ] - ], - [ - "R128", - "amod", - [ - [ - "governor", - "T123" - ], - [ - "dependent", - "T155" - ] - ] - ], - [ - "R129", - "conj_and", - [ - [ - "governor", - "T166" - ], - [ - "dependent", - "T180" - ] - ] - ], - [ - "R130", - "rcmod", - [ - [ - "governor", - "T166" - ], - [ - "dependent", - "T83" - ] - ] - ], - [ - "R131", - "prep_between", - [ - [ - "governor", - "T286" - ], - [ - "dependent", - "T249" - ] - ] - ], - [ - "R132", - "prep_between", - [ - [ - "governor", - "T286" - ], - [ - "dependent", - "T258" - ] - ] - ], - [ - "R133", - "conj_and", - [ - [ - "governor", - "T249" - ], - [ - "dependent", - "T258" - ] - ] - ], - [ - "R134", - "nsubj", - [ - [ - "governor", - "T83" - ], - [ - "dependent", - "T164" - ] - ] - ], - [ - "R135", - "cop", - [ - [ - "governor", - "T83" - ], - [ - "dependent", - "T196" - ] - ] - ], - [ - "R136", - "amod", - [ - [ - "governor", - "T83" - ], - [ - "dependent", - "T286" - ] - ] - ], - [ - "R137", - "det", - [ - [ - "governor", - "T1" - ], - [ - "dependent", - "T379" - ] - ] - ], - [ - "R138", - "nsubj", - [ - [ - "governor", - "T51" - ], - [ - "dependent", - "T1" - ] - ] - ], - [ - "R139", - "aux", - [ - [ - "governor", - "T51" - ], - [ - "dependent", - "T355" - ] - ] - ], - [ - "R140", - "neg", - [ - [ - "governor", - "T51" - ], - [ - "dependent", - "T173" - ] - ] - ], - [ - "R141", - "xcomp", - [ - [ - "governor", - "T51" - ], - [ - "dependent", - "T12" - ] - ] - ], - [ - "R142", - "det", - [ - [ - "governor", - "T73" - ], - [ - "dependent", - "T3" - ] - ] - ], - [ - "R143", - "amod", - [ - [ - "governor", - "T73" - ], - [ - "dependent", - "T5" - ] - ] - ], - [ - "R144", - "nsubj", - [ - [ - "governor", - "T12" - ], - [ - "dependent", - "T73" - ] - ] - ], - [ - "R145", - "amod", - [ - [ - "governor", - "T12" - ], - [ - "dependent", - "T98" - ] - ] - ], - [ - "R146", - "advmod", - [ - [ - "governor", - "T178" - ], - [ - "dependent", - "T131" - ] - ] - ], - [ - "R147", - "nsubj", - [ - [ - "governor", - "T178" - ], - [ - "dependent", - "T202" - ] - ] - ], - [ - "R148", - "prep_to", - [ - [ - "governor", - "T178" - ], - [ - "dependent", - "T362" - ] - ] - ], - [ - "R149", - "prep_in", - [ - [ - "governor", - "T178" - ], - [ - "dependent", - "T215" - ] - ] - ], - [ - "R150", - "det", - [ - [ - "governor", - "T362" - ], - [ - "dependent", - "T346" - ] - ] - ], - [ - "R151", - "prep_of", - [ - [ - "governor", - "T215" - ], - [ - "dependent", - "T16" - ] - ] - ], - [ - "R152", - "prep_between", - [ - [ - "governor", - "T16" - ], - [ - "dependent", - "T46" - ] - ] - ], - [ - "R153", - "prep_after", - [ - [ - "governor", - "T336" - ], - [ - "dependent", - "T381" - ] - ] - ], - [ - "R154", - "prep_of", - [ - [ - "governor", - "T381" - ], - [ - "dependent", - "T237" - ] - ] - ], - [ - "R155", - "dep", - [ - [ - "governor", - "T381" - ], - [ - "dependent", - "T75" - ] - ] - ], - [ - "R156", - "rcmod", - [ - [ - "governor", - "T381" - ], - [ - "dependent", - "T191" - ] - ] - ], - [ - "R157", - "neg", - [ - [ - "governor", - "T75" - ], - [ - "dependent", - "T97" - ] - ] - ], - [ - "R158", - "nsubjpass", - [ - [ - "governor", - "T191" - ], - [ - "dependent", - "T307" - ] - ] - ], - [ - "R159", - "auxpass", - [ - [ - "governor", - "T191" - ], - [ - "dependent", - "T179" - ] - ] - ], - [ - "R160", - "xcomp", - [ - [ - "governor", - "T191" - ], - [ - "dependent", - "T99" - ] - ] - ], - [ - "R161", - "aux", - [ - [ - "governor", - "T99" - ], - [ - "dependent", - "T172" - ] - ] - ], - [ - "R162", - "dobj", - [ - [ - "governor", - "T99" - ], - [ - "dependent", - "T367" - ] - ] - ], - [ - "R163", - "dobj", - [ - [ - "governor", - "T99" - ], - [ - "dependent", - "T369" - ] - ] - ], - [ - "R164", - "prep_as", - [ - [ - "governor", - "T99" - ], - [ - "dependent", - "T296" - ] - ] - ], - [ - "R165", - "prep_to", - [ - [ - "governor", - "T99" - ], - [ - "dependent", - "T65" - ] - ] - ], - [ - "R166", - "poss", - [ - [ - "governor", - "T367" - ], - [ - "dependent", - "T17" - ] - ] - ], - [ - "R167", - "prep_from", - [ - [ - "governor", - "T367" - ], - [ - "dependent", - "T357" - ] - ] - ], - [ - "R168", - "conj_and", - [ - [ - "governor", - "T367" - ], - [ - "dependent", - "T369" - ] - ] - ], - [ - "R169", - "amod", - [ - [ - "governor", - "T369" - ], - [ - "dependent", - "T276" - ] - ] - ], - [ - "R170", - "nn", - [ - [ - "governor", - "T369" - ], - [ - "dependent", - "T126" - ] - ] - ], - [ - "R171", - "prep_of", - [ - [ - "governor", - "T369" - ], - [ - "dependent", - "T9" - ] - ] - ], - [ - "R172", - "det", - [ - [ - "governor", - "T9" - ], - [ - "dependent", - "T345" - ] - ] - ], - [ - "R173", - "amod", - [ - [ - "governor", - "T296" - ], - [ - "dependent", - "T217" - ] - ] - ], - [ - "R174", - "prep_of", - [ - [ - "governor", - "T296" - ], - [ - "dependent", - "T21" - ] - ] - ], - [ - "R175", - "prep_in", - [ - [ - "governor", - "T21" - ], - [ - "dependent", - "T226" - ] - ] - ], - [ - "R176", - "nn", - [ - [ - "governor", - "T65" - ], - [ - "dependent", - "T328" - ] - ] - ], - [ - "R177", - "amod", - [ - [ - "governor", - "T46" - ], - [ - "dependent", - "T336" - ] - ] - ], - [ - "R178", - "det", - [ - [ - "governor", - "T349" - ], - [ - "dependent", - "T24" - ] - ] - ], - [ - "R179", - "amod", - [ - [ - "governor", - "T349" - ], - [ - "dependent", - "T102" - ] - ] - ], - [ - "R180", - "nn", - [ - [ - "governor", - "T349" - ], - [ - "dependent", - "T376" - ] - ] - ], - [ - "R181", - "nn", - [ - [ - "governor", - "T349" - ], - [ - "dependent", - "T348" - ] - ] - ], - [ - "R182", - "vmod", - [ - [ - "governor", - "T349" - ], - [ - "dependent", - "T360" - ] - ] - ], - [ - "R183", - "agent", - [ - [ - "governor", - "T360" - ], - [ - "dependent", - "T184" - ] - ] - ], - [ - "R184", - "nn", - [ - [ - "governor", - "T184" - ], - [ - "dependent", - "T235" - ] - ] - ], - [ - "R185", - "nsubj", - [ - [ - "governor", - "T339" - ], - [ - "dependent", - "T349" - ] - ] - ], - [ - "R186", - "prep_with", - [ - [ - "governor", - "T339" - ], - [ - "dependent", - "T385" - ] - ] - ], - [ - "R187", - "vmod", - [ - [ - "governor", - "T385" - ], - [ - "dependent", - "T140" - ] - ] - ], - [ - "R188", - "advmod", - [ - [ - "governor", - "T140" - ], - [ - "dependent", - "T358" - ] - ] - ], - [ - "R189", - "xcomp", - [ - [ - "governor", - "T140" - ], - [ - "dependent", - "T30" - ] - ] - ], - [ - "R190", - "aux", - [ - [ - "governor", - "T30" - ], - [ - "dependent", - "T265" - ] - ] - ], - [ - "R191", - "auxpass", - [ - [ - "governor", - "T30" - ], - [ - "dependent", - "T207" - ] - ] - ], - [ - "R192", - "xcomp", - [ - [ - "governor", - "T30" - ], - [ - "dependent", - "T287" - ] - ] - ], - [ - "R193", - "dobj", - [ - [ - "governor", - "T287" - ], - [ - "dependent", - "T103" - ] - ] - ], - [ - "R194", - "prep_against", - [ - [ - "governor", - "T287" - ], - [ - "dependent", - "T79" - ] - ] - ], - [ - "R195", - "prep_against", - [ - [ - "governor", - "T287" - ], - [ - "dependent", - "T176" - ] - ] - ], - [ - "R196", - "dep", - [ - [ - "governor", - "T287" - ], - [ - "dependent", - "T113" - ] - ] - ], - [ - "R197", - "det", - [ - [ - "governor", - "T79" - ], - [ - "dependent", - "T361" - ] - ] - ], - [ - "R198", - "nn", - [ - [ - "governor", - "T79" - ], - [ - "dependent", - "T279" - ] - ] - ], - [ - "R199", - "nn", - [ - [ - "governor", - "T79" - ], - [ - "dependent", - "T289" - ] - ] - ], - [ - "R200", - "conj_and", - [ - [ - "governor", - "T79" - ], - [ - "dependent", - "T176" - ] - ] - ], - [ - "R201", - "conj_and", - [ - [ - "governor", - "T38" - ], - [ - "dependent", - "T244" - ] - ] - ], - [ - "R202", - "nn", - [ - [ - "governor", - "T176" - ], - [ - "dependent", - "T38" - ] - ] - ], - [ - "R203", - "nn", - [ - [ - "governor", - "T176" - ], - [ - "dependent", - "T244" - ] - ] - ], - [ - "R204", - "nsubjpass", - [ - [ - "governor", - "T294" - ], - [ - "dependent", - "T325" - ] - ] - ], - [ - "R205", - "aux", - [ - [ - "governor", - "T294" - ], - [ - "dependent", - "T145" - ] - ] - ], - [ - "R206", - "advmod", - [ - [ - "governor", - "T294" - ], - [ - "dependent", - "T201" - ] - ] - ], - [ - "R207", - "auxpass", - [ - [ - "governor", - "T294" - ], - [ - "dependent", - "T8" - ] - ] - ], - [ - "R208", - "xcomp", - [ - [ - "governor", - "T294" - ], - [ - "dependent", - "T183" - ] - ] - ], - [ - "R209", - "aux", - [ - [ - "governor", - "T183" - ], - [ - "dependent", - "T18" - ] - ] - ], - [ - "R210", - "advmod", - [ - [ - "governor", - "T183" - ], - [ - "dependent", - "T241" - ] - ] - ], - [ - "R211", - "dobj", - [ - [ - "governor", - "T183" - ], - [ - "dependent", - "T288" - ] - ] - ], - [ - "R212", - "amod", - [ - [ - "governor", - "T288" - ], - [ - "dependent", - "T356" - ] - ] - ], - [ - "R213", - "prep_of", - [ - [ - "governor", - "T288" - ], - [ - "dependent", - "T203" - ] - ] - ], - [ - "R214", - "det", - [ - [ - "governor", - "T203" - ], - [ - "dependent", - "T262" - ] - ] - ], - [ - "R215", - "nn", - [ - [ - "governor", - "T203" - ], - [ - "dependent", - "T27" - ] - ] - ], - [ - "R216", - "prep_in", - [ - [ - "governor", - "T203" - ], - [ - "dependent", - "T150" - ] - ] - ], - [ - "R217", - "nn", - [ - [ - "governor", - "T150" - ], - [ - "dependent", - "T14" - ] - ] - ], - [ - "R218", - "nn", - [ - [ - "governor", - "T150" - ], - [ - "dependent", - "T225" - ] - ] - ], - [ - "R219", - "nn", - [ - [ - "governor", - "T150" - ], - [ - "dependent", - "T304" - ] - ] - ], - [ - "R220", - "appos", - [ - [ - "governor", - "T150" - ], - [ - "dependent", - "T70" - ] - ] - ], - [ - "R221", - "conj_and", - [ - [ - "governor", - "T359" - ], - [ - "dependent", - "T359" - ] - ] - ], - [ - "R222", - "prep_of", - [ - [ - "governor", - "T359" - ], - [ - "dependent", - "T213" - ] - ] - ], - [ - "R223", - "prep_to", - [ - [ - "governor", - "T359" - ], - [ - "dependent", - "T246" - ] - ] - ], - [ - "R224", - "det", - [ - [ - "governor", - "T246" - ], - [ - "dependent", - "T23" - ] - ] - ], - [ - "R225", - "amod", - [ - [ - "governor", - "T246" - ], - [ - "dependent", - "T19" - ] - ] - ], - [ - "R226", - "nn", - [ - [ - "governor", - "T246" - ], - [ - "dependent", - "T190" - ] - ] - ], - [ - "R227", - "appos", - [ - [ - "governor", - "T246" - ], - [ - "dependent", - "T270" - ] - ] - ], - [ - "R228", - "amod", - [ - [ - "governor", - "T270" - ], - [ - "dependent", - "T254" - ] - ] - ], - [ - "R229", - "amod", - [ - [ - "governor", - "T270" - ], - [ - "dependent", - "T353" - ] - ] - ], - [ - "R230", - "prep_in", - [ - [ - "governor", - "T270" - ], - [ - "dependent", - "T154" - ] - ] - ], - [ - "R231", - "nn", - [ - [ - "governor", - "T154" - ], - [ - "dependent", - "T330" - ] - ] - ], - [ - "R232", - "advmod", - [ - [ - "governor", - "T154" - ], - [ - "dependent", - "T74" - ] - ] - ], - [ - "R233", - "cc", - [ - [ - "governor", - "T74" - ], - [ - "dependent", - "T284" - ] - ] - ], - [ - "R234", - "nsubj", - [ - [ - "governor", - "T344" - ], - [ - "dependent", - "T359" - ] - ] - ], - [ - "R235", - "nsubj", - [ - [ - "governor", - "T344" - ], - [ - "dependent", - "T359" - ] - ] - ], - [ - "R236", - "dobj", - [ - [ - "governor", - "T344" - ], - [ - "dependent", - "T167" - ] - ] - ], - [ - "R237", - "det", - [ - [ - "governor", - "T167" - ], - [ - "dependent", - "T214" - ] - ] - ], - [ - "R238", - "prep_of", - [ - [ - "governor", - "T167" - ], - [ - "dependent", - "T90" - ] - ] - ], - [ - "R239", - "prep_of", - [ - [ - "governor", - "T366" - ], - [ - "dependent", - "T224" - ] - ] - ], - [ - "R240", - "det", - [ - [ - "governor", - "T224" - ], - [ - "dependent", - "T130" - ] - ] - ], - [ - "R241", - "nsubj", - [ - [ - "governor", - "T88" - ], - [ - "dependent", - "T366" - ] - ] - ], - [ - "R242", - "advmod", - [ - [ - "governor", - "T88" - ], - [ - "dependent", - "T293" - ] - ] - ], - [ - "R243", - "ccomp", - [ - [ - "governor", - "T88" - ], - [ - "dependent", - "T160" - ] - ] - ], - [ - "R244", - "conj_and", - [ - [ - "governor", - "T301" - ], - [ - "dependent", - "T211" - ] - ] - ], - [ - "R245", - "nsubj", - [ - [ - "governor", - "T160" - ], - [ - "dependent", - "T301" - ] - ] - ], - [ - "R246", - "nsubj", - [ - [ - "governor", - "T160" - ], - [ - "dependent", - "T211" - ] - ] - ], - [ - "R247", - "dobj", - [ - [ - "governor", - "T160" - ], - [ - "dependent", - "T222" - ] - ] - ], - [ - "R248", - "nn", - [ - [ - "governor", - "T222" - ], - [ - "dependent", - "T76" - ] - ] - ], - [ - "R249", - "rcmod", - [ - [ - "governor", - "T222" - ], - [ - "dependent", - "T219" - ] - ] - ], - [ - "R250", - "nsubj", - [ - [ - "governor", - "T219" - ], - [ - "dependent", - "T228" - ] - ] - ], - [ - "R251", - "advmod", - [ - [ - "governor", - "T219" - ], - [ - "dependent", - "T373" - ] - ] - ], - [ - "R252", - "prep_to", - [ - [ - "governor", - "T219" - ], - [ - "dependent", - "T285" - ] - ] - ], - [ - "R253", - "ccomp", - [ - [ - "governor", - "T219" - ], - [ - "dependent", - "T32" - ] - ] - ], - [ - "R254", - "det", - [ - [ - "governor", - "T285" - ], - [ - "dependent", - "T80" - ] - ] - ], - [ - "R255", - "amod", - [ - [ - "governor", - "T285" - ], - [ - "dependent", - "T132" - ] - ] - ], - [ - "R256", - "prep_in", - [ - [ - "governor", - "T285" - ], - [ - "dependent", - "T308" - ] - ] - ], - [ - "R257", - "nsubj", - [ - [ - "governor", - "T32" - ], - [ - "dependent", - "T232" - ] - ] - ], - [ - "R258", - "conj_and", - [ - [ - "governor", - "T111" - ], - [ - "dependent", - "T223" - ] - ] - ], - [ - "R259", - "nn", - [ - [ - "governor", - "T283" - ], - [ - "dependent", - "T111" - ] - ] - ], - [ - "R260", - "nn", - [ - [ - "governor", - "T283" - ], - [ - "dependent", - "T223" - ] - ] - ], - [ - "R261", - "nn", - [ - [ - "governor", - "T283" - ], - [ - "dependent", - "T45" - ] - ] - ], - [ - "R262", - "nn", - [ - [ - "governor", - "T283" - ], - [ - "dependent", - "T273" - ] - ] - ], - [ - "R263", - "advmod", - [ - [ - "governor", - "T363" - ], - [ - "dependent", - "T84" - ] - ] - ], - [ - "R264", - "nsubj", - [ - [ - "governor", - "T363" - ], - [ - "dependent", - "T283" - ] - ] - ], - [ - "R265", - "dobj", - [ - [ - "governor", - "T363" - ], - [ - "dependent", - "T187" - ] - ] - ], - [ - "R266", - "prep_after", - [ - [ - "governor", - "T363" - ], - [ - "dependent", - "T368" - ] - ] - ], - [ - "R267", - "prep_with", - [ - [ - "governor", - "T363" - ], - [ - "dependent", - "T208" - ] - ] - ], - [ - "R268", - "amod", - [ - [ - "governor", - "T187" - ], - [ - "dependent", - "T146" - ] - ] - ], - [ - "R269", - "prep_to", - [ - [ - "governor", - "T187" - ], - [ - "dependent", - "T352" - ] - ] - ], - [ - "R270", - "det", - [ - [ - "governor", - "T352" - ], - [ - "dependent", - "T64" - ] - ] - ], - [ - "R271", - "nn", - [ - [ - "governor", - "T352" - ], - [ - "dependent", - "T170" - ] - ] - ], - [ - "R272", - "det", - [ - [ - "governor", - "T40" - ], - [ - "dependent", - "T110" - ] - ] - ], - [ - "R273", - "nsubjpass", - [ - [ - "governor", - "T165" - ], - [ - "dependent", - "T40" - ] - ] - ], - [ - "R274", - "auxpass", - [ - [ - "governor", - "T165" - ], - [ - "dependent", - "T159" - ] - ] - ], - [ - "R275", - "prep_in", - [ - [ - "governor", - "T165" - ], - [ - "dependent", - "T209" - ] - ] - ], - [ - "R276", - "det", - [ - [ - "governor", - "T209" - ], - [ - "dependent", - "T193" - ] - ] - ], - [ - "R277", - "amod", - [ - [ - "governor", - "T209" - ], - [ - "dependent", - "T134" - ] - ] - ], - [ - "R278", - "nn", - [ - [ - "governor", - "T209" - ], - [ - "dependent", - "T234" - ] - ] - ] - ], - "triggers": [], - "events": [] - } -} diff --git a/data/data6.json b/data/data6.json deleted file mode 100644 index c42da6f..0000000 --- a/data/data6.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "eventData": { - "comments": [], - "entities": [ - [ - "T1", - "BOUND", - [[ - "0", - "2" - ]] - ], - [ - "T2", - "FREE", - [[ - "3", - "7" - ]] - ], - [ - "T3", - "BOUND", - [[ - "8", - "12" - ]] - ] - ], - "attributes": [], - "text": "un lock able", - "relations": [ - [ - "R1", - "unlock", - [ - [ - "Controlled", - "T1" - ], - [ - "Controller", - "T2" - ] - ] - ], - [ - "R2", - "unlockable", - [ - [ - "Controlled", - "R1" - ], - [ - "Controller", - "T3" - ] - ] - ] - ], - "triggers": [], - "events": [] - }, - "syntaxData": { - "comments": [], - "entities": [ - [ - "T1", - "", - [[ - "0", - "2" - ]] - ], - [ - "T2", - "", - [[ - "3", - "7" - ]] - ], - [ - "T3", - "", - [[ - "8", - "12" - ]] - ] - ], - "attributes": [], - "text": "un lock able", - "relations": [], - "triggers": [], - "events": [] - } -} \ No newline at end of file diff --git a/data/data7.json b/data/data7.json deleted file mode 100644 index 90e394e..0000000 --- a/data/data7.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "eventData": { - "comments": [], - "entities": [ - [ - "T1", - "BOUND", - [[ - "0", - "2" - ]] - ], - [ - "T2", - "FREE", - [[ - "3", - "7" - ]] - ], - [ - "T3", - "BOUND", - [[ - "8", - "12" - ]] - ] - ], - "attributes": [], - "text": "un lock able", - "relations": [ - [ - "R1", - "lockable", - [ - [ - "Controlled", - "T2" - ], - [ - "Controller", - "T3" - ] - ] - ], - [ - "R2", - "unlockable", - [ - [ - "Controlled", - "T1" - ], - [ - "Controller", - "R1" - ] - ] - ] - ], - "triggers": [], - "events": [] - }, - "syntaxData": { - "comments": [], - "entities": [ - [ - "T1", - "", - [[ - "0", - "2" - ]] - ], - [ - "T2", - "", - [[ - "3", - "7" - ]] - ], - [ - "T3", - "", - [[ - "8", - "12" - ]] - ] - ], - "attributes": [], - "text": "un lock able", - "relations": [], - "triggers": [], - "events": [] - } -} \ No newline at end of file diff --git a/data/data8.json b/data/data8.json deleted file mode 100644 index 068c825..0000000 --- a/data/data8.json +++ /dev/null @@ -1,410 +0,0 @@ -{ - "eventData": { - "comments": [ - [ - "T1", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T2", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T3", - "FoundByRule", - "ner-bioprocess-entities" - ], - [ - "T4", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "T5", - "FoundByRule", - "ner-gene_or_gene_product-entities" - ], - [ - "E1", - "FoundByRule", - "Positive_activation_token_2_noun" - ] - ], - "entities": [ - [ - "T1", - "Gene_or_gene_product", - [[ - "13", - "16" - ]] - ], - [ - "T2", - "Gene_or_gene_product", - [[ - "20", - "23" - ]] - ], - [ - "T3", - "BioProcess", - [[ - "34", - "44" - ]] - ], - [ - "T4", - "Gene_or_gene_product", - [[ - "59", - "63" - ]] - ], - [ - "T5", - "Gene_or_gene_product", - [[ - "68", - "72" - ]] - ], - [ - "T6", - "Positive_activation", - [[ - "0", - "9" - ]] - ], - [ - "T7", - "Negative_regulation", - [[ - "45", - "53" - ]] - ] - ], - "attributes": [], - "text": "Induction of p21 by p53 following DNA damage inhibits both Cdk4 and Cdk2 activities", - "relations": [], - "triggers": [[ - "T6", - "Positive_activation", - [[ - "0", - "9" - ]] - ]], - "events": [[ - "E1", - "T6", - [ - [ - "Controlled", - "T1" - ], - [ - "Controller", - "T2" - ] - ] - ], - [ - "E2", - "T7", - [ - [ - "Controller", - "E1" - ], - [ - "Controlled", - "T4" - ] - ] - ], - [ - "E3", - "T7", - [ - [ - "Controller", - "E1" - ], - [ - "Controlled", - "T5" - ] - ] - ]] -}, -"syntaxData": { - "comments": [], - "entities": [ - [ - "T1", - "NN", - [[ - "13", - "16" - ]] - ], - [ - "T2", - "NN", - [[ - "0", - "9" - ]] - ], - [ - "T3", - "NN", - [[ - "59", - "63" - ]] - ], - [ - "T4", - "CC", - [[ - "54", - "58" - ]] - ], - [ - "T5", - "NN", - [[ - "38", - "44" - ]] - ], - [ - "T6", - "IN", - [[ - "17", - "19" - ]] - ], - [ - "T7", - "VBG", - [[ - "24", - "33" - ]] - ], - [ - "T8", - "VBZ", - [[ - "45", - "53" - ]] - ], - [ - "T9", - "NN", - [[ - "20", - "23" - ]] - ], - [ - "T10", - "NN", - [[ - "68", - "72" - ]] - ], - [ - "T11", - "NNS", - [[ - "73", - "83" - ]] - ], - [ - "T12", - "CC", - [[ - "64", - "67" - ]] - ], - [ - "T13", - "IN", - [[ - "10", - "12" - ]] - ], - [ - "T14", - "NN", - [[ - "34", - "37" - ]] - ] - ], - "attributes": [], - "text": "Induction of p21 by p53 following DNA damage inhibits both Cdk4 and Cdk2 activities", - "relations": [ - [ - "R1", - "prep_of", - [ - [ - "governor", - "T2" - ], - [ - "dependent", - "T1" - ] - ] - ], - [ - "R2", - "prep_by", - [ - [ - "governor", - "T1" - ], - [ - "dependent", - "T9" - ] - ] - ], - [ - "R3", - "prep_following", - [ - [ - "governor", - "T9" - ], - [ - "dependent", - "T5" - ] - ] - ], - [ - "R4", - "nn", - [ - [ - "governor", - "T5" - ], - [ - "dependent", - "T14" - ] - ] - ], - [ - "R5", - "nsubj", - [ - [ - "governor", - "T8" - ], - [ - "dependent", - "T2" - ] - ] - ], - [ - "R6", - "prep", - [ - [ - "governor", - "T8" - ], - [ - "dependent", - "T4" - ] - ] - ], - [ - "R7", - "pobj", - [ - [ - "governor", - "T4" - ], - [ - "dependent", - "T11" - ] - ] - ], - [ - "R8", - "conj_and", - [ - [ - "governor", - "T3" - ], - [ - "dependent", - "T10" - ] - ] - ], - [ - "R9", - "nn", - [ - [ - "governor", - "T11" - ], - [ - "dependent", - "T3" - ] - ] - ], - [ - "R10", - "nn", - [ - [ - "governor", - "T11" - ], - [ - "dependent", - "T10" - ] - ] - ] - ], - "triggers": [], - "events": [] -} -} \ No newline at end of file diff --git a/data/example2.ann b/data/example2.ann deleted file mode 100644 index a9b8b4b..0000000 --- a/data/example2.ann +++ /dev/null @@ -1,6 +0,0 @@ -unlockable -T1 BOUND 0 2 un -T2 FREE 2 6 lock -T3 BOUND 6 10 able -R1 lockable controlled:T2 controller:T3 -R2 unlockable controller:T1 controlled:R1 \ No newline at end of file diff --git a/demo/bootstrap-colorpicker.min.js b/demo/bootstrap-colorpicker.min.js new file mode 100644 index 0000000..72cad74 --- /dev/null +++ b/demo/bootstrap-colorpicker.min.js @@ -0,0 +1,10 @@ +/*! + * Bootstrap Colorpicker - Bootstrap Colorpicker is a modular color picker plugin for Bootstrap 4. + * @package bootstrap-colorpicker + * @version v3.0.3 + * @license MIT + * @link https://farbelous.github.io/bootstrap-colorpicker/ + * @link https://github.com/farbelous/bootstrap-colorpicker.git + */ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("jQuery")):"function"==typeof define&&define.amd?define("bootstrap-colorpicker",["jQuery"],t):"object"==typeof exports?exports["bootstrap-colorpicker"]=t(require("jQuery")):e["bootstrap-colorpicker"]=t(e.jQuery)}("undefined"!=typeof self?self:this,function(e){return function(e){function t(r){if(o[r])return o[r].exports;var n=o[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var o={};return t.m=e,t.c=o,t.d=function(e,o,r){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=7)}([function(t,o){t.exports=e},function(e,t,o){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};if(r(this,e),this.colorpicker=t,this.options=o,!this.colorpicker.element||!this.colorpicker.element.length)throw new Error("Extension: this.colorpicker.element is not valid");this.colorpicker.element.on("colorpickerCreate.colorpicker-ext",a.default.proxy(this.onCreate,this)),this.colorpicker.element.on("colorpickerDestroy.colorpicker-ext",a.default.proxy(this.onDestroy,this)),this.colorpicker.element.on("colorpickerUpdate.colorpicker-ext",a.default.proxy(this.onUpdate,this)),this.colorpicker.element.on("colorpickerChange.colorpicker-ext",a.default.proxy(this.onChange,this)),this.colorpicker.element.on("colorpickerInvalid.colorpicker-ext",a.default.proxy(this.onInvalid,this)),this.colorpicker.element.on("colorpickerShow.colorpicker-ext",a.default.proxy(this.onShow,this)),this.colorpicker.element.on("colorpickerHide.colorpicker-ext",a.default.proxy(this.onHide,this)),this.colorpicker.element.on("colorpickerEnable.colorpicker-ext",a.default.proxy(this.onEnable,this)),this.colorpicker.element.on("colorpickerDisable.colorpicker-ext",a.default.proxy(this.onDisable,this))}return n(e,[{key:"resolveColor",value:function(e){!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1}},{key:"onCreate",value:function(e){}},{key:"onDestroy",value:function(e){this.colorpicker.element.off(".colorpicker-ext")}},{key:"onUpdate",value:function(e){}},{key:"onChange",value:function(e){}},{key:"onInvalid",value:function(e){}},{key:"onHide",value:function(e){}},{key:"onShow",value:function(e){}},{key:"onDisable",value:function(e){}},{key:"onEnable",value:function(e){}}]),e}();t.default=l},function(e,t,o){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorItem=t.HSVAColor=void 0;var n=function(){function e(e,t){for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;r(this,e),this.replace(t,o)}return n(e,[{key:"api",value:function(t){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:null;if(o=e.sanitizeFormat(o),this._original={color:t,format:o,valid:!0},this._color=e.parse(t),null===this._color)return this._color=(0,a.default)(null),void(this._original.valid=!1);this._format=o||(e.isHex(t)?"hex":this._color.model)}},{key:"isValid",value:function(){return!0===this._original.valid}},{key:"setHueRatio",value:function(e){this.hue=360*(1-e)}},{key:"setSaturationRatio",value:function(e){this.saturation=100*e}},{key:"setValueRatio",value:function(e){this.value=100*(1-e)}},{key:"setAlphaRatio",value:function(e){this.alpha=1-e}},{key:"isDesaturated",value:function(){return 0===this.saturation}},{key:"isTransparent",value:function(){return 0===this.alpha}},{key:"hasTransparency",value:function(){return this.hasAlpha()&&this.alpha<1}},{key:"hasAlpha",value:function(){return!isNaN(this.alpha)}},{key:"toObject",value:function(){return new l(this.hue,this.saturation,this.value,this.alpha)}},{key:"toHsva",value:function(){return this.toObject()}},{key:"toHsvaRatio",value:function(){return new l(this.hue/360,this.saturation/100,this.value/100,this.alpha)}},{key:"toString",value:function(){return this.string()}},{key:"string",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!(t=e.sanitizeFormat(t||this.format)))return this._color.round().string();if(void 0===this._color[t])throw new Error("Unsupported color format: '"+t+"'");var o=this._color[t]();return o.round?o.round().string():o}},{key:"equals",value:function(t){return t=t instanceof e?t:new e(t),!(!t.isValid()||!this.isValid())&&(this.hue===t.hue&&this.saturation===t.saturation&&this.value===t.value&&this.alpha===t.alpha)}},{key:"getClone",value:function(){return new e(this._color,this.format)}},{key:"getCloneHueOnly",value:function(){return new e([this.hue,100,100,1],this.format)}},{key:"getCloneOpaque",value:function(){return new e(this._color.alpha(1),this.format)}},{key:"toRgbString",value:function(){return this.string("rgb")}},{key:"toHexString",value:function(){return this.string("hex")}},{key:"toHslString",value:function(){return this.string("hsl")}},{key:"isDark",value:function(){return this._color.isDark()}},{key:"isLight",value:function(){return this._color.isLight()}},{key:"generate",value:function(t){var o=[];if(Array.isArray(t))o=t;else{if(!e.colorFormulas.hasOwnProperty(t))throw new Error("No color formula found with the name '"+t+"'.");o=e.colorFormulas[t]}var r=[],n=this._color,i=this.format;return o.forEach(function(t){var o=[t?(n.hue()+t)%360:n.hue(),n.saturationv(),n.value(),n.alpha()];r.push(new e(o,i))}),r}},{key:"hue",get:function(){return this._color.hue()},set:function(e){this._color=this._color.hue(e)}},{key:"saturation",get:function(){return this._color.saturationv()},set:function(e){this._color=this._color.saturationv(e)}},{key:"value",get:function(){return this._color.value()},set:function(e){this._color=this._color.value(e)}},{key:"alpha",get:function(){var e=this._color.alpha();return isNaN(e)?1:e},set:function(e){this._color=this._color.alpha(Math.round(100*e)/100)}},{key:"format",get:function(){return this._format?this._format:this._color.model},set:function(t){this._format=e.sanitizeFormat(t)}}],[{key:"parse",value:function(t){if(t instanceof a.default)return t;if(t instanceof e)return t._color;var o=null;t=t instanceof l?[t.h,t.s,t.v,isNaN(t.a)?1:t.a]:e.sanitizeString(t),Array.isArray(t)&&(o="hsv");try{return(0,a.default)(t,o)}catch(e){return null}}},{key:"sanitizeString",value:function(e){return"string"==typeof e||e instanceof String?e.match(/^[0-9a-f]{2,}$/i)?"#"+e:"transparent"===e.toLowerCase()?"#FFFFFF00":e:e}},{key:"isHex",value:function(e){return("string"==typeof e||e instanceof String)&&!!e.match(/^#?[0-9a-f]{2,}$/i)}},{key:"sanitizeFormat",value:function(e){switch(e){case"hex":case"hex3":case"hex4":case"hex6":case"hex8":return"hex";case"rgb":case"rgba":case"keyword":case"name":return"rgb";case"hsl":case"hsla":case"hsv":case"hsva":case"hwb":case"hwba":return"hsl";default:return""}}}]),e}();s.colorFormulas={complementary:[180],triad:[0,120,240],tetrad:[0,90,180,270],splitcomplement:[0,72,216]},t.default=s,t.HSVAColor=l,t.ColorItem=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={bar_size_short:16,base_margin:6,columns:6},n=r.bar_size_short*r.columns+r.base_margin*(r.columns-1);t.default={customClass:null,color:!1,fallbackColor:!1,format:null,horizontal:!1,inline:!1,container:!1,popover:{animation:!0,placement:"bottom",fallbackPlacement:"flip"},debug:!1,input:"input",addon:".colorpicker-input-addon",autoInputFallback:!0,useHashPrefix:!0,useAlpha:!0,template:'
\n
\n
\n
\n
\n \n
\n
',extensions:[{name:"preview",options:{showText:!0}}],sliders:{saturation:{selector:".colorpicker-saturation",maxLeft:n,maxTop:n,callLeft:"setSaturationRatio",callTop:"setValueRatio"},hue:{selector:".colorpicker-hue",maxLeft:0,maxTop:n,callLeft:!1,callTop:"setHueRatio"},alpha:{selector:".colorpicker-alpha",childSelector:".colorpicker-alpha-color",maxLeft:0,maxTop:n,callLeft:!1,callTop:"setAlphaRatio"}},slidersHorz:{saturation:{selector:".colorpicker-saturation",maxLeft:n,maxTop:n,callLeft:"setSaturationRatio",callTop:"setValueRatio"},hue:{selector:".colorpicker-hue",maxLeft:n,maxTop:0,callLeft:"setHueRatio",callTop:!1},alpha:{selector:".colorpicker-alpha",childSelector:".colorpicker-alpha-color",maxLeft:n,maxTop:0,callLeft:"setAlphaRatio",callTop:!1}}}},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(){function e(e,t){for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};n(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,p.default.extend(!0,{},f,o)));return Array.isArray(r.options.colors)||"object"===l(r.options.colors)||(r.options.colors=null),r}return a(t,e),s(t,[{key:"colors",get:function(){return this.options.colors}}]),s(t,[{key:"getLength",value:function(){return this.options.colors?Array.isArray(this.options.colors)?this.options.colors.length:"object"===l(this.options.colors)?Object.keys(this.options.colors).length:0:0}},{key:"resolveColor",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!(this.getLength()<=0)&&(Array.isArray(this.options.colors)?this.options.colors.indexOf(e)>=0?e:this.options.colors.indexOf(e.toUpperCase())>=0?e.toUpperCase():this.options.colors.indexOf(e.toLowerCase())>=0&&e.toLowerCase():"object"===l(this.options.colors)&&(!this.options.namesAsValues||t?this.getValue(e,!1):this.getName(e,this.getName("#"+e))))}},{key:"getName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof e||!this.options.colors)return t;for(var o in this.options.colors)if(this.options.colors.hasOwnProperty(o)&&this.options.colors[o].toLowerCase()===e.toLowerCase())return o;return t}},{key:"getValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"string"==typeof e&&this.options.colors&&this.options.colors.hasOwnProperty(e)?this.options.colors[e]:t}}]),t}(u.default);t.default=d},function(e,t){e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,o){function r(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}var n=o(5),i={};for(var a in n)n.hasOwnProperty(a)&&(i[n[a]]=a);var l=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in l)if(l.hasOwnProperty(s)){if(!("channels"in l[s]))throw new Error("missing channels property: "+s);if(!("labels"in l[s]))throw new Error("missing channel labels property: "+s);if(l[s].labels.length!==l[s].channels)throw new Error("channel and label counts mismatch: "+s);var c=l[s].channels,u=l[s].labels;delete l[s].channels,delete l[s].labels,Object.defineProperty(l[s],"channels",{value:c}),Object.defineProperty(l[s],"labels",{value:u})}l.rgb.hsl=function(e){var t,o,r,n=e[0]/255,i=e[1]/255,a=e[2]/255,l=Math.min(n,i,a),s=Math.max(n,i,a),c=s-l;return s===l?t=0:n===s?t=(i-a)/c:i===s?t=2+(a-n)/c:a===s&&(t=4+(n-i)/c),t=Math.min(60*t,360),t<0&&(t+=360),r=(l+s)/2,o=s===l?0:r<=.5?c/(s+l):c/(2-s-l),[t,100*o,100*r]},l.rgb.hsv=function(e){var t,o,r,n,i,a=e[0]/255,l=e[1]/255,s=e[2]/255,c=Math.max(a,l,s),u=c-Math.min(a,l,s),h=function(e){return(c-e)/6/u+.5};return 0===u?n=i=0:(i=u/c,t=h(a),o=h(l),r=h(s),a===c?n=r-o:l===c?n=1/3+t-r:s===c&&(n=2/3+o-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*i,100*c]},l.rgb.hwb=function(e){var t=e[0],o=e[1],r=e[2],n=l.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(o,r));return r=1-1/255*Math.max(t,Math.max(o,r)),[n,100*i,100*r]},l.rgb.cmyk=function(e){var t,o,r,n,i=e[0]/255,a=e[1]/255,l=e[2]/255;return n=Math.min(1-i,1-a,1-l),t=(1-i-n)/(1-n)||0,o=(1-a-n)/(1-n)||0,r=(1-l-n)/(1-n)||0,[100*t,100*o,100*r,100*n]},l.rgb.keyword=function(e){var t=i[e];if(t)return t;var o,a=1/0;for(var l in n)if(n.hasOwnProperty(l)){var s=n[l],c=r(e,s);c.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,[100*(.4124*t+.3576*o+.1805*r),100*(.2126*t+.7152*o+.0722*r),100*(.0193*t+.1192*o+.9505*r)]},l.rgb.lab=function(e){var t,o,r,n=l.rgb.xyz(e),i=n[0],a=n[1],s=n[2];return i/=95.047,a/=100,s/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,t=116*a-16,o=500*(i-a),r=200*(a-s),[t,o,r]},l.hsl.rgb=function(e){var t,o,r,n,i,a=e[0]/360,l=e[1]/100,s=e[2]/100;if(0===l)return i=255*s,[i,i,i];o=s<.5?s*(1+l):s+l-s*l,t=2*s-o,n=[0,0,0];for(var c=0;c<3;c++)r=a+1/3*-(c-1),r<0&&r++,r>1&&r--,i=6*r<1?t+6*(o-t)*r:2*r<1?o:3*r<2?t+(o-t)*(2/3-r)*6:t,n[c]=255*i;return n},l.hsl.hsv=function(e){var t,o,r=e[0],n=e[1]/100,i=e[2]/100,a=n,l=Math.max(i,.01);return i*=2,n*=i<=1?i:2-i,a*=l<=1?l:2-l,o=(i+n)/2,t=0===i?2*a/(l+a):2*n/(i+n),[r,100*t,100*o]},l.hsv.rgb=function(e){var t=e[0]/60,o=e[1]/100,r=e[2]/100,n=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-o),l=255*r*(1-o*i),s=255*r*(1-o*(1-i));switch(r*=255,n){case 0:return[r,s,a];case 1:return[l,r,a];case 2:return[a,r,s];case 3:return[a,l,r];case 4:return[s,a,r];case 5:return[r,a,l]}},l.hsv.hsl=function(e){var t,o,r,n=e[0],i=e[1]/100,a=e[2]/100,l=Math.max(a,.01);return r=(2-i)*a,t=(2-i)*l,o=i*l,o/=t<=1?t:2-t,o=o||0,r/=2,[n,100*o,100*r]},l.hwb.rgb=function(e){var t,o,r,n,i=e[0]/360,a=e[1]/100,l=e[2]/100,s=a+l;s>1&&(a/=s,l/=s),t=Math.floor(6*i),o=1-l,r=6*i-t,0!=(1&t)&&(r=1-r),n=a+r*(o-a);var c,u,h;switch(t){default:case 6:case 0:c=o,u=n,h=a;break;case 1:c=n,u=o,h=a;break;case 2:c=a,u=o,h=n;break;case 3:c=a,u=n,h=o;break;case 4:c=n,u=a,h=o;break;case 5:c=o,u=a,h=n}return[255*c,255*u,255*h]},l.cmyk.rgb=function(e){var t,o,r,n=e[0]/100,i=e[1]/100,a=e[2]/100,l=e[3]/100;return t=1-Math.min(1,n*(1-l)+l),o=1-Math.min(1,i*(1-l)+l),r=1-Math.min(1,a*(1-l)+l),[255*t,255*o,255*r]},l.xyz.rgb=function(e){var t,o,r,n=e[0]/100,i=e[1]/100,a=e[2]/100;return t=3.2406*n+-1.5372*i+-.4986*a,o=-.9689*n+1.8758*i+.0415*a,r=.0557*n+-.204*i+1.057*a,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:12.92*o,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,t=Math.min(Math.max(0,t),1),o=Math.min(Math.max(0,o),1),r=Math.min(Math.max(0,r),1),[255*t,255*o,255*r]},l.xyz.lab=function(e){var t,o,r,n=e[0],i=e[1],a=e[2];return n/=95.047,i/=100,a/=108.883,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,t=116*i-16,o=500*(n-i),r=200*(i-a),[t,o,r]},l.lab.xyz=function(e){var t,o,r,n=e[0],i=e[1],a=e[2];o=(n+16)/116,t=i/500+o,r=o-a/200;var l=Math.pow(o,3),s=Math.pow(t,3),c=Math.pow(r,3);return o=l>.008856?l:(o-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=c>.008856?c:(r-16/116)/7.787,t*=95.047,o*=100,r*=108.883,[t,o,r]},l.lab.lch=function(e){var t,o,r,n=e[0],i=e[1],a=e[2];return t=Math.atan2(a,i),o=360*t/2/Math.PI,o<0&&(o+=360),r=Math.sqrt(i*i+a*a),[n,r,o]},l.lch.lab=function(e){var t,o,r,n=e[0],i=e[1],a=e[2];return r=a/360*2*Math.PI,t=i*Math.cos(r),o=i*Math.sin(r),[n,t,o]},l.rgb.ansi16=function(e){var t=e[0],o=e[1],r=e[2],n=1 in arguments?arguments[1]:l.rgb.hsv(e)[2];if(0===(n=Math.round(n/50)))return 30;var i=30+(Math.round(r/255)<<2|Math.round(o/255)<<1|Math.round(t/255));return 2===n&&(i+=60),i},l.hsv.ansi16=function(e){return l.rgb.ansi16(l.hsv.rgb(e),e[2])},l.rgb.ansi256=function(e){var t=e[0],o=e[1],r=e[2];return t===o&&o===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(o/255*5)+Math.round(r/255*5)},l.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var o=.5*(1+~~(e>50));return[(1&t)*o*255,(t>>1&1)*o*255,(t>>2&1)*o*255]},l.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}e-=16;var o;return[Math.floor(e/36)/5*255,Math.floor((o=e%36)/6)/5*255,o%6/5*255]},l.rgb.hex=function(e){var t=((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2])),o=t.toString(16).toUpperCase();return"000000".substring(o.length)+o},l.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var o=t[0];3===t[0].length&&(o=o.split("").map(function(e){return e+e}).join(""));var r=parseInt(o,16);return[r>>16&255,r>>8&255,255&r]},l.rgb.hcg=function(e){var t,o,r=e[0]/255,n=e[1]/255,i=e[2]/255,a=Math.max(Math.max(r,n),i),l=Math.min(Math.min(r,n),i),s=a-l;return t=s<1?l/(1-s):0,o=s<=0?0:a===r?(n-i)/s%6:a===n?2+(i-r)/s:4+(r-n)/s+4,o/=6,o%=1,[360*o,100*s,100*t]},l.hsl.hcg=function(e){var t=e[1]/100,o=e[2]/100,r=1,n=0;return r=o<.5?2*t*o:2*t*(1-o),r<1&&(n=(o-.5*r)/(1-r)),[e[0],100*r,100*n]},l.hsv.hcg=function(e){var t=e[1]/100,o=e[2]/100,r=t*o,n=0;return r<1&&(n=(o-r)/(1-r)),[e[0],100*r,100*n]},l.hcg.rgb=function(e){var t=e[0]/360,o=e[1]/100,r=e[2]/100;if(0===o)return[255*r,255*r,255*r];var n=[0,0,0],i=t%1*6,a=i%1,l=1-a,s=0;switch(Math.floor(i)){case 0:n[0]=1,n[1]=a,n[2]=0;break;case 1:n[0]=l,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=a;break;case 3:n[0]=0,n[1]=l,n[2]=1;break;case 4:n[0]=a,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=l}return s=(1-o)*r,[255*(o*n[0]+s),255*(o*n[1]+s),255*(o*n[2]+s)]},l.hcg.hsv=function(e){var t=e[1]/100,o=e[2]/100,r=t+o*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},l.hcg.hsl=function(e){var t=e[1]/100,o=e[2]/100,r=o*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},l.hcg.hwb=function(e){var t=e[1]/100,o=e[2]/100,r=t+o*(1-t);return[e[0],100*(r-t),100*(1-r)]},l.hwb.hcg=function(e){var t=e[1]/100,o=e[2]/100,r=1-o,n=r-t,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},l.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},l.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},l.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},l.gray.hsl=l.gray.hsv=function(e){return[0,0,e[0]]},l.gray.hwb=function(e){return[0,100,e[0]]},l.gray.cmyk=function(e){return[0,0,0,e[0]]},l.gray.lab=function(e){return[e[0],0,0]},l.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),o=(t<<16)+(t<<8)+t,r=o.toString(16).toUpperCase();return"000000".substring(r.length)+r},l.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=o(8),a=r(i),l=o(0),s=r(l),c="colorpicker";s.default[c]=a.default,s.default.fn[c]=function(e){var t=Array.prototype.slice.call(arguments,1),o=1===this.length,r=null,i=this.each(function(){var i=(0,s.default)(this),l=i.data(c),u="object"===(void 0===e?"undefined":n(e))?e:{};l||(l=new a.default(this,u),i.data(c,l)),o&&(r=i,"string"==typeof e&&(r="colorpicker"===e?l:s.default.isFunction(l[e])?l[e].apply(l,t):l[e]))});return o?r:i},s.default.fn[c].constructor=a.default},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{},o=new e(this,t);return this.extensions.push(o),o}},{key:"destroy",value:function(){var e=this.color;this.sliderHandler.unbind(),this.inputHandler.unbind(),this.popupHandler.unbind(),this.colorHandler.unbind(),this.addonHandler.unbind(),this.pickerHandler.unbind(),this.element.removeClass("colorpicker-element").removeData("colorpicker","color").off(".colorpicker"),this.trigger("colorpickerDestroy",e)}},{key:"show",value:function(e){this.popupHandler.show(e)}},{key:"hide",value:function(e){this.popupHandler.hide(e)}},{key:"toggle",value:function(e){this.popupHandler.toggle(e)}},{key:"getValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.colorHandler.color;return t=t instanceof j.default?t:e,t instanceof j.default?t.string(this.format):t}},{key:"setValue",value:function(e){if(!this.isDisabled()){var t=this.colorHandler;t.hasColor()&&e&&t.color.equals(e)||!t.hasColor()&&!e||(t.color=e?t.createColor(e,this.options.autoInputFallback):null,this.trigger("colorpickerChange",t.color,e),this.update())}}},{key:"update",value:function(){this.colorHandler.hasColor()?this.inputHandler.update():this.colorHandler.assureColor(),this.addonHandler.update(),this.pickerHandler.update(),this.trigger("colorpickerUpdate")}},{key:"enable",value:function(){return this.inputHandler.enable(),this.disabled=!1,this.picker.removeClass("colorpicker-disabled"),this.trigger("colorpickerEnable"),!0}},{key:"disable",value:function(){return this.inputHandler.disable(),this.disabled=!0,this.picker.addClass("colorpicker-disabled"),this.trigger("colorpickerDisable"),!0}},{key:"isEnabled",value:function(){return!this.isDisabled()}},{key:"isDisabled",value:function(){return!0===this.disabled}},{key:"trigger",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.element.trigger({type:e,colorpicker:this,color:t||this.color,value:o||this.getValue()})}}]),e}();E.extensions=h.default,t.default=E},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Palette=t.Swatches=t.Preview=t.Debugger=void 0;var n=o(10),i=r(n),a=o(11),l=r(a),s=o(12),c=r(s),u=o(4),h=r(u);t.Debugger=i.default,t.Preview=l.default,t.Swatches=c.default,t.Palette=h.default,t.default={debugger:i.default,preview:l.default,swatches:c.default,palette:h.default}},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};n(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));return r.eventCounter=0,r.colorpicker.inputHandler.hasInput()&&r.colorpicker.inputHandler.input.on("change.colorpicker-ext",p.default.proxy(r.onChangeInput,r)),r}return a(t,e),l(t,[{key:"log",value:function(e){for(var t,o=arguments.length,r=Array(o>1?o-1:0),n=1;n1&&void 0!==arguments[1])||arguments[1];return this.log("resolveColor()",e,t),!1}},{key:"onCreate",value:function(e){return this.log("colorpickerCreate"),s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onCreate",this).call(this,e)}},{key:"onDestroy",value:function(e){return this.log("colorpickerDestroy"),this.eventCounter=0,this.colorpicker.inputHandler.hasInput()&&this.colorpicker.inputHandler.input.off(".colorpicker-ext"),s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDestroy",this).call(this,e)}},{key:"onUpdate",value:function(e){this.log("colorpickerUpdate")}},{key:"onChangeInput",value:function(e){this.log("input:change.colorpicker",e.value,e.color)}},{key:"onChange",value:function(e){this.log("colorpickerChange",e.value,e.color)}},{key:"onInvalid",value:function(e){this.log("colorpickerInvalid",e.value,e.color)}},{key:"onHide",value:function(e){this.log("colorpickerHide"),this.eventCounter=0}},{key:"onShow",value:function(e){this.log("colorpickerShow")}},{key:"onDisable",value:function(e){this.log("colorpickerDisable")}},{key:"onEnable",value:function(e){this.log("colorpickerEnable")}}]),t}(u.default);t.default=f},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};n(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,p.default.extend(!0,{},{template:'
',showText:!0,format:e.format},o)));return r.element=(0,p.default)(r.options.template),r.elementInner=r.element.find("div"),r}return a(t,e),l(t,[{key:"onCreate",value:function(e){s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onCreate",this).call(this,e),this.colorpicker.picker.append(this.element)}},{key:"onUpdate",value:function(e){if(s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onUpdate",this).call(this,e),!e.color)return void this.elementInner.css("backgroundColor",null).css("color",null).html("");this.elementInner.css("backgroundColor",e.color.toRgbString()),this.options.showText&&(this.elementInner.html(e.color.string(this.options.format||this.colorpicker.format)),e.color.isDark()&&e.color.alpha>.5?this.elementInner.css("color","white"):this.elementInner.css("color","black"))}}]),t}(u.default);t.default=f},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var o=0;o\n
\n
',swatchTemplate:''},d=function(e){function t(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,p.default.extend(!0,{},f,o)));return r.element=null,r}return a(t,e),l(t,[{key:"isEnabled",value:function(){return this.getLength()>0}},{key:"onCreate",value:function(e){s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onCreate",this).call(this,e),this.isEnabled()&&(this.element=(0,p.default)(this.options.barTemplate),this.load(),this.colorpicker.picker.append(this.element))}},{key:"load",value:function(){var e=this,t=this.colorpicker,o=this.element.find(".colorpicker-swatches--inner"),r=!0===this.options.namesAsValues&&!Array.isArray(this.colors);o.empty(),p.default.each(this.colors,function(n,i){var a=(0,p.default)(e.options.swatchTemplate).attr("data-name",n).attr("data-value",i).attr("title",r?n+": "+i:i).on("mousedown.colorpicker touchstart.colorpicker",function(e){var o=(0,p.default)(this);t.setValue(r?o.attr("data-name"):o.attr("data-value"))});a.find(".colorpicker-swatch--inner").css("background-color",i),o.append(a)}),o.append((0,p.default)(''))}}]),t}(u.default);t.default=d},function(e,t,o){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var o=0;o0)}},{key:"onClickingInside",value:function(e){this.clicking=this.isClickingInside(e)}},{key:"createPopover",value:function(){var e=this.colorpicker;this.popoverTarget=this.hasAddon?this.addon:this.input,e.picker.addClass("colorpicker-bs-popover-content"),this.popoverTarget.popover(l.default.extend(!0,{},c.default.popover,e.options.popover,{trigger:"manual",content:e.picker,html:!0})),this.popoverTip=(0,l.default)(this.popoverTarget.popover("getTipElement").data("bs.popover").tip),this.popoverTip.addClass("colorpicker-bs-popover"),this.popoverTarget.on("shown.bs.popover",l.default.proxy(this.fireShow,this)),this.popoverTarget.on("hidden.bs.popover",l.default.proxy(this.fireHide,this))}},{key:"reposition",value:function(e){this.popoverTarget&&this.isVisible()&&this.popoverTarget.popover("update")}},{key:"toggle",value:function(e){this.isVisible()?this.hide(e):this.show(e)}},{key:"show",value:function(e){if(!(this.isVisible()||this.showing||this.hidding)){this.showing=!0,this.hidding=!1,this.clicking=!1;var t=this.colorpicker;t.lastEvent.alias="show",t.lastEvent.e=e,e&&(!this.hasInput||"color"===this.input.attr("type"))&&e&&e.preventDefault&&(e.stopPropagation(),e.preventDefault()),this.isPopover&&(0,l.default)(this.root).on("resize.colorpicker",l.default.proxy(this.reposition,this)),t.picker.addClass("colorpicker-visible").removeClass("colorpicker-hidden"),this.popoverTarget?this.popoverTarget.popover("show"):this.fireShow()}}},{key:"fireShow",value:function(){this.hidding=!1,this.showing=!1,this.isPopover&&((0,l.default)(this.root.document).on("mousedown.colorpicker touchstart.colorpicker",l.default.proxy(this.hide,this)),(0,l.default)(this.root.document).on("mousedown.colorpicker touchstart.colorpicker",l.default.proxy(this.onClickingInside,this))),this.colorpicker.trigger("colorpickerShow")}},{key:"hide",value:function(e){if(!(this.isHidden()||this.showing||this.hidding)){var t=this.colorpicker,o=this.clicking||this.isClickingInside(e);if(this.hidding=!0,this.showing=!1,this.clicking=!1,t.lastEvent.alias="hide",t.lastEvent.e=e,o)return void(this.hidding=!1);this.popoverTarget?this.popoverTarget.popover("hide"):this.fireHide()}}},{key:"fireHide",value:function(){this.hidding=!1,this.showing=!1;var e=this.colorpicker;e.picker.addClass("colorpicker-hidden").removeClass("colorpicker-visible"),(0,l.default)(this.root).off("resize.colorpicker",l.default.proxy(this.reposition,this)),(0,l.default)(this.root.document).off("mousedown.colorpicker touchstart.colorpicker",l.default.proxy(this.hide,this)),(0,l.default)(this.root.document).off("mousedown.colorpicker touchstart.colorpicker",l.default.proxy(this.onClickingInside,this)),e.trigger("colorpickerHide")}},{key:"focus",value:function(){return this.hasAddon?this.addon.focus():!!this.hasInput&&this.input.focus()}},{key:"isVisible",value:function(){return this.colorpicker.picker.hasClass("colorpicker-visible")&&!this.colorpicker.picker.hasClass("colorpicker-hidden")}},{key:"isHidden",value:function(){return this.colorpicker.picker.hasClass("colorpicker-hidden")&&!this.colorpicker.picker.hasClass("colorpicker-visible")}},{key:"input",get:function(){return this.colorpicker.inputHandler.input}},{key:"hasInput",get:function(){return this.colorpicker.inputHandler.hasInput()}},{key:"addon",get:function(){return this.colorpicker.addonHandler.addon}},{key:"hasAddon",get:function(){return this.colorpicker.addonHandler.hasAddon()}},{key:"isPopover",get:function(){return!this.colorpicker.options.inline&&!!this.popoverTip}}]),e}();t.default=u},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:null;return(e=e||this.colorpicker.colorHandler.getColorString())?(e=this.colorpicker.colorHandler.resolveColorDelegate(e,!1),!1===this.colorpicker.options.useHashPrefix&&(e=e.replace(/^#/g,"")),e):""}},{key:"hasInput",value:function(){return!1!==this.input}},{key:"isEnabled",value:function(){return this.hasInput()&&!this.isDisabled()}},{key:"isDisabled",value:function(){return this.hasInput()&&!0===this.input.prop("disabled")}},{key:"disable",value:function(){this.hasInput()&&this.input.prop("disabled",!0)}},{key:"enable",value:function(){this.hasInput()&&this.input.prop("disabled",!1)}},{key:"update",value:function(){this.hasInput()&&(!1===this.colorpicker.options.autoInputFallback&&this.colorpicker.colorHandler.isInvalidColor()||this.setValue(this.getFormattedColor()))}},{key:"onchange",value:function(e){this.colorpicker.lastEvent.alias="input.change",this.colorpicker.lastEvent.e=e;var t=this.getValue();t!==e.value&&this.colorpicker.setValue(t)}},{key:"onkeyup",value:function(e){this.colorpicker.lastEvent.alias="input.keyup",this.colorpicker.lastEvent.e=e;var t=this.getValue();t!==e.value&&this.colorpicker.setValue(t)}}]),e}();t.default=u},function(e,t,o){"use strict";function r(e,t){if(!(this instanceof r))return new r(e,t);if(t&&t in f&&(t=null),t&&!(t in h))throw new Error("Unknown model: "+t);var o,n;if(e)if(e instanceof r)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var i=u.get(e);if(null===i)throw new Error("Unable to parse color from string: "+e);this.model=i.model,n=h[this.model].channels,this.color=i.value.slice(0,n),this.valpha="number"==typeof i.value[n]?i.value[n]:1}else if(e.length){this.model=t||"rgb",n=h[this.model].channels;var a=p.call(e,0,n);this.color=c(a,n),this.valpha="number"==typeof e[n]?e[n]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var l=Object.keys(e);"alpha"in e&&(l.splice(l.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var s=l.sort().join("");if(!(s in d))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=d[s];var k=h[this.model].labels,g=[];for(o=0;oo?(t+.05)/(o+.05):(o+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return r.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),o=t.color[0];return o=(o+e)%360,o=o<0?360+o:o,t.color[0]=o,t},mix:function(e,t){var o=e.rgb(),n=this.rgb(),i=void 0===t?.5:t,a=2*i-1,l=o.alpha()-n.alpha(),s=((a*l==-1?a:(a+l)/(1+a*l))+1)/2,c=1-s;return r.rgb(s*o.red()+c*n.red(),s*o.green()+c*n.green(),s*o.blue()+c*n.blue(),o.alpha()*i+n.alpha()*(1-i))}},Object.keys(h).forEach(function(e){if(-1===f.indexOf(e)){var t=h[e].channels;r.prototype[e]=function(){if(this.model===e)return new r(this);if(arguments.length)return new r(arguments,e);var o="number"==typeof arguments[t]?t:this.valpha;return new r(s(h[this.model][e].raw(this.color)).concat(o),e)},r[e]=function(o){return"number"==typeof o&&(o=c(p.call(arguments),t)),new r(o,e)}}}),e.exports=r},function(e,t,o){function r(e,t,o){return Math.min(Math.max(t,e),o)}function n(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var i=o(5),a=o(18),l={};for(var s in i)i.hasOwnProperty(s)&&(l[i[s]]=s);var c=e.exports={to:{}};c.get=function(e){var t,o,r=e.substring(0,3).toLowerCase();switch(r){case"hsl":t=c.get.hsl(e),o="hsl";break;case"hwb":t=c.get.hwb(e),o="hwb";break;default:t=c.get.rgb(e),o="rgb"}return t?{model:o,value:t}:null},c.get.rgb=function(e){if(!e)return null;var t,o,n,a=/^#([a-f0-9]{3,4})$/i,l=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,s=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,c=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,u=/(\D+)/,h=[0,0,0,1];if(t=e.match(l)){for(n=t[2],t=t[1],o=0;o<3;o++){var p=2*o;h[o]=parseInt(t.slice(p,p+2),16)}n&&(h[3]=Math.round(parseInt(n,16)/255*100)/100)}else if(t=e.match(a)){for(t=t[1],n=t[3],o=0;o<3;o++)h[o]=parseInt(t[o]+t[o],16);n&&(h[3]=Math.round(parseInt(n+n,16)/255*100)/100)}else if(t=e.match(s)){for(o=0;o<3;o++)h[o]=parseInt(t[o+1],0);t[4]&&(h[3]=parseFloat(t[4]))}else{if(!(t=e.match(c)))return(t=e.match(u))?"transparent"===t[1]?[0,0,0,0]:(h=i[t[1]])?(h[3]=1,h):null:null;for(o=0;o<3;o++)h[o]=Math.round(2.55*parseFloat(t[o+1]));t[4]&&(h[3]=parseFloat(t[4]))}for(o=0;o<3;o++)h[o]=r(h[o],0,255);return h[3]=r(h[3],0,1),h},c.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,o=e.match(t);if(o){var n=parseFloat(o[4]);return[(parseFloat(o[1])%360+360)%360,r(parseFloat(o[2]),0,100),r(parseFloat(o[3]),0,100),r(isNaN(n)?1:n,0,1)]}return null},c.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,o=e.match(t);if(o){var n=parseFloat(o[4]);return[(parseFloat(o[1])%360+360)%360,r(parseFloat(o[2]),0,100),r(parseFloat(o[3]),0,100),r(isNaN(n)?1:n,0,1)]}return null},c.to.hex=function(){var e=a(arguments);return"#"+n(e[0])+n(e[1])+n(e[2])+(e[3]<1?n(Math.round(255*e[3])):"")},c.to.rgb=function(){var e=a(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},c.to.rgb.percent=function(){var e=a(arguments),t=Math.round(e[0]/255*100),o=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+o+"%, "+r+"%)":"rgba("+t+"%, "+o+"%, "+r+"%, "+e[3]+")"},c.to.hsl=function(){var e=a(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},c.to.hwb=function(){var e=a(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},c.to.keyword=function(e){return l[e.slice(0,3)]}},function(e,t,o){"use strict";var r=o(19),n=Array.prototype.concat,i=Array.prototype.slice,a=e.exports=function(e){for(var t=[],o=0,a=e.length;o=0&&e.splice instanceof Function)}},function(e,t,o){function r(e){var t=function(t){return void 0===t||null===t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function n(e){var t=function(t){if(void 0===t||null===t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var o=e(t);if("object"==typeof o)for(var r=o.length,n=0;n1&&void 0!==arguments[1])||arguments[1],o=new c.default(this.resolveColorDelegate(e),this.format);return o.isValid()||(t&&(o=this.getFallbackColor()),this.colorpicker.trigger("colorpickerInvalid",o,e)),this.isAlphaEnabled()||(o.alpha=1),o}},{key:"getFallbackColor",value:function(){if(this.fallback&&this.fallback===this.color)return this.color;var e=this.resolveColorDelegate(this.fallback),t=new c.default(e,this.format);if(!t.isValid())throw new Error("The fallback color is invalid.");return t}},{key:"assureColor",value:function(){return this.hasColor()||(this.color=this.getFallbackColor()),this.color}},{key:"resolveColorDelegate",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!1;return l.default.each(this.colorpicker.extensions,function(r,n){!1===o&&(o=n.resolveColor(e,t))}),o||e}},{key:"isInvalidColor",value:function(){return!this.hasColor()||!this.color.isValid()}},{key:"isAlphaEnabled",value:function(){return!1!==this.colorpicker.options.useAlpha}},{key:"hasColor",value:function(){return this.color instanceof c.default}},{key:"fallback",get:function(){return this.colorpicker.options.fallbackColor?this.colorpicker.options.fallbackColor:this.hasColor()?this.color:null}},{key:"format",get:function(){return this.colorpicker.options.format?this.colorpicker.options.format:this.hasColor()&&this.color.hasTransparency()&&this.color.format.match(/^hex/)?this.isAlphaEnabled()?"rgba":"hex":this.hasColor()?this.color.format:"rgb"}},{key:"color",get:function(){return this.colorpicker.element.data("color")},set:function(e){this.colorpicker.element.data("color",e),e instanceof c.default&&"auto"===this.colorpicker.options.format&&(this.colorpicker.options.format=this.color.format)}}]),e}();t.default=u},function(e,t,o){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var o=0;o0?o.css(t):this.addon.css(t)}}}]),e}();t.default=i}])}); +//# sourceMappingURL=bootstrap-colorpicker.min.js.map \ No newline at end of file diff --git a/data/example1.ann b/demo/data/example1.ann similarity index 100% rename from data/example1.ann rename to demo/data/example1.ann diff --git a/demo/data/example2.ann b/demo/data/example2.ann new file mode 100644 index 0000000..ade10a8 --- /dev/null +++ b/demo/data/example2.ann @@ -0,0 +1,13 @@ +unlockable a b d e f +T1 BOUND 0 2 un +T2 FREE 2 6 lock +T3 BOUND 6 10 able +R1 lockable controlled:T2 controller:T3 +R2 unlockable controller:T1 controlled:R1 +T4 A 11 12 a +T5 B 13 14 b +R3 LongTestLabel testA:T4 testB:T5 +T6 D 15 16 d +T7 E 17 18 e +T8 F 19 20 f +E1 EventTest:T7 Argument1:T6 Argument2:T8 \ No newline at end of file diff --git a/data/example3.ann b/demo/data/example3.ann similarity index 100% rename from data/example3.ann rename to demo/data/example3.ann diff --git a/demo/data/paragraph-1-odin.json b/demo/data/paragraph-1-odin.json new file mode 100644 index 0000000..b22973e --- /dev/null +++ b/demo/data/paragraph-1-odin.json @@ -0,0 +1,1889 @@ +{ + "documents" : { + "-781013046" : { + "id" : "paragraph-1-odin", + "text" : "Even more than Ras, ASPP2 is common, as is its ubiquitination.\nTo address the effect of Ras ubiquitination on its binding to PI3K and Raf family members, either total G12V-K-Ras or the ubiquitinated subfraction of G12V-K-Ras was immunoprecipitated.\nMuch work has been done on ASPP2. It is known that Ras binds it.\nRas and Mek are in proximity, and they phosphorylate ASPP2.\nRas and Mek are in proximity, and ASPP2 phosphorylates them.", + "sentences" : [ { + "words" : [ "Even", "more", "than", "Ras", ",", "ASPP2", "is", "common", ",", "as", "is", "its", "ubiquitination", "." ], + "startOffsets" : [ 0, 5, 10, 15, 18, 20, 26, 29, 35, 37, 40, 43, 47, 61 ], + "endOffsets" : [ 4, 9, 14, 18, 19, 25, 28, 35, 36, 39, 42, 46, 61, 62 ], + "raw" : [ "Even", "more", "than", "Ras", ",", "ASPP2", "is", "common", ",", "as", "is", "its", "ubiquitination", "." ], + "tags" : [ "RB", "JJR", "IN", "NN", ",", "NN", "VBZ", "JJ", ",", "IN", "VBZ", "PRP$", "NN", "." ], + "lemmas" : [ "even", "more", "than", "ras", ",", "aspp2", "be", "common", ",", "as", "be", "its", "ubiquitination", "." ], + "entities" : [ "O", "O", "O", "B-Family", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "O", "O", "O", "O" ], + "chunks" : [ "B-NP", "I-NP", "B-PP", "B-NP", "O", "B-NP", "B-VP", "B-ADJP", "O", "B-SBAR", "B-VP", "B-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 1, + "destination" : 0, + "relation" : "advmod" + }, { + "source" : 1, + "destination" : 3, + "relation" : "nmod_than" + }, { + "source" : 3, + "destination" : 2, + "relation" : "case" + }, { + "source" : 3, + "destination" : 5, + "relation" : "appos" + }, { + "source" : 7, + "destination" : 1, + "relation" : "nsubj" + }, { + "source" : 7, + "destination" : 6, + "relation" : "cop" + }, { + "source" : 7, + "destination" : 12, + "relation" : "advcl_as" + }, { + "source" : 12, + "destination" : 9, + "relation" : "mark" + }, { + "source" : 12, + "destination" : 10, + "relation" : "cop" + }, { + "source" : 12, + "destination" : 11, + "relation" : "nmod:poss" + } ], + "roots" : [ 7 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 1, + "destination" : 0, + "relation" : "advmod" + }, { + "source" : 1, + "destination" : 3, + "relation" : "nmod" + }, { + "source" : 3, + "destination" : 2, + "relation" : "case" + }, { + "source" : 3, + "destination" : 5, + "relation" : "appos" + }, { + "source" : 7, + "destination" : 1, + "relation" : "nsubj" + }, { + "source" : 7, + "destination" : 6, + "relation" : "cop" + }, { + "source" : 7, + "destination" : 12, + "relation" : "advcl" + }, { + "source" : 12, + "destination" : 9, + "relation" : "mark" + }, { + "source" : 12, + "destination" : 10, + "relation" : "cop" + }, { + "source" : 12, + "destination" : 11, + "relation" : "nmod:poss" + } ], + "roots" : [ 7 ] + } + } + }, { + "words" : [ "To", "address", "the", "effect", "of", "Ras", "ubiquitination", "on", "its", "binding", "to", "PI3K", "and", "Raf", "family", "members", ",", "either", "total", "G12V-K-Ras", "or", "the", "ubiquitinated", "subfraction", "of", "G12V-K-Ras", "was", "immunoprecipitated", "." ], + "startOffsets" : [ 63, 66, 74, 78, 85, 88, 92, 107, 110, 114, 122, 125, 130, 134, 138, 145, 152, 154, 161, 167, 178, 181, 185, 199, 211, 214, 225, 229, 247 ], + "endOffsets" : [ 65, 73, 77, 84, 87, 91, 106, 109, 113, 121, 124, 129, 133, 137, 144, 152, 153, 160, 166, 177, 180, 184, 198, 210, 213, 224, 228, 247, 248 ], + "raw" : [ "To", "address", "the", "effect", "of", "Ras", "ubiquitination", "on", "its", "binding", "to", "PI3K", "and", "Raf", "family", "members", ",", "either", "total", "G12V-K-Ras", "or", "the", "ubiquitinated", "subfraction", "of", "G12V-K-Ras", "was", "immunoprecipitated", "." ], + "tags" : [ "TO", "VB", "DT", "NN", "IN", "NN", "NN", "IN", "PRP$", "NN", "TO", "NN", "CC", "NN", "NN", "NNS", ",", "CC", "JJ", "NNS", "CC", "DT", "JJ", "NN", "IN", "NN", "VBD", "VBN", "." ], + "lemmas" : [ "to", "address", "the", "effect", "of", "ras", "ubiquitination", "on", "its", "binding", "to", "pi3k", "and", "raf", "family", "member", ",", "either", "total", "g12v-k-ra", "or", "the", "ubiquitinated", "subfraction", "of", "g12v-k-ras", "be", "immunoprecipitate", "." ], + "entities" : [ "O", "O", "O", "O", "O", "B-Family", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "B-Family", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "O", "O" ], + "chunks" : [ "B-VP", "I-VP", "B-NP", "I-NP", "B-PP", "B-NP", "I-NP", "B-PP", "B-NP", "I-NP", "B-PP", "B-NP", "I-NP", "I-NP", "I-NP", "I-NP", "O", "O", "B-NP", "I-NP", "O", "B-NP", "I-NP", "I-NP", "B-PP", "B-NP", "B-VP", "I-VP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 1, + "destination" : 3, + "relation" : "dobj" + }, { + "source" : 1, + "destination" : 9, + "relation" : "nmod_on" + }, { + "source" : 1, + "destination" : 15, + "relation" : "nmod_to" + }, { + "source" : 1, + "destination" : 0, + "relation" : "mark" + }, { + "source" : 3, + "destination" : 2, + "relation" : "det" + }, { + "source" : 3, + "destination" : 6, + "relation" : "nmod_of" + }, { + "source" : 6, + "destination" : 4, + "relation" : "case" + }, { + "source" : 6, + "destination" : 5, + "relation" : "compound" + }, { + "source" : 9, + "destination" : 7, + "relation" : "case" + }, { + "source" : 9, + "destination" : 8, + "relation" : "nmod:poss" + }, { + "source" : 11, + "destination" : 12, + "relation" : "cc" + }, { + "source" : 11, + "destination" : 13, + "relation" : "conj_and" + }, { + "source" : 15, + "destination" : 10, + "relation" : "case" + }, { + "source" : 15, + "destination" : 11, + "relation" : "compound" + }, { + "source" : 15, + "destination" : 13, + "relation" : "compound" + }, { + "source" : 15, + "destination" : 14, + "relation" : "compound" + }, { + "source" : 19, + "destination" : 18, + "relation" : "amod" + }, { + "source" : 19, + "destination" : 20, + "relation" : "cc" + }, { + "source" : 19, + "destination" : 23, + "relation" : "conj_or" + }, { + "source" : 19, + "destination" : 17, + "relation" : "cc:preconj" + }, { + "source" : 23, + "destination" : 21, + "relation" : "det" + }, { + "source" : 23, + "destination" : 22, + "relation" : "amod" + }, { + "source" : 23, + "destination" : 25, + "relation" : "nmod_of" + }, { + "source" : 25, + "destination" : 24, + "relation" : "case" + }, { + "source" : 27, + "destination" : 19, + "relation" : "nsubjpass" + }, { + "source" : 27, + "destination" : 23, + "relation" : "nsubjpass" + }, { + "source" : 27, + "destination" : 26, + "relation" : "auxpass" + }, { + "source" : 27, + "destination" : 1, + "relation" : "advcl_to" + } ], + "roots" : [ 27 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 1, + "destination" : 3, + "relation" : "dobj" + }, { + "source" : 1, + "destination" : 9, + "relation" : "nmod" + }, { + "source" : 1, + "destination" : 15, + "relation" : "nmod" + }, { + "source" : 1, + "destination" : 0, + "relation" : "mark" + }, { + "source" : 3, + "destination" : 2, + "relation" : "det" + }, { + "source" : 3, + "destination" : 6, + "relation" : "nmod" + }, { + "source" : 6, + "destination" : 4, + "relation" : "case" + }, { + "source" : 6, + "destination" : 5, + "relation" : "compound" + }, { + "source" : 9, + "destination" : 7, + "relation" : "case" + }, { + "source" : 9, + "destination" : 8, + "relation" : "nmod:poss" + }, { + "source" : 11, + "destination" : 12, + "relation" : "cc" + }, { + "source" : 11, + "destination" : 13, + "relation" : "conj" + }, { + "source" : 15, + "destination" : 10, + "relation" : "case" + }, { + "source" : 15, + "destination" : 11, + "relation" : "compound" + }, { + "source" : 15, + "destination" : 14, + "relation" : "compound" + }, { + "source" : 19, + "destination" : 18, + "relation" : "amod" + }, { + "source" : 19, + "destination" : 20, + "relation" : "cc" + }, { + "source" : 19, + "destination" : 23, + "relation" : "conj" + }, { + "source" : 19, + "destination" : 17, + "relation" : "cc:preconj" + }, { + "source" : 23, + "destination" : 21, + "relation" : "det" + }, { + "source" : 23, + "destination" : 22, + "relation" : "amod" + }, { + "source" : 23, + "destination" : 25, + "relation" : "nmod" + }, { + "source" : 25, + "destination" : 24, + "relation" : "case" + }, { + "source" : 27, + "destination" : 19, + "relation" : "nsubjpass" + }, { + "source" : 27, + "destination" : 26, + "relation" : "auxpass" + }, { + "source" : 27, + "destination" : 1, + "relation" : "advcl" + } ], + "roots" : [ 27 ] + } + } + }, { + "words" : [ "Much", "work", "has", "been", "done", "on", "ASPP2", "." ], + "startOffsets" : [ 249, 254, 259, 263, 268, 273, 276, 281 ], + "endOffsets" : [ 253, 258, 262, 267, 272, 275, 281, 282 ], + "raw" : [ "Much", "work", "has", "been", "done", "on", "ASPP2", "." ], + "tags" : [ "JJ", "NN", "VBZ", "VBN", "VBN", "IN", "NN", "." ], + "lemmas" : [ "much", "work", "have", "be", "do", "on", "aspp2", "." ], + "entities" : [ "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O" ], + "chunks" : [ "B-NP", "I-NP", "B-VP", "I-VP", "I-VP", "B-PP", "B-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 6, + "destination" : 5, + "relation" : "case" + }, { + "source" : 1, + "destination" : 0, + "relation" : "amod" + }, { + "source" : 4, + "destination" : 6, + "relation" : "nmod_on" + }, { + "source" : 4, + "destination" : 1, + "relation" : "nsubjpass" + }, { + "source" : 4, + "destination" : 2, + "relation" : "aux" + }, { + "source" : 4, + "destination" : 3, + "relation" : "auxpass" + } ], + "roots" : [ 4 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 6, + "destination" : 5, + "relation" : "case" + }, { + "source" : 1, + "destination" : 0, + "relation" : "amod" + }, { + "source" : 4, + "destination" : 6, + "relation" : "nmod" + }, { + "source" : 4, + "destination" : 1, + "relation" : "nsubjpass" + }, { + "source" : 4, + "destination" : 2, + "relation" : "aux" + }, { + "source" : 4, + "destination" : 3, + "relation" : "auxpass" + } ], + "roots" : [ 4 ] + } + } + }, { + "words" : [ "It", "is", "known", "that", "Ras", "binds", "it", "." ], + "startOffsets" : [ 283, 286, 289, 295, 300, 304, 310, 312 ], + "endOffsets" : [ 285, 288, 294, 299, 303, 309, 312, 313 ], + "raw" : [ "It", "is", "known", "that", "Ras", "binds", "it", "." ], + "tags" : [ "PRP", "VBZ", "VBN", "IN", "NN", "VBZ", "PRP", "." ], + "lemmas" : [ "it", "be", "know", "that", "ras", "bind", "it", "." ], + "entities" : [ "O", "O", "O", "O", "B-Family", "O", "O", "O" ], + "chunks" : [ "B-NP", "B-VP", "I-VP", "B-SBAR", "B-NP", "B-VP", "B-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 2, + "destination" : 0, + "relation" : "nsubjpass" + }, { + "source" : 2, + "destination" : 1, + "relation" : "auxpass" + }, { + "source" : 2, + "destination" : 5, + "relation" : "ccomp" + }, { + "source" : 5, + "destination" : 3, + "relation" : "mark" + }, { + "source" : 5, + "destination" : 4, + "relation" : "nsubj" + }, { + "source" : 5, + "destination" : 6, + "relation" : "dobj" + } ], + "roots" : [ 2 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 2, + "destination" : 0, + "relation" : "nsubjpass" + }, { + "source" : 2, + "destination" : 1, + "relation" : "auxpass" + }, { + "source" : 2, + "destination" : 5, + "relation" : "ccomp" + }, { + "source" : 5, + "destination" : 3, + "relation" : "mark" + }, { + "source" : 5, + "destination" : 4, + "relation" : "nsubj" + }, { + "source" : 5, + "destination" : 6, + "relation" : "dobj" + } ], + "roots" : [ 2 ] + } + } + }, { + "words" : [ "Ras", "and", "Mek", "are", "in", "proximity", ",", "and", "they", "phosphorylate", "ASPP2", "." ], + "startOffsets" : [ 314, 318, 322, 326, 330, 333, 342, 344, 348, 353, 367, 372 ], + "endOffsets" : [ 317, 321, 325, 329, 332, 342, 343, 347, 352, 366, 372, 373 ], + "raw" : [ "Ras", "and", "Mek", "are", "in", "proximity", ",", "and", "they", "phosphorylate", "ASPP2", "." ], + "tags" : [ "NN", "CC", "NN", "VBP", "IN", "NN", ",", "CC", "PRP", "VB", "NN", "." ], + "lemmas" : [ "ras", "and", "mek", "be", "in", "proximity", ",", "and", "they", "phosphorylate", "aspp2", "." ], + "entities" : [ "B-Family", "O", "B-Family", "O", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O" ], + "chunks" : [ "B-NP", "I-NP", "I-NP", "B-VP", "B-PP", "B-NP", "O", "O", "B-NP", "B-VP", "B-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 0, + "destination" : 1, + "relation" : "cc" + }, { + "source" : 0, + "destination" : 2, + "relation" : "conj_and" + }, { + "source" : 5, + "destination" : 0, + "relation" : "nsubj" + }, { + "source" : 5, + "destination" : 2, + "relation" : "nsubj" + }, { + "source" : 5, + "destination" : 3, + "relation" : "cop" + }, { + "source" : 5, + "destination" : 4, + "relation" : "case" + }, { + "source" : 5, + "destination" : 7, + "relation" : "cc" + }, { + "source" : 5, + "destination" : 9, + "relation" : "conj_and" + }, { + "source" : 9, + "destination" : 8, + "relation" : "nsubj" + }, { + "source" : 9, + "destination" : 10, + "relation" : "dobj" + } ], + "roots" : [ 5 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 0, + "destination" : 1, + "relation" : "cc" + }, { + "source" : 0, + "destination" : 2, + "relation" : "conj" + }, { + "source" : 5, + "destination" : 0, + "relation" : "nsubj" + }, { + "source" : 5, + "destination" : 3, + "relation" : "cop" + }, { + "source" : 5, + "destination" : 4, + "relation" : "case" + }, { + "source" : 5, + "destination" : 7, + "relation" : "cc" + }, { + "source" : 5, + "destination" : 9, + "relation" : "conj" + }, { + "source" : 9, + "destination" : 8, + "relation" : "nsubj" + }, { + "source" : 9, + "destination" : 10, + "relation" : "dobj" + } ], + "roots" : [ 5 ] + } + } + }, { + "words" : [ "Ras", "and", "Mek", "are", "in", "proximity", ",", "and", "ASPP2", "phosphorylates", "them", "." ], + "startOffsets" : [ 374, 378, 382, 386, 390, 393, 402, 404, 408, 414, 429, 433 ], + "endOffsets" : [ 377, 381, 385, 389, 392, 402, 403, 407, 413, 428, 433, 434 ], + "raw" : [ "Ras", "and", "Mek", "are", "in", "proximity", ",", "and", "ASPP2", "phosphorylates", "them", "." ], + "tags" : [ "NN", "CC", "NN", "VBP", "IN", "NN", ",", "CC", "NN", "VBZ", "PRP", "." ], + "lemmas" : [ "ras", "and", "mek", "be", "in", "proximity", ",", "and", "aspp2", "phosphorylate", "they", "." ], + "entities" : [ "B-Family", "O", "B-Family", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "O", "O" ], + "chunks" : [ "B-NP", "I-NP", "I-NP", "B-VP", "B-PP", "B-NP", "O", "O", "B-NP", "B-VP", "B-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 0, + "destination" : 1, + "relation" : "cc" + }, { + "source" : 0, + "destination" : 2, + "relation" : "conj_and" + }, { + "source" : 5, + "destination" : 0, + "relation" : "nsubj" + }, { + "source" : 5, + "destination" : 2, + "relation" : "nsubj" + }, { + "source" : 5, + "destination" : 3, + "relation" : "cop" + }, { + "source" : 5, + "destination" : 4, + "relation" : "case" + }, { + "source" : 5, + "destination" : 7, + "relation" : "cc" + }, { + "source" : 5, + "destination" : 9, + "relation" : "conj_and" + }, { + "source" : 9, + "destination" : 8, + "relation" : "nsubj" + }, { + "source" : 9, + "destination" : 10, + "relation" : "dobj" + } ], + "roots" : [ 5 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 0, + "destination" : 1, + "relation" : "cc" + }, { + "source" : 0, + "destination" : 2, + "relation" : "conj" + }, { + "source" : 5, + "destination" : 0, + "relation" : "nsubj" + }, { + "source" : 5, + "destination" : 3, + "relation" : "cop" + }, { + "source" : 5, + "destination" : 4, + "relation" : "case" + }, { + "source" : 5, + "destination" : 7, + "relation" : "cc" + }, { + "source" : 5, + "destination" : 9, + "relation" : "conj" + }, { + "source" : 9, + "destination" : 8, + "relation" : "nsubj" + }, { + "source" : 9, + "destination" : 10, + "relation" : "dobj" + } ], + "roots" : [ 5 ] + } + } + } ] + } + }, + "mentions" : [ { + "type" : "RelationMention", + "id" : "R:-1698365500", + "text" : "they phosphorylate ASPP2", + "labels" : [ "Positive_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "arguments" : { + "controlled" : [ { + "type" : "EventMention", + "id" : "E:-1468407621", + "text" : "phosphorylate ASPP2", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:1673215413", + "text" : "phosphorylate", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 9, + "end" : 10 + }, + "characterStartOffset" : 353, + "characterEndOffset" : 366, + "sentence" : 4, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_verb" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:-340323655", + "text" : "ASPP2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 367, + "characterEndOffset" : 372, + "sentence" : 4, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "theme" : { + "T:-340323655" : [ { + "source" : 9, + "destination" : 10, + "relation" : "dobj" + } ] + }, + "cause" : { + "T:130910852" : [ { + "source" : 9, + "destination" : 8, + "relation" : "nsubj" + } ] + } + }, + "tokenInterval" : { + "start" : 9, + "end" : 11 + }, + "characterStartOffset" : 353, + "characterEndOffset" : 372, + "sentence" : 4, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_verb" + } ], + "controller" : [ { + "type" : "TextBoundMention", + "id" : "T:130910852", + "text" : "they", + "labels" : [ "Generic_entity", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 9 + }, + "characterStartOffset" : 348, + "characterEndOffset" : 352, + "sentence" : 4, + "document" : "-781013046", + "keep" : true, + "foundBy" : "PRP" + } ] + }, + "paths" : { + "theme" : { + "T:-340323655" : [ { + "source" : 9, + "destination" : 10, + "relation" : "dobj" + } ] + }, + "cause" : { + "T:130910852" : [ { + "source" : 9, + "destination" : 8, + "relation" : "nsubj" + } ] + } + }, + "tokenInterval" : { + "start" : 8, + "end" : 11 + }, + "characterStartOffset" : 348, + "characterEndOffset" : 372, + "sentence" : 4, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_verb + toRelationMention, pronominalMatch" + }, { + "type" : "RelationMention", + "id" : "R:-1698365500", + "text" : "they phosphorylate ASPP2", + "labels" : [ "Positive_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "arguments" : { + "controlled" : [ { + "type" : "EventMention", + "id" : "E:-1468407621", + "text" : "phosphorylate ASPP2", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:1673215413", + "text" : "phosphorylate", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 9, + "end" : 10 + }, + "characterStartOffset" : 353, + "characterEndOffset" : 366, + "sentence" : 4, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_verb" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:-340323655", + "text" : "ASPP2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 367, + "characterEndOffset" : 372, + "sentence" : 4, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "theme" : { + "T:-340323655" : [ { + "source" : 9, + "destination" : 10, + "relation" : "dobj" + } ] + }, + "cause" : { + "T:130910852" : [ { + "source" : 9, + "destination" : 8, + "relation" : "nsubj" + } ] + } + }, + "tokenInterval" : { + "start" : 9, + "end" : 11 + }, + "characterStartOffset" : 353, + "characterEndOffset" : 372, + "sentence" : 4, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_verb" + } ], + "controller" : [ { + "type" : "TextBoundMention", + "id" : "T:130910852", + "text" : "they", + "labels" : [ "Generic_entity", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 9 + }, + "characterStartOffset" : 348, + "characterEndOffset" : 352, + "sentence" : 4, + "document" : "-781013046", + "keep" : true, + "foundBy" : "PRP" + } ] + }, + "paths" : { + "theme" : { + "T:-340323655" : [ { + "source" : 9, + "destination" : 10, + "relation" : "dobj" + } ] + }, + "cause" : { + "T:130910852" : [ { + "source" : 9, + "destination" : 8, + "relation" : "nsubj" + } ] + } + }, + "tokenInterval" : { + "start" : 8, + "end" : 11 + }, + "characterStartOffset" : 348, + "characterEndOffset" : 372, + "sentence" : 4, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_verb + toRelationMention, pronominalMatch" + }, { + "type" : "RelationMention", + "id" : "R:-221070355", + "text" : "ASPP2 phosphorylates them", + "labels" : [ "Positive_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "arguments" : { + "controlled" : [ { + "type" : "EventMention", + "id" : "E:-1359397557", + "text" : "phosphorylates them", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-2046035757", + "text" : "phosphorylates", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 9, + "end" : 10 + }, + "characterStartOffset" : 414, + "characterEndOffset" : 428, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_verb" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:275032566", + "text" : "them", + "labels" : [ "Generic_entity", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 429, + "characterEndOffset" : 433, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "PRP" + } ] + }, + "paths" : { + "theme" : { + "T:275032566" : [ { + "source" : 9, + "destination" : 10, + "relation" : "dobj" + } ] + }, + "cause" : { + "T:-1409780683" : [ { + "source" : 9, + "destination" : 8, + "relation" : "nsubj" + } ] + } + }, + "tokenInterval" : { + "start" : 9, + "end" : 11 + }, + "characterStartOffset" : 414, + "characterEndOffset" : 433, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_verb, pronominalMatch" + } ], + "controller" : [ { + "type" : "TextBoundMention", + "id" : "T:-1409780683", + "text" : "ASPP2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 9 + }, + "characterStartOffset" : 408, + "characterEndOffset" : 413, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "theme" : { + "T:275032566" : [ { + "source" : 9, + "destination" : 10, + "relation" : "dobj" + } ] + }, + "cause" : { + "T:-1409780683" : [ { + "source" : 9, + "destination" : 8, + "relation" : "nsubj" + } ] + } + }, + "tokenInterval" : { + "start" : 8, + "end" : 11 + }, + "characterStartOffset" : 408, + "characterEndOffset" : 433, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_verb + toRelationMention" + }, { + "type" : "RelationMention", + "id" : "R:-221070355", + "text" : "ASPP2 phosphorylates them", + "labels" : [ "Positive_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "arguments" : { + "controlled" : [ { + "type" : "EventMention", + "id" : "E:-1359397557", + "text" : "phosphorylates them", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-2046035757", + "text" : "phosphorylates", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 9, + "end" : 10 + }, + "characterStartOffset" : 414, + "characterEndOffset" : 428, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_verb" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:275032566", + "text" : "them", + "labels" : [ "Generic_entity", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 429, + "characterEndOffset" : 433, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "PRP" + } ] + }, + "paths" : { + "theme" : { + "T:275032566" : [ { + "source" : 9, + "destination" : 10, + "relation" : "dobj" + } ] + }, + "cause" : { + "T:-1409780683" : [ { + "source" : 9, + "destination" : 8, + "relation" : "nsubj" + } ] + } + }, + "tokenInterval" : { + "start" : 9, + "end" : 11 + }, + "characterStartOffset" : 414, + "characterEndOffset" : 433, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_verb, pronominalMatch" + } ], + "controller" : [ { + "type" : "TextBoundMention", + "id" : "T:-1409780683", + "text" : "ASPP2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 9 + }, + "characterStartOffset" : 408, + "characterEndOffset" : 413, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "theme" : { + "T:275032566" : [ { + "source" : 9, + "destination" : 10, + "relation" : "dobj" + } ] + }, + "cause" : { + "T:-1409780683" : [ { + "source" : 9, + "destination" : 8, + "relation" : "nsubj" + } ] + } + }, + "tokenInterval" : { + "start" : 8, + "end" : 11 + }, + "characterStartOffset" : 408, + "characterEndOffset" : 433, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_verb + toRelationMention" + }, { + "type" : "TextBoundMention", + "id" : "T:-1720839462", + "text" : "Ras", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 3, + "end" : 4 + }, + "characterStartOffset" : 15, + "characterEndOffset" : 18, + "sentence" : 0, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-1363246015", + "text" : "ASPP2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 5, + "end" : 6 + }, + "characterStartOffset" : 20, + "characterEndOffset" : 25, + "sentence" : 0, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:461525015", + "text" : "its", + "labels" : [ "Generic_entity", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 11, + "end" : 12 + }, + "characterStartOffset" : 43, + "characterEndOffset" : 46, + "sentence" : 0, + "document" : "-781013046", + "keep" : true, + "foundBy" : "PRP" + }, { + "type" : "TextBoundMention", + "id" : "T:-1944113424", + "text" : "Ras", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 5, + "end" : 6 + }, + "characterStartOffset" : 88, + "characterEndOffset" : 91, + "sentence" : 1, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:833956869", + "text" : "its", + "labels" : [ "Generic_entity", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 9 + }, + "characterStartOffset" : 110, + "characterEndOffset" : 113, + "sentence" : 1, + "document" : "-781013046", + "keep" : true, + "foundBy" : "PRP" + }, { + "type" : "TextBoundMention", + "id" : "T:-923789966", + "text" : "PI3K", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 11, + "end" : 12 + }, + "characterStartOffset" : 125, + "characterEndOffset" : 129, + "sentence" : 1, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-716360932", + "text" : "Raf", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 13, + "end" : 14 + }, + "characterStartOffset" : 134, + "characterEndOffset" : 137, + "sentence" : 1, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-1499221597", + "text" : "G12V-K-Ras", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 25, + "end" : 26 + }, + "characterStartOffset" : 214, + "characterEndOffset" : 224, + "sentence" : 1, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-33751550", + "text" : "ASPP2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 6, + "end" : 7 + }, + "characterStartOffset" : 276, + "characterEndOffset" : 281, + "sentence" : 2, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:2038289698", + "text" : "Ras", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 4, + "end" : 5 + }, + "characterStartOffset" : 300, + "characterEndOffset" : 303, + "sentence" : 3, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:866073705", + "text" : "it", + "labels" : [ "Generic_entity", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 6, + "end" : 7 + }, + "characterStartOffset" : 310, + "characterEndOffset" : 312, + "sentence" : 3, + "document" : "-781013046", + "keep" : true, + "foundBy" : "PRP" + }, { + "type" : "TextBoundMention", + "id" : "T:2092194663", + "text" : "Ras", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 0, + "end" : 1 + }, + "characterStartOffset" : 314, + "characterEndOffset" : 317, + "sentence" : 4, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-2062691529", + "text" : "Mek", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 2, + "end" : 3 + }, + "characterStartOffset" : 322, + "characterEndOffset" : 325, + "sentence" : 4, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:130910852", + "text" : "they", + "labels" : [ "Generic_entity", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 9 + }, + "characterStartOffset" : 348, + "characterEndOffset" : 352, + "sentence" : 4, + "document" : "-781013046", + "keep" : true, + "foundBy" : "PRP" + }, { + "type" : "TextBoundMention", + "id" : "T:130910852", + "text" : "they", + "labels" : [ "Generic_entity", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 9 + }, + "characterStartOffset" : 348, + "characterEndOffset" : 352, + "sentence" : 4, + "document" : "-781013046", + "keep" : true, + "foundBy" : "PRP" + }, { + "type" : "TextBoundMention", + "id" : "T:-340323655", + "text" : "ASPP2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 367, + "characterEndOffset" : 372, + "sentence" : 4, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1444533467", + "text" : "Ras", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 0, + "end" : 1 + }, + "characterStartOffset" : 374, + "characterEndOffset" : 377, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1643102793", + "text" : "Mek", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 2, + "end" : 3 + }, + "characterStartOffset" : 382, + "characterEndOffset" : 385, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-1409780683", + "text" : "ASPP2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 9 + }, + "characterStartOffset" : 408, + "characterEndOffset" : 413, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:275032566", + "text" : "them", + "labels" : [ "Generic_entity", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 429, + "characterEndOffset" : 433, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "PRP" + }, { + "type" : "TextBoundMention", + "id" : "T:275032566", + "text" : "them", + "labels" : [ "Generic_entity", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 429, + "characterEndOffset" : 433, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "PRP" + }, { + "type" : "EventMention", + "id" : "E:-1547313914", + "text" : "Ras ubiquitination", + "labels" : [ "Ubiquitination", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:954550434", + "text" : "ubiquitination", + "labels" : [ "Ubiquitination", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 6, + "end" : 7 + }, + "characterStartOffset" : 92, + "characterEndOffset" : 106, + "sentence" : 1, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Ubiquitination_syntax_4_noun" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:-1944113424", + "text" : "Ras", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 5, + "end" : 6 + }, + "characterStartOffset" : 88, + "characterEndOffset" : 91, + "sentence" : 1, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-family-entities" + } ] + }, + "paths" : { + "theme" : { + "T:-1944113424" : [ { + "source" : 6, + "destination" : 5, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 5, + "end" : 7 + }, + "characterStartOffset" : 88, + "characterEndOffset" : 106, + "sentence" : 1, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Ubiquitination_syntax_4_noun" + }, { + "type" : "EventMention", + "id" : "E:1959341182", + "text" : "its ubiquitination", + "labels" : [ "Ubiquitination", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:1687472790", + "text" : "ubiquitination", + "labels" : [ "Ubiquitination", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 12, + "end" : 13 + }, + "characterStartOffset" : 47, + "characterEndOffset" : 61, + "sentence" : 0, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Ubiquitination_token_3_noun" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:461525015", + "text" : "its", + "labels" : [ "Generic_entity", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 11, + "end" : 12 + }, + "characterStartOffset" : 43, + "characterEndOffset" : 46, + "sentence" : 0, + "document" : "-781013046", + "keep" : true, + "foundBy" : "PRP" + } ] + }, + "tokenInterval" : { + "start" : 11, + "end" : 13 + }, + "characterStartOffset" : 43, + "characterEndOffset" : 61, + "sentence" : 0, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Ubiquitination_token_3_noun, pronominalMatch" + }, { + "type" : "EventMention", + "id" : "E:-230214328", + "text" : "Ras binds it", + "labels" : [ "Binding", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-1171195990", + "text" : "binds", + "labels" : [ "Binding", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 5, + "end" : 6 + }, + "characterStartOffset" : 304, + "characterEndOffset" : 309, + "sentence" : 3, + "document" : "-781013046", + "keep" : true, + "foundBy" : "binding1b" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:2038289698", + "text" : "Ras", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 4, + "end" : 5 + }, + "characterStartOffset" : 300, + "characterEndOffset" : 303, + "sentence" : 3, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:866073705", + "text" : "it", + "labels" : [ "Generic_entity", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 6, + "end" : 7 + }, + "characterStartOffset" : 310, + "characterEndOffset" : 312, + "sentence" : 3, + "document" : "-781013046", + "keep" : true, + "foundBy" : "PRP" + } ] + }, + "paths" : { + "theme1" : { + "T:2038289698" : [ { + "source" : 5, + "destination" : 4, + "relation" : "nsubj" + } ] + }, + "theme2" : { + "T:866073705" : [ { + "source" : 5, + "destination" : 6, + "relation" : "dobj" + } ] + } + }, + "tokenInterval" : { + "start" : 4, + "end" : 7 + }, + "characterStartOffset" : 300, + "characterEndOffset" : 312, + "sentence" : 3, + "document" : "-781013046", + "keep" : true, + "foundBy" : "binding1b, pronominalMatch" + }, { + "type" : "EventMention", + "id" : "E:-1468407621", + "text" : "phosphorylate ASPP2", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:1673215413", + "text" : "phosphorylate", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 9, + "end" : 10 + }, + "characterStartOffset" : 353, + "characterEndOffset" : 366, + "sentence" : 4, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_verb" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:-340323655", + "text" : "ASPP2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 367, + "characterEndOffset" : 372, + "sentence" : 4, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "theme" : { + "T:-340323655" : [ { + "source" : 9, + "destination" : 10, + "relation" : "dobj" + } ] + }, + "cause" : { + "T:130910852" : [ { + "source" : 9, + "destination" : 8, + "relation" : "nsubj" + } ] + } + }, + "tokenInterval" : { + "start" : 9, + "end" : 11 + }, + "characterStartOffset" : 353, + "characterEndOffset" : 372, + "sentence" : 4, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_verb" + }, { + "type" : "EventMention", + "id" : "E:-1359397557", + "text" : "phosphorylates them", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-2046035757", + "text" : "phosphorylates", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 9, + "end" : 10 + }, + "characterStartOffset" : 414, + "characterEndOffset" : 428, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_verb" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:275032566", + "text" : "them", + "labels" : [ "Generic_entity", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 429, + "characterEndOffset" : 433, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "PRP" + } ] + }, + "paths" : { + "theme" : { + "T:275032566" : [ { + "source" : 9, + "destination" : 10, + "relation" : "dobj" + } ] + }, + "cause" : { + "T:-1409780683" : [ { + "source" : 9, + "destination" : 8, + "relation" : "nsubj" + } ] + } + }, + "tokenInterval" : { + "start" : 9, + "end" : 11 + }, + "characterStartOffset" : 414, + "characterEndOffset" : 433, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_verb, pronominalMatch" + }, { + "type" : "EventMention", + "id" : "E:-1359397557", + "text" : "phosphorylates them", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-2046035757", + "text" : "phosphorylates", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 9, + "end" : 10 + }, + "characterStartOffset" : 414, + "characterEndOffset" : 428, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_verb" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:275032566", + "text" : "them", + "labels" : [ "Generic_entity", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 429, + "characterEndOffset" : 433, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "PRP" + } ] + }, + "paths" : { + "theme" : { + "T:275032566" : [ { + "source" : 9, + "destination" : 10, + "relation" : "dobj" + } ] + }, + "cause" : { + "T:-1409780683" : [ { + "source" : 9, + "destination" : 8, + "relation" : "nsubj" + } ] + } + }, + "tokenInterval" : { + "start" : 9, + "end" : 11 + }, + "characterStartOffset" : 414, + "characterEndOffset" : 433, + "sentence" : 5, + "document" : "-781013046", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_verb, pronominalMatch" + }, { + "type" : "EventMention", + "id" : "E:-588104376", + "text" : "its binding to PI3K", + "labels" : [ "Binding", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:457015595", + "text" : "binding", + "labels" : [ "Binding", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 9, + "end" : 10 + }, + "characterStartOffset" : 114, + "characterEndOffset" : 121, + "sentence" : 1, + "document" : "-781013046", + "keep" : true, + "foundBy" : "binding_token_1" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:833956869", + "text" : "its", + "labels" : [ "Generic_entity", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 9 + }, + "characterStartOffset" : 110, + "characterEndOffset" : 113, + "sentence" : 1, + "document" : "-781013046", + "keep" : true, + "foundBy" : "PRP" + }, { + "type" : "TextBoundMention", + "id" : "T:-923789966", + "text" : "PI3K", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 11, + "end" : 12 + }, + "characterStartOffset" : 125, + "characterEndOffset" : 129, + "sentence" : 1, + "document" : "-781013046", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "tokenInterval" : { + "start" : 8, + "end" : 12 + }, + "characterStartOffset" : 110, + "characterEndOffset" : 129, + "sentence" : 1, + "document" : "-781013046", + "keep" : true, + "foundBy" : "binding_token_1, pronominalMatch" + } ] +} \ No newline at end of file diff --git a/demo/data/passage-1-odin.json b/demo/data/passage-1-odin.json new file mode 100644 index 0000000..0eda707 --- /dev/null +++ b/demo/data/passage-1-odin.json @@ -0,0 +1,2976 @@ +{ + "documents" : { + "-817467340" : { + "id" : "passage-1-odin", + "text" : "We hypothesized that MEK inhibition activates AKT by inhibiting ERK activity, which blocks an inhibitory threonine phosphorylation on the juxtamembrane domains of EGFR and HER2, thereby increasing ERBB3 phosphorylation.\nTo test this hypothesis, we transiently transfected CHO-KI cells, which do not express ERBB receptors endogenously, with wild-type ERBB3 with either wild-type EGFR or EGFRT669A.\nIn cells transfected with wild-type EGFR, MEK inhibition led to feedback activation of phospho-ERBB3 and phosho-EGFR, recapitulating the results we had observed in our panel of cancer cell lines (Figure 6A).\nIn contrast, the EGFRT669A mutant increased both basal EGFR and ERBB3 tyrosine phosphorylation that was not augmented by MEK inhibition.\nAs a control, we treated CHO-KI cells expressing EGFRT669A with HRG ligand to induce maximal ERBB3 phosphorylation (Figure 6A), indicating that the lack of induction of phospho-ERBB3 in EGFRT669A expressing cells following MEK inhibition was not simply due to the saturation of the system with phospho-ERBB3.\nWe observed analogous results in CHO-KI cells expressing wild-type ERBB3 in combination with wild-type or T677A mutant HER2 (Figure 6B).\nTogether these results support the hypothesis that inhibition of ERK-mediated phosphorylation of a conserved juxtamembrane domain threonine residue leads to feedback activation of EGFR, HER2, and ERBB3 (Figure 7).", + "sentences" : [ { + "words" : [ "We", "hypothesized", "that", "MEK", "inhibition", "activates", "AKT", "by", "inhibiting", "ERK", "activity", ",", "which", "blocks", "an", "inhibitory", "threonine", "phosphorylation", "on", "the", "juxtamembrane", "domains", "of", "EGFR", "and", "HER2", ",", "thereby", "increasing", "ERBB3", "phosphorylation", "." ], + "startOffsets" : [ 0, 3, 16, 21, 25, 36, 46, 50, 53, 64, 68, 76, 78, 84, 91, 94, 105, 115, 131, 134, 138, 152, 160, 163, 168, 172, 176, 178, 186, 197, 203, 218 ], + "endOffsets" : [ 2, 15, 20, 24, 35, 45, 49, 52, 63, 67, 76, 77, 83, 90, 93, 104, 114, 130, 133, 137, 151, 159, 162, 167, 171, 176, 177, 185, 196, 202, 218, 219 ], + "raw" : [ "We", "hypothesized", "that", "MEK", "inhibition", "activates", "AKT", "by", "inhibiting", "ERK", "activity", ",", "which", "blocks", "an", "inhibitory", "threonine", "phosphorylation", "on", "the", "juxtamembrane", "domains", "of", "EGFR", "and", "HER2", ",", "thereby", "increasing", "ERBB3", "phosphorylation", "." ], + "tags" : [ "PRP", "VBD", "IN", "NN", "NN", "VBZ", "NN", "IN", "VBG", "NN", "NN", ",", "WDT", "VBZ", "DT", "JJ", "NN", "NN", "IN", "DT", "NN", "NNS", "IN", "NN", "CC", "NN", ",", "RB", "VBG", "NN", "NN", "." ], + "lemmas" : [ "we", "hypothesize", "that", "mek", "inhibition", "activate", "akt", "by", "inhibit", "erk", "activity", ",", "which", "block", "a", "inhibitory", "threonine", "phosphorylation", "on", "the", "juxtamembrane", "domain", "of", "egfr", "and", "her2", ",", "thereby", "increase", "erbb3", "phosphorylation", "." ], + "entities" : [ "O", "O", "O", "B-Family", "O", "O", "B-Family", "O", "O", "B-Family", "O", "O", "O", "O", "O", "O", "B-Site", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "B-Gene_or_gene_product", "O", "O", "O", "B-Gene_or_gene_product", "O", "O" ], + "chunks" : [ "B-NP", "B-VP", "B-SBAR", "B-NP", "I-NP", "B-VP", "B-NP", "B-PP", "B-VP", "B-NP", "I-NP", "O", "B-NP", "B-VP", "B-NP", "I-NP", "I-NP", "I-NP", "B-PP", "B-NP", "I-NP", "I-NP", "B-PP", "B-NP", "I-NP", "I-NP", "O", "B-VP", "I-VP", "B-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 1, + "destination" : 0, + "relation" : "nsubj" + }, { + "source" : 1, + "destination" : 5, + "relation" : "ccomp" + }, { + "source" : 4, + "destination" : 3, + "relation" : "compound" + }, { + "source" : 5, + "destination" : 2, + "relation" : "mark" + }, { + "source" : 5, + "destination" : 4, + "relation" : "nsubj" + }, { + "source" : 5, + "destination" : 6, + "relation" : "dobj" + }, { + "source" : 5, + "destination" : 10, + "relation" : "nmod_by" + }, { + "source" : 10, + "destination" : 7, + "relation" : "case" + }, { + "source" : 10, + "destination" : 8, + "relation" : "amod" + }, { + "source" : 10, + "destination" : 9, + "relation" : "compound" + }, { + "source" : 10, + "destination" : 12, + "relation" : "ref" + }, { + "source" : 10, + "destination" : 13, + "relation" : "acl:relcl" + }, { + "source" : 13, + "destination" : 17, + "relation" : "dobj" + }, { + "source" : 13, + "destination" : 21, + "relation" : "nmod_on" + }, { + "source" : 13, + "destination" : 10, + "relation" : "nsubj" + }, { + "source" : 13, + "destination" : 28, + "relation" : "advcl" + }, { + "source" : 17, + "destination" : 15, + "relation" : "amod" + }, { + "source" : 17, + "destination" : 16, + "relation" : "compound" + }, { + "source" : 17, + "destination" : 14, + "relation" : "det" + }, { + "source" : 21, + "destination" : 18, + "relation" : "case" + }, { + "source" : 21, + "destination" : 19, + "relation" : "det" + }, { + "source" : 21, + "destination" : 20, + "relation" : "compound" + }, { + "source" : 21, + "destination" : 23, + "relation" : "nmod_of" + }, { + "source" : 21, + "destination" : 25, + "relation" : "nmod_of" + }, { + "source" : 23, + "destination" : 22, + "relation" : "case" + }, { + "source" : 23, + "destination" : 24, + "relation" : "cc" + }, { + "source" : 23, + "destination" : 25, + "relation" : "conj_and" + }, { + "source" : 28, + "destination" : 27, + "relation" : "advmod" + }, { + "source" : 28, + "destination" : 30, + "relation" : "dobj" + }, { + "source" : 30, + "destination" : 29, + "relation" : "compound" + } ], + "roots" : [ 1 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 1, + "destination" : 0, + "relation" : "nsubj" + }, { + "source" : 1, + "destination" : 5, + "relation" : "ccomp" + }, { + "source" : 4, + "destination" : 3, + "relation" : "compound" + }, { + "source" : 5, + "destination" : 2, + "relation" : "mark" + }, { + "source" : 5, + "destination" : 4, + "relation" : "nsubj" + }, { + "source" : 5, + "destination" : 6, + "relation" : "dobj" + }, { + "source" : 5, + "destination" : 10, + "relation" : "nmod" + }, { + "source" : 10, + "destination" : 7, + "relation" : "case" + }, { + "source" : 10, + "destination" : 8, + "relation" : "amod" + }, { + "source" : 10, + "destination" : 9, + "relation" : "compound" + }, { + "source" : 10, + "destination" : 13, + "relation" : "acl:relcl" + }, { + "source" : 13, + "destination" : 17, + "relation" : "dobj" + }, { + "source" : 13, + "destination" : 21, + "relation" : "nmod" + }, { + "source" : 13, + "destination" : 12, + "relation" : "nsubj" + }, { + "source" : 13, + "destination" : 28, + "relation" : "advcl" + }, { + "source" : 17, + "destination" : 15, + "relation" : "amod" + }, { + "source" : 17, + "destination" : 16, + "relation" : "compound" + }, { + "source" : 17, + "destination" : 14, + "relation" : "det" + }, { + "source" : 21, + "destination" : 18, + "relation" : "case" + }, { + "source" : 21, + "destination" : 19, + "relation" : "det" + }, { + "source" : 21, + "destination" : 20, + "relation" : "compound" + }, { + "source" : 21, + "destination" : 23, + "relation" : "nmod" + }, { + "source" : 23, + "destination" : 22, + "relation" : "case" + }, { + "source" : 23, + "destination" : 24, + "relation" : "cc" + }, { + "source" : 23, + "destination" : 25, + "relation" : "conj" + }, { + "source" : 28, + "destination" : 27, + "relation" : "advmod" + }, { + "source" : 28, + "destination" : 30, + "relation" : "dobj" + }, { + "source" : 30, + "destination" : 29, + "relation" : "compound" + } ], + "roots" : [ 1 ] + } + } + }, { + "words" : [ "To", "test", "this", "hypothesis", ",", "we", "transiently", "transfected", "CHO-KI", "cells", ",", "which", "do", "not", "express", "ERBB", "receptors", "endogenously", ",", "with", "wild-type", "ERBB3", "with", "either", "wild-type", "EGFR", "or", "EGFRT669A", "." ], + "startOffsets" : [ 220, 223, 228, 233, 243, 245, 248, 260, 272, 279, 284, 286, 292, 295, 299, 307, 312, 322, 334, 336, 341, 351, 357, 362, 369, 379, 384, 387, 396 ], + "endOffsets" : [ 222, 227, 232, 243, 244, 247, 259, 271, 278, 284, 285, 291, 294, 298, 306, 311, 321, 334, 335, 340, 350, 356, 361, 368, 378, 383, 386, 396, 397 ], + "raw" : [ "To", "test", "this", "hypothesis", ",", "we", "transiently", "transfected", "CHO-KI", "cells", ",", "which", "do", "not", "express", "ERBB", "receptors", "endogenously", ",", "with", "wild-type", "ERBB3", "with", "either", "wild-type", "EGFR", "or", "EGFRT669A", "." ], + "tags" : [ "TO", "VB", "DT", "NN", ",", "PRP", "RB", "VBD", "NN", "NNS", ",", "WDT", "VBP", "RB", "VB", "NN", "NNS", "RB", ",", "IN", "JJ", "NN", "IN", "CC", "JJ", "NN", "CC", "NN", "." ], + "lemmas" : [ "to", "test", "this", "hypothesis", ",", "we", "transiently", "transfect", "cho-ki", "cell", ",", "which", "do", "not", "express", "erbb", "receptor", "endogenously", ",", "with", "wild-type", "erbb3", "with", "either", "wild-type", "egfr", "or", "egfrt669a", "." ], + "entities" : [ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "O", "O", "B-Gene_or_gene_product", "O", "B-Gene_or_gene_product", "O" ], + "chunks" : [ "B-VP", "I-VP", "B-NP", "I-NP", "O", "B-NP", "B-ADVP", "B-VP", "B-NP", "I-NP", "O", "B-NP", "B-VP", "I-VP", "I-VP", "B-NP", "I-NP", "B-ADVP", "O", "B-PP", "B-NP", "I-NP", "B-PP", "O", "B-NP", "I-NP", "I-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 1, + "destination" : 3, + "relation" : "dobj" + }, { + "source" : 1, + "destination" : 0, + "relation" : "mark" + }, { + "source" : 3, + "destination" : 2, + "relation" : "det" + }, { + "source" : 7, + "destination" : 5, + "relation" : "nsubj" + }, { + "source" : 7, + "destination" : 6, + "relation" : "advmod" + }, { + "source" : 7, + "destination" : 9, + "relation" : "dobj" + }, { + "source" : 7, + "destination" : 1, + "relation" : "advcl_to" + }, { + "source" : 9, + "destination" : 8, + "relation" : "compound" + }, { + "source" : 9, + "destination" : 11, + "relation" : "ref" + }, { + "source" : 9, + "destination" : 14, + "relation" : "acl:relcl" + }, { + "source" : 14, + "destination" : 21, + "relation" : "nmod_with" + }, { + "source" : 14, + "destination" : 9, + "relation" : "nsubj" + }, { + "source" : 14, + "destination" : 12, + "relation" : "aux" + }, { + "source" : 14, + "destination" : 13, + "relation" : "neg" + }, { + "source" : 14, + "destination" : 16, + "relation" : "dobj" + }, { + "source" : 14, + "destination" : 17, + "relation" : "advmod" + }, { + "source" : 16, + "destination" : 15, + "relation" : "compound" + }, { + "source" : 21, + "destination" : 19, + "relation" : "case" + }, { + "source" : 21, + "destination" : 20, + "relation" : "amod" + }, { + "source" : 21, + "destination" : 25, + "relation" : "nmod_with" + }, { + "source" : 21, + "destination" : 27, + "relation" : "nmod_with" + }, { + "source" : 25, + "destination" : 22, + "relation" : "case" + }, { + "source" : 25, + "destination" : 23, + "relation" : "cc:preconj" + }, { + "source" : 25, + "destination" : 24, + "relation" : "amod" + }, { + "source" : 25, + "destination" : 26, + "relation" : "cc" + }, { + "source" : 25, + "destination" : 27, + "relation" : "conj_or" + } ], + "roots" : [ 7 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 1, + "destination" : 3, + "relation" : "dobj" + }, { + "source" : 1, + "destination" : 0, + "relation" : "mark" + }, { + "source" : 3, + "destination" : 2, + "relation" : "det" + }, { + "source" : 7, + "destination" : 5, + "relation" : "nsubj" + }, { + "source" : 7, + "destination" : 6, + "relation" : "advmod" + }, { + "source" : 7, + "destination" : 9, + "relation" : "dobj" + }, { + "source" : 7, + "destination" : 1, + "relation" : "advcl" + }, { + "source" : 9, + "destination" : 8, + "relation" : "compound" + }, { + "source" : 9, + "destination" : 14, + "relation" : "acl:relcl" + }, { + "source" : 14, + "destination" : 21, + "relation" : "nmod" + }, { + "source" : 14, + "destination" : 11, + "relation" : "nsubj" + }, { + "source" : 14, + "destination" : 12, + "relation" : "aux" + }, { + "source" : 14, + "destination" : 13, + "relation" : "neg" + }, { + "source" : 14, + "destination" : 16, + "relation" : "dobj" + }, { + "source" : 14, + "destination" : 17, + "relation" : "advmod" + }, { + "source" : 16, + "destination" : 15, + "relation" : "compound" + }, { + "source" : 21, + "destination" : 19, + "relation" : "case" + }, { + "source" : 21, + "destination" : 20, + "relation" : "amod" + }, { + "source" : 21, + "destination" : 25, + "relation" : "nmod" + }, { + "source" : 25, + "destination" : 22, + "relation" : "case" + }, { + "source" : 25, + "destination" : 23, + "relation" : "cc:preconj" + }, { + "source" : 25, + "destination" : 24, + "relation" : "amod" + }, { + "source" : 25, + "destination" : 26, + "relation" : "cc" + }, { + "source" : 25, + "destination" : 27, + "relation" : "conj" + } ], + "roots" : [ 7 ] + } + } + }, { + "words" : [ "In", "cells", "transfected", "with", "wild-type", "EGFR", ",", "MEK", "inhibition", "led", "to", "feedback", "activation", "of", "phospho-ERBB3", "and", "phosho-EGFR", ",", "recapitulating", "the", "results", "we", "had", "observed", "in", "our", "panel", "of", "cancer", "cell", "lines", "(", "Figure", "6A", ")", "." ], + "startOffsets" : [ 398, 401, 407, 419, 424, 434, 438, 440, 444, 455, 459, 462, 471, 482, 485, 499, 503, 514, 516, 531, 535, 543, 546, 550, 559, 562, 566, 572, 575, 582, 587, 593, 594, 601, 603, 604 ], + "endOffsets" : [ 400, 406, 418, 423, 433, 438, 439, 443, 454, 458, 461, 470, 481, 484, 498, 502, 514, 515, 530, 534, 542, 545, 549, 558, 561, 565, 571, 574, 581, 586, 592, 594, 600, 603, 604, 605 ], + "raw" : [ "In", "cells", "transfected", "with", "wild-type", "EGFR", ",", "MEK", "inhibition", "led", "to", "feedback", "activation", "of", "phospho-ERBB3", "and", "phosho-EGFR", ",", "recapitulating", "the", "results", "we", "had", "observed", "in", "our", "panel", "of", "cancer", "cell", "lines", "(", "Figure", "6A", ")", "." ], + "tags" : [ "IN", "NNS", "VBN", "IN", "JJ", "NN", ",", "NN", "NN", "VBD", "TO", "NN", "NN", "IN", "NN", "CC", "NN", ",", "VBG", "DT", "NNS", "PRP", "VBD", "VBN", "IN", "PRP$", "NN", "IN", "NN", "NN", "NNS", "-LRB-", "NN", "NN", "-RRB-", "." ], + "lemmas" : [ "in", "cell", "transfect", "with", "wild-type", "egfr", ",", "mek", "inhibition", "lead", "to", "feedback", "activation", "of", "phospho-erbb3", "and", "phosho-egfr", ",", "recapitulate", "the", "result", "we", "have", "observe", "in", "we", "panel", "of", "cancer", "cell", "line", "(", "figure", "6a", ")", "." ], + "entities" : [ "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "B-Family", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ], + "chunks" : [ "B-PP", "B-NP", "B-VP", "B-PP", "B-NP", "I-NP", "O", "B-NP", "I-NP", "B-VP", "B-PP", "B-NP", "I-NP", "B-PP", "B-NP", "I-NP", "I-NP", "O", "B-VP", "B-NP", "I-NP", "B-NP", "B-VP", "I-VP", "B-PP", "B-NP", "I-NP", "B-PP", "B-NP", "I-NP", "I-NP", "B-NP", "I-NP", "I-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 5, + "destination" : 3, + "relation" : "case" + }, { + "source" : 5, + "destination" : 4, + "relation" : "amod" + }, { + "source" : 8, + "destination" : 7, + "relation" : "compound" + }, { + "source" : 9, + "destination" : 8, + "relation" : "nsubj" + }, { + "source" : 9, + "destination" : 12, + "relation" : "nmod_to" + }, { + "source" : 9, + "destination" : 1, + "relation" : "nmod_in" + }, { + "source" : 9, + "destination" : 18, + "relation" : "xcomp" + }, { + "source" : 12, + "destination" : 10, + "relation" : "case" + }, { + "source" : 12, + "destination" : 11, + "relation" : "compound" + }, { + "source" : 12, + "destination" : 14, + "relation" : "nmod_of" + }, { + "source" : 12, + "destination" : 16, + "relation" : "nmod_of" + }, { + "source" : 14, + "destination" : 13, + "relation" : "case" + }, { + "source" : 14, + "destination" : 15, + "relation" : "cc" + }, { + "source" : 14, + "destination" : 16, + "relation" : "conj_and" + }, { + "source" : 18, + "destination" : 20, + "relation" : "dobj" + }, { + "source" : 20, + "destination" : 23, + "relation" : "acl:relcl" + }, { + "source" : 20, + "destination" : 19, + "relation" : "det" + }, { + "source" : 23, + "destination" : 21, + "relation" : "nsubj" + }, { + "source" : 23, + "destination" : 22, + "relation" : "aux" + }, { + "source" : 23, + "destination" : 26, + "relation" : "nmod_in" + }, { + "source" : 26, + "destination" : 24, + "relation" : "case" + }, { + "source" : 26, + "destination" : 25, + "relation" : "nmod:poss" + }, { + "source" : 26, + "destination" : 30, + "relation" : "nmod_of" + }, { + "source" : 30, + "destination" : 27, + "relation" : "case" + }, { + "source" : 30, + "destination" : 28, + "relation" : "compound" + }, { + "source" : 30, + "destination" : 29, + "relation" : "compound" + }, { + "source" : 30, + "destination" : 33, + "relation" : "appos" + }, { + "source" : 33, + "destination" : 32, + "relation" : "compound" + }, { + "source" : 1, + "destination" : 0, + "relation" : "case" + }, { + "source" : 1, + "destination" : 2, + "relation" : "acl" + }, { + "source" : 2, + "destination" : 5, + "relation" : "nmod_with" + } ], + "roots" : [ 9 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 5, + "destination" : 3, + "relation" : "case" + }, { + "source" : 5, + "destination" : 4, + "relation" : "amod" + }, { + "source" : 8, + "destination" : 7, + "relation" : "compound" + }, { + "source" : 9, + "destination" : 8, + "relation" : "nsubj" + }, { + "source" : 9, + "destination" : 12, + "relation" : "nmod" + }, { + "source" : 9, + "destination" : 1, + "relation" : "nmod" + }, { + "source" : 9, + "destination" : 18, + "relation" : "xcomp" + }, { + "source" : 12, + "destination" : 10, + "relation" : "case" + }, { + "source" : 12, + "destination" : 11, + "relation" : "compound" + }, { + "source" : 12, + "destination" : 14, + "relation" : "nmod" + }, { + "source" : 14, + "destination" : 13, + "relation" : "case" + }, { + "source" : 14, + "destination" : 15, + "relation" : "cc" + }, { + "source" : 14, + "destination" : 16, + "relation" : "conj" + }, { + "source" : 18, + "destination" : 20, + "relation" : "dobj" + }, { + "source" : 20, + "destination" : 23, + "relation" : "acl:relcl" + }, { + "source" : 20, + "destination" : 19, + "relation" : "det" + }, { + "source" : 23, + "destination" : 21, + "relation" : "nsubj" + }, { + "source" : 23, + "destination" : 22, + "relation" : "aux" + }, { + "source" : 23, + "destination" : 26, + "relation" : "nmod" + }, { + "source" : 26, + "destination" : 24, + "relation" : "case" + }, { + "source" : 26, + "destination" : 25, + "relation" : "nmod:poss" + }, { + "source" : 26, + "destination" : 30, + "relation" : "nmod" + }, { + "source" : 30, + "destination" : 27, + "relation" : "case" + }, { + "source" : 30, + "destination" : 28, + "relation" : "compound" + }, { + "source" : 30, + "destination" : 29, + "relation" : "compound" + }, { + "source" : 30, + "destination" : 33, + "relation" : "appos" + }, { + "source" : 33, + "destination" : 32, + "relation" : "compound" + }, { + "source" : 1, + "destination" : 0, + "relation" : "case" + }, { + "source" : 1, + "destination" : 2, + "relation" : "acl" + }, { + "source" : 2, + "destination" : 5, + "relation" : "nmod" + } ], + "roots" : [ 9 ] + } + } + }, { + "words" : [ "In", "contrast", ",", "the", "EGFRT669A", "mutant", "increased", "both", "basal", "EGFR", "and", "ERBB3", "tyrosine", "phosphorylation", "that", "was", "not", "augmented", "by", "MEK", "inhibition", "." ], + "startOffsets" : [ 606, 609, 617, 619, 623, 633, 640, 650, 655, 661, 666, 670, 676, 685, 701, 706, 710, 714, 724, 727, 731, 741 ], + "endOffsets" : [ 608, 617, 618, 622, 632, 639, 649, 654, 660, 665, 669, 675, 684, 700, 705, 709, 713, 723, 726, 730, 741, 742 ], + "raw" : [ "In", "contrast", ",", "the", "EGFRT669A", "mutant", "increased", "both", "basal", "EGFR", "and", "ERBB3", "tyrosine", "phosphorylation", "that", "was", "not", "augmented", "by", "MEK", "inhibition", "." ], + "tags" : [ "IN", "NN", ",", "DT", "NN", "NN", "VBD", "CC", "JJ", "NN", "CC", "NN", "NN", "NN", "WDT", "VBD", "RB", "VBN", "IN", "NN", "NN", "." ], + "lemmas" : [ "in", "contrast", ",", "the", "egfrt669a", "mutant", "increase", "both", "basal", "egfr", "and", "erbb3", "tyrosine", "phosphorylation", "that", "be", "not", "augment", "by", "mek", "inhibition", "." ], + "entities" : [ "O", "O", "O", "O", "B-Gene_or_gene_product", "I-Gene_or_gene_product", "O", "O", "O", "B-Gene_or_gene_product", "O", "B-Gene_or_gene_product", "B-Site", "O", "O", "O", "O", "O", "O", "B-Family", "O", "O" ], + "chunks" : [ "B-PP", "B-NP", "O", "B-NP", "I-NP", "I-NP", "B-VP", "O", "B-NP", "I-NP", "O", "B-NP", "I-NP", "I-NP", "B-NP", "B-VP", "I-VP", "I-VP", "B-PP", "B-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 9, + "destination" : 8, + "relation" : "amod" + }, { + "source" : 9, + "destination" : 10, + "relation" : "cc" + }, { + "source" : 9, + "destination" : 13, + "relation" : "conj_and" + }, { + "source" : 9, + "destination" : 14, + "relation" : "ref" + }, { + "source" : 9, + "destination" : 17, + "relation" : "acl:relcl" + }, { + "source" : 9, + "destination" : 7, + "relation" : "case" + }, { + "source" : 13, + "destination" : 11, + "relation" : "compound" + }, { + "source" : 13, + "destination" : 12, + "relation" : "compound" + }, { + "source" : 17, + "destination" : 9, + "relation" : "nsubjpass" + }, { + "source" : 17, + "destination" : 13, + "relation" : "nsubjpass" + }, { + "source" : 17, + "destination" : 15, + "relation" : "auxpass" + }, { + "source" : 17, + "destination" : 16, + "relation" : "neg" + }, { + "source" : 17, + "destination" : 20, + "relation" : "nmod_agent" + }, { + "source" : 20, + "destination" : 18, + "relation" : "case" + }, { + "source" : 20, + "destination" : 19, + "relation" : "compound" + }, { + "source" : 1, + "destination" : 0, + "relation" : "case" + }, { + "source" : 5, + "destination" : 3, + "relation" : "det" + }, { + "source" : 5, + "destination" : 4, + "relation" : "compound" + }, { + "source" : 6, + "destination" : 9, + "relation" : "nmod_both" + }, { + "source" : 6, + "destination" : 13, + "relation" : "nmod_both" + }, { + "source" : 6, + "destination" : 1, + "relation" : "nmod_in" + }, { + "source" : 6, + "destination" : 5, + "relation" : "nsubj" + } ], + "roots" : [ 6 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 9, + "destination" : 8, + "relation" : "amod" + }, { + "source" : 9, + "destination" : 10, + "relation" : "cc" + }, { + "source" : 9, + "destination" : 13, + "relation" : "conj" + }, { + "source" : 9, + "destination" : 17, + "relation" : "acl:relcl" + }, { + "source" : 9, + "destination" : 7, + "relation" : "case" + }, { + "source" : 13, + "destination" : 11, + "relation" : "compound" + }, { + "source" : 13, + "destination" : 12, + "relation" : "compound" + }, { + "source" : 17, + "destination" : 14, + "relation" : "nsubjpass" + }, { + "source" : 17, + "destination" : 15, + "relation" : "auxpass" + }, { + "source" : 17, + "destination" : 16, + "relation" : "neg" + }, { + "source" : 17, + "destination" : 20, + "relation" : "nmod" + }, { + "source" : 20, + "destination" : 18, + "relation" : "case" + }, { + "source" : 20, + "destination" : 19, + "relation" : "compound" + }, { + "source" : 1, + "destination" : 0, + "relation" : "case" + }, { + "source" : 5, + "destination" : 3, + "relation" : "det" + }, { + "source" : 5, + "destination" : 4, + "relation" : "compound" + }, { + "source" : 6, + "destination" : 9, + "relation" : "nmod" + }, { + "source" : 6, + "destination" : 1, + "relation" : "nmod" + }, { + "source" : 6, + "destination" : 5, + "relation" : "nsubj" + } ], + "roots" : [ 6 ] + } + } + }, { + "words" : [ "As", "a", "control", ",", "we", "treated", "CHO-KI", "cells", "expressing", "EGFRT669A", "with", "HRG", "ligand", "to", "induce", "maximal", "ERBB3", "phosphorylation", "(", "Figure", "6A", ")", ",", "indicating", "that", "the", "lack", "of", "induction", "of", "phospho-ERBB3", "in", "EGFRT669A", "expressing", "cells", "following", "MEK", "inhibition", "was", "not", "simply", "due", "to", "the", "saturation", "of", "the", "system", "with", "phospho-ERBB3", "." ], + "startOffsets" : [ 743, 746, 748, 755, 757, 760, 768, 775, 781, 792, 802, 807, 811, 818, 821, 828, 836, 842, 858, 859, 866, 868, 869, 871, 882, 887, 891, 896, 899, 909, 912, 926, 929, 939, 950, 956, 966, 970, 981, 985, 989, 996, 1000, 1003, 1007, 1018, 1021, 1025, 1032, 1037, 1050 ], + "endOffsets" : [ 745, 747, 755, 756, 759, 767, 774, 780, 791, 801, 806, 810, 817, 820, 827, 835, 841, 857, 859, 865, 868, 869, 870, 881, 886, 890, 895, 898, 908, 911, 925, 928, 938, 949, 955, 965, 969, 980, 984, 988, 995, 999, 1002, 1006, 1017, 1020, 1024, 1031, 1036, 1050, 1051 ], + "raw" : [ "As", "a", "control", ",", "we", "treated", "CHO-KI", "cells", "expressing", "EGFRT669A", "with", "HRG", "ligand", "to", "induce", "maximal", "ERBB3", "phosphorylation", "(", "Figure", "6A", ")", ",", "indicating", "that", "the", "lack", "of", "induction", "of", "phospho-ERBB3", "in", "EGFRT669A", "expressing", "cells", "following", "MEK", "inhibition", "was", "not", "simply", "due", "to", "the", "saturation", "of", "the", "system", "with", "phospho-ERBB3", "." ], + "tags" : [ "IN", "DT", "NN", ",", "PRP", "VBD", "NN", "NNS", "VBG", "NN", "IN", "NN", "NN", "TO", "VB", "JJ", "NN", "NN", "-LRB-", "NN", "NN", "-RRB-", ",", "VBG", "IN", "DT", "NN", "IN", "NN", "IN", "NN", "IN", "NN", "NN", "NNS", "VBG", "NN", "NN", "VBD", "RB", "RB", "JJ", "TO", "DT", "NN", "IN", "DT", "NN", "IN", "NN", "." ], + "lemmas" : [ "as", "a", "control", ",", "we", "treat", "cho-ki", "cell", "express", "egfrt669a", "with", "hrg", "ligand", "to", "induce", "maximal", "erbb3", "phosphorylation", "(", "figure", "6a", ")", ",", "indicate", "that", "the", "lack", "of", "induction", "of", "phospho-erbb3", "in", "egfrt669a", "expressing", "cell", "follow", "mek", "inhibition", "be", "not", "simply", "due", "to", "the", "saturation", "of", "the", "system", "with", "phospho-erbb3", "." ], + "entities" : [ "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "B-Gene_or_gene_product", "O", "O", "O", "B-Family", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ], + "chunks" : [ "B-PP", "B-NP", "I-NP", "O", "B-NP", "B-VP", "B-NP", "I-NP", "B-VP", "B-NP", "B-PP", "B-NP", "I-NP", "B-VP", "I-VP", "B-NP", "I-NP", "I-NP", "I-NP", "I-NP", "I-NP", "I-NP", "O", "B-VP", "B-SBAR", "B-NP", "I-NP", "B-PP", "B-NP", "B-PP", "B-NP", "B-PP", "B-NP", "I-NP", "I-NP", "B-PP", "B-NP", "I-NP", "B-VP", "O", "B-ADJP", "I-ADJP", "B-PP", "B-NP", "I-NP", "B-PP", "B-NP", "I-NP", "B-PP", "B-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 12, + "destination" : 11, + "relation" : "compound" + }, { + "source" : 12, + "destination" : 10, + "relation" : "case" + }, { + "source" : 14, + "destination" : 13, + "relation" : "mark" + }, { + "source" : 14, + "destination" : 17, + "relation" : "dobj" + }, { + "source" : 17, + "destination" : 15, + "relation" : "amod" + }, { + "source" : 17, + "destination" : 16, + "relation" : "compound" + }, { + "source" : 17, + "destination" : 20, + "relation" : "appos" + }, { + "source" : 20, + "destination" : 19, + "relation" : "compound" + }, { + "source" : 23, + "destination" : 41, + "relation" : "ccomp" + }, { + "source" : 26, + "destination" : 28, + "relation" : "nmod_of" + }, { + "source" : 26, + "destination" : 25, + "relation" : "det" + }, { + "source" : 28, + "destination" : 27, + "relation" : "case" + }, { + "source" : 28, + "destination" : 30, + "relation" : "nmod_of" + }, { + "source" : 30, + "destination" : 29, + "relation" : "case" + }, { + "source" : 30, + "destination" : 34, + "relation" : "nmod_in" + }, { + "source" : 34, + "destination" : 31, + "relation" : "case" + }, { + "source" : 34, + "destination" : 32, + "relation" : "compound" + }, { + "source" : 34, + "destination" : 33, + "relation" : "compound" + }, { + "source" : 34, + "destination" : 37, + "relation" : "nmod_following" + }, { + "source" : 37, + "destination" : 35, + "relation" : "case" + }, { + "source" : 37, + "destination" : 36, + "relation" : "compound" + }, { + "source" : 41, + "destination" : 44, + "relation" : "nmod_to" + }, { + "source" : 41, + "destination" : 38, + "relation" : "cop" + }, { + "source" : 41, + "destination" : 39, + "relation" : "neg" + }, { + "source" : 41, + "destination" : 24, + "relation" : "mark" + }, { + "source" : 41, + "destination" : 40, + "relation" : "advmod" + }, { + "source" : 41, + "destination" : 26, + "relation" : "nsubj" + }, { + "source" : 44, + "destination" : 43, + "relation" : "det" + }, { + "source" : 44, + "destination" : 47, + "relation" : "nmod_of" + }, { + "source" : 44, + "destination" : 42, + "relation" : "case" + }, { + "source" : 47, + "destination" : 45, + "relation" : "case" + }, { + "source" : 47, + "destination" : 46, + "relation" : "det" + }, { + "source" : 47, + "destination" : 49, + "relation" : "nmod_with" + }, { + "source" : 49, + "destination" : 48, + "relation" : "case" + }, { + "source" : 2, + "destination" : 0, + "relation" : "case" + }, { + "source" : 2, + "destination" : 1, + "relation" : "det" + }, { + "source" : 5, + "destination" : 2, + "relation" : "nmod_as" + }, { + "source" : 5, + "destination" : 4, + "relation" : "nsubj" + }, { + "source" : 5, + "destination" : 7, + "relation" : "dobj" + }, { + "source" : 5, + "destination" : 23, + "relation" : "advcl" + }, { + "source" : 7, + "destination" : 6, + "relation" : "compound" + }, { + "source" : 7, + "destination" : 8, + "relation" : "acl" + }, { + "source" : 8, + "destination" : 12, + "relation" : "nmod_with" + }, { + "source" : 8, + "destination" : 14, + "relation" : "advcl_to" + }, { + "source" : 8, + "destination" : 9, + "relation" : "dobj" + } ], + "roots" : [ 5 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 12, + "destination" : 11, + "relation" : "compound" + }, { + "source" : 12, + "destination" : 10, + "relation" : "case" + }, { + "source" : 14, + "destination" : 13, + "relation" : "mark" + }, { + "source" : 14, + "destination" : 17, + "relation" : "dobj" + }, { + "source" : 17, + "destination" : 15, + "relation" : "amod" + }, { + "source" : 17, + "destination" : 16, + "relation" : "compound" + }, { + "source" : 17, + "destination" : 20, + "relation" : "appos" + }, { + "source" : 20, + "destination" : 19, + "relation" : "compound" + }, { + "source" : 23, + "destination" : 41, + "relation" : "ccomp" + }, { + "source" : 26, + "destination" : 28, + "relation" : "nmod" + }, { + "source" : 26, + "destination" : 25, + "relation" : "det" + }, { + "source" : 28, + "destination" : 27, + "relation" : "case" + }, { + "source" : 28, + "destination" : 30, + "relation" : "nmod" + }, { + "source" : 30, + "destination" : 29, + "relation" : "case" + }, { + "source" : 30, + "destination" : 34, + "relation" : "nmod" + }, { + "source" : 34, + "destination" : 31, + "relation" : "case" + }, { + "source" : 34, + "destination" : 32, + "relation" : "compound" + }, { + "source" : 34, + "destination" : 33, + "relation" : "compound" + }, { + "source" : 34, + "destination" : 37, + "relation" : "nmod" + }, { + "source" : 37, + "destination" : 35, + "relation" : "case" + }, { + "source" : 37, + "destination" : 36, + "relation" : "compound" + }, { + "source" : 41, + "destination" : 44, + "relation" : "nmod" + }, { + "source" : 41, + "destination" : 38, + "relation" : "cop" + }, { + "source" : 41, + "destination" : 39, + "relation" : "neg" + }, { + "source" : 41, + "destination" : 24, + "relation" : "mark" + }, { + "source" : 41, + "destination" : 40, + "relation" : "advmod" + }, { + "source" : 41, + "destination" : 26, + "relation" : "nsubj" + }, { + "source" : 44, + "destination" : 43, + "relation" : "det" + }, { + "source" : 44, + "destination" : 47, + "relation" : "nmod" + }, { + "source" : 44, + "destination" : 42, + "relation" : "case" + }, { + "source" : 47, + "destination" : 45, + "relation" : "case" + }, { + "source" : 47, + "destination" : 46, + "relation" : "det" + }, { + "source" : 47, + "destination" : 49, + "relation" : "nmod" + }, { + "source" : 49, + "destination" : 48, + "relation" : "case" + }, { + "source" : 2, + "destination" : 0, + "relation" : "case" + }, { + "source" : 2, + "destination" : 1, + "relation" : "det" + }, { + "source" : 5, + "destination" : 2, + "relation" : "nmod" + }, { + "source" : 5, + "destination" : 4, + "relation" : "nsubj" + }, { + "source" : 5, + "destination" : 7, + "relation" : "dobj" + }, { + "source" : 5, + "destination" : 23, + "relation" : "advcl" + }, { + "source" : 7, + "destination" : 6, + "relation" : "compound" + }, { + "source" : 7, + "destination" : 8, + "relation" : "acl" + }, { + "source" : 8, + "destination" : 12, + "relation" : "nmod" + }, { + "source" : 8, + "destination" : 14, + "relation" : "advcl" + }, { + "source" : 8, + "destination" : 9, + "relation" : "dobj" + } ], + "roots" : [ 5 ] + } + } + }, { + "words" : [ "We", "observed", "analogous", "results", "in", "CHO-KI", "cells", "expressing", "wild-type", "ERBB3", "in", "combination", "with", "wild-type", "or", "T677A", "mutant", "HER2", "(", "Figure", "6B", ")", "." ], + "startOffsets" : [ 1052, 1055, 1064, 1074, 1082, 1085, 1092, 1098, 1109, 1119, 1125, 1128, 1140, 1145, 1155, 1158, 1164, 1171, 1176, 1177, 1184, 1186, 1187 ], + "endOffsets" : [ 1054, 1063, 1073, 1081, 1084, 1091, 1097, 1108, 1118, 1124, 1127, 1139, 1144, 1154, 1157, 1163, 1170, 1175, 1177, 1183, 1186, 1187, 1188 ], + "raw" : [ "We", "observed", "analogous", "results", "in", "CHO-KI", "cells", "expressing", "wild-type", "ERBB3", "in", "combination", "with", "wild-type", "or", "T677A", "mutant", "HER2", "(", "Figure", "6B", ")", "." ], + "tags" : [ "PRP", "VBD", "JJ", "NNS", "IN", "NN", "NNS", "VBG", "JJ", "NN", "IN", "NN", "IN", "JJ", "CC", "NN", "NN", "NN", "-LRB-", "NNP", "NN", "-RRB-", "." ], + "lemmas" : [ "we", "observe", "analogous", "result", "in", "cho-ki", "cell", "express", "wild-type", "erbb3", "in", "combination", "with", "wild-type", "or", "t677a", "mutant", "her2", "(", "Figure", "6b", ")", "." ], + "entities" : [ "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "O" ], + "chunks" : [ "B-NP", "B-VP", "B-NP", "I-NP", "B-PP", "B-NP", "I-NP", "B-VP", "B-NP", "I-NP", "B-PP", "B-NP", "B-PP", "B-NP", "I-NP", "I-NP", "I-NP", "I-NP", "I-NP", "I-NP", "I-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 17, + "destination" : 15, + "relation" : "compound" + }, { + "source" : 17, + "destination" : 16, + "relation" : "compound" + }, { + "source" : 17, + "destination" : 20, + "relation" : "appos" + }, { + "source" : 20, + "destination" : 19, + "relation" : "compound" + }, { + "source" : 1, + "destination" : 0, + "relation" : "nsubj" + }, { + "source" : 1, + "destination" : 3, + "relation" : "dobj" + }, { + "source" : 1, + "destination" : 6, + "relation" : "nmod_in" + }, { + "source" : 1, + "destination" : 7, + "relation" : "xcomp" + }, { + "source" : 3, + "destination" : 2, + "relation" : "amod" + }, { + "source" : 6, + "destination" : 4, + "relation" : "case" + }, { + "source" : 6, + "destination" : 5, + "relation" : "compound" + }, { + "source" : 7, + "destination" : 17, + "relation" : "nmod_with" + }, { + "source" : 7, + "destination" : 9, + "relation" : "dobj" + }, { + "source" : 7, + "destination" : 11, + "relation" : "nmod_in" + }, { + "source" : 7, + "destination" : 13, + "relation" : "nmod_with" + }, { + "source" : 9, + "destination" : 8, + "relation" : "amod" + }, { + "source" : 11, + "destination" : 10, + "relation" : "case" + }, { + "source" : 13, + "destination" : 14, + "relation" : "cc" + }, { + "source" : 13, + "destination" : 17, + "relation" : "conj_or" + }, { + "source" : 13, + "destination" : 12, + "relation" : "case" + } ], + "roots" : [ 1 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 17, + "destination" : 15, + "relation" : "compound" + }, { + "source" : 17, + "destination" : 16, + "relation" : "compound" + }, { + "source" : 17, + "destination" : 20, + "relation" : "appos" + }, { + "source" : 20, + "destination" : 19, + "relation" : "compound" + }, { + "source" : 1, + "destination" : 0, + "relation" : "nsubj" + }, { + "source" : 1, + "destination" : 3, + "relation" : "dobj" + }, { + "source" : 1, + "destination" : 6, + "relation" : "nmod" + }, { + "source" : 1, + "destination" : 7, + "relation" : "xcomp" + }, { + "source" : 3, + "destination" : 2, + "relation" : "amod" + }, { + "source" : 6, + "destination" : 4, + "relation" : "case" + }, { + "source" : 6, + "destination" : 5, + "relation" : "compound" + }, { + "source" : 7, + "destination" : 9, + "relation" : "dobj" + }, { + "source" : 7, + "destination" : 11, + "relation" : "nmod" + }, { + "source" : 7, + "destination" : 13, + "relation" : "nmod" + }, { + "source" : 9, + "destination" : 8, + "relation" : "amod" + }, { + "source" : 11, + "destination" : 10, + "relation" : "case" + }, { + "source" : 13, + "destination" : 14, + "relation" : "cc" + }, { + "source" : 13, + "destination" : 17, + "relation" : "conj" + }, { + "source" : 13, + "destination" : 12, + "relation" : "case" + } ], + "roots" : [ 1 ] + } + } + }, { + "words" : [ "Together", "these", "results", "support", "the", "hypothesis", "that", "inhibition", "of", "ERK", "mediated", "phosphorylation", "of", "a", "conserved", "juxtamembrane", "domain", "threonine", "residue", "leads", "to", "feedback", "activation", "of", "EGFR", ",", "HER2", ",", "and", "ERBB3", "(", "Figure", "7", ")", "." ], + "startOffsets" : [ 1189, 1198, 1204, 1212, 1220, 1224, 1235, 1240, 1251, 1254, 1258, 1267, 1283, 1286, 1288, 1298, 1312, 1319, 1329, 1337, 1343, 1346, 1355, 1366, 1369, 1373, 1375, 1379, 1381, 1385, 1391, 1392, 1399, 1400, 1401 ], + "endOffsets" : [ 1197, 1203, 1211, 1219, 1223, 1234, 1239, 1250, 1253, 1257, 1266, 1282, 1285, 1287, 1297, 1311, 1318, 1328, 1336, 1342, 1345, 1354, 1365, 1368, 1373, 1374, 1379, 1380, 1384, 1390, 1392, 1398, 1400, 1401, 1402 ], + "raw" : [ "Together", "these", "results", "support", "the", "hypothesis", "that", "inhibition", "of", "ERK", "mediated", "phosphorylation", "of", "a", "conserved", "juxtamembrane", "domain", "threonine", "residue", "leads", "to", "feedback", "activation", "of", "EGFR", ",", "HER2", ",", "and", "ERBB3", "(", "Figure", "7", ")", "." ], + "tags" : [ "RB", "DT", "NNS", "VBP", "DT", "NN", "IN", "NN", "IN", "NN", "VBD", "NN", "IN", "DT", "JJ", "NN", "NN", "NN", "NN", "VBZ", "TO", "NN", "NN", "IN", "NN", ",", "NN", ",", "CC", "NN", "-LRB-", "NN", "CD", "-RRB-", "." ], + "lemmas" : [ "together", "these", "result", "support", "the", "hypothesis", "that", "inhibition", "of", "erk", "mediate", "phosphorylation", "of", "a", "conserved", "juxtamembrane", "domain", "threonine", "residue", "lead", "to", "feedback", "activation", "of", "egfr", ",", "her2", ",", "and", "erbb3", "(", "figure", "7", ")", "." ], + "entities" : [ "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Family", "O", "O", "O", "O", "O", "O", "O", "B-Site", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "B-Gene_or_gene_product", "O", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "O" ], + "chunks" : [ "B-ADVP", "B-NP", "I-NP", "B-VP", "B-NP", "I-NP", "B-SBAR", "B-NP", "B-PP", "B-NP", "B-VP", "B-NP", "B-PP", "B-NP", "I-NP", "I-NP", "I-NP", "I-NP", "I-NP", "B-VP", "B-PP", "B-NP", "I-NP", "B-PP", "B-NP", "O", "B-NP", "O", "O", "B-NP", "I-NP", "I-NP", "I-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 18, + "destination" : 17, + "relation" : "compound" + }, { + "source" : 18, + "destination" : 12, + "relation" : "case" + }, { + "source" : 18, + "destination" : 13, + "relation" : "det" + }, { + "source" : 18, + "destination" : 14, + "relation" : "amod" + }, { + "source" : 18, + "destination" : 15, + "relation" : "compound" + }, { + "source" : 18, + "destination" : 16, + "relation" : "compound" + }, { + "source" : 19, + "destination" : 22, + "relation" : "nmod_to" + }, { + "source" : 19, + "destination" : 11, + "relation" : "nsubj" + }, { + "source" : 22, + "destination" : 20, + "relation" : "case" + }, { + "source" : 22, + "destination" : 21, + "relation" : "compound" + }, { + "source" : 22, + "destination" : 24, + "relation" : "nmod_of" + }, { + "source" : 22, + "destination" : 26, + "relation" : "nmod_of" + }, { + "source" : 22, + "destination" : 29, + "relation" : "nmod_of" + }, { + "source" : 24, + "destination" : 23, + "relation" : "case" + }, { + "source" : 24, + "destination" : 26, + "relation" : "conj_and" + }, { + "source" : 24, + "destination" : 28, + "relation" : "cc" + }, { + "source" : 24, + "destination" : 29, + "relation" : "conj_and" + }, { + "source" : 24, + "destination" : 31, + "relation" : "appos" + }, { + "source" : 31, + "destination" : 32, + "relation" : "nummod" + }, { + "source" : 2, + "destination" : 1, + "relation" : "det" + }, { + "source" : 3, + "destination" : 2, + "relation" : "nsubj" + }, { + "source" : 3, + "destination" : 5, + "relation" : "dobj" + }, { + "source" : 3, + "destination" : 10, + "relation" : "ccomp" + }, { + "source" : 3, + "destination" : 0, + "relation" : "advmod" + }, { + "source" : 5, + "destination" : 4, + "relation" : "det" + }, { + "source" : 7, + "destination" : 9, + "relation" : "nmod_of" + }, { + "source" : 9, + "destination" : 8, + "relation" : "case" + }, { + "source" : 10, + "destination" : 19, + "relation" : "ccomp" + }, { + "source" : 10, + "destination" : 6, + "relation" : "mark" + }, { + "source" : 10, + "destination" : 7, + "relation" : "nsubj" + }, { + "source" : 11, + "destination" : 18, + "relation" : "nmod_of" + } ], + "roots" : [ 3 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 18, + "destination" : 17, + "relation" : "compound" + }, { + "source" : 18, + "destination" : 12, + "relation" : "case" + }, { + "source" : 18, + "destination" : 13, + "relation" : "det" + }, { + "source" : 18, + "destination" : 14, + "relation" : "amod" + }, { + "source" : 18, + "destination" : 15, + "relation" : "compound" + }, { + "source" : 18, + "destination" : 16, + "relation" : "compound" + }, { + "source" : 19, + "destination" : 22, + "relation" : "nmod" + }, { + "source" : 19, + "destination" : 11, + "relation" : "nsubj" + }, { + "source" : 22, + "destination" : 20, + "relation" : "case" + }, { + "source" : 22, + "destination" : 21, + "relation" : "compound" + }, { + "source" : 22, + "destination" : 24, + "relation" : "nmod" + }, { + "source" : 24, + "destination" : 23, + "relation" : "case" + }, { + "source" : 24, + "destination" : 26, + "relation" : "conj" + }, { + "source" : 24, + "destination" : 28, + "relation" : "cc" + }, { + "source" : 24, + "destination" : 29, + "relation" : "conj" + }, { + "source" : 24, + "destination" : 31, + "relation" : "appos" + }, { + "source" : 31, + "destination" : 32, + "relation" : "nummod" + }, { + "source" : 2, + "destination" : 1, + "relation" : "det" + }, { + "source" : 3, + "destination" : 2, + "relation" : "nsubj" + }, { + "source" : 3, + "destination" : 5, + "relation" : "dobj" + }, { + "source" : 3, + "destination" : 10, + "relation" : "ccomp" + }, { + "source" : 3, + "destination" : 0, + "relation" : "advmod" + }, { + "source" : 5, + "destination" : 4, + "relation" : "det" + }, { + "source" : 7, + "destination" : 9, + "relation" : "nmod" + }, { + "source" : 9, + "destination" : 8, + "relation" : "case" + }, { + "source" : 10, + "destination" : 19, + "relation" : "ccomp" + }, { + "source" : 10, + "destination" : 6, + "relation" : "mark" + }, { + "source" : 10, + "destination" : 7, + "relation" : "nsubj" + }, { + "source" : 11, + "destination" : 18, + "relation" : "nmod" + } ], + "roots" : [ 3 ] + } + } + } ] + } + }, + "mentions" : [ { + "type" : "EventMention", + "id" : "E:-636470663", + "text" : "EGFR and ERBB3 tyrosine phosphorylation that was not augmented by MEK", + "labels" : [ "Negative_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-1611410486", + "text" : "augmented", + "labels" : [ "Negative_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 17, + "end" : 18 + }, + "characterStartOffset" : 714, + "characterEndOffset" : 723, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "Positive_regulation_syntax_2_verb" + }, + "arguments" : { + "controlled" : [ { + "type" : "EventMention", + "id" : "E:-611799837", + "text" : "EGFR and ERBB3 tyrosine phosphorylation", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-525342673", + "text" : "phosphorylation", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 13, + "end" : 14 + }, + "characterStartOffset" : 685, + "characterEndOffset" : 700, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_4_noun" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:2007578222", + "text" : "EGFR", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 9, + "end" : 10 + }, + "characterStartOffset" : 661, + "characterEndOffset" : 665, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ], + "site" : [ { + "type" : "TextBoundMention", + "id" : "T:843185109", + "text" : "tyrosine", + "labels" : [ "Site" ], + "tokenInterval" : { + "start" : 12, + "end" : 13 + }, + "characterStartOffset" : 676, + "characterEndOffset" : 684, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "site_long" + } ] + }, + "paths" : { + "theme" : { + "T:1219434563" : [ { + "source" : 13, + "destination" : 11, + "relation" : "compound" + } ], + "T:2007578222" : [ { + "source" : 9, + "destination" : 13, + "relation" : "conj_and" + } ] + }, + "site" : { + "T:843185109" : [ { + "source" : 13, + "destination" : 12, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 9, + "end" : 14 + }, + "characterStartOffset" : 661, + "characterEndOffset" : 700, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_4_noun" + } ], + "controller" : [ { + "type" : "TextBoundMention", + "id" : "T:1985064385", + "text" : "MEK", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 19, + "end" : 20 + }, + "characterStartOffset" : 727, + "characterEndOffset" : 730, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-family-entities" + } ] + }, + "paths" : { + "controlled" : { + "E:-611799837" : [ { + "source" : 17, + "destination" : 9, + "relation" : "nsubjpass" + }, { + "source" : 9, + "destination" : 13, + "relation" : "conj_and" + }, { + "source" : 13, + "destination" : 12, + "relation" : "compound" + } ], + "E:713457707" : [ { + "source" : 17, + "destination" : 9, + "relation" : "nsubjpass" + }, { + "source" : 9, + "destination" : 13, + "relation" : "conj_and" + }, { + "source" : 13, + "destination" : 12, + "relation" : "compound" + } ] + }, + "controller" : { + "T:1985064385" : [ { + "source" : 17, + "destination" : 20, + "relation" : "nmod_agent" + }, { + "source" : 20, + "destination" : 19, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 9, + "end" : 20 + }, + "characterStartOffset" : 661, + "characterEndOffset" : 730, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "Positive_regulation_syntax_2_verb" + }, { + "type" : "EventMention", + "id" : "E:386195418", + "text" : "ERBB3 tyrosine phosphorylation that was not augmented by MEK", + "labels" : [ "Negative_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-1611410486", + "text" : "augmented", + "labels" : [ "Negative_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 17, + "end" : 18 + }, + "characterStartOffset" : 714, + "characterEndOffset" : 723, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "Positive_regulation_syntax_2_verb" + }, + "arguments" : { + "controlled" : [ { + "type" : "EventMention", + "id" : "E:713457707", + "text" : "ERBB3 tyrosine phosphorylation", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-525342673", + "text" : "phosphorylation", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 13, + "end" : 14 + }, + "characterStartOffset" : 685, + "characterEndOffset" : 700, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_4_noun" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:1219434563", + "text" : "ERBB3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 11, + "end" : 12 + }, + "characterStartOffset" : 670, + "characterEndOffset" : 675, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ], + "site" : [ { + "type" : "TextBoundMention", + "id" : "T:843185109", + "text" : "tyrosine", + "labels" : [ "Site" ], + "tokenInterval" : { + "start" : 12, + "end" : 13 + }, + "characterStartOffset" : 676, + "characterEndOffset" : 684, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "site_long" + } ] + }, + "paths" : { + "theme" : { + "T:1219434563" : [ { + "source" : 13, + "destination" : 11, + "relation" : "compound" + } ], + "T:2007578222" : [ { + "source" : 9, + "destination" : 13, + "relation" : "conj_and" + } ] + }, + "site" : { + "T:843185109" : [ { + "source" : 13, + "destination" : 12, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 11, + "end" : 14 + }, + "characterStartOffset" : 670, + "characterEndOffset" : 700, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_4_noun" + } ], + "controller" : [ { + "type" : "TextBoundMention", + "id" : "T:1985064385", + "text" : "MEK", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 19, + "end" : 20 + }, + "characterStartOffset" : 727, + "characterEndOffset" : 730, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-family-entities" + } ] + }, + "paths" : { + "controlled" : { + "E:-611799837" : [ { + "source" : 17, + "destination" : 9, + "relation" : "nsubjpass" + }, { + "source" : 9, + "destination" : 13, + "relation" : "conj_and" + }, { + "source" : 13, + "destination" : 12, + "relation" : "compound" + } ], + "E:713457707" : [ { + "source" : 17, + "destination" : 9, + "relation" : "nsubjpass" + }, { + "source" : 9, + "destination" : 13, + "relation" : "conj_and" + }, { + "source" : 13, + "destination" : 12, + "relation" : "compound" + } ] + }, + "controller" : { + "T:1985064385" : [ { + "source" : 17, + "destination" : 20, + "relation" : "nmod_agent" + }, { + "source" : 20, + "destination" : 19, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 11, + "end" : 20 + }, + "characterStartOffset" : 670, + "characterEndOffset" : 730, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "Positive_regulation_syntax_2_verb" + }, { + "type" : "TextBoundMention", + "id" : "T:-1484037178", + "text" : "MEK", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 3, + "end" : 4 + }, + "characterStartOffset" : 21, + "characterEndOffset" : 24, + "sentence" : 0, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-1479275769", + "text" : "AKT", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 6, + "end" : 7 + }, + "characterStartOffset" : 46, + "characterEndOffset" : 49, + "sentence" : 0, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-1032290371", + "text" : "ERK", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 9, + "end" : 10 + }, + "characterStartOffset" : 64, + "characterEndOffset" : 67, + "sentence" : 0, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1505502961", + "text" : "threonine", + "labels" : [ "Site" ], + "tokenInterval" : { + "start" : 16, + "end" : 17 + }, + "characterStartOffset" : 105, + "characterEndOffset" : 114, + "sentence" : 0, + "document" : "-817467340", + "keep" : true, + "foundBy" : "site_long" + }, { + "type" : "TextBoundMention", + "id" : "T:1512098036", + "text" : "EGFR", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 23, + "end" : 24 + }, + "characterStartOffset" : 163, + "characterEndOffset" : 167, + "sentence" : 0, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-71466651", + "text" : "HER2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 25, + "end" : 26 + }, + "characterStartOffset" : 172, + "characterEndOffset" : 176, + "sentence" : 0, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1436409047", + "text" : "ERBB3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 29, + "end" : 30 + }, + "characterStartOffset" : 197, + "characterEndOffset" : 202, + "sentence" : 0, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-515183078", + "text" : "ERBB", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 15, + "end" : 16 + }, + "characterStartOffset" : 307, + "characterEndOffset" : 311, + "sentence" : 1, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:231658656", + "text" : "ERBB receptors", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 15, + "end" : 17 + }, + "characterStartOffset" : 307, + "characterEndOffset" : 321, + "sentence" : 1, + "document" : "-817467340", + "keep" : true, + "foundBy" : "missing-location" + }, { + "type" : "TextBoundMention", + "id" : "T:801942843", + "text" : "ERBB3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 21, + "end" : 22 + }, + "characterStartOffset" : 351, + "characterEndOffset" : 356, + "sentence" : 1, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-1263682795", + "text" : "EGFR", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 25, + "end" : 26 + }, + "characterStartOffset" : 379, + "characterEndOffset" : 383, + "sentence" : 1, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:306807048", + "text" : "EGFRT669A", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 27, + "end" : 28 + }, + "characterStartOffset" : 387, + "characterEndOffset" : 396, + "sentence" : 1, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:956482681", + "text" : "EGFR", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 5, + "end" : 6 + }, + "characterStartOffset" : 434, + "characterEndOffset" : 438, + "sentence" : 2, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:209115052", + "text" : "MEK", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 7, + "end" : 8 + }, + "characterStartOffset" : 440, + "characterEndOffset" : 443, + "sentence" : 2, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-648200968", + "text" : "phospho-ERBB3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 14, + "end" : 15 + }, + "characterStartOffset" : 485, + "characterEndOffset" : 498, + "sentence" : 2, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-1765686083", + "text" : "phosho-EGFR", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 16, + "end" : 17 + }, + "characterStartOffset" : 503, + "characterEndOffset" : 514, + "sentence" : 2, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1457719119", + "text" : "EGFRT669A mutant", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 4, + "end" : 6 + }, + "characterStartOffset" : 623, + "characterEndOffset" : 639, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:2007578222", + "text" : "EGFR", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 9, + "end" : 10 + }, + "characterStartOffset" : 661, + "characterEndOffset" : 665, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1219434563", + "text" : "ERBB3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 11, + "end" : 12 + }, + "characterStartOffset" : 670, + "characterEndOffset" : 675, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:843185109", + "text" : "tyrosine", + "labels" : [ "Site" ], + "tokenInterval" : { + "start" : 12, + "end" : 13 + }, + "characterStartOffset" : 676, + "characterEndOffset" : 684, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "site_long" + }, { + "type" : "TextBoundMention", + "id" : "T:1985064385", + "text" : "MEK", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 19, + "end" : 20 + }, + "characterStartOffset" : 727, + "characterEndOffset" : 730, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1695067081", + "text" : "EGFRT669A", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 9, + "end" : 10 + }, + "characterStartOffset" : 792, + "characterEndOffset" : 801, + "sentence" : 4, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-867527023", + "text" : "HRG", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 11, + "end" : 12 + }, + "characterStartOffset" : 807, + "characterEndOffset" : 810, + "sentence" : 4, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1533739738", + "text" : "ERBB3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 16, + "end" : 17 + }, + "characterStartOffset" : 836, + "characterEndOffset" : 841, + "sentence" : 4, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-568799546", + "text" : "phospho-ERBB3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 30, + "end" : 31 + }, + "characterStartOffset" : 912, + "characterEndOffset" : 925, + "sentence" : 4, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-1890774864", + "text" : "EGFRT669A", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 32, + "end" : 33 + }, + "characterStartOffset" : 929, + "characterEndOffset" : 938, + "sentence" : 4, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-1650288397", + "text" : "MEK", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 36, + "end" : 37 + }, + "characterStartOffset" : 966, + "characterEndOffset" : 969, + "sentence" : 4, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1053846530", + "text" : "ERBB3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 9, + "end" : 10 + }, + "characterStartOffset" : 1119, + "characterEndOffset" : 1124, + "sentence" : 5, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-567218927", + "text" : "HER2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 17, + "end" : 18 + }, + "characterStartOffset" : 1171, + "characterEndOffset" : 1175, + "sentence" : 5, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:88263993", + "text" : "ERK", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 9, + "end" : 10 + }, + "characterStartOffset" : 1254, + "characterEndOffset" : 1257, + "sentence" : 6, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:143178711", + "text" : "threonine residue", + "labels" : [ "Site" ], + "tokenInterval" : { + "start" : 17, + "end" : 19 + }, + "characterStartOffset" : 1319, + "characterEndOffset" : 1336, + "sentence" : 6, + "document" : "-817467340", + "keep" : true, + "foundBy" : "site_long" + }, { + "type" : "TextBoundMention", + "id" : "T:1539229472", + "text" : "EGFR", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 24, + "end" : 25 + }, + "characterStartOffset" : 1369, + "characterEndOffset" : 1373, + "sentence" : 6, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-978821358", + "text" : "HER2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 26, + "end" : 27 + }, + "characterStartOffset" : 1375, + "characterEndOffset" : 1379, + "sentence" : 6, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-774459500", + "text" : "ERBB3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 29, + "end" : 30 + }, + "characterStartOffset" : 1385, + "characterEndOffset" : 1390, + "sentence" : 6, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "EventMention", + "id" : "E:2101228172", + "text" : "MEK inhibition activates AKT", + "labels" : [ "Negative_activation", "ActivationEvent", "ComplexEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:1409488401", + "text" : "activates", + "labels" : [ "Negative_activation", "ActivationEvent", "ComplexEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 5, + "end" : 6 + }, + "characterStartOffset" : 36, + "characterEndOffset" : 45, + "sentence" : 0, + "document" : "-817467340", + "keep" : true, + "foundBy" : "Positive_activation_syntax_3a_verb" + }, + "arguments" : { + "controlled" : [ { + "type" : "TextBoundMention", + "id" : "T:-1479275769", + "text" : "AKT", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 6, + "end" : 7 + }, + "characterStartOffset" : 46, + "characterEndOffset" : 49, + "sentence" : 0, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-family-entities" + } ], + "controller" : [ { + "type" : "TextBoundMention", + "id" : "T:-1484037178", + "text" : "MEK", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 3, + "end" : 4 + }, + "characterStartOffset" : 21, + "characterEndOffset" : 24, + "sentence" : 0, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-family-entities" + } ] + }, + "paths" : { + "controlled" : { + "T:-1479275769" : [ { + "source" : 5, + "destination" : 6, + "relation" : "dobj" + } ] + }, + "controller" : { + "T:-1484037178" : [ { + "source" : 5, + "destination" : 4, + "relation" : "nsubj" + }, { + "source" : 4, + "destination" : 3, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 3, + "end" : 7 + }, + "characterStartOffset" : 21, + "characterEndOffset" : 49, + "sentence" : 0, + "document" : "-817467340", + "keep" : true, + "foundBy" : "Positive_activation_syntax_3a_verb" + }, { + "type" : "EventMention", + "id" : "E:-611799837", + "text" : "EGFR and ERBB3 tyrosine phosphorylation", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-525342673", + "text" : "phosphorylation", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 13, + "end" : 14 + }, + "characterStartOffset" : 685, + "characterEndOffset" : 700, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_4_noun" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:2007578222", + "text" : "EGFR", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 9, + "end" : 10 + }, + "characterStartOffset" : 661, + "characterEndOffset" : 665, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ], + "site" : [ { + "type" : "TextBoundMention", + "id" : "T:843185109", + "text" : "tyrosine", + "labels" : [ "Site" ], + "tokenInterval" : { + "start" : 12, + "end" : 13 + }, + "characterStartOffset" : 676, + "characterEndOffset" : 684, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "site_long" + } ] + }, + "paths" : { + "theme" : { + "T:1219434563" : [ { + "source" : 13, + "destination" : 11, + "relation" : "compound" + } ], + "T:2007578222" : [ { + "source" : 9, + "destination" : 13, + "relation" : "conj_and" + } ] + }, + "site" : { + "T:843185109" : [ { + "source" : 13, + "destination" : 12, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 9, + "end" : 14 + }, + "characterStartOffset" : 661, + "characterEndOffset" : 700, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_4_noun" + }, { + "type" : "EventMention", + "id" : "E:713457707", + "text" : "ERBB3 tyrosine phosphorylation", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-525342673", + "text" : "phosphorylation", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 13, + "end" : 14 + }, + "characterStartOffset" : 685, + "characterEndOffset" : 700, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_4_noun" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:1219434563", + "text" : "ERBB3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 11, + "end" : 12 + }, + "characterStartOffset" : 670, + "characterEndOffset" : 675, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ], + "site" : [ { + "type" : "TextBoundMention", + "id" : "T:843185109", + "text" : "tyrosine", + "labels" : [ "Site" ], + "tokenInterval" : { + "start" : 12, + "end" : 13 + }, + "characterStartOffset" : 676, + "characterEndOffset" : 684, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "site_long" + } ] + }, + "paths" : { + "theme" : { + "T:1219434563" : [ { + "source" : 13, + "destination" : 11, + "relation" : "compound" + } ], + "T:2007578222" : [ { + "source" : 9, + "destination" : 13, + "relation" : "conj_and" + } ] + }, + "site" : { + "T:843185109" : [ { + "source" : 13, + "destination" : 12, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 11, + "end" : 14 + }, + "characterStartOffset" : 670, + "characterEndOffset" : 700, + "sentence" : 3, + "document" : "-817467340", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_4_noun" + }, { + "type" : "EventMention", + "id" : "E:1715287369", + "text" : "ERBB3 phosphorylation", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:652905347", + "text" : "phosphorylation", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 17, + "end" : 18 + }, + "characterStartOffset" : 842, + "characterEndOffset" : 857, + "sentence" : 4, + "document" : "-817467340", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_4_noun" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:1533739738", + "text" : "ERBB3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 16, + "end" : 17 + }, + "characterStartOffset" : 836, + "characterEndOffset" : 841, + "sentence" : 4, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "theme" : { + "T:1533739738" : [ { + "source" : 17, + "destination" : 16, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 16, + "end" : 18 + }, + "characterStartOffset" : 836, + "characterEndOffset" : 857, + "sentence" : 4, + "document" : "-817467340", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_4_noun" + }, { + "type" : "EventMention", + "id" : "E:-348441612", + "text" : "ERBB3 phosphorylation", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:1246359296", + "text" : "phosphorylation", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 30, + "end" : 31 + }, + "characterStartOffset" : 203, + "characterEndOffset" : 218, + "sentence" : 0, + "document" : "-817467340", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_4_noun" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:1436409047", + "text" : "ERBB3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 29, + "end" : 30 + }, + "characterStartOffset" : 197, + "characterEndOffset" : 202, + "sentence" : 0, + "document" : "-817467340", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "theme" : { + "T:1436409047" : [ { + "source" : 30, + "destination" : 29, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 29, + "end" : 31 + }, + "characterStartOffset" : 197, + "characterEndOffset" : 218, + "sentence" : 0, + "document" : "-817467340", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_4_noun" + } ] +} \ No newline at end of file diff --git a/demo/data/passage-2-odin.json b/demo/data/passage-2-odin.json new file mode 100644 index 0000000..d440082 --- /dev/null +++ b/demo/data/passage-2-odin.json @@ -0,0 +1,5602 @@ +{ + "documents" : { + "1955805614" : { + "id" : "passage-2-odin", + "text" : "We next examined the mechanisms accounting for the increase in HER3 by MAPK pathway inhibitors in BRAF mutant thyroid cell lines.\nUpregulation of HER3 has been found to mediate resistance to PI3K/AKT (26) or HER2 (27) inhibitors in HER2-amplified breast cancer cell lines, which is caused in part through a FoxO3A-dependent induction of HER3 gene transcription.\nAs shown in Fig. 5A, PLX4032 treatment increased HER3 and HER2 mRNAs in all six BRAF-mutant thyroid cancer cell lines tested.\nSimilar results were found following treatment with the MEK inhibitor AZD6244 (not shown).\nThe effects of the MEK inhibitor on total HER2, HER3 protein and on pHER3 were dose dependent, and inversely associated with the degree of inhibition of pERK (Fig. 5B).\nRAF or MEK inhibitors induced luciferase activity of a HER3 promoter construct spanning ~ 1 kb upstream of the transcriptional start site in 8505C cells.\nSerial deletions identified a minimal HER3 promoter retaining transcriptional response to vemurafenib and AZD6244, which was located between −401 and −42 bp (Fig. 5C).\nThis region does not contain any predicted FoxO binding sites.\nMoreover, PLX4032 led to an increase in phosphorylation of FoxO1/3A between 4–10h after addition of compound (not shown), which is known to promote its dissociation from DNA, and likely discards involvement of these factors as transcriptional regulators of HER3 in response to MAPK pathway inhibition.\nThe minimal HER3 promoter region regulated by MAPK inhibitors overlaps with sequences previously described to be immunoprecipitated using antibodies against the ZFN217 transcription factor and CtBP1/CtBP2 corepressors (28–30).\nCtBPs have also been described to negatively regulate transcriptional activity of the HER3 promoter in breast carcinoma cell lines (30).\nSilencing of CtBP1, and to a lesser extent CtBP2, increased basal HER3 in 8505C cells, and markedly potentiated the effects of PLX4032 (Fig. 5D and 5E).\nKnockdown of these factors modestly increased basal and PLX4032-induced HER2 levels, which likely contributes to the remarkable increase in pHER3 we observed (Fig. 5D and 5E).\nFinally, CtBP1 and CtBP2 chromatin immunoprecipitation assays showed decreased binding to the HER3 promoter after treatment with PLX4032 (Fig. 5F).\nThese findings were confirmed in a second cell line (Supplementary Fig. S5A).", + "sentences" : [ { + "words" : [ "We", "next", "examined", "the", "mechanisms", "accounting", "for", "the", "increase", "in", "HER3", "by", "MAPK", "pathway", "inhibitors", "in", "BRAF", "mutant", "thyroid", "cell", "lines", "." ], + "startOffsets" : [ 0, 3, 8, 17, 21, 32, 43, 47, 51, 60, 63, 68, 71, 76, 84, 95, 98, 103, 110, 118, 123, 128 ], + "endOffsets" : [ 2, 7, 16, 20, 31, 42, 46, 50, 59, 62, 67, 70, 75, 83, 94, 97, 102, 109, 117, 122, 128, 129 ], + "raw" : [ "We", "next", "examined", "the", "mechanisms", "accounting", "for", "the", "increase", "in", "HER3", "by", "MAPK", "pathway", "inhibitors", "in", "BRAF", "mutant", "thyroid", "cell", "lines", "." ], + "tags" : [ "PRP", "RB", "VBD", "DT", "NNS", "VBG", "IN", "DT", "NN", "IN", "NN", "IN", "NN", "NN", "NNS", "IN", "NN", "NN", "NN", "NN", "NNS", "." ], + "lemmas" : [ "we", "next", "examine", "the", "mechanism", "account", "for", "the", "increase", "in", "her3", "by", "mapk", "pathway", "inhibitor", "in", "braf", "mutant", "thyroid", "cell", "line", "." ], + "entities" : [ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "B-Family", "O", "O", "O", "B-Gene_or_gene_product", "O", "B-TissueType", "O", "O", "O" ], + "chunks" : [ "B-NP", "B-ADVP", "B-VP", "B-NP", "I-NP", "B-VP", "B-PP", "B-NP", "I-NP", "B-PP", "B-NP", "B-PP", "B-NP", "I-NP", "I-NP", "B-PP", "B-NP", "I-NP", "I-NP", "I-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 2, + "destination" : 0, + "relation" : "nsubj" + }, { + "source" : 2, + "destination" : 1, + "relation" : "advmod" + }, { + "source" : 2, + "destination" : 4, + "relation" : "dobj" + }, { + "source" : 4, + "destination" : 3, + "relation" : "det" + }, { + "source" : 4, + "destination" : 5, + "relation" : "acl" + }, { + "source" : 5, + "destination" : 8, + "relation" : "nmod_for" + }, { + "source" : 5, + "destination" : 14, + "relation" : "nmod_by" + }, { + "source" : 8, + "destination" : 6, + "relation" : "case" + }, { + "source" : 8, + "destination" : 7, + "relation" : "det" + }, { + "source" : 8, + "destination" : 10, + "relation" : "nmod_in" + }, { + "source" : 10, + "destination" : 9, + "relation" : "case" + }, { + "source" : 14, + "destination" : 20, + "relation" : "nmod_in" + }, { + "source" : 14, + "destination" : 11, + "relation" : "case" + }, { + "source" : 14, + "destination" : 12, + "relation" : "compound" + }, { + "source" : 14, + "destination" : 13, + "relation" : "compound" + }, { + "source" : 20, + "destination" : 15, + "relation" : "case" + }, { + "source" : 20, + "destination" : 16, + "relation" : "compound" + }, { + "source" : 20, + "destination" : 17, + "relation" : "compound" + }, { + "source" : 20, + "destination" : 18, + "relation" : "compound" + }, { + "source" : 20, + "destination" : 19, + "relation" : "compound" + } ], + "roots" : [ 2 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 2, + "destination" : 0, + "relation" : "nsubj" + }, { + "source" : 2, + "destination" : 1, + "relation" : "advmod" + }, { + "source" : 2, + "destination" : 4, + "relation" : "dobj" + }, { + "source" : 4, + "destination" : 3, + "relation" : "det" + }, { + "source" : 4, + "destination" : 5, + "relation" : "acl" + }, { + "source" : 5, + "destination" : 8, + "relation" : "nmod" + }, { + "source" : 5, + "destination" : 14, + "relation" : "nmod" + }, { + "source" : 8, + "destination" : 6, + "relation" : "case" + }, { + "source" : 8, + "destination" : 7, + "relation" : "det" + }, { + "source" : 8, + "destination" : 10, + "relation" : "nmod" + }, { + "source" : 10, + "destination" : 9, + "relation" : "case" + }, { + "source" : 14, + "destination" : 20, + "relation" : "nmod" + }, { + "source" : 14, + "destination" : 11, + "relation" : "case" + }, { + "source" : 14, + "destination" : 12, + "relation" : "compound" + }, { + "source" : 14, + "destination" : 13, + "relation" : "compound" + }, { + "source" : 20, + "destination" : 15, + "relation" : "case" + }, { + "source" : 20, + "destination" : 16, + "relation" : "compound" + }, { + "source" : 20, + "destination" : 17, + "relation" : "compound" + }, { + "source" : 20, + "destination" : 18, + "relation" : "compound" + }, { + "source" : 20, + "destination" : 19, + "relation" : "compound" + } ], + "roots" : [ 2 ] + } + } + }, { + "words" : [ "Upregulation", "of", "HER3", "has", "been", "found", "to", "mediate", "resistance", "to", "PI3K", "and", "AKT", "(", "26", ")", "or", "HER2", "(", "27", ")", "inhibitors", "in", "HER2", "amplified", "breast", "cancer", "cell", "lines", ",", "which", "is", "caused", "in", "part", "through", "a", "FoxO3A", "dependent", "induction", "of", "HER3", "gene", "transcription", "." ], + "startOffsets" : [ 130, 143, 146, 151, 155, 160, 166, 169, 177, 188, 191, 195, 196, 200, 201, 203, 205, 208, 213, 214, 216, 218, 229, 232, 237, 247, 254, 261, 266, 271, 273, 279, 282, 289, 292, 297, 305, 307, 314, 324, 334, 337, 342, 347, 360 ], + "endOffsets" : [ 142, 145, 150, 154, 159, 165, 168, 176, 187, 190, 195, 196, 199, 201, 203, 204, 207, 212, 214, 216, 217, 228, 231, 236, 246, 253, 260, 265, 271, 272, 278, 281, 288, 291, 296, 304, 306, 313, 323, 333, 336, 341, 346, 360, 361 ], + "raw" : [ "Upregulation", "of", "HER3", "has", "been", "found", "to", "mediate", "resistance", "to", "PI3K", "/", "AKT", "(", "26", ")", "or", "HER2", "(", "27", ")", "inhibitors", "in", "HER2", "amplified", "breast", "cancer", "cell", "lines", ",", "which", "is", "caused", "in", "part", "through", "a", "FoxO3A", "dependent", "induction", "of", "HER3", "gene", "transcription", "." ], + "tags" : [ "NN", "IN", "NN", "VBZ", "VBN", "VBN", "TO", "VB", "NN", "TO", "NN", "CC", "NN", "-LRB-", "CD", "-RRB-", "CC", "NN", "-LRB-", "CD", "-RRB-", "NNS", "IN", "NN", "VBD", "NN", "NN", "NN", "NNS", ",", "WDT", "VBZ", "VBN", "IN", "NN", "IN", "DT", "NN", "JJ", "NN", "IN", "NN", "NN", "NN", "." ], + "lemmas" : [ "upregulation", "of", "her3", "have", "be", "find", "to", "mediate", "resistance", "to", "pi3k", "and", "akt", "(", "26", ")", "or", "her2", "(", "27", ")", "inhibitor", "in", "her2", "amplify", "breast", "cancer", "cell", "line", ",", "which", "be", "cause", "in", "part", "through", "a", "foxo3a", "dependent", "induction", "of", "her3", "gene", "transcription", "." ], + "entities" : [ "O", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "B-Family", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "B-TissueType", "I-TissueType", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "O", "O", "B-Gene_or_gene_product", "O", "B-BioProcess", "O" ], + "chunks" : [ "B-NP", "B-PP", "B-NP", "B-VP", "I-VP", "I-VP", "B-VP", "I-VP", "B-NP", "B-PP", "B-NP", "I-NP", "I-NP", "I-NP", "I-NP", "I-NP", "I-NP", "I-NP", "I-NP", "I-NP", "I-NP", "I-NP", "B-PP", "B-NP", "I-NP", "I-NP", "I-NP", "I-NP", "I-NP", "O", "B-NP", "B-VP", "I-VP", "B-PP", "B-NP", "B-PP", "B-NP", "I-NP", "I-NP", "I-NP", "B-PP", "B-NP", "I-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 34, + "destination" : 33, + "relation" : "case" + }, { + "source" : 39, + "destination" : 35, + "relation" : "case" + }, { + "source" : 39, + "destination" : 36, + "relation" : "det" + }, { + "source" : 39, + "destination" : 37, + "relation" : "compound" + }, { + "source" : 39, + "destination" : 38, + "relation" : "amod" + }, { + "source" : 39, + "destination" : 43, + "relation" : "nmod_of" + }, { + "source" : 43, + "destination" : 40, + "relation" : "case" + }, { + "source" : 43, + "destination" : 41, + "relation" : "compound" + }, { + "source" : 43, + "destination" : 42, + "relation" : "compound" + }, { + "source" : 0, + "destination" : 2, + "relation" : "nmod_of" + }, { + "source" : 2, + "destination" : 1, + "relation" : "case" + }, { + "source" : 5, + "destination" : 3, + "relation" : "aux" + }, { + "source" : 5, + "destination" : 4, + "relation" : "auxpass" + }, { + "source" : 5, + "destination" : 7, + "relation" : "xcomp" + }, { + "source" : 5, + "destination" : 24, + "relation" : "ccomp" + }, { + "source" : 5, + "destination" : 0, + "relation" : "nsubjpass" + }, { + "source" : 7, + "destination" : 6, + "relation" : "mark" + }, { + "source" : 7, + "destination" : 8, + "relation" : "dobj" + }, { + "source" : 7, + "destination" : 10, + "relation" : "nmod_to" + }, { + "source" : 7, + "destination" : 12, + "relation" : "nmod_to" + }, { + "source" : 7, + "destination" : 0, + "relation" : "nsubj:xsubj" + }, { + "source" : 7, + "destination" : 17, + "relation" : "nmod_to" + }, { + "source" : 10, + "destination" : 19, + "relation" : "appos" + }, { + "source" : 10, + "destination" : 9, + "relation" : "case" + }, { + "source" : 10, + "destination" : 11, + "relation" : "cc" + }, { + "source" : 10, + "destination" : 12, + "relation" : "conj_and" + }, { + "source" : 10, + "destination" : 14, + "relation" : "appos" + }, { + "source" : 10, + "destination" : 16, + "relation" : "cc" + }, { + "source" : 10, + "destination" : 17, + "relation" : "conj_or" + }, { + "source" : 21, + "destination" : 23, + "relation" : "nmod_in" + }, { + "source" : 23, + "destination" : 22, + "relation" : "case" + }, { + "source" : 24, + "destination" : 21, + "relation" : "nsubj" + }, { + "source" : 24, + "destination" : 28, + "relation" : "dobj" + }, { + "source" : 28, + "destination" : 25, + "relation" : "compound" + }, { + "source" : 28, + "destination" : 26, + "relation" : "compound" + }, { + "source" : 28, + "destination" : 27, + "relation" : "compound" + }, { + "source" : 28, + "destination" : 30, + "relation" : "ref" + }, { + "source" : 28, + "destination" : 32, + "relation" : "acl:relcl" + }, { + "source" : 32, + "destination" : 34, + "relation" : "nmod_in" + }, { + "source" : 32, + "destination" : 39, + "relation" : "nmod_through" + }, { + "source" : 32, + "destination" : 28, + "relation" : "nsubjpass" + }, { + "source" : 32, + "destination" : 31, + "relation" : "auxpass" + } ], + "roots" : [ 5 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 34, + "destination" : 33, + "relation" : "case" + }, { + "source" : 39, + "destination" : 35, + "relation" : "case" + }, { + "source" : 39, + "destination" : 36, + "relation" : "det" + }, { + "source" : 39, + "destination" : 37, + "relation" : "compound" + }, { + "source" : 39, + "destination" : 38, + "relation" : "amod" + }, { + "source" : 39, + "destination" : 43, + "relation" : "nmod" + }, { + "source" : 43, + "destination" : 40, + "relation" : "case" + }, { + "source" : 43, + "destination" : 41, + "relation" : "compound" + }, { + "source" : 43, + "destination" : 42, + "relation" : "compound" + }, { + "source" : 0, + "destination" : 2, + "relation" : "nmod" + }, { + "source" : 2, + "destination" : 1, + "relation" : "case" + }, { + "source" : 5, + "destination" : 3, + "relation" : "aux" + }, { + "source" : 5, + "destination" : 4, + "relation" : "auxpass" + }, { + "source" : 5, + "destination" : 7, + "relation" : "xcomp" + }, { + "source" : 5, + "destination" : 24, + "relation" : "ccomp" + }, { + "source" : 5, + "destination" : 0, + "relation" : "nsubjpass" + }, { + "source" : 7, + "destination" : 6, + "relation" : "mark" + }, { + "source" : 7, + "destination" : 8, + "relation" : "dobj" + }, { + "source" : 7, + "destination" : 10, + "relation" : "nmod" + }, { + "source" : 10, + "destination" : 19, + "relation" : "appos" + }, { + "source" : 10, + "destination" : 9, + "relation" : "case" + }, { + "source" : 10, + "destination" : 11, + "relation" : "cc" + }, { + "source" : 10, + "destination" : 12, + "relation" : "conj" + }, { + "source" : 10, + "destination" : 14, + "relation" : "appos" + }, { + "source" : 10, + "destination" : 16, + "relation" : "cc" + }, { + "source" : 10, + "destination" : 17, + "relation" : "conj" + }, { + "source" : 21, + "destination" : 23, + "relation" : "nmod" + }, { + "source" : 23, + "destination" : 22, + "relation" : "case" + }, { + "source" : 24, + "destination" : 21, + "relation" : "nsubj" + }, { + "source" : 24, + "destination" : 28, + "relation" : "dobj" + }, { + "source" : 28, + "destination" : 25, + "relation" : "compound" + }, { + "source" : 28, + "destination" : 26, + "relation" : "compound" + }, { + "source" : 28, + "destination" : 27, + "relation" : "compound" + }, { + "source" : 28, + "destination" : 32, + "relation" : "acl:relcl" + }, { + "source" : 32, + "destination" : 34, + "relation" : "nmod" + }, { + "source" : 32, + "destination" : 39, + "relation" : "nmod" + }, { + "source" : 32, + "destination" : 30, + "relation" : "nsubjpass" + }, { + "source" : 32, + "destination" : 31, + "relation" : "auxpass" + } ], + "roots" : [ 5 ] + } + } + }, { + "words" : [ "As", "shown", "in", "Fig", "." ], + "startOffsets" : [ 362, 365, 371, 374, 377 ], + "endOffsets" : [ 364, 370, 373, 377, 378 ], + "raw" : [ "As", "shown", "in", "Fig", "." ], + "tags" : [ "IN", "VBN", "IN", "NN", "." ], + "lemmas" : [ "as", "show", "in", "fig", "." ], + "entities" : [ "O", "O", "O", "B-Gene_or_gene_product", "O" ], + "chunks" : [ "B-SBAR", "B-VP", "B-PP", "B-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 1, + "destination" : 0, + "relation" : "mark" + }, { + "source" : 1, + "destination" : 3, + "relation" : "nmod_in" + }, { + "source" : 3, + "destination" : 2, + "relation" : "case" + } ], + "roots" : [ 1 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 1, + "destination" : 0, + "relation" : "mark" + }, { + "source" : 1, + "destination" : 3, + "relation" : "nmod" + }, { + "source" : 3, + "destination" : 2, + "relation" : "case" + } ], + "roots" : [ 1 ] + } + } + }, { + "words" : [ "5A", ",", "PLX4032", "treatment", "increased", "HER3", "and", "HER2", "mRNAs", "in", "all", "six", "BRAF-mutant", "thyroid", "cancer", "cell", "lines", "tested", "." ], + "startOffsets" : [ 379, 381, 383, 391, 401, 411, 416, 420, 425, 431, 434, 438, 442, 454, 462, 469, 474, 480, 486 ], + "endOffsets" : [ 381, 382, 390, 400, 410, 415, 419, 424, 430, 433, 437, 441, 453, 461, 468, 473, 479, 486, 487 ], + "raw" : [ "5A", ",", "PLX4032", "treatment", "increased", "HER3", "and", "HER2", "mRNAs", "in", "all", "six", "BRAF-mutant", "thyroid", "cancer", "cell", "lines", "tested", "." ], + "tags" : [ "NN", ",", "NN", "NN", "VBD", "NN", "CC", "NN", "NNS", "IN", "DT", "CD", "JJ", "NN", "NN", "NN", "NNS", "VBN", "." ], + "lemmas" : [ "5a", ",", "plx4032", "treatment", "increase", "her3", "and", "her2", "mrna", "in", "all", "six", "braf-mutant", "thyroid", "cancer", "cell", "line", "test", "." ], + "entities" : [ "B-Gene_or_gene_product", "O", "B-Gene_or_gene_product", "O", "O", "B-Gene_or_gene_product", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "O", "B-TissueType", "I-TissueType", "O", "O", "O", "O" ], + "chunks" : [ "B-NP", "O", "B-NP", "I-NP", "B-VP", "B-NP", "I-NP", "I-NP", "I-NP", "B-PP", "B-NP", "I-NP", "I-NP", "I-NP", "I-NP", "I-NP", "I-NP", "B-VP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 8, + "destination" : 5, + "relation" : "compound" + }, { + "source" : 8, + "destination" : 7, + "relation" : "compound" + }, { + "source" : 16, + "destination" : 9, + "relation" : "case" + }, { + "source" : 16, + "destination" : 10, + "relation" : "det" + }, { + "source" : 16, + "destination" : 11, + "relation" : "nummod" + }, { + "source" : 16, + "destination" : 12, + "relation" : "amod" + }, { + "source" : 16, + "destination" : 13, + "relation" : "compound" + }, { + "source" : 16, + "destination" : 14, + "relation" : "compound" + }, { + "source" : 16, + "destination" : 15, + "relation" : "compound" + }, { + "source" : 16, + "destination" : 17, + "relation" : "acl" + }, { + "source" : 3, + "destination" : 0, + "relation" : "compound" + }, { + "source" : 3, + "destination" : 2, + "relation" : "dep" + }, { + "source" : 4, + "destination" : 8, + "relation" : "dobj" + }, { + "source" : 4, + "destination" : 16, + "relation" : "nmod_in" + }, { + "source" : 4, + "destination" : 3, + "relation" : "nsubj" + }, { + "source" : 5, + "destination" : 6, + "relation" : "cc" + }, { + "source" : 5, + "destination" : 7, + "relation" : "conj_and" + } ], + "roots" : [ 4 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 8, + "destination" : 5, + "relation" : "compound" + }, { + "source" : 16, + "destination" : 9, + "relation" : "case" + }, { + "source" : 16, + "destination" : 10, + "relation" : "det" + }, { + "source" : 16, + "destination" : 11, + "relation" : "nummod" + }, { + "source" : 16, + "destination" : 12, + "relation" : "amod" + }, { + "source" : 16, + "destination" : 13, + "relation" : "compound" + }, { + "source" : 16, + "destination" : 14, + "relation" : "compound" + }, { + "source" : 16, + "destination" : 15, + "relation" : "compound" + }, { + "source" : 16, + "destination" : 17, + "relation" : "acl" + }, { + "source" : 3, + "destination" : 0, + "relation" : "compound" + }, { + "source" : 3, + "destination" : 2, + "relation" : "dep" + }, { + "source" : 4, + "destination" : 8, + "relation" : "dobj" + }, { + "source" : 4, + "destination" : 16, + "relation" : "nmod" + }, { + "source" : 4, + "destination" : 3, + "relation" : "nsubj" + }, { + "source" : 5, + "destination" : 6, + "relation" : "cc" + }, { + "source" : 5, + "destination" : 7, + "relation" : "conj" + } ], + "roots" : [ 4 ] + } + } + }, { + "words" : [ "Similar", "results", "were", "found", "following", "treatment", "with", "the", "MEK", "inhibitor", "AZD6244", "(", "not", "shown", ")", "." ], + "startOffsets" : [ 488, 496, 504, 509, 515, 525, 535, 540, 544, 548, 558, 566, 567, 571, 576, 577 ], + "endOffsets" : [ 495, 503, 508, 514, 524, 534, 539, 543, 547, 557, 565, 567, 570, 576, 577, 578 ], + "raw" : [ "Similar", "results", "were", "found", "following", "treatment", "with", "the", "MEK", "inhibitor", "AZD6244", "(", "not", "shown", ")", "." ], + "tags" : [ "JJ", "NNS", "VBD", "VBN", "VBG", "NN", "IN", "DT", "NN", "NN", "NN", "-LRB-", "RB", "VBN", "-RRB-", "." ], + "lemmas" : [ "similar", "result", "be", "find", "follow", "treatment", "with", "the", "mek", "inhibitor", "azd6244", "(", "not", "show", ")", "." ], + "entities" : [ "O", "O", "O", "O", "O", "O", "O", "O", "B-Family", "O", "B-Simple_chemical", "O", "O", "O", "O", "O" ], + "chunks" : [ "B-NP", "I-NP", "B-VP", "I-VP", "B-PP", "B-NP", "B-PP", "B-NP", "I-NP", "I-NP", "I-NP", "B-VP", "I-VP", "I-VP", "B-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 13, + "destination" : 12, + "relation" : "neg" + }, { + "source" : 1, + "destination" : 0, + "relation" : "amod" + }, { + "source" : 3, + "destination" : 1, + "relation" : "nsubjpass" + }, { + "source" : 3, + "destination" : 2, + "relation" : "auxpass" + }, { + "source" : 3, + "destination" : 5, + "relation" : "nmod_following" + }, { + "source" : 5, + "destination" : 4, + "relation" : "case" + }, { + "source" : 5, + "destination" : 10, + "relation" : "nmod_with" + }, { + "source" : 10, + "destination" : 13, + "relation" : "dep" + }, { + "source" : 10, + "destination" : 6, + "relation" : "case" + }, { + "source" : 10, + "destination" : 7, + "relation" : "det" + }, { + "source" : 10, + "destination" : 8, + "relation" : "compound" + }, { + "source" : 10, + "destination" : 9, + "relation" : "compound" + } ], + "roots" : [ 3 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 13, + "destination" : 12, + "relation" : "neg" + }, { + "source" : 1, + "destination" : 0, + "relation" : "amod" + }, { + "source" : 3, + "destination" : 1, + "relation" : "nsubjpass" + }, { + "source" : 3, + "destination" : 2, + "relation" : "auxpass" + }, { + "source" : 3, + "destination" : 5, + "relation" : "nmod" + }, { + "source" : 5, + "destination" : 4, + "relation" : "case" + }, { + "source" : 5, + "destination" : 10, + "relation" : "nmod" + }, { + "source" : 10, + "destination" : 13, + "relation" : "dep" + }, { + "source" : 10, + "destination" : 6, + "relation" : "case" + }, { + "source" : 10, + "destination" : 7, + "relation" : "det" + }, { + "source" : 10, + "destination" : 8, + "relation" : "compound" + }, { + "source" : 10, + "destination" : 9, + "relation" : "compound" + } ], + "roots" : [ 3 ] + } + } + }, { + "words" : [ "The", "effects", "of", "the", "MEK", "inhibitor", "on", "total", "HER2", ",", "HER3", "protein", "and", "on", "pHER3", "were", "dose", "dependent", ",", "and", "inversely", "associated", "with", "the", "degree", "of", "inhibition", "of", "pERK", "(", "Fig", "." ], + "startOffsets" : [ 579, 583, 591, 594, 598, 602, 612, 615, 621, 625, 627, 632, 640, 644, 647, 653, 658, 663, 672, 674, 678, 688, 699, 704, 708, 715, 718, 729, 732, 737, 738, 741 ], + "endOffsets" : [ 582, 590, 593, 597, 601, 611, 614, 620, 625, 626, 631, 639, 643, 646, 652, 657, 662, 672, 673, 677, 687, 698, 703, 707, 714, 717, 728, 731, 736, 738, 741, 742 ], + "raw" : [ "The", "effects", "of", "the", "MEK", "inhibitor", "on", "total", "HER2", ",", "HER3", "protein", "and", "on", "pHER3", "were", "dose", "dependent", ",", "and", "inversely", "associated", "with", "the", "degree", "of", "inhibition", "of", "pERK", "(", "Fig", "." ], + "tags" : [ "DT", "NNS", "IN", "DT", "NN", "NN", "IN", "JJ", "NN", ",", "NN", "NN", "CC", "IN", "NN", "VBD", "NN", "JJ", ",", "CC", "RB", "VBN", "IN", "DT", "NN", "IN", "NN", "IN", "NN", "-LRB-", "NN", "." ], + "lemmas" : [ "the", "effect", "of", "the", "mek", "inhibitor", "on", "total", "her2", ",", "her3", "protein", "and", "on", "pher3", "be", "dose", "dependent", ",", "and", "inversely", "associate", "with", "the", "degree", "of", "inhibition", "of", "perk", "(", "fig", "." ], + "entities" : [ "O", "O", "O", "O", "B-Family", "O", "O", "O", "B-Gene_or_gene_product", "O", "B-Gene_or_gene_product", "O", "O", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "B-Gene_or_gene_product", "O" ], + "chunks" : [ "B-NP", "I-NP", "B-PP", "B-NP", "I-NP", "I-NP", "B-PP", "B-NP", "I-NP", "O", "B-NP", "I-NP", "B-PP", "B-PP", "B-NP", "B-VP", "B-ADJP", "I-ADJP", "O", "O", "B-VP", "I-VP", "B-PP", "B-NP", "I-NP", "B-PP", "B-NP", "B-PP", "B-NP", "I-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 1, + "destination" : 0, + "relation" : "det" + }, { + "source" : 1, + "destination" : 5, + "relation" : "nmod_of" + }, { + "source" : 1, + "destination" : 5, + "relation" : "nmod_of" + }, { + "source" : 5, + "destination" : 2, + "relation" : "case" + }, { + "source" : 5, + "destination" : 3, + "relation" : "det" + }, { + "source" : 5, + "destination" : 4, + "relation" : "compound" + }, { + "source" : 5, + "destination" : 5, + "relation" : "conj_and" + }, { + "source" : 5, + "destination" : 8, + "relation" : "nmod_on" + }, { + "source" : 5, + "destination" : 12, + "relation" : "cc" + }, { + "source" : 5, + "destination" : 14, + "relation" : "nmod_on" + }, { + "source" : 8, + "destination" : 6, + "relation" : "case" + }, { + "source" : 8, + "destination" : 7, + "relation" : "amod" + }, { + "source" : 8, + "destination" : 11, + "relation" : "appos" + }, { + "source" : 11, + "destination" : 10, + "relation" : "compound" + }, { + "source" : 14, + "destination" : 13, + "relation" : "case" + }, { + "source" : 17, + "destination" : 15, + "relation" : "auxpass" + }, { + "source" : 17, + "destination" : 16, + "relation" : "nmod:npmod" + }, { + "source" : 17, + "destination" : 1, + "relation" : "nsubjpass" + }, { + "source" : 17, + "destination" : 19, + "relation" : "cc" + }, { + "source" : 17, + "destination" : 21, + "relation" : "conj_and" + }, { + "source" : 21, + "destination" : 30, + "relation" : "advcl" + }, { + "source" : 21, + "destination" : 1, + "relation" : "nsubjpass" + }, { + "source" : 21, + "destination" : 20, + "relation" : "advmod" + }, { + "source" : 21, + "destination" : 24, + "relation" : "dobj" + }, { + "source" : 24, + "destination" : 22, + "relation" : "amod" + }, { + "source" : 24, + "destination" : 23, + "relation" : "det" + }, { + "source" : 24, + "destination" : 26, + "relation" : "nmod_of" + }, { + "source" : 26, + "destination" : 25, + "relation" : "case" + }, { + "source" : 26, + "destination" : 28, + "relation" : "nmod_of" + }, { + "source" : 28, + "destination" : 27, + "relation" : "case" + } ], + "roots" : [ 17 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 1, + "destination" : 0, + "relation" : "det" + }, { + "source" : 1, + "destination" : 5, + "relation" : "nmod" + }, { + "source" : 5, + "destination" : 2, + "relation" : "case" + }, { + "source" : 5, + "destination" : 3, + "relation" : "det" + }, { + "source" : 5, + "destination" : 4, + "relation" : "compound" + }, { + "source" : 5, + "destination" : 8, + "relation" : "nmod" + }, { + "source" : 8, + "destination" : 14, + "relation" : "conj" + }, { + "source" : 8, + "destination" : 6, + "relation" : "case" + }, { + "source" : 8, + "destination" : 7, + "relation" : "amod" + }, { + "source" : 8, + "destination" : 11, + "relation" : "appos" + }, { + "source" : 8, + "destination" : 12, + "relation" : "cc" + }, { + "source" : 11, + "destination" : 10, + "relation" : "compound" + }, { + "source" : 14, + "destination" : 13, + "relation" : "case" + }, { + "source" : 17, + "destination" : 15, + "relation" : "auxpass" + }, { + "source" : 17, + "destination" : 16, + "relation" : "nmod:npmod" + }, { + "source" : 17, + "destination" : 1, + "relation" : "nsubjpass" + }, { + "source" : 17, + "destination" : 19, + "relation" : "cc" + }, { + "source" : 17, + "destination" : 21, + "relation" : "conj" + }, { + "source" : 21, + "destination" : 30, + "relation" : "advcl" + }, { + "source" : 21, + "destination" : 20, + "relation" : "advmod" + }, { + "source" : 21, + "destination" : 24, + "relation" : "dobj" + }, { + "source" : 24, + "destination" : 22, + "relation" : "amod" + }, { + "source" : 24, + "destination" : 23, + "relation" : "det" + }, { + "source" : 24, + "destination" : 26, + "relation" : "nmod" + }, { + "source" : 26, + "destination" : 25, + "relation" : "case" + }, { + "source" : 26, + "destination" : 28, + "relation" : "nmod" + }, { + "source" : 28, + "destination" : 27, + "relation" : "case" + } ], + "roots" : [ 17 ] + } + } + }, { + "words" : [ "5B", ")", "." ], + "startOffsets" : [ 743, 745, 746 ], + "endOffsets" : [ 745, 746, 747 ], + "raw" : [ "5B", ")", "." ], + "tags" : [ "NN", "-RRB-", "." ], + "lemmas" : [ "5b", ")", "." ], + "entities" : [ "B-Simple_chemical", "O", "O" ], + "chunks" : [ "B-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ ], + "roots" : [ 0 ] + }, + "universal-basic" : { + "edges" : [ ], + "roots" : [ 0 ] + } + } + }, { + "words" : [ "RAF", "or", "MEK", "inhibitors", "induced", "luciferase", "activity", "of", "a", "HER3", "promoter", "construct", "spanning", "~", "1", "kb", "upstream", "of", "the", "transcriptional", "start", "site", "in", "8505C", "cells", "." ], + "startOffsets" : [ 748, 752, 755, 759, 770, 778, 789, 798, 801, 803, 808, 817, 827, 836, 838, 840, 843, 852, 855, 859, 875, 881, 886, 889, 895, 900 ], + "endOffsets" : [ 751, 754, 758, 769, 777, 788, 797, 800, 802, 807, 816, 826, 835, 837, 839, 842, 851, 854, 858, 874, 880, 885, 888, 894, 900, 901 ], + "raw" : [ "RAF", "or", "MEK", "inhibitors", "induced", "luciferase", "activity", "of", "a", "HER3", "promoter", "construct", "spanning", "~", "1", "kb", "upstream", "of", "the", "transcriptional", "start", "site", "in", "8505C", "cells", "." ], + "tags" : [ "NN", "CC", "NN", "NNS", "VBD", "NN", "NN", "IN", "DT", "NN", "NN", "NN", "VBG", "NN", "CD", "NN", "RB", "IN", "DT", "JJ", "NN", "NN", "IN", "NN", "NNS", "." ], + "lemmas" : [ "raf", "or", "mek", "inhibitor", "induce", "luciferase", "activity", "of", "a", "her3", "promoter", "construct", "span", "~", "1", "kb", "upstream", "of", "the", "transcriptional", "start", "site", "in", "8505c", "cell", "." ], + "entities" : [ "B-Family", "O", "B-Family", "O", "O", "B-Gene_or_gene_product", "O", "O", "O", "B-Gene_or_gene_product", "O", "O", "O", "B-Gene_or_gene_product", "I-Gene_or_gene_product", "B-CellLine", "O", "O", "O", "O", "B-Family", "O", "O", "B-CellLine", "O", "O" ], + "chunks" : [ "B-NP", "I-NP", "I-NP", "I-NP", "B-VP", "B-NP", "I-NP", "B-PP", "B-NP", "I-NP", "I-NP", "I-NP", "B-VP", "B-NP", "I-NP", "I-NP", "B-PP", "I-PP", "B-NP", "I-NP", "I-NP", "I-NP", "B-PP", "B-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 0, + "destination" : 1, + "relation" : "cc" + }, { + "source" : 0, + "destination" : 2, + "relation" : "conj_or" + }, { + "source" : 3, + "destination" : 0, + "relation" : "compound" + }, { + "source" : 3, + "destination" : 2, + "relation" : "compound" + }, { + "source" : 4, + "destination" : 6, + "relation" : "dobj" + }, { + "source" : 4, + "destination" : 3, + "relation" : "nsubj" + }, { + "source" : 6, + "destination" : 5, + "relation" : "compound" + }, { + "source" : 6, + "destination" : 11, + "relation" : "nmod_of" + }, { + "source" : 11, + "destination" : 7, + "relation" : "case" + }, { + "source" : 11, + "destination" : 8, + "relation" : "det" + }, { + "source" : 11, + "destination" : 9, + "relation" : "compound" + }, { + "source" : 11, + "destination" : 10, + "relation" : "compound" + }, { + "source" : 11, + "destination" : 12, + "relation" : "acl" + }, { + "source" : 12, + "destination" : 13, + "relation" : "dobj" + }, { + "source" : 13, + "destination" : 21, + "relation" : "nmod_of" + }, { + "source" : 15, + "destination" : 14, + "relation" : "nummod" + }, { + "source" : 16, + "destination" : 15, + "relation" : "nmod:npmod" + }, { + "source" : 21, + "destination" : 20, + "relation" : "compound" + }, { + "source" : 21, + "destination" : 24, + "relation" : "nmod_in" + }, { + "source" : 21, + "destination" : 16, + "relation" : "advmod" + }, { + "source" : 21, + "destination" : 17, + "relation" : "case" + }, { + "source" : 21, + "destination" : 18, + "relation" : "det" + }, { + "source" : 21, + "destination" : 19, + "relation" : "amod" + }, { + "source" : 24, + "destination" : 22, + "relation" : "case" + }, { + "source" : 24, + "destination" : 23, + "relation" : "compound" + } ], + "roots" : [ 4 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 0, + "destination" : 1, + "relation" : "cc" + }, { + "source" : 0, + "destination" : 2, + "relation" : "conj" + }, { + "source" : 3, + "destination" : 0, + "relation" : "compound" + }, { + "source" : 4, + "destination" : 6, + "relation" : "dobj" + }, { + "source" : 4, + "destination" : 3, + "relation" : "nsubj" + }, { + "source" : 6, + "destination" : 5, + "relation" : "compound" + }, { + "source" : 6, + "destination" : 11, + "relation" : "nmod" + }, { + "source" : 11, + "destination" : 7, + "relation" : "case" + }, { + "source" : 11, + "destination" : 8, + "relation" : "det" + }, { + "source" : 11, + "destination" : 9, + "relation" : "compound" + }, { + "source" : 11, + "destination" : 10, + "relation" : "compound" + }, { + "source" : 11, + "destination" : 12, + "relation" : "acl" + }, { + "source" : 12, + "destination" : 13, + "relation" : "dobj" + }, { + "source" : 13, + "destination" : 21, + "relation" : "nmod" + }, { + "source" : 15, + "destination" : 14, + "relation" : "nummod" + }, { + "source" : 16, + "destination" : 15, + "relation" : "nmod:npmod" + }, { + "source" : 21, + "destination" : 20, + "relation" : "compound" + }, { + "source" : 21, + "destination" : 24, + "relation" : "nmod" + }, { + "source" : 21, + "destination" : 16, + "relation" : "advmod" + }, { + "source" : 21, + "destination" : 17, + "relation" : "case" + }, { + "source" : 21, + "destination" : 18, + "relation" : "det" + }, { + "source" : 21, + "destination" : 19, + "relation" : "amod" + }, { + "source" : 24, + "destination" : 22, + "relation" : "case" + }, { + "source" : 24, + "destination" : 23, + "relation" : "compound" + } ], + "roots" : [ 4 ] + } + } + }, { + "words" : [ "Serial", "deletions", "identified", "a", "minimal", "HER3", "promoter", "retaining", "transcriptional", "response", "to", "vemurafenib", "and", "AZD6244", ",", "which", "was", "located", "between", "-", "401", "and", "-", "42", "bp", "(", "Fig", "." ], + "startOffsets" : [ 902, 909, 919, 930, 932, 940, 945, 954, 964, 980, 989, 992, 1004, 1008, 1015, 1017, 1023, 1027, 1035, 1043, 1044, 1048, 1052, 1053, 1056, 1059, 1060, 1063 ], + "endOffsets" : [ 908, 918, 929, 931, 939, 944, 953, 963, 979, 988, 991, 1003, 1007, 1015, 1016, 1022, 1026, 1034, 1042, 1044, 1047, 1051, 1053, 1055, 1058, 1060, 1063, 1064 ], + "raw" : [ "Serial", "deletions", "identified", "a", "minimal", "HER3", "promoter", "retaining", "transcriptional", "response", "to", "vemurafenib", "and", "AZD6244", ",", "which", "was", "located", "between", "−", "401", "and", "−", "42", "bp", "(", "Fig", "." ], + "tags" : [ "JJ", "NNS", "VBD", "DT", "JJ", "NN", "NN", "VBG", "JJ", "NN", "TO", "NN", "CC", "NN", ",", "WDT", "VBD", "JJ", "IN", ":", "CD", "CC", ":", "CD", "NN", "-LRB-", "NN", "." ], + "lemmas" : [ "serial", "deletion", "identify", "a", "minimal", "her3", "promoter", "retain", "transcriptional", "response", "to", "vemurafenib", "and", "azd6244", ",", "which", "be", "located", "between", "-", "401", "and", "-", "42", "bp", "(", "fig", "." ], + "entities" : [ "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "O", "B-Simple_chemical", "O", "B-Simple_chemical", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Simple_chemical", "O", "B-Gene_or_gene_product", "O" ], + "chunks" : [ "B-NP", "I-NP", "B-VP", "B-NP", "I-NP", "I-NP", "I-NP", "B-VP", "B-NP", "I-NP", "B-PP", "B-NP", "I-NP", "I-NP", "O", "B-NP", "B-VP", "B-ADJP", "B-PP", "O", "B-NP", "O", "O", "B-NP", "I-NP", "I-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 24, + "destination" : 18, + "relation" : "case" + }, { + "source" : 24, + "destination" : 20, + "relation" : "dep" + }, { + "source" : 26, + "destination" : 8, + "relation" : "advmod" + }, { + "source" : 26, + "destination" : 16, + "relation" : "cop" + }, { + "source" : 26, + "destination" : 17, + "relation" : "advmod" + }, { + "source" : 26, + "destination" : 6, + "relation" : "nsubj" + }, { + "source" : 1, + "destination" : 0, + "relation" : "amod" + }, { + "source" : 2, + "destination" : 26, + "relation" : "ccomp" + }, { + "source" : 2, + "destination" : 1, + "relation" : "nsubj" + }, { + "source" : 6, + "destination" : 7, + "relation" : "acl" + }, { + "source" : 6, + "destination" : 3, + "relation" : "det" + }, { + "source" : 6, + "destination" : 4, + "relation" : "amod" + }, { + "source" : 6, + "destination" : 5, + "relation" : "compound" + }, { + "source" : 8, + "destination" : 15, + "relation" : "advcl" + }, { + "source" : 9, + "destination" : 11, + "relation" : "dep" + }, { + "source" : 9, + "destination" : 13, + "relation" : "dep" + }, { + "source" : 11, + "destination" : 10, + "relation" : "case" + }, { + "source" : 11, + "destination" : 12, + "relation" : "cc" + }, { + "source" : 11, + "destination" : 13, + "relation" : "conj_and" + }, { + "source" : 15, + "destination" : 9, + "relation" : "dep" + }, { + "source" : 17, + "destination" : 24, + "relation" : "nmod_between" + }, { + "source" : 20, + "destination" : 23, + "relation" : "dep" + }, { + "source" : 20, + "destination" : 21, + "relation" : "cc" + } ], + "roots" : [ 2 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 24, + "destination" : 18, + "relation" : "case" + }, { + "source" : 24, + "destination" : 20, + "relation" : "dep" + }, { + "source" : 26, + "destination" : 8, + "relation" : "advmod" + }, { + "source" : 26, + "destination" : 16, + "relation" : "cop" + }, { + "source" : 26, + "destination" : 17, + "relation" : "advmod" + }, { + "source" : 26, + "destination" : 6, + "relation" : "nsubj" + }, { + "source" : 1, + "destination" : 0, + "relation" : "amod" + }, { + "source" : 2, + "destination" : 26, + "relation" : "ccomp" + }, { + "source" : 2, + "destination" : 1, + "relation" : "nsubj" + }, { + "source" : 6, + "destination" : 7, + "relation" : "acl" + }, { + "source" : 6, + "destination" : 3, + "relation" : "det" + }, { + "source" : 6, + "destination" : 4, + "relation" : "amod" + }, { + "source" : 6, + "destination" : 5, + "relation" : "compound" + }, { + "source" : 8, + "destination" : 15, + "relation" : "advcl" + }, { + "source" : 9, + "destination" : 11, + "relation" : "dep" + }, { + "source" : 11, + "destination" : 10, + "relation" : "case" + }, { + "source" : 11, + "destination" : 12, + "relation" : "cc" + }, { + "source" : 11, + "destination" : 13, + "relation" : "conj" + }, { + "source" : 15, + "destination" : 9, + "relation" : "dep" + }, { + "source" : 17, + "destination" : 24, + "relation" : "nmod" + }, { + "source" : 20, + "destination" : 23, + "relation" : "dep" + }, { + "source" : 20, + "destination" : 21, + "relation" : "cc" + } ], + "roots" : [ 2 ] + } + } + }, { + "words" : [ "5C", ")", "." ], + "startOffsets" : [ 1065, 1067, 1068 ], + "endOffsets" : [ 1067, 1068, 1069 ], + "raw" : [ "5C", ")", "." ], + "tags" : [ "NN", "-RRB-", "." ], + "lemmas" : [ "5c", ")", "." ], + "entities" : [ "O", "O", "O" ], + "chunks" : [ "B-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ ], + "roots" : [ 0 ] + }, + "universal-basic" : { + "edges" : [ ], + "roots" : [ 0 ] + } + } + }, { + "words" : [ "This", "region", "does", "not", "contain", "any", "predicted", "FoxO", "binding", "sites", "." ], + "startOffsets" : [ 1070, 1075, 1082, 1087, 1091, 1099, 1103, 1113, 1118, 1126, 1131 ], + "endOffsets" : [ 1074, 1081, 1086, 1090, 1098, 1102, 1112, 1117, 1125, 1131, 1132 ], + "raw" : [ "This", "region", "does", "not", "contain", "any", "predicted", "FoxO", "binding", "sites", "." ], + "tags" : [ "DT", "NN", "VBZ", "RB", "VB", "DT", "JJ", "NN", "VBG", "NNS", "." ], + "lemmas" : [ "this", "region", "do", "not", "contain", "any", "predicted", "foxo", "bind", "site", "." ], + "entities" : [ "O", "O", "O", "O", "O", "O", "O", "B-Family", "O", "O", "O" ], + "chunks" : [ "B-NP", "I-NP", "B-VP", "I-VP", "I-VP", "B-NP", "I-NP", "I-NP", "I-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 1, + "destination" : 0, + "relation" : "det" + }, { + "source" : 4, + "destination" : 1, + "relation" : "nsubj" + }, { + "source" : 4, + "destination" : 2, + "relation" : "aux" + }, { + "source" : 4, + "destination" : 3, + "relation" : "neg" + }, { + "source" : 4, + "destination" : 9, + "relation" : "xcomp" + }, { + "source" : 7, + "destination" : 5, + "relation" : "det" + }, { + "source" : 7, + "destination" : 6, + "relation" : "amod" + }, { + "source" : 9, + "destination" : 7, + "relation" : "nsubj" + }, { + "source" : 9, + "destination" : 8, + "relation" : "amod" + } ], + "roots" : [ 4 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 1, + "destination" : 0, + "relation" : "det" + }, { + "source" : 4, + "destination" : 1, + "relation" : "nsubj" + }, { + "source" : 4, + "destination" : 2, + "relation" : "aux" + }, { + "source" : 4, + "destination" : 3, + "relation" : "neg" + }, { + "source" : 4, + "destination" : 9, + "relation" : "xcomp" + }, { + "source" : 7, + "destination" : 5, + "relation" : "det" + }, { + "source" : 7, + "destination" : 6, + "relation" : "amod" + }, { + "source" : 9, + "destination" : 7, + "relation" : "nsubj" + }, { + "source" : 9, + "destination" : 8, + "relation" : "amod" + } ], + "roots" : [ 4 ] + } + } + }, { + "words" : [ "Moreover", ",", "PLX4032", "led", "to", "an", "increase", "in", "phosphorylation", "of", "FoxO1/3A", "between", "4", "-", "10h", "after", "addition", "of", "compound", "(", "not", "shown", ")", ",", "which", "is", "known", "to", "promote", "its", "dissociation", "from", "DNA", ",", "and", "likely", "discards", "involvement", "of", "these", "factors", "as", "transcriptional", "regulators", "of", "HER3", "in", "response", "to", "MAPK", "pathway", "inhibition", "." ], + "startOffsets" : [ 1133, 1141, 1143, 1151, 1155, 1158, 1161, 1170, 1173, 1189, 1192, 1201, 1209, 1210, 1211, 1215, 1221, 1230, 1233, 1242, 1243, 1247, 1252, 1253, 1255, 1261, 1264, 1270, 1273, 1281, 1285, 1298, 1303, 1306, 1308, 1312, 1319, 1328, 1340, 1343, 1349, 1357, 1360, 1376, 1387, 1390, 1395, 1398, 1407, 1410, 1415, 1423, 1433 ], + "endOffsets" : [ 1141, 1142, 1150, 1154, 1157, 1160, 1169, 1172, 1188, 1191, 1200, 1208, 1210, 1211, 1214, 1220, 1229, 1232, 1241, 1243, 1246, 1252, 1253, 1254, 1260, 1263, 1269, 1272, 1280, 1284, 1297, 1302, 1306, 1307, 1311, 1318, 1327, 1339, 1342, 1348, 1356, 1359, 1375, 1386, 1389, 1394, 1397, 1406, 1409, 1414, 1422, 1433, 1434 ], + "raw" : [ "Moreover", ",", "PLX4032", "led", "to", "an", "increase", "in", "phosphorylation", "of", "FoxO1/3A", "between", "4", "–", "10h", "after", "addition", "of", "compound", "(", "not", "shown", ")", ",", "which", "is", "known", "to", "promote", "its", "dissociation", "from", "DNA", ",", "and", "likely", "discards", "involvement", "of", "these", "factors", "as", "transcriptional", "regulators", "of", "HER3", "in", "response", "to", "MAPK", "pathway", "inhibition", "." ], + "tags" : [ "RB", ",", "NN", "VBD", "TO", "DT", "NN", "IN", "NN", "IN", "NN", "IN", "CD", ":", "CD", "IN", "NN", "IN", "NN", "-LRB-", "RB", "VBN", "-RRB-", ",", "WDT", "VBZ", "VBN", "TO", "VB", "PRP$", "NN", "IN", "NN", ",", "CC", "JJ", "NNS", "NN", "IN", "DT", "NNS", "IN", "JJ", "NNS", "IN", "NN", "IN", "NN", "TO", "NN", "NN", "NN", "." ], + "lemmas" : [ "moreover", ",", "plx4032", "lead", "to", "a", "increase", "in", "phosphorylation", "of", "foxo1/3a", "between", "4", "-", "10h", "after", "addition", "of", "compound", "(", "not", "show", ")", ",", "which", "be", "know", "to", "promote", "its", "dissociation", "from", "dna", ",", "and", "likely", "discard", "involvement", "of", "these", "factor", "as", "transcriptional", "regulator", "of", "her3", "in", "response", "to", "mapk", "pathway", "inhibition", "." ], + "entities" : [ "O", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "O", "O", "B-Family", "O", "O", "O" ], + "chunks" : [ "B-ADVP", "O", "B-NP", "B-VP", "B-PP", "B-NP", "I-NP", "B-PP", "B-NP", "B-PP", "B-NP", "B-PP", "B-NP", "O", "B-NP", "B-PP", "B-NP", "B-PP", "B-NP", "B-VP", "I-VP", "I-VP", "B-NP", "O", "B-NP", "B-VP", "I-VP", "B-VP", "I-VP", "B-NP", "I-NP", "B-PP", "B-NP", "O", "O", "B-NP", "I-NP", "I-NP", "B-PP", "B-NP", "I-NP", "B-PP", "B-NP", "I-NP", "B-PP", "B-NP", "B-PP", "B-NP", "B-PP", "B-NP", "I-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 3, + "destination" : 0, + "relation" : "advmod" + }, { + "source" : 3, + "destination" : 2, + "relation" : "nsubj" + }, { + "source" : 3, + "destination" : 51, + "relation" : "nmod_to" + }, { + "source" : 3, + "destination" : 37, + "relation" : "nmod_to" + }, { + "source" : 3, + "destination" : 6, + "relation" : "nmod_to" + }, { + "source" : 3, + "destination" : 43, + "relation" : "nmod_as" + }, { + "source" : 3, + "destination" : 47, + "relation" : "nmod_in" + }, { + "source" : 6, + "destination" : 34, + "relation" : "cc" + }, { + "source" : 6, + "destination" : 4, + "relation" : "case" + }, { + "source" : 6, + "destination" : 5, + "relation" : "det" + }, { + "source" : 6, + "destination" : 37, + "relation" : "conj_and" + }, { + "source" : 6, + "destination" : 8, + "relation" : "nmod_in" + }, { + "source" : 6, + "destination" : 24, + "relation" : "ref" + }, { + "source" : 6, + "destination" : 26, + "relation" : "acl:relcl" + }, { + "source" : 8, + "destination" : 18, + "relation" : "nmod_of" + }, { + "source" : 8, + "destination" : 21, + "relation" : "dep" + }, { + "source" : 8, + "destination" : 7, + "relation" : "case" + }, { + "source" : 8, + "destination" : 10, + "relation" : "nmod_of" + }, { + "source" : 8, + "destination" : 14, + "relation" : "nmod_between" + }, { + "source" : 10, + "destination" : 9, + "relation" : "case" + }, { + "source" : 14, + "destination" : 16, + "relation" : "nmod_after" + }, { + "source" : 14, + "destination" : 11, + "relation" : "case" + }, { + "source" : 14, + "destination" : 12, + "relation" : "nummod" + }, { + "source" : 16, + "destination" : 15, + "relation" : "case" + }, { + "source" : 18, + "destination" : 17, + "relation" : "case" + }, { + "source" : 21, + "destination" : 20, + "relation" : "neg" + }, { + "source" : 26, + "destination" : 37, + "relation" : "nsubjpass" + }, { + "source" : 26, + "destination" : 6, + "relation" : "nsubjpass" + }, { + "source" : 26, + "destination" : 25, + "relation" : "auxpass" + }, { + "source" : 26, + "destination" : 28, + "relation" : "xcomp" + }, { + "source" : 28, + "destination" : 32, + "relation" : "nmod_from" + }, { + "source" : 28, + "destination" : 37, + "relation" : "nsubj:xsubj" + }, { + "source" : 28, + "destination" : 6, + "relation" : "nsubj:xsubj" + }, { + "source" : 28, + "destination" : 27, + "relation" : "mark" + }, { + "source" : 28, + "destination" : 30, + "relation" : "dobj" + }, { + "source" : 30, + "destination" : 29, + "relation" : "nmod:poss" + }, { + "source" : 32, + "destination" : 31, + "relation" : "case" + }, { + "source" : 37, + "destination" : 35, + "relation" : "amod" + }, { + "source" : 37, + "destination" : 36, + "relation" : "compound" + }, { + "source" : 37, + "destination" : 40, + "relation" : "nmod_of" + }, { + "source" : 40, + "destination" : 38, + "relation" : "case" + }, { + "source" : 40, + "destination" : 39, + "relation" : "det" + }, { + "source" : 43, + "destination" : 41, + "relation" : "case" + }, { + "source" : 43, + "destination" : 42, + "relation" : "amod" + }, { + "source" : 43, + "destination" : 45, + "relation" : "nmod_of" + }, { + "source" : 45, + "destination" : 44, + "relation" : "case" + }, { + "source" : 47, + "destination" : 46, + "relation" : "case" + }, { + "source" : 51, + "destination" : 48, + "relation" : "case" + }, { + "source" : 51, + "destination" : 49, + "relation" : "compound" + }, { + "source" : 51, + "destination" : 50, + "relation" : "compound" + } ], + "roots" : [ 3 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 3, + "destination" : 0, + "relation" : "advmod" + }, { + "source" : 3, + "destination" : 2, + "relation" : "nsubj" + }, { + "source" : 3, + "destination" : 51, + "relation" : "nmod" + }, { + "source" : 3, + "destination" : 6, + "relation" : "nmod" + }, { + "source" : 3, + "destination" : 43, + "relation" : "nmod" + }, { + "source" : 3, + "destination" : 47, + "relation" : "nmod" + }, { + "source" : 6, + "destination" : 34, + "relation" : "cc" + }, { + "source" : 6, + "destination" : 4, + "relation" : "case" + }, { + "source" : 6, + "destination" : 5, + "relation" : "det" + }, { + "source" : 6, + "destination" : 37, + "relation" : "conj" + }, { + "source" : 6, + "destination" : 8, + "relation" : "nmod" + }, { + "source" : 6, + "destination" : 26, + "relation" : "acl:relcl" + }, { + "source" : 8, + "destination" : 18, + "relation" : "nmod" + }, { + "source" : 8, + "destination" : 21, + "relation" : "dep" + }, { + "source" : 8, + "destination" : 7, + "relation" : "case" + }, { + "source" : 8, + "destination" : 10, + "relation" : "nmod" + }, { + "source" : 8, + "destination" : 14, + "relation" : "nmod" + }, { + "source" : 10, + "destination" : 9, + "relation" : "case" + }, { + "source" : 14, + "destination" : 16, + "relation" : "nmod" + }, { + "source" : 14, + "destination" : 11, + "relation" : "case" + }, { + "source" : 14, + "destination" : 12, + "relation" : "nummod" + }, { + "source" : 16, + "destination" : 15, + "relation" : "case" + }, { + "source" : 18, + "destination" : 17, + "relation" : "case" + }, { + "source" : 21, + "destination" : 20, + "relation" : "neg" + }, { + "source" : 26, + "destination" : 24, + "relation" : "nsubjpass" + }, { + "source" : 26, + "destination" : 25, + "relation" : "auxpass" + }, { + "source" : 26, + "destination" : 28, + "relation" : "xcomp" + }, { + "source" : 28, + "destination" : 32, + "relation" : "nmod" + }, { + "source" : 28, + "destination" : 27, + "relation" : "mark" + }, { + "source" : 28, + "destination" : 30, + "relation" : "dobj" + }, { + "source" : 30, + "destination" : 29, + "relation" : "nmod:poss" + }, { + "source" : 32, + "destination" : 31, + "relation" : "case" + }, { + "source" : 37, + "destination" : 35, + "relation" : "amod" + }, { + "source" : 37, + "destination" : 36, + "relation" : "compound" + }, { + "source" : 37, + "destination" : 40, + "relation" : "nmod" + }, { + "source" : 40, + "destination" : 38, + "relation" : "case" + }, { + "source" : 40, + "destination" : 39, + "relation" : "det" + }, { + "source" : 43, + "destination" : 41, + "relation" : "case" + }, { + "source" : 43, + "destination" : 42, + "relation" : "amod" + }, { + "source" : 43, + "destination" : 45, + "relation" : "nmod" + }, { + "source" : 45, + "destination" : 44, + "relation" : "case" + }, { + "source" : 47, + "destination" : 46, + "relation" : "case" + }, { + "source" : 51, + "destination" : 48, + "relation" : "case" + }, { + "source" : 51, + "destination" : 49, + "relation" : "compound" + }, { + "source" : 51, + "destination" : 50, + "relation" : "compound" + } ], + "roots" : [ 3 ] + } + } + }, { + "words" : [ "The", "minimal", "HER3", "promoter", "region", "regulated", "by", "MAPK", "inhibitors", "overlaps", "with", "sequences", "previously", "described", "to", "be", "immunoprecipitated", "using", "antibodies", "against", "the", "ZFN217", "transcription", "factor", "and", "CtBP1", "and", "CtBP2", "corepressors", "(", "28", "-", "30", ")", "." ], + "startOffsets" : [ 1435, 1439, 1447, 1452, 1461, 1468, 1478, 1481, 1486, 1497, 1506, 1511, 1521, 1532, 1542, 1545, 1548, 1567, 1573, 1584, 1592, 1596, 1603, 1617, 1624, 1628, 1633, 1634, 1640, 1653, 1654, 1656, 1657, 1659, 1660 ], + "endOffsets" : [ 1438, 1446, 1451, 1460, 1467, 1477, 1480, 1485, 1496, 1505, 1510, 1520, 1531, 1541, 1544, 1547, 1566, 1572, 1583, 1591, 1595, 1602, 1616, 1623, 1627, 1633, 1634, 1639, 1652, 1654, 1656, 1657, 1659, 1660, 1661 ], + "raw" : [ "The", "minimal", "HER3", "promoter", "region", "regulated", "by", "MAPK", "inhibitors", "overlaps", "with", "sequences", "previously", "described", "to", "be", "immunoprecipitated", "using", "antibodies", "against", "the", "ZFN217", "transcription", "factor", "and", "CtBP1", "/", "CtBP2", "corepressors", "(", "28", "–", "30", ")", "." ], + "tags" : [ "DT", "JJ", "NN", "NN", "NN", "VBN", "IN", "NN", "NNS", "VBZ", "IN", "NNS", "RB", "VBN", "TO", "VB", "VBN", "VBG", "NNS", "IN", "DT", "NN", "NN", "NN", "CC", "NN", "CC", "NN", "NNS", "-LRB-", "CD", ":", "CD", "-RRB-", "." ], + "lemmas" : [ "the", "minimal", "her3", "promoter", "region", "regulate", "by", "mapk", "inhibitor", "overlap", "with", "sequence", "previously", "describe", "to", "be", "immunoprecipitate", "use", "antibody", "against", "the", "zfn217", "transcription", "factor", "and", "ctbp1", "and", "ctbp2", "corepressor", "(", "28", "-", "30", ")", "." ], + "entities" : [ "O", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "B-Family", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-BioProcess", "O", "O", "B-Gene_or_gene_product", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "O", "O", "O" ], + "chunks" : [ "B-NP", "I-NP", "I-NP", "I-NP", "I-NP", "B-VP", "B-PP", "B-NP", "I-NP", "B-VP", "B-PP", "B-NP", "B-VP", "I-VP", "I-VP", "I-VP", "I-VP", "B-VP", "B-NP", "B-PP", "B-NP", "I-NP", "I-NP", "I-NP", "O", "B-NP", "I-NP", "I-NP", "I-NP", "B-NP", "I-NP", "O", "B-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 4, + "destination" : 3, + "relation" : "compound" + }, { + "source" : 4, + "destination" : 5, + "relation" : "acl" + }, { + "source" : 4, + "destination" : 0, + "relation" : "det" + }, { + "source" : 4, + "destination" : 1, + "relation" : "amod" + }, { + "source" : 4, + "destination" : 2, + "relation" : "compound" + }, { + "source" : 5, + "destination" : 8, + "relation" : "nmod_by" + }, { + "source" : 8, + "destination" : 6, + "relation" : "case" + }, { + "source" : 8, + "destination" : 7, + "relation" : "compound" + }, { + "source" : 9, + "destination" : 4, + "relation" : "nsubj" + }, { + "source" : 9, + "destination" : 11, + "relation" : "nmod_with" + }, { + "source" : 11, + "destination" : 10, + "relation" : "case" + }, { + "source" : 11, + "destination" : 13, + "relation" : "acl" + }, { + "source" : 13, + "destination" : 12, + "relation" : "advmod" + }, { + "source" : 13, + "destination" : 16, + "relation" : "xcomp" + }, { + "source" : 16, + "destination" : 14, + "relation" : "mark" + }, { + "source" : 16, + "destination" : 15, + "relation" : "auxpass" + }, { + "source" : 16, + "destination" : 17, + "relation" : "xcomp" + }, { + "source" : 17, + "destination" : 23, + "relation" : "nmod_against" + }, { + "source" : 17, + "destination" : 28, + "relation" : "nmod_against" + }, { + "source" : 17, + "destination" : 30, + "relation" : "dep" + }, { + "source" : 17, + "destination" : 18, + "relation" : "dobj" + }, { + "source" : 23, + "destination" : 19, + "relation" : "case" + }, { + "source" : 23, + "destination" : 20, + "relation" : "det" + }, { + "source" : 23, + "destination" : 21, + "relation" : "compound" + }, { + "source" : 23, + "destination" : 22, + "relation" : "compound" + }, { + "source" : 23, + "destination" : 24, + "relation" : "cc" + }, { + "source" : 23, + "destination" : 28, + "relation" : "conj_and" + }, { + "source" : 25, + "destination" : 26, + "relation" : "cc" + }, { + "source" : 25, + "destination" : 27, + "relation" : "conj_and" + }, { + "source" : 28, + "destination" : 25, + "relation" : "compound" + }, { + "source" : 28, + "destination" : 27, + "relation" : "compound" + }, { + "source" : 30, + "destination" : 32, + "relation" : "dep" + } ], + "roots" : [ 9 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 4, + "destination" : 3, + "relation" : "compound" + }, { + "source" : 4, + "destination" : 5, + "relation" : "acl" + }, { + "source" : 4, + "destination" : 0, + "relation" : "det" + }, { + "source" : 4, + "destination" : 1, + "relation" : "amod" + }, { + "source" : 4, + "destination" : 2, + "relation" : "compound" + }, { + "source" : 5, + "destination" : 8, + "relation" : "nmod" + }, { + "source" : 8, + "destination" : 6, + "relation" : "case" + }, { + "source" : 8, + "destination" : 7, + "relation" : "compound" + }, { + "source" : 9, + "destination" : 4, + "relation" : "nsubj" + }, { + "source" : 9, + "destination" : 11, + "relation" : "nmod" + }, { + "source" : 11, + "destination" : 10, + "relation" : "case" + }, { + "source" : 11, + "destination" : 13, + "relation" : "acl" + }, { + "source" : 13, + "destination" : 12, + "relation" : "advmod" + }, { + "source" : 13, + "destination" : 16, + "relation" : "xcomp" + }, { + "source" : 16, + "destination" : 14, + "relation" : "mark" + }, { + "source" : 16, + "destination" : 15, + "relation" : "auxpass" + }, { + "source" : 16, + "destination" : 17, + "relation" : "xcomp" + }, { + "source" : 17, + "destination" : 23, + "relation" : "nmod" + }, { + "source" : 17, + "destination" : 30, + "relation" : "dep" + }, { + "source" : 17, + "destination" : 18, + "relation" : "dobj" + }, { + "source" : 23, + "destination" : 19, + "relation" : "case" + }, { + "source" : 23, + "destination" : 20, + "relation" : "det" + }, { + "source" : 23, + "destination" : 21, + "relation" : "compound" + }, { + "source" : 23, + "destination" : 22, + "relation" : "compound" + }, { + "source" : 23, + "destination" : 24, + "relation" : "cc" + }, { + "source" : 23, + "destination" : 28, + "relation" : "conj" + }, { + "source" : 25, + "destination" : 26, + "relation" : "cc" + }, { + "source" : 25, + "destination" : 27, + "relation" : "conj" + }, { + "source" : 28, + "destination" : 25, + "relation" : "compound" + }, { + "source" : 30, + "destination" : 32, + "relation" : "dep" + } ], + "roots" : [ 9 ] + } + } + }, { + "words" : [ "CtBPs", "have", "also", "been", "described", "to", "negatively", "regulate", "transcriptional", "activity", "of", "the", "HER3", "promoter", "in", "breast", "carcinoma", "cell", "lines", "(", "30", ")", "." ], + "startOffsets" : [ 1662, 1668, 1673, 1678, 1683, 1693, 1696, 1707, 1716, 1732, 1741, 1744, 1748, 1753, 1762, 1765, 1772, 1782, 1787, 1793, 1794, 1796, 1797 ], + "endOffsets" : [ 1667, 1672, 1677, 1682, 1692, 1695, 1706, 1715, 1731, 1740, 1743, 1747, 1752, 1761, 1764, 1771, 1781, 1786, 1792, 1794, 1796, 1797, 1798 ], + "raw" : [ "CtBPs", "have", "also", "been", "described", "to", "negatively", "regulate", "transcriptional", "activity", "of", "the", "HER3", "promoter", "in", "breast", "carcinoma", "cell", "lines", "(", "30", ")", "." ], + "tags" : [ "NNS", "VBP", "RB", "VBN", "VBN", "TO", "RB", "VB", "JJ", "NN", "IN", "DT", "NN", "NN", "IN", "NN", "NN", "NN", "NNS", "-LRB-", "CD", "-RRB-", "." ], + "lemmas" : [ "ctbp", "have", "also", "be", "describe", "to", "negatively", "regulate", "transcriptional", "activity", "of", "the", "her3", "promoter", "in", "breast", "carcinoma", "cell", "line", "(", "30", ")", "." ], + "entities" : [ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "O", "B-TissueType", "I-TissueType", "O", "O", "O", "O", "O", "O" ], + "chunks" : [ "B-NP", "B-VP", "I-VP", "I-VP", "I-VP", "B-VP", "I-VP", "I-VP", "B-NP", "I-NP", "B-PP", "B-NP", "I-NP", "I-NP", "B-PP", "B-NP", "I-NP", "I-NP", "I-NP", "B-VP", "B-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 7, + "destination" : 6, + "relation" : "advmod" + }, { + "source" : 7, + "destination" : 9, + "relation" : "dobj" + }, { + "source" : 7, + "destination" : 0, + "relation" : "nsubj:xsubj" + }, { + "source" : 7, + "destination" : 5, + "relation" : "mark" + }, { + "source" : 9, + "destination" : 8, + "relation" : "amod" + }, { + "source" : 9, + "destination" : 13, + "relation" : "nmod_of" + }, { + "source" : 13, + "destination" : 10, + "relation" : "case" + }, { + "source" : 13, + "destination" : 11, + "relation" : "det" + }, { + "source" : 13, + "destination" : 12, + "relation" : "compound" + }, { + "source" : 13, + "destination" : 18, + "relation" : "nmod_in" + }, { + "source" : 18, + "destination" : 14, + "relation" : "case" + }, { + "source" : 18, + "destination" : 15, + "relation" : "compound" + }, { + "source" : 18, + "destination" : 16, + "relation" : "compound" + }, { + "source" : 18, + "destination" : 17, + "relation" : "compound" + }, { + "source" : 18, + "destination" : 20, + "relation" : "appos" + }, { + "source" : 4, + "destination" : 7, + "relation" : "xcomp" + }, { + "source" : 4, + "destination" : 0, + "relation" : "nsubjpass" + }, { + "source" : 4, + "destination" : 1, + "relation" : "aux" + }, { + "source" : 4, + "destination" : 2, + "relation" : "advmod" + }, { + "source" : 4, + "destination" : 3, + "relation" : "auxpass" + } ], + "roots" : [ 4 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 7, + "destination" : 6, + "relation" : "advmod" + }, { + "source" : 7, + "destination" : 9, + "relation" : "dobj" + }, { + "source" : 7, + "destination" : 5, + "relation" : "mark" + }, { + "source" : 9, + "destination" : 8, + "relation" : "amod" + }, { + "source" : 9, + "destination" : 13, + "relation" : "nmod" + }, { + "source" : 13, + "destination" : 10, + "relation" : "case" + }, { + "source" : 13, + "destination" : 11, + "relation" : "det" + }, { + "source" : 13, + "destination" : 12, + "relation" : "compound" + }, { + "source" : 13, + "destination" : 18, + "relation" : "nmod" + }, { + "source" : 18, + "destination" : 14, + "relation" : "case" + }, { + "source" : 18, + "destination" : 15, + "relation" : "compound" + }, { + "source" : 18, + "destination" : 16, + "relation" : "compound" + }, { + "source" : 18, + "destination" : 17, + "relation" : "compound" + }, { + "source" : 18, + "destination" : 20, + "relation" : "appos" + }, { + "source" : 4, + "destination" : 7, + "relation" : "xcomp" + }, { + "source" : 4, + "destination" : 0, + "relation" : "nsubjpass" + }, { + "source" : 4, + "destination" : 1, + "relation" : "aux" + }, { + "source" : 4, + "destination" : 2, + "relation" : "advmod" + }, { + "source" : 4, + "destination" : 3, + "relation" : "auxpass" + } ], + "roots" : [ 4 ] + } + } + }, { + "words" : [ "Silencing", "of", "CtBP1", ",", "and", "to", "a", "lesser", "extent", "CtBP2", ",", "increased", "basal", "HER3", "in", "8505C", "cells", ",", "and", "markedly", "potentiated", "the", "effects", "of", "PLX4032", "(", "Fig", "." ], + "startOffsets" : [ 1799, 1809, 1812, 1817, 1819, 1823, 1826, 1828, 1835, 1842, 1847, 1849, 1859, 1865, 1870, 1873, 1879, 1884, 1886, 1890, 1899, 1911, 1915, 1923, 1926, 1934, 1935, 1938 ], + "endOffsets" : [ 1808, 1811, 1817, 1818, 1822, 1825, 1827, 1834, 1841, 1847, 1848, 1858, 1864, 1869, 1872, 1878, 1884, 1885, 1889, 1898, 1910, 1914, 1922, 1925, 1933, 1935, 1938, 1939 ], + "raw" : [ "Silencing", "of", "CtBP1", ",", "and", "to", "a", "lesser", "extent", "CtBP2", ",", "increased", "basal", "HER3", "in", "8505C", "cells", ",", "and", "markedly", "potentiated", "the", "effects", "of", "PLX4032", "(", "Fig", "." ], + "tags" : [ "NN", "IN", "NN", ",", "CC", "TO", "DT", "JJR", "NN", "NN", ",", "VBD", "JJ", "NN", "IN", "NN", "NNS", ",", "CC", "RB", "VBD", "DT", "NNS", "IN", "NN", "-LRB-", "NN", "." ], + "lemmas" : [ "silencing", "of", "ctbp1", ",", "and", "to", "a", "lesser", "extent", "ctbp2", ",", "increase", "basal", "her3", "in", "8505c", "cell", ",", "and", "markedly", "potentiate", "the", "effect", "of", "plx4032", "(", "fig", "." ], + "entities" : [ "O", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "O", "O", "B-Gene_or_gene_product", "O", "B-CellLine", "O", "O", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "B-Gene_or_gene_product", "O" ], + "chunks" : [ "B-NP", "B-PP", "B-NP", "O", "O", "B-PP", "B-NP", "I-NP", "I-NP", "I-NP", "O", "B-VP", "B-NP", "I-NP", "B-PP", "B-NP", "I-NP", "O", "O", "B-VP", "I-VP", "B-NP", "I-NP", "B-PP", "B-NP", "I-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 9, + "destination" : 5, + "relation" : "case" + }, { + "source" : 9, + "destination" : 6, + "relation" : "det" + }, { + "source" : 9, + "destination" : 7, + "relation" : "amod" + }, { + "source" : 9, + "destination" : 8, + "relation" : "compound" + }, { + "source" : 11, + "destination" : 13, + "relation" : "dobj" + }, { + "source" : 11, + "destination" : 0, + "relation" : "nsubj" + }, { + "source" : 11, + "destination" : 0, + "relation" : "nsubj" + }, { + "source" : 11, + "destination" : 16, + "relation" : "nmod_in" + }, { + "source" : 11, + "destination" : 18, + "relation" : "cc" + }, { + "source" : 11, + "destination" : 20, + "relation" : "conj_and" + }, { + "source" : 13, + "destination" : 12, + "relation" : "amod" + }, { + "source" : 16, + "destination" : 14, + "relation" : "case" + }, { + "source" : 16, + "destination" : 15, + "relation" : "compound" + }, { + "source" : 20, + "destination" : 26, + "relation" : "advcl" + }, { + "source" : 20, + "destination" : 0, + "relation" : "nsubj" + }, { + "source" : 20, + "destination" : 19, + "relation" : "advmod" + }, { + "source" : 20, + "destination" : 24, + "relation" : "advmod" + }, { + "source" : 22, + "destination" : 21, + "relation" : "det" + }, { + "source" : 22, + "destination" : 23, + "relation" : "case" + }, { + "source" : 24, + "destination" : 22, + "relation" : "advmod" + }, { + "source" : 0, + "destination" : 0, + "relation" : "conj_and" + }, { + "source" : 0, + "destination" : 2, + "relation" : "nmod_of" + }, { + "source" : 0, + "destination" : 4, + "relation" : "cc" + }, { + "source" : 0, + "destination" : 9, + "relation" : "nmod_to" + }, { + "source" : 2, + "destination" : 1, + "relation" : "case" + } ], + "roots" : [ 11 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 9, + "destination" : 5, + "relation" : "case" + }, { + "source" : 9, + "destination" : 6, + "relation" : "det" + }, { + "source" : 9, + "destination" : 7, + "relation" : "amod" + }, { + "source" : 9, + "destination" : 8, + "relation" : "compound" + }, { + "source" : 11, + "destination" : 13, + "relation" : "dobj" + }, { + "source" : 11, + "destination" : 0, + "relation" : "nsubj" + }, { + "source" : 11, + "destination" : 16, + "relation" : "nmod" + }, { + "source" : 11, + "destination" : 18, + "relation" : "cc" + }, { + "source" : 11, + "destination" : 20, + "relation" : "conj" + }, { + "source" : 13, + "destination" : 12, + "relation" : "amod" + }, { + "source" : 16, + "destination" : 14, + "relation" : "case" + }, { + "source" : 16, + "destination" : 15, + "relation" : "compound" + }, { + "source" : 20, + "destination" : 26, + "relation" : "advcl" + }, { + "source" : 20, + "destination" : 19, + "relation" : "advmod" + }, { + "source" : 20, + "destination" : 24, + "relation" : "advmod" + }, { + "source" : 22, + "destination" : 21, + "relation" : "det" + }, { + "source" : 22, + "destination" : 23, + "relation" : "case" + }, { + "source" : 24, + "destination" : 22, + "relation" : "advmod" + }, { + "source" : 0, + "destination" : 2, + "relation" : "nmod" + }, { + "source" : 2, + "destination" : 9, + "relation" : "conj" + }, { + "source" : 2, + "destination" : 1, + "relation" : "case" + }, { + "source" : 2, + "destination" : 4, + "relation" : "cc" + } ], + "roots" : [ 11 ] + } + } + }, { + "words" : [ "5D", "and", "5E", ")", "." ], + "startOffsets" : [ 1940, 1943, 1947, 1949, 1950 ], + "endOffsets" : [ 1942, 1946, 1949, 1950, 1951 ], + "raw" : [ "5D", "and", "5E", ")", "." ], + "tags" : [ "NN", "CC", "NN", "-RRB-", "." ], + "lemmas" : [ "5d", "and", "5e", ")", "." ], + "entities" : [ "O", "O", "O", "O", "O" ], + "chunks" : [ "B-NP", "I-NP", "I-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 0, + "destination" : 1, + "relation" : "cc" + }, { + "source" : 0, + "destination" : 2, + "relation" : "conj_and" + } ], + "roots" : [ 0 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 0, + "destination" : 1, + "relation" : "cc" + }, { + "source" : 0, + "destination" : 2, + "relation" : "conj" + } ], + "roots" : [ 0 ] + } + } + }, { + "words" : [ "Knockdown", "of", "these", "factors", "modestly", "increased", "basal", "and", "PLX4032", "induced", "HER2", "levels", ",", "which", "likely", "contributes", "to", "the", "remarkable", "increase", "in", "pHER3", "we", "observed", "(", "Fig", "." ], + "startOffsets" : [ 1952, 1962, 1965, 1971, 1979, 1988, 1998, 2004, 2008, 2016, 2024, 2029, 2035, 2037, 2043, 2050, 2062, 2065, 2069, 2080, 2089, 2092, 2098, 2101, 2110, 2111, 2114 ], + "endOffsets" : [ 1961, 1964, 1970, 1978, 1987, 1997, 2003, 2007, 2015, 2023, 2028, 2035, 2036, 2042, 2049, 2061, 2064, 2068, 2079, 2088, 2091, 2097, 2100, 2109, 2111, 2114, 2115 ], + "raw" : [ "Knockdown", "of", "these", "factors", "modestly", "increased", "basal", "and", "PLX4032", "induced", "HER2", "levels", ",", "which", "likely", "contributes", "to", "the", "remarkable", "increase", "in", "pHER3", "we", "observed", "(", "Fig", "." ], + "tags" : [ "NNP", "IN", "DT", "NNS", "RB", "VBD", "JJ", "CC", "NN", "VBD", "NN", "NNS", ",", "WDT", "RB", "VBZ", "TO", "DT", "JJ", "NN", "IN", "NN", "PRP", "VBD", "-LRB-", "NN", "." ], + "lemmas" : [ "Knockdown", "of", "these", "factor", "modestly", "increase", "basal", "and", "plx4032", "induce", "her2", "level", ",", "which", "likely", "contribute", "to", "the", "remarkable", "increase", "in", "pher3", "we", "observe", "(", "fig", "." ], + "entities" : [ "O", "O", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O" ], + "chunks" : [ "B-NP", "B-PP", "B-NP", "I-NP", "B-ADVP", "B-VP", "B-NP", "I-NP", "I-NP", "B-VP", "B-NP", "I-NP", "O", "B-NP", "B-ADVP", "B-VP", "B-PP", "B-NP", "I-NP", "I-NP", "B-PP", "B-NP", "B-NP", "B-VP", "B-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 15, + "destination" : 19, + "relation" : "nmod_to" + }, { + "source" : 15, + "destination" : 23, + "relation" : "ccomp" + }, { + "source" : 15, + "destination" : 11, + "relation" : "nsubj" + }, { + "source" : 15, + "destination" : 14, + "relation" : "advmod" + }, { + "source" : 19, + "destination" : 16, + "relation" : "case" + }, { + "source" : 19, + "destination" : 17, + "relation" : "det" + }, { + "source" : 19, + "destination" : 18, + "relation" : "amod" + }, { + "source" : 19, + "destination" : 21, + "relation" : "nmod_in" + }, { + "source" : 21, + "destination" : 20, + "relation" : "case" + }, { + "source" : 23, + "destination" : 22, + "relation" : "nsubj" + }, { + "source" : 23, + "destination" : 25, + "relation" : "dobj" + }, { + "source" : 0, + "destination" : 3, + "relation" : "nmod_of" + }, { + "source" : 3, + "destination" : 1, + "relation" : "case" + }, { + "source" : 3, + "destination" : 2, + "relation" : "det" + }, { + "source" : 5, + "destination" : 0, + "relation" : "nsubj" + }, { + "source" : 5, + "destination" : 4, + "relation" : "advmod" + }, { + "source" : 5, + "destination" : 9, + "relation" : "ccomp" + }, { + "source" : 6, + "destination" : 7, + "relation" : "cc" + }, { + "source" : 6, + "destination" : 8, + "relation" : "conj_and" + }, { + "source" : 9, + "destination" : 6, + "relation" : "nsubj" + }, { + "source" : 9, + "destination" : 8, + "relation" : "nsubj" + }, { + "source" : 9, + "destination" : 11, + "relation" : "dobj" + }, { + "source" : 11, + "destination" : 15, + "relation" : "acl:relcl" + }, { + "source" : 11, + "destination" : 10, + "relation" : "compound" + }, { + "source" : 11, + "destination" : 13, + "relation" : "ref" + } ], + "roots" : [ 5 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 15, + "destination" : 19, + "relation" : "nmod" + }, { + "source" : 15, + "destination" : 23, + "relation" : "ccomp" + }, { + "source" : 15, + "destination" : 13, + "relation" : "nsubj" + }, { + "source" : 15, + "destination" : 14, + "relation" : "advmod" + }, { + "source" : 19, + "destination" : 16, + "relation" : "case" + }, { + "source" : 19, + "destination" : 17, + "relation" : "det" + }, { + "source" : 19, + "destination" : 18, + "relation" : "amod" + }, { + "source" : 19, + "destination" : 21, + "relation" : "nmod" + }, { + "source" : 21, + "destination" : 20, + "relation" : "case" + }, { + "source" : 23, + "destination" : 22, + "relation" : "nsubj" + }, { + "source" : 23, + "destination" : 25, + "relation" : "dobj" + }, { + "source" : 0, + "destination" : 3, + "relation" : "nmod" + }, { + "source" : 3, + "destination" : 1, + "relation" : "case" + }, { + "source" : 3, + "destination" : 2, + "relation" : "det" + }, { + "source" : 5, + "destination" : 0, + "relation" : "nsubj" + }, { + "source" : 5, + "destination" : 4, + "relation" : "advmod" + }, { + "source" : 5, + "destination" : 9, + "relation" : "ccomp" + }, { + "source" : 6, + "destination" : 7, + "relation" : "cc" + }, { + "source" : 6, + "destination" : 8, + "relation" : "conj" + }, { + "source" : 9, + "destination" : 6, + "relation" : "nsubj" + }, { + "source" : 9, + "destination" : 11, + "relation" : "dobj" + }, { + "source" : 11, + "destination" : 15, + "relation" : "acl:relcl" + }, { + "source" : 11, + "destination" : 10, + "relation" : "compound" + } ], + "roots" : [ 5 ] + } + } + }, { + "words" : [ "5D", "and", "5E", ")", "." ], + "startOffsets" : [ 2116, 2119, 2123, 2125, 2126 ], + "endOffsets" : [ 2118, 2122, 2125, 2126, 2127 ], + "raw" : [ "5D", "and", "5E", ")", "." ], + "tags" : [ "NN", "CC", "NN", "-RRB-", "." ], + "lemmas" : [ "5d", "and", "5e", ")", "." ], + "entities" : [ "O", "O", "O", "O", "O" ], + "chunks" : [ "B-NP", "I-NP", "I-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 0, + "destination" : 2, + "relation" : "conj_and" + }, { + "source" : 0, + "destination" : 1, + "relation" : "cc" + } ], + "roots" : [ 0 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 0, + "destination" : 2, + "relation" : "conj" + }, { + "source" : 0, + "destination" : 1, + "relation" : "cc" + } ], + "roots" : [ 0 ] + } + } + }, { + "words" : [ "Finally", ",", "CtBP1", "and", "CtBP2", "chromatin", "immunoprecipitation", "assays", "showed", "decreased", "binding", "to", "the", "HER3", "promoter", "after", "treatment", "with", "PLX4032", "(", "Fig", "." ], + "startOffsets" : [ 2128, 2135, 2137, 2143, 2147, 2153, 2163, 2183, 2190, 2197, 2207, 2215, 2218, 2222, 2227, 2236, 2242, 2252, 2257, 2265, 2266, 2269 ], + "endOffsets" : [ 2135, 2136, 2142, 2146, 2152, 2162, 2182, 2189, 2196, 2206, 2214, 2217, 2221, 2226, 2235, 2241, 2251, 2256, 2264, 2266, 2269, 2270 ], + "raw" : [ "Finally", ",", "CtBP1", "and", "CtBP2", "chromatin", "immunoprecipitation", "assays", "showed", "decreased", "binding", "to", "the", "HER3", "promoter", "after", "treatment", "with", "PLX4032", "(", "Fig", "." ], + "tags" : [ "RB", ",", "NN", "CC", "NN", "NN", "NN", "NNS", "VBD", "VBN", "NN", "TO", "DT", "NN", "NN", "IN", "NN", "IN", "NN", "-LRB-", "NN", "." ], + "lemmas" : [ "finally", ",", "ctbp1", "and", "ctbp2", "chromatin", "immunoprecipitation", "assay", "show", "decrease", "binding", "to", "the", "her3", "promoter", "after", "treatment", "with", "plx4032", "(", "fig", "." ], + "entities" : [ "O", "O", "B-Gene_or_gene_product", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "B-Gene_or_gene_product", "O", "B-Gene_or_gene_product", "O" ], + "chunks" : [ "B-ADVP", "O", "B-NP", "I-NP", "I-NP", "I-NP", "I-NP", "I-NP", "B-VP", "I-VP", "B-NP", "B-PP", "B-NP", "I-NP", "I-NP", "B-PP", "B-NP", "B-PP", "B-NP", "I-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 2, + "destination" : 3, + "relation" : "cc" + }, { + "source" : 2, + "destination" : 4, + "relation" : "conj_and" + }, { + "source" : 7, + "destination" : 5, + "relation" : "compound" + }, { + "source" : 7, + "destination" : 6, + "relation" : "compound" + }, { + "source" : 7, + "destination" : 2, + "relation" : "compound" + }, { + "source" : 7, + "destination" : 4, + "relation" : "compound" + }, { + "source" : 8, + "destination" : 7, + "relation" : "nsubj" + }, { + "source" : 8, + "destination" : 10, + "relation" : "dobj" + }, { + "source" : 8, + "destination" : 14, + "relation" : "nmod_to" + }, { + "source" : 8, + "destination" : 0, + "relation" : "advmod" + }, { + "source" : 8, + "destination" : 16, + "relation" : "nmod_after" + }, { + "source" : 8, + "destination" : 20, + "relation" : "nmod_with" + }, { + "source" : 10, + "destination" : 9, + "relation" : "amod" + }, { + "source" : 14, + "destination" : 11, + "relation" : "case" + }, { + "source" : 14, + "destination" : 12, + "relation" : "det" + }, { + "source" : 14, + "destination" : 13, + "relation" : "compound" + }, { + "source" : 16, + "destination" : 15, + "relation" : "case" + }, { + "source" : 20, + "destination" : 17, + "relation" : "case" + }, { + "source" : 20, + "destination" : 18, + "relation" : "compound" + } ], + "roots" : [ 8 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 2, + "destination" : 3, + "relation" : "cc" + }, { + "source" : 2, + "destination" : 4, + "relation" : "conj" + }, { + "source" : 7, + "destination" : 5, + "relation" : "compound" + }, { + "source" : 7, + "destination" : 6, + "relation" : "compound" + }, { + "source" : 7, + "destination" : 2, + "relation" : "compound" + }, { + "source" : 8, + "destination" : 7, + "relation" : "nsubj" + }, { + "source" : 8, + "destination" : 10, + "relation" : "dobj" + }, { + "source" : 8, + "destination" : 14, + "relation" : "nmod" + }, { + "source" : 8, + "destination" : 0, + "relation" : "advmod" + }, { + "source" : 8, + "destination" : 16, + "relation" : "nmod" + }, { + "source" : 8, + "destination" : 20, + "relation" : "nmod" + }, { + "source" : 10, + "destination" : 9, + "relation" : "amod" + }, { + "source" : 14, + "destination" : 11, + "relation" : "case" + }, { + "source" : 14, + "destination" : 12, + "relation" : "det" + }, { + "source" : 14, + "destination" : 13, + "relation" : "compound" + }, { + "source" : 16, + "destination" : 15, + "relation" : "case" + }, { + "source" : 20, + "destination" : 17, + "relation" : "case" + }, { + "source" : 20, + "destination" : 18, + "relation" : "compound" + } ], + "roots" : [ 8 ] + } + } + }, { + "words" : [ "5F", ")", "." ], + "startOffsets" : [ 2271, 2273, 2274 ], + "endOffsets" : [ 2273, 2274, 2275 ], + "raw" : [ "5F", ")", "." ], + "tags" : [ "NN", "-RRB-", "." ], + "lemmas" : [ "5f", ")", "." ], + "entities" : [ "O", "O", "O" ], + "chunks" : [ "B-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ ], + "roots" : [ 0 ] + }, + "universal-basic" : { + "edges" : [ ], + "roots" : [ 0 ] + } + } + }, { + "words" : [ "These", "findings", "were", "confirmed", "in", "a", "second", "cell", "line", "(", "Supplementary", "Fig", "." ], + "startOffsets" : [ 2276, 2282, 2291, 2296, 2306, 2309, 2311, 2318, 2323, 2328, 2329, 2343, 2346 ], + "endOffsets" : [ 2281, 2290, 2295, 2305, 2308, 2310, 2317, 2322, 2327, 2329, 2342, 2346, 2347 ], + "raw" : [ "These", "findings", "were", "confirmed", "in", "a", "second", "cell", "line", "(", "Supplementary", "Fig", "." ], + "tags" : [ "DT", "NNS", "VBD", "VBN", "IN", "DT", "JJ", "NN", "NN", "-LRB-", "NNP", "NNP", "." ], + "lemmas" : [ "these", "finding", "be", "confirm", "in", "a", "second", "cell", "line", "(", "Supplementary", "Fig", "." ], + "entities" : [ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Gene_or_gene_product", "O" ], + "chunks" : [ "B-NP", "I-NP", "B-VP", "I-VP", "B-PP", "B-NP", "I-NP", "I-NP", "I-NP", "I-NP", "I-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 1, + "destination" : 0, + "relation" : "det" + }, { + "source" : 3, + "destination" : 1, + "relation" : "nsubjpass" + }, { + "source" : 3, + "destination" : 2, + "relation" : "auxpass" + }, { + "source" : 3, + "destination" : 7, + "relation" : "nmod_in" + }, { + "source" : 7, + "destination" : 4, + "relation" : "case" + }, { + "source" : 7, + "destination" : 5, + "relation" : "det" + }, { + "source" : 7, + "destination" : 6, + "relation" : "amod" + }, { + "source" : 7, + "destination" : 8, + "relation" : "dep" + }, { + "source" : 8, + "destination" : 10, + "relation" : "dep" + }, { + "source" : 10, + "destination" : 11, + "relation" : "appos" + } ], + "roots" : [ 3 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 1, + "destination" : 0, + "relation" : "det" + }, { + "source" : 3, + "destination" : 1, + "relation" : "nsubjpass" + }, { + "source" : 3, + "destination" : 2, + "relation" : "auxpass" + }, { + "source" : 3, + "destination" : 7, + "relation" : "nmod" + }, { + "source" : 7, + "destination" : 4, + "relation" : "case" + }, { + "source" : 7, + "destination" : 5, + "relation" : "det" + }, { + "source" : 7, + "destination" : 6, + "relation" : "amod" + }, { + "source" : 7, + "destination" : 8, + "relation" : "dep" + }, { + "source" : 8, + "destination" : 10, + "relation" : "dep" + }, { + "source" : 10, + "destination" : 11, + "relation" : "appos" + } ], + "roots" : [ 3 ] + } + } + }, { + "words" : [ "S5A", ")", "." ], + "startOffsets" : [ 2348, 2351, 2352 ], + "endOffsets" : [ 2351, 2352, 2353 ], + "raw" : [ "S5A", ")", "." ], + "tags" : [ "NN", "-RRB-", "." ], + "lemmas" : [ "s5a", ")", "." ], + "entities" : [ "B-Gene_or_gene_product", "O", "O" ], + "chunks" : [ "B-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ ], + "roots" : [ 0 ] + }, + "universal-basic" : { + "edges" : [ ], + "roots" : [ 0 ] + } + } + } ] + } + }, + "mentions" : [ { + "type" : "EventMention", + "id" : "E:1775103803", + "text" : "FoxO3A-dependent induction of HER3 gene transcription", + "labels" : [ "Positive_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:2085603078", + "text" : "induction", + "labels" : [ "Positive_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 39, + "end" : 40 + }, + "characterStartOffset" : 324, + "characterEndOffset" : 333, + "sentence" : 1, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Positive_regulation_syntax_3_noun" + }, + "arguments" : { + "controlled" : [ { + "type" : "EventMention", + "id" : "E:1332281337", + "text" : "HER3 gene transcription", + "labels" : [ "Transcription", "IncreaseAmount", "Amount", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:1331776980", + "text" : "transcription", + "labels" : [ "Transcription", "IncreaseAmount", "Amount", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 43, + "end" : 44 + }, + "characterStartOffset" : 347, + "characterEndOffset" : 360, + "sentence" : 1, + "document" : "1955805614", + "keep" : true, + "foundBy" : "transcription_1" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:-2075678136", + "text" : "HER3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 41, + "end" : 42 + }, + "characterStartOffset" : 337, + "characterEndOffset" : 341, + "sentence" : 1, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "theme" : { + "T:-2075678136" : [ { + "source" : 43, + "destination" : 41, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 41, + "end" : 44 + }, + "characterStartOffset" : 337, + "characterEndOffset" : 360, + "sentence" : 1, + "document" : "1955805614", + "keep" : true, + "foundBy" : "transcription_1" + } ], + "controller" : [ { + "type" : "TextBoundMention", + "id" : "T:-1671283673", + "text" : "FoxO3A", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 37, + "end" : 38 + }, + "characterStartOffset" : 307, + "characterEndOffset" : 313, + "sentence" : 1, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "controlled" : { + "E:1332281337" : [ { + "source" : 39, + "destination" : 43, + "relation" : "nmod_of" + }, { + "source" : 43, + "destination" : 42, + "relation" : "compound" + } ] + }, + "controller" : { + "T:-1671283673" : [ { + "source" : 39, + "destination" : 37, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 37, + "end" : 44 + }, + "characterStartOffset" : 307, + "characterEndOffset" : 360, + "sentence" : 1, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Positive_regulation_syntax_3_noun" + }, { + "type" : "EventMention", + "id" : "E:1882710110", + "text" : "PLX4032-induced HER2 levels", + "labels" : [ "Positive_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:507337780", + "text" : "induced", + "labels" : [ "Positive_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 9, + "end" : 10 + }, + "characterStartOffset" : 2016, + "characterEndOffset" : 2023, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Positive_early_regulation" + }, + "arguments" : { + "controller" : [ { + "type" : "TextBoundMention", + "id" : "T:822188338", + "text" : "PLX4032", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 9 + }, + "characterStartOffset" : 2008, + "characterEndOffset" : 2015, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ], + "controlled" : [ { + "type" : "EventMention", + "id" : "E:-1016857809", + "text" : "HER2 levels", + "labels" : [ "Amount", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-1882660029", + "text" : "levels", + "labels" : [ "Amount", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 11, + "end" : 12 + }, + "characterStartOffset" : 2029, + "characterEndOffset" : 2035, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "amount_1" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:-2075982874", + "text" : "HER2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 2024, + "characterEndOffset" : 2028, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "theme" : { + "T:-2075982874" : [ { + "source" : 11, + "destination" : 10, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 10, + "end" : 12 + }, + "characterStartOffset" : 2024, + "characterEndOffset" : 2035, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "amount_1" + } ] + }, + "tokenInterval" : { + "start" : 8, + "end" : 12 + }, + "characterStartOffset" : 2008, + "characterEndOffset" : 2035, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Positive_early_regulation" + }, { + "type" : "TextBoundMention", + "id" : "T:-1303583830", + "text" : "HER3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 63, + "characterEndOffset" : 67, + "sentence" : 0, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1013598057", + "text" : "MAPK", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 12, + "end" : 13 + }, + "characterStartOffset" : 71, + "characterEndOffset" : 75, + "sentence" : 0, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-963442562", + "text" : "BRAF", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 16, + "end" : 17 + }, + "characterStartOffset" : 98, + "characterEndOffset" : 102, + "sentence" : 0, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:106152391", + "text" : "thyroid", + "labels" : [ "TissueType", "Context" ], + "tokenInterval" : { + "start" : 18, + "end" : 19 + }, + "characterStartOffset" : 110, + "characterEndOffset" : 117, + "sentence" : 0, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-tissue-type" + }, { + "type" : "TextBoundMention", + "id" : "T:898634111", + "text" : "HER3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 2, + "end" : 3 + }, + "characterStartOffset" : 146, + "characterEndOffset" : 150, + "sentence" : 1, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1875381970", + "text" : "PI3K", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 191, + "characterEndOffset" : 195, + "sentence" : 1, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-1205239029", + "text" : "AKT", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 12, + "end" : 13 + }, + "characterStartOffset" : 196, + "characterEndOffset" : 199, + "sentence" : 1, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1158458383", + "text" : "HER2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 17, + "end" : 18 + }, + "characterStartOffset" : 208, + "characterEndOffset" : 212, + "sentence" : 1, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1022853884", + "text" : "HER2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 23, + "end" : 24 + }, + "characterStartOffset" : 232, + "characterEndOffset" : 236, + "sentence" : 1, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-966021765", + "text" : "breast cancer", + "labels" : [ "TissueType", "Context" ], + "tokenInterval" : { + "start" : 25, + "end" : 27 + }, + "characterStartOffset" : 247, + "characterEndOffset" : 260, + "sentence" : 1, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-tissue-type" + }, { + "type" : "TextBoundMention", + "id" : "T:-1671283673", + "text" : "FoxO3A", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 37, + "end" : 38 + }, + "characterStartOffset" : 307, + "characterEndOffset" : 313, + "sentence" : 1, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-2075678136", + "text" : "HER3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 41, + "end" : 42 + }, + "characterStartOffset" : 337, + "characterEndOffset" : 341, + "sentence" : 1, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:178658708", + "text" : "transcription", + "labels" : [ "BioProcess", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 43, + "end" : 44 + }, + "characterStartOffset" : 347, + "characterEndOffset" : 360, + "sentence" : 1, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-bioprocess-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-228380575", + "text" : "Fig", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 3, + "end" : 4 + }, + "characterStartOffset" : 374, + "characterEndOffset" : 377, + "sentence" : 2, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:403379762", + "text" : "5A", + "labels" : [ "Site" ], + "tokenInterval" : { + "start" : 0, + "end" : 1 + }, + "characterStartOffset" : 379, + "characterEndOffset" : 381, + "sentence" : 3, + "document" : "1955805614", + "keep" : true, + "foundBy" : "site_1letter_b" + }, { + "type" : "TextBoundMention", + "id" : "T:-600070773", + "text" : "PLX4032", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 2, + "end" : 3 + }, + "characterStartOffset" : 383, + "characterEndOffset" : 390, + "sentence" : 3, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-727438897", + "text" : "PLX4032", + "labels" : [ "Site" ], + "tokenInterval" : { + "start" : 2, + "end" : 3 + }, + "characterStartOffset" : 383, + "characterEndOffset" : 390, + "sentence" : 3, + "document" : "1955805614", + "keep" : true, + "foundBy" : "multi-site" + }, { + "type" : "TextBoundMention", + "id" : "T:-755892971", + "text" : "HER3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 5, + "end" : 6 + }, + "characterStartOffset" : 411, + "characterEndOffset" : 415, + "sentence" : 3, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:514769094", + "text" : "HER2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 7, + "end" : 8 + }, + "characterStartOffset" : 420, + "characterEndOffset" : 424, + "sentence" : 3, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-2021306108", + "text" : "thyroid cancer", + "labels" : [ "TissueType", "Context" ], + "tokenInterval" : { + "start" : 13, + "end" : 15 + }, + "characterStartOffset" : 454, + "characterEndOffset" : 468, + "sentence" : 3, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-tissue-type" + }, { + "type" : "TextBoundMention", + "id" : "T:-461748416", + "text" : "MEK inhibitor", + "labels" : [ "Simple_chemical", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 10 + }, + "characterStartOffset" : 544, + "characterEndOffset" : 557, + "sentence" : 4, + "document" : "1955805614", + "keep" : true, + "foundBy" : "protein-inhibitor" + }, { + "type" : "TextBoundMention", + "id" : "T:-889240124", + "text" : "AZD6244", + "labels" : [ "Simple_chemical", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 558, + "characterEndOffset" : 565, + "sentence" : 4, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-simple_chemical-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-1398228163", + "text" : "MEK inhibitor", + "labels" : [ "Simple_chemical", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 4, + "end" : 6 + }, + "characterStartOffset" : 598, + "characterEndOffset" : 611, + "sentence" : 5, + "document" : "1955805614", + "keep" : true, + "foundBy" : "protein-inhibitor" + }, { + "type" : "TextBoundMention", + "id" : "T:1145794671", + "text" : "HER2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 9 + }, + "characterStartOffset" : 621, + "characterEndOffset" : 625, + "sentence" : 5, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:939586212", + "text" : "HER3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 627, + "characterEndOffset" : 631, + "sentence" : 5, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-777897557", + "text" : "pHER3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 14, + "end" : 15 + }, + "characterStartOffset" : 647, + "characterEndOffset" : 652, + "sentence" : 5, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:106829366", + "text" : "pERK", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 28, + "end" : 29 + }, + "characterStartOffset" : 732, + "characterEndOffset" : 736, + "sentence" : 5, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1606155643", + "text" : "Fig", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 30, + "end" : 31 + }, + "characterStartOffset" : 738, + "characterEndOffset" : 741, + "sentence" : 5, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-1988028232", + "text" : "5B", + "labels" : [ "Simple_chemical", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 0, + "end" : 1 + }, + "characterStartOffset" : 743, + "characterEndOffset" : 745, + "sentence" : 6, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-simple_chemical-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1671442537", + "text" : "RAF", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 0, + "end" : 1 + }, + "characterStartOffset" : 748, + "characterEndOffset" : 751, + "sentence" : 7, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1309897062", + "text" : "MEK inhibitors", + "labels" : [ "Simple_chemical", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 2, + "end" : 4 + }, + "characterStartOffset" : 755, + "characterEndOffset" : 769, + "sentence" : 7, + "document" : "1955805614", + "keep" : true, + "foundBy" : "protein-inhibitor" + }, { + "type" : "TextBoundMention", + "id" : "T:705035474", + "text" : "luciferase", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 5, + "end" : 6 + }, + "characterStartOffset" : 778, + "characterEndOffset" : 788, + "sentence" : 7, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-684398735", + "text" : "HER3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 9, + "end" : 10 + }, + "characterStartOffset" : 803, + "characterEndOffset" : 807, + "sentence" : 7, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:739072816", + "text" : "~ 1", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 13, + "end" : 15 + }, + "characterStartOffset" : 836, + "characterEndOffset" : 839, + "sentence" : 7, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1043339679", + "text" : "kb", + "labels" : [ "CellLine", "Context" ], + "tokenInterval" : { + "start" : 15, + "end" : 16 + }, + "characterStartOffset" : 840, + "characterEndOffset" : 842, + "sentence" : 7, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-cell-lines" + }, { + "type" : "TextBoundMention", + "id" : "T:1705879483", + "text" : "start", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 20, + "end" : 21 + }, + "characterStartOffset" : 875, + "characterEndOffset" : 880, + "sentence" : 7, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:348175313", + "text" : "8505C", + "labels" : [ "CellLine", "Context" ], + "tokenInterval" : { + "start" : 23, + "end" : 24 + }, + "characterStartOffset" : 889, + "characterEndOffset" : 894, + "sentence" : 7, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-cell-lines" + }, { + "type" : "TextBoundMention", + "id" : "T:1208340541", + "text" : "8505C", + "labels" : [ "Site" ], + "tokenInterval" : { + "start" : 23, + "end" : 24 + }, + "characterStartOffset" : 889, + "characterEndOffset" : 894, + "sentence" : 7, + "document" : "1955805614", + "keep" : true, + "foundBy" : "site_1letter_b" + }, { + "type" : "TextBoundMention", + "id" : "T:337604934", + "text" : "HER3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 5, + "end" : 6 + }, + "characterStartOffset" : 940, + "characterEndOffset" : 944, + "sentence" : 8, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-1580626748", + "text" : "vemurafenib", + "labels" : [ "Simple_chemical", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 11, + "end" : 12 + }, + "characterStartOffset" : 992, + "characterEndOffset" : 1003, + "sentence" : 8, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-simple_chemical-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-2135680872", + "text" : "AZD6244", + "labels" : [ "Simple_chemical", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 13, + "end" : 14 + }, + "characterStartOffset" : 1008, + "characterEndOffset" : 1015, + "sentence" : 8, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-simple_chemical-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:690765380", + "text" : "bp", + "labels" : [ "Simple_chemical", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 24, + "end" : 25 + }, + "characterStartOffset" : 1056, + "characterEndOffset" : 1058, + "sentence" : 8, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-simple_chemical-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1828092531", + "text" : "Fig", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 26, + "end" : 27 + }, + "characterStartOffset" : 1060, + "characterEndOffset" : 1063, + "sentence" : 8, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-1860146613", + "text" : "5C", + "labels" : [ "Site" ], + "tokenInterval" : { + "start" : 0, + "end" : 1 + }, + "characterStartOffset" : 1065, + "characterEndOffset" : 1067, + "sentence" : 9, + "document" : "1955805614", + "keep" : true, + "foundBy" : "site_1letter_b" + }, { + "type" : "TextBoundMention", + "id" : "T:-1422564007", + "text" : "FoxO", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 7, + "end" : 8 + }, + "characterStartOffset" : 1113, + "characterEndOffset" : 1117, + "sentence" : 10, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1135045177", + "text" : "PLX4032", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 2, + "end" : 3 + }, + "characterStartOffset" : 1143, + "characterEndOffset" : 1150, + "sentence" : 11, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-984823602", + "text" : "FoxO1/3A", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 1192, + "characterEndOffset" : 1200, + "sentence" : 11, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1026140275", + "text" : "10h", + "labels" : [ "Site" ], + "tokenInterval" : { + "start" : 14, + "end" : 15 + }, + "characterStartOffset" : 1211, + "characterEndOffset" : 1214, + "sentence" : 11, + "document" : "1955805614", + "keep" : true, + "foundBy" : "site_1letter_b" + }, { + "type" : "TextBoundMention", + "id" : "T:1947497812", + "text" : "factors", + "labels" : [ "Generic_entity", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController", "Gene_or_gene_product", "MacroMolecule", "Equivalable" ], + "tokenInterval" : { + "start" : 40, + "end" : 41 + }, + "characterStartOffset" : 1349, + "characterEndOffset" : 1356, + "sentence" : 11, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Nstar_not_in_Nstar_proteins" + }, { + "type" : "TextBoundMention", + "id" : "T:-1617881667", + "text" : "HER3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 45, + "end" : 46 + }, + "characterStartOffset" : 1390, + "characterEndOffset" : 1394, + "sentence" : 11, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-1495512989", + "text" : "MAPK", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 49, + "end" : 50 + }, + "characterStartOffset" : 1410, + "characterEndOffset" : 1414, + "sentence" : 11, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-1187794849", + "text" : "HER3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 2, + "end" : 3 + }, + "characterStartOffset" : 1447, + "characterEndOffset" : 1451, + "sentence" : 12, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1009063238", + "text" : "MAPK inhibitors", + "labels" : [ "Simple_chemical", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 7, + "end" : 9 + }, + "characterStartOffset" : 1481, + "characterEndOffset" : 1496, + "sentence" : 12, + "document" : "1955805614", + "keep" : true, + "foundBy" : "protein-inhibitor" + }, { + "type" : "TextBoundMention", + "id" : "T:1518777358", + "text" : "transcription", + "labels" : [ "BioProcess", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 22, + "end" : 23 + }, + "characterStartOffset" : 1603, + "characterEndOffset" : 1616, + "sentence" : 12, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-bioprocess-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1067234508", + "text" : "CtBP1", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 25, + "end" : 26 + }, + "characterStartOffset" : 1628, + "characterEndOffset" : 1633, + "sentence" : 12, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-746326082", + "text" : "CtBP2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 27, + "end" : 28 + }, + "characterStartOffset" : 1634, + "characterEndOffset" : 1639, + "sentence" : 12, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-2047239138", + "text" : "HER3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 12, + "end" : 13 + }, + "characterStartOffset" : 1748, + "characterEndOffset" : 1752, + "sentence" : 13, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1209635584", + "text" : "breast carcinoma", + "labels" : [ "TissueType", "Context" ], + "tokenInterval" : { + "start" : 15, + "end" : 17 + }, + "characterStartOffset" : 1765, + "characterEndOffset" : 1781, + "sentence" : 13, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-tissue-type" + }, { + "type" : "TextBoundMention", + "id" : "T:1551548366", + "text" : "CtBP1", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 2, + "end" : 3 + }, + "characterStartOffset" : 1812, + "characterEndOffset" : 1817, + "sentence" : 14, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-562349597", + "text" : "CtBP2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 9, + "end" : 10 + }, + "characterStartOffset" : 1842, + "characterEndOffset" : 1847, + "sentence" : 14, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-1019446249", + "text" : "HER3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 13, + "end" : 14 + }, + "characterStartOffset" : 1865, + "characterEndOffset" : 1869, + "sentence" : 14, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:2017269906", + "text" : "8505C", + "labels" : [ "CellLine", "Context" ], + "tokenInterval" : { + "start" : 15, + "end" : 16 + }, + "characterStartOffset" : 1873, + "characterEndOffset" : 1878, + "sentence" : 14, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-cell-lines" + }, { + "type" : "TextBoundMention", + "id" : "T:-1609667765", + "text" : "8505C", + "labels" : [ "Site" ], + "tokenInterval" : { + "start" : 15, + "end" : 16 + }, + "characterStartOffset" : 1873, + "characterEndOffset" : 1878, + "sentence" : 14, + "document" : "1955805614", + "keep" : true, + "foundBy" : "site_1letter_b" + }, { + "type" : "TextBoundMention", + "id" : "T:2061154214", + "text" : "PLX4032", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 24, + "end" : 25 + }, + "characterStartOffset" : 1926, + "characterEndOffset" : 1933, + "sentence" : 14, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1833250677", + "text" : "Fig", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 26, + "end" : 27 + }, + "characterStartOffset" : 1935, + "characterEndOffset" : 1938, + "sentence" : 14, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-141447963", + "text" : "5D", + "labels" : [ "Site" ], + "tokenInterval" : { + "start" : 0, + "end" : 1 + }, + "characterStartOffset" : 1940, + "characterEndOffset" : 1942, + "sentence" : 15, + "document" : "1955805614", + "keep" : true, + "foundBy" : "site_1letter_b" + }, { + "type" : "TextBoundMention", + "id" : "T:-985764197", + "text" : "5E", + "labels" : [ "Site" ], + "tokenInterval" : { + "start" : 2, + "end" : 3 + }, + "characterStartOffset" : 1947, + "characterEndOffset" : 1949, + "sentence" : 15, + "document" : "1955805614", + "keep" : true, + "foundBy" : "site_1letter_b" + }, { + "type" : "TextBoundMention", + "id" : "T:822188338", + "text" : "PLX4032", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 9 + }, + "characterStartOffset" : 2008, + "characterEndOffset" : 2015, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-2075982874", + "text" : "HER2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 2024, + "characterEndOffset" : 2028, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:584732510", + "text" : "Fig", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 25, + "end" : 26 + }, + "characterStartOffset" : 2111, + "characterEndOffset" : 2114, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-542770113", + "text" : "5D", + "labels" : [ "Site" ], + "tokenInterval" : { + "start" : 0, + "end" : 1 + }, + "characterStartOffset" : 2116, + "characterEndOffset" : 2118, + "sentence" : 17, + "document" : "1955805614", + "keep" : true, + "foundBy" : "site_1letter_b" + }, { + "type" : "TextBoundMention", + "id" : "T:503696396", + "text" : "5E", + "labels" : [ "Site" ], + "tokenInterval" : { + "start" : 2, + "end" : 3 + }, + "characterStartOffset" : 2123, + "characterEndOffset" : 2125, + "sentence" : 17, + "document" : "1955805614", + "keep" : true, + "foundBy" : "site_1letter_b" + }, { + "type" : "TextBoundMention", + "id" : "T:-1363420998", + "text" : "CtBP1", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 2, + "end" : 3 + }, + "characterStartOffset" : 2137, + "characterEndOffset" : 2142, + "sentence" : 18, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-829924638", + "text" : "CtBP2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 4, + "end" : 5 + }, + "characterStartOffset" : 2147, + "characterEndOffset" : 2152, + "sentence" : 18, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1974625700", + "text" : "HER3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 13, + "end" : 14 + }, + "characterStartOffset" : 2222, + "characterEndOffset" : 2226, + "sentence" : 18, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:406715696", + "text" : "PLX4032", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 18, + "end" : 19 + }, + "characterStartOffset" : 2257, + "characterEndOffset" : 2264, + "sentence" : 18, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-1621758273", + "text" : "Fig", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 20, + "end" : 21 + }, + "characterStartOffset" : 2266, + "characterEndOffset" : 2269, + "sentence" : 18, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1593734992", + "text" : "5F", + "labels" : [ "Site" ], + "tokenInterval" : { + "start" : 0, + "end" : 1 + }, + "characterStartOffset" : 2271, + "characterEndOffset" : 2273, + "sentence" : 19, + "document" : "1955805614", + "keep" : true, + "foundBy" : "site_1letter_b" + }, { + "type" : "TextBoundMention", + "id" : "T:-634888154", + "text" : "Fig", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 11, + "end" : 12 + }, + "characterStartOffset" : 2343, + "characterEndOffset" : 2346, + "sentence" : 20, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "EventMention", + "id" : "E:-187210036", + "text" : "phosphorylation of FoxO1/3A between 4–10h", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-477965839", + "text" : "phosphorylation", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 9 + }, + "characterStartOffset" : 1173, + "characterEndOffset" : 1188, + "sentence" : 11, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_noun" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:-984823602", + "text" : "FoxO1/3A", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 1192, + "characterEndOffset" : 1200, + "sentence" : 11, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ], + "site" : [ { + "type" : "TextBoundMention", + "id" : "T:1026140275", + "text" : "10h", + "labels" : [ "Site" ], + "tokenInterval" : { + "start" : 14, + "end" : 15 + }, + "characterStartOffset" : 1211, + "characterEndOffset" : 1214, + "sentence" : 11, + "document" : "1955805614", + "keep" : true, + "foundBy" : "site_1letter_b" + } ] + }, + "paths" : { + "theme" : { + "T:-984823602" : [ { + "source" : 8, + "destination" : 10, + "relation" : "nmod_of" + } ] + }, + "site" : { + "T:1026140275" : [ { + "source" : 8, + "destination" : 14, + "relation" : "nmod_between" + } ] + } + }, + "tokenInterval" : { + "start" : 8, + "end" : 15 + }, + "characterStartOffset" : 1173, + "characterEndOffset" : 1214, + "sentence" : 11, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_noun" + }, { + "type" : "EventMention", + "id" : "E:1116981942", + "text" : "MEK inhibitors induced luciferase", + "labels" : [ "Negative_activation", "ActivationEvent", "ComplexEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:1524850795", + "text" : "induced", + "labels" : [ "Negative_activation", "ActivationEvent", "ComplexEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 4, + "end" : 5 + }, + "characterStartOffset" : 770, + "characterEndOffset" : 777, + "sentence" : 7, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Positive_early_activation" + }, + "arguments" : { + "controller" : [ { + "type" : "TextBoundMention", + "id" : "T:1309897062", + "text" : "MEK inhibitors", + "labels" : [ "Simple_chemical", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 2, + "end" : 4 + }, + "characterStartOffset" : 755, + "characterEndOffset" : 769, + "sentence" : 7, + "document" : "1955805614", + "keep" : true, + "foundBy" : "protein-inhibitor" + } ], + "controlled" : [ { + "type" : "TextBoundMention", + "id" : "T:705035474", + "text" : "luciferase", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 5, + "end" : 6 + }, + "characterStartOffset" : 778, + "characterEndOffset" : 788, + "sentence" : 7, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "tokenInterval" : { + "start" : 2, + "end" : 6 + }, + "characterStartOffset" : 755, + "characterEndOffset" : 788, + "sentence" : 7, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Positive_early_activation" + }, { + "type" : "EventMention", + "id" : "E:-85190119", + "text" : "PLX4032 led to an increase in phosphorylation of FoxO1/3A between 4–10h after addition of compound (not shown), which is known to promote its dissociation from DNA, and likely discards involvement of these factors", + "labels" : [ "Positive_activation", "ActivationEvent", "ComplexEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:1783453408", + "text" : "led to", + "labels" : [ "Positive_activation", "ActivationEvent", "ComplexEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 3, + "end" : 5 + }, + "characterStartOffset" : 1151, + "characterEndOffset" : 1157, + "sentence" : 11, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Positive_activation_nested_syntax_2_verb" + }, + "arguments" : { + "controller" : [ { + "type" : "TextBoundMention", + "id" : "T:1135045177", + "text" : "PLX4032", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 2, + "end" : 3 + }, + "characterStartOffset" : 1143, + "characterEndOffset" : 1150, + "sentence" : 11, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ], + "controlled" : [ { + "type" : "TextBoundMention", + "id" : "T:1947497812", + "text" : "factors", + "labels" : [ "Generic_entity", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController", "Gene_or_gene_product", "MacroMolecule", "Equivalable" ], + "tokenInterval" : { + "start" : 40, + "end" : 41 + }, + "characterStartOffset" : 1349, + "characterEndOffset" : 1356, + "sentence" : 11, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Nstar_not_in_Nstar_proteins" + } ] + }, + "paths" : { + "controller" : { + "T:1135045177" : [ { + "source" : 3, + "destination" : 2, + "relation" : "nsubj" + } ] + }, + "controlled" : { + "T:1947497812" : [ { + "source" : 3, + "destination" : 37, + "relation" : "nmod_to" + }, { + "source" : 37, + "destination" : 40, + "relation" : "nmod_of" + } ], + "T:-1495512989" : [ { + "source" : 3, + "destination" : 51, + "relation" : "nmod_to" + }, { + "source" : 51, + "destination" : 49, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 2, + "end" : 41 + }, + "characterStartOffset" : 1143, + "characterEndOffset" : 1356, + "sentence" : 11, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Positive_activation_nested_syntax_2_verb, nounPhraseMatch, strictHeadMatch" + }, { + "type" : "EventMention", + "id" : "E:-1016857809", + "text" : "HER2 levels", + "labels" : [ "Amount", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-1882660029", + "text" : "levels", + "labels" : [ "Amount", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 11, + "end" : 12 + }, + "characterStartOffset" : 2029, + "characterEndOffset" : 2035, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "amount_1" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:-2075982874", + "text" : "HER2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 2024, + "characterEndOffset" : 2028, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "theme" : { + "T:-2075982874" : [ { + "source" : 11, + "destination" : 10, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 10, + "end" : 12 + }, + "characterStartOffset" : 2024, + "characterEndOffset" : 2035, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "amount_1" + }, { + "type" : "EventMention", + "id" : "E:919967623", + "text" : "PLX4032-induced HER2 levels, which likely contributes to the remarkable increase in pHER3 we observed (Fig", + "labels" : [ "Positive_activation", "ActivationEvent", "ComplexEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-485118274", + "text" : "contributes", + "labels" : [ "Positive_activation", "ActivationEvent", "ComplexEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 15, + "end" : 16 + }, + "characterStartOffset" : 2050, + "characterEndOffset" : 2061, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Positive_activation_syntax_1_verb" + }, + "arguments" : { + "controlled" : [ { + "type" : "TextBoundMention", + "id" : "T:584732510", + "text" : "Fig", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 25, + "end" : 26 + }, + "characterStartOffset" : 2111, + "characterEndOffset" : 2114, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ], + "controller" : [ { + "type" : "EventMention", + "id" : "E:1882710110", + "text" : "PLX4032-induced HER2 levels", + "labels" : [ "Positive_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:507337780", + "text" : "induced", + "labels" : [ "Positive_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 9, + "end" : 10 + }, + "characterStartOffset" : 2016, + "characterEndOffset" : 2023, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Positive_early_regulation" + }, + "arguments" : { + "controller" : [ { + "type" : "TextBoundMention", + "id" : "T:822188338", + "text" : "PLX4032", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 9 + }, + "characterStartOffset" : 2008, + "characterEndOffset" : 2015, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ], + "controlled" : [ { + "type" : "EventMention", + "id" : "E:-1016857809", + "text" : "HER2 levels", + "labels" : [ "Amount", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-1882660029", + "text" : "levels", + "labels" : [ "Amount", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 11, + "end" : 12 + }, + "characterStartOffset" : 2029, + "characterEndOffset" : 2035, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "amount_1" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:-2075982874", + "text" : "HER2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 2024, + "characterEndOffset" : 2028, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "theme" : { + "T:-2075982874" : [ { + "source" : 11, + "destination" : 10, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 10, + "end" : 12 + }, + "characterStartOffset" : 2024, + "characterEndOffset" : 2035, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "amount_1" + } ] + }, + "tokenInterval" : { + "start" : 8, + "end" : 12 + }, + "characterStartOffset" : 2008, + "characterEndOffset" : 2035, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Positive_early_regulation" + } ] + }, + "paths" : { + "controlled" : { + "T:584732510" : [ { + "source" : 15, + "destination" : 23, + "relation" : "ccomp" + }, { + "source" : 23, + "destination" : 25, + "relation" : "dobj" + } ] + }, + "controller" : { + "E:1882710110" : [ { + "source" : 15, + "destination" : 11, + "relation" : "nsubj" + }, { + "source" : 11, + "destination" : 10, + "relation" : "compound" + } ], + "E:1565829439" : [ { + "source" : 15, + "destination" : 11, + "relation" : "nsubj" + }, { + "source" : 11, + "destination" : 10, + "relation" : "compound" + } ], + "E:-161860347" : [ { + "source" : 15, + "destination" : 11, + "relation" : "nsubj" + }, { + "source" : 11, + "destination" : 10, + "relation" : "compound" + } ], + "E:-1016857809" : [ { + "source" : 15, + "destination" : 11, + "relation" : "nsubj" + }, { + "source" : 11, + "destination" : 10, + "relation" : "compound" + } ], + "T:-2075982874" : [ { + "source" : 15, + "destination" : 11, + "relation" : "nsubj" + }, { + "source" : 11, + "destination" : 10, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 8, + "end" : 26 + }, + "characterStartOffset" : 2008, + "characterEndOffset" : 2114, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Positive_activation_syntax_1_verb" + }, { + "type" : "EventMention", + "id" : "E:514161484", + "text" : "HER2 levels, which likely contributes to the remarkable increase in pHER3 we observed (Fig", + "labels" : [ "Positive_activation", "ActivationEvent", "ComplexEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-485118274", + "text" : "contributes", + "labels" : [ "Positive_activation", "ActivationEvent", "ComplexEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 15, + "end" : 16 + }, + "characterStartOffset" : 2050, + "characterEndOffset" : 2061, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Positive_activation_syntax_1_verb" + }, + "arguments" : { + "controlled" : [ { + "type" : "TextBoundMention", + "id" : "T:584732510", + "text" : "Fig", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 25, + "end" : 26 + }, + "characterStartOffset" : 2111, + "characterEndOffset" : 2114, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ], + "controller" : [ { + "type" : "EventMention", + "id" : "E:-1016857809", + "text" : "HER2 levels", + "labels" : [ "Amount", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-1882660029", + "text" : "levels", + "labels" : [ "Amount", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 11, + "end" : 12 + }, + "characterStartOffset" : 2029, + "characterEndOffset" : 2035, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "amount_1" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:-2075982874", + "text" : "HER2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 2024, + "characterEndOffset" : 2028, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "theme" : { + "T:-2075982874" : [ { + "source" : 11, + "destination" : 10, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 10, + "end" : 12 + }, + "characterStartOffset" : 2024, + "characterEndOffset" : 2035, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "amount_1" + } ] + }, + "paths" : { + "controlled" : { + "T:584732510" : [ { + "source" : 15, + "destination" : 23, + "relation" : "ccomp" + }, { + "source" : 23, + "destination" : 25, + "relation" : "dobj" + } ] + }, + "controller" : { + "E:1882710110" : [ { + "source" : 15, + "destination" : 11, + "relation" : "nsubj" + }, { + "source" : 11, + "destination" : 10, + "relation" : "compound" + } ], + "E:1565829439" : [ { + "source" : 15, + "destination" : 11, + "relation" : "nsubj" + }, { + "source" : 11, + "destination" : 10, + "relation" : "compound" + } ], + "E:-161860347" : [ { + "source" : 15, + "destination" : 11, + "relation" : "nsubj" + }, { + "source" : 11, + "destination" : 10, + "relation" : "compound" + } ], + "E:-1016857809" : [ { + "source" : 15, + "destination" : 11, + "relation" : "nsubj" + }, { + "source" : 11, + "destination" : 10, + "relation" : "compound" + } ], + "T:-2075982874" : [ { + "source" : 15, + "destination" : 11, + "relation" : "nsubj" + }, { + "source" : 11, + "destination" : 10, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 10, + "end" : 26 + }, + "characterStartOffset" : 2024, + "characterEndOffset" : 2114, + "sentence" : 16, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Positive_activation_syntax_1_verb" + }, { + "type" : "EventMention", + "id" : "E:1332281337", + "text" : "HER3 gene transcription", + "labels" : [ "Transcription", "IncreaseAmount", "Amount", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:1331776980", + "text" : "transcription", + "labels" : [ "Transcription", "IncreaseAmount", "Amount", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 43, + "end" : 44 + }, + "characterStartOffset" : 347, + "characterEndOffset" : 360, + "sentence" : 1, + "document" : "1955805614", + "keep" : true, + "foundBy" : "transcription_1" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:-2075678136", + "text" : "HER3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 41, + "end" : 42 + }, + "characterStartOffset" : 337, + "characterEndOffset" : 341, + "sentence" : 1, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "theme" : { + "T:-2075678136" : [ { + "source" : 43, + "destination" : 41, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 41, + "end" : 44 + }, + "characterStartOffset" : 337, + "characterEndOffset" : 360, + "sentence" : 1, + "document" : "1955805614", + "keep" : true, + "foundBy" : "transcription_1" + }, { + "type" : "EventMention", + "id" : "E:-371746788", + "text" : "PLX4032 led to an increase in phosphorylation of FoxO1/3A between 4–10h after addition of compound (not shown), which is known to promote its dissociation from DNA, and likely discards involvement of these factors as transcriptional regulators of HER3 in response to MAPK", + "labels" : [ "Negative_activation", "ActivationEvent", "ComplexEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-773147476", + "text" : "led to", + "labels" : [ "Negative_activation", "ActivationEvent", "ComplexEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 3, + "end" : 5 + }, + "characterStartOffset" : 1151, + "characterEndOffset" : 1157, + "sentence" : 11, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Positive_activation_nested_syntax_2_verb" + }, + "arguments" : { + "controller" : [ { + "type" : "TextBoundMention", + "id" : "T:1135045177", + "text" : "PLX4032", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 2, + "end" : 3 + }, + "characterStartOffset" : 1143, + "characterEndOffset" : 1150, + "sentence" : 11, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ], + "controlled" : [ { + "type" : "TextBoundMention", + "id" : "T:-1495512989", + "text" : "MAPK", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 49, + "end" : 50 + }, + "characterStartOffset" : 1410, + "characterEndOffset" : 1414, + "sentence" : 11, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-family-entities" + } ] + }, + "paths" : { + "controller" : { + "T:1135045177" : [ { + "source" : 3, + "destination" : 2, + "relation" : "nsubj" + } ] + }, + "controlled" : { + "T:1947497812" : [ { + "source" : 3, + "destination" : 37, + "relation" : "nmod_to" + }, { + "source" : 37, + "destination" : 40, + "relation" : "nmod_of" + } ], + "T:-1495512989" : [ { + "source" : 3, + "destination" : 51, + "relation" : "nmod_to" + }, { + "source" : 51, + "destination" : 49, + "relation" : "compound" + } ] + } + }, + "tokenInterval" : { + "start" : 2, + "end" : 50 + }, + "characterStartOffset" : 1143, + "characterEndOffset" : 1414, + "sentence" : 11, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Positive_activation_nested_syntax_2_verb" + }, { + "type" : "EventMention", + "id" : "E:1442155089", + "text" : "CtBP1, and to a lesser extent CtBP2, increased basal HER3", + "labels" : [ "Negative_activation", "ActivationEvent", "ComplexEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:2084473109", + "text" : "increased", + "labels" : [ "Negative_activation", "ActivationEvent", "ComplexEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 11, + "end" : 12 + }, + "characterStartOffset" : 1849, + "characterEndOffset" : 1858, + "sentence" : 14, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Positive_activation_syntax_1_verb" + }, + "arguments" : { + "controlled" : [ { + "type" : "TextBoundMention", + "id" : "T:-1019446249", + "text" : "HER3", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 13, + "end" : 14 + }, + "characterStartOffset" : 1865, + "characterEndOffset" : 1869, + "sentence" : 14, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ], + "controller" : [ { + "type" : "TextBoundMention", + "id" : "T:1551548366", + "text" : "CtBP1", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 2, + "end" : 3 + }, + "characterStartOffset" : 1812, + "characterEndOffset" : 1817, + "sentence" : 14, + "document" : "1955805614", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "controlled" : { + "T:-1019446249" : [ { + "source" : 11, + "destination" : 13, + "relation" : "dobj" + } ] + }, + "controller" : { + "T:1551548366" : [ { + "source" : 11, + "destination" : 0, + "relation" : "nsubj" + }, { + "source" : 0, + "destination" : 2, + "relation" : "nmod_of" + } ] + } + }, + "tokenInterval" : { + "start" : 2, + "end" : 14 + }, + "characterStartOffset" : 1812, + "characterEndOffset" : 1869, + "sentence" : 14, + "document" : "1955805614", + "keep" : true, + "foundBy" : "Positive_activation_syntax_1_verb" + } ] +} \ No newline at end of file diff --git a/demo/data/sentence-1-odin.json b/demo/data/sentence-1-odin.json new file mode 100644 index 0000000..351b3c3 --- /dev/null +++ b/demo/data/sentence-1-odin.json @@ -0,0 +1,662 @@ +{ + "documents" : { + "-102812588" : { + "id" : "sentence-1-odin", + "text" : "The ubiquitination of RAS inhibits the phosphorylation of MEK by SMAD.", + "sentences" : [ { + "words" : [ "The", "ubiquitination", "of", "RAS", "inhibits", "the", "phosphorylation", "of", "MEK", "by", "SMAD", "." ], + "startOffsets" : [ 0, 4, 19, 22, 26, 35, 39, 55, 58, 62, 65, 69 ], + "endOffsets" : [ 3, 18, 21, 25, 34, 38, 54, 57, 61, 64, 69, 70 ], + "raw" : [ "The", "ubiquitination", "of", "RAS", "inhibits", "the", "phosphorylation", "of", "MEK", "by", "SMAD", "." ], + "tags" : [ "DT", "NN", "IN", "NN", "VBZ", "DT", "NN", "IN", "NN", "IN", "NN", "." ], + "lemmas" : [ "the", "ubiquitination", "of", "ras", "inhibit", "the", "phosphorylation", "of", "mek", "by", "smad", "." ], + "entities" : [ "O", "O", "O", "B-Family", "O", "O", "O", "O", "B-Family", "O", "B-Family", "O" ], + "chunks" : [ "B-NP", "I-NP", "B-PP", "B-NP", "B-VP", "B-NP", "I-NP", "B-PP", "B-NP", "B-PP", "B-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 1, + "destination" : 0, + "relation" : "det" + }, { + "source" : 1, + "destination" : 3, + "relation" : "nmod_of" + }, { + "source" : 3, + "destination" : 2, + "relation" : "case" + }, { + "source" : 4, + "destination" : 1, + "relation" : "nsubj" + }, { + "source" : 4, + "destination" : 6, + "relation" : "dobj" + }, { + "source" : 4, + "destination" : 10, + "relation" : "nmod_by" + }, { + "source" : 6, + "destination" : 5, + "relation" : "det" + }, { + "source" : 6, + "destination" : 8, + "relation" : "nmod_of" + }, { + "source" : 8, + "destination" : 7, + "relation" : "case" + }, { + "source" : 10, + "destination" : 9, + "relation" : "case" + } ], + "roots" : [ 4 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 1, + "destination" : 0, + "relation" : "det" + }, { + "source" : 1, + "destination" : 3, + "relation" : "nmod" + }, { + "source" : 3, + "destination" : 2, + "relation" : "case" + }, { + "source" : 4, + "destination" : 1, + "relation" : "nsubj" + }, { + "source" : 4, + "destination" : 6, + "relation" : "dobj" + }, { + "source" : 4, + "destination" : 10, + "relation" : "nmod" + }, { + "source" : 6, + "destination" : 5, + "relation" : "det" + }, { + "source" : 6, + "destination" : 8, + "relation" : "nmod" + }, { + "source" : 8, + "destination" : 7, + "relation" : "case" + }, { + "source" : 10, + "destination" : 9, + "relation" : "case" + } ], + "roots" : [ 4 ] + } + } + } ] + } + }, + "mentions" : [ { + "type" : "EventMention", + "id" : "E:567100197", + "text" : "ubiquitination of RAS inhibits the phosphorylation of MEK by SMAD", + "labels" : [ "Negative_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:1950128774", + "text" : "inhibits", + "labels" : [ "Negative_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 4, + "end" : 5 + }, + "characterStartOffset" : 26, + "characterEndOffset" : 34, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "Negative_regulation_syntax_1_verb" + }, + "arguments" : { + "controlled" : [ { + "type" : "RelationMention", + "id" : "R:640822790", + "text" : "phosphorylation of MEK by SMAD", + "labels" : [ "Positive_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "arguments" : { + "controlled" : [ { + "type" : "EventMention", + "id" : "E:1927146570", + "text" : "phosphorylation of MEK", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:551228153", + "text" : "phosphorylation", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 6, + "end" : 7 + }, + "characterStartOffset" : 39, + "characterEndOffset" : 54, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_noun" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:45320628", + "text" : "MEK", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 9 + }, + "characterStartOffset" : 58, + "characterEndOffset" : 61, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "ner-family-entities" + } ] + }, + "paths" : { + "theme" : { + "T:45320628" : [ { + "source" : 6, + "destination" : 8, + "relation" : "nmod_of" + } ] + }, + "cause" : { + "T:44044524" : [ { + "source" : 4, + "destination" : 6, + "relation" : "dobj" + }, { + "source" : 4, + "destination" : 10, + "relation" : "nmod_by" + } ] + } + }, + "tokenInterval" : { + "start" : 6, + "end" : 9 + }, + "characterStartOffset" : 39, + "characterEndOffset" : 61, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_noun" + } ], + "controller" : [ { + "type" : "TextBoundMention", + "id" : "T:44044524", + "text" : "SMAD", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 65, + "characterEndOffset" : 69, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "ner-family-entities" + } ] + }, + "paths" : { + "theme" : { + "T:45320628" : [ { + "source" : 6, + "destination" : 8, + "relation" : "nmod_of" + } ] + }, + "cause" : { + "T:44044524" : [ { + "source" : 4, + "destination" : 6, + "relation" : "dobj" + }, { + "source" : 4, + "destination" : 10, + "relation" : "nmod_by" + } ] + } + }, + "tokenInterval" : { + "start" : 6, + "end" : 11 + }, + "characterStartOffset" : 39, + "characterEndOffset" : 69, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_noun + toRelationMention" + } ], + "controller" : [ { + "type" : "EventMention", + "id" : "E:-1173943836", + "text" : "ubiquitination of RAS", + "labels" : [ "Ubiquitination", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:590108279", + "text" : "ubiquitination", + "labels" : [ "Ubiquitination", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 1, + "end" : 2 + }, + "characterStartOffset" : 4, + "characterEndOffset" : 18, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "Ubiquitination_syntax_1a_noun" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:-346398583", + "text" : "RAS", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 3, + "end" : 4 + }, + "characterStartOffset" : 22, + "characterEndOffset" : 25, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "ner-family-entities" + } ] + }, + "paths" : { + "theme" : { + "T:-346398583" : [ { + "source" : 1, + "destination" : 3, + "relation" : "nmod_of" + } ] + } + }, + "tokenInterval" : { + "start" : 1, + "end" : 4 + }, + "characterStartOffset" : 4, + "characterEndOffset" : 25, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "Ubiquitination_syntax_1a_noun" + } ] + }, + "paths" : { + "controlled" : { + "E:1927146570" : [ { + "source" : 4, + "destination" : 6, + "relation" : "dobj" + }, { + "source" : 6, + "destination" : 8, + "relation" : "nmod_of" + } ], + "R:640822790" : [ { + "source" : 4, + "destination" : 6, + "relation" : "dobj" + }, { + "source" : 6, + "destination" : 8, + "relation" : "nmod_of" + } ] + }, + "controller" : { + "E:-1173943836" : [ { + "source" : 4, + "destination" : 1, + "relation" : "nsubj" + }, { + "source" : 1, + "destination" : 3, + "relation" : "nmod_of" + } ], + "T:-346398583" : [ { + "source" : 4, + "destination" : 1, + "relation" : "nsubj" + }, { + "source" : 1, + "destination" : 3, + "relation" : "nmod_of" + } ] + } + }, + "tokenInterval" : { + "start" : 1, + "end" : 11 + }, + "characterStartOffset" : 4, + "characterEndOffset" : 69, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "Negative_regulation_syntax_1_verb" + }, { + "type" : "RelationMention", + "id" : "R:640822790", + "text" : "phosphorylation of MEK by SMAD", + "labels" : [ "Positive_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "arguments" : { + "controlled" : [ { + "type" : "EventMention", + "id" : "E:1927146570", + "text" : "phosphorylation of MEK", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:551228153", + "text" : "phosphorylation", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 6, + "end" : 7 + }, + "characterStartOffset" : 39, + "characterEndOffset" : 54, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_noun" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:45320628", + "text" : "MEK", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 9 + }, + "characterStartOffset" : 58, + "characterEndOffset" : 61, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "ner-family-entities" + } ] + }, + "paths" : { + "theme" : { + "T:45320628" : [ { + "source" : 6, + "destination" : 8, + "relation" : "nmod_of" + } ] + }, + "cause" : { + "T:44044524" : [ { + "source" : 4, + "destination" : 6, + "relation" : "dobj" + }, { + "source" : 4, + "destination" : 10, + "relation" : "nmod_by" + } ] + } + }, + "tokenInterval" : { + "start" : 6, + "end" : 9 + }, + "characterStartOffset" : 39, + "characterEndOffset" : 61, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_noun" + } ], + "controller" : [ { + "type" : "TextBoundMention", + "id" : "T:44044524", + "text" : "SMAD", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 65, + "characterEndOffset" : 69, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "ner-family-entities" + } ] + }, + "paths" : { + "theme" : { + "T:45320628" : [ { + "source" : 6, + "destination" : 8, + "relation" : "nmod_of" + } ] + }, + "cause" : { + "T:44044524" : [ { + "source" : 4, + "destination" : 6, + "relation" : "dobj" + }, { + "source" : 4, + "destination" : 10, + "relation" : "nmod_by" + } ] + } + }, + "tokenInterval" : { + "start" : 6, + "end" : 11 + }, + "characterStartOffset" : 39, + "characterEndOffset" : 69, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_noun + toRelationMention" + }, { + "type" : "TextBoundMention", + "id" : "T:-346398583", + "text" : "RAS", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 3, + "end" : 4 + }, + "characterStartOffset" : 22, + "characterEndOffset" : 25, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:45320628", + "text" : "MEK", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 9 + }, + "characterStartOffset" : 58, + "characterEndOffset" : 61, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:44044524", + "text" : "SMAD", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 65, + "characterEndOffset" : 69, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "ner-family-entities" + }, { + "type" : "EventMention", + "id" : "E:-1173943836", + "text" : "ubiquitination of RAS", + "labels" : [ "Ubiquitination", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:590108279", + "text" : "ubiquitination", + "labels" : [ "Ubiquitination", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 1, + "end" : 2 + }, + "characterStartOffset" : 4, + "characterEndOffset" : 18, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "Ubiquitination_syntax_1a_noun" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:-346398583", + "text" : "RAS", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 3, + "end" : 4 + }, + "characterStartOffset" : 22, + "characterEndOffset" : 25, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "ner-family-entities" + } ] + }, + "paths" : { + "theme" : { + "T:-346398583" : [ { + "source" : 1, + "destination" : 3, + "relation" : "nmod_of" + } ] + } + }, + "tokenInterval" : { + "start" : 1, + "end" : 4 + }, + "characterStartOffset" : 4, + "characterEndOffset" : 25, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "Ubiquitination_syntax_1a_noun" + }, { + "type" : "EventMention", + "id" : "E:1927146570", + "text" : "phosphorylation of MEK", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:551228153", + "text" : "phosphorylation", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 6, + "end" : 7 + }, + "characterStartOffset" : 39, + "characterEndOffset" : 54, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_noun" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:45320628", + "text" : "MEK", + "labels" : [ "Family", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 9 + }, + "characterStartOffset" : 58, + "characterEndOffset" : 61, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "ner-family-entities" + } ] + }, + "paths" : { + "theme" : { + "T:45320628" : [ { + "source" : 6, + "destination" : 8, + "relation" : "nmod_of" + } ] + }, + "cause" : { + "T:44044524" : [ { + "source" : 4, + "destination" : 6, + "relation" : "dobj" + }, { + "source" : 4, + "destination" : 10, + "relation" : "nmod_by" + } ] + } + }, + "tokenInterval" : { + "start" : 6, + "end" : 9 + }, + "characterStartOffset" : 39, + "characterEndOffset" : 61, + "sentence" : 0, + "document" : "-102812588", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_noun" + } ] +} \ No newline at end of file diff --git a/demo/data/sentence-2-odin.json b/demo/data/sentence-2-odin.json new file mode 100644 index 0000000..a36c551 --- /dev/null +++ b/demo/data/sentence-2-odin.json @@ -0,0 +1,662 @@ +{ + "documents" : { + "-504032905" : { + "id" : "sentence-2-odin", + "text" : "The phosphorylation of Hdm2 by MK2 promotes the ubiquitination of p53.", + "sentences" : [ { + "words" : [ "The", "phosphorylation", "of", "Hdm2", "by", "MK2", "promotes", "the", "ubiquitination", "of", "p53", "." ], + "startOffsets" : [ 0, 4, 20, 23, 28, 31, 35, 44, 48, 63, 66, 69 ], + "endOffsets" : [ 3, 19, 22, 27, 30, 34, 43, 47, 62, 65, 69, 70 ], + "raw" : [ "The", "phosphorylation", "of", "Hdm2", "by", "MK2", "promotes", "the", "ubiquitination", "of", "p53", "." ], + "tags" : [ "DT", "NN", "IN", "NN", "IN", "NN", "VBZ", "DT", "NN", "IN", "NN", "." ], + "lemmas" : [ "the", "phosphorylation", "of", "hdm2", "by", "mk2", "promote", "the", "ubiquitination", "of", "p53", "." ], + "entities" : [ "O", "O", "O", "B-Gene_or_gene_product", "O", "B-Gene_or_gene_product", "O", "O", "O", "O", "B-Gene_or_gene_product", "O" ], + "chunks" : [ "B-NP", "I-NP", "B-PP", "B-NP", "B-PP", "B-NP", "B-VP", "B-NP", "I-NP", "B-PP", "B-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 1, + "destination" : 0, + "relation" : "det" + }, { + "source" : 1, + "destination" : 3, + "relation" : "nmod_of" + }, { + "source" : 3, + "destination" : 2, + "relation" : "case" + }, { + "source" : 3, + "destination" : 5, + "relation" : "nmod_by" + }, { + "source" : 5, + "destination" : 4, + "relation" : "case" + }, { + "source" : 6, + "destination" : 1, + "relation" : "nsubj" + }, { + "source" : 6, + "destination" : 8, + "relation" : "dobj" + }, { + "source" : 8, + "destination" : 7, + "relation" : "det" + }, { + "source" : 8, + "destination" : 10, + "relation" : "nmod_of" + }, { + "source" : 10, + "destination" : 9, + "relation" : "case" + } ], + "roots" : [ 6 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 1, + "destination" : 0, + "relation" : "det" + }, { + "source" : 1, + "destination" : 3, + "relation" : "nmod" + }, { + "source" : 3, + "destination" : 2, + "relation" : "case" + }, { + "source" : 3, + "destination" : 5, + "relation" : "nmod" + }, { + "source" : 5, + "destination" : 4, + "relation" : "case" + }, { + "source" : 6, + "destination" : 1, + "relation" : "nsubj" + }, { + "source" : 6, + "destination" : 8, + "relation" : "dobj" + }, { + "source" : 8, + "destination" : 7, + "relation" : "det" + }, { + "source" : 8, + "destination" : 10, + "relation" : "nmod" + }, { + "source" : 10, + "destination" : 9, + "relation" : "case" + } ], + "roots" : [ 6 ] + } + } + } ] + } + }, + "mentions" : [ { + "type" : "EventMention", + "id" : "E:-910997552", + "text" : "phosphorylation of Hdm2 by MK2 promotes the ubiquitination of p53", + "labels" : [ "Positive_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:1695841998", + "text" : "promotes", + "labels" : [ "Positive_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 6, + "end" : 7 + }, + "characterStartOffset" : 35, + "characterEndOffset" : 43, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "Positive_regulation_syntax_1_verb" + }, + "arguments" : { + "controlled" : [ { + "type" : "EventMention", + "id" : "E:184326113", + "text" : "ubiquitination of p53", + "labels" : [ "Ubiquitination", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:1014798839", + "text" : "ubiquitination", + "labels" : [ "Ubiquitination", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 9 + }, + "characterStartOffset" : 48, + "characterEndOffset" : 62, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "Ubiquitination_syntax_1a_noun" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:-1963583208", + "text" : "p53", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 66, + "characterEndOffset" : 69, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "theme" : { + "T:-1963583208" : [ { + "source" : 8, + "destination" : 10, + "relation" : "nmod_of" + } ] + } + }, + "tokenInterval" : { + "start" : 8, + "end" : 11 + }, + "characterStartOffset" : 48, + "characterEndOffset" : 69, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "Ubiquitination_syntax_1a_noun" + } ], + "controller" : [ { + "type" : "RelationMention", + "id" : "R:-1862793440", + "text" : "phosphorylation of Hdm2 by MK2", + "labels" : [ "Positive_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "arguments" : { + "controlled" : [ { + "type" : "EventMention", + "id" : "E:-1974354674", + "text" : "phosphorylation of Hdm2", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-1172280856", + "text" : "phosphorylation", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 1, + "end" : 2 + }, + "characterStartOffset" : 4, + "characterEndOffset" : 19, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_noun" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:1278265922", + "text" : "Hdm2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 3, + "end" : 4 + }, + "characterStartOffset" : 23, + "characterEndOffset" : 27, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "theme" : { + "T:1278265922" : [ { + "source" : 1, + "destination" : 3, + "relation" : "nmod_of" + } ] + }, + "cause" : { + "T:-1407646048" : [ { + "source" : 1, + "destination" : 3, + "relation" : "nmod_of" + }, { + "source" : 3, + "destination" : 5, + "relation" : "nmod_by" + } ] + } + }, + "tokenInterval" : { + "start" : 1, + "end" : 4 + }, + "characterStartOffset" : 4, + "characterEndOffset" : 27, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_noun" + } ], + "controller" : [ { + "type" : "TextBoundMention", + "id" : "T:-1407646048", + "text" : "MK2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 5, + "end" : 6 + }, + "characterStartOffset" : 31, + "characterEndOffset" : 34, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "theme" : { + "T:1278265922" : [ { + "source" : 1, + "destination" : 3, + "relation" : "nmod_of" + } ] + }, + "cause" : { + "T:-1407646048" : [ { + "source" : 1, + "destination" : 3, + "relation" : "nmod_of" + }, { + "source" : 3, + "destination" : 5, + "relation" : "nmod_by" + } ] + } + }, + "tokenInterval" : { + "start" : 1, + "end" : 6 + }, + "characterStartOffset" : 4, + "characterEndOffset" : 34, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_noun + toRelationMention" + } ] + }, + "paths" : { + "controlled" : { + "E:184326113" : [ { + "source" : 6, + "destination" : 8, + "relation" : "dobj" + }, { + "source" : 8, + "destination" : 10, + "relation" : "nmod_of" + } ] + }, + "controller" : { + "E:-1974354674" : [ { + "source" : 6, + "destination" : 1, + "relation" : "nsubj" + }, { + "source" : 1, + "destination" : 3, + "relation" : "nmod_of" + } ], + "R:-1862793440" : [ { + "source" : 6, + "destination" : 1, + "relation" : "nsubj" + }, { + "source" : 1, + "destination" : 3, + "relation" : "nmod_of" + } ], + "T:1278265922" : [ { + "source" : 6, + "destination" : 1, + "relation" : "nsubj" + }, { + "source" : 1, + "destination" : 3, + "relation" : "nmod_of" + } ] + } + }, + "tokenInterval" : { + "start" : 1, + "end" : 11 + }, + "characterStartOffset" : 4, + "characterEndOffset" : 69, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "Positive_regulation_syntax_1_verb" + }, { + "type" : "RelationMention", + "id" : "R:-1862793440", + "text" : "phosphorylation of Hdm2 by MK2", + "labels" : [ "Positive_regulation", "Regulation", "ComplexEvent", "Event", "PossibleController" ], + "arguments" : { + "controlled" : [ { + "type" : "EventMention", + "id" : "E:-1974354674", + "text" : "phosphorylation of Hdm2", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-1172280856", + "text" : "phosphorylation", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 1, + "end" : 2 + }, + "characterStartOffset" : 4, + "characterEndOffset" : 19, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_noun" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:1278265922", + "text" : "Hdm2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 3, + "end" : 4 + }, + "characterStartOffset" : 23, + "characterEndOffset" : 27, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "theme" : { + "T:1278265922" : [ { + "source" : 1, + "destination" : 3, + "relation" : "nmod_of" + } ] + }, + "cause" : { + "T:-1407646048" : [ { + "source" : 1, + "destination" : 3, + "relation" : "nmod_of" + }, { + "source" : 3, + "destination" : 5, + "relation" : "nmod_by" + } ] + } + }, + "tokenInterval" : { + "start" : 1, + "end" : 4 + }, + "characterStartOffset" : 4, + "characterEndOffset" : 27, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_noun" + } ], + "controller" : [ { + "type" : "TextBoundMention", + "id" : "T:-1407646048", + "text" : "MK2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 5, + "end" : 6 + }, + "characterStartOffset" : 31, + "characterEndOffset" : 34, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "theme" : { + "T:1278265922" : [ { + "source" : 1, + "destination" : 3, + "relation" : "nmod_of" + } ] + }, + "cause" : { + "T:-1407646048" : [ { + "source" : 1, + "destination" : 3, + "relation" : "nmod_of" + }, { + "source" : 3, + "destination" : 5, + "relation" : "nmod_by" + } ] + } + }, + "tokenInterval" : { + "start" : 1, + "end" : 6 + }, + "characterStartOffset" : 4, + "characterEndOffset" : 34, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_noun + toRelationMention" + }, { + "type" : "TextBoundMention", + "id" : "T:1278265922", + "text" : "Hdm2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 3, + "end" : 4 + }, + "characterStartOffset" : 23, + "characterEndOffset" : 27, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-1407646048", + "text" : "MK2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 5, + "end" : 6 + }, + "characterStartOffset" : 31, + "characterEndOffset" : 34, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-1963583208", + "text" : "p53", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 66, + "characterEndOffset" : 69, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "EventMention", + "id" : "E:-1974354674", + "text" : "phosphorylation of Hdm2", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:-1172280856", + "text" : "phosphorylation", + "labels" : [ "Phosphorylation", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 1, + "end" : 2 + }, + "characterStartOffset" : 4, + "characterEndOffset" : 19, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_noun" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:1278265922", + "text" : "Hdm2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 3, + "end" : 4 + }, + "characterStartOffset" : 23, + "characterEndOffset" : 27, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "theme" : { + "T:1278265922" : [ { + "source" : 1, + "destination" : 3, + "relation" : "nmod_of" + } ] + }, + "cause" : { + "T:-1407646048" : [ { + "source" : 1, + "destination" : 3, + "relation" : "nmod_of" + }, { + "source" : 3, + "destination" : 5, + "relation" : "nmod_by" + } ] + } + }, + "tokenInterval" : { + "start" : 1, + "end" : 4 + }, + "characterStartOffset" : 4, + "characterEndOffset" : 27, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "Phosphorylation_syntax_1a_noun" + }, { + "type" : "EventMention", + "id" : "E:184326113", + "text" : "ubiquitination of p53", + "labels" : [ "Ubiquitination", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:1014798839", + "text" : "ubiquitination", + "labels" : [ "Ubiquitination", "AdditionEvent", "SimpleEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 8, + "end" : 9 + }, + "characterStartOffset" : 48, + "characterEndOffset" : 62, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "Ubiquitination_syntax_1a_noun" + }, + "arguments" : { + "theme" : [ { + "type" : "TextBoundMention", + "id" : "T:-1963583208", + "text" : "p53", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 66, + "characterEndOffset" : 69, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "paths" : { + "theme" : { + "T:-1963583208" : [ { + "source" : 8, + "destination" : 10, + "relation" : "nmod_of" + } ] + } + }, + "tokenInterval" : { + "start" : 8, + "end" : 11 + }, + "characterStartOffset" : 48, + "characterEndOffset" : 69, + "sentence" : 0, + "document" : "-504032905", + "keep" : true, + "foundBy" : "Ubiquitination_syntax_1a_noun" + } ] +} \ No newline at end of file diff --git a/demo/data/sentence-3-odin.json b/demo/data/sentence-3-odin.json new file mode 100644 index 0000000..f7368a5 --- /dev/null +++ b/demo/data/sentence-3-odin.json @@ -0,0 +1,277 @@ +{ + "documents" : { + "-2044104037" : { + "id" : "sentence-3-odin", + "text" : "Induction of p21 by p53 following DNA damage inhibits both Cdk4 and Cdk2 activities.", + "sentences" : [ { + "words" : [ "Induction", "of", "p21", "by", "p53", "following", "DNA", "damage", "inhibits", "both", "Cdk4", "and", "Cdk2", "activities", "." ], + "startOffsets" : [ 0, 10, 13, 17, 20, 24, 34, 38, 45, 54, 59, 64, 68, 73, 83 ], + "endOffsets" : [ 9, 12, 16, 19, 23, 33, 37, 44, 53, 58, 63, 67, 72, 83, 84 ], + "raw" : [ "Induction", "of", "p21", "by", "p53", "following", "DNA", "damage", "inhibits", "both", "Cdk4", "and", "Cdk2", "activities", "." ], + "tags" : [ "NN", "IN", "NN", "IN", "NN", "VBG", "NN", "NN", "VBZ", "CC", "NN", "CC", "NN", "NNS", "." ], + "lemmas" : [ "induction", "of", "p21", "by", "p53", "follow", "dna", "damage", "inhibit", "both", "cdk4", "and", "cdk2", "activity", "." ], + "entities" : [ "O", "O", "B-Gene_or_gene_product", "O", "B-Gene_or_gene_product", "O", "B-BioProcess", "I-BioProcess", "O", "O", "B-Gene_or_gene_product", "O", "B-Gene_or_gene_product", "O", "O" ], + "chunks" : [ "B-NP", "B-PP", "B-NP", "B-PP", "B-NP", "I-NP", "I-NP", "I-NP", "I-NP", "O", "B-NP", "I-NP", "I-NP", "I-NP", "O" ], + "graphs" : { + "universal-enhanced" : { + "edges" : [ { + "source" : 0, + "destination" : 2, + "relation" : "nmod_of" + }, { + "source" : 2, + "destination" : 1, + "relation" : "case" + }, { + "source" : 2, + "destination" : 4, + "relation" : "nmod_by" + }, { + "source" : 4, + "destination" : 3, + "relation" : "case" + }, { + "source" : 4, + "destination" : 7, + "relation" : "nmod_following" + }, { + "source" : 7, + "destination" : 5, + "relation" : "case" + }, { + "source" : 7, + "destination" : 6, + "relation" : "compound" + }, { + "source" : 8, + "destination" : 0, + "relation" : "nsubj" + }, { + "source" : 8, + "destination" : 13, + "relation" : "nmod_both" + }, { + "source" : 10, + "destination" : 11, + "relation" : "cc" + }, { + "source" : 10, + "destination" : 12, + "relation" : "conj_and" + }, { + "source" : 13, + "destination" : 9, + "relation" : "case" + }, { + "source" : 13, + "destination" : 10, + "relation" : "compound" + }, { + "source" : 13, + "destination" : 12, + "relation" : "compound" + } ], + "roots" : [ 8 ] + }, + "universal-basic" : { + "edges" : [ { + "source" : 0, + "destination" : 2, + "relation" : "nmod" + }, { + "source" : 2, + "destination" : 1, + "relation" : "case" + }, { + "source" : 2, + "destination" : 4, + "relation" : "nmod" + }, { + "source" : 4, + "destination" : 3, + "relation" : "case" + }, { + "source" : 4, + "destination" : 7, + "relation" : "nmod" + }, { + "source" : 7, + "destination" : 5, + "relation" : "case" + }, { + "source" : 7, + "destination" : 6, + "relation" : "compound" + }, { + "source" : 8, + "destination" : 0, + "relation" : "nsubj" + }, { + "source" : 8, + "destination" : 13, + "relation" : "nmod" + }, { + "source" : 10, + "destination" : 11, + "relation" : "cc" + }, { + "source" : 10, + "destination" : 12, + "relation" : "conj" + }, { + "source" : 13, + "destination" : 9, + "relation" : "case" + }, { + "source" : 13, + "destination" : 10, + "relation" : "compound" + } ], + "roots" : [ 8 ] + } + } + } ] + } + }, + "mentions" : [ { + "type" : "TextBoundMention", + "id" : "T:525274626", + "text" : "p21", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 2, + "end" : 3 + }, + "characterStartOffset" : 13, + "characterEndOffset" : 16, + "sentence" : 0, + "document" : "-2044104037", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-628425571", + "text" : "p53", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 4, + "end" : 5 + }, + "characterStartOffset" : 20, + "characterEndOffset" : 23, + "sentence" : 0, + "document" : "-2044104037", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:-987770616", + "text" : "DNA damage", + "labels" : [ "BioProcess", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 6, + "end" : 8 + }, + "characterStartOffset" : 34, + "characterEndOffset" : 44, + "sentence" : 0, + "document" : "-2044104037", + "keep" : true, + "foundBy" : "ner-bioprocess-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:1526514725", + "text" : "Cdk4", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 10, + "end" : 11 + }, + "characterStartOffset" : 59, + "characterEndOffset" : 63, + "sentence" : 0, + "document" : "-2044104037", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "TextBoundMention", + "id" : "T:694682334", + "text" : "Cdk2", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 12, + "end" : 13 + }, + "characterStartOffset" : 68, + "characterEndOffset" : 72, + "sentence" : 0, + "document" : "-2044104037", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + }, { + "type" : "EventMention", + "id" : "E:1721590917", + "text" : "Induction of p21 by p53", + "labels" : [ "Positive_activation", "ActivationEvent", "ComplexEvent", "Event", "PossibleController" ], + "trigger" : { + "type" : "TextBoundMention", + "id" : "T:7897271", + "text" : "Induction", + "labels" : [ "Positive_activation", "ActivationEvent", "ComplexEvent", "Event", "PossibleController" ], + "tokenInterval" : { + "start" : 0, + "end" : 1 + }, + "characterStartOffset" : 0, + "characterEndOffset" : 9, + "sentence" : 0, + "document" : "-2044104037", + "keep" : true, + "foundBy" : "Positive_activation_token_2_noun" + }, + "arguments" : { + "controlled" : [ { + "type" : "TextBoundMention", + "id" : "T:525274626", + "text" : "p21", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 2, + "end" : 3 + }, + "characterStartOffset" : 13, + "characterEndOffset" : 16, + "sentence" : 0, + "document" : "-2044104037", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ], + "controller" : [ { + "type" : "TextBoundMention", + "id" : "T:-628425571", + "text" : "p53", + "labels" : [ "Gene_or_gene_product", "MacroMolecule", "Equivalable", "BioChemicalEntity", "BioEntity", "Entity", "PossibleController" ], + "tokenInterval" : { + "start" : 4, + "end" : 5 + }, + "characterStartOffset" : 20, + "characterEndOffset" : 23, + "sentence" : 0, + "document" : "-2044104037", + "keep" : true, + "foundBy" : "ner-gene_or_gene_product-entities" + } ] + }, + "tokenInterval" : { + "start" : 0, + "end" : 5 + }, + "characterStartOffset" : 0, + "characterEndOffset" : 23, + "sentence" : 0, + "document" : "-2044104037", + "keep" : true, + "foundBy" : "Positive_activation_token_2_noun" + } ] +} \ No newline at end of file diff --git a/demo/data/test-brat.ann b/demo/data/test-brat.ann new file mode 100644 index 0000000..b762838 --- /dev/null +++ b/demo/data/test-brat.ann @@ -0,0 +1,62 @@ +Word VeryLongWord2 Word3 . This is a test . This is a test . This is a test . This is a test . +##### +# Test Case 1: +# - Tokens and Links listed in arbitrary order +# - Simple Links + +# The char offsets for T1 is out of order compared to T2 and T3 +T1 Tag2 19 24 Word3 +T2 Tag 0 4 Word +T3 LongLongLongLongLongTag 5 18 VeryLongWord2 + +# R1 and R2 show the slotting of overlapping Links that don't cross +# To shake things up a bit, the inner Link (R1, between T1 and T3) is listed +# before the outer Link +R1 Link arg1:T1 arg2:T3 +R2 Link arg1:T1 arg2:T2 + +##### +# Test Case 2: +# - Simple nested Links (nested, no crossings) + +T4 Tag 27 31 This +T5 Tag 32 34 is +T6 Tag 35 36 a +T7 Tag 37 41 test + +R3 Left arg1:T4 arg2:T5 +R4 Right arg1:T6 arg2:T7 +R5 Top arg1:R3 arg2:R4 + +##### +# Test Case 3: +# - Overlapping Links (not nested, no crossings) + +T8 Tag 44 48 This +T9 Tag 49 51 is +T10 Tag 52 53 a +T11 Tag 54 58 test + +R6 A arg1:T8 arg2:T9 +R7 B arg1:T8 arg2:T10 +R8 C arg1:T8 arg2:T11 + +##### +# Test Case 4: +# - Complex Links (nested, crossings) + +T12 Tag 61 65 This +T13 Tag 66 68 is +T14 Tag 69 70 a +T15 Tag 71 75 test +T16 Tag 78 82 This +T17 Tag 83 85 is +T18 Tag 86 87 a +T19 Tag 88 92 test + +R9 A arg1:T12 arg2:T14 +R10 B arg1:T13 arg2:T15 +R11 C arg1:T14 arg2:T16 +R12 D arg1:T15 arg2:T17 +R13 E arg1:T18 arg2:T19 +R14 F arg1:R9 arg2:T19 \ No newline at end of file diff --git a/demo/data/test-odin.json b/demo/data/test-odin.json new file mode 100644 index 0000000..a99782d --- /dev/null +++ b/demo/data/test-odin.json @@ -0,0 +1,180 @@ +{ + "documents": { + "-1180172198": { + "sentences": [ + { + "words": ["Gonzo", "married", "Camilla", "."], + "startOffsets": [0, 6, 14, 21], + "endOffsets": [5, 13, 21, 22], + "tags": ["NNP", "VBD", "NNP", "."], + "lemmas": ["Gonzo", "marry", "Camilla", "."], + "entities": ["O", "O", "PERSON", "O"], + "norms": ["O", "O", "O", "O"], + "chunks": ["B-NP", "B-VP", "B-NP", "O"], + "graphs": { + "stanford-basic": { + "edges": [ + { + "source": 1, + "destination": 0, + "relation": "nsubj" + }, + { + "source": 1, + "destination": 2, + "relation": "dobj" + }, + { + "source": 1, + "destination": 3, + "relation": "punct" + } + ], + "roots": [1] + }, + "stanford-collapsed": { + "edges": [ + { + "source": 1, + "destination": 0, + "relation": "nsubj" + }, + { + "source": 1, + "destination": 2, + "relation": "dobj" + }, + { + "source": 1, + "destination": 3, + "relation": "punct" + } + ], + "roots": [1] + } + } + } + ] + } + }, + "mentions": [ + { + "type": "TextBoundMention", + "id": "T:648733472", + "text": "Camilla", + "labels": ["Person", "PossiblePerson", "Entity"], + "tokenInterval": { + "start": 2, + "end": 3 + }, + "characterStartOffset": 14, + "characterEndOffset": 21, + "sentence": 0, + "document": "-1180172198", + "keep": true, + "foundBy": "ner-person" + }, + { + "type": "EventMention", + "id": "E:1351231268", + "text": "Gonzo married Camilla", + "labels": ["Marry"], + "trigger": { + "type": "TextBoundMention", + "id": "T:1627076846", + "text": "married", + "labels": ["Marry"], + "tokenInterval": { + "start": 1, + "end": 2 + }, + "characterStartOffset": 6, + "characterEndOffset": 13, + "sentence": 0, + "document": "-1180172198", + "keep": true, + "foundBy": "marry-syntax-1" + }, + "arguments": { + "spouse": [ + { + "type": "TextBoundMention", + "id": "T:1618195043", + "text": "Gonzo", + "labels": ["Person", "PossiblePerson", "Entity"], + "tokenInterval": { + "start": 0, + "end": 1 + }, + "characterStartOffset": 0, + "characterEndOffset": 5, + "sentence": 0, + "document": "-1180172198", + "keep": true, + "foundBy": "ner-person" + }, + { + "type": "TextBoundMention", + "id": "T:648733472", + "text": "Camilla", + "labels": ["Person", "PossiblePerson", "Entity"], + "tokenInterval": { + "start": 2, + "end": 3 + }, + "characterStartOffset": 14, + "characterEndOffset": 21, + "sentence": 0, + "document": "-1180172198", + "keep": true, + "foundBy": "ner-person" + } + ] + }, + "paths": { + "spouse": { + "T:1618195043": [ + { + "source": 1, + "destination": 0, + "relation": "nsubj" + } + ], + "T:648733472": [ + { + "source": 1, + "destination": 2, + "relation": "dobj" + } + ] + } + }, + "tokenInterval": { + "start": 0, + "end": 3 + }, + "characterStartOffset": 0, + "characterEndOffset": 21, + "sentence": 0, + "document": "-1180172198", + "keep": true, + "foundBy": "marry-syntax-1" + }, + { + "type": "TextBoundMention", + "id": "T:1618195043", + "text": "Gonzo", + "labels": ["Person", "PossiblePerson", "Entity"], + "tokenInterval": { + "start": 0, + "end": 1 + }, + "characterStartOffset": 0, + "characterEndOffset": 5, + "sentence": 0, + "document": "-1180172198", + "keep": true, + "foundBy": "ner-person" + } + ] +} \ No newline at end of file diff --git a/demo/demo.min.css b/demo/demo.min.css new file mode 100644 index 0000000..edcf681 --- /dev/null +++ b/demo/demo.min.css @@ -0,0 +1,52 @@ +@charset "UTF-8";/*! + * Bootstrap v4.1.3 (https://getbootstrap.com/) + * Copyright 2011-2018 The Bootstrap Authors + * Copyright 2011-2018 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700);:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus{outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;font-family:inherit;font-weight:500;line-height:1.2;color:inherit}.h1,h1{font-size:2.5rem}.h2,h2{font-size:2rem}.h3,h3{font-size:1.75rem}.h4,h4{font-size:1.5rem}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:6rem;font-weight:300;line-height:1.2}.display-2{font-size:5.5rem;font-weight:300;line-height:1.2}.display-3{font-size:4.5rem;font-weight:300;line-height:1.2}.display-4{font-size:3.5rem;font-weight:300;line-height:1.2}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgba(0,0,0,.1)}.small,small{font-size:80%;font-weight:400}.mark,mark{padding:.2em;background-color:#fcf8e3}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:90%;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote-footer{display:block;font-size:80%;color:#6c757d}.blockquote-footer::before{content:"— "}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid #dee2e6;border-radius:.25rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:90%;color:#6c757d}code{font-size:87.5%;color:#e83e8c;word-break:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:87.5%;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:100%;font-weight:700}pre{display:block;font-size:87.5%;color:#212529}pre code{font-size:inherit;color:inherit;word-break:normal}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}.container-fluid{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{display:flex;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*=col-]{padding-right:0;padding-left:0}.col,.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-auto,.col-lg,.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-auto,.col-md,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-auto,.col-sm,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-auto,.col-xl,.col-xl-1,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-auto{position:relative;width:100%;min-height:1px;padding-right:15px;padding-left:15px}.col{flex-basis:0;flex-grow:1;max-width:100%}.col-auto{flex:0 0 auto;width:auto;max-width:none}.col-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-3{flex:0 0 25%;max-width:25%}.col-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-6{flex:0 0 50%;max-width:50%}.col-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-9{flex:0 0 75%;max-width:75%}.col-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-12{flex:0 0 100%;max-width:100%}.order-first{order:-1}.order-last{order:13}.order-0{order:0}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.order-8{order:8}.order-9{order:9}.order-10{order:10}.order-11{order:11}.order-12{order:12}.offset-1{margin-left:8.3333333333%}.offset-2{margin-left:16.6666666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.3333333333%}.offset-5{margin-left:41.6666666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.3333333333%}.offset-8{margin-left:66.6666666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.3333333333%}.offset-11{margin-left:91.6666666667%}@media (min-width:576px){.col-sm{flex-basis:0;flex-grow:1;max-width:100%}.col-sm-auto{flex:0 0 auto;width:auto;max-width:none}.col-sm-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-sm-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-sm-3{flex:0 0 25%;max-width:25%}.col-sm-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-sm-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-sm-6{flex:0 0 50%;max-width:50%}.col-sm-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-sm-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-sm-9{flex:0 0 75%;max-width:75%}.col-sm-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-sm-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-sm-12{flex:0 0 100%;max-width:100%}.order-sm-first{order:-1}.order-sm-last{order:13}.order-sm-0{order:0}.order-sm-1{order:1}.order-sm-2{order:2}.order-sm-3{order:3}.order-sm-4{order:4}.order-sm-5{order:5}.order-sm-6{order:6}.order-sm-7{order:7}.order-sm-8{order:8}.order-sm-9{order:9}.order-sm-10{order:10}.order-sm-11{order:11}.order-sm-12{order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.3333333333%}.offset-sm-2{margin-left:16.6666666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.3333333333%}.offset-sm-5{margin-left:41.6666666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.3333333333%}.offset-sm-8{margin-left:66.6666666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.3333333333%}.offset-sm-11{margin-left:91.6666666667%}}@media (min-width:768px){.col-md{flex-basis:0;flex-grow:1;max-width:100%}.col-md-auto{flex:0 0 auto;width:auto;max-width:none}.col-md-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-md-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-md-3{flex:0 0 25%;max-width:25%}.col-md-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-md-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-md-6{flex:0 0 50%;max-width:50%}.col-md-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-md-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-md-9{flex:0 0 75%;max-width:75%}.col-md-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-md-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-md-12{flex:0 0 100%;max-width:100%}.order-md-first{order:-1}.order-md-last{order:13}.order-md-0{order:0}.order-md-1{order:1}.order-md-2{order:2}.order-md-3{order:3}.order-md-4{order:4}.order-md-5{order:5}.order-md-6{order:6}.order-md-7{order:7}.order-md-8{order:8}.order-md-9{order:9}.order-md-10{order:10}.order-md-11{order:11}.order-md-12{order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.3333333333%}.offset-md-2{margin-left:16.6666666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.3333333333%}.offset-md-5{margin-left:41.6666666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.3333333333%}.offset-md-8{margin-left:66.6666666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.3333333333%}.offset-md-11{margin-left:91.6666666667%}}@media (min-width:992px){.col-lg{flex-basis:0;flex-grow:1;max-width:100%}.col-lg-auto{flex:0 0 auto;width:auto;max-width:none}.col-lg-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-lg-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-lg-3{flex:0 0 25%;max-width:25%}.col-lg-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-lg-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-lg-6{flex:0 0 50%;max-width:50%}.col-lg-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-lg-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-lg-9{flex:0 0 75%;max-width:75%}.col-lg-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-lg-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-lg-12{flex:0 0 100%;max-width:100%}.order-lg-first{order:-1}.order-lg-last{order:13}.order-lg-0{order:0}.order-lg-1{order:1}.order-lg-2{order:2}.order-lg-3{order:3}.order-lg-4{order:4}.order-lg-5{order:5}.order-lg-6{order:6}.order-lg-7{order:7}.order-lg-8{order:8}.order-lg-9{order:9}.order-lg-10{order:10}.order-lg-11{order:11}.order-lg-12{order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.3333333333%}.offset-lg-2{margin-left:16.6666666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.3333333333%}.offset-lg-5{margin-left:41.6666666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.3333333333%}.offset-lg-8{margin-left:66.6666666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.3333333333%}.offset-lg-11{margin-left:91.6666666667%}}@media (min-width:1200px){.col-xl{flex-basis:0;flex-grow:1;max-width:100%}.col-xl-auto{flex:0 0 auto;width:auto;max-width:none}.col-xl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-xl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-xl-3{flex:0 0 25%;max-width:25%}.col-xl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-xl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-xl-6{flex:0 0 50%;max-width:50%}.col-xl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-xl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-xl-9{flex:0 0 75%;max-width:75%}.col-xl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-xl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-xl-12{flex:0 0 100%;max-width:100%}.order-xl-first{order:-1}.order-xl-last{order:13}.order-xl-0{order:0}.order-xl-1{order:1}.order-xl-2{order:2}.order-xl-3{order:3}.order-xl-4{order:4}.order-xl-5{order:5}.order-xl-6{order:6}.order-xl-7{order:7}.order-xl-8{order:8}.order-xl-9{order:9}.order-xl-10{order:10}.order-xl-11{order:11}.order-xl-12{order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.3333333333%}.offset-xl-2{margin-left:16.6666666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.3333333333%}.offset-xl-5{margin-left:41.6666666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.3333333333%}.offset-xl-8{margin-left:66.6666666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.3333333333%}.offset-xl-11{margin-left:91.6666666667%}}.table{width:100%;margin-bottom:1rem;background-color:transparent}.table td,.table th{padding:.75rem;vertical-align:top;border-top:1px solid #dee2e6}.table thead th{vertical-align:bottom;border-bottom:2px solid #dee2e6}.table tbody+tbody{border-top:2px solid #dee2e6}.table .table{background-color:#fff}.table-sm td,.table-sm th{padding:.3rem}.table-bordered{border:1px solid #dee2e6}.table-bordered td,.table-bordered th{border:1px solid #dee2e6}.table-bordered thead td,.table-bordered thead th{border-bottom-width:2px}.table-borderless tbody+tbody,.table-borderless td,.table-borderless th,.table-borderless thead th{border:0}.table-striped tbody tr:nth-of-type(odd){background-color:rgba(0,0,0,.05)}.table-hover tbody tr:hover{background-color:rgba(0,0,0,.075)}.table-primary,.table-primary>td,.table-primary>th{background-color:#b8daff}.table-hover .table-primary:hover{background-color:#9fcdff}.table-hover .table-primary:hover>td,.table-hover .table-primary:hover>th{background-color:#9fcdff}.table-secondary,.table-secondary>td,.table-secondary>th{background-color:#d6d8db}.table-hover .table-secondary:hover{background-color:#c8cbcf}.table-hover .table-secondary:hover>td,.table-hover .table-secondary:hover>th{background-color:#c8cbcf}.table-success,.table-success>td,.table-success>th{background-color:#c3e6cb}.table-hover .table-success:hover{background-color:#b1dfbb}.table-hover .table-success:hover>td,.table-hover .table-success:hover>th{background-color:#b1dfbb}.table-info,.table-info>td,.table-info>th{background-color:#bee5eb}.table-hover .table-info:hover{background-color:#abdde5}.table-hover .table-info:hover>td,.table-hover .table-info:hover>th{background-color:#abdde5}.table-warning,.table-warning>td,.table-warning>th{background-color:#ffeeba}.table-hover .table-warning:hover{background-color:#ffe8a1}.table-hover .table-warning:hover>td,.table-hover .table-warning:hover>th{background-color:#ffe8a1}.table-danger,.table-danger>td,.table-danger>th{background-color:#f5c6cb}.table-hover .table-danger:hover{background-color:#f1b0b7}.table-hover .table-danger:hover>td,.table-hover .table-danger:hover>th{background-color:#f1b0b7}.table-light,.table-light>td,.table-light>th{background-color:#fdfdfe}.table-hover .table-light:hover{background-color:#ececf6}.table-hover .table-light:hover>td,.table-hover .table-light:hover>th{background-color:#ececf6}.table-dark,.table-dark>td,.table-dark>th{background-color:#c6c8ca}.table-hover .table-dark:hover{background-color:#b9bbbe}.table-hover .table-dark:hover>td,.table-hover .table-dark:hover>th{background-color:#b9bbbe}.table-active,.table-active>td,.table-active>th{background-color:rgba(0,0,0,.075)}.table-hover .table-active:hover{background-color:rgba(0,0,0,.075)}.table-hover .table-active:hover>td,.table-hover .table-active:hover>th{background-color:rgba(0,0,0,.075)}.table .thead-dark th{color:#fff;background-color:#212529;border-color:#32383e}.table .thead-light th{color:#495057;background-color:#e9ecef;border-color:#dee2e6}.table-dark{color:#fff;background-color:#212529}.table-dark td,.table-dark th,.table-dark thead th{border-color:#32383e}.table-dark.table-bordered{border:0}.table-dark.table-striped tbody tr:nth-of-type(odd){background-color:rgba(255,255,255,.05)}.table-dark.table-hover tbody tr:hover{background-color:rgba(255,255,255,.075)}@media (max-width:575.98px){.table-responsive-sm{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.table-responsive-sm>.table-bordered{border:0}}@media (max-width:767.98px){.table-responsive-md{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.table-responsive-md>.table-bordered{border:0}}@media (max-width:991.98px){.table-responsive-lg{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.table-responsive-lg>.table-bordered{border:0}}@media (max-width:1199.98px){.table-responsive-xl{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.table-responsive-xl>.table-bordered{border:0}}.table-responsive{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.table-responsive>.table-bordered{border:0}.form-control{display:block;width:100%;height:calc(2.25rem + 2px);padding:.375rem .75rem;font-size:1rem;line-height:1.5;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media screen and (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control::-ms-expand{background-color:transparent;border:0}.form-control:focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.form-control::-webkit-input-placeholder{color:#6c757d;opacity:1}.form-control:-ms-input-placeholder{color:#6c757d;opacity:1}.form-control::-ms-input-placeholder{color:#6c757d;opacity:1}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled,.form-control[readonly]{background-color:#e9ecef;opacity:1}select.form-control:focus::-ms-value{color:#495057;background-color:#fff}.form-control-file,.form-control-range{display:block;width:100%}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.25rem;line-height:1.5}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem;line-height:1.5}.form-control-plaintext{display:block;width:100%;padding-top:.375rem;padding-bottom:.375rem;margin-bottom:0;line-height:1.5;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{height:calc(1.8125rem + 2px);padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.form-control-lg{height:calc(2.875rem + 2px);padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}select.form-control[multiple],select.form-control[size]{height:auto}textarea.form-control{height:auto}.form-group{margin-bottom:1rem}.form-text{display:block;margin-top:.25rem}.form-row{display:flex;flex-wrap:wrap;margin-right:-5px;margin-left:-5px}.form-row>.col,.form-row>[class*=col-]{padding-right:5px;padding-left:5px}.form-check{position:relative;display:block;padding-left:1.25rem}.form-check-input{position:absolute;margin-top:.3rem;margin-left:-1.25rem}.form-check-input:disabled~.form-check-label{color:#6c757d}.form-check-label{margin-bottom:0}.form-check-inline{display:inline-flex;align-items:center;padding-left:0;margin-right:.75rem}.form-check-inline .form-check-input{position:static;margin-top:0;margin-right:.3125rem;margin-left:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#28a745}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;line-height:1.5;color:#fff;background-color:rgba(40,167,69,.9);border-radius:.25rem}.custom-select.is-valid,.form-control.is-valid,.was-validated .custom-select:valid,.was-validated .form-control:valid{border-color:#28a745}.custom-select.is-valid:focus,.form-control.is-valid:focus,.was-validated .custom-select:valid:focus,.was-validated .form-control:valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.custom-select.is-valid~.valid-feedback,.custom-select.is-valid~.valid-tooltip,.form-control.is-valid~.valid-feedback,.form-control.is-valid~.valid-tooltip,.was-validated .custom-select:valid~.valid-feedback,.was-validated .custom-select:valid~.valid-tooltip,.was-validated .form-control:valid~.valid-feedback,.was-validated .form-control:valid~.valid-tooltip{display:block}.form-control-file.is-valid~.valid-feedback,.form-control-file.is-valid~.valid-tooltip,.was-validated .form-control-file:valid~.valid-feedback,.was-validated .form-control-file:valid~.valid-tooltip{display:block}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:#28a745}.form-check-input.is-valid~.valid-feedback,.form-check-input.is-valid~.valid-tooltip,.was-validated .form-check-input:valid~.valid-feedback,.was-validated .form-check-input:valid~.valid-tooltip{display:block}.custom-control-input.is-valid~.custom-control-label,.was-validated .custom-control-input:valid~.custom-control-label{color:#28a745}.custom-control-input.is-valid~.custom-control-label::before,.was-validated .custom-control-input:valid~.custom-control-label::before{background-color:#71dd8a}.custom-control-input.is-valid~.valid-feedback,.custom-control-input.is-valid~.valid-tooltip,.was-validated .custom-control-input:valid~.valid-feedback,.was-validated .custom-control-input:valid~.valid-tooltip{display:block}.custom-control-input.is-valid:checked~.custom-control-label::before,.was-validated .custom-control-input:valid:checked~.custom-control-label::before{background-color:#34ce57}.custom-control-input.is-valid:focus~.custom-control-label::before,.was-validated .custom-control-input:valid:focus~.custom-control-label::before{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(40,167,69,.25)}.custom-file-input.is-valid~.custom-file-label,.was-validated .custom-file-input:valid~.custom-file-label{border-color:#28a745}.custom-file-input.is-valid~.custom-file-label::after,.was-validated .custom-file-input:valid~.custom-file-label::after{border-color:inherit}.custom-file-input.is-valid~.valid-feedback,.custom-file-input.is-valid~.valid-tooltip,.was-validated .custom-file-input:valid~.valid-feedback,.was-validated .custom-file-input:valid~.valid-tooltip{display:block}.custom-file-input.is-valid:focus~.custom-file-label,.was-validated .custom-file-input:valid:focus~.custom-file-label{box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#dc3545}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;line-height:1.5;color:#fff;background-color:rgba(220,53,69,.9);border-radius:.25rem}.custom-select.is-invalid,.form-control.is-invalid,.was-validated .custom-select:invalid,.was-validated .form-control:invalid{border-color:#dc3545}.custom-select.is-invalid:focus,.form-control.is-invalid:focus,.was-validated .custom-select:invalid:focus,.was-validated .form-control:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.custom-select.is-invalid~.invalid-feedback,.custom-select.is-invalid~.invalid-tooltip,.form-control.is-invalid~.invalid-feedback,.form-control.is-invalid~.invalid-tooltip,.was-validated .custom-select:invalid~.invalid-feedback,.was-validated .custom-select:invalid~.invalid-tooltip,.was-validated .form-control:invalid~.invalid-feedback,.was-validated .form-control:invalid~.invalid-tooltip{display:block}.form-control-file.is-invalid~.invalid-feedback,.form-control-file.is-invalid~.invalid-tooltip,.was-validated .form-control-file:invalid~.invalid-feedback,.was-validated .form-control-file:invalid~.invalid-tooltip{display:block}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:#dc3545}.form-check-input.is-invalid~.invalid-feedback,.form-check-input.is-invalid~.invalid-tooltip,.was-validated .form-check-input:invalid~.invalid-feedback,.was-validated .form-check-input:invalid~.invalid-tooltip{display:block}.custom-control-input.is-invalid~.custom-control-label,.was-validated .custom-control-input:invalid~.custom-control-label{color:#dc3545}.custom-control-input.is-invalid~.custom-control-label::before,.was-validated .custom-control-input:invalid~.custom-control-label::before{background-color:#efa2a9}.custom-control-input.is-invalid~.invalid-feedback,.custom-control-input.is-invalid~.invalid-tooltip,.was-validated .custom-control-input:invalid~.invalid-feedback,.was-validated .custom-control-input:invalid~.invalid-tooltip{display:block}.custom-control-input.is-invalid:checked~.custom-control-label::before,.was-validated .custom-control-input:invalid:checked~.custom-control-label::before{background-color:#e4606d}.custom-control-input.is-invalid:focus~.custom-control-label::before,.was-validated .custom-control-input:invalid:focus~.custom-control-label::before{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(220,53,69,.25)}.custom-file-input.is-invalid~.custom-file-label,.was-validated .custom-file-input:invalid~.custom-file-label{border-color:#dc3545}.custom-file-input.is-invalid~.custom-file-label::after,.was-validated .custom-file-input:invalid~.custom-file-label::after{border-color:inherit}.custom-file-input.is-invalid~.invalid-feedback,.custom-file-input.is-invalid~.invalid-tooltip,.was-validated .custom-file-input:invalid~.invalid-feedback,.was-validated .custom-file-input:invalid~.invalid-tooltip{display:block}.custom-file-input.is-invalid:focus~.custom-file-label,.was-validated .custom-file-input:invalid:focus~.custom-file-label{box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.form-inline{display:flex;flex-flow:row wrap;align-items:center}.form-inline .form-check{width:100%}@media (min-width:576px){.form-inline label{display:flex;align-items:center;justify-content:center;margin-bottom:0}.form-inline .form-group{display:flex;flex:0 0 auto;flex-flow:row wrap;align-items:center;margin-bottom:0}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-plaintext{display:inline-block}.form-inline .custom-select,.form-inline .input-group{width:auto}.form-inline .form-check{display:flex;align-items:center;justify-content:center;width:auto;padding-left:0}.form-inline .form-check-input{position:relative;margin-top:0;margin-right:.25rem;margin-left:0}.form-inline .custom-control{align-items:center;justify-content:center}.form-inline .custom-control-label{margin-bottom:0}}.btn{display:inline-block;font-weight:400;text-align:center;white-space:nowrap;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid transparent;padding:.375rem .75rem;font-size:1rem;line-height:1.5;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media screen and (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:focus,.btn:hover{text-decoration:none}.btn.focus,.btn:focus{outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.btn.disabled,.btn:disabled{opacity:.65}.btn:not(:disabled):not(.disabled){cursor:pointer}a.btn.disabled,fieldset:disabled a.btn{pointer-events:none}.btn-primary{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:hover{color:#fff;background-color:#0069d9;border-color:#0062cc}.btn-primary.focus,.btn-primary:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-primary.disabled,.btn-primary:disabled{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:not(:disabled):not(.disabled).active,.btn-primary:not(:disabled):not(.disabled):active,.show>.btn-primary.dropdown-toggle{color:#fff;background-color:#0062cc;border-color:#005cbf}.btn-primary:not(:disabled):not(.disabled).active:focus,.btn-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-secondary{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:hover{color:#fff;background-color:#5a6268;border-color:#545b62}.btn-secondary.focus,.btn-secondary:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-secondary.disabled,.btn-secondary:disabled{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:not(:disabled):not(.disabled).active,.btn-secondary:not(:disabled):not(.disabled):active,.show>.btn-secondary.dropdown-toggle{color:#fff;background-color:#545b62;border-color:#4e555b}.btn-secondary:not(:disabled):not(.disabled).active:focus,.btn-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-success{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:hover{color:#fff;background-color:#218838;border-color:#1e7e34}.btn-success.focus,.btn-success:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-success.disabled,.btn-success:disabled{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:not(:disabled):not(.disabled).active,.btn-success:not(:disabled):not(.disabled):active,.show>.btn-success.dropdown-toggle{color:#fff;background-color:#1e7e34;border-color:#1c7430}.btn-success:not(:disabled):not(.disabled).active:focus,.btn-success:not(:disabled):not(.disabled):active:focus,.show>.btn-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-info{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:hover{color:#fff;background-color:#138496;border-color:#117a8b}.btn-info.focus,.btn-info:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-info.disabled,.btn-info:disabled{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:not(:disabled):not(.disabled).active,.btn-info:not(:disabled):not(.disabled):active,.show>.btn-info.dropdown-toggle{color:#fff;background-color:#117a8b;border-color:#10707f}.btn-info:not(:disabled):not(.disabled).active:focus,.btn-info:not(:disabled):not(.disabled):active:focus,.show>.btn-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-warning{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:hover{color:#212529;background-color:#e0a800;border-color:#d39e00}.btn-warning.focus,.btn-warning:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-warning.disabled,.btn-warning:disabled{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:not(:disabled):not(.disabled).active,.btn-warning:not(:disabled):not(.disabled):active,.show>.btn-warning.dropdown-toggle{color:#212529;background-color:#d39e00;border-color:#c69500}.btn-warning:not(:disabled):not(.disabled).active:focus,.btn-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-danger{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:hover{color:#fff;background-color:#c82333;border-color:#bd2130}.btn-danger.focus,.btn-danger:focus{box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-danger.disabled,.btn-danger:disabled{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:not(:disabled):not(.disabled).active,.btn-danger:not(:disabled):not(.disabled):active,.show>.btn-danger.dropdown-toggle{color:#fff;background-color:#bd2130;border-color:#b21f2d}.btn-danger:not(:disabled):not(.disabled).active:focus,.btn-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-light{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:hover{color:#212529;background-color:#e2e6ea;border-color:#dae0e5}.btn-light.focus,.btn-light:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-light.disabled,.btn-light:disabled{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:not(:disabled):not(.disabled).active,.btn-light:not(:disabled):not(.disabled):active,.show>.btn-light.dropdown-toggle{color:#212529;background-color:#dae0e5;border-color:#d3d9df}.btn-light:not(:disabled):not(.disabled).active:focus,.btn-light:not(:disabled):not(.disabled):active:focus,.show>.btn-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-dark{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:hover{color:#fff;background-color:#23272b;border-color:#1d2124}.btn-dark.focus,.btn-dark:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-dark.disabled,.btn-dark:disabled{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:not(:disabled):not(.disabled).active,.btn-dark:not(:disabled):not(.disabled):active,.show>.btn-dark.dropdown-toggle{color:#fff;background-color:#1d2124;border-color:#171a1d}.btn-dark:not(:disabled):not(.disabled).active:focus,.btn-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-outline-primary{color:#007bff;background-color:transparent;background-image:none;border-color:#007bff}.btn-outline-primary:hover{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary.focus,.btn-outline-primary:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-outline-primary.disabled,.btn-outline-primary:disabled{color:#007bff;background-color:transparent}.btn-outline-primary:not(:disabled):not(.disabled).active,.btn-outline-primary:not(:disabled):not(.disabled):active,.show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary:not(:disabled):not(.disabled).active:focus,.btn-outline-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-outline-secondary{color:#6c757d;background-color:transparent;background-image:none;border-color:#6c757d}.btn-outline-secondary:hover{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary.focus,.btn-outline-secondary:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{color:#6c757d;background-color:transparent}.btn-outline-secondary:not(:disabled):not(.disabled).active,.btn-outline-secondary:not(:disabled):not(.disabled):active,.show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,.btn-outline-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-success{color:#28a745;background-color:transparent;background-image:none;border-color:#28a745}.btn-outline-success:hover{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success.focus,.btn-outline-success:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-outline-success.disabled,.btn-outline-success:disabled{color:#28a745;background-color:transparent}.btn-outline-success:not(:disabled):not(.disabled).active,.btn-outline-success:not(:disabled):not(.disabled):active,.show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success:not(:disabled):not(.disabled).active:focus,.btn-outline-success:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-outline-info{color:#17a2b8;background-color:transparent;background-image:none;border-color:#17a2b8}.btn-outline-info:hover{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info.focus,.btn-outline-info:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-outline-info.disabled,.btn-outline-info:disabled{color:#17a2b8;background-color:transparent}.btn-outline-info:not(:disabled):not(.disabled).active,.btn-outline-info:not(:disabled):not(.disabled):active,.show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info:not(:disabled):not(.disabled).active:focus,.btn-outline-info:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-outline-warning{color:#ffc107;background-color:transparent;background-image:none;border-color:#ffc107}.btn-outline-warning:hover{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning.focus,.btn-outline-warning:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-outline-warning.disabled,.btn-outline-warning:disabled{color:#ffc107;background-color:transparent}.btn-outline-warning:not(:disabled):not(.disabled).active,.btn-outline-warning:not(:disabled):not(.disabled):active,.show>.btn-outline-warning.dropdown-toggle{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning:not(:disabled):not(.disabled).active:focus,.btn-outline-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-outline-danger{color:#dc3545;background-color:transparent;background-image:none;border-color:#dc3545}.btn-outline-danger:hover{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger.focus,.btn-outline-danger:focus{box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-outline-danger.disabled,.btn-outline-danger:disabled{color:#dc3545;background-color:transparent}.btn-outline-danger:not(:disabled):not(.disabled).active,.btn-outline-danger:not(:disabled):not(.disabled):active,.show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger:not(:disabled):not(.disabled).active:focus,.btn-outline-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-outline-light{color:#f8f9fa;background-color:transparent;background-image:none;border-color:#f8f9fa}.btn-outline-light:hover{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light.focus,.btn-outline-light:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-outline-light.disabled,.btn-outline-light:disabled{color:#f8f9fa;background-color:transparent}.btn-outline-light:not(:disabled):not(.disabled).active,.btn-outline-light:not(:disabled):not(.disabled):active,.show>.btn-outline-light.dropdown-toggle{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:not(:disabled):not(.disabled).active:focus,.btn-outline-light:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-outline-dark{color:#343a40;background-color:transparent;background-image:none;border-color:#343a40}.btn-outline-dark:hover{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark.focus,.btn-outline-dark:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-outline-dark.disabled,.btn-outline-dark:disabled{color:#343a40;background-color:transparent}.btn-outline-dark:not(:disabled):not(.disabled).active,.btn-outline-dark:not(:disabled):not(.disabled):active,.show>.btn-outline-dark.dropdown-toggle{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark:not(:disabled):not(.disabled).active:focus,.btn-outline-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-link{font-weight:400;color:#007bff;background-color:transparent}.btn-link:hover{color:#0056b3;text-decoration:underline;background-color:transparent;border-color:transparent}.btn-link.focus,.btn-link:focus{text-decoration:underline;border-color:transparent;box-shadow:none}.btn-link.disabled,.btn-link:disabled{color:#6c757d;pointer-events:none}.btn-group-lg>.btn,.btn-lg{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.btn-group-sm>.btn,.btn-sm{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:.5rem}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{transition:opacity .15s linear}@media screen and (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{position:relative;height:0;overflow:hidden;transition:height .35s ease}@media screen and (prefers-reduced-motion:reduce){.collapsing{transition:none}}.dropdown,.dropleft,.dropright,.dropup{position:relative}.dropdown-toggle::after{display:inline-block;width:0;height:0;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty::after{margin-left:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:10rem;padding:.5rem 0;margin:.125rem 0 0;font-size:1rem;color:#212529;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.15);border-radius:.25rem}.dropdown-menu-right{right:0;left:auto}.dropup .dropdown-menu{top:auto;bottom:100%;margin-top:0;margin-bottom:.125rem}.dropup .dropdown-toggle::after{display:inline-block;width:0;height:0;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty::after{margin-left:0}.dropright .dropdown-menu{top:0;right:auto;left:100%;margin-top:0;margin-left:.125rem}.dropright .dropdown-toggle::after{display:inline-block;width:0;height:0;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropright .dropdown-toggle:empty::after{margin-left:0}.dropright .dropdown-toggle::after{vertical-align:0}.dropleft .dropdown-menu{top:0;right:100%;left:auto;margin-top:0;margin-right:.125rem}.dropleft .dropdown-toggle::after{display:inline-block;width:0;height:0;margin-left:.255em;vertical-align:.255em;content:""}.dropleft .dropdown-toggle::after{display:none}.dropleft .dropdown-toggle::before{display:inline-block;width:0;height:0;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropleft .dropdown-toggle:empty::after{margin-left:0}.dropleft .dropdown-toggle::before{vertical-align:0}.dropdown-menu[x-placement^=bottom],.dropdown-menu[x-placement^=left],.dropdown-menu[x-placement^=right],.dropdown-menu[x-placement^=top]{right:auto;bottom:auto}.dropdown-divider{height:0;margin:.5rem 0;overflow:hidden;border-top:1px solid #e9ecef}.dropdown-item{display:block;width:100%;padding:.25rem 1.5rem;clear:both;font-weight:400;color:#212529;text-align:inherit;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:focus,.dropdown-item:hover{color:#16181b;text-decoration:none;background-color:#f8f9fa}.dropdown-item.active,.dropdown-item:active{color:#fff;text-decoration:none;background-color:#007bff}.dropdown-item.disabled,.dropdown-item:disabled{color:#6c757d;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:.5rem 1.5rem;margin-bottom:0;font-size:.875rem;color:#6c757d;white-space:nowrap}.dropdown-item-text{display:block;padding:.25rem 1.5rem;color:#212529}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;flex:0 1 auto}.btn-group-vertical>.btn:hover,.btn-group>.btn:hover{z-index:1}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus{z-index:1}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group,.btn-group-vertical .btn+.btn,.btn-group-vertical .btn+.btn-group,.btn-group-vertical .btn-group+.btn,.btn-group-vertical .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split::after,.dropright .dropdown-toggle-split::after,.dropup .dropdown-toggle-split::after{margin-left:0}.dropleft .dropdown-toggle-split::before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical .btn,.btn-group-vertical .btn-group{width:100%}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.btn-group-toggle>.btn,.btn-group-toggle>.btn-group>.btn{margin-bottom:0}.btn-group-toggle>.btn input[type=checkbox],.btn-group-toggle>.btn input[type=radio],.btn-group-toggle>.btn-group>.btn input[type=checkbox],.btn-group-toggle>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.custom-file,.input-group>.custom-select,.input-group>.form-control{position:relative;flex:1 1 auto;width:1%;margin-bottom:0}.input-group>.custom-file+.custom-file,.input-group>.custom-file+.custom-select,.input-group>.custom-file+.form-control,.input-group>.custom-select+.custom-file,.input-group>.custom-select+.custom-select,.input-group>.custom-select+.form-control,.input-group>.form-control+.custom-file,.input-group>.form-control+.custom-select,.input-group>.form-control+.form-control{margin-left:-1px}.input-group>.custom-file .custom-file-input:focus~.custom-file-label,.input-group>.custom-select:focus,.input-group>.form-control:focus{z-index:3}.input-group>.custom-file .custom-file-input:focus{z-index:4}.input-group>.custom-select:not(:last-child),.input-group>.form-control:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-select:not(:first-child),.input-group>.form-control:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.custom-file{display:flex;align-items:center}.input-group>.custom-file:not(:last-child) .custom-file-label,.input-group>.custom-file:not(:last-child) .custom-file-label::after{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-file:not(:first-child) .custom-file-label{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-append,.input-group-prepend{display:flex}.input-group-append .btn,.input-group-prepend .btn{position:relative;z-index:2}.input-group-append .btn+.btn,.input-group-append .btn+.input-group-text,.input-group-append .input-group-text+.btn,.input-group-append .input-group-text+.input-group-text,.input-group-prepend .btn+.btn,.input-group-prepend .btn+.input-group-text,.input-group-prepend .input-group-text+.btn,.input-group-prepend .input-group-text+.input-group-text{margin-left:-1px}.input-group-prepend{margin-right:-1px}.input-group-append{margin-left:-1px}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;margin-bottom:0;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.25rem}.input-group-text input[type=checkbox],.input-group-text input[type=radio]{margin-top:0}.input-group-lg>.form-control,.input-group-lg>.input-group-append>.btn,.input-group-lg>.input-group-append>.input-group-text,.input-group-lg>.input-group-prepend>.btn,.input-group-lg>.input-group-prepend>.input-group-text{height:calc(2.875rem + 2px);padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.input-group-sm>.form-control,.input-group-sm>.input-group-append>.btn,.input-group-sm>.input-group-append>.input-group-text,.input-group-sm>.input-group-prepend>.btn,.input-group-sm>.input-group-prepend>.input-group-text{height:calc(1.8125rem + 2px);padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.input-group>.input-group-append:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group>.input-group-append:last-child>.input-group-text:not(:last-child),.input-group>.input-group-append:not(:last-child)>.btn,.input-group>.input-group-append:not(:last-child)>.input-group-text,.input-group>.input-group-prepend>.btn,.input-group>.input-group-prepend>.input-group-text{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0;border-bottom-left-radius:0}.custom-control{position:relative;display:block;min-height:1.5rem;padding-left:1.5rem}.custom-control-inline{display:inline-flex;margin-right:1rem}.custom-control-input{position:absolute;z-index:-1;opacity:0}.custom-control-input:checked~.custom-control-label::before{color:#fff;background-color:#007bff}.custom-control-input:focus~.custom-control-label::before{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-control-input:active~.custom-control-label::before{color:#fff;background-color:#b3d7ff}.custom-control-input:disabled~.custom-control-label{color:#6c757d}.custom-control-input:disabled~.custom-control-label::before{background-color:#e9ecef}.custom-control-label{position:relative;margin-bottom:0}.custom-control-label::before{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;pointer-events:none;content:"";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#dee2e6}.custom-control-label::after{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;content:"";background-repeat:no-repeat;background-position:center center;background-size:50% 50%}.custom-checkbox .custom-control-label::before{border-radius:.25rem}.custom-checkbox .custom-control-input:checked~.custom-control-label::before{background-color:#007bff}.custom-checkbox .custom-control-input:checked~.custom-control-label::after{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E")}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label::before{background-color:#007bff}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label::after{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='%23fff' d='M0 2h4'/%3E%3C/svg%3E")}.custom-checkbox .custom-control-input:disabled:checked~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-checkbox .custom-control-input:disabled:indeterminate~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-radio .custom-control-label::before{border-radius:50%}.custom-radio .custom-control-input:checked~.custom-control-label::before{background-color:#007bff}.custom-radio .custom-control-input:checked~.custom-control-label::after{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E")}.custom-radio .custom-control-input:disabled:checked~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-select{display:inline-block;width:100%;height:calc(2.25rem + 2px);padding:.375rem 1.75rem .375rem .75rem;line-height:1.5;color:#495057;vertical-align:middle;background:#fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center;background-size:8px 10px;border:1px solid #ced4da;border-radius:.25rem;-webkit-appearance:none;-moz-appearance:none;appearance:none}.custom-select:focus{border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem rgba(128,189,255,.5)}.custom-select:focus::-ms-value{color:#495057;background-color:#fff}.custom-select[multiple],.custom-select[size]:not([size="1"]){height:auto;padding-right:.75rem;background-image:none}.custom-select:disabled{color:#6c757d;background-color:#e9ecef}.custom-select::-ms-expand{opacity:0}.custom-select-sm{height:calc(1.8125rem + 2px);padding-top:.375rem;padding-bottom:.375rem;font-size:75%}.custom-select-lg{height:calc(2.875rem + 2px);padding-top:.375rem;padding-bottom:.375rem;font-size:125%}.custom-file{position:relative;display:inline-block;width:100%;height:calc(2.25rem + 2px);margin-bottom:0}.custom-file-input{position:relative;z-index:2;width:100%;height:calc(2.25rem + 2px);margin:0;opacity:0}.custom-file-input:focus~.custom-file-label{border-color:#80bdff;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-file-input:focus~.custom-file-label::after{border-color:#80bdff}.custom-file-input:disabled~.custom-file-label{background-color:#e9ecef}.custom-file-input:lang(en)~.custom-file-label::after{content:"Browse"}.custom-file-label{position:absolute;top:0;right:0;left:0;z-index:1;height:calc(2.25rem + 2px);padding:.375rem .75rem;line-height:1.5;color:#495057;background-color:#fff;border:1px solid #ced4da;border-radius:.25rem}.custom-file-label::after{position:absolute;top:0;right:0;bottom:0;z-index:3;display:block;height:2.25rem;padding:.375rem .75rem;line-height:1.5;color:#495057;content:"Browse";background-color:#e9ecef;border-left:1px solid #ced4da;border-radius:0 .25rem .25rem 0}.custom-range{width:100%;padding-left:0;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.custom-range:focus{outline:0}.custom-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range:focus::-ms-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range::-moz-focus-outer{border:0}.custom-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#007bff;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;appearance:none}@media screen and (prefers-reduced-motion:reduce){.custom-range::-webkit-slider-thumb{transition:none}}.custom-range::-webkit-slider-thumb:active{background-color:#b3d7ff}.custom-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#007bff;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-moz-appearance:none;appearance:none}@media screen and (prefers-reduced-motion:reduce){.custom-range::-moz-range-thumb{transition:none}}.custom-range::-moz-range-thumb:active{background-color:#b3d7ff}.custom-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-ms-thumb{width:1rem;height:1rem;margin-top:0;margin-right:.2rem;margin-left:.2rem;background-color:#007bff;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media screen and (prefers-reduced-motion:reduce){.custom-range::-ms-thumb{transition:none}}.custom-range::-ms-thumb:active{background-color:#b3d7ff}.custom-range::-ms-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:transparent;border-color:transparent;border-width:.5rem}.custom-range::-ms-fill-lower{background-color:#dee2e6;border-radius:1rem}.custom-range::-ms-fill-upper{margin-right:15px;background-color:#dee2e6;border-radius:1rem}.custom-control-label::before,.custom-file-label,.custom-select{transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media screen and (prefers-reduced-motion:reduce){.custom-control-label::before,.custom-file-label,.custom-select{transition:none}}.nav{display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:.5rem 1rem}.nav-link:focus,.nav-link:hover{text-decoration:none}.nav-link.disabled{color:#6c757d}.nav-tabs{border-bottom:1px solid #dee2e6}.nav-tabs .nav-item{margin-bottom:-1px}.nav-tabs .nav-link{border:1px solid transparent;border-top-left-radius:.25rem;border-top-right-radius:.25rem}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{border-color:#e9ecef #e9ecef #dee2e6}.nav-tabs .nav-link.disabled{color:#6c757d;background-color:transparent;border-color:transparent}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:#495057;background-color:#fff;border-color:#dee2e6 #dee2e6 #fff}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.nav-pills .nav-link{border-radius:.25rem}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:#fff;background-color:#007bff}.nav-fill .nav-item{flex:1 1 auto;text-align:center}.nav-justified .nav-item{flex-basis:0;flex-grow:1;text-align:center}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:.5rem 1rem}.navbar>.container,.navbar>.container-fluid{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}.navbar-brand{display:inline-block;padding-top:.3125rem;padding-bottom:.3125rem;margin-right:1rem;font-size:1.25rem;line-height:inherit;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-nav{display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link{padding-right:0;padding-left:0}.navbar-nav .dropdown-menu{position:static;float:none}.navbar-text{display:inline-block;padding-top:.5rem;padding-bottom:.5rem}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:.25rem .75rem;font-size:1.25rem;line-height:1;background-color:transparent;border:1px solid transparent;border-radius:.25rem}.navbar-toggler:focus,.navbar-toggler:hover{text-decoration:none}.navbar-toggler:not(:disabled):not(.disabled){cursor:pointer}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;content:"";background:no-repeat center center;background-size:100% 100%}@media (max-width:575.98px){.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid{padding-right:0;padding-left:0}}@media (min-width:576px){.navbar-expand-sm{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid{flex-wrap:nowrap}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}}@media (max-width:767.98px){.navbar-expand-md>.container,.navbar-expand-md>.container-fluid{padding-right:0;padding-left:0}}@media (min-width:768px){.navbar-expand-md{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-md>.container,.navbar-expand-md>.container-fluid{flex-wrap:nowrap}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}}@media (max-width:991.98px){.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid{padding-right:0;padding-left:0}}@media (min-width:992px){.navbar-expand-lg{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid{flex-wrap:nowrap}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}}@media (max-width:1199.98px){.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid{padding-right:0;padding-left:0}}@media (min-width:1200px){.navbar-expand-xl{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid{flex-wrap:nowrap}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}}.navbar-expand{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand>.container,.navbar-expand>.container-fluid{padding-right:0;padding-left:0}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand>.container,.navbar-expand>.container-fluid{flex-wrap:nowrap}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-light .navbar-brand{color:rgba(0,0,0,.9)}.navbar-light .navbar-brand:focus,.navbar-light .navbar-brand:hover{color:rgba(0,0,0,.9)}.navbar-light .navbar-nav .nav-link{color:rgba(0,0,0,.5)}.navbar-light .navbar-nav .nav-link:focus,.navbar-light .navbar-nav .nav-link:hover{color:rgba(0,0,0,.7)}.navbar-light .navbar-nav .nav-link.disabled{color:rgba(0,0,0,.3)}.navbar-light .navbar-nav .active>.nav-link,.navbar-light .navbar-nav .nav-link.active,.navbar-light .navbar-nav .nav-link.show,.navbar-light .navbar-nav .show>.nav-link{color:rgba(0,0,0,.9)}.navbar-light .navbar-toggler{color:rgba(0,0,0,.5);border-color:rgba(0,0,0,.1)}.navbar-light .navbar-toggler-icon{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")}.navbar-light .navbar-text{color:rgba(0,0,0,.5)}.navbar-light .navbar-text a{color:rgba(0,0,0,.9)}.navbar-light .navbar-text a:focus,.navbar-light .navbar-text a:hover{color:rgba(0,0,0,.9)}.navbar-dark .navbar-brand{color:#fff}.navbar-dark .navbar-brand:focus,.navbar-dark .navbar-brand:hover{color:#fff}.navbar-dark .navbar-nav .nav-link{color:rgba(255,255,255,.5)}.navbar-dark .navbar-nav .nav-link:focus,.navbar-dark .navbar-nav .nav-link:hover{color:rgba(255,255,255,.75)}.navbar-dark .navbar-nav .nav-link.disabled{color:rgba(255,255,255,.25)}.navbar-dark .navbar-nav .active>.nav-link,.navbar-dark .navbar-nav .nav-link.active,.navbar-dark .navbar-nav .nav-link.show,.navbar-dark .navbar-nav .show>.nav-link{color:#fff}.navbar-dark .navbar-toggler{color:rgba(255,255,255,.5);border-color:rgba(255,255,255,.1)}.navbar-dark .navbar-toggler-icon{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")}.navbar-dark .navbar-text{color:rgba(255,255,255,.5)}.navbar-dark .navbar-text a{color:#fff}.navbar-dark .navbar-text a:focus,.navbar-dark .navbar-text a:hover{color:#fff}.card{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0,0,0,.125);border-radius:.25rem}.card>hr{margin-right:0;margin-left:0}.card>.list-group:first-child .list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.card>.list-group:last-child .list-group-item:last-child{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.card-body{flex:1 1 auto;padding:1.25rem}.card-title{margin-bottom:.75rem}.card-subtitle{margin-top:-.375rem;margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}.card-link+.card-link{margin-left:1.25rem}.card-header{padding:.75rem 1.25rem;margin-bottom:0;background-color:rgba(0,0,0,.03);border-bottom:1px solid rgba(0,0,0,.125)}.card-header:first-child{border-radius:calc(.25rem - 1px) calc(.25rem - 1px) 0 0}.card-header+.list-group .list-group-item:first-child{border-top:0}.card-footer{padding:.75rem 1.25rem;background-color:rgba(0,0,0,.03);border-top:1px solid rgba(0,0,0,.125)}.card-footer:last-child{border-radius:0 0 calc(.25rem - 1px) calc(.25rem - 1px)}.card-header-tabs{margin-right:-.625rem;margin-bottom:-.75rem;margin-left:-.625rem;border-bottom:0}.card-header-pills{margin-right:-.625rem;margin-left:-.625rem}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:1.25rem}.card-img{width:100%;border-radius:calc(.25rem - 1px)}.card-img-top{width:100%;border-top-left-radius:calc(.25rem - 1px);border-top-right-radius:calc(.25rem - 1px)}.card-img-bottom{width:100%;border-bottom-right-radius:calc(.25rem - 1px);border-bottom-left-radius:calc(.25rem - 1px)}.card-deck{display:flex;flex-direction:column}.card-deck .card{margin-bottom:15px}@media (min-width:576px){.card-deck{flex-flow:row wrap;margin-right:-15px;margin-left:-15px}.card-deck .card{display:flex;flex:1 0 0%;flex-direction:column;margin-right:15px;margin-bottom:0;margin-left:15px}}.card-group{display:flex;flex-direction:column}.card-group>.card{margin-bottom:15px}@media (min-width:576px){.card-group{flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:first-child .card-header,.card-group>.card:first-child .card-img-top{border-top-right-radius:0}.card-group>.card:first-child .card-footer,.card-group>.card:first-child .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:last-child .card-header,.card-group>.card:last-child .card-img-top{border-top-left-radius:0}.card-group>.card:last-child .card-footer,.card-group>.card:last-child .card-img-bottom{border-bottom-left-radius:0}.card-group>.card:only-child{border-radius:.25rem}.card-group>.card:only-child .card-header,.card-group>.card:only-child .card-img-top{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.card-group>.card:only-child .card-footer,.card-group>.card:only-child .card-img-bottom{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.card-group>.card:not(:first-child):not(:last-child):not(:only-child){border-radius:0}.card-group>.card:not(:first-child):not(:last-child):not(:only-child) .card-footer,.card-group>.card:not(:first-child):not(:last-child):not(:only-child) .card-header,.card-group>.card:not(:first-child):not(:last-child):not(:only-child) .card-img-bottom,.card-group>.card:not(:first-child):not(:last-child):not(:only-child) .card-img-top{border-radius:0}}.card-columns .card{margin-bottom:.75rem}@media (min-width:576px){.card-columns{-webkit-column-count:3;column-count:3;-webkit-column-gap:1.25rem;column-gap:1.25rem;orphans:1;widows:1}.card-columns .card{display:inline-block;width:100%}}.accordion .card:not(:first-of-type):not(:last-of-type){border-bottom:0;border-radius:0}.accordion .card:not(:first-of-type) .card-header:first-child{border-radius:0}.accordion .card:first-of-type{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.accordion .card:last-of-type{border-top-left-radius:0;border-top-right-radius:0}.breadcrumb{display:flex;flex-wrap:wrap;padding:.75rem 1rem;margin-bottom:1rem;list-style:none;background-color:#e9ecef;border-radius:.25rem}.breadcrumb-item+.breadcrumb-item{padding-left:.5rem}.breadcrumb-item+.breadcrumb-item::before{display:inline-block;padding-right:.5rem;color:#6c757d;content:"/"}.breadcrumb-item+.breadcrumb-item:hover::before{text-decoration:underline}.breadcrumb-item+.breadcrumb-item:hover::before{text-decoration:none}.breadcrumb-item.active{color:#6c757d}.pagination{display:flex;padding-left:0;list-style:none;border-radius:.25rem}.page-link{position:relative;display:block;padding:.5rem .75rem;margin-left:-1px;line-height:1.25;color:#007bff;background-color:#fff;border:1px solid #dee2e6}.page-link:hover{z-index:2;color:#0056b3;text-decoration:none;background-color:#e9ecef;border-color:#dee2e6}.page-link:focus{z-index:2;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.page-link:not(:disabled):not(.disabled){cursor:pointer}.page-item:first-child .page-link{margin-left:0;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.page-item:last-child .page-link{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.page-item.active .page-link{z-index:1;color:#fff;background-color:#007bff;border-color:#007bff}.page-item.disabled .page-link{color:#6c757d;pointer-events:none;cursor:auto;background-color:#fff;border-color:#dee2e6}.pagination-lg .page-link{padding:.75rem 1.5rem;font-size:1.25rem;line-height:1.5}.pagination-lg .page-item:first-child .page-link{border-top-left-radius:.3rem;border-bottom-left-radius:.3rem}.pagination-lg .page-item:last-child .page-link{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.pagination-sm .page-link{padding:.25rem .5rem;font-size:.875rem;line-height:1.5}.pagination-sm .page-item:first-child .page-link{border-top-left-radius:.2rem;border-bottom-left-radius:.2rem}.pagination-sm .page-item:last-child .page-link{border-top-right-radius:.2rem;border-bottom-right-radius:.2rem}.badge{display:inline-block;padding:.25em .4em;font-size:75%;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.badge-pill{padding-right:.6em;padding-left:.6em;border-radius:10rem}.badge-primary{color:#fff;background-color:#007bff}.badge-primary[href]:focus,.badge-primary[href]:hover{color:#fff;text-decoration:none;background-color:#0062cc}.badge-secondary{color:#fff;background-color:#6c757d}.badge-secondary[href]:focus,.badge-secondary[href]:hover{color:#fff;text-decoration:none;background-color:#545b62}.badge-success{color:#fff;background-color:#28a745}.badge-success[href]:focus,.badge-success[href]:hover{color:#fff;text-decoration:none;background-color:#1e7e34}.badge-info{color:#fff;background-color:#17a2b8}.badge-info[href]:focus,.badge-info[href]:hover{color:#fff;text-decoration:none;background-color:#117a8b}.badge-warning{color:#212529;background-color:#ffc107}.badge-warning[href]:focus,.badge-warning[href]:hover{color:#212529;text-decoration:none;background-color:#d39e00}.badge-danger{color:#fff;background-color:#dc3545}.badge-danger[href]:focus,.badge-danger[href]:hover{color:#fff;text-decoration:none;background-color:#bd2130}.badge-light{color:#212529;background-color:#f8f9fa}.badge-light[href]:focus,.badge-light[href]:hover{color:#212529;text-decoration:none;background-color:#dae0e5}.badge-dark{color:#fff;background-color:#343a40}.badge-dark[href]:focus,.badge-dark[href]:hover{color:#fff;text-decoration:none;background-color:#1d2124}.jumbotron{padding:2rem 1rem;margin-bottom:2rem;background-color:#e9ecef;border-radius:.3rem}@media (min-width:576px){.jumbotron{padding:4rem 2rem}}.jumbotron-fluid{padding-right:0;padding-left:0;border-radius:0}.alert{position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:4rem}.alert-dismissible .close{position:absolute;top:0;right:0;padding:.75rem 1.25rem;color:inherit}.alert-primary{color:#004085;background-color:#cce5ff;border-color:#b8daff}.alert-primary hr{border-top-color:#9fcdff}.alert-primary .alert-link{color:#002752}.alert-secondary{color:#383d41;background-color:#e2e3e5;border-color:#d6d8db}.alert-secondary hr{border-top-color:#c8cbcf}.alert-secondary .alert-link{color:#202326}.alert-success{color:#155724;background-color:#d4edda;border-color:#c3e6cb}.alert-success hr{border-top-color:#b1dfbb}.alert-success .alert-link{color:#0b2e13}.alert-info{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.alert-info hr{border-top-color:#abdde5}.alert-info .alert-link{color:#062c33}.alert-warning{color:#856404;background-color:#fff3cd;border-color:#ffeeba}.alert-warning hr{border-top-color:#ffe8a1}.alert-warning .alert-link{color:#533f03}.alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert-danger hr{border-top-color:#f1b0b7}.alert-danger .alert-link{color:#491217}.alert-light{color:#818182;background-color:#fefefe;border-color:#fdfdfe}.alert-light hr{border-top-color:#ececf6}.alert-light .alert-link{color:#686868}.alert-dark{color:#1b1e21;background-color:#d6d8d9;border-color:#c6c8ca}.alert-dark hr{border-top-color:#b9bbbe}.alert-dark .alert-link{color:#040505}@-webkit-keyframes progress-bar-stripes{from{background-position:1rem 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:1rem 0}to{background-position:0 0}}.progress{display:flex;height:1rem;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:.25rem}.progress-bar{display:flex;flex-direction:column;justify-content:center;color:#fff;text-align:center;white-space:nowrap;background-color:#007bff;transition:width .6s ease}@media screen and (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:1rem 1rem}.progress-bar-animated{-webkit-animation:progress-bar-stripes 1s linear infinite;animation:progress-bar-stripes 1s linear infinite}.media{display:flex;align-items:flex-start}.media-body{flex:1}.list-group{display:flex;flex-direction:column;padding-left:0;margin-bottom:0}.list-group-item-action{width:100%;color:#495057;text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{color:#495057;text-decoration:none;background-color:#f8f9fa}.list-group-item-action:active{color:#212529;background-color:#e9ecef}.list-group-item{position:relative;display:block;padding:.75rem 1.25rem;margin-bottom:-1px;background-color:#fff;border:1px solid rgba(0,0,0,.125)}.list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.list-group-item:focus,.list-group-item:hover{z-index:1;text-decoration:none}.list-group-item.disabled,.list-group-item:disabled{color:#6c757d;background-color:#fff}.list-group-item.active{z-index:2;color:#fff;background-color:#007bff;border-color:#007bff}.list-group-flush .list-group-item{border-right:0;border-left:0;border-radius:0}.list-group-flush:first-child .list-group-item:first-child{border-top:0}.list-group-flush:last-child .list-group-item:last-child{border-bottom:0}.list-group-item-primary{color:#004085;background-color:#b8daff}.list-group-item-primary.list-group-item-action:focus,.list-group-item-primary.list-group-item-action:hover{color:#004085;background-color:#9fcdff}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#004085;border-color:#004085}.list-group-item-secondary{color:#383d41;background-color:#d6d8db}.list-group-item-secondary.list-group-item-action:focus,.list-group-item-secondary.list-group-item-action:hover{color:#383d41;background-color:#c8cbcf}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#383d41;border-color:#383d41}.list-group-item-success{color:#155724;background-color:#c3e6cb}.list-group-item-success.list-group-item-action:focus,.list-group-item-success.list-group-item-action:hover{color:#155724;background-color:#b1dfbb}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#155724;border-color:#155724}.list-group-item-info{color:#0c5460;background-color:#bee5eb}.list-group-item-info.list-group-item-action:focus,.list-group-item-info.list-group-item-action:hover{color:#0c5460;background-color:#abdde5}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#0c5460;border-color:#0c5460}.list-group-item-warning{color:#856404;background-color:#ffeeba}.list-group-item-warning.list-group-item-action:focus,.list-group-item-warning.list-group-item-action:hover{color:#856404;background-color:#ffe8a1}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#856404;border-color:#856404}.list-group-item-danger{color:#721c24;background-color:#f5c6cb}.list-group-item-danger.list-group-item-action:focus,.list-group-item-danger.list-group-item-action:hover{color:#721c24;background-color:#f1b0b7}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#721c24;border-color:#721c24}.list-group-item-light{color:#818182;background-color:#fdfdfe}.list-group-item-light.list-group-item-action:focus,.list-group-item-light.list-group-item-action:hover{color:#818182;background-color:#ececf6}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#818182;border-color:#818182}.list-group-item-dark{color:#1b1e21;background-color:#c6c8ca}.list-group-item-dark.list-group-item-action:focus,.list-group-item-dark.list-group-item-action:hover{color:#1b1e21;background-color:#b9bbbe}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#1b1e21;border-color:#1b1e21}.close{float:right;font-size:1.5rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.5}.close:not(:disabled):not(.disabled){cursor:pointer}.close:not(:disabled):not(.disabled):focus,.close:not(:disabled):not(.disabled):hover{color:#000;text-decoration:none;opacity:.75}button.close{padding:0;background-color:transparent;border:0;-webkit-appearance:none}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;outline:0}.modal-dialog{position:relative;width:auto;margin:.5rem;pointer-events:none}.modal.fade .modal-dialog{transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out;-webkit-transform:translate(0,-25%);transform:translate(0,-25%)}@media screen and (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{-webkit-transform:translate(0,0);transform:translate(0,0)}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - (.5rem * 2))}.modal-dialog-centered::before{display:block;height:calc(100vh - (.5rem * 2));content:""}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem;outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:.5}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:1rem;border-bottom:1px solid #e9ecef;border-top-left-radius:.3rem;border-top-right-radius:.3rem}.modal-header .close{padding:1rem;margin:-1rem -1rem -1rem auto}.modal-title{margin-bottom:0;line-height:1.5}.modal-body{position:relative;flex:1 1 auto;padding:1rem}.modal-footer{display:flex;align-items:center;justify-content:flex-end;padding:1rem;border-top:1px solid #e9ecef}.modal-footer>:not(:first-child){margin-left:.25rem}.modal-footer>:not(:last-child){margin-right:.25rem}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:576px){.modal-dialog{max-width:500px;margin:1.75rem auto}.modal-dialog-centered{min-height:calc(100% - (1.75rem * 2))}.modal-dialog-centered::before{height:calc(100vh - (1.75rem * 2))}.modal-sm{max-width:300px}}@media (min-width:992px){.modal-lg{max-width:800px}}.tooltip{position:absolute;z-index:1070;display:block;margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;opacity:0}.tooltip.show{opacity:.9}.tooltip .arrow{position:absolute;display:block;width:.8rem;height:.4rem}.tooltip .arrow::before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[x-placement^=top],.bs-tooltip-top{padding:.4rem 0}.bs-tooltip-auto[x-placement^=top] .arrow,.bs-tooltip-top .arrow{bottom:0}.bs-tooltip-auto[x-placement^=top] .arrow::before,.bs-tooltip-top .arrow::before{top:0;border-width:.4rem .4rem 0;border-top-color:#000}.bs-tooltip-auto[x-placement^=right],.bs-tooltip-right{padding:0 .4rem}.bs-tooltip-auto[x-placement^=right] .arrow,.bs-tooltip-right .arrow{left:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=right] .arrow::before,.bs-tooltip-right .arrow::before{right:0;border-width:.4rem .4rem .4rem 0;border-right-color:#000}.bs-tooltip-auto[x-placement^=bottom],.bs-tooltip-bottom{padding:.4rem 0}.bs-tooltip-auto[x-placement^=bottom] .arrow,.bs-tooltip-bottom .arrow{top:0}.bs-tooltip-auto[x-placement^=bottom] .arrow::before,.bs-tooltip-bottom .arrow::before{bottom:0;border-width:0 .4rem .4rem;border-bottom-color:#000}.bs-tooltip-auto[x-placement^=left],.bs-tooltip-left{padding:0 .4rem}.bs-tooltip-auto[x-placement^=left] .arrow,.bs-tooltip-left .arrow{right:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=left] .arrow::before,.bs-tooltip-left .arrow::before{left:0;border-width:.4rem 0 .4rem .4rem;border-left-color:#000}.tooltip-inner{max-width:200px;padding:.25rem .5rem;color:#fff;text-align:center;background-color:#000;border-radius:.25rem}.popover{position:absolute;top:0;left:0;z-index:1060;display:block;max-width:276px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem}.popover .arrow{position:absolute;display:block;width:1rem;height:.5rem;margin:0 .3rem}.popover .arrow::after,.popover .arrow::before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid}.bs-popover-auto[x-placement^=top],.bs-popover-top{margin-bottom:.5rem}.bs-popover-auto[x-placement^=top] .arrow,.bs-popover-top .arrow{bottom:calc((.5rem + 1px) * -1)}.bs-popover-auto[x-placement^=top] .arrow::after,.bs-popover-auto[x-placement^=top] .arrow::before,.bs-popover-top .arrow::after,.bs-popover-top .arrow::before{border-width:.5rem .5rem 0}.bs-popover-auto[x-placement^=top] .arrow::before,.bs-popover-top .arrow::before{bottom:0;border-top-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=top] .arrow::after,.bs-popover-top .arrow::after{bottom:1px;border-top-color:#fff}.bs-popover-auto[x-placement^=right],.bs-popover-right{margin-left:.5rem}.bs-popover-auto[x-placement^=right] .arrow,.bs-popover-right .arrow{left:calc((.5rem + 1px) * -1);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=right] .arrow::after,.bs-popover-auto[x-placement^=right] .arrow::before,.bs-popover-right .arrow::after,.bs-popover-right .arrow::before{border-width:.5rem .5rem .5rem 0}.bs-popover-auto[x-placement^=right] .arrow::before,.bs-popover-right .arrow::before{left:0;border-right-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=right] .arrow::after,.bs-popover-right .arrow::after{left:1px;border-right-color:#fff}.bs-popover-auto[x-placement^=bottom],.bs-popover-bottom{margin-top:.5rem}.bs-popover-auto[x-placement^=bottom] .arrow,.bs-popover-bottom .arrow{top:calc((.5rem + 1px) * -1)}.bs-popover-auto[x-placement^=bottom] .arrow::after,.bs-popover-auto[x-placement^=bottom] .arrow::before,.bs-popover-bottom .arrow::after,.bs-popover-bottom .arrow::before{border-width:0 .5rem .5rem .5rem}.bs-popover-auto[x-placement^=bottom] .arrow::before,.bs-popover-bottom .arrow::before{top:0;border-bottom-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=bottom] .arrow::after,.bs-popover-bottom .arrow::after{top:1px;border-bottom-color:#fff}.bs-popover-auto[x-placement^=bottom] .popover-header::before,.bs-popover-bottom .popover-header::before{position:absolute;top:0;left:50%;display:block;width:1rem;margin-left:-.5rem;content:"";border-bottom:1px solid #f7f7f7}.bs-popover-auto[x-placement^=left],.bs-popover-left{margin-right:.5rem}.bs-popover-auto[x-placement^=left] .arrow,.bs-popover-left .arrow{right:calc((.5rem + 1px) * -1);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=left] .arrow::after,.bs-popover-auto[x-placement^=left] .arrow::before,.bs-popover-left .arrow::after,.bs-popover-left .arrow::before{border-width:.5rem 0 .5rem .5rem}.bs-popover-auto[x-placement^=left] .arrow::before,.bs-popover-left .arrow::before{right:0;border-left-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=left] .arrow::after,.bs-popover-left .arrow::after{right:1px;border-left-color:#fff}.popover-header{padding:.5rem .75rem;margin-bottom:0;font-size:1rem;color:inherit;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.popover-header:empty{display:none}.popover-body{padding:.5rem .75rem;color:#212529}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-item{position:relative;display:none;align-items:center;width:100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block;transition:-webkit-transform .6s ease;transition:transform .6s ease;transition:transform .6s ease,-webkit-transform .6s ease}@media screen and (prefers-reduced-motion:reduce){.carousel-item-next,.carousel-item-prev,.carousel-item.active{transition:none}}.carousel-item-next,.carousel-item-prev{position:absolute;top:0}.carousel-item-next.carousel-item-left,.carousel-item-prev.carousel-item-right{-webkit-transform:translateX(0);transform:translateX(0)}@supports ((-webkit-transform-style:preserve-3d) or (transform-style:preserve-3d)){.carousel-item-next.carousel-item-left,.carousel-item-prev.carousel-item-right{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.active.carousel-item-right,.carousel-item-next{-webkit-transform:translateX(100%);transform:translateX(100%)}@supports ((-webkit-transform-style:preserve-3d) or (transform-style:preserve-3d)){.active.carousel-item-right,.carousel-item-next{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.active.carousel-item-left,.carousel-item-prev{-webkit-transform:translateX(-100%);transform:translateX(-100%)}@supports ((-webkit-transform-style:preserve-3d) or (transform-style:preserve-3d)){.active.carousel-item-left,.carousel-item-prev{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.carousel-fade .carousel-item{opacity:0;transition-duration:.6s;transition-property:opacity}.carousel-fade .carousel-item-next.carousel-item-left,.carousel-fade .carousel-item-prev.carousel-item-right,.carousel-fade .carousel-item.active{opacity:1}.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{opacity:0}.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-prev,.carousel-fade .carousel-item-next,.carousel-fade .carousel-item-prev,.carousel-fade .carousel-item.active{-webkit-transform:translateX(0);transform:translateX(0)}@supports ((-webkit-transform-style:preserve-3d) or (transform-style:preserve-3d)){.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-prev,.carousel-fade .carousel-item-next,.carousel-fade .carousel-item-prev,.carousel-fade .carousel-item.active{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;display:flex;align-items:center;justify-content:center;width:15%;color:#fff;text-align:center;opacity:.5}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:20px;height:20px;background:transparent no-repeat center center;background-size:100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E")}.carousel-control-next-icon{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E")}.carousel-indicators{position:absolute;right:0;bottom:10px;left:0;z-index:15;display:flex;justify-content:center;padding-left:0;margin-right:15%;margin-left:15%;list-style:none}.carousel-indicators li{position:relative;flex:0 1 auto;width:30px;height:3px;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:rgba(255,255,255,.5)}.carousel-indicators li::before{position:absolute;top:-10px;left:0;display:inline-block;width:100%;height:10px;content:""}.carousel-indicators li::after{position:absolute;bottom:-10px;left:0;display:inline-block;width:100%;height:10px;content:""}.carousel-indicators .active{background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.bg-primary{background-color:#007bff!important}a.bg-primary:focus,a.bg-primary:hover,button.bg-primary:focus,button.bg-primary:hover{background-color:#0062cc!important}.bg-secondary{background-color:#6c757d!important}a.bg-secondary:focus,a.bg-secondary:hover,button.bg-secondary:focus,button.bg-secondary:hover{background-color:#545b62!important}.bg-success{background-color:#28a745!important}a.bg-success:focus,a.bg-success:hover,button.bg-success:focus,button.bg-success:hover{background-color:#1e7e34!important}.bg-info{background-color:#17a2b8!important}a.bg-info:focus,a.bg-info:hover,button.bg-info:focus,button.bg-info:hover{background-color:#117a8b!important}.bg-warning{background-color:#ffc107!important}a.bg-warning:focus,a.bg-warning:hover,button.bg-warning:focus,button.bg-warning:hover{background-color:#d39e00!important}.bg-danger{background-color:#dc3545!important}a.bg-danger:focus,a.bg-danger:hover,button.bg-danger:focus,button.bg-danger:hover{background-color:#bd2130!important}.bg-light{background-color:#f8f9fa!important}a.bg-light:focus,a.bg-light:hover,button.bg-light:focus,button.bg-light:hover{background-color:#dae0e5!important}.bg-dark{background-color:#343a40!important}a.bg-dark:focus,a.bg-dark:hover,button.bg-dark:focus,button.bg-dark:hover{background-color:#1d2124!important}.bg-white{background-color:#fff!important}.bg-transparent{background-color:transparent!important}.border{border:1px solid #dee2e6!important}.border-top{border-top:1px solid #dee2e6!important}.border-right{border-right:1px solid #dee2e6!important}.border-bottom{border-bottom:1px solid #dee2e6!important}.border-left{border-left:1px solid #dee2e6!important}.border-0{border:0!important}.border-top-0{border-top:0!important}.border-right-0{border-right:0!important}.border-bottom-0{border-bottom:0!important}.border-left-0{border-left:0!important}.border-primary{border-color:#007bff!important}.border-secondary{border-color:#6c757d!important}.border-success{border-color:#28a745!important}.border-info{border-color:#17a2b8!important}.border-warning{border-color:#ffc107!important}.border-danger{border-color:#dc3545!important}.border-light{border-color:#f8f9fa!important}.border-dark{border-color:#343a40!important}.border-white{border-color:#fff!important}.rounded{border-radius:.25rem!important}.rounded-top{border-top-left-radius:.25rem!important;border-top-right-radius:.25rem!important}.rounded-right{border-top-right-radius:.25rem!important;border-bottom-right-radius:.25rem!important}.rounded-bottom{border-bottom-right-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-left{border-top-left-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-circle{border-radius:50%!important}.rounded-0{border-radius:0!important}.clearfix::after{display:block;clear:both;content:""}.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}@media (min-width:576px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}}@media (min-width:768px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}}@media (min-width:992px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}}@media (min-width:1200px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}}.embed-responsive{position:relative;display:block;width:100%;padding:0;overflow:hidden}.embed-responsive::before{display:block;content:""}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-21by9::before{padding-top:42.8571428571%}.embed-responsive-16by9::before{padding-top:56.25%}.embed-responsive-4by3::before{padding-top:75%}.embed-responsive-1by1::before{padding-top:100%}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-fill{flex:1 1 auto!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}@media (min-width:576px){.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}}@media (min-width:768px){.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}}@media (min-width:992px){.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}}@media (min-width:1200px){.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}}.float-left{float:left!important}.float-right{float:right!important}.float-none{float:none!important}@media (min-width:576px){.float-sm-left{float:left!important}.float-sm-right{float:right!important}.float-sm-none{float:none!important}}@media (min-width:768px){.float-md-left{float:left!important}.float-md-right{float:right!important}.float-md-none{float:none!important}}@media (min-width:992px){.float-lg-left{float:left!important}.float-lg-right{float:right!important}.float-lg-none{float:none!important}}@media (min-width:1200px){.float-xl-left{float:left!important}.float-xl-right{float:right!important}.float-xl-none{float:none!important}}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}@supports ((position:-webkit-sticky) or (position:sticky)){.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.shadow-sm{box-shadow:0 .125rem .25rem rgba(0,0,0,.075)!important}.shadow{box-shadow:0 .5rem 1rem rgba(0,0,0,.15)!important}.shadow-lg{box-shadow:0 1rem 3rem rgba(0,0,0,.175)!important}.shadow-none{box-shadow:none!important}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mw-100{max-width:100%!important}.mh-100{max-height:100%!important}.m-0{margin:0!important}.mt-0,.my-0{margin-top:0!important}.mr-0,.mx-0{margin-right:0!important}.mb-0,.my-0{margin-bottom:0!important}.ml-0,.mx-0{margin-left:0!important}.m-1{margin:.25rem!important}.mt-1,.my-1{margin-top:.25rem!important}.mr-1,.mx-1{margin-right:.25rem!important}.mb-1,.my-1{margin-bottom:.25rem!important}.ml-1,.mx-1{margin-left:.25rem!important}.m-2{margin:.5rem!important}.mt-2,.my-2{margin-top:.5rem!important}.mr-2,.mx-2{margin-right:.5rem!important}.mb-2,.my-2{margin-bottom:.5rem!important}.ml-2,.mx-2{margin-left:.5rem!important}.m-3{margin:1rem!important}.mt-3,.my-3{margin-top:1rem!important}.mr-3,.mx-3{margin-right:1rem!important}.mb-3,.my-3{margin-bottom:1rem!important}.ml-3,.mx-3{margin-left:1rem!important}.m-4{margin:1.5rem!important}.mt-4,.my-4{margin-top:1.5rem!important}.mr-4,.mx-4{margin-right:1.5rem!important}.mb-4,.my-4{margin-bottom:1.5rem!important}.ml-4,.mx-4{margin-left:1.5rem!important}.m-5{margin:3rem!important}.mt-5,.my-5{margin-top:3rem!important}.mr-5,.mx-5{margin-right:3rem!important}.mb-5,.my-5{margin-bottom:3rem!important}.ml-5,.mx-5{margin-left:3rem!important}.p-0{padding:0!important}.pt-0,.py-0{padding-top:0!important}.pr-0,.px-0{padding-right:0!important}.pb-0,.py-0{padding-bottom:0!important}.pl-0,.px-0{padding-left:0!important}.p-1{padding:.25rem!important}.pt-1,.py-1{padding-top:.25rem!important}.pr-1,.px-1{padding-right:.25rem!important}.pb-1,.py-1{padding-bottom:.25rem!important}.pl-1,.px-1{padding-left:.25rem!important}.p-2{padding:.5rem!important}.pt-2,.py-2{padding-top:.5rem!important}.pr-2,.px-2{padding-right:.5rem!important}.pb-2,.py-2{padding-bottom:.5rem!important}.pl-2,.px-2{padding-left:.5rem!important}.p-3{padding:1rem!important}.pt-3,.py-3{padding-top:1rem!important}.pr-3,.px-3{padding-right:1rem!important}.pb-3,.py-3{padding-bottom:1rem!important}.pl-3,.px-3{padding-left:1rem!important}.p-4{padding:1.5rem!important}.pt-4,.py-4{padding-top:1.5rem!important}.pr-4,.px-4{padding-right:1.5rem!important}.pb-4,.py-4{padding-bottom:1.5rem!important}.pl-4,.px-4{padding-left:1.5rem!important}.p-5{padding:3rem!important}.pt-5,.py-5{padding-top:3rem!important}.pr-5,.px-5{padding-right:3rem!important}.pb-5,.py-5{padding-bottom:3rem!important}.pl-5,.px-5{padding-left:3rem!important}.m-auto{margin:auto!important}.mt-auto,.my-auto{margin-top:auto!important}.mr-auto,.mx-auto{margin-right:auto!important}.mb-auto,.my-auto{margin-bottom:auto!important}.ml-auto,.mx-auto{margin-left:auto!important}@media (min-width:576px){.m-sm-0{margin:0!important}.mt-sm-0,.my-sm-0{margin-top:0!important}.mr-sm-0,.mx-sm-0{margin-right:0!important}.mb-sm-0,.my-sm-0{margin-bottom:0!important}.ml-sm-0,.mx-sm-0{margin-left:0!important}.m-sm-1{margin:.25rem!important}.mt-sm-1,.my-sm-1{margin-top:.25rem!important}.mr-sm-1,.mx-sm-1{margin-right:.25rem!important}.mb-sm-1,.my-sm-1{margin-bottom:.25rem!important}.ml-sm-1,.mx-sm-1{margin-left:.25rem!important}.m-sm-2{margin:.5rem!important}.mt-sm-2,.my-sm-2{margin-top:.5rem!important}.mr-sm-2,.mx-sm-2{margin-right:.5rem!important}.mb-sm-2,.my-sm-2{margin-bottom:.5rem!important}.ml-sm-2,.mx-sm-2{margin-left:.5rem!important}.m-sm-3{margin:1rem!important}.mt-sm-3,.my-sm-3{margin-top:1rem!important}.mr-sm-3,.mx-sm-3{margin-right:1rem!important}.mb-sm-3,.my-sm-3{margin-bottom:1rem!important}.ml-sm-3,.mx-sm-3{margin-left:1rem!important}.m-sm-4{margin:1.5rem!important}.mt-sm-4,.my-sm-4{margin-top:1.5rem!important}.mr-sm-4,.mx-sm-4{margin-right:1.5rem!important}.mb-sm-4,.my-sm-4{margin-bottom:1.5rem!important}.ml-sm-4,.mx-sm-4{margin-left:1.5rem!important}.m-sm-5{margin:3rem!important}.mt-sm-5,.my-sm-5{margin-top:3rem!important}.mr-sm-5,.mx-sm-5{margin-right:3rem!important}.mb-sm-5,.my-sm-5{margin-bottom:3rem!important}.ml-sm-5,.mx-sm-5{margin-left:3rem!important}.p-sm-0{padding:0!important}.pt-sm-0,.py-sm-0{padding-top:0!important}.pr-sm-0,.px-sm-0{padding-right:0!important}.pb-sm-0,.py-sm-0{padding-bottom:0!important}.pl-sm-0,.px-sm-0{padding-left:0!important}.p-sm-1{padding:.25rem!important}.pt-sm-1,.py-sm-1{padding-top:.25rem!important}.pr-sm-1,.px-sm-1{padding-right:.25rem!important}.pb-sm-1,.py-sm-1{padding-bottom:.25rem!important}.pl-sm-1,.px-sm-1{padding-left:.25rem!important}.p-sm-2{padding:.5rem!important}.pt-sm-2,.py-sm-2{padding-top:.5rem!important}.pr-sm-2,.px-sm-2{padding-right:.5rem!important}.pb-sm-2,.py-sm-2{padding-bottom:.5rem!important}.pl-sm-2,.px-sm-2{padding-left:.5rem!important}.p-sm-3{padding:1rem!important}.pt-sm-3,.py-sm-3{padding-top:1rem!important}.pr-sm-3,.px-sm-3{padding-right:1rem!important}.pb-sm-3,.py-sm-3{padding-bottom:1rem!important}.pl-sm-3,.px-sm-3{padding-left:1rem!important}.p-sm-4{padding:1.5rem!important}.pt-sm-4,.py-sm-4{padding-top:1.5rem!important}.pr-sm-4,.px-sm-4{padding-right:1.5rem!important}.pb-sm-4,.py-sm-4{padding-bottom:1.5rem!important}.pl-sm-4,.px-sm-4{padding-left:1.5rem!important}.p-sm-5{padding:3rem!important}.pt-sm-5,.py-sm-5{padding-top:3rem!important}.pr-sm-5,.px-sm-5{padding-right:3rem!important}.pb-sm-5,.py-sm-5{padding-bottom:3rem!important}.pl-sm-5,.px-sm-5{padding-left:3rem!important}.m-sm-auto{margin:auto!important}.mt-sm-auto,.my-sm-auto{margin-top:auto!important}.mr-sm-auto,.mx-sm-auto{margin-right:auto!important}.mb-sm-auto,.my-sm-auto{margin-bottom:auto!important}.ml-sm-auto,.mx-sm-auto{margin-left:auto!important}}@media (min-width:768px){.m-md-0{margin:0!important}.mt-md-0,.my-md-0{margin-top:0!important}.mr-md-0,.mx-md-0{margin-right:0!important}.mb-md-0,.my-md-0{margin-bottom:0!important}.ml-md-0,.mx-md-0{margin-left:0!important}.m-md-1{margin:.25rem!important}.mt-md-1,.my-md-1{margin-top:.25rem!important}.mr-md-1,.mx-md-1{margin-right:.25rem!important}.mb-md-1,.my-md-1{margin-bottom:.25rem!important}.ml-md-1,.mx-md-1{margin-left:.25rem!important}.m-md-2{margin:.5rem!important}.mt-md-2,.my-md-2{margin-top:.5rem!important}.mr-md-2,.mx-md-2{margin-right:.5rem!important}.mb-md-2,.my-md-2{margin-bottom:.5rem!important}.ml-md-2,.mx-md-2{margin-left:.5rem!important}.m-md-3{margin:1rem!important}.mt-md-3,.my-md-3{margin-top:1rem!important}.mr-md-3,.mx-md-3{margin-right:1rem!important}.mb-md-3,.my-md-3{margin-bottom:1rem!important}.ml-md-3,.mx-md-3{margin-left:1rem!important}.m-md-4{margin:1.5rem!important}.mt-md-4,.my-md-4{margin-top:1.5rem!important}.mr-md-4,.mx-md-4{margin-right:1.5rem!important}.mb-md-4,.my-md-4{margin-bottom:1.5rem!important}.ml-md-4,.mx-md-4{margin-left:1.5rem!important}.m-md-5{margin:3rem!important}.mt-md-5,.my-md-5{margin-top:3rem!important}.mr-md-5,.mx-md-5{margin-right:3rem!important}.mb-md-5,.my-md-5{margin-bottom:3rem!important}.ml-md-5,.mx-md-5{margin-left:3rem!important}.p-md-0{padding:0!important}.pt-md-0,.py-md-0{padding-top:0!important}.pr-md-0,.px-md-0{padding-right:0!important}.pb-md-0,.py-md-0{padding-bottom:0!important}.pl-md-0,.px-md-0{padding-left:0!important}.p-md-1{padding:.25rem!important}.pt-md-1,.py-md-1{padding-top:.25rem!important}.pr-md-1,.px-md-1{padding-right:.25rem!important}.pb-md-1,.py-md-1{padding-bottom:.25rem!important}.pl-md-1,.px-md-1{padding-left:.25rem!important}.p-md-2{padding:.5rem!important}.pt-md-2,.py-md-2{padding-top:.5rem!important}.pr-md-2,.px-md-2{padding-right:.5rem!important}.pb-md-2,.py-md-2{padding-bottom:.5rem!important}.pl-md-2,.px-md-2{padding-left:.5rem!important}.p-md-3{padding:1rem!important}.pt-md-3,.py-md-3{padding-top:1rem!important}.pr-md-3,.px-md-3{padding-right:1rem!important}.pb-md-3,.py-md-3{padding-bottom:1rem!important}.pl-md-3,.px-md-3{padding-left:1rem!important}.p-md-4{padding:1.5rem!important}.pt-md-4,.py-md-4{padding-top:1.5rem!important}.pr-md-4,.px-md-4{padding-right:1.5rem!important}.pb-md-4,.py-md-4{padding-bottom:1.5rem!important}.pl-md-4,.px-md-4{padding-left:1.5rem!important}.p-md-5{padding:3rem!important}.pt-md-5,.py-md-5{padding-top:3rem!important}.pr-md-5,.px-md-5{padding-right:3rem!important}.pb-md-5,.py-md-5{padding-bottom:3rem!important}.pl-md-5,.px-md-5{padding-left:3rem!important}.m-md-auto{margin:auto!important}.mt-md-auto,.my-md-auto{margin-top:auto!important}.mr-md-auto,.mx-md-auto{margin-right:auto!important}.mb-md-auto,.my-md-auto{margin-bottom:auto!important}.ml-md-auto,.mx-md-auto{margin-left:auto!important}}@media (min-width:992px){.m-lg-0{margin:0!important}.mt-lg-0,.my-lg-0{margin-top:0!important}.mr-lg-0,.mx-lg-0{margin-right:0!important}.mb-lg-0,.my-lg-0{margin-bottom:0!important}.ml-lg-0,.mx-lg-0{margin-left:0!important}.m-lg-1{margin:.25rem!important}.mt-lg-1,.my-lg-1{margin-top:.25rem!important}.mr-lg-1,.mx-lg-1{margin-right:.25rem!important}.mb-lg-1,.my-lg-1{margin-bottom:.25rem!important}.ml-lg-1,.mx-lg-1{margin-left:.25rem!important}.m-lg-2{margin:.5rem!important}.mt-lg-2,.my-lg-2{margin-top:.5rem!important}.mr-lg-2,.mx-lg-2{margin-right:.5rem!important}.mb-lg-2,.my-lg-2{margin-bottom:.5rem!important}.ml-lg-2,.mx-lg-2{margin-left:.5rem!important}.m-lg-3{margin:1rem!important}.mt-lg-3,.my-lg-3{margin-top:1rem!important}.mr-lg-3,.mx-lg-3{margin-right:1rem!important}.mb-lg-3,.my-lg-3{margin-bottom:1rem!important}.ml-lg-3,.mx-lg-3{margin-left:1rem!important}.m-lg-4{margin:1.5rem!important}.mt-lg-4,.my-lg-4{margin-top:1.5rem!important}.mr-lg-4,.mx-lg-4{margin-right:1.5rem!important}.mb-lg-4,.my-lg-4{margin-bottom:1.5rem!important}.ml-lg-4,.mx-lg-4{margin-left:1.5rem!important}.m-lg-5{margin:3rem!important}.mt-lg-5,.my-lg-5{margin-top:3rem!important}.mr-lg-5,.mx-lg-5{margin-right:3rem!important}.mb-lg-5,.my-lg-5{margin-bottom:3rem!important}.ml-lg-5,.mx-lg-5{margin-left:3rem!important}.p-lg-0{padding:0!important}.pt-lg-0,.py-lg-0{padding-top:0!important}.pr-lg-0,.px-lg-0{padding-right:0!important}.pb-lg-0,.py-lg-0{padding-bottom:0!important}.pl-lg-0,.px-lg-0{padding-left:0!important}.p-lg-1{padding:.25rem!important}.pt-lg-1,.py-lg-1{padding-top:.25rem!important}.pr-lg-1,.px-lg-1{padding-right:.25rem!important}.pb-lg-1,.py-lg-1{padding-bottom:.25rem!important}.pl-lg-1,.px-lg-1{padding-left:.25rem!important}.p-lg-2{padding:.5rem!important}.pt-lg-2,.py-lg-2{padding-top:.5rem!important}.pr-lg-2,.px-lg-2{padding-right:.5rem!important}.pb-lg-2,.py-lg-2{padding-bottom:.5rem!important}.pl-lg-2,.px-lg-2{padding-left:.5rem!important}.p-lg-3{padding:1rem!important}.pt-lg-3,.py-lg-3{padding-top:1rem!important}.pr-lg-3,.px-lg-3{padding-right:1rem!important}.pb-lg-3,.py-lg-3{padding-bottom:1rem!important}.pl-lg-3,.px-lg-3{padding-left:1rem!important}.p-lg-4{padding:1.5rem!important}.pt-lg-4,.py-lg-4{padding-top:1.5rem!important}.pr-lg-4,.px-lg-4{padding-right:1.5rem!important}.pb-lg-4,.py-lg-4{padding-bottom:1.5rem!important}.pl-lg-4,.px-lg-4{padding-left:1.5rem!important}.p-lg-5{padding:3rem!important}.pt-lg-5,.py-lg-5{padding-top:3rem!important}.pr-lg-5,.px-lg-5{padding-right:3rem!important}.pb-lg-5,.py-lg-5{padding-bottom:3rem!important}.pl-lg-5,.px-lg-5{padding-left:3rem!important}.m-lg-auto{margin:auto!important}.mt-lg-auto,.my-lg-auto{margin-top:auto!important}.mr-lg-auto,.mx-lg-auto{margin-right:auto!important}.mb-lg-auto,.my-lg-auto{margin-bottom:auto!important}.ml-lg-auto,.mx-lg-auto{margin-left:auto!important}}@media (min-width:1200px){.m-xl-0{margin:0!important}.mt-xl-0,.my-xl-0{margin-top:0!important}.mr-xl-0,.mx-xl-0{margin-right:0!important}.mb-xl-0,.my-xl-0{margin-bottom:0!important}.ml-xl-0,.mx-xl-0{margin-left:0!important}.m-xl-1{margin:.25rem!important}.mt-xl-1,.my-xl-1{margin-top:.25rem!important}.mr-xl-1,.mx-xl-1{margin-right:.25rem!important}.mb-xl-1,.my-xl-1{margin-bottom:.25rem!important}.ml-xl-1,.mx-xl-1{margin-left:.25rem!important}.m-xl-2{margin:.5rem!important}.mt-xl-2,.my-xl-2{margin-top:.5rem!important}.mr-xl-2,.mx-xl-2{margin-right:.5rem!important}.mb-xl-2,.my-xl-2{margin-bottom:.5rem!important}.ml-xl-2,.mx-xl-2{margin-left:.5rem!important}.m-xl-3{margin:1rem!important}.mt-xl-3,.my-xl-3{margin-top:1rem!important}.mr-xl-3,.mx-xl-3{margin-right:1rem!important}.mb-xl-3,.my-xl-3{margin-bottom:1rem!important}.ml-xl-3,.mx-xl-3{margin-left:1rem!important}.m-xl-4{margin:1.5rem!important}.mt-xl-4,.my-xl-4{margin-top:1.5rem!important}.mr-xl-4,.mx-xl-4{margin-right:1.5rem!important}.mb-xl-4,.my-xl-4{margin-bottom:1.5rem!important}.ml-xl-4,.mx-xl-4{margin-left:1.5rem!important}.m-xl-5{margin:3rem!important}.mt-xl-5,.my-xl-5{margin-top:3rem!important}.mr-xl-5,.mx-xl-5{margin-right:3rem!important}.mb-xl-5,.my-xl-5{margin-bottom:3rem!important}.ml-xl-5,.mx-xl-5{margin-left:3rem!important}.p-xl-0{padding:0!important}.pt-xl-0,.py-xl-0{padding-top:0!important}.pr-xl-0,.px-xl-0{padding-right:0!important}.pb-xl-0,.py-xl-0{padding-bottom:0!important}.pl-xl-0,.px-xl-0{padding-left:0!important}.p-xl-1{padding:.25rem!important}.pt-xl-1,.py-xl-1{padding-top:.25rem!important}.pr-xl-1,.px-xl-1{padding-right:.25rem!important}.pb-xl-1,.py-xl-1{padding-bottom:.25rem!important}.pl-xl-1,.px-xl-1{padding-left:.25rem!important}.p-xl-2{padding:.5rem!important}.pt-xl-2,.py-xl-2{padding-top:.5rem!important}.pr-xl-2,.px-xl-2{padding-right:.5rem!important}.pb-xl-2,.py-xl-2{padding-bottom:.5rem!important}.pl-xl-2,.px-xl-2{padding-left:.5rem!important}.p-xl-3{padding:1rem!important}.pt-xl-3,.py-xl-3{padding-top:1rem!important}.pr-xl-3,.px-xl-3{padding-right:1rem!important}.pb-xl-3,.py-xl-3{padding-bottom:1rem!important}.pl-xl-3,.px-xl-3{padding-left:1rem!important}.p-xl-4{padding:1.5rem!important}.pt-xl-4,.py-xl-4{padding-top:1.5rem!important}.pr-xl-4,.px-xl-4{padding-right:1.5rem!important}.pb-xl-4,.py-xl-4{padding-bottom:1.5rem!important}.pl-xl-4,.px-xl-4{padding-left:1.5rem!important}.p-xl-5{padding:3rem!important}.pt-xl-5,.py-xl-5{padding-top:3rem!important}.pr-xl-5,.px-xl-5{padding-right:3rem!important}.pb-xl-5,.py-xl-5{padding-bottom:3rem!important}.pl-xl-5,.px-xl-5{padding-left:3rem!important}.m-xl-auto{margin:auto!important}.mt-xl-auto,.my-xl-auto{margin-top:auto!important}.mr-xl-auto,.mx-xl-auto{margin-right:auto!important}.mb-xl-auto,.my-xl-auto{margin-bottom:auto!important}.ml-xl-auto,.mx-xl-auto{margin-left:auto!important}}.text-monospace{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}.text-justify{text-align:justify!important}.text-nowrap{white-space:nowrap!important}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}@media (min-width:576px){.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.font-weight-light{font-weight:300!important}.font-weight-normal{font-weight:400!important}.font-weight-bold{font-weight:700!important}.font-italic{font-style:italic!important}.text-white{color:#fff!important}.text-primary{color:#007bff!important}a.text-primary:focus,a.text-primary:hover{color:#0062cc!important}.text-secondary{color:#6c757d!important}a.text-secondary:focus,a.text-secondary:hover{color:#545b62!important}.text-success{color:#28a745!important}a.text-success:focus,a.text-success:hover{color:#1e7e34!important}.text-info{color:#17a2b8!important}a.text-info:focus,a.text-info:hover{color:#117a8b!important}.text-warning{color:#ffc107!important}a.text-warning:focus,a.text-warning:hover{color:#d39e00!important}.text-danger{color:#dc3545!important}a.text-danger:focus,a.text-danger:hover{color:#bd2130!important}.text-light{color:#f8f9fa!important}a.text-light:focus,a.text-light:hover{color:#dae0e5!important}.text-dark{color:#343a40!important}a.text-dark:focus,a.text-dark:hover{color:#1d2124!important}.text-body{color:#212529!important}.text-muted{color:#6c757d!important}.text-black-50{color:rgba(0,0,0,.5)!important}.text-white-50{color:rgba(255,255,255,.5)!important}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media print{*,::after,::before{text-shadow:none!important;box-shadow:none!important}a:not(.btn){text-decoration:underline}abbr[title]::after{content:" (" attr(title) ")"}pre{white-space:pre-wrap!important}blockquote,pre{border:1px solid #adb5bd;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}@page{size:a3}body{min-width:992px!important}.container{min-width:992px!important}.navbar{display:none}.badge{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #dee2e6!important}.table-dark{color:inherit}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#dee2e6}.table .thead-dark th{color:inherit;border-color:#dee2e6}}code[class*=language-],pre[class*=language-]{color:#000;background:0 0;text-shadow:0 1px #fff;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}/*! ======================================================= + VERSION 10.4.2 +========================================================= *//*! ========================================================= + * bootstrap-slider.js + * + * Maintainers: + * Kyle Kemp + * - Twitter: @seiyria + * - Github: seiyria + * Rohit Kalkur + * - Twitter: @Rovolutionary + * - Github: rovolution + * + * ========================================================= + * + * bootstrap-slider is released under the MIT License + * Copyright (c) 2017 Kyle Kemp, Rohit Kalkur, and contributors + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * ========================================================= */.slider{display:inline-block;vertical-align:middle;position:relative}.slider.slider-horizontal{width:210px;height:20px}.slider.slider-horizontal .slider-track{height:10px;width:100%;margin-top:-5px;top:50%;left:0}.slider.slider-horizontal .slider-selection,.slider.slider-horizontal .slider-track-high,.slider.slider-horizontal .slider-track-low{height:100%;top:0;bottom:0}.slider.slider-horizontal .slider-handle,.slider.slider-horizontal .slider-tick{margin-left:-10px}.slider.slider-horizontal .slider-handle.triangle,.slider.slider-horizontal .slider-tick.triangle{position:relative;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);border-width:0 10px 10px 10px;width:0;height:0;border-bottom-color:#2e6da4;margin-top:0}.slider.slider-horizontal .slider-tick-container{white-space:nowrap;position:absolute;top:0;left:0;width:100%}.slider.slider-horizontal .slider-tick-label-container{white-space:nowrap;margin-top:20px}.slider.slider-horizontal .slider-tick-label-container .slider-tick-label{padding-top:4px;display:inline-block;text-align:center}.slider.slider-horizontal .tooltip{-webkit-transform:translateX(-50%);transform:translateX(-50%)}.slider.slider-horizontal.slider-rtl .slider-track{left:initial;right:0}.slider.slider-horizontal.slider-rtl .slider-handle,.slider.slider-horizontal.slider-rtl .slider-tick{margin-left:initial;margin-right:-10px}.slider.slider-horizontal.slider-rtl .slider-tick-container{left:initial;right:0}.slider.slider-horizontal.slider-rtl .tooltip{-webkit-transform:translateX(50%);transform:translateX(50%)}.slider.slider-vertical{height:210px;width:20px}.slider.slider-vertical .slider-track{width:10px;height:100%;left:25%;top:0}.slider.slider-vertical .slider-selection{width:100%;left:0;top:0;bottom:0}.slider.slider-vertical .slider-track-high,.slider.slider-vertical .slider-track-low{width:100%;left:0;right:0}.slider.slider-vertical .slider-handle,.slider.slider-vertical .slider-tick{margin-top:-10px}.slider.slider-vertical .slider-handle.triangle,.slider.slider-vertical .slider-tick.triangle{border-width:10px 0 10px 10px;width:1px;height:1px;border-left-color:#2e6da4;border-right-color:#2e6da4;margin-left:0;margin-right:0}.slider.slider-vertical .slider-tick-label-container{white-space:nowrap}.slider.slider-vertical .slider-tick-label-container .slider-tick-label{padding-left:4px}.slider.slider-vertical .tooltip{-webkit-transform:translateY(-50%);transform:translateY(-50%)}.slider.slider-vertical.slider-rtl .slider-track{left:initial;right:25%}.slider.slider-vertical.slider-rtl .slider-selection{left:initial;right:0}.slider.slider-vertical.slider-rtl .slider-handle.triangle,.slider.slider-vertical.slider-rtl .slider-tick.triangle{border-width:10px 10px 10px 0}.slider.slider-vertical.slider-rtl .slider-tick-label-container .slider-tick-label{padding-left:initial;padding-right:4px}.slider.slider-disabled .slider-handle{background-image:linear-gradient(to bottom,#dfdfdf 0,#bebebe 100%);background-repeat:repeat-x}.slider.slider-disabled .slider-track{background-image:linear-gradient(to bottom,#e5e5e5 0,#e9e9e9 100%);background-repeat:repeat-x;cursor:not-allowed}.slider input{display:none}.slider .tooltip{pointer-events:none}.slider .tooltip.top{margin-top:-36px}.slider .tooltip-inner{white-space:nowrap;max-width:none}.slider .hide{display:none}.slider-track{position:absolute;cursor:pointer;background-image:linear-gradient(to bottom,#f5f5f5 0,#f9f9f9 100%);background-repeat:repeat-x;box-shadow:inset 0 1px 2px rgba(0,0,0,.1);border-radius:4px}.slider-selection{position:absolute;background-image:linear-gradient(to bottom,#f9f9f9 0,#f5f5f5 100%);background-repeat:repeat-x;box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-sizing:border-box;border-radius:4px}.slider-selection.tick-slider-selection{background-image:linear-gradient(to bottom,#8ac1ef 0,#82b3de 100%);background-repeat:repeat-x}.slider-track-high,.slider-track-low{position:absolute;background:0 0;box-sizing:border-box;border-radius:4px}.slider-handle{position:absolute;top:0;width:20px;height:20px;background-color:#337ab7;background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);background-repeat:repeat-x;-webkit-filter:none;filter:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);border:0 solid transparent}.slider-handle:hover{cursor:pointer}.slider-handle.round{border-radius:50%}.slider-handle.triangle{background:transparent none}.slider-handle.custom{background:transparent none}.slider-handle.custom::before{line-height:20px;font-size:20px;content:"★";color:#726204}.slider-tick{position:absolute;cursor:pointer;width:20px;height:20px;background-image:linear-gradient(to bottom,#f9f9f9 0,#f5f5f5 100%);background-repeat:repeat-x;box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-sizing:border-box;-webkit-filter:none;filter:none;opacity:.8;border:0 solid transparent}.slider-tick.round{border-radius:50%}.slider-tick.triangle{background:transparent none}.slider-tick.custom{background:transparent none}.slider-tick.custom::before{line-height:20px;font-size:20px;content:"★";color:#726204}.slider-tick.in-selection{background-image:linear-gradient(to bottom,#8ac1ef 0,#82b3de 100%);background-repeat:repeat-x;opacity:1}.tag-element text{text-anchor:middle}.row-drag{stroke-width:2;stroke-dasharray:2,1;stroke:rgba(100,100,100,.3);transition:stroke .3s ease;cursor:row-resize}.row-drag-compact{cursor:default}.row-drag:hover{stroke-dasharray:none;stroke:rgba(100,100,100,.8)}.word text{font-size:16px;fill:#000}.word path,.word-cluster path{stroke:#333;fill:none}.word .word-text{cursor:pointer}.word .word-tag,.word-cluster text{font-size:12px;cursor:text}.word .word-tag,.word-cluster text{fill:#333}.word .syntax-tag{fill:#d0968f}.toggle-syntax .syntax-link,.toggle-syntax .syntax-tag{display:none}.editing .word-tag,.editing text,.editing-text{fill:#fff!important}.editing rect,.editing-rect{fill:#a94442}.link{fill:#6590b4;stroke-width:1.5px}.link-main-label{font-weight:700;font-size:12px}.link-arg-label{font-size:11px}.link-text-bg{fill:#fff}.link.syntax-link{fill:#999}.link:hover{stroke-width:2.5px}.link path{stroke:#6590b4;fill:none}.syntax-link path{stroke:#999;fill:none}#tag-taxonomy-editor{border:1px solid #d3d3d3}#tag-taxonomy-editor pre{background:0 0;padding:10px;font-size:13px;line-height:20px;white-space:pre;position:absolute;top:0;left:0;overflow:auto;margin:0!important;outline:0;text-align:left}#tag-taxonomy-editor code{line-height:20px}#tag-taxonomy-editor .codeflask{min-height:400px;position:relative}#tag-taxonomy-tree div.collapse+a.card-header{border-top:1px solid rgba(0,0,0,.125)}[data-toggle=collapse] i.fas:before{content:""}[data-toggle=collapse].collapsed i.fas:before{content:""}/*! + * Bootstrap Colorpicker - Bootstrap Colorpicker is a modular color picker plugin for Bootstrap 4. + * @package bootstrap-colorpicker + * @version v3.0.3 + * @license MIT + * @link https://farbelous.github.io/bootstrap-colorpicker/ + * @link https://github.com/farbelous/bootstrap-colorpicker.git + */.colorpicker{position:relative;display:none;font-size:inherit;color:inherit;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);padding:.75rem .75rem;width:148px;border-radius:4px;box-sizing:content-box}.colorpicker.colorpicker-disabled,.colorpicker.colorpicker-disabled *{cursor:default!important}.colorpicker div{position:relative}.colorpicker-popup{position:absolute;top:100%;left:0;float:left;margin-top:1px;z-index:1060}.colorpicker-popup.colorpicker-bs-popover-content{position:relative;top:auto;left:auto;float:none;margin:0;z-index:initial;border:none;padding:.25rem 0;border-radius:0;background:0 0;box-shadow:none}.colorpicker:after,.colorpicker:before{content:"";display:table;clear:both;line-height:0}.colorpicker-clear{clear:both;display:block}.colorpicker:before{content:"";display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0,0,0,.2);position:absolute;top:-7px;left:auto;right:6px}.colorpicker:after{content:"";display:inline-block;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;position:absolute;top:-6px;left:auto;right:7px}.colorpicker.colorpicker-with-alpha{width:170px}.colorpicker.colorpicker-with-alpha .colorpicker-alpha{display:block}.colorpicker-saturation{position:relative;width:126px;height:126px;background:linear-gradient(to bottom,transparent 0,#000 100%),linear-gradient(to right,#fff 0,rgba(255,255,255,0) 100%);cursor:crosshair;float:left;box-shadow:0 0 0 1px rgba(0,0,0,.2);margin-bottom:6px}.colorpicker-saturation .colorpicker-guide{display:block;height:6px;width:6px;border-radius:6px;border:1px solid #000;box-shadow:0 0 0 1px rgba(255,255,255,.8);position:absolute;top:0;left:0;margin:-3px 0 0 -3px}.colorpicker-alpha,.colorpicker-hue{position:relative;width:16px;height:126px;float:left;cursor:row-resize;margin-left:6px;margin-bottom:6px}.colorpicker-alpha-color{position:absolute;top:0;left:0;width:100%;height:100%}.colorpicker-alpha-color,.colorpicker-hue{box-shadow:0 0 0 1px rgba(0,0,0,.2)}.colorpicker-alpha .colorpicker-guide,.colorpicker-hue .colorpicker-guide{display:block;height:4px;background:rgba(255,255,255,.8);border:1px solid rgba(0,0,0,.4);position:absolute;top:0;left:0;margin-left:-2px;margin-top:-2px;right:-2px;z-index:1}.colorpicker-hue{background:linear-gradient(to top,red 0,#ff8000 8%,#ff0 17%,#80ff00 25%,#0f0 33%,#00ff80 42%,#0ff 50%,#0080ff 58%,#00f 67%,#8000ff 75%,#ff00ff 83%,#ff0080 92%,red 100%)}.colorpicker-alpha{background:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.1) 75%,rgba(0,0,0,.1) 0),linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.1) 75%,rgba(0,0,0,.1) 0),#fff;background-size:10px 10px;background-position:0 0,5px 5px;display:none}.colorpicker-bar{min-height:16px;margin:6px 0 0 0;clear:both;text-align:center;font-size:10px;line-height:normal;max-width:100%;box-shadow:0 0 0 1px rgba(0,0,0,.2)}.colorpicker-bar:before{content:"";display:table;clear:both}.colorpicker-bar.colorpicker-bar-horizontal{height:126px;width:16px;margin:0 0 6px 0;float:left}.colorpicker-input-addon{position:relative}.colorpicker-input-addon i{display:inline-block;cursor:pointer;vertical-align:text-top;height:16px;width:16px;position:relative}.colorpicker-input-addon:before{content:"";position:absolute;width:16px;height:16px;display:inline-block;vertical-align:text-top;background:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.1) 75%,rgba(0,0,0,.1) 0),linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.1) 75%,rgba(0,0,0,.1) 0),#fff;background-size:10px 10px;background-position:0 0,5px 5px}.colorpicker.colorpicker-inline{position:relative;display:inline-block;float:none;z-index:auto;vertical-align:text-bottom}.colorpicker.colorpicker-horizontal{width:126px;height:auto}.colorpicker.colorpicker-horizontal .colorpicker-bar{width:126px}.colorpicker.colorpicker-horizontal .colorpicker-saturation{float:none;margin-bottom:0}.colorpicker.colorpicker-horizontal .colorpicker-alpha,.colorpicker.colorpicker-horizontal .colorpicker-hue{float:none;width:126px;height:16px;cursor:col-resize;margin-left:0;margin-top:6px;margin-bottom:0}.colorpicker.colorpicker-horizontal .colorpicker-alpha .colorpicker-guide,.colorpicker.colorpicker-horizontal .colorpicker-hue .colorpicker-guide{position:absolute;display:block;bottom:-2px;left:0;right:auto;height:auto;width:4px}.colorpicker.colorpicker-horizontal .colorpicker-hue{background:linear-gradient(to left,red 0,#ff8000 8%,#ff0 17%,#80ff00 25%,#0f0 33%,#00ff80 42%,#0ff 50%,#0080ff 58%,#00f 67%,#8000ff 75%,#ff00ff 83%,#ff0080 92%,red 100%)}.colorpicker.colorpicker-horizontal .colorpicker-alpha{background:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.1) 75%,rgba(0,0,0,.1) 0),linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.1) 75%,rgba(0,0,0,.1) 0),#fff;background-size:10px 10px;background-position:0 0,5px 5px}.colorpicker-inline:before,.colorpicker-no-arrow:before,.colorpicker-popup.colorpicker-bs-popover-content:before{content:none;display:none}.colorpicker-inline:after,.colorpicker-no-arrow:after,.colorpicker-popup.colorpicker-bs-popover-content:after{content:none;display:none}.colorpicker-alpha.colorpicker-visible,.colorpicker-bar.colorpicker-visible,.colorpicker-hue.colorpicker-visible,.colorpicker-saturation.colorpicker-visible,.colorpicker.colorpicker-visible{display:block}.colorpicker-alpha.colorpicker-hidden,.colorpicker-bar.colorpicker-hidden,.colorpicker-hue.colorpicker-hidden,.colorpicker-saturation.colorpicker-hidden,.colorpicker.colorpicker-hidden{display:none}.colorpicker-inline.colorpicker-visible{display:inline-block}.colorpicker.colorpicker-disabled:after{border:none;content:"";display:block;width:100%;height:100%;background:rgba(233,236,239,.33);top:0;left:0;right:auto;z-index:2;position:absolute}.colorpicker.colorpicker-disabled .colorpicker-guide{display:none}.colorpicker-preview{background:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.1) 75%,rgba(0,0,0,.1) 0),linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.1) 75%,rgba(0,0,0,.1) 0),#fff;background-size:10px 10px;background-position:0 0,5px 5px}.colorpicker-preview>div{position:absolute;left:0;top:0;width:100%;height:100%}.colorpicker-bar.colorpicker-swatches{box-shadow:none;height:auto}.colorpicker-swatches--inner{clear:both;margin-top:-6px}.colorpicker-swatch{position:relative;cursor:pointer;float:left;height:16px;width:16px;margin-right:6px;margin-top:6px;margin-left:0;display:block;box-shadow:0 0 0 1px rgba(0,0,0,.2);background:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.1) 75%,rgba(0,0,0,.1) 0),linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.1) 75%,rgba(0,0,0,.1) 0),#fff;background-size:10px 10px;background-position:0 0,5px 5px}.colorpicker-swatch--inner{position:absolute;top:0;left:0;width:100%;height:100%}.colorpicker-swatch:nth-of-type(7n+0){margin-right:0}.colorpicker-with-alpha .colorpicker-swatch:nth-of-type(7n+0){margin-right:6px}.colorpicker-with-alpha .colorpicker-swatch:nth-of-type(8n+0){margin-right:0}.colorpicker-horizontal .colorpicker-swatch:nth-of-type(6n+0){margin-right:0}.colorpicker-horizontal .colorpicker-swatch:nth-of-type(7n+0){margin-right:6px}.colorpicker-horizontal .colorpicker-swatch:nth-of-type(8n+0){margin-right:6px}.colorpicker-swatch:last-of-type:after{content:"";display:table;clear:both}.colorpicker-element input[dir=rtl],.colorpicker-element[dir=rtl] input,[dir=rtl] .colorpicker-element input{direction:ltr;text-align:right}.tag-cp input[type=text]{width:100px}.slider.slider-horizontal{width:300px}.slider-selection{background:#337ab7;opacity:.75}svg,svg text{font-family:Nunito,futura,helvetica,arial,sans-serif;font-weight:600}svg text{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none} \ No newline at end of file diff --git a/demo/demo.min.css.map b/demo/demo.min.css.map new file mode 100644 index 0000000..c802789 --- /dev/null +++ b/demo/demo.min.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["src/demo.scss","../node_modules/bootstrap/scss/bootstrap.scss","../node_modules/bootstrap/scss/_root.scss","../node_modules/bootstrap/scss/_reboot.scss","../node_modules/bootstrap/scss/_variables.scss","../node_modules/bootstrap/scss/mixins/_hover.scss","../node_modules/bootstrap/scss/_type.scss","../node_modules/bootstrap/scss/mixins/_lists.scss","../node_modules/bootstrap/scss/_images.scss","../node_modules/bootstrap/scss/mixins/_image.scss","../node_modules/bootstrap/scss/mixins/_border-radius.scss","../node_modules/bootstrap/scss/_code.scss","../node_modules/bootstrap/scss/_grid.scss","../node_modules/bootstrap/scss/mixins/_grid.scss","../node_modules/bootstrap/scss/mixins/_breakpoints.scss","../node_modules/bootstrap/scss/mixins/_grid-framework.scss","../node_modules/bootstrap/scss/_tables.scss","../node_modules/bootstrap/scss/mixins/_table-row.scss","../node_modules/bootstrap/scss/_forms.scss","../node_modules/bootstrap/scss/mixins/_transition.scss","../node_modules/bootstrap/scss/mixins/_forms.scss","../node_modules/bootstrap/scss/mixins/_gradients.scss","../node_modules/bootstrap/scss/_buttons.scss","../node_modules/bootstrap/scss/mixins/_buttons.scss","../node_modules/bootstrap/scss/_transitions.scss","../node_modules/bootstrap/scss/_dropdown.scss","../node_modules/bootstrap/scss/mixins/_caret.scss","../node_modules/bootstrap/scss/mixins/_nav-divider.scss","../node_modules/bootstrap/scss/_button-group.scss","../node_modules/bootstrap/scss/_input-group.scss","../node_modules/bootstrap/scss/_custom-forms.scss","../node_modules/bootstrap/scss/_nav.scss","../node_modules/bootstrap/scss/_navbar.scss","../node_modules/bootstrap/scss/_card.scss","../node_modules/bootstrap/scss/_breadcrumb.scss","../node_modules/bootstrap/scss/_pagination.scss","../node_modules/bootstrap/scss/mixins/_pagination.scss","../node_modules/bootstrap/scss/_badge.scss","../node_modules/bootstrap/scss/mixins/_badge.scss","../node_modules/bootstrap/scss/_jumbotron.scss","../node_modules/bootstrap/scss/_alert.scss","../node_modules/bootstrap/scss/mixins/_alert.scss","../node_modules/bootstrap/scss/_progress.scss","../node_modules/bootstrap/scss/_media.scss","../node_modules/bootstrap/scss/_list-group.scss","../node_modules/bootstrap/scss/mixins/_list-group.scss","../node_modules/bootstrap/scss/_close.scss","../node_modules/bootstrap/scss/_modal.scss","../node_modules/bootstrap/scss/_tooltip.scss","../node_modules/bootstrap/scss/mixins/_reset-text.scss","../node_modules/bootstrap/scss/_popover.scss","../node_modules/bootstrap/scss/_carousel.scss","../node_modules/bootstrap/scss/utilities/_align.scss","../node_modules/bootstrap/scss/mixins/_background-variant.scss","../node_modules/bootstrap/scss/utilities/_background.scss","../node_modules/bootstrap/scss/utilities/_borders.scss","../node_modules/bootstrap/scss/mixins/_clearfix.scss","../node_modules/bootstrap/scss/utilities/_display.scss","../node_modules/bootstrap/scss/utilities/_embed.scss","../node_modules/bootstrap/scss/utilities/_flex.scss","../node_modules/bootstrap/scss/utilities/_float.scss","../node_modules/bootstrap/scss/mixins/_float.scss","../node_modules/bootstrap/scss/utilities/_position.scss","../node_modules/bootstrap/scss/utilities/_screenreaders.scss","../node_modules/bootstrap/scss/mixins/_screen-reader.scss","../node_modules/bootstrap/scss/utilities/_shadows.scss","../node_modules/bootstrap/scss/utilities/_sizing.scss","../node_modules/bootstrap/scss/utilities/_spacing.scss","../node_modules/bootstrap/scss/utilities/_text.scss","../node_modules/bootstrap/scss/mixins/_text-truncate.scss","../node_modules/bootstrap/scss/mixins/_text-emphasis.scss","../node_modules/bootstrap/scss/mixins/_text-hide.scss","../node_modules/bootstrap/scss/utilities/_visibility.scss","../node_modules/bootstrap/scss/mixins/_visibility.scss","../node_modules/bootstrap/scss/_print.scss","../node_modules/prismjs/themes/prism.css","../node_modules/bootstrap-slider/dist/css/bootstrap-slider.css","../dist/tag/css/tag.css","../node_modules/bootstrap-colorpicker/dist/css/bootstrap-colorpicker.css"],"names":[],"mappings":";AAAA;AAAA;AAAA;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AD+EQ;AE/ER;EAGI;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAIA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAIA;EAAA;EAAA;EAAA;EAAA;EAKF;EACA;;;ACGF;AAAA;AAAA;EAGE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAKA;EACE;;AAMJ;EACE;;;AAWF;EACE;EACA,aCgM4B;ED/L5B,WCoM4B;EDnM5B,aCwM4B;EDvM5B,aC2M4B;ED1M5B,OC3CS;ED4CT;EACA,kBCtDS;;;AD8DX;EACE;;;AASF;EACE;EACA;EACA;;;AAaF;EACE;EACA,eC6K4B;;;ADrK9B;EACE;EACA,eCkE0B;;;ADxD5B;AAAA;EAEE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;AAAA;AAAA;EAGE;EACA;;;AAGF;AAAA;AAAA;AAAA;EAIE;;;AAGF;EACE,aCgH4B;;;AD7G9B;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAIF;AAAA;EAEE;;;AAIF;EACE;;;AAQF;AAAA;EAEE;EACA;EACA;EACA;;;AAGF;EAAM;;;AACN;EAAM;;;AAON;EACE,OC/B0B;EDgC1B,iBC/B0B;EDgC1B;EACA;;AE7LA;EFgME,OCnCwB;EDoCxB,iBCnCwB;;;AD6C5B;EACE;EACA;;AEzMA;EF4ME;EACA;;AAGF;EACE;;;AASJ;AAAA;AAAA;AAAA;EAIE,aCa4B;EDZ5B;;;AAGF;EAEE;EAEA;EAEA;EAGA;;;AAQF;EAEE;;;AAQF;EACE;EACA;;;AAGF;EAGE;EACA;;;AAQF;EACE;;;AAGF;EACE,aC8B4B;ED7B5B,gBC6B4B;ED5B5B,OCrRS;EDsRT;EACA;;;AAGF;EAGE;;;AAQF;EAEE;EACA,eC+FsC;;;ADzFxC;EACE;;;AAOF;EACE;EACA;;;AAGF;AAAA;AAAA;AAAA;AAAA;EAKE;EACA;EACA;EACA;;;AAGF;AAAA;EAEE;;;AAGF;AAAA;EAEE;;;AAMF;AAAA;AAAA;AAAA;EAIE;;;AAIF;AAAA;AAAA;AAAA;EAIE;EACA;;;AAGF;AAAA;EAEE;EACA;;;AAIF;AAAA;AAAA;AAAA;EASE;;;AAGF;EACE;EAEA;;;AAGF;EAME;EAEA;EACA;EACA;;;AAKF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAIF;AAAA;EAEE;;;AAGF;EAKE;EACA;;;AAOF;AAAA;EAEE;;;AAQF;EACE;EACA;;;AAOF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAKF;EACE;;;AG3dF;AAAA;EAEE,eFyQ4B;EExQ5B,aFyQ4B;EExQ5B,aFyQ4B;EExQ5B,aFyQ4B;EExQ5B,OFyQ4B;;;AEtQ9B;EAAU,WF2PoB;;;AE1P9B;EAAU,WF2PoB;;;AE1P9B;EAAU,WF2PoB;;;AE1P9B;EAAU,WF2PoB;;;AE1P9B;EAAU,WF2PoB;;;AE1P9B;EAAU,WF2OoB;;;AEzO9B;EACE,WF2Q4B;EE1Q5B,aF2Q4B;;;AEvQ9B;EACE,WF0P4B;EEzP5B,aF8P4B;EE7P5B,aFqP4B;;;AEnP9B;EACE,WFsP4B;EErP5B,aF0P4B;EEzP5B,aFgP4B;;;AE9O9B;EACE,WFkP4B;EEjP5B,aFsP4B;EErP5B,aF2O4B;;;AEzO9B;EACE,WF8O4B;EE7O5B,aFkP4B;EEjP5B,aFsO4B;;;AE9N9B;EACE,YFwEO;EEvEP,eFuEO;EEtEP;EACA;;;AAQF;AAAA;EAEE,WFiO4B;EEhO5B,aF+L4B;;;AE5L9B;AAAA;EAEE,SFqO4B;EEpO5B,kBF6O4B;;;AErO9B;EC/EE;EACA;;;ADmFF;ECpFE;EACA;;;ADsFF;EACE;;AAEA;EACE,cFuN0B;;;AE7M9B;EACE;EACA;;;AAIF;EACE,eFeO;EEdP,WFyL4B;;;AEtL9B;EACE;EACA;EACA,OFvGS;;AEyGT;EACE;;;AEnHJ;ECIE;EAGA;;;ADDF;EACE,SJ61BkC;EI51BlC,kBJLS;EIMT;EEZE,eN+N0B;EKxN5B;EAGA;;;ADcF;EAEE;;;AAGF;EACE;EACA;;;AAGF;EACE,WJ80BkC;EI70BlC,OJxBS;;;AOfX;EACE,WPs6BkC;EOr6BlC,OPwCQ;EOvCR;;AAGA;EACE;;;AAKJ;EACE;EACA,WPy5BkC;EOx5BlC,OPNS;EOOT,kBPES;EMfP,eNiO0B;;AOhN5B;EACE;EACA;EACA,aP6O0B;;;AOvO9B;EACE;EACA,WPw4BkC;EOv4BlC,OPdS;;AOiBT;EACE;EACA;EACA;;;AAKJ;EACE,YPq4BkC;EOp4BlC;;;ACzCA;ECAA;EACA;EACA;EACA;EACA;;ACmDE;EFvDF;ICYI,WTuLiB;;;AU5InB;EFvDF;ICYI,WTuLiB;;;AU5InB;EFvDF;ICYI,WTuLiB;;;AU5InB;EFvDF;ICYI,WTuLiB;;;;AQvLrB;ECZA;EACA;EACA;EACA;EACA;;;ADkBA;ECJA;EACA;EACA;EACA;;;ADOA;EACE;EACA;;AAEA;AAAA;EAEE;EACA;;;AGjCJ;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;;;AAmBE;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AAIA;EFFN;EAIA;;;AEFM;EFFN;EAIA;;;AEFM;EFFN;EAIA;;;AEFM;EFFN;EAIA;;;AEFM;EFFN;EAIA;;;AEFM;EFFN;EAIA;;;AEFM;EFFN;EAIA;;;AEFM;EFFN;EAIA;;;AEFM;EFFN;EAIA;;;AEFM;EFFN;EAIA;;;AEFM;EFFN;EAIA;;;AEFM;EFFN;EAIA;;;AEGI;EAAwB;;;AAExB;EAAuB;;;AAGrB;EAAwB,OADb;;;AACX;EAAwB,OADb;;;AACX;EAAwB,OADb;;;AACX;EAAwB,OADb;;;AACX;EAAwB,OADb;;;AACX;EAAwB,OADb;;;AACX;EAAwB,OADb;;;AACX;EAAwB,OADb;;;AACX;EAAwB,OADb;;;AACX;EAAwB,OADb;;;AACX;EAAwB,OADb;;;AACX;EAAwB,OADb;;;AACX;EAAwB,OADb;;;AAOT;EFTR;;;AESQ;EFTR;;;AESQ;EFTR;;;AESQ;EFTR;;;AESQ;EFTR;;;AESQ;EFTR;;;AESQ;EFTR;;;AESQ;EFTR;;;AESQ;EFTR;;;AESQ;EFTR;;;AESQ;EFTR;;;ACUE;EC7BE;IACE;IACA;IACA;;;EAEF;IACE;IACA;IACA;;;EAIA;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEGI;IAAwB;;;EAExB;IAAuB;;;EAGrB;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EAOT;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;ACUE;EC7BE;IACE;IACA;IACA;;;EAEF;IACE;IACA;IACA;;;EAIA;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEGI;IAAwB;;;EAExB;IAAuB;;;EAGrB;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EAOT;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;ACUE;EC7BE;IACE;IACA;IACA;;;EAEF;IACE;IACA;IACA;;;EAIA;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEGI;IAAwB;;;EAExB;IAAuB;;;EAGrB;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EAOT;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;ACUE;EC7BE;IACE;IACA;IACA;;;EAEF;IACE;IACA;IACA;;;EAIA;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEFM;IFFN;IAIA;;;EEGI;IAAwB;;;EAExB;IAAuB;;;EAGrB;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EACX;IAAwB,OADb;;;EAOT;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;EESQ;IFTR;;;AG9CF;EACE;EACA,eZyHO;EYxHP,kBZ6T4B;;AY3T5B;AAAA;EAEE,SZsT0B;EYrT1B;EACA;;AAGF;EACE;EACA;;AAGF;EACE;;AAGF;EACE,kBZhBO;;;AY0BT;AAAA;EAEE,SZ4R0B;;;AYnR9B;EACE;;AAEA;AAAA;EAEE;;AAIA;AAAA;EAEE;;;AAMJ;AAAA;AAAA;AAAA;EAIE;;;AASF;EACE,kBZuP0B;;;ACzT5B;EW8EI,kBZ4OwB;;;AahU1B;AAAA;AAAA;EAGE,kBD6F+B;;;AX1FnC;EYQM,kBAJe;;AAMf;AAAA;EAEE,kBARa;;;AAVnB;AAAA;AAAA;EAGE,kBD6F+B;;;AX1FnC;EYQM,kBAJe;;AAMf;AAAA;EAEE,kBARa;;;AAVnB;AAAA;AAAA;EAGE,kBD6F+B;;;AX1FnC;EYQM,kBAJe;;AAMf;AAAA;EAEE,kBARa;;;AAVnB;AAAA;AAAA;EAGE,kBD6F+B;;;AX1FnC;EYQM,kBAJe;;AAMf;AAAA;EAEE,kBARa;;;AAVnB;AAAA;AAAA;EAGE,kBD6F+B;;;AX1FnC;EYQM,kBAJe;;AAMf;AAAA;EAEE,kBARa;;;AAVnB;AAAA;AAAA;EAGE,kBD6F+B;;;AX1FnC;EYQM,kBAJe;;AAMf;AAAA;EAEE,kBARa;;;AAVnB;AAAA;AAAA;EAGE,kBD6F+B;;;AX1FnC;EYQM,kBAJe;;AAMf;AAAA;EAEE,kBARa;;;AAVnB;AAAA;AAAA;EAGE,kBD6F+B;;;AX1FnC;EYQM,kBAJe;;AAMf;AAAA;EAEE,kBARa;;;AAVnB;AAAA;AAAA;EAGE,kBb6TwB;;;AC1T5B;EYQM,kBAJe;;AAMf;AAAA;EAEE,kBARa;;;ADmGnB;EACE,OZ1GK;EY2GL,kBZlGK;EYmGL,cZ4NwB;;AYvN1B;EACE,OZ3GK;EY4GL,kBZjHK;EYkHL,cZjHK;;;AYsHX;EACE,OZ1HS;EY2HT,kBZlHS;;AYoHT;AAAA;AAAA;EAGE,cZwM0B;;AYrM5B;EACE;;AAIA;EACE,kBZ6LwB;;ACpU5B;EW8IM,kBZuLsB;;;AUxQ1B;EEkGA;IAEI;IACA;IACA;IACA;IACA;;EAGA;IACE;;;AF5GN;EEkGA;IAEI;IACA;IACA;IACA;IACA;;EAGA;IACE;;;AF5GN;EEkGA;IAEI;IACA;IACA;IACA;IACA;;EAGA;IACE;;;AF5GN;EEkGA;IAEI;IACA;IACA;IACA;IACA;;EAGA;IACE;;;AAVN;EAEI;EACA;EACA;EACA;EACA;;AAGA;EACE;;;AE/KV;EACE;EACA;EACA,QdobsC;EcnbtC;EACA,WdoP4B;EcnP5B,ad4P4B;Ec3P5B,OdIS;EcHT,kBdJS;EcKT;EACA;EAKE,ed8M0B;Ee9NxB,YDuBJ;;ACnBA;EDHF;ICII;;;ADqBF;EACE;EACA;;AEpBF;EACE,OhBGO;EgBFP,kBhBLO;EgBMP,chBkaoC;EgBjapC;EAKE,YhB6UwB;;Ac3T5B;EACE,OdzBO;Ec2BP;;AAQF;EAEE,kBdzCO;Ec2CP;;;AAKF;EAME,OdjDO;EckDP,kBdzDO;;;Ac8DX;AAAA;EAEE;EACA;;;AAUF;EACE;EACA;EACA;EACA;EACA,ad8K4B;;;Ac3K9B;EACE;EACA;EACA,WdgK4B;Ec/J5B,ad4H4B;;;AczH9B;EACE;EACA;EACA,Wd0J4B;EczJ5B,adsH4B;;;Ac7G9B;EACE;EACA;EACA,adyO4B;EcxO5B,gBdwO4B;EcvO5B;EACA,adiJ4B;EchJ5B,OdrGS;EcsGT;EACA;EACA;;AAEA;EAEE;EACA;;;AAYJ;EACE,QdmTsC;EclTtC;EACA,WdkH4B;EcjH5B,ad8E4B;EM1N1B,eNiO0B;;;AcjF9B;EACE,Qd8SsC;Ec7StC;EACA,WdyG4B;EcxG5B,adqE4B;EMzN1B,eNgO0B;;;ActE5B;EAEE;;;AAIJ;EACE;;;AASF;EACE,ediSsC;;;Ac9RxC;EACE;EACA,YdmRsC;;;Ac3QxC;EACE;EACA;EACA;EACA;;AAEA;AAAA;EAEE;EACA;;;AASJ;EACE;EACA;EACA,cdwPsC;;;AcrPxC;EACE;EACA,YdoPsC;EcnPtC;;AAEA;EACE,Od1MO;;;Ac8MX;EACE;;;AAGF;EACE;EACA;EACA;EACA,cduOsC;;AcpOtC;EACE;EACA;EACA,cdkOoC;EcjOpC;;;AEhNF;EACE;EACA;EACA,YhBuaoC;EgBtapC,WhBoQ0B;EgBnQ1B,OhB4hBgC;;;AgBzhBlC;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA,WhBoN0B;EgBnN1B,ahB0N0B;EgBzN1B;EACA;EV5CA,eN+N0B;;;AgB7K1B;AAAA;AAAA;EAEE,chBsgB8B;;AgBpgB9B;AAAA;AAAA;EACE,chBmgB4B;EgBlgB5B;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;;;AAQF;AAAA;AAAA;EAEE;;;AAQF;EACE,OhB0e4B;;AgBve9B;AAAA;AAAA;EAEE;;;AAQF;EACE,OhB4d4B;;AgB1d5B;EACE;;AAIJ;AAAA;AAAA;EAEE;;AAIA;ECzGJ,kBD0G2B;;AAKvB;EACE;;;AAUJ;EACE,chB6b4B;;AgB3b5B;EAAW;;AAGb;AAAA;AAAA;EAEE;;AAIA;EACE;;;AAhHR;EACE;EACA;EACA,YhBuaoC;EgBtapC,WhBoQ0B;EgBnQ1B,OhB6hBgC;;;AgB1hBlC;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA,WhBoN0B;EgBnN1B,ahB0N0B;EgBzN1B;EACA;EV5CA,eN+N0B;;;AgB7K1B;AAAA;AAAA;EAEE,chBugB8B;;AgBrgB9B;AAAA;AAAA;EACE,chBogB4B;EgBngB5B;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;;;AAQF;AAAA;AAAA;EAEE;;;AAQF;EACE,OhB2e4B;;AgBxe9B;AAAA;AAAA;EAEE;;;AAQF;EACE,OhB6d4B;;AgB3d5B;EACE;;AAIJ;AAAA;AAAA;EAEE;;AAIA;ECzGJ,kBD0G2B;;AAKvB;EACE;;;AAUJ;EACE,chB8b4B;;AgB5b5B;EAAW;;AAGb;AAAA;AAAA;EAEE;;AAIA;EACE;;;AFwHV;EACE;EACA;EACA;;AAKA;EACE;;AJlNA;EIuNA;IACE;IACA;IACA;IACA;;EAIF;IACE;IACA;IACA;IACA;IACA;;EAIF;IACE;IACA;IACA;;EAIF;IACE;;EAGF;AAAA;IAEE;;EAKF;IACE;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA,cd2IkC;Ic1IlC;;EAGF;IACE;IACA;;EAEF;IACE;;;;AInUN;EACE;EACA,alB4P4B;EkB3P5B;EACA;EACA;EACA;EACA;ECsFA;EACA,WnB2J4B;EmB1J5B,anBmK4B;EmBhK1B,enB2H0B;Ee9NxB,YGUJ;;AHNA;EGHF;IHII;;;AdMF;EiBGE;;AAGF;EAEE;EACA,YlB0U0B;;AkBtU5B;EAEE,SlBuW0B;;AkBlW5B;EACE;;AAcJ;AAAA;EAEE;;;AASA;ECxDA;EFAE,kBjB6EW;EmB3Eb,cnB2Ea;;ACvEb;EkBAE;EFNA,kBED2D;EAS3D,cATqG;;AAYvG;EAMI;;AAKJ;EAEE;EACA,kBnBoDW;EmBnDX,cnBmDW;;AmBhDb;EAGE;EACA,kBAlC+I;EAsC/I,cAtCyL;;AAwCzL;EAKI;;;ADYN;ECxDA;EFAE,kBjB6EW;EmB3Eb,cnB2Ea;;ACvEb;EkBAE;EFNA,kBED2D;EAS3D,cATqG;;AAYvG;EAMI;;AAKJ;EAEE;EACA,kBnBoDW;EmBnDX,cnBmDW;;AmBhDb;EAGE;EACA,kBAlC+I;EAsC/I,cAtCyL;;AAwCzL;EAKI;;;ADYN;ECxDA;EFAE,kBjB6EW;EmB3Eb,cnB2Ea;;ACvEb;EkBAE;EFNA,kBED2D;EAS3D,cATqG;;AAYvG;EAMI;;AAKJ;EAEE;EACA,kBnBoDW;EmBnDX,cnBmDW;;AmBhDb;EAGE;EACA,kBAlC+I;EAsC/I,cAtCyL;;AAwCzL;EAKI;;;ADYN;ECxDA;EFAE,kBjB6EW;EmB3Eb,cnB2Ea;;ACvEb;EkBAE;EFNA,kBED2D;EAS3D,cATqG;;AAYvG;EAMI;;AAKJ;EAEE;EACA,kBnBoDW;EmBnDX,cnBmDW;;AmBhDb;EAGE;EACA,kBAlC+I;EAsC/I,cAtCyL;;AAwCzL;EAKI;;;ADYN;ECxDA;EFAE,kBjB6EW;EmB3Eb,cnB2Ea;;ACvEb;EkBAE;EFNA,kBED2D;EAS3D,cATqG;;AAYvG;EAMI;;AAKJ;EAEE;EACA,kBnBoDW;EmBnDX,cnBmDW;;AmBhDb;EAGE;EACA,kBAlC+I;EAsC/I,cAtCyL;;AAwCzL;EAKI;;;ADYN;ECxDA;EFAE,kBjB6EW;EmB3Eb,cnB2Ea;;ACvEb;EkBAE;EFNA,kBED2D;EAS3D,cATqG;;AAYvG;EAMI;;AAKJ;EAEE;EACA,kBnBoDW;EmBnDX,cnBmDW;;AmBhDb;EAGE;EACA,kBAlC+I;EAsC/I,cAtCyL;;AAwCzL;EAKI;;;ADYN;ECxDA;EFAE,kBjB6EW;EmB3Eb,cnB2Ea;;ACvEb;EkBAE;EFNA,kBED2D;EAS3D,cATqG;;AAYvG;EAMI;;AAKJ;EAEE;EACA,kBnBoDW;EmBnDX,cnBmDW;;AmBhDb;EAGE;EACA,kBAlC+I;EAsC/I,cAtCyL;;AAwCzL;EAKI;;;ADYN;ECxDA;EFAE,kBjB6EW;EmB3Eb,cnB2Ea;;ACvEb;EkBAE;EFNA,kBED2D;EAS3D,cATqG;;AAYvG;EAMI;;AAKJ;EAEE;EACA,kBnBoDW;EmBnDX,cnBmDW;;AmBhDb;EAGE;EACA,kBAlC+I;EAsC/I,cAtCyL;;AAwCzL;EAKI;;;ADkBN;ECXA,OnB0Ba;EmBzBb;EACA;EACA,cnBuBa;;AmBrBb;EACE,OAPgD;EAQhD,kBnBmBW;EmBlBX,cnBkBW;;AmBfb;EAEE;;AAGF;EAEE,OnBQW;EmBPX;;AAGF;EAGE;EACA;EACA,cnBDW;;AmBGX;EAKI;;;ADvBN;ECXA,OnB0Ba;EmBzBb;EACA;EACA,cnBuBa;;AmBrBb;EACE,OAPgD;EAQhD,kBnBmBW;EmBlBX,cnBkBW;;AmBfb;EAEE;;AAGF;EAEE,OnBQW;EmBPX;;AAGF;EAGE;EACA;EACA,cnBDW;;AmBGX;EAKI;;;ADvBN;ECXA,OnB0Ba;EmBzBb;EACA;EACA,cnBuBa;;AmBrBb;EACE,OAPgD;EAQhD,kBnBmBW;EmBlBX,cnBkBW;;AmBfb;EAEE;;AAGF;EAEE,OnBQW;EmBPX;;AAGF;EAGE;EACA;EACA,cnBDW;;AmBGX;EAKI;;;ADvBN;ECXA,OnB0Ba;EmBzBb;EACA;EACA,cnBuBa;;AmBrBb;EACE,OAPgD;EAQhD,kBnBmBW;EmBlBX,cnBkBW;;AmBfb;EAEE;;AAGF;EAEE,OnBQW;EmBPX;;AAGF;EAGE;EACA;EACA,cnBDW;;AmBGX;EAKI;;;ADvBN;ECXA,OnB0Ba;EmBzBb;EACA;EACA,cnBuBa;;AmBrBb;EACE,OAPgD;EAQhD,kBnBmBW;EmBlBX,cnBkBW;;AmBfb;EAEE;;AAGF;EAEE,OnBQW;EmBPX;;AAGF;EAGE;EACA;EACA,cnBDW;;AmBGX;EAKI;;;ADvBN;ECXA,OnB0Ba;EmBzBb;EACA;EACA,cnBuBa;;AmBrBb;EACE,OAPgD;EAQhD,kBnBmBW;EmBlBX,cnBkBW;;AmBfb;EAEE;;AAGF;EAEE,OnBQW;EmBPX;;AAGF;EAGE;EACA;EACA,cnBDW;;AmBGX;EAKI;;;ADvBN;ECXA,OnB0Ba;EmBzBb;EACA;EACA,cnBuBa;;AmBrBb;EACE,OAPgD;EAQhD,kBnBmBW;EmBlBX,cnBkBW;;AmBfb;EAEE;;AAGF;EAEE,OnBQW;EmBPX;;AAGF;EAGE;EACA;EACA,cnBDW;;AmBGX;EAKI;;;ADvBN;ECXA,OnB0Ba;EmBzBb;EACA;EACA,cnBuBa;;AmBrBb;EACE,OAPgD;EAQhD,kBnBmBW;EmBlBX,cnBkBW;;AmBfb;EAEE;;AAGF;EAEE,OnBQW;EmBPX;;AAGF;EAGE;EACA;EACA,cnBDW;;AmBGX;EAKI;;;ADZR;EACE,alBoL4B;EkBnL5B,OlBsF0B;EkBrF1B;;AjBtEA;EiByEE,OlBoFwB;EkBnFxB,iBlBoFwB;EkBnFxB;EACA;;AAGF;EAEE,iBlB6EwB;EkB5ExB;EACA;;AAGF;EAEE,OlBpFO;EkBqFP;;;AAWJ;ECbE;EACA,WnB4J4B;EmB3J5B,anBwH4B;EmBrH1B,enB4H0B;;;AkBhH9B;ECjBE;EACA,WnB6J4B;EmB5J5B,anByH4B;EmBtH1B,enB6H0B;;;AkBxG9B;EACE;EACA;;AAGA;EACE,YlBwQ0B;;;AkBhQ5B;AAAA;AAAA;EACE;;;AE1IJ;ELGM,YKFJ;;ALMA;EKPF;ILQI;;;AKLF;EACE;;;AAKF;EACE;;;AAIJ;EACE;EACA;EACA;ELdI,YKeJ;;ALXA;EKOF;ILNI;;;;AMTJ;AAAA;AAAA;AAAA;EAIE;;;ACwBE;EACE;EACA;EACA;EACA;EACA;EACA;EAlCJ;EACA;EACA;EACA;;AAyDE;EACE;;;ADhDN;EACE;EACA;EACA;EACA,SrBklBkC;EqBjlBlC;EACA;EACA,WrBijBkC;EqBhjBlC;EACA;EACA,WrBuO4B;EqBtO5B,OrBNS;EqBOT;EACA;EACA,kBrBlBS;EqBmBT;EACA;Ef1BE,eN+N0B;;;AqBhM9B;EACE;EACA;;;AAMA;EACE;EACA;EACA;EACA,erByhBgC;;AsB3iBhC;EACE;EACA;EACA;EACA;EACA;EACA;EA3BJ;EACA;EACA;EACA;;AAkDE;EACE;;;ADNJ;EACE;EACA;EACA;EACA;EACA,arB2gBgC;;AsB3iBhC;EACE;EACA;EACA;EACA;EACA;EACA;EApBJ;EACA;EACA;EACA;;AA2CE;EACE;;ADIF;EACE;;;AAMJ;EACE;EACA;EACA;EACA;EACA,crB0fgC;;AsB3iBhC;EACE;EACA;EACA;EACA;EACA;EACA;;AAWA;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EAlCN;EACA;EACA;;AAqCE;EACE;;ADqBF;EACE;;;AAQJ;EAIE;EACA;;;AAMJ;EElGE;EACA;EACA;EACA;;;AFsGF;EACE;EACA;EACA;EACA;EACA,arBiJ4B;EqBhJ5B,OrBjGS;EqBkGT;EACA;EACA;EACA;;ApBxGA;EoB2GE,OrBsdgC;EqBrdhC;EJtHA,kBjBKO;;AqBqHT;EAEE,OrBxHO;EqByHP;EJ7HA,kBjBsO0B;;AqBrG5B;EAEE,OrBzHO;EqB0HP;;;AAQJ;EACE;;;AAIF;EACE;EACA;EACA;EACA,WrBsG4B;EqBrG5B,OrB5IS;EqB6IT;;;AAIF;EACE;EACA;EACA,OrBjJS;;;AwBhBX;AAAA;EAEE;EACA;EACA;;AAEA;AAAA;EACE;EACA;;AvBCF;AAAA;EuBII;;AAEF;AAAA;AAAA;AAAA;EAGE;;AAKJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAIE;;;AAKJ;EACE;EACA;EACA;;AAEA;EACE;;;AAKF;EACE;;AAIF;AAAA;ElBlCE,yBkBoC6B;ElBnC7B,4BkBmC6B;;AAG/B;AAAA;ElBzBE,wBkB2B4B;ElB1B5B,2BkB0B4B;;;AAgBhC;EACE;EACA;;AAEA;EAGE;;AAGF;EACE;;;AAIJ;EACE;EACA;;;AAGF;EACE;EACA;;;AAoBF;EACE;EACA;EACA;;AAEA;AAAA;EAEE;;AAGF;AAAA;AAAA;AAAA;EAIE;EACA;;AAIF;AAAA;ElB/GE,4BkBiH8B;ElBhH9B,2BkBgH8B;;AAGhC;AAAA;ElBlIE,wBkBoI2B;ElBnI3B,yBkBmI2B;;;AAkB7B;AAAA;EAEE;;AAEA;AAAA;AAAA;AAAA;EAEE;EACA;EACA;;;AClKN;EACE;EACA;EACA;EACA;EACA;;AAEA;AAAA;AAAA;EAGE;EACA;EAGA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAGE;;AAKJ;AAAA;AAAA;EAGE;;AAIF;EACE;;AAKA;AAAA;EnB3BA,yBmB2BkD;EnB1BlD,4BmB0BkD;;AAClD;AAAA;EnBdA,wBmBckD;EnBblD,2BmBakD;;AAKpD;EACE;EACA;;AAEA;EnBrCA,yBmBsC4E;EnBrC5E,4BmBqC4E;;AAC5E;EnBzBA,wBmByBqE;EnBxBrE,2BmBwBqE;;;AAWzE;AAAA;EAEE;;AAKA;AAAA;EACE;EACA;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAIE;;;AAIJ;EAAuB;;;AACvB;EAAsB;;;AAQtB;EACE;EACA;EACA;EACA;EACA,WzB0J4B;EyBzJ5B,azB8J4B;EyB7J5B,azBiK4B;EyBhK5B,OzBvFS;EyBwFT;EACA;EACA,kBzB/FS;EyBgGT;EnBxGE,eN+N0B;;AyBnH5B;AAAA;EAEE;;;AAUJ;AAAA;AAAA;AAAA;AAAA;EAKE,QzBkUsC;EyBjUtC;EACA,WzB6H4B;EyB5H5B,azByF4B;EMzN1B,eNgO0B;;;AyB5F9B;AAAA;AAAA;AAAA;AAAA;EAKE,QzBmTsC;EyBlTtC;EACA,WzBkH4B;EyBjH5B,azB8E4B;EM1N1B,eNiO0B;;;AyBzE9B;AAAA;AAAA;AAAA;AAAA;AAAA;EnB3II,yBmBiJ2B;EnBhJ3B,4BmBgJ2B;;;AAG/B;AAAA;AAAA;AAAA;AAAA;AAAA;EnBtII,wBmB4I0B;EnB3I1B,2BmB2I0B;;;AClK9B;EACE;EACA;EACA;EACA,c1B2csC;;;A0BxcxC;EACE;EACA,c1BucsC;;;A0BpcxC;EACE;EACA;EACA;;AAEA;EACE,O1BjBO;EiBJP,kBjBsO0B;;A0B5M5B;EAEE,Y1Bsc4C;;A0Bnc9C;EACE,O1B5BO;E0B6BP,kB1Boc4C;;A0B/b5C;EACE,O1B7BK;;A0B+BL;EACE,kB1BpCG;;;A0B8CX;EACE;EACA;;AAGA;EACE;EACA;EACA;EACA;EACA,O1BuZoC;E0BtZpC,Q1BsZoC;E0BrZpC;EACA;EACA;EACA,kB1B5DO;;A0BiET;EACE;EACA;EACA;EACA;EACA,O1BwYoC;E0BvYpC,Q1BuYoC;E0BtYpC;EACA;EACA;EACA,iB1BqYoC;;;A0B3XtC;EpB9FE,eN+N0B;;A0B5H1B;ETjGA,kBjBsO0B;;A0BlI1B;EACE,kB1BoY0C;;A0B/X5C;ET1GA,kBjBsO0B;;A0BxH1B;EACE,kB1B8XgD;;A0BzXlD;EACE,kB1B0W0C;;A0BxW5C;EACE,kB1BuW0C;;;A0B7V9C;EACE,e1B6W4C;;A0BzW5C;ETvIA,kBjBsO0B;;A0B5F1B;EACE,kB1BsW0C;;A0BjW5C;EACE,kB1B8U0C;;;A0BlUhD;EACE;EACA;EACA,Q1BuRsC;E0BtRtC;EACA,a1BgG4B;E0B/F5B,O1BxJS;E0ByJT;EACA;EACA,iB1BsVkC;E0BrVlC;EAEE,e1BoD0B;E0B/C5B;;AAEA;EACE,c1B2PoC;E0B1PpC;EAIE,Y1BgV8B;;A0B7UhC;EAME,O1BpLK;E0BqLL,kB1B5LK;;A0BgMT;EAEE;EACA,e1B6SgC;E0B5ShC;;AAGF;EACE,O1BlMO;E0BmMP,kB1BvMO;;A0B2MT;EACE;;;AAIJ;EACE,Q1BmOsC;E0BlOtC,a1B2RkC;E0B1RlC,gB1B0RkC;E0BzRlC,W1B8SkC;;;A0B3SpC;EACE,Q1B+NsC;E0B9NtC,a1BoRkC;E0BnRlC,gB1BmRkC;E0BlRlC,W1B0SkC;;;A0BlSpC;EACE;EACA;EACA;EACA,Q1B0MsC;E0BzMtC;;;AAGF;EACE;EACA;EACA;EACA,Q1BkMsC;E0BjMtC;EACA;;AAEA;EACE,c1BkLoC;E0BjLpC,Y1BkG0B;;A0BhG1B;EACE,c1B8KkC;;A0B1KtC;EACE,kB1B7PO;;A0BiQP;EACE,S1BwSa;;;A0BnSnB;EACE;EACA;EACA;EACA;EACA;EACA,Q1BoKsC;E0BnKtC;EACA,a1BnB4B;E0BoB5B,O1B3QS;E0B4QT,kB1BnRS;E0BoRT;EpB1RE,eN+N0B;;A0B+D5B;EACE;EACA;EACA;EACA;EACA;EACA;EACA,Q1BmJoC;E0BlJpC;EACA,a1BnC0B;E0BoC1B,O1B3RO;E0B4RP;ETvSA,kBjBMO;E0BmSP;EpB3SA,eoB4SuB;;;AAU3B;EACE;EACA;EACA;EACA;;AAEA;EACE;;AAIA;EAA0B,Y1B4Ne;;A0B3NzC;EAA0B,Y1B2Ne;;A0B1NzC;EAA0B,Y1B0Ne;;A0BvN3C;EACE;;AAGF;EACE,O1B4MyC;E0B3MzC,Q1B2MyC;E0B1MzC;ET3UA,kBjBsO0B;E0BuG1B,Q1B2MyC;EM1hBzC,eN2hByC;Ee1hBvC,YWiVF;EACA;;AX9UF;EWqUA;IXpUE;;;AW+UA;ETnVA,kBjB6hByC;;A0BrM3C;EACE,O1BqLgC;E0BpLhC,Q1BqLgC;E0BpLhC;EACA,Q1BoLgC;E0BnLhC,kB1BtVO;E0BuVP;EpBhWA,eNohBgC;;A0B/KlC;EACE,O1BiLyC;E0BhLzC,Q1BgLyC;EiBrhBzC,kBjBsO0B;E0BiI1B,Q1BiLyC;EM1hBzC,eN2hByC;Ee1hBvC,YW2WF;EACA;;AXxWF;EWgWA;IX/VE;;;AWyWA;ET7WA,kBjB6hByC;;A0B3K3C;EACE,O1B2JgC;E0B1JhC,Q1B2JgC;E0B1JhC;EACA,Q1B0JgC;E0BzJhC,kB1BhXO;E0BiXP;EpB1XA,eNohBgC;;A0BrJlC;EACE,O1BuJyC;E0BtJzC,Q1BsJyC;E0BrJzC;EACA,c1BtC0B;E0BuC1B,a1BvC0B;EiB3V1B,kBjBsO0B;E0B8J1B,Q1BoJyC;EM1hBzC,eN2hByC;Ee1hBvC,YWwYF;EACA;;AXrYF;EW0XA;IXzXE;;;AWsYA;ET1YA,kBjB6hByC;;A0B9I3C;EACE,O1B8HgC;E0B7HhC,Q1B8HgC;E0B7HhC;EACA,Q1B6HgC;E0B5HhC;EACA;EACA;;AAIF;EACE,kB1BpZO;EMTP,eNohBgC;;A0BnHlC;EACE;EACA,kB1B1ZO;EMTP,eNohBgC;;;A0B5GpC;AAAA;AAAA;EXvaM,YW0aJ;;AXtaA;EWmaF;AAAA;AAAA;IXlaI;;;;AYLJ;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;A1BCA;E0BEE;;AAIF;EACE,O3BPO;;;A2BeX;EACE;;AAEA;EACE;;AAGF;EACE;ErB7BA,wBNyN0B;EMxN1B,yBNwN0B;;ACnN5B;E0B2BI,c3B0kB8B;;A2BvkBhC;EACE,O3B/BK;E2BgCL;EACA;;AAIJ;AAAA;EAEE,O3BtCO;E2BuCP,kB3B9CO;E2B+CP,c3B+jBgC;;A2B5jBlC;EAEE;ErBpDA,wBqBsD2B;ErBrD3B,yBqBqD2B;;;AAU7B;ErBtEE,eN+N0B;;A2BrJ5B;AAAA;EAEE,O3BtEO;E2BuEP,kB3B2J0B;;;A2BjJ5B;EACE;EACA;;;AAKF;EACE;EACA;EACA;;;AAUF;EACE;;AAEF;EACE;;;AClGJ;EACE;EACA;EACA;EACA;EACA;EACA;;AAIA;AAAA;EAEE;EACA;EACA;EACA;;;AASJ;EACE;EACA,a5BimBkC;E4BhmBlC,gB5BgmBkC;E4B/lBlC,c5BkFO;E4BjFP,W5BkN4B;E4BjN5B;EACA;;A3BhCA;E2BmCE;;;AASJ;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAGF;EACE;EACA;;;AASJ;EACE;EACA,a5ByhBkC;E4BxhBlC,gB5BwhBkC;;;A4B5gBpC;EACE;EACA;EAGA;;;AAIF;EACE;EACA,W5BmJ4B;E4BlJ5B;EACA;EACA;EtB5GE,eN+N0B;;ACnN5B;E2BoGE;;AAIF;EACE;;;AAMJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AlB7DE;EkByEI;AAAA;IAEE;IACA;;;AlBzFN;EkBoFA;IAUI;IACA;;EAEA;IACE;;EAEA;IACE;;EAGF;IACE,e5BiewB;I4BhexB,c5BgewB;;E4B3d5B;AAAA;IAEE;;EAGF;IACE;IAGA;;EAGF;IACE;;;AlB/GN;EkByEI;AAAA;IAEE;IACA;;;AlBzFN;EkBoFA;IAUI;IACA;;EAEA;IACE;;EAEA;IACE;;EAGF;IACE,e5BiewB;I4BhexB,c5BgewB;;E4B3d5B;AAAA;IAEE;;EAGF;IACE;IAGA;;EAGF;IACE;;;AlB/GN;EkByEI;AAAA;IAEE;IACA;;;AlBzFN;EkBoFA;IAUI;IACA;;EAEA;IACE;;EAEA;IACE;;EAGF;IACE,e5BiewB;I4BhexB,c5BgewB;;E4B3d5B;AAAA;IAEE;;EAGF;IACE;IAGA;;EAGF;IACE;;;AlB/GN;EkByEI;AAAA;IAEE;IACA;;;AlBzFN;EkBoFA;IAUI;IACA;;EAEA;IACE;;EAEA;IACE;;EAGF;IACE,e5BiewB;I4BhexB,c5BgewB;;E4B3d5B;AAAA;IAEE;;EAGF;IACE;IAGA;;EAGF;IACE;;;AAxCN;EAUI;EACA;;AATA;AAAA;EAEE;EACA;;AAQF;EACE;;AAEA;EACE;;AAGF;EACE,e5BiewB;E4BhexB,c5BgewB;;A4B3d5B;AAAA;EAEE;;AAGF;EACE;EAGA;;AAGF;EACE;;;AAcR;EACE,O5BqdgC;;AC5oBlC;E2B0LI,O5Bkd8B;;A4B7chC;EACE,O5B0c8B;;AC1oBlC;E2BmMM,O5Bwc4B;;A4Brc9B;EACE,O5Bsc4B;;A4BlchC;AAAA;AAAA;AAAA;EAIE,O5B6b8B;;A4BzblC;EACE,O5BsbgC;E4BrbhC,c5B0bgC;;A4BvblC;EACE,kB5BqbgC;;A4BlblC;EACE,O5B6agC;;A4B5ahC;EACE,O5B6a8B;;AC5oBlC;E2BkOM,O5B0a4B;;;A4BlalC;EACE,O5BjPO;;ACMT;E2B8OI,O5BpPK;;A4ByPP;EACE,O5B+Y8B;;ACnoBlC;E2BuPM,O5B6Y4B;;A4B1Y9B;EACE,O5B2Y4B;;A4BvYhC;AAAA;AAAA;AAAA;EAIE,O5BzQK;;A4B6QT;EACE,O5B2XgC;E4B1XhC,c5B+XgC;;A4B5XlC;EACE,kB5B0XgC;;A4BvXlC;EACE,O5BkXgC;;A4BjXhC;EACE,O5BzRK;;ACMT;E2BsRM,O5B5RG;;;A6BNX;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EvBRE,eN+N0B;;A6BpN5B;EACE;EACA;;AAIA;EvBXA,wBNyN0B;EMxN1B,yBNwN0B;;A6BxM1B;EvBHA,4BN2M0B;EM1M1B,2BN0M0B;;;A6BlM9B;EAGE;EACA,S7BoqBkC;;;A6BjqBpC;EACE,e7B+pBkC;;;A6B5pBpC;EACE;EACA;;;AAGF;EACE;;;A5BtCA;E4B2CE;;AAGF;EACE,a7B8oBgC;;;A6BtoBpC;EACE;EACA;EACA,kB7BwoBkC;E6BvoBlC;;AAEA;EvBrEE,euBsEuB;;AAIvB;EACE;;;AAKN;EACE;EACA,kB7BwnBkC;E6BvnBlC;;AAEA;EvBrFE,euBsFuB;;;AAS3B;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAIF;EACE;EACA;EACA;EACA;EACA;EACA,S7B2lBkC;;;A6BxlBpC;EACE;EvBtHE,eNysBgC;;;A6B9kBpC;EACE;EvBtHE,wBNmsBgC;EMlsBhC,yBNksBgC;;;A6BzkBpC;EACE;EvB7GE,4BNqrBgC;EMprBhC,2BNorBgC;;;A6BjkBpC;EACE;EACA;;AAEA;EACE,e7BkkBgC;;AUvpBhC;EmBgFJ;IASI;IACA;IACA;;EAEA;IACE;IAEA;IACA;IACA,c7BqjB8B;I6BpjB9B;IACA,a7BmjB8B;;;;A6BziBpC;EACE;EACA;;AAIA;EACE,e7BkiBgC;;AUvpBhC;EmB8GJ;IAWI;;EAGA;IAEE;IACA;;EAEA;IACE;IACA;;EAKA;IvBnLJ,yBuBoLmC;IvBnLnC,4BuBmLmC;;EAE7B;AAAA;IAEE;;EAEF;AAAA;IAEE;;EAIJ;IvBlLJ,wBuBmLkC;IvBlLlC,2BuBkLkC;;EAE5B;AAAA;IAEE;;EAEF;AAAA;IAEE;;EAIJ;IvB1NJ,eN+N0B;;E6BFpB;AAAA;IvBvNN,wBNyN0B;IMxN1B,yBNwN0B;;E6BEpB;AAAA;IvB7MN,4BN2M0B;IM1M1B,2BN0M0B;;E6BQtB;IvBvOJ,euBwO6B;;EAEvB;AAAA;AAAA;AAAA;IvB1ON,euB8O+B;;;;AAcjC;EACE,e7BucgC;;AU5oBhC;EmBmMJ;IAMI,c7BidgC;I6BhdhC,Y7BidgC;I6BhdhC;IACA;;EAEA;IACE;IACA;;;;AAWJ;EACE;EACA;;AAIA;EACE;;AAIJ;EACE;EACA;EACA;;AAGF;EACE;EACA;;;AC1SJ;EACE;EACA;EACA;EACA,e9B23BkC;E8B13BlC;EACA,kB9BMS;EMRP,eN+N0B;;;A8BvN5B;EACE,c9Bg3BgC;;A8B92BhC;EACE;EACA,e9B42B8B;E8B32B9B,O9BFK;E8BGL,S9Bi3B8B;;A8Bv2BlC;EACE;;AAGF;EACE;;AAGF;EACE,O9BtBO;;;A+BhBX;EACE;E5BGA;EACA;EGDE,eN+N0B;;;A+B7N9B;EACE;EACA;EACA;EACA;EACA,a/B8pBkC;E+B7pBlC,O/B2J0B;E+B1J1B,kB/BHS;E+BIT;;AAEA;EACE;EACA,O/BuJwB;E+BtJxB;EACA,kB/BRO;E+BSP,c/BRO;;A+BWT;EACE;EACA,S/BupBgC;E+BtpBhC,Y/BwU0B;;A+BpU5B;EACE;;;AAMA;EACE;EzBRF,wBNoM0B;EMnM1B,2BNmM0B;;A+BvL1B;EzB3BA,yBNkN0B;EMjN1B,4BNiN0B;;A+BlL5B;EACE;EACA,O/BzCO;E+B0CP,kB/BwL0B;E+BvL1B,c/BuL0B;;A+BpL5B;EACE,O/BzCO;E+B0CP;EAEA;EACA,kB/BnDO;E+BoDP,c/BjDO;;;AgCVT;EACE;EACA,WhC2P0B;EgC1P1B,ahCuN0B;;AgClNxB;E1BoBF,wBNqM0B;EMpM1B,2BNoM0B;;AgCpNxB;E1BCF,yBNmN0B;EMlN1B,4BNkN0B;;;AgCjO5B;EACE;EACA,WhC4P0B;EgC3P1B,ahCwN0B;;AgCnNxB;E1BoBF,wBNsM0B;EMrM1B,2BNqM0B;;AgCrNxB;E1BCF,yBNoN0B;EMnN1B,4BNmN0B;;;AiChO9B;EACE;EACA;EACA,WjCgwBkC;EiC/vBlC,ajC4P4B;EiC3P5B;EACA;EACA;EACA;E3BTE,eN+N0B;;AiClN5B;EACE;;;AAKJ;EACE;EACA;;;AAOF;EACE,ejC6uBkC;EiC5uBlC,cjC4uBkC;EM1wBhC,eN6wBgC;;;AiCtuBlC;EC1CA;EACA,kBlCiFa;;ACnEb;EiCVI;EACA;EACA;;;ADmCJ;EC1CA;EACA,kBlCiFa;;ACnEb;EiCVI;EACA;EACA;;;ADmCJ;EC1CA;EACA,kBlCiFa;;ACnEb;EiCVI;EACA;EACA;;;ADmCJ;EC1CA;EACA,kBlCiFa;;ACnEb;EiCVI;EACA;EACA;;;ADmCJ;EC1CA;EACA,kBlCiFa;;ACnEb;EiCVI;EACA;EACA;;;ADmCJ;EC1CA;EACA,kBlCiFa;;ACnEb;EiCVI;EACA;EACA;;;ADmCJ;EC1CA;EACA,kBlCiFa;;ACnEb;EiCVI;EACA;EACA;;;ADmCJ;EC1CA;EACA,kBlCiFa;;ACnEb;EiCVI;EACA;EACA;;;ACRN;EACE;EACA,enCgsBkC;EmC/rBlC,kBnCSS;EMRP,eNgO0B;;AUxK1B;EyB5DJ;IAOI;;;;AAIJ;EACE;EACA;E7BTE,e6BUqB;;;ACVzB;EACE;EACA;EACA,epCmzBkC;EoClzBlC;E9BJE,eN+N0B;;;AoCtN9B;EAEE;;;AAIF;EACE,apCiP4B;;;AoCzO9B;EACE;;AAGA;EACE;EACA;EACA;EACA;EACA;;;AAUF;EC9CA,OD+CqH;EnB1CnH,kBmB0CuB;EC7CzB,cD6CqE;;AC3CrE;EACE;;AAGF;EACE;;;ADqCF;EC9CA,OD+CqH;EnB1CnH,kBmB0CuB;EC7CzB,cD6CqE;;AC3CrE;EACE;;AAGF;EACE;;;ADqCF;EC9CA,OD+CqH;EnB1CnH,kBmB0CuB;EC7CzB,cD6CqE;;AC3CrE;EACE;;AAGF;EACE;;;ADqCF;EC9CA,OD+CqH;EnB1CnH,kBmB0CuB;EC7CzB,cD6CqE;;AC3CrE;EACE;;AAGF;EACE;;;ADqCF;EC9CA,OD+CqH;EnB1CnH,kBmB0CuB;EC7CzB,cD6CqE;;AC3CrE;EACE;;AAGF;EACE;;;ADqCF;EC9CA,OD+CqH;EnB1CnH,kBmB0CuB;EC7CzB,cD6CqE;;AC3CrE;EACE;;AAGF;EACE;;;ADqCF;EC9CA,OD+CqH;EnB1CnH,kBmB0CuB;EC7CzB,cD6CqE;;AC3CrE;EACE;;AAGF;EACE;;;ADqCF;EC9CA,OD+CqH;EnB1CnH,kBmB0CuB;EC7CzB,cD6CqE;;AC3CrE;EACE;;AAGF;EACE;;;ACVJ;EACE;IAAO;;EACP;IAAK;;;AAGP;EACE;EACA,QtC+zBkC;EsC9zBlC;EACA,WtC8zBkC;EsC7zBlC,kBtCES;EMRP,eN+N0B;;;AsCpN9B;EACE;EACA;EACA;EACA,OtCTS;EsCUT;EACA;EACA,kBtCszBkC;Eev0B9B,YuBkBJ;;AvBdA;EuBMF;IvBLI;;;;AuBgBJ;ErBiBE;EqBfA;;;AAGF;EACE;;;AChCF;EACE;EACA;;;AAGF;EACE;;;ACFF;EACE;EACA;EAGA;EACA;;;AASF;EACE;EACA,OxCJS;EwCKT;;AvCNA;EuCUE,OxCTO;EwCUP;EACA,kBxCjBO;;AwCoBT;EACE,OxCbO;EwCcP,kBxCrBO;;;AwC8BX;EACE;EACA;EACA;EAEA;EACA,kBxCtCS;EwCuCT;;AAEA;ElCzCE,wBNyN0B;EMxN1B,yBNwN0B;;AwC5K5B;EACE;ElChCA,4BN2M0B;EM1M1B,2BN0M0B;;ACnN5B;EuC6CE;EACA;;AAGF;EAEE,OxCnDO;EwCoDP,kBxC1DO;;AwC8DT;EACE;EACA,OxChEO;EwCiEP,kBxCiK0B;EwChK1B,cxCgK0B;;;AwCrJ5B;EACE;EACA;ElCrFA,ekCsFuB;;AAIvB;EACE;;AAKF;EACE;;;AClGJ;EACE,OD6GsE;EC5GtE,kBD4GuC;;AvCjGzC;EwCPM,ODwGkE;ECvGlE;;AAGF;EACE,OzCJG;EyCKH,kBDkGkE;ECjGlE,cDiGkE;;;AC9GxE;EACE,OD6GsE;EC5GtE,kBD4GuC;;AvCjGzC;EwCPM,ODwGkE;ECvGlE;;AAGF;EACE,OzCJG;EyCKH,kBDkGkE;ECjGlE,cDiGkE;;;AC9GxE;EACE,OD6GsE;EC5GtE,kBD4GuC;;AvCjGzC;EwCPM,ODwGkE;ECvGlE;;AAGF;EACE,OzCJG;EyCKH,kBDkGkE;ECjGlE,cDiGkE;;;AC9GxE;EACE,OD6GsE;EC5GtE,kBD4GuC;;AvCjGzC;EwCPM,ODwGkE;ECvGlE;;AAGF;EACE,OzCJG;EyCKH,kBDkGkE;ECjGlE,cDiGkE;;;AC9GxE;EACE,OD6GsE;EC5GtE,kBD4GuC;;AvCjGzC;EwCPM,ODwGkE;ECvGlE;;AAGF;EACE,OzCJG;EyCKH,kBDkGkE;ECjGlE,cDiGkE;;;AC9GxE;EACE,OD6GsE;EC5GtE,kBD4GuC;;AvCjGzC;EwCPM,ODwGkE;ECvGlE;;AAGF;EACE,OzCJG;EyCKH,kBDkGkE;ECjGlE,cDiGkE;;;AC9GxE;EACE,OD6GsE;EC5GtE,kBD4GuC;;AvCjGzC;EwCPM,ODwGkE;ECvGlE;;AAGF;EACE,OzCJG;EyCKH,kBDkGkE;ECjGlE,cDiGkE;;;AC9GxE;EACE,OD6GsE;EC5GtE,kBD4GuC;;AvCjGzC;EwCPM,ODwGkE;ECvGlE;;AAGF;EACE,OzCJG;EyCKH,kBDkGkE;ECjGlE,cDiGkE;;;AEjH1E;EACE;EACA,W1C+5BkC;E0C95BlC,a1CkQ4B;E0CjQ5B;EACA,O1CeS;E0CdT,a1C85BkC;E0C75BlC;;AAEA;EASE;;AzCFF;EyCJI,O1CQK;E0CPL;EACA;;;AAcN;EACE;EACA;EACA;EACA;;;AC1BF;EAEE;;AAEA;EACE;EACA;;;AAKJ;EACE;EACA;EACA;EACA;EACA;EACA,S3CilBkC;E2ChlBlC;EACA;EAGA;;;AAOF;EACE;EACA;EACA,Q3CmvBkC;E2CjvBlC;;AAGA;E5BtCI,Y4BuCF;EACA;;A5BpCF;E4BkCA;I5BjCE;;;A4BqCF;EACE;;;AAIJ;EACE;EACA;EACA;;AAGA;EACE;EACA;EACA;;;AAKJ;EACE;EACA;EACA;EACA;EAEA;EACA,kB3C/DS;E2CgET;EACA;ErCvEE,eNgO0B;E2CrJ5B;;;AAIF;EACE;EACA;EACA;EACA;EACA;EACA,S3C8gBkC;E2C7gBlC,kB3CtES;;A2CyET;EAAS;;AACT;EAAS,S3CwsByB;;;A2CnsBpC;EACE;EACA;EACA;EACA,S3CosBkC;E2CnsBlC;ErC9FE,wBN0N0B;EMzN1B,yBNyN0B;;A2CzH5B;EACE,S3C+rBgC;E2C7rBhC;;;AAKJ;EACE;EACA,a3CmJ4B;;;A2C9I9B;EACE;EAGA;EACA,S3CwpBkC;;;A2CppBpC;EACE;EACA;EACA;EACA,S3CgpBkC;E2C/oBlC;;AAGA;EAAuB;;AACvB;EAAsB;;;AAIxB;EACE;EACA;EACA;EACA;EACA;;;AjCzFE;EiC+FF;IACE,W3CkpBgC;I2CjpBhC;;;EAGF;IACE;;EAEA;IACE;;;EASJ;IAAY,W3CkoBsB;;;AUnvBhC;EiCsHF;IAAY,W3C2nBsB;;;A4C5yBpC;EACE;EACA,S5CumBkC;E4CtmBlC;EACA,Q5CguBkC;E6CpuBlC,a7CyP4B;E6CvP5B;EACA,a7CgQ4B;E6C/P5B,a7CmQ4B;E6ClQ5B;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EDNA,W5CwP4B;E4CtP5B;EACA;;AAEA;EAAS,S5CotByB;;A4CltBlC;EACE;EACA;EACA,O5CotBgC;E4CntBhC,Q5CotBgC;;A4CltBhC;EACE;EACA;EACA;EACA;;;AAKN;EACE;;AAEA;EACE;;AAEA;EACE;EACA;EACA,kB5CpBK;;;A4CyBX;EACE;;AAEA;EACE;EACA,O5CsrBgC;E4CrrBhC,Q5CorBgC;;A4ClrBhC;EACE;EACA;EACA,oB5CpCK;;;A4CyCX;EACE;;AAEA;EACE;;AAEA;EACE;EACA;EACA,qB5ClDK;;;A4CuDX;EACE;;AAEA;EACE;EACA,O5CwpBgC;E4CvpBhC,Q5CspBgC;;A4CppBhC;EACE;EACA;EACA,mB5ClEK;;;A4CuFX;EACE,W5CknBkC;E4CjnBlC;EACA,O5CpGS;E4CqGT;EACA,kB5C5FS;EMhBP,eN+N0B;;;A8CnO9B;EACE;EACA;EACA;EACA,S9CqmBkC;E8CpmBlC;EACA,W9C0uBkC;E6C/uBlC,a7CyP4B;E6CvP5B;EACA,a7CgQ4B;E6C/P5B,a7CmQ4B;E6ClQ5B;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;ECLA,W9CuP4B;E8CrP5B;EACA,kB9CHS;E8CIT;EACA;ExCXE,eNgO0B;;A8CjN5B;EACE;EACA;EACA,O9CyuBgC;E8CxuBhC,Q9CyuBgC;E8CxuBhC;;AAEA;EAEE;EACA;EACA;EACA;EACA;;;AAKN;EACE,e9C0tBkC;;A8CxtBlC;EACE;;AAGF;AAAA;AAAA;EAEE;;AAGF;EACE;EACA,kB9CgtBgC;;A8C7sBlC;EACE,Q9CyK0B;E8CxK1B,kB9C9CO;;;A8CkDX;EACE,a9CmsBkC;;A8CjsBlC;EACE;EACA,O9C+rBgC;E8C9rBhC,Q9C6rBgC;E8C5rBhC;;AAGF;AAAA;AAAA;EAEE;;AAGF;EACE;EACA,oB9CsrBgC;;A8CnrBlC;EACE,M9C+I0B;E8C9I1B,oB9CxEO;;;A8C4EX;EACE,Y9CyqBkC;;A8CvqBlC;EACE;;AAGF;AAAA;AAAA;EAEE;;AAGF;EACE;EACA,qB9C+pBgC;;A8C5pBlC;EACE,K9CwH0B;E8CvH1B,qB9C/FO;;A8CmGT;EACE;EACA;EACA;EACA;EACA,O9C6oBgC;E8C5oBhC;EACA;EACA;;;AAIJ;EACE,c9CsoBkC;;A8CpoBlC;EACE;EACA,O9CkoBgC;E8CjoBhC,Q9CgoBgC;E8C/nBhC;;AAGF;AAAA;AAAA;EAEE;;AAGF;EACE;EACA,mB9CynBgC;;A8CtnBlC;EACE,O9CkF0B;E8CjF1B,mB9CrIO;;;A8C0JX;EACE;EACA;EACA,W9CwF4B;E8CvF5B,O9C6G4B;E8C5G5B,kB9C6kBkC;E8C5kBlC;ExChKE,wBwCiKoB;ExChKpB,yBwCgKoB;;AAGtB;EACE;;;AAIJ;EACE;EACA,O9ClKS;;;A+CTX;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;AAAA;AAAA;EAGE;EhC3BI,YgC4BJ;;AhCxBA;EgCoBF;AAAA;AAAA;IhCnBI;;;;AgC0BJ;AAAA;EAEE;EACA;;;AAGF;AAAA;EAEE;;AAEA;EAJF;AAAA;IAKI;;;;AAIJ;AAAA;EAEE;;AAEA;EAJF;AAAA;IAKI;;;;AAIJ;AAAA;EAEE;;AAEA;EAJF;AAAA;IAKI;;;;AAUF;EACE;EACA;EACA;;AAGF;AAAA;AAAA;EAGE;;AAGF;AAAA;EAEE;;AAGF;AAAA;AAAA;AAAA;AAAA;EAKE;;AAEA;EAPF;AAAA;AAAA;AAAA;AAAA;IAQI;;;;AAUN;AAAA;EAEE;EACA;EACA;EAEA;EACA;EACA;EACA,O/CqxBkC;E+CpxBlC,O/C9GS;E+C+GT;EACA,S/CmxBkC;;AC73BlC;AAAA;AAAA;E8CgHE,O/CtHO;E+CuHP;EACA;EACA;;;AAGJ;EACE;;;AAKF;EACE;;;AAOF;AAAA;EAEE;EACA,O/CgwBkC;E+C/vBlC,Q/C+vBkC;E+C9vBlC;EACA;;;AAEF;EACE,kB/C4vBkC;;;A+C1vBpC;EACE,kB/C0vBkC;;;A+CjvBpC;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA,c/CytBkC;E+CxtBlC,a/CwtBkC;E+CvtBlC;;AAEA;EACE;EACA;EACA,O/CqtBgC;E+CptBhC,Q/CqtBgC;E+CptBhC,c/CqtBgC;E+CptBhC,a/CotBgC;E+CntBhC;EACA;EACA;;AAGA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAIJ;EACE,kB/C9MO;;;A+CuNX;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA,O/C/NS;E+CgOT;;;ACxOF;EAAqB;;;AACrB;EAAqB;;;AACrB;EAAqB;;;AACrB;EAAqB;;;AACrB;EAAqB;;;AACrB;EAAqB;;;ACFnB;EACE;;;AhDUF;AAAA;AAAA;EgDLI;;;AANJ;EACE;;;AhDUF;AAAA;AAAA;EgDLI;;;AANJ;EACE;;;AhDUF;AAAA;AAAA;EgDLI;;;AANJ;EACE;;;AhDUF;AAAA;AAAA;EgDLI;;;AANJ;EACE;;;AhDUF;AAAA;AAAA;EgDLI;;;AANJ;EACE;;;AhDUF;AAAA;AAAA;EgDLI;;;AANJ;EACE;;;AhDUF;AAAA;AAAA;EgDLI;;;AANJ;EACE;;;AhDUF;AAAA;AAAA;EgDLI;;;ACCN;EACE;;;AAGF;EACE;;;ACXF;EAAkB;;;AAClB;EAAkB;;;AAClB;EAAkB;;;AAClB;EAAkB;;;AAClB;EAAkB;;;AAElB;EAAmB;;;AACnB;EAAmB;;;AACnB;EAAmB;;;AACnB;EAAmB;;;AACnB;EAAmB;;;AAGjB;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AAIJ;EACE;;;AAOF;EACE;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;ACxDA;EACE;EACA;EACA;;;ACMA;EAA2B;;;AAC3B;EAA2B;;;AAC3B;EAA2B;;;AAC3B;EAA2B;;;AAC3B;EAA2B;;;AAC3B;EAA2B;;;AAC3B;EAA2B;;;AAC3B;EAA2B;;;AAC3B;EAA2B;;;A3C0C3B;E2ClDA;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;A3C0C3B;E2ClDA;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;A3C0C3B;E2ClDA;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;A3C0C3B;E2ClDA;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;EAC3B;IAA2B;;;AAS/B;EACE;IAAwB;;;EACxB;IAAwB;;;EACxB;IAAwB;;;EACxB;IAAwB;;;EACxB;IAAwB;;;EACxB;IAAwB;;;EACxB;IAAwB;;;EACxB;IAAwB;;;EACxB;IAAwB;;;AClC1B;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAGF;AAAA;AAAA;AAAA;AAAA;EAKE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAKF;EACE;;;AAKF;EACE;;;AAKF;EACE;;;AAKF;EACE;;;ACvCA;EAAgC;;;AAChC;EAAgC;;;AAChC;EAAgC;;;AAChC;EAAgC;;;AAEhC;EAA8B;;;AAC9B;EAA8B;;;AAC9B;EAA8B;;;AAC9B;EAA8B;;;AAC9B;EAA8B;;;AAC9B;EAA8B;;;AAC9B;EAA8B;;;AAC9B;EAA8B;;;AAE9B;EAAoC;;;AACpC;EAAoC;;;AACpC;EAAoC;;;AACpC;EAAoC;;;AACpC;EAAoC;;;AAEpC;EAAiC;;;AACjC;EAAiC;;;AACjC;EAAiC;;;AACjC;EAAiC;;;AACjC;EAAiC;;;AAEjC;EAAkC;;;AAClC;EAAkC;;;AAClC;EAAkC;;;AAClC;EAAkC;;;AAClC;EAAkC;;;AAClC;EAAkC;;;AAElC;EAAgC;;;AAChC;EAAgC;;;AAChC;EAAgC;;;AAChC;EAAgC;;;AAChC;EAAgC;;;AAChC;EAAgC;;;A7CYhC;E6ClDA;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;EAEhC;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAE9B;IAAoC;;;EACpC;IAAoC;;;EACpC;IAAoC;;;EACpC;IAAoC;;;EACpC;IAAoC;;;EAEpC;IAAiC;;;EACjC;IAAiC;;;EACjC;IAAiC;;;EACjC;IAAiC;;;EACjC;IAAiC;;;EAEjC;IAAkC;;;EAClC;IAAkC;;;EAClC;IAAkC;;;EAClC;IAAkC;;;EAClC;IAAkC;;;EAClC;IAAkC;;;EAElC;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;A7CYhC;E6ClDA;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;EAEhC;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAE9B;IAAoC;;;EACpC;IAAoC;;;EACpC;IAAoC;;;EACpC;IAAoC;;;EACpC;IAAoC;;;EAEpC;IAAiC;;;EACjC;IAAiC;;;EACjC;IAAiC;;;EACjC;IAAiC;;;EACjC;IAAiC;;;EAEjC;IAAkC;;;EAClC;IAAkC;;;EAClC;IAAkC;;;EAClC;IAAkC;;;EAClC;IAAkC;;;EAClC;IAAkC;;;EAElC;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;A7CYhC;E6ClDA;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;EAEhC;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAE9B;IAAoC;;;EACpC;IAAoC;;;EACpC;IAAoC;;;EACpC;IAAoC;;;EACpC;IAAoC;;;EAEpC;IAAiC;;;EACjC;IAAiC;;;EACjC;IAAiC;;;EACjC;IAAiC;;;EACjC;IAAiC;;;EAEjC;IAAkC;;;EAClC;IAAkC;;;EAClC;IAAkC;;;EAClC;IAAkC;;;EAClC;IAAkC;;;EAClC;IAAkC;;;EAElC;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;A7CYhC;E6ClDA;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;EAEhC;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAC9B;IAA8B;;;EAE9B;IAAoC;;;EACpC;IAAoC;;;EACpC;IAAoC;;;EACpC;IAAoC;;;EACpC;IAAoC;;;EAEpC;IAAiC;;;EACjC;IAAiC;;;EACjC;IAAiC;;;EACjC;IAAiC;;;EACjC;IAAiC;;;EAEjC;IAAkC;;;EAClC;IAAkC;;;EAClC;IAAkC;;;EAClC;IAAkC;;;EAClC;IAAkC;;;EAClC;IAAkC;;;EAElC;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;EAChC;IAAgC;;;AC5ChC;ECDF;;;ADEE;ECCF;;;ADAE;ECGF;;;A/CmDE;E8CxDA;ICDF;;;EDEE;ICCF;;;EDAE;ICGF;;;A/CmDE;E8CxDA;ICDF;;;EDEE;ICCF;;;EDAE;ICGF;;;A/CmDE;E8CxDA;ICDF;;;EDEE;ICCF;;;EDAE;ICGF;;;A/CmDE;E8CxDA;ICDF;;;EDEE;ICCF;;;EDAE;ICGF;;;ACAA;EAAyB;;;AAAzB;EAAyB;;;AAAzB;EAAyB;;;AAAzB;EAAyB;;;AAAzB;EAAyB;;;AAK3B;EACE;EACA;EACA;EACA;EACA,S1DmlBkC;;;A0DhlBpC;EACE;EACA;EACA;EACA;EACA,S1D2kBkC;;;A0DvkBlC;EADF;IAEI;IACA;IACA,S1DmkBgC;;;;A2DjmBpC;ECEE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAUA;EAEE;EACA;EACA;EACA;EACA;EACA;;;AC5BJ;EAAa;;;AACb;EAAU;;;AACV;EAAa;;;AACb;EAAe;;;ACCX;EAAuB;;;AAAvB;EAAuB;;;AAAvB;EAAuB;;;AAAvB;EAAuB;;;AAAvB;EAAuB;;;AAAvB;EAAuB;;;AAAvB;EAAuB;;;AAAvB;EAAuB;;;AAAvB;EAAuB;;;AAAvB;EAAuB;;;AAI3B;EAAU;;;AACV;EAAU;;;ACAF;EAAgC;;;AAChC;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAfF;EAAgC;;;AAChC;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAfF;EAAgC;;;AAChC;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAfF;EAAgC;;;AAChC;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAfF;EAAgC;;;AAChC;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAfF;EAAgC;;;AAChC;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAfF;EAAgC;;;AAChC;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAfF;EAAgC;;;AAChC;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAfF;EAAgC;;;AAChC;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAfF;EAAgC;;;AAChC;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAfF;EAAgC;;;AAChC;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAfF;EAAgC;;;AAChC;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAMN;EAAmB;;;AACnB;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;ArDaF;EqDjDI;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAMN;IAAmB;;;EACnB;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;ArDaF;EqDjDI;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAMN;IAAmB;;;EACnB;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;ArDaF;EqDjDI;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAMN;IAAmB;;;EACnB;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;ArDaF;EqDjDI;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAfF;IAAgC;;;EAChC;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAMN;IAAmB;;;EACnB;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;EAEF;AAAA;IAEE;;;ACzCN;EAAkB,ahEqPY;;;AgEjP9B;EAAiB;;;AACjB;EAAiB;;;AACjB;ECRE;EACA;EACA;;;ADcE;EAAwB;;;AACxB;EAAwB;;;AACxB;EAAwB;;;AtDsCxB;EsDxCA;IAAwB;;;EACxB;IAAwB;;;EACxB;IAAwB;;;AtDsCxB;EsDxCA;IAAwB;;;EACxB;IAAwB;;;EACxB;IAAwB;;;AtDsCxB;EsDxCA;IAAwB;;;EACxB;IAAwB;;;EACxB;IAAwB;;;AtDsCxB;EsDxCA;IAAwB;;;EACxB;IAAwB;;;EACxB;IAAwB;;;AAM5B;EAAmB;;;AACnB;EAAmB;;;AACnB;EAAmB;;;AAInB;EAAsB;;;AACtB;EAAsB;;;AACtB;EAAsB;;;AACtB;EAAsB;;;AAItB;EAAc;;;AEpCZ;EACE;;;AjEUF;EiENI;;;AALJ;EACE;;;AjEUF;EiENI;;;AALJ;EACE;;;AjEUF;EiENI;;;AALJ;EACE;;;AjEUF;EiENI;;;AALJ;EACE;;;AjEUF;EiENI;;;AALJ;EACE;;;AjEUF;EiENI;;;AALJ;EACE;;;AjEUF;EiENI;;;AALJ;EACE;;;AjEUF;EiENI;;;AFqCN;EAAa;;;AACb;EAAc;;;AAEd;EAAiB;;;AACjB;EAAiB;;;AAIjB;EGpDE;EACA;EACA;EACA;EACA;;;ACHF;ECCE;;;ADGF;ECHE;;;ACMA;EACE;AAAA;AAAA;IAKE;IAEA;;;EAIA;IACE;;;EASJ;IACE;;;EAcF;IACE;;;EAEF;AAAA;IAEE;IACA;;;EAQF;IACE;;;EAGF;AAAA;IAEE;;;EAGF;AAAA;AAAA;IAGE;IACA;;;EAGF;AAAA;IAEE;;;EAQF;IACE,MtE61B8B;;EsE31BhC;IACE;;;EAEF;IACE;;;EAIF;IACE;;;EAEF;IACE;;;EAGF;IACE;;EAEA;AAAA;IAEE;;;EAKF;AAAA;IAEE;;;EAIJ;IACE;;EAEA;AAAA;AAAA;AAAA;IAIE,ctEpHG;;;EsEwHP;IACE;IACA,ctE1HK;;;AuEbX;AAAA;AAAA;AAAA;AAAA;AAMA;AAAA;EAEC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EACA;;;AAGD;AAAA;EAEC;EACA;;;AAGD;AAAA;EAEC;EACA;;;AAGD;EACC;AAAA;IAEC;;;AAIF;AACA;EACC;EACA;EACA;;;AAGD;AAAA;EAEC;;;AAGD;AACA;EACC;EACA;EACA;;;AAGD;AAAA;AAAA;AAAA;EAIC;;;AAGD;EACC;;;AAGD;EACC;;;AAGD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAOC;;;AAGD;AAAA;AAAA;AAAA;AAAA;AAAA;EAMC;;;AAGD;AAAA;AAAA;AAAA;AAAA;EAKC;EACA;;;AAGD;AAAA;AAAA;EAGC;;;AAGD;AAAA;EAEC;;;AAGD;AAAA;AAAA;EAGC;;;AAGD;AAAA;EAEC;;;AAED;EACC;;;AAGD;EACC;;;ACxID;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsCA;EACE;EACA;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;;;AAEF;AAAA;AAAA;EAGE;EACA;EACA;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;;;AAEF;AAAA;EAEE;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;;;AAEF;AAAA;EAEE;EACA;EACA;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;;;AAEF;AAAA;EAEE;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;EACA;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;;;AAEF;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;;;ACtUF;AAAA;AAAA;AAGA;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;AAAA;EAEE;EACA;;;AAGF;EACE;;;AAGF;AAAA;EAEE;EACA;;;AAGF;AAAA;EAEE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;AAAA;AAAA;EAGE;;;AAGF;AAAA;EAEE;;;AAGF;AAAA;AAAA;AAGA;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;A7E9FA;EACE;;;AAGF;EACE;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAMF;EACE;;;AAIF;EACE;;;AAGF;EACE;;;A8ExDF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACQ;;;AAEV;AAAA;EAEE;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACQ;;;AAEV;AAAA;EAEE;EACA;EACA;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;AACA;AACA;AACA;AACA;AACA;EACA;EACA;AACA;EACA;EACA;EACA;EACQ;EACR;;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACQ;EACR;EACA;EACA;EACA;;;AAEJ;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;;;AAEF;AAAA;EAEE;EACQ;;;AAEV;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;AACE;AACA;AACA;AACA;AACA;EACA;EACA;AACA;;;AAEF;EACE;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACQ;;;AACR;EACE;EACA;EACA;;;AAEJ;EACE;EACA;EACA;EACA;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;;;AAEF;EACE;EACA;;;AAEF;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;AACE;AACA;AACA;AACA;AACA;EACA;EACA;AACA;;;AAEF;EACE;EACA;EACA;;;AAEF;AAAA;AAAA;EAGE;EACA;;;AAEF;AAAA;AAAA;EAGE;EACA;;;AAEF;AAAA;AAAA;AAAA;AAAA;EAKE;;;AAEF;AAAA;AAAA;AAAA;AAAA;EAKE;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;;;AAEF;AACA;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACQ;EACR;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACQ;EACR;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;;;AAEF;AAAA;AAAA;EAGE;EACA;;;AAEF;A9ExUA;EACE;;;AAIF;EACE;;;AAGF;EACE;EACA;;;AAQF;EACE;EACA;;;AAGF;EACE;EACA","file":"demo.min.css"} \ No newline at end of file diff --git a/demo/demo.min.js b/demo/demo.min.js new file mode 100644 index 0000000..bfc4490 --- /dev/null +++ b/demo/demo.min.js @@ -0,0 +1 @@ +!function(){var t={documents:{"-1180172198":{sentences:[{words:["Gonzo","married","Camilla","."],startOffsets:[0,6,14,21],endOffsets:[5,13,21,22],tags:["NNP","VBD","NNP","."],lemmas:["Gonzo","marry","Camilla","."],entities:["O","O","PERSON","O"],norms:["O","O","O","O"],chunks:["B-NP","B-VP","B-NP","O"],graphs:{"stanford-basic":{edges:[{source:1,destination:0,relation:"nsubj"},{source:1,destination:2,relation:"dobj"},{source:1,destination:3,relation:"punct"}],roots:[1]},"stanford-collapsed":{edges:[{source:1,destination:0,relation:"nsubj"},{source:1,destination:2,relation:"dobj"},{source:1,destination:3,relation:"punct"}],roots:[1]}}}]}},mentions:[{type:"TextBoundMention",id:"T:648733472",text:"Camilla",labels:["Person","PossiblePerson","Entity"],tokenInterval:{start:2,end:3},characterStartOffset:14,characterEndOffset:21,sentence:0,document:"-1180172198",keep:!0,foundBy:"ner-person"},{type:"EventMention",id:"E:1351231268",text:"Gonzo married Camilla",labels:["Marry"],trigger:{type:"TextBoundMention",id:"T:1627076846",text:"married",labels:["Marry"],tokenInterval:{start:1,end:2},characterStartOffset:6,characterEndOffset:13,sentence:0,document:"-1180172198",keep:!0,foundBy:"marry-syntax-1"},arguments:{spouse:[{type:"TextBoundMention",id:"T:1618195043",text:"Gonzo",labels:["Person","PossiblePerson","Entity"],tokenInterval:{start:0,end:1},characterStartOffset:0,characterEndOffset:5,sentence:0,document:"-1180172198",keep:!0,foundBy:"ner-person"},{type:"TextBoundMention",id:"T:648733472",text:"Camilla",labels:["Person","PossiblePerson","Entity"],tokenInterval:{start:2,end:3},characterStartOffset:14,characterEndOffset:21,sentence:0,document:"-1180172198",keep:!0,foundBy:"ner-person"}]},paths:{spouse:{"T:1618195043":[{source:1,destination:0,relation:"nsubj"}],"T:648733472":[{source:1,destination:2,relation:"dobj"}]}},tokenInterval:{start:0,end:3},characterStartOffset:0,characterEndOffset:21,sentence:0,document:"-1180172198",keep:!0,foundBy:"marry-syntax-1"},{type:"TextBoundMention",id:"T:1618195043",text:"Gonzo",labels:["Person","PossiblePerson","Entity"],tokenInterval:{start:0,end:1},characterStartOffset:0,characterEndOffset:5,sentence:0,document:"-1180172198",keep:!0,foundBy:"ner-person"}]},e={__esModule:!0};e.extend=s,e.indexOf=function(t,e){for(var n=0,i=t.length;n":">",'"':""","'":"'","`":"`","=":"="},i=/[&<>"'`=]/g,r=/[&<>"'`=]/;function o(t){return n[t]}function s(t){for(var e=1;e0?(i.ids&&(i.ids=[i.name]),t.helpers.each(n,i)):r(this);if(i.data&&i.ids){var s=e.createFrame(i.data);s.contextPath=e.appendContextPath(i.data.contextPath,i.name),i={data:s}}return o(n,i)})}};m=m.default;var y,b={__esModule:!0},x=(y=p)&&y.__esModule?y:{default:y};b.default=function(t){t.registerHelper("each",function(t,n){if(!n)throw new x.default("Must pass iterator to #each");var i=n.fn,r=n.inverse,o=0,s="",a=void 0,l=void 0;function u(n,r,o){a&&(a.key=n,a.index=r,a.first=0===r,a.last=!!o,l&&(a.contextPath=l+n)),s+=i(t[n],{data:a,blockParams:e.blockParams([t[n],n],[l+n,null])})}if(n.data&&n.ids&&(l=e.appendContextPath(n.data.contextPath,n.ids[0])+"."),e.isFunction(t)&&(t=t.call(this)),n.data&&(a=e.createFrame(n.data)),t&&"object"==typeof t)if(e.isArray(t))for(var c=t.length;o=0?n:parseInt(t,10)}return t},log:function(t){if(t=R.lookupLevel(t),"undefined"!=typeof console&&R.lookupLevel(R.level)<=t){var e=R.methodMap[t];console[e]||(e="log");for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r= 2.0.0-beta.1",7:">= 4.0.0"},z.prototype={constructor:z,logger:q.default,log:q.default.log,registerHelper:function(t,n){if("[object Object]"===e.toString.call(t)){if(n)throw new W.default("Arg not supported with multiple helpers");e.extend(this.helpers,t)}else this.helpers[t]=n},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,n){if("[object Object]"===e.toString.call(t))e.extend(this.partials,t);else{if(void 0===n)throw new W.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=n}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,n){if("[object Object]"===e.toString.call(t)){if(n)throw new W.default("Arg not supported with multiple decorators");e.extend(this.decorators,t)}else this.decorators[t]=n},unregisterDecorator:function(t){delete this.decorators[t]}};var $=q.default.log;B.log=$,B.createFrame=e.createFrame,B.logger=q.default;var U={};(function(t){"use strict";U.__esModule=!0,U.default=function(e){var n=void 0!==t?t:window,i=n.Handlebars;e.noConflict=function(){return n.Handlebars===e&&(n.Handlebars=i),e}},U=U.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var Y={__esModule:!0,checkRevision:function(t){var e=t&&t[0]||1,n=B.COMPILER_REVISION;if(e!==n){if(e\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n'},3:function(t,e,n,i,r,o,s){var a;return null!=(a=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.leaves:e,{name:"if",hash:{},fn:t.program(4,r,0,o,s),inverse:t.program(7,r,0,o,s),data:r}))?a:""},4:function(t,e,n,i,r,o,s){var a;return'\r\n
    \r\n'+(null!=(a=n.each.call(null!=e?e:t.nullContext||{},null!=e?e.leaves:e,{name:"each",hash:{},fn:t.program(5,r,0,o,s),inverse:t.noop,data:r}))?a:"")+"
\r\n\r\n"},5:function(t,e,n,i,r,o,s){var a,l,u=t.escapeExpression;return'
  • \r\n \r\n '+u("function"==typeof(l=null!=(l=n.label||(null!=e?e.label:e))?l:n.helperMissing)?l.call(null!=e?e:t.nullContext||{},{name:"label",hash:{},data:r}):l)+"\r\n \r\n\r\n"+(null!=(a=t.invokePartial(i.colourpicker,e,{name:"colourpicker",data:r,indent:" ",helpers:n,partials:i,decorators:t.decorators}))?a:"")+"
  • \r\n"},7:function(t,e,n,i,r){var o,s,a=null!=e?e:t.nullContext||{},l=n.helperMissing,u="function",c=t.escapeExpression;return'\r\n
    \r\n\r\n \r\n\r\n \r\n '+c(typeof(s=null!=(s=n.label||(null!=e?e.label:e))?s:l)===u?s.call(a,{name:"label",hash:{},data:r}):s)+"\r\n \r\n \r\n\r\n"+(null!=(o=t.invokePartial(i.colourpicker,e,{name:"colourpicker",data:r,indent:" ",helpers:n,partials:i,decorators:t.decorators}))?o:"")+'
    \r\n\r\n
    \r\n\r\n'+(null!=(o=t.invokePartial(i.taxonomySubtree,e,{name:"taxonomySubtree",data:r,indent:" ",helpers:n,partials:i,decorators:t.decorators}))?o:"")+"\r\n
    \r\n\r\n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,i,r,o,s){var a;return"\r\n\r\n\r\n"+(null!=(a=n.each.call(null!=e?e:t.nullContext||{},null!=e?e.children:e,{name:"each",hash:{},fn:t.program(3,r,0,o,s),inverse:t.noop,data:r}))?a:"")},main_d:function(t,e,n,i,r,o,s){return n.decorators.inline(t,e,n,{name:"inline",hash:{},fn:n.program(1,r,0,o,s),inverse:n.noop,args:["colourpicker"],data:r})||t},useDecorators:!0,usePartial:!0,useData:!0,useDepths:!0});function pt(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(u){return void n(u)}a.done?e(l):Promise.resolve(l).then(i,r)}var gt=function(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var o=t.apply(e,n);function s(t){pt(o,i,r,s,a,"next",t)}function a(t){pt(o,i,r,s,a,"throw",t)}s(void 0)})}},vt=function(t){return t&&t.__esModule?t:{default:t}},mt={exports:{}};!function(t){"use strict";var e,n=Object.prototype,i=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag",l=t.regeneratorRuntime;if(l)mt.exports=l;else{(l=t.regeneratorRuntime=mt.exports).wrap=y;var u="suspendedStart",c="suspendedYield",h="executing",f="completed",d={},p={};p[o]=function(){return this};var g=Object.getPrototypeOf,v=g&&g(g(L([])));v&&v!==n&&i.call(v,o)&&(p=v);var m=_.prototype=x.prototype=Object.create(p);w.prototype=m.constructor=_,_.constructor=w,_[a]=w.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(m),t},l.awrap=function(t){return{__await:t}},k(C.prototype),C.prototype[s]=function(){return this},l.AsyncIterator=C,l.async=function(t,e,n,i){var r=new C(y(t,e,n,i));return l.isGeneratorFunction(e)?r:r.next().then(function(t){return t.done?t.value:r.next()})},k(m),m[a]="Generator",m[o]=function(){return this},m.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},l.values=L,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return a.type="throw",a.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var l=i.call(s,"catchLoc"),u=i.call(s,"finallyLoc");if(l&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;A(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:L(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),d}}}function y(t,e,n,i){var r=e&&e.prototype instanceof x?e:x,o=Object.create(r.prototype),s=new S(i||[]);return o._invoke=function(t,e,n){var i=u;return function(r,o){if(i===h)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw o;return P()}for(n.method=r,n.arg=o;;){var s=n.delegate;if(s){var a=E(s,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===u)throw i=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var l=b(t,e,n);if("normal"===l.type){if(i=n.done?f:c,l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=f,n.method="throw",n.arg=l.arg)}}}(t,n,s),o}function b(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(i){return{type:"throw",arg:i}}}function x(){}function w(){}function _(){}function k(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function C(t){var e;this._invoke=function(n,r){function o(){return new Promise(function(e,o){!function e(n,r,o,s){var a=b(t[n],t,r);if("throw"!==a.type){var l=a.arg,u=l.value;return u&&"object"==typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,o,s)},function(t){e("throw",t,o,s)}):Promise.resolve(u).then(function(t){l.value=t,o(l)},function(t){return e("throw",t,o,s)})}s(a.arg)}(n,r,e,o)})}return e=e?e.then(o,o):o()}}function E(t,n){var i=t.iterator[n.method];if(i===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method))return d;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=b(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,d;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function L(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,s=function n(){for(;++r=0,wt=xt&&bt.regeneratorRuntime;if(bt.regeneratorRuntime=void 0,yt=mt,xt)bt.regeneratorRuntime=wt;else try{delete bt.regeneratorRuntime}catch(wo){bt.regeneratorRuntime=void 0}var _t=yt,kt={exports:{}};!function(t,e){"use strict";"object"==typeof kt.exports?kt.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){"use strict";var n=[],i=t.document,r=Object.getPrototypeOf,o=n.slice,s=n.concat,a=n.push,l=n.indexOf,u={},c=u.toString,h=u.hasOwnProperty,f=h.toString,d=f.call(Object),p={},g=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},v=function(t){return null!=t&&t===t.window},m={type:!0,src:!0,noModule:!0};function y(t,e,n){var r,o=(e=e||i).createElement("script");if(o.text=t,n)for(r in m)n[r]&&(o[r]=n[r]);e.head.appendChild(o).parentNode.removeChild(o)}function b(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?u[c.call(t)]||"object":typeof t}var x=function(t,e){return new x.fn.init(t,e)},w=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function _(t){var e=!!t&&"length"in t&&t.length,n=b(t);return!g(t)&&!v(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}x.fn=x.prototype={jquery:"3.3.1",constructor:x,length:0,toArray:function(){return o.call(this)},get:function(t){return null==t?o.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=x.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return x.each(this,t)},map:function(t){return this.pushStack(x.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n+~]|"+I+")"+I+"*"),$=new RegExp("="+I+"*([^\\]'\"]*?)"+I+"*\\]","g"),U=new RegExp(B),Y=new RegExp("^"+F+"$"),V={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+D+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,J=new RegExp("\\\\([\\da-f]{1,6}"+I+"?|("+I+")|.)","ig"),tt=function(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,nt=function(t,e){return e?"\0"===t?"\ufffd":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},it=function(){f()},rt=yt(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{N.apply(L=O.call(w.childNodes),w.childNodes),L[w.childNodes.length].nodeType}catch(wo){N={apply:L.length?function(t,e){M.apply(t,O.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function ot(t,e,i,r){var o,a,u,c,h,p,m,y=e&&e.ownerDocument,_=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==_&&9!==_&&11!==_)return i;if(!r&&((e?e.ownerDocument||e:w)!==d&&f(e),e=e||d,g)){if(11!==_&&(h=Q.exec(t)))if(o=h[1]){if(9===_){if(!(u=e.getElementById(o)))return i;if(u.id===o)return i.push(u),i}else if(y&&(u=y.getElementById(o))&&b(e,u)&&u.id===o)return i.push(u),i}else{if(h[2])return N.apply(i,e.getElementsByTagName(t)),i;if((o=h[3])&&n.getElementsByClassName&&e.getElementsByClassName)return N.apply(i,e.getElementsByClassName(o)),i}if(n.qsa&&!T[t+" "]&&(!v||!v.test(t))){if(1!==_)y=e,m=t;else if("object"!==e.nodeName.toLowerCase()){for((c=e.getAttribute("id"))?c=c.replace(et,nt):e.setAttribute("id",c=x),a=(p=s(t)).length;a--;)p[a]="#"+c+" "+mt(p[a]);m=p.join(","),y=Z.test(t)&>(e.parentNode)||e}if(m)try{return N.apply(i,y.querySelectorAll(m)),i}catch(k){}finally{c===x&&e.removeAttribute("id")}}}return l(t.replace(W,"$1"),e,i,r)}function st(){var t=[];return function e(n,r){return t.push(n+" ")>i.cacheLength&&delete e[t.shift()],e[n+" "]=r}}function at(t){return t[x]=!0,t}function lt(t){var e=d.createElement("fieldset");try{return!!t(e)}catch(wo){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var n=t.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=e}function ct(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ht(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ft(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function dt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&rt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function pt(t){return at(function(e){return e=+e,at(function(n,i){for(var r,o=t([],n.length,e),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})}function gt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=ot.support={},o=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},f=ot.setDocument=function(t){var e,r,s=t?t.ownerDocument||t:w;return s!==d&&9===s.nodeType&&s.documentElement?(p=(d=s).documentElement,g=!o(d),w!==d&&(r=d.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",it,!1):r.attachEvent&&r.attachEvent("onunload",it)),n.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),n.getElementsByTagName=lt(function(t){return t.appendChild(d.createComment("")),!t.getElementsByTagName("*").length}),n.getElementsByClassName=K.test(d.getElementsByClassName),n.getById=lt(function(t){return p.appendChild(t).id=x,!d.getElementsByName||!d.getElementsByName(x).length}),n.getById?(i.filter.ID=function(t){var e=t.replace(J,tt);return function(t){return t.getAttribute("id")===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n=e.getElementById(t);return n?[n]:[]}}):(i.filter.ID=function(t){var e=t.replace(J,tt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),i.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},m=[],v=[],n.qsa=K.test(d.querySelectorAll),n.matchesSelector=K.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector),v=v.length&&new RegExp(v.join("|")),m=m.length&&new RegExp(m.join("|")),e=K.test(p.compareDocumentPosition),b=e||K.test(p.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},A=e?function(t,e){if(t===e)return h=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===i?t===d||t.ownerDocument===w&&b(w,t)?-1:e===d||e.ownerDocument===w&&b(w,e)?1:c?j(c,t)-j(c,e):0:4&i?-1:1)}:function(t,e){if(t===e)return h=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,s=[t],a=[e];if(!r||!o)return t===d?-1:e===d?1:r?-1:o?1:c?j(c,t)-j(c,e):0;if(r===o)return ct(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ct(s[i],a[i]):s[i]===w?-1:a[i]===w?1:0},d):d},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if((t.ownerDocument||t)!==d&&f(t),e=e.replace($,"='$1']"),n.matchesSelector&&g&&!T[e+" "]&&(!m||!m.test(e))&&(!v||!v.test(e)))try{var i=y.call(t,e);if(i||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(wo){}return ot(e,d,null,[t]).length>0},ot.contains=function(t,e){return(t.ownerDocument||t)!==d&&f(t),b(t,e)},ot.attr=function(t,e){(t.ownerDocument||t)!==d&&f(t);var r=i.attrHandle[e.toLowerCase()],o=r&&S.call(i.attrHandle,e.toLowerCase())?r(t,e,!g):void 0;return void 0!==o?o:n.attributes||!g?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},ot.escape=function(t){return(t+"").replace(et,nt)},ot.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,i=[],r=0,o=0;if(h=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(A),h){for(;e=t[o++];)e===t[o]&&(r=i.push(o));for(;r--;)t.splice(i[r],1)}return c=null,t},r=ot.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=r(e);return n},(i=ot.selectors={cacheLength:50,createPseudo:at,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(J,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(J,tt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ot.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&U.test(n)&&(e=s(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(J,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=C[t+" "];return e||(e=new RegExp("(^|"+I+")"+t+"("+I+"|$)"))&&C(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(i){var r=ot.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(H," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var u,c,h,f,d,p,g=o!==s?"nextSibling":"previousSibling",v=e.parentNode,m=a&&e.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(v){if(o){for(;g;){for(f=e;f=f[g];)if(a?f.nodeName.toLowerCase()===m:1===f.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[s?v.firstChild:v.lastChild],s&&y){for(b=(d=(u=(c=(h=(f=v)[x]||(f[x]={}))[f.uniqueID]||(h[f.uniqueID]={}))[t]||[])[0]===_&&u[1])&&u[2],f=d&&v.childNodes[d];f=++d&&f&&f[g]||(b=d=0)||p.pop();)if(1===f.nodeType&&++b&&f===e){c[t]=[_,d,b];break}}else if(y&&(b=d=(u=(c=(h=(f=e)[x]||(f[x]={}))[f.uniqueID]||(h[f.uniqueID]={}))[t]||[])[0]===_&&u[1]),!1===b)for(;(f=++d&&f&&f[g]||(b=d=0)||p.pop())&&((a?f.nodeName.toLowerCase()!==m:1!==f.nodeType)||!++b||(y&&((c=(h=f[x]||(f[x]={}))[f.uniqueID]||(h[f.uniqueID]={}))[t]=[_,b]),f!==e)););return(b-=r)===i||b%i==0&&b/i>=0}}},PSEUDO:function(t,e){var n,r=i.pseudos[t]||i.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return r[x]?r(e):r.length>1?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?at(function(t,n){for(var i,o=r(t,e),s=o.length;s--;)t[i=j(t,o[s])]=!(n[i]=o[s])}):function(t){return r(t,0,n)}):r}},pseudos:{not:at(function(t){var e=[],n=[],i=a(t.replace(W,"$1"));return i[x]?at(function(t,e,n,r){for(var o,s=i(t,null,r,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:at(function(t){return function(e){return ot(t,e).length>0}}),contains:at(function(t){return t=t.replace(J,tt),function(e){return(e.textContent||e.innerText||r(e)).indexOf(t)>-1}}),lang:at(function(t){return Y.test(t||"")||ot.error("unsupported lang: "+t),t=t.replace(J,tt).toLowerCase(),function(e){var n;do{if(n=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:dt(!1),disabled:dt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!i.pseudos.empty(t)},header:function(t){return X.test(t.nodeName)},input:function(t){return G.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:pt(function(){return[0]}),last:pt(function(t,e){return[e-1]}),eq:pt(function(t,e,n){return[n<0?n+e:n]}),even:pt(function(t,e){for(var n=0;n=0;)t.push(i);return t}),gt:pt(function(t,e,n){for(var i=n<0?n+e:n;++i1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function xt(t,e,n,i,r){for(var o,s=[],a=0,l=t.length,u=null!=e;a-1&&(o[u]=!(s[u]=h))}}else m=xt(m===s?m.splice(p,m.length):m),r?r(null,s,m,l):N.apply(s,m)})}function _t(t){for(var e,n,r,o=t.length,s=i.relative[t[0].type],a=s||i.relative[" "],l=s?1:0,c=yt(function(t){return t===e},a,!0),h=yt(function(t){return j(e,t)>-1},a,!0),f=[function(t,n,i){var r=!s&&(i||n!==u)||((e=n).nodeType?c(t,n,i):h(t,n,i));return e=null,r}];l1&&bt(f),l>1&&mt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(W,"$1"),n,l0,r=t.length>0,o=function(o,s,a,l,c){var h,p,v,m=0,y="0",b=o&&[],x=[],w=u,k=o||r&&i.find.TAG("*",c),C=_+=null==w?1:Math.random()||.1,E=k.length;for(c&&(u=s===d||s||c);y!==E&&null!=(h=k[y]);y++){if(r&&h){for(p=0,s||h.ownerDocument===d||(f(h),a=!g);v=t[p++];)if(v(h,s||d,a)){l.push(h);break}c&&(_=C)}n&&((h=!v&&h)&&m--,o&&b.push(h))}if(m+=y,n&&y!==m){for(p=0;v=e[p++];)v(b,x,s,a);if(o){if(m>0)for(;y--;)b[y]||x[y]||(x[y]=P.call(l));x=xt(x)}N.apply(l,x),c&&!o&&x.length>0&&m+e.length>1&&ot.uniqueSort(l)}return c&&(_=C,u=w),b};return n?at(o):o}(o,r))).selector=t}return a},l=ot.select=function(t,e,n,r){var o,l,u,c,h,f="function"==typeof t&&t,d=!r&&s(t=f.selector||t);if(n=n||[],1===d.length){if((l=d[0]=d[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===e.nodeType&&g&&i.relative[l[1].type]){if(!(e=(i.find.ID(u.matches[0].replace(J,tt),e)||[])[0]))return n;f&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(o=V.needsContext.test(t)?0:l.length;o--&&(u=l[o],!i.relative[c=u.type]);)if((h=i.find[c])&&(r=h(u.matches[0].replace(J,tt),Z.test(l[0].type)&>(e.parentNode)||e))){if(l.splice(o,1),!(t=r.length&&mt(l)))return N.apply(n,r),n;break}}return(f||a(t,d))(r,e,!g,n,!e||Z.test(t)&>(e.parentNode)||e),n},n.sortStable=x.split("").sort(A).join("")===x,n.detectDuplicates=!!h,f(),n.sortDetached=lt(function(t){return 1&t.compareDocumentPosition(d.createElement("fieldset"))}),lt(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||ut("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),n.attributes&<(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ut("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),lt(function(t){return null==t.getAttribute("disabled")})||ut(D,function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),ot}(t);x.find=k,x.expr=k.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=k.uniqueSort,x.text=k.getText,x.isXMLDoc=k.isXML,x.contains=k.contains,x.escapeSelector=k.escape;var C=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&x(t).is(n))break;i.push(t)}return i},E=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},T=x.expr.match.needsContext;function A(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var S=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(t,e,n){return g(e)?x.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?x.grep(t,function(t){return t===e!==n}):"string"!=typeof e?x.grep(t,function(t){return l.call(e,t)>-1!==n}):x.filter(e,t,n)}x.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?x.find.matchesSelector(i,t)?[i]:[]:x.find.matches(t,x.grep(e,function(t){return 1===t.nodeType}))},x.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(x(t).filter(function(){for(e=0;e1?x.uniqueSort(n):n},filter:function(t){return this.pushStack(L(this,t||[],!1))},not:function(t){return this.pushStack(L(this,t||[],!0))},is:function(t){return!!L(this,"string"==typeof t&&T.test(t)?x(t):t||[],!1).length}});var P,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(t,e,n){var r,o;if(!t)return this;if(n=n||P,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:M.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof x?e[0]:e,x.merge(this,x.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:i,!0)),S.test(r[1])&&x.isPlainObject(e))for(r in e)g(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(o=i.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):g(t)?void 0!==n.ready?n.ready(t):t(x):x.makeArray(t,this)}).prototype=x.fn,P=x(i);var N=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function j(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}x.fn.extend({has:function(t){var e=x(t,this),n=e.length;return this.filter(function(){for(var t=0;t-1:1===n.nodeType&&x.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?x.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?l.call(x(t),this[0]):l.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),x.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return C(t,"parentNode")},parentsUntil:function(t,e,n){return C(t,"parentNode",n)},next:function(t){return j(t,"nextSibling")},prev:function(t){return j(t,"previousSibling")},nextAll:function(t){return C(t,"nextSibling")},prevAll:function(t){return C(t,"previousSibling")},nextUntil:function(t,e,n){return C(t,"nextSibling",n)},prevUntil:function(t,e,n){return C(t,"previousSibling",n)},siblings:function(t){return E((t.parentNode||{}).firstChild,t)},children:function(t){return E(t.firstChild)},contents:function(t){return A(t,"iframe")?t.contentDocument:(A(t,"template")&&(t=t.content||t),x.merge([],t.childNodes))}},function(t,e){x.fn[t]=function(n,i){var r=x.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=x.filter(i,r)),this.length>1&&(O[t]||x.uniqueSort(r),N.test(t)&&r.reverse()),this.pushStack(r)}});var D=/[^\x20\t\r\n\f]+/g;function I(t){return t}function F(t){throw t}function R(t,e,n,i){var r;try{t&&g(r=t.promise)?r.call(t).done(e).fail(n):t&&g(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}x.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return x.each(t.match(D)||[],function(t,n){e[n]=!0}),e}(t):x.extend({},t);var e,n,i,r,o=[],s=[],a=-1,l=function(){for(r=r||t.once,i=e=!0;s.length;a=-1)for(n=s.shift();++a-1;)o.splice(n,1),n<=a&&a--}),this},has:function(t){return t?x.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},x.extend({Deferred:function(e){var n=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return x.Deferred(function(e){x.each(n,function(n,i){var r=g(t[i[4]])&&t[i[4]];o[i[1]](function(){var t=r&&r.apply(this,arguments);t&&g(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[i[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(e,i,r){var o=0;function s(e,n,i,r){return function(){var a=this,l=arguments,u=function(){var t,u;if(!(e=o&&(i!==F&&(a=void 0,l=[wo]),n.rejectWith(a,l))}};e?c():(x.Deferred.getStackHook&&(c.stackTrace=x.Deferred.getStackHook()),t.setTimeout(c))}}return x.Deferred(function(t){n[0][3].add(s(0,t,g(r)?r:I,t.notifyWith)),n[1][3].add(s(0,t,g(e)?e:I)),n[2][3].add(s(0,t,g(i)?i:F))}).promise()},promise:function(t){return null!=t?x.extend(t,r):r}},o={};return x.each(n,function(t,e){var s=e[2],a=e[5];r[e[1]]=s.add,a&&s.add(function(){i=a},n[3-t][2].disable,n[3-t][3].disable,n[0][2].lock,n[0][3].lock),s.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=s.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=o.call(arguments),s=x.Deferred(),a=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?o.call(arguments):n,--e||s.resolveWith(i,r)}};if(e<=1&&(R(t,s.done(a(n)).resolve,s.reject,!e),"pending"===s.state()||g(r[n]&&r[n].then)))return s.then();for(;n--;)R(r[n],a(n),s.reject);return s.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,n){t.console&&t.console.warn&&e&&B.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},x.readyException=function(e){t.setTimeout(function(){throw e})};var H=x.Deferred();function W(){i.removeEventListener("DOMContentLoaded",W),t.removeEventListener("load",W),x.ready()}x.fn.ready=function(t){return H.then(t).catch(function(t){x.readyException(t)}),this},x.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==t&&--x.readyWait>0||H.resolveWith(i,[x]))}}),x.ready.then=H.then,"complete"===i.readyState||"loading"!==i.readyState&&!i.documentElement.doScroll?t.setTimeout(x.ready):(i.addEventListener("DOMContentLoaded",W),t.addEventListener("load",W));var q=function(t,e,n,i,r,o,s){var a=0,l=t.length,u=null==n;if("object"===b(n))for(a in r=!0,n)q(t,e,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,g(i)||(s=!0),u&&(s?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(x(t),n)})),e))for(;a1,null,!0)},removeData:function(t){return this.each(function(){K.remove(this,t)})}}),x.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=X.get(t,e),n&&(!i||Array.isArray(n)?i=X.access(t,e,x.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=x.queue(t,e),i=n.length,r=n.shift(),o=x._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,function(){x.dequeue(t,e)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return X.get(t,n)||X.access(t,n,{empty:x.Callbacks("once memory").add(function(){X.remove(t,[e+"queue",n])})})}}),x.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]+)/i,ht=/^$|^module$|\/(?:java|ecma)script/i,ft={option:[1,""],thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};function dt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&A(t,e)?x.merge([t],n):n}function pt(t,e){for(var n=0,i=t.length;n-1)r&&r.push(o);else if(u=x.contains(o.ownerDocument,o),s=dt(h.appendChild(o),"script"),u&&pt(s),n)for(c=0;o=s[c++];)ht.test(o.type||"")&&n.push(o);return h}gt=i.createDocumentFragment().appendChild(i.createElement("div")),(vt=i.createElement("input")).setAttribute("type","radio"),vt.setAttribute("checked","checked"),vt.setAttribute("name","t"),gt.appendChild(vt),p.checkClone=gt.cloneNode(!0).cloneNode(!0).lastChild.checked,gt.innerHTML="",p.noCloneChecked=!!gt.cloneNode(!0).lastChild.defaultValue;var bt=i.documentElement,xt=/^key/,wt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_t=/^([^.]*)(?:\.(.+)|)/;function kt(){return!0}function Ct(){return!1}function Et(){try{return i.activeElement}catch(t){}}function Tt(t,e,n,i,r,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)Tt(t,a,n,i,e[a],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Ct;else if(!r)return t;return 1===o&&(s=r,(r=function(t){return x().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=x.guid++)),t.each(function(){x.event.add(this,e,r,i,n)})}x.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,u,c,h,f,d,p,g,v=X.get(t);if(v)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&x.find.matchesSelector(bt,r),n.guid||(n.guid=x.guid++),(l=v.events)||(l=v.events={}),(s=v.handle)||(s=v.handle=function(e){return void 0!==x&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(D)||[""]).length;u--;)d=g=(a=_t.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),d&&(h=x.event.special[d]||{},d=(r?h.delegateType:h.bindType)||d,h=x.event.special[d]||{},c=x.extend({type:d,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&x.expr.match.needsContext.test(r),namespace:p.join(".")},o),(f=l[d])||((f=l[d]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,i,p,s)||t.addEventListener&&t.addEventListener(d,s)),h.add&&(h.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,c):f.push(c),x.event.global[d]=!0)},remove:function(t,e,n,i,r){var o,s,a,l,u,c,h,f,d,p,g,v=X.hasData(t)&&X.get(t);if(v&&(l=v.events)){for(u=(e=(e||"").match(D)||[""]).length;u--;)if(d=g=(a=_t.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),d){for(h=x.event.special[d]||{},f=l[d=(i?h.delegateType:h.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=f.length;o--;)c=f[o],!r&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,h.remove&&h.remove.call(t,c));s&&!f.length&&(h.teardown&&!1!==h.teardown.call(t,p,v.handle)||x.removeEvent(t,d,v.handle),delete l[d])}else for(d in l)x.event.remove(t,d+e[u],n,i,!0);x.isEmptyObject(l)&&X.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,s,a=x.event.fix(t),l=new Array(arguments.length),u=(X.get(this,"events")||{})[a.type]||[],c=x.event.special[a.type]||{};for(l[0]=a,e=1;e=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(o=[],s={},n=0;n-1:x.find(r,this,null,[u]).length),s[r]&&o.push(i);o.length&&a.push({elem:u,handlers:o})}return u=this,l\x20\t\r\n\f]*)[^>]*)\/>/gi,St=/\s*$/g;function Mt(t,e){return A(t,"table")&&A(11!==e.nodeType?e:e.firstChild,"tr")&&x(t).children("tbody")[0]||t}function Nt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ot(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function jt(t,e){var n,i,r,o,s,a,l,u;if(1===e.nodeType){if(X.hasData(t)&&(o=X.access(t),s=X.set(e,o),u=o.events))for(r in delete s.handle,s.events={},u)for(n=0,i=u[r].length;n1&&"string"==typeof v&&!p.checkClone&&Lt.test(v))return t.each(function(r){var o=t.eq(r);m&&(e[0]=v.call(this,r,o.html())),Dt(o,e,n,i)});if(f&&(o=(r=yt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(l=(a=x.map(dt(r,"script"),Nt)).length;h")},clone:function(t,e,n){var i,r,o,s,a,l,u,c=t.cloneNode(!0),h=x.contains(t.ownerDocument,t);if(!(p.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||x.isXMLDoc(t)))for(s=dt(c),i=0,r=(o=dt(t)).length;i0&&pt(s,!h&&dt(t,"script")),c},cleanData:function(t){for(var e,n,i,r=x.event.special,o=0;void 0!==(n=t[o]);o++)if(V(n)){if(e=n[X.expando]){if(e.events)for(i in e.events)r[i]?x.event.remove(n,i):x.removeEvent(n,i,e.handle);n[X.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),x.fn.extend({detach:function(t){return It(this,t,!0)},remove:function(t){return It(this,t)},text:function(t){return q(this,function(t){return void 0===t?x.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Dt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Mt(this,t).appendChild(t)})},prepend:function(){return Dt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Mt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Dt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Dt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(x.cleanData(dt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return x.clone(this,t,e)})},html:function(t){return q(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!St.test(t)&&!ft[(ct.exec(t)||["",""])[1].toLowerCase()]){t=x.htmlPrefilter(t);try{for(;n=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-a-.5))),l}function Qt(t,e,n){var i=Rt(t),r=Ht(t,e,i),o="border-box"===x.css(t,"boxSizing",!1,i),s=o;if(Ft.test(r)){if(!n)return r;r="auto"}return s=s&&(p.boxSizingReliable()||r===t.style[e]),("auto"===r||!parseFloat(r)&&"inline"===x.css(t,"display",!1,i))&&(r=t["offset"+e[0].toUpperCase()+e.slice(1)],s=!0),(r=parseFloat(r)||0)+Kt(t,e,n||(o?"border":"content"),s,i,r)+"px"}function Zt(t,e,n,i,r){return new Zt.prototype.init(t,e,n,i,r)}x.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Ht(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=Y(e),l=zt.test(e),u=t.style;if(l||(e=Gt(a)),s=x.cssHooks[e]||x.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(t,!1,i))?r:u[e];"string"==(o=typeof n)&&(r=et.exec(n))&&r[1]&&(n=ot(t,e,r),o="number"),null!=n&&n==n&&("number"===o&&(n+=r&&r[3]||(x.cssNumber[a]?"":"px")),p.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var r,o,s,a=Y(e);return zt.test(e)||(e=Gt(a)),(s=x.cssHooks[e]||x.cssHooks[a])&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=Ht(t,e,i)),"normal"===r&&e in Ut&&(r=Ut[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),x.each(["height","width"],function(t,e){x.cssHooks[e]={get:function(t,n,i){if(n)return!qt.test(x.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Qt(t,e,i):rt(t,$t,function(){return Qt(t,e,i)})},set:function(t,n,i){var r,o=Rt(t),s="border-box"===x.css(t,"boxSizing",!1,o),a=i&&Kt(t,e,i,s,o);return s&&p.scrollboxSize()===o.position&&(a-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-Kt(t,e,"border",!1,o)-.5)),a&&(r=et.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=x.css(t,e)),Xt(0,n,a)}}}),x.cssHooks.marginLeft=Wt(p.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Ht(t,"marginLeft"))||t.getBoundingClientRect().left-rt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(t,e){x.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+nt[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(x.cssHooks[t+e].set=Xt)}),x.fn.extend({css:function(t,e){return q(this,function(t,e,n){var i,r,o={},s=0;if(Array.isArray(e)){for(i=Rt(t),r=e.length;s1)}}),x.Tween=Zt,Zt.prototype={constructor:Zt,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||x.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var t=Zt.propHooks[this.prop];return t&&t.get?t.get(this):Zt.propHooks._default.get(this)},run:function(t){var e,n=Zt.propHooks[this.prop];return this.options.duration?this.pos=e=x.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Zt.propHooks._default.set(this),this}},Zt.prototype.init.prototype=Zt.prototype,Zt.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=x.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){x.fx.step[t.prop]?x.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[x.cssProps[t.prop]]&&!x.cssHooks[t.prop]?t.elem[t.prop]=t.now:x.style(t.elem,t.prop,t.now+t.unit)}}},Zt.propHooks.scrollTop=Zt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},x.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},x.fx=Zt.prototype.init,x.fx.step={};var Jt,te,ee=/^(?:toggle|show|hide)$/,ne=/queueHooks$/;function ie(){te&&(!1===i.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(ie):t.setTimeout(ie,x.fx.interval),x.fx.tick())}function re(){return t.setTimeout(function(){Jt=void 0}),Jt=Date.now()}function oe(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=nt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function se(t,e,n){for(var i,r=(ae.tweeners[e]||[]).concat(ae.tweeners["*"]),o=0,s=r.length;o1)},removeAttr:function(t){return this.each(function(){x.removeAttr(this,t)})}}),x.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?x.prop(t,e,n):(1===o&&x.isXMLDoc(t)||(r=x.attrHooks[e.toLowerCase()]||(x.expr.match.bool.test(e)?le:void 0)),void 0!==n?null===n?void x.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=x.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!p.radioValue&&"radio"===e&&A(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(D);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),le={set:function(t,e,n){return!1===e?x.removeAttr(t,n):t.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(t,e){var n=ue[e]||x.find.attr;ue[e]=function(t,e,i){var r,o,s=e.toLowerCase();return i||(o=ue[s],ue[s]=r,r=null!=n(t,e,i)?s:null,ue[s]=o),r}});var ce=/^(?:input|select|textarea|button)$/i,he=/^(?:a|area)$/i;function fe(t){return(t.match(D)||[]).join(" ")}function de(t){return t.getAttribute&&t.getAttribute("class")||""}function pe(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(D)||[]}x.fn.extend({prop:function(t,e){return q(this,x.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[x.propFix[t]||t]})}}),x.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(t)||(e=x.propFix[e]||e,r=x.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=x.find.attr(t,"tabindex");return e?parseInt(e,10):ce.test(t.nodeName)||he.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(x.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.fn.extend({addClass:function(t){var e,n,i,r,o,s,a,l=0;if(g(t))return this.each(function(e){x(this).addClass(t.call(this,e,de(this)))});if((e=pe(t)).length)for(;n=this[l++];)if(r=de(n),i=1===n.nodeType&&" "+fe(r)+" "){for(s=0;o=e[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(a=fe(i))&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,i,r,o,s,a,l=0;if(g(t))return this.each(function(e){x(this).removeClass(t.call(this,e,de(this)))});if(!arguments.length)return this.attr("class","");if((e=pe(t)).length)for(;n=this[l++];)if(r=de(n),i=1===n.nodeType&&" "+fe(r)+" "){for(s=0;o=e[s++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(a=fe(i))&&n.setAttribute("class",a)}return this},toggleClass:function(t,e){var n=typeof t,i="string"===n||Array.isArray(t);return"boolean"==typeof e&&i?e?this.addClass(t):this.removeClass(t):g(t)?this.each(function(n){x(this).toggleClass(t.call(this,n,de(this),e),e)}):this.each(function(){var e,r,o,s;if(i)for(r=0,o=x(this),s=pe(t);e=s[r++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=de(this))&&X.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":X.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+fe(de(n))+" ").indexOf(e)>-1)return!0;return!1}});var ge=/\r/g;x.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=g(t),this.each(function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,x(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=x.map(r,function(t){return null==t?"":t+""})),(e=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))})):r?(e=x.valHooks[r.type]||x.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(ge,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(t){var e=x.find.attr(t,"value");return null!=e?e:fe(x.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,s="select-one"===t.type,a=s?null:[],l=s?o+1:r.length;for(i=o<0?l:s?o:0;i-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=x.inArray(x(t).val(),e)>-1}},p.checkOn||(x.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),p.focusin="onfocusin"in t;var ve=/^(?:focusinfocus|focusoutblur)$/,me=function(t){t.stopPropagation()};x.extend(x.event,{trigger:function(e,n,r,o){var s,a,l,u,c,f,d,p,m=[r||i],y=h.call(e,"type")?e.type:e,b=h.call(e,"namespace")?e.namespace.split("."):[];if(a=p=l=r=r||i,3!==r.nodeType&&8!==r.nodeType&&!ve.test(y+x.event.triggered)&&(y.indexOf(".")>-1&&(b=y.split("."),y=b.shift(),b.sort()),c=y.indexOf(":")<0&&"on"+y,(e=e[x.expando]?e:new x.Event(y,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=b.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),n=null==n?[e]:x.makeArray(n,[e]),d=x.event.special[y]||{},o||!d.trigger||!1!==d.trigger.apply(r,n))){if(!o&&!d.noBubble&&!v(r)){for(u=d.delegateType||y,ve.test(u+y)||(a=a.parentNode);a;a=a.parentNode)m.push(a),l=a;l===(r.ownerDocument||i)&&m.push(l.defaultView||l.parentWindow||t)}for(s=0;(a=m[s++])&&!e.isPropagationStopped();)p=a,e.type=s>1?u:d.bindType||y,(f=(X.get(a,"events")||{})[e.type]&&X.get(a,"handle"))&&f.apply(a,n),(f=c&&a[c])&&f.apply&&V(a)&&(e.result=f.apply(a,n),!1===e.result&&e.preventDefault());return e.type=y,o||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(m.pop(),n)||!V(r)||c&&g(r[y])&&!v(r)&&((l=r[c])&&(r[c]=null),x.event.triggered=y,e.isPropagationStopped()&&p.addEventListener(y,me),r[y](),e.isPropagationStopped()&&p.removeEventListener(y,me),x.event.triggered=void 0,l&&(r[c]=l)),e.result}},simulate:function(t,e,n){var i=x.extend(new x.Event,n,{type:t,isSimulated:!0});x.event.trigger(i,null,e)}}),x.fn.extend({trigger:function(t,e){return this.each(function(){x.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return x.event.trigger(t,e,n,!0)}}),p.focusin||x.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){x.event.simulate(e,t.target,x.event.fix(t))};x.event.special[e]={setup:function(){var i=this.ownerDocument||this,r=X.access(i,e);r||i.addEventListener(t,n,!0),X.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=X.access(i,e)-1;r?X.access(i,e,r):(i.removeEventListener(t,n,!0),X.remove(i,e))}}});var ye=t.location,be=Date.now(),xe=/\?/;x.parseXML=function(e){var n;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(wo){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+e),n};var we=/\[\]$/,_e=/\r?\n/g,ke=/^(?:submit|button|image|reset|file)$/i,Ce=/^(?:input|select|textarea|keygen)/i;function Ee(t,e,n,i){var r;if(Array.isArray(e))x.each(e,function(e,r){n||we.test(t)?i(t,r):Ee(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)});else if(n||"object"!==b(e))i(t,e);else for(r in e)Ee(t+"["+r+"]",e[r],n,i)}x.param=function(t,e){var n,i=[],r=function(t,e){var n=g(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(t)||t.jquery&&!x.isPlainObject(t))x.each(t,function(){r(this.name,this.value)});else for(n in t)Ee(n,t[n],e,r);return i.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=x.prop(this,"elements");return t?x.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!x(this).is(":disabled")&&Ce.test(this.nodeName)&&!ke.test(t)&&(this.checked||!ut.test(t))}).map(function(t,e){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,function(t){return{name:e.name,value:t.replace(_e,"\r\n")}}):{name:e.name,value:n.replace(_e,"\r\n")}}).get()}});var Te=/%20/g,Ae=/#.*$/,Se=/([?&])_=[^&]*/,Le=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pe=/^(?:GET|HEAD)$/,Me=/^\/\//,Ne={},Oe={},je="*/".concat("*"),De=i.createElement("a");function Ie(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(D)||[];if(g(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Fe(t,e,n,i){var r={},o=t===Oe;function s(a){var l;return r[a]=!0,x.each(t[a]||[],function(t,a){var u=a(e,n,i);return"string"!=typeof u||o||r[u]?o?!(l=u):void 0:(e.dataTypes.unshift(u),s(u),!1)}),l}return s(e.dataTypes[0])||!r["*"]&&s("*")}function Re(t,e){var n,i,r=x.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&x.extend(!0,t,i),t}De.href=ye.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ye.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ye.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":je,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Re(Re(t,x.ajaxSettings),e):Re(x.ajaxSettings,t)},ajaxPrefilter:Ie(Ne),ajaxTransport:Ie(Oe),ajax:function(e,n){"object"==typeof e&&(n=e,e=void 0),n=n||{};var r,o,s,a,l,u,c,h,f,d,p=x.ajaxSetup({},n),g=p.context||p,v=p.context&&(g.nodeType||g.jquery)?x(g):x.event,m=x.Deferred(),y=x.Callbacks("once memory"),b=p.statusCode||{},w={},_={},k="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a)for(a={};e=Le.exec(s);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(t,e){return null==c&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)C.always(t[C.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||k;return r&&r.abort(e),E(0,e),this}};if(m.promise(C),p.url=((e||p.url||ye.href)+"").replace(Me,ye.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(D)||[""],null==p.crossDomain){u=i.createElement("a");try{u.href=p.url,u.href=u.href,p.crossDomain=De.protocol+"//"+De.host!=u.protocol+"//"+u.host}catch(wo){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),Fe(Ne,p,n,C),c)return C;for(f in(h=x.event&&p.global)&&0==x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Pe.test(p.type),o=p.url.replace(Ae,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Te,"+")):(d=p.url.slice(o.length),p.data&&(p.processData||"string"==typeof p.data)&&(o+=(xe.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(o=o.replace(Se,"$1"),d=(xe.test(o)?"&":"?")+"_="+be+++d),p.url=o+d),p.ifModified&&(x.lastModified[o]&&C.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&C.setRequestHeader("If-None-Match",x.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+je+"; q=0.01":""):p.accepts["*"]),p.headers)C.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(!1===p.beforeSend.call(g,C,p)||c))return C.abort();if(k="abort",y.add(p.complete),C.done(p.success),C.fail(p.error),r=Fe(Oe,p,n,C)){if(C.readyState=1,h&&v.trigger("ajaxSend",[C,p]),c)return C;p.async&&p.timeout>0&&(l=t.setTimeout(function(){C.abort("timeout")},p.timeout));try{c=!1,r.send(w,E)}catch(wo){if(c)throw wo;E(-1,wo)}}else E(-1,"No Transport");function E(e,n,i,a){var u,f,d,w,_,k=n;c||(c=!0,l&&t.clearTimeout(l),r=void 0,s=a||"",C.readyState=e>0?4:0,u=e>=200&&e<300||304===e,i&&(w=function(t,e,n){for(var i,r,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,C,i)),w=function(t,e,n,i){var r,o,s,a,l,u={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=u[l+" "+o]||u["* "+o]))for(r in u)if((a=r.split(" "))[1]===o&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[r]:!0!==u[r]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(wo){return{state:"parsererror",error:s?wo:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(p,w,C,u),u?(p.ifModified&&((_=C.getResponseHeader("Last-Modified"))&&(x.lastModified[o]=_),(_=C.getResponseHeader("etag"))&&(x.etag[o]=_)),204===e||"HEAD"===p.type?k="nocontent":304===e?k="notmodified":(k=w.state,f=w.data,u=!(d=w.error))):(d=k,!e&&k||(k="error",e<0&&(e=0))),C.status=e,C.statusText=(n||k)+"",u?m.resolveWith(g,[f,k,C]):m.rejectWith(g,[C,k,d]),C.statusCode(b),b=void 0,h&&v.trigger(u?"ajaxSuccess":"ajaxError",[C,p,u?f:d]),y.fireWith(g,[C,k]),h&&(v.trigger("ajaxComplete",[C,p]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,n){return x.get(t,e,n,"json")},getScript:function(t,e){return x.get(t,void 0,e,"script")}}),x.each(["get","post"],function(t,e){x[e]=function(t,n,i,r){return g(n)&&(r=r||i,i=n,n=void 0),x.ajax(x.extend({url:t,type:e,dataType:r,data:n,success:i},x.isPlainObject(t)&&t))}}),x._evalUrl=function(t){return x.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},x.fn.extend({wrapAll:function(t){var e;return this[0]&&(g(t)&&(t=t.call(this[0])),e=x(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return g(t)?this.each(function(e){x(this).wrapInner(t.call(this,e))}):this.each(function(){var e=x(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=g(t);return this.each(function(n){x(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(t){return!x.expr.pseudos.visible(t)},x.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(wo){}};var Be={0:200,1223:204},He=x.ajaxSettings.xhr();p.cors=!!He&&"withCredentials"in He,p.ajax=He=!!He,x.ajaxTransport(function(e){var n,i;if(p.cors||He&&!e.crossDomain)return{send:function(r,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);n=function(t){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Be[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=a.ontimeout=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&t.setTimeout(function(){n&&i()})},n=n("abort");try{a.send(e.hasContent&&e.data||null)}catch(wo){if(n)throw wo}},abort:function(){n&&n()}}}),x.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return x.globalEval(t),t}}}),x.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),x.ajaxTransport("script",function(t){var e,n;if(t.crossDomain)return{send:function(r,o){e=x(" + + +
    +

    TextAnnotationGraphs (TAG) Demo

    + +
    +
    +

    Documentation

    +

    + See the API documentation here. +

    +
    +
    + +
    +
    +

    Basic example

    +

    + For a minimal embedded TAG visualisation, simply specify the container element, the annotation data to load, and + the format that the data is in. +

    +

    + See the full source for this example in the "Basic example" section of + src/demo.js. +

    + +
    +const tag = TAG.tag({
    +  container: "container-id",
    +  data: {...},
    +  format: "odin",
    +  options: {
    +    showTopArgLabels: true
    +  }
    +});
    + +
    + +
    +
    + +
    +
    +

    Extended UI example

    +

    + It is also possible to build a UI around the TAG visualisation using the various API functions. +

    +

    + This example uses Bootstrap 4 styles and components. See the source in the "Advanced/UI example" section of + src/demo.js. +

    + + +
    + + + + + + + + + + + + + + + + + + + + +
    + +
    + +
    +
    + +
    + + + + + + + \ No newline at end of file diff --git a/demo/server.js b/demo/server.js new file mode 100644 index 0000000..4e8236e --- /dev/null +++ b/demo/server.js @@ -0,0 +1,76 @@ +/** + * Sets up an Express server to serve the demo files + */ + +const config = { + port: (process.env.PORT || 8080) +}; + +const express = require("express"); +const http = require("http"); +const path = require("path"); + +const app = express(); + +// Logging middleware +// ------------------ +const logger = require("morgan"); +app.use(logger("dev")); + +// Demo files and documentation +// ---------------------------- +app.use(express.static(__dirname)); +app.use("/dist", express.static(path.join(__dirname, "..", "dist"))); +app.use("/docs", express.static(path.join(__dirname, "..", "docs"))); + +// Set up HTTP interface +// --------------------- +app.set("port", config.port); + +const server = http.createServer(app); +server.listen(config.port); +server.on("error", onError); +server.on("listening", onListening); + +// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= +// Functions + +/** + * Event listener for HTTP server "error" event. + */ + +function onError(error) { + if (error.syscall !== "listen") { + throw error; + } + + const bind = typeof config.port === "string" + ? "Pipe " + config.port + : "Port " + config.port; + + // handle specific listen errors with friendly messages + switch (error.code) { + case "EACCES": + console.error(bind + " requires elevated privileges"); + process.exit(1); + break; + case "EADDRINUSE": + console.error(bind + " is already in use"); + process.exit(1); + break; + default: + throw error; + } +} + +/** + * Event listener for HTTP server "listening" event. + */ + +function onListening() { + const addr = server.address(); + const bind = typeof addr === "string" + ? "pipe " + addr + : "port " + addr.port; + console.log("Listening on " + bind); +} \ No newline at end of file diff --git a/demo/src/demo.js b/demo/src/demo.js new file mode 100644 index 0000000..9ce88b7 --- /dev/null +++ b/demo/src/demo.js @@ -0,0 +1,543 @@ +/** + * This sample script demonstrates how to import the main TAG library and show + * a simple visualisation embedded in a web page. + * + * To run a live version of the demo, execute `npm run demo` from the main + * folder. + * + * If you have made any changes to this file, execute `npm run demo-build` + * from the main folder to see your changes reflected. + */ + +// For your own projects, use `require("text-annotation-graphs")` instead +const TAG = require("../../src/js/tag.js"); + +const $ = require("jquery"); +const _ = require("lodash"); + +// Bootstrap includes for the full UI demo +require("popper.js"); +require("bootstrap/js/dist/collapse"); +require("bootstrap/js/dist/dropdown"); +require("bootstrap/js/dist/modal"); +require("bootstrap/js/dist/popover"); + +// Prism for syntax highlighting +require("prismjs"); + +// CodeFlask for editing the taxonomy on the fly +const CodeFlask = require("codeflask"); + +// Handlebars recursive template for the taxonomy colour picker demo +const tplTaxonomy = require("./taxonomy.hbs"); +const Handlebars = require("hbsfy/runtime"); +Handlebars.registerPartial("taxonomySubtree", tplTaxonomy); + +// Sliders for setting display options on the fly +require("bootstrap-slider"); + +// The colour picker script itself is included in the main HTML, because it +// doesn't play nice with Browserify. Here we expose the jquery globals it +// needs. +window.$ = $; +window.jQuery = $; + +// Main function +$(async () => { + // ----- + // Fonts + // ----- + // Because the demo uses an externally-loaded font, we use the Web Font + // Loader to ensure that it is available before initialisation (so that we + // can calculate the dimensions of SVG Text elements accurately) + const fontLoadPromise = new Promise((resolve, reject) => { + WebFont.load({ + google: { + families: ["Nunito:600,700"] + }, + active: () => { + resolve(); + } + }); + }); + + await fontLoadPromise; + + // ------------- + // Basic example + // ------------- + const $basicContainer = $("#basicContainer"); + const basicTag = TAG.tag({ + // The `container` parameter can take either the ID of the main element or + // the main element itself (as either a jQuery or native object) + container: $basicContainer, + + // The initial data to load. + // Different formats might expect different types for `data`: + // E.g., the "odin" format expects the annotations as an + // (already-parsed) Object, while the "brat" format expects them as a raw + // String. + // See the full documentation for details. + data: require("../data/test-odin.json"), + format: "odin", + + // Overrides for default options + options: { + showTopArgLabels: true + } + }); + + // ------------------- + // Advanced/UI example + // ------------------- + const $uiContainer = $("#uiContainer"); + const uiTag = TAG.tag({ + container: $uiContainer + }); + + // Data can be loaded after initialisation using the `.loadData()` function, + // or from a remote URL via the asynchronous `.loadUrlAsync()` function. + await uiTag.loadUrlAsync("data/sentence-1-odin.json", "odin"); + + // -------------------------------------------------------------------------- + + // Data from an external URL can also be loaded into the visualisation + // using the `.loadUrlAsync()` function. The data will be read and displayed + // asynchronously. + $("#tag-change-dataset").on("click", ".tag-dataset", async (event) => { + event.preventDefault(); + const $link = $(event.target); + await uiTag.loadUrlAsync($link.data("path"), $link.data("format")); + refreshLinkAndTagCategories(); + }); + + // -------------------------------------------------------------------------- + + // Custom annotation files can also be uploaded by the user and loaded + // using the `.loadFilesAsync()` function. The file(s) will be read and + // displayed asynchronously. + $("#tag-upload-input").on("change", (event) => { + // Show the names of the selected files + const names = + _.map(event.target.files, file => file.name) + .join(", "); + $("#tag-upload-label").text(names); + }); + // Upload them when the user confirms the selection + $("#tag-upload-confirm").on("click", async () => { + const files = $("#tag-upload-input")[0].files; + const format = $("#tag-upload-format").val(); + + if (files.length > 0) { + // Upload the file(s), reset the form elements, hide the modal + // (In that order: We need to load the files before resetting the + // form, or the reference to the FileList gets lost) + await uiTag.loadFilesAsync(files, format); + refreshLinkAndTagCategories(); + + const $modal = $("#tag-upload"); + + $modal.wrap("
    ").closest("form").get(0).reset(); + $modal.unwrap(); + $("#tag-upload-label").text("Choose file(s)"); + + $modal.modal("hide"); + } + }); + + // -------------------------------------------------------------------------- + + // The `.getOption()` and `.setOption()` function can be used to change + // various advanced options. + // There are also some direct functions available that directly modify the + // visualisation, like `.setTopLinkCategory()` and `.setBottomLinkCategory()` + + + /** + * The categories available for the top and bottom Links/tags depends on the + * currently loaded data, so we call for a refresh any time the data changes + */ + function refreshLinkAndTagCategories() { + // [Categories for top Links] + // We will populate the select menu and add a change handler + const $optionTopLinks = $("#tag-option-top-links") + .empty() + .append($("")); + + const currentTopLinks = uiTag.getOption("topLinkCategory"); + for (const category of uiTag.getTopLinkCategories()) { + const $option = $("") + .attr("value", category) + .text(_.upperFirst(category)); + + if (category === currentTopLinks) { + $option.prop("selected", true); + } + + $optionTopLinks.append($option); + } + $optionTopLinks.on("change", () => { + uiTag.setTopLinkCategory($optionTopLinks.val()); + }); + + // [Categories for bottom Links] + // We will populate the select menu and add a change handler + const $optionBottomLinks = $("#tag-option-bottom-links") + .empty() + .append($("")); + + const currentBottomLinks = uiTag.getOption("bottomLinkCategory"); + for (const category of uiTag.getBottomLinkCategories()) { + const $option = $("") + .attr("value", category) + .text(_.upperFirst(category)); + + if (category === currentBottomLinks) { + $option.prop("selected", true); + } + + $optionBottomLinks.append($option); + } + $optionBottomLinks.on("change", () => { + uiTag.setBottomLinkCategory($optionBottomLinks.val()); + }); + + // [Categories for top tags] + // We will populate the select menu and add a change handler + const $optionTopTags = $("#tag-option-top-tags") + .empty() + .append($("")); + + const currentTopTags = uiTag.getOption("topTagCategory"); + for (const category of uiTag.getTagCategories()) { + const $option = $("") + .attr("value", category) + .text(_.upperFirst(category)); + + if (category === currentTopTags) { + $option.prop("selected", true); + } + + $optionTopTags.append($option); + } + $optionTopTags.on("change", () => { + uiTag.setTopTagCategory($optionTopTags.val()); + }); + + // [Categories for bottom tags] + // We will populate the select menu and add a change handler + const $optionBottomTags = $("#tag-option-bottom-tags") + .empty() + .append($("")); + + const currentBottomTags = uiTag.getOption("bottomTagCategory"); + for (const category of uiTag.getTagCategories()) { + const $option = $("") + .attr("value", category) + .text(_.upperFirst(category)); + + if (category === currentBottomTags) { + $option.prop("selected", true); + } + + $optionBottomTags.append($option); + } + $optionBottomTags.on("change", () => { + uiTag.setBottomTagCategory($optionBottomTags.val()); + }); + } + + refreshLinkAndTagCategories(); + + const $optionCompact = $("#tag-option-compact"); + $optionCompact + .prop("checked", uiTag.getOption("compactRows")) + .on("change", () => { + uiTag.setOption( + "compactRows", + $optionCompact[0].checked + ); + uiTag.draw(); + }); + + const $optionTopLinksOnMove = $("#tag-option-top-links-on-move"); + $optionTopLinksOnMove + .prop("checked", uiTag.getOption("showTopLinksOnMove")) + .on("change", () => { + uiTag.setOption( + "showTopLinksOnMove", + $optionTopLinksOnMove[0].checked + ); + }); + const $optionBottomLinksOnMove = $("#tag-option-bottom-links-on-move"); + $optionBottomLinksOnMove + .prop("checked", uiTag.getOption("showBottomLinksOnMove")) + .on("change", () => { + uiTag.setOption( + "showBottomLinksOnMove", + $optionBottomLinksOnMove[0].checked + ); + }); + + const $optionTopMainLabel = $("#tag-option-top-main-label"); + $optionTopMainLabel + .prop("checked", uiTag.getOption("showTopMainLabel")) + .on("change", () => { + uiTag.setTopMainLabelVisibility($optionTopMainLabel[0].checked); + }); + const $optionTopArgLabels = $("#tag-option-top-arg-labels"); + $optionTopArgLabels + .prop("checked", uiTag.getOption("showTopArgLabels")) + .on("change", () => { + uiTag.setTopArgLabelVisibility($optionTopArgLabels[0].checked); + }); + const $optionBottomMainLabel = $("#tag-option-bottom-main-label"); + $optionBottomMainLabel + .prop("checked", uiTag.getOption("showBottomMainLabel")) + .on("change", () => { + uiTag.setBottomMainLabelVisibility($optionBottomMainLabel[0].checked); + }); + const $optionBottomArgLabels = $("#tag-option-bottom-arg-labels"); + $optionBottomArgLabels + .prop("checked", uiTag.getOption("showBottomArgLabels")) + .on("change", () => { + uiTag.setBottomArgLabelVisibility($optionBottomArgLabels[0].checked); + }); + + // We can change various drawing options on the fly. + // This example uses a slider to change the intervals for overlapping links. + const $optionLinkSlot = $("#tag-option-link-slot"); + const $optionLinkSlotValue = $("#tag-option-link-slot-value"); + $optionLinkSlot.slider({ + min: 10, + max: 200, + step: 10, + value: uiTag.getOption("linkSlotInterval"), + tooltip: "hide" + }); + $optionLinkSlotValue.text($optionLinkSlot.val()); + $optionLinkSlot.on("slide", (event) => { + $optionLinkSlotValue.text(event.value); + uiTag.setOption("linkSlotInterval", event.value); + uiTag.draw(); + }); + // For direct click events, we need to target the slider directly, rather + // than our initial text input + $optionLinkSlot.siblings(".slider").on("click", () => { + const newValue = $optionLinkSlot.slider("getValue"); + $optionLinkSlotValue.text(newValue); + uiTag.setOption("linkSlotInterval", newValue); + uiTag.draw(); + }); + + + // -------------------------------------------------------------------------- + + // The `.exportSvg()` function can be used to save the current + // visualisation as an SVG file + $("#tag-download").on("click", () => { + uiTag.exportSvg(); + }); + + // -------------------------------------------------------------------------- + + // The taxonomy-related functions manage a representation of the taxonomic + // relations between various entities in the visualisation, and are also + // used to control the colouring of the corresponding tags/labels. + + // Here, we load up the sample taxonomy served with the demo files. + const sampleTaxonomy = await $.ajax("/taxonomy.yml"); + uiTag.loadTaxonomyYaml(sampleTaxonomy); + + // We can then render the taxonomy tree as an accordion list with colour + // pickers for each label. + + /** + * In order to render the taxonomy tree more easily using a Handlebars + * template, we convert the full tree object into a slightly flatter Array + * of plain Object blocks: + * - Consecutive leaf nodes are grouped together within a single Object + * - Branches of the tree are given one Object each, with a `children` + * property that can recursively contain more leaf/branch blocks + * - The assigned colour from the taxonomy manager for the given label is + * also recorded + * + * The flattened array is then passed to the Handlebars recursive template + * for rendering. + */ + function refreshTaxonomyTree() { + const rawTaxonomy = uiTag.getTaxonomyTree(); + + // We also pre-calculate the left-padding for nested branches here + const paddingIncrement = 20; + + // Recursive render block generator + const flattenTaxonomy = (taxonomy, depth) => { + depth = depth || 0; + + const flatTaxonomy = []; + let currentLeafBlock = []; + for (let node of taxonomy) { + if (!_.isObject(node)) { + // This is a leaf node - Add the raw and normalised label to the open + // leaf block and continue + currentLeafBlock.push({ + label: node, + id: _.kebabCase(node), + colour: uiTag.getColour(node) + }); + continue; + } + + // This is a branch node - See if we need to close the open leaf + // block + if (currentLeafBlock.length > 0) { + flatTaxonomy.push({ + leaves: currentLeafBlock, + padding: paddingIncrement * depth + }); + currentLeafBlock = []; + } + + // Get the label and recurse. + // There should only be a single key for this object, and it should be + // used as the label. The key should point to an Array of children to + // recurse with. + // We also need a normalised label to use as the id of the rendered + // HTML element. + const label = _.keys(node)[0]; + flatTaxonomy.push({ + label, + id: _.kebabCase(label), + colour: uiTag.getColour(label), + children: flattenTaxonomy(node[label], depth + 1), + padding: paddingIncrement * depth + }); + } + + // Done flattening all the children under this sub-tree. Close out the + // open leaf block if we have to, then return + if (currentLeafBlock.length > 0) { + flatTaxonomy.push({ + leaves: currentLeafBlock, + padding: paddingIncrement * depth + }); + } + return flatTaxonomy; + }; + + // Render HTML, refresh pickers + const renderTaxonomy = flattenTaxonomy(rawTaxonomy); + + $("#tag-taxonomy-tree").html( + tplTaxonomy({ + children: renderTaxonomy + }) + ); + $(".tag-cp") + .colorpicker({ + format: "hex", + autoInputFallback: false + }) + .on("change", (event) => { + /** + * When a new colour is selected, update the taxonomy manager + */ + const $this = $(event.target); + uiTag.setColour($this.data("label"), $this.val()); + }); + } + + refreshTaxonomyTree(); + + // -------------------------------------------------------------------------- + + // The taxonomy can also be read/set directly as a YAML document, allowing + // us to tweak the taxonomy on the fly + + // A simple editor allowing the user to edit the taxonomy directly + const editor = new CodeFlask("#tag-taxonomy-editor", {language: "yaml"}); + + // Copying the Prism YAML syntax definition here for syntax highlighting, + // since CodeFlask can't load it automatically + editor.addLanguage("yaml", { + "scalar": { + pattern: /([\-:]\s*(?:![^\s]+)?[ \t]*[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)[^\r\n]+(?:\2[^\r\n]+)*)/, + lookbehind: true, + alias: "string" + }, + "comment": /#.*/, + "key": { + pattern: /(\s*(?:^|[:\-,[{\r\n?])[ \t]*(?:![^\s]+)?[ \t]*)[^\r\n{[\]},#\s]+?(?=\s*:\s)/, + lookbehind: true, + alias: "atrule" + }, + "directive": { + pattern: /(^[ \t]*)%.+/m, + lookbehind: true, + alias: "important" + }, + "datetime": { + pattern: /([:\-,[{]\s*(?:![^\s]+)?[ \t]*)(?:\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?)?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?)(?=[ \t]*(?:$|,|]|}))/m, + lookbehind: true, + alias: "number" + }, + "boolean": { + pattern: /([:\-,[{]\s*(?:![^\s]+)?[ \t]*)(?:true|false)[ \t]*(?=$|,|]|})/im, + lookbehind: true, + alias: "important" + }, + "null": { + pattern: /([:\-,[{]\s*(?:![^\s]+)?[ \t]*)(?:null|~)[ \t]*(?=$|,|]|})/im, + lookbehind: true, + alias: "important" + }, + "string": { + pattern: /([:\-,[{]\s*(?:![^\s]+)?[ \t]*)("|')(?:(?!\2)[^\\\r\n]|\\.)*\2(?=[ \t]*(?:$|,|]|}))/m, + lookbehind: true, + greedy: true + }, + "number": { + pattern: /([:\-,[{]\s*(?:![^\s]+)?[ \t]*)[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+\.?\d*|\.?\d+)(?:e[+-]?\d+)?|\.inf|\.nan)[ \t]*(?=$|,|]|})/im, + lookbehind: true + }, + "tag": /![^\s]+/, + "important": /[&*][\w]+/, + "punctuation": /---|[:[\]{}\-,|>?]|\.\.\./ + }); + + $("#tag-taxonomy-stop-edit").on("click", () => { + // Try to save the new taxonomy YAML, letting the user know if anything + // broke + const $errors = $("#tag-taxonomy-editor-errors"); + try { + $errors.hide(); + const newYaml = editor.getCode(); + uiTag.loadTaxonomyYaml(newYaml); + refreshTaxonomyTree(); + } catch (err) { + $errors.text(err); + return $errors.show(); + } + + $("#tag-taxonomy-view").show(); + $("#tag-taxonomy-edit").hide(); + }); + + // Start with the editor hidden + $("#tag-taxonomy-edit").hide(); + $("#tag-taxonomy-start-edit").on("click", () => { + editor.updateCode(uiTag.getTaxonomyYaml()); + $("#tag-taxonomy-view").hide(); + $("#tag-taxonomy-edit").show(); + }); + + // -------------------------------------------------------------------------- + + // Debug + window._ = require("lodash"); + window.basicTag = basicTag; + window.uiTag = uiTag; + window.editor = editor; + window.yaml = require("js-yaml"); +}); \ No newline at end of file diff --git a/demo/src/demo.scss b/demo/src/demo.scss new file mode 100644 index 0000000..b588357 --- /dev/null +++ b/demo/src/demo.scss @@ -0,0 +1,90 @@ +/* + * Styles for the demo + */ +// Import Bootstrap 4 styles +@import "../../node_modules/bootstrap/scss/bootstrap"; +// Import Prismjs styles +@import "../../node_modules/prismjs/themes/prism"; +// Import Bootstrap-slider styles +@import "../../node_modules/bootstrap-slider/dist/css/bootstrap-slider"; +// Core TAG styles +@import "../../dist/tag/css/tag"; + +// Styles for on-the-fly taxonomy YAML editor +// Including overrides to prevent conflicts with default Prism styling +#tag-taxonomy-editor { + border: 1px solid lightgray; +} + +#tag-taxonomy-editor pre { + background: none; + + padding: 10px; + font-size: 13px; + line-height: 20px; + white-space: pre; + position: absolute; + top: 0; + left: 0; + overflow: auto; + margin: 0 !important; + outline: none; + text-align: left; +} + +#tag-taxonomy-editor code { + line-height: 20px; +} + +#tag-taxonomy-editor .codeflask { + min-height: 400px; + position: relative; +} + +// Styles for the taxonomy colour picker accordion + +// Missing borders above some accordion headers +#tag-taxonomy-tree div.collapse + a.card-header { + border-top: 1px solid rgba(0, 0, 0, .125); +} + +// Icons for accordion headers +[data-toggle="collapse"] i.fas:before { + content: "\f0d7"; +} + +[data-toggle="collapse"].collapsed i.fas:before { + content: "\f0da"; +} + +// Styles for the taxonomy colour picker plugin +@import "../../node_modules/bootstrap-colorpicker/dist/css/bootstrap-colorpicker"; + +.tag-cp input[type=text] { + width: 100px; +} + +// Styles for the bootstrap-slider plugin +.slider.slider-horizontal { + width: 300px; +} + +.slider-selection { + background: #337ab7; + opacity: 0.75; +} + +// Fonts used in the visualisation +// The actual loading of the font happens at the start of `demo.js` via the Web Font Loader, but we include the Google +// fonts import here as well so that they work properly for downloaded SVGs. +@import url("https://fonts.googleapis.com/css?family=Nunito:400,600,700"); + +svg, svg text { + font-family: Nunito, futura, helvetica, arial, sans-serif; + font-weight: 600; +} + +svg text { + cursor: default; + user-select: none; +} \ No newline at end of file diff --git a/demo/src/taxonomy.hbs b/demo/src/taxonomy.hbs new file mode 100644 index 0000000..00f2201 --- /dev/null +++ b/demo/src/taxonomy.hbs @@ -0,0 +1,74 @@ +{{!-- Recursive Handlebars partial for generating nested taxonomy accordion --}} + +{{!-- Before rendering, the full taxonomy tree should have been flattened into + -- an Array of plain Object blocks: + -- * Consecutive leaf nodes are grouped together within a single Object + -- * Branches of the tree are given one Object each, with a `children` + -- property that can recursively contain more leaf/branch blocks + --}} + +{{!-- Colour picker --}} +{{#*inline "colourpicker"}} + +
    + + + + + +
    +
    +{{/inline}} + +{{!-- Taxonomy tree entries --}} +{{#each children}} + {{#if leaves}} + {{!-- A leaf node block has the `leaves` property --}} + +
      + {{#each leaves}} +
    • + + {{label}} + + + {{> colourpicker}} +
    • + {{/each}} +
    + + {{else}} + {{!-- A recursive sub-tree --}} + + {{!-- The sub-tree label --}} + + + {{!-- The sub-tree children --}} +
    + + {{> taxonomySubtree }} + +
    + + {{/if}} +{{/each}} \ No newline at end of file diff --git a/taxonomy.yml b/demo/taxonomy.yml similarity index 100% rename from taxonomy.yml rename to demo/taxonomy.yml diff --git a/dist/tag/css/tag.css b/dist/tag/css/tag.css new file mode 100644 index 0000000..e8d1997 --- /dev/null +++ b/dist/tag/css/tag.css @@ -0,0 +1,109 @@ +/** + * Core styles for the library + */ +.tag-element text { + text-anchor: middle; +} + +.row-drag { + stroke-width: 2; + stroke-dasharray: 2, 1; + stroke: rgba(100, 100, 100, 0.3); + transition: stroke 300ms ease; + cursor: row-resize; +} + +.row-drag-compact { + cursor: default; +} + +.row-drag:hover { + stroke-dasharray: none; + stroke: rgba(100, 100, 100, 0.8); +} + +.word text { + font-size: 16px; + fill: black; +} + +.word-cluster path, +.word path { + stroke: #333; + fill: none; +} + +.word .word-text { + cursor: pointer; +} + +.word-cluster text, +.word .word-tag { + font-size: 12px; + cursor: text; +} + +.word-cluster text, +.word .word-tag { + fill: #333; +} + +.word .syntax-tag { + fill: #d0968f; +} + +.toggle-syntax .syntax-tag, .toggle-syntax .syntax-link { + display: none; +} + +.editing .word-tag, +.editing-text, +.editing text { + fill: #fff !important; +} + +.editing-rect, +.editing rect { + fill: #a94442; +} + +/** + * Links and link lines (which are SVG Paths) + */ +.link { + fill: #6590b4; + stroke-width: 1.5px; +} + +.link-main-label { + font-weight: bold; + font-size: 12px; +} + +.link-arg-label { + font-size: 11px; +} + +.link-text-bg { + fill: #fff; +} + +.link.syntax-link { + fill: #999; +} + +.link:hover { + stroke-width: 2.5px; +} + +.link path { + stroke: #6590b4; + fill: none; +} + +.syntax-link path { + stroke: #999; + fill: none; +} + +/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jc3MvdGFnLnNjc3MiLCJ0YWcuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUFBO0FBSUE7RUFDRSxvQkFBQTtDQ0FEOztBREdEO0VBQ0UsZ0JBQUE7RUFDQSx1QkFBQTtFQUNBLGlDQUFBO0VBQ0EsOEJBQUE7RUFDQSxtQkFBQTtDQ0FEOztBREdEO0VBQ0UsZ0JBQUE7Q0NBRDs7QURHRDtFQUNFLHVCQUFBO0VBQ0EsaUNBQUE7Q0NBRDs7QURHRDtFQUNFLGdCQUFBO0VBQ0EsWUFBQTtDQ0FEOztBREdEOztFQUVFLGFBQUE7RUFDQSxXQUFBO0NDQUQ7O0FER0Q7RUFDRSxnQkFBQTtDQ0FEOztBREdEOztFQUVFLGdCQUFBO0VBQ0EsYUFBQTtDQ0FEOztBREdEOztFQUVFLFdBQUE7Q0NBRDs7QURHRDtFQUNFLGNBQUE7Q0NBRDs7QURHRDtFQUNFLGNBQUE7Q0NBRDs7QURHRDs7O0VBR0Usc0JBQUE7Q0NBRDs7QURHRDs7RUFFRSxjQUFBO0NDQUQ7O0FER0Q7O0dBQUE7QUFHQTtFQUNFLGNBQUE7RUFDQSxvQkFBQTtDQ0FEOztBREdEO0VBQ0Usa0JBQUE7RUFDQSxnQkFBQTtDQ0FEOztBREdEO0VBQ0UsZ0JBQUE7Q0NBRDs7QURHRDtFQUNFLFdBQUE7Q0NBRDs7QURHRDtFQUNFLFdBQUE7Q0NBRDs7QURHRDtFQUNFLG9CQUFBO0NDQUQ7O0FER0Q7RUFDRSxnQkFBQTtFQUNBLFdBQUE7Q0NBRDs7QURHRDtFQUNFLGFBQUE7RUFDQSxXQUFBO0NDQUQiLCJmaWxlIjoidGFnLmNzcyJ9 */ \ No newline at end of file diff --git a/dist/tag/css/tag.css.map b/dist/tag/css/tag.css.map new file mode 100644 index 0000000..d3d96bb --- /dev/null +++ b/dist/tag/css/tag.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["../../../src/css/tag.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAIA;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;AAAA;EAEE;EACA;;;AAGF;EACE;;;AAGF;AAAA;EAEE;EACA;;;AAGF;AAAA;EAEE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;AAAA;AAAA;EAGE;;;AAGF;AAAA;EAEE;;;AAGF;AAAA;AAAA;AAGA;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA","file":"tag.css"} \ No newline at end of file diff --git a/dist/tag/css/tag.min.css b/dist/tag/css/tag.min.css index 52f9424..1fc660a 100644 --- a/dist/tag/css/tag.min.css +++ b/dist/tag/css/tag.min.css @@ -1 +1 @@ -#fill{position:absolute;z-index:-1;top:0;left:0;width:100%;height:100%}body{margin:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:BrownPro,Brown,futura,helvetica,arial,sans-serif;font-size:11px;min-height:100%;overflow-y:scroll}svg,svg text{font-family:Nunito,futura,helvetica,arial,sans-serif;font-weight:600}svg text{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#header{position:fixed;z-index:100;width:100%;padding:10px 20px;background-image:linear-gradient(to top,rgba(255,255,255,0),rgba(255,255,255,.8),#fff,#fff);top:0;color:#777;font:14px/1.5em helvetica,arial,sans-serif}header>div{float:right;display:inline-block;background:inherit;position:relative}#dataset,header>button{color:inherit;background:0 0;outline:0;cursor:pointer;font:inherit;border:none;padding:0;margin:10px}#dataset{display:inline-block;height:40px;background-color:#fff;border:1px solid #ddd;transition:background .2s ease}#dataset:hover{background:#fafafa}header>button:hover{border-bottom:1px solid grey}#input-modal textarea{width:100%;height:300px;padding:5px;font-size:15px}label[for=file-input]{padding:10px 15px;cursor:pointer;background:#4682b4;color:#fff;margin:10px 0;display:inline-block;border-radius:5px}.modal{color:#222;background:rgba(0,0,0,.3);width:100%;height:100%;top:0;left:0;position:fixed;z-index:1000;display:none}.modal.open{display:block}.modal>div{background:#faf9f9;margin:10vh auto;width:80%;max-width:700px;height:80vh;border-radius:6px;box-shadow:0 0 20px #000;font-size:14px;line-height:1.5em}.modal header{padding:0 1em;background:#fff;white-space:nowrap;overflow-x:auto;cursor:move;box-shadow:0 0 1em rgba(0,0,0,.15)}.modal header .tab{background:#dad7d6;display:inline-block;margin-top:.8em;padding:.5em 1em;cursor:pointer;border-radius:3px 3px 0 0;border:1px solid #dad7d6;border-bottom:none;text-transform:uppercase;font-size:.85em;letter-spacing:.03em;color:#555}.modal header .tab.active{color:#222;background:#faf9f9}.modal .page{position:relative;padding:2em;padding-top:.5em;display:none;height:calc(100% - 5.6em);overflow-y:auto}.modal .page.active{display:block}.modal svg{width:100%;height:100%;position:absolute;top:0;left:0}#toggle-taxonomy{font-size:.9em;text-decoration:underline;cursor:pointer;color:#4682b4;float:right}#taxonomy>ul{list-style-type:none;padding:0;margin:0}#taxonomy>ul ul{list-style-type:none;padding:0;padding-left:1.5em}#taxonomy li{margin-top:.5em;margin-bottom:.5em}#taxonomy input[type=checkbox]{margin-right:.5em}#taxonomy input.colorpicker{margin-left:.5em;width:5em;text-align:center;display:inline-block;outline:0;border:1px solid transparent;padding:.4em;border-radius:3px;cursor:pointer;box-shadow:0 0 8px rgba(0,0,0,.2);text-transform:uppercase;-moz-osx-font-smoothing:initial;-webkit-font-smoothing:initial}#taxonomy input.colorpicker[disabled=true]{border-color:#ccc;box-shadow:none;pointer-events:none;opacity:.5}#taxonomy input.colorpicker:focus{border-color:#fff}body>#tree-svg{border-top:1px solid #ccc;background:#faf9f9;position:fixed;bottom:0;font-size:14px;height:200px;width:100%;max-height:40vh}body{margin-bottom:200px}body.tree-closed{margin-bottom:0}body.tree-closed>#tree-svg{display:none}body>#tree-svg #tree-close{display:inline-block}#tree-close{display:none}#tree-close,#tree-popout{font-size:.9em;text-decoration:underline;cursor:pointer;fill:#4682b4}#tooltip{width:175px;background:#fafaf9;margin-bottom:10px;box-shadow:0 0 10px #555;border-radius:3px;position:absolute;padding:8px 0;font:14px helvetica,arial,sans-serif;font-weight:400;color:#444;display:none;z-index:100}#tooltip.active{display:block}#tooltip p{padding:4px 14px;margin:0;cursor:default}#tooltip p:hover{background-color:#4d9dfa;color:#fff}#tooltip hr{border-width:0;border-top:1px solid #ddd}#main{margin-top:100px;margin-bottom:20px;position:relative} \ No newline at end of file +.tag-element text{text-anchor:middle}.row-drag{stroke-width:2;stroke-dasharray:2,1;stroke:rgba(100,100,100,.3);transition:stroke .3s ease;cursor:row-resize}.row-drag-compact{cursor:default}.row-drag:hover{stroke-dasharray:none;stroke:rgba(100,100,100,.8)}.word text{font-size:16px;fill:#000}.word path,.word-cluster path{stroke:#333;fill:none}.word .word-text{cursor:pointer}.word .word-tag,.word-cluster text{font-size:12px;cursor:text}.word .word-tag,.word-cluster text{fill:#333}.word .syntax-tag{fill:#d0968f}.toggle-syntax .syntax-link,.toggle-syntax .syntax-tag{display:none}.editing .word-tag,.editing text,.editing-text{fill:#fff!important}.editing rect,.editing-rect{fill:#a94442}.link{fill:#6590b4;stroke-width:1.5px}.link-main-label{font-weight:700;font-size:12px}.link-arg-label{font-size:11px}.link-text-bg{fill:#fff}.link.syntax-link{fill:#999}.link:hover{stroke-width:2.5px}.link path{stroke:#6590b4;fill:none}.syntax-link path{stroke:#999;fill:none} \ No newline at end of file diff --git a/dist/tag/css/tag.min.css.map b/dist/tag/css/tag.min.css.map new file mode 100644 index 0000000..20da706 --- /dev/null +++ b/dist/tag/css/tag.min.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["../../../src/css/tag.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAIA;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;AAAA;EAEE;EACA;;;AAGF;EACE;;;AAGF;AAAA;EAEE;EACA;;;AAGF;AAAA;EAEE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;AAAA;AAAA;EAGE;;;AAGF;AAAA;EAEE;;;AAGF;AAAA;AAAA;AAGA;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA","file":"tag.min.css"} \ No newline at end of file diff --git a/dist/tag/css/vendor.min.css b/dist/tag/css/vendor.min.css deleted file mode 100644 index e69de29..0000000 diff --git a/dist/tag/js/tag.js b/dist/tag/js/tag.js new file mode 100644 index 0000000..4fed6fd --- /dev/null +++ b/dist/tag/js/tag.js @@ -0,0 +1,45333 @@ +(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i elements + // (i.e., `typeof document.createElement( "object" ) === "function"`). + // We don't want to classify *any* DOM node as a function. + return typeof obj === "function" && typeof obj.nodeType !== "number"; + }; + + +var isWindow = function isWindow( obj ) { + return obj != null && obj === obj.window; + }; + + + + + var preservedScriptAttributes = { + type: true, + src: true, + noModule: true + }; + + function DOMEval( code, doc, node ) { + doc = doc || document; + + var i, + script = doc.createElement( "script" ); + + script.text = code; + if ( node ) { + for ( i in preservedScriptAttributes ) { + if ( node[ i ] ) { + script[ i ] = node[ i ]; + } + } + } + doc.head.appendChild( script ).parentNode.removeChild( script ); + } + + +function toType( obj ) { + if ( obj == null ) { + return obj + ""; + } + + // Support: Android <=2.3 only (functionish RegExp) + return typeof obj === "object" || typeof obj === "function" ? + class2type[ toString.call( obj ) ] || "object" : + typeof obj; +} +/* global Symbol */ +// Defining this global in .eslintrc.json would create a danger of using the global +// unguarded in another place, it seems safer to define global only for this module + + + +var + version = "3.3.1", + + // Define a local copy of jQuery + jQuery = function( selector, context ) { + + // The jQuery object is actually just the init constructor 'enhanced' + // Need init if jQuery is called (just allow error to be thrown if not included) + return new jQuery.fn.init( selector, context ); + }, + + // Support: Android <=4.0 only + // Make sure we trim BOM and NBSP + rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g; + +jQuery.fn = jQuery.prototype = { + + // The current version of jQuery being used + jquery: version, + + constructor: jQuery, + + // The default length of a jQuery object is 0 + length: 0, + + toArray: function() { + return slice.call( this ); + }, + + // Get the Nth element in the matched element set OR + // Get the whole matched element set as a clean array + get: function( num ) { + + // Return all the elements in a clean array + if ( num == null ) { + return slice.call( this ); + } + + // Return just the one element from the set + return num < 0 ? this[ num + this.length ] : this[ num ]; + }, + + // Take an array of elements and push it onto the stack + // (returning the new matched element set) + pushStack: function( elems ) { + + // Build a new jQuery matched element set + var ret = jQuery.merge( this.constructor(), elems ); + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + + // Return the newly-formed element set + return ret; + }, + + // Execute a callback for every element in the matched set. + each: function( callback ) { + return jQuery.each( this, callback ); + }, + + map: function( callback ) { + return this.pushStack( jQuery.map( this, function( elem, i ) { + return callback.call( elem, i, elem ); + } ) ); + }, + + slice: function() { + return this.pushStack( slice.apply( this, arguments ) ); + }, + + first: function() { + return this.eq( 0 ); + }, + + last: function() { + return this.eq( -1 ); + }, + + eq: function( i ) { + var len = this.length, + j = +i + ( i < 0 ? len : 0 ); + return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] ); + }, + + end: function() { + return this.prevObject || this.constructor(); + }, + + // For internal use only. + // Behaves like an Array's method, not like a jQuery method. + push: push, + sort: arr.sort, + splice: arr.splice +}; + +jQuery.extend = jQuery.fn.extend = function() { + var options, name, src, copy, copyIsArray, clone, + target = arguments[ 0 ] || {}, + i = 1, + length = arguments.length, + deep = false; + + // Handle a deep copy situation + if ( typeof target === "boolean" ) { + deep = target; + + // Skip the boolean and the target + target = arguments[ i ] || {}; + i++; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target !== "object" && !isFunction( target ) ) { + target = {}; + } + + // Extend jQuery itself if only one argument is passed + if ( i === length ) { + target = this; + i--; + } + + for ( ; i < length; i++ ) { + + // Only deal with non-null/undefined values + if ( ( options = arguments[ i ] ) != null ) { + + // Extend the base object + for ( name in options ) { + src = target[ name ]; + copy = options[ name ]; + + // Prevent never-ending loop + if ( target === copy ) { + continue; + } + + // Recurse if we're merging plain objects or arrays + if ( deep && copy && ( jQuery.isPlainObject( copy ) || + ( copyIsArray = Array.isArray( copy ) ) ) ) { + + if ( copyIsArray ) { + copyIsArray = false; + clone = src && Array.isArray( src ) ? src : []; + + } else { + clone = src && jQuery.isPlainObject( src ) ? src : {}; + } + + // Never move original objects, clone them + target[ name ] = jQuery.extend( deep, clone, copy ); + + // Don't bring in undefined values + } else if ( copy !== undefined ) { + target[ name ] = copy; + } + } + } + } + + // Return the modified object + return target; +}; + +jQuery.extend( { + + // Unique for each copy of jQuery on the page + expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), + + // Assume jQuery is ready without the ready module + isReady: true, + + error: function( msg ) { + throw new Error( msg ); + }, + + noop: function() {}, + + isPlainObject: function( obj ) { + var proto, Ctor; + + // Detect obvious negatives + // Use toString instead of jQuery.type to catch host objects + if ( !obj || toString.call( obj ) !== "[object Object]" ) { + return false; + } + + proto = getProto( obj ); + + // Objects with no prototype (e.g., `Object.create( null )`) are plain + if ( !proto ) { + return true; + } + + // Objects with prototype are plain iff they were constructed by a global Object function + Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor; + return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString; + }, + + isEmptyObject: function( obj ) { + + /* eslint-disable no-unused-vars */ + // See https://github.com/eslint/eslint/issues/6125 + var name; + + for ( name in obj ) { + return false; + } + return true; + }, + + // Evaluates a script in a global context + globalEval: function( code ) { + DOMEval( code ); + }, + + each: function( obj, callback ) { + var length, i = 0; + + if ( isArrayLike( obj ) ) { + length = obj.length; + for ( ; i < length; i++ ) { + if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { + break; + } + } + } else { + for ( i in obj ) { + if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { + break; + } + } + } + + return obj; + }, + + // Support: Android <=4.0 only + trim: function( text ) { + return text == null ? + "" : + ( text + "" ).replace( rtrim, "" ); + }, + + // results is for internal usage only + makeArray: function( arr, results ) { + var ret = results || []; + + if ( arr != null ) { + if ( isArrayLike( Object( arr ) ) ) { + jQuery.merge( ret, + typeof arr === "string" ? + [ arr ] : arr + ); + } else { + push.call( ret, arr ); + } + } + + return ret; + }, + + inArray: function( elem, arr, i ) { + return arr == null ? -1 : indexOf.call( arr, elem, i ); + }, + + // Support: Android <=4.0 only, PhantomJS 1 only + // push.apply(_, arraylike) throws on ancient WebKit + merge: function( first, second ) { + var len = +second.length, + j = 0, + i = first.length; + + for ( ; j < len; j++ ) { + first[ i++ ] = second[ j ]; + } + + first.length = i; + + return first; + }, + + grep: function( elems, callback, invert ) { + var callbackInverse, + matches = [], + i = 0, + length = elems.length, + callbackExpect = !invert; + + // Go through the array, only saving the items + // that pass the validator function + for ( ; i < length; i++ ) { + callbackInverse = !callback( elems[ i ], i ); + if ( callbackInverse !== callbackExpect ) { + matches.push( elems[ i ] ); + } + } + + return matches; + }, + + // arg is for internal usage only + map: function( elems, callback, arg ) { + var length, value, + i = 0, + ret = []; + + // Go through the array, translating each of the items to their new values + if ( isArrayLike( elems ) ) { + length = elems.length; + for ( ; i < length; i++ ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret.push( value ); + } + } + + // Go through every key on the object, + } else { + for ( i in elems ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret.push( value ); + } + } + } + + // Flatten any nested arrays + return concat.apply( [], ret ); + }, + + // A global GUID counter for objects + guid: 1, + + // jQuery.support is not used in Core but other projects attach their + // properties to it so it needs to exist. + support: support +} ); + +if ( typeof Symbol === "function" ) { + jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; +} + +// Populate the class2type map +jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), +function( i, name ) { + class2type[ "[object " + name + "]" ] = name.toLowerCase(); +} ); + +function isArrayLike( obj ) { + + // Support: real iOS 8.2 only (not reproducible in simulator) + // `in` check used to prevent JIT error (gh-2145) + // hasOwn isn't used here due to false negatives + // regarding Nodelist length in IE + var length = !!obj && "length" in obj && obj.length, + type = toType( obj ); + + if ( isFunction( obj ) || isWindow( obj ) ) { + return false; + } + + return type === "array" || length === 0 || + typeof length === "number" && length > 0 && ( length - 1 ) in obj; +} +var Sizzle = +/*! + * Sizzle CSS Selector Engine v2.3.3 + * https://sizzlejs.com/ + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2016-08-08 + */ +(function( window ) { + +var i, + support, + Expr, + getText, + isXML, + tokenize, + compile, + select, + outermostContext, + sortInput, + hasDuplicate, + + // Local document vars + setDocument, + document, + docElem, + documentIsHTML, + rbuggyQSA, + rbuggyMatches, + matches, + contains, + + // Instance-specific data + expando = "sizzle" + 1 * new Date(), + preferredDoc = window.document, + dirruns = 0, + done = 0, + classCache = createCache(), + tokenCache = createCache(), + compilerCache = createCache(), + sortOrder = function( a, b ) { + if ( a === b ) { + hasDuplicate = true; + } + return 0; + }, + + // Instance methods + hasOwn = ({}).hasOwnProperty, + arr = [], + pop = arr.pop, + push_native = arr.push, + push = arr.push, + slice = arr.slice, + // Use a stripped-down indexOf as it's faster than native + // https://jsperf.com/thor-indexof-vs-for/5 + indexOf = function( list, elem ) { + var i = 0, + len = list.length; + for ( ; i < len; i++ ) { + if ( list[i] === elem ) { + return i; + } + } + return -1; + }, + + booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", + + // Regular expressions + + // http://www.w3.org/TR/css3-selectors/#whitespace + whitespace = "[\\x20\\t\\r\\n\\f]", + + // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier + identifier = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+", + + // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors + attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + + // Operator (capture 2) + "*([*^$|!~]?=)" + whitespace + + // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]" + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace + + "*\\]", + + pseudos = ":(" + identifier + ")(?:\\((" + + // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: + // 1. quoted (capture 3; capture 4 or capture 5) + "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + + // 2. simple (capture 6) + "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + + // 3. anything else (capture 2) + ".*" + + ")\\)|)", + + // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter + rwhitespace = new RegExp( whitespace + "+", "g" ), + rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), + + rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), + rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), + + rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ), + + rpseudo = new RegExp( pseudos ), + ridentifier = new RegExp( "^" + identifier + "$" ), + + matchExpr = { + "ID": new RegExp( "^#(" + identifier + ")" ), + "CLASS": new RegExp( "^\\.(" + identifier + ")" ), + "TAG": new RegExp( "^(" + identifier + "|[*])" ), + "ATTR": new RegExp( "^" + attributes ), + "PSEUDO": new RegExp( "^" + pseudos ), + "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), + "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), + // For use in libraries implementing .is() + // We use this for POS matching in `select` + "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) + }, + + rinputs = /^(?:input|select|textarea|button)$/i, + rheader = /^h\d$/i, + + rnative = /^[^{]+\{\s*\[native \w/, + + // Easily-parseable/retrievable ID or TAG or CLASS selectors + rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, + + rsibling = /[+~]/, + + // CSS escapes + // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters + runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), + funescape = function( _, escaped, escapedWhitespace ) { + var high = "0x" + escaped - 0x10000; + // NaN means non-codepoint + // Support: Firefox<24 + // Workaround erroneous numeric interpretation of +"0x" + return high !== high || escapedWhitespace ? + escaped : + high < 0 ? + // BMP codepoint + String.fromCharCode( high + 0x10000 ) : + // Supplemental Plane codepoint (surrogate pair) + String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); + }, + + // CSS string/identifier serialization + // https://drafts.csswg.org/cssom/#common-serializing-idioms + rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, + fcssescape = function( ch, asCodePoint ) { + if ( asCodePoint ) { + + // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER + if ( ch === "\0" ) { + return "\uFFFD"; + } + + // Control characters and (dependent upon position) numbers get escaped as code points + return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; + } + + // Other potentially-special ASCII characters get backslash-escaped + return "\\" + ch; + }, + + // Used for iframes + // See setDocument() + // Removing the function wrapper causes a "Permission Denied" + // error in IE + unloadHandler = function() { + setDocument(); + }, + + disabledAncestor = addCombinator( + function( elem ) { + return elem.disabled === true && ("form" in elem || "label" in elem); + }, + { dir: "parentNode", next: "legend" } + ); + +// Optimize for push.apply( _, NodeList ) +try { + push.apply( + (arr = slice.call( preferredDoc.childNodes )), + preferredDoc.childNodes + ); + // Support: Android<4.0 + // Detect silently failing push.apply + arr[ preferredDoc.childNodes.length ].nodeType; +} catch ( e ) { + push = { apply: arr.length ? + + // Leverage slice if possible + function( target, els ) { + push_native.apply( target, slice.call(els) ); + } : + + // Support: IE<9 + // Otherwise append directly + function( target, els ) { + var j = target.length, + i = 0; + // Can't trust NodeList.length + while ( (target[j++] = els[i++]) ) {} + target.length = j - 1; + } + }; +} + +function Sizzle( selector, context, results, seed ) { + var m, i, elem, nid, match, groups, newSelector, + newContext = context && context.ownerDocument, + + // nodeType defaults to 9, since context defaults to document + nodeType = context ? context.nodeType : 9; + + results = results || []; + + // Return early from calls with invalid selector or context + if ( typeof selector !== "string" || !selector || + nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { + + return results; + } + + // Try to shortcut find operations (as opposed to filters) in HTML documents + if ( !seed ) { + + if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { + setDocument( context ); + } + context = context || document; + + if ( documentIsHTML ) { + + // If the selector is sufficiently simple, try using a "get*By*" DOM method + // (excepting DocumentFragment context, where the methods don't exist) + if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) { + + // ID selector + if ( (m = match[1]) ) { + + // Document context + if ( nodeType === 9 ) { + if ( (elem = context.getElementById( m )) ) { + + // Support: IE, Opera, Webkit + // TODO: identify versions + // getElementById can match elements by name instead of ID + if ( elem.id === m ) { + results.push( elem ); + return results; + } + } else { + return results; + } + + // Element context + } else { + + // Support: IE, Opera, Webkit + // TODO: identify versions + // getElementById can match elements by name instead of ID + if ( newContext && (elem = newContext.getElementById( m )) && + contains( context, elem ) && + elem.id === m ) { + + results.push( elem ); + return results; + } + } + + // Type selector + } else if ( match[2] ) { + push.apply( results, context.getElementsByTagName( selector ) ); + return results; + + // Class selector + } else if ( (m = match[3]) && support.getElementsByClassName && + context.getElementsByClassName ) { + + push.apply( results, context.getElementsByClassName( m ) ); + return results; + } + } + + // Take advantage of querySelectorAll + if ( support.qsa && + !compilerCache[ selector + " " ] && + (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { + + if ( nodeType !== 1 ) { + newContext = context; + newSelector = selector; + + // qSA looks outside Element context, which is not what we want + // Thanks to Andrew Dupont for this workaround technique + // Support: IE <=8 + // Exclude object elements + } else if ( context.nodeName.toLowerCase() !== "object" ) { + + // Capture the context ID, setting it first if necessary + if ( (nid = context.getAttribute( "id" )) ) { + nid = nid.replace( rcssescape, fcssescape ); + } else { + context.setAttribute( "id", (nid = expando) ); + } + + // Prefix every selector in the list + groups = tokenize( selector ); + i = groups.length; + while ( i-- ) { + groups[i] = "#" + nid + " " + toSelector( groups[i] ); + } + newSelector = groups.join( "," ); + + // Expand context for sibling selectors + newContext = rsibling.test( selector ) && testContext( context.parentNode ) || + context; + } + + if ( newSelector ) { + try { + push.apply( results, + newContext.querySelectorAll( newSelector ) + ); + return results; + } catch ( qsaError ) { + } finally { + if ( nid === expando ) { + context.removeAttribute( "id" ); + } + } + } + } + } + } + + // All others + return select( selector.replace( rtrim, "$1" ), context, results, seed ); +} + +/** + * Create key-value caches of limited size + * @returns {function(string, object)} Returns the Object data after storing it on itself with + * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) + * deleting the oldest entry + */ +function createCache() { + var keys = []; + + function cache( key, value ) { + // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) + if ( keys.push( key + " " ) > Expr.cacheLength ) { + // Only keep the most recent entries + delete cache[ keys.shift() ]; + } + return (cache[ key + " " ] = value); + } + return cache; +} + +/** + * Mark a function for special use by Sizzle + * @param {Function} fn The function to mark + */ +function markFunction( fn ) { + fn[ expando ] = true; + return fn; +} + +/** + * Support testing using an element + * @param {Function} fn Passed the created element and returns a boolean result + */ +function assert( fn ) { + var el = document.createElement("fieldset"); + + try { + return !!fn( el ); + } catch (e) { + return false; + } finally { + // Remove from its parent by default + if ( el.parentNode ) { + el.parentNode.removeChild( el ); + } + // release memory in IE + el = null; + } +} + +/** + * Adds the same handler for all of the specified attrs + * @param {String} attrs Pipe-separated list of attributes + * @param {Function} handler The method that will be applied + */ +function addHandle( attrs, handler ) { + var arr = attrs.split("|"), + i = arr.length; + + while ( i-- ) { + Expr.attrHandle[ arr[i] ] = handler; + } +} + +/** + * Checks document order of two siblings + * @param {Element} a + * @param {Element} b + * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b + */ +function siblingCheck( a, b ) { + var cur = b && a, + diff = cur && a.nodeType === 1 && b.nodeType === 1 && + a.sourceIndex - b.sourceIndex; + + // Use IE sourceIndex if available on both nodes + if ( diff ) { + return diff; + } + + // Check if b follows a + if ( cur ) { + while ( (cur = cur.nextSibling) ) { + if ( cur === b ) { + return -1; + } + } + } + + return a ? 1 : -1; +} + +/** + * Returns a function to use in pseudos for input types + * @param {String} type + */ +function createInputPseudo( type ) { + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for buttons + * @param {String} type + */ +function createButtonPseudo( type ) { + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return (name === "input" || name === "button") && elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for :enabled/:disabled + * @param {Boolean} disabled true for :disabled; false for :enabled + */ +function createDisabledPseudo( disabled ) { + + // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable + return function( elem ) { + + // Only certain elements can match :enabled or :disabled + // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled + // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled + if ( "form" in elem ) { + + // Check for inherited disabledness on relevant non-disabled elements: + // * listed form-associated elements in a disabled fieldset + // https://html.spec.whatwg.org/multipage/forms.html#category-listed + // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled + // * option elements in a disabled optgroup + // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled + // All such elements have a "form" property. + if ( elem.parentNode && elem.disabled === false ) { + + // Option elements defer to a parent optgroup if present + if ( "label" in elem ) { + if ( "label" in elem.parentNode ) { + return elem.parentNode.disabled === disabled; + } else { + return elem.disabled === disabled; + } + } + + // Support: IE 6 - 11 + // Use the isDisabled shortcut property to check for disabled fieldset ancestors + return elem.isDisabled === disabled || + + // Where there is no isDisabled, check manually + /* jshint -W018 */ + elem.isDisabled !== !disabled && + disabledAncestor( elem ) === disabled; + } + + return elem.disabled === disabled; + + // Try to winnow out elements that can't be disabled before trusting the disabled property. + // Some victims get caught in our net (label, legend, menu, track), but it shouldn't + // even exist on them, let alone have a boolean value. + } else if ( "label" in elem ) { + return elem.disabled === disabled; + } + + // Remaining elements are neither :enabled nor :disabled + return false; + }; +} + +/** + * Returns a function to use in pseudos for positionals + * @param {Function} fn + */ +function createPositionalPseudo( fn ) { + return markFunction(function( argument ) { + argument = +argument; + return markFunction(function( seed, matches ) { + var j, + matchIndexes = fn( [], seed.length, argument ), + i = matchIndexes.length; + + // Match elements found at the specified indexes + while ( i-- ) { + if ( seed[ (j = matchIndexes[i]) ] ) { + seed[j] = !(matches[j] = seed[j]); + } + } + }); + }); +} + +/** + * Checks a node for validity as a Sizzle context + * @param {Element|Object=} context + * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value + */ +function testContext( context ) { + return context && typeof context.getElementsByTagName !== "undefined" && context; +} + +// Expose support vars for convenience +support = Sizzle.support = {}; + +/** + * Detects XML nodes + * @param {Element|Object} elem An element or a document + * @returns {Boolean} True iff elem is a non-HTML XML node + */ +isXML = Sizzle.isXML = function( elem ) { + // documentElement is verified for cases where it doesn't yet exist + // (such as loading iframes in IE - #4833) + var documentElement = elem && (elem.ownerDocument || elem).documentElement; + return documentElement ? documentElement.nodeName !== "HTML" : false; +}; + +/** + * Sets document-related variables once based on the current document + * @param {Element|Object} [doc] An element or document object to use to set the document + * @returns {Object} Returns the current document + */ +setDocument = Sizzle.setDocument = function( node ) { + var hasCompare, subWindow, + doc = node ? node.ownerDocument || node : preferredDoc; + + // Return early if doc is invalid or already selected + if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { + return document; + } + + // Update global variables + document = doc; + docElem = document.documentElement; + documentIsHTML = !isXML( document ); + + // Support: IE 9-11, Edge + // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936) + if ( preferredDoc !== document && + (subWindow = document.defaultView) && subWindow.top !== subWindow ) { + + // Support: IE 11, Edge + if ( subWindow.addEventListener ) { + subWindow.addEventListener( "unload", unloadHandler, false ); + + // Support: IE 9 - 10 only + } else if ( subWindow.attachEvent ) { + subWindow.attachEvent( "onunload", unloadHandler ); + } + } + + /* Attributes + ---------------------------------------------------------------------- */ + + // Support: IE<8 + // Verify that getAttribute really returns attributes and not properties + // (excepting IE8 booleans) + support.attributes = assert(function( el ) { + el.className = "i"; + return !el.getAttribute("className"); + }); + + /* getElement(s)By* + ---------------------------------------------------------------------- */ + + // Check if getElementsByTagName("*") returns only elements + support.getElementsByTagName = assert(function( el ) { + el.appendChild( document.createComment("") ); + return !el.getElementsByTagName("*").length; + }); + + // Support: IE<9 + support.getElementsByClassName = rnative.test( document.getElementsByClassName ); + + // Support: IE<10 + // Check if getElementById returns elements by name + // The broken getElementById methods don't pick up programmatically-set names, + // so use a roundabout getElementsByName test + support.getById = assert(function( el ) { + docElem.appendChild( el ).id = expando; + return !document.getElementsByName || !document.getElementsByName( expando ).length; + }); + + // ID filter and find + if ( support.getById ) { + Expr.filter["ID"] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + return elem.getAttribute("id") === attrId; + }; + }; + Expr.find["ID"] = function( id, context ) { + if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { + var elem = context.getElementById( id ); + return elem ? [ elem ] : []; + } + }; + } else { + Expr.filter["ID"] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + var node = typeof elem.getAttributeNode !== "undefined" && + elem.getAttributeNode("id"); + return node && node.value === attrId; + }; + }; + + // Support: IE 6 - 7 only + // getElementById is not reliable as a find shortcut + Expr.find["ID"] = function( id, context ) { + if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { + var node, i, elems, + elem = context.getElementById( id ); + + if ( elem ) { + + // Verify the id attribute + node = elem.getAttributeNode("id"); + if ( node && node.value === id ) { + return [ elem ]; + } + + // Fall back on getElementsByName + elems = context.getElementsByName( id ); + i = 0; + while ( (elem = elems[i++]) ) { + node = elem.getAttributeNode("id"); + if ( node && node.value === id ) { + return [ elem ]; + } + } + } + + return []; + } + }; + } + + // Tag + Expr.find["TAG"] = support.getElementsByTagName ? + function( tag, context ) { + if ( typeof context.getElementsByTagName !== "undefined" ) { + return context.getElementsByTagName( tag ); + + // DocumentFragment nodes don't have gEBTN + } else if ( support.qsa ) { + return context.querySelectorAll( tag ); + } + } : + + function( tag, context ) { + var elem, + tmp = [], + i = 0, + // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too + results = context.getElementsByTagName( tag ); + + // Filter out possible comments + if ( tag === "*" ) { + while ( (elem = results[i++]) ) { + if ( elem.nodeType === 1 ) { + tmp.push( elem ); + } + } + + return tmp; + } + return results; + }; + + // Class + Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { + if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) { + return context.getElementsByClassName( className ); + } + }; + + /* QSA/matchesSelector + ---------------------------------------------------------------------- */ + + // QSA and matchesSelector support + + // matchesSelector(:active) reports false when true (IE9/Opera 11.5) + rbuggyMatches = []; + + // qSa(:focus) reports false when true (Chrome 21) + // We allow this because of a bug in IE8/9 that throws an error + // whenever `document.activeElement` is accessed on an iframe + // So, we allow :focus to pass through QSA all the time to avoid the IE error + // See https://bugs.jquery.com/ticket/13378 + rbuggyQSA = []; + + if ( (support.qsa = rnative.test( document.querySelectorAll )) ) { + // Build QSA regex + // Regex strategy adopted from Diego Perini + assert(function( el ) { + // Select is set to empty string on purpose + // This is to test IE's treatment of not explicitly + // setting a boolean content attribute, + // since its presence should be enough + // https://bugs.jquery.com/ticket/12359 + docElem.appendChild( el ).innerHTML = "" + + ""; + + // Support: IE8, Opera 11-12.16 + // Nothing should be selected when empty strings follow ^= or $= or *= + // The test attribute must be unknown in Opera but "safe" for WinRT + // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section + if ( el.querySelectorAll("[msallowcapture^='']").length ) { + rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); + } + + // Support: IE8 + // Boolean attributes and "value" are not treated correctly + if ( !el.querySelectorAll("[selected]").length ) { + rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); + } + + // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+ + if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) { + rbuggyQSA.push("~="); + } + + // Webkit/Opera - :checked should return selected option elements + // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + // IE8 throws error here and will not see later tests + if ( !el.querySelectorAll(":checked").length ) { + rbuggyQSA.push(":checked"); + } + + // Support: Safari 8+, iOS 8+ + // https://bugs.webkit.org/show_bug.cgi?id=136851 + // In-page `selector#id sibling-combinator selector` fails + if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) { + rbuggyQSA.push(".#.+[+~]"); + } + }); + + assert(function( el ) { + el.innerHTML = "" + + ""; + + // Support: Windows 8 Native Apps + // The type and name attributes are restricted during .innerHTML assignment + var input = document.createElement("input"); + input.setAttribute( "type", "hidden" ); + el.appendChild( input ).setAttribute( "name", "D" ); + + // Support: IE8 + // Enforce case-sensitivity of name attribute + if ( el.querySelectorAll("[name=d]").length ) { + rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); + } + + // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) + // IE8 throws error here and will not see later tests + if ( el.querySelectorAll(":enabled").length !== 2 ) { + rbuggyQSA.push( ":enabled", ":disabled" ); + } + + // Support: IE9-11+ + // IE's :disabled selector does not pick up the children of disabled fieldsets + docElem.appendChild( el ).disabled = true; + if ( el.querySelectorAll(":disabled").length !== 2 ) { + rbuggyQSA.push( ":enabled", ":disabled" ); + } + + // Opera 10-11 does not throw on post-comma invalid pseudos + el.querySelectorAll("*,:x"); + rbuggyQSA.push(",.*:"); + }); + } + + if ( (support.matchesSelector = rnative.test( (matches = docElem.matches || + docElem.webkitMatchesSelector || + docElem.mozMatchesSelector || + docElem.oMatchesSelector || + docElem.msMatchesSelector) )) ) { + + assert(function( el ) { + // Check to see if it's possible to do matchesSelector + // on a disconnected node (IE 9) + support.disconnectedMatch = matches.call( el, "*" ); + + // This should fail with an exception + // Gecko does not error, returns false instead + matches.call( el, "[s!='']:x" ); + rbuggyMatches.push( "!=", pseudos ); + }); + } + + rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); + rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); + + /* Contains + ---------------------------------------------------------------------- */ + hasCompare = rnative.test( docElem.compareDocumentPosition ); + + // Element contains another + // Purposefully self-exclusive + // As in, an element does not contain itself + contains = hasCompare || rnative.test( docElem.contains ) ? + function( a, b ) { + var adown = a.nodeType === 9 ? a.documentElement : a, + bup = b && b.parentNode; + return a === bup || !!( bup && bup.nodeType === 1 && ( + adown.contains ? + adown.contains( bup ) : + a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 + )); + } : + function( a, b ) { + if ( b ) { + while ( (b = b.parentNode) ) { + if ( b === a ) { + return true; + } + } + } + return false; + }; + + /* Sorting + ---------------------------------------------------------------------- */ + + // Document order sorting + sortOrder = hasCompare ? + function( a, b ) { + + // Flag for duplicate removal + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + // Sort on method existence if only one input has compareDocumentPosition + var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; + if ( compare ) { + return compare; + } + + // Calculate position if both inputs belong to the same document + compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ? + a.compareDocumentPosition( b ) : + + // Otherwise we know they are disconnected + 1; + + // Disconnected nodes + if ( compare & 1 || + (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { + + // Choose the first element that is related to our preferred document + if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) { + return -1; + } + if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) { + return 1; + } + + // Maintain original order + return sortInput ? + ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : + 0; + } + + return compare & 4 ? -1 : 1; + } : + function( a, b ) { + // Exit early if the nodes are identical + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + var cur, + i = 0, + aup = a.parentNode, + bup = b.parentNode, + ap = [ a ], + bp = [ b ]; + + // Parentless nodes are either documents or disconnected + if ( !aup || !bup ) { + return a === document ? -1 : + b === document ? 1 : + aup ? -1 : + bup ? 1 : + sortInput ? + ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : + 0; + + // If the nodes are siblings, we can do a quick check + } else if ( aup === bup ) { + return siblingCheck( a, b ); + } + + // Otherwise we need full lists of their ancestors for comparison + cur = a; + while ( (cur = cur.parentNode) ) { + ap.unshift( cur ); + } + cur = b; + while ( (cur = cur.parentNode) ) { + bp.unshift( cur ); + } + + // Walk down the tree looking for a discrepancy + while ( ap[i] === bp[i] ) { + i++; + } + + return i ? + // Do a sibling check if the nodes have a common ancestor + siblingCheck( ap[i], bp[i] ) : + + // Otherwise nodes in our document sort first + ap[i] === preferredDoc ? -1 : + bp[i] === preferredDoc ? 1 : + 0; + }; + + return document; +}; + +Sizzle.matches = function( expr, elements ) { + return Sizzle( expr, null, null, elements ); +}; + +Sizzle.matchesSelector = function( elem, expr ) { + // Set document vars if needed + if ( ( elem.ownerDocument || elem ) !== document ) { + setDocument( elem ); + } + + // Make sure that attribute selectors are quoted + expr = expr.replace( rattributeQuotes, "='$1']" ); + + if ( support.matchesSelector && documentIsHTML && + !compilerCache[ expr + " " ] && + ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && + ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { + + try { + var ret = matches.call( elem, expr ); + + // IE 9's matchesSelector returns false on disconnected nodes + if ( ret || support.disconnectedMatch || + // As well, disconnected nodes are said to be in a document + // fragment in IE 9 + elem.document && elem.document.nodeType !== 11 ) { + return ret; + } + } catch (e) {} + } + + return Sizzle( expr, document, null, [ elem ] ).length > 0; +}; + +Sizzle.contains = function( context, elem ) { + // Set document vars if needed + if ( ( context.ownerDocument || context ) !== document ) { + setDocument( context ); + } + return contains( context, elem ); +}; + +Sizzle.attr = function( elem, name ) { + // Set document vars if needed + if ( ( elem.ownerDocument || elem ) !== document ) { + setDocument( elem ); + } + + var fn = Expr.attrHandle[ name.toLowerCase() ], + // Don't get fooled by Object.prototype properties (jQuery #13807) + val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? + fn( elem, name, !documentIsHTML ) : + undefined; + + return val !== undefined ? + val : + support.attributes || !documentIsHTML ? + elem.getAttribute( name ) : + (val = elem.getAttributeNode(name)) && val.specified ? + val.value : + null; +}; + +Sizzle.escape = function( sel ) { + return (sel + "").replace( rcssescape, fcssescape ); +}; + +Sizzle.error = function( msg ) { + throw new Error( "Syntax error, unrecognized expression: " + msg ); +}; + +/** + * Document sorting and removing duplicates + * @param {ArrayLike} results + */ +Sizzle.uniqueSort = function( results ) { + var elem, + duplicates = [], + j = 0, + i = 0; + + // Unless we *know* we can detect duplicates, assume their presence + hasDuplicate = !support.detectDuplicates; + sortInput = !support.sortStable && results.slice( 0 ); + results.sort( sortOrder ); + + if ( hasDuplicate ) { + while ( (elem = results[i++]) ) { + if ( elem === results[ i ] ) { + j = duplicates.push( i ); + } + } + while ( j-- ) { + results.splice( duplicates[ j ], 1 ); + } + } + + // Clear input after sorting to release objects + // See https://github.com/jquery/sizzle/pull/225 + sortInput = null; + + return results; +}; + +/** + * Utility function for retrieving the text value of an array of DOM nodes + * @param {Array|Element} elem + */ +getText = Sizzle.getText = function( elem ) { + var node, + ret = "", + i = 0, + nodeType = elem.nodeType; + + if ( !nodeType ) { + // If no nodeType, this is expected to be an array + while ( (node = elem[i++]) ) { + // Do not traverse comment nodes + ret += getText( node ); + } + } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { + // Use textContent for elements + // innerText usage removed for consistency of new lines (jQuery #11153) + if ( typeof elem.textContent === "string" ) { + return elem.textContent; + } else { + // Traverse its children + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + ret += getText( elem ); + } + } + } else if ( nodeType === 3 || nodeType === 4 ) { + return elem.nodeValue; + } + // Do not include comment or processing instruction nodes + + return ret; +}; + +Expr = Sizzle.selectors = { + + // Can be adjusted by the user + cacheLength: 50, + + createPseudo: markFunction, + + match: matchExpr, + + attrHandle: {}, + + find: {}, + + relative: { + ">": { dir: "parentNode", first: true }, + " ": { dir: "parentNode" }, + "+": { dir: "previousSibling", first: true }, + "~": { dir: "previousSibling" } + }, + + preFilter: { + "ATTR": function( match ) { + match[1] = match[1].replace( runescape, funescape ); + + // Move the given value to match[3] whether quoted or unquoted + match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape ); + + if ( match[2] === "~=" ) { + match[3] = " " + match[3] + " "; + } + + return match.slice( 0, 4 ); + }, + + "CHILD": function( match ) { + /* matches from matchExpr["CHILD"] + 1 type (only|nth|...) + 2 what (child|of-type) + 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) + 4 xn-component of xn+y argument ([+-]?\d*n|) + 5 sign of xn-component + 6 x of xn-component + 7 sign of y-component + 8 y of y-component + */ + match[1] = match[1].toLowerCase(); + + if ( match[1].slice( 0, 3 ) === "nth" ) { + // nth-* requires argument + if ( !match[3] ) { + Sizzle.error( match[0] ); + } + + // numeric x and y parameters for Expr.filter.CHILD + // remember that false/true cast respectively to 0/1 + match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); + match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); + + // other types prohibit arguments + } else if ( match[3] ) { + Sizzle.error( match[0] ); + } + + return match; + }, + + "PSEUDO": function( match ) { + var excess, + unquoted = !match[6] && match[2]; + + if ( matchExpr["CHILD"].test( match[0] ) ) { + return null; + } + + // Accept quoted arguments as-is + if ( match[3] ) { + match[2] = match[4] || match[5] || ""; + + // Strip excess characters from unquoted arguments + } else if ( unquoted && rpseudo.test( unquoted ) && + // Get excess from tokenize (recursively) + (excess = tokenize( unquoted, true )) && + // advance to the next closing parenthesis + (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { + + // excess is a negative index + match[0] = match[0].slice( 0, excess ); + match[2] = unquoted.slice( 0, excess ); + } + + // Return only captures needed by the pseudo filter method (type and argument) + return match.slice( 0, 3 ); + } + }, + + filter: { + + "TAG": function( nodeNameSelector ) { + var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); + return nodeNameSelector === "*" ? + function() { return true; } : + function( elem ) { + return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; + }; + }, + + "CLASS": function( className ) { + var pattern = classCache[ className + " " ]; + + return pattern || + (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && + classCache( className, function( elem ) { + return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" ); + }); + }, + + "ATTR": function( name, operator, check ) { + return function( elem ) { + var result = Sizzle.attr( elem, name ); + + if ( result == null ) { + return operator === "!="; + } + if ( !operator ) { + return true; + } + + result += ""; + + return operator === "=" ? result === check : + operator === "!=" ? result !== check : + operator === "^=" ? check && result.indexOf( check ) === 0 : + operator === "*=" ? check && result.indexOf( check ) > -1 : + operator === "$=" ? check && result.slice( -check.length ) === check : + operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : + operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : + false; + }; + }, + + "CHILD": function( type, what, argument, first, last ) { + var simple = type.slice( 0, 3 ) !== "nth", + forward = type.slice( -4 ) !== "last", + ofType = what === "of-type"; + + return first === 1 && last === 0 ? + + // Shortcut for :nth-*(n) + function( elem ) { + return !!elem.parentNode; + } : + + function( elem, context, xml ) { + var cache, uniqueCache, outerCache, node, nodeIndex, start, + dir = simple !== forward ? "nextSibling" : "previousSibling", + parent = elem.parentNode, + name = ofType && elem.nodeName.toLowerCase(), + useCache = !xml && !ofType, + diff = false; + + if ( parent ) { + + // :(first|last|only)-(child|of-type) + if ( simple ) { + while ( dir ) { + node = elem; + while ( (node = node[ dir ]) ) { + if ( ofType ? + node.nodeName.toLowerCase() === name : + node.nodeType === 1 ) { + + return false; + } + } + // Reverse direction for :only-* (if we haven't yet done so) + start = dir = type === "only" && !start && "nextSibling"; + } + return true; + } + + start = [ forward ? parent.firstChild : parent.lastChild ]; + + // non-xml :nth-child(...) stores cache data on `parent` + if ( forward && useCache ) { + + // Seek `elem` from a previously-cached index + + // ...in a gzip-friendly way + node = parent; + outerCache = node[ expando ] || (node[ expando ] = {}); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ node.uniqueID ] || + (outerCache[ node.uniqueID ] = {}); + + cache = uniqueCache[ type ] || []; + nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; + diff = nodeIndex && cache[ 2 ]; + node = nodeIndex && parent.childNodes[ nodeIndex ]; + + while ( (node = ++nodeIndex && node && node[ dir ] || + + // Fallback to seeking `elem` from the start + (diff = nodeIndex = 0) || start.pop()) ) { + + // When found, cache indexes on `parent` and break + if ( node.nodeType === 1 && ++diff && node === elem ) { + uniqueCache[ type ] = [ dirruns, nodeIndex, diff ]; + break; + } + } + + } else { + // Use previously-cached element index if available + if ( useCache ) { + // ...in a gzip-friendly way + node = elem; + outerCache = node[ expando ] || (node[ expando ] = {}); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ node.uniqueID ] || + (outerCache[ node.uniqueID ] = {}); + + cache = uniqueCache[ type ] || []; + nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; + diff = nodeIndex; + } + + // xml :nth-child(...) + // or :nth-last-child(...) or :nth(-last)?-of-type(...) + if ( diff === false ) { + // Use the same loop as above to seek `elem` from the start + while ( (node = ++nodeIndex && node && node[ dir ] || + (diff = nodeIndex = 0) || start.pop()) ) { + + if ( ( ofType ? + node.nodeName.toLowerCase() === name : + node.nodeType === 1 ) && + ++diff ) { + + // Cache the index of each encountered element + if ( useCache ) { + outerCache = node[ expando ] || (node[ expando ] = {}); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ node.uniqueID ] || + (outerCache[ node.uniqueID ] = {}); + + uniqueCache[ type ] = [ dirruns, diff ]; + } + + if ( node === elem ) { + break; + } + } + } + } + } + + // Incorporate the offset, then check against cycle size + diff -= last; + return diff === first || ( diff % first === 0 && diff / first >= 0 ); + } + }; + }, + + "PSEUDO": function( pseudo, argument ) { + // pseudo-class names are case-insensitive + // http://www.w3.org/TR/selectors/#pseudo-classes + // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters + // Remember that setFilters inherits from pseudos + var args, + fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || + Sizzle.error( "unsupported pseudo: " + pseudo ); + + // The user may use createPseudo to indicate that + // arguments are needed to create the filter function + // just as Sizzle does + if ( fn[ expando ] ) { + return fn( argument ); + } + + // But maintain support for old signatures + if ( fn.length > 1 ) { + args = [ pseudo, pseudo, "", argument ]; + return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? + markFunction(function( seed, matches ) { + var idx, + matched = fn( seed, argument ), + i = matched.length; + while ( i-- ) { + idx = indexOf( seed, matched[i] ); + seed[ idx ] = !( matches[ idx ] = matched[i] ); + } + }) : + function( elem ) { + return fn( elem, 0, args ); + }; + } + + return fn; + } + }, + + pseudos: { + // Potentially complex pseudos + "not": markFunction(function( selector ) { + // Trim the selector passed to compile + // to avoid treating leading and trailing + // spaces as combinators + var input = [], + results = [], + matcher = compile( selector.replace( rtrim, "$1" ) ); + + return matcher[ expando ] ? + markFunction(function( seed, matches, context, xml ) { + var elem, + unmatched = matcher( seed, null, xml, [] ), + i = seed.length; + + // Match elements unmatched by `matcher` + while ( i-- ) { + if ( (elem = unmatched[i]) ) { + seed[i] = !(matches[i] = elem); + } + } + }) : + function( elem, context, xml ) { + input[0] = elem; + matcher( input, null, xml, results ); + // Don't keep the element (issue #299) + input[0] = null; + return !results.pop(); + }; + }), + + "has": markFunction(function( selector ) { + return function( elem ) { + return Sizzle( selector, elem ).length > 0; + }; + }), + + "contains": markFunction(function( text ) { + text = text.replace( runescape, funescape ); + return function( elem ) { + return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; + }; + }), + + // "Whether an element is represented by a :lang() selector + // is based solely on the element's language value + // being equal to the identifier C, + // or beginning with the identifier C immediately followed by "-". + // The matching of C against the element's language value is performed case-insensitively. + // The identifier C does not have to be a valid language name." + // http://www.w3.org/TR/selectors/#lang-pseudo + "lang": markFunction( function( lang ) { + // lang value must be a valid identifier + if ( !ridentifier.test(lang || "") ) { + Sizzle.error( "unsupported lang: " + lang ); + } + lang = lang.replace( runescape, funescape ).toLowerCase(); + return function( elem ) { + var elemLang; + do { + if ( (elemLang = documentIsHTML ? + elem.lang : + elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { + + elemLang = elemLang.toLowerCase(); + return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; + } + } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); + return false; + }; + }), + + // Miscellaneous + "target": function( elem ) { + var hash = window.location && window.location.hash; + return hash && hash.slice( 1 ) === elem.id; + }, + + "root": function( elem ) { + return elem === docElem; + }, + + "focus": function( elem ) { + return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); + }, + + // Boolean properties + "enabled": createDisabledPseudo( false ), + "disabled": createDisabledPseudo( true ), + + "checked": function( elem ) { + // In CSS3, :checked should return both checked and selected elements + // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + var nodeName = elem.nodeName.toLowerCase(); + return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); + }, + + "selected": function( elem ) { + // Accessing this property makes selected-by-default + // options in Safari work properly + if ( elem.parentNode ) { + elem.parentNode.selectedIndex; + } + + return elem.selected === true; + }, + + // Contents + "empty": function( elem ) { + // http://www.w3.org/TR/selectors/#empty-pseudo + // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), + // but not by others (comment: 8; processing instruction: 7; etc.) + // nodeType < 6 works because attributes (2) do not appear as children + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + if ( elem.nodeType < 6 ) { + return false; + } + } + return true; + }, + + "parent": function( elem ) { + return !Expr.pseudos["empty"]( elem ); + }, + + // Element/input types + "header": function( elem ) { + return rheader.test( elem.nodeName ); + }, + + "input": function( elem ) { + return rinputs.test( elem.nodeName ); + }, + + "button": function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === "button" || name === "button"; + }, + + "text": function( elem ) { + var attr; + return elem.nodeName.toLowerCase() === "input" && + elem.type === "text" && + + // Support: IE<8 + // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" + ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" ); + }, + + // Position-in-collection + "first": createPositionalPseudo(function() { + return [ 0 ]; + }), + + "last": createPositionalPseudo(function( matchIndexes, length ) { + return [ length - 1 ]; + }), + + "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { + return [ argument < 0 ? argument + length : argument ]; + }), + + "even": createPositionalPseudo(function( matchIndexes, length ) { + var i = 0; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "odd": createPositionalPseudo(function( matchIndexes, length ) { + var i = 1; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { + var i = argument < 0 ? argument + length : argument; + for ( ; --i >= 0; ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { + var i = argument < 0 ? argument + length : argument; + for ( ; ++i < length; ) { + matchIndexes.push( i ); + } + return matchIndexes; + }) + } +}; + +Expr.pseudos["nth"] = Expr.pseudos["eq"]; + +// Add button/input type pseudos +for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { + Expr.pseudos[ i ] = createInputPseudo( i ); +} +for ( i in { submit: true, reset: true } ) { + Expr.pseudos[ i ] = createButtonPseudo( i ); +} + +// Easy API for creating new setFilters +function setFilters() {} +setFilters.prototype = Expr.filters = Expr.pseudos; +Expr.setFilters = new setFilters(); + +tokenize = Sizzle.tokenize = function( selector, parseOnly ) { + var matched, match, tokens, type, + soFar, groups, preFilters, + cached = tokenCache[ selector + " " ]; + + if ( cached ) { + return parseOnly ? 0 : cached.slice( 0 ); + } + + soFar = selector; + groups = []; + preFilters = Expr.preFilter; + + while ( soFar ) { + + // Comma and first run + if ( !matched || (match = rcomma.exec( soFar )) ) { + if ( match ) { + // Don't consume trailing commas as valid + soFar = soFar.slice( match[0].length ) || soFar; + } + groups.push( (tokens = []) ); + } + + matched = false; + + // Combinators + if ( (match = rcombinators.exec( soFar )) ) { + matched = match.shift(); + tokens.push({ + value: matched, + // Cast descendant combinators to space + type: match[0].replace( rtrim, " " ) + }); + soFar = soFar.slice( matched.length ); + } + + // Filters + for ( type in Expr.filter ) { + if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || + (match = preFilters[ type ]( match ))) ) { + matched = match.shift(); + tokens.push({ + value: matched, + type: type, + matches: match + }); + soFar = soFar.slice( matched.length ); + } + } + + if ( !matched ) { + break; + } + } + + // Return the length of the invalid excess + // if we're just parsing + // Otherwise, throw an error or return tokens + return parseOnly ? + soFar.length : + soFar ? + Sizzle.error( selector ) : + // Cache the tokens + tokenCache( selector, groups ).slice( 0 ); +}; + +function toSelector( tokens ) { + var i = 0, + len = tokens.length, + selector = ""; + for ( ; i < len; i++ ) { + selector += tokens[i].value; + } + return selector; +} + +function addCombinator( matcher, combinator, base ) { + var dir = combinator.dir, + skip = combinator.next, + key = skip || dir, + checkNonElements = base && key === "parentNode", + doneName = done++; + + return combinator.first ? + // Check against closest ancestor/preceding element + function( elem, context, xml ) { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + return matcher( elem, context, xml ); + } + } + return false; + } : + + // Check against all ancestor/preceding elements + function( elem, context, xml ) { + var oldCache, uniqueCache, outerCache, + newCache = [ dirruns, doneName ]; + + // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching + if ( xml ) { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + if ( matcher( elem, context, xml ) ) { + return true; + } + } + } + } else { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + outerCache = elem[ expando ] || (elem[ expando ] = {}); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {}); + + if ( skip && skip === elem.nodeName.toLowerCase() ) { + elem = elem[ dir ] || elem; + } else if ( (oldCache = uniqueCache[ key ]) && + oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { + + // Assign to newCache so results back-propagate to previous elements + return (newCache[ 2 ] = oldCache[ 2 ]); + } else { + // Reuse newcache so results back-propagate to previous elements + uniqueCache[ key ] = newCache; + + // A match means we're done; a fail means we have to keep checking + if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) { + return true; + } + } + } + } + } + return false; + }; +} + +function elementMatcher( matchers ) { + return matchers.length > 1 ? + function( elem, context, xml ) { + var i = matchers.length; + while ( i-- ) { + if ( !matchers[i]( elem, context, xml ) ) { + return false; + } + } + return true; + } : + matchers[0]; +} + +function multipleContexts( selector, contexts, results ) { + var i = 0, + len = contexts.length; + for ( ; i < len; i++ ) { + Sizzle( selector, contexts[i], results ); + } + return results; +} + +function condense( unmatched, map, filter, context, xml ) { + var elem, + newUnmatched = [], + i = 0, + len = unmatched.length, + mapped = map != null; + + for ( ; i < len; i++ ) { + if ( (elem = unmatched[i]) ) { + if ( !filter || filter( elem, context, xml ) ) { + newUnmatched.push( elem ); + if ( mapped ) { + map.push( i ); + } + } + } + } + + return newUnmatched; +} + +function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { + if ( postFilter && !postFilter[ expando ] ) { + postFilter = setMatcher( postFilter ); + } + if ( postFinder && !postFinder[ expando ] ) { + postFinder = setMatcher( postFinder, postSelector ); + } + return markFunction(function( seed, results, context, xml ) { + var temp, i, elem, + preMap = [], + postMap = [], + preexisting = results.length, + + // Get initial elements from seed or context + elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), + + // Prefilter to get matcher input, preserving a map for seed-results synchronization + matcherIn = preFilter && ( seed || !selector ) ? + condense( elems, preMap, preFilter, context, xml ) : + elems, + + matcherOut = matcher ? + // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, + postFinder || ( seed ? preFilter : preexisting || postFilter ) ? + + // ...intermediate processing is necessary + [] : + + // ...otherwise use results directly + results : + matcherIn; + + // Find primary matches + if ( matcher ) { + matcher( matcherIn, matcherOut, context, xml ); + } + + // Apply postFilter + if ( postFilter ) { + temp = condense( matcherOut, postMap ); + postFilter( temp, [], context, xml ); + + // Un-match failing elements by moving them back to matcherIn + i = temp.length; + while ( i-- ) { + if ( (elem = temp[i]) ) { + matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); + } + } + } + + if ( seed ) { + if ( postFinder || preFilter ) { + if ( postFinder ) { + // Get the final matcherOut by condensing this intermediate into postFinder contexts + temp = []; + i = matcherOut.length; + while ( i-- ) { + if ( (elem = matcherOut[i]) ) { + // Restore matcherIn since elem is not yet a final match + temp.push( (matcherIn[i] = elem) ); + } + } + postFinder( null, (matcherOut = []), temp, xml ); + } + + // Move matched elements from seed to results to keep them synchronized + i = matcherOut.length; + while ( i-- ) { + if ( (elem = matcherOut[i]) && + (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) { + + seed[temp] = !(results[temp] = elem); + } + } + } + + // Add elements to results, through postFinder if defined + } else { + matcherOut = condense( + matcherOut === results ? + matcherOut.splice( preexisting, matcherOut.length ) : + matcherOut + ); + if ( postFinder ) { + postFinder( null, results, matcherOut, xml ); + } else { + push.apply( results, matcherOut ); + } + } + }); +} + +function matcherFromTokens( tokens ) { + var checkContext, matcher, j, + len = tokens.length, + leadingRelative = Expr.relative[ tokens[0].type ], + implicitRelative = leadingRelative || Expr.relative[" "], + i = leadingRelative ? 1 : 0, + + // The foundational matcher ensures that elements are reachable from top-level context(s) + matchContext = addCombinator( function( elem ) { + return elem === checkContext; + }, implicitRelative, true ), + matchAnyContext = addCombinator( function( elem ) { + return indexOf( checkContext, elem ) > -1; + }, implicitRelative, true ), + matchers = [ function( elem, context, xml ) { + var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( + (checkContext = context).nodeType ? + matchContext( elem, context, xml ) : + matchAnyContext( elem, context, xml ) ); + // Avoid hanging onto element (issue #299) + checkContext = null; + return ret; + } ]; + + for ( ; i < len; i++ ) { + if ( (matcher = Expr.relative[ tokens[i].type ]) ) { + matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; + } else { + matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); + + // Return special upon seeing a positional matcher + if ( matcher[ expando ] ) { + // Find the next relative operator (if any) for proper handling + j = ++i; + for ( ; j < len; j++ ) { + if ( Expr.relative[ tokens[j].type ] ) { + break; + } + } + return setMatcher( + i > 1 && elementMatcher( matchers ), + i > 1 && toSelector( + // If the preceding token was a descendant combinator, insert an implicit any-element `*` + tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) + ).replace( rtrim, "$1" ), + matcher, + i < j && matcherFromTokens( tokens.slice( i, j ) ), + j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), + j < len && toSelector( tokens ) + ); + } + matchers.push( matcher ); + } + } + + return elementMatcher( matchers ); +} + +function matcherFromGroupMatchers( elementMatchers, setMatchers ) { + var bySet = setMatchers.length > 0, + byElement = elementMatchers.length > 0, + superMatcher = function( seed, context, xml, results, outermost ) { + var elem, j, matcher, + matchedCount = 0, + i = "0", + unmatched = seed && [], + setMatched = [], + contextBackup = outermostContext, + // We must always have either seed elements or outermost context + elems = seed || byElement && Expr.find["TAG"]( "*", outermost ), + // Use integer dirruns iff this is the outermost matcher + dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1), + len = elems.length; + + if ( outermost ) { + outermostContext = context === document || context || outermost; + } + + // Add elements passing elementMatchers directly to results + // Support: IE<9, Safari + // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id + for ( ; i !== len && (elem = elems[i]) != null; i++ ) { + if ( byElement && elem ) { + j = 0; + if ( !context && elem.ownerDocument !== document ) { + setDocument( elem ); + xml = !documentIsHTML; + } + while ( (matcher = elementMatchers[j++]) ) { + if ( matcher( elem, context || document, xml) ) { + results.push( elem ); + break; + } + } + if ( outermost ) { + dirruns = dirrunsUnique; + } + } + + // Track unmatched elements for set filters + if ( bySet ) { + // They will have gone through all possible matchers + if ( (elem = !matcher && elem) ) { + matchedCount--; + } + + // Lengthen the array for every element, matched or not + if ( seed ) { + unmatched.push( elem ); + } + } + } + + // `i` is now the count of elements visited above, and adding it to `matchedCount` + // makes the latter nonnegative. + matchedCount += i; + + // Apply set filters to unmatched elements + // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount` + // equals `i`), unless we didn't visit _any_ elements in the above loop because we have + // no element matchers and no seed. + // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that + // case, which will result in a "00" `matchedCount` that differs from `i` but is also + // numerically zero. + if ( bySet && i !== matchedCount ) { + j = 0; + while ( (matcher = setMatchers[j++]) ) { + matcher( unmatched, setMatched, context, xml ); + } + + if ( seed ) { + // Reintegrate element matches to eliminate the need for sorting + if ( matchedCount > 0 ) { + while ( i-- ) { + if ( !(unmatched[i] || setMatched[i]) ) { + setMatched[i] = pop.call( results ); + } + } + } + + // Discard index placeholder values to get only actual matches + setMatched = condense( setMatched ); + } + + // Add matches to results + push.apply( results, setMatched ); + + // Seedless set matches succeeding multiple successful matchers stipulate sorting + if ( outermost && !seed && setMatched.length > 0 && + ( matchedCount + setMatchers.length ) > 1 ) { + + Sizzle.uniqueSort( results ); + } + } + + // Override manipulation of globals by nested matchers + if ( outermost ) { + dirruns = dirrunsUnique; + outermostContext = contextBackup; + } + + return unmatched; + }; + + return bySet ? + markFunction( superMatcher ) : + superMatcher; +} + +compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { + var i, + setMatchers = [], + elementMatchers = [], + cached = compilerCache[ selector + " " ]; + + if ( !cached ) { + // Generate a function of recursive functions that can be used to check each element + if ( !match ) { + match = tokenize( selector ); + } + i = match.length; + while ( i-- ) { + cached = matcherFromTokens( match[i] ); + if ( cached[ expando ] ) { + setMatchers.push( cached ); + } else { + elementMatchers.push( cached ); + } + } + + // Cache the compiled function + cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); + + // Save selector and tokenization + cached.selector = selector; + } + return cached; +}; + +/** + * A low-level selection function that works with Sizzle's compiled + * selector functions + * @param {String|Function} selector A selector or a pre-compiled + * selector function built with Sizzle.compile + * @param {Element} context + * @param {Array} [results] + * @param {Array} [seed] A set of elements to match against + */ +select = Sizzle.select = function( selector, context, results, seed ) { + var i, tokens, token, type, find, + compiled = typeof selector === "function" && selector, + match = !seed && tokenize( (selector = compiled.selector || selector) ); + + results = results || []; + + // Try to minimize operations if there is only one selector in the list and no seed + // (the latter of which guarantees us context) + if ( match.length === 1 ) { + + // Reduce context if the leading compound selector is an ID + tokens = match[0] = match[0].slice( 0 ); + if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && + context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) { + + context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; + if ( !context ) { + return results; + + // Precompiled matchers will still verify ancestry, so step up a level + } else if ( compiled ) { + context = context.parentNode; + } + + selector = selector.slice( tokens.shift().value.length ); + } + + // Fetch a seed set for right-to-left matching + i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; + while ( i-- ) { + token = tokens[i]; + + // Abort if we hit a combinator + if ( Expr.relative[ (type = token.type) ] ) { + break; + } + if ( (find = Expr.find[ type ]) ) { + // Search, expanding context for leading sibling combinators + if ( (seed = find( + token.matches[0].replace( runescape, funescape ), + rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context + )) ) { + + // If seed is empty or no tokens remain, we can return early + tokens.splice( i, 1 ); + selector = seed.length && toSelector( tokens ); + if ( !selector ) { + push.apply( results, seed ); + return results; + } + + break; + } + } + } + } + + // Compile and execute a filtering function if one is not provided + // Provide `match` to avoid retokenization if we modified the selector above + ( compiled || compile( selector, match ) )( + seed, + context, + !documentIsHTML, + results, + !context || rsibling.test( selector ) && testContext( context.parentNode ) || context + ); + return results; +}; + +// One-time assignments + +// Sort stability +support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; + +// Support: Chrome 14-35+ +// Always assume duplicates if they aren't passed to the comparison function +support.detectDuplicates = !!hasDuplicate; + +// Initialize against the default document +setDocument(); + +// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) +// Detached nodes confoundingly follow *each other* +support.sortDetached = assert(function( el ) { + // Should return 1, but returns 4 (following) + return el.compareDocumentPosition( document.createElement("fieldset") ) & 1; +}); + +// Support: IE<8 +// Prevent attribute/property "interpolation" +// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx +if ( !assert(function( el ) { + el.innerHTML = ""; + return el.firstChild.getAttribute("href") === "#" ; +}) ) { + addHandle( "type|href|height|width", function( elem, name, isXML ) { + if ( !isXML ) { + return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); + } + }); +} + +// Support: IE<9 +// Use defaultValue in place of getAttribute("value") +if ( !support.attributes || !assert(function( el ) { + el.innerHTML = ""; + el.firstChild.setAttribute( "value", "" ); + return el.firstChild.getAttribute( "value" ) === ""; +}) ) { + addHandle( "value", function( elem, name, isXML ) { + if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { + return elem.defaultValue; + } + }); +} + +// Support: IE<9 +// Use getAttributeNode to fetch booleans when getAttribute lies +if ( !assert(function( el ) { + return el.getAttribute("disabled") == null; +}) ) { + addHandle( booleans, function( elem, name, isXML ) { + var val; + if ( !isXML ) { + return elem[ name ] === true ? name.toLowerCase() : + (val = elem.getAttributeNode( name )) && val.specified ? + val.value : + null; + } + }); +} + +return Sizzle; + +})( window ); + + + +jQuery.find = Sizzle; +jQuery.expr = Sizzle.selectors; + +// Deprecated +jQuery.expr[ ":" ] = jQuery.expr.pseudos; +jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort; +jQuery.text = Sizzle.getText; +jQuery.isXMLDoc = Sizzle.isXML; +jQuery.contains = Sizzle.contains; +jQuery.escapeSelector = Sizzle.escape; + + + + +var dir = function( elem, dir, until ) { + var matched = [], + truncate = until !== undefined; + + while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) { + if ( elem.nodeType === 1 ) { + if ( truncate && jQuery( elem ).is( until ) ) { + break; + } + matched.push( elem ); + } + } + return matched; +}; + + +var siblings = function( n, elem ) { + var matched = []; + + for ( ; n; n = n.nextSibling ) { + if ( n.nodeType === 1 && n !== elem ) { + matched.push( n ); + } + } + + return matched; +}; + + +var rneedsContext = jQuery.expr.match.needsContext; + + + +function nodeName( elem, name ) { + + return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); + +}; +var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); + + + +// Implement the identical functionality for filter and not +function winnow( elements, qualifier, not ) { + if ( isFunction( qualifier ) ) { + return jQuery.grep( elements, function( elem, i ) { + return !!qualifier.call( elem, i, elem ) !== not; + } ); + } + + // Single element + if ( qualifier.nodeType ) { + return jQuery.grep( elements, function( elem ) { + return ( elem === qualifier ) !== not; + } ); + } + + // Arraylike of elements (jQuery, arguments, Array) + if ( typeof qualifier !== "string" ) { + return jQuery.grep( elements, function( elem ) { + return ( indexOf.call( qualifier, elem ) > -1 ) !== not; + } ); + } + + // Filtered directly for both simple and complex selectors + return jQuery.filter( qualifier, elements, not ); +} + +jQuery.filter = function( expr, elems, not ) { + var elem = elems[ 0 ]; + + if ( not ) { + expr = ":not(" + expr + ")"; + } + + if ( elems.length === 1 && elem.nodeType === 1 ) { + return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : []; + } + + return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { + return elem.nodeType === 1; + } ) ); +}; + +jQuery.fn.extend( { + find: function( selector ) { + var i, ret, + len = this.length, + self = this; + + if ( typeof selector !== "string" ) { + return this.pushStack( jQuery( selector ).filter( function() { + for ( i = 0; i < len; i++ ) { + if ( jQuery.contains( self[ i ], this ) ) { + return true; + } + } + } ) ); + } + + ret = this.pushStack( [] ); + + for ( i = 0; i < len; i++ ) { + jQuery.find( selector, self[ i ], ret ); + } + + return len > 1 ? jQuery.uniqueSort( ret ) : ret; + }, + filter: function( selector ) { + return this.pushStack( winnow( this, selector || [], false ) ); + }, + not: function( selector ) { + return this.pushStack( winnow( this, selector || [], true ) ); + }, + is: function( selector ) { + return !!winnow( + this, + + // If this is a positional/relative selector, check membership in the returned set + // so $("p:first").is("p:last") won't return true for a doc with two "p". + typeof selector === "string" && rneedsContext.test( selector ) ? + jQuery( selector ) : + selector || [], + false + ).length; + } +} ); + + +// Initialize a jQuery object + + +// A central reference to the root jQuery(document) +var rootjQuery, + + // A simple way to check for HTML strings + // Prioritize #id over to avoid XSS via location.hash (#9521) + // Strict HTML recognition (#11290: must start with <) + // Shortcut simple #id case for speed + rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, + + init = jQuery.fn.init = function( selector, context, root ) { + var match, elem; + + // HANDLE: $(""), $(null), $(undefined), $(false) + if ( !selector ) { + return this; + } + + // Method init() accepts an alternate rootjQuery + // so migrate can support jQuery.sub (gh-2101) + root = root || rootjQuery; + + // Handle HTML strings + if ( typeof selector === "string" ) { + if ( selector[ 0 ] === "<" && + selector[ selector.length - 1 ] === ">" && + selector.length >= 3 ) { + + // Assume that strings that start and end with <> are HTML and skip the regex check + match = [ null, selector, null ]; + + } else { + match = rquickExpr.exec( selector ); + } + + // Match html or make sure no context is specified for #id + if ( match && ( match[ 1 ] || !context ) ) { + + // HANDLE: $(html) -> $(array) + if ( match[ 1 ] ) { + context = context instanceof jQuery ? context[ 0 ] : context; + + // Option to run scripts is true for back-compat + // Intentionally let the error be thrown if parseHTML is not present + jQuery.merge( this, jQuery.parseHTML( + match[ 1 ], + context && context.nodeType ? context.ownerDocument || context : document, + true + ) ); + + // HANDLE: $(html, props) + if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) { + for ( match in context ) { + + // Properties of context are called as methods if possible + if ( isFunction( this[ match ] ) ) { + this[ match ]( context[ match ] ); + + // ...and otherwise set as attributes + } else { + this.attr( match, context[ match ] ); + } + } + } + + return this; + + // HANDLE: $(#id) + } else { + elem = document.getElementById( match[ 2 ] ); + + if ( elem ) { + + // Inject the element directly into the jQuery object + this[ 0 ] = elem; + this.length = 1; + } + return this; + } + + // HANDLE: $(expr, $(...)) + } else if ( !context || context.jquery ) { + return ( context || root ).find( selector ); + + // HANDLE: $(expr, context) + // (which is just equivalent to: $(context).find(expr) + } else { + return this.constructor( context ).find( selector ); + } + + // HANDLE: $(DOMElement) + } else if ( selector.nodeType ) { + this[ 0 ] = selector; + this.length = 1; + return this; + + // HANDLE: $(function) + // Shortcut for document ready + } else if ( isFunction( selector ) ) { + return root.ready !== undefined ? + root.ready( selector ) : + + // Execute immediately if ready is not present + selector( jQuery ); + } + + return jQuery.makeArray( selector, this ); + }; + +// Give the init function the jQuery prototype for later instantiation +init.prototype = jQuery.fn; + +// Initialize central reference +rootjQuery = jQuery( document ); + + +var rparentsprev = /^(?:parents|prev(?:Until|All))/, + + // Methods guaranteed to produce a unique set when starting from a unique set + guaranteedUnique = { + children: true, + contents: true, + next: true, + prev: true + }; + +jQuery.fn.extend( { + has: function( target ) { + var targets = jQuery( target, this ), + l = targets.length; + + return this.filter( function() { + var i = 0; + for ( ; i < l; i++ ) { + if ( jQuery.contains( this, targets[ i ] ) ) { + return true; + } + } + } ); + }, + + closest: function( selectors, context ) { + var cur, + i = 0, + l = this.length, + matched = [], + targets = typeof selectors !== "string" && jQuery( selectors ); + + // Positional selectors never match, since there's no _selection_ context + if ( !rneedsContext.test( selectors ) ) { + for ( ; i < l; i++ ) { + for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) { + + // Always skip document fragments + if ( cur.nodeType < 11 && ( targets ? + targets.index( cur ) > -1 : + + // Don't pass non-elements to Sizzle + cur.nodeType === 1 && + jQuery.find.matchesSelector( cur, selectors ) ) ) { + + matched.push( cur ); + break; + } + } + } + } + + return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched ); + }, + + // Determine the position of an element within the set + index: function( elem ) { + + // No argument, return index in parent + if ( !elem ) { + return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; + } + + // Index in selector + if ( typeof elem === "string" ) { + return indexOf.call( jQuery( elem ), this[ 0 ] ); + } + + // Locate the position of the desired element + return indexOf.call( this, + + // If it receives a jQuery object, the first element is used + elem.jquery ? elem[ 0 ] : elem + ); + }, + + add: function( selector, context ) { + return this.pushStack( + jQuery.uniqueSort( + jQuery.merge( this.get(), jQuery( selector, context ) ) + ) + ); + }, + + addBack: function( selector ) { + return this.add( selector == null ? + this.prevObject : this.prevObject.filter( selector ) + ); + } +} ); + +function sibling( cur, dir ) { + while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {} + return cur; +} + +jQuery.each( { + parent: function( elem ) { + var parent = elem.parentNode; + return parent && parent.nodeType !== 11 ? parent : null; + }, + parents: function( elem ) { + return dir( elem, "parentNode" ); + }, + parentsUntil: function( elem, i, until ) { + return dir( elem, "parentNode", until ); + }, + next: function( elem ) { + return sibling( elem, "nextSibling" ); + }, + prev: function( elem ) { + return sibling( elem, "previousSibling" ); + }, + nextAll: function( elem ) { + return dir( elem, "nextSibling" ); + }, + prevAll: function( elem ) { + return dir( elem, "previousSibling" ); + }, + nextUntil: function( elem, i, until ) { + return dir( elem, "nextSibling", until ); + }, + prevUntil: function( elem, i, until ) { + return dir( elem, "previousSibling", until ); + }, + siblings: function( elem ) { + return siblings( ( elem.parentNode || {} ).firstChild, elem ); + }, + children: function( elem ) { + return siblings( elem.firstChild ); + }, + contents: function( elem ) { + if ( nodeName( elem, "iframe" ) ) { + return elem.contentDocument; + } + + // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only + // Treat the template element as a regular one in browsers that + // don't support it. + if ( nodeName( elem, "template" ) ) { + elem = elem.content || elem; + } + + return jQuery.merge( [], elem.childNodes ); + } +}, function( name, fn ) { + jQuery.fn[ name ] = function( until, selector ) { + var matched = jQuery.map( this, fn, until ); + + if ( name.slice( -5 ) !== "Until" ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + matched = jQuery.filter( selector, matched ); + } + + if ( this.length > 1 ) { + + // Remove duplicates + if ( !guaranteedUnique[ name ] ) { + jQuery.uniqueSort( matched ); + } + + // Reverse order for parents* and prev-derivatives + if ( rparentsprev.test( name ) ) { + matched.reverse(); + } + } + + return this.pushStack( matched ); + }; +} ); +var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g ); + + + +// Convert String-formatted options into Object-formatted ones +function createOptions( options ) { + var object = {}; + jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) { + object[ flag ] = true; + } ); + return object; +} + +/* + * Create a callback list using the following parameters: + * + * options: an optional list of space-separated options that will change how + * the callback list behaves or a more traditional option object + * + * By default a callback list will act like an event callback list and can be + * "fired" multiple times. + * + * Possible options: + * + * once: will ensure the callback list can only be fired once (like a Deferred) + * + * memory: will keep track of previous values and will call any callback added + * after the list has been fired right away with the latest "memorized" + * values (like a Deferred) + * + * unique: will ensure a callback can only be added once (no duplicate in the list) + * + * stopOnFalse: interrupt callings when a callback returns false + * + */ +jQuery.Callbacks = function( options ) { + + // Convert options from String-formatted to Object-formatted if needed + // (we check in cache first) + options = typeof options === "string" ? + createOptions( options ) : + jQuery.extend( {}, options ); + + var // Flag to know if list is currently firing + firing, + + // Last fire value for non-forgettable lists + memory, + + // Flag to know if list was already fired + fired, + + // Flag to prevent firing + locked, + + // Actual callback list + list = [], + + // Queue of execution data for repeatable lists + queue = [], + + // Index of currently firing callback (modified by add/remove as needed) + firingIndex = -1, + + // Fire callbacks + fire = function() { + + // Enforce single-firing + locked = locked || options.once; + + // Execute callbacks for all pending executions, + // respecting firingIndex overrides and runtime changes + fired = firing = true; + for ( ; queue.length; firingIndex = -1 ) { + memory = queue.shift(); + while ( ++firingIndex < list.length ) { + + // Run callback and check for early termination + if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false && + options.stopOnFalse ) { + + // Jump to end and forget the data so .add doesn't re-fire + firingIndex = list.length; + memory = false; + } + } + } + + // Forget the data if we're done with it + if ( !options.memory ) { + memory = false; + } + + firing = false; + + // Clean up if we're done firing for good + if ( locked ) { + + // Keep an empty list if we have data for future add calls + if ( memory ) { + list = []; + + // Otherwise, this object is spent + } else { + list = ""; + } + } + }, + + // Actual Callbacks object + self = { + + // Add a callback or a collection of callbacks to the list + add: function() { + if ( list ) { + + // If we have memory from a past run, we should fire after adding + if ( memory && !firing ) { + firingIndex = list.length - 1; + queue.push( memory ); + } + + ( function add( args ) { + jQuery.each( args, function( _, arg ) { + if ( isFunction( arg ) ) { + if ( !options.unique || !self.has( arg ) ) { + list.push( arg ); + } + } else if ( arg && arg.length && toType( arg ) !== "string" ) { + + // Inspect recursively + add( arg ); + } + } ); + } )( arguments ); + + if ( memory && !firing ) { + fire(); + } + } + return this; + }, + + // Remove a callback from the list + remove: function() { + jQuery.each( arguments, function( _, arg ) { + var index; + while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { + list.splice( index, 1 ); + + // Handle firing indexes + if ( index <= firingIndex ) { + firingIndex--; + } + } + } ); + return this; + }, + + // Check if a given callback is in the list. + // If no argument is given, return whether or not list has callbacks attached. + has: function( fn ) { + return fn ? + jQuery.inArray( fn, list ) > -1 : + list.length > 0; + }, + + // Remove all callbacks from the list + empty: function() { + if ( list ) { + list = []; + } + return this; + }, + + // Disable .fire and .add + // Abort any current/pending executions + // Clear all callbacks and values + disable: function() { + locked = queue = []; + list = memory = ""; + return this; + }, + disabled: function() { + return !list; + }, + + // Disable .fire + // Also disable .add unless we have memory (since it would have no effect) + // Abort any pending executions + lock: function() { + locked = queue = []; + if ( !memory && !firing ) { + list = memory = ""; + } + return this; + }, + locked: function() { + return !!locked; + }, + + // Call all callbacks with the given context and arguments + fireWith: function( context, args ) { + if ( !locked ) { + args = args || []; + args = [ context, args.slice ? args.slice() : args ]; + queue.push( args ); + if ( !firing ) { + fire(); + } + } + return this; + }, + + // Call all the callbacks with the given arguments + fire: function() { + self.fireWith( this, arguments ); + return this; + }, + + // To know if the callbacks have already been called at least once + fired: function() { + return !!fired; + } + }; + + return self; +}; + + +function Identity( v ) { + return v; +} +function Thrower( ex ) { + throw ex; +} + +function adoptValue( value, resolve, reject, noValue ) { + var method; + + try { + + // Check for promise aspect first to privilege synchronous behavior + if ( value && isFunction( ( method = value.promise ) ) ) { + method.call( value ).done( resolve ).fail( reject ); + + // Other thenables + } else if ( value && isFunction( ( method = value.then ) ) ) { + method.call( value, resolve, reject ); + + // Other non-thenables + } else { + + // Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer: + // * false: [ value ].slice( 0 ) => resolve( value ) + // * true: [ value ].slice( 1 ) => resolve() + resolve.apply( undefined, [ value ].slice( noValue ) ); + } + + // For Promises/A+, convert exceptions into rejections + // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in + // Deferred#then to conditionally suppress rejection. + } catch ( value ) { + + // Support: Android 4.0 only + // Strict mode functions invoked without .call/.apply get global-object context + reject.apply( undefined, [ value ] ); + } +} + +jQuery.extend( { + + Deferred: function( func ) { + var tuples = [ + + // action, add listener, callbacks, + // ... .then handlers, argument index, [final state] + [ "notify", "progress", jQuery.Callbacks( "memory" ), + jQuery.Callbacks( "memory" ), 2 ], + [ "resolve", "done", jQuery.Callbacks( "once memory" ), + jQuery.Callbacks( "once memory" ), 0, "resolved" ], + [ "reject", "fail", jQuery.Callbacks( "once memory" ), + jQuery.Callbacks( "once memory" ), 1, "rejected" ] + ], + state = "pending", + promise = { + state: function() { + return state; + }, + always: function() { + deferred.done( arguments ).fail( arguments ); + return this; + }, + "catch": function( fn ) { + return promise.then( null, fn ); + }, + + // Keep pipe for back-compat + pipe: function( /* fnDone, fnFail, fnProgress */ ) { + var fns = arguments; + + return jQuery.Deferred( function( newDefer ) { + jQuery.each( tuples, function( i, tuple ) { + + // Map tuples (progress, done, fail) to arguments (done, fail, progress) + var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ]; + + // deferred.progress(function() { bind to newDefer or newDefer.notify }) + // deferred.done(function() { bind to newDefer or newDefer.resolve }) + // deferred.fail(function() { bind to newDefer or newDefer.reject }) + deferred[ tuple[ 1 ] ]( function() { + var returned = fn && fn.apply( this, arguments ); + if ( returned && isFunction( returned.promise ) ) { + returned.promise() + .progress( newDefer.notify ) + .done( newDefer.resolve ) + .fail( newDefer.reject ); + } else { + newDefer[ tuple[ 0 ] + "With" ]( + this, + fn ? [ returned ] : arguments + ); + } + } ); + } ); + fns = null; + } ).promise(); + }, + then: function( onFulfilled, onRejected, onProgress ) { + var maxDepth = 0; + function resolve( depth, deferred, handler, special ) { + return function() { + var that = this, + args = arguments, + mightThrow = function() { + var returned, then; + + // Support: Promises/A+ section 2.3.3.3.3 + // https://promisesaplus.com/#point-59 + // Ignore double-resolution attempts + if ( depth < maxDepth ) { + return; + } + + returned = handler.apply( that, args ); + + // Support: Promises/A+ section 2.3.1 + // https://promisesaplus.com/#point-48 + if ( returned === deferred.promise() ) { + throw new TypeError( "Thenable self-resolution" ); + } + + // Support: Promises/A+ sections 2.3.3.1, 3.5 + // https://promisesaplus.com/#point-54 + // https://promisesaplus.com/#point-75 + // Retrieve `then` only once + then = returned && + + // Support: Promises/A+ section 2.3.4 + // https://promisesaplus.com/#point-64 + // Only check objects and functions for thenability + ( typeof returned === "object" || + typeof returned === "function" ) && + returned.then; + + // Handle a returned thenable + if ( isFunction( then ) ) { + + // Special processors (notify) just wait for resolution + if ( special ) { + then.call( + returned, + resolve( maxDepth, deferred, Identity, special ), + resolve( maxDepth, deferred, Thrower, special ) + ); + + // Normal processors (resolve) also hook into progress + } else { + + // ...and disregard older resolution values + maxDepth++; + + then.call( + returned, + resolve( maxDepth, deferred, Identity, special ), + resolve( maxDepth, deferred, Thrower, special ), + resolve( maxDepth, deferred, Identity, + deferred.notifyWith ) + ); + } + + // Handle all other returned values + } else { + + // Only substitute handlers pass on context + // and multiple values (non-spec behavior) + if ( handler !== Identity ) { + that = undefined; + args = [ returned ]; + } + + // Process the value(s) + // Default process is resolve + ( special || deferred.resolveWith )( that, args ); + } + }, + + // Only normal processors (resolve) catch and reject exceptions + process = special ? + mightThrow : + function() { + try { + mightThrow(); + } catch ( e ) { + + if ( jQuery.Deferred.exceptionHook ) { + jQuery.Deferred.exceptionHook( e, + process.stackTrace ); + } + + // Support: Promises/A+ section 2.3.3.3.4.1 + // https://promisesaplus.com/#point-61 + // Ignore post-resolution exceptions + if ( depth + 1 >= maxDepth ) { + + // Only substitute handlers pass on context + // and multiple values (non-spec behavior) + if ( handler !== Thrower ) { + that = undefined; + args = [ e ]; + } + + deferred.rejectWith( that, args ); + } + } + }; + + // Support: Promises/A+ section 2.3.3.3.1 + // https://promisesaplus.com/#point-57 + // Re-resolve promises immediately to dodge false rejection from + // subsequent errors + if ( depth ) { + process(); + } else { + + // Call an optional hook to record the stack, in case of exception + // since it's otherwise lost when execution goes async + if ( jQuery.Deferred.getStackHook ) { + process.stackTrace = jQuery.Deferred.getStackHook(); + } + window.setTimeout( process ); + } + }; + } + + return jQuery.Deferred( function( newDefer ) { + + // progress_handlers.add( ... ) + tuples[ 0 ][ 3 ].add( + resolve( + 0, + newDefer, + isFunction( onProgress ) ? + onProgress : + Identity, + newDefer.notifyWith + ) + ); + + // fulfilled_handlers.add( ... ) + tuples[ 1 ][ 3 ].add( + resolve( + 0, + newDefer, + isFunction( onFulfilled ) ? + onFulfilled : + Identity + ) + ); + + // rejected_handlers.add( ... ) + tuples[ 2 ][ 3 ].add( + resolve( + 0, + newDefer, + isFunction( onRejected ) ? + onRejected : + Thrower + ) + ); + } ).promise(); + }, + + // Get a promise for this deferred + // If obj is provided, the promise aspect is added to the object + promise: function( obj ) { + return obj != null ? jQuery.extend( obj, promise ) : promise; + } + }, + deferred = {}; + + // Add list-specific methods + jQuery.each( tuples, function( i, tuple ) { + var list = tuple[ 2 ], + stateString = tuple[ 5 ]; + + // promise.progress = list.add + // promise.done = list.add + // promise.fail = list.add + promise[ tuple[ 1 ] ] = list.add; + + // Handle state + if ( stateString ) { + list.add( + function() { + + // state = "resolved" (i.e., fulfilled) + // state = "rejected" + state = stateString; + }, + + // rejected_callbacks.disable + // fulfilled_callbacks.disable + tuples[ 3 - i ][ 2 ].disable, + + // rejected_handlers.disable + // fulfilled_handlers.disable + tuples[ 3 - i ][ 3 ].disable, + + // progress_callbacks.lock + tuples[ 0 ][ 2 ].lock, + + // progress_handlers.lock + tuples[ 0 ][ 3 ].lock + ); + } + + // progress_handlers.fire + // fulfilled_handlers.fire + // rejected_handlers.fire + list.add( tuple[ 3 ].fire ); + + // deferred.notify = function() { deferred.notifyWith(...) } + // deferred.resolve = function() { deferred.resolveWith(...) } + // deferred.reject = function() { deferred.rejectWith(...) } + deferred[ tuple[ 0 ] ] = function() { + deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments ); + return this; + }; + + // deferred.notifyWith = list.fireWith + // deferred.resolveWith = list.fireWith + // deferred.rejectWith = list.fireWith + deferred[ tuple[ 0 ] + "With" ] = list.fireWith; + } ); + + // Make the deferred a promise + promise.promise( deferred ); + + // Call given func if any + if ( func ) { + func.call( deferred, deferred ); + } + + // All done! + return deferred; + }, + + // Deferred helper + when: function( singleValue ) { + var + + // count of uncompleted subordinates + remaining = arguments.length, + + // count of unprocessed arguments + i = remaining, + + // subordinate fulfillment data + resolveContexts = Array( i ), + resolveValues = slice.call( arguments ), + + // the master Deferred + master = jQuery.Deferred(), + + // subordinate callback factory + updateFunc = function( i ) { + return function( value ) { + resolveContexts[ i ] = this; + resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; + if ( !( --remaining ) ) { + master.resolveWith( resolveContexts, resolveValues ); + } + }; + }; + + // Single- and empty arguments are adopted like Promise.resolve + if ( remaining <= 1 ) { + adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject, + !remaining ); + + // Use .then() to unwrap secondary thenables (cf. gh-3000) + if ( master.state() === "pending" || + isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) { + + return master.then(); + } + } + + // Multiple arguments are aggregated like Promise.all array elements + while ( i-- ) { + adoptValue( resolveValues[ i ], updateFunc( i ), master.reject ); + } + + return master.promise(); + } +} ); + + +// These usually indicate a programmer mistake during development, +// warn about them ASAP rather than swallowing them by default. +var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; + +jQuery.Deferred.exceptionHook = function( error, stack ) { + + // Support: IE 8 - 9 only + // Console exists when dev tools are open, which can happen at any time + if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) { + window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack ); + } +}; + + + + +jQuery.readyException = function( error ) { + window.setTimeout( function() { + throw error; + } ); +}; + + + + +// The deferred used on DOM ready +var readyList = jQuery.Deferred(); + +jQuery.fn.ready = function( fn ) { + + readyList + .then( fn ) + + // Wrap jQuery.readyException in a function so that the lookup + // happens at the time of error handling instead of callback + // registration. + .catch( function( error ) { + jQuery.readyException( error ); + } ); + + return this; +}; + +jQuery.extend( { + + // Is the DOM ready to be used? Set to true once it occurs. + isReady: false, + + // A counter to track how many items to wait for before + // the ready event fires. See #6781 + readyWait: 1, + + // Handle when the DOM is ready + ready: function( wait ) { + + // Abort if there are pending holds or we're already ready + if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { + return; + } + + // Remember that the DOM is ready + jQuery.isReady = true; + + // If a normal DOM Ready event fired, decrement, and wait if need be + if ( wait !== true && --jQuery.readyWait > 0 ) { + return; + } + + // If there are functions bound, to execute + readyList.resolveWith( document, [ jQuery ] ); + } +} ); + +jQuery.ready.then = readyList.then; + +// The ready event handler and self cleanup method +function completed() { + document.removeEventListener( "DOMContentLoaded", completed ); + window.removeEventListener( "load", completed ); + jQuery.ready(); +} + +// Catch cases where $(document).ready() is called +// after the browser event has already occurred. +// Support: IE <=9 - 10 only +// Older IE sometimes signals "interactive" too soon +if ( document.readyState === "complete" || + ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) { + + // Handle it asynchronously to allow scripts the opportunity to delay ready + window.setTimeout( jQuery.ready ); + +} else { + + // Use the handy event callback + document.addEventListener( "DOMContentLoaded", completed ); + + // A fallback to window.onload, that will always work + window.addEventListener( "load", completed ); +} + + + + +// Multifunctional method to get and set values of a collection +// The value/s can optionally be executed if it's a function +var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { + var i = 0, + len = elems.length, + bulk = key == null; + + // Sets many values + if ( toType( key ) === "object" ) { + chainable = true; + for ( i in key ) { + access( elems, fn, i, key[ i ], true, emptyGet, raw ); + } + + // Sets one value + } else if ( value !== undefined ) { + chainable = true; + + if ( !isFunction( value ) ) { + raw = true; + } + + if ( bulk ) { + + // Bulk operations run against the entire set + if ( raw ) { + fn.call( elems, value ); + fn = null; + + // ...except when executing function values + } else { + bulk = fn; + fn = function( elem, key, value ) { + return bulk.call( jQuery( elem ), value ); + }; + } + } + + if ( fn ) { + for ( ; i < len; i++ ) { + fn( + elems[ i ], key, raw ? + value : + value.call( elems[ i ], i, fn( elems[ i ], key ) ) + ); + } + } + } + + if ( chainable ) { + return elems; + } + + // Gets + if ( bulk ) { + return fn.call( elems ); + } + + return len ? fn( elems[ 0 ], key ) : emptyGet; +}; + + +// Matches dashed string for camelizing +var rmsPrefix = /^-ms-/, + rdashAlpha = /-([a-z])/g; + +// Used by camelCase as callback to replace() +function fcamelCase( all, letter ) { + return letter.toUpperCase(); +} + +// Convert dashed to camelCase; used by the css and data modules +// Support: IE <=9 - 11, Edge 12 - 15 +// Microsoft forgot to hump their vendor prefix (#9572) +function camelCase( string ) { + return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); +} +var acceptData = function( owner ) { + + // Accepts only: + // - Node + // - Node.ELEMENT_NODE + // - Node.DOCUMENT_NODE + // - Object + // - Any + return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); +}; + + + + +function Data() { + this.expando = jQuery.expando + Data.uid++; +} + +Data.uid = 1; + +Data.prototype = { + + cache: function( owner ) { + + // Check if the owner object already has a cache + var value = owner[ this.expando ]; + + // If not, create one + if ( !value ) { + value = {}; + + // We can accept data for non-element nodes in modern browsers, + // but we should not, see #8335. + // Always return an empty object. + if ( acceptData( owner ) ) { + + // If it is a node unlikely to be stringify-ed or looped over + // use plain assignment + if ( owner.nodeType ) { + owner[ this.expando ] = value; + + // Otherwise secure it in a non-enumerable property + // configurable must be true to allow the property to be + // deleted when data is removed + } else { + Object.defineProperty( owner, this.expando, { + value: value, + configurable: true + } ); + } + } + } + + return value; + }, + set: function( owner, data, value ) { + var prop, + cache = this.cache( owner ); + + // Handle: [ owner, key, value ] args + // Always use camelCase key (gh-2257) + if ( typeof data === "string" ) { + cache[ camelCase( data ) ] = value; + + // Handle: [ owner, { properties } ] args + } else { + + // Copy the properties one-by-one to the cache object + for ( prop in data ) { + cache[ camelCase( prop ) ] = data[ prop ]; + } + } + return cache; + }, + get: function( owner, key ) { + return key === undefined ? + this.cache( owner ) : + + // Always use camelCase key (gh-2257) + owner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ]; + }, + access: function( owner, key, value ) { + + // In cases where either: + // + // 1. No key was specified + // 2. A string key was specified, but no value provided + // + // Take the "read" path and allow the get method to determine + // which value to return, respectively either: + // + // 1. The entire cache object + // 2. The data stored at the key + // + if ( key === undefined || + ( ( key && typeof key === "string" ) && value === undefined ) ) { + + return this.get( owner, key ); + } + + // When the key is not a string, or both a key and value + // are specified, set or extend (existing objects) with either: + // + // 1. An object of properties + // 2. A key and value + // + this.set( owner, key, value ); + + // Since the "set" path can have two possible entry points + // return the expected data based on which path was taken[*] + return value !== undefined ? value : key; + }, + remove: function( owner, key ) { + var i, + cache = owner[ this.expando ]; + + if ( cache === undefined ) { + return; + } + + if ( key !== undefined ) { + + // Support array or space separated string of keys + if ( Array.isArray( key ) ) { + + // If key is an array of keys... + // We always set camelCase keys, so remove that. + key = key.map( camelCase ); + } else { + key = camelCase( key ); + + // If a key with the spaces exists, use it. + // Otherwise, create an array by matching non-whitespace + key = key in cache ? + [ key ] : + ( key.match( rnothtmlwhite ) || [] ); + } + + i = key.length; + + while ( i-- ) { + delete cache[ key[ i ] ]; + } + } + + // Remove the expando if there's no more data + if ( key === undefined || jQuery.isEmptyObject( cache ) ) { + + // Support: Chrome <=35 - 45 + // Webkit & Blink performance suffers when deleting properties + // from DOM nodes, so set to undefined instead + // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted) + if ( owner.nodeType ) { + owner[ this.expando ] = undefined; + } else { + delete owner[ this.expando ]; + } + } + }, + hasData: function( owner ) { + var cache = owner[ this.expando ]; + return cache !== undefined && !jQuery.isEmptyObject( cache ); + } +}; +var dataPriv = new Data(); + +var dataUser = new Data(); + + + +// Implementation Summary +// +// 1. Enforce API surface and semantic compatibility with 1.9.x branch +// 2. Improve the module's maintainability by reducing the storage +// paths to a single mechanism. +// 3. Use the same single mechanism to support "private" and "user" data. +// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) +// 5. Avoid exposing implementation details on user objects (eg. expando properties) +// 6. Provide a clear path for implementation upgrade to WeakMap in 2014 + +var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, + rmultiDash = /[A-Z]/g; + +function getData( data ) { + if ( data === "true" ) { + return true; + } + + if ( data === "false" ) { + return false; + } + + if ( data === "null" ) { + return null; + } + + // Only convert to a number if it doesn't change the string + if ( data === +data + "" ) { + return +data; + } + + if ( rbrace.test( data ) ) { + return JSON.parse( data ); + } + + return data; +} + +function dataAttr( elem, key, data ) { + var name; + + // If nothing was found internally, try to fetch any + // data from the HTML5 data-* attribute + if ( data === undefined && elem.nodeType === 1 ) { + name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase(); + data = elem.getAttribute( name ); + + if ( typeof data === "string" ) { + try { + data = getData( data ); + } catch ( e ) {} + + // Make sure we set the data so it isn't changed later + dataUser.set( elem, key, data ); + } else { + data = undefined; + } + } + return data; +} + +jQuery.extend( { + hasData: function( elem ) { + return dataUser.hasData( elem ) || dataPriv.hasData( elem ); + }, + + data: function( elem, name, data ) { + return dataUser.access( elem, name, data ); + }, + + removeData: function( elem, name ) { + dataUser.remove( elem, name ); + }, + + // TODO: Now that all calls to _data and _removeData have been replaced + // with direct calls to dataPriv methods, these can be deprecated. + _data: function( elem, name, data ) { + return dataPriv.access( elem, name, data ); + }, + + _removeData: function( elem, name ) { + dataPriv.remove( elem, name ); + } +} ); + +jQuery.fn.extend( { + data: function( key, value ) { + var i, name, data, + elem = this[ 0 ], + attrs = elem && elem.attributes; + + // Gets all values + if ( key === undefined ) { + if ( this.length ) { + data = dataUser.get( elem ); + + if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) { + i = attrs.length; + while ( i-- ) { + + // Support: IE 11 only + // The attrs elements can be null (#14894) + if ( attrs[ i ] ) { + name = attrs[ i ].name; + if ( name.indexOf( "data-" ) === 0 ) { + name = camelCase( name.slice( 5 ) ); + dataAttr( elem, name, data[ name ] ); + } + } + } + dataPriv.set( elem, "hasDataAttrs", true ); + } + } + + return data; + } + + // Sets multiple values + if ( typeof key === "object" ) { + return this.each( function() { + dataUser.set( this, key ); + } ); + } + + return access( this, function( value ) { + var data; + + // The calling jQuery object (element matches) is not empty + // (and therefore has an element appears at this[ 0 ]) and the + // `value` parameter was not undefined. An empty jQuery object + // will result in `undefined` for elem = this[ 0 ] which will + // throw an exception if an attempt to read a data cache is made. + if ( elem && value === undefined ) { + + // Attempt to get data from the cache + // The key will always be camelCased in Data + data = dataUser.get( elem, key ); + if ( data !== undefined ) { + return data; + } + + // Attempt to "discover" the data in + // HTML5 custom data-* attrs + data = dataAttr( elem, key ); + if ( data !== undefined ) { + return data; + } + + // We tried really hard, but the data doesn't exist. + return; + } + + // Set the data... + this.each( function() { + + // We always store the camelCased key + dataUser.set( this, key, value ); + } ); + }, null, value, arguments.length > 1, null, true ); + }, + + removeData: function( key ) { + return this.each( function() { + dataUser.remove( this, key ); + } ); + } +} ); + + +jQuery.extend( { + queue: function( elem, type, data ) { + var queue; + + if ( elem ) { + type = ( type || "fx" ) + "queue"; + queue = dataPriv.get( elem, type ); + + // Speed up dequeue by getting out quickly if this is just a lookup + if ( data ) { + if ( !queue || Array.isArray( data ) ) { + queue = dataPriv.access( elem, type, jQuery.makeArray( data ) ); + } else { + queue.push( data ); + } + } + return queue || []; + } + }, + + dequeue: function( elem, type ) { + type = type || "fx"; + + var queue = jQuery.queue( elem, type ), + startLength = queue.length, + fn = queue.shift(), + hooks = jQuery._queueHooks( elem, type ), + next = function() { + jQuery.dequeue( elem, type ); + }; + + // If the fx queue is dequeued, always remove the progress sentinel + if ( fn === "inprogress" ) { + fn = queue.shift(); + startLength--; + } + + if ( fn ) { + + // Add a progress sentinel to prevent the fx queue from being + // automatically dequeued + if ( type === "fx" ) { + queue.unshift( "inprogress" ); + } + + // Clear up the last queue stop function + delete hooks.stop; + fn.call( elem, next, hooks ); + } + + if ( !startLength && hooks ) { + hooks.empty.fire(); + } + }, + + // Not public - generate a queueHooks object, or return the current one + _queueHooks: function( elem, type ) { + var key = type + "queueHooks"; + return dataPriv.get( elem, key ) || dataPriv.access( elem, key, { + empty: jQuery.Callbacks( "once memory" ).add( function() { + dataPriv.remove( elem, [ type + "queue", key ] ); + } ) + } ); + } +} ); + +jQuery.fn.extend( { + queue: function( type, data ) { + var setter = 2; + + if ( typeof type !== "string" ) { + data = type; + type = "fx"; + setter--; + } + + if ( arguments.length < setter ) { + return jQuery.queue( this[ 0 ], type ); + } + + return data === undefined ? + this : + this.each( function() { + var queue = jQuery.queue( this, type, data ); + + // Ensure a hooks for this queue + jQuery._queueHooks( this, type ); + + if ( type === "fx" && queue[ 0 ] !== "inprogress" ) { + jQuery.dequeue( this, type ); + } + } ); + }, + dequeue: function( type ) { + return this.each( function() { + jQuery.dequeue( this, type ); + } ); + }, + clearQueue: function( type ) { + return this.queue( type || "fx", [] ); + }, + + // Get a promise resolved when queues of a certain type + // are emptied (fx is the type by default) + promise: function( type, obj ) { + var tmp, + count = 1, + defer = jQuery.Deferred(), + elements = this, + i = this.length, + resolve = function() { + if ( !( --count ) ) { + defer.resolveWith( elements, [ elements ] ); + } + }; + + if ( typeof type !== "string" ) { + obj = type; + type = undefined; + } + type = type || "fx"; + + while ( i-- ) { + tmp = dataPriv.get( elements[ i ], type + "queueHooks" ); + if ( tmp && tmp.empty ) { + count++; + tmp.empty.add( resolve ); + } + } + resolve(); + return defer.promise( obj ); + } +} ); +var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source; + +var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); + + +var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; + +var isHiddenWithinTree = function( elem, el ) { + + // isHiddenWithinTree might be called from jQuery#filter function; + // in that case, element will be second argument + elem = el || elem; + + // Inline style trumps all + return elem.style.display === "none" || + elem.style.display === "" && + + // Otherwise, check computed style + // Support: Firefox <=43 - 45 + // Disconnected elements can have computed display: none, so first confirm that elem is + // in the document. + jQuery.contains( elem.ownerDocument, elem ) && + + jQuery.css( elem, "display" ) === "none"; + }; + +var swap = function( elem, options, callback, args ) { + var ret, name, + old = {}; + + // Remember the old values, and insert the new ones + for ( name in options ) { + old[ name ] = elem.style[ name ]; + elem.style[ name ] = options[ name ]; + } + + ret = callback.apply( elem, args || [] ); + + // Revert the old values + for ( name in options ) { + elem.style[ name ] = old[ name ]; + } + + return ret; +}; + + + + +function adjustCSS( elem, prop, valueParts, tween ) { + var adjusted, scale, + maxIterations = 20, + currentValue = tween ? + function() { + return tween.cur(); + } : + function() { + return jQuery.css( elem, prop, "" ); + }, + initial = currentValue(), + unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), + + // Starting value computation is required for potential unit mismatches + initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && + rcssNum.exec( jQuery.css( elem, prop ) ); + + if ( initialInUnit && initialInUnit[ 3 ] !== unit ) { + + // Support: Firefox <=54 + // Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144) + initial = initial / 2; + + // Trust units reported by jQuery.css + unit = unit || initialInUnit[ 3 ]; + + // Iteratively approximate from a nonzero starting point + initialInUnit = +initial || 1; + + while ( maxIterations-- ) { + + // Evaluate and update our best guess (doubling guesses that zero out). + // Finish if the scale equals or crosses 1 (making the old*new product non-positive). + jQuery.style( elem, prop, initialInUnit + unit ); + if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) { + maxIterations = 0; + } + initialInUnit = initialInUnit / scale; + + } + + initialInUnit = initialInUnit * 2; + jQuery.style( elem, prop, initialInUnit + unit ); + + // Make sure we update the tween properties later on + valueParts = valueParts || []; + } + + if ( valueParts ) { + initialInUnit = +initialInUnit || +initial || 0; + + // Apply relative offset (+=/-=) if specified + adjusted = valueParts[ 1 ] ? + initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] : + +valueParts[ 2 ]; + if ( tween ) { + tween.unit = unit; + tween.start = initialInUnit; + tween.end = adjusted; + } + } + return adjusted; +} + + +var defaultDisplayMap = {}; + +function getDefaultDisplay( elem ) { + var temp, + doc = elem.ownerDocument, + nodeName = elem.nodeName, + display = defaultDisplayMap[ nodeName ]; + + if ( display ) { + return display; + } + + temp = doc.body.appendChild( doc.createElement( nodeName ) ); + display = jQuery.css( temp, "display" ); + + temp.parentNode.removeChild( temp ); + + if ( display === "none" ) { + display = "block"; + } + defaultDisplayMap[ nodeName ] = display; + + return display; +} + +function showHide( elements, show ) { + var display, elem, + values = [], + index = 0, + length = elements.length; + + // Determine new display value for elements that need to change + for ( ; index < length; index++ ) { + elem = elements[ index ]; + if ( !elem.style ) { + continue; + } + + display = elem.style.display; + if ( show ) { + + // Since we force visibility upon cascade-hidden elements, an immediate (and slow) + // check is required in this first loop unless we have a nonempty display value (either + // inline or about-to-be-restored) + if ( display === "none" ) { + values[ index ] = dataPriv.get( elem, "display" ) || null; + if ( !values[ index ] ) { + elem.style.display = ""; + } + } + if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) { + values[ index ] = getDefaultDisplay( elem ); + } + } else { + if ( display !== "none" ) { + values[ index ] = "none"; + + // Remember what we're overwriting + dataPriv.set( elem, "display", display ); + } + } + } + + // Set the display of the elements in a second loop to avoid constant reflow + for ( index = 0; index < length; index++ ) { + if ( values[ index ] != null ) { + elements[ index ].style.display = values[ index ]; + } + } + + return elements; +} + +jQuery.fn.extend( { + show: function() { + return showHide( this, true ); + }, + hide: function() { + return showHide( this ); + }, + toggle: function( state ) { + if ( typeof state === "boolean" ) { + return state ? this.show() : this.hide(); + } + + return this.each( function() { + if ( isHiddenWithinTree( this ) ) { + jQuery( this ).show(); + } else { + jQuery( this ).hide(); + } + } ); + } +} ); +var rcheckableType = ( /^(?:checkbox|radio)$/i ); + +var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]+)/i ); + +var rscriptType = ( /^$|^module$|\/(?:java|ecma)script/i ); + + + +// We have to close these tags to support XHTML (#13200) +var wrapMap = { + + // Support: IE <=9 only + option: [ 1, "" ], + + // XHTML parsers do not magically insert elements in the + // same way that tag soup parsers do. So we cannot shorten + // this by omitting or other required elements. + thead: [ 1, "", "
    " ], + col: [ 2, "", "
    " ], + tr: [ 2, "", "
    " ], + td: [ 3, "", "
    " ], + + _default: [ 0, "", "" ] +}; + +// Support: IE <=9 only +wrapMap.optgroup = wrapMap.option; + +wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; +wrapMap.th = wrapMap.td; + + +function getAll( context, tag ) { + + // Support: IE <=9 - 11 only + // Use typeof to avoid zero-argument method invocation on host objects (#15151) + var ret; + + if ( typeof context.getElementsByTagName !== "undefined" ) { + ret = context.getElementsByTagName( tag || "*" ); + + } else if ( typeof context.querySelectorAll !== "undefined" ) { + ret = context.querySelectorAll( tag || "*" ); + + } else { + ret = []; + } + + if ( tag === undefined || tag && nodeName( context, tag ) ) { + return jQuery.merge( [ context ], ret ); + } + + return ret; +} + + +// Mark scripts as having already been evaluated +function setGlobalEval( elems, refElements ) { + var i = 0, + l = elems.length; + + for ( ; i < l; i++ ) { + dataPriv.set( + elems[ i ], + "globalEval", + !refElements || dataPriv.get( refElements[ i ], "globalEval" ) + ); + } +} + + +var rhtml = /<|&#?\w+;/; + +function buildFragment( elems, context, scripts, selection, ignored ) { + var elem, tmp, tag, wrap, contains, j, + fragment = context.createDocumentFragment(), + nodes = [], + i = 0, + l = elems.length; + + for ( ; i < l; i++ ) { + elem = elems[ i ]; + + if ( elem || elem === 0 ) { + + // Add nodes directly + if ( toType( elem ) === "object" ) { + + // Support: Android <=4.0 only, PhantomJS 1 only + // push.apply(_, arraylike) throws on ancient WebKit + jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); + + // Convert non-html into a text node + } else if ( !rhtml.test( elem ) ) { + nodes.push( context.createTextNode( elem ) ); + + // Convert html into DOM nodes + } else { + tmp = tmp || fragment.appendChild( context.createElement( "div" ) ); + + // Deserialize a standard representation + tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase(); + wrap = wrapMap[ tag ] || wrapMap._default; + tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ]; + + // Descend through wrappers to the right content + j = wrap[ 0 ]; + while ( j-- ) { + tmp = tmp.lastChild; + } + + // Support: Android <=4.0 only, PhantomJS 1 only + // push.apply(_, arraylike) throws on ancient WebKit + jQuery.merge( nodes, tmp.childNodes ); + + // Remember the top-level container + tmp = fragment.firstChild; + + // Ensure the created nodes are orphaned (#12392) + tmp.textContent = ""; + } + } + } + + // Remove wrapper from fragment + fragment.textContent = ""; + + i = 0; + while ( ( elem = nodes[ i++ ] ) ) { + + // Skip elements already in the context collection (trac-4087) + if ( selection && jQuery.inArray( elem, selection ) > -1 ) { + if ( ignored ) { + ignored.push( elem ); + } + continue; + } + + contains = jQuery.contains( elem.ownerDocument, elem ); + + // Append to fragment + tmp = getAll( fragment.appendChild( elem ), "script" ); + + // Preserve script evaluation history + if ( contains ) { + setGlobalEval( tmp ); + } + + // Capture executables + if ( scripts ) { + j = 0; + while ( ( elem = tmp[ j++ ] ) ) { + if ( rscriptType.test( elem.type || "" ) ) { + scripts.push( elem ); + } + } + } + } + + return fragment; +} + + +( function() { + var fragment = document.createDocumentFragment(), + div = fragment.appendChild( document.createElement( "div" ) ), + input = document.createElement( "input" ); + + // Support: Android 4.0 - 4.3 only + // Check state lost if the name is set (#11217) + // Support: Windows Web Apps (WWA) + // `name` and `type` must use .setAttribute for WWA (#14901) + input.setAttribute( "type", "radio" ); + input.setAttribute( "checked", "checked" ); + input.setAttribute( "name", "t" ); + + div.appendChild( input ); + + // Support: Android <=4.1 only + // Older WebKit doesn't clone checked state correctly in fragments + support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; + + // Support: IE <=11 only + // Make sure textarea (and checkbox) defaultValue is properly cloned + div.innerHTML = ""; + support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; +} )(); +var documentElement = document.documentElement; + + + +var + rkeyEvent = /^key/, + rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, + rtypenamespace = /^([^.]*)(?:\.(.+)|)/; + +function returnTrue() { + return true; +} + +function returnFalse() { + return false; +} + +// Support: IE <=9 only +// See #13393 for more info +function safeActiveElement() { + try { + return document.activeElement; + } catch ( err ) { } +} + +function on( elem, types, selector, data, fn, one ) { + var origFn, type; + + // Types can be a map of types/handlers + if ( typeof types === "object" ) { + + // ( types-Object, selector, data ) + if ( typeof selector !== "string" ) { + + // ( types-Object, data ) + data = data || selector; + selector = undefined; + } + for ( type in types ) { + on( elem, type, selector, data, types[ type ], one ); + } + return elem; + } + + if ( data == null && fn == null ) { + + // ( types, fn ) + fn = selector; + data = selector = undefined; + } else if ( fn == null ) { + if ( typeof selector === "string" ) { + + // ( types, selector, fn ) + fn = data; + data = undefined; + } else { + + // ( types, data, fn ) + fn = data; + data = selector; + selector = undefined; + } + } + if ( fn === false ) { + fn = returnFalse; + } else if ( !fn ) { + return elem; + } + + if ( one === 1 ) { + origFn = fn; + fn = function( event ) { + + // Can use an empty set, since event contains the info + jQuery().off( event ); + return origFn.apply( this, arguments ); + }; + + // Use same guid so caller can remove using origFn + fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); + } + return elem.each( function() { + jQuery.event.add( this, types, fn, data, selector ); + } ); +} + +/* + * Helper functions for managing events -- not part of the public interface. + * Props to Dean Edwards' addEvent library for many of the ideas. + */ +jQuery.event = { + + global: {}, + + add: function( elem, types, handler, data, selector ) { + + var handleObjIn, eventHandle, tmp, + events, t, handleObj, + special, handlers, type, namespaces, origType, + elemData = dataPriv.get( elem ); + + // Don't attach events to noData or text/comment nodes (but allow plain objects) + if ( !elemData ) { + return; + } + + // Caller can pass in an object of custom data in lieu of the handler + if ( handler.handler ) { + handleObjIn = handler; + handler = handleObjIn.handler; + selector = handleObjIn.selector; + } + + // Ensure that invalid selectors throw exceptions at attach time + // Evaluate against documentElement in case elem is a non-element node (e.g., document) + if ( selector ) { + jQuery.find.matchesSelector( documentElement, selector ); + } + + // Make sure that the handler has a unique ID, used to find/remove it later + if ( !handler.guid ) { + handler.guid = jQuery.guid++; + } + + // Init the element's event structure and main handler, if this is the first + if ( !( events = elemData.events ) ) { + events = elemData.events = {}; + } + if ( !( eventHandle = elemData.handle ) ) { + eventHandle = elemData.handle = function( e ) { + + // Discard the second event of a jQuery.event.trigger() and + // when an event is called after a page has unloaded + return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? + jQuery.event.dispatch.apply( elem, arguments ) : undefined; + }; + } + + // Handle multiple events separated by a space + types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[ t ] ) || []; + type = origType = tmp[ 1 ]; + namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); + + // There *must* be a type, no attaching namespace-only handlers + if ( !type ) { + continue; + } + + // If event changes its type, use the special event handlers for the changed type + special = jQuery.event.special[ type ] || {}; + + // If selector defined, determine special event api type, otherwise given type + type = ( selector ? special.delegateType : special.bindType ) || type; + + // Update special based on newly reset type + special = jQuery.event.special[ type ] || {}; + + // handleObj is passed to all event handlers + handleObj = jQuery.extend( { + type: type, + origType: origType, + data: data, + handler: handler, + guid: handler.guid, + selector: selector, + needsContext: selector && jQuery.expr.match.needsContext.test( selector ), + namespace: namespaces.join( "." ) + }, handleObjIn ); + + // Init the event handler queue if we're the first + if ( !( handlers = events[ type ] ) ) { + handlers = events[ type ] = []; + handlers.delegateCount = 0; + + // Only use addEventListener if the special events handler returns false + if ( !special.setup || + special.setup.call( elem, data, namespaces, eventHandle ) === false ) { + + if ( elem.addEventListener ) { + elem.addEventListener( type, eventHandle ); + } + } + } + + if ( special.add ) { + special.add.call( elem, handleObj ); + + if ( !handleObj.handler.guid ) { + handleObj.handler.guid = handler.guid; + } + } + + // Add to the element's handler list, delegates in front + if ( selector ) { + handlers.splice( handlers.delegateCount++, 0, handleObj ); + } else { + handlers.push( handleObj ); + } + + // Keep track of which events have ever been used, for event optimization + jQuery.event.global[ type ] = true; + } + + }, + + // Detach an event or set of events from an element + remove: function( elem, types, handler, selector, mappedTypes ) { + + var j, origCount, tmp, + events, t, handleObj, + special, handlers, type, namespaces, origType, + elemData = dataPriv.hasData( elem ) && dataPriv.get( elem ); + + if ( !elemData || !( events = elemData.events ) ) { + return; + } + + // Once for each type.namespace in types; type may be omitted + types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[ t ] ) || []; + type = origType = tmp[ 1 ]; + namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); + + // Unbind all events (on this namespace, if provided) for the element + if ( !type ) { + for ( type in events ) { + jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); + } + continue; + } + + special = jQuery.event.special[ type ] || {}; + type = ( selector ? special.delegateType : special.bindType ) || type; + handlers = events[ type ] || []; + tmp = tmp[ 2 ] && + new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ); + + // Remove matching events + origCount = j = handlers.length; + while ( j-- ) { + handleObj = handlers[ j ]; + + if ( ( mappedTypes || origType === handleObj.origType ) && + ( !handler || handler.guid === handleObj.guid ) && + ( !tmp || tmp.test( handleObj.namespace ) ) && + ( !selector || selector === handleObj.selector || + selector === "**" && handleObj.selector ) ) { + handlers.splice( j, 1 ); + + if ( handleObj.selector ) { + handlers.delegateCount--; + } + if ( special.remove ) { + special.remove.call( elem, handleObj ); + } + } + } + + // Remove generic event handler if we removed something and no more handlers exist + // (avoids potential for endless recursion during removal of special event handlers) + if ( origCount && !handlers.length ) { + if ( !special.teardown || + special.teardown.call( elem, namespaces, elemData.handle ) === false ) { + + jQuery.removeEvent( elem, type, elemData.handle ); + } + + delete events[ type ]; + } + } + + // Remove data and the expando if it's no longer used + if ( jQuery.isEmptyObject( events ) ) { + dataPriv.remove( elem, "handle events" ); + } + }, + + dispatch: function( nativeEvent ) { + + // Make a writable jQuery.Event from the native event object + var event = jQuery.event.fix( nativeEvent ); + + var i, j, ret, matched, handleObj, handlerQueue, + args = new Array( arguments.length ), + handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [], + special = jQuery.event.special[ event.type ] || {}; + + // Use the fix-ed jQuery.Event rather than the (read-only) native event + args[ 0 ] = event; + + for ( i = 1; i < arguments.length; i++ ) { + args[ i ] = arguments[ i ]; + } + + event.delegateTarget = this; + + // Call the preDispatch hook for the mapped type, and let it bail if desired + if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { + return; + } + + // Determine handlers + handlerQueue = jQuery.event.handlers.call( this, event, handlers ); + + // Run delegates first; they may want to stop propagation beneath us + i = 0; + while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) { + event.currentTarget = matched.elem; + + j = 0; + while ( ( handleObj = matched.handlers[ j++ ] ) && + !event.isImmediatePropagationStopped() ) { + + // Triggered event must either 1) have no namespace, or 2) have namespace(s) + // a subset or equal to those in the bound event (both can have no namespace). + if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) { + + event.handleObj = handleObj; + event.data = handleObj.data; + + ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle || + handleObj.handler ).apply( matched.elem, args ); + + if ( ret !== undefined ) { + if ( ( event.result = ret ) === false ) { + event.preventDefault(); + event.stopPropagation(); + } + } + } + } + } + + // Call the postDispatch hook for the mapped type + if ( special.postDispatch ) { + special.postDispatch.call( this, event ); + } + + return event.result; + }, + + handlers: function( event, handlers ) { + var i, handleObj, sel, matchedHandlers, matchedSelectors, + handlerQueue = [], + delegateCount = handlers.delegateCount, + cur = event.target; + + // Find delegate handlers + if ( delegateCount && + + // Support: IE <=9 + // Black-hole SVG instance trees (trac-13180) + cur.nodeType && + + // Support: Firefox <=42 + // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861) + // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click + // Support: IE 11 only + // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343) + !( event.type === "click" && event.button >= 1 ) ) { + + for ( ; cur !== this; cur = cur.parentNode || this ) { + + // Don't check non-elements (#13208) + // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) + if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) { + matchedHandlers = []; + matchedSelectors = {}; + for ( i = 0; i < delegateCount; i++ ) { + handleObj = handlers[ i ]; + + // Don't conflict with Object.prototype properties (#13203) + sel = handleObj.selector + " "; + + if ( matchedSelectors[ sel ] === undefined ) { + matchedSelectors[ sel ] = handleObj.needsContext ? + jQuery( sel, this ).index( cur ) > -1 : + jQuery.find( sel, this, null, [ cur ] ).length; + } + if ( matchedSelectors[ sel ] ) { + matchedHandlers.push( handleObj ); + } + } + if ( matchedHandlers.length ) { + handlerQueue.push( { elem: cur, handlers: matchedHandlers } ); + } + } + } + } + + // Add the remaining (directly-bound) handlers + cur = this; + if ( delegateCount < handlers.length ) { + handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } ); + } + + return handlerQueue; + }, + + addProp: function( name, hook ) { + Object.defineProperty( jQuery.Event.prototype, name, { + enumerable: true, + configurable: true, + + get: isFunction( hook ) ? + function() { + if ( this.originalEvent ) { + return hook( this.originalEvent ); + } + } : + function() { + if ( this.originalEvent ) { + return this.originalEvent[ name ]; + } + }, + + set: function( value ) { + Object.defineProperty( this, name, { + enumerable: true, + configurable: true, + writable: true, + value: value + } ); + } + } ); + }, + + fix: function( originalEvent ) { + return originalEvent[ jQuery.expando ] ? + originalEvent : + new jQuery.Event( originalEvent ); + }, + + special: { + load: { + + // Prevent triggered image.load events from bubbling to window.load + noBubble: true + }, + focus: { + + // Fire native event if possible so blur/focus sequence is correct + trigger: function() { + if ( this !== safeActiveElement() && this.focus ) { + this.focus(); + return false; + } + }, + delegateType: "focusin" + }, + blur: { + trigger: function() { + if ( this === safeActiveElement() && this.blur ) { + this.blur(); + return false; + } + }, + delegateType: "focusout" + }, + click: { + + // For checkbox, fire native event so checked state will be right + trigger: function() { + if ( this.type === "checkbox" && this.click && nodeName( this, "input" ) ) { + this.click(); + return false; + } + }, + + // For cross-browser consistency, don't fire native .click() on links + _default: function( event ) { + return nodeName( event.target, "a" ); + } + }, + + beforeunload: { + postDispatch: function( event ) { + + // Support: Firefox 20+ + // Firefox doesn't alert if the returnValue field is not set. + if ( event.result !== undefined && event.originalEvent ) { + event.originalEvent.returnValue = event.result; + } + } + } + } +}; + +jQuery.removeEvent = function( elem, type, handle ) { + + // This "if" is needed for plain objects + if ( elem.removeEventListener ) { + elem.removeEventListener( type, handle ); + } +}; + +jQuery.Event = function( src, props ) { + + // Allow instantiation without the 'new' keyword + if ( !( this instanceof jQuery.Event ) ) { + return new jQuery.Event( src, props ); + } + + // Event object + if ( src && src.type ) { + this.originalEvent = src; + this.type = src.type; + + // Events bubbling up the document may have been marked as prevented + // by a handler lower down the tree; reflect the correct value. + this.isDefaultPrevented = src.defaultPrevented || + src.defaultPrevented === undefined && + + // Support: Android <=2.3 only + src.returnValue === false ? + returnTrue : + returnFalse; + + // Create target properties + // Support: Safari <=6 - 7 only + // Target should not be a text node (#504, #13143) + this.target = ( src.target && src.target.nodeType === 3 ) ? + src.target.parentNode : + src.target; + + this.currentTarget = src.currentTarget; + this.relatedTarget = src.relatedTarget; + + // Event type + } else { + this.type = src; + } + + // Put explicitly provided properties onto the event object + if ( props ) { + jQuery.extend( this, props ); + } + + // Create a timestamp if incoming event doesn't have one + this.timeStamp = src && src.timeStamp || Date.now(); + + // Mark it as fixed + this[ jQuery.expando ] = true; +}; + +// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding +// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html +jQuery.Event.prototype = { + constructor: jQuery.Event, + isDefaultPrevented: returnFalse, + isPropagationStopped: returnFalse, + isImmediatePropagationStopped: returnFalse, + isSimulated: false, + + preventDefault: function() { + var e = this.originalEvent; + + this.isDefaultPrevented = returnTrue; + + if ( e && !this.isSimulated ) { + e.preventDefault(); + } + }, + stopPropagation: function() { + var e = this.originalEvent; + + this.isPropagationStopped = returnTrue; + + if ( e && !this.isSimulated ) { + e.stopPropagation(); + } + }, + stopImmediatePropagation: function() { + var e = this.originalEvent; + + this.isImmediatePropagationStopped = returnTrue; + + if ( e && !this.isSimulated ) { + e.stopImmediatePropagation(); + } + + this.stopPropagation(); + } +}; + +// Includes all common event props including KeyEvent and MouseEvent specific props +jQuery.each( { + altKey: true, + bubbles: true, + cancelable: true, + changedTouches: true, + ctrlKey: true, + detail: true, + eventPhase: true, + metaKey: true, + pageX: true, + pageY: true, + shiftKey: true, + view: true, + "char": true, + charCode: true, + key: true, + keyCode: true, + button: true, + buttons: true, + clientX: true, + clientY: true, + offsetX: true, + offsetY: true, + pointerId: true, + pointerType: true, + screenX: true, + screenY: true, + targetTouches: true, + toElement: true, + touches: true, + + which: function( event ) { + var button = event.button; + + // Add which for key events + if ( event.which == null && rkeyEvent.test( event.type ) ) { + return event.charCode != null ? event.charCode : event.keyCode; + } + + // Add which for click: 1 === left; 2 === middle; 3 === right + if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) { + if ( button & 1 ) { + return 1; + } + + if ( button & 2 ) { + return 3; + } + + if ( button & 4 ) { + return 2; + } + + return 0; + } + + return event.which; + } +}, jQuery.event.addProp ); + +// Create mouseenter/leave events using mouseover/out and event-time checks +// so that event delegation works in jQuery. +// Do the same for pointerenter/pointerleave and pointerover/pointerout +// +// Support: Safari 7 only +// Safari sends mouseenter too often; see: +// https://bugs.chromium.org/p/chromium/issues/detail?id=470258 +// for the description of the bug (it existed in older Chrome versions as well). +jQuery.each( { + mouseenter: "mouseover", + mouseleave: "mouseout", + pointerenter: "pointerover", + pointerleave: "pointerout" +}, function( orig, fix ) { + jQuery.event.special[ orig ] = { + delegateType: fix, + bindType: fix, + + handle: function( event ) { + var ret, + target = this, + related = event.relatedTarget, + handleObj = event.handleObj; + + // For mouseenter/leave call the handler if related is outside the target. + // NB: No relatedTarget if the mouse left/entered the browser window + if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) { + event.type = handleObj.origType; + ret = handleObj.handler.apply( this, arguments ); + event.type = fix; + } + return ret; + } + }; +} ); + +jQuery.fn.extend( { + + on: function( types, selector, data, fn ) { + return on( this, types, selector, data, fn ); + }, + one: function( types, selector, data, fn ) { + return on( this, types, selector, data, fn, 1 ); + }, + off: function( types, selector, fn ) { + var handleObj, type; + if ( types && types.preventDefault && types.handleObj ) { + + // ( event ) dispatched jQuery.Event + handleObj = types.handleObj; + jQuery( types.delegateTarget ).off( + handleObj.namespace ? + handleObj.origType + "." + handleObj.namespace : + handleObj.origType, + handleObj.selector, + handleObj.handler + ); + return this; + } + if ( typeof types === "object" ) { + + // ( types-object [, selector] ) + for ( type in types ) { + this.off( type, selector, types[ type ] ); + } + return this; + } + if ( selector === false || typeof selector === "function" ) { + + // ( types [, fn] ) + fn = selector; + selector = undefined; + } + if ( fn === false ) { + fn = returnFalse; + } + return this.each( function() { + jQuery.event.remove( this, types, fn, selector ); + } ); + } +} ); + + +var + + /* eslint-disable max-len */ + + // See https://github.com/eslint/eslint/issues/3229 + rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, + + /* eslint-enable */ + + // Support: IE <=10 - 11, Edge 12 - 13 only + // In IE/Edge using regex groups here causes severe slowdowns. + // See https://connect.microsoft.com/IE/feedback/details/1736512/ + rnoInnerhtml = /\s*$/g; + +// Prefer a tbody over its parent table for containing new rows +function manipulationTarget( elem, content ) { + if ( nodeName( elem, "table" ) && + nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { + + return jQuery( elem ).children( "tbody" )[ 0 ] || elem; + } + + return elem; +} + +// Replace/restore the type attribute of script elements for safe DOM manipulation +function disableScript( elem ) { + elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; + return elem; +} +function restoreScript( elem ) { + if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) { + elem.type = elem.type.slice( 5 ); + } else { + elem.removeAttribute( "type" ); + } + + return elem; +} + +function cloneCopyEvent( src, dest ) { + var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events; + + if ( dest.nodeType !== 1 ) { + return; + } + + // 1. Copy private data: events, handlers, etc. + if ( dataPriv.hasData( src ) ) { + pdataOld = dataPriv.access( src ); + pdataCur = dataPriv.set( dest, pdataOld ); + events = pdataOld.events; + + if ( events ) { + delete pdataCur.handle; + pdataCur.events = {}; + + for ( type in events ) { + for ( i = 0, l = events[ type ].length; i < l; i++ ) { + jQuery.event.add( dest, type, events[ type ][ i ] ); + } + } + } + } + + // 2. Copy user data + if ( dataUser.hasData( src ) ) { + udataOld = dataUser.access( src ); + udataCur = jQuery.extend( {}, udataOld ); + + dataUser.set( dest, udataCur ); + } +} + +// Fix IE bugs, see support tests +function fixInput( src, dest ) { + var nodeName = dest.nodeName.toLowerCase(); + + // Fails to persist the checked state of a cloned checkbox or radio button. + if ( nodeName === "input" && rcheckableType.test( src.type ) ) { + dest.checked = src.checked; + + // Fails to return the selected option to the default selected state when cloning options + } else if ( nodeName === "input" || nodeName === "textarea" ) { + dest.defaultValue = src.defaultValue; + } +} + +function domManip( collection, args, callback, ignored ) { + + // Flatten any nested arrays + args = concat.apply( [], args ); + + var fragment, first, scripts, hasScripts, node, doc, + i = 0, + l = collection.length, + iNoClone = l - 1, + value = args[ 0 ], + valueIsFunction = isFunction( value ); + + // We can't cloneNode fragments that contain checked, in WebKit + if ( valueIsFunction || + ( l > 1 && typeof value === "string" && + !support.checkClone && rchecked.test( value ) ) ) { + return collection.each( function( index ) { + var self = collection.eq( index ); + if ( valueIsFunction ) { + args[ 0 ] = value.call( this, index, self.html() ); + } + domManip( self, args, callback, ignored ); + } ); + } + + if ( l ) { + fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored ); + first = fragment.firstChild; + + if ( fragment.childNodes.length === 1 ) { + fragment = first; + } + + // Require either new content or an interest in ignored elements to invoke the callback + if ( first || ignored ) { + scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); + hasScripts = scripts.length; + + // Use the original fragment for the last item + // instead of the first because it can end up + // being emptied incorrectly in certain situations (#8070). + for ( ; i < l; i++ ) { + node = fragment; + + if ( i !== iNoClone ) { + node = jQuery.clone( node, true, true ); + + // Keep references to cloned scripts for later restoration + if ( hasScripts ) { + + // Support: Android <=4.0 only, PhantomJS 1 only + // push.apply(_, arraylike) throws on ancient WebKit + jQuery.merge( scripts, getAll( node, "script" ) ); + } + } + + callback.call( collection[ i ], node, i ); + } + + if ( hasScripts ) { + doc = scripts[ scripts.length - 1 ].ownerDocument; + + // Reenable scripts + jQuery.map( scripts, restoreScript ); + + // Evaluate executable scripts on first document insertion + for ( i = 0; i < hasScripts; i++ ) { + node = scripts[ i ]; + if ( rscriptType.test( node.type || "" ) && + !dataPriv.access( node, "globalEval" ) && + jQuery.contains( doc, node ) ) { + + if ( node.src && ( node.type || "" ).toLowerCase() !== "module" ) { + + // Optional AJAX dependency, but won't run scripts if not present + if ( jQuery._evalUrl ) { + jQuery._evalUrl( node.src ); + } + } else { + DOMEval( node.textContent.replace( rcleanScript, "" ), doc, node ); + } + } + } + } + } + } + + return collection; +} + +function remove( elem, selector, keepData ) { + var node, + nodes = selector ? jQuery.filter( selector, elem ) : elem, + i = 0; + + for ( ; ( node = nodes[ i ] ) != null; i++ ) { + if ( !keepData && node.nodeType === 1 ) { + jQuery.cleanData( getAll( node ) ); + } + + if ( node.parentNode ) { + if ( keepData && jQuery.contains( node.ownerDocument, node ) ) { + setGlobalEval( getAll( node, "script" ) ); + } + node.parentNode.removeChild( node ); + } + } + + return elem; +} + +jQuery.extend( { + htmlPrefilter: function( html ) { + return html.replace( rxhtmlTag, "<$1>" ); + }, + + clone: function( elem, dataAndEvents, deepDataAndEvents ) { + var i, l, srcElements, destElements, + clone = elem.cloneNode( true ), + inPage = jQuery.contains( elem.ownerDocument, elem ); + + // Fix IE cloning issues + if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && + !jQuery.isXMLDoc( elem ) ) { + + // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2 + destElements = getAll( clone ); + srcElements = getAll( elem ); + + for ( i = 0, l = srcElements.length; i < l; i++ ) { + fixInput( srcElements[ i ], destElements[ i ] ); + } + } + + // Copy the events from the original to the clone + if ( dataAndEvents ) { + if ( deepDataAndEvents ) { + srcElements = srcElements || getAll( elem ); + destElements = destElements || getAll( clone ); + + for ( i = 0, l = srcElements.length; i < l; i++ ) { + cloneCopyEvent( srcElements[ i ], destElements[ i ] ); + } + } else { + cloneCopyEvent( elem, clone ); + } + } + + // Preserve script evaluation history + destElements = getAll( clone, "script" ); + if ( destElements.length > 0 ) { + setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); + } + + // Return the cloned set + return clone; + }, + + cleanData: function( elems ) { + var data, elem, type, + special = jQuery.event.special, + i = 0; + + for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) { + if ( acceptData( elem ) ) { + if ( ( data = elem[ dataPriv.expando ] ) ) { + if ( data.events ) { + for ( type in data.events ) { + if ( special[ type ] ) { + jQuery.event.remove( elem, type ); + + // This is a shortcut to avoid jQuery.event.remove's overhead + } else { + jQuery.removeEvent( elem, type, data.handle ); + } + } + } + + // Support: Chrome <=35 - 45+ + // Assign undefined instead of using delete, see Data#remove + elem[ dataPriv.expando ] = undefined; + } + if ( elem[ dataUser.expando ] ) { + + // Support: Chrome <=35 - 45+ + // Assign undefined instead of using delete, see Data#remove + elem[ dataUser.expando ] = undefined; + } + } + } + } +} ); + +jQuery.fn.extend( { + detach: function( selector ) { + return remove( this, selector, true ); + }, + + remove: function( selector ) { + return remove( this, selector ); + }, + + text: function( value ) { + return access( this, function( value ) { + return value === undefined ? + jQuery.text( this ) : + this.empty().each( function() { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + this.textContent = value; + } + } ); + }, null, value, arguments.length ); + }, + + append: function() { + return domManip( this, arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.appendChild( elem ); + } + } ); + }, + + prepend: function() { + return domManip( this, arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.insertBefore( elem, target.firstChild ); + } + } ); + }, + + before: function() { + return domManip( this, arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this ); + } + } ); + }, + + after: function() { + return domManip( this, arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this.nextSibling ); + } + } ); + }, + + empty: function() { + var elem, + i = 0; + + for ( ; ( elem = this[ i ] ) != null; i++ ) { + if ( elem.nodeType === 1 ) { + + // Prevent memory leaks + jQuery.cleanData( getAll( elem, false ) ); + + // Remove any remaining nodes + elem.textContent = ""; + } + } + + return this; + }, + + clone: function( dataAndEvents, deepDataAndEvents ) { + dataAndEvents = dataAndEvents == null ? false : dataAndEvents; + deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; + + return this.map( function() { + return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); + } ); + }, + + html: function( value ) { + return access( this, function( value ) { + var elem = this[ 0 ] || {}, + i = 0, + l = this.length; + + if ( value === undefined && elem.nodeType === 1 ) { + return elem.innerHTML; + } + + // See if we can take a shortcut and just use innerHTML + if ( typeof value === "string" && !rnoInnerhtml.test( value ) && + !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { + + value = jQuery.htmlPrefilter( value ); + + try { + for ( ; i < l; i++ ) { + elem = this[ i ] || {}; + + // Remove element nodes and prevent memory leaks + if ( elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem, false ) ); + elem.innerHTML = value; + } + } + + elem = 0; + + // If using innerHTML throws an exception, use the fallback method + } catch ( e ) {} + } + + if ( elem ) { + this.empty().append( value ); + } + }, null, value, arguments.length ); + }, + + replaceWith: function() { + var ignored = []; + + // Make the changes, replacing each non-ignored context element with the new content + return domManip( this, arguments, function( elem ) { + var parent = this.parentNode; + + if ( jQuery.inArray( this, ignored ) < 0 ) { + jQuery.cleanData( getAll( this ) ); + if ( parent ) { + parent.replaceChild( elem, this ); + } + } + + // Force callback invocation + }, ignored ); + } +} ); + +jQuery.each( { + appendTo: "append", + prependTo: "prepend", + insertBefore: "before", + insertAfter: "after", + replaceAll: "replaceWith" +}, function( name, original ) { + jQuery.fn[ name ] = function( selector ) { + var elems, + ret = [], + insert = jQuery( selector ), + last = insert.length - 1, + i = 0; + + for ( ; i <= last; i++ ) { + elems = i === last ? this : this.clone( true ); + jQuery( insert[ i ] )[ original ]( elems ); + + // Support: Android <=4.0 only, PhantomJS 1 only + // .get() because push.apply(_, arraylike) throws on ancient WebKit + push.apply( ret, elems.get() ); + } + + return this.pushStack( ret ); + }; +} ); +var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); + +var getStyles = function( elem ) { + + // Support: IE <=11 only, Firefox <=30 (#15098, #14150) + // IE throws on elements created in popups + // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" + var view = elem.ownerDocument.defaultView; + + if ( !view || !view.opener ) { + view = window; + } + + return view.getComputedStyle( elem ); + }; + +var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" ); + + + +( function() { + + // Executing both pixelPosition & boxSizingReliable tests require only one layout + // so they're executed at the same time to save the second computation. + function computeStyleTests() { + + // This is a singleton, we need to execute it only once + if ( !div ) { + return; + } + + container.style.cssText = "position:absolute;left:-11111px;width:60px;" + + "margin-top:1px;padding:0;border:0"; + div.style.cssText = + "position:relative;display:block;box-sizing:border-box;overflow:scroll;" + + "margin:auto;border:1px;padding:1px;" + + "width:60%;top:1%"; + documentElement.appendChild( container ).appendChild( div ); + + var divStyle = window.getComputedStyle( div ); + pixelPositionVal = divStyle.top !== "1%"; + + // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44 + reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12; + + // Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3 + // Some styles come back with percentage values, even though they shouldn't + div.style.right = "60%"; + pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36; + + // Support: IE 9 - 11 only + // Detect misreporting of content dimensions for box-sizing:border-box elements + boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36; + + // Support: IE 9 only + // Detect overflow:scroll screwiness (gh-3699) + div.style.position = "absolute"; + scrollboxSizeVal = div.offsetWidth === 36 || "absolute"; + + documentElement.removeChild( container ); + + // Nullify the div so it wouldn't be stored in the memory and + // it will also be a sign that checks already performed + div = null; + } + + function roundPixelMeasures( measure ) { + return Math.round( parseFloat( measure ) ); + } + + var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal, + reliableMarginLeftVal, + container = document.createElement( "div" ), + div = document.createElement( "div" ); + + // Finish early in limited (non-browser) environments + if ( !div.style ) { + return; + } + + // Support: IE <=9 - 11 only + // Style of cloned element affects source element cloned (#8908) + div.style.backgroundClip = "content-box"; + div.cloneNode( true ).style.backgroundClip = ""; + support.clearCloneStyle = div.style.backgroundClip === "content-box"; + + jQuery.extend( support, { + boxSizingReliable: function() { + computeStyleTests(); + return boxSizingReliableVal; + }, + pixelBoxStyles: function() { + computeStyleTests(); + return pixelBoxStylesVal; + }, + pixelPosition: function() { + computeStyleTests(); + return pixelPositionVal; + }, + reliableMarginLeft: function() { + computeStyleTests(); + return reliableMarginLeftVal; + }, + scrollboxSize: function() { + computeStyleTests(); + return scrollboxSizeVal; + } + } ); +} )(); + + +function curCSS( elem, name, computed ) { + var width, minWidth, maxWidth, ret, + + // Support: Firefox 51+ + // Retrieving style before computed somehow + // fixes an issue with getting wrong values + // on detached elements + style = elem.style; + + computed = computed || getStyles( elem ); + + // getPropertyValue is needed for: + // .css('filter') (IE 9 only, #12537) + // .css('--customProperty) (#3144) + if ( computed ) { + ret = computed.getPropertyValue( name ) || computed[ name ]; + + if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { + ret = jQuery.style( elem, name ); + } + + // A tribute to the "awesome hack by Dean Edwards" + // Android Browser returns percentage for some values, + // but width seems to be reliably pixels. + // This is against the CSSOM draft spec: + // https://drafts.csswg.org/cssom/#resolved-values + if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) { + + // Remember the original values + width = style.width; + minWidth = style.minWidth; + maxWidth = style.maxWidth; + + // Put in the new values to get a computed value out + style.minWidth = style.maxWidth = style.width = ret; + ret = computed.width; + + // Revert the changed values + style.width = width; + style.minWidth = minWidth; + style.maxWidth = maxWidth; + } + } + + return ret !== undefined ? + + // Support: IE <=9 - 11 only + // IE returns zIndex value as an integer. + ret + "" : + ret; +} + + +function addGetHookIf( conditionFn, hookFn ) { + + // Define the hook, we'll check on the first run if it's really needed. + return { + get: function() { + if ( conditionFn() ) { + + // Hook not needed (or it's not possible to use it due + // to missing dependency), remove it. + delete this.get; + return; + } + + // Hook needed; redefine it so that the support test is not executed again. + return ( this.get = hookFn ).apply( this, arguments ); + } + }; +} + + +var + + // Swappable if display is none or starts with table + // except "table", "table-cell", or "table-caption" + // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display + rdisplayswap = /^(none|table(?!-c[ea]).+)/, + rcustomProp = /^--/, + cssShow = { position: "absolute", visibility: "hidden", display: "block" }, + cssNormalTransform = { + letterSpacing: "0", + fontWeight: "400" + }, + + cssPrefixes = [ "Webkit", "Moz", "ms" ], + emptyStyle = document.createElement( "div" ).style; + +// Return a css property mapped to a potentially vendor prefixed property +function vendorPropName( name ) { + + // Shortcut for names that are not vendor prefixed + if ( name in emptyStyle ) { + return name; + } + + // Check for vendor prefixed names + var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), + i = cssPrefixes.length; + + while ( i-- ) { + name = cssPrefixes[ i ] + capName; + if ( name in emptyStyle ) { + return name; + } + } +} + +// Return a property mapped along what jQuery.cssProps suggests or to +// a vendor prefixed property. +function finalPropName( name ) { + var ret = jQuery.cssProps[ name ]; + if ( !ret ) { + ret = jQuery.cssProps[ name ] = vendorPropName( name ) || name; + } + return ret; +} + +function setPositiveNumber( elem, value, subtract ) { + + // Any relative (+/-) values have already been + // normalized at this point + var matches = rcssNum.exec( value ); + return matches ? + + // Guard against undefined "subtract", e.g., when used as in cssHooks + Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) : + value; +} + +function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) { + var i = dimension === "width" ? 1 : 0, + extra = 0, + delta = 0; + + // Adjustment may not be necessary + if ( box === ( isBorderBox ? "border" : "content" ) ) { + return 0; + } + + for ( ; i < 4; i += 2 ) { + + // Both box models exclude margin + if ( box === "margin" ) { + delta += jQuery.css( elem, box + cssExpand[ i ], true, styles ); + } + + // If we get here with a content-box, we're seeking "padding" or "border" or "margin" + if ( !isBorderBox ) { + + // Add padding + delta += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); + + // For "border" or "margin", add border + if ( box !== "padding" ) { + delta += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); + + // But still keep track of it otherwise + } else { + extra += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); + } + + // If we get here with a border-box (content + padding + border), we're seeking "content" or + // "padding" or "margin" + } else { + + // For "content", subtract padding + if ( box === "content" ) { + delta -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); + } + + // For "content" or "padding", subtract border + if ( box !== "margin" ) { + delta -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); + } + } + } + + // Account for positive content-box scroll gutter when requested by providing computedVal + if ( !isBorderBox && computedVal >= 0 ) { + + // offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border + // Assuming integer scroll gutter, subtract the rest and round down + delta += Math.max( 0, Math.ceil( + elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - + computedVal - + delta - + extra - + 0.5 + ) ); + } + + return delta; +} + +function getWidthOrHeight( elem, dimension, extra ) { + + // Start with computed style + var styles = getStyles( elem ), + val = curCSS( elem, dimension, styles ), + isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box", + valueIsBorderBox = isBorderBox; + + // Support: Firefox <=54 + // Return a confounding non-pixel value or feign ignorance, as appropriate. + if ( rnumnonpx.test( val ) ) { + if ( !extra ) { + return val; + } + val = "auto"; + } + + // Check for style in case a browser which returns unreliable values + // for getComputedStyle silently falls back to the reliable elem.style + valueIsBorderBox = valueIsBorderBox && + ( support.boxSizingReliable() || val === elem.style[ dimension ] ); + + // Fall back to offsetWidth/offsetHeight when value is "auto" + // This happens for inline elements with no explicit setting (gh-3571) + // Support: Android <=4.1 - 4.3 only + // Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602) + if ( val === "auto" || + !parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) { + + val = elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ]; + + // offsetWidth/offsetHeight provide border-box values + valueIsBorderBox = true; + } + + // Normalize "" and auto + val = parseFloat( val ) || 0; + + // Adjust for the element's box model + return ( val + + boxModelAdjustment( + elem, + dimension, + extra || ( isBorderBox ? "border" : "content" ), + valueIsBorderBox, + styles, + + // Provide the current computed size to request scroll gutter calculation (gh-3589) + val + ) + ) + "px"; +} + +jQuery.extend( { + + // Add in style property hooks for overriding the default + // behavior of getting and setting a style property + cssHooks: { + opacity: { + get: function( elem, computed ) { + if ( computed ) { + + // We should always get a number back from opacity + var ret = curCSS( elem, "opacity" ); + return ret === "" ? "1" : ret; + } + } + } + }, + + // Don't automatically add "px" to these possibly-unitless properties + cssNumber: { + "animationIterationCount": true, + "columnCount": true, + "fillOpacity": true, + "flexGrow": true, + "flexShrink": true, + "fontWeight": true, + "lineHeight": true, + "opacity": true, + "order": true, + "orphans": true, + "widows": true, + "zIndex": true, + "zoom": true + }, + + // Add in properties whose names you wish to fix before + // setting or getting the value + cssProps: {}, + + // Get and set the style property on a DOM Node + style: function( elem, name, value, extra ) { + + // Don't set styles on text and comment nodes + if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { + return; + } + + // Make sure that we're working with the right name + var ret, type, hooks, + origName = camelCase( name ), + isCustomProp = rcustomProp.test( name ), + style = elem.style; + + // Make sure that we're working with the right name. We don't + // want to query the value if it is a CSS custom property + // since they are user-defined. + if ( !isCustomProp ) { + name = finalPropName( origName ); + } + + // Gets hook for the prefixed version, then unprefixed version + hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; + + // Check if we're setting a value + if ( value !== undefined ) { + type = typeof value; + + // Convert "+=" or "-=" to relative numbers (#7345) + if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) { + value = adjustCSS( elem, name, ret ); + + // Fixes bug #9237 + type = "number"; + } + + // Make sure that null and NaN values aren't set (#7116) + if ( value == null || value !== value ) { + return; + } + + // If a number was passed in, add the unit (except for certain CSS properties) + if ( type === "number" ) { + value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" ); + } + + // background-* props affect original clone's values + if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) { + style[ name ] = "inherit"; + } + + // If a hook was provided, use that value, otherwise just set the specified value + if ( !hooks || !( "set" in hooks ) || + ( value = hooks.set( elem, value, extra ) ) !== undefined ) { + + if ( isCustomProp ) { + style.setProperty( name, value ); + } else { + style[ name ] = value; + } + } + + } else { + + // If a hook was provided get the non-computed value from there + if ( hooks && "get" in hooks && + ( ret = hooks.get( elem, false, extra ) ) !== undefined ) { + + return ret; + } + + // Otherwise just get the value from the style object + return style[ name ]; + } + }, + + css: function( elem, name, extra, styles ) { + var val, num, hooks, + origName = camelCase( name ), + isCustomProp = rcustomProp.test( name ); + + // Make sure that we're working with the right name. We don't + // want to modify the value if it is a CSS custom property + // since they are user-defined. + if ( !isCustomProp ) { + name = finalPropName( origName ); + } + + // Try prefixed name followed by the unprefixed name + hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; + + // If a hook was provided get the computed value from there + if ( hooks && "get" in hooks ) { + val = hooks.get( elem, true, extra ); + } + + // Otherwise, if a way to get the computed value exists, use that + if ( val === undefined ) { + val = curCSS( elem, name, styles ); + } + + // Convert "normal" to computed value + if ( val === "normal" && name in cssNormalTransform ) { + val = cssNormalTransform[ name ]; + } + + // Make numeric if forced or a qualifier was provided and val looks numeric + if ( extra === "" || extra ) { + num = parseFloat( val ); + return extra === true || isFinite( num ) ? num || 0 : val; + } + + return val; + } +} ); + +jQuery.each( [ "height", "width" ], function( i, dimension ) { + jQuery.cssHooks[ dimension ] = { + get: function( elem, computed, extra ) { + if ( computed ) { + + // Certain elements can have dimension info if we invisibly show them + // but it must have a current display style that would benefit + return rdisplayswap.test( jQuery.css( elem, "display" ) ) && + + // Support: Safari 8+ + // Table columns in Safari have non-zero offsetWidth & zero + // getBoundingClientRect().width unless display is changed. + // Support: IE <=11 only + // Running getBoundingClientRect on a disconnected node + // in IE throws an error. + ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ? + swap( elem, cssShow, function() { + return getWidthOrHeight( elem, dimension, extra ); + } ) : + getWidthOrHeight( elem, dimension, extra ); + } + }, + + set: function( elem, value, extra ) { + var matches, + styles = getStyles( elem ), + isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box", + subtract = extra && boxModelAdjustment( + elem, + dimension, + extra, + isBorderBox, + styles + ); + + // Account for unreliable border-box dimensions by comparing offset* to computed and + // faking a content-box to get border and padding (gh-3699) + if ( isBorderBox && support.scrollboxSize() === styles.position ) { + subtract -= Math.ceil( + elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - + parseFloat( styles[ dimension ] ) - + boxModelAdjustment( elem, dimension, "border", false, styles ) - + 0.5 + ); + } + + // Convert to pixels if value adjustment is needed + if ( subtract && ( matches = rcssNum.exec( value ) ) && + ( matches[ 3 ] || "px" ) !== "px" ) { + + elem.style[ dimension ] = value; + value = jQuery.css( elem, dimension ); + } + + return setPositiveNumber( elem, value, subtract ); + } + }; +} ); + +jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft, + function( elem, computed ) { + if ( computed ) { + return ( parseFloat( curCSS( elem, "marginLeft" ) ) || + elem.getBoundingClientRect().left - + swap( elem, { marginLeft: 0 }, function() { + return elem.getBoundingClientRect().left; + } ) + ) + "px"; + } + } +); + +// These hooks are used by animate to expand properties +jQuery.each( { + margin: "", + padding: "", + border: "Width" +}, function( prefix, suffix ) { + jQuery.cssHooks[ prefix + suffix ] = { + expand: function( value ) { + var i = 0, + expanded = {}, + + // Assumes a single number if not a string + parts = typeof value === "string" ? value.split( " " ) : [ value ]; + + for ( ; i < 4; i++ ) { + expanded[ prefix + cssExpand[ i ] + suffix ] = + parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; + } + + return expanded; + } + }; + + if ( prefix !== "margin" ) { + jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; + } +} ); + +jQuery.fn.extend( { + css: function( name, value ) { + return access( this, function( elem, name, value ) { + var styles, len, + map = {}, + i = 0; + + if ( Array.isArray( name ) ) { + styles = getStyles( elem ); + len = name.length; + + for ( ; i < len; i++ ) { + map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); + } + + return map; + } + + return value !== undefined ? + jQuery.style( elem, name, value ) : + jQuery.css( elem, name ); + }, name, value, arguments.length > 1 ); + } +} ); + + +function Tween( elem, options, prop, end, easing ) { + return new Tween.prototype.init( elem, options, prop, end, easing ); +} +jQuery.Tween = Tween; + +Tween.prototype = { + constructor: Tween, + init: function( elem, options, prop, end, easing, unit ) { + this.elem = elem; + this.prop = prop; + this.easing = easing || jQuery.easing._default; + this.options = options; + this.start = this.now = this.cur(); + this.end = end; + this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); + }, + cur: function() { + var hooks = Tween.propHooks[ this.prop ]; + + return hooks && hooks.get ? + hooks.get( this ) : + Tween.propHooks._default.get( this ); + }, + run: function( percent ) { + var eased, + hooks = Tween.propHooks[ this.prop ]; + + if ( this.options.duration ) { + this.pos = eased = jQuery.easing[ this.easing ]( + percent, this.options.duration * percent, 0, 1, this.options.duration + ); + } else { + this.pos = eased = percent; + } + this.now = ( this.end - this.start ) * eased + this.start; + + if ( this.options.step ) { + this.options.step.call( this.elem, this.now, this ); + } + + if ( hooks && hooks.set ) { + hooks.set( this ); + } else { + Tween.propHooks._default.set( this ); + } + return this; + } +}; + +Tween.prototype.init.prototype = Tween.prototype; + +Tween.propHooks = { + _default: { + get: function( tween ) { + var result; + + // Use a property on the element directly when it is not a DOM element, + // or when there is no matching style property that exists. + if ( tween.elem.nodeType !== 1 || + tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) { + return tween.elem[ tween.prop ]; + } + + // Passing an empty string as a 3rd parameter to .css will automatically + // attempt a parseFloat and fallback to a string if the parse fails. + // Simple values such as "10px" are parsed to Float; + // complex values such as "rotate(1rad)" are returned as-is. + result = jQuery.css( tween.elem, tween.prop, "" ); + + // Empty strings, null, undefined and "auto" are converted to 0. + return !result || result === "auto" ? 0 : result; + }, + set: function( tween ) { + + // Use step hook for back compat. + // Use cssHook if its there. + // Use .style if available and use plain properties where available. + if ( jQuery.fx.step[ tween.prop ] ) { + jQuery.fx.step[ tween.prop ]( tween ); + } else if ( tween.elem.nodeType === 1 && + ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || + jQuery.cssHooks[ tween.prop ] ) ) { + jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); + } else { + tween.elem[ tween.prop ] = tween.now; + } + } + } +}; + +// Support: IE <=9 only +// Panic based approach to setting things on disconnected nodes +Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { + set: function( tween ) { + if ( tween.elem.nodeType && tween.elem.parentNode ) { + tween.elem[ tween.prop ] = tween.now; + } + } +}; + +jQuery.easing = { + linear: function( p ) { + return p; + }, + swing: function( p ) { + return 0.5 - Math.cos( p * Math.PI ) / 2; + }, + _default: "swing" +}; + +jQuery.fx = Tween.prototype.init; + +// Back compat <1.8 extension point +jQuery.fx.step = {}; + + + + +var + fxNow, inProgress, + rfxtypes = /^(?:toggle|show|hide)$/, + rrun = /queueHooks$/; + +function schedule() { + if ( inProgress ) { + if ( document.hidden === false && window.requestAnimationFrame ) { + window.requestAnimationFrame( schedule ); + } else { + window.setTimeout( schedule, jQuery.fx.interval ); + } + + jQuery.fx.tick(); + } +} + +// Animations created synchronously will run synchronously +function createFxNow() { + window.setTimeout( function() { + fxNow = undefined; + } ); + return ( fxNow = Date.now() ); +} + +// Generate parameters to create a standard animation +function genFx( type, includeWidth ) { + var which, + i = 0, + attrs = { height: type }; + + // If we include width, step value is 1 to do all cssExpand values, + // otherwise step value is 2 to skip over Left and Right + includeWidth = includeWidth ? 1 : 0; + for ( ; i < 4; i += 2 - includeWidth ) { + which = cssExpand[ i ]; + attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; + } + + if ( includeWidth ) { + attrs.opacity = attrs.width = type; + } + + return attrs; +} + +function createTween( value, prop, animation ) { + var tween, + collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ), + index = 0, + length = collection.length; + for ( ; index < length; index++ ) { + if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) { + + // We're done with this property + return tween; + } + } +} + +function defaultPrefilter( elem, props, opts ) { + var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, + isBox = "width" in props || "height" in props, + anim = this, + orig = {}, + style = elem.style, + hidden = elem.nodeType && isHiddenWithinTree( elem ), + dataShow = dataPriv.get( elem, "fxshow" ); + + // Queue-skipping animations hijack the fx hooks + if ( !opts.queue ) { + hooks = jQuery._queueHooks( elem, "fx" ); + if ( hooks.unqueued == null ) { + hooks.unqueued = 0; + oldfire = hooks.empty.fire; + hooks.empty.fire = function() { + if ( !hooks.unqueued ) { + oldfire(); + } + }; + } + hooks.unqueued++; + + anim.always( function() { + + // Ensure the complete handler is called before this completes + anim.always( function() { + hooks.unqueued--; + if ( !jQuery.queue( elem, "fx" ).length ) { + hooks.empty.fire(); + } + } ); + } ); + } + + // Detect show/hide animations + for ( prop in props ) { + value = props[ prop ]; + if ( rfxtypes.test( value ) ) { + delete props[ prop ]; + toggle = toggle || value === "toggle"; + if ( value === ( hidden ? "hide" : "show" ) ) { + + // Pretend to be hidden if this is a "show" and + // there is still data from a stopped show/hide + if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) { + hidden = true; + + // Ignore all other no-op show/hide data + } else { + continue; + } + } + orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); + } + } + + // Bail out if this is a no-op like .hide().hide() + propTween = !jQuery.isEmptyObject( props ); + if ( !propTween && jQuery.isEmptyObject( orig ) ) { + return; + } + + // Restrict "overflow" and "display" styles during box animations + if ( isBox && elem.nodeType === 1 ) { + + // Support: IE <=9 - 11, Edge 12 - 15 + // Record all 3 overflow attributes because IE does not infer the shorthand + // from identically-valued overflowX and overflowY and Edge just mirrors + // the overflowX value there. + opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; + + // Identify a display type, preferring old show/hide data over the CSS cascade + restoreDisplay = dataShow && dataShow.display; + if ( restoreDisplay == null ) { + restoreDisplay = dataPriv.get( elem, "display" ); + } + display = jQuery.css( elem, "display" ); + if ( display === "none" ) { + if ( restoreDisplay ) { + display = restoreDisplay; + } else { + + // Get nonempty value(s) by temporarily forcing visibility + showHide( [ elem ], true ); + restoreDisplay = elem.style.display || restoreDisplay; + display = jQuery.css( elem, "display" ); + showHide( [ elem ] ); + } + } + + // Animate inline elements as inline-block + if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) { + if ( jQuery.css( elem, "float" ) === "none" ) { + + // Restore the original display value at the end of pure show/hide animations + if ( !propTween ) { + anim.done( function() { + style.display = restoreDisplay; + } ); + if ( restoreDisplay == null ) { + display = style.display; + restoreDisplay = display === "none" ? "" : display; + } + } + style.display = "inline-block"; + } + } + } + + if ( opts.overflow ) { + style.overflow = "hidden"; + anim.always( function() { + style.overflow = opts.overflow[ 0 ]; + style.overflowX = opts.overflow[ 1 ]; + style.overflowY = opts.overflow[ 2 ]; + } ); + } + + // Implement show/hide animations + propTween = false; + for ( prop in orig ) { + + // General show/hide setup for this element animation + if ( !propTween ) { + if ( dataShow ) { + if ( "hidden" in dataShow ) { + hidden = dataShow.hidden; + } + } else { + dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } ); + } + + // Store hidden/visible for toggle so `.stop().toggle()` "reverses" + if ( toggle ) { + dataShow.hidden = !hidden; + } + + // Show elements before animating them + if ( hidden ) { + showHide( [ elem ], true ); + } + + /* eslint-disable no-loop-func */ + + anim.done( function() { + + /* eslint-enable no-loop-func */ + + // The final step of a "hide" animation is actually hiding the element + if ( !hidden ) { + showHide( [ elem ] ); + } + dataPriv.remove( elem, "fxshow" ); + for ( prop in orig ) { + jQuery.style( elem, prop, orig[ prop ] ); + } + } ); + } + + // Per-property setup + propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); + if ( !( prop in dataShow ) ) { + dataShow[ prop ] = propTween.start; + if ( hidden ) { + propTween.end = propTween.start; + propTween.start = 0; + } + } + } +} + +function propFilter( props, specialEasing ) { + var index, name, easing, value, hooks; + + // camelCase, specialEasing and expand cssHook pass + for ( index in props ) { + name = camelCase( index ); + easing = specialEasing[ name ]; + value = props[ index ]; + if ( Array.isArray( value ) ) { + easing = value[ 1 ]; + value = props[ index ] = value[ 0 ]; + } + + if ( index !== name ) { + props[ name ] = value; + delete props[ index ]; + } + + hooks = jQuery.cssHooks[ name ]; + if ( hooks && "expand" in hooks ) { + value = hooks.expand( value ); + delete props[ name ]; + + // Not quite $.extend, this won't overwrite existing keys. + // Reusing 'index' because we have the correct "name" + for ( index in value ) { + if ( !( index in props ) ) { + props[ index ] = value[ index ]; + specialEasing[ index ] = easing; + } + } + } else { + specialEasing[ name ] = easing; + } + } +} + +function Animation( elem, properties, options ) { + var result, + stopped, + index = 0, + length = Animation.prefilters.length, + deferred = jQuery.Deferred().always( function() { + + // Don't match elem in the :animated selector + delete tick.elem; + } ), + tick = function() { + if ( stopped ) { + return false; + } + var currentTime = fxNow || createFxNow(), + remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), + + // Support: Android 2.3 only + // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497) + temp = remaining / animation.duration || 0, + percent = 1 - temp, + index = 0, + length = animation.tweens.length; + + for ( ; index < length; index++ ) { + animation.tweens[ index ].run( percent ); + } + + deferred.notifyWith( elem, [ animation, percent, remaining ] ); + + // If there's more to do, yield + if ( percent < 1 && length ) { + return remaining; + } + + // If this was an empty animation, synthesize a final progress notification + if ( !length ) { + deferred.notifyWith( elem, [ animation, 1, 0 ] ); + } + + // Resolve the animation and report its conclusion + deferred.resolveWith( elem, [ animation ] ); + return false; + }, + animation = deferred.promise( { + elem: elem, + props: jQuery.extend( {}, properties ), + opts: jQuery.extend( true, { + specialEasing: {}, + easing: jQuery.easing._default + }, options ), + originalProperties: properties, + originalOptions: options, + startTime: fxNow || createFxNow(), + duration: options.duration, + tweens: [], + createTween: function( prop, end ) { + var tween = jQuery.Tween( elem, animation.opts, prop, end, + animation.opts.specialEasing[ prop ] || animation.opts.easing ); + animation.tweens.push( tween ); + return tween; + }, + stop: function( gotoEnd ) { + var index = 0, + + // If we are going to the end, we want to run all the tweens + // otherwise we skip this part + length = gotoEnd ? animation.tweens.length : 0; + if ( stopped ) { + return this; + } + stopped = true; + for ( ; index < length; index++ ) { + animation.tweens[ index ].run( 1 ); + } + + // Resolve when we played the last frame; otherwise, reject + if ( gotoEnd ) { + deferred.notifyWith( elem, [ animation, 1, 0 ] ); + deferred.resolveWith( elem, [ animation, gotoEnd ] ); + } else { + deferred.rejectWith( elem, [ animation, gotoEnd ] ); + } + return this; + } + } ), + props = animation.props; + + propFilter( props, animation.opts.specialEasing ); + + for ( ; index < length; index++ ) { + result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts ); + if ( result ) { + if ( isFunction( result.stop ) ) { + jQuery._queueHooks( animation.elem, animation.opts.queue ).stop = + result.stop.bind( result ); + } + return result; + } + } + + jQuery.map( props, createTween, animation ); + + if ( isFunction( animation.opts.start ) ) { + animation.opts.start.call( elem, animation ); + } + + // Attach callbacks from options + animation + .progress( animation.opts.progress ) + .done( animation.opts.done, animation.opts.complete ) + .fail( animation.opts.fail ) + .always( animation.opts.always ); + + jQuery.fx.timer( + jQuery.extend( tick, { + elem: elem, + anim: animation, + queue: animation.opts.queue + } ) + ); + + return animation; +} + +jQuery.Animation = jQuery.extend( Animation, { + + tweeners: { + "*": [ function( prop, value ) { + var tween = this.createTween( prop, value ); + adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween ); + return tween; + } ] + }, + + tweener: function( props, callback ) { + if ( isFunction( props ) ) { + callback = props; + props = [ "*" ]; + } else { + props = props.match( rnothtmlwhite ); + } + + var prop, + index = 0, + length = props.length; + + for ( ; index < length; index++ ) { + prop = props[ index ]; + Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || []; + Animation.tweeners[ prop ].unshift( callback ); + } + }, + + prefilters: [ defaultPrefilter ], + + prefilter: function( callback, prepend ) { + if ( prepend ) { + Animation.prefilters.unshift( callback ); + } else { + Animation.prefilters.push( callback ); + } + } +} ); + +jQuery.speed = function( speed, easing, fn ) { + var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { + complete: fn || !fn && easing || + isFunction( speed ) && speed, + duration: speed, + easing: fn && easing || easing && !isFunction( easing ) && easing + }; + + // Go to the end state if fx are off + if ( jQuery.fx.off ) { + opt.duration = 0; + + } else { + if ( typeof opt.duration !== "number" ) { + if ( opt.duration in jQuery.fx.speeds ) { + opt.duration = jQuery.fx.speeds[ opt.duration ]; + + } else { + opt.duration = jQuery.fx.speeds._default; + } + } + } + + // Normalize opt.queue - true/undefined/null -> "fx" + if ( opt.queue == null || opt.queue === true ) { + opt.queue = "fx"; + } + + // Queueing + opt.old = opt.complete; + + opt.complete = function() { + if ( isFunction( opt.old ) ) { + opt.old.call( this ); + } + + if ( opt.queue ) { + jQuery.dequeue( this, opt.queue ); + } + }; + + return opt; +}; + +jQuery.fn.extend( { + fadeTo: function( speed, to, easing, callback ) { + + // Show any hidden elements after setting opacity to 0 + return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show() + + // Animate to the value specified + .end().animate( { opacity: to }, speed, easing, callback ); + }, + animate: function( prop, speed, easing, callback ) { + var empty = jQuery.isEmptyObject( prop ), + optall = jQuery.speed( speed, easing, callback ), + doAnimation = function() { + + // Operate on a copy of prop so per-property easing won't be lost + var anim = Animation( this, jQuery.extend( {}, prop ), optall ); + + // Empty animations, or finishing resolves immediately + if ( empty || dataPriv.get( this, "finish" ) ) { + anim.stop( true ); + } + }; + doAnimation.finish = doAnimation; + + return empty || optall.queue === false ? + this.each( doAnimation ) : + this.queue( optall.queue, doAnimation ); + }, + stop: function( type, clearQueue, gotoEnd ) { + var stopQueue = function( hooks ) { + var stop = hooks.stop; + delete hooks.stop; + stop( gotoEnd ); + }; + + if ( typeof type !== "string" ) { + gotoEnd = clearQueue; + clearQueue = type; + type = undefined; + } + if ( clearQueue && type !== false ) { + this.queue( type || "fx", [] ); + } + + return this.each( function() { + var dequeue = true, + index = type != null && type + "queueHooks", + timers = jQuery.timers, + data = dataPriv.get( this ); + + if ( index ) { + if ( data[ index ] && data[ index ].stop ) { + stopQueue( data[ index ] ); + } + } else { + for ( index in data ) { + if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { + stopQueue( data[ index ] ); + } + } + } + + for ( index = timers.length; index--; ) { + if ( timers[ index ].elem === this && + ( type == null || timers[ index ].queue === type ) ) { + + timers[ index ].anim.stop( gotoEnd ); + dequeue = false; + timers.splice( index, 1 ); + } + } + + // Start the next in the queue if the last step wasn't forced. + // Timers currently will call their complete callbacks, which + // will dequeue but only if they were gotoEnd. + if ( dequeue || !gotoEnd ) { + jQuery.dequeue( this, type ); + } + } ); + }, + finish: function( type ) { + if ( type !== false ) { + type = type || "fx"; + } + return this.each( function() { + var index, + data = dataPriv.get( this ), + queue = data[ type + "queue" ], + hooks = data[ type + "queueHooks" ], + timers = jQuery.timers, + length = queue ? queue.length : 0; + + // Enable finishing flag on private data + data.finish = true; + + // Empty the queue first + jQuery.queue( this, type, [] ); + + if ( hooks && hooks.stop ) { + hooks.stop.call( this, true ); + } + + // Look for any active animations, and finish them + for ( index = timers.length; index--; ) { + if ( timers[ index ].elem === this && timers[ index ].queue === type ) { + timers[ index ].anim.stop( true ); + timers.splice( index, 1 ); + } + } + + // Look for any animations in the old queue and finish them + for ( index = 0; index < length; index++ ) { + if ( queue[ index ] && queue[ index ].finish ) { + queue[ index ].finish.call( this ); + } + } + + // Turn off finishing flag + delete data.finish; + } ); + } +} ); + +jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) { + var cssFn = jQuery.fn[ name ]; + jQuery.fn[ name ] = function( speed, easing, callback ) { + return speed == null || typeof speed === "boolean" ? + cssFn.apply( this, arguments ) : + this.animate( genFx( name, true ), speed, easing, callback ); + }; +} ); + +// Generate shortcuts for custom animations +jQuery.each( { + slideDown: genFx( "show" ), + slideUp: genFx( "hide" ), + slideToggle: genFx( "toggle" ), + fadeIn: { opacity: "show" }, + fadeOut: { opacity: "hide" }, + fadeToggle: { opacity: "toggle" } +}, function( name, props ) { + jQuery.fn[ name ] = function( speed, easing, callback ) { + return this.animate( props, speed, easing, callback ); + }; +} ); + +jQuery.timers = []; +jQuery.fx.tick = function() { + var timer, + i = 0, + timers = jQuery.timers; + + fxNow = Date.now(); + + for ( ; i < timers.length; i++ ) { + timer = timers[ i ]; + + // Run the timer and safely remove it when done (allowing for external removal) + if ( !timer() && timers[ i ] === timer ) { + timers.splice( i--, 1 ); + } + } + + if ( !timers.length ) { + jQuery.fx.stop(); + } + fxNow = undefined; +}; + +jQuery.fx.timer = function( timer ) { + jQuery.timers.push( timer ); + jQuery.fx.start(); +}; + +jQuery.fx.interval = 13; +jQuery.fx.start = function() { + if ( inProgress ) { + return; + } + + inProgress = true; + schedule(); +}; + +jQuery.fx.stop = function() { + inProgress = null; +}; + +jQuery.fx.speeds = { + slow: 600, + fast: 200, + + // Default speed + _default: 400 +}; + + +// Based off of the plugin by Clint Helfers, with permission. +// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/ +jQuery.fn.delay = function( time, type ) { + time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; + type = type || "fx"; + + return this.queue( type, function( next, hooks ) { + var timeout = window.setTimeout( next, time ); + hooks.stop = function() { + window.clearTimeout( timeout ); + }; + } ); +}; + + +( function() { + var input = document.createElement( "input" ), + select = document.createElement( "select" ), + opt = select.appendChild( document.createElement( "option" ) ); + + input.type = "checkbox"; + + // Support: Android <=4.3 only + // Default value for a checkbox should be "on" + support.checkOn = input.value !== ""; + + // Support: IE <=11 only + // Must access selectedIndex to make default options select + support.optSelected = opt.selected; + + // Support: IE <=11 only + // An input loses its value after becoming a radio + input = document.createElement( "input" ); + input.value = "t"; + input.type = "radio"; + support.radioValue = input.value === "t"; +} )(); + + +var boolHook, + attrHandle = jQuery.expr.attrHandle; + +jQuery.fn.extend( { + attr: function( name, value ) { + return access( this, jQuery.attr, name, value, arguments.length > 1 ); + }, + + removeAttr: function( name ) { + return this.each( function() { + jQuery.removeAttr( this, name ); + } ); + } +} ); + +jQuery.extend( { + attr: function( elem, name, value ) { + var ret, hooks, + nType = elem.nodeType; + + // Don't get/set attributes on text, comment and attribute nodes + if ( nType === 3 || nType === 8 || nType === 2 ) { + return; + } + + // Fallback to prop when attributes are not supported + if ( typeof elem.getAttribute === "undefined" ) { + return jQuery.prop( elem, name, value ); + } + + // Attribute hooks are determined by the lowercase version + // Grab necessary hook if one is defined + if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { + hooks = jQuery.attrHooks[ name.toLowerCase() ] || + ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined ); + } + + if ( value !== undefined ) { + if ( value === null ) { + jQuery.removeAttr( elem, name ); + return; + } + + if ( hooks && "set" in hooks && + ( ret = hooks.set( elem, value, name ) ) !== undefined ) { + return ret; + } + + elem.setAttribute( name, value + "" ); + return value; + } + + if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { + return ret; + } + + ret = jQuery.find.attr( elem, name ); + + // Non-existent attributes return null, we normalize to undefined + return ret == null ? undefined : ret; + }, + + attrHooks: { + type: { + set: function( elem, value ) { + if ( !support.radioValue && value === "radio" && + nodeName( elem, "input" ) ) { + var val = elem.value; + elem.setAttribute( "type", value ); + if ( val ) { + elem.value = val; + } + return value; + } + } + } + }, + + removeAttr: function( elem, value ) { + var name, + i = 0, + + // Attribute names can contain non-HTML whitespace characters + // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 + attrNames = value && value.match( rnothtmlwhite ); + + if ( attrNames && elem.nodeType === 1 ) { + while ( ( name = attrNames[ i++ ] ) ) { + elem.removeAttribute( name ); + } + } + } +} ); + +// Hooks for boolean attributes +boolHook = { + set: function( elem, value, name ) { + if ( value === false ) { + + // Remove boolean attributes when set to false + jQuery.removeAttr( elem, name ); + } else { + elem.setAttribute( name, name ); + } + return name; + } +}; + +jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { + var getter = attrHandle[ name ] || jQuery.find.attr; + + attrHandle[ name ] = function( elem, name, isXML ) { + var ret, handle, + lowercaseName = name.toLowerCase(); + + if ( !isXML ) { + + // Avoid an infinite loop by temporarily removing this function from the getter + handle = attrHandle[ lowercaseName ]; + attrHandle[ lowercaseName ] = ret; + ret = getter( elem, name, isXML ) != null ? + lowercaseName : + null; + attrHandle[ lowercaseName ] = handle; + } + return ret; + }; +} ); + + + + +var rfocusable = /^(?:input|select|textarea|button)$/i, + rclickable = /^(?:a|area)$/i; + +jQuery.fn.extend( { + prop: function( name, value ) { + return access( this, jQuery.prop, name, value, arguments.length > 1 ); + }, + + removeProp: function( name ) { + return this.each( function() { + delete this[ jQuery.propFix[ name ] || name ]; + } ); + } +} ); + +jQuery.extend( { + prop: function( elem, name, value ) { + var ret, hooks, + nType = elem.nodeType; + + // Don't get/set properties on text, comment and attribute nodes + if ( nType === 3 || nType === 8 || nType === 2 ) { + return; + } + + if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { + + // Fix name and attach hooks + name = jQuery.propFix[ name ] || name; + hooks = jQuery.propHooks[ name ]; + } + + if ( value !== undefined ) { + if ( hooks && "set" in hooks && + ( ret = hooks.set( elem, value, name ) ) !== undefined ) { + return ret; + } + + return ( elem[ name ] = value ); + } + + if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { + return ret; + } + + return elem[ name ]; + }, + + propHooks: { + tabIndex: { + get: function( elem ) { + + // Support: IE <=9 - 11 only + // elem.tabIndex doesn't always return the + // correct value when it hasn't been explicitly set + // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ + // Use proper attribute retrieval(#12072) + var tabindex = jQuery.find.attr( elem, "tabindex" ); + + if ( tabindex ) { + return parseInt( tabindex, 10 ); + } + + if ( + rfocusable.test( elem.nodeName ) || + rclickable.test( elem.nodeName ) && + elem.href + ) { + return 0; + } + + return -1; + } + } + }, + + propFix: { + "for": "htmlFor", + "class": "className" + } +} ); + +// Support: IE <=11 only +// Accessing the selectedIndex property +// forces the browser to respect setting selected +// on the option +// The getter ensures a default option is selected +// when in an optgroup +// eslint rule "no-unused-expressions" is disabled for this code +// since it considers such accessions noop +if ( !support.optSelected ) { + jQuery.propHooks.selected = { + get: function( elem ) { + + /* eslint no-unused-expressions: "off" */ + + var parent = elem.parentNode; + if ( parent && parent.parentNode ) { + parent.parentNode.selectedIndex; + } + return null; + }, + set: function( elem ) { + + /* eslint no-unused-expressions: "off" */ + + var parent = elem.parentNode; + if ( parent ) { + parent.selectedIndex; + + if ( parent.parentNode ) { + parent.parentNode.selectedIndex; + } + } + } + }; +} + +jQuery.each( [ + "tabIndex", + "readOnly", + "maxLength", + "cellSpacing", + "cellPadding", + "rowSpan", + "colSpan", + "useMap", + "frameBorder", + "contentEditable" +], function() { + jQuery.propFix[ this.toLowerCase() ] = this; +} ); + + + + + // Strip and collapse whitespace according to HTML spec + // https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace + function stripAndCollapse( value ) { + var tokens = value.match( rnothtmlwhite ) || []; + return tokens.join( " " ); + } + + +function getClass( elem ) { + return elem.getAttribute && elem.getAttribute( "class" ) || ""; +} + +function classesToArray( value ) { + if ( Array.isArray( value ) ) { + return value; + } + if ( typeof value === "string" ) { + return value.match( rnothtmlwhite ) || []; + } + return []; +} + +jQuery.fn.extend( { + addClass: function( value ) { + var classes, elem, cur, curValue, clazz, j, finalValue, + i = 0; + + if ( isFunction( value ) ) { + return this.each( function( j ) { + jQuery( this ).addClass( value.call( this, j, getClass( this ) ) ); + } ); + } + + classes = classesToArray( value ); + + if ( classes.length ) { + while ( ( elem = this[ i++ ] ) ) { + curValue = getClass( elem ); + cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); + + if ( cur ) { + j = 0; + while ( ( clazz = classes[ j++ ] ) ) { + if ( cur.indexOf( " " + clazz + " " ) < 0 ) { + cur += clazz + " "; + } + } + + // Only assign if different to avoid unneeded rendering. + finalValue = stripAndCollapse( cur ); + if ( curValue !== finalValue ) { + elem.setAttribute( "class", finalValue ); + } + } + } + } + + return this; + }, + + removeClass: function( value ) { + var classes, elem, cur, curValue, clazz, j, finalValue, + i = 0; + + if ( isFunction( value ) ) { + return this.each( function( j ) { + jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) ); + } ); + } + + if ( !arguments.length ) { + return this.attr( "class", "" ); + } + + classes = classesToArray( value ); + + if ( classes.length ) { + while ( ( elem = this[ i++ ] ) ) { + curValue = getClass( elem ); + + // This expression is here for better compressibility (see addClass) + cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); + + if ( cur ) { + j = 0; + while ( ( clazz = classes[ j++ ] ) ) { + + // Remove *all* instances + while ( cur.indexOf( " " + clazz + " " ) > -1 ) { + cur = cur.replace( " " + clazz + " ", " " ); + } + } + + // Only assign if different to avoid unneeded rendering. + finalValue = stripAndCollapse( cur ); + if ( curValue !== finalValue ) { + elem.setAttribute( "class", finalValue ); + } + } + } + } + + return this; + }, + + toggleClass: function( value, stateVal ) { + var type = typeof value, + isValidValue = type === "string" || Array.isArray( value ); + + if ( typeof stateVal === "boolean" && isValidValue ) { + return stateVal ? this.addClass( value ) : this.removeClass( value ); + } + + if ( isFunction( value ) ) { + return this.each( function( i ) { + jQuery( this ).toggleClass( + value.call( this, i, getClass( this ), stateVal ), + stateVal + ); + } ); + } + + return this.each( function() { + var className, i, self, classNames; + + if ( isValidValue ) { + + // Toggle individual class names + i = 0; + self = jQuery( this ); + classNames = classesToArray( value ); + + while ( ( className = classNames[ i++ ] ) ) { + + // Check each className given, space separated list + if ( self.hasClass( className ) ) { + self.removeClass( className ); + } else { + self.addClass( className ); + } + } + + // Toggle whole class name + } else if ( value === undefined || type === "boolean" ) { + className = getClass( this ); + if ( className ) { + + // Store className if set + dataPriv.set( this, "__className__", className ); + } + + // If the element has a class name or if we're passed `false`, + // then remove the whole classname (if there was one, the above saved it). + // Otherwise bring back whatever was previously saved (if anything), + // falling back to the empty string if nothing was stored. + if ( this.setAttribute ) { + this.setAttribute( "class", + className || value === false ? + "" : + dataPriv.get( this, "__className__" ) || "" + ); + } + } + } ); + }, + + hasClass: function( selector ) { + var className, elem, + i = 0; + + className = " " + selector + " "; + while ( ( elem = this[ i++ ] ) ) { + if ( elem.nodeType === 1 && + ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) { + return true; + } + } + + return false; + } +} ); + + + + +var rreturn = /\r/g; + +jQuery.fn.extend( { + val: function( value ) { + var hooks, ret, valueIsFunction, + elem = this[ 0 ]; + + if ( !arguments.length ) { + if ( elem ) { + hooks = jQuery.valHooks[ elem.type ] || + jQuery.valHooks[ elem.nodeName.toLowerCase() ]; + + if ( hooks && + "get" in hooks && + ( ret = hooks.get( elem, "value" ) ) !== undefined + ) { + return ret; + } + + ret = elem.value; + + // Handle most common string cases + if ( typeof ret === "string" ) { + return ret.replace( rreturn, "" ); + } + + // Handle cases where value is null/undef or number + return ret == null ? "" : ret; + } + + return; + } + + valueIsFunction = isFunction( value ); + + return this.each( function( i ) { + var val; + + if ( this.nodeType !== 1 ) { + return; + } + + if ( valueIsFunction ) { + val = value.call( this, i, jQuery( this ).val() ); + } else { + val = value; + } + + // Treat null/undefined as ""; convert numbers to string + if ( val == null ) { + val = ""; + + } else if ( typeof val === "number" ) { + val += ""; + + } else if ( Array.isArray( val ) ) { + val = jQuery.map( val, function( value ) { + return value == null ? "" : value + ""; + } ); + } + + hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; + + // If set returns undefined, fall back to normal setting + if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) { + this.value = val; + } + } ); + } +} ); + +jQuery.extend( { + valHooks: { + option: { + get: function( elem ) { + + var val = jQuery.find.attr( elem, "value" ); + return val != null ? + val : + + // Support: IE <=10 - 11 only + // option.text throws exceptions (#14686, #14858) + // Strip and collapse whitespace + // https://html.spec.whatwg.org/#strip-and-collapse-whitespace + stripAndCollapse( jQuery.text( elem ) ); + } + }, + select: { + get: function( elem ) { + var value, option, i, + options = elem.options, + index = elem.selectedIndex, + one = elem.type === "select-one", + values = one ? null : [], + max = one ? index + 1 : options.length; + + if ( index < 0 ) { + i = max; + + } else { + i = one ? index : 0; + } + + // Loop through all the selected options + for ( ; i < max; i++ ) { + option = options[ i ]; + + // Support: IE <=9 only + // IE8-9 doesn't update selected after form reset (#2551) + if ( ( option.selected || i === index ) && + + // Don't return options that are disabled or in a disabled optgroup + !option.disabled && + ( !option.parentNode.disabled || + !nodeName( option.parentNode, "optgroup" ) ) ) { + + // Get the specific value for the option + value = jQuery( option ).val(); + + // We don't need an array for one selects + if ( one ) { + return value; + } + + // Multi-Selects return an array + values.push( value ); + } + } + + return values; + }, + + set: function( elem, value ) { + var optionSet, option, + options = elem.options, + values = jQuery.makeArray( value ), + i = options.length; + + while ( i-- ) { + option = options[ i ]; + + /* eslint-disable no-cond-assign */ + + if ( option.selected = + jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 + ) { + optionSet = true; + } + + /* eslint-enable no-cond-assign */ + } + + // Force browsers to behave consistently when non-matching value is set + if ( !optionSet ) { + elem.selectedIndex = -1; + } + return values; + } + } + } +} ); + +// Radios and checkboxes getter/setter +jQuery.each( [ "radio", "checkbox" ], function() { + jQuery.valHooks[ this ] = { + set: function( elem, value ) { + if ( Array.isArray( value ) ) { + return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 ); + } + } + }; + if ( !support.checkOn ) { + jQuery.valHooks[ this ].get = function( elem ) { + return elem.getAttribute( "value" ) === null ? "on" : elem.value; + }; + } +} ); + + + + +// Return jQuery for attributes-only inclusion + + +support.focusin = "onfocusin" in window; + + +var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, + stopPropagationCallback = function( e ) { + e.stopPropagation(); + }; + +jQuery.extend( jQuery.event, { + + trigger: function( event, data, elem, onlyHandlers ) { + + var i, cur, tmp, bubbleType, ontype, handle, special, lastElement, + eventPath = [ elem || document ], + type = hasOwn.call( event, "type" ) ? event.type : event, + namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : []; + + cur = lastElement = tmp = elem = elem || document; + + // Don't do events on text and comment nodes + if ( elem.nodeType === 3 || elem.nodeType === 8 ) { + return; + } + + // focus/blur morphs to focusin/out; ensure we're not firing them right now + if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { + return; + } + + if ( type.indexOf( "." ) > -1 ) { + + // Namespaced trigger; create a regexp to match event type in handle() + namespaces = type.split( "." ); + type = namespaces.shift(); + namespaces.sort(); + } + ontype = type.indexOf( ":" ) < 0 && "on" + type; + + // Caller can pass in a jQuery.Event object, Object, or just an event type string + event = event[ jQuery.expando ] ? + event : + new jQuery.Event( type, typeof event === "object" && event ); + + // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) + event.isTrigger = onlyHandlers ? 2 : 3; + event.namespace = namespaces.join( "." ); + event.rnamespace = event.namespace ? + new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : + null; + + // Clean up the event in case it is being reused + event.result = undefined; + if ( !event.target ) { + event.target = elem; + } + + // Clone any incoming data and prepend the event, creating the handler arg list + data = data == null ? + [ event ] : + jQuery.makeArray( data, [ event ] ); + + // Allow special events to draw outside the lines + special = jQuery.event.special[ type ] || {}; + if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { + return; + } + + // Determine event propagation path in advance, per W3C events spec (#9951) + // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) + if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) { + + bubbleType = special.delegateType || type; + if ( !rfocusMorph.test( bubbleType + type ) ) { + cur = cur.parentNode; + } + for ( ; cur; cur = cur.parentNode ) { + eventPath.push( cur ); + tmp = cur; + } + + // Only add window if we got to document (e.g., not plain obj or detached DOM) + if ( tmp === ( elem.ownerDocument || document ) ) { + eventPath.push( tmp.defaultView || tmp.parentWindow || window ); + } + } + + // Fire handlers on the event path + i = 0; + while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) { + lastElement = cur; + event.type = i > 1 ? + bubbleType : + special.bindType || type; + + // jQuery handler + handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] && + dataPriv.get( cur, "handle" ); + if ( handle ) { + handle.apply( cur, data ); + } + + // Native handler + handle = ontype && cur[ ontype ]; + if ( handle && handle.apply && acceptData( cur ) ) { + event.result = handle.apply( cur, data ); + if ( event.result === false ) { + event.preventDefault(); + } + } + } + event.type = type; + + // If nobody prevented the default action, do it now + if ( !onlyHandlers && !event.isDefaultPrevented() ) { + + if ( ( !special._default || + special._default.apply( eventPath.pop(), data ) === false ) && + acceptData( elem ) ) { + + // Call a native DOM method on the target with the same name as the event. + // Don't do default actions on window, that's where global variables be (#6170) + if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) { + + // Don't re-trigger an onFOO event when we call its FOO() method + tmp = elem[ ontype ]; + + if ( tmp ) { + elem[ ontype ] = null; + } + + // Prevent re-triggering of the same event, since we already bubbled it above + jQuery.event.triggered = type; + + if ( event.isPropagationStopped() ) { + lastElement.addEventListener( type, stopPropagationCallback ); + } + + elem[ type ](); + + if ( event.isPropagationStopped() ) { + lastElement.removeEventListener( type, stopPropagationCallback ); + } + + jQuery.event.triggered = undefined; + + if ( tmp ) { + elem[ ontype ] = tmp; + } + } + } + } + + return event.result; + }, + + // Piggyback on a donor event to simulate a different one + // Used only for `focus(in | out)` events + simulate: function( type, elem, event ) { + var e = jQuery.extend( + new jQuery.Event(), + event, + { + type: type, + isSimulated: true + } + ); + + jQuery.event.trigger( e, null, elem ); + } + +} ); + +jQuery.fn.extend( { + + trigger: function( type, data ) { + return this.each( function() { + jQuery.event.trigger( type, data, this ); + } ); + }, + triggerHandler: function( type, data ) { + var elem = this[ 0 ]; + if ( elem ) { + return jQuery.event.trigger( type, data, elem, true ); + } + } +} ); + + +// Support: Firefox <=44 +// Firefox doesn't have focus(in | out) events +// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787 +// +// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1 +// focus(in | out) events fire after focus & blur events, +// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order +// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857 +if ( !support.focusin ) { + jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) { + + // Attach a single capturing handler on the document while someone wants focusin/focusout + var handler = function( event ) { + jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) ); + }; + + jQuery.event.special[ fix ] = { + setup: function() { + var doc = this.ownerDocument || this, + attaches = dataPriv.access( doc, fix ); + + if ( !attaches ) { + doc.addEventListener( orig, handler, true ); + } + dataPriv.access( doc, fix, ( attaches || 0 ) + 1 ); + }, + teardown: function() { + var doc = this.ownerDocument || this, + attaches = dataPriv.access( doc, fix ) - 1; + + if ( !attaches ) { + doc.removeEventListener( orig, handler, true ); + dataPriv.remove( doc, fix ); + + } else { + dataPriv.access( doc, fix, attaches ); + } + } + }; + } ); +} +var location = window.location; + +var nonce = Date.now(); + +var rquery = ( /\?/ ); + + + +// Cross-browser xml parsing +jQuery.parseXML = function( data ) { + var xml; + if ( !data || typeof data !== "string" ) { + return null; + } + + // Support: IE 9 - 11 only + // IE throws on parseFromString with invalid input. + try { + xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); + } catch ( e ) { + xml = undefined; + } + + if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { + jQuery.error( "Invalid XML: " + data ); + } + return xml; +}; + + +var + rbracket = /\[\]$/, + rCRLF = /\r?\n/g, + rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, + rsubmittable = /^(?:input|select|textarea|keygen)/i; + +function buildParams( prefix, obj, traditional, add ) { + var name; + + if ( Array.isArray( obj ) ) { + + // Serialize array item. + jQuery.each( obj, function( i, v ) { + if ( traditional || rbracket.test( prefix ) ) { + + // Treat each array item as a scalar. + add( prefix, v ); + + } else { + + // Item is non-scalar (array or object), encode its numeric index. + buildParams( + prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]", + v, + traditional, + add + ); + } + } ); + + } else if ( !traditional && toType( obj ) === "object" ) { + + // Serialize object item. + for ( name in obj ) { + buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); + } + + } else { + + // Serialize scalar item. + add( prefix, obj ); + } +} + +// Serialize an array of form elements or a set of +// key/values into a query string +jQuery.param = function( a, traditional ) { + var prefix, + s = [], + add = function( key, valueOrFunction ) { + + // If value is a function, invoke it and use its return value + var value = isFunction( valueOrFunction ) ? + valueOrFunction() : + valueOrFunction; + + s[ s.length ] = encodeURIComponent( key ) + "=" + + encodeURIComponent( value == null ? "" : value ); + }; + + // If an array was passed in, assume that it is an array of form elements. + if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { + + // Serialize the form elements + jQuery.each( a, function() { + add( this.name, this.value ); + } ); + + } else { + + // If traditional, encode the "old" way (the way 1.3.2 or older + // did it), otherwise encode params recursively. + for ( prefix in a ) { + buildParams( prefix, a[ prefix ], traditional, add ); + } + } + + // Return the resulting serialization + return s.join( "&" ); +}; + +jQuery.fn.extend( { + serialize: function() { + return jQuery.param( this.serializeArray() ); + }, + serializeArray: function() { + return this.map( function() { + + // Can add propHook for "elements" to filter or add form elements + var elements = jQuery.prop( this, "elements" ); + return elements ? jQuery.makeArray( elements ) : this; + } ) + .filter( function() { + var type = this.type; + + // Use .is( ":disabled" ) so that fieldset[disabled] works + return this.name && !jQuery( this ).is( ":disabled" ) && + rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && + ( this.checked || !rcheckableType.test( type ) ); + } ) + .map( function( i, elem ) { + var val = jQuery( this ).val(); + + if ( val == null ) { + return null; + } + + if ( Array.isArray( val ) ) { + return jQuery.map( val, function( val ) { + return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; + } ); + } + + return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; + } ).get(); + } +} ); + + +var + r20 = /%20/g, + rhash = /#.*$/, + rantiCache = /([?&])_=[^&]*/, + rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, + + // #7653, #8125, #8152: local protocol detection + rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, + rnoContent = /^(?:GET|HEAD)$/, + rprotocol = /^\/\//, + + /* Prefilters + * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) + * 2) These are called: + * - BEFORE asking for a transport + * - AFTER param serialization (s.data is a string if s.processData is true) + * 3) key is the dataType + * 4) the catchall symbol "*" can be used + * 5) execution will start with transport dataType and THEN continue down to "*" if needed + */ + prefilters = {}, + + /* Transports bindings + * 1) key is the dataType + * 2) the catchall symbol "*" can be used + * 3) selection will start with transport dataType and THEN go to "*" if needed + */ + transports = {}, + + // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression + allTypes = "*/".concat( "*" ), + + // Anchor tag for parsing the document origin + originAnchor = document.createElement( "a" ); + originAnchor.href = location.href; + +// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport +function addToPrefiltersOrTransports( structure ) { + + // dataTypeExpression is optional and defaults to "*" + return function( dataTypeExpression, func ) { + + if ( typeof dataTypeExpression !== "string" ) { + func = dataTypeExpression; + dataTypeExpression = "*"; + } + + var dataType, + i = 0, + dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || []; + + if ( isFunction( func ) ) { + + // For each dataType in the dataTypeExpression + while ( ( dataType = dataTypes[ i++ ] ) ) { + + // Prepend if requested + if ( dataType[ 0 ] === "+" ) { + dataType = dataType.slice( 1 ) || "*"; + ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func ); + + // Otherwise append + } else { + ( structure[ dataType ] = structure[ dataType ] || [] ).push( func ); + } + } + } + }; +} + +// Base inspection function for prefilters and transports +function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { + + var inspected = {}, + seekingTransport = ( structure === transports ); + + function inspect( dataType ) { + var selected; + inspected[ dataType ] = true; + jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { + var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); + if ( typeof dataTypeOrTransport === "string" && + !seekingTransport && !inspected[ dataTypeOrTransport ] ) { + + options.dataTypes.unshift( dataTypeOrTransport ); + inspect( dataTypeOrTransport ); + return false; + } else if ( seekingTransport ) { + return !( selected = dataTypeOrTransport ); + } + } ); + return selected; + } + + return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); +} + +// A special extend for ajax options +// that takes "flat" options (not to be deep extended) +// Fixes #9887 +function ajaxExtend( target, src ) { + var key, deep, + flatOptions = jQuery.ajaxSettings.flatOptions || {}; + + for ( key in src ) { + if ( src[ key ] !== undefined ) { + ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; + } + } + if ( deep ) { + jQuery.extend( true, target, deep ); + } + + return target; +} + +/* Handles responses to an ajax request: + * - finds the right dataType (mediates between content-type and expected dataType) + * - returns the corresponding response + */ +function ajaxHandleResponses( s, jqXHR, responses ) { + + var ct, type, finalDataType, firstDataType, + contents = s.contents, + dataTypes = s.dataTypes; + + // Remove auto dataType and get content-type in the process + while ( dataTypes[ 0 ] === "*" ) { + dataTypes.shift(); + if ( ct === undefined ) { + ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" ); + } + } + + // Check if we're dealing with a known content-type + if ( ct ) { + for ( type in contents ) { + if ( contents[ type ] && contents[ type ].test( ct ) ) { + dataTypes.unshift( type ); + break; + } + } + } + + // Check to see if we have a response for the expected dataType + if ( dataTypes[ 0 ] in responses ) { + finalDataType = dataTypes[ 0 ]; + } else { + + // Try convertible dataTypes + for ( type in responses ) { + if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) { + finalDataType = type; + break; + } + if ( !firstDataType ) { + firstDataType = type; + } + } + + // Or just use first one + finalDataType = finalDataType || firstDataType; + } + + // If we found a dataType + // We add the dataType to the list if needed + // and return the corresponding response + if ( finalDataType ) { + if ( finalDataType !== dataTypes[ 0 ] ) { + dataTypes.unshift( finalDataType ); + } + return responses[ finalDataType ]; + } +} + +/* Chain conversions given the request and the original response + * Also sets the responseXXX fields on the jqXHR instance + */ +function ajaxConvert( s, response, jqXHR, isSuccess ) { + var conv2, current, conv, tmp, prev, + converters = {}, + + // Work with a copy of dataTypes in case we need to modify it for conversion + dataTypes = s.dataTypes.slice(); + + // Create converters map with lowercased keys + if ( dataTypes[ 1 ] ) { + for ( conv in s.converters ) { + converters[ conv.toLowerCase() ] = s.converters[ conv ]; + } + } + + current = dataTypes.shift(); + + // Convert to each sequential dataType + while ( current ) { + + if ( s.responseFields[ current ] ) { + jqXHR[ s.responseFields[ current ] ] = response; + } + + // Apply the dataFilter if provided + if ( !prev && isSuccess && s.dataFilter ) { + response = s.dataFilter( response, s.dataType ); + } + + prev = current; + current = dataTypes.shift(); + + if ( current ) { + + // There's only work to do if current dataType is non-auto + if ( current === "*" ) { + + current = prev; + + // Convert response if prev dataType is non-auto and differs from current + } else if ( prev !== "*" && prev !== current ) { + + // Seek a direct converter + conv = converters[ prev + " " + current ] || converters[ "* " + current ]; + + // If none found, seek a pair + if ( !conv ) { + for ( conv2 in converters ) { + + // If conv2 outputs current + tmp = conv2.split( " " ); + if ( tmp[ 1 ] === current ) { + + // If prev can be converted to accepted input + conv = converters[ prev + " " + tmp[ 0 ] ] || + converters[ "* " + tmp[ 0 ] ]; + if ( conv ) { + + // Condense equivalence converters + if ( conv === true ) { + conv = converters[ conv2 ]; + + // Otherwise, insert the intermediate dataType + } else if ( converters[ conv2 ] !== true ) { + current = tmp[ 0 ]; + dataTypes.unshift( tmp[ 1 ] ); + } + break; + } + } + } + } + + // Apply converter (if not an equivalence) + if ( conv !== true ) { + + // Unless errors are allowed to bubble, catch and return them + if ( conv && s.throws ) { + response = conv( response ); + } else { + try { + response = conv( response ); + } catch ( e ) { + return { + state: "parsererror", + error: conv ? e : "No conversion from " + prev + " to " + current + }; + } + } + } + } + } + } + + return { state: "success", data: response }; +} + +jQuery.extend( { + + // Counter for holding the number of active queries + active: 0, + + // Last-Modified header cache for next request + lastModified: {}, + etag: {}, + + ajaxSettings: { + url: location.href, + type: "GET", + isLocal: rlocalProtocol.test( location.protocol ), + global: true, + processData: true, + async: true, + contentType: "application/x-www-form-urlencoded; charset=UTF-8", + + /* + timeout: 0, + data: null, + dataType: null, + username: null, + password: null, + cache: null, + throws: false, + traditional: false, + headers: {}, + */ + + accepts: { + "*": allTypes, + text: "text/plain", + html: "text/html", + xml: "application/xml, text/xml", + json: "application/json, text/javascript" + }, + + contents: { + xml: /\bxml\b/, + html: /\bhtml/, + json: /\bjson\b/ + }, + + responseFields: { + xml: "responseXML", + text: "responseText", + json: "responseJSON" + }, + + // Data converters + // Keys separate source (or catchall "*") and destination types with a single space + converters: { + + // Convert anything to text + "* text": String, + + // Text to html (true = no transformation) + "text html": true, + + // Evaluate text as a json expression + "text json": JSON.parse, + + // Parse text as xml + "text xml": jQuery.parseXML + }, + + // For options that shouldn't be deep extended: + // you can add your own custom options here if + // and when you create one that shouldn't be + // deep extended (see ajaxExtend) + flatOptions: { + url: true, + context: true + } + }, + + // Creates a full fledged settings object into target + // with both ajaxSettings and settings fields. + // If target is omitted, writes into ajaxSettings. + ajaxSetup: function( target, settings ) { + return settings ? + + // Building a settings object + ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : + + // Extending ajaxSettings + ajaxExtend( jQuery.ajaxSettings, target ); + }, + + ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), + ajaxTransport: addToPrefiltersOrTransports( transports ), + + // Main method + ajax: function( url, options ) { + + // If url is an object, simulate pre-1.5 signature + if ( typeof url === "object" ) { + options = url; + url = undefined; + } + + // Force options to be an object + options = options || {}; + + var transport, + + // URL without anti-cache param + cacheURL, + + // Response headers + responseHeadersString, + responseHeaders, + + // timeout handle + timeoutTimer, + + // Url cleanup var + urlAnchor, + + // Request state (becomes false upon send and true upon completion) + completed, + + // To know if global events are to be dispatched + fireGlobals, + + // Loop variable + i, + + // uncached part of the url + uncached, + + // Create the final options object + s = jQuery.ajaxSetup( {}, options ), + + // Callbacks context + callbackContext = s.context || s, + + // Context for global events is callbackContext if it is a DOM node or jQuery collection + globalEventContext = s.context && + ( callbackContext.nodeType || callbackContext.jquery ) ? + jQuery( callbackContext ) : + jQuery.event, + + // Deferreds + deferred = jQuery.Deferred(), + completeDeferred = jQuery.Callbacks( "once memory" ), + + // Status-dependent callbacks + statusCode = s.statusCode || {}, + + // Headers (they are sent all at once) + requestHeaders = {}, + requestHeadersNames = {}, + + // Default abort message + strAbort = "canceled", + + // Fake xhr + jqXHR = { + readyState: 0, + + // Builds headers hashtable if needed + getResponseHeader: function( key ) { + var match; + if ( completed ) { + if ( !responseHeaders ) { + responseHeaders = {}; + while ( ( match = rheaders.exec( responseHeadersString ) ) ) { + responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ]; + } + } + match = responseHeaders[ key.toLowerCase() ]; + } + return match == null ? null : match; + }, + + // Raw string + getAllResponseHeaders: function() { + return completed ? responseHeadersString : null; + }, + + // Caches the header + setRequestHeader: function( name, value ) { + if ( completed == null ) { + name = requestHeadersNames[ name.toLowerCase() ] = + requestHeadersNames[ name.toLowerCase() ] || name; + requestHeaders[ name ] = value; + } + return this; + }, + + // Overrides response content-type header + overrideMimeType: function( type ) { + if ( completed == null ) { + s.mimeType = type; + } + return this; + }, + + // Status-dependent callbacks + statusCode: function( map ) { + var code; + if ( map ) { + if ( completed ) { + + // Execute the appropriate callbacks + jqXHR.always( map[ jqXHR.status ] ); + } else { + + // Lazy-add the new callbacks in a way that preserves old ones + for ( code in map ) { + statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; + } + } + } + return this; + }, + + // Cancel the request + abort: function( statusText ) { + var finalText = statusText || strAbort; + if ( transport ) { + transport.abort( finalText ); + } + done( 0, finalText ); + return this; + } + }; + + // Attach deferreds + deferred.promise( jqXHR ); + + // Add protocol if not provided (prefilters might expect it) + // Handle falsy url in the settings object (#10093: consistency with old signature) + // We also use the url parameter if available + s.url = ( ( url || s.url || location.href ) + "" ) + .replace( rprotocol, location.protocol + "//" ); + + // Alias method option to type as per ticket #12004 + s.type = options.method || options.type || s.method || s.type; + + // Extract dataTypes list + s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ]; + + // A cross-domain request is in order when the origin doesn't match the current origin. + if ( s.crossDomain == null ) { + urlAnchor = document.createElement( "a" ); + + // Support: IE <=8 - 11, Edge 12 - 15 + // IE throws exception on accessing the href property if url is malformed, + // e.g. http://example.com:80x/ + try { + urlAnchor.href = s.url; + + // Support: IE <=8 - 11 only + // Anchor's host property isn't correctly set when s.url is relative + urlAnchor.href = urlAnchor.href; + s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== + urlAnchor.protocol + "//" + urlAnchor.host; + } catch ( e ) { + + // If there is an error parsing the URL, assume it is crossDomain, + // it can be rejected by the transport if it is invalid + s.crossDomain = true; + } + } + + // Convert data if not already a string + if ( s.data && s.processData && typeof s.data !== "string" ) { + s.data = jQuery.param( s.data, s.traditional ); + } + + // Apply prefilters + inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); + + // If request was aborted inside a prefilter, stop there + if ( completed ) { + return jqXHR; + } + + // We can fire global events as of now if asked to + // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118) + fireGlobals = jQuery.event && s.global; + + // Watch for a new set of requests + if ( fireGlobals && jQuery.active++ === 0 ) { + jQuery.event.trigger( "ajaxStart" ); + } + + // Uppercase the type + s.type = s.type.toUpperCase(); + + // Determine if request has content + s.hasContent = !rnoContent.test( s.type ); + + // Save the URL in case we're toying with the If-Modified-Since + // and/or If-None-Match header later on + // Remove hash to simplify url manipulation + cacheURL = s.url.replace( rhash, "" ); + + // More options handling for requests with no content + if ( !s.hasContent ) { + + // Remember the hash so we can put it back + uncached = s.url.slice( cacheURL.length ); + + // If data is available and should be processed, append data to url + if ( s.data && ( s.processData || typeof s.data === "string" ) ) { + cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data; + + // #9682: remove data so that it's not used in an eventual retry + delete s.data; + } + + // Add or update anti-cache param if needed + if ( s.cache === false ) { + cacheURL = cacheURL.replace( rantiCache, "$1" ); + uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached; + } + + // Put hash and anti-cache on the URL that will be requested (gh-1732) + s.url = cacheURL + uncached; + + // Change '%20' to '+' if this is encoded form body content (gh-2658) + } else if ( s.data && s.processData && + ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) { + s.data = s.data.replace( r20, "+" ); + } + + // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. + if ( s.ifModified ) { + if ( jQuery.lastModified[ cacheURL ] ) { + jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); + } + if ( jQuery.etag[ cacheURL ] ) { + jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); + } + } + + // Set the correct header, if data is being sent + if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { + jqXHR.setRequestHeader( "Content-Type", s.contentType ); + } + + // Set the Accepts header for the server, depending on the dataType + jqXHR.setRequestHeader( + "Accept", + s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ? + s.accepts[ s.dataTypes[ 0 ] ] + + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : + s.accepts[ "*" ] + ); + + // Check for headers option + for ( i in s.headers ) { + jqXHR.setRequestHeader( i, s.headers[ i ] ); + } + + // Allow custom headers/mimetypes and early abort + if ( s.beforeSend && + ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) { + + // Abort if not done already and return + return jqXHR.abort(); + } + + // Aborting is no longer a cancellation + strAbort = "abort"; + + // Install callbacks on deferreds + completeDeferred.add( s.complete ); + jqXHR.done( s.success ); + jqXHR.fail( s.error ); + + // Get transport + transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); + + // If no transport, we auto-abort + if ( !transport ) { + done( -1, "No Transport" ); + } else { + jqXHR.readyState = 1; + + // Send global event + if ( fireGlobals ) { + globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); + } + + // If request was aborted inside ajaxSend, stop there + if ( completed ) { + return jqXHR; + } + + // Timeout + if ( s.async && s.timeout > 0 ) { + timeoutTimer = window.setTimeout( function() { + jqXHR.abort( "timeout" ); + }, s.timeout ); + } + + try { + completed = false; + transport.send( requestHeaders, done ); + } catch ( e ) { + + // Rethrow post-completion exceptions + if ( completed ) { + throw e; + } + + // Propagate others as results + done( -1, e ); + } + } + + // Callback for when everything is done + function done( status, nativeStatusText, responses, headers ) { + var isSuccess, success, error, response, modified, + statusText = nativeStatusText; + + // Ignore repeat invocations + if ( completed ) { + return; + } + + completed = true; + + // Clear timeout if it exists + if ( timeoutTimer ) { + window.clearTimeout( timeoutTimer ); + } + + // Dereference transport for early garbage collection + // (no matter how long the jqXHR object will be used) + transport = undefined; + + // Cache response headers + responseHeadersString = headers || ""; + + // Set readyState + jqXHR.readyState = status > 0 ? 4 : 0; + + // Determine if successful + isSuccess = status >= 200 && status < 300 || status === 304; + + // Get response data + if ( responses ) { + response = ajaxHandleResponses( s, jqXHR, responses ); + } + + // Convert no matter what (that way responseXXX fields are always set) + response = ajaxConvert( s, response, jqXHR, isSuccess ); + + // If successful, handle type chaining + if ( isSuccess ) { + + // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. + if ( s.ifModified ) { + modified = jqXHR.getResponseHeader( "Last-Modified" ); + if ( modified ) { + jQuery.lastModified[ cacheURL ] = modified; + } + modified = jqXHR.getResponseHeader( "etag" ); + if ( modified ) { + jQuery.etag[ cacheURL ] = modified; + } + } + + // if no content + if ( status === 204 || s.type === "HEAD" ) { + statusText = "nocontent"; + + // if not modified + } else if ( status === 304 ) { + statusText = "notmodified"; + + // If we have data, let's convert it + } else { + statusText = response.state; + success = response.data; + error = response.error; + isSuccess = !error; + } + } else { + + // Extract error from statusText and normalize for non-aborts + error = statusText; + if ( status || !statusText ) { + statusText = "error"; + if ( status < 0 ) { + status = 0; + } + } + } + + // Set data for the fake xhr object + jqXHR.status = status; + jqXHR.statusText = ( nativeStatusText || statusText ) + ""; + + // Success/Error + if ( isSuccess ) { + deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); + } else { + deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); + } + + // Status-dependent callbacks + jqXHR.statusCode( statusCode ); + statusCode = undefined; + + if ( fireGlobals ) { + globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", + [ jqXHR, s, isSuccess ? success : error ] ); + } + + // Complete + completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); + + if ( fireGlobals ) { + globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); + + // Handle the global AJAX counter + if ( !( --jQuery.active ) ) { + jQuery.event.trigger( "ajaxStop" ); + } + } + } + + return jqXHR; + }, + + getJSON: function( url, data, callback ) { + return jQuery.get( url, data, callback, "json" ); + }, + + getScript: function( url, callback ) { + return jQuery.get( url, undefined, callback, "script" ); + } +} ); + +jQuery.each( [ "get", "post" ], function( i, method ) { + jQuery[ method ] = function( url, data, callback, type ) { + + // Shift arguments if data argument was omitted + if ( isFunction( data ) ) { + type = type || callback; + callback = data; + data = undefined; + } + + // The url can be an options object (which then must have .url) + return jQuery.ajax( jQuery.extend( { + url: url, + type: method, + dataType: type, + data: data, + success: callback + }, jQuery.isPlainObject( url ) && url ) ); + }; +} ); + + +jQuery._evalUrl = function( url ) { + return jQuery.ajax( { + url: url, + + // Make this explicit, since user can override this through ajaxSetup (#11264) + type: "GET", + dataType: "script", + cache: true, + async: false, + global: false, + "throws": true + } ); +}; + + +jQuery.fn.extend( { + wrapAll: function( html ) { + var wrap; + + if ( this[ 0 ] ) { + if ( isFunction( html ) ) { + html = html.call( this[ 0 ] ); + } + + // The elements to wrap the target around + wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); + + if ( this[ 0 ].parentNode ) { + wrap.insertBefore( this[ 0 ] ); + } + + wrap.map( function() { + var elem = this; + + while ( elem.firstElementChild ) { + elem = elem.firstElementChild; + } + + return elem; + } ).append( this ); + } + + return this; + }, + + wrapInner: function( html ) { + if ( isFunction( html ) ) { + return this.each( function( i ) { + jQuery( this ).wrapInner( html.call( this, i ) ); + } ); + } + + return this.each( function() { + var self = jQuery( this ), + contents = self.contents(); + + if ( contents.length ) { + contents.wrapAll( html ); + + } else { + self.append( html ); + } + } ); + }, + + wrap: function( html ) { + var htmlIsFunction = isFunction( html ); + + return this.each( function( i ) { + jQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html ); + } ); + }, + + unwrap: function( selector ) { + this.parent( selector ).not( "body" ).each( function() { + jQuery( this ).replaceWith( this.childNodes ); + } ); + return this; + } +} ); + + +jQuery.expr.pseudos.hidden = function( elem ) { + return !jQuery.expr.pseudos.visible( elem ); +}; +jQuery.expr.pseudos.visible = function( elem ) { + return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); +}; + + + + +jQuery.ajaxSettings.xhr = function() { + try { + return new window.XMLHttpRequest(); + } catch ( e ) {} +}; + +var xhrSuccessStatus = { + + // File protocol always yields status code 0, assume 200 + 0: 200, + + // Support: IE <=9 only + // #1450: sometimes IE returns 1223 when it should be 204 + 1223: 204 + }, + xhrSupported = jQuery.ajaxSettings.xhr(); + +support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); +support.ajax = xhrSupported = !!xhrSupported; + +jQuery.ajaxTransport( function( options ) { + var callback, errorCallback; + + // Cross domain only allowed if supported through XMLHttpRequest + if ( support.cors || xhrSupported && !options.crossDomain ) { + return { + send: function( headers, complete ) { + var i, + xhr = options.xhr(); + + xhr.open( + options.type, + options.url, + options.async, + options.username, + options.password + ); + + // Apply custom fields if provided + if ( options.xhrFields ) { + for ( i in options.xhrFields ) { + xhr[ i ] = options.xhrFields[ i ]; + } + } + + // Override mime type if needed + if ( options.mimeType && xhr.overrideMimeType ) { + xhr.overrideMimeType( options.mimeType ); + } + + // X-Requested-With header + // For cross-domain requests, seeing as conditions for a preflight are + // akin to a jigsaw puzzle, we simply never set it to be sure. + // (it can always be set on a per-request basis or even using ajaxSetup) + // For same-domain requests, won't change header if already provided. + if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) { + headers[ "X-Requested-With" ] = "XMLHttpRequest"; + } + + // Set headers + for ( i in headers ) { + xhr.setRequestHeader( i, headers[ i ] ); + } + + // Callback + callback = function( type ) { + return function() { + if ( callback ) { + callback = errorCallback = xhr.onload = + xhr.onerror = xhr.onabort = xhr.ontimeout = + xhr.onreadystatechange = null; + + if ( type === "abort" ) { + xhr.abort(); + } else if ( type === "error" ) { + + // Support: IE <=9 only + // On a manual native abort, IE9 throws + // errors on any property access that is not readyState + if ( typeof xhr.status !== "number" ) { + complete( 0, "error" ); + } else { + complete( + + // File: protocol always yields status 0; see #8605, #14207 + xhr.status, + xhr.statusText + ); + } + } else { + complete( + xhrSuccessStatus[ xhr.status ] || xhr.status, + xhr.statusText, + + // Support: IE <=9 only + // IE9 has no XHR2 but throws on binary (trac-11426) + // For XHR2 non-text, let the caller handle it (gh-2498) + ( xhr.responseType || "text" ) !== "text" || + typeof xhr.responseText !== "string" ? + { binary: xhr.response } : + { text: xhr.responseText }, + xhr.getAllResponseHeaders() + ); + } + } + }; + }; + + // Listen to events + xhr.onload = callback(); + errorCallback = xhr.onerror = xhr.ontimeout = callback( "error" ); + + // Support: IE 9 only + // Use onreadystatechange to replace onabort + // to handle uncaught aborts + if ( xhr.onabort !== undefined ) { + xhr.onabort = errorCallback; + } else { + xhr.onreadystatechange = function() { + + // Check readyState before timeout as it changes + if ( xhr.readyState === 4 ) { + + // Allow onerror to be called first, + // but that will not handle a native abort + // Also, save errorCallback to a variable + // as xhr.onerror cannot be accessed + window.setTimeout( function() { + if ( callback ) { + errorCallback(); + } + } ); + } + }; + } + + // Create the abort callback + callback = callback( "abort" ); + + try { + + // Do send the request (this may raise an exception) + xhr.send( options.hasContent && options.data || null ); + } catch ( e ) { + + // #14683: Only rethrow if this hasn't been notified as an error yet + if ( callback ) { + throw e; + } + } + }, + + abort: function() { + if ( callback ) { + callback(); + } + } + }; + } +} ); + + + + +// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432) +jQuery.ajaxPrefilter( function( s ) { + if ( s.crossDomain ) { + s.contents.script = false; + } +} ); + +// Install script dataType +jQuery.ajaxSetup( { + accepts: { + script: "text/javascript, application/javascript, " + + "application/ecmascript, application/x-ecmascript" + }, + contents: { + script: /\b(?:java|ecma)script\b/ + }, + converters: { + "text script": function( text ) { + jQuery.globalEval( text ); + return text; + } + } +} ); + +// Handle cache's special case and crossDomain +jQuery.ajaxPrefilter( "script", function( s ) { + if ( s.cache === undefined ) { + s.cache = false; + } + if ( s.crossDomain ) { + s.type = "GET"; + } +} ); + +// Bind script tag hack transport +jQuery.ajaxTransport( "script", function( s ) { + + // This transport only deals with cross domain requests + if ( s.crossDomain ) { + var script, callback; + return { + send: function( _, complete ) { + script = jQuery( " + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + Config +

    + + + + +
    +
    + +

    + + Config + +

    + + + +
    + +
    +
    + + + + + + + + + + + + +

    + new Config() → {Config~Config} +

    +
    + + + + + +
    +

    Instantiates a new configuration object.

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + + + + +

    Type Definitions

    + + + + + + + + + + + + + +

    + Config :Object +

    +
    + + + + + +
    +

    Available configuration options:

    +
    + + + + + + + + + + +
    Properties:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDefaultDescription
    topLinkCategory + + + + String + + + | + + + "none" + + + + + + + + + "default" + + +

    The category of Link to show above the text.

    +
    bottomLinkCategory + + + + String + + + | + + + "none" + + + + + + + + + "none" + + +

    The category of Link to show below the text.

    +
    topTagCategory + + + + String + + + | + + + "none" + + + + + + + + + "default" + + +

    The category of WordTag to show above the text.

    +
    bottomTagCategory + + + + String + + + | + + + "none" + + + + + + + + + "POS" + + +

    The category of WordTag to show below the text.

    +
    compactRows + + + + Boolean + + + + + + + + + false + + +

    Whether or not to lock every Row to its minimum height.

    +
    showTopLinksOnMove + + + + Boolean + + + + + + + + + true + + +

    Continue to display top Links when the user drags Words around.

    +
    showBottomLinksOnMove + + + + Boolean + + + + + + + + + true + + +

    Continue to display bottom Links when the user drags Words around.

    +
    showTopMainLabel + + + + Boolean + + + + + + + + + true + + +

    Display the main type label for top Links.

    +
    showTopArgLabels + + + + Boolean + + + + + + + + + false + + +

    Display the type labels for each argument for top Links.

    +
    showBottomMainLabel + + + + Boolean + + + + + + + + + true + + +

    Display the main type label for bottom Links.

    +
    showBottomArgLabels + + + + Boolean + + + + + + + + + false + + +

    Display the type labels for each argument for bottom Links.

    +
    rowEdgePadding + + + + Number + + + + + + + + + 10 + + +

    Padding on the left/right edges of each Row.

    +
    rowVerticalPadding + + + + Number + + + + + + + + + 20 + + +

    Padding on the top/bottom of each Row.

    +
    rowExtraTopPadding + + + + Number + + + + + + + + + 10 + + +

    Extra padding on Row top for Link labels.
    + (Labels for top Links are drawn above their line, and it is not trivial + to get a good value for how high they are, so swe use a pre-configured + value here.)

    +
    wordPadding + + + + Number + + + + + + + + + 10 + + +

    Padding on the left of Words.

    +
    wordPunctPadding + + + + Number + + + + + + + + + 2 + + +

    Padding on the left of Words that contain a single + punctuation character.

    +
    wordTopTagPadding + + + + Number + + + + + + + + + 10 + + +

    Padding between Words and the WordTags + drawn above them.

    +
    wordBottomTagPadding + + + + Number + + + + + + + + + 0 + + +

    Padding between Words and the WordTags + drawn below them.

    +
    wordTagLineLength + + + + Number + + + + + + + + + 9 + + +

    For WordTags drawn above Words, the height + of the connecting line/brace between the Word and the + WordTag.

    +
    wordBraceThreshold + + + + Number + + + + + + + + + 100 + + +

    Words that are wider than this will have curly braces + drawn between them and their WordTags (rather than a + single vertical line).

    +
    linkSlotInterval + + + + Number + + + + + + + + + 40 + + +

    Vertical distance between each overlapping Link slot.

    +
    linkHandlePadding + + + + Number + + + + + + + + + 2 + + +

    Vertical padding between Link handles and their anchors.

    +
    linkCurveWidth + + + + Number + + + + + + + + + 5 + + +

    Corner curve width for Link lines.

    +
    linkArrowWidth + + + + Number + + + + + + + + + 5 + + +

    Width of arrowheads for Link handles.

    +
    tagDefaultColours + + + + Array.<String> + + + + + + + + + ... + + +

    The first n default colours to use for WordTags (as a + queue). After this array is exhausted, WordTags will + be assigned random colours by default.
    + See the source for the pre-configured default values.

    +
    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + +
    +
    + + + + +
    + +
    + + + + + + + + + + \ No newline at end of file diff --git a/docs/Handle.html b/docs/Handle.html new file mode 100644 index 0000000..e111cb3 --- /dev/null +++ b/docs/Handle.html @@ -0,0 +1,484 @@ + + + + + + + + + Handle - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + Handle +

    + + + + +
    +
    + +

    + + Handle + +

    + + +
    +

    Helper class for Link handles (the start/end-points for the Link's line; +for each Link, there is one handle for each associated Word/nested Link)

    +
    + + +
    + +
    +
    + + + + + +

    Constructor

    + + + + + + + + +

    + new Handle(anchor, parent) +

    +
    + + + + + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    anchor + + + + Word + + + | + + + Link + + + + + + + +

    The Word or Link anchor for this Handle

    + +
    parent + + + + Link + + + + + + + +

    The parent Link that this Handle belongs to

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + + +

    Methods

    + + + + + + + + + + + + + +

    + precedes(handle) +

    +
    + + + + + +
    +

    Returns true if this handle precedes the given handle +(i.e., this handle has an earlier Row, or is to its left within the +same row)

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    handle + + + + Handle + + + + + + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + +
    + +
    + + + + + + + + + + \ No newline at end of file diff --git a/docs/Label.html b/docs/Label.html new file mode 100644 index 0000000..ca689a7 --- /dev/null +++ b/docs/Label.html @@ -0,0 +1,1125 @@ + + + + + + + + + Label - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + Label +

    + + + + +
    +
    + +

    + + Label + +

    + + +
    +

    Helper class for various types of labels to be drawn on/around the Link. +Consists of two main SVG elements:

    +
      +
    • An SVG Text element with the label text, drawn in some given colour
    • +
    • Another SVG Text element with the same text, but with a larger stroke +width and drawn in white, to serve as the background for the main element
    • +
    +
    + + +
    + +
    +
    + + + + + +

    Constructor

    + + + + + + + + +

    + new Label(mainSvg, svg, text, addClass) +

    +
    + + + + + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    mainSvg + + +

    The main SVG document (for firing events, etc.)

    + +
    svg + + + + svgjs.Doc + + + + + + + +

    The SVG document/group to draw the Text elements in

    + +
    text + + + + String + + + + + + + +

    The text of the Label

    + +
    addClass + + + + String + + + + + + + +

    Any additional CSS classes to add to the SVG + elements

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + +

    Members

    + + + + +

    + svgText :svgjs.Text +

    + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + +

    Methods

    + + + + + + + + + + + + + +

    + show() +

    +
    + + + + + +
    +

    Shows the Label text elements

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + hide() +

    +
    + + + + + +
    +

    Hides the Label text elements

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + move(x, y) +

    +
    + + + + + +
    +

    Moves the centre of the baseline of the Label text elements to the given +coordinates +(N.B.: SVG Text elements are positioned horizontally by their centres, +by default. Also, setting the y-attribute directly allows us to move +the Text element directly by its baseline, rather than its top edge)

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    x + + +

    New horizontal centre of the Label

    + +
    y + + +

    New baseline of the Label

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + centre(x, y) +

    +
    + + + + + +
    +

    Centres the Label elements horizontally and vertically on the given point

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    x + + +

    New horizontal centre of the Label

    + +
    y + + +

    New vertical centre of the Label

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + length() +

    +
    + + + + + +
    +

    Returns the length (i.e., width) of the main label +https://svgjs.com/docs/2.7/elements/#text-length

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + drawTextBbox() +

    +
    + + + + + +
    +

    Draws the outline of the text element's bounding box

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + +
    + +
    + + + + + + + + + + \ No newline at end of file diff --git a/docs/Link.html b/docs/Link.html new file mode 100644 index 0000000..cd247c8 --- /dev/null +++ b/docs/Link.html @@ -0,0 +1,2321 @@ + + + + + + + + + Link - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + Link +

    + + + + +
    +
    + +

    + + Link + +

    + + + +
    + +
    +
    + + + + + + + + + + + + + + + + + + + +
    +

    Creates a new Link between other entities. Links can have Words or +other Links as argument anchors.

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDefaultDescription
    eventId + + + + String + + + + + + + + + +

    Unique ID

    + +
    trigger + + + + Word + + + + + + + + + +

    Text-bound entity that indicates the presence of + this event

    + +
    args + + + + Array.<Object> + + + + + + + + + +

    The arguments to this Link. An Array of + Objects specifying anchor and type

    + +
    reltype + + + + String + + + + + + + + + +

    For (binary) relational Links, a String + identifying the relationship type

    + +
    top + + + + Boolean + + + + + + + + + true + + +

    Whether or not this Link should be drawn above + the text row (if false, it will be drawn below)

    + +
    category + + + + String + + + + + + + + + default + + +

    Links can be shown/hidden by category

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + +

    Members

    + + + + +

    + endpoints +

    + + + + +
    +

    Gets the left-most and right-most Word anchors that come under this Link. +(Nested Links are treated as extensions of this Link, so the relevant +endpoint of the nested Link is recursively found and used)

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + width +

    + + + + +
    +

    Returns the total horizontal width of the Link, from the leftmost handle +to the rightmost handle

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + leftHandle +

    + + + + +
    +

    Returns the leftmost handle (smallest Row index, smallest x-position) +in this Link

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + rightHandle +

    + + + + +
    +

    Returns the rightmost handle (largest Row index, largest x-position) +in this Link

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + triggerHandle +

    + + + + +
    +

    Returns the handle corresponding to the trigger for this Link, if one +is defined

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + +

    Methods

    + + + + + + + + + + + + + +

    + init(main) +

    +
    + + + + + +
    +

    Initialises this Link against the main API instance

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    main + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + toggle() +

    +
    + + + + + +
    +

    Toggles the visibility of this Link

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + show() +

    +
    + + + + + +
    +

    Enables this Link and draws it onto the visualisation

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + hide() +

    +
    + + + + + +
    +

    Disables this Link and removes it from the visualisation

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + showMainLabel() +

    +
    + + + + + +
    +

    Shows the main label for this Link

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + hideMainLabel() +

    +
    + + + + + +
    +

    Hides the main label for this Link

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + showArgLabels() +

    +
    + + + + + +
    +

    Shows the argument labels for this Link

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + hideArgLabels() +

    +
    + + + + + +
    +

    Hides the argument labels for this Link

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + draw(modAnchoropt) +

    +
    + + + + + +
    +

    (Re-)draw some Link onto the main visualisation

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributesDescription
    modAnchor + + + + Word + + + | + + + WordCluster + + + | + + + Link + + + + + + + + + <optional>
    + + + + + +
    +

    Passed when we know that + (only) a specific anchor has changed position since the last + redraw. If not, the positions of all handles will be recalculated.

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + remove() +

    +
    + + + + + +
    +

    Removes this Link's SVG elements from the visualisation, and removes +all references to it from the data stores

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + getLineY(row) +

    +
    + + + + + +
    +

    Returns the y-position that this Link's main line will have if it were +drawn in the given row (based on the Row's position, and this Link's slot)

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    row + + + + Row + + + + + + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + calculateSlot(words) +

    +
    + + + + + +
    +

    Given the full array of Words in the document, calculates this Link's +slot based on other crossing/intervening/nested Links, recursively if +necessary.

    +

    Principles: +1) Links with no other Links intervening have priority for lowest slot +2) Links with fully slotted intervening Links (i.e., no crossings) have + second priority +3) Crossed Links have lowest priority, and are handled in order from + left to right and descending order of length (in terms of number of + Words covered)

    +

    Sorting of the full Links array is handled by +Util.sortForSlotting.

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    words + + + + Array.<Word> + + + + + + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + drawBbox() +

    +
    + + + + + +
    +

    Draws the outline of this component's bounding box

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + drawTextBbox() +

    +
    + + + + + +
    +

    Draws the outline of the text element's bounding box

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + +
    + +
    + + + + + + + + + + \ No newline at end of file diff --git a/docs/Main.html b/docs/Main.html new file mode 100644 index 0000000..1e92f37 --- /dev/null +++ b/docs/Main.html @@ -0,0 +1,3737 @@ + + + + + + + + + Main - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + Main +

    + + + + +
    +
    + +

    + + Main + +

    + + + +
    + +
    +
    + + + + + + + + + + + + +

    + new Main(container, options) +

    +
    + + + + + +
    +

    Initialises a TAG instance with the given parameters

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    container + + + + String + + + | + + + Element + + + | + + + jQuery + + + + + + + +

    Either a string containing the + ID of the container element, or the element itself (as a + native/jQuery object)

    + +
    options + + + + Object + + + + + + + +

    Overrides for default library options

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + + +

    Methods

    + + + + + + + + + + + + + +

    + loadData(data, format) +

    +
    + + + + + +
    +

    Loads the given annotation data onto the TAG visualisation

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    data + + + + Object + + + + + + + +

    The data to load

    + +
    format + + + + String + + + + + + + +

    One of the supported format identifiers for + the data

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + (async) loadUrlAsync(path, format) +

    +
    + + + + + +
    +

    Reads the given data file asynchronously and loads it onto the TAG +visualisation

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    path + + + + Object + + + + + + + +

    The path pointing to the data

    + +
    format + + + + String + + + + + + + +

    One of the supported format identifiers for + the data

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + (async) loadFilesAsync(fileList, format) +

    +
    + + + + + +
    +

    Reads the given annotation files and loads them onto the TAG +visualisation

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    fileList + + + + FileList + + + + + + + +

    We generally expect only one file here, but + some formats (e.g., Brat) involve multiple files per dataset

    + +
    format + + + + String + + + + + + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + init() +

    +
    + + + + + +
    +

    Prepares all the Rows/Words/Links. +Adds all Words/WordClusters to Rows in the visualisation, but does not draw +Links or colour the various Words/WordTags

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + draw() +

    +
    + + + + + +
    +

    Resizes Rows and (re-)draws Links and WordClusters, without changing +the positions of Words/Link handles

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + clear() +

    +
    + + + + + +
    +

    Removes all elements from the visualisation

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + redraw() +

    +
    + + + + + +
    +

    Resets and redraws the visualisation using the data currently stored by the +Parser (if any)

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + resize() +

    +
    + + + + + +
    +

    Fits the SVG element and its children to the size of its container

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + loadTaxonomyYaml(taxonomy) +

    +
    + + + + + +
    +

    Loads a new taxonomy specification (in YAML form) into the module

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    taxonomy + + + + String + + + + + + + +

    A YAML string representing the taxonomy object

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + getTaxonomyYaml() +

    +
    + + + + + +
    +

    Returns a YAML representation of the currently loaded taxonomy

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + getTaxonomyTree() → {Array} +

    +
    + + + + + +
    +

    Returns the currently loaded taxonomy as an Array. +Simple labels are stored as Strings in Arrays, and category labels are +stored as single-key objects.

    +

    E.g., a YAML document like the following:

    +
      +
    • Label A
    • +
    • Category 1:
        +
      • Label B
      • +
      • Label C
      • +
      +
    • +
    • Label D
    • +
    +

    Parses to the following taxonomy object:

    +

    [ + "Label A", + { + "Category 1": [ + "Label B", + "Label C" + ] + }, + "Label D" + ]

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + getColour(label) +

    +
    + + + + + +
    +

    Given some label (either for a WordTag or WordCluster), return the +colour that the taxonomy manager has assigned to it

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    label + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + setColour(label, colour) +

    +
    + + + + + +
    +

    Sets the colour for some label (either for a WordTag or WordCluster) +and redraws the visualisation

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    label + + + + +
    colour + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + exportSvg() +

    +
    + + + + + +
    +

    Exports the current visualisation as an SVG file

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + setOption(option, value) +

    +
    + + + + + +
    +

    Changes the value of the given option setting +(Redraw to see changes)

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    option + + + + String + + + + + + + + + +
    value + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + getOption(option) +

    +
    + + + + + +
    +

    Gets the current value for the given option setting

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    option + + + + String + + + + + + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + getTopLinkCategories() +

    +
    + + + + + +
    +

    Returns an Array of all the categories available for the top Links +(Generally, event/relation annotations)

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + setTopLinkCategory(category) +

    +
    + + + + + +
    +

    Shows the specified category of top Links, hiding the others

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    category + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + getBottomLinkCategories() +

    +
    + + + + + +
    +

    Returns an Array of all the categories available for the bottom Links +(Generally, syntactic/dependency parses)

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + setBottomLinkCategory(category) +

    +
    + + + + + +
    +

    Shows the specified category of bottom Links, hiding the others

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    category + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + getTagCategories() +

    +
    + + + + + +
    +

    Returns an Array of all the categories available for top Word tags +(Generally, text-bound mentions)

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + setTopTagCategory(category) +

    +
    + + + + + +
    +

    Shows the specified category of top Word tags

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    category + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + setBottomTagCategory(category) +

    +
    + + + + + +
    +

    Shows the specified category of bottom Word tags

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    category + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + setTopMainLabelVisibility(visible) +

    +
    + + + + + +
    +

    Shows/hides the main label on top Links

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    visible + + + + Boolean + + + + + + + +

    Show if true, hide if false

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + setTopArgLabelVisibility(visible) +

    +
    + + + + + +
    +

    Shows/hides the argument labels on top Links

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    visible + + + + Boolean + + + + + + + +

    Show if true, hide if false

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + setBottomMainLabelVisibility(visible) +

    +
    + + + + + +
    +

    Shows/hides the main label on bottom Links

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    visible + + + + Boolean + + + + + + + +

    Show if true, hide if false

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + setBottomArgLabelVisibility(visible) +

    +
    + + + + + +
    +

    Shows/hides the argument labels on bottom Links

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    visible + + + + Boolean + + + + + + + +

    Show if true, hide if false

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + +
    + +
    + + + + + + + + + + \ No newline at end of file diff --git a/docs/Row.html b/docs/Row.html new file mode 100644 index 0000000..b4cdd0b --- /dev/null +++ b/docs/Row.html @@ -0,0 +1,2562 @@ + + + + + + + + + Row - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + Row +

    + + + + +
    +
    + +

    + + Row + +

    + + + +
    + +
    +
    + + + + + + + + + + + + +

    + new Row(svg, config, idx, ry, rh) +

    +
    + + + + + +
    +

    Creates a new Row for holding Words.

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDefaultDescription
    svg + + + + +

    This Row's SVG group

    + +
    config + + + + Config~Config + + + + + + + + + +

    The Config object for the parent TAG + instance

    + +
    idx + + + + Number + + + + + + + + + 0 + + +

    The Row's index

    + +
    ry + + + + Number + + + + + + + + + 0 + + +

    The y-position of the Row's top edge

    + +
    rh + + + + Number + + + + + + + + + 100 + + +

    The Row's height

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + +

    Members

    + + + + +

    + baseline +

    + + + + +
    +

    Gets the y-position of the Row's baseline (where the draggable resize +line is, and the baseline for all the Row's words)

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + ry2 +

    + + + + +
    +

    Returns the lower bound of the Row on the y-axis

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + maxSlot +

    + + + + +
    +

    Returns the maximum slot occupied by Links related to Words on this Row. +Considers positive slots, so only accounts for top Links.

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + minSlot +

    + + + + +
    +

    Returns the minimum slot occupied by Links related to Words on this Row. +Considers negative slots, so only accounts for bottom Links.

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + wordHeight +

    + + + + +
    +

    Returns the maximum height above the baseline of the Word +elements on the Row (accounting for their top WordTags and attached +WordClusters, if present)

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + wordDescent +

    + + + + +
    +

    Returns the maximum descent below the baseline of the Word +elements on the Row (accounting for their bottom WordTags, if present)

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + minHeight +

    + + + + +
    +

    Returns the minimum amount of height above the baseline needed to fit +all this Row's Words, top WordTags and currently-visible top Links. +Includes vertical Row padding.

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + minDescent +

    + + + + +
    +

    Returns the minimum amount of descent below the baseline needed to fit +all this Row's bottom WordTags and currently-visible bottom Links. +Includes vertical Row padding.

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + availableSpace +

    + + + + +
    +

    Returns the amount of space available at the end of this Row for adding +new Words

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + +

    Methods

    + + + + + + + + + + + + + +

    + svgInit(mainSvg) +

    +
    + + + + + +
    +

    Initialises the SVG elements related to this Row, and performs an +initial draw of the baseline/resize line

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    mainSvg + + +

    The main SVG document

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + remove() → {*} +

    +
    + + + + + +
    +

    Removes all elements related to this Row from the main SVG document

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + dy(y) +

    +
    + + + + + +
    +

    Changes the y-position of this Row's upper bound by the given amount

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    y + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + move(y) +

    +
    + + + + + +
    +

    Moves this Row's upper bound vertically to the given y-position

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    y + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + height(rh) +

    +
    + + + + + +
    +

    Sets the height of this Row

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    rh + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + width(rw) +

    +
    + + + + + +
    +

    Sets the width of this Row

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    rw + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + addWord(word, index, forceX) → {number} +

    +
    + + + + + +
    +

    Adds the given Word to this Row at the given index, adjusting the +x-positions of any Words with higher indices. +Optionally, attempts to force an x-position for the Word. +If adding the Word to the Row causes any existing Words to overflow its +bounds, will return the index of the first Word that no longer fits.

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    word + + + + +
    index + + + + +
    forceX + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + positionWord(word, newX) → {number} +

    +
    + + + + + +
    +

    Assumes that the given Word is already on this Row. +Tries to move the Word to the given x-position, adjusting the +x-positions of all the following Words on the Row as well. +If this ends up pushing some Words off the Row, returns the index of +the first Word that no longer fits.

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    word + + + + +
    newX + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + removeWord(word) → {Word} +

    +
    + + + + + +
    +

    Removes the specified Word from this Row, returning it for potential +further operations.

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    word + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + removeLastWord() → {Word} +

    +
    + + + + + +
    +

    Removes the last Word from this Row, returning it for potential +further operations.

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + redrawLinksAndClusters() +

    +
    + + + + + +
    +

    Redraws all the unique Links and WordClusters associated with all the +Words in the row

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + drawBbox() +

    +
    + + + + + +
    +

    Draws the outline of this component's bounding box

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + +
    + +
    + + + + + + + + + + \ No newline at end of file diff --git a/docs/RowManager.html b/docs/RowManager.html new file mode 100644 index 0000000..a95756f --- /dev/null +++ b/docs/RowManager.html @@ -0,0 +1,1925 @@ + + + + + + + + + RowManager - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + RowManager +

    + + + + +
    +
    + +

    + + RowManager + +

    + + + +
    + +
    +
    + + + + + + + + + + + + +

    + new RowManager(svg, config) +

    +
    + + + + + +
    +

    Instantiate a RowManager for some TAG instance

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    svg + + +

    The svg.js API object for the current TAG instance

    + +
    config + + +

    The Config object for the instance

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + +

    Members

    + + + + +

    + lastRow +

    + + + + +
    +

    Returns the last Row managed by the RowManager

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + rows +

    + + + + +
    +

    Returns the RowManager's internal Row array

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + +

    Methods

    + + + + + + + + + + + + + +

    + resizeAll() +

    +
    + + + + + +
    +

    Resizes all the Rows in the visualisation, making sure that they all +fit the parent container and that none of the Rows/Words overlap

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + resizeRow() +

    +
    + + + + + +
    +

    Attempts to adjust the height of the Row with index i by the specified +dy. If successful, also adjusts the positions of all the Rows that +follow it accordingly.

    +

    If called without a dy, simply ensures that the Row's height is at +least as large as its minimum height.

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + width(rw) +

    +
    + + + + + +
    +

    Sets the width of all the Rows in the visualisation

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    rw + + + + Number + + + + + + + +

    The new Row width

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + fitWords() +

    +
    + + + + + +
    +

    Makes sure that all Words fit nicely on their Rows without overlaps. +Runs through all the Words on all the Rows in order; the moment one is +found that overlaps with a neighbour, a recursive move is initiated.

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + appendRow() +

    +
    + + + + + +
    +

    Adds a new Row to the bottom of the svg and sets the height of the main +document to match

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + removeLastRow() +

    +
    + + + + + +
    +

    remove last row at the bottom of the svg and resize to match

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + addWordToRow(word, row, i, forceX) +

    +
    + + + + + +
    +

    Adds the given Word to the given Row at the given index. +Optionally attempts to force an x-position for the Word, which will also +adjust the x-positions of any Words with higher indices on this Row.

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    word + + + + +
    row + + + + +
    i + + + + +
    forceX + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + moveWordRight() +

    +
    + + + + + +
    +

    Recursively attempts to move the Word at the given index on the given +Row rightwards. If it runs out of space, moves all other Words right or +to the next Row as needed.

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    params.row + + + + Row + + + + + + + + + +
    params.wordIndex + + + + Number + + + + + + + + + +
    params.dx + + + + Number + + + + + + + +

    A positive number specifying how far to the + right we should move the Word

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + moveWordLeft() → {Boolean} +

    +
    + + + + + +
    +

    Recursively attempts to move the Word at the given index on the given +Row leftwards. If it runs out of space, tries to move preceding Words +leftwards or to the previous Row as needed.

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    params.row + + + + Row + + + + + + + + + +
    params.wordIndex + + + + Number + + + + + + + + + +
    params.dx + + + + Number + + + + + + + +

    A positive number specifying how far to the + left we should try to move the Word

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + moveFirstWordUp(index) +

    +
    + + + + + +
    +

    Move the first Word on the Row with the given index up to the end +of the previous Row

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    index + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + moveLastWordDown(index) +

    +
    + + + + + +
    +

    Move the last Word on the Row with the given index down to the start of +the next Row

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    index + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + +
    + +
    + + + + + + + + + + \ No newline at end of file diff --git a/docs/Word.html b/docs/Word.html new file mode 100644 index 0000000..6ff91e7 --- /dev/null +++ b/docs/Word.html @@ -0,0 +1,2635 @@ + + + + + + + + + Word - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + Word +

    + + + + +
    +
    + +

    + + Word + +

    + + + +
    + +
    +
    + + + + + + + + + + + + +

    + new Word(text, idx) +

    +
    + + + + + +
    +

    Creates a new Word instance

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    text + + + + String + + + + + + + +

    The raw text for this Word

    + +
    idx + + + + Number + + + + + + + +

    The index of this Word within the + currently-parsed document

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + +

    Members

    + + + + +

    + boxWidth +

    + + + + +
    +

    Returns the width of the bounding box for this Word and its WordTags.

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + minWidth +

    + + + + +
    +

    Returns the minimum width needed to hold this Word and its WordTags. +Differs from boxWidth in that it will also reserve space for the Word's +WordClusters if necessary (even though the WordClusters are not +technically part of the Word's box)

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + boxHeight +

    + + + + +
    +

    Returns the extent of the bounding box for this Word above the Row's line

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + descendHeight +

    + + + + +
    +

    Returns the extent of the bounding box for this Word below the Row's line

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + absoluteY +

    + + + + +
    +

    Returns the absolute y-position of the top of this Word's bounding box

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + absoluteDescent +

    + + + + +
    +

    Returns the absolute y-position of the bottom of this Word's bounding box

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + cx +

    + + + + +
    +

    Returns the absolute x-position of the centre of this Word's box

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + textWidth +

    + + + + +
    +

    Returns the width of the bounding box of the Word's SVG text element

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + textHeight +

    + + + + +
    +

    Returns the height of the bounding box of the Word's SVG text element

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + textRcx +

    + + + + +
    +

    Returns the relative x-position of the centre of the bounding +box of the Word's SVG text element

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + isPunct +

    + + + + +
    +

    Returns true if this Word contains a single punctuation character

    +

    FIXME: doesn't handle fancier unicode punctuation | should exclude +left-punctuation e.g. left-paren or left-quote

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + +

    Methods

    + + + + + + + + + + + + + +

    + addEventId(id) +

    +
    + + + + + +
    +

    Any event IDs (essentially arbitrary labels) that this Word is +associated with

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    id + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + registerTag(category, tag) +

    +
    + + + + + +
    +

    Register a tag for this word under the given category. +At run-time, one category of tags can be shown above this Word and +another can be shown below it.

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDefaultDescription
    category + + + + String + + + + + + + + + default + + + + +
    tag + + + + String + + + + + + + + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + getTagCategories() +

    +
    + + + + + +
    +

    Returns all the unique tag categories currently registered for this Word

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + setTopTagCategory(category) +

    +
    + + + + + +
    +

    Sets the top tag category for this Word, redrawing it if it is initialised

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    category + + + + String + + + + + + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + setBottomTagCategory(category) +

    +
    + + + + + +
    +

    Sets the bottom tag category for this Word, redrawing it if it is +initialised

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    category + + + + String + + + + + + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + init(main) +

    +
    + + + + + +
    +

    Initialises the SVG elements related to this Word, and performs an +initial draw of it and its WordTags. +The Word will be drawn in the top left corner of the canvas, but will +be properly positioned when added to a Row.

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    main + + +

    The main API instance

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +

    Redraw Links

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + redrawClusters() +

    +
    + + + + + +
    +

    Redraw all clusters (they should always be visible)

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + move(x) +

    +
    + + + + + +
    +

    Sets the base x-position of this Word and its attendant SVG elements +(including its WordTags)

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    x + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + dx(x) +

    +
    + + + + + +
    +

    Moves the base x-position of this Word and its attendant SVG elements +by the given amount

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    x + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + alignBox() +

    +
    + + + + + +
    +

    Aligns the elements of this Word and any attendant WordTags such that +the entire Word's bounding box has an x-value of 0, and an x2-value +equal to its width

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + drawBbox() +

    +
    + + + + + +
    +

    Draws the outline of this component's bounding box

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + drawTextBbox() +

    +
    + + + + + +
    +

    Draws the outline of the text element's bounding box

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + +
    + +
    + + + + + + + + + + \ No newline at end of file diff --git a/docs/WordCluster.html b/docs/WordCluster.html new file mode 100644 index 0000000..2878368 --- /dev/null +++ b/docs/WordCluster.html @@ -0,0 +1,1523 @@ + + + + + + + + + WordCluster - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + WordCluster +

    + + + + +
    +
    + +

    + + WordCluster + +

    + + +
    +

    Tags for cases where multiple words make up a single entity +E.g.: The two words "DNA damage" as a single "BioProcess"

    +

    Act as the anchor for any incoming Links (in lieu of the Words it covers)

    +

    WordTag -> Word -> Row + [WordCluster] + Link

    +
    + + +
    + +
    +
    + + + + + +

    Constructor

    + + + + + + + + +

    + new WordCluster(words, val) +

    +
    + + + + + +
    +

    Creates a new WordCluster instance

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    words + + + + Array.<Word> + + + + + + + +

    An array of the Words that this cluster will cover

    + +
    val + + + + String + + + + + + + +

    The raw text for this cluster's label

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + +

    Members

    + + + + +

    + endpoints +

    + + + + +
    +

    Returns an array of the first and last Words covered by this WordCluster

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + absoluteY +

    + + + + +
    +

    Returns the absolute y-position of the top of the WordCluster's label +(for positioning Links that point at it)

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + fullHeight +

    + + + + +
    +

    Returns the height of this WordCluster, from Row baseline to the top of +its label

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + cx +

    + + + + +
    +

    Returns the x-position of the centre of this WordCluster's label

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + +

    + textWidth +

    + + + + +
    +

    Returns the width of the bounding box of the WordTag's SVG text element

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + +

    Methods

    + + + + + + + + + + + + + +

    + addEventId(id) +

    +
    + + + + + +
    +

    Any event IDs (essentially arbitrary labels) that this WordCluster is +associated with

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    id + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + text(val) → {*} +

    +
    + + + + + +
    +

    Sets the text of this WordCluster, or returns this WordCluster's SVG text +element

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    val + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + init(word, main) +

    +
    + + + + + +
    +

    Initialise this WordCluster against the main API instance. +Will be called once each by every Word within this cluster's coverage, +but we are really only interested in the first Word and the last Word

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    word + + + + Word + + + + + + + +

    A Word within this cluster's coverage.

    + +
    main + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + draw() +

    +
    + + + + + +
    +

    Draws in the SVG elements for this WordCluster +https://codepen.io/explosion/pen/YGApwd

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + getBaseY(row) +

    +
    + + + + + +
    +

    Calculates what the absolute y-value for the base of this cluster's curly +brace should be if it were drawn on the given Row

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    row + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + drawBbox() +

    +
    + + + + + +
    +

    Draws the outline of this component's bounding box

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + drawTextBbox() +

    +
    + + + + + +
    +

    Draws the outline of the text element's bounding box

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + +
    + +
    + + + + + + + + + + \ No newline at end of file diff --git a/docs/WordTag.html b/docs/WordTag.html new file mode 100644 index 0000000..3cee886 --- /dev/null +++ b/docs/WordTag.html @@ -0,0 +1,1254 @@ + + + + + + + + + WordTag - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + WordTag +

    + + + + +
    +
    + +

    + + WordTag + +

    + + +
    +

    Tags for single entities/tokens. +Essentially a helper class for Words; should not be directly instantiated +by Parsers.

    +

    [WordTag] -> Word -> Row + WordCluster + Link

    +
    + + +
    + +
    +
    + + + + + +

    Constructor

    + + + + + + + + +

    + new WordTag(val, word, config, top) +

    +
    + + + + + +
    +

    Creates a new WordTag instance

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDefaultDescription
    val + + + + String + + + + + + + + + +

    The raw text for this WordTag

    + +
    word + + + + Word + + + + + + + + + +

    The parent Word for this WordTag

    + +
    config + + + + Config~Config + + + + + + + + + +

    The Config object for the parent TAG + instance

    + +
    top + + + + Boolean + + + + + + + + + true + + +

    True if this WordTag should be drawn above the + parent Word, false if it should be drawn below

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + +

    Members

    + + + + +

    + textWidth +

    + + + + +
    +

    Returns the width of the bounding box of the WordTag's SVG text element

    +
    + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + +

    Methods

    + + + + + + + + + + + + + +

    + draw() +

    +
    + + + + + +
    +

    (Re-)draws this WordTag's SVG elements onto the visualisation

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + centre() +

    +
    + + + + + +
    +

    Centres this WordTag and its line horizontally against the base Word's +current position +(N.B.: SVG Text elements are positioned on the x-axis by their centres)

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + remove() → {*} +

    +
    + + + + + +
    +

    Removes this WordTag's SVG elements from the visualisation +If this instance is not deleted, it can be redrawn with the .draw() +method

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + drawTagLine() +

    +
    + + + + + +
    +

    Draws a connecting line between this WordTag and its parent Word, if +this is a top WordTag.

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + text(val) → {*} +

    +
    + + + + + +
    +

    Sets the text of this WordTag, or returns this WordTag's SVG text element

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    val + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + boxWidth() +

    +
    + + + + + +
    +

    Returns the width of the bounding box for this WordTag

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + drawBbox() +

    +
    + + + + + +
    +

    Draws the outline of this component's bounding box

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + drawTextBbox() +

    +
    + + + + + +
    +

    Draws the outline of the text element's bounding box

    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + +
    + +
    + + + + + + + + + + \ No newline at end of file diff --git a/docs/components_link.js.html b/docs/components_link.js.html new file mode 100644 index 0000000..77fd2a5 --- /dev/null +++ b/docs/components_link.js.html @@ -0,0 +1,1535 @@ + + + + + + + + + + + components/link.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + components/link.js +

    + + + + + +
    +
    +
    import $ from "jquery";
    +
    +import WordTag from "./word-tag.js";
    +import WordCluster from "./word-cluster.js";
    +
    +import Util from "../util.js";
    +
    +class Link {
    +  /**
    +   * Creates a new Link between other entities.  Links can have Words or
    +   * other Links as argument anchors.
    +   *
    +   * @param {String} eventId - Unique ID
    +   * @param {Word} trigger - Text-bound entity that indicates the presence of
    +   *     this event
    +   * @param {Object[]} args - The arguments to this Link. An Array of
    +   *     Objects specifying `anchor` and `type`
    +   * @param {String} reltype - For (binary) relational Links, a String
    +   *     identifying the relationship type
    +   * @param {Boolean} top - Whether or not this Link should be drawn above
    +   *     the text row (if false, it will be drawn below)
    +   * @param {String} category - Links can be shown/hidden by category
    +   */
    +  constructor(eventId, trigger, args, reltype, top = true, category = "default") {
    +    // ---------------
    +    // Core properties
    +    this.eventId = eventId;
    +
    +    // Links can be either Event or Relation annotations, to borrow the BRAT
    +    // terminology.  Event annotations have a `trigger` entity from the text
    +    // that specifies the event, whereas Relation annotations have a `type`
    +    // that may not be bound to any particular part of the raw text.
    +    // Both types of Links have arguments, which may themselves be nested links.
    +    this.trigger = trigger;
    +    this.reltype = reltype;
    +    this.arguments = args;
    +
    +    // Contains references to higher-level Links that have this Link as an
    +    // argument
    +    this.links = [];
    +
    +    this.top = top;
    +    this.category = category;
    +
    +    // Is this Link currently visible in the visualisation?
    +    this.visible = false;
    +
    +    // Should this Link be drawn onto the visualisation?
    +    this.enabled = false;
    +
    +    // Slots are the y-intervals at which links may be drawn.
    +    // The main instance will need to provide the `.calculateSlot()` method
    +    // with the full set of Words in the data so that we can check for
    +    // crossing/intervening Links.
    +    this.slot = null;
    +    this.calculatingSlot = false;
    +
    +    // Fill in references in this Link's trigger/argument Words
    +    if (this.trigger) {
    +      this.trigger.links.push(this);
    +    }
    +    this.arguments.forEach(arg => {
    +      arg.anchor.links.push(this);
    +    });
    +
    +    // ---------------
    +    // Visualisation-related properties
    +    this.initialised = false;
    +
    +    // The main API/config instance this Link is attached to
    +    this.main = null;
    +    this.config = null;
    +
    +    // SVG-related properties
    +
    +    // SVG parents
    +    this.mainSvg = null;
    +    this.svg = null;
    +
    +    // Handle objects
    +    this.handles = [];
    +
    +    // SVG Path and last-drawn path string
    +    this.path = null;
    +    this.lastPathString = "";
    +
    +    // (Horizontal-only) width of the last drawn line for this Link; used
    +    // for calculating Handle positions for parent Links
    +    this.lastDrawnWidth = null;
    +
    +    // Objects for main Link label / argument labels
    +    this.argLabels = [];
    +    this.linkLabel = null;
    +  }
    +
    +  /**
    +   * Initialises this Link against the main API instance
    +   * @param main
    +   */
    +  init(main) {
    +    this.main = main;
    +    this.config = main.config;
    +
    +    this.mainSvg = main.svg;
    +    this.svg = main.svg.group()
    +      .addClass("tag-element")
    +      .addClass(this.top ? "link" : "link syntax-link");
    +
    +    // Links are hidden by default; the main function should call `.show()`
    +    // for any Links to be shown
    +    this.svg.hide();
    +
    +    // The main Link line
    +    this.path = this.svg.path()
    +      .addClass("tag-element");
    +
    +    // Init handles and SVG texts.
    +    // If there is a trigger, it will be the first handle
    +    if (this.trigger) {
    +      this.handles.push(new Handle(
    +        this.trigger,
    +        this
    +      ));
    +    }
    +
    +    // Arguments
    +    this.arguments.forEach(arg => {
    +      this.handles.push(new Handle(
    +        arg.anchor,
    +        this
    +      ));
    +
    +      const text = new Label(this.mainSvg, this.svg, arg.type, "link-arg-label");
    +      this.argLabels.push(text);
    +    });
    +
    +    // Main Link label
    +    this.linkLabel = new Label(this.mainSvg, this.svg, this.reltype, "link-main-label");
    +
    +    // Closure for identifying dragged handles
    +    let draggedHandle = null;
    +    let dragStartX = 0;
    +
    +    // Drag/Click events
    +    this.path.draggable()
    +      .on("dragstart", (e) => {
    +        // We use the x and y values (with a little tolerance) to make sure
    +        // that the user is dragging near one of the Link's handles, and not
    +        // just in the middle of the Link's line.
    +        const dragX = e.detail.p.x;
    +
    +        // `dragY` is adjusted for the document's scroll position, but we
    +        // want to compare it against our internal container coordinates
    +        const dragY = e.detail.p.y - $(window).scrollTop();
    +
    +        for (let handle of this.handles) {
    +          // Is this handle in the correct vicinity on the y-axis?
    +          if (this.top) {
    +            // The Link line will be above the handle
    +            if (dragY < this.getLineY(handle.row) - 5 || dragY > handle.y + 5) {
    +              continue;
    +            }
    +          } else {
    +            // The Link line will be below the handle
    +            if (dragY < handle.y - 5 || dragY > this.getLineY(handle.row) + 5) {
    +              continue;
    +            }
    +          }
    +
    +          // Is this handle close enough on the x-axis?
    +          // In particular, the handle arrowheads might get fairly long
    +          let distX = Math.abs(handle.x - dragX);
    +          if (distX > this.config.linkArrowWidth) {
    +            continue;
    +          }
    +
    +          // Is it closer than any previous candidate?
    +          if (!draggedHandle || distX < Math.abs(draggedHandle.x - dragX)) {
    +            // Sold!
    +            draggedHandle = handle;
    +            dragStartX = e.detail.p.x;
    +          }
    +        }
    +
    +      })
    +      .on("dragmove", (e) => {
    +        e.preventDefault();
    +
    +        if (!draggedHandle) {
    +          return;
    +        }
    +
    +        // Handle the change in raw x-position for this `dragmove` iteration
    +        let dx = e.detail.p.x - dragStartX;
    +        dragStartX = e.detail.p.x;
    +        draggedHandle.offset += dx;
    +
    +        // Constrain the handle's offset so that it doesn't end up
    +        // overshooting the sides of its anchor
    +        let anchor = draggedHandle.anchor;
    +        if (anchor instanceof Link) {
    +          // The handle is resting on another Link; offset 0 is the left
    +          // edge of the lower Link
    +          draggedHandle.offset = Math.min(draggedHandle.offset, anchor.width);
    +          draggedHandle.offset = Math.max(draggedHandle.offset, 0);
    +        } else {
    +          // The handle is resting on a WordTag/WordCluster; offset 0 is the
    +          // centre of the tag
    +          let halfWidth;
    +          if (this.top && anchor.topTag instanceof WordTag) {
    +            halfWidth = anchor.topTag.textWidth / 2;
    +          } else if (!this.top && anchor.bottomTag instanceof WordTag) {
    +            halfWidth = anchor.bottomTag.textWidth / 2;
    +          } else if (this.top && anchor instanceof WordCluster) {
    +            halfWidth = anchor.textWidth / 2;
    +          } else {
    +            // Shouldn't happen, but maybe this is pointed directly at a Word?
    +            halfWidth = anchor.boxWidth / 2;
    +          }
    +
    +          // Constrain the handle to be within 3px of the bounds of its base
    +          draggedHandle.offset = Math.min(draggedHandle.offset, halfWidth - 3);
    +          draggedHandle.offset = Math.max(draggedHandle.offset, -halfWidth + 3);
    +        }
    +
    +        this.draw(anchor);
    +      })
    +      .on("dragend", () => {
    +        draggedHandle = null;
    +      });
    +
    +    this.path.dblclick((e) => this.mainSvg.fire("build-tree", {
    +      object: this,
    +      event: e
    +    }));
    +    this.path.node.oncontextmenu = (e) => {
    +      e.preventDefault();
    +      this.mainSvg.fire("link-right-click", {
    +        object: this,
    +        type: "link",
    +        event: e
    +      });
    +    };
    +
    +    this.initialised = true;
    +  }
    +
    +  /**
    +   * Toggles the visibility of this Link
    +   */
    +  toggle() {
    +    if (this.enabled) {
    +      this.hide();
    +    } else {
    +      this.show();
    +    }
    +  }
    +
    +  /**
    +   * Enables this Link and draws it onto the visualisation
    +   */
    +  show() {
    +    this.enabled = true;
    +
    +    if (this.svg && !this.svg.visible()) {
    +      this.svg.show();
    +    }
    +    this.draw();
    +    this.visible = true;
    +  }
    +
    +  /**
    +   * Disables this Link and removes it from the visualisation
    +   */
    +  hide() {
    +    this.enabled = false;
    +
    +    if (this.svg && this.svg.visible()) {
    +      this.svg.hide();
    +    }
    +    this.visible = false;
    +  }
    +
    +  /**
    +   * Shows the main label for this Link
    +   */
    +  showMainLabel() {
    +    this.linkLabel.show();
    +    // Redraw the Link to make sure that the label ends up in the correct spot
    +    this.draw();
    +  }
    +
    +  /**
    +   * Hides the main label for this Link
    +   */
    +  hideMainLabel() {
    +    this.linkLabel.hide();
    +  }
    +
    +  /**
    +   * Shows the argument labels for this Link
    +   */
    +  showArgLabels() {
    +    this.argLabels.forEach(label => label.show());
    +    // Redraw the Link to make sure that the label ends up in the correct spot
    +    this.draw();
    +  }
    +
    +  /**
    +   * Hides the argument labels for this Link
    +   */
    +  hideArgLabels() {
    +    this.argLabels.forEach(label => label.hide());
    +  }
    +
    +  /**
    +   * (Re-)draw some Link onto the main visualisation
    +   *
    +   * @param {Word|WordCluster|Link} [modAnchor] - Passed when we know that
    +   *     (only) a specific anchor has changed position since the last
    +   *     redraw. If not, the positions of all handles will be recalculated.
    +   */
    +  draw(modAnchor) {
    +    if (!this.initialised || !this.enabled) {
    +      return;
    +    }
    +
    +    // Recalculate handle positions
    +    let calcHandles = this.handles;
    +    if (modAnchor) {
    +      // Only one needs to be calculated
    +      calcHandles = [this.handles.find(h => h.anchor === modAnchor)];
    +    }
    +    const changedHandles = [];
    +
    +    // One or more of our anchors might be nested Links.  We need to make
    +    // sure that all of them are already drawn in, so that our offset
    +    // calculations and the like are accurate.
    +    for (let handle of calcHandles) {
    +      const anchor = handle.anchor;
    +      if (anchor instanceof Link && !anchor.visible) {
    +        anchor.show();
    +      }
    +    }
    +
    +    // Offset calculations
    +    for (let handle of calcHandles) {
    +      const anchor = handle.anchor;
    +      // Two possibilities: The anchor is a Word/WordCluster, or it is a
    +      // Link.
    +      if (!(anchor instanceof Link)) {
    +        // No need to account for multiple rows (the handle will be resting
    +        // on the label for a Word/WordCluster)
    +        // The 0-offset location is the centre of the anchor.
    +        const newX = anchor.cx + handle.offset;
    +        const newY = this.top
    +          ? anchor.absoluteY
    +          : anchor.absoluteDescent;
    +
    +        if (handle.x !== newX || handle.y !== newY) {
    +          handle.x = newX;
    +          handle.y = newY;
    +          handle.row = anchor.row;
    +          changedHandles.push(handle);
    +        }
    +      } else {
    +        // The anchor is a Link; the handle rests on another Link's line,
    +        // and the offset might extend to the next row and beyond.
    +        const baseLeft = anchor.leftHandle;
    +
    +        // First, make sure the offset doesn't overshoot the base row
    +        handle.offset = Math.min(handle.offset, anchor.width);
    +        handle.offset = Math.max(handle.offset, 0);
    +
    +        // Handle intervening rows without modifying `handle.offset` or
    +        // the anchor Link directly
    +        let calcOffset = handle.offset;
    +        let calcRow = baseLeft.row;
    +        let calcX = baseLeft.x;
    +
    +        while (calcOffset > calcRow.rw - calcX) {
    +          calcOffset -= calcRow.rw - calcX;
    +          calcX = 0;
    +          calcRow = this.main.rowManager.rows[calcRow.idx + 1];
    +        }
    +
    +        // Last row - Deal with remaining offset
    +        const newX = calcX + calcOffset;
    +        const newY = anchor.getLineY(calcRow);
    +
    +        if (handle.x !== newX || handle.y !== newY) {
    +          handle.x = newX;
    +          handle.y = newY;
    +          handle.row = calcRow;
    +          changedHandles.push(handle);
    +        }
    +      }
    +    }
    +
    +    // If our width has changed, we should update the offset of any of our
    +    // parent Links.
    +    // The parent Link will be redrawn after we're done redrawing this
    +    // one, and any adjustments will be made automatically during the redraw.
    +    if (this.lastDrawnWidth === null) {
    +      this.lastDrawnWidth = this.width;
    +    } else {
    +      const growth = this.width - this.lastDrawnWidth;
    +      this.lastDrawnWidth = this.width;
    +
    +      // To get the parent Link's handle position to remain as constant as
    +      // possible, we should adjust its offset only if our left handle changed
    +      if (changedHandles.length === 1 &&
    +        changedHandles[0] === this.leftHandle) {
    +        for (let parentLink of this.links) {
    +          const parentHandle = parentLink.handles.find(h => h.anchor === this);
    +          parentHandle.offset += growth;
    +          parentHandle.offset = Math.max(parentHandle.offset, 0);
    +          parentLink.draw(this);
    +        }
    +      }
    +    }
    +
    +    // draw a polyline between the trigger and each of its arguments
    +    // https://www.w3.org/TR/SVG/paths.html#PathData
    +    if (this.trigger) {
    +      // This Link has a trigger (Event)
    +      this._drawAsEvent();
    +    } else {
    +      // This Link has no trigger (Relation)
    +      this._drawAsRelation();
    +    }
    +  }
    +
    +  /**
    +   * Removes this Link's SVG elements from the visualisation, and removes
    +   * all references to it from the data stores
    +   */
    +  remove() {
    +    this.svg.remove();
    +
    +    let self = this;
    +
    +    // remove reference to a link
    +    function detachLink(anchor) {
    +      let i = anchor.links.indexOf(self);
    +      if (i > -1) {
    +        anchor.links.splice(i, 1);
    +      }
    +    }
    +
    +    // remove references to link from all anchors
    +    if (this.trigger) {
    +      detachLink(this.trigger);
    +    }
    +    this.arguments.forEach(arg => detachLink(arg.anchor));
    +  }
    +
    +  /**
    +   * Returns the y-position that this Link's main line will have if it were
    +   * drawn in the given row (based on the Row's position, and this Link's slot)
    +   *
    +   * @param {Row} row
    +   */
    +  getLineY(row) {
    +    return this.top
    +      ? row.ry + row.rh - row.wordHeight - this.config.linkSlotInterval * this.slot
    +      // Bottom Links have negative slot numbers
    +      : row.ry + row.rh + row.wordDescent - this.config.linkSlotInterval * this.slot;
    +  }
    +
    +
    +  /**
    +   * Given the full array of Words in the document, calculates this Link's
    +   * slot based on other crossing/intervening/nested Links, recursively if
    +   * necessary.
    +   *
    +   * Principles:
    +   * 1) Links with no other Links intervening have priority for lowest slot
    +   * 2) Links with fully slotted intervening Links (i.e., no crossings) have
    +   *    second priority
    +   * 3) Crossed Links have lowest priority, and are handled in order from
    +   *    left to right and descending order of length (in terms of number of
    +   *    Words covered)
    +   *
    +   * Sorting of the full Links array is handled by
    +   * {@link module:Util.sortForSlotting Util.sortForSlotting}.
    +   *
    +   * @param {Word[]} words
    +   */
    +  calculateSlot(words) {
    +    // We may already have calculated this Link's slot in a previous
    +    // iteration, or *be* calculating this Link's slot in a previous
    +    // iteration (i.e., in the case of crossing Links).
    +    if (this.slot) {
    +      // Already calculated
    +      return this.slot;
    +    } else if (this.calculatingSlot) {
    +      // Currently trying to calculate this slot in a previous recursive
    +      // iteration
    +      return 0;
    +    }
    +
    +    this.calculatingSlot = true;
    +
    +    // Pick up all the intervening Links
    +    // We don't include the first and last Word since Links ending on the
    +    // same Word can share the same slot if they don't otherwise overlap
    +    let intervening = [];
    +    const coveredWords = words.slice(
    +      this.endpoints[0].idx + 1,
    +      this.endpoints[1].idx
    +    );
    +    // The above comments notwithstanding, the first and last Word should
    +    // know that we are watching them
    +    words[this.endpoints[0].idx].passingLinks.push(this);
    +    words[this.endpoints[1].idx].passingLinks.push(this);
    +
    +    for (const word of coveredWords) {
    +      // Let this Word know we're watching it
    +      word.passingLinks.push(this);
    +
    +      // Word Links
    +      for (const link of word.links) {
    +        // Only consider Links on the same side of the Row as this one
    +        if (link !== this &&
    +          link.top === this.top && intervening.indexOf(link) < 0) {
    +          intervening.push(link);
    +        }
    +      }
    +
    +      // WordCluster Links
    +      for (const cluster of word.clusters) {
    +        for (const link of cluster.links) {
    +          if (link !== this &&
    +            link.top === this.top && intervening.indexOf(link) < 0) {
    +            intervening.push(link);
    +          }
    +        }
    +      }
    +    }
    +
    +    // All of our own nested Links are also intervening Links
    +    for (const arg of this.arguments) {
    +      if (arg.anchor instanceof Link && intervening.indexOf(arg.anchor) < 0) {
    +        intervening.push(arg.anchor);
    +      }
    +    }
    +
    +    intervening = Util.sortForSlotting(intervening);
    +
    +    // Map to slots, reduce to the highest number seen so far (or 0 if there
    +    // are none)
    +    const maxSlot = intervening
    +      .map(link => link.calculateSlot(words))
    +      .reduce((prev, next) => {
    +        // Absolute numbers -- Slots for bottom Links are negative
    +        next = Math.abs(next);
    +        if (next > prev) {
    +          return next;
    +        } else {
    +          return prev;
    +        }
    +      }, 0);
    +
    +    this.slot = maxSlot + 1;
    +    if (!this.top) {
    +      this.slot = this.slot * -1;
    +    }
    +    this.calculatingSlot = false;
    +    return this.slot;
    +  }
    +
    +  listenForEdit(e) {
    +    this.isEditing = true;
    +
    +    let bbox = e.detail.text.bbox();
    +    e.detail.text
    +      .addClass("tag-element")
    +      .addClass("editing-text");
    +    this.editingText = e.detail.text;
    +    this.editingRect = this.svg.rect(bbox.width + 8, bbox.height + 4)
    +      .x(bbox.x - 4)
    +      .y(bbox.y - 2)
    +      .rx(2)
    +      .ry(2)
    +      .addClass("tag-element")
    +      .addClass("editing-rect")
    +      .back();
    +  }
    +
    +  text(str) {
    +    if (this.editingText) {
    +      if (str === undefined) {
    +        return this.editingText;
    +      }
    +      this.editingText.text(str);
    +    }
    +  }
    +
    +  stopEditing() {
    +    this.isEditing = false;
    +    this.editingText.removeClass("editing-text");
    +    this.editingRect.remove();
    +    this.editingRect = this.editingText = null;
    +    this.draw();
    +  }
    +
    +  /**
    +   * Gets the left-most and right-most Word anchors that come under this Link.
    +   * (Nested Links are treated as extensions of this Link, so the relevant
    +   * endpoint of the nested Link is recursively found and used)
    +   * @return {Word[]}
    +   */
    +  get endpoints() {
    +    let minWord = null;
    +    let maxWord = null;
    +
    +    if (this.trigger) {
    +      minWord = maxWord = this.trigger;
    +    }
    +
    +    this.arguments.forEach(arg => {
    +      if (arg.anchor instanceof Link) {
    +        let endpts = arg.anchor.endpoints;
    +        if (!minWord || minWord.idx > endpts[0].idx) {
    +          minWord = endpts[0];
    +        }
    +        if (!maxWord || maxWord.idx < endpts[1].idx) {
    +          maxWord = endpts[1];
    +        }
    +      } else { // word or wordcluster
    +        if (!minWord || minWord.idx > arg.anchor.idx) {
    +          minWord = arg.anchor;
    +        }
    +        if (!maxWord || maxWord.idx < arg.anchor.idx) {
    +          maxWord = arg.anchor;
    +        }
    +      }
    +    });
    +    return [minWord, maxWord];
    +  }
    +
    +  /**
    +   * Returns the total horizontal width of the Link, from the leftmost handle
    +   * to the rightmost handle
    +   */
    +  get width() {
    +    // Handles on the same row?
    +    if (this.leftHandle.row === this.rightHandle.row) {
    +      return this.rightHandle.x - this.leftHandle.x;
    +    }
    +
    +    // If not, calculate the width (including intervening rows)
    +    let width = 0;
    +    width += this.leftHandle.row.rw - this.leftHandle.x;
    +    for (let i = this.leftHandle.row.idx + 1; i < this.rightHandle.row.idx; i++) {
    +      width += this.main.rowManager.rows[i].rw;
    +    }
    +    width += this.rightHandle.x;
    +
    +    return width;
    +  }
    +
    +  /**
    +   * Returns the leftmost handle (smallest Row index, smallest x-position)
    +   * in this Link
    +   */
    +  get leftHandle() {
    +    return this.handles.reduce((prev, next) => {
    +      if (prev.precedes(next)) {
    +        return prev;
    +      } else {
    +        return next;
    +      }
    +    }, this.handles[0]);
    +  }
    +
    +  /**
    +   * Returns the rightmost handle (largest Row index, largest x-position)
    +   * in this Link
    +   */
    +  get rightHandle() {
    +    return this.handles.reduce((prev, next) => {
    +      if (prev.precedes(next)) {
    +        return next;
    +      } else {
    +        return prev;
    +      }
    +    }, this.handles[0]);
    +  }
    +
    +  /**
    +   * Returns the handle corresponding to the trigger for this Link, if one
    +   * is defined
    +   */
    +  get triggerHandle() {
    +    if (!this.trigger) {
    +      return null;
    +    }
    +
    +    return this.handles.find(handle => handle.anchor === this.trigger);
    +  }
    +
    +  // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    +  // Private helper/setup functions
    +
    +  /**
    +   * Draws this Link as an Event annotation (has a trigger)
    +   * @private
    +   */
    +  _drawAsEvent() {
    +    let d = "";
    +    const triggerHandle = this.triggerHandle;
    +    const pTrigger = {
    +      x: triggerHandle.x,
    +      y: this.top
    +        ? triggerHandle.y - this.config.linkHandlePadding
    +        : triggerHandle.y + this.config.linkHandlePadding
    +    };
    +
    +    // How we draw the lines to each argument's Handle depends on which side
    +    // of the trigger they're on.
    +    // Collect the left and right Handles, sorted by distance from the
    +    // trigger Handle, ascending
    +    const lHandles = [];
    +    const rHandles = [];
    +    for (const handle of this.handles) {
    +      if (handle === triggerHandle) {
    +        continue;
    +      }
    +
    +      if (handle.precedes(triggerHandle)) {
    +        lHandles.push(handle);
    +      } else {
    +        rHandles.push(handle);
    +      }
    +    }
    +    lHandles.sort((a, b) => a.precedes(b) ? 1 : -1);
    +    rHandles.sort((a, b) => a.precedes(b) ? -1 : 1);
    +
    +    // Start drawing lines between the Handles/text.
    +
    +    // To prevent drawing lines over the same coordinates repeatedly, we
    +    // simply tack on additional lines as we move to the arguments further
    +    // from the trigger.
    +    // pReference will be the point on the last drawn argument line from
    +    // which the line to the next argument should begin.
    +    let pReference;
    +
    +    // Left handles
    +    // ============
    +    pReference = null;
    +    for (const handle of lHandles) {
    +      // Handle
    +      // ------
    +      const pHandle = {
    +        x: handle.x,
    +        y: this.top
    +          ? handle.y - this.config.linkHandlePadding
    +          : handle.y + this.config.linkHandlePadding
    +      };
    +
    +      // Line
    +      // ----
    +      // Draw from argument handle to main Link line
    +      d += "M" + [pHandle.x, pHandle.y];
    +
    +      const handleY = this.getLineY(handle.row);
    +      const curveLeftX = pHandle.x + this.config.linkCurveWidth;
    +      const curveLeftY = this.top
    +        ? handleY + this.config.linkCurveWidth
    +        : handleY - this.config.linkCurveWidth;
    +
    +      d += "L" + [pHandle.x, curveLeftY]
    +        + "Q" + [pHandle.x, handleY, curveLeftX, handleY];
    +
    +      // Horizontal line to pReference (if set)
    +      if (pReference) {
    +        if (handle.row.idx !== pReference.row.idx) {
    +          // Draw in Link line across the end of the first row and all
    +          // intervening rows
    +          d += "L" + [handle.row.rw, handleY];
    +
    +          for (let i = handle.row.idx + 1; i < pReference.row.idx; i++) {
    +            const thisRow = this.main.rowManager.rows[i];
    +            const lineY = this.getLineY(thisRow);
    +            d += "M" + [0, lineY]
    +              + "L" + [thisRow.rw, lineY];
    +          }
    +
    +          d += "M" + [0, this.getLineY(pReference.row)];
    +        }
    +
    +        d += "L" + [pReference.x, pReference.y];
    +      }
    +
    +      if (pReference === null) {
    +        // This is the first left handle; draw in the line to the trigger also.
    +
    +        // Label to Trigger handle
    +        // If this handle and the trigger handle are not on the same row,
    +        // draw in the intervening rows first.
    +        let finalY = handleY;
    +
    +        if (handle.row.idx !== triggerHandle.row.idx) {
    +          d += "L" + [handle.row.rw, handleY];
    +
    +          for (let i = handle.row.idx + 1; i < triggerHandle.row.idx; i++) {
    +            const thisRow = this.main.rowManager.rows[i];
    +            const lineY = this.getLineY(thisRow);
    +            d += "M" + [0, lineY]
    +              + "L" + [thisRow.rw, lineY];
    +          }
    +
    +          finalY = this.getLineY(triggerHandle.row);
    +          d += "M" + [0, finalY];
    +        }
    +
    +        // Draw down to trigger on last row
    +        const curveRightX = pTrigger.x - this.config.linkCurveWidth;
    +        const curveRightY = this.top
    +          ? finalY + this.config.linkCurveWidth
    +          : finalY - this.config.linkCurveWidth;
    +
    +        d += "L" + [curveRightX, finalY]
    +          + "Q" + [pTrigger.x, finalY, pTrigger.x, curveRightY]
    +          + "L" + [pTrigger.x, pTrigger.y];
    +      }
    +
    +      // pReference for the next handle will be just past the curved part of
    +      // the left-side vertical line
    +      const refLeft = Math.min(
    +        pHandle.x + this.config.linkCurveWidth,
    +        handle.row.rw
    +      );
    +
    +      pReference = {
    +        x: refLeft,
    +        y: handleY,
    +        row: handle.row
    +      };
    +
    +      // Arrowhead
    +      d += this._arrowhead(pHandle);
    +
    +      // Label
    +      // -----
    +      // The trigger always takes up index 0, so the index for the label is
    +      // one less than the index for this handle in `this.handles`
    +      const label = this.argLabels[this.handles.indexOf(handle) - 1];
    +
    +      let labelCentre = pHandle.x;
    +      if (labelCentre + label.length() / 2 > handle.row.rw) {
    +        labelCentre = handle.row.rw - label.length() / 2;
    +      }
    +      if (labelCentre - label.length() / 2 < 0) {
    +        labelCentre = label.length() / 2;
    +      }
    +      label.move(labelCentre, (pHandle.y + handleY) / 2);
    +    }
    +
    +    // Right handles
    +    // ============
    +    pReference = null;
    +    for (const handle of rHandles) {
    +      // Handle
    +      // ------
    +      const pHandle = {
    +        x: handle.x,
    +        y: this.top
    +          ? handle.y - this.config.linkHandlePadding
    +          : handle.y + this.config.linkHandlePadding
    +      };
    +
    +      // pReference for the next handle will be just past the curved part of
    +      // the right-side vertical line.  We calculate it here since we use it
    +      // when drawing the line itself.
    +      const refRight = Math.max(
    +        pHandle.x - this.config.linkCurveWidth,
    +        0
    +      );
    +
    +      // Line
    +      // ----
    +      // Draw from main Link line to argument handle
    +      const handleY = this.getLineY(handle.row);
    +
    +      d += "M" + [refRight, handleY];
    +
    +      const curveRightX = pHandle.x - this.config.linkCurveWidth;
    +      const curveRightY = this.top
    +        ? handleY + this.config.linkCurveWidth
    +        : handleY - this.config.linkCurveWidth;
    +
    +      d += "L" + [curveRightX, handleY]
    +        + "Q" + [pHandle.x, handleY, pHandle.x, curveRightY]
    +        + "L" + [pHandle.x, pHandle.y];
    +
    +      // Horizontal line from pReference (if set)
    +      if (pReference) {
    +        d += "M" + [pReference.x, pReference.y];
    +
    +        if (pReference.row.idx !== handle.row.idx) {
    +          // Draw in Link line across end of the first row and all
    +          // intervening rows
    +          d += "L" + [pReference.row.rw, pReference.y];
    +
    +          for (let i = pReference.row.idx + 1; i < handle.row.idx; i++) {
    +            const thisRow = this.main.rowManager.rows[i];
    +            const lineY = this.getLineY(thisRow);
    +            d += "M" + [0, lineY]
    +              + "L" + [thisRow.rw, lineY];
    +          }
    +
    +          d += "M" + [0, handleY];
    +        }
    +
    +        d += "L" + [refRight, handleY];
    +      }
    +
    +      if (pReference === null) {
    +        // This is the first right handle; draw in the line from the trigger
    +        // also.
    +        d += "M" + [pTrigger.x, pTrigger.y];
    +
    +        // Draw up from trigger handle to main line, then draw across
    +        // intervening rows if trigger handle and this handle are not on the
    +        // same row
    +        const triggerY = this.getLineY(triggerHandle.row);
    +        const curveLeftX = pTrigger.x + this.config.linkCurveWidth;
    +        const curveLeftY = this.top
    +          ? triggerY + this.config.linkCurveWidth
    +          : triggerY - this.config.linkCurveWidth;
    +
    +        d += "L" + [pTrigger.x, curveLeftY]
    +          + "Q" + [pTrigger.x, triggerY, curveLeftX, triggerY];
    +
    +        if (triggerHandle.row.idx !== handle.row.idx) {
    +          d += "L" + [triggerHandle.row.rw, triggerY];
    +
    +          for (let i = triggerHandle.row.idx + 1; i < handle.row.idx; i++) {
    +            const thisRow = this.main.rowManager.rows[i];
    +            const lineY = this.getLineY(thisRow);
    +            d += "M" + [0, lineY]
    +              + "L" + [thisRow.rw, lineY];
    +          }
    +
    +          d += "M" + [0, handleY];
    +        }
    +
    +        d += "L" + [refRight, handleY];
    +      }
    +
    +      // pReference for the next handle is just inside the curved part of
    +      // the right-side vertical line
    +      pReference = {
    +        x: refRight,
    +        y: handleY,
    +        row: handle.row
    +      };
    +
    +      // Arrowhead
    +      d += this._arrowhead(pHandle);
    +
    +      // Label
    +      // -----
    +      // The trigger always takes up index 0, so the index for the label is
    +      // one less than the index for this handle in `this.handles`
    +      const label = this.argLabels[this.handles.indexOf(handle) - 1];
    +
    +      let labelCentre = pHandle.x;
    +      if (labelCentre + label.length() / 2 > handle.row.rw) {
    +        labelCentre = handle.row.rw - label.length() / 2;
    +      }
    +      if (labelCentre - label.length() / 2 < 0) {
    +        labelCentre = label.length() / 2;
    +      }
    +      label.move(labelCentre, (pHandle.y + handleY) / 2);
    +    }
    +
    +    // Add flat arrowhead to trigger handle if there are both leftward and
    +    // rightward handles
    +    if (lHandles.length > 0 && rHandles.length > 0) {
    +      d += "M" + [pTrigger.x, pTrigger.y]
    +        + "m" + [this.config.linkArrowWidth, 0]
    +        + "l" + [-2 * this.config.linkArrowWidth, 0];
    +    }
    +
    +    // Figure out where to put the main link label
    +    const linkLabelY = this.getLineY(triggerHandle.row);
    +    if (lHandles.length > 0 && rHandles.length > 0) {
    +      // Put it in the middle, right on top of the trigger Word
    +      this.linkLabel.move(triggerHandle.x, linkLabelY);
    +    } else if (lHandles.length === 0) {
    +      // Put it in between the trigger and the first right handle
    +      const rHandle = rHandles[0];
    +
    +      const linkLabelX = rHandle.row.idx === triggerHandle.row.idx
    +        ? (triggerHandle.x + rHandle.x) / 2
    +        : (triggerHandle.x + triggerHandle.row.rw) / 2;
    +
    +      this.linkLabel.move(linkLabelX, linkLabelY);
    +    } else if (rHandles.length === 0) {
    +      // Put it in between the trigger and the first left handle
    +      const lHandle = lHandles[0];
    +
    +      const linkLabelX = lHandle.row.idx === triggerHandle.row.idx
    +        ? (triggerHandle.x + lHandle.x) / 2
    +        : triggerHandle.x / 2;
    +
    +      this.linkLabel.move(linkLabelX, linkLabelY);
    +    }
    +
    +    // Perform draw
    +    if (this.lastPathString !== d) {
    +      this.path.plot(d);
    +      this.lastPathString = d;
    +    }
    +  }
    +
    +  /**
    +   * Draws this Link as a Relation annotation (no trigger/directionality
    +   * implied)
    +   * @private
    +   */
    +  _drawAsRelation() {
    +    let d = "";
    +    const leftHandle = this.leftHandle;
    +    const rightHandle = this.rightHandle;
    +
    +    // Start/end points
    +    const pStart = {
    +      x: leftHandle.x,
    +      y: this.top
    +        ? leftHandle.y - this.config.linkHandlePadding
    +        : leftHandle.y + this.config.linkHandlePadding
    +    };
    +    const pEnd = {
    +      x: rightHandle.x,
    +      y: this.top
    +        ? rightHandle.y - this.config.linkHandlePadding
    +        : rightHandle.y + this.config.linkHandlePadding
    +    };
    +
    +    const sameRow = leftHandle.row.idx === rightHandle.row.idx;
    +
    +    // Width/position of the Link's label
    +    // (Always on the first row for multi-line Links)
    +    const textLength = this.linkLabel.length();
    +    const textY = this.getLineY(leftHandle.row);
    +
    +    // Centre on the segment of the Link line on the first row, making sure
    +    // it doesn't overshoot the right row boundary
    +    let textCentre = sameRow
    +      ? (pStart.x + pEnd.x) / 2
    +      : (pStart.x + leftHandle.row.rw) / 2;
    +    if (textCentre + textLength / 2 > leftHandle.row.rw) {
    +      textCentre = leftHandle.row.rw - textLength / 2;
    +    }
    +
    +    // Start preparing path string
    +    d += "M" + [pStart.x, pStart.y];
    +
    +    // Left handle/label
    +    // Draw up to the level of the Link line, then position the left arg label
    +    const firstY = this.getLineY(leftHandle.row);
    +    let curveLeftX = pStart.x + this.config.linkCurveWidth;
    +    curveLeftX = Math.min(curveLeftX, leftHandle.row.rw);
    +    const curveLeftY = this.top
    +      ? firstY + this.config.linkCurveWidth
    +      : firstY - this.config.linkCurveWidth;
    +
    +    d += "L" + [pStart.x, curveLeftY]
    +      + "Q" + [pStart.x, firstY, curveLeftX, firstY];
    +
    +    const leftLabel = this.argLabels[this.handles.indexOf(leftHandle)];
    +    let leftLabelCentre = pStart.x;
    +    if (leftLabelCentre + leftLabel.length() / 2 > leftHandle.row.rw) {
    +      leftLabelCentre = leftHandle.row.rw - leftLabel.length() / 2;
    +    }
    +    if (leftLabelCentre - leftLabel.length() / 2 < 0) {
    +      leftLabelCentre = leftLabel.length() / 2;
    +    }
    +    leftLabel.move(leftLabelCentre, (pStart.y + firstY) / 2);
    +
    +    // Right handle/label
    +    // Handling depends on whether or not the right handle is on the same
    +    // row as the left handle
    +    let finalY = firstY;
    +    if (!sameRow) {
    +      // Draw in Link line across the end of the first row, and all
    +      // intervening rows
    +      d += "L" + [leftHandle.row.rw, firstY];
    +
    +      for (let i = leftHandle.row.idx + 1; i < rightHandle.row.idx; i++) {
    +        const thisRow = this.main.rowManager.rows[i];
    +        const lineY = this.getLineY(thisRow);
    +        d += "M" + [0, lineY]
    +          + "L" + [thisRow.rw, lineY];
    +      }
    +
    +      finalY = this.getLineY(rightHandle.row);
    +      d += "M" + [0, finalY];
    +    }
    +
    +    // Draw down from the main Link line on last row
    +    const curveRightX = pEnd.x - this.config.linkCurveWidth;
    +    const curveRightY = this.top
    +      ? finalY + this.config.linkCurveWidth
    +      : finalY - this.config.linkCurveWidth;
    +
    +    d += "L" + [curveRightX, finalY]
    +      + "Q" + [pEnd.x, finalY, pEnd.x, curveRightY]
    +      + "L" + [pEnd.x, pEnd.y];
    +
    +    const rightLabel = this.argLabels[this.handles.indexOf(rightHandle)];
    +    let rightLabelCentre = pEnd.x;
    +    if (rightLabelCentre + rightLabel.length() / 2 > rightHandle.row.rw) {
    +      rightLabelCentre = rightHandle.row.rw - rightLabel.length() / 2;
    +    }
    +    if (rightLabelCentre - rightLabel.length() / 2 < 0) {
    +      rightLabelCentre = rightLabel.length() / 2;
    +    }
    +    rightLabel.move(rightLabelCentre, (pEnd.y + finalY) / 2);
    +
    +    // Arrowheads
    +    d += this._arrowhead(pStart)
    +      + this._arrowhead(pEnd);
    +
    +    // Main label
    +    this.linkLabel.move(textCentre, textY);
    +
    +    // Perform draw
    +    if (this.lastPathString !== d) {
    +      this.path.plot(d);
    +      this.lastPathString = d;
    +    }
    +  }
    +
    +  /**
    +   * Returns an SVG path string for an arrowhead pointing towards the given
    +   * point. The arrow points down for top Links, and up for bottom Links.
    +   * @param point
    +   * @return {string}
    +   * @private
    +   */
    +  _arrowhead(point) {
    +    const s = this.config.linkArrowWidth, s2 = 5;
    +    return this.top
    +      ? "M" + [point.x - s, point.y - s2] + "l" + [s, s2] + "l" + [s, -s2]
    +      : "M" + [point.x - s, point.y + s2] + "l" + [s, -s2] + "l" + [s, s2];
    +  }
    +
    +  // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    +  // Debug functions
    +  /**
    +   * Draws the outline of this component's bounding box
    +   */
    +  drawBbox() {
    +    const bbox = this.svg.bbox();
    +    this.svg.polyline([
    +      [bbox.x, bbox.y], [bbox.x2, bbox.y], [bbox.x2, bbox.y2], [bbox.x, bbox.y2],
    +      [bbox.x, bbox.y]])
    +      .fill("none")
    +      .stroke({width: 1});
    +  }
    +
    +  /**
    +   * Draws the outline of the text element's bounding box
    +   */
    +  drawTextBbox() {
    +    const bbox = this.svgTexts[0].bbox();
    +    this.svg.polyline([
    +      [bbox.x, bbox.y], [bbox.x2, bbox.y], [bbox.x2, bbox.y2], [bbox.x, bbox.y2],
    +      [bbox.x, bbox.y]])
    +      .fill("none")
    +      .stroke({width: 1});
    +  }
    +}
    +
    +/**
    + * Helper class for Link handles (the start/end-points for the Link's line;
    + * for each Link, there is one handle for each associated Word/nested Link)
    + * @param {Word|Link} anchor - The Word or Link anchor for this Handle
    + * @param {Link} parent - The parent Link that this Handle belongs to
    + */
    +class Handle {
    +  constructor(anchor, parent) {
    +    this.anchor = anchor;
    +    this.parent = parent;
    +
    +    this.x = 0;
    +    this.y = 0;
    +
    +    // Offsets
    +    // -------
    +    // For anchor Links, offsets start at 0 on the left bound of the Link
    +    // For anchor Words/WordTags, offsets start at 0 in the centre of the
    +    // Word/WordTag
    +    this.offset = 0;
    +
    +    // If the handle's anchor has multiple Links associated with it,
    +    // stagger them horizontally by setting this handle's offset
    +    // based on its index in the anchor's list of links.
    +    // We want to sort the Links by slot descending (the ones with higher slots
    +    // should be on the left)
    +    let l = anchor.links
    +      .filter(link => link.top === parent.top)
    +      .sort((a, b) => Math.abs(b.slot) - Math.abs(a.slot));
    +
    +    // Magic number for width to distribute handles across on the same anchor
    +    // TODO: Base on anchor width?
    +    let w = 15;
    +
    +    // Distribute the handles based on their sort position
    +    if (l.length > 1) {
    +      if (anchor instanceof Link) {
    +        this.offset = l.indexOf(parent) * w / (l.length - 1);
    +      } else {
    +        // Word/WordCluster offsets are a bit more complex -- We have to
    +        // sort again based on whether the Link extends to the
    +        // left or right of this anchor, then adjust the offset horizontally to
    +        // account for the fact that offset 0 is the centre of the anchor
    +        const leftLinks = [];
    +        const rightLinks = [];
    +        for (const link of l) {
    +          if (anchor.idx > link.endpoints[0].idx) {
    +            leftLinks.push(link);
    +          } else {
    +            rightLinks.push(link);
    +          }
    +        }
    +
    +        // To minimise crossings, we sort the left Links ascending this time,
    +        // so that the ones with smaller slots are on the left.
    +        leftLinks.sort((a, b) => Math.abs(a.slot) - Math.abs(b.slot));
    +        l = leftLinks.concat(rightLinks);
    +        this.offset = (l.indexOf(parent) * w / (l.length - 1)) - w / 2;
    +      }
    +    }
    +
    +    // Row
    +    // ---
    +    // There are two possibilities; the argument might be a Word, or it
    +    // might be a Link.  For Words, the Handle is on the same Row.  For
    +    // Links, the Handle is in the same Row as the Link's left endpoint.
    +    if (anchor instanceof Link) {
    +      this.row = anchor.endpoints[0].row;
    +    } else {
    +      this.row = anchor.row;
    +    }
    +  }
    +
    +  /**
    +   * Returns true if this handle precedes the given handle
    +   * (i.e., this handle has an earlier Row, or is to its left within the
    +   * same row)
    +   * @param {Handle} handle
    +   */
    +  precedes(handle) {
    +    if (!this.row || !handle.row) {
    +      return false;
    +    }
    +
    +    return this.row.idx < handle.row.idx ||
    +      (this.row.idx === handle.row.idx && this.x < handle.x);
    +  }
    +}
    +
    +/**
    + * Helper class for various types of labels to be drawn on/around the Link.
    + * Consists of two main SVG elements:
    + * - An SVG Text element with the label text, drawn in some given colour
    + * - Another SVG Text element with the same text, but with a larger stroke
    + *   width and drawn in white, to serve as the background for the main element
    + *
    + * @param mainSvg - The main SVG document (for firing events, etc.)
    + * @param {svgjs.Doc} svg - The SVG document/group to draw the Text elements in
    + * @param {String} text - The text of the Label
    + * @param {String} addClass - Any additional CSS classes to add to the SVG
    + *     elements
    + */
    +class Label {
    +  constructor(mainSvg, svg, text, addClass) {
    +    this.mainSvg = mainSvg;
    +    this.svg = svg.group();
    +
    +    // Main label
    +    /** @type svgjs.Text */
    +    this.svgText = this.svg.plain(text)
    +      .addClass("tag-element")
    +      .addClass("link-text")
    +      .addClass(addClass);
    +
    +    // Calculate the y-interval between the Text element's top edge and
    +    // baseline, so that we can transform the background / move the Label
    +    // around accordingly.
    +    // Svg.js has actually already done this for us -- the value of `.y()`
    +    // is the top edge, and `.attr("y")` is the baseline
    +    this.svgTextBbox = this.svgText.bbox();
    +    this.ascent = this.svgText.attr("y") - this.svgText.y();
    +    this.baselineYOffset = this.ascent - this.svgTextBbox.h / 2;
    +
    +    // Background (rectangle)
    +    this.svgBackground = this.svg.rect(
    +      this.svgTextBbox.width + 2,
    +      this.svgTextBbox.height
    +    )
    +      .addClass("tag-element")
    +      .addClass("link-text-bg")
    +      .addClass(addClass)
    +      .radius(2.5)
    +      .back();
    +    // Transform the rectangle to sit nicely behind the label
    +    this.svgBackground.transform({
    +      x: -this.svgTextBbox.width / 2 - 1,
    +      y: -this.ascent
    +    });
    +
    +    // // Background (text)
    +    // this.svgBackground = this.svg.text(text)
    +    //   .addClass("tag-element")
    +    //   .addClass("link-text-bg")
    +    //   .addClass(addClass)
    +    //   .back();
    +
    +    // Click events
    +    this.svgText.node.oncontextmenu = (e) => {
    +      this.selectedLabel = text;
    +      e.preventDefault();
    +      this.mainSvg.fire("link-label-right-click", {
    +        object: this.svgText,
    +        type: "text",
    +        event: e
    +      });
    +    };
    +    this.svgText.click((e) => this.mainSvg.fire("link-label-edit", {
    +      object: this.svgText,
    +      text,
    +      event: e
    +    }));
    +    this.svgText.dblclick((e) => this.mainSvg.fire("build-tree", {
    +      object: this.svgText,
    +      event: e
    +    }));
    +
    +    // Start hidden
    +    this.hide();
    +  }
    +
    +  /**
    +   * Shows the Label text elements
    +   */
    +  show() {
    +    this.svgBackground.show();
    +    this.svgText.show();
    +  }
    +
    +  /**
    +   * Hides the Label text elements
    +   */
    +  hide() {
    +    this.svgBackground.hide();
    +    this.svgText.hide();
    +  }
    +
    +  /**
    +   * Moves the centre of the baseline of the Label text elements to the given
    +   * coordinates
    +   * (N.B.: SVG Text elements are positioned horizontally by their centres,
    +   * by default.  Also, setting the y-attribute directly allows us to move
    +   * the Text element directly by its baseline, rather than its top edge)
    +   * @param x - New horizontal centre of the Label
    +   * @param y - New baseline of the Label
    +   */
    +  move(x, y) {
    +    this.svgBackground.move(x, y);
    +    this.svgText.attr({x, y});
    +  }
    +
    +  /**
    +   * Centres the Label elements horizontally and vertically on the given point
    +   * @param x - New horizontal centre of the Label
    +   * @param y - New vertical centre of the Label
    +   */
    +  centre(x, y) {
    +    return this.move(x, y + this.baselineYOffset);
    +  }
    +
    +  /**
    +   * Returns the length (i.e., width) of the main label
    +   * https://svgjs.com/docs/2.7/elements/#text-length
    +   */
    +  length() {
    +    return this.svgText.length();
    +  }
    +
    +  // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    +  // Debug functions
    +  /**
    +   * Draws the outline of the text element's bounding box
    +   */
    +  drawTextBbox() {
    +    const bbox = this.svgText.bbox();
    +    this.svg.polyline([
    +      [bbox.x, bbox.y], [bbox.x2, bbox.y], [bbox.x2, bbox.y2], [bbox.x, bbox.y2],
    +      [bbox.x, bbox.y]])
    +      .fill("none")
    +      .stroke({width: 1});
    +  }
    +}
    +
    +export default Link;
    +
    +
    + + + + +
    + +
    + + + + + + + + + + diff --git a/docs/components_row.js.html b/docs/components_row.js.html new file mode 100644 index 0000000..8002e75 --- /dev/null +++ b/docs/components_row.js.html @@ -0,0 +1,596 @@ + + + + + + + + + + + components/row.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + components/row.js +

    + + + + + +
    +
    +
    class Row {
    +  /**
    +   * Creates a new Row for holding Words.
    +   *
    +   * @param svg - This Row's SVG group
    +   * @param {Config~Config} config - The Config object for the parent TAG
    +   *   instance
    +   * @param {Number} idx - The Row's index
    +   * @param {Number} ry - The y-position of the Row's top edge
    +   * @param {Number} rh - The Row's height
    +   */
    +  constructor(svg, config, idx = 0, ry = 0, rh = 100) {
    +    this.config = config;
    +
    +    this.idx = idx;
    +    this.ry = ry;     // row position from top
    +    this.rh = rh;     // row height
    +    this.rw = 0;
    +    this.words = [];
    +
    +    // svg elements
    +    this.svg = null;    // group
    +    this.draggable = null;  // row resizer
    +    this.wordGroup = null;  // child group element
    +
    +    // The last Word we removed, if any.
    +    // In case we have a Row with no Words left but which still has Links
    +    // passing through.
    +    this.lastRemovedWord = null;
    +
    +    if (svg) {
    +      this.svgInit(svg);
    +    }
    +  }
    +
    +  /**
    +   * Initialises the SVG elements related to this Row, and performs an
    +   * initial draw of the baseline/resize line
    +   * @param mainSvg - The main SVG document
    +   */
    +  svgInit(mainSvg) {
    +    // All positions will be relative to the baseline for this Row
    +    this.svg = mainSvg.group()
    +      .transform({y: this.baseline})
    +      .addClass("tag-element")
    +      .addClass("row");
    +
    +    // Group element to contain word elements
    +    this.wordGroup = this.svg.group();
    +
    +    // Row width
    +    this.rw = mainSvg.width();
    +
    +    // Add draggable resize line
    +    this.draggable = this.svg.line(0, 0, this.rw, 0)
    +      .addClass("tag-element")
    +      .addClass("row-drag")
    +      .draggable();
    +
    +    let y = 0;
    +    this.draggable
    +      .on("dragstart", function (e) {
    +        y = e.detail.p.y;
    +      })
    +      .on("dragmove", (e) => {
    +        e.preventDefault();
    +        let dy = e.detail.p.y - y;
    +        y = e.detail.p.y;
    +        mainSvg.fire("row-resize", {object: this, y: dy});
    +      });
    +  }
    +
    +  /**
    +   * Removes all elements related to this Row from the main SVG document
    +   * @return {*}
    +   */
    +  remove() {
    +    return this.svg.remove();
    +  }
    +
    +  /**
    +   * Changes the y-position of this Row's upper bound by the given amount
    +   * @param y
    +   */
    +  dy(y) {
    +    this.ry += y;
    +    this.svg.transform({y: this.baseline});
    +  }
    +
    +  /**
    +   * Moves this Row's upper bound vertically to the given y-position
    +   * @param y
    +   */
    +  move(y) {
    +    this.ry = y;
    +    this.svg.transform({y: this.baseline});
    +  }
    +
    +  /**
    +   * Sets the height of this Row
    +   * @param rh
    +   */
    +  height(rh) {
    +    this.rh = rh;
    +    this.svg.transform({y: this.baseline});
    +  }
    +
    +  /**
    +   * Sets the width of this Row
    +   * @param rw
    +   */
    +  width(rw) {
    +    this.rw = rw;
    +    this.draggable.attr("x2", this.rw);
    +  }
    +
    +  /**
    +   * Adds the given Word to this Row at the given index, adjusting the
    +   * x-positions of any Words with higher indices.
    +   * Optionally, attempts to force an x-position for the Word.
    +   * If adding the Word to the Row causes any existing Words to overflow its
    +   * bounds, will return the index of the first Word that no longer fits.
    +   * @param word
    +   * @param index
    +   * @param forceX
    +   * @return {number} - The index of the first Word that no longer fits, if
    +   *     the additional Word causes overflow
    +   */
    +  addWord(word, index, forceX) {
    +    if (isNaN(index)) {
    +      index = this.words.length;
    +    }
    +
    +    word.row = this;
    +    this.words.splice(index, 0, word);
    +    this.wordGroup.add(word.svg);
    +
    +    // Determine the new x-position this Word should have.
    +    word.x = -1;
    +    let newX;
    +    if (index === 0) {
    +      newX = this.config.rowEdgePadding;
    +    } else {
    +      const prevWord = this.words[index - 1];
    +      newX = prevWord.x + prevWord.minWidth;
    +      if (word.isPunct) {
    +        newX += this.config.wordPunctPadding;
    +      } else {
    +        newX += this.config.wordPadding;
    +      }
    +    }
    +
    +    if (forceX) {
    +      newX = forceX;
    +    }
    +
    +    return this.positionWord(word, newX);
    +
    +  }
    +
    +  /**
    +   * Assumes that the given Word is already on this Row.
    +   * Tries to move the Word to the given x-position, adjusting the
    +   * x-positions of all the following Words on the Row as well.
    +   * If this ends up pushing some Words off the Row, returns the index of
    +   * the first Word that no longer fits.
    +   * @param word
    +   * @param newX
    +   * @return {number} - The index of the first Word that no longer fits, if
    +   *     the additional Word causes overflow
    +   */
    +  positionWord(word, newX) {
    +    const wordIndex = this.words.indexOf(word);
    +    const prevWord = this.words[wordIndex - 1];
    +    const nextWord = this.words[wordIndex + 1];
    +
    +    // By default, assume that no Words have overflowed the Row
    +    let overflowIndex = this.words.length;
    +
    +    // Make sure we aren't stomping over a previous Word
    +    if (prevWord) {
    +      const wordPadding = word.isPunct
    +        ? this.config.wordPunctPadding
    +        : this.config.wordPadding;
    +
    +      if (newX < prevWord.x + prevWord.minWidth + wordPadding) {
    +        throw `Trying to position new Word over existing one!
    +        (Row: ${this.idx}, wordIndex: ${wordIndex})`;
    +      }
    +    }
    +
    +    // Change the position of the next Word if we have to;
    +    if (nextWord) {
    +      const nextWordPadding = nextWord.isPunct
    +        ? this.config.wordPunctPadding
    +        : this.config.wordPadding;
    +
    +      if (nextWord.x - nextWordPadding < newX + word.minWidth) {
    +        overflowIndex = this.positionWord(
    +          nextWord,
    +          newX + word.minWidth + nextWordPadding
    +        );
    +      }
    +    }
    +
    +    // We have moved the next Word on the Row, or marked it as part of the
    +    // overflow; at this point, we either have space to move this Word, or
    +    // this Word itself is about to overflow the Row.
    +    if (newX + word.minWidth > this.rw - this.config.rowEdgePadding) {
    +      // Alas.  The overflowIndex is ours.
    +      return wordIndex;
    +    } else {
    +      // We can move.  If any of the Words that follow us overflowed, return
    +      // their index.
    +      word.move(newX);
    +      return overflowIndex;
    +    }
    +  }
    +
    +  /**
    +   * Removes the specified Word from this Row, returning it for potential
    +   * further operations.
    +   * @param word
    +   * @return {Word}
    +   */
    +  removeWord(word) {
    +    if (this.lastRemovedWord !== word) {
    +      this.lastRemovedWord = word;
    +    }
    +    this.words.splice(this.words.indexOf(word), 1);
    +    this.wordGroup.removeElement(word.svg);
    +    return word;
    +  }
    +
    +  /**
    +   * Removes the last Word from this Row, returning it for potential
    +   * further operations.
    +   * @return {Word}
    +   */
    +  removeLastWord() {
    +    return this.removeWord(this.words[this.words.length - 1]);
    +  }
    +
    +  /**
    +   * Redraws all the unique Links and WordClusters associated with all the
    +   * Words in the row
    +   */
    +  redrawLinksAndClusters() {
    +    const elements = [];
    +    for (const word of this.words) {
    +      for (const link of word.passingLinks) {
    +        if (elements.indexOf(link) < 0) {
    +          elements.push(link);
    +        }
    +      }
    +      for (const cluster of word.clusters) {
    +        if (elements.indexOf(cluster) < 0) {
    +          elements.push(cluster);
    +        }
    +      }
    +    }
    +    elements.forEach(element => element.draw());
    +  }
    +
    +  /**
    +   * Gets the y-position of the Row's baseline (where the draggable resize
    +   * line is, and the baseline for all the Row's words)
    +   */
    +  get baseline() {
    +    return this.ry + this.rh;
    +  }
    +
    +  /**
    +   * Returns the lower bound of the Row on the y-axis
    +   * @return {number}
    +   */
    +  get ry2() {
    +    return this.ry + this.rh + this.minDescent;
    +  }
    +
    +  /**
    +   * Returns the maximum slot occupied by Links related to Words on this Row.
    +   * Considers positive slots, so only accounts for top Links.
    +   */
    +  get maxSlot() {
    +    let checkWords = this.words;
    +    if (checkWords.length === 0 && this.lastRemovedWord !== null) {
    +      // We let all our Words go; what was the last one that mattered?
    +      checkWords = [this.lastRemovedWord];
    +    }
    +
    +    let maxSlot = 0;
    +    for (const word of checkWords) {
    +      for (const link of word.passingLinks) {
    +        maxSlot = Math.max(maxSlot, link.slot);
    +      }
    +    }
    +    return maxSlot;
    +  }
    +
    +  /**
    +   * Returns the minimum slot occupied by Links related to Words on this Row.
    +   * Considers negative slots, so only accounts for bottom Links.
    +   */
    +  get minSlot() {
    +    let checkWords = this.words;
    +    if (checkWords.length === 0 && this.lastRemovedWord !== null) {
    +      // We let all our Words go; what was the last one that mattered?
    +      checkWords = [this.lastRemovedWord];
    +    }
    +
    +    let minSlot = 0;
    +    for (const word of checkWords) {
    +      for (const link of word.passingLinks) {
    +        minSlot = Math.min(minSlot, link.slot);
    +      }
    +    }
    +    return minSlot;
    +  }
    +
    +  /**
    +   * Returns the maximum height above the baseline of the Word
    +   * elements on the Row (accounting for their top WordTags and attached
    +   * WordClusters, if present)
    +   */
    +  get wordHeight() {
    +    let wordHeight = 0;
    +    for (const word of this.words) {
    +      wordHeight = Math.max(wordHeight, word.boxHeight);
    +
    +      if (word.clusters.length > 0) {
    +        for (const cluster of word.clusters) {
    +          wordHeight = Math.max(wordHeight, cluster.fullHeight);
    +        }
    +      }
    +    }
    +    if (wordHeight === 0 && this.lastRemovedWord) {
    +      // If we have no Words left on this Row, base our calculations on the
    +      // last Word that was on this Row, for positioning any Links that are
    +      // still passing through
    +      wordHeight = this.lastRemovedWord.boxHeight;
    +      if (this.lastRemovedWord.clusters.length > 0) {
    +        for (const cluster of this.lastRemovedWord.clusters) {
    +          wordHeight = Math.max(wordHeight, cluster.fullHeight);
    +        }
    +      }
    +    }
    +    return wordHeight;
    +  }
    +
    +  /**
    +   * Returns the maximum descent below the baseline of the Word
    +   * elements on the Row (accounting for their bottom WordTags, if present)
    +   */
    +  get wordDescent() {
    +    let wordDescent = 0;
    +    for (const word of this.words) {
    +      wordDescent = Math.max(wordDescent, word.descendHeight);
    +    }
    +    return wordDescent;
    +  }
    +
    +  /**
    +   * Returns the minimum amount of height above the baseline needed to fit
    +   * all this Row's Words, top WordTags and currently-visible top Links.
    +   * Includes vertical Row padding.
    +   * @return {number}
    +   */
    +  get minHeight() {
    +    // Minimum height needed for Words + padding only
    +    let height = this.wordHeight + this.config.rowVerticalPadding;
    +
    +    // Highest visible top Link
    +    let maxVisibleSlot = 0;
    +
    +    let checkWords = this.words;
    +    if (checkWords.length === 0 && this.lastRemovedWord !== null) {
    +      // We let all our Words go; what was the last one that mattered?
    +      checkWords = [this.lastRemovedWord];
    +    }
    +
    +    for (const word of checkWords) {
    +      for (const link of word.links.concat(word.passingLinks)) {
    +        if (link.top && link.visible) {
    +          maxVisibleSlot = Math.max(
    +            maxVisibleSlot,
    +            link.slot
    +          );
    +        }
    +      }
    +    }
    +
    +    // Because top Link labels are above the Link lines, we need to add
    +    // their height if any of the Words on this Row is an endpoint for a Link
    +    if (maxVisibleSlot > 0) {
    +      return height +
    +        maxVisibleSlot * this.config.linkSlotInterval +
    +        this.config.rowExtraTopPadding;
    +    }
    +
    +    // Still here?  No visible top Links on this row.
    +    return height;
    +  }
    +
    +  /**
    +   * Returns the minimum amount of descent below the baseline needed to fit
    +   * all this Row's bottom WordTags and currently-visible bottom Links.
    +   * Includes vertical Row padding.
    +   * @return {number}
    +   */
    +  get minDescent() {
    +    // Minimum height needed for WordTags + padding only
    +    let descent = this.wordDescent + this.config.rowVerticalPadding;
    +
    +    // Lowest visible bottom Link
    +    let minVisibleSlot = 0;
    +
    +    let checkWords = this.words;
    +    if (checkWords.length === 0 && this.lastRemovedWord !== null) {
    +      // We let all our Words go; what was the last one that mattered?
    +      checkWords = [this.lastRemovedWord];
    +    }
    +
    +    for (const word of checkWords) {
    +      for (const link of word.links.concat(word.passingLinks)) {
    +        if (!link.top && link.visible) {
    +          minVisibleSlot = Math.min(
    +            minVisibleSlot,
    +            link.slot
    +          );
    +        }
    +      }
    +    }
    +
    +    // Unlike in the `minHeight()` function, bottom Link labels do not
    +    // extend below the Link lines, so we don't need to add extra padding
    +    // for them.
    +    if (minVisibleSlot < 0) {
    +      return descent + Math.abs(minVisibleSlot) * this.config.linkSlotInterval;
    +    }
    +
    +    // Still here?  No visible bottom Links on this row.
    +    return descent;
    +  }
    +
    +  /**
    +   * Returns the amount of space available at the end of this Row for adding
    +   * new Words
    +   */
    +  get availableSpace() {
    +    if (this.words.length === 0) {
    +      return this.rw - this.config.rowEdgePadding * 2;
    +    }
    +
    +    const lastWord = this.words[this.words.length - 1];
    +    return this.rw - this.config.rowEdgePadding - lastWord.x - lastWord.minWidth;
    +  }
    +
    +  // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    +  // Debug functions
    +  /**
    +   * Draws the outline of this component's bounding box
    +   */
    +  drawBbox() {
    +    const bbox = this.svg.bbox();
    +    this.svg.polyline([
    +      [bbox.x, bbox.y], [bbox.x2, bbox.y], [bbox.x2, bbox.y2], [bbox.x, bbox.y2],
    +      [bbox.x, bbox.y]])
    +      .fill("none")
    +      .stroke({width: 1});
    +  }
    +}
    +
    +export default Row;
    +
    +
    + + + + +
    + +
    + + + + + + + + + + diff --git a/docs/components_word-cluster.js.html b/docs/components_word-cluster.js.html new file mode 100644 index 0000000..1998447 --- /dev/null +++ b/docs/components_word-cluster.js.html @@ -0,0 +1,506 @@ + + + + + + + + + + + components/word-cluster.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + components/word-cluster.js +

    + + + + + +
    +
    +
    /**
    + * Tags for cases where multiple words make up a single entity
    + * E.g.: The two words "DNA damage" as a single "BioProcess"
    + *
    + * Act as the anchor for any incoming Links (in lieu of the Words it covers)
    + *
    + *   WordTag -> Word -> Row
    + *   [WordCluster]
    + *   Link
    + */
    +
    +class WordCluster {
    +  /**
    +   * Creates a new WordCluster instance
    +   * @param {Word[]} words - An array of the Words that this cluster will cover
    +   * @param {String} val - The raw text for this cluster's label
    +   */
    +  constructor(words = [], val) {
    +    this.eventIds = [];
    +    this.val = val;
    +    this.words = words;
    +    this.links = [];
    +
    +    // SVG elements:
    +    //   2 groups for left & right brace, containing:
    +    //   a path appended to each of the two groups
    +    //   a text label appended to the left group
    +    // The SVG groups are children of the main SVG document rather than the
    +    // Word's SVG group, since WordClusters technically exceed the bounds of
    +    // their individual Words.
    +    this.svgs = [];
    +    this.lines = [];
    +    this.svgText = null;
    +
    +    // The main API instance for the visualisation
    +    this.main = null;
    +
    +    // Main Config object for the parent instance; set by `.init()`
    +    this.config = null;
    +
    +    // Cached SVG BBox values
    +    this._textBbox = null;
    +
    +    words.forEach(word => word.clusters.push(this));
    +  }
    +
    +  /**
    +   * Any event IDs (essentially arbitrary labels) that this WordCluster is
    +   * associated with
    +   * @param id
    +   */
    +  addEventId(id) {
    +    if (this.eventIds.indexOf(id) < 0) {
    +      this.eventIds.push(id);
    +    }
    +  }
    +
    +  /**
    +   * Sets the text of this WordCluster, or returns this WordCluster's SVG text
    +   * element
    +   * @param val
    +   * @return {*}
    +   */
    +  text(val) {
    +    if (val === undefined) {
    +      return this.svgText;
    +    }
    +
    +    this.val = val;
    +    this.svgText.text(this.val);
    +    this._textBbox = this.svgText.bbox();
    +
    +    if (this.editingRect) {
    +      let bbox = this.svgText.bbox();
    +      if (bbox.width > 0) {
    +        this.editingRect
    +          .width(bbox.width + 8)
    +          .height(bbox.height + 4)
    +          .x(bbox.x - 4)
    +          .y(bbox.y - 2);
    +      } else {
    +        this.editingRect.width(10)
    +          .x(this.svgText.x() - 5);
    +      }
    +    }
    +  }
    +
    +  /**
    +   * Initialise this WordCluster against the main API instance.
    +   * Will be called once each by every Word within this cluster's coverage,
    +   * but we are really only interested in the first Word and the last Word
    +   * @param {Word} word - A Word within this cluster's coverage.
    +   * @param main
    +   */
    +  init(word, main) {
    +    const idx = this.endpoints.indexOf(word);
    +    if (idx < 0) {
    +      // Not a critical word
    +      return;
    +    }
    +
    +    this.main = main;
    +    this.config = main.config;
    +
    +    // A critical Word.  Prepare the corresponding SVG group.
    +    const mainSvg = main.svg;
    +
    +    if (!this.svgs[idx]) {
    +      let svg = this.svgs[idx] = mainSvg.group()
    +        .addClass("tag-element")
    +        .addClass("word-cluster");
    +
    +      this.lines[idx] = svg.path()
    +        .addClass("tag-element");
    +
    +      // Add the text label to the left arm
    +      if (idx === 0) {
    +        this.svgText = svg.text(this.val).leading(1);
    +        this._textBbox = this.svgText.bbox();
    +
    +        this.svgText.node.oncontextmenu = (e) => {
    +          e.preventDefault();
    +          mainSvg.fire("tag-right-click", {object: this, event: e});
    +        };
    +        this.svgText.click(() => mainSvg.fire("tag-edit", {object: this}));
    +      }
    +    }
    +
    +    // Perform initial draw if both arms are ready
    +    if (this.lines[1] && this.endpoints[1].row) {
    +      this.draw();
    +    }
    +  }
    +
    +  /**
    +   * Draws in the SVG elements for this WordCluster
    +   * https://codepen.io/explosion/pen/YGApwd
    +   */
    +  draw() {
    +    if (!this.lines[1] || !this.endpoints[1].row) {
    +      // The Word/WordClusters are not ready for drawing
    +      return;
    +    }
    +
    +    /** @type {Word} */
    +    const leftAnchor = this.endpoints[0];
    +    /** @type {Word} */
    +    const rightAnchor = this.endpoints[1];
    +
    +    const leftX = leftAnchor.x;
    +    const rightX = rightAnchor.x + rightAnchor.boxWidth;
    +
    +    if (leftAnchor.row === rightAnchor.row) {
    +      // Draw in full curly brace between anchors
    +      const baseY = this.getBaseY(leftAnchor.row);
    +      const textY = baseY
    +        - this.config.wordTopTagPadding
    +        - this._textBbox.height;
    +
    +      const centre = (leftX + rightX) / 2;
    +      this.svgText.move(centre, textY);
    +      this._textBbox = this.svgText.bbox();
    +
    +      // Each arm consists of two curves with relatively tight control
    +      // points (to preserve the "hook-iness" of the curve).
    +      // The following x-/y- values are all relative.
    +      const armWidth = (rightX - leftX) / 2;
    +      const curveWidth = armWidth / 2;
    +
    +      const curveControl = Math.min(curveWidth, this.config.linkCurveWidth);
    +      const curveY = -this.config.wordTopTagPadding / 2;
    +
    +      // Left arm
    +      this.lines[0].plot(
    +        "M" + [leftX, baseY]
    +        + "c" + [0, curveY, curveControl, curveY, curveWidth, curveY]
    +        + "c" + [curveWidth - curveControl, 0, curveWidth, 0, curveWidth, curveY]
    +      );
    +
    +      // Right arm
    +      this.lines[1].plot(
    +        "M" + [rightX, baseY]
    +        + "c" + [0, curveY, -curveControl, curveY, -curveWidth, curveY]
    +        + "c" + [-curveWidth + curveControl, 0, -curveWidth, 0, -curveWidth, curveY]
    +      );
    +    } else {
    +      // Extend curly brace to end of first Row, draw intervening rows,
    +      // finish on last Row
    +      const textY = leftAnchor.row.baseline
    +        - leftAnchor.boxHeight
    +        - this._textBbox.height
    +        - this.config.wordTopTagPadding;
    +      let centre = (leftX + leftAnchor.row.rw) / 2;
    +      this.svgText.move(centre, textY);
    +      this._textBbox = this.svgText.bbox();
    +
    +      // Left arm
    +      const leftY = this.getBaseY(leftAnchor.row);
    +      const armWidth = (leftAnchor.row.rw - leftX) / 2;
    +      const curveWidth = armWidth / 2;
    +
    +      const curveControl = Math.min(curveWidth, this.config.linkCurveWidth);
    +      const curveY = -this.config.wordTopTagPadding / 2;
    +
    +      this.lines[0].plot(
    +        "M" + [leftX, leftY]
    +        + "c" + [0, curveY, curveControl, curveY, curveWidth, curveY]
    +        + "c" + [curveWidth - curveControl, 0, curveWidth, 0, curveWidth, curveY]
    +      );
    +
    +      // Right arm, first Row
    +      let d = "";
    +      d += "M" + [leftAnchor.row.rw, leftY + curveY]
    +        + "c" + [-armWidth + curveControl, 0, -armWidth, 0, -armWidth, curveY];
    +
    +      // Intervening rows
    +      for (let i = leftAnchor.row.idx + 1; i < rightAnchor.row.idx; i++) {
    +        const thisRow = this.main.rowManager.rows[i];
    +        const lineY = this.getBaseY(thisRow);
    +        d += "M" + [0, lineY + curveY]
    +          + "L" + [thisRow.rw, lineY + curveY];
    +      }
    +
    +      // Last Row
    +      const rightY = this.getBaseY(rightAnchor.row);
    +      d += "M" + [rightX, rightY]
    +        + "c" + [0, curveY, -curveControl, curveY, -rightX, curveY];
    +
    +      this.lines[1].plot(d);
    +
    +      // // draw right side of brace extending to end of row and align text
    +      // let center = (-left + this.endpoints[0].row.rw) / 2 + 10;
    +      // this.x = center + lOffset;
    +      // this.svgText.x(center + lOffset);
    +      //
    +      // this.lines[0].plot("M" + lOffset
    +      //   + ",33c0,-10," + [center, 0, center, -8]
    +      //   + "c0,10," + [center, 0, center, 8]
    +      // );
    +      // this.lines[1].plot("M" + rOffset
    +      //   + ",33c0,-10," + [-right + 8, 0, -right + 8, -8]
    +      //   + "c0,10," + [-right + 8, 0, -right + 8, 8]
    +      // );
    +    }
    +
    +    // propagate draw command to parent links
    +    this.links.forEach(l => l.draw(this));
    +  }
    +
    +  /**
    +   * Calculates what the absolute y-value for the base of this cluster's curly
    +   * brace should be if it were drawn on the given Row
    +   * @param row
    +   */
    +  getBaseY(row) {
    +    // Use the taller of the endpoint's boxes as the base
    +    const wordHeight = Math.max(
    +      this.endpoints[0].boxHeight,
    +      this.endpoints[1].boxHeight
    +    );
    +
    +    return row.baseline - wordHeight;
    +  }
    +
    +  remove() {
    +    this.svgs.forEach(svg => svg.remove());
    +    this.words.forEach(word => {
    +      let i = word.clusters.indexOf(this);
    +      if (i > -1) {
    +        word.clusters.splice(i, 1);
    +      }
    +    });
    +  }
    +
    +  listenForEdit() {
    +    this.isEditing = true;
    +    let bbox = this.svgText.bbox();
    +
    +    this.svgs[0]
    +      .addClass("tag-element")
    +      .addClass("editing");
    +    this.editingRect = this.svgs[0].rect(bbox.width + 8, bbox.height + 4)
    +      .x(bbox.x - 4)
    +      .y(bbox.y - 2)
    +      .rx(2)
    +      .ry(2)
    +      .back();
    +  }
    +
    +  stopEditing() {
    +    this.isEditing = false;
    +    this.svgs[0].removeClass("editing");
    +    this.editingRect.remove();
    +    this.editingRect = null;
    +    this.val = this.val.trim();
    +    if (!this.val) {
    +      this.remove();
    +    }
    +  }
    +
    +  /**
    +   * Returns an array of the first and last Words covered by this WordCluster
    +   * @return {Word[]}
    +   */
    +  get endpoints() {
    +    return [
    +      this.words[0],
    +      this.words[this.words.length - 1]
    +    ];
    +  }
    +
    +  get row() {
    +    return this.endpoints[0].row;
    +  }
    +
    +  /**
    +   * Returns the absolute y-position of the top of the WordCluster's label
    +   * (for positioning Links that point at it)
    +   * @return {Number}
    +   */
    +  get absoluteY() {
    +    // The text label lives with the left arm of the curly brace
    +    const thisHeight = this.svgs[0].bbox().height;
    +    return this.endpoints[0].absoluteY - thisHeight;
    +  }
    +
    +  /**
    +   * Returns the height of this WordCluster, from Row baseline to the top of
    +   * its label
    +   */
    +  get fullHeight() {
    +    // The text label lives with the left arm of the curly brace
    +    const thisHeight = this.svgs[0].bbox().height;
    +    return this.endpoints[0].boxHeight + thisHeight;
    +  }
    +
    +  get idx() {
    +    return this.endpoints[0].idx;
    +  }
    +
    +  /**
    +   * Returns the x-position of the centre of this WordCluster's label
    +   * @return {*}
    +   */
    +  get cx() {
    +    return this._textBbox.cx;
    +  }
    +
    +  /**
    +   * Returns the width of the bounding box of the WordTag's SVG text element
    +   * @return {Number}
    +   */
    +  get textWidth() {
    +    return this._textBbox.width;
    +  }
    +
    +  // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    +  // Debug functions
    +  /**
    +   * Draws the outline of this component's bounding box
    +   */
    +  drawBbox() {
    +    const bbox = this.svgs[0].bbox();
    +    this.svgs[0].polyline([
    +      [bbox.x, bbox.y], [bbox.x2, bbox.y], [bbox.x2, bbox.y2], [bbox.x, bbox.y2],
    +      [bbox.x, bbox.y]])
    +      .fill("none")
    +      .stroke({width: 1});
    +  }
    +
    +  /**
    +   * Draws the outline of the text element's bounding box
    +   */
    +  drawTextBbox() {
    +    const bbox = this.svgText.bbox();
    +    this.svgs[0].polyline([
    +      [bbox.x, bbox.y], [bbox.x2, bbox.y], [bbox.x2, bbox.y2], [bbox.x, bbox.y2],
    +      [bbox.x, bbox.y]])
    +      .fill("none")
    +      .stroke({width: 1});
    +  }
    +}
    +
    +export default WordCluster;
    +
    +
    + + + + +
    + +
    + + + + + + + + + + diff --git a/docs/components_word-tag.js.html b/docs/components_word-tag.js.html new file mode 100644 index 0000000..7cf9339 --- /dev/null +++ b/docs/components_word-tag.js.html @@ -0,0 +1,370 @@ + + + + + + + + + + + components/word-tag.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + components/word-tag.js +

    + + + + + +
    +
    +
    /**
    + * Tags for single entities/tokens.
    + * Essentially a helper class for Words; should not be directly instantiated
    + * by Parsers.
    + *
    + *   [WordTag] -> Word -> Row
    + *   WordCluster
    + *   Link
    + */
    +
    +class WordTag {
    +  /**
    +   * Creates a new WordTag instance
    +   * @param {String} val - The raw text for this WordTag
    +   * @param {Word} word - The parent Word for this WordTag
    +   * @param {Config~Config} config - The Config object for the parent TAG
    +   *   instance
    +   * @param {Boolean} top - True if this WordTag should be drawn above the
    +   *     parent Word, false if it should be drawn below
    +   */
    +  constructor(val, word, config, top = true) {
    +    this.val = val;
    +    this.word = word;
    +    this.config = config;
    +    this.top = top;
    +
    +    if (!word.svg) {
    +      throw "Error: Trying to initialise WordTag on Word without SVG" +
    +      " element";
    +    }
    +
    +    this.draw();
    +  }
    +
    +  /**
    +   * (Re-)draws this WordTag's SVG elements onto the visualisation
    +   */
    +  draw() {
    +    if (this.svg) {
    +      // Delete remnants of any previous draw
    +      this.remove();
    +    }
    +
    +    // Prepare our SVG elements as a group within the Word's SVG element
    +    this.svg = this.word.svg.group();
    +
    +    // Draw in the SVG text element.
    +    // Note that applying classes to the text element may change its font
    +    // size, and if its font size changes, the anchor point for the resizing
    +    // is the text's baseline (not any of the bounding box sides).
    +    // N.B.: Typographical baselines ignore descenders
    +    this.svgText = this.svg.text(this.val)
    +      .addClass("tag-element")
    +      .addClass(this.top ? "word-tag" : "word-tag syntax-tag")
    +      .leading(1);
    +
    +    // add click and right-click listeners
    +    let mainSvg = this.word.main.svg;
    +    this.svgText.node.oncontextmenu = (e) => {
    +      e.preventDefault();
    +      mainSvg.fire("tag-right-click", {object: this, event: e});
    +    };
    +    this.svgText.click(() => mainSvg.fire("tag-edit", {object: this}));
    +
    +    // Draws a line / curly bracket between the Word and this WordTag, if
    +    // it's a top tag
    +    this.line = this.svg.path()
    +      .addClass("tag-element");
    +    this.drawTagLine();
    +
    +    // Centre the WordTag and its line horizontally
    +    // (SVG text elements are positioned on the x-axis by their centres)
    +    this.centre();
    +
    +    // Position the WordTag above/below the main Word
    +    // (It starts with its upper-left corner on the Row's baseline)
    +    let newY;
    +    if (this.top) {
    +      newY = -this.word.textHeight - this.svgText.bbox().height
    +        - this.config.wordTopTagPadding;
    +    } else {
    +      newY = this.config.wordBottomTagPadding;
    +    }
    +    this.svgText.y(newY);
    +    this.line.cy((this.svgText.bbox().y2 + this.word.svgText.bbox().y) / 2);
    +  }
    +
    +  /**
    +   * Centres this WordTag and its line horizontally against the base Word's
    +   * current position
    +   * (N.B.: SVG Text elements are positioned on the x-axis by their centres)
    +   */
    +  centre() {
    +    // Centre the Text element
    +    this.svgText.x(this.word.textRcx);
    +
    +    // Centre the line between the Word and WordTag
    +    this.line.cx(this.svgText.cx());
    +  }
    +
    +  /**
    +   * Removes this WordTag's SVG elements from the visualisation
    +   * If this instance is not deleted, it can be redrawn with the `.draw()`
    +   * method
    +   * @return {*}
    +   */
    +  remove() {
    +    this.svg.remove();
    +    this.svg = null;
    +  }
    +
    +  /**
    +   * Draws a connecting line between this WordTag and its parent Word, if
    +   * this is a top WordTag.
    +   */
    +  drawTagLine() {
    +    if (!this.top) {
    +      return;
    +    }
    +
    +    const wordWidth = this.word.textWidth;
    +
    +    if (wordWidth < this.config.wordBraceThreshold) {
    +      // Draw a single vertical line
    +      this.line.plot("M 0,0, 0," + this.config.wordTagLineLength);
    +    } else {
    +      // Draw a curly brace
    +      const height = this.config.wordTagLineLength;
    +      const arm = wordWidth / 2;
    +      this.line.plot(
    +        "M0,0" +
    +        "c" + [0, height, arm, 0, arm, height] +
    +        "M0,0" +
    +        "c" + [0, height, -arm, 0, -arm, height]
    +      );
    +    }
    +  }
    +
    +
    +  /**
    +   * Sets the text of this WordTag, or returns this WordTag's SVG text element
    +   * @param val
    +   * @return {*}
    +   */
    +  text(val) {
    +    if (val === undefined) {
    +      return this.svgText;
    +    }
    +
    +    this.val = val;
    +    this.svgText.text(this.val);
    +
    +    if (this.editingRect) {
    +      let bbox = this.svgText.bbox();
    +      if (bbox.width > 0) {
    +        this.editingRect
    +          .width(bbox.width + 8)
    +          .height(bbox.height + 4)
    +          .x(bbox.x - 4)
    +          .y(bbox.y - 2);
    +      } else {
    +        this.editingRect.width(10)
    +          .x(-5);
    +      }
    +    }
    +  }
    +
    +  /**
    +   * Returns the width of the bounding box for this WordTag
    +   */
    +  boxWidth() {
    +    return this.svg.bbox().width;
    +  }
    +
    +  /**
    +   * Returns the width of the bounding box of the WordTag's SVG text element
    +   * @return {Number}
    +   */
    +  get textWidth() {
    +    return this.svgText.bbox().width;
    +  }
    +
    +  changeEntity(word) {
    +    if (this.word) {
    +      this.word.tag = null;
    +    }
    +
    +    this.word = word;
    +    this.word.tag = this;
    +    this.word.svg.add(this.svg);
    +  }
    +
    +  listenForEdit() {
    +    this.isEditing = true;
    +    let bbox = this.svgText.bbox();
    +
    +    this.svg
    +      .addClass("tag-element")
    +      .addClass("editing");
    +    this.editingRect = this.svg.rect(bbox.width + 8, bbox.height + 4)
    +      .x(bbox.x - 4)
    +      .y(bbox.y - 2)
    +      .rx(2)
    +      .ry(2)
    +      .back();
    +  }
    +
    +  stopEditing() {
    +    this.isEditing = false;
    +    this.svg.removeClass("editing");
    +    this.editingRect.remove();
    +    this.editingRect = null;
    +    this.val = this.val.trim();
    +    if (!this.val) {
    +      this.remove();
    +    } else {
    +      this.word.alignBox();
    +    }
    +  }
    +
    +  // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    +  // Debug functions
    +  /**
    +   * Draws the outline of this component's bounding box
    +   */
    +  drawBbox() {
    +    const bbox = this.svg.bbox();
    +    this.svg.polyline([
    +      [bbox.x, bbox.y], [bbox.x2, bbox.y], [bbox.x2, bbox.y2], [bbox.x, bbox.y2],
    +      [bbox.x, bbox.y]])
    +      .fill("none")
    +      .stroke({width: 1});
    +  }
    +
    +  /**
    +   * Draws the outline of the text element's bounding box
    +   */
    +  drawTextBbox() {
    +    const bbox = this.svgText.bbox();
    +    this.svg.polyline([
    +      [bbox.x, bbox.y], [bbox.x2, bbox.y], [bbox.x2, bbox.y2], [bbox.x, bbox.y2],
    +      [bbox.x, bbox.y]])
    +      .fill("none")
    +      .stroke({width: 1});
    +  }
    +}
    +
    +export default WordTag;
    +
    +
    + + + + +
    + +
    + + + + + + + + + + diff --git a/docs/components_word.js.html b/docs/components_word.js.html new file mode 100644 index 0000000..5b25ec6 --- /dev/null +++ b/docs/components_word.js.html @@ -0,0 +1,633 @@ + + + + + + + + + + + components/word.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + components/word.js +

    + + + + + +
    +
    +
    /**
    + * Objects representing raw entity/token strings.
    + *
    + * The SVG elements for the Word and any attendant WordTags are positioned
    + * within an SVG group such that the bounding box of the Word always has an
    + * x-value of 0.  In addition, a y-value of 0 within the bounding box
    + * corresponds to the bottom of the Word's text element (between the Word
    + * and a bottom WordTag, if one is present).
    + *
    + * Actual positioning of this Word's SVG elements is then achieved by
    + * applying an x-transformation to the SVG group as a whole.
    + *
    + *   WordTag / WordCluster -> [Word] -> Row
    + */
    +
    +import WordTag from "./word-tag.js";
    +
    +class Word {
    +  /**
    +   * Creates a new Word instance
    +   * @param {String} text - The raw text for this Word
    +   * @param {Number} idx - The index of this Word within the
    +   *     currently-parsed document
    +   */
    +  constructor(text, idx) {
    +    this.text = text;
    +    this.idx = idx;
    +
    +    // Optional properties that may be set later
    +    // -----------------------------------------
    +    this.eventIds = [];
    +
    +    this.registeredTags = {};
    +    this.topTagCategory = "";
    +    this.bottomTagCategory = "";
    +
    +    // Back-references that will be set when this Word is used in
    +    // other structures
    +    // ---------------------------------------------------------
    +    // WordTag
    +    this.topTag = null;
    +    this.bottomTag = null;
    +
    +    // WordCluster
    +    this.clusters = [];
    +
    +    // Link
    +    this.links = [];
    +
    +    // Row
    +    this.row = null;
    +
    +    // Links that pass over this Word (even if this Word is not an endpoint
    +    // for the Link) -- Used for Link/Row slot calculations
    +    this.passingLinks = [];
    +
    +    // SVG-related properties
    +    // ----------------------
    +    this.initialised = false;
    +
    +    // Main API instance
    +    this.main = null;
    +
    +    // Main Config object for the parent instance
    +    this.config = null;
    +
    +    // SVG group containing this Word and its attendant WordTags
    +    this.svg = null;
    +
    +    // The x-position of the left bound of the Word's box
    +    this.x = 0;
    +
    +    // Calculate the SVG BBox only once per transformation (it's expensive)
    +    this._bbox = null;
    +    this._textBbox = null;
    +  }
    +
    +  /**
    +   * Any event IDs (essentially arbitrary labels) that this Word is
    +   * associated with
    +   * @param id
    +   */
    +  addEventId(id) {
    +    if (this.eventIds.indexOf(id) < 0) {
    +      this.eventIds.push(id);
    +    }
    +  }
    +
    +  /**
    +   * Register a tag for this word under the given category.
    +   * At run-time, one category of tags can be shown above this Word and
    +   * another can be shown below it.
    +   * @param {String} category
    +   * @param {String} tag
    +   */
    +  registerTag(category = "default", tag) {
    +    this.registeredTags[category] = tag;
    +  }
    +
    +  /**
    +   * Returns all the unique tag categories currently registered for this Word
    +   */
    +  getTagCategories() {
    +    return Object.keys(this.registeredTags);
    +  }
    +
    +  /**
    +   * Sets the top tag category for this Word, redrawing it if it is initialised
    +   * @param {String} category
    +   */
    +  setTopTagCategory(category) {
    +    if (this.topTag) {
    +      this.topTag.remove();
    +      this.topTag = null;
    +    }
    +
    +    // Not all categories of tags will be available for all Words
    +    if (!this.registeredTags[category]) {
    +      return;
    +    }
    +
    +    this.topTagCategory = category;
    +    if (this.initialised) {
    +      this.topTag = new WordTag(
    +        this.registeredTags[category],
    +        this,
    +        this.config
    +      );
    +
    +      // Since one of the Word's tags has changed, recalculate/realign its
    +      // bounding box
    +      this.alignBox();
    +    }
    +  }
    +
    +  /**
    +   * Sets the bottom tag category for this Word, redrawing it if it is
    +   * initialised
    +   * @param {String} category
    +   */
    +  setBottomTagCategory(category) {
    +    if (this.bottomTag) {
    +      this.bottomTag.remove();
    +      this.bottomTag = null;
    +    }
    +
    +    // Not all categories of tags will be available for all Words
    +    if (!this.registeredTags[category]) {
    +      return;
    +    }
    +
    +    this.bottomTagCategory = category;
    +    if (this.initialised) {
    +      this.bottomTag = new WordTag(
    +        this.registeredTags[category],
    +        this,
    +        this.config,
    +        false
    +      );
    +
    +      // Since one of the Word's tags has changed, recalculate/realign its
    +      // bounding box
    +      this.alignBox();
    +    }
    +  }
    +
    +  /**
    +   * Initialises the SVG elements related to this Word, and performs an
    +   * initial draw of it and its WordTags.
    +   * The Word will be drawn in the top left corner of the canvas, but will
    +   * be properly positioned when added to a Row.
    +   * @param main - The main API instance
    +   */
    +  init(main) {
    +    this.main = main;
    +    this.config = main.config;
    +
    +    const mainSvg = main.svg;
    +
    +    this.svg = mainSvg.group()
    +      .addClass("tag-element")
    +      .addClass("word");
    +
    +    // Draw main word text.  We remove the default additional leading
    +    // (basically vertical line-height padding) so that we can position it
    +    // more precisely.
    +    this.svgText = this.svg.text(this.text)
    +      .addClass("tag-element")
    +      .addClass("word-text")
    +      .leading(1);
    +
    +    // The positioning anchor for the text element is its centre, so we need
    +    // to translate the entire Word rightward by half its width.
    +    // In addition, the x/y-position points at the upper-left corner of the
    +    // Word's bounding box, but since we are working relative to the Row's
    +    // main line, we need to move the Word upwards so that the lower-left
    +    // corner meets the Row.
    +    // The desired final outcome is for the Text element's bbox to have an
    +    // x-value of 0 and a y2-value of 0.
    +    const currentBox = this.svgText.bbox();
    +    this.svgText.move(-currentBox.x, -currentBox.height);
    +    this._textBbox = this.svgText.bbox();
    +
    +    // ------------------------
    +    // Draw in this Word's tags
    +    if (this.topTagCategory) {
    +      this.topTag = new WordTag(
    +        this.registeredTags[this.topTagCategory],
    +        this,
    +        this.config
    +      );
    +    }
    +    if (this.bottomTagCategory) {
    +      this.bottomTag = new WordTag(
    +        this.registeredTags[this.bottomTagCategory],
    +        this,
    +        this.config,
    +        false
    +      );
    +    }
    +
    +    // Draw cluster info
    +    this.clusters.forEach((cluster) => {
    +      cluster.init(this, main);
    +    });
    +
    +    // Ensure that all the SVG elements for this Word and any WordTags are
    +    // well-positioned within the Word's bounding box, and set the cached
    +    // values this._textBbox and this._bbox
    +    this.alignBox();
    +
    +    // ---------------------
    +    // Attach drag listeners
    +    let x = 0;
    +    let mousemove = false;
    +    this.svgText.draggable()
    +      .on("dragstart", function (e) {
    +        mousemove = false;
    +        x = e.detail.p.x;
    +        mainSvg.fire("word-move-start");
    +      })
    +      .on("dragmove", (e) => {
    +        e.preventDefault();
    +        let dx = e.detail.p.x - x;
    +        x = e.detail.p.x;
    +        mainSvg.fire("word-move", {object: this, x: dx});
    +        if (dx !== 0) {
    +          mousemove = true;
    +        }
    +      })
    +      .on("dragend", () => {
    +        mainSvg.fire("word-move-end", {
    +          object: this,
    +          clicked: mousemove === false
    +        });
    +      });
    +    // attach right click listener
    +    this.svgText.dblclick((e) => mainSvg.fire("build-tree", {
    +      object: this,
    +      event: e
    +    }));
    +    this.svgText.node.oncontextmenu = (e) => {
    +      e.preventDefault();
    +      mainSvg.fire("word-right-click", {object: this, event: e});
    +    };
    +
    +    this.initialised = true;
    +  }
    +
    +  /**
    +   * Redraw Links
    +   */
    +  redrawLinks() {
    +    this.links.forEach(l => l.draw(this));
    +    this.redrawClusters();
    +  }
    +
    +  /**
    +   * Redraw all clusters (they should always be visible)
    +   */
    +  redrawClusters() {
    +    this.clusters.forEach(cluster => {
    +      if (cluster.endpoints.indexOf(this) > -1) {
    +        cluster.draw();
    +      }
    +    });
    +  }
    +
    +  /**
    +   * Sets the base x-position of this Word and its attendant SVG elements
    +   * (including its WordTags)
    +   * @param x
    +   */
    +  move(x) {
    +    this.x = x;
    +    this.svg.transform({x: this.x});
    +    this.redrawLinks();
    +  }
    +
    +  /**
    +   * Moves the base x-position of this Word and its attendant SVG elements
    +   * by the given amount
    +   * @param x
    +   */
    +  dx(x) {
    +    this.move(this.x + x);
    +  }
    +
    +  /**
    +   * Aligns the elements of this Word and any attendant WordTags such that
    +   * the entire Word's bounding box has an x-value of 0, and an x2-value
    +   * equal to its width
    +   */
    +  alignBox() {
    +    // We begin by resetting the position of the Text elements of this Word
    +    // and any WordTags, so that consecutive calls to `.alignBox()` don't
    +    // push them further and further away from their starting point
    +    this.svgText.attr({x: 0, y: 0});
    +    const currentBox = this.svgText.bbox();
    +    this.svgText.move(-currentBox.x, -currentBox.height);
    +    this._textBbox = this.svgText.bbox();
    +
    +    if (this.topTag) {
    +      this.topTag.centre();
    +    }
    +    if (this.bottomTag) {
    +      this.bottomTag.centre();
    +    }
    +
    +    // Generally, we will only need to move things around if the WordTags
    +    // are wider than the Word, which gives the Word's bounding box a
    +    // negative x-value.
    +    this._bbox = this.svg.bbox();
    +    const diff = -this._bbox.x;
    +    if (diff <= 0) {
    +      return;
    +    }
    +
    +    // We can't apply the `.x()` translation directly to this Word's SVG
    +    // group, or it will simply set a transformation on the group (leaving
    +    // the bounding box unchanged).  We need to move all its children
    +    // (recursively) instead.
    +    function childrenDx(parent, diff) {
    +      for (const child of parent.children()) {
    +        if (child.children && child.children()) {
    +          childrenDx(child, diff);
    +        } else {
    +          child.dx(diff);
    +        }
    +      }
    +    }
    +
    +    childrenDx(this.svg, diff);
    +
    +    // And update the cached values
    +    this._bbox = this.svg.bbox();
    +  }
    +
    +  /**
    +   * Returns the width of the bounding box for this Word and its WordTags.
    +   * @return {Number}
    +   */
    +  get boxWidth() {
    +    return this._bbox.width;
    +  }
    +
    +  /**
    +   * Returns the minimum width needed to hold this Word and its WordTags.
    +   * Differs from boxWidth in that it will also reserve space for the Word's
    +   * WordClusters if necessary (even though the WordClusters are not
    +   * technically part of the Word's box)
    +   */
    +  get minWidth() {
    +    // The Word's Bbox covers the Word and its WordTags
    +    let minWidth = this.boxWidth;
    +
    +    for (const cluster of this.clusters) {
    +      const [clusterLeft, clusterRight] = cluster.endpoints;
    +      if (clusterLeft.row !== clusterRight.row) {
    +        // Let's presume that if the Rows are different, the Cluster has
    +        // enough space (this probably isn't true, but can be revisited later)
    +        continue;
    +      }
    +
    +      const wordWidth =
    +        cluster.endpoints[1].x + cluster.endpoints[1].boxWidth
    +        - cluster.endpoints[0].x;
    +
    +      const labelWidth = cluster.svgText.bbox().width;
    +
    +      if (labelWidth > wordWidth) {
    +        // The WordCluster's label is wider than the Words it comprises; add
    +        // a bit of extra width to this Word
    +        minWidth = Math.max(minWidth, labelWidth / cluster.words.length);
    +      }
    +
    +    }
    +    return minWidth;
    +  }
    +
    +  /**
    +   * Returns the extent of the bounding box for this Word above the Row's line
    +   * @return {Number}
    +   */
    +  get boxHeight() {
    +    // Since the Word's box is relative to the Row's line to begin with,
    +    // this is simply the negative of the y-value of the box
    +    return -this._bbox.y;
    +  }
    +
    +  /**
    +   * Returns the extent of the bounding box for this Word below the Row's line
    +   * @return {Number}
    +   */
    +  get descendHeight() {
    +    // Since the Word's box is relative to the Row's line to begin with,
    +    // this is simply the y2-value of the box
    +    return this._bbox.y2;
    +  }
    +
    +  /**
    +   * Returns the absolute y-position of the top of this Word's bounding box
    +   * @return {Number}
    +   */
    +  get absoluteY() {
    +    return this.row
    +      ? this.row.baseline - this.boxHeight
    +      : this.boxHeight;
    +  }
    +
    +  /**
    +   * Returns the absolute y-position of the bottom of this Word's bounding box
    +   * @return {Number}
    +   */
    +  get absoluteDescent() {
    +    return this.row
    +      ? this.row.ry + this.row.rh + this.descendHeight
    +      : this.descendHeight;
    +  }
    +
    +  /**
    +   * Returns the absolute x-position of the centre of this Word's box
    +   * @return {Number}
    +   */
    +  get cx() {
    +    return this.x + this.boxWidth / 2;
    +  }
    +
    +  /**
    +   * Returns the width of the bounding box of the Word's SVG text element
    +   * @return {Number}
    +   */
    +  get textWidth() {
    +    return this._textBbox.width;
    +  }
    +
    +  /**
    +   * Returns the height of the bounding box of the Word's SVG text element
    +   * @return {Number}
    +   */
    +  get textHeight() {
    +    return this._textBbox.height;
    +  }
    +
    +  /**
    +   * Returns the *relative* x-position of the centre of the bounding
    +   * box of the Word's SVG text element
    +   */
    +  get textRcx() {
    +    return this._textBbox.cx;
    +  }
    +
    +  /**
    +   * Returns true if this Word contains a single punctuation character
    +   *
    +   * FIXME: doesn't handle fancier unicode punctuation | should exclude
    +   * left-punctuation e.g. left-paren or left-quote
    +   * @return {Boolean}
    +   */
    +  get isPunct() {
    +    return (this.text.length === 1 && this.text.charCodeAt(0) < 65);
    +  }
    +
    +  // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    +  // Debug functions
    +  /**
    +   * Draws the outline of this component's bounding box
    +   */
    +  drawBbox() {
    +    const bbox = this.svg.bbox();
    +    this.svg.polyline([
    +      [bbox.x, bbox.y], [bbox.x2, bbox.y], [bbox.x2, bbox.y2], [bbox.x, bbox.y2],
    +      [bbox.x, bbox.y]])
    +      .fill("none")
    +      .stroke({width: 1});
    +  }
    +
    +  /**
    +   * Draws the outline of the text element's bounding box
    +   */
    +  drawTextBbox() {
    +    const bbox = this.svgText.bbox();
    +    this.svg.polyline([
    +      [bbox.x, bbox.y], [bbox.x2, bbox.y], [bbox.x2, bbox.y2], [bbox.x, bbox.y2],
    +      [bbox.x, bbox.y]])
    +      .fill("none")
    +      .stroke({width: 1});
    +  }
    +}
    +
    +export default Word;
    +
    +
    + + + + +
    + +
    + + + + + + + + + + diff --git a/docs/config.js.html b/docs/config.js.html new file mode 100644 index 0000000..721945a --- /dev/null +++ b/docs/config.js.html @@ -0,0 +1,320 @@ + + + + + + + + + + + config.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + config.js +

    + + + + + +
    +
    +
    /**
    + * *Configuration options for the library*
    + *
    + * Each TAG instance will instantiate its own instance of the Config object, so
    + * that various options can be changed on the fly.
    + *
    + * These options can be changed at init-time by the user via the `options`
    + * parameter, or on the fly via other API methods.
    + */
    +
    +/**
    + * Available configuration options:
    + * @typedef {Object} Config~Config
    + *
    + * @property {String|"none"} topLinkCategory="default"
    + *   The category of {@link Link} to show above the text.
    + * @property {String|"none"} bottomLinkCategory="none"
    + *   The category of {@link Link} to show below the text.
    + *
    + * @property {String|"none"} topTagCategory="default"
    + *   The category of {@link WordTag} to show above the text.
    + * @property {String|"none"} bottomTagCategory="POS"
    + *   The category of {@link WordTag} to show below the text.
    + *
    + * @property {Boolean} compactRows=false
    + *   Whether or not to lock every {@link Row} to its minimum height.
    + *
    + * @property {Boolean} showTopLinksOnMove=true
    + *   Continue to display top {@link Link}s when the user drags {@link
    +  *   Word Words} around.
    + * @property {Boolean} showBottomLinksOnMove=true
    + *   Continue to display bottom {@link Link}s when the user drags {@link
    +  *   Word Words} around.
    + *
    + * @property {Boolean} showTopMainLabel=true
    + *   Display the main type label for top {@link Link Links}.
    + * @property {Boolean} showTopArgLabels=false
    + *   Display the type labels for each argument for top {@link Link Links}.
    + * @property {Boolean} showBottomMainLabel=true
    + *   Display the main type label for bottom {@link Link Links}.
    + * @property {Boolean} showBottomArgLabels=false
    + *   Display the type labels for each argument for bottom {@link Link Links}.
    + *
    + * @property {Number} rowEdgePadding=10
    + *   Padding on the left/right edges of each {@link Row}.
    + * @property {Number} rowVerticalPadding=20
    + *   Padding on the top/bottom of each {@link Row}.
    + * @property {Number} rowExtraTopPadding=10
    + *   Extra padding on {@link Row} top for {@link Link} labels.<br>
    + *   (Labels for top Links are drawn above their line, and it is not trivial
    + *   to get a good value for how high they are, so swe use a pre-configured
    + *   value here.)
    + *
    + * @property {Number} wordPadding=10
    + *   Padding on the left of {@link Word Words}.
    + * @property {Number} wordPunctPadding=2
    + *   Padding on the left of {@link Word Words} that contain a single
    + *   punctuation character.
    + * @property {Number} wordTopTagPadding=10
    + *   Padding between {@link Word Words} and the {@link WordTag WordTags}
    + *   drawn above them.
    + * @property {Number} wordBottomTagPadding=0
    + *   Padding between {@link Word Words} and the {@link WordTag WordTags}
    + *   drawn below them.
    + * @property {Number} wordTagLineLength=9
    + *   For {@link WordTag WordTags} drawn above {@link Word Words}, the height
    + *   of the connecting line/brace between the {@link Word} and the
    + *   {@link WordTag}.
    + * @property {Number} wordBraceThreshold=100
    + *   {@link Word Words} that are wider than this will have curly braces
    + *   drawn between them and their {@link WordTag WordTags} (rather than a
    + *   single vertical line).
    + *
    + * @property {Number} linkSlotInterval=40
    + *   Vertical distance between each overlapping {@link Link} slot.
    + * @property {Number} linkHandlePadding=2
    + *   Vertical padding between {@link Link} handles and their anchors.
    + * @property {Number} linkCurveWidth=5
    + *   Corner curve width for {@link Link} lines.
    + * @property {Number} linkArrowWidth=5
    + *   Width of arrowheads for {@link Link} handles.
    + *
    + * @property {String[]} tagDefaultColours=...
    + *   The first *n* default colours to use for {@link WordTag WordTags} (as a
    + *   queue).  After this array is exhausted, {@link WordTag WordTags} will
    + *   be assigned random colours by default.<br>
    + *   See the source for the pre-configured default values.
    + */
    +
    +class Config {
    +  /**
    +   * Instantiates a new configuration object.
    +   * @returns {Config~Config}
    +   */
    +  constructor() {
    +    // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    +    // User options
    +
    +    // Category of top/bottom Links to show
    +    this.topLinkCategory = "default";
    +    this.bottomLinkCategory = "none";
    +
    +    // Category of top/bottom tags to show
    +    this.topTagCategory = "default";
    +    this.bottomTagCategory = "POS";
    +
    +    // Lock Rows to minimum height?
    +    this.compactRows = false;
    +
    +    // Continue to display top/bottom Links when moving Words?
    +    this.showTopLinksOnMove = true;
    +    this.showBottomLinksOnMove = false;
    +
    +    // Show main/argument labels on Links?
    +    this.showTopMainLabel = true;
    +    this.showTopArgLabels = false;
    +    this.showBottomMainLabel = true;
    +    this.showBottomArgLabels = false;
    +
    +    // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    +    // Drawing options for Rows
    +
    +    // Padding on the left/right edges of each Row
    +    this.rowEdgePadding = 10;
    +
    +    // Padding on the top/bottom of each Row
    +    this.rowVerticalPadding = 20;
    +
    +    // Extra padding on Row top for Link labels
    +    // (Labels for top Links are drawn above their line, and it is not
    +    // trivial to get a good value for how high they are, so we use a
    +    // pre-configured value here)
    +    this.rowExtraTopPadding = 10;
    +
    +    // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    +    // Drawing options for Words
    +
    +    // Left-padding for Words
    +    this.wordPadding = 10;
    +
    +    // Left-padding for punctuation Words
    +    this.wordPunctPadding = 2;
    +
    +    // Vertical padding between Words and WordTags drawn above them
    +    this.wordTopTagPadding = 10;
    +
    +    // Vertical padding between Words and WordTags drawn below them
    +    this.wordBottomTagPadding = 0;
    +
    +    // For WordTags drawn above Words, the height of the connecting
    +    // line/brace between the Word and the WordTag
    +    this.wordTagLineLength = 9;
    +
    +    // Words that are wider than this width will have curly braces drawn
    +    // between them and their tags.  Words that are shorter will have single
    +    // vertical lines drawn between them and their tags.
    +    this.wordBraceThreshold = 100;
    +
    +    // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    +    // Drawing options for Links in the visualisation
    +
    +    // Vertical distance between each Link slot (for crossing/overlapping Links)
    +    this.linkSlotInterval = 40;
    +
    +    // Vertical padding between Link arrowheads and their anchors
    +    this.linkHandlePadding = 2;
    +
    +    // Corner curve width for Links
    +    this.linkCurveWidth = 5;
    +
    +    // Width of arrowheads for handles
    +    this.linkArrowWidth = 5;
    +
    +    // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    +    // Drawing options for Tags
    +
    +    // An array containing the first n default colours to use for tags (as a
    +    // queue). When this array is exhausted, we will switch to using
    +    // randomColor.
    +    this.tagDefaultColours = [
    +      "#3fa1d1",
    +      "#ed852a",
    +      "#2ca02c",
    +      "#c34a1d",
    +      "#a048b3",
    +      "#e377c2",
    +      "#bcbd22",
    +      "#17becf",
    +      "#e7298a",
    +      "#e6ab02",
    +      "#7570b3",
    +      "#a6761d",
    +      "#7f7f7f"
    +    ];
    +  }
    +}
    +
    +export default Config;
    +
    +
    + + + + +
    + +
    + + + + + + + + + + diff --git a/docs/figs/OneRow.png b/docs/figs/OneRow.png new file mode 100644 index 0000000..4adf944 Binary files /dev/null and b/docs/figs/OneRow.png differ diff --git a/docs/figs/TwoRows.png b/docs/figs/TwoRows.png new file mode 100644 index 0000000..8d12b5d Binary files /dev/null and b/docs/figs/TwoRows.png differ diff --git a/docs/figs/taxonomyColors.png b/docs/figs/taxonomyColors.png new file mode 100644 index 0000000..0b26eb9 Binary files /dev/null and b/docs/figs/taxonomyColors.png differ diff --git a/docs/figs/trees.png b/docs/figs/trees.png new file mode 100644 index 0000000..fe70406 Binary files /dev/null and b/docs/figs/trees.png differ diff --git a/docs/fonts/OpenSans-Bold-webfont.eot b/docs/fonts/OpenSans-Bold-webfont.eot new file mode 100644 index 0000000..5d20d91 Binary files /dev/null and b/docs/fonts/OpenSans-Bold-webfont.eot differ diff --git a/docs/fonts/OpenSans-Bold-webfont.svg b/docs/fonts/OpenSans-Bold-webfont.svg new file mode 100644 index 0000000..3ed7be4 --- /dev/null +++ b/docs/fonts/OpenSans-Bold-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-Bold-webfont.woff b/docs/fonts/OpenSans-Bold-webfont.woff new file mode 100644 index 0000000..1205787 Binary files /dev/null and b/docs/fonts/OpenSans-Bold-webfont.woff differ diff --git a/docs/fonts/OpenSans-BoldItalic-webfont.eot b/docs/fonts/OpenSans-BoldItalic-webfont.eot new file mode 100644 index 0000000..1f639a1 Binary files /dev/null and b/docs/fonts/OpenSans-BoldItalic-webfont.eot differ diff --git a/docs/fonts/OpenSans-BoldItalic-webfont.svg b/docs/fonts/OpenSans-BoldItalic-webfont.svg new file mode 100644 index 0000000..6a2607b --- /dev/null +++ b/docs/fonts/OpenSans-BoldItalic-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-BoldItalic-webfont.woff b/docs/fonts/OpenSans-BoldItalic-webfont.woff new file mode 100644 index 0000000..ed760c0 Binary files /dev/null and b/docs/fonts/OpenSans-BoldItalic-webfont.woff differ diff --git a/docs/fonts/OpenSans-Italic-webfont.eot b/docs/fonts/OpenSans-Italic-webfont.eot new file mode 100644 index 0000000..0c8a0ae Binary files /dev/null and b/docs/fonts/OpenSans-Italic-webfont.eot differ diff --git a/docs/fonts/OpenSans-Italic-webfont.svg b/docs/fonts/OpenSans-Italic-webfont.svg new file mode 100644 index 0000000..e1075dc --- /dev/null +++ b/docs/fonts/OpenSans-Italic-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-Italic-webfont.woff b/docs/fonts/OpenSans-Italic-webfont.woff new file mode 100644 index 0000000..ff652e6 Binary files /dev/null and b/docs/fonts/OpenSans-Italic-webfont.woff differ diff --git a/docs/fonts/OpenSans-Light-webfont.eot b/docs/fonts/OpenSans-Light-webfont.eot new file mode 100644 index 0000000..1486840 Binary files /dev/null and b/docs/fonts/OpenSans-Light-webfont.eot differ diff --git a/docs/fonts/OpenSans-Light-webfont.svg b/docs/fonts/OpenSans-Light-webfont.svg new file mode 100644 index 0000000..11a472c --- /dev/null +++ b/docs/fonts/OpenSans-Light-webfont.svg @@ -0,0 +1,1831 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-Light-webfont.woff b/docs/fonts/OpenSans-Light-webfont.woff new file mode 100644 index 0000000..e786074 Binary files /dev/null and b/docs/fonts/OpenSans-Light-webfont.woff differ diff --git a/docs/fonts/OpenSans-LightItalic-webfont.eot b/docs/fonts/OpenSans-LightItalic-webfont.eot new file mode 100644 index 0000000..8f44592 Binary files /dev/null and b/docs/fonts/OpenSans-LightItalic-webfont.eot differ diff --git a/docs/fonts/OpenSans-LightItalic-webfont.svg b/docs/fonts/OpenSans-LightItalic-webfont.svg new file mode 100644 index 0000000..431d7e3 --- /dev/null +++ b/docs/fonts/OpenSans-LightItalic-webfont.svg @@ -0,0 +1,1835 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-LightItalic-webfont.woff b/docs/fonts/OpenSans-LightItalic-webfont.woff new file mode 100644 index 0000000..43e8b9e Binary files /dev/null and b/docs/fonts/OpenSans-LightItalic-webfont.woff differ diff --git a/docs/fonts/OpenSans-Regular-webfont.eot b/docs/fonts/OpenSans-Regular-webfont.eot new file mode 100644 index 0000000..6bbc3cf Binary files /dev/null and b/docs/fonts/OpenSans-Regular-webfont.eot differ diff --git a/docs/fonts/OpenSans-Regular-webfont.svg b/docs/fonts/OpenSans-Regular-webfont.svg new file mode 100644 index 0000000..25a3952 --- /dev/null +++ b/docs/fonts/OpenSans-Regular-webfont.svg @@ -0,0 +1,1831 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-Regular-webfont.woff b/docs/fonts/OpenSans-Regular-webfont.woff new file mode 100644 index 0000000..e231183 Binary files /dev/null and b/docs/fonts/OpenSans-Regular-webfont.woff differ diff --git a/docs/fonts/OpenSans-Semibold-webfont.eot b/docs/fonts/OpenSans-Semibold-webfont.eot new file mode 100644 index 0000000..d8375dd Binary files /dev/null and b/docs/fonts/OpenSans-Semibold-webfont.eot differ diff --git a/docs/fonts/OpenSans-Semibold-webfont.svg b/docs/fonts/OpenSans-Semibold-webfont.svg new file mode 100644 index 0000000..eec4db8 --- /dev/null +++ b/docs/fonts/OpenSans-Semibold-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-Semibold-webfont.ttf b/docs/fonts/OpenSans-Semibold-webfont.ttf new file mode 100644 index 0000000..b329084 Binary files /dev/null and b/docs/fonts/OpenSans-Semibold-webfont.ttf differ diff --git a/docs/fonts/OpenSans-Semibold-webfont.woff b/docs/fonts/OpenSans-Semibold-webfont.woff new file mode 100644 index 0000000..28d6ade Binary files /dev/null and b/docs/fonts/OpenSans-Semibold-webfont.woff differ diff --git a/docs/fonts/OpenSans-SemiboldItalic-webfont.eot b/docs/fonts/OpenSans-SemiboldItalic-webfont.eot new file mode 100644 index 0000000..0ab1db2 Binary files /dev/null and b/docs/fonts/OpenSans-SemiboldItalic-webfont.eot differ diff --git a/docs/fonts/OpenSans-SemiboldItalic-webfont.svg b/docs/fonts/OpenSans-SemiboldItalic-webfont.svg new file mode 100644 index 0000000..7166ec1 --- /dev/null +++ b/docs/fonts/OpenSans-SemiboldItalic-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-SemiboldItalic-webfont.ttf b/docs/fonts/OpenSans-SemiboldItalic-webfont.ttf new file mode 100644 index 0000000..d2d6318 Binary files /dev/null and b/docs/fonts/OpenSans-SemiboldItalic-webfont.ttf differ diff --git a/docs/fonts/OpenSans-SemiboldItalic-webfont.woff b/docs/fonts/OpenSans-SemiboldItalic-webfont.woff new file mode 100644 index 0000000..d4dfca4 Binary files /dev/null and b/docs/fonts/OpenSans-SemiboldItalic-webfont.woff differ diff --git a/docs/global.html b/docs/global.html new file mode 100644 index 0000000..667deb7 --- /dev/null +++ b/docs/global.html @@ -0,0 +1,538 @@ + + + + + + + + + Global - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + Global +

    + + + + +
    +
    + +

    + + + +

    + + + +
    + +
    +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + + + + + + + + + + +

    Methods

    + + + + + + + + + + + + + +

    + tag(params) +

    +
    + + + + + +
    +

    Initialises a TAG visualisation on the given element.

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    params + + + + Object + + + + + + + +

    Initialisation parameters.

    + +
    Properties
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributesDescription
    container + + + + String + + + | + + + Element + + + | + + + jQuery + + + + + + + + + + + + + +

    Either a string + containing the ID of the container element, or the element itself (as a + native/jQuery object).

    + +
    data + + + + Object + + + + + + + + + <optional>
    + + + + + +
    +

    Initial data to load, if any.

    + +
    format + + + + String + + + + + + + + + <optional>
    + + + + + +
    +

    One of the supported format identifiers for + the data.

    + +
    options + + + + Object + + + + + + + + + <optional>
    + + + + + +
    +

    Overrides for various default + library options.

    + +
    + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + +
    + +
    + + + + + + + + + + \ No newline at end of file diff --git a/docs/icons/home.svg b/docs/icons/home.svg new file mode 100644 index 0000000..676d2d3 --- /dev/null +++ b/docs/icons/home.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/docs/icons/search.svg b/docs/icons/search.svg new file mode 100644 index 0000000..ccc84b6 --- /dev/null +++ b/docs/icons/search.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..cccc494 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,163 @@ + + + + + + + + + Home - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + + + + + + + + + + +
    +
    +

    TextAnnotationGraphs (TAG)

    A modular annotation system that supports complex, interactive annotation graphs embedded on top of sequences of text. An additional view displays a subgraph of selected connections between words/phrases using an interactive network layout.

    +

    TAG

    +
    +

    TAG

    +
    +

    TAG

    +
    +

    TAG

    +

    Development

    TAG was developed by Angus Forbes (UC Santa Cruz) and Kristine Lee (University of Illinios at Chicago), in collaboration with Gus Hahn-Powell, Marco Antonio Valenzuela Escárcega, Zechy Wong, and Mihai Surdeanu (University of Arizona). Contact angus@ucsc.edu for more information.

    +

    Citing TAG

    If you use TAG in your work, please use the following citation:

    +
    @inproceedings{TAG-2018,
    +    author = {Angus Forbes and Kristine Lee and Gus Hahn-Powell and Marco A. Valenzuela-Escárcega and Mihai Surdeanu},
    +    title = {Text Annotation Graphs: Annotating Complex Natural Language Phenomena},
    +    booktitle = {Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC'18)},
    +    year = {2018},
    +    month = {May},
    +    date = {7-12},
    +    address = {Miyazaki, Japan},
    +    editor = {Sara Goggi and Hélène Mazo},
    +    publisher = {European Language Resources Association (ELRA)},
    +    language = {english}
    +}

    Write-up

    A paper describing TAG was accepted to LREC'18. A pre-print can be found at https://arxiv.org/abs/1711.00529

    +

    Installation

    TAG can be built and installed using npm.

    +

    Via npm

    npm install git+https://github.com/CreativeCodingLab/TextAnnotationGraphs.git

    Usage

    To use TAG with your own applications, first include the library in your script:

    +

    Browserify (CommonJS)

    const TAG = require("text-annotation-graphs");

    ES6

    import TAG from "text-annotation-graphs";

    Then initialise the visualisation on an element, optionally specifying the initial data set to load and any overrides to the default options. For more details, consult the full API documentation.

    +
    const graph = TAG.tag({
    +  container: $container,
    +  data: {...},
    +  format: "odin",
    +  options: {...}
    +});

    Development

    Tasks are managed via npm scripts and the runjs build tool. The most commonly used tasks are listed in package.json, and details for the various sub-tasks can be found in runfile.js.

    +

    Demo

    After cloning the repository and installing the project dependencies via npm install, you can run the interactive demo using npm run demo and directing your browser to localhost:8080.

    +

    To run the demo on a different port, set the PORT environmental variable. For example, running PORT=9000 npm run demo will start the demo server on localhost:9000 instead.

    +

    Building the source

    TAG is written in ES6, and uses Sass for its styles.

    +

    Assuming you've cloned the repository, simply run npm install && npm run build to install dependencies and transpile the source to ES2015.

    +

    Live monitoring of changes

    For convenience, you can monitor changes to the library's sources (css + js) with the following npm task:

    +
    npm run watch

    Generating documentation

    TAG uses JSDoc to generate its documentation. By default, the documentation is generated using the template in src/jsdoc-template (adapted from the Braintree JSDoc Template) and stored in the docs folder.

    +

    To regenerate the documentation, use the following npm task:

    +
    npm run generate-docs
    +
    +
    + + + + + +
    + +
    + + + + + + + + + + \ No newline at end of file diff --git a/docs/main.js.html b/docs/main.js.html new file mode 100644 index 0000000..5691550 --- /dev/null +++ b/docs/main.js.html @@ -0,0 +1,763 @@ + + + + + + + + + + + main.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + main.js +

    + + + + + +
    +
    +
    /**
    + * Main library class
    + */
    +
    +import _ from "lodash";
    +import $ from "jquery";
    +import * as SVG from "svg.js";
    +
    +import Parser from "./parse/parse.js";
    +import RowManager from "./managers/rowmanager.js";
    +import LabelManager from "./managers/labelmanager.js";
    +import Taxonomy from "./managers/taxonomy.js";
    +
    +import Config from "./config.js";
    +
    +import Util from "./util.js";
    +
    +/**
    + * Take a small performance hit from `autobind` to ensure that the scope of
    + * `this` is always correct for all our API methods
    + */
    +import autobind from "autobind-decorator";
    +
    +@autobind
    +class Main {
    +  /**
    +   * Initialises a TAG instance with the given parameters
    +   * @param {String|Element|jQuery} container - Either a string containing the
    +   *     ID of the container element, or the element itself (as a
    +   *     native/jQuery object)
    +   * @param {Object} options - Overrides for default library options
    +   */
    +  constructor(container, options = {}) {
    +    // Config options
    +    this.config = _.defaults(
    +      options,
    +      new Config()
    +    );
    +
    +    // SVG.Doc expects either a string with the element's ID, or the element
    +    // itself (not a jQuery object).
    +    if (_.hasIn(container, "jquery")) {
    +      container = container[0];
    +    }
    +
    +    this.svg = new SVG.Doc(container);
    +
    +    // That said, we need to set the SVG Doc's size using absolute units
    +    // (since they are used for calculating the widths of rows and other
    +    // elements).  We use jQuery to get the parent's size.
    +    this.$container = $(this.svg.node).parent();
    +
    +    // Managers/Components
    +    this.parser = new Parser();
    +    this.rowManager = new RowManager(this.svg, this.config);
    +    this.labelManager = new LabelManager(this.svg);
    +    this.taxonomyManager = new Taxonomy(this.config);
    +
    +    // Tokens and links that are currently drawn on the visualisation
    +    this.words = [];
    +    this.links = [];
    +
    +    // Initialisation
    +    this.resize();
    +    this._setupSVGListeners();
    +    this._setupUIListeners();
    +  }
    +
    +  // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    +  // Loading data into the parser
    +
    +  /**
    +   * Loads the given annotation data onto the TAG visualisation
    +   * @param {Object} data - The data to load
    +   * @param {String} format - One of the supported format identifiers for
    +   *     the data
    +   */
    +  loadData(data, format) {
    +    this.parser.loadData(data, format);
    +    this.redraw();
    +  }
    +
    +  /**
    +   * Reads the given data file asynchronously and loads it onto the TAG
    +   * visualisation
    +   * @param {Object} path - The path pointing to the data
    +   * @param {String} format - One of the supported format identifiers for
    +   *     the data
    +   */
    +  async loadUrlAsync(path, format) {
    +    const data = await $.ajax(path);
    +    this.parser.loadData(data, format);
    +    this.redraw();
    +  }
    +
    +  /**
    +   * Reads the given annotation files and loads them onto the TAG
    +   * visualisation
    +   * @param {FileList} fileList - We generally expect only one file here, but
    +   *     some formats (e.g., Brat) involve multiple files per dataset
    +   * @param {String} format
    +   */
    +  async loadFilesAsync(fileList, format) {
    +    // Instantiate FileReaders for all the given files, and wait until they
    +    // are read
    +    const readPromises = _.map(fileList, (file) => {
    +      const reader = new FileReader();
    +      reader.readAsText(file);
    +      return new Promise((resolve) => {
    +        reader.onload = () => {
    +          resolve({
    +            name: file.name,
    +            type: file.type,
    +            content: reader.result
    +          });
    +        };
    +      });
    +    });
    +
    +    const files = await Promise.all(readPromises);
    +    this.parser.loadFiles(files, format);
    +    this.redraw();
    +  }
    +
    +  // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    +  // Controlling the SVG element
    +
    +  /**
    +   * Prepares all the Rows/Words/Links.
    +   * Adds all Words/WordClusters to Rows in the visualisation, but does not draw
    +   * Links or colour the various Words/WordTags
    +   */
    +  init() {
    +    // Save a reference to the currently loaded tokens and links
    +    const data = this.parser.getParsedData();
    +    this.words = data.words;
    +    this.links = data.links;
    +
    +    // Calculate the Link slots (vertical intervals to separate
    +    // crossing/intervening Links).
    +    // Because the order of the Links array affects the slot calculations,
    +    // we sort it here first in case they aren't sorted in the original
    +    // annotation data.
    +    this.links = Util.sortForSlotting(this.links);
    +    this.links.forEach(link => link.calculateSlot(this.words));
    +
    +    // Initialise the first Row; new ones will be added automatically as
    +    // Words are drawn onto the visualisation
    +    if (this.words.length > 0 && !this.rowManager.lastRow) {
    +      this.rowManager.appendRow();
    +    }
    +
    +    // Draw the Words onto the visualisation
    +    this.words.forEach(word => {
    +      // If the tag categories to show for the Word are already set (via the
    +      // default config or user options), set them here so that the Word can
    +      // draw them directly on init
    +      word.setTopTagCategory(this.config.topTagCategory);
    +      word.setBottomTagCategory(this.config.bottomTagCategory);
    +      word.init(this);
    +      this.rowManager.addWordToRow(word, this.rowManager.lastRow);
    +    });
    +
    +    // We have to initialise all the Links before we draw any of them, to
    +    // account for nested Links etc.
    +    this.links.forEach(link => {
    +      link.init(this);
    +    });
    +  }
    +
    +  /**
    +   * Resizes Rows and (re-)draws Links and WordClusters, without changing
    +   * the positions of Words/Link handles
    +   */
    +  draw() {
    +    // Draw in the currently toggled Links
    +    this.links.forEach(link => {
    +      if ((link.top && link.category === this.config.topLinkCategory) ||
    +        (!link.top && link.category === this.config.bottomLinkCategory)) {
    +        link.show();
    +      }
    +
    +      if ((link.top && this.config.showTopMainLabel) ||
    +        (!link.top && this.config.showBottomMainLabel)) {
    +        link.showMainLabel();
    +      } else {
    +        link.hideMainLabel();
    +      }
    +
    +      if ((link.top && this.config.showTopArgLabels) ||
    +        (!link.top && this.config.showBottomArgLabels)) {
    +        link.showArgLabels();
    +      } else {
    +        link.hideArgLabels();
    +      }
    +    });
    +
    +    // Now that Links are visible, make sure that all Rows have enough space
    +    this.rowManager.resizeAll();
    +
    +    // And change the Row resize cursor if compact mode is on
    +    this.rowManager.rows.forEach(row => {
    +      this.config.compactRows
    +        ? row.draggable.addClass("row-drag-compact")
    +        : row.draggable.removeClass("row-drag-compact");
    +    });
    +
    +    // Change token colours based on the current taxonomy, if loaded
    +    this.taxonomyManager.colour(this.words);
    +  }
    +
    +  /**
    +   * Removes all elements from the visualisation
    +   */
    +  clear() {
    +    // Removing Rows takes care of Words and WordTags
    +    while (this.rowManager.rows.length > 0) {
    +      this.rowManager.removeLastRow();
    +    }
    +    // Links and Clusters are drawn directly on the main SVG document
    +    this.links.forEach(link => link.svg && link.svg.remove());
    +    this.words.forEach(word => {
    +      word.clusters.forEach(cluster => cluster.remove());
    +    });
    +    // Reset colours
    +    this.taxonomyManager.resetDefaultColours();
    +  }
    +
    +  /**
    +   * Resets and redraws the visualisation using the data currently stored by the
    +   * Parser (if any)
    +   */
    +  redraw() {
    +    this.clear();
    +    this.init();
    +    this.draw();
    +  }
    +
    +  /**
    +   * Fits the SVG element and its children to the size of its container
    +   */
    +  resize() {
    +    this.svg.size(this.$container.innerWidth(), this.$container.innerHeight());
    +    this.rowManager.resizeAll();
    +  }
    +
    +  // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    +  // Controlling taxonomic information and associated colours
    +
    +  /**
    +   * Loads a new taxonomy specification (in YAML form) into the module
    +   * @param {String} taxonomy - A YAML string representing the taxonomy object
    +   */
    +  loadTaxonomyYaml(taxonomy) {
    +    return this.taxonomyManager.loadTaxonomyYaml(taxonomy);
    +  }
    +
    +  /**
    +   * Returns a YAML representation of the currently loaded taxonomy
    +   */
    +  getTaxonomyYaml() {
    +    return this.taxonomyManager.getTaxonomyYaml();
    +  }
    +
    +  /**
    +   * Returns the currently loaded taxonomy as an Array.
    +   * Simple labels are stored as Strings in Arrays, and category labels are
    +   * stored as single-key objects.
    +   *
    +   * E.g., a YAML document like the following:
    +   *
    +   *  - Label A
    +   *  - Category 1:
    +   *    - Label B
    +   *    - Label C
    +   *  - Label D
    +   *
    +   * Parses to the following taxonomy object:
    +   *
    +   *  [
    +   *    "Label A",
    +   *    {
    +   *      "Category 1": [
    +   *        "Label B",
    +   *        "Label C"
    +   *      ]
    +   *    },
    +   *    "Label D"
    +   *  ]
    +   *
    +   * @return {Array}
    +   */
    +  getTaxonomyTree() {
    +    return this.taxonomyManager.getTaxonomyTree();
    +  }
    +
    +  /**
    +   * Given some label (either for a WordTag or WordCluster), return the
    +   * colour that the taxonomy manager has assigned to it
    +   * @param label
    +   */
    +  getColour(label) {
    +    return this.taxonomyManager.getColour(label);
    +  }
    +
    +  /**
    +   * Sets the colour for some label (either for a WordTag or WordCluster)
    +   * and redraws the visualisation
    +   * @param label
    +   * @param colour
    +   */
    +  setColour(label, colour) {
    +    this.taxonomyManager.assignColour(label, colour);
    +    this.taxonomyManager.colour(this.words);
    +  }
    +
    +  // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    +  // Higher-level API functions
    +
    +  /**
    +   * Exports the current visualisation as an SVG file
    +   */
    +  exportSvg() {
    +    // Get the raw SVG definition
    +    let exportedSVG = this.svg.svg();
    +
    +    // We also need to inline a copy of the relevant SVG styles, which might
    +    // have been modified/overwritten by the user
    +    const svgRules = Util.getCssRules(
    +      this.$container.find(".tag-element").toArray()
    +    );
    +
    +    const i = exportedSVG.indexOf("</defs>");
    +    exportedSVG = exportedSVG.slice(0, i)
    +      + "<style>" + svgRules.join("\n") + "</style>"
    +      + exportedSVG.slice(i);
    +
    +    // Create a virtual download link and simulate a click on it (using the
    +    // native `.click()` method, since jQuery cannot `.trigger()` it
    +    $(`<a 
    +      href="data:image/svg+xml;charset=utf-8,${encodeURIComponent(exportedSVG)}"
    +      download="tag.svg"></a>`)
    +      .appendTo($("body"))[0]
    +      .click();
    +  }
    +
    +  /**
    +   * Changes the value of the given option setting
    +   * (Redraw to see changes)
    +   * @param {String} option
    +   * @param value
    +   */
    +  setOption(option, value) {
    +    this.config[option] = value;
    +  }
    +
    +  /**
    +   * Gets the current value for the given option setting
    +   * @param {String} option
    +   */
    +  getOption(option) {
    +    return this.config[option];
    +  }
    +
    +  /**
    +   * Returns an Array of all the categories available for the top Links
    +   * (Generally, event/relation annotations)
    +   */
    +  getTopLinkCategories() {
    +    const categories = this.links
    +      .filter(link => link.top)
    +      .map(link => link.category);
    +
    +    return _.uniq(categories);
    +  }
    +
    +  /**
    +   * Shows the specified category of top Links, hiding the others
    +   * @param category
    +   */
    +  setTopLinkCategory(category) {
    +    this.setOption("topLinkCategory", category);
    +    this.links
    +      .filter(link => link.top)
    +      .forEach(link => {
    +        if (link.category === category) {
    +          link.show();
    +        } else {
    +          link.hide();
    +        }
    +      });
    +
    +    // Always resize when the set of visible Links may have changed
    +    this.rowManager.resizeAll();
    +  }
    +
    +  /**
    +   * Returns an Array of all the categories available for the bottom Links
    +   * (Generally, syntactic/dependency parses)
    +   */
    +  getBottomLinkCategories() {
    +    const categories = this.links
    +      .filter(link => !link.top)
    +      .map(link => link.category);
    +
    +    return _.uniq(categories);
    +  }
    +
    +  /**
    +   * Shows the specified category of bottom Links, hiding the others
    +   * @param category
    +   */
    +  setBottomLinkCategory(category) {
    +    this.setOption("bottomLinkCategory", category);
    +    this.links
    +      .filter(link => !link.top)
    +      .forEach(link => {
    +        if (link.category === category) {
    +          link.show();
    +        } else {
    +          link.hide();
    +        }
    +      });
    +
    +    // Always resize when the set of visible Links may have changed
    +    this.rowManager.resizeAll();
    +  }
    +
    +  /**
    +   * Returns an Array of all the categories available for top Word tags
    +   * (Generally, text-bound mentions)
    +   */
    +  getTagCategories() {
    +    const categories = this.words
    +      .flatMap(word => word.getTagCategories());
    +    return _.uniq(categories);
    +  }
    +
    +  /**
    +   * Shows the specified category of top Word tags
    +   * @param category
    +   */
    +  setTopTagCategory(category) {
    +    this.setOption("topTagCategory", category);
    +    this.words.forEach(word => {
    +      word.setTopTagCategory(category);
    +      word.passingLinks.forEach(link => link.draw());
    +    });
    +
    +    // (Re-)colour the labels
    +    this.taxonomyManager.colour(this.words);
    +
    +    // Always resize when the set of visible Links may have changed
    +    this.rowManager.resizeAll();
    +  }
    +
    +  /**
    +   * Shows the specified category of bottom Word tags
    +   * @param category
    +   */
    +  setBottomTagCategory(category) {
    +    this.setOption("bottomTagCategory", category);
    +    this.words.forEach(word => {
    +      word.setBottomTagCategory(category);
    +      word.passingLinks.forEach(link => link.draw());
    +    });
    +
    +    // Always resize when the set of visible Links may have changed
    +    this.rowManager.resizeAll();
    +  }
    +
    +  /**
    +   * Shows/hides the main label on top Links
    +   * @param {Boolean} visible - Show if true, hide if false
    +   */
    +  setTopMainLabelVisibility(visible) {
    +    this.setOption("showTopMainLabel", visible);
    +    if (visible) {
    +      this.links
    +        .filter(link => link.top)
    +        .forEach(link => link.showMainLabel());
    +    } else {
    +      this.links
    +        .filter(link => link.top)
    +        .forEach(link => link.hideMainLabel());
    +    }
    +  }
    +
    +  /**
    +   * Shows/hides the argument labels on top Links
    +   * @param {Boolean} visible - Show if true, hide if false
    +   */
    +  setTopArgLabelVisibility(visible) {
    +    this.setOption("showTopArgLabels", visible);
    +    if (visible) {
    +      this.links
    +        .filter(link => link.top)
    +        .forEach(link => link.showArgLabels());
    +    } else {
    +      this.links
    +        .filter(link => link.top)
    +        .forEach(link => link.hideArgLabels());
    +    }
    +  }
    +
    +  /**
    +   * Shows/hides the main label on bottom Links
    +   * @param {Boolean} visible - Show if true, hide if false
    +   */
    +  setBottomMainLabelVisibility(visible) {
    +    this.setOption("showBottomMainLabel", visible);
    +    if (visible) {
    +      this.links
    +        .filter(link => !link.top)
    +        .forEach(link => link.showMainLabel());
    +    } else {
    +      this.links
    +        .filter(link => !link.top)
    +        .forEach(link => link.hideMainLabel());
    +    }
    +  }
    +
    +  /**
    +   * Shows/hides the argument labels on bottom Links
    +   * @param {Boolean} visible - Show if true, hide if false
    +   */
    +  setBottomArgLabelVisibility(visible) {
    +    this.setOption("showBottomArgLabels", visible);
    +    if (visible) {
    +      this.links
    +        .filter(link => !link.top)
    +        .forEach(link => link.showArgLabels());
    +    } else {
    +      this.links
    +        .filter(link => !link.top)
    +        .forEach(link => link.hideArgLabels());
    +    }
    +  }
    +
    +  // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    +  // Private helper/setup functions
    +
    +  /**
    +   * Sets up listeners for custom SVG.js events
    +   * N.B.: Event listeners will change the execution context by default, so
    +   * either provide a closure to the main library instance or use arrow
    +   * functions to preserve the original context
    +   * cf. http://es6-features.org/#Lexicalthis
    +   * @private
    +   */
    +  _setupSVGListeners() {
    +    this.svg.on("row-resize", (event) => {
    +      this.labelManager.stopEditing();
    +      this.rowManager.resizeRow(event.detail.object.idx, event.detail.y);
    +    });
    +
    +    // svg.on('label-updated', function(e) {
    +    //   // TODO: so so incomplete
    +    //   let color = tm.getColor(e.detail.label, e.detail.object);
    +    //   e.detail.object.node.style.fill = color;
    +    // });
    +
    +    this.svg.on("word-move-start", () => {
    +      this.links.forEach(link => {
    +        if ((link.top && !this.config.showTopLinksOnMove) ||
    +          (!link.top && !this.config.showBottomLinksOnMove)) {
    +          link.hide();
    +        }
    +      });
    +    });
    +
    +    this.svg.on("word-move", (event) => {
    +      // tooltip.clear();
    +      this.labelManager.stopEditing();
    +      this.rowManager.moveWordOnRow(event.detail.object, event.detail.x);
    +    });
    +
    +    this.svg.on("word-move-end", () => {
    +      this.links.forEach(link => {
    +        if ((link.top && link.category === this.config.topLinkCategory) ||
    +          (!link.top && link.category === this.config.bottomLinkCategory)) {
    +          link.show();
    +        }
    +      });
    +    });
    +
    +    // this.svg.on("tag-remove", (event) => {
    +    //   event.detail.object.remove();
    +    //   this.taxonomyManager.remove(event.detail.object);
    +    // });
    +
    +    // this.svg.on("row-recalculate-slots", () => {
    +    //   this.links.forEach(link => {
    +    //     link.slot = null;
    +    //   });
    +    //   this.links = Util.sortForSlotting(this.links);
    +    //   this.links.forEach(link => link.calculateSlot(this.words));
    +    //   this.links.forEach(link => link.draw());
    +    // });
    +
    +    // ZW: Hardcoded dependencies on full UI
    +    // this.svg.on("build-tree", (event) => {
    +    //   document.body.classList.remove("tree-closed");
    +    //   if (tree.isInModal) {
    +    //     setActiveTab("tree");
    +    //   }
    +    //   else {
    +    //     setActiveTab(null);
    +    //   }
    +    //   if (e.detail) {
    +    //     tree.graph(e.detail.object);
    +    //   }
    +    //   else {
    +    //     tree.resize();
    +    //   }
    +    // });
    +  }
    +
    +  /**
    +   * Sets up listeners for general browser events
    +   * @private
    +   */
    +  _setupUIListeners() {
    +    // Browser window resize
    +    $(window).on("resize", _.throttle(() => {
    +      this.resize();
    +    }, 50));
    +  }
    +
    +  // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    +  // Debug functions
    +  xLine(x) {
    +    this.svg.line(x, 0, x, 1000).stroke({width: 1});
    +  }
    +
    +  yLine(y) {
    +    this.svg.line(0, y, 1000, y).stroke({width: 1});
    +  }
    +}
    +
    +export default Main;
    +
    +
    + + + + +
    + +
    + + + + + + + + + + diff --git a/docs/managers_rowmanager.js.html b/docs/managers_rowmanager.js.html new file mode 100644 index 0000000..7f7a403 --- /dev/null +++ b/docs/managers_rowmanager.js.html @@ -0,0 +1,507 @@ + + + + + + + + + + + managers/rowmanager.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + managers/rowmanager.js +

    + + + + + +
    +
    +
    import Row from "../components/row.js";
    +
    +class RowManager {
    +  /**
    +   * Instantiate a RowManager for some TAG instance
    +   * @param svg - The svg.js API object for the current TAG instance
    +   * @param config - The Config object for the instance
    +   */
    +  constructor(svg, config) {
    +    this.config = config;
    +    this._svg = svg;
    +    this._rows = [];
    +  }
    +
    +  /**
    +   * Resizes all the Rows in the visualisation, making sure that they all
    +   * fit the parent container and that none of the Rows/Words overlap
    +   */
    +  resizeAll() {
    +    this.width(this._svg.width());
    +    this.resizeRow(0);
    +    this.fitWords();
    +  }
    +
    +  /**
    +   * Attempts to adjust the height of the Row with index `i` by the specified
    +   * `dy`.  If successful, also adjusts the positions of all the Rows that
    +   * follow it accordingly.
    +   *
    +   * If called without a `dy`, simply ensures that the Row's height is at
    +   * least as large as its minimum height.
    +   */
    +  resizeRow(i, dy = 0) {
    +    const row = this._rows[i];
    +    if (!row) return;
    +
    +    // Height adjustment
    +    const newHeight = this.config.compactRows
    +      ? row.minHeight
    +      : Math.max(row.rh + dy, row.minHeight);
    +    if (row.rh !== newHeight) {
    +      row.height(newHeight);
    +      row.redrawLinksAndClusters();
    +    }
    +
    +    // Adjust position/height of all following Rows
    +    for (i = i + 1; i < this._rows.length; i++) {
    +      const prevRow = this._rows[i - 1];
    +      const thisRow = this._rows[i];
    +
    +      // Height check
    +      let changed = false;
    +      const newHeight = this.config.compactRows
    +        ? thisRow.minHeight
    +        : Math.max(thisRow.rh, thisRow.minHeight);
    +      if (thisRow.rh !== newHeight) {
    +        thisRow.height(newHeight);
    +        changed = true;
    +      }
    +
    +      // Position check
    +      if (thisRow.ry !== prevRow.ry2) {
    +        thisRow.move(prevRow.ry2);
    +        changed = true;
    +      }
    +
    +      if (changed) {
    +        thisRow.redrawLinksAndClusters();
    +      }
    +    }
    +
    +    this._svg.height(this.lastRow.ry2 + 20);
    +  }
    +
    +
    +  /**
    +   * Sets the width of all the Rows in the visualisation
    +   * @param {Number} rw - The new Row width
    +   */
    +  width(rw) {
    +    this._rows.forEach(row => {
    +      row.width(rw);
    +
    +      // Find any Words that no longer fit on the Row
    +      let i = row.words
    +        .findIndex(w => w.x + w.minWidth > rw - this.config.rowEdgePadding);
    +      if (i > 0) {
    +        while (i < row.words.length) {
    +          this.moveLastWordDown(row.idx);
    +        }
    +      } else {
    +        // Redraw Words/Links that might have changed
    +        row.redrawLinksAndClusters();
    +      }
    +    });
    +  }
    +
    +  /**
    +   * Makes sure that all Words fit nicely on their Rows without overlaps.
    +   * Runs through all the Words on all the Rows in order; the moment one is
    +   * found that overlaps with a neighbour, a recursive move is initiated.
    +   */
    +  fitWords() {
    +    for (const row of this._rows) {
    +      for (let i = 1; i < row.words.length; i++) {
    +        const prevWord = row.words[i - 1];
    +        const thisWord = row.words[i];
    +        const thisWordPadding = thisWord.isPunct
    +          ? this.config.wordPunctPadding
    +          : this.config.wordPadding;
    +        const thisMinX = prevWord.x + prevWord.minWidth + thisWordPadding;
    +        const diff = thisMinX - thisWord.x;
    +        if (diff > 0) {
    +          return this.moveWordRight({
    +            row: row,
    +            wordIndex: i,
    +            dx: diff
    +          });
    +        }
    +      }
    +    }
    +  }
    +
    +  /**
    +   * Adds a new Row to the bottom of the svg and sets the height of the main
    +   * document to match
    +   */
    +  appendRow() {
    +    const lr = this.lastRow;
    +    const row = !lr
    +      ? new Row(this._svg, this.config)
    +      : new Row(this._svg, this.config, lr.idx + 1, lr.ry2);
    +    this._rows.push(row);
    +    this._svg.height(row.ry2 + 20);
    +    return row;
    +  }
    +
    +  /**
    +   * remove last row at the bottom of the svg and resize to match
    +   */
    +  removeLastRow() {
    +    this._rows.pop().remove();
    +    if (this.lastRow) {
    +      this._svg.height(this.lastRow.ry2 + 20);
    +    }
    +  }
    +
    +  /**
    +   * Adds the given Word to the given Row at the given index.
    +   * Optionally attempts to force an x-position for the Word, which will also
    +   * adjust the x-positions of any Words with higher indices on this Row.
    +   * @param word
    +   * @param row
    +   * @param i
    +   * @param forceX
    +   */
    +  addWordToRow(word, row, i, forceX) {
    +    if (isNaN(i)) {
    +      i = row.words.length;
    +    }
    +
    +    let overflow = row.addWord(word, i, forceX);
    +    while (overflow < row.words.length) {
    +      this.moveLastWordDown(row.idx);
    +    }
    +
    +    // Now that the Words are settled, make sure that the Row is high enough
    +    // (in case it started too short) and has enough descent space, if there
    +    // are Rows following.
    +    this.resizeRow(row.idx);
    +  }
    +
    +  moveWordOnRow(word, dx) {
    +    let row = word.row;
    +    if (!row) {
    +      return;
    +    }
    +    if (dx >= 0) {
    +      this.moveWordRight({
    +        row,
    +        wordIndex: row.words.indexOf(word),
    +        dx
    +      });
    +    } else if (dx < 0) {
    +      dx = -dx;
    +      this.moveWordLeft({
    +        row,
    +        wordIndex: row.words.indexOf(word),
    +        dx
    +      });
    +    }
    +  }
    +
    +  /**
    +   * Recursively attempts to move the Word at the given index on the given
    +   * Row rightwards. If it runs out of space, moves all other Words right or
    +   * to the next Row as needed.
    +   * @param {Row} params.row
    +   * @param {Number} params.wordIndex
    +   * @param {Number} params.dx - A positive number specifying how far to the
    +   *     right we should move the Word
    +   */
    +  moveWordRight(params) {
    +    const row = params.row;
    +    const wordIndex = params.wordIndex;
    +    const dx = params.dx;
    +
    +    const word = row.words[wordIndex];
    +    const nextWord = row.words[wordIndex + 1];
    +
    +    // First, check if we have space available directly next to this word.
    +    let rightEdge;
    +    if (nextWord) {
    +      rightEdge = nextWord.x;
    +      rightEdge -= nextWord.isPunct
    +        ? this.config.wordPunctPadding
    +        : this.config.wordPadding;
    +    } else {
    +      rightEdge = row.rw - this.config.rowEdgePadding;
    +    }
    +    const space = rightEdge - (word.x + word.minWidth);
    +
    +    if (dx <= space) {
    +      word.dx(dx);
    +      return;
    +    }
    +
    +    // No space directly available; recursively move the following Words.
    +    if (!nextWord) {
    +      // Last word on this row
    +      this.moveLastWordDown(row.idx);
    +    } else {
    +      // Move next Word, then move this Word again
    +      this.moveWordRight({
    +        row,
    +        wordIndex: wordIndex + 1,
    +        dx
    +      });
    +      this.moveWordRight(params);
    +    }
    +  }
    +
    +  /**
    +   * Recursively attempts to move the Word at the given index on the given
    +   * Row leftwards. If it runs out of space, tries to move preceding Words
    +   * leftwards or to the previous Row as needed.
    +   * @param {Row} params.row
    +   * @param {Number} params.wordIndex
    +   * @param {Number} params.dx - A positive number specifying how far to the
    +   *     left we should try to move the Word
    +   * @return {Boolean} True if the Word was successfully moved
    +   */
    +  moveWordLeft(params) {
    +    const row = params.row;
    +    const wordIndex = params.wordIndex;
    +    const dx = params.dx;
    +
    +    const word = row.words[wordIndex];
    +    const prevWord = row.words[wordIndex - 1];
    +
    +    const leftPadding = word.isPunct
    +      ? this.config.wordPunctPadding
    +      : this.config.wordPadding;
    +
    +    // First, check if we have space available directly next to this word.
    +    let space = word.x;
    +    if (prevWord) {
    +      space -= prevWord.x + prevWord.minWidth + leftPadding;
    +    } else {
    +      space -= this.config.rowEdgePadding;
    +    }
    +    if (dx <= space) {
    +      word.dx(-dx);
    +      return true;
    +    }
    +
    +    // No space directly available; try to recursively move the preceding Words.
    +
    +    // If this is the first Word on this Row, try fitting it on the
    +    // previous Row, or getting the Words on the previous Row to shift.
    +    if (wordIndex === 0) {
    +      const prevRow = this._rows[row.idx - 1];
    +      if (!prevRow) {
    +        return false;
    +      }
    +
    +      // Fits on the previous Row?
    +      if (prevRow.availableSpace >= word.minWidth + leftPadding) {
    +        this.moveFirstWordUp(row.idx);
    +        return true;
    +      }
    +
    +      // Can we shift the Words on the previous Row?
    +      const prevRowShift =
    +        word.minWidth + leftPadding - prevRow.availableSpace;
    +      const canMove = this.moveWordLeft({
    +        row: prevRow,
    +        wordIndex: prevRow.words.length - 1,
    +        dx: prevRowShift
    +      });
    +
    +      if (canMove) {
    +        // Pop this word up to the previous row
    +        this.moveFirstWordUp(row.idx);
    +        return true;
    +      } else {
    +        // No can do
    +        return false;
    +      }
    +    }
    +
    +    // Not the first Word; try getting the preceding Words on this Row to shift.
    +    const canMove = this.moveWordLeft({
    +      row,
    +      wordIndex: wordIndex - 1,
    +      dx
    +    });
    +    if (canMove) {
    +      // Retry the move (noting that our index may have changed if earlier
    +      // Words were popped up to the previous Row
    +      return this.moveWordLeft({
    +        row,
    +        wordIndex: row.words.indexOf(word),
    +        dx
    +      });
    +    } else {
    +      // Ah well
    +      return false;
    +    }
    +  }
    +
    +  /**
    +   * Move the first Word on the Row with the given index up to the end
    +   * of the previous Row
    +   * @param index
    +   */
    +  moveFirstWordUp(index) {
    +    const row = this._rows[index];
    +    const prevRow = this._rows[index - 1];
    +    if (!row || !prevRow) {
    +      return;
    +    }
    +
    +    const word = row.words[0];
    +    const newX = prevRow.rw - this.config.rowEdgePadding - word.minWidth;
    +
    +    row.removeWord(word);
    +    this.addWordToRow(word, prevRow, undefined, newX);
    +
    +    word.redrawClusters();
    +    word.redrawLinks();
    +
    +    if (row === this.lastRow && row.words.length === 0) {
    +      this.removeLastRow();
    +    }
    +  }
    +
    +  /**
    +   * Move the last Word on the Row with the given index down to the start of
    +   * the next Row
    +   * @param index
    +   */
    +  moveLastWordDown(index) {
    +    let nextRow = this._rows[index + 1] || this.appendRow();
    +    this.addWordToRow(this._rows[index].removeLastWord(), nextRow, 0);
    +  }
    +
    +  /**
    +   * Returns the last Row managed by the RowManager
    +   * @return {*}
    +   */
    +  get lastRow() {
    +    return this._rows[this._rows.length - 1];
    +  }
    +
    +  /**
    +   * Returns the RowManager's internal Row array
    +   * @return {Array}
    +   */
    +  get rows() {
    +    return this._rows;
    +  }
    +}
    +
    +export default RowManager;
    +
    +
    + + + + +
    + +
    + + + + + + + + + + diff --git a/docs/managers_taxonomy.js.html b/docs/managers_taxonomy.js.html new file mode 100644 index 0000000..b6b15ed --- /dev/null +++ b/docs/managers_taxonomy.js.html @@ -0,0 +1,297 @@ + + + + + + + + + + + managers/taxonomy.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + managers/taxonomy.js +

    + + + + + +
    +
    +
    /**
    + * Manages the user-provided taxonomy tree, and the colouring of the
    + * associated elements in the visualisation
    + */
    +
    +import _ from "lodash";
    +import randomColor from "randomcolor";
    +import yaml from "js-yaml";
    +
    +import Word from "../components/word.js";
    +
    +class TaxonomyManager {
    +  constructor(config) {
    +    // The global Config object
    +    this.config = config;
    +
    +    // The currently loaded taxonomy (as a JS Array representing the tree)
    +    this.taxonomy = [];
    +
    +    // The originally-loaded taxonomy string (as a YAML document)
    +    this.taxonomyYaml = "";
    +
    +    // Tag->Colour assignments for the currently loaded taxonomy
    +    this.tagColours = {};
    +
    +    // An array containing the first n default colours to use (as a queue).
    +    // When this array is exhausted, we will switch to using randomColor.
    +    this.defaultColours = _.cloneDeep(config.tagDefaultColours);
    +  }
    +
    +  /**
    +   * Loads a new taxonomy specification (in YAML form) into the module
    +   * @param {String} taxonomyYaml - A YAML string representing the taxonomy
    +   *   object
    +   */
    +  loadTaxonomyYaml(taxonomyYaml) {
    +    this.taxonomy = yaml.safeLoad(taxonomyYaml);
    +    this.taxonomyYaml = taxonomyYaml;
    +  }
    +
    +  /**
    +   * Returns a YAML representation of the currently loaded taxonomy
    +   */
    +  getTaxonomyYaml() {
    +    return this.taxonomyYaml;
    +  }
    +
    +  /**
    +   * Returns the currently loaded taxonomy as an Array.
    +   * Simple labels are stored as Strings in Arrays, and category labels are
    +   * stored as single-key objects.
    +   *
    +   * E.g., a YAML document like the following:
    +   *
    +   *  - Label A
    +   *  - Category 1:
    +   *    - Label B
    +   *    - Label C
    +   *  - Label D
    +   *
    +   * Parses to the following taxonomy object:
    +   *
    +   *  [
    +   *    "Label A",
    +   *    {
    +   *      "Category 1": [
    +   *        "Label B",
    +   *        "Label C"
    +   *      ]
    +   *    },
    +   *    "Label D"
    +   *  ]
    +   *
    +   * @return {Array}
    +   */
    +  getTaxonomyTree() {
    +    return this.taxonomy;
    +  }
    +
    +  /**
    +   * Given some array of Words, recolours them according to the currently
    +   * loaded taxonomy.
    +   * If the word has a WordTag that we are not currently tracking, it will
    +   * be assigned a colour from the default colours list.
    +   * @param {Array} words
    +   */
    +  colour(words) {
    +    words.forEach(word => {
    +      // Words with WordTags
    +      if (word.topTag) {
    +        if (!this.tagColours[word.topTag.val]) {
    +          // We have yet to assign this tag a colour
    +          this.assignColour(word.topTag.val, this.getNewColour());
    +        }
    +        TaxonomyManager.setColour(word, this.tagColours[word.topTag.val]);
    +      }
    +
    +      // Words with WordClusters
    +      if (word.clusters.length > 0) {
    +        word.clusters.forEach(cluster => {
    +          if (!this.tagColours[cluster.val]) {
    +            this.assignColour(cluster.val, this.getNewColour());
    +          }
    +          TaxonomyManager.setColour(cluster, this.tagColours[cluster.val]);
    +        });
    +      }
    +    });
    +  }
    +
    +  /**
    +   * Synonym for `.colour()`
    +   * @param words
    +   * @return {*}
    +   */
    +  color(words) {
    +    return this.colour(words);
    +  }
    +
    +  /**
    +   * Given some label in the visualisation (either for a WordTag or a
    +   * WordCluster), assigns it a colour that will be reflected the next time
    +   * `.colour()` is called.
    +   */
    +  assignColour(label, colour) {
    +    this.tagColours[label] = colour;
    +  }
    +
    +  /**
    +   * Given some element in the visualisation, change its colour
    +   * @param element
    +   * @param colour
    +   */
    +  static setColour(element, colour) {
    +    if (element instanceof Word) {
    +      // Set the colour of the tag
    +      element.topTag.svgText.node.style.fill = colour;
    +    } else {
    +      // Set the colour of the element itself
    +      element.svgText.node.style.fill = colour;
    +    }
    +  }
    +
    +  /**
    +   * Given some label (either for a WordTag or WordCluster), return the
    +   * colour that the taxonomy manager has assigned to it
    +   * @param label
    +   */
    +  getColour(label) {
    +    return this.tagColours[label];
    +  }
    +
    +  /**
    +   * Returns a colour for a new tag.  Will pop from `.defaultColours` first,
    +   * then fall back to `randomColor()`
    +   */
    +  getNewColour() {
    +    if (this.defaultColours.length > 0) {
    +      return this.defaultColours.shift();
    +    } else {
    +      return randomColor();
    +    }
    +  }
    +
    +
    +  /**
    +   * Resets `.defaultColours` to the Array specified in the Config object
    +   * (Used when clearing the visualisation, for example)
    +   */
    +  resetDefaultColours() {
    +    this.defaultColours = _.cloneDeep(this.config.tagDefaultColours);
    +  }
    +}
    +
    +export default TaxonomyManager;
    +
    +
    +
    + + + + +
    + +
    + + + + + + + + + + diff --git a/docs/managers_tooltip.js.html b/docs/managers_tooltip.js.html new file mode 100644 index 0000000..44aec04 --- /dev/null +++ b/docs/managers_tooltip.js.html @@ -0,0 +1,241 @@ + + + + + + + + + + + managers/tooltip.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + managers/tooltip.js +

    + + + + + +
    +
    +
    /**
    + * Not currently in use.
    + */
    +
    +module.exports = (function () {
    +  let div = {};
    +  let _svg = {};
    +  let activeObject = null;
    +  let yOffset = 0;
    +
    +  class Tooltip {
    +    constructor(id, svg) {
    +      div = document.getElementById(id);
    +      yOffset = svg.node.getBoundingClientRect().top;
    +      this.clear = clear;
    +
    +      _svg = svg;
    +
    +      // listeners to open tooltip
    +      svg.on("tag-right-click", openTooltip);
    +      svg.on("word-right-click", openTooltip);
    +      svg.on("link-label-right-click", openTooltip);
    +      svg.on("link-right-click", openTooltip);
    +    }
    +  }
    +
    +  // function to show tooltip and populate div
    +  function openTooltip(e) {
    +    let width = document.body.getBoundingClientRect().width - 175 - 5;
    +    activeObject = e.detail.object;
    +    let html = "";
    +    if (activeObject instanceof Word) {
    +      if (activeObject.tag) {
    +        html += "<p id=\"menu--edit-tag\">Edit tag</p><p id=\"menu--remove-tag\">Remove tag</p>";
    +      } else {
    +        html += "<p id=\"menu--add-tag\">Add tag</p>";
    +      }
    +      html += "<p id=\"menu--add-link\">Add link</p><hr><p id=\"menu--tree\">Tree visualization</p>";
    +    } else if (activeObject instanceof WordTag || activeObject instanceof WordCluster) {
    +      html += "<p id=\"menu--remove-tag\">Remove</p>";
    +    } else if (activeObject instanceof Link) {
    +      if (e.detail.type === "text") {
    +        html += "<p id=\"menu--edit-link-label\">Edit label</p><p id=\"menu--remove-link\">Remove link</p>";
    +      } else {
    +        html += "<p id=\"menu--remove-link\">Remove link</p>";
    +      }
    +      html += "<hr><p id=\"menu--tree\">Tree visualization</p>";
    +    }
    +    if (html) {
    +      div.innerHTML = html;
    +      div.style.left = Math.min(e.detail.event.x, width) + "px";
    +      div.style.top = e.detail.event.y + document.body.scrollTop - yOffset + "px";
    +      div.className = "active";
    +    } else {
    +      activeObject = null;
    +    }
    +  };
    +
    +  // function to hide div
    +  function clear() {
    +    div.className = null;
    +    activeObject = null;
    +  }
    +
    +  // window listeners
    +  // function to listen for a click outside the tooltip
    +  document.addEventListener("mousedown", function (e) {
    +    if (e.target !== div && e.target.parentNode !== div) {
    +      clear();
    +    }
    +  });
    +
    +  // listen for a click inside the tooltip;
    +  document.addEventListener("click", function (e) {
    +    if (e.target.parentNode === div && activeObject) {
    +      switch (e.target.id) {
    +        // tag management events
    +        case "menu--remove-tag":
    +          let tag1 = (activeObject instanceof Word && activeObject.tag) ? activeObject.tag : activeObject;
    +          _svg.fire("tag-remove", {object: tag1});
    +          break;
    +        case "menu--add-tag":
    +          let tag2 = activeObject.setTag("?");
    +          _svg.fire("tag-edit", {object: tag2});
    +          break;
    +        case "menu--edit-tag":
    +          _svg.fire("tag-edit", {object: activeObject.tag});
    +          break;
    +        case "menu--edit-link-label":
    +          _svg.fire("link-label-edit", {
    +            object: activeObject,
    +            text: activeObject.selectedLabel
    +          });
    +          activeObject.selectedLabel = null;
    +          break;
    +        case "menu--remove-link":
    +          activeObject.remove();
    +          _svg.fire("row-recalculate-slots", {object: activeObject});
    +          break;
    +        case "menu--tree":
    +          _svg.fire("build-tree", {object: activeObject});
    +          break;
    +        default:
    +          ;
    +      }
    +      console.log(e.target.id, activeObject && activeObject.val);
    +      clear();
    +    }
    +  });
    +
    +  document.addEventListener("contextmenu", function (e) {
    +    if (tooltip.className === "active") {
    +      e.preventDefault();
    +    }
    +  });
    +
    +  return Tooltip;
    +
    +})();
    +
    +
    + + + + +
    + +
    + + + + + + + + + + diff --git a/docs/module-Util.html b/docs/module-Util.html new file mode 100644 index 0000000..a7e0522 --- /dev/null +++ b/docs/module-Util.html @@ -0,0 +1,513 @@ + + + + + + + + + Util - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + Util +

    + + + + +
    +
    + + + +
    + +
    +
    + + +
    +

    Utility functions

    +
    + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + + +

    Methods

    + + + + + + + + + + + + + +

    + (static) getCssRules(elements) → {Array} +

    +
    + + + + + +
    +

    Get all the CSS rules that match the given elements +Adapted from: +https://stackoverflow.com/questions/2952667/find-all-css-rules-that-apply-to-an-element

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    elements + + + + Array + + + + + + + +

    Array of elements to get rules for

    + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + (static) sortForSlotting(links) +

    +
    + + + + + +
    +

    Sort some given array of Links in preparation for determining their slots +(vertical intervals for overlapping/crossing Links). Needed because the +order that the Parser puts Links in might not be the order we actually want:

    +

    1) Primary sort by index of left endpoint, ascending +2) Secondary sort by number of Words covered, descending

    +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    links + + + + +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + +
    + +
    + + + + + + + + + + \ No newline at end of file diff --git a/docs/parse_odin.js.html b/docs/parse_odin.js.html new file mode 100644 index 0000000..0e68998 --- /dev/null +++ b/docs/parse_odin.js.html @@ -0,0 +1,417 @@ + + + + + + + + + + + parse/odin.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + parse/odin.js +

    + + + + + +
    +
    +
    /**
    + * Parser for Odin `mentions.json` output
    + * https://gist.github.com/myedibleenso/87a3191c73938840b8ed768ec305db38
    + */
    +
    +import Word from "../components/word.js";
    +import Link from "../components/link.js";
    +import WordCluster from "../components/word-cluster.js";
    +
    +class OdinParser {
    +  constructor() {
    +    // This will eventually hold the parsed data for returning to the caller
    +    this.data = {
    +      words: [],
    +      links: [],
    +      clusters: []
    +    };
    +
    +    // Holds the data for individual documents
    +    this.parsedDocuments = {};
    +
    +    // Previously-parsed mentions, by Id.
    +    // Old TextBoundMentions return their host Word/WordCluster
    +    // Old EventMentions/RelationMentions return their Link
    +    this.parsedMentions = {};
    +
    +    // We record the index of the last Word from the previous sentence so
    +    // that we can generate each Word's global index (if not Word indices
    +    // will incorrectly restart from 0 for each new document/sentence)
    +    this.lastWordIdx = -1;
    +  }
    +
    +  /**
    +   * Parses the given data, filling out `this.data` accordingly.
    +   * @param {Object} data
    +   */
    +  parse(data) {
    +    // Clear out any old parse data
    +    this.reset();
    +
    +    // At the top level, the data has two parts: `documents` and `mentions`.
    +    // - `documents` includes the tokens and dependency parses for each
    +    //   document the data contains.
    +    // - `mentions` includes all the events/relations that *every* document
    +    //   contains, but each mention has a `document` property that specifies
    +    //   which document it applies to.
    +
    +    // We will display the tokens from every document consecutively, and fill in
    +    // their mentions to match.
    +    const docIds = Object.keys(data.documents).sort();
    +    for (const docId of docIds) {
    +      this.parsedDocuments[docId] =
    +        this._parseDocument(data.documents[docId], docId);
    +    }
    +
    +    // There are a number of different types of mentions types:
    +    // - TextBoundMention
    +    // - EventMention
    +    for (const mention of data.mentions) {
    +      this._parseMention(mention);
    +    }
    +  }
    +
    +  /**
    +   * Clears out all previously cached parse data (in preparation for a new
    +   * parse)
    +   */
    +  reset() {
    +    this.data = {
    +      words: [],
    +      links: [],
    +      clusters: []
    +    };
    +    this.parsedDocuments = {};
    +    this.parsedMentions = {};
    +    this.lastWordIdx = -1;
    +  }
    +
    +  /**
    +   * Parses a given document (essentially an array of sentences), appending
    +   * the tokens and first set of dependency links to the final dataset.
    +   * TODO: Allow user to select between different dependency graphs
    +   *
    +   * @param document
    +   * @property {Object[]} sentences
    +   *
    +   * @param {String} docId - Unique identifier for this document
    +   * @private
    +   */
    +  _parseDocument(document, docId) {
    +    const thisDocument = {};
    +    /** @type Word[][] **/
    +    thisDocument.sentences = [];
    +
    +    /**
    +     * Each sentence is an object with a number of pre-defined properties;
    +     * we are interested in the following.
    +     * @property {String[]} words
    +     * @property raw
    +     * @property tags
    +     * @property lemmas
    +     * @property entities
    +     * @property norms
    +     * @property chunks
    +     * @property graphs
    +     */
    +    for (const [sentenceId, sentence] of document.sentences.entries()) {
    +      // Hold on to the Words we generate even as we push them up to the
    +      // main data store, so that we can create their syntax Links too
    +      // (which rely on sentence-level indices, not global indices)
    +      const thisSentence = [];
    +
    +      // Read any token-level annotations
    +      for (let thisIdx = 0; thisIdx < sentence.words.length; thisIdx++) {
    +        const thisWord = new Word(
    +          // Text
    +          sentence.words[thisIdx],
    +          // (Global) Word index
    +          thisIdx + this.lastWordIdx + 1
    +        );
    +
    +        // Various token-level tags, if they are available
    +        if (sentence.raw) {
    +          thisWord.registerTag("raw", sentence.raw[thisIdx]);
    +        }
    +        if (sentence.tags) {
    +          thisWord.registerTag("POS", sentence.tags[thisIdx]);
    +        }
    +        if (sentence.lemmas) {
    +          thisWord.registerTag("lemma", sentence.lemmas[thisIdx]);
    +        }
    +        if (sentence.entities) {
    +          thisWord.registerTag("entity", sentence.entities[thisIdx]);
    +        }
    +        if (sentence.norms) {
    +          thisWord.registerTag("norm", sentence.norms[thisIdx]);
    +        }
    +        if (sentence.chunks) {
    +          thisWord.registerTag("chunk", sentence.chunks[thisIdx]);
    +        }
    +
    +        thisSentence.push(thisWord);
    +        this.data.words.push(thisWord);
    +      }
    +
    +      // Update the global Word index offset for the next sentence
    +      this.lastWordIdx += sentence.words.length;
    +
    +      // Sentences may have multiple dependency graphs available
    +      const graphTypes = Object.keys(sentence.graphs);
    +
    +      for (const graphType of graphTypes) {
    +        /**
    +         * @property {Object[]} edges
    +         * @property roots
    +         */
    +        const graph = sentence.graphs[graphType];
    +
    +        /**
    +         * @property {Number} source
    +         * @property {Number} destination
    +         * @property {String} relation
    +         */
    +        for (const [edgeId, edge] of graph.edges.entries()) {
    +          this.data.links.push(new Link(
    +            // eventId
    +            `${docId}-${sentenceId}-${graphType}-${edgeId}`,
    +            // Trigger
    +            thisSentence[edge.source],
    +            // Arguments
    +            [{
    +              anchor: thisSentence[edge.destination],
    +              type: edge.relation
    +            }],
    +            // Relation type
    +            edge.relation,
    +            // Draw Link above Words?
    +            false,
    +            // Category
    +            graphType
    +          ));
    +        }
    +      }
    +
    +      thisDocument.sentences.push(thisSentence);
    +    }
    +
    +    return thisDocument;
    +  }
    +
    +  /**
    +   * Parses the given mention and enriches the data stores accordingly.
    +   *
    +   * - TextBoundMentions become WordTags
    +   * - EventMentions become Links
    +   * - RelationMentions become Links
    +   *
    +   * @param mention
    +   * @private
    +   */
    +  _parseMention(mention) {
    +    /**
    +     * @property {String} mention.type
    +     * @property {String} mention.id
    +     * @property {String} mention.document - The ID of the mention's host
    +     *     document
    +     * @property {Number} mention.sentence - The index of the sentence in the
    +     *     document that this mention comes from
    +     * @property {Object} mention.tokenInterval - The start and end indices
    +     *     for this mention
    +     * @property {String[]} mention.labels - An Array of the labels that
    +     *     this mention should have.  By convention, the first element in the
    +     *     Array is the actual label, and the other elements simply reflect the
    +     *     higher-levels of the label's taxonomic hierarchy.
    +     * @property {Object} mention.arguments
    +     */
    +
    +    // Have we seen this one before?
    +    if (this.parsedMentions[mention.id]) {
    +      return this.parsedMentions[mention.id];
    +    }
    +
    +    // TextBoundMention
    +    // Will become either a tag for a Word, or a WordCluster.
    +    if (mention.type === "TextBoundMention") {
    +      const tokens = this.parsedDocuments[mention.document]
    +        .sentences[mention.sentence]
    +        .slice(mention.tokenInterval.start, mention.tokenInterval.end);
    +      const label = mention.labels[0];
    +
    +      if (tokens.length === 1) {
    +        // Set the annotation tag for this Word
    +        tokens[0].registerTag("default", label);
    +
    +        // tokens[0].setTag(label);
    +
    +        this.parsedMentions[mention.id] = tokens[0];
    +        return tokens[0];
    +      } else {
    +        const cluster = new WordCluster(tokens, label);
    +        this.data.clusters.push(cluster);
    +        this.parsedMentions[mention.id] = cluster;
    +        return cluster;
    +      }
    +    }
    +
    +    // EventMention/RelationMention
    +    // Will become a Link
    +    if (mention.type === "EventMention" || mention.type === "RelationMention") {
    +      // If there is a trigger, it will be a nested Mention.  Ensure it is
    +      // parsed.
    +      let trigger = null;
    +      if (mention.trigger) {
    +        trigger = this._parseMention(mention.trigger);
    +      }
    +
    +      // Read the relation label
    +      const relType = mention.labels[0];
    +
    +      // Generate the arguments array
    +      // `mentions.arguments` is an Object keyed by argument type.
    +      // The value of each key is an array of nested Mentions as arguments
    +      const linkArgs = [];
    +      for (const [type, args] of Object.entries(mention["arguments"])) {
    +        for (const arg of args) {
    +          // Ensure that the argument mention has been parsed before
    +          const anchor = this._parseMention(arg);
    +          linkArgs.push({
    +            anchor,
    +            type
    +          });
    +        }
    +      }
    +
    +      // Done; prepare the new Link
    +      const link = new Link(
    +        // eventId
    +        mention.id,
    +        // Trigger
    +        trigger,
    +        // Arguments
    +        linkArgs,
    +        // Relation type
    +        relType,
    +        // Draw Link above Words?
    +        true
    +      );
    +      this.data.links.push(link);
    +      this.parsedMentions[mention.id] = link;
    +      return link;
    +    }
    +  }
    +}
    +
    +export default OdinParser;
    +
    +
    + + + + +
    + +
    + + + + + + + + + + diff --git a/docs/parse_parse.js.html b/docs/parse_parse.js.html new file mode 100644 index 0000000..4a44911 --- /dev/null +++ b/docs/parse_parse.js.html @@ -0,0 +1,264 @@ + + + + + + + + + + + parse/parse.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + parse/parse.js +

    + + + + + +
    +
    +
    import _ from "lodash";
    +
    +import BratParser from "./brat.js";
    +import OdinParser from "./odin.js";
    +
    +const re = /.*(?=\.(\S+))|.*/;
    +
    +class Parser {
    +  constructor() {
    +    /* output */
    +    this._parsedData = {
    +      words: [],
    +      links: [],
    +      clusters: []
    +    };
    +
    +    /* supported formats */
    +    this.ann = new BratParser();
    +    this.odin = new OdinParser();
    +  }
    +
    +  /**
    +   * Loads annotation data directly into the parser
    +   * @param {Object} data - The raw data expected by the parser for the
    +   *     given format
    +   * @param {String} format
    +   */
    +  loadData(data, format) {
    +    if (format === "brat") {
    +      this.parseBrat(data);
    +    } else if (format === "odin") {
    +      this.parseOdin(data);
    +    } else {
    +      throw `Unknown annotation format: ${format}`;
    +    }
    +    return this.getParsedData();
    +  }
    +
    +  /**
    +   * Loads annotation data from file objects (as read by Main.loadFilesAsync())
    +   * @param {Array} files - An array of objects with the following structure:
    +   *     {
    +   *       name: <file name>
    +   *       type: <file type>
    +   *       content: <file contents as a string>
    +   *     }
    +   * @param {String} format
    +   */
    +  loadFiles(files, format) {
    +    if (files.length === 1) {
    +      // Single file
    +      const file = files[0];
    +      if (format === "brat") {
    +        this.parseBrat(file.content);
    +      } else if (format === "odin") {
    +        // The Odin parser expects an Object directly, not a String
    +        this.parseOdin(JSON.parse(file.content));
    +      } else {
    +        throw `Unknown annotation format: ${format}`;
    +      }
    +    } else {
    +      // Multi-file format
    +      // find 2 or 3 files that match in name
    +      files.sort((a, b) => a.name.localeCompare(b.name));
    +
    +      let matchingFiles = [];
    +
    +      let i = 0;
    +      let iname = files[i].name.match(re);
    +      for (let j = 1; j < files.length; ++j) {
    +        let jname = files[j].name.match(re);
    +        if (jname[1] && jname[0] === iname[0]) {
    +          matchingFiles.push(files[i], files[j]);
    +
    +          let k = j + 1;
    +          while (k < files.length) {
    +            let kname = files[k].name.match(re);
    +            if (kname[1] && kname[0] === iname[0]) {
    +              matchingFiles.push(files[k]);
    +            } else {
    +              break;
    +            }
    +            ++k;
    +          }
    +          break;
    +        }
    +      }
    +
    +      // found matching files
    +      if (format === "brat") {
    +        if (matchingFiles.length === 2) {
    +          // find text content
    +          let text = matchingFiles.find(file => file.name.endsWith(".txt"));
    +          let standoff = matchingFiles.find(file => !file.name.endsWith(".txt"));
    +          this.parseBrat(text.content, standoff.content);
    +        } else {
    +          let text = matchingFiles.find(file => file.name.endsWith(".txt"));
    +          let entities = matchingFiles.find(file => file.name.endsWith(".a1"));
    +          let evts = matchingFiles.find(file => file.name.endsWith(".a2"));
    +          if (text && evts && entities) {
    +            this.parseBrat(text.content, entities.content, evts.content);
    +          } else {
    +            throw "Wrong number/type of files for Brat format";
    +          }
    +        }
    +      } else {
    +        throw "Unknown format, or wrong number/type of files for format";
    +      }
    +    }
    +
    +    return this.getParsedData();
    +  }
    +
    +  /**
    +   * Returns a cloned copy of the most recently parsed data, with circular
    +   * references (e.g., between Words and Links) intact
    +   */
    +  getParsedData() {
    +    return _.cloneDeep(this._parsedData);
    +  }
    +
    +  /**
    +   * Parses the given Brat-format data
    +   * http://brat.nlplab.org/standoff.html
    +   */
    +  parseBrat() {
    +    this.ann.parse.apply(this.ann, arguments);
    +    this._parsedData = this.ann.data;
    +  }
    +
    +  /**
    +   * Parses the given Odin-format data
    +   * https://gist.github.com/myedibleenso/87a3191c73938840b8ed768ec305db38
    +   */
    +  parseOdin(data) {
    +    this.odin.parse(data);
    +    this._parsedData = this.odin.data;
    +  }
    +}
    +
    +export default Parser;
    +
    +
    +
    + + + + +
    + +
    + + + + + + + + + + diff --git a/docs/scripts/linenumber.js b/docs/scripts/linenumber.js new file mode 100644 index 0000000..ff6c069 --- /dev/null +++ b/docs/scripts/linenumber.js @@ -0,0 +1,24 @@ +'use strict'; + +/* global document */ +(function () { + var lineId, lines, totalLines, anchorHash; + var source = document.getElementsByClassName('prettyprint source linenums'); + var i = 0; + var lineNumber = 0; + + if (source && source[0]) { + anchorHash = document.location.hash.substring(1); + lines = source[0].getElementsByTagName('li'); + totalLines = lines.length; + + for (; i < totalLines; i++) { + lineNumber++; + lineId = 'line' + lineNumber; + lines[i].id = lineId; + if (lineId === anchorHash) { + lines[i].className += ' selected'; + } + } + } +})(); diff --git a/docs/scripts/pagelocation.js b/docs/scripts/pagelocation.js new file mode 100644 index 0000000..e138368 --- /dev/null +++ b/docs/scripts/pagelocation.js @@ -0,0 +1,89 @@ +'use strict'; + +$(document).ready(function () { + var currentSectionNav, target; + + // If an anchor hash is in the URL highlight the menu item + highlightActiveHash(); + // If a specific page section is in the URL highlight the menu item + highlightActiveSection(); + + // If a specific page section is in the URL scroll that section up to the top + currentSectionNav = $('#' + getCurrentSectionName() + '-nav'); + + if (currentSectionNav.position()) { + $('nav').scrollTop(currentSectionNav.position().top); + } + + // function to scroll to anchor when clicking an anchor linl + $('a[href*="#"]:not([href="#"])').click(function () { + /* eslint-disable no-invalid-this */ + if (location.pathname.replace(/^\//, '') === this.pathname.replace(/^\//, '') && location.hostname === this.hostname) { + target = $(this.hash); + target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); + if (target.length) { + $('html, body').animate({ + scrollTop: target.offset().top + }, 1000); + } + } + /* eslint-enable no-invalid-this */ + }); +}); + +// If a new anchor section is selected, change the hightlighted menu item +$(window).bind('hashchange', function (event) { + highlightActiveHash(event); +}); + +function highlightActiveHash(event) { + var oldUrl, oldSubSectionElement; + + // check for and remove old hash active state + if (event && event.originalEvent.oldURL) { + oldUrl = event.originalEvent.oldURL; + + if (oldUrl.indexOf('#') > -1) { + oldSubSectionElement = $('#' + getCurrentSectionName() + '-' + oldUrl.substring(oldUrl.indexOf('#') + 1) + '-nav'); + + if (oldSubSectionElement) { + oldSubSectionElement.removeClass('active'); + } + } + } + + if (getCurrentHashName()) { + $('#' + getCurrentSectionName() + '-' + getCurrentHashName() + '-nav').addClass('active'); + } +} + +function highlightActiveSection() { + var pageId = getCurrentSectionName(); + + $('#' + pageId + '-nav').addClass('active'); +} + +function getCurrentSectionName() { + var path = window.location.pathname; + var pageUrl = path.split('/').pop(); + + var sectionName = pageUrl.substring(0, pageUrl.indexOf('.')); + + // remove the wodr module- if its in the url + sectionName = sectionName.replace('module-', ''); + + return sectionName; +} + +function getCurrentHashName() { + var pageSubSectionId; + var pageSubSectionHash = window.location.hash; + + if (pageSubSectionHash) { + pageSubSectionId = pageSubSectionHash.substring(1).replace('.', ''); + + return pageSubSectionId; + } + + return false; +} diff --git a/docs/styles/collapse.css b/docs/styles/collapse.css new file mode 100644 index 0000000..4dc4121 --- /dev/null +++ b/docs/styles/collapse.css @@ -0,0 +1,27 @@ +@media only screen and (min-width: 681px) { + nav > ul > li:hover .methods, + .active .methods { + display: block; + } + + .methods { + display: none; + } + + nav > ul > li { + padding: 20px 0; + } + + nav > ul > li > a { + padding: 0; + } + + nav > ul > li.active a { + margin-bottom: 10px; + } + + nav > ul > li:hover > a, + nav > ul > li.active > a { + margin-bottom: 15px; + } +} diff --git a/docs/styles/jsdoc-default.css b/docs/styles/jsdoc-default.css new file mode 100644 index 0000000..7b74143 --- /dev/null +++ b/docs/styles/jsdoc-default.css @@ -0,0 +1,977 @@ +@font-face { + font-family: "Avenir Next W01"; + font-style: normal; + font-weight: 600; + src: url("https://fast.fonts.net/dv2/14/14c73713-e4df-4dba-933b-057feeac8dd1.woff2?d44f19a684109620e484167ba790e8180fd9e29df91d80ce3d096f014db863074e1ea706cf5ed4e1c042492e76df291ce1d24ec684d3d9da9684f55406b9f22bce02f0f30f556681593dafea074d7bd44e28a680d083ccfd44ed4f8a3087a20c56147c11f917ed1dbd85c4a18cf38da25e6ac78f008f472262304d50e7e0cb7541ef1642c676db6e4bde4924846f5daf486fbde9335e98f6a20f6664bc4525253d1d4fca42cf1c490483c8daf0237f6a0fd292563417ad80ca3e69321417747bdc6f0969f34b2a0401b5e2b9a4dfd5b06d9710850900c66b34870aef&projectId=f750d5c7-baa2-4767-afd7-45484f47fe17") format('woff2'); +} + +@font-face { + font-family: "Avenir Next W01"; + font-style: normal; + font-weight: 500; + src: url("https://fast.fonts.net/dv2/14/627fbb5a-3bae-4cd9-b617-2f923e29d55e.woff2?d44f19a684109620e484167ba790e8180fd9e29df91d80ce3d096f014db863074e1ea706cf5ed4e1c042492e76df291ce1d24ec684d3d9da9684f55406b9f22bce02f0f30f556681593dafea074d7bd44e28a680d083ccfd44ed4f8a3087a20c56147c11f917ed1dbd85c4a18cf38da25e6ac78f008f472262304d50e7e0cb7541ef1642c676db6e4bde4924846f5daf486fbde9335e98f6a20f6664bc4525253d1d4fca42cf1c490483c8daf0237f6a0fd292563417ad80ca3e69321417747bdc6f0969f34b2a0401b5e2b9a4dfd5b06d9710850900c66b34870aef&projectId=f750d5c7-baa2-4767-afd7-45484f47fe17") format('woff2'); +} + +@font-face { + font-family: "Avenir Next W01"; + font-style: normal; + font-weight: 400; + src: url("https://fast.fonts.net/dv2/14/2cd55546-ec00-4af9-aeca-4a3cd186da53.woff2?d44f19a684109620e484167ba790e8180fd9e29df91d80ce3d096f014db863074e1ea706cf5ed4e1c042492e76df291ce1d24ec684d3d9da9684f55406b9f22bce02f0f30f556681593dafea074d7bd44e28a680d083ccfd44ed4f8a3087a20c56147c11f917ed1dbd85c4a18cf38da25e6ac78f008f472262304d50e7e0cb7541ef1642c676db6e4bde4924846f5daf486fbde9335e98f6a20f6664bc4525253d1d4fca42cf1c490483c8daf0237f6a0fd292563417ad80ca3e69321417747bdc6f0969f34b2a0401b5e2b9a4dfd5b06d9710850900c66b34870aef&projectId=f750d5c7-baa2-4767-afd7-45484f47fe17") format('woff2'); +} + +@font-face { + font-family: 'bt_mono'; + font-style: normal; + font-weight: 400; + src: url('https://assets.braintreegateway.com/fonts/bt_mono_regular-webfont.eot'); + src: url('https://assets.braintreegateway.com/fonts/bt_mono_regular-webfont.woff2') format('woff2'), url('https://assets.braintreegateway.com/fonts/bt_mono_regular-webfont.woff') format('woff'), url('https://assets.braintreegateway.com/fonts/bt_mono_regular-webfont.ttf') format('truetype'), url('https://assets.braintreegateway.com/fonts/bt_mono_regular-webfont.svg#bt_mono_reqular-webfont') format('svg'); +} + +@font-face { + font-family: 'bt_mono'; + font-style: normal; + font-weight: 500; + src: url('https://assets.braintreegateway.com/fonts/bt_mono_medium-webfont.eot'); + src: url('https://assets.braintreegateway.com/fonts/bt_mono_medium-webfont.woff2') format('woff2'), url('https://assets.braintreegateway.com/fonts/bt_mono_medium-webfont.woff') format('woff'), url('https://assets.braintreegateway.com/fonts/bt_mono_medium-webfont.ttf') format('truetype'), url('https://assets.braintreegateway.com/fonts/bt_mono_medium-webfont.svg#bt_mono_medium-webfont') format('svg'); +} + +@font-face { + font-family: 'bt_mono'; + font-style: normal; + font-weight: 600; + src: url('https://assets.braintreegateway.com/fonts/bt_mono_bold-webfont.eot'); + src: url('https://assets.braintreegateway.com/fonts/bt_mono_bold-webfont.woff2') format('woff2'), url('https://assets.braintreegateway.com/fonts/bt_mono_bold-webfont.woff') format('woff'), url('https://assets.braintreegateway.com/fonts/bt_mono_bold-webfont.ttf') format('truetype'), url('https://assets.braintreegateway.com/fonts/bt_mono_bold-webfont.svg#bt_mono_bold-webfont') format('svg'); +} + +@font-face { + font-family: 'bt_mono'; + font-style: normal; + font-weight: 900; + src: url('https://assets.braintreegateway.com/fonts/bt_mono_heavy-webfont.eot'); + src: url('https://assets.braintreegateway.com/fonts/bt_mono_heavy-webfont.woff2') format('woff2'), url('https://assets.braintreegateway.com/fonts/bt_mono_heavy-webfont.woff') format('woff'), url('https://assets.braintreegateway.com/fonts/bt_mono_heavy-webfont.ttf') format('truetype'), url('https://assets.braintreegateway.com/fonts/bt_mono_heavy-webfont.svg#bt_mono_heavy-webfont') format('svg'); +} + +* { + box-sizing: border-box +} + +html, body { + height: 100%; + width: 100%; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + color: #3e3c42; + text-rendering: optimizeLegibility; + margin: 0; +} + +body { + color: #3e3c42; + background-color: #f3f3f3; + width: 100%; + font: 16px/1.875 "Avenir Next W01", "Avenir Next", "Helvetica Neue", Helvetica, sans-serif; + font-size: 16px; + line-height: 160%; +} + +a, a:active { + color: #0095dd; + text-decoration: none; +} + +a:hover { + text-decoration: underline +} + +p, ul, ol, blockquote { + margin-bottom: 1em; +} + +p { + max-width: 800px; +} + +h1, h2, h3, h4, h5, h6 { + color: #706d77; + font-weight: 500; + margin: 0; + line-height: 1; +} + +h1 { + color: #4b484f; + font-weight: 500; + font-size: 40px; + display: block; +} + +h1 span { + color: #999; + font-size: 32px; + display: block; + line-height: 1.5; +} + +h1.page-title { + border-bottom: 1px dashed #ccc; + margin-bottom: 20px; + padding-bottom: 30px; +} + +h2 { + font-size: 30px; + margin: 1.5em 0 0; +} + +h3 { + font-size: 20px; + margin: 1.5em 0 0; + text-transform: uppercase; +} + +h3.reference-title { + display: block; + font-weight: 400; + margin-top: 2em; + max-width: 200px; +} + +h3.reference-title small { + display: inline-block; + color: #0095dd; + margin-left: 5px; + font-weight: 500; +} + +h3.subsection-title { + border-bottom: 1px solid #ececec; + padding-bottom: 20px; + margin-top: 3em; + margin-bottom: 1em; +} + +h4 { + font-size: 16px; + margin: 1em 0 0; + font-weight: bold; +} + +h4.name { + font-size: 20px; + margin-top: 0; + font-weight: 500; +} + +h5 { + margin: 2em 0 0.5em 0; + font-size: 14px; + font-weight: 500; + text-transform: uppercase; +} + +.container-overview .subsection-title { + font-size: 14px; + text-transform: uppercase; + margin: 8px 0 15px 0; + font-weight: bold; + color: #4D4E53; + padding-top: 10px; +} + +h6 { + font-size: 100%; + letter-spacing: -0.01em; + margin: 6px 0 3px 0; + font-style: italic; + text-transform: uppercase; + font-weight: 500; +} + +tt, code, kbd, samp { + font-family: "Source Code Pro", monospace; + background: #f4f4f4; + padding: 1px 5px; + border-radius: 5px; +} + +.class-description { + margin-bottom: 1em; + margin-top: 1em; + padding: 10px 20px; + background-color: rgba(26, 159, 224, 0.1); +} + +.class-description:empty { + margin: 0 +} + +#main { + background-color: white; + float: right; + min-width: 360px; + width: calc(100% - 300px); + padding: 30px; + z-index: 100; +} + +header { + display: block; + max-width: 1400px; +} + +section { + display: block; + max-width: 1400px; + background-color: #fff; +} + +.variation { + display: none +} + +.signature-attributes { + font-size: 60%; + color: #aaa; + font-style: italic; + font-weight: lighter; +} + +.rule { + width: 100%; + margin-top: 20px; + display: block; + border-top: 1px solid #ccc; +} + +ul { + list-style-type: none; + padding-left: 0; +} + +ul li a { + font-weight: 500; +} + +ul ul { + padding-top: 5px; +} + +ul li ul { + padding-left: 20px; +} + +ul li ul li a { + font-weight: normal; +} + +nav { + float: left; + display: block; + width: 300px; + background: #f7f7f7; + overflow-x: visible; + overflow-y: auto; + height: 100%; + padding: 0px 30px 100px 30px; + height: 100%; + position: fixed; + transition: left 0.2s; + z-index: 998; + margin-top: 0px; + top: 43px; +} + +.navicon-button { + display: inline-block; + position: fixed; + bottom: 1.5em; + right: 1.5em; + z-index: 2; +} + +nav h3 { + font-size: 13px; + text-transform: uppercase; + letter-spacing: 1px; + font-weight: bold; + line-height: 24px; + margin: 40px 0 10px 0; + padding: 0; +} + +nav ul { + font-size: 100%; + line-height: 17px; + padding: 0; + margin: 0; + list-style-type: none; + border: none; + padding-left: 0; +} + +nav ul a { + font-size: 16px; +} + +nav ul a, nav ul a:active { + display: block; +} + +nav ul a:hover, nav ul a:active { + color: hsl(200, 100%, 43%); + text-decoration: none; +} + +nav > ul { + padding: 0 10px; +} + +nav > ul li:first-child { + padding-top: 0; +} + +nav ul li ul { + padding-left: 0; +} + +nav > ul > li { + border-bottom: 1px solid #e2e2e2; + padding: 10px 0 20px 0; +} + +nav > ul > li.active ul { + border-left: 3px solid #0095dd; + padding-left: 15px; +} + +nav > ul > li.active ul li.active a { + font-weight: bold; +} + +nav > ul > li.active a { + color: #0095dd; +} + +nav > ul > li > a { + color: #706d77; + padding: 20px 0; + font-size: 18px; +} + +nav ul ul { + margin-bottom: 10px; + padding-left: 0; +} + +nav ul ul a { + color: #5f5c63; +} + +nav ul ul a, nav ul ul a:active { + font-family: 'bt_mono', monospace; + font-size: 14px; + padding-left: 20px; + padding-top: 3px; + padding-bottom: 9px; +} + +nav h2 { + font-size: 12px; + margin: 0; + padding: 0; +} + +nav > h2 > a { + color: hsl(202, 71%, 50%); + border-bottom: 1px solid hsl(202, 71%, 50%); + padding-bottom: 5px; +} + +nav > h2 > a:hover { + font-weight: 500; + text-decoration: none; +} + +footer { + background-color: #fff; + color: hsl(0, 0%, 28%); + margin-left: 300px; + display: block; + font-style: italic; + font-size: 12px; + padding: 30px; + text-align: center; +} + +.ancestors { + color: #999; +} + +.ancestors a { + color: #999 !important; + text-decoration: none; +} + +.clear { + clear: both; +} + +.important { + font-weight: bold; + color: #950B02; +} + +.yes-def { + text-indent: -1000px; +} + +.type-signature { + color: #aaa; +} + +.name, .signature { + font-family: 'bt_mono', monospace; + word-wrap: break-word; +} + +.details { + margin-top: 14px; + font-size: 13px; + text-align: right; + background: #ffffff; + /* Old browsers */ + background: -moz-linear-gradient(left, #ffffff 0%, #fafafa 100%); + /* FF3.6-15 */ + background: -webkit-linear-gradient(left, #ffffff 0%, #fafafa 100%); + /* Chrome10-25,Safari5.1-6 */ + background: linear-gradient(to right, #ffffff 0%, #fafafa 100%); + /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */ + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#fafafa', GradientType=1); + padding-right: 5px; +} + +.details dt { + display: inline-block; +} + +.details dd { + display: inline-block; + margin: 0; +} + +.details dd a { + font-style: italic; + font-weight: normal; + line-height: 1; +} + +.details ul { + list-style-type: none; + margin: 0; +} + +.details pre.prettyprint { + margin: 0 +} + +.details .object-value { + padding-top: 0 +} + +.description { + margin-bottom: 1em; + margin-top: 1em; +} + +.code-caption { + font-style: italic; + margin: 0; + font-size: 16px; + color: #545454; +} + +.prettyprint { + font-size: 13px; + border: 1px solid #ddd; + border-radius: 3px; + overflow: auto; + background-color: #fbfbfb; +} + +.prettyprint.source { + width: inherit; +} + +.prettyprint code { + font-size: 100%; + line-height: 18px; + display: block; + margin: 0 30px; + background-color: #fbfbfb; + color: #4D4E53; +} + +.prettyprint > code { + padding: 30px 15px; +} + +.prettyprint .linenums code { + padding: 0 15px; +} + +.prettyprint .linenums li:first-of-type code { + padding-top: 15px; +} + +.prettyprint code span.line { + display: inline-block; +} + +.prettyprint.linenums { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.prettyprint.linenums ol { + padding-left: 0 +} + +.prettyprint.linenums li { + border-left: 3px #ddd solid +} + +.prettyprint.linenums li.selected, .prettyprint.linenums li.selected * { + background-color: lightyellow +} + +.prettyprint.linenums li * { + -webkit-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + user-select: text; +} + +.readme .prettyprint { + max-width: 800px; +} + +.params, .props { + border-spacing: 0; + border: 1px solid #ddd; + border-radius: 3px; + width: 100%; + font-size: 14px; +} + +.params .name, .props .name, .name code { + color: #4D4E53; + font-family: 'bt_mono', monospace; + font-size: 100%; +} + +.params td, .params th, .props td, .props th { + margin: 0px; + text-align: left; + vertical-align: top; + padding: 10px; + display: table-cell; +} + +.params td { + border-top: 1px solid #eee; +} + +.params thead tr, .props thead tr { + background-color: #fff; + font-weight: bold; +} + +.params .params thead tr, .props .props thead tr { + background-color: #fff; + font-weight: bold; +} + +.params td.description > p:first-child, .props td.description > p:first-child { + margin-top: 0; + padding-top: 0; +} + +.params td.description > p:last-child, .props td.description > p:last-child { + margin-bottom: 0; + padding-bottom: 0; +} + +dl.param-type { + margin-top: 5px; +} + +.param-type dt, .param-type dd { + display: inline-block +} + +.param-type dd { + font-family: Consolas, Monaco, 'Andale Mono', monospace +} + +.disabled { + color: #454545 +} + + +/* tag source style */ + +.tag-deprecated { + padding-right: 5px; +} + +.tag-source { + border-bottom: 1px solid rgba(28, 160, 224, 0.35); +} + +.tag-source:first-child { + border-bottom: 1px solid rgba(28, 160, 224, 1); +} + + +/* navicon button */ + +.navicon-button { + position: relative; + transition: 0.25s; + cursor: pointer; + user-select: none; + opacity: .8; + background-color: white; + border-radius: 100%; + width: 50px; + height: 50px; + -webkit-box-shadow: 0px 2px 9px 0px rgba(0, 0, 0, 0.31); + -moz-box-shadow: 0px 2px 9px 0px rgba(0, 0, 0, 0.31); + box-shadow: 0px 2px 9px 0px rgba(0, 0, 0, 0.31); +} + +.navicon-button .navicon:before, .navicon-button .navicon:after { + transition: 0.25s; +} + +.navicon-button:hover { + transition: 0.5s; + opacity: 1; +} + +.navicon-button:hover .navicon:before, .navicon-button:hover .navicon:after { + transition: 0.25s; +} + +.navicon-button:hover .navicon:before { + top: .425rem; +} + +.navicon-button:hover .navicon:after { + top: -.425rem; +} + + +/* navicon */ + +.navicon { + position: relative; + width: 1.5em; + height: .195rem; + background: #000; + top: calc(50% - .09rem); + left: calc(50% - .75rem); + transition: 0.3s; + border-radius: 5px; +} + +.navicon:before, .navicon:after { + display: block; + content: ""; + height: .195rem; + width: 1.5rem; + background: #000; + position: absolute; + z-index: -1; + transition: 0.3s 0.25s; +} + +.navicon:before { + top: 0.425rem; + height: .195rem; + border-radius: 5px; +} + +.navicon:after { + top: -0.425rem; + border-radius: 5px; +} + + +/* open */ + +.nav-trigger:checked + label:not(.steps) .navicon:before, .nav-trigger:checked + label:not(.steps) .navicon:after { + top: 0 !important; +} + +.nav-trigger:checked + label .navicon:before, .nav-trigger:checked + label .navicon:after { + transition: 0.5s; +} + + +/* Minus */ + +.nav-trigger:checked + label { + transform: scale(0.75); +} + + +/* × and + */ + +.nav-trigger:checked + label.plus .navicon, .nav-trigger:checked + label.x .navicon { + background: transparent; +} + +.nav-trigger:checked + label.plus .navicon:before, .nav-trigger:checked + label.x .navicon:before { + transform: rotate(-45deg); + background: #000; +} + +.nav-trigger:checked + label.plus .navicon:after, .nav-trigger:checked + label.x .navicon:after { + transform: rotate(45deg); + background: #000; +} + +.nav-trigger:checked + label.plus { + transform: scale(0.75) rotate(45deg); +} + +.nav-trigger:checked ~ nav { + left: 0 !important; +} + +.nav-trigger:checked ~ .overlay { + display: block; +} + +.nav-trigger { + position: fixed; + top: 0; + clip: rect(0, 0, 0, 0); +} + +.overlay { + display: none; + position: fixed; + top: 0; + bottom: 0; + left: 0; + right: 0; + width: 100%; + height: 100%; + background: hsla(0, 0%, 0%, 0.5); + z-index: 1; +} + +table { + border-collapse: separate;; + display: block; + overflow-x: auto; + /*table-layout:fixed;*/ +} + +table tbody td { + border-top: 1px solid hsl(207, 10%, 86%); + border-right: 1px solid #eee; + padding: 5px; + /*word-wrap: break-word;*/ +} + +td table.params, td table.props { + border: 0; +} + +@media only screen and (min-width: 320px) and (max-width: 680px) { + body { + overflow-x: hidden; + } + + #main { + padding: 30px 30px; + width: 100%; + min-width: 360px; + } + + nav { + background: #FFF; + width: 300px; + height: 100%; + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: -300px; + z-index: 3; + padding: 0 10px; + transition: left 0.2s; + margin-top: 0; + } + + .navicon-button { + display: inline-block; + position: fixed; + bottom: 1.5em; + right: 20px; + z-index: 1000; + } + + .top-nav-wrapper { + display: none; + } + + #main h1.page-title { + margin: 0.5em 0; + } + + footer { + margin-left: 0; + margin-bottom: 30px; + } +} + +.top-nav-wrapper { + background-color: #ececec; + position: fixed; + top: 0px; + left: 0px; + padding: 10px 10px 0 10px; + z-index: 999; + width: 300px; +} + +.top-nav-wrapper ul { + margin: 0; +} + +.top-nav-wrapper ul li { + display: inline-block; + padding: 0 10px; + vertical-align: top; +} + +.top-nav-wrapper ul li.active { + border-bottom: 2px solid rgba(28, 160, 224, 1); +} + +.search-wrapper { + display: inline-block; + position: relative; +} + +.search-wrapper svg { + position: absolute; + left: 0px; +} + +input.search-input { + background: transparent; + box-shadow: 0; + border: 0; + border-bottom: 1px solid #c7c7c7; + padding: 7px 15px 12px 35px; + margin: 0 auto; +} + + +/* Smooth outline with box-shadow: */ + +input.search-input:focus { + border-bottom: 2px solid rgba(28, 160, 224, 1); + outline: none; +} + + +/* Hightlight JS Paradiso Light Theme */ + +.hljs-comment, .hljs-quote { + color: #776e71 +} + +.hljs-variable, .hljs-template-variable, .hljs-tag, .hljs-name, .hljs-selector-id, .hljs-selector-class, .hljs-regexp, .hljs-link, .hljs-meta { + color: #ef6155 +} + +.hljs-number, .hljs-built_in, .hljs-builtin-name, .hljs-literal, .hljs-type, .hljs-params, .hljs-deletion { + color: #f99b15 +} + +.hljs-title, .hljs-section, .hljs-attribute { + color: #fec418 +} + +.hljs-string, .hljs-symbol, .hljs-bullet, .hljs-addition { + color: #48b685 +} + +.hljs-keyword, .hljs-selector-tag { + color: #815ba4 +} + +.hljs { + display: block; + overflow-x: auto; + background: #e7e9db; + color: #4f424c; + padding: 0.5em +} + +.hljs-emphasis { + font-style: italic +} + +.hljs-strong { + font-weight: bold +} + +.link-icon { + opacity: 0; + position: absolute; + margin-left: -25px; + padding-right: 5px; + padding-top: 2px; +} + +.example-container .link-icon { + margin-top: -6px; +} + +.example-container:hover .link-icon, +.name-container:hover .link-icon { + opacity: .5; +} + +.name-container { + display: flex; + padding-top: 1em; +} + +/** Additions for TAG **/ +table { + border-collapse: collapse; + display: table; +} + +table thead th { + border-top: 1px solid hsl(207, 10%, 86%); + border-right: 1px solid #eee; +} + +img { + max-width: 800px; +} + +h3 { + text-transform: none !important; +} \ No newline at end of file diff --git a/docs/styles/prettify-jsdoc.css b/docs/styles/prettify-jsdoc.css new file mode 100644 index 0000000..834a866 --- /dev/null +++ b/docs/styles/prettify-jsdoc.css @@ -0,0 +1,111 @@ +/* JSDoc prettify.js theme */ + +/* plain text */ +.pln { + color: #000000; + font-weight: normal; + font-style: normal; +} + +/* string content */ +.str { + color: hsl(104, 100%, 24%); + font-weight: normal; + font-style: normal; +} + +/* a keyword */ +.kwd { + color: #000000; + font-weight: bold; + font-style: normal; +} + +/* a comment */ +.com { + font-weight: normal; + font-style: italic; +} + +/* a type name */ +.typ { + color: #000000; + font-weight: normal; + font-style: normal; +} + +/* a literal value */ +.lit { + color: #006400; + font-weight: normal; + font-style: normal; +} + +/* punctuation */ +.pun { + color: #000000; + font-weight: bold; + font-style: normal; +} + +/* lisp open bracket */ +.opn { + color: #000000; + font-weight: bold; + font-style: normal; +} + +/* lisp close bracket */ +.clo { + color: #000000; + font-weight: bold; + font-style: normal; +} + +/* a markup tag name */ +.tag { + color: #006400; + font-weight: normal; + font-style: normal; +} + +/* a markup attribute name */ +.atn { + color: #006400; + font-weight: normal; + font-style: normal; +} + +/* a markup attribute value */ +.atv { + color: #006400; + font-weight: normal; + font-style: normal; +} + +/* a declaration */ +.dec { + color: #000000; + font-weight: bold; + font-style: normal; +} + +/* a variable name */ +.var { + color: #000000; + font-weight: normal; + font-style: normal; +} + +/* a function name */ +.fun { + color: #000000; + font-weight: bold; + font-style: normal; +} + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; +} diff --git a/docs/styles/prettify-tomorrow.css b/docs/styles/prettify-tomorrow.css new file mode 100644 index 0000000..eaf1251 --- /dev/null +++ b/docs/styles/prettify-tomorrow.css @@ -0,0 +1,138 @@ +/* Tomorrow Theme */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #4d4d4c; } + +@media screen { + /* string content */ + .str { + color: hsl(104, 100%, 24%); } + + /* a keyword */ + .kwd { + color: hsl(240, 100%, 50%); } + + /* a comment */ + .com { + color: hsl(0, 0%, 60%); } + + /* a type name */ + .typ { + color: hsl(240, 100%, 32%); } + + /* a literal value */ + .lit { + color: hsl(240, 100%, 40%); } + + /* punctuation */ + .pun { + color: #000000; } + + /* lisp open bracket */ + .opn { + color: #000000; } + + /* lisp close bracket */ + .clo { + color: #000000; } + + /* a markup tag name */ + .tag { + color: #c82829; } + + /* a markup attribute name */ + .atn { + color: #f5871f; } + + /* a markup attribute value */ + .atv { + color: #3e999f; } + + /* a declaration */ + .dec { + color: #f5871f; } + + /* a variable name */ + .var { + color: #c82829; } + + /* a function name */ + .fun { + color: #4271ae; } } +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #060; } + + .kwd { + color: #006; + font-weight: bold; } + + .com { + color: #600; + font-style: italic; } + + .typ { + color: #404; + font-weight: bold; } + + .lit { + color: #044; } + + .pun, .opn, .clo { + color: #440; } + + .tag { + color: #006; + font-weight: bold; } + + .atn { + color: #404; } + + .atv { + color: #060; } } +/* Style */ +/* +pre.prettyprint { + background: white; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 12px; + line-height: 1.5; + border: 1px solid #ccc; + padding: 10px; } +*/ + +/* Get LI elements to show when they are in the main article */ +article ul li { + list-style-type: circle; + margin-left: 25px; +} + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; } + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ } + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ } diff --git a/docs/tag.js.html b/docs/tag.js.html new file mode 100644 index 0000000..daac541 --- /dev/null +++ b/docs/tag.js.html @@ -0,0 +1,166 @@ + + + + + + + + + + + tag.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + tag.js +

    + + + + + +
    +
    +
    /**
    + * Instantiation and static functions
    + */
    +
    +import Main from "./main";
    +
    +/**
    + * Initialises a TAG visualisation on the given element.
    + * @param {Object} params - Initialisation parameters.
    + * @param {String|Element|jQuery} params.container - Either a string
    + *     containing the ID of the container element, or the element itself (as a
    + *     native/jQuery object).
    + * @param {Object} [params.data] - Initial data to load, if any.
    + * @param {String} [params.format] - One of the supported format identifiers for
    + *     the data.
    + * @param {Object} [params.options] - Overrides for various default
    + *     library options.
    + */
    +function tag(params) {
    +  // Core params
    +  if (!params.container) {
    +    throw "No TAG container element specified.";
    +  }
    +
    +  if (!params.options) {
    +    params.options = {};
    +  }
    +
    +  const instance = new Main(params.container, params.options);
    +
    +  // Initial data load
    +  if (params.data && params.format) {
    +    instance.loadData(params.data, params.format);
    +  }
    +  return instance;
    +}
    +
    +// ES6 and CommonJS compatibility
    +export default {
    +  tag
    +};
    +module.exports = {
    +  tag
    +};
    +
    +
    + + + + +
    + +
    + + + + + + + + + + diff --git a/docs/treelayout.js.html b/docs/treelayout.js.html new file mode 100644 index 0000000..3ee3db4 --- /dev/null +++ b/docs/treelayout.js.html @@ -0,0 +1,469 @@ + + + + + + + + + + + treelayout.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + treelayout.js +

    + + + + + +
    +
    +
    /**
    + * Not currently in use.
    + */
    +
    +import * as d3 from "d3";
    +import Word from "./components/word.js";
    +import Link from "./components/link.js";
    +
    +module.exports = (function () {
    +
    +  // depth of recursion
    +  let maxDepth;
    +  const rh = 50;  // row height
    +
    +  // recursively build hierarchy from a root word or link
    +  function addNode(node, depth, source) {
    +    let incoming = [];
    +
    +    let data = {
    +      node,
    +      incoming,
    +      name: node instanceof Word ? node.val : node.textStr,
    +      type: node instanceof Word ? "Word" : "Link"
    +    };
    +
    +    if (depth < maxDepth) {
    +      let children = node.links
    +        .filter(parent => {
    +          // ignore "incoming" links
    +          if (parent !== source && parent instanceof Link) {
    +            const i = parent.words.indexOf(node);
    +            if (i < 0 || parent.arrowDirections[i] === -1) {
    +              incoming.push(parent);
    +              return false;
    +            }
    +          }
    +          return parent !== source;
    +        })
    +        .map((parent) => addNode(parent, depth + 1, node));
    +
    +      if (node instanceof Link) {
    +        let anchors = node.words
    +          .map((word, i) => {
    +            if (word !== source) {
    +              const newNode = addNode(word, depth + 1, node);
    +
    +              if (node.arrowDirections[i] === -1) {
    +                newNode.receivesArrow = true;
    +              }
    +
    +              return newNode;
    +            }
    +            return null;
    +          })
    +          .filter(word => word);
    +
    +        children = children.concat(anchors);
    +      }
    +
    +      if (children.length > 0) {
    +        data.children = children;
    +      }
    +    }
    +
    +    return data;
    +  };
    +
    +  class TreeLayout {
    +    constructor(el, mainSVG, openInModal) {
    +      // container element
    +      this.isInModal = openInModal;
    +      this.svg = openInModal ? d3.select(el) : d3.select(document.body).append("svg")
    +        .attr("id", "tree-svg");
    +      this.draggable = this.svg.append("g");
    +      this.g = this.draggable.append("g");
    +
    +      let self = this;
    +      // this.svg.append('text')
    +      //   .text(openInModal ? 'Show in main window' : 'Pop into modal')
    +      //   .attr('id', 'tree-popout')
    +      //   .attr('x', 15)
    +      //   .attr('y', 25)
    +      //   .on('click', function() {
    +      //     let node = document.getElementById('tree-svg');
    +      //     let parent = node.parentNode;
    +      //     if (parent === document.body) {
    +      //       d3.select(this).text('Show in main window');
    +      //       d3.select(el).node().appendChild(node);
    +      //       self.isInModal = true;
    +      //     }
    +      //     else {
    +      //       d3.select(this).text('Pop into modal');
    +      //       document.body.appendChild(node);
    +      //       self.isInModal = false;
    +      //     }
    +      //     mainSVG.fire('build-tree');
    +      //   });
    +      this.svg.append("text")
    +        .text("Close")
    +        .attr("id", "tree-close")
    +        .attr("x", this.svg.node().getBoundingClientRect().width - 15)
    +        .attr("text-anchor", "end")
    +        .attr("y", 25)
    +        .on("click", () => {
    +          document.body.classList.add("tree-closed");
    +        });
    +
    +      // add zoom/pan events
    +      this.svg.call(d3.zoom()
    +        .scaleExtent([1 / 2, 4])
    +        .on("zoom", () => {
    +          this.draggable.attr("transform", d3.event.transform);
    +        }))
    +        .on("dblclick.zoom", null);
    +
    +      // selected words to generate graph around
    +      this.maxDepth = 20; // default value for max dist from root
    +      this.maxWidth = 0;
    +      this.layers = [];
    +    }
    +
    +    resize() {
    +      let bounds = this.svg.node().getBoundingClientRect();
    +      this.g.attr("transform", "translate(" + [bounds.width / 2 - this.maxWidth / 2, bounds.height / 2 - (this.layers.length - 1) * rh / 2] + ")");
    +    }
    +
    +    clear() {
    +      this.g.selectAll("*").remove();
    +    }
    +
    +    /**
    +     * construct a set of hierarchies from an array of
    +     * Word or Link "root" nodes
    +     */
    +    graph(selected) {
    +      maxDepth = this.maxDepth;
    +
    +      let data = [];
    +
    +      function addNode(node, source = null, depth = 0) {
    +        let data = {
    +          node,
    +          depth,
    +          children: [],
    +          siblings: []
    +        };
    +
    +        if (depth < maxDepth) {
    +          let links = node.links.filter(l => l.top);
    +          let args = [];
    +          let corefs = links.filter(x => !x.trigger && (!source || x !== source.node))
    +            .map(coref => {
    +              return {
    +                type: coref.reltype,
    +                args: coref.arguments.filter(x => x.anchor !== node && x.anchor !== source)
    +                  .map(x => addNode(x.anchor, node, depth))
    +              };
    +            });
    +
    +          if (node instanceof Word) {
    +            args = links.filter(x => x.trigger === node);
    +          } else if (node instanceof Link) {
    +            args = node.arguments.map(x => x.anchor);
    +          }
    +
    +          data.children = args.map(arg => addNode(arg, data, depth + 1));
    +          data.siblings = corefs;
    +        }
    +
    +        return data;
    +      }
    +
    +      let hierarchy = addNode(selected);
    +
    +      let [nodes, links] = (function () {
    +        let nodes = [];
    +        let links = [];
    +
    +        function flatten(node) {
    +          nodes.push(node);
    +          node.siblings.forEach(sibling => {
    +            sibling.args.forEach(arg => {
    +              flatten(arg);
    +              links.push({
    +                type: "sibling",
    +                label: sibling.type,
    +                source: node,
    +                target: arg
    +              });
    +            });
    +          });
    +          node.children.forEach(child => {
    +            flatten(child);
    +            links.push({
    +              type: "child",
    +              source: node,
    +              target: child
    +            });
    +          });
    +        }
    +
    +        flatten(hierarchy);
    +
    +        return [nodes, links];
    +      })();
    +
    +
    +      let maxWidth = 0;
    +      let layers = [];
    +      nodes.forEach(node => {
    +        layers[node.depth] = layers[node.depth] || [];
    +        layers[node.depth].push(node);
    +      });
    +
    +      function shiftSubtree(node, dx, root) {
    +        node.offset += dx;
    +        if (node.offset > maxWidth) {
    +          maxWidth = node.offset;
    +        }
    +        if (!root) {
    +          node.siblings.forEach(node => shiftSubtree(node, dx));
    +        }
    +        node.children.forEach(node => shiftSubtree(node, dx));
    +      }
    +
    +      for (let i = layers.length - 1; i >= 0; --i) {
    +        layers[i].forEach((node, j) => {
    +          // 1st pass: assign an initial offset according to children
    +          if (node.children.length > 0) {
    +            let leftChild = node.children[0];
    +            let rightChild = node.children[node.children.length - 1];
    +            node.offset = (leftChild.offset + rightChild.offset) / 2;
    +          } else if (j > 0) {
    +            node.offset = layers[i][j - 1].offset;
    +          } else {
    +            node.offset = 0;
    +          }
    +        });
    +
    +        // 2nd pass: check that subtree doesn't collide with left tree
    +        function computeWidth(word, svg) {
    +          let text = svg.append("text").text(word);
    +          let length = text.node().getComputedTextLength();
    +          text.remove();
    +          return length;
    +        }
    +
    +        layers[i].forEach((node, j) => {
    +          node.width = computeWidth(node.node.val, this.svg);
    +          if (j > 0) {
    +            const prev = layers[i][j - 1];
    +            const separation = prev.siblings.some(sibling => sibling.args.indexOf(node) > -1) ? 50 : 20; // TODO: make more universal
    +
    +            let dx = prev.offset + prev.width / 2 + node.width / 2 - node.offset + separation;
    +            if (dx > 0) {
    +              // shift subtree and right-ward trees by dx
    +              for (let k = j; k < layers[i].length; ++k) {
    +                shiftSubtree(layers[i][k], dx, true);
    +              }
    +            }
    +          }
    +          if (node.offset > maxWidth) {
    +            maxWidth = node.offset;
    +          }
    +        });
    +      }// end for
    +
    +      this.maxWidth = maxWidth;
    +      this.layers = layers;
    +
    +      let nodeSVG = this.g.selectAll(".node")
    +        .data(nodes, d => d.node);
    +
    +      let edgeLabel = this.g.selectAll(".edgeLabel")
    +        .data(links.filter(l => l.source.node instanceof Link), d => d.source.node);
    +
    +      let edgeSVG = this.g.selectAll(".edge")
    +        .data(links, d => d.source.node);
    +
    +      nodeSVG.exit().remove();
    +      nodeSVG.enter().append("text")
    +        .attr("class", "node")
    +        .attr("text-anchor", "middle")
    +        .attr("transform", d => "translate(" + [d.offset, d.depth * rh] + ")")
    +        .merge(nodeSVG)
    +        .text(d => d.node.val)
    +        .transition()
    +        .attr("transform", d => "translate(" + [d.offset, d.depth * rh] + ")");
    +
    +      // resize
    +      this.resize();
    +
    +      edgeSVG.exit().remove();
    +      edgeSVG.enter().append("path")
    +        .attr("class", "edge")
    +        .attr("stroke", "grey")
    +        .attr("stroke-dasharray", d => d.source.node instanceof Word ? [2, 2] : null)
    +        .attr("stroke-width", "1px")
    +        .attr("fill", "none")
    +        .merge(edgeSVG)
    +        .attr("d", d => {
    +          if (d.type === "sibling") {
    +            let x1, x2;
    +            if (d.target.offset > d.source.offset) {
    +              x1 = d.source.offset + d.source.width / 2;
    +              x2 = d.target.offset - d.target.width / 2;
    +            } else {
    +              x1 = d.target.offset + d.target.width / 2;
    +              x2 = d.source.offset - d.source.width / 2;
    +            }
    +            return "M" + [x1 - 10, d.source.depth * rh + 5]
    +              + "v7h" + (x2 - x1 + 20) + "v-7";
    +          } else if (d.type === "child") {
    +            let offset = 0;
    +            if (d.source.node.arguments) {
    +              offset = -7;
    +            }
    +            return "M" + [d.source.offset, d.source.depth * rh + 5]
    +              + "C" + [
    +                d.source.offset, d.source.depth * rh + 25,
    +                d.target.offset, d.target.depth * rh - 40,
    +                d.target.offset, d.target.depth * rh - 15 + offset
    +              ];
    +          }
    +        });
    +
    +      edgeLabel.exit().remove();
    +      edgeLabel.enter().append("text")
    +        .attr("text-anchor", "middle")
    +        .attr("transform", d => "translate(" + [d.target.offset, d.target.depth * rh] + ")")
    +        .attr("class", "edgeLabel")
    +        .attr("font-size", "0.65em")
    +        .merge(edgeLabel)
    +        .text((d, i) => {
    +          let arg = d.source.node.arguments.find(arg => arg.anchor === d.target.node);
    +          if (arg) {
    +            return arg.type;
    +          }
    +        })
    +        .transition()
    +        .attr("transform", d => "translate(" + [d.target.offset, d.target.depth * rh - 13] + ")");
    +    }
    +  }//end class TreeLayout
    +
    +  return TreeLayout;
    +})();
    +
    +
    +
    + + + + +
    + +
    + + + + + + + + + + diff --git a/docs/util.js.html b/docs/util.js.html new file mode 100644 index 0000000..cddb19a --- /dev/null +++ b/docs/util.js.html @@ -0,0 +1,214 @@ + + + + + + + + + + + util.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + util.js +

    + + + + + +
    +
    +
    /**
    + * Utility functions
    + * @module Util
    + */
    +
    +import _ from "lodash";
    +
    +// For some reason, the `draggable` import has to be in a different file
    +// from `main.js`.  This has something to do with the way ES6 imports work,
    +// and the fact that `svg.draggable.js` expects the `SVG` variable to be
    +// globally available.
    +import * as SVG from "svg.js";
    +import * as draggable from "svg.draggable.js";
    +
    +/**
    + * Get all the CSS rules that match the given elements
    + * Adapted from:
    + * https://stackoverflow.com/questions/2952667/find-all-css-rules-that-apply-to-an-element
    + *
    + * @param {Array} elements - Array of elements to get rules for
    + * @return {Array}
    + * @memberof module:Util
    + */
    +function getCssRules(elements) {
    +  const sheets = document.styleSheets;
    +  const ret = [];
    +  let importRules = [];
    +
    +  for (const sheet of sheets) {
    +    try {
    +      const rules = sheet.rules || sheets.cssRules;
    +      for (const rule of rules) {
    +        // Include @import rules by default, since we can't be sure if they
    +        // apply, and since they are generally used for fonts
    +        if (rule.type === CSSRule.IMPORT_RULE) {
    +          importRules.push(rule.cssText);
    +          continue;
    +        }
    +
    +        // For other types of rules, check against the listed elements
    +        for (const el of elements) {
    +          el.matches = el.matches || el.webkitMatchesSelector ||
    +            el.mozMatchesSelector || el.msMatchesSelector ||
    +            el.oMatchesSelector;
    +          if (el.matches(rule.selectorText)) {
    +            ret.push(rule.cssText);
    +            break;
    +          }
    +        }
    +      }
    +    } catch (err) {
    +      // Sometimes we get CORS errors with Chrome and external stylesheets,
    +      // but we should be all right to keep going
    +      console.log("Warning:", err);
    +    }
    +  }
    +
    +  // Import rules have to be at the top of the styles list
    +  return _.uniq(importRules.concat(ret));
    +}
    +
    +/**
    + * Sort some given array of Links in preparation for determining their slots
    + * (vertical intervals for overlapping/crossing Links).  Needed because the
    + * order that the Parser puts Links in might not be the order we actually want:
    + *
    + * 1) Primary sort by index of left endpoint, ascending
    + * 2) Secondary sort by number of Words covered, descending
    + *
    + * @param links
    + * @memberof module:Util
    + */
    +function sortForSlotting(links) {
    +  const sortingArray = links.map((link, idx) => {
    +    const endpoints = link.endpoints;
    +    return {
    +      idx,
    +      leftAnchor: endpoints[0].idx,
    +      width: endpoints[1].idx - endpoints[0].idx + 1
    +    };
    +  });
    +  // Sort by number of words covered, descending
    +  sortingArray.sort((a, b) => b.width - a.width);
    +  // Sort by index of left endpoint, ascending
    +  sortingArray.sort((a, b) => a.leftAnchor - b.leftAnchor);
    +  return sortingArray.map(link => links[link.idx]);
    +}
    +
    +export default {
    +  getCssRules,
    +  sortForSlotting
    +};
    +
    +
    + + + + +
    + +
    + + + + + + + + + + diff --git a/index.html b/index.html deleted file mode 100644 index fd53970..0000000 --- a/index.html +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - - - - - - - -
    - - - - - -
    -
    -
    -
    - - - - - diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..b9697ad --- /dev/null +++ b/package-lock.json @@ -0,0 +1,11545 @@ +{ + "name": "text-annotation-graphs", + "version": "0.0.1", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@babel/code-frame": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz", + "integrity": "sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/core": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.1.6.tgz", + "integrity": "sha512-Hz6PJT6e44iUNpAn8AoyAs6B3bl60g7MJQaI0rZEar6ECzh6+srYO1xlIdssio34mPaUtAb1y+XlkkSJzok3yw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/generator": "^7.1.6", + "@babel/helpers": "^7.1.5", + "@babel/parser": "^7.1.6", + "@babel/template": "^7.1.2", + "@babel/traverse": "^7.1.6", + "@babel/types": "^7.1.6", + "convert-source-map": "^1.1.0", + "debug": "^4.1.0", + "json5": "^2.1.0", + "lodash": "^4.17.10", + "resolve": "^1.3.2", + "semver": "^5.4.1", + "source-map": "^0.5.0" + } + }, + "@babel/generator": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.1.6.tgz", + "integrity": "sha512-brwPBtVvdYdGxtenbQgfCdDPmtkmUBZPjUoK5SXJEBuHaA5BCubh9ly65fzXz7R6o5rA76Rs22ES8Z+HCc0YIQ==", + "dev": true, + "requires": { + "@babel/types": "^7.1.6", + "jsesc": "^2.5.1", + "lodash": "^4.17.10", + "source-map": "^0.5.0", + "trim-right": "^1.0.1" + } + }, + "@babel/helper-annotate-as-pure": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0.tgz", + "integrity": "sha512-3UYcJUj9kvSLbLbUIfQTqzcy5VX7GRZ/CCDrnOaZorFFM01aXp1+GJwuFGV4NDDoAS+mOUyHcO6UD/RfqOks3Q==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.1.0.tgz", + "integrity": "sha512-qNSR4jrmJ8M1VMM9tibvyRAHXQs2PmaksQF7c1CGJNipfe3D8p+wgNwgso/P2A2r2mdgBWAXljNWR0QRZAMW8w==", + "dev": true, + "requires": { + "@babel/helper-explode-assignable-expression": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-call-delegate": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/helper-call-delegate/-/helper-call-delegate-7.1.0.tgz", + "integrity": "sha512-YEtYZrw3GUK6emQHKthltKNZwszBcHK58Ygcis+gVUrF4/FmTVr5CCqQNSfmvg2y+YDEANyYoaLz/SHsnusCwQ==", + "dev": true, + "requires": { + "@babel/helper-hoist-variables": "^7.0.0", + "@babel/traverse": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-define-map": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.1.0.tgz", + "integrity": "sha512-yPPcW8dc3gZLN+U1mhYV91QU3n5uTbx7DUdf8NnPbjS0RMwBuHi9Xt2MUgppmNz7CJxTBWsGczTiEp1CSOTPRg==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.1.0", + "@babel/types": "^7.0.0", + "lodash": "^4.17.10" + } + }, + "@babel/helper-explode-assignable-expression": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.1.0.tgz", + "integrity": "sha512-NRQpfHrJ1msCHtKjbzs9YcMmJZOg6mQMmGRB+hbamEdG5PNpaSm95275VD92DvJKuyl0s2sFiDmMZ+EnnvufqA==", + "dev": true, + "requires": { + "@babel/traverse": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-function-name": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.1.0.tgz", + "integrity": "sha512-A95XEoCpb3TO+KZzJ4S/5uW5fNe26DjBGqf1o9ucyLyCmi1dXq/B3c8iaWTfBk3VvetUxl16e8tIrd5teOCfGw==", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "^7.0.0", + "@babel/template": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0.tgz", + "integrity": "sha512-r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-hoist-variables": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.0.0.tgz", + "integrity": "sha512-Ggv5sldXUeSKsuzLkddtyhyHe2YantsxWKNi7A+7LeD12ExRDWTRk29JCXpaHPAbMaIPZSil7n+lq78WY2VY7w==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-member-expression-to-functions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.0.0.tgz", + "integrity": "sha512-avo+lm/QmZlv27Zsi0xEor2fKcqWG56D5ae9dzklpIaY7cQMK5N8VSpaNVPPagiqmy7LrEjK1IWdGMOqPu5csg==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-module-imports": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.0.0.tgz", + "integrity": "sha512-aP/hlLq01DWNEiDg4Jn23i+CXxW/owM4WpDLFUbpjxe4NS3BhLVZQ5i7E0ZrxuQ/vwekIeciyamgB1UIYxxM6A==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-module-transforms": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.1.0.tgz", + "integrity": "sha512-0JZRd2yhawo79Rcm4w0LwSMILFmFXjugG3yqf+P/UsKsRS1mJCmMwwlHDlMg7Avr9LrvSpp4ZSULO9r8jpCzcw==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.0.0", + "@babel/helper-simple-access": "^7.1.0", + "@babel/helper-split-export-declaration": "^7.0.0", + "@babel/template": "^7.1.0", + "@babel/types": "^7.0.0", + "lodash": "^4.17.10" + } + }, + "@babel/helper-optimise-call-expression": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.0.0.tgz", + "integrity": "sha512-u8nd9NQePYNQV8iPWu/pLLYBqZBa4ZaY1YWRFMuxrid94wKI1QNt67NEZ7GAe5Kc/0LLScbim05xZFWkAdrj9g==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-plugin-utils": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0.tgz", + "integrity": "sha512-CYAOUCARwExnEixLdB6sDm2dIJ/YgEAKDM1MOeMeZu9Ld/bDgVo8aiWrXwcY7OBh+1Ea2uUcVRcxKk0GJvW7QA==", + "dev": true + }, + "@babel/helper-regex": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-regex/-/helper-regex-7.0.0.tgz", + "integrity": "sha512-TR0/N0NDCcUIUEbqV6dCO+LptmmSQFQ7q70lfcEB4URsjD0E1HzicrwUH+ap6BAQ2jhCX9Q4UqZy4wilujWlkg==", + "dev": true, + "requires": { + "lodash": "^4.17.10" + } + }, + "@babel/helper-remap-async-to-generator": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.1.0.tgz", + "integrity": "sha512-3fOK0L+Fdlg8S5al8u/hWE6vhufGSn0bN09xm2LXMy//REAF8kDCrYoOBKYmA8m5Nom+sV9LyLCwrFynA8/slg==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.0.0", + "@babel/helper-wrap-function": "^7.1.0", + "@babel/template": "^7.1.0", + "@babel/traverse": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-replace-supers": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.1.0.tgz", + "integrity": "sha512-BvcDWYZRWVuDeXTYZWxekQNO5D4kO55aArwZOTFXw6rlLQA8ZaDicJR1sO47h+HrnCiDFiww0fSPV0d713KBGQ==", + "dev": true, + "requires": { + "@babel/helper-member-expression-to-functions": "^7.0.0", + "@babel/helper-optimise-call-expression": "^7.0.0", + "@babel/traverse": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-simple-access": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.1.0.tgz", + "integrity": "sha512-Vk+78hNjRbsiu49zAPALxTb+JUQCz1aolpd8osOF16BGnLtseD21nbHgLPGUwrXEurZgiCOUmvs3ExTu4F5x6w==", + "dev": true, + "requires": { + "@babel/template": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0.tgz", + "integrity": "sha512-MXkOJqva62dfC0w85mEf/LucPPS/1+04nmmRMPEBUB++hiiThQ2zPtX/mEWQ3mtzCEjIJvPY8nuwxXtQeQwUag==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-wrap-function": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.1.0.tgz", + "integrity": "sha512-R6HU3dete+rwsdAfrOzTlE9Mcpk4RjU3aX3gi9grtmugQY0u79X7eogUvfXA5sI81Mfq1cn6AgxihfN33STjJA==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.1.0", + "@babel/template": "^7.1.0", + "@babel/traverse": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@babel/helpers": { + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.1.5.tgz", + "integrity": "sha512-2jkcdL02ywNBry1YNFAH/fViq4fXG0vdckHqeJk+75fpQ2OH+Az6076tX/M0835zA45E0Cqa6pV5Kiv9YOqjEg==", + "dev": true, + "requires": { + "@babel/template": "^7.1.2", + "@babel/traverse": "^7.1.5", + "@babel/types": "^7.1.5" + } + }, + "@babel/highlight": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0.tgz", + "integrity": "sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, + "@babel/parser": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.1.6.tgz", + "integrity": "sha512-dWP6LJm9nKT6ALaa+bnL247GHHMWir3vSlZ2+IHgHgktZQx0L3Uvq2uAWcuzIe+fujRsYWBW2q622C5UvGK9iQ==", + "dev": true + }, + "@babel/plugin-proposal-async-generator-functions": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.1.0.tgz", + "integrity": "sha512-Fq803F3Jcxo20MXUSDdmZZXrPe6BWyGcWBPPNB/M7WaUYESKDeKMOGIxEzQOjGSmW/NWb6UaPZrtTB2ekhB/ew==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-remap-async-to-generator": "^7.1.0", + "@babel/plugin-syntax-async-generators": "^7.0.0" + } + }, + "@babel/plugin-proposal-decorators": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.1.6.tgz", + "integrity": "sha512-U42f8KhUbtlhUDyV/wK4Rq/wWh8vWyttYABckG/v0vVnMPvayOewZC/83CbVdmyP+UhEqI368FEQ7hHMfhBpQA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-replace-supers": "^7.1.0", + "@babel/helper-split-export-declaration": "^7.0.0", + "@babel/plugin-syntax-decorators": "^7.1.0" + } + }, + "@babel/plugin-proposal-json-strings": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.0.0.tgz", + "integrity": "sha512-kfVdUkIAGJIVmHmtS/40i/fg/AGnw/rsZBCaapY5yjeO5RA9m165Xbw9KMOu2nqXP5dTFjEjHdfNdoVcHv133Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-syntax-json-strings": "^7.0.0" + } + }, + "@babel/plugin-proposal-object-rest-spread": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.0.0.tgz", + "integrity": "sha512-14fhfoPcNu7itSen7Py1iGN0gEm87hX/B+8nZPqkdmANyyYWYMY2pjA3r8WXbWVKMzfnSNS0xY8GVS0IjXi/iw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-syntax-object-rest-spread": "^7.0.0" + } + }, + "@babel/plugin-proposal-optional-catch-binding": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.0.0.tgz", + "integrity": "sha512-JPqAvLG1s13B/AuoBjdBYvn38RqW6n1TzrQO839/sIpqLpbnXKacsAgpZHzLD83Sm8SDXMkkrAvEnJ25+0yIpw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-syntax-optional-catch-binding": "^7.0.0" + } + }, + "@babel/plugin-proposal-unicode-property-regex": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.0.0.tgz", + "integrity": "sha512-tM3icA6GhC3ch2SkmSxv7J/hCWKISzwycub6eGsDrFDgukD4dZ/I+x81XgW0YslS6mzNuQ1Cbzh5osjIMgepPQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-regex": "^7.0.0", + "regexpu-core": "^4.2.0" + } + }, + "@babel/plugin-syntax-async-generators": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.0.0.tgz", + "integrity": "sha512-im7ged00ddGKAjcZgewXmp1vxSZQQywuQXe2B1A7kajjZmDeY/ekMPmWr9zJgveSaQH0k7BcGrojQhcK06l0zA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-syntax-decorators": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.1.0.tgz", + "integrity": "sha512-uQvRSbgQ0nQg3jsmIixXXDCgSpkBolJ9X7NYThMKCcjvE8dN2uWJUzTUNNAeuKOjARTd+wUQV0ztXpgunZYKzQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-syntax-json-strings": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.0.0.tgz", + "integrity": "sha512-UlSfNydC+XLj4bw7ijpldc1uZ/HB84vw+U6BTuqMdIEmz/LDe63w/GHtpQMdXWdqQZFeAI9PjnHe/vDhwirhKA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.0.0.tgz", + "integrity": "sha512-5A0n4p6bIiVe5OvQPxBnesezsgFJdHhSs3uFSvaPdMqtsovajLZ+G2vZyvNe10EzJBWWo3AcHGKhAFUxqwp2dw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-syntax-optional-catch-binding": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.0.0.tgz", + "integrity": "sha512-Wc+HVvwjcq5qBg1w5RG9o9RVzmCaAg/Vp0erHCKpAYV8La6I94o4GQAmFYNmkzoMO6gzoOSulpKeSSz6mPEoZw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-arrow-functions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.0.0.tgz", + "integrity": "sha512-2EZDBl1WIO/q4DIkIp4s86sdp4ZifL51MoIviLY/gG/mLSuOIEg7J8o6mhbxOTvUJkaN50n+8u41FVsr5KLy/w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-async-to-generator": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.1.0.tgz", + "integrity": "sha512-rNmcmoQ78IrvNCIt/R9U+cixUHeYAzgusTFgIAv+wQb9HJU4szhpDD6e5GCACmj/JP5KxuCwM96bX3L9v4ZN/g==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.0.0", + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-remap-async-to-generator": "^7.1.0" + } + }, + "@babel/plugin-transform-block-scoped-functions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.0.0.tgz", + "integrity": "sha512-AOBiyUp7vYTqz2Jibe1UaAWL0Hl9JUXEgjFvvvcSc9MVDItv46ViXFw2F7SVt1B5k+KWjl44eeXOAk3UDEaJjQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-block-scoping": { + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.1.5.tgz", + "integrity": "sha512-jlYcDrz+5ayWC7mxgpn1Wj8zj0mmjCT2w0mPIMSwO926eXBRxpEgoN/uQVRBfjtr8ayjcmS+xk2G1jaP8JjMJQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "lodash": "^4.17.10" + } + }, + "@babel/plugin-transform-classes": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.1.0.tgz", + "integrity": "sha512-rNaqoD+4OCBZjM7VaskladgqnZ1LO6o2UxuWSDzljzW21pN1KXkB7BstAVweZdxQkHAujps5QMNOTWesBciKFg==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.0.0", + "@babel/helper-define-map": "^7.1.0", + "@babel/helper-function-name": "^7.1.0", + "@babel/helper-optimise-call-expression": "^7.0.0", + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-replace-supers": "^7.1.0", + "@babel/helper-split-export-declaration": "^7.0.0", + "globals": "^11.1.0" + } + }, + "@babel/plugin-transform-computed-properties": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.0.0.tgz", + "integrity": "sha512-ubouZdChNAv4AAWAgU7QKbB93NU5sHwInEWfp+/OzJKA02E6Woh9RVoX4sZrbRwtybky/d7baTUqwFx+HgbvMA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-destructuring": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.1.3.tgz", + "integrity": "sha512-Mb9M4DGIOspH1ExHOUnn2UUXFOyVTiX84fXCd+6B5iWrQg/QMeeRmSwpZ9lnjYLSXtZwiw80ytVMr3zue0ucYw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-dotall-regex": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.0.0.tgz", + "integrity": "sha512-00THs8eJxOJUFVx1w8i1MBF4XH4PsAjKjQ1eqN/uCH3YKwP21GCKfrn6YZFZswbOk9+0cw1zGQPHVc1KBlSxig==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-regex": "^7.0.0", + "regexpu-core": "^4.1.3" + } + }, + "@babel/plugin-transform-duplicate-keys": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.0.0.tgz", + "integrity": "sha512-w2vfPkMqRkdxx+C71ATLJG30PpwtTpW7DDdLqYt2acXU7YjztzeWW2Jk1T6hKqCLYCcEA5UQM/+xTAm+QCSnuQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-exponentiation-operator": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.1.0.tgz", + "integrity": "sha512-uZt9kD1Pp/JubkukOGQml9tqAeI8NkE98oZnHZ2qHRElmeKCodbTZgOEUtujSCSLhHSBWbzNiFSDIMC4/RBTLQ==", + "dev": true, + "requires": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.1.0", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-for-of": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.0.0.tgz", + "integrity": "sha512-TlxKecN20X2tt2UEr2LNE6aqA0oPeMT1Y3cgz8k4Dn1j5ObT8M3nl9aA37LLklx0PBZKETC9ZAf9n/6SujTuXA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-function-name": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.1.0.tgz", + "integrity": "sha512-VxOa1TMlFMtqPW2IDYZQaHsFrq/dDoIjgN098NowhexhZcz3UGlvPgZXuE1jEvNygyWyxRacqDpCZt+par1FNg==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.1.0", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-literals": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.0.0.tgz", + "integrity": "sha512-1NTDBWkeNXgpUcyoVFxbr9hS57EpZYXpje92zv0SUzjdu3enaRwF/l3cmyRnXLtIdyJASyiS6PtybK+CgKf7jA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-modules-amd": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.1.0.tgz", + "integrity": "sha512-wt8P+xQ85rrnGNr2x1iV3DW32W8zrB6ctuBkYBbf5/ZzJY99Ob4MFgsZDFgczNU76iy9PWsy4EuxOliDjdKw6A==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.1.0", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-modules-commonjs": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.1.0.tgz", + "integrity": "sha512-wtNwtMjn1XGwM0AXPspQgvmE6msSJP15CX2RVfpTSTNPLhKhaOjaIfBaVfj4iUZ/VrFSodcFedwtPg/NxwQlPA==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.1.0", + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-simple-access": "^7.1.0" + } + }, + "@babel/plugin-transform-modules-systemjs": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.1.3.tgz", + "integrity": "sha512-PvTxgjxQAq4pvVUZF3mD5gEtVDuId8NtWkJsZLEJZMZAW3TvgQl1pmydLLN1bM8huHFVVU43lf0uvjQj9FRkKw==", + "dev": true, + "requires": { + "@babel/helper-hoist-variables": "^7.0.0", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-modules-umd": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.1.0.tgz", + "integrity": "sha512-enrRtn5TfRhMmbRwm7F8qOj0qEYByqUvTttPEGimcBH4CJHphjyK1Vg7sdU7JjeEmgSpM890IT/efS2nMHwYig==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.1.0", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-new-target": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.0.0.tgz", + "integrity": "sha512-yin069FYjah+LbqfGeTfzIBODex/e++Yfa0rH0fpfam9uTbuEeEOx5GLGr210ggOV77mVRNoeqSYqeuaqSzVSw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-object-super": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.1.0.tgz", + "integrity": "sha512-/O02Je1CRTSk2SSJaq0xjwQ8hG4zhZGNjE8psTsSNPXyLRCODv7/PBozqT5AmQMzp7MI3ndvMhGdqp9c96tTEw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-replace-supers": "^7.1.0" + } + }, + "@babel/plugin-transform-parameters": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.1.0.tgz", + "integrity": "sha512-vHV7oxkEJ8IHxTfRr3hNGzV446GAb+0hgbA7o/0Jd76s+YzccdWuTU296FOCOl/xweU4t/Ya4g41yWz80RFCRw==", + "dev": true, + "requires": { + "@babel/helper-call-delegate": "^7.1.0", + "@babel/helper-get-function-arity": "^7.0.0", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-regenerator": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.0.0.tgz", + "integrity": "sha512-sj2qzsEx8KDVv1QuJc/dEfilkg3RRPvPYx/VnKLtItVQRWt1Wqf5eVCOLZm29CiGFfYYsA3VPjfizTCV0S0Dlw==", + "dev": true, + "requires": { + "regenerator-transform": "^0.13.3" + } + }, + "@babel/plugin-transform-runtime": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.1.0.tgz", + "integrity": "sha512-WFLMgzu5DLQEah0lKTJzYb14vd6UiES7PTnXcvrPZ1VrwFeJ+mTbvr65fFAsXYMt2bIoOoC0jk76zY1S7HZjUg==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.0.0", + "@babel/helper-plugin-utils": "^7.0.0", + "resolve": "^1.8.1", + "semver": "^5.5.1" + } + }, + "@babel/plugin-transform-shorthand-properties": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.0.0.tgz", + "integrity": "sha512-g/99LI4vm5iOf5r1Gdxq5Xmu91zvjhEG5+yZDJW268AZELAu4J1EiFLnkSG3yuUsZyOipVOVUKoGPYwfsTymhw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-spread": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.0.0.tgz", + "integrity": "sha512-L702YFy2EvirrR4shTj0g2xQp7aNwZoWNCkNu2mcoU0uyzMl0XRwDSwzB/xp6DSUFiBmEXuyAyEN16LsgVqGGQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-sticky-regex": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.0.0.tgz", + "integrity": "sha512-LFUToxiyS/WD+XEWpkx/XJBrUXKewSZpzX68s+yEOtIbdnsRjpryDw9U06gYc6klYEij/+KQVRnD3nz3AoKmjw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-regex": "^7.0.0" + } + }, + "@babel/plugin-transform-template-literals": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.0.0.tgz", + "integrity": "sha512-vA6rkTCabRZu7Nbl9DfLZE1imj4tzdWcg5vtdQGvj+OH9itNNB6hxuRMHuIY8SGnEt1T9g5foqs9LnrHzsqEFg==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.0.0", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-typeof-symbol": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.0.0.tgz", + "integrity": "sha512-1r1X5DO78WnaAIvs5uC48t41LLckxsYklJrZjNKcevyz83sF2l4RHbw29qrCPr/6ksFsdfRpT/ZgxNWHXRnffg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-unicode-regex": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.0.0.tgz", + "integrity": "sha512-uJBrJhBOEa3D033P95nPHu3nbFwFE9ZgXsfEitzoIXIwqAZWk7uXcg06yFKXz9FSxBH5ucgU/cYdX0IV8ldHKw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-regex": "^7.0.0", + "regexpu-core": "^4.1.3" + } + }, + "@babel/preset-env": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.1.6.tgz", + "integrity": "sha512-YIBfpJNQMBkb6MCkjz/A9J76SNCSuGVamOVBgoUkLzpJD/z8ghHi9I42LQ4pulVX68N/MmImz6ZTixt7Azgexw==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.0.0", + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-async-generator-functions": "^7.1.0", + "@babel/plugin-proposal-json-strings": "^7.0.0", + "@babel/plugin-proposal-object-rest-spread": "^7.0.0", + "@babel/plugin-proposal-optional-catch-binding": "^7.0.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.0.0", + "@babel/plugin-syntax-async-generators": "^7.0.0", + "@babel/plugin-syntax-object-rest-spread": "^7.0.0", + "@babel/plugin-syntax-optional-catch-binding": "^7.0.0", + "@babel/plugin-transform-arrow-functions": "^7.0.0", + "@babel/plugin-transform-async-to-generator": "^7.1.0", + "@babel/plugin-transform-block-scoped-functions": "^7.0.0", + "@babel/plugin-transform-block-scoping": "^7.1.5", + "@babel/plugin-transform-classes": "^7.1.0", + "@babel/plugin-transform-computed-properties": "^7.0.0", + "@babel/plugin-transform-destructuring": "^7.0.0", + "@babel/plugin-transform-dotall-regex": "^7.0.0", + "@babel/plugin-transform-duplicate-keys": "^7.0.0", + "@babel/plugin-transform-exponentiation-operator": "^7.1.0", + "@babel/plugin-transform-for-of": "^7.0.0", + "@babel/plugin-transform-function-name": "^7.1.0", + "@babel/plugin-transform-literals": "^7.0.0", + "@babel/plugin-transform-modules-amd": "^7.1.0", + "@babel/plugin-transform-modules-commonjs": "^7.1.0", + "@babel/plugin-transform-modules-systemjs": "^7.0.0", + "@babel/plugin-transform-modules-umd": "^7.1.0", + "@babel/plugin-transform-new-target": "^7.0.0", + "@babel/plugin-transform-object-super": "^7.1.0", + "@babel/plugin-transform-parameters": "^7.1.0", + "@babel/plugin-transform-regenerator": "^7.0.0", + "@babel/plugin-transform-shorthand-properties": "^7.0.0", + "@babel/plugin-transform-spread": "^7.0.0", + "@babel/plugin-transform-sticky-regex": "^7.0.0", + "@babel/plugin-transform-template-literals": "^7.0.0", + "@babel/plugin-transform-typeof-symbol": "^7.0.0", + "@babel/plugin-transform-unicode-regex": "^7.0.0", + "browserslist": "^4.1.0", + "invariant": "^2.2.2", + "js-levenshtein": "^1.1.3", + "semver": "^5.3.0" + } + }, + "@babel/runtime": { + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.1.5.tgz", + "integrity": "sha512-xKnPpXG/pvK1B90JkwwxSGii90rQGKtzcMt2gI5G6+M0REXaq6rOHsGC2ay6/d0Uje7zzvSzjEzfR3ENhFlrfA==", + "requires": { + "regenerator-runtime": "^0.12.0" + } + }, + "@babel/template": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.1.2.tgz", + "integrity": "sha512-SY1MmplssORfFiLDcOETrW7fCLl+PavlwMh92rrGcikQaRq4iWPVH0MpwPpY3etVMx6RnDjXtr6VZYr/IbP/Ag==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/parser": "^7.1.2", + "@babel/types": "^7.1.2" + } + }, + "@babel/traverse": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.1.6.tgz", + "integrity": "sha512-CXedit6GpISz3sC2k2FsGCUpOhUqKdyL0lqNrImQojagnUMXf8hex4AxYFRuMkNGcvJX5QAFGzB5WJQmSv8SiQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/generator": "^7.1.6", + "@babel/helper-function-name": "^7.1.0", + "@babel/helper-split-export-declaration": "^7.0.0", + "@babel/parser": "^7.1.6", + "@babel/types": "^7.1.6", + "debug": "^4.1.0", + "globals": "^11.1.0", + "lodash": "^4.17.10" + } + }, + "@babel/types": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.1.6.tgz", + "integrity": "sha512-DMiUzlY9DSjVsOylJssxLHSgj6tWM9PRFJOGW/RaOglVOK9nzTxoOMfTfRQXGUCUQ/HmlG2efwC+XqUEJ5ay4w==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.10", + "to-fast-properties": "^2.0.0" + } + }, + "@goto-bus-stop/common-shake": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@goto-bus-stop/common-shake/-/common-shake-2.2.0.tgz", + "integrity": "sha512-AlNzclZ0UebzHyxYfHSKqmlwCtwcECirZDLhN96gGuj5oHAkba/27+4AlCWyXaycM9cUh12L8/2vjmvjn60pkQ==", + "dev": true, + "requires": { + "acorn": "^5.1.1", + "debug": "^2.6.8", + "escope": "^3.6.0" + }, + "dependencies": { + "acorn": { + "version": "5.7.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz", + "integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==", + "dev": true + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "@mrmlnc/readdir-enhanced": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz", + "integrity": "sha512-bPHp6Ji8b41szTOcaP63VlnbbO5Ny6dwAATtY6JTjh5N2OLrb5Qk/Th5cRkRQhkWCt+EJsYrNB0MiL+Gpn6e3g==", + "dev": true, + "requires": { + "call-me-maybe": "^1.0.1", + "glob-to-regexp": "^0.3.0" + } + }, + "@nodelib/fs.stat": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz", + "integrity": "sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw==", + "dev": true + }, + "JSONStream": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", + "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", + "dev": true, + "requires": { + "jsonparse": "^1.2.0", + "through": ">=2.2.7 <3" + } + }, + "abab": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.0.tgz", + "integrity": "sha512-sY5AXXVZv4Y1VACTtR11UJCPHHudgY5i26Qj5TypE6DKlIApbwb5uqhXcJ5UUGbvZNRh7EeIoW+LrJumBsKp7w==", + "dev": true + }, + "accepts": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz", + "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", + "dev": true, + "requires": { + "mime-types": "~2.1.18", + "negotiator": "0.6.1" + } + }, + "acorn": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.0.4.tgz", + "integrity": "sha512-VY4i5EKSKkofY2I+6QLTbTTN/UvEQPCo6eiwzzSaSWfpaDhOmStMCMod6wmuPciNq+XS0faCglFu2lHZpdHUtg==", + "dev": true + }, + "acorn-dynamic-import": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-4.0.0.tgz", + "integrity": "sha512-d3OEjQV4ROpoflsnUA8HozoIR504TFxNivYEUi6uwz0IYhBkTDXGuWlNdMtybRt3nqVx/L6XqMt0FxkXuWKZhw==", + "dev": true + }, + "acorn-globals": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-4.3.0.tgz", + "integrity": "sha512-hMtHj3s5RnuhvHPowpBYvJVj3rAar82JiDQHvGs1zO0l10ocX/xEdBShNHTJaboucJUsScghp74pH3s7EnHHQw==", + "dev": true, + "requires": { + "acorn": "^6.0.1", + "acorn-walk": "^6.0.1" + } + }, + "acorn-jsx": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.0.0.tgz", + "integrity": "sha512-XkB50fn0MURDyww9+UYL3c1yLbOBz0ZFvrdYlGB8l+Ije1oSC75qAqrzSPjYQbdnQUzhlUGNKuesryAv0gxZOg==", + "dev": true + }, + "acorn-node": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.6.2.tgz", + "integrity": "sha512-rIhNEZuNI8ibQcL7ANm/mGyPukIaZsRNX9psFNQURyJW0nu6k8wjSDld20z6v2mDBWqX13pIEnk9gGZJHIlEXg==", + "dev": true, + "requires": { + "acorn": "^6.0.2", + "acorn-dynamic-import": "^4.0.0", + "acorn-walk": "^6.1.0", + "xtend": "^4.0.1" + } + }, + "acorn-walk": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-6.1.1.tgz", + "integrity": "sha512-OtUw6JUTgxA2QoqqmrmQ7F2NYqiBPi/L2jqHyFtllhOUvXYQXf0Z1CYUinIfyT4bTCGmrA7gX9FvHA81uzCoVw==", + "dev": true + }, + "ajv": { + "version": "6.5.5", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.5.tgz", + "integrity": "sha512-7q7gtRQDJSyuEHjuVgHoUa2VuemFiCMrfQc9Tc08XTAc4Zj/5U1buQJ0HU6i7fKjXU09SVgSmxa4sLvuvS8Iyg==", + "dev": true, + "requires": { + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "align-text": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", + "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", + "dev": true, + "requires": { + "kind-of": "^3.0.2", + "longest": "^1.0.1", + "repeat-string": "^1.5.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "amdefine": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", + "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", + "dev": true + }, + "ansi-escapes": { + "version": "3.1.0", + "resolved": "http://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.1.0.tgz", + "integrity": "sha512-UgAb8H9D41AQnu/PbWlCofQVcnV4Gs2bBJi9eZPxfU/hgglFh3SMDMENRIqdr7H6XFnXdoknctFByVsCOotTVw==", + "dev": true + }, + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "requires": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + } + }, + "append-transform": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/append-transform/-/append-transform-0.4.0.tgz", + "integrity": "sha1-126/jKlNJ24keja61EpLdKthGZE=", + "dev": true, + "requires": { + "default-require-extensions": "^1.0.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "dev": true + }, + "arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "dev": true + }, + "arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", + "dev": true + }, + "array-equal": { + "version": "1.0.0", + "resolved": "http://registry.npmjs.org/array-equal/-/array-equal-1.0.0.tgz", + "integrity": "sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM=", + "dev": true + }, + "array-filter": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/array-filter/-/array-filter-0.0.1.tgz", + "integrity": "sha1-fajPLiZijtcygDWB/SH2fKzS7uw=", + "dev": true + }, + "array-find-index": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", + "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", + "dev": true + }, + "array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=", + "dev": true + }, + "array-from": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/array-from/-/array-from-2.1.1.tgz", + "integrity": "sha1-z+nYwmYoudxa7MYqn12PHzUsEZU=", + "dev": true + }, + "array-map": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/array-map/-/array-map-0.0.0.tgz", + "integrity": "sha1-iKK6tz0c97zVwbEYoAP2b2ZfpmI=", + "dev": true + }, + "array-reduce": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/array-reduce/-/array-reduce-0.0.0.tgz", + "integrity": "sha1-FziZ0//Rx9k4PkR5Ul2+J4yrXys=", + "dev": true + }, + "array-union": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", + "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", + "dev": true, + "requires": { + "array-uniq": "^1.0.1" + } + }, + "array-uniq": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", + "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", + "dev": true + }, + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", + "dev": true + }, + "arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "dev": true + }, + "asn1": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "dev": true, + "requires": { + "safer-buffer": "~2.1.0" + } + }, + "asn1.js": { + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", + "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", + "dev": true, + "requires": { + "bn.js": "^4.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0" + } + }, + "assert": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/assert/-/assert-1.4.1.tgz", + "integrity": "sha1-mZEtWRg2tab1s0XA8H7vwI/GXZE=", + "dev": true, + "requires": { + "util": "0.10.3" + }, + "dependencies": { + "inherits": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", + "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", + "dev": true + }, + "util": { + "version": "0.10.3", + "resolved": "http://registry.npmjs.org/util/-/util-0.10.3.tgz", + "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", + "dev": true, + "requires": { + "inherits": "2.0.1" + } + } + } + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "dev": true + }, + "assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", + "dev": true + }, + "astral-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", + "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", + "dev": true + }, + "async": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.1.tgz", + "integrity": "sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ==", + "dev": true, + "requires": { + "lodash": "^4.17.10" + } + }, + "async-each": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.1.tgz", + "integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=", + "dev": true + }, + "async-limiter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", + "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==", + "dev": true + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "dev": true + }, + "atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "dev": true + }, + "autobind-decorator": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/autobind-decorator/-/autobind-decorator-2.3.1.tgz", + "integrity": "sha512-YQIx7zLi++ctT0sZNLKxMyNQ+fUsBJD3rnZC9PYFl8a6Nvtek45BJF/jJ1v+n1BgHYVvRKsdsW6b77S4a/1Ybw==", + "dev": true + }, + "autoprefixer": { + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.3.1.tgz", + "integrity": "sha512-DY9gOh8z3tnCbJ13JIWaeQsoYncTGdsrgCceBaQSIL4nvdrLxgbRSBPevg2XbX7u4QCSfLheSJEEIUUSlkbx6Q==", + "dev": true, + "requires": { + "browserslist": "^4.3.3", + "caniuse-lite": "^1.0.30000898", + "normalize-range": "^0.1.2", + "num2fraction": "^1.2.2", + "postcss": "^7.0.5", + "postcss-value-parser": "^3.3.1" + } + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", + "dev": true + }, + "aws4": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", + "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", + "dev": true + }, + "babel-code-frame": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", + "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", + "dev": true, + "requires": { + "chalk": "^1.1.3", + "esutils": "^2.0.2", + "js-tokens": "^3.0.2" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "js-tokens": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", + "dev": true + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "babel-core": { + "version": "7.0.0-bridge.0", + "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-7.0.0-bridge.0.tgz", + "integrity": "sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg==", + "dev": true + }, + "babel-eslint": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.0.1.tgz", + "integrity": "sha512-z7OT1iNV+TjOwHNLLyJk+HN+YVWX+CLE6fPD2SymJZOZQBs+QIexFjhm4keGTm8MW9xr4EC9Q0PbaLB24V5GoQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/parser": "^7.0.0", + "@babel/traverse": "^7.0.0", + "@babel/types": "^7.0.0", + "eslint-scope": "3.7.1", + "eslint-visitor-keys": "^1.0.0" + } + }, + "babel-generator": { + "version": "6.26.1", + "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", + "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", + "dev": true, + "requires": { + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "detect-indent": "^4.0.0", + "jsesc": "^1.3.0", + "lodash": "^4.17.4", + "source-map": "^0.5.7", + "trim-right": "^1.0.1" + }, + "dependencies": { + "jsesc": { + "version": "1.3.0", + "resolved": "http://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", + "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", + "dev": true + } + } + }, + "babel-helpers": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz", + "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" + } + }, + "babel-jest": { + "version": "23.6.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-23.6.0.tgz", + "integrity": "sha512-lqKGG6LYXYu+DQh/slrQ8nxXQkEkhugdXsU6St7GmhVS7Ilc/22ArwqXNJrf0QaOBjZB0360qZMwXqDYQHXaew==", + "dev": true, + "requires": { + "babel-plugin-istanbul": "^4.1.6", + "babel-preset-jest": "^23.2.0" + } + }, + "babel-messages": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", + "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-istanbul": { + "version": "4.1.6", + "resolved": "http://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.6.tgz", + "integrity": "sha512-PWP9FQ1AhZhS01T/4qLSKoHGY/xvkZdVBGlKM/HuxxS3+sC66HhTNR7+MpbO/so/cz/wY94MeSWJuP1hXIPfwQ==", + "dev": true, + "requires": { + "babel-plugin-syntax-object-rest-spread": "^6.13.0", + "find-up": "^2.1.0", + "istanbul-lib-instrument": "^1.10.1", + "test-exclude": "^4.2.1" + }, + "dependencies": { + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "^2.0.0" + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "requires": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "requires": { + "p-try": "^1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "requires": { + "p-limit": "^1.1.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true + } + } + }, + "babel-plugin-jest-hoist": { + "version": "23.2.0", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-23.2.0.tgz", + "integrity": "sha1-5h+uBaHKiAGq3uV6bWa4zvr0QWc=", + "dev": true + }, + "babel-plugin-syntax-object-rest-spread": { + "version": "6.13.0", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz", + "integrity": "sha1-/WU28rzhODb/o6VFjEkDpZe7O/U=", + "dev": true + }, + "babel-preset-jest": { + "version": "23.2.0", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-23.2.0.tgz", + "integrity": "sha1-jsegOhOPABoaj7HoETZSvxpV2kY=", + "dev": true, + "requires": { + "babel-plugin-jest-hoist": "^23.2.0", + "babel-plugin-syntax-object-rest-spread": "^6.13.0" + } + }, + "babel-register": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz", + "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", + "dev": true, + "requires": { + "babel-core": "^6.26.0", + "babel-runtime": "^6.26.0", + "core-js": "^2.5.0", + "home-or-tmp": "^2.0.0", + "lodash": "^4.17.4", + "mkdirp": "^0.5.1", + "source-map-support": "^0.4.15" + }, + "dependencies": { + "babel-core": { + "version": "6.26.3", + "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", + "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", + "dev": true, + "requires": { + "babel-code-frame": "^6.26.0", + "babel-generator": "^6.26.0", + "babel-helpers": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-register": "^6.26.0", + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "convert-source-map": "^1.5.1", + "debug": "^2.6.9", + "json5": "^0.5.1", + "lodash": "^4.17.4", + "minimatch": "^3.0.4", + "path-is-absolute": "^1.0.1", + "private": "^0.1.8", + "slash": "^1.0.0", + "source-map": "^0.5.7" + } + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "json5": { + "version": "0.5.1", + "resolved": "http://registry.npmjs.org/json5/-/json5-0.5.1.tgz", + "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", + "dev": true + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "babel-runtime": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", + "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "dev": true, + "requires": { + "core-js": "^2.4.0", + "regenerator-runtime": "^0.11.0" + }, + "dependencies": { + "regenerator-runtime": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", + "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", + "dev": true + } + } + }, + "babel-template": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", + "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", + "dev": true, + "requires": { + "babel-runtime": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "lodash": "^4.17.4" + } + }, + "babel-traverse": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", + "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", + "dev": true, + "requires": { + "babel-code-frame": "^6.26.0", + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "debug": "^2.6.8", + "globals": "^9.18.0", + "invariant": "^2.2.2", + "lodash": "^4.17.4" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "globals": { + "version": "9.18.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", + "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", + "dev": true + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "babel-types": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", + "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", + "dev": true, + "requires": { + "babel-runtime": "^6.26.0", + "esutils": "^2.0.2", + "lodash": "^4.17.4", + "to-fast-properties": "^1.0.3" + }, + "dependencies": { + "to-fast-properties": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", + "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", + "dev": true + } + } + }, + "babelify": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/babelify/-/babelify-10.0.0.tgz", + "integrity": "sha512-X40FaxyH7t3X+JFAKvb1H9wooWKLRCi8pg3m8poqtdZaIng+bjzp9RvKQCvRjF9isHiPkXspbbXT/zwXLtwgwg==", + "dev": true + }, + "babylon": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", + "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", + "dev": true + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "base": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "dev": true, + "requires": { + "cache-base": "^1.0.1", + "class-utils": "^0.3.5", + "component-emitter": "^1.2.1", + "define-property": "^1.0.0", + "isobject": "^3.0.1", + "mixin-deep": "^1.2.0", + "pascalcase": "^0.1.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "^1.0.0" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + } + } + }, + "base64-js": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz", + "integrity": "sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw==", + "dev": true + }, + "basic-auth": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", + "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", + "dev": true, + "requires": { + "safe-buffer": "5.1.2" + } + }, + "bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", + "dev": true, + "requires": { + "tweetnacl": "^0.14.3" + } + }, + "binary-extensions": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.12.0.tgz", + "integrity": "sha512-DYWGk01lDcxeS/K9IHPGWfT8PsJmbXRtRd2Sx72Tnb8pcYZQFF1oSDb8hJtS1vhp212q1Rzi5dUf9+nq0o9UIg==", + "dev": true + }, + "bluebird": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz", + "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==", + "dev": true + }, + "bn.js": { + "version": "4.11.8", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", + "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==", + "dev": true + }, + "body-parser": { + "version": "1.18.3", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.3.tgz", + "integrity": "sha1-WykhmP/dVTs6DyDe0FkrlWlVyLQ=", + "dev": true, + "requires": { + "bytes": "3.0.0", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "~1.1.2", + "http-errors": "~1.6.3", + "iconv-lite": "0.4.23", + "on-finished": "~2.3.0", + "qs": "6.5.2", + "raw-body": "2.3.3", + "type-is": "~1.6.16" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "iconv-lite": { + "version": "0.4.23", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", + "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", + "dev": true, + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "bootstrap": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.1.3.tgz", + "integrity": "sha512-rDFIzgXcof0jDyjNosjv4Sno77X4KuPeFxG2XZZv1/Kc8DRVGVADdoQyyOVDwPqL36DDmtCQbrpMCqvpPLJQ0w==", + "dev": true + }, + "bootstrap-colorpicker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/bootstrap-colorpicker/-/bootstrap-colorpicker-3.0.3.tgz", + "integrity": "sha512-xDVuG5ZLDKLoYdBodnrKo417eqFlNwpk6gNbv1mAFdFno0p0xnkYm9KQTiUqR4kva9t+hlJJc2UURZnD6fvn+Q==", + "dev": true, + "requires": { + "bootstrap": "^4.0", + "jquery": ">=2.1.0" + } + }, + "bootstrap-slider": { + "version": "10.4.2", + "resolved": "https://registry.npmjs.org/bootstrap-slider/-/bootstrap-slider-10.4.2.tgz", + "integrity": "sha512-13I/K/w/35zoA/XWewrdz7ijJ1psRem4V6D0YUU5rJLZ4lk8/L60oOJ39UrAOEDOlrq8IUFkNb5qfpuUIe85LA==", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, + "requires": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "brorand": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", + "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", + "dev": true + }, + "browser-pack": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/browser-pack/-/browser-pack-6.1.0.tgz", + "integrity": "sha512-erYug8XoqzU3IfcU8fUgyHqyOXqIE4tUTTQ+7mqUjQlvnXkOO6OlT9c/ZoJVHYoAaqGxr09CN53G7XIsO4KtWA==", + "dev": true, + "requires": { + "JSONStream": "^1.0.3", + "combine-source-map": "~0.8.0", + "defined": "^1.0.0", + "safe-buffer": "^5.1.1", + "through2": "^2.0.0", + "umd": "^3.0.0" + } + }, + "browser-pack-flat": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/browser-pack-flat/-/browser-pack-flat-3.2.0.tgz", + "integrity": "sha512-tk/LexpgMImZyDfpWSPyIlQ3frZYTyGLpW+Ytd0Fj9VW03Fil9IrKzcVKN87wZHWhP6LbdKh3STRnIkHIR+UTQ==", + "dev": true, + "requires": { + "JSONStream": "^1.3.2", + "combine-source-map": "^0.8.0", + "convert-source-map": "^1.5.1", + "count-lines": "^0.1.2", + "dedent": "^0.7.0", + "estree-is-member-expression": "^1.0.0", + "estree-is-require": "^1.0.0", + "esutils": "^2.0.2", + "path-parse": "^1.0.5", + "scope-analyzer": "^2.0.0", + "stream-combiner": "^0.2.2", + "through2": "^2.0.3", + "transform-ast": "^2.4.2", + "umd": "^3.0.3", + "wrap-comment": "^1.0.0" + } + }, + "browser-process-hrtime": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-0.1.3.tgz", + "integrity": "sha512-bRFnI4NnjO6cnyLmOV/7PVoDEMJChlcfN0z4s1YMBY989/SvlfMI1lgCnkFUs53e9gQF+w7qu7XdllSTiSl8Aw==", + "dev": true + }, + "browser-resolve": { + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.3.tgz", + "integrity": "sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ==", + "dev": true, + "requires": { + "resolve": "1.1.7" + }, + "dependencies": { + "resolve": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", + "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", + "dev": true + } + } + }, + "browser-unpack": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/browser-unpack/-/browser-unpack-1.3.0.tgz", + "integrity": "sha512-hK81IeAN/PcqzSKTqKWe3jzmB41PV/23N1w1w2N/KBPv+sjp31sMlen9arVIENzrH8IzaCWA2Fx6SV0kJyhAFQ==", + "dev": true, + "requires": { + "acorn": "^5.6.2", + "concat-stream": "^1.5.0", + "minimist": "^1.1.1" + }, + "dependencies": { + "acorn": { + "version": "5.7.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz", + "integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==", + "dev": true + } + } + }, + "browserify": { + "version": "14.5.0", + "resolved": "https://registry.npmjs.org/browserify/-/browserify-14.5.0.tgz", + "integrity": "sha512-gKfOsNQv/toWz+60nSPfYzuwSEdzvV2WdxrVPUbPD/qui44rAkB3t3muNtmmGYHqrG56FGwX9SUEQmzNLAeS7g==", + "dev": true, + "requires": { + "JSONStream": "^1.0.3", + "assert": "^1.4.0", + "browser-pack": "^6.0.1", + "browser-resolve": "^1.11.0", + "browserify-zlib": "~0.2.0", + "buffer": "^5.0.2", + "cached-path-relative": "^1.0.0", + "concat-stream": "~1.5.1", + "console-browserify": "^1.1.0", + "constants-browserify": "~1.0.0", + "crypto-browserify": "^3.0.0", + "defined": "^1.0.0", + "deps-sort": "^2.0.0", + "domain-browser": "~1.1.0", + "duplexer2": "~0.1.2", + "events": "~1.1.0", + "glob": "^7.1.0", + "has": "^1.0.0", + "htmlescape": "^1.1.0", + "https-browserify": "^1.0.0", + "inherits": "~2.0.1", + "insert-module-globals": "^7.0.0", + "labeled-stream-splicer": "^2.0.0", + "module-deps": "^4.0.8", + "os-browserify": "~0.3.0", + "parents": "^1.0.1", + "path-browserify": "~0.0.0", + "process": "~0.11.0", + "punycode": "^1.3.2", + "querystring-es3": "~0.2.0", + "read-only-stream": "^2.0.0", + "readable-stream": "^2.0.2", + "resolve": "^1.1.4", + "shasum": "^1.0.0", + "shell-quote": "^1.6.1", + "stream-browserify": "^2.0.0", + "stream-http": "^2.0.0", + "string_decoder": "~1.0.0", + "subarg": "^1.0.0", + "syntax-error": "^1.1.1", + "through2": "^2.0.0", + "timers-browserify": "^1.0.1", + "tty-browserify": "~0.0.0", + "url": "~0.11.0", + "util": "~0.10.1", + "vm-browserify": "~0.0.1", + "xtend": "^4.0.0" + } + }, + "browserify-aes": { + "version": "1.2.0", + "resolved": "http://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", + "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", + "dev": true, + "requires": { + "buffer-xor": "^1.0.3", + "cipher-base": "^1.0.0", + "create-hash": "^1.1.0", + "evp_bytestokey": "^1.0.3", + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "browserify-cipher": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", + "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", + "dev": true, + "requires": { + "browserify-aes": "^1.0.4", + "browserify-des": "^1.0.0", + "evp_bytestokey": "^1.0.0" + } + }, + "browserify-des": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", + "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", + "dev": true, + "requires": { + "cipher-base": "^1.0.1", + "des.js": "^1.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "browserify-rsa": { + "version": "4.0.1", + "resolved": "http://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz", + "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", + "dev": true, + "requires": { + "bn.js": "^4.1.0", + "randombytes": "^2.0.1" + } + }, + "browserify-sign": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.0.4.tgz", + "integrity": "sha1-qk62jl17ZYuqa/alfmMMvXqT0pg=", + "dev": true, + "requires": { + "bn.js": "^4.1.1", + "browserify-rsa": "^4.0.0", + "create-hash": "^1.1.0", + "create-hmac": "^1.1.2", + "elliptic": "^6.0.0", + "inherits": "^2.0.1", + "parse-asn1": "^5.0.0" + } + }, + "browserify-zlib": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", + "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", + "dev": true, + "requires": { + "pako": "~1.0.5" + } + }, + "browserslist": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.3.4.tgz", + "integrity": "sha512-u5iz+ijIMUlmV8blX82VGFrB9ecnUg5qEt55CMZ/YJEhha+d8qpBfOFuutJ6F/VKRXjZoD33b6uvarpPxcl3RA==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30000899", + "electron-to-chromium": "^1.3.82", + "node-releases": "^1.0.1" + } + }, + "bser": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.0.0.tgz", + "integrity": "sha1-mseNPtXZFYBP2HrLFYvHlxR6Fxk=", + "dev": true, + "requires": { + "node-int64": "^0.4.0" + } + }, + "buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.2.1.tgz", + "integrity": "sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg==", + "dev": true, + "requires": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4" + } + }, + "buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "dev": true + }, + "buffer-xor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", + "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=", + "dev": true + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "builtin-status-codes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", + "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=", + "dev": true + }, + "bundle-collapser": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/bundle-collapser/-/bundle-collapser-1.3.0.tgz", + "integrity": "sha1-9LT/WLLyLudwGyD6djBuI/U6P7Y=", + "dev": true, + "requires": { + "browser-pack": "^5.0.1", + "browser-unpack": "^1.1.0", + "concat-stream": "^1.5.0", + "falafel": "^2.1.0", + "minimist": "^1.1.1", + "through2": "^2.0.0" + }, + "dependencies": { + "browser-pack": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/browser-pack/-/browser-pack-5.0.1.tgz", + "integrity": "sha1-QZdxmyDG4KqglFHFER5T77b7wY0=", + "dev": true, + "requires": { + "JSONStream": "^1.0.3", + "combine-source-map": "~0.6.1", + "defined": "^1.0.0", + "through2": "^1.0.0", + "umd": "^3.0.0" + }, + "dependencies": { + "through2": { + "version": "1.1.1", + "resolved": "http://registry.npmjs.org/through2/-/through2-1.1.1.tgz", + "integrity": "sha1-CEfLxESfNAVXTb3M2buEG4OsNUU=", + "dev": true, + "requires": { + "readable-stream": ">=1.1.13-1 <1.2.0-0", + "xtend": ">=4.0.0 <4.1.0-0" + } + } + } + }, + "combine-source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.6.1.tgz", + "integrity": "sha1-m0oJwxYDPXaODxHgKfonMOB5rZY=", + "dev": true, + "requires": { + "convert-source-map": "~1.1.0", + "inline-source-map": "~0.5.0", + "lodash.memoize": "~3.0.3", + "source-map": "~0.4.2" + } + }, + "convert-source-map": { + "version": "1.1.3", + "resolved": "http://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", + "integrity": "sha1-SCnId+n+SbMWHzvzZziI4gRpmGA=", + "dev": true + }, + "inline-source-map": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.5.0.tgz", + "integrity": "sha1-Skxd2OT7Xps82mDIIt+tyu5m4K8=", + "dev": true, + "requires": { + "source-map": "~0.4.0" + } + }, + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + }, + "readable-stream": { + "version": "1.1.14", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "source-map": { + "version": "0.4.4", + "resolved": "http://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", + "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", + "dev": true, + "requires": { + "amdefine": ">=0.0.4" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true + } + } + }, + "bytes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", + "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=", + "dev": true + }, + "cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "dev": true, + "requires": { + "collection-visit": "^1.0.0", + "component-emitter": "^1.2.1", + "get-value": "^2.0.6", + "has-value": "^1.0.0", + "isobject": "^3.0.1", + "set-value": "^2.0.0", + "to-object-path": "^0.3.0", + "union-value": "^1.0.0", + "unset-value": "^1.0.0" + } + }, + "cached-path-relative": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/cached-path-relative/-/cached-path-relative-1.0.2.tgz", + "integrity": "sha512-5r2GqsoEb4qMTTN9J+WzXfjov+hjxT+j3u5K+kIVNIwAd99DLCJE9pBIMP1qVeybV6JiijL385Oz0DcYxfbOIg==", + "dev": true + }, + "call-matcher": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/call-matcher/-/call-matcher-1.1.0.tgz", + "integrity": "sha512-IoQLeNwwf9KTNbtSA7aEBb1yfDbdnzwjCetjkC8io5oGeOmK2CBNdg0xr+tadRYKO0p7uQyZzvon0kXlZbvGrw==", + "dev": true, + "requires": { + "core-js": "^2.0.0", + "deep-equal": "^1.0.0", + "espurify": "^1.6.0", + "estraverse": "^4.0.0" + } + }, + "call-me-maybe": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz", + "integrity": "sha1-JtII6onje1y95gJQoV8DHBak1ms=", + "dev": true + }, + "caller-path": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-0.1.0.tgz", + "integrity": "sha1-lAhe9jWB7NPaqSREqP6U6CV3dR8=", + "dev": true, + "requires": { + "callsites": "^0.2.0" + } + }, + "callsites": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-0.2.0.tgz", + "integrity": "sha1-r6uWJikQp/M8GaV3WCXGnzTjUMo=", + "dev": true + }, + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + }, + "camelcase-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", + "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", + "dev": true, + "requires": { + "camelcase": "^4.1.0", + "map-obj": "^2.0.0", + "quick-lru": "^1.0.0" + }, + "dependencies": { + "map-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", + "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=", + "dev": true + } + } + }, + "caniuse-lite": { + "version": "1.0.30000909", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000909.tgz", + "integrity": "sha512-4Ix9ArKpo3s/dLGVn/el9SAk6Vn2kGhg8XeE4eRTsGEsmm9RnTkwnBsVZs7p4wA8gB+nsgP36vZWYbG8a4nYrg==", + "dev": true + }, + "capture-exit": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/capture-exit/-/capture-exit-1.2.0.tgz", + "integrity": "sha1-HF/MSJ/QqwDU8ax64QcuMXP7q28=", + "dev": true, + "requires": { + "rsvp": "^3.3.3" + } + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", + "dev": true + }, + "catharsis": { + "version": "0.8.9", + "resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.8.9.tgz", + "integrity": "sha1-mMyJDKZS3S7w5ws3klMQ/56Q/Is=", + "dev": true, + "requires": { + "underscore-contrib": "~0.3.0" + } + }, + "center-align": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", + "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", + "dev": true, + "optional": true, + "requires": { + "align-text": "^0.1.3", + "lazy-cache": "^1.0.3" + } + }, + "chalk": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", + "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "chardet": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", + "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", + "dev": true + }, + "chokidar": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.0.4.tgz", + "integrity": "sha512-z9n7yt9rOvIJrMhvDtDictKrkFHeihkNl6uWMmZlmL6tJtX9Cs+87oK+teBx+JIgzvbX3yZHT3eF8vpbDxHJXQ==", + "dev": true, + "requires": { + "anymatch": "^2.0.0", + "async-each": "^1.0.0", + "braces": "^2.3.0", + "fsevents": "^1.2.2", + "glob-parent": "^3.1.0", + "inherits": "^2.0.1", + "is-binary-path": "^1.0.0", + "is-glob": "^4.0.0", + "lodash.debounce": "^4.0.8", + "normalize-path": "^2.1.1", + "path-is-absolute": "^1.0.0", + "readdirp": "^2.0.0", + "upath": "^1.0.5" + } + }, + "chokidar-cli": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/chokidar-cli/-/chokidar-cli-1.2.1.tgz", + "integrity": "sha512-JIrV9Z/pT7KjBWp9u+Uba0utdl2rmNaTj6t4ucaFseYDQASHZnWXy6vJIufDX+4FVh081gQZ2odrqorMfQhn7w==", + "dev": true, + "requires": { + "bluebird": "3.5.1", + "chokidar": "2.0.4", + "lodash": "4.17.10", + "yargs": "12.0.1" + }, + "dependencies": { + "lodash": { + "version": "4.17.10", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", + "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==", + "dev": true + } + } + }, + "ci-info": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.6.0.tgz", + "integrity": "sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==", + "dev": true + }, + "cipher-base": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", + "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "circular-json": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.3.3.tgz", + "integrity": "sha512-UZK3NBx2Mca+b5LsG7bY183pHWt5Y1xts4P3Pz7ENTwGVnJOUWbRb3ocjvX7hx9tq/yTAdclXm9sZ38gNuem4A==", + "dev": true + }, + "class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "dev": true, + "requires": { + "arr-union": "^3.1.0", + "define-property": "^0.2.5", + "isobject": "^3.0.0", + "static-extend": "^0.1.1" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + } + } + }, + "clean-css": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.1.tgz", + "integrity": "sha512-4ZxI6dy4lrY6FHzfiy1aEOXgu4LIsW2MhwG0VBKdcoGoH/XLFgaHSdLTGr4O8Be6A8r3MOphEiI8Gc1n0ecf3g==", + "dev": true, + "requires": { + "source-map": "~0.6.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "clean-css-cli": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/clean-css-cli/-/clean-css-cli-4.2.1.tgz", + "integrity": "sha512-ST2yi9F2kAmLRs9phSpGRUm44SbRy29QGm1OuAKfTU0KCLilFMTcz+/Fxhbdi5GrsjIMhTBdFUQhc55CjM3Isw==", + "dev": true, + "requires": { + "clean-css": "^4.2.1", + "commander": "2.x", + "glob": "7.x" + } + }, + "cli-cursor": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", + "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", + "dev": true, + "requires": { + "restore-cursor": "^2.0.0" + } + }, + "cli-width": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", + "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", + "dev": true + }, + "clipboard": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.4.tgz", + "integrity": "sha512-Vw26VSLRpJfBofiVaFb/I8PVfdI1OxKcYShe6fm0sP/DtmiWQNCjhM/okTvdCo0G+lMMm1rMYbk4IK4x1X+kgQ==", + "dev": true, + "optional": true, + "requires": { + "good-listener": "^1.2.2", + "select": "^1.1.2", + "tiny-emitter": "^2.0.0" + } + }, + "cliui": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", + "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", + "dev": true, + "requires": { + "string-width": "^2.1.1", + "strip-ansi": "^4.0.0", + "wrap-ansi": "^2.0.0" + } + }, + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", + "dev": true + }, + "code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "dev": true + }, + "codeflask": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/codeflask/-/codeflask-1.3.0.tgz", + "integrity": "sha512-9Ko6upfnhSo9ZywCYr8cD2p6SUFZGkdBkCTi9guNSQoMaeygMr6dV+Vb1C4qFJZ8tuTlfCHWccX/k7x6G6rn3g==", + "dev": true, + "requires": { + "prismjs": "^1.14.0" + } + }, + "collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", + "dev": true, + "requires": { + "map-visit": "^1.0.0", + "object-visit": "^1.0.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "combine-source-map": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.8.0.tgz", + "integrity": "sha1-pY0N8ELBhvz4IqjoAV9UUNLXmos=", + "dev": true, + "requires": { + "convert-source-map": "~1.1.0", + "inline-source-map": "~0.6.0", + "lodash.memoize": "~3.0.3", + "source-map": "~0.5.3" + }, + "dependencies": { + "convert-source-map": { + "version": "1.1.3", + "resolved": "http://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", + "integrity": "sha1-SCnId+n+SbMWHzvzZziI4gRpmGA=", + "dev": true + } + } + }, + "combined-stream": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz", + "integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==", + "dev": true, + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "commander": { + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.19.0.tgz", + "integrity": "sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==" + }, + "common-shakeify": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/common-shakeify/-/common-shakeify-0.5.2.tgz", + "integrity": "sha512-znhuzdj4zgvMz5u6cM9FI1WFcxTJ8lvGGW1FaaU0eMZ9o9LqIy3j43SrUYsQJKwdI8+1p/55YpeHTz68G+0Zsw==", + "dev": true, + "requires": { + "@goto-bus-stop/common-shake": "^2.2.0", + "convert-source-map": "^1.5.1", + "through2": "^2.0.3", + "transform-ast": "^2.4.3", + "wrap-comment": "^1.0.1" + } + }, + "common-tags": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.0.tgz", + "integrity": "sha512-6P6g0uetGpW/sdyUy/iQQCbFF0kWVMSIVSyYz7Zgjcgh8mgw8PQzDNZeyZ5DQ2gM7LBoZPHmnjz8rUthkBG5tw==" + }, + "component-emitter": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", + "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "concat-stream": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.2.tgz", + "integrity": "sha1-cIl4Yk2FavQaWnQd790mHadSwmY=", + "dev": true, + "requires": { + "inherits": "~2.0.1", + "readable-stream": "~2.0.0", + "typedarray": "~0.0.5" + }, + "dependencies": { + "process-nextick-args": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", + "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=", + "dev": true + }, + "readable-stream": { + "version": "2.0.6", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", + "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "string_decoder": "~0.10.x", + "util-deprecate": "~1.0.1" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true + } + } + }, + "console-browserify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", + "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", + "dev": true, + "requires": { + "date-now": "^0.1.4" + } + }, + "constants-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", + "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=", + "dev": true + }, + "content-disposition": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz", + "integrity": "sha1-DPaLud318r55YcOoUXjLhdunjLQ=", + "dev": true + }, + "content-type": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", + "dev": true + }, + "convert-source-map": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz", + "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.1" + } + }, + "cookie": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", + "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=", + "dev": true + }, + "cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=", + "dev": true + }, + "copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", + "dev": true + }, + "core-js": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.7.tgz", + "integrity": "sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw==", + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "dev": true + }, + "cosmiconfig": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-4.0.0.tgz", + "integrity": "sha512-6e5vDdrXZD+t5v0L8CrurPeybg4Fmf+FCSYxXKYVAqLUtyCSbuyqE059d0kDthTNRzKVjL7QMgNpEUlsoYH3iQ==", + "dev": true, + "requires": { + "is-directory": "^0.3.1", + "js-yaml": "^3.9.0", + "parse-json": "^4.0.0", + "require-from-string": "^2.0.1" + }, + "dependencies": { + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "dev": true, + "requires": { + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1" + } + } + } + }, + "count-lines": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/count-lines/-/count-lines-0.1.2.tgz", + "integrity": "sha1-4zST+2hgqC9xWdgjeEP7+u/uWWI=", + "dev": true + }, + "cp-file": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cp-file/-/cp-file-6.0.0.tgz", + "integrity": "sha512-OtHMgPugkgwHlbph25wlMKd358lZNhX1Y2viUpPoFmlBPlEiPIRhztYWha11grbGPnlM+urp5saVmwsChCIOEg==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "make-dir": "^1.0.0", + "nested-error-stacks": "^2.0.0", + "pify": "^3.0.0", + "safe-buffer": "^5.0.1" + }, + "dependencies": { + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + } + } + }, + "cpy": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/cpy/-/cpy-7.0.1.tgz", + "integrity": "sha512-Zo52tXKLJcgy/baacn6KaNoRAakkl2wb+R4u6qJ4wlD0uchncwRQcIk66PlGlkzuToCJO6A6PWX27Tdwc8LU2g==", + "dev": true, + "requires": { + "arrify": "^1.0.1", + "cp-file": "^6.0.0", + "globby": "^8.0.1", + "nested-error-stacks": "^2.0.0" + } + }, + "cpy-cli": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/cpy-cli/-/cpy-cli-2.0.0.tgz", + "integrity": "sha512-LzrtY3lBWvFZcw4lXgkEbbDUd7y78juC3C5l7gj3UyezMEZF0Be9fjCVLN1HoZAzdMDeC3KHehWpHBJvgVAPkw==", + "dev": true, + "requires": { + "cpy": "^7.0.0", + "meow": "^5.0.0" + } + }, + "create-ecdh": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.3.tgz", + "integrity": "sha512-GbEHQPMOswGpKXM9kCWVrremUcBmjteUaQ01T9rkKCPDXfUHX0IoP9LpHYo2NPFampa4e+/pFDc3jQdxrxQLaw==", + "dev": true, + "requires": { + "bn.js": "^4.1.0", + "elliptic": "^6.0.0" + } + }, + "create-hash": { + "version": "1.2.0", + "resolved": "http://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", + "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", + "dev": true, + "requires": { + "cipher-base": "^1.0.1", + "inherits": "^2.0.1", + "md5.js": "^1.3.4", + "ripemd160": "^2.0.1", + "sha.js": "^2.4.0" + } + }, + "create-hmac": { + "version": "1.1.7", + "resolved": "http://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", + "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", + "dev": true, + "requires": { + "cipher-base": "^1.0.3", + "create-hash": "^1.1.0", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + } + }, + "cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", + "dev": true, + "requires": { + "lru-cache": "^4.0.1", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "crypto-browserify": { + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", + "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", + "dev": true, + "requires": { + "browserify-cipher": "^1.0.0", + "browserify-sign": "^4.0.0", + "create-ecdh": "^4.0.0", + "create-hash": "^1.1.0", + "create-hmac": "^1.1.0", + "diffie-hellman": "^5.0.0", + "inherits": "^2.0.1", + "pbkdf2": "^3.0.3", + "public-encrypt": "^4.0.0", + "randombytes": "^2.0.0", + "randomfill": "^1.0.3" + } + }, + "cssom": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.4.tgz", + "integrity": "sha512-+7prCSORpXNeR4/fUP3rL+TzqtiFfhMvTd7uEqMdgPvLPt4+uzFUeufx5RHjGTACCargg/DiEt/moMQmvnfkog==", + "dev": true + }, + "cssstyle": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-1.1.1.tgz", + "integrity": "sha512-364AI1l/M5TYcFH83JnOH/pSqgaNnKmYgKrm0didZMGKWjQB60dymwWy1rKUgL3J1ffdq9xVi2yGLHdSjjSNog==", + "dev": true, + "requires": { + "cssom": "0.3.x" + } + }, + "currently-unhandled": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", + "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", + "dev": true, + "requires": { + "array-find-index": "^1.0.1" + } + }, + "d": { + "version": "1.0.0", + "resolved": "http://registry.npmjs.org/d/-/d-1.0.0.tgz", + "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", + "dev": true, + "requires": { + "es5-ext": "^0.10.9" + } + }, + "d3": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/d3/-/d3-4.13.0.tgz", + "integrity": "sha512-l8c4+0SldjVKLaE2WG++EQlqD7mh/dmQjvi2L2lKPadAVC+TbJC4ci7Uk9bRi+To0+ansgsS0iWfPjD7DBy+FQ==", + "requires": { + "d3-array": "1.2.1", + "d3-axis": "1.0.8", + "d3-brush": "1.0.4", + "d3-chord": "1.0.4", + "d3-collection": "1.0.4", + "d3-color": "1.0.3", + "d3-dispatch": "1.0.3", + "d3-drag": "1.2.1", + "d3-dsv": "1.0.8", + "d3-ease": "1.0.3", + "d3-force": "1.1.0", + "d3-format": "1.2.2", + "d3-geo": "1.9.1", + "d3-hierarchy": "1.1.5", + "d3-interpolate": "1.1.6", + "d3-path": "1.0.5", + "d3-polygon": "1.0.3", + "d3-quadtree": "1.0.3", + "d3-queue": "3.0.7", + "d3-random": "1.1.0", + "d3-request": "1.0.6", + "d3-scale": "1.0.7", + "d3-selection": "1.3.0", + "d3-shape": "1.2.0", + "d3-time": "1.0.8", + "d3-time-format": "2.1.1", + "d3-timer": "1.0.7", + "d3-transition": "1.1.1", + "d3-voronoi": "1.1.2", + "d3-zoom": "1.7.1" + } + }, + "d3-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-1.2.1.tgz", + "integrity": "sha512-CyINJQ0SOUHojDdFDH4JEM0552vCR1utGyLHegJHyYH0JyCpSeTPxi4OBqHMA2jJZq4NH782LtaJWBImqI/HBw==" + }, + "d3-axis": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/d3-axis/-/d3-axis-1.0.8.tgz", + "integrity": "sha1-MacFoLU15ldZ3hQXOjGTMTfxjvo=" + }, + "d3-brush": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/d3-brush/-/d3-brush-1.0.4.tgz", + "integrity": "sha1-AMLyOAGfJPbAoZSibUGhUw/+e8Q=", + "requires": { + "d3-dispatch": "1", + "d3-drag": "1", + "d3-interpolate": "1", + "d3-selection": "1", + "d3-transition": "1" + } + }, + "d3-chord": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/d3-chord/-/d3-chord-1.0.4.tgz", + "integrity": "sha1-fexPC6iG9xP+ERxF92NBT290yiw=", + "requires": { + "d3-array": "1", + "d3-path": "1" + } + }, + "d3-collection": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/d3-collection/-/d3-collection-1.0.4.tgz", + "integrity": "sha1-NC39EoN8kJdPM/HMCnha6lcNzcI=" + }, + "d3-color": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-1.0.3.tgz", + "integrity": "sha1-vHZD/KjlOoNH4vva/6I2eWtYUJs=" + }, + "d3-dispatch": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-1.0.3.tgz", + "integrity": "sha1-RuFJHqqbWMNY/OW+TovtYm54cfg=" + }, + "d3-drag": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-1.2.1.tgz", + "integrity": "sha512-Cg8/K2rTtzxzrb0fmnYOUeZHvwa4PHzwXOLZZPwtEs2SKLLKLXeYwZKBB+DlOxUvFmarOnmt//cU4+3US2lyyQ==", + "requires": { + "d3-dispatch": "1", + "d3-selection": "1" + } + }, + "d3-dsv": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/d3-dsv/-/d3-dsv-1.0.8.tgz", + "integrity": "sha512-IVCJpQ+YGe3qu6odkPQI0KPqfxkhbP/oM1XhhE/DFiYmcXKfCRub4KXyiuehV1d4drjWVXHUWx4gHqhdZb6n/A==", + "requires": { + "commander": "2", + "iconv-lite": "0.4", + "rw": "1" + } + }, + "d3-ease": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-1.0.3.tgz", + "integrity": "sha1-aL+8NJM4o4DETYrMT7wzBKotjA4=" + }, + "d3-force": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/d3-force/-/d3-force-1.1.0.tgz", + "integrity": "sha512-2HVQz3/VCQs0QeRNZTYb7GxoUCeb6bOzMp/cGcLa87awY9ZsPvXOGeZm0iaGBjXic6I1ysKwMn+g+5jSAdzwcg==", + "requires": { + "d3-collection": "1", + "d3-dispatch": "1", + "d3-quadtree": "1", + "d3-timer": "1" + } + }, + "d3-format": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-1.2.2.tgz", + "integrity": "sha512-zH9CfF/3C8zUI47nsiKfD0+AGDEuM8LwBIP7pBVpyR4l/sKkZqITmMtxRp04rwBrlshIZ17XeFAaovN3++wzkw==" + }, + "d3-geo": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/d3-geo/-/d3-geo-1.9.1.tgz", + "integrity": "sha512-l9wL/cEQkyZQYXw3xbmLsH3eQ5ij+icNfo4r0GrLa5rOCZR/e/3am45IQ0FvQ5uMsv+77zBRunLc9ufTWSQYFA==", + "requires": { + "d3-array": "1" + } + }, + "d3-hierarchy": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/d3-hierarchy/-/d3-hierarchy-1.1.5.tgz", + "integrity": "sha1-ochFxC+Eoga88cAcAQmOpN2qeiY=" + }, + "d3-interpolate": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-1.1.6.tgz", + "integrity": "sha512-mOnv5a+pZzkNIHtw/V6I+w9Lqm9L5bG3OTXPM5A+QO0yyVMQ4W1uZhR+VOJmazaOZXri2ppbiZ5BUNWT0pFM9A==", + "requires": { + "d3-color": "1" + } + }, + "d3-path": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.5.tgz", + "integrity": "sha1-JB6xhJvZ6egCHA0KeZ+KDo5EF2Q=" + }, + "d3-polygon": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/d3-polygon/-/d3-polygon-1.0.3.tgz", + "integrity": "sha1-FoiOkCZGCTPysXllKtN4Ik04LGI=" + }, + "d3-quadtree": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/d3-quadtree/-/d3-quadtree-1.0.3.tgz", + "integrity": "sha1-rHmH4+I/6AWpkPKOG1DTj8uCJDg=" + }, + "d3-queue": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/d3-queue/-/d3-queue-3.0.7.tgz", + "integrity": "sha1-yTouVLQXwJWRKdfXP2z31Ckudhg=" + }, + "d3-random": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/d3-random/-/d3-random-1.1.0.tgz", + "integrity": "sha1-ZkLlBsb6OmSFldKyRpeIqNElKdM=" + }, + "d3-request": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/d3-request/-/d3-request-1.0.6.tgz", + "integrity": "sha512-FJj8ySY6GYuAJHZMaCQ83xEYE4KbkPkmxZ3Hu6zA1xxG2GD+z6P+Lyp+zjdsHf0xEbp2xcluDI50rCS855EQ6w==", + "requires": { + "d3-collection": "1", + "d3-dispatch": "1", + "d3-dsv": "1", + "xmlhttprequest": "1" + } + }, + "d3-scale": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-1.0.7.tgz", + "integrity": "sha512-KvU92czp2/qse5tUfGms6Kjig0AhHOwkzXG0+PqIJB3ke0WUv088AHMZI0OssO9NCkXt4RP8yju9rpH8aGB7Lw==", + "requires": { + "d3-array": "^1.2.0", + "d3-collection": "1", + "d3-color": "1", + "d3-format": "1", + "d3-interpolate": "1", + "d3-time": "1", + "d3-time-format": "2" + } + }, + "d3-selection": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-1.3.0.tgz", + "integrity": "sha512-qgpUOg9tl5CirdqESUAu0t9MU/t3O9klYfGfyKsXEmhyxyzLpzpeh08gaxBUTQw1uXIOkr/30Ut2YRjSSxlmHA==" + }, + "d3-shape": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-1.2.0.tgz", + "integrity": "sha1-RdAVOPBkuv0F6j1tLLdI/YxB93c=", + "requires": { + "d3-path": "1" + } + }, + "d3-time": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-1.0.8.tgz", + "integrity": "sha512-YRZkNhphZh3KcnBfitvF3c6E0JOFGikHZ4YqD+Lzv83ZHn1/u6yGenRU1m+KAk9J1GnZMnKcrtfvSktlA1DXNQ==" + }, + "d3-time-format": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-2.1.1.tgz", + "integrity": "sha512-8kAkymq2WMfzW7e+s/IUNAtN/y3gZXGRrdGfo6R8NKPAA85UBTxZg5E61bR6nLwjPjj4d3zywSQe1CkYLPFyrw==", + "requires": { + "d3-time": "1" + } + }, + "d3-timer": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-1.0.7.tgz", + "integrity": "sha512-vMZXR88XujmG/L5oB96NNKH5lCWwiLM/S2HyyAQLcjWJCloK5shxta4CwOFYLZoY3AWX73v8Lgv4cCAdWtRmOA==" + }, + "d3-transition": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-1.1.1.tgz", + "integrity": "sha512-xeg8oggyQ+y5eb4J13iDgKIjUcEfIOZs2BqV/eEmXm2twx80wTzJ4tB4vaZ5BKfz7XsI/DFmQL5me6O27/5ykQ==", + "requires": { + "d3-color": "1", + "d3-dispatch": "1", + "d3-ease": "1", + "d3-interpolate": "1", + "d3-selection": "^1.1.0", + "d3-timer": "1" + } + }, + "d3-voronoi": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/d3-voronoi/-/d3-voronoi-1.1.2.tgz", + "integrity": "sha1-Fodmfo8TotFYyAwUgMWinLDYlzw=" + }, + "d3-zoom": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/d3-zoom/-/d3-zoom-1.7.1.tgz", + "integrity": "sha512-sZHQ55DGq5BZBFGnRshUT8tm2sfhPHFnOlmPbbwTkAoPeVdRTkB4Xsf9GCY0TSHrTD8PeJPZGmP/TpGicwJDJQ==", + "requires": { + "d3-dispatch": "1", + "d3-drag": "1", + "d3-interpolate": "1", + "d3-selection": "1", + "d3-transition": "1" + } + }, + "dash-ast": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dash-ast/-/dash-ast-1.0.0.tgz", + "integrity": "sha512-Vy4dx7gquTeMcQR/hDkYLGUnwVil6vk4FOOct+djUnHOUWt+zJPJAaRIXaAFkPXtJjvlY7o3rfRu0/3hpnwoUA==", + "dev": true + }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "data-urls": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-1.1.0.tgz", + "integrity": "sha512-YTWYI9se1P55u58gL5GkQHW4P6VJBJ5iBT+B5a7i2Tjadhv52paJG0qHX4A0OR6/t52odI64KP2YvFpkDOi3eQ==", + "dev": true, + "requires": { + "abab": "^2.0.0", + "whatwg-mimetype": "^2.2.0", + "whatwg-url": "^7.0.0" + }, + "dependencies": { + "whatwg-url": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.0.0.tgz", + "integrity": "sha512-37GeVSIJ3kn1JgKyjiYNmSLP1yzbpb29jdmwBSgkD9h40/hyrR/OifpVUndji3tmwGgD8qpw7iQu3RSbCrBpsQ==", + "dev": true, + "requires": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + } + } + }, + "date-now": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz", + "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", + "dev": true + }, + "debug": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.0.tgz", + "integrity": "sha512-heNPJUJIqC+xB6ayLAMHaIrmN9HKa7aQO8MGqKpvCA+uJYVcvR6l5kgdrhRuwPFHU7P5/A1w0BjByPHwpfTDKg==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "decamelize": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-2.0.0.tgz", + "integrity": "sha512-Ikpp5scV3MSYxY39ymh45ZLEecsTdv/Xj2CaQfI8RLMuwi7XvjX9H/fhraiSuU+C5w5NTDu4ZU72xNiZnurBPg==", + "dev": true, + "requires": { + "xregexp": "4.0.0" + } + }, + "decamelize-keys": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", + "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=", + "dev": true, + "requires": { + "decamelize": "^1.1.0", + "map-obj": "^1.0.0" + }, + "dependencies": { + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true + } + } + }, + "decode-uri-component": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", + "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", + "dev": true + }, + "dedent": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", + "integrity": "sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=", + "dev": true + }, + "deep-equal": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.0.1.tgz", + "integrity": "sha1-9dJgKStmDghO/0zbyfCK0yR0SLU=", + "dev": true + }, + "deep-is": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", + "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", + "dev": true + }, + "default-require-extensions": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-1.0.0.tgz", + "integrity": "sha1-836hXT4T/9m0N9M+GnW1+5eHTLg=", + "dev": true, + "requires": { + "strip-bom": "^2.0.0" + } + }, + "define-properties": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "dev": true, + "requires": { + "object-keys": "^1.0.12" + } + }, + "define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "requires": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + }, + "dependencies": { + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + } + } + }, + "defined": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz", + "integrity": "sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=", + "dev": true + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "dev": true + }, + "delegate": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/delegate/-/delegate-3.2.0.tgz", + "integrity": "sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw==", + "dev": true, + "optional": true + }, + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", + "dev": true + }, + "dependency-graph": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.7.2.tgz", + "integrity": "sha512-KqtH4/EZdtdfWX0p6MGP9jljvxSY6msy/pRUD4jgNwVpv3v1QmNLlsB3LDSSUg79BRVSn7jI1QPRtArGABovAQ==", + "dev": true + }, + "deps-sort": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/deps-sort/-/deps-sort-2.0.0.tgz", + "integrity": "sha1-CRckkC6EZYJg65EHSMzNGvbiH7U=", + "dev": true, + "requires": { + "JSONStream": "^1.0.3", + "shasum": "^1.0.0", + "subarg": "^1.0.0", + "through2": "^2.0.0" + } + }, + "des.js": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz", + "integrity": "sha1-wHTS4qpqipoH29YfmhXCzYPsjsw=", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0" + } + }, + "destroy": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", + "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", + "dev": true + }, + "detect-indent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", + "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", + "dev": true, + "requires": { + "repeating": "^2.0.0" + } + }, + "detect-newline": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-2.1.0.tgz", + "integrity": "sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I=", + "dev": true + }, + "detective": { + "version": "4.7.1", + "resolved": "https://registry.npmjs.org/detective/-/detective-4.7.1.tgz", + "integrity": "sha512-H6PmeeUcZloWtdt4DAkFyzFL94arpHr3NOwwmVILFiy+9Qd4JTxxXrzfyGk/lmct2qVGBwTSwSXagqu2BxmWig==", + "dev": true, + "requires": { + "acorn": "^5.2.1", + "defined": "^1.0.0" + }, + "dependencies": { + "acorn": { + "version": "5.7.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz", + "integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==", + "dev": true + } + } + }, + "diff": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", + "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "dev": true + }, + "diffie-hellman": { + "version": "5.0.3", + "resolved": "http://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", + "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", + "dev": true, + "requires": { + "bn.js": "^4.1.0", + "miller-rabin": "^4.0.0", + "randombytes": "^2.0.0" + } + }, + "dir-glob": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-2.0.0.tgz", + "integrity": "sha512-37qirFDz8cA5fimp9feo43fSuRo2gHwaIn6dXL8Ber1dGwUosDrGZeCCXq57WnIqE4aQ+u3eQZzsk1yOzhdwag==", + "dev": true, + "requires": { + "arrify": "^1.0.1", + "path-type": "^3.0.0" + }, + "dependencies": { + "path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "dev": true, + "requires": { + "pify": "^3.0.0" + } + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + } + } + }, + "doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "requires": { + "esutils": "^2.0.2" + } + }, + "domain-browser": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.1.7.tgz", + "integrity": "sha1-hnqksJP6oF8d4IwG9NeyH9+GmLw=", + "dev": true + }, + "domexception": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-1.0.1.tgz", + "integrity": "sha512-raigMkn7CJNNo6Ihro1fzG7wr3fHuYVytzquZKX5n0yizGsTcYgzdIUwj1X9pK0VvjeihV+XiclP+DjwbsSKug==", + "dev": true, + "requires": { + "webidl-conversions": "^4.0.2" + } + }, + "duplexer": { + "version": "0.1.1", + "resolved": "http://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", + "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=", + "dev": true + }, + "duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", + "dev": true, + "requires": { + "readable-stream": "^2.0.2" + } + }, + "duplexify": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.6.1.tgz", + "integrity": "sha512-vM58DwdnKmty+FSPzT14K9JXb90H+j5emaR4KYbr2KTIz00WHGbWOe5ghQTx233ZCLZtrGDALzKwcjEtSt35mA==", + "dev": true, + "requires": { + "end-of-stream": "^1.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.0.0", + "stream-shift": "^1.0.0" + } + }, + "ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", + "dev": true, + "requires": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", + "dev": true + }, + "electron-to-chromium": { + "version": "1.3.84", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.84.tgz", + "integrity": "sha512-IYhbzJYOopiTaNWMBp7RjbecUBsbnbDneOP86f3qvS0G0xfzwNSvMJpTrvi5/Y1gU7tg2NAgeg8a8rCYvW9Whw==", + "dev": true + }, + "elliptic": { + "version": "6.4.1", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.1.tgz", + "integrity": "sha512-BsXLz5sqX8OHcsh7CqBMztyXARmGQ3LWPtGjJi6DiJHq5C/qvi9P3OqgswKSDftbu8+IoI/QDTAm2fFnQ9SZSQ==", + "dev": true, + "requires": { + "bn.js": "^4.4.0", + "brorand": "^1.0.1", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.0" + } + }, + "encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", + "dev": true + }, + "end-of-stream": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", + "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", + "dev": true, + "requires": { + "once": "^1.4.0" + } + }, + "envify": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/envify/-/envify-4.1.0.tgz", + "integrity": "sha512-IKRVVoAYr4pIx4yIWNsz9mOsboxlNXiu7TNBnem/K/uTHdkyzXWDzHCK7UTolqBbgaBz0tQHsD3YNls0uIIjiw==", + "dev": true, + "requires": { + "esprima": "^4.0.0", + "through": "~2.3.4" + } + }, + "error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "requires": { + "is-arrayish": "^0.2.1" + } + }, + "es-abstract": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.12.0.tgz", + "integrity": "sha512-C8Fx/0jFmV5IPoMOFPA9P9G5NtqW+4cOPit3MIuvR2t7Ag2K15EJTpxnHAYTzL+aYQJIESYeXZmDBfOBE1HcpA==", + "dev": true, + "requires": { + "es-to-primitive": "^1.1.1", + "function-bind": "^1.1.1", + "has": "^1.0.1", + "is-callable": "^1.1.3", + "is-regex": "^1.0.4" + } + }, + "es-to-primitive": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz", + "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", + "dev": true, + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, + "es5-ext": { + "version": "0.10.46", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.46.tgz", + "integrity": "sha512-24XxRvJXNFwEMpJb3nOkiRJKRoupmjYmOPVlI65Qy2SrtxwOTB+g6ODjBKOtwEHbYrhWRty9xxOWLNdClT2djw==", + "dev": true, + "requires": { + "es6-iterator": "~2.0.3", + "es6-symbol": "~3.1.1", + "next-tick": "1" + } + }, + "es6-iterator": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", + "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=", + "dev": true, + "requires": { + "d": "1", + "es5-ext": "^0.10.35", + "es6-symbol": "^3.1.1" + } + }, + "es6-map": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/es6-map/-/es6-map-0.1.5.tgz", + "integrity": "sha1-kTbgUD3MBqMBaQ8LsU/042TpSfA=", + "dev": true, + "requires": { + "d": "1", + "es5-ext": "~0.10.14", + "es6-iterator": "~2.0.1", + "es6-set": "~0.1.5", + "es6-symbol": "~3.1.1", + "event-emitter": "~0.3.5" + } + }, + "es6-set": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.5.tgz", + "integrity": "sha1-0rPsXU2ADO2BjbU40ol02wpzzLE=", + "dev": true, + "requires": { + "d": "1", + "es5-ext": "~0.10.14", + "es6-iterator": "~2.0.1", + "es6-symbol": "3.1.1", + "event-emitter": "~0.3.5" + } + }, + "es6-symbol": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.1.tgz", + "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", + "dev": true, + "requires": { + "d": "1", + "es5-ext": "~0.10.14" + } + }, + "es6-weak-map": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.2.tgz", + "integrity": "sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8=", + "dev": true, + "requires": { + "d": "1", + "es5-ext": "^0.10.14", + "es6-iterator": "^2.0.1", + "es6-symbol": "^3.1.1" + } + }, + "escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "escodegen": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.11.0.tgz", + "integrity": "sha512-IeMV45ReixHS53K/OmfKAIztN/igDHzTJUhZM3k1jMhIZWjk45SMwAtBsEXiJp3vSPmTcu6CXn7mDvFHRN66fw==", + "dev": true, + "requires": { + "esprima": "^3.1.3", + "estraverse": "^4.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1", + "source-map": "~0.6.1" + }, + "dependencies": { + "esprima": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", + "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "optional": true + } + } + }, + "escope": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/escope/-/escope-3.6.0.tgz", + "integrity": "sha1-4Bl16BJ4GhY6ba392AOY3GTIicM=", + "dev": true, + "requires": { + "es6-map": "^0.1.3", + "es6-weak-map": "^2.0.1", + "esrecurse": "^4.1.0", + "estraverse": "^4.1.1" + } + }, + "eslint": { + "version": "5.9.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.9.0.tgz", + "integrity": "sha512-g4KWpPdqN0nth+goDNICNXGfJF7nNnepthp46CAlJoJtC5K/cLu3NgCM3AHu1CkJ5Hzt9V0Y0PBAO6Ay/gGb+w==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "ajv": "^6.5.3", + "chalk": "^2.1.0", + "cross-spawn": "^6.0.5", + "debug": "^4.0.1", + "doctrine": "^2.1.0", + "eslint-scope": "^4.0.0", + "eslint-utils": "^1.3.1", + "eslint-visitor-keys": "^1.0.0", + "espree": "^4.0.0", + "esquery": "^1.0.1", + "esutils": "^2.0.2", + "file-entry-cache": "^2.0.0", + "functional-red-black-tree": "^1.0.1", + "glob": "^7.1.2", + "globals": "^11.7.0", + "ignore": "^4.0.6", + "imurmurhash": "^0.1.4", + "inquirer": "^6.1.0", + "is-resolvable": "^1.1.0", + "js-yaml": "^3.12.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.3.0", + "lodash": "^4.17.5", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "natural-compare": "^1.4.0", + "optionator": "^0.8.2", + "path-is-inside": "^1.0.2", + "pluralize": "^7.0.0", + "progress": "^2.0.0", + "regexpp": "^2.0.1", + "require-uncached": "^1.0.3", + "semver": "^5.5.1", + "strip-ansi": "^4.0.0", + "strip-json-comments": "^2.0.1", + "table": "^5.0.2", + "text-table": "^0.2.0" + }, + "dependencies": { + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "eslint-scope": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.0.tgz", + "integrity": "sha512-1G6UTDi7Jc1ELFwnR58HV4fK9OQK4S6N985f166xqXxpjU6plxFISJa2Ba9KCQuFa8RCnj/lSFJbHo7UFDBnUA==", + "dev": true, + "requires": { + "esrecurse": "^4.1.0", + "estraverse": "^4.1.1" + } + } + } + }, + "eslint-scope": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-3.7.1.tgz", + "integrity": "sha1-PWPD7f2gLgbgGkUq2IyqzHzctug=", + "dev": true, + "requires": { + "esrecurse": "^4.1.0", + "estraverse": "^4.1.1" + } + }, + "eslint-utils": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.3.1.tgz", + "integrity": "sha512-Z7YjnIldX+2XMcjr7ZkgEsOj/bREONV60qYeB/bjMAqqqZ4zxKyWX+BOUkdmRmA9riiIPVvo5x86m5elviOk0Q==", + "dev": true + }, + "eslint-visitor-keys": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz", + "integrity": "sha512-qzm/XxIbxm/FHyH341ZrbnMUpe+5Bocte9xkmFMzPMjRaZMcXww+MpBptFvtU+79L362nqiLhekCxCxDPaUMBQ==", + "dev": true + }, + "espree": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-4.1.0.tgz", + "integrity": "sha512-I5BycZW6FCVIub93TeVY1s7vjhP9CY6cXCznIRfiig7nRviKZYdRnj/sHEWC6A7WE9RDWOFq9+7OsWSYz8qv2w==", + "dev": true, + "requires": { + "acorn": "^6.0.2", + "acorn-jsx": "^5.0.0", + "eslint-visitor-keys": "^1.0.0" + } + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" + }, + "espurify": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/espurify/-/espurify-1.8.1.tgz", + "integrity": "sha512-ZDko6eY/o+D/gHCWyHTU85mKDgYcS4FJj7S+YD6WIInm7GQ6AnOjmcL4+buFV/JOztVLELi/7MmuGU5NHta0Mg==", + "dev": true, + "requires": { + "core-js": "^2.0.0" + } + }, + "esquery": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.0.1.tgz", + "integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==", + "dev": true, + "requires": { + "estraverse": "^4.0.0" + } + }, + "esrecurse": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", + "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", + "dev": true, + "requires": { + "estraverse": "^4.1.0" + } + }, + "estraverse": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", + "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", + "dev": true + }, + "estree-is-function": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/estree-is-function/-/estree-is-function-1.0.0.tgz", + "integrity": "sha512-nSCWn1jkSq2QAtkaVLJZY2ezwcFO161HVc174zL1KPW3RJ+O6C3eJb8Nx7OXzvhoEv+nLgSR1g71oWUHUDTrJA==", + "dev": true + }, + "estree-is-identifier": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/estree-is-identifier/-/estree-is-identifier-1.0.0.tgz", + "integrity": "sha512-2BDRGrkQJV/NhCAmmE33A35WAaxq3WQaGHgQuD//7orGWfpFqj8Srkwvx0TH+20yIdOF1yMQwi8anv5ISec2AQ==", + "dev": true + }, + "estree-is-member-expression": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/estree-is-member-expression/-/estree-is-member-expression-1.0.0.tgz", + "integrity": "sha512-Ec+X44CapIGExvSZN+pGkmr5p7HwUVQoPQSd458Lqwvaf4/61k/invHSh4BYK8OXnCkfEhWuIoG5hayKLQStIg==", + "dev": true + }, + "estree-is-require": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/estree-is-require/-/estree-is-require-1.0.0.tgz", + "integrity": "sha512-oWxQdSEmnUwNZsDQYiBNpVxKEhMmsJQSSxnDrwsr1MWtooCLfhgzsNGzmokdmfK0EzEIS5V4LPvqxv1Kmb1vvA==", + "dev": true, + "requires": { + "estree-is-identifier": "^1.0.0" + } + }, + "esutils": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", + "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", + "dev": true + }, + "etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", + "dev": true + }, + "event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", + "dev": true, + "requires": { + "d": "1", + "es5-ext": "~0.10.14" + } + }, + "events": { + "version": "1.1.1", + "resolved": "http://registry.npmjs.org/events/-/events-1.1.1.tgz", + "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=", + "dev": true + }, + "evp_bytestokey": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", + "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", + "dev": true, + "requires": { + "md5.js": "^1.3.4", + "safe-buffer": "^5.1.1" + } + }, + "exec-sh": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.2.2.tgz", + "integrity": "sha512-FIUCJz1RbuS0FKTdaAafAByGS0CPvU3R0MeHxgtl+djzCc//F8HakL8GzmVNZanasTbTAY/3DRFA0KpVqj/eAw==", + "dev": true, + "requires": { + "merge": "^1.2.0" + } + }, + "execa": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", + "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", + "dev": true, + "requires": { + "cross-spawn": "^5.0.1", + "get-stream": "^3.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + } + }, + "exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "dev": true + }, + "expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "dev": true, + "requires": { + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "expand-range": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", + "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", + "dev": true, + "requires": { + "fill-range": "^2.1.0" + }, + "dependencies": { + "fill-range": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", + "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", + "dev": true, + "requires": { + "is-number": "^2.1.0", + "isobject": "^2.0.0", + "randomatic": "^3.0.0", + "repeat-element": "^1.1.2", + "repeat-string": "^1.5.2" + } + }, + "is-number": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", + "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + } + }, + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, + "requires": { + "isarray": "1.0.0" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "expect": { + "version": "23.6.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-23.6.0.tgz", + "integrity": "sha512-dgSoOHgmtn/aDGRVFWclQyPDKl2CQRq0hmIEoUAuQs/2rn2NcvCWcSCovm6BLeuB/7EZuLGu2QfnR+qRt5OM4w==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.0", + "jest-diff": "^23.6.0", + "jest-get-type": "^22.1.0", + "jest-matcher-utils": "^23.6.0", + "jest-message-util": "^23.4.0", + "jest-regex-util": "^23.3.0" + } + }, + "express": { + "version": "4.16.4", + "resolved": "https://registry.npmjs.org/express/-/express-4.16.4.tgz", + "integrity": "sha512-j12Uuyb4FMrd/qQAm6uCHAkPtO8FDTRJZBDd5D2KOL2eLaz1yUNdUB/NOIyq0iU4q4cFarsUCrnFDPBcnksuOg==", + "dev": true, + "requires": { + "accepts": "~1.3.5", + "array-flatten": "1.1.1", + "body-parser": "1.18.3", + "content-disposition": "0.5.2", + "content-type": "~1.0.4", + "cookie": "0.3.1", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "~1.1.2", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.1.1", + "fresh": "0.5.2", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "~2.3.0", + "parseurl": "~1.3.2", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.4", + "qs": "6.5.2", + "range-parser": "~1.2.0", + "safe-buffer": "5.1.2", + "send": "0.16.2", + "serve-static": "1.13.2", + "setprototypeof": "1.1.0", + "statuses": "~1.4.0", + "type-is": "~1.6.16", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + } + } + }, + "external-editor": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.0.3.tgz", + "integrity": "sha512-bn71H9+qWoOQKyZDo25mOMVpSmXROAsTJVVVYzrrtol3d4y+AsKjf4Iwl2Q+IuT0kFSQ1qo166UuIwqYq7mGnA==", + "dev": true, + "requires": { + "chardet": "^0.7.0", + "iconv-lite": "^0.4.24", + "tmp": "^0.0.33" + } + }, + "extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "dev": true, + "requires": { + "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", + "extend-shallow": "^2.0.1", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "^1.0.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + } + } + }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", + "dev": true + }, + "falafel": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/falafel/-/falafel-2.1.0.tgz", + "integrity": "sha1-lrsXdh2rqU9G0AFzizzt86Z/4Gw=", + "dev": true, + "requires": { + "acorn": "^5.0.0", + "foreach": "^2.0.5", + "isarray": "0.0.1", + "object-keys": "^1.0.6" + }, + "dependencies": { + "acorn": { + "version": "5.7.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz", + "integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==", + "dev": true + }, + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + } + } + }, + "fast-deep-equal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", + "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", + "dev": true + }, + "fast-glob": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-2.2.4.tgz", + "integrity": "sha512-FjK2nCGI/McyzgNtTESqaWP3trPvHyRyoyY70hxjc3oKPNmDe8taohLZpoVKoUjW85tbU5txaYUZCNtVzygl1g==", + "dev": true, + "requires": { + "@mrmlnc/readdir-enhanced": "^2.2.1", + "@nodelib/fs.stat": "^1.1.2", + "glob-parent": "^3.1.0", + "is-glob": "^4.0.0", + "merge2": "^1.2.3", + "micromatch": "^3.1.10" + } + }, + "fast-json-stable-stringify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", + "dev": true + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "dev": true + }, + "fb-watchman": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.0.tgz", + "integrity": "sha1-VOmr99+i8mzZsWNsWIwa/AXeXVg=", + "dev": true, + "requires": { + "bser": "^2.0.0" + } + }, + "figures": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", + "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5" + } + }, + "file-entry-cache": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-2.0.0.tgz", + "integrity": "sha1-w5KZDD5oR4PYOLjISkXYoEhFg2E=", + "dev": true, + "requires": { + "flat-cache": "^1.2.1", + "object-assign": "^4.0.1" + } + }, + "filename-regex": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", + "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=", + "dev": true + }, + "fileset": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/fileset/-/fileset-2.0.3.tgz", + "integrity": "sha1-jnVIqW08wjJ+5eZ0FocjozO7oqA=", + "dev": true, + "requires": { + "glob": "^7.0.3", + "minimatch": "^3.0.3" + } + }, + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "dev": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "finalhandler": { + "version": "1.1.1", + "resolved": "http://registry.npmjs.org/finalhandler/-/finalhandler-1.1.1.tgz", + "integrity": "sha512-Y1GUDo39ez4aHAw7MysnUD5JzYX+WaIj8I57kO3aEPT1fFRL4sr7mjei97FgnwhAyyzRYmQZaTHb2+9uZ1dPtg==", + "dev": true, + "requires": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "~2.3.0", + "parseurl": "~1.3.2", + "statuses": "~1.4.0", + "unpipe": "~1.0.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "flat-cache": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-1.3.4.tgz", + "integrity": "sha512-VwyB3Lkgacfik2vhqR4uv2rvebqmDvFu4jlN/C1RzWoJEo8I7z4Q404oiqYCkq41mni8EzQnm95emU9seckwtg==", + "dev": true, + "requires": { + "circular-json": "^0.3.1", + "graceful-fs": "^4.1.2", + "rimraf": "~2.6.2", + "write": "^0.2.1" + } + }, + "for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", + "dev": true + }, + "for-own": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.5.tgz", + "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", + "dev": true, + "requires": { + "for-in": "^1.0.1" + } + }, + "foreach": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz", + "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k=", + "dev": true + }, + "foreachasync": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/foreachasync/-/foreachasync-3.0.0.tgz", + "integrity": "sha1-VQKYfchxS+M5IJfzLgBxyd7gfPY=", + "dev": true + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", + "dev": true + }, + "form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + } + }, + "forwarded": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", + "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=", + "dev": true + }, + "fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", + "dev": true, + "requires": { + "map-cache": "^0.2.2" + } + }, + "fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", + "dev": true + }, + "from2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", + "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "readable-stream": "^2.0.0" + } + }, + "from2-string": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/from2-string/-/from2-string-1.1.0.tgz", + "integrity": "sha1-GCgrJ9CKJnyzAwzSuLSw8hKvdSo=", + "dev": true, + "requires": { + "from2": "^2.0.3" + } + }, + "fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "fsevents": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.4.tgz", + "integrity": "sha512-z8H8/diyk76B7q5wg+Ud0+CqzcAF3mBBI/bA5ne5zrRUUIvNkJY//D3BqyH571KuAC4Nr7Rw7CjWX4r0y9DvNg==", + "dev": true, + "optional": true, + "requires": { + "nan": "^2.9.2", + "node-pre-gyp": "^0.10.0" + }, + "dependencies": { + "abbrev": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "ansi-regex": { + "version": "2.1.1", + "bundled": true, + "dev": true + }, + "aproba": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true + }, + "are-we-there-yet": { + "version": "1.1.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" + } + }, + "balanced-match": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "bundled": true, + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "chownr": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "code-point-at": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "bundled": true, + "dev": true + }, + "console-control-strings": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "debug": { + "version": "2.6.9", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ms": "2.0.0" + } + }, + "deep-extend": { + "version": "0.5.1", + "bundled": true, + "dev": true, + "optional": true + }, + "delegates": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "detect-libc": { + "version": "1.0.3", + "bundled": true, + "dev": true, + "optional": true + }, + "fs-minipass": { + "version": "1.2.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "minipass": "^2.2.1" + } + }, + "fs.realpath": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "gauge": { + "version": "2.7.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" + } + }, + "glob": { + "version": "7.1.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "has-unicode": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "iconv-lite": { + "version": "0.4.21", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "safer-buffer": "^2.1.0" + } + }, + "ignore-walk": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "minimatch": "^3.0.4" + } + }, + "inflight": { + "version": "1.0.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.3", + "bundled": true, + "dev": true + }, + "ini": { + "version": "1.3.5", + "bundled": true, + "dev": true, + "optional": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "isarray": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "minimatch": { + "version": "3.0.4", + "bundled": true, + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "bundled": true, + "dev": true + }, + "minipass": { + "version": "2.2.4", + "bundled": true, + "dev": true, + "requires": { + "safe-buffer": "^5.1.1", + "yallist": "^3.0.0" + } + }, + "minizlib": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "minipass": "^2.2.1" + } + }, + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "ms": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "needle": { + "version": "2.2.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "debug": "^2.1.2", + "iconv-lite": "^0.4.4", + "sax": "^1.2.4" + } + }, + "node-pre-gyp": { + "version": "0.10.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "detect-libc": "^1.0.2", + "mkdirp": "^0.5.1", + "needle": "^2.2.0", + "nopt": "^4.0.1", + "npm-packlist": "^1.1.6", + "npmlog": "^4.0.2", + "rc": "^1.1.7", + "rimraf": "^2.6.1", + "semver": "^5.3.0", + "tar": "^4" + } + }, + "nopt": { + "version": "4.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "abbrev": "1", + "osenv": "^0.1.4" + } + }, + "npm-bundled": { + "version": "1.0.3", + "bundled": true, + "dev": true, + "optional": true + }, + "npm-packlist": { + "version": "1.1.10", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ignore-walk": "^3.0.1", + "npm-bundled": "^1.0.1" + } + }, + "npmlog": { + "version": "4.1.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "object-assign": { + "version": "4.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "once": { + "version": "1.4.0", + "bundled": true, + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "os-homedir": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "os-tmpdir": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "osenv": { + "version": "0.1.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "process-nextick-args": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "rc": { + "version": "1.2.7", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "deep-extend": "^0.5.1", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "readable-stream": { + "version": "2.3.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "rimraf": { + "version": "2.6.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "glob": "^7.0.5" + } + }, + "safe-buffer": { + "version": "5.1.1", + "bundled": true, + "dev": true + }, + "safer-buffer": { + "version": "2.1.2", + "bundled": true, + "dev": true, + "optional": true + }, + "sax": { + "version": "1.2.4", + "bundled": true, + "dev": true, + "optional": true + }, + "semver": { + "version": "5.5.0", + "bundled": true, + "dev": true, + "optional": true + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "signal-exit": { + "version": "3.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "string-width": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "string_decoder": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "tar": { + "version": "4.4.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "chownr": "^1.0.1", + "fs-minipass": "^1.2.5", + "minipass": "^2.2.4", + "minizlib": "^1.1.0", + "mkdirp": "^0.5.0", + "safe-buffer": "^5.1.1", + "yallist": "^3.0.2" + } + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "wide-align": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "string-width": "^1.0.2" + } + }, + "wrappy": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "yallist": { + "version": "3.0.2", + "bundled": true, + "dev": true + } + } + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", + "dev": true + }, + "get-assigned-identifiers": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz", + "integrity": "sha512-mBBwmeGTrxEMO4pMaaf/uUEFHnYtwr8FTe8Y/mer4rcV/bye0qGm6pw1bGZFGStxC5O76c5ZAVBGnqHmOaJpdQ==", + "dev": true + }, + "get-caller-file": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", + "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", + "dev": true + }, + "get-stdin": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-6.0.0.tgz", + "integrity": "sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g==", + "dev": true + }, + "get-stream": { + "version": "3.0.0", + "resolved": "http://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", + "dev": true + }, + "get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", + "dev": true + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "glob": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "glob-base": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", + "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", + "dev": true, + "requires": { + "glob-parent": "^2.0.0", + "is-glob": "^2.0.0" + }, + "dependencies": { + "glob-parent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", + "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", + "dev": true, + "requires": { + "is-glob": "^2.0.0" + } + }, + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", + "dev": true + }, + "is-glob": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "dev": true, + "requires": { + "is-extglob": "^1.0.0" + } + } + } + }, + "glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", + "dev": true, + "requires": { + "is-glob": "^3.1.0", + "path-dirname": "^1.0.0" + }, + "dependencies": { + "is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", + "dev": true, + "requires": { + "is-extglob": "^2.1.0" + } + } + } + }, + "glob-to-regexp": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz", + "integrity": "sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs=", + "dev": true + }, + "globals": { + "version": "11.9.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.9.0.tgz", + "integrity": "sha512-5cJVtyXWH8PiJPVLZzzoIizXx944O4OmRro5MWKx5fT4MgcN7OfaMutPeaTdJCCURwbWdhhcCWcKIffPnmTzBg==", + "dev": true + }, + "globby": { + "version": "8.0.1", + "resolved": "http://registry.npmjs.org/globby/-/globby-8.0.1.tgz", + "integrity": "sha512-oMrYrJERnKBLXNLVTqhm3vPEdJ/b2ZE28xN4YARiix1NOIOBPEpOUnm844K1iu/BkphCaf2WNFwMszv8Soi1pw==", + "dev": true, + "requires": { + "array-union": "^1.0.1", + "dir-glob": "^2.0.0", + "fast-glob": "^2.0.2", + "glob": "^7.1.2", + "ignore": "^3.3.5", + "pify": "^3.0.0", + "slash": "^1.0.0" + }, + "dependencies": { + "ignore": { + "version": "3.3.10", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.10.tgz", + "integrity": "sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug==", + "dev": true + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + } + } + }, + "good-listener": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/good-listener/-/good-listener-1.2.2.tgz", + "integrity": "sha1-1TswzfkxPf+33JoNR3CWqm0UXFA=", + "dev": true, + "optional": true, + "requires": { + "delegate": "^3.1.2" + } + }, + "graceful-fs": { + "version": "4.1.15", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", + "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", + "dev": true + }, + "growly": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", + "integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=", + "dev": true + }, + "handlebars": { + "version": "4.0.12", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.0.12.tgz", + "integrity": "sha512-RhmTekP+FZL+XNhwS1Wf+bTTZpdLougwt5pcgA1tuz6Jcx0fpH/7z0qd71RKnZHBCxIRBHfBOnio4gViPemNzA==", + "dev": true, + "requires": { + "async": "^2.5.0", + "optimist": "^0.6.1", + "source-map": "^0.6.1", + "uglify-js": "^3.1.4" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", + "dev": true + }, + "har-validator": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", + "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", + "dev": true, + "requires": { + "ajv": "^6.5.5", + "har-schema": "^2.0.0" + } + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + } + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "has-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", + "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", + "dev": true + }, + "has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", + "dev": true, + "requires": { + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" + } + }, + "has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", + "dev": true, + "requires": { + "is-number": "^3.0.0", + "kind-of": "^4.0.0" + }, + "dependencies": { + "kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "hash-base": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", + "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "hash.js": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.5.tgz", + "integrity": "sha512-eWI5HG9Np+eHV1KQhisXWwM+4EPPYe5dFX1UZZH7k/E3JzDEazVH+VGlZi6R94ZqImq+A3D1mCEtrFIfg/E7sA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.1" + } + }, + "hbs": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/hbs/-/hbs-4.0.1.tgz", + "integrity": "sha1-S/2YZQ3IydrESzyprfnAmOi8M7Y=", + "dev": true, + "requires": { + "handlebars": "4.0.5", + "walk": "2.3.9" + }, + "dependencies": { + "async": { + "version": "1.5.2", + "resolved": "http://registry.npmjs.org/async/-/async-1.5.2.tgz", + "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", + "dev": true + }, + "camelcase": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", + "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", + "dev": true, + "optional": true + }, + "cliui": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", + "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", + "dev": true, + "optional": true, + "requires": { + "center-align": "^0.1.1", + "right-align": "^0.1.1", + "wordwrap": "0.0.2" + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true, + "optional": true + }, + "handlebars": { + "version": "4.0.5", + "resolved": "http://registry.npmjs.org/handlebars/-/handlebars-4.0.5.tgz", + "integrity": "sha1-ksbta7FkEQxQ1NjQ+93HCAbG+Oc=", + "dev": true, + "requires": { + "async": "^1.4.0", + "optimist": "^0.6.1", + "source-map": "^0.4.4", + "uglify-js": "^2.6" + } + }, + "source-map": { + "version": "0.4.4", + "resolved": "http://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", + "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", + "dev": true, + "requires": { + "amdefine": ">=0.0.4" + } + }, + "uglify-js": { + "version": "2.8.29", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", + "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", + "dev": true, + "optional": true, + "requires": { + "source-map": "~0.5.1", + "uglify-to-browserify": "~1.0.0", + "yargs": "~3.10.0" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true, + "optional": true + } + } + }, + "wordwrap": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", + "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", + "dev": true, + "optional": true + }, + "yargs": { + "version": "3.10.0", + "resolved": "http://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", + "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", + "dev": true, + "optional": true, + "requires": { + "camelcase": "^1.0.2", + "cliui": "^2.1.0", + "decamelize": "^1.0.0", + "window-size": "0.1.0" + } + } + } + }, + "hbsfy": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/hbsfy/-/hbsfy-2.8.1.tgz", + "integrity": "sha512-NHn+bc1FI+TTZzFkpw+0JetPDzxRGiYBNMb3eSDO9J0rZE/SU6tm9QAc3JT9wblYOQWnGvzPENE+x+xDxlATeQ==", + "dev": true, + "requires": { + "through": "~2.3.4", + "xtend": "~3.0.0" + }, + "dependencies": { + "xtend": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-3.0.0.tgz", + "integrity": "sha1-XM50B7r2Qsunvs2laBEcST9ZZlo=", + "dev": true + } + } + }, + "hmac-drbg": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", + "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", + "dev": true, + "requires": { + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" + } + }, + "home-or-tmp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", + "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", + "dev": true, + "requires": { + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.1" + } + }, + "hosted-git-info": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz", + "integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==", + "dev": true + }, + "html-encoding-sniffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz", + "integrity": "sha512-71lZziiDnsuabfdYiUeWdCVyKuqwWi23L8YeIgV9jSSZHCtb6wB1BKWooH7L3tn4/FuZJMVWyNaIDr4RGmaSYw==", + "dev": true, + "requires": { + "whatwg-encoding": "^1.0.1" + } + }, + "htmlescape": { + "version": "1.1.1", + "resolved": "http://registry.npmjs.org/htmlescape/-/htmlescape-1.1.1.tgz", + "integrity": "sha1-OgPtwiFLyjtmQko+eVk0lQnLA1E=", + "dev": true + }, + "http-errors": { + "version": "1.6.3", + "resolved": "http://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", + "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", + "dev": true, + "requires": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": ">= 1.4.0 < 2" + } + }, + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "https-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", + "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", + "dev": true + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "ieee754": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.12.tgz", + "integrity": "sha512-GguP+DRY+pJ3soyIiGPTvdiVXjZ+DbXOxGpXn3eMvNW4x4irjqXm4wHKscC+TfxSJ0yw/S1F24tqdMNsMZTiLA==", + "dev": true + }, + "ignore": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "dev": true + }, + "import-cwd": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/import-cwd/-/import-cwd-2.1.0.tgz", + "integrity": "sha1-qmzzbnInYShcs3HsZRn1PiQ1sKk=", + "dev": true, + "requires": { + "import-from": "^2.1.0" + } + }, + "import-from": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/import-from/-/import-from-2.1.0.tgz", + "integrity": "sha1-M1238qev/VOqpHHUuAId7ja387E=", + "dev": true, + "requires": { + "resolve-from": "^3.0.0" + }, + "dependencies": { + "resolve-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", + "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", + "dev": true + } + } + }, + "import-local": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-1.0.0.tgz", + "integrity": "sha512-vAaZHieK9qjGo58agRBg+bhHX3hoTZU/Oa3GESWLz7t1U62fk63aHuDJJEteXoDeTCcPmUT+z38gkHPZkkmpmQ==", + "dev": true, + "requires": { + "pkg-dir": "^2.0.0", + "resolve-cwd": "^2.0.0" + } + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "dev": true + }, + "indent-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", + "dev": true + }, + "indexof": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz", + "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + }, + "inline-source-map": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.6.2.tgz", + "integrity": "sha1-+Tk0ccGKedFyT4Y/o4tYY3Ct4qU=", + "dev": true, + "requires": { + "source-map": "~0.5.3" + } + }, + "inquirer": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-6.2.0.tgz", + "integrity": "sha512-QIEQG4YyQ2UYZGDC4srMZ7BjHOmNk1lR2JQj5UknBapklm6WHA+VVH7N+sUdX3A7NeCfGF8o4X1S3Ao7nAcIeg==", + "dev": true, + "requires": { + "ansi-escapes": "^3.0.0", + "chalk": "^2.0.0", + "cli-cursor": "^2.1.0", + "cli-width": "^2.0.0", + "external-editor": "^3.0.0", + "figures": "^2.0.0", + "lodash": "^4.17.10", + "mute-stream": "0.0.7", + "run-async": "^2.2.0", + "rxjs": "^6.1.0", + "string-width": "^2.1.0", + "strip-ansi": "^4.0.0", + "through": "^2.3.6" + } + }, + "insert-module-globals": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/insert-module-globals/-/insert-module-globals-7.2.0.tgz", + "integrity": "sha512-VE6NlW+WGn2/AeOMd496AHFYmE7eLKkUY6Ty31k4og5vmA3Fjuwe9v6ifH6Xx/Hz27QvdoMoviw1/pqWRB09Sw==", + "dev": true, + "requires": { + "JSONStream": "^1.0.3", + "acorn-node": "^1.5.2", + "combine-source-map": "^0.8.0", + "concat-stream": "^1.6.1", + "is-buffer": "^1.1.0", + "path-is-absolute": "^1.0.1", + "process": "~0.11.0", + "through2": "^2.0.0", + "undeclared-identifiers": "^1.1.2", + "xtend": "^4.0.0" + }, + "dependencies": { + "concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + } + } + }, + "invariant": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "dev": true, + "requires": { + "loose-envify": "^1.0.0" + } + }, + "invert-kv": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", + "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", + "dev": true + }, + "ipaddr.js": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.8.0.tgz", + "integrity": "sha1-6qM9bd16zo9/b+DJygRA5wZzix4=", + "dev": true + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "dev": true + }, + "is-binary-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", + "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", + "dev": true, + "requires": { + "binary-extensions": "^1.0.0" + } + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "is-builtin-module": { + "version": "1.0.0", + "resolved": "http://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", + "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", + "dev": true, + "requires": { + "builtin-modules": "^1.0.0" + } + }, + "is-callable": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", + "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", + "dev": true + }, + "is-ci": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-1.2.1.tgz", + "integrity": "sha512-s6tfsaQaQi3JNciBH6shVqEDvhGut0SUXr31ag8Pd8BBbVVlcGfWhpPmEOoM6RJ5TFhbypvf5yyRw/VXW1IiWg==", + "dev": true, + "requires": { + "ci-info": "^1.5.0" + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-date-object": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", + "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", + "dev": true + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "is-directory": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz", + "integrity": "sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=", + "dev": true + }, + "is-dotfile": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz", + "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=", + "dev": true + }, + "is-equal-shallow": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz", + "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", + "dev": true, + "requires": { + "is-primitive": "^2.0.0" + } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true + }, + "is-finite": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", + "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "is-generator-fn": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-1.0.0.tgz", + "integrity": "sha1-lp1J4bszKfa7fwkIm+JleLLd1Go=", + "dev": true + }, + "is-glob": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.0.tgz", + "integrity": "sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A=", + "dev": true, + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", + "dev": true + }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "is-posix-bracket": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz", + "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", + "dev": true + }, + "is-primitive": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz", + "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", + "dev": true + }, + "is-promise": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", + "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", + "dev": true + }, + "is-regex": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", + "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", + "dev": true, + "requires": { + "has": "^1.0.1" + } + }, + "is-resolvable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz", + "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==", + "dev": true + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "dev": true + }, + "is-symbol": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", + "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", + "dev": true, + "requires": { + "has-symbols": "^1.0.0" + } + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "dev": true + }, + "is-utf8": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", + "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", + "dev": true + }, + "is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "dev": true + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", + "dev": true + }, + "istanbul-api": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/istanbul-api/-/istanbul-api-1.3.7.tgz", + "integrity": "sha512-4/ApBnMVeEPG3EkSzcw25wDe4N66wxwn+KKn6b47vyek8Xb3NBAcg4xfuQbS7BqcZuTX4wxfD5lVagdggR3gyA==", + "dev": true, + "requires": { + "async": "^2.1.4", + "fileset": "^2.0.2", + "istanbul-lib-coverage": "^1.2.1", + "istanbul-lib-hook": "^1.2.2", + "istanbul-lib-instrument": "^1.10.2", + "istanbul-lib-report": "^1.1.5", + "istanbul-lib-source-maps": "^1.2.6", + "istanbul-reports": "^1.5.1", + "js-yaml": "^3.7.0", + "mkdirp": "^0.5.1", + "once": "^1.4.0" + }, + "dependencies": { + "async": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.1.tgz", + "integrity": "sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ==", + "dev": true, + "requires": { + "lodash": "^4.17.10" + } + } + } + }, + "istanbul-lib-coverage": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-1.2.1.tgz", + "integrity": "sha512-PzITeunAgyGbtY1ibVIUiV679EFChHjoMNRibEIobvmrCRaIgwLxNucOSimtNWUhEib/oO7QY2imD75JVgCJWQ==", + "dev": true + }, + "istanbul-lib-hook": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-1.2.2.tgz", + "integrity": "sha512-/Jmq7Y1VeHnZEQ3TL10VHyb564mn6VrQXHchON9Jf/AEcmQ3ZIiyD1BVzNOKTZf/G3gE+kiGK6SmpF9y3qGPLw==", + "dev": true, + "requires": { + "append-transform": "^0.4.0" + } + }, + "istanbul-lib-instrument": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-1.10.2.tgz", + "integrity": "sha512-aWHxfxDqvh/ZlxR8BBaEPVSWDPUkGD63VjGQn3jcw8jCp7sHEMKcrj4xfJn/ABzdMEHiQNyvDQhqm5o8+SQg7A==", + "dev": true, + "requires": { + "babel-generator": "^6.18.0", + "babel-template": "^6.16.0", + "babel-traverse": "^6.18.0", + "babel-types": "^6.18.0", + "babylon": "^6.18.0", + "istanbul-lib-coverage": "^1.2.1", + "semver": "^5.3.0" + } + }, + "istanbul-lib-report": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-1.1.5.tgz", + "integrity": "sha512-UsYfRMoi6QO/doUshYNqcKJqVmFe9w51GZz8BS3WB0lYxAllQYklka2wP9+dGZeHYaWIdcXUx8JGdbqaoXRXzw==", + "dev": true, + "requires": { + "istanbul-lib-coverage": "^1.2.1", + "mkdirp": "^0.5.1", + "path-parse": "^1.0.5", + "supports-color": "^3.1.2" + }, + "dependencies": { + "has-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", + "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", + "dev": true + }, + "supports-color": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", + "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", + "dev": true, + "requires": { + "has-flag": "^1.0.0" + } + } + } + }, + "istanbul-lib-source-maps": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.6.tgz", + "integrity": "sha512-TtbsY5GIHgbMsMiRw35YBHGpZ1DVFEO19vxxeiDMYaeOFOCzfnYVxvl6pOUIZR4dtPhAGpSMup8OyF8ubsaqEg==", + "dev": true, + "requires": { + "debug": "^3.1.0", + "istanbul-lib-coverage": "^1.2.1", + "mkdirp": "^0.5.1", + "rimraf": "^2.6.1", + "source-map": "^0.5.3" + }, + "dependencies": { + "debug": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "istanbul-reports": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-1.5.1.tgz", + "integrity": "sha512-+cfoZ0UXzWjhAdzosCPP3AN8vvef8XDkWtTfgaN+7L3YTpNYITnCaEkceo5SEYy644VkHka/P1FvkWvrG/rrJw==", + "dev": true, + "requires": { + "handlebars": "^4.0.3" + } + }, + "jest": { + "version": "23.6.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-23.6.0.tgz", + "integrity": "sha512-lWzcd+HSiqeuxyhG+EnZds6iO3Y3ZEnMrfZq/OTGvF/C+Z4fPMCdhWTGSAiO2Oym9rbEXfwddHhh6jqrTF3+Lw==", + "dev": true, + "requires": { + "import-local": "^1.0.0", + "jest-cli": "^23.6.0" + }, + "dependencies": { + "arr-diff": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", + "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", + "dev": true, + "requires": { + "arr-flatten": "^1.0.1" + } + }, + "array-unique": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", + "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", + "dev": true + }, + "braces": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", + "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", + "dev": true, + "requires": { + "expand-range": "^1.8.1", + "preserve": "^0.2.0", + "repeat-element": "^1.1.2" + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true + }, + "expand-brackets": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", + "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", + "dev": true, + "requires": { + "is-posix-bracket": "^0.1.0" + } + }, + "extglob": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", + "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", + "dev": true, + "requires": { + "is-extglob": "^1.0.0" + } + }, + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "^2.0.0" + } + }, + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", + "dev": true + }, + "is-glob": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "dev": true, + "requires": { + "is-extglob": "^1.0.0" + } + }, + "jest-cli": { + "version": "23.6.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-23.6.0.tgz", + "integrity": "sha512-hgeD1zRUp1E1zsiyOXjEn4LzRLWdJBV//ukAHGlx6s5mfCNJTbhbHjgxnDUXA8fsKWN/HqFFF6X5XcCwC/IvYQ==", + "dev": true, + "requires": { + "ansi-escapes": "^3.0.0", + "chalk": "^2.0.1", + "exit": "^0.1.2", + "glob": "^7.1.2", + "graceful-fs": "^4.1.11", + "import-local": "^1.0.0", + "is-ci": "^1.0.10", + "istanbul-api": "^1.3.1", + "istanbul-lib-coverage": "^1.2.0", + "istanbul-lib-instrument": "^1.10.1", + "istanbul-lib-source-maps": "^1.2.4", + "jest-changed-files": "^23.4.2", + "jest-config": "^23.6.0", + "jest-environment-jsdom": "^23.4.0", + "jest-get-type": "^22.1.0", + "jest-haste-map": "^23.6.0", + "jest-message-util": "^23.4.0", + "jest-regex-util": "^23.3.0", + "jest-resolve-dependencies": "^23.6.0", + "jest-runner": "^23.6.0", + "jest-runtime": "^23.6.0", + "jest-snapshot": "^23.6.0", + "jest-util": "^23.4.0", + "jest-validate": "^23.6.0", + "jest-watcher": "^23.4.0", + "jest-worker": "^23.2.0", + "micromatch": "^2.3.11", + "node-notifier": "^5.2.1", + "prompts": "^0.1.9", + "realpath-native": "^1.0.0", + "rimraf": "^2.5.4", + "slash": "^1.0.0", + "string-length": "^2.0.0", + "strip-ansi": "^4.0.0", + "which": "^1.2.12", + "yargs": "^11.0.0" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "requires": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + } + }, + "micromatch": { + "version": "2.3.11", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", + "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", + "dev": true, + "requires": { + "arr-diff": "^2.0.0", + "array-unique": "^0.2.1", + "braces": "^1.8.2", + "expand-brackets": "^0.1.4", + "extglob": "^0.3.1", + "filename-regex": "^2.0.0", + "is-extglob": "^1.0.0", + "is-glob": "^2.0.1", + "kind-of": "^3.0.2", + "normalize-path": "^2.0.1", + "object.omit": "^2.0.0", + "parse-glob": "^3.0.4", + "regex-cache": "^0.4.2" + } + }, + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "requires": { + "p-try": "^1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "requires": { + "p-limit": "^1.1.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true + }, + "y18n": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", + "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", + "dev": true + }, + "yargs": { + "version": "11.1.0", + "resolved": "http://registry.npmjs.org/yargs/-/yargs-11.1.0.tgz", + "integrity": "sha512-NwW69J42EsCSanF8kyn5upxvjp5ds+t3+udGBeTbFnERA+lF541DDpMawzo4z6W/QrzNM18D+BPMiOBibnFV5A==", + "dev": true, + "requires": { + "cliui": "^4.0.0", + "decamelize": "^1.1.1", + "find-up": "^2.1.0", + "get-caller-file": "^1.0.1", + "os-locale": "^2.0.0", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^2.0.0", + "which-module": "^2.0.0", + "y18n": "^3.2.1", + "yargs-parser": "^9.0.2" + } + }, + "yargs-parser": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-9.0.2.tgz", + "integrity": "sha1-nM9qQ0YP5O1Aqbto9I1DuKaMwHc=", + "dev": true, + "requires": { + "camelcase": "^4.1.0" + } + } + } + }, + "jest-changed-files": { + "version": "23.4.2", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-23.4.2.tgz", + "integrity": "sha512-EyNhTAUWEfwnK0Is/09LxoqNDOn7mU7S3EHskG52djOFS/z+IT0jT3h3Ql61+dklcG7bJJitIWEMB4Sp1piHmA==", + "dev": true, + "requires": { + "throat": "^4.0.0" + } + }, + "jest-config": { + "version": "23.6.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-23.6.0.tgz", + "integrity": "sha512-i8V7z9BeDXab1+VNo78WM0AtWpBRXJLnkT+lyT+Slx/cbP5sZJ0+NDuLcmBE5hXAoK0aUp7vI+MOxR+R4d8SRQ==", + "dev": true, + "requires": { + "babel-core": "^6.0.0", + "babel-jest": "^23.6.0", + "chalk": "^2.0.1", + "glob": "^7.1.1", + "jest-environment-jsdom": "^23.4.0", + "jest-environment-node": "^23.4.0", + "jest-get-type": "^22.1.0", + "jest-jasmine2": "^23.6.0", + "jest-regex-util": "^23.3.0", + "jest-resolve": "^23.6.0", + "jest-util": "^23.4.0", + "jest-validate": "^23.6.0", + "micromatch": "^2.3.11", + "pretty-format": "^23.6.0" + }, + "dependencies": { + "arr-diff": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", + "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", + "dev": true, + "requires": { + "arr-flatten": "^1.0.1" + } + }, + "array-unique": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", + "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", + "dev": true + }, + "babel-core": { + "version": "6.26.3", + "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", + "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", + "dev": true, + "requires": { + "babel-code-frame": "^6.26.0", + "babel-generator": "^6.26.0", + "babel-helpers": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-register": "^6.26.0", + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "convert-source-map": "^1.5.1", + "debug": "^2.6.9", + "json5": "^0.5.1", + "lodash": "^4.17.4", + "minimatch": "^3.0.4", + "path-is-absolute": "^1.0.1", + "private": "^0.1.8", + "slash": "^1.0.0", + "source-map": "^0.5.7" + } + }, + "braces": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", + "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", + "dev": true, + "requires": { + "expand-range": "^1.8.1", + "preserve": "^0.2.0", + "repeat-element": "^1.1.2" + } + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "expand-brackets": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", + "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", + "dev": true, + "requires": { + "is-posix-bracket": "^0.1.0" + } + }, + "extglob": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", + "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", + "dev": true, + "requires": { + "is-extglob": "^1.0.0" + } + }, + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", + "dev": true + }, + "is-glob": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "dev": true, + "requires": { + "is-extglob": "^1.0.0" + } + }, + "json5": { + "version": "0.5.1", + "resolved": "http://registry.npmjs.org/json5/-/json5-0.5.1.tgz", + "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", + "dev": true + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + }, + "micromatch": { + "version": "2.3.11", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", + "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", + "dev": true, + "requires": { + "arr-diff": "^2.0.0", + "array-unique": "^0.2.1", + "braces": "^1.8.2", + "expand-brackets": "^0.1.4", + "extglob": "^0.3.1", + "filename-regex": "^2.0.0", + "is-extglob": "^1.0.0", + "is-glob": "^2.0.1", + "kind-of": "^3.0.2", + "normalize-path": "^2.0.1", + "object.omit": "^2.0.0", + "parse-glob": "^3.0.4", + "regex-cache": "^0.4.2" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "jest-diff": { + "version": "23.6.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-23.6.0.tgz", + "integrity": "sha512-Gz9l5Ov+X3aL5L37IT+8hoCUsof1CVYBb2QEkOupK64XyRR3h+uRpYIm97K7sY8diFxowR8pIGEdyfMKTixo3g==", + "dev": true, + "requires": { + "chalk": "^2.0.1", + "diff": "^3.2.0", + "jest-get-type": "^22.1.0", + "pretty-format": "^23.6.0" + } + }, + "jest-docblock": { + "version": "23.2.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-23.2.0.tgz", + "integrity": "sha1-8IXh8YVI2Z/dabICB+b9VdkTg6c=", + "dev": true, + "requires": { + "detect-newline": "^2.1.0" + } + }, + "jest-each": { + "version": "23.6.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-23.6.0.tgz", + "integrity": "sha512-x7V6M/WGJo6/kLoissORuvLIeAoyo2YqLOoCDkohgJ4XOXSqOtyvr8FbInlAWS77ojBsZrafbozWoKVRdtxFCg==", + "dev": true, + "requires": { + "chalk": "^2.0.1", + "pretty-format": "^23.6.0" + } + }, + "jest-environment-jsdom": { + "version": "23.4.0", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-23.4.0.tgz", + "integrity": "sha1-BWp5UrP+pROsYqFAosNox52eYCM=", + "dev": true, + "requires": { + "jest-mock": "^23.2.0", + "jest-util": "^23.4.0", + "jsdom": "^11.5.1" + } + }, + "jest-environment-node": { + "version": "23.4.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-23.4.0.tgz", + "integrity": "sha1-V+gO0IQd6jAxZ8zozXlSHeuv3hA=", + "dev": true, + "requires": { + "jest-mock": "^23.2.0", + "jest-util": "^23.4.0" + } + }, + "jest-get-type": { + "version": "22.4.3", + "resolved": "http://registry.npmjs.org/jest-get-type/-/jest-get-type-22.4.3.tgz", + "integrity": "sha512-/jsz0Y+V29w1chdXVygEKSz2nBoHoYqNShPe+QgxSNjAuP1i8+k4LbQNrfoliKej0P45sivkSCh7yiD6ubHS3w==", + "dev": true + }, + "jest-haste-map": { + "version": "23.6.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-23.6.0.tgz", + "integrity": "sha512-uyNhMyl6dr6HaXGHp8VF7cK6KpC6G9z9LiMNsst+rJIZ8l7wY0tk8qwjPmEghczojZ2/ZhtEdIabZ0OQRJSGGg==", + "dev": true, + "requires": { + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.1.11", + "invariant": "^2.2.4", + "jest-docblock": "^23.2.0", + "jest-serializer": "^23.0.1", + "jest-worker": "^23.2.0", + "micromatch": "^2.3.11", + "sane": "^2.0.0" + }, + "dependencies": { + "arr-diff": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", + "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", + "dev": true, + "requires": { + "arr-flatten": "^1.0.1" + } + }, + "array-unique": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", + "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", + "dev": true + }, + "braces": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", + "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", + "dev": true, + "requires": { + "expand-range": "^1.8.1", + "preserve": "^0.2.0", + "repeat-element": "^1.1.2" + } + }, + "expand-brackets": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", + "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", + "dev": true, + "requires": { + "is-posix-bracket": "^0.1.0" + } + }, + "extglob": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", + "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", + "dev": true, + "requires": { + "is-extglob": "^1.0.0" + } + }, + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", + "dev": true + }, + "is-glob": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "dev": true, + "requires": { + "is-extglob": "^1.0.0" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + }, + "micromatch": { + "version": "2.3.11", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", + "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", + "dev": true, + "requires": { + "arr-diff": "^2.0.0", + "array-unique": "^0.2.1", + "braces": "^1.8.2", + "expand-brackets": "^0.1.4", + "extglob": "^0.3.1", + "filename-regex": "^2.0.0", + "is-extglob": "^1.0.0", + "is-glob": "^2.0.1", + "kind-of": "^3.0.2", + "normalize-path": "^2.0.1", + "object.omit": "^2.0.0", + "parse-glob": "^3.0.4", + "regex-cache": "^0.4.2" + } + } + } + }, + "jest-jasmine2": { + "version": "23.6.0", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-23.6.0.tgz", + "integrity": "sha512-pe2Ytgs1nyCs8IvsEJRiRTPC0eVYd8L/dXJGU08GFuBwZ4sYH/lmFDdOL3ZmvJR8QKqV9MFuwlsAi/EWkFUbsQ==", + "dev": true, + "requires": { + "babel-traverse": "^6.0.0", + "chalk": "^2.0.1", + "co": "^4.6.0", + "expect": "^23.6.0", + "is-generator-fn": "^1.0.0", + "jest-diff": "^23.6.0", + "jest-each": "^23.6.0", + "jest-matcher-utils": "^23.6.0", + "jest-message-util": "^23.4.0", + "jest-snapshot": "^23.6.0", + "jest-util": "^23.4.0", + "pretty-format": "^23.6.0" + } + }, + "jest-leak-detector": { + "version": "23.6.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-23.6.0.tgz", + "integrity": "sha512-f/8zA04rsl1Nzj10HIyEsXvYlMpMPcy0QkQilVZDFOaPbv2ur71X5u2+C4ZQJGyV/xvVXtCCZ3wQ99IgQxftCg==", + "dev": true, + "requires": { + "pretty-format": "^23.6.0" + } + }, + "jest-matcher-utils": { + "version": "23.6.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-23.6.0.tgz", + "integrity": "sha512-rosyCHQfBcol4NsckTn01cdelzWLU9Cq7aaigDf8VwwpIRvWE/9zLgX2bON+FkEW69/0UuYslUe22SOdEf2nog==", + "dev": true, + "requires": { + "chalk": "^2.0.1", + "jest-get-type": "^22.1.0", + "pretty-format": "^23.6.0" + } + }, + "jest-message-util": { + "version": "23.4.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-23.4.0.tgz", + "integrity": "sha1-F2EMUJQjSVCNAaPR4L2iwHkIap8=", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0-beta.35", + "chalk": "^2.0.1", + "micromatch": "^2.3.11", + "slash": "^1.0.0", + "stack-utils": "^1.0.1" + }, + "dependencies": { + "arr-diff": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", + "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", + "dev": true, + "requires": { + "arr-flatten": "^1.0.1" + } + }, + "array-unique": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", + "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", + "dev": true + }, + "braces": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", + "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", + "dev": true, + "requires": { + "expand-range": "^1.8.1", + "preserve": "^0.2.0", + "repeat-element": "^1.1.2" + } + }, + "expand-brackets": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", + "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", + "dev": true, + "requires": { + "is-posix-bracket": "^0.1.0" + } + }, + "extglob": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", + "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", + "dev": true, + "requires": { + "is-extglob": "^1.0.0" + } + }, + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", + "dev": true + }, + "is-glob": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "dev": true, + "requires": { + "is-extglob": "^1.0.0" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + }, + "micromatch": { + "version": "2.3.11", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", + "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", + "dev": true, + "requires": { + "arr-diff": "^2.0.0", + "array-unique": "^0.2.1", + "braces": "^1.8.2", + "expand-brackets": "^0.1.4", + "extglob": "^0.3.1", + "filename-regex": "^2.0.0", + "is-extglob": "^1.0.0", + "is-glob": "^2.0.1", + "kind-of": "^3.0.2", + "normalize-path": "^2.0.1", + "object.omit": "^2.0.0", + "parse-glob": "^3.0.4", + "regex-cache": "^0.4.2" + } + } + } + }, + "jest-mock": { + "version": "23.2.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-23.2.0.tgz", + "integrity": "sha1-rRxg8p6HGdR8JuETgJi20YsmETQ=", + "dev": true + }, + "jest-regex-util": { + "version": "23.3.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-23.3.0.tgz", + "integrity": "sha1-X4ZylUfCeFxAAs6qj4Sf6MpHG8U=", + "dev": true + }, + "jest-resolve": { + "version": "23.6.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-23.6.0.tgz", + "integrity": "sha512-XyoRxNtO7YGpQDmtQCmZjum1MljDqUCob7XlZ6jy9gsMugHdN2hY4+Acz9Qvjz2mSsOnPSH7skBmDYCHXVZqkA==", + "dev": true, + "requires": { + "browser-resolve": "^1.11.3", + "chalk": "^2.0.1", + "realpath-native": "^1.0.0" + } + }, + "jest-resolve-dependencies": { + "version": "23.6.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-23.6.0.tgz", + "integrity": "sha512-EkQWkFWjGKwRtRyIwRwI6rtPAEyPWlUC2MpzHissYnzJeHcyCn1Hc8j7Nn1xUVrS5C6W5+ZL37XTem4D4pLZdA==", + "dev": true, + "requires": { + "jest-regex-util": "^23.3.0", + "jest-snapshot": "^23.6.0" + } + }, + "jest-runner": { + "version": "23.6.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-23.6.0.tgz", + "integrity": "sha512-kw0+uj710dzSJKU6ygri851CObtCD9cN8aNkg8jWJf4ewFyEa6kwmiH/r/M1Ec5IL/6VFa0wnAk6w+gzUtjJzA==", + "dev": true, + "requires": { + "exit": "^0.1.2", + "graceful-fs": "^4.1.11", + "jest-config": "^23.6.0", + "jest-docblock": "^23.2.0", + "jest-haste-map": "^23.6.0", + "jest-jasmine2": "^23.6.0", + "jest-leak-detector": "^23.6.0", + "jest-message-util": "^23.4.0", + "jest-runtime": "^23.6.0", + "jest-util": "^23.4.0", + "jest-worker": "^23.2.0", + "source-map-support": "^0.5.6", + "throat": "^4.0.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-support": { + "version": "0.5.9", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.9.tgz", + "integrity": "sha512-gR6Rw4MvUlYy83vP0vxoVNzM6t8MUXqNuRsuBmBHQDu1Fh6X015FrLdgoDKcNdkwGubozq0P4N0Q37UyFVr1EA==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + } + } + }, + "jest-runtime": { + "version": "23.6.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-23.6.0.tgz", + "integrity": "sha512-ycnLTNPT2Gv+TRhnAYAQ0B3SryEXhhRj1kA6hBPSeZaNQkJ7GbZsxOLUkwg6YmvWGdX3BB3PYKFLDQCAE1zNOw==", + "dev": true, + "requires": { + "babel-core": "^6.0.0", + "babel-plugin-istanbul": "^4.1.6", + "chalk": "^2.0.1", + "convert-source-map": "^1.4.0", + "exit": "^0.1.2", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.1.11", + "jest-config": "^23.6.0", + "jest-haste-map": "^23.6.0", + "jest-message-util": "^23.4.0", + "jest-regex-util": "^23.3.0", + "jest-resolve": "^23.6.0", + "jest-snapshot": "^23.6.0", + "jest-util": "^23.4.0", + "jest-validate": "^23.6.0", + "micromatch": "^2.3.11", + "realpath-native": "^1.0.0", + "slash": "^1.0.0", + "strip-bom": "3.0.0", + "write-file-atomic": "^2.1.0", + "yargs": "^11.0.0" + }, + "dependencies": { + "arr-diff": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", + "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", + "dev": true, + "requires": { + "arr-flatten": "^1.0.1" + } + }, + "array-unique": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", + "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", + "dev": true + }, + "babel-core": { + "version": "6.26.3", + "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", + "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", + "dev": true, + "requires": { + "babel-code-frame": "^6.26.0", + "babel-generator": "^6.26.0", + "babel-helpers": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-register": "^6.26.0", + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "convert-source-map": "^1.5.1", + "debug": "^2.6.9", + "json5": "^0.5.1", + "lodash": "^4.17.4", + "minimatch": "^3.0.4", + "path-is-absolute": "^1.0.1", + "private": "^0.1.8", + "slash": "^1.0.0", + "source-map": "^0.5.7" + } + }, + "braces": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", + "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", + "dev": true, + "requires": { + "expand-range": "^1.8.1", + "preserve": "^0.2.0", + "repeat-element": "^1.1.2" + } + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true + }, + "expand-brackets": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", + "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", + "dev": true, + "requires": { + "is-posix-bracket": "^0.1.0" + } + }, + "extglob": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", + "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", + "dev": true, + "requires": { + "is-extglob": "^1.0.0" + } + }, + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "^2.0.0" + } + }, + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", + "dev": true + }, + "is-glob": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "dev": true, + "requires": { + "is-extglob": "^1.0.0" + } + }, + "json5": { + "version": "0.5.1", + "resolved": "http://registry.npmjs.org/json5/-/json5-0.5.1.tgz", + "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", + "dev": true + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "requires": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + } + }, + "micromatch": { + "version": "2.3.11", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", + "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", + "dev": true, + "requires": { + "arr-diff": "^2.0.0", + "array-unique": "^0.2.1", + "braces": "^1.8.2", + "expand-brackets": "^0.1.4", + "extglob": "^0.3.1", + "filename-regex": "^2.0.0", + "is-extglob": "^1.0.0", + "is-glob": "^2.0.1", + "kind-of": "^3.0.2", + "normalize-path": "^2.0.1", + "object.omit": "^2.0.0", + "parse-glob": "^3.0.4", + "regex-cache": "^0.4.2" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "requires": { + "p-try": "^1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "requires": { + "p-limit": "^1.1.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + }, + "y18n": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", + "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", + "dev": true + }, + "yargs": { + "version": "11.1.0", + "resolved": "http://registry.npmjs.org/yargs/-/yargs-11.1.0.tgz", + "integrity": "sha512-NwW69J42EsCSanF8kyn5upxvjp5ds+t3+udGBeTbFnERA+lF541DDpMawzo4z6W/QrzNM18D+BPMiOBibnFV5A==", + "dev": true, + "requires": { + "cliui": "^4.0.0", + "decamelize": "^1.1.1", + "find-up": "^2.1.0", + "get-caller-file": "^1.0.1", + "os-locale": "^2.0.0", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^2.0.0", + "which-module": "^2.0.0", + "y18n": "^3.2.1", + "yargs-parser": "^9.0.2" + } + }, + "yargs-parser": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-9.0.2.tgz", + "integrity": "sha1-nM9qQ0YP5O1Aqbto9I1DuKaMwHc=", + "dev": true, + "requires": { + "camelcase": "^4.1.0" + } + } + } + }, + "jest-serializer": { + "version": "23.0.1", + "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-23.0.1.tgz", + "integrity": "sha1-o3dq6zEekP6D+rnlM+hRAr0WQWU=", + "dev": true + }, + "jest-snapshot": { + "version": "23.6.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-23.6.0.tgz", + "integrity": "sha512-tM7/Bprftun6Cvj2Awh/ikS7zV3pVwjRYU2qNYS51VZHgaAMBs5l4o/69AiDHhQrj5+LA2Lq4VIvK7zYk/bswg==", + "dev": true, + "requires": { + "babel-types": "^6.0.0", + "chalk": "^2.0.1", + "jest-diff": "^23.6.0", + "jest-matcher-utils": "^23.6.0", + "jest-message-util": "^23.4.0", + "jest-resolve": "^23.6.0", + "mkdirp": "^0.5.1", + "natural-compare": "^1.4.0", + "pretty-format": "^23.6.0", + "semver": "^5.5.0" + } + }, + "jest-util": { + "version": "23.4.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-23.4.0.tgz", + "integrity": "sha1-TQY8uSe68KI4Mf9hvsLLv0l5NWE=", + "dev": true, + "requires": { + "callsites": "^2.0.0", + "chalk": "^2.0.1", + "graceful-fs": "^4.1.11", + "is-ci": "^1.0.10", + "jest-message-util": "^23.4.0", + "mkdirp": "^0.5.1", + "slash": "^1.0.0", + "source-map": "^0.6.0" + }, + "dependencies": { + "callsites": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz", + "integrity": "sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA=", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "jest-validate": { + "version": "23.6.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-23.6.0.tgz", + "integrity": "sha512-OFKapYxe72yz7agrDAWi8v2WL8GIfVqcbKRCLbRG9PAxtzF9b1SEDdTpytNDN12z2fJynoBwpMpvj2R39plI2A==", + "dev": true, + "requires": { + "chalk": "^2.0.1", + "jest-get-type": "^22.1.0", + "leven": "^2.1.0", + "pretty-format": "^23.6.0" + } + }, + "jest-watcher": { + "version": "23.4.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-23.4.0.tgz", + "integrity": "sha1-0uKM50+NrWxq/JIrksq+9u0FyRw=", + "dev": true, + "requires": { + "ansi-escapes": "^3.0.0", + "chalk": "^2.0.1", + "string-length": "^2.0.0" + } + }, + "jest-worker": { + "version": "23.2.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-23.2.0.tgz", + "integrity": "sha1-+vcGqNo2+uYOsmlXJX+ntdjqArk=", + "dev": true, + "requires": { + "merge-stream": "^1.0.1" + } + }, + "jquery": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.3.1.tgz", + "integrity": "sha512-Ubldcmxp5np52/ENotGxlLe6aGMvmF4R8S6tZjsP6Knsaxd/xp3Zrh50cG93lR6nPXyUFwzN3ZSOQI0wRJNdGg==" + }, + "js-levenshtein": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/js-levenshtein/-/js-levenshtein-1.1.4.tgz", + "integrity": "sha512-PxfGzSs0ztShKrUYPIn5r0MtyAhYcCwmndozzpz8YObbPnD1jFxzlBGbRnX2mIu6Z13xN6+PTu05TQFnZFlzow==", + "dev": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz", + "integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==", + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "js2xmlparser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-3.0.0.tgz", + "integrity": "sha1-P7YOqgicVED5MZ9RdgzNB+JJlzM=", + "dev": true, + "requires": { + "xmlcreate": "^1.0.1" + } + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "dev": true + }, + "jsdoc": { + "version": "3.5.5", + "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-3.5.5.tgz", + "integrity": "sha512-6PxB65TAU4WO0Wzyr/4/YhlGovXl0EVYfpKbpSroSj0qBxT4/xod/l40Opkm38dRHRdQgdeY836M0uVnJQG7kg==", + "dev": true, + "requires": { + "babylon": "7.0.0-beta.19", + "bluebird": "~3.5.0", + "catharsis": "~0.8.9", + "escape-string-regexp": "~1.0.5", + "js2xmlparser": "~3.0.0", + "klaw": "~2.0.0", + "marked": "~0.3.6", + "mkdirp": "~0.5.1", + "requizzle": "~0.2.1", + "strip-json-comments": "~2.0.1", + "taffydb": "2.6.2", + "underscore": "~1.8.3" + }, + "dependencies": { + "babylon": { + "version": "7.0.0-beta.19", + "resolved": "https://registry.npmjs.org/babylon/-/babylon-7.0.0-beta.19.tgz", + "integrity": "sha512-Vg0C9s/REX6/WIXN37UKpv5ZhRi6A4pjHlpkE34+8/a6c2W1Q692n3hmc+SZG5lKRnaExLUbxtJ1SVT+KaCQ/A==", + "dev": true + } + } + }, + "jsdom": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-11.12.0.tgz", + "integrity": "sha512-y8Px43oyiBM13Zc1z780FrfNLJCXTL40EWlty/LXUtcjykRBNgLlCjWXpfSPBl2iv+N7koQN+dvqszHZgT/Fjw==", + "dev": true, + "requires": { + "abab": "^2.0.0", + "acorn": "^5.5.3", + "acorn-globals": "^4.1.0", + "array-equal": "^1.0.0", + "cssom": ">= 0.3.2 < 0.4.0", + "cssstyle": "^1.0.0", + "data-urls": "^1.0.0", + "domexception": "^1.0.1", + "escodegen": "^1.9.1", + "html-encoding-sniffer": "^1.0.2", + "left-pad": "^1.3.0", + "nwsapi": "^2.0.7", + "parse5": "4.0.0", + "pn": "^1.1.0", + "request": "^2.87.0", + "request-promise-native": "^1.0.5", + "sax": "^1.2.4", + "symbol-tree": "^3.2.2", + "tough-cookie": "^2.3.4", + "w3c-hr-time": "^1.0.1", + "webidl-conversions": "^4.0.2", + "whatwg-encoding": "^1.0.3", + "whatwg-mimetype": "^2.1.0", + "whatwg-url": "^6.4.1", + "ws": "^5.2.0", + "xml-name-validator": "^3.0.0" + }, + "dependencies": { + "acorn": { + "version": "5.7.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz", + "integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==", + "dev": true + } + } + }, + "jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true + }, + "json-parse-better-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "dev": true + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "json-stable-stringify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz", + "integrity": "sha1-YRwj6BTbN1Un34URk9tZ3Sryf0U=", + "dev": true, + "requires": { + "jsonify": "~0.0.0" + } + }, + "json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", + "dev": true + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "dev": true + }, + "json5": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.0.tgz", + "integrity": "sha512-8Mh9h6xViijj36g7Dxi+Y4S6hNGV96vcJZr/SrlHh1LR/pEn/8j/+qIBbs44YKl69Lrfctp4QD+AdWLTMqEZAQ==", + "dev": true, + "requires": { + "minimist": "^1.2.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "jsonify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", + "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", + "dev": true + }, + "jsonparse": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", + "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=", + "dev": true + }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "dev": true, + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + }, + "klaw": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/klaw/-/klaw-2.0.0.tgz", + "integrity": "sha1-WcEo4Nxc5BAgEVEZTuucv4WGUPY=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.9" + } + }, + "kleur": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-2.0.2.tgz", + "integrity": "sha512-77XF9iTllATmG9lSlIv0qdQ2BQ/h9t0bJllHlbvsQ0zUWfU7Yi0S8L5JXzPZgkefIiajLmBJJ4BsMJmqcf7oxQ==", + "dev": true + }, + "labeled-stream-splicer": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/labeled-stream-splicer/-/labeled-stream-splicer-2.0.1.tgz", + "integrity": "sha512-MC94mHZRvJ3LfykJlTUipBqenZz1pacOZEMhhQ8dMGcDHs0SBE5GbsavUXV7YtP3icBW17W0Zy1I0lfASmo9Pg==", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "isarray": "^2.0.4", + "stream-splicer": "^2.0.0" + }, + "dependencies": { + "isarray": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.4.tgz", + "integrity": "sha512-GMxXOiUirWg1xTKRipM0Ek07rX+ubx4nNVElTJdNLYmNO/2YrDkgJGw9CljXn+r4EWiDQg/8lsRdHyg2PJuUaA==", + "dev": true + } + } + }, + "lazy-cache": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", + "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", + "dev": true, + "optional": true + }, + "lcid": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", + "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", + "dev": true, + "requires": { + "invert-kv": "^1.0.0" + } + }, + "left-pad": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/left-pad/-/left-pad-1.3.0.tgz", + "integrity": "sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA==", + "dev": true + }, + "leven": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-2.1.0.tgz", + "integrity": "sha1-wuep93IJTe6dNCAq6KzORoeHVYA=", + "dev": true + }, + "levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + } + }, + "load-json-file": { + "version": "1.1.0", + "resolved": "http://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", + "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "strip-bom": "^2.0.0" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "lodash": { + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==" + }, + "lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=", + "dev": true + }, + "lodash.memoize": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-3.0.4.tgz", + "integrity": "sha1-LcvSwofLwKVcxCMovQxzYVDVPj8=", + "dev": true + }, + "lodash.padend": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/lodash.padend/-/lodash.padend-4.6.1.tgz", + "integrity": "sha1-U8y6BH0G4VjTEfRdpiX05J5vFm4=", + "dev": true + }, + "lodash.sortby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", + "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=", + "dev": true + }, + "log-symbols": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", + "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", + "dev": true, + "requires": { + "chalk": "^2.0.1" + } + }, + "longest": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", + "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", + "dev": true + }, + "loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dev": true, + "requires": { + "js-tokens": "^3.0.0 || ^4.0.0" + } + }, + "loud-rejection": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", + "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", + "dev": true, + "requires": { + "currently-unhandled": "^0.4.1", + "signal-exit": "^3.0.0" + } + }, + "lru-cache": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.3.tgz", + "integrity": "sha512-fFEhvcgzuIoJVUF8fYr5KR0YqxD238zgObTps31YdADwPPAp82a4M8TrckkWyx7ekNlf9aBcVn81cFwwXngrJA==", + "dev": true, + "requires": { + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" + } + }, + "magic-string": { + "version": "0.23.2", + "resolved": "http://registry.npmjs.org/magic-string/-/magic-string-0.23.2.tgz", + "integrity": "sha512-oIUZaAxbcxYIp4AyLafV6OVKoB3YouZs0UTCJ8mOKBHNyJgGDaMJ4TgA+VylJh6fx7EQCC52XkbURxxG9IoJXA==", + "dev": true, + "requires": { + "sourcemap-codec": "^1.4.1" + } + }, + "make-dir": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", + "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", + "dev": true, + "requires": { + "pify": "^3.0.0" + }, + "dependencies": { + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + } + } + }, + "makeerror": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.11.tgz", + "integrity": "sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw=", + "dev": true, + "requires": { + "tmpl": "1.0.x" + } + }, + "map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", + "dev": true + }, + "map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", + "dev": true + }, + "map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", + "dev": true, + "requires": { + "object-visit": "^1.0.0" + } + }, + "marked": { + "version": "0.3.19", + "resolved": "https://registry.npmjs.org/marked/-/marked-0.3.19.tgz", + "integrity": "sha512-ea2eGWOqNxPcXv8dyERdSr/6FmzvWwzjMxpfGB/sbMccXoct+xY+YukPD+QTUZwyvK7BZwcr4m21WBOW41pAkg==", + "dev": true + }, + "math-random": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.1.tgz", + "integrity": "sha1-izqsWIuKZuSXXjzepn97sylgH6w=", + "dev": true + }, + "md5.js": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", + "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", + "dev": true, + "requires": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "media-typer": { + "version": "0.3.0", + "resolved": "http://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", + "dev": true + }, + "mem": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz", + "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", + "dev": true, + "requires": { + "mimic-fn": "^1.0.0" + } + }, + "meow": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-5.0.0.tgz", + "integrity": "sha512-CbTqYU17ABaLefO8vCU153ZZlprKYWDljcndKKDCFcYQITzWCXZAVk4QMFZPgvzrnUQ3uItnIE/LoUOwrT15Ig==", + "dev": true, + "requires": { + "camelcase-keys": "^4.0.0", + "decamelize-keys": "^1.0.0", + "loud-rejection": "^1.0.0", + "minimist-options": "^3.0.1", + "normalize-package-data": "^2.3.4", + "read-pkg-up": "^3.0.0", + "redent": "^2.0.0", + "trim-newlines": "^2.0.0", + "yargs-parser": "^10.0.0" + }, + "dependencies": { + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "^2.0.0" + } + }, + "load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "parse-json": "^4.0.0", + "pify": "^3.0.0", + "strip-bom": "^3.0.0" + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "requires": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "requires": { + "p-try": "^1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "requires": { + "p-limit": "^1.1.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true + }, + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "dev": true, + "requires": { + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1" + } + }, + "path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "dev": true, + "requires": { + "pify": "^3.0.0" + } + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + }, + "read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "dev": true, + "requires": { + "load-json-file": "^4.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^3.0.0" + } + }, + "read-pkg-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", + "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", + "dev": true, + "requires": { + "find-up": "^2.0.0", + "read-pkg": "^3.0.0" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + } + } + }, + "merge": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/merge/-/merge-1.2.1.tgz", + "integrity": "sha512-VjFo4P5Whtj4vsLzsYBu5ayHhoHJ0UqNm7ibvShmbmoz7tGi0vXaoJbGdB+GmDMLUdg8DpQXEIeVDAe8MaABvQ==", + "dev": true + }, + "merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=", + "dev": true + }, + "merge-source-map": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/merge-source-map/-/merge-source-map-1.0.4.tgz", + "integrity": "sha1-pd5GU42uhNQRTMXqArR3KmNGcB8=", + "dev": true, + "requires": { + "source-map": "^0.5.6" + } + }, + "merge-stream": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-1.0.1.tgz", + "integrity": "sha1-QEEgLVCKNCugAXQAjfDCUbjBNeE=", + "dev": true, + "requires": { + "readable-stream": "^2.0.1" + } + }, + "merge2": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.2.3.tgz", + "integrity": "sha512-gdUU1Fwj5ep4kplwcmftruWofEFt6lfpkkr3h860CXbAB9c3hGb55EOL2ali0Td5oebvW0E1+3Sr+Ur7XfKpRA==", + "dev": true + }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", + "dev": true + }, + "microargs": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/microargs/-/microargs-1.1.0.tgz", + "integrity": "sha1-XsPNi9dzf1fUhVlBMZM+qUMJ+1k=", + "dev": true + }, + "microcli": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/microcli/-/microcli-1.3.1.tgz", + "integrity": "sha512-0MQ0w457h33GuktLJwzA/EmZK9B7QwcG5FqWM+7Ep5XPkFJvT3vZ6XIDaqUXYLpDAqsCSnhTKTWzWiDbXkn8mQ==", + "dev": true, + "requires": { + "lodash": "4.17.4", + "microargs": "1.1.0" + }, + "dependencies": { + "lodash": { + "version": "4.17.4", + "resolved": "http://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", + "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "dev": true + } + } + }, + "micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + } + }, + "miller-rabin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", + "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", + "dev": true, + "requires": { + "bn.js": "^4.0.0", + "brorand": "^1.0.1" + } + }, + "mime": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz", + "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==", + "dev": true + }, + "mime-db": { + "version": "1.37.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.37.0.tgz", + "integrity": "sha512-R3C4db6bgQhlIhPU48fUtdVmKnflq+hRdad7IyKhtFj06VPNVdk2RhiYL3UjQIlso8L+YxAtFkobT0VK+S/ybg==", + "dev": true + }, + "mime-types": { + "version": "2.1.21", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.21.tgz", + "integrity": "sha512-3iL6DbwpyLzjR3xHSFNFeb9Nz/M8WDkX33t1GFQnFOllWk8pOrh/LSrB5OXlnlW5P9LH73X6loW/eogc+F5lJg==", + "dev": true, + "requires": { + "mime-db": "~1.37.0" + } + }, + "mimic-fn": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", + "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", + "dev": true + }, + "minify-stream": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minify-stream/-/minify-stream-1.2.0.tgz", + "integrity": "sha512-bIjBH7uGROwzWwgtbLO7U/yi+NBTLGs5YYidUiGD9nJZ5wuxX0485c48vtJ7WlNZNnKvHXA1D1ZXpfWJqf4fyg==", + "dev": true, + "requires": { + "concat-stream": "^1.6.0", + "convert-source-map": "^1.5.0", + "duplexify": "^3.5.1", + "from2-string": "^1.1.0", + "terser": "^3.7.5", + "xtend": "^4.0.1" + }, + "dependencies": { + "concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + } + } + }, + "minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", + "dev": true + }, + "minimalistic-crypto-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", + "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.0", + "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + }, + "minimist-options": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-3.0.2.tgz", + "integrity": "sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ==", + "dev": true, + "requires": { + "arrify": "^1.0.1", + "is-plain-obj": "^1.1.0" + } + }, + "mixin-deep": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", + "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", + "dev": true, + "requires": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + } + } + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + }, + "dependencies": { + "minimist": { + "version": "0.0.8", + "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + } + } + }, + "module-deps": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/module-deps/-/module-deps-4.1.1.tgz", + "integrity": "sha1-IyFYM/HaE/1gbMuAh7RIUty4If0=", + "dev": true, + "requires": { + "JSONStream": "^1.0.3", + "browser-resolve": "^1.7.0", + "cached-path-relative": "^1.0.0", + "concat-stream": "~1.5.0", + "defined": "^1.0.0", + "detective": "^4.0.0", + "duplexer2": "^0.1.2", + "inherits": "^2.0.1", + "parents": "^1.0.0", + "readable-stream": "^2.0.2", + "resolve": "^1.1.3", + "stream-combiner2": "^1.1.1", + "subarg": "^1.0.0", + "through2": "^2.0.0", + "xtend": "^4.0.0" + } + }, + "morgan": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.9.1.tgz", + "integrity": "sha512-HQStPIV4y3afTiCYVxirakhlCfGkI161c76kKFca7Fk1JusM//Qeo1ej2XaMniiNeaZklMVrh3vTtIzpzwbpmA==", + "dev": true, + "requires": { + "basic-auth": "~2.0.0", + "debug": "2.6.9", + "depd": "~1.1.2", + "on-finished": "~2.3.0", + "on-headers": "~1.0.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", + "dev": true + }, + "multi-stage-sourcemap": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/multi-stage-sourcemap/-/multi-stage-sourcemap-0.2.1.tgz", + "integrity": "sha1-sJ/IWG6qF/gdV1xK0C4Pej9rEQU=", + "dev": true, + "requires": { + "source-map": "^0.1.34" + }, + "dependencies": { + "source-map": { + "version": "0.1.43", + "resolved": "http://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", + "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=", + "dev": true, + "requires": { + "amdefine": ">=0.0.4" + } + } + } + }, + "mute-stream": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", + "integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=", + "dev": true + }, + "mutexify": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mutexify/-/mutexify-1.2.0.tgz", + "integrity": "sha512-oprzxd2zhfrJqEuB98qc1dRMMonClBQ57UPDjnbcrah4orEMTq1jq3+AcdFe5ePzdbJXI7zmdhfftIdMnhYFoQ==", + "dev": true + }, + "nan": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.12.1.tgz", + "integrity": "sha512-JY7V6lRkStKcKTvHO5NVSQRv+RV+FIL5pvDoLiAtSL9pKlC5x9PKQcZDsq7m4FO4d57mkhC6Z+QhAh3Jdk5JFw==", + "dev": true, + "optional": true + }, + "nanobench": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nanobench/-/nanobench-2.1.1.tgz", + "integrity": "sha512-z+Vv7zElcjN+OpzAxAquUayFLGK3JI/ubCl0Oh64YQqsTGG09CGqieJVQw4ui8huDnnAgrvTv93qi5UaOoNj8A==", + "dev": true, + "requires": { + "browser-process-hrtime": "^0.1.2", + "chalk": "^1.1.3", + "mutexify": "^1.1.0", + "pretty-hrtime": "^1.0.2" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "nanomatch": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "dev": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "fragment-cache": "^0.2.1", + "is-windows": "^1.0.2", + "kind-of": "^6.0.2", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + } + }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "dev": true + }, + "negotiator": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", + "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=", + "dev": true + }, + "nested-error-stacks": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/nested-error-stacks/-/nested-error-stacks-2.1.0.tgz", + "integrity": "sha512-AO81vsIO1k1sM4Zrd6Hu7regmJN1NSiAja10gc4bX3F0wd+9rQmcuHQaHVQCYIEC8iFXnE+mavh23GOt7wBgug==", + "dev": true + }, + "next-tick": { + "version": "1.0.0", + "resolved": "http://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", + "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=", + "dev": true + }, + "nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true + }, + "node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=", + "dev": true + }, + "node-notifier": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-5.3.0.tgz", + "integrity": "sha512-AhENzCSGZnZJgBARsUjnQ7DnZbzyP+HxlVXuD0xqAnvL8q+OqtSX7lGg9e8nHzwXkMMXNdVeqq4E2M3EUAqX6Q==", + "dev": true, + "requires": { + "growly": "^1.3.0", + "semver": "^5.5.0", + "shellwords": "^0.1.1", + "which": "^1.3.0" + } + }, + "node-releases": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.0.4.tgz", + "integrity": "sha512-GqRV9GcHw8JCRDaP/JoeNMNzEGzHAknMvIHqMb2VeTOmg1Cf9+ej8bkV12tHfzWHQMCkQ5zUFgwFUkfraynNCw==", + "dev": true, + "requires": { + "semver": "^5.3.0" + } + }, + "normalize-package-data": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", + "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", + "dev": true, + "requires": { + "hosted-git-info": "^2.1.4", + "is-builtin-module": "^1.0.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "dev": true, + "requires": { + "remove-trailing-separator": "^1.0.1" + } + }, + "normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=", + "dev": true + }, + "npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "dev": true, + "requires": { + "path-key": "^2.0.0" + } + }, + "num2fraction": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", + "integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=", + "dev": true + }, + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true + }, + "nwsapi": { + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.0.9.tgz", + "integrity": "sha512-nlWFSCTYQcHk/6A9FFnfhKc14c3aFhfdNBXgo8Qgi9QTBu/qg3Ww+Uiz9wMzXd1T8GFxPc2QIHB6Qtf2XFryFQ==", + "dev": true + }, + "oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", + "dev": true + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + }, + "object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", + "dev": true, + "requires": { + "copy-descriptor": "^0.1.0", + "define-property": "^0.2.5", + "kind-of": "^3.0.3" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "object-keys": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.12.tgz", + "integrity": "sha512-FTMyFUm2wBcGHnH2eXmz7tC6IwlqQZ6mVZ+6dm6vZ4IQIHjs6FdNsQBuKGPuUUUY6NfJw2PshC08Tn6LzLDOag==", + "dev": true + }, + "object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", + "dev": true, + "requires": { + "isobject": "^3.0.0" + } + }, + "object.getownpropertydescriptors": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", + "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "es-abstract": "^1.5.1" + } + }, + "object.omit": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", + "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", + "dev": true, + "requires": { + "for-own": "^0.1.4", + "is-extendable": "^0.1.1" + } + }, + "object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", + "dev": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "omelette": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/omelette/-/omelette-0.4.5.tgz", + "integrity": "sha512-b0k9uqwF60u15KmVkneVw96VYRtZu2QCbXUQ26SgdyVUgMBzctzIfhNPKAWl4oqJEKpe52CzBYSS+HIKtiK8sw==", + "dev": true + }, + "on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", + "dev": true, + "requires": { + "ee-first": "1.1.1" + } + }, + "on-headers": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz", + "integrity": "sha1-ko9dD0cNSTQmUepnlLCFfBAGk/c=", + "dev": true + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "onetime": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", + "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", + "dev": true, + "requires": { + "mimic-fn": "^1.0.0" + } + }, + "optimist": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", + "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", + "dev": true, + "requires": { + "minimist": "~0.0.1", + "wordwrap": "~0.0.2" + }, + "dependencies": { + "minimist": { + "version": "0.0.10", + "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", + "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=", + "dev": true + }, + "wordwrap": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", + "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=", + "dev": true + } + } + }, + "optionator": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", + "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", + "dev": true, + "requires": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.4", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "wordwrap": "~1.0.0" + } + }, + "os-browserify": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", + "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", + "dev": true + }, + "os-homedir": { + "version": "1.0.2", + "resolved": "http://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", + "dev": true + }, + "os-locale": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", + "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", + "dev": true, + "requires": { + "execa": "^0.7.0", + "lcid": "^1.0.0", + "mem": "^1.1.0" + } + }, + "os-tmpdir": { + "version": "1.0.2", + "resolved": "http://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", + "dev": true + }, + "outpipe": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/outpipe/-/outpipe-1.1.1.tgz", + "integrity": "sha1-UM+GFjZeh+Ax4ppeyTOaPaRyX6I=", + "dev": true, + "requires": { + "shell-quote": "^1.4.2" + } + }, + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "dev": true + }, + "p-limit": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.0.0.tgz", + "integrity": "sha512-fl5s52lI5ahKCernzzIyAP0QAZbGIovtVHGwpcu1Jr/EpzLVDI2myISHwGqK7m8uQFugVWSrbxH7XnhGtvEc+A==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "p-try": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.0.0.tgz", + "integrity": "sha512-hMp0onDKIajHfIkdRk3P4CdCmErkYAxxDtP3Wx/4nZ3aGlau2VKh3mZpcuFkH27WQkL/3WBCPOktzA9ZOAnMQQ==", + "dev": true + }, + "pako": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.6.tgz", + "integrity": "sha512-lQe48YPsMJAig+yngZ87Lus+NF+3mtu7DVOBu6b/gHO1YpKwIj5AWjZ/TOS7i46HD/UixzWb1zeWDZfGZ3iYcg==", + "dev": true + }, + "parents": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parents/-/parents-1.0.1.tgz", + "integrity": "sha1-/t1NK/GTp3dF/nHjcdc8MwfZx1E=", + "dev": true, + "requires": { + "path-platform": "~0.11.15" + } + }, + "parse-asn1": { + "version": "5.1.1", + "resolved": "http://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.1.tgz", + "integrity": "sha512-KPx7flKXg775zZpnp9SxJlz00gTd4BmJ2yJufSc44gMCRrRQ7NSzAcSJQfifuOLgW6bEi+ftrALtsgALeB2Adw==", + "dev": true, + "requires": { + "asn1.js": "^4.0.0", + "browserify-aes": "^1.0.0", + "create-hash": "^1.1.0", + "evp_bytestokey": "^1.0.0", + "pbkdf2": "^3.0.3" + } + }, + "parse-glob": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", + "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", + "dev": true, + "requires": { + "glob-base": "^0.3.0", + "is-dotfile": "^1.0.0", + "is-extglob": "^1.0.0", + "is-glob": "^2.0.0" + }, + "dependencies": { + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", + "dev": true + }, + "is-glob": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "dev": true, + "requires": { + "is-extglob": "^1.0.0" + } + } + } + }, + "parse-json": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", + "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "dev": true, + "requires": { + "error-ex": "^1.2.0" + } + }, + "parse5": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-4.0.0.tgz", + "integrity": "sha512-VrZ7eOd3T1Fk4XWNXMgiGBK/z0MG48BWG2uQNU4I72fkQuKUTZpl+u9k+CxEG0twMVzSmXEEz12z5Fnw1jIQFA==", + "dev": true + }, + "parseurl": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.2.tgz", + "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M=", + "dev": true + }, + "pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", + "dev": true + }, + "path-browserify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", + "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", + "dev": true + }, + "path-dirname": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", + "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", + "dev": true + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "http://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", + "dev": true + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "path-platform": { + "version": "0.11.15", + "resolved": "https://registry.npmjs.org/path-platform/-/path-platform-0.11.15.tgz", + "integrity": "sha1-6GQhf3TDaFDwhSt43Hv31KVyG/I=", + "dev": true + }, + "path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=", + "dev": true + }, + "path-type": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", + "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + } + }, + "pbkdf2": { + "version": "3.0.17", + "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.17.tgz", + "integrity": "sha512-U/il5MsrZp7mGg3mSQfn742na2T+1/vHDCG5/iTI3X9MKUuYUZVLQhyRsg06mCgDBTd57TxzgZt7P+fYfjRLtA==", + "dev": true, + "requires": { + "create-hash": "^1.1.2", + "create-hmac": "^1.1.4", + "ripemd160": "^2.0.1", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + } + }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", + "dev": true + }, + "pify": { + "version": "2.3.0", + "resolved": "http://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + }, + "pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "dev": true + }, + "pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "dev": true, + "requires": { + "pinkie": "^2.0.0" + } + }, + "pkg-dir": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", + "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", + "dev": true, + "requires": { + "find-up": "^2.1.0" + }, + "dependencies": { + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "^2.0.0" + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "requires": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "requires": { + "p-try": "^1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "requires": { + "p-limit": "^1.1.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true + } + } + }, + "pluralize": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-7.0.0.tgz", + "integrity": "sha512-ARhBOdzS3e41FbkW/XWrTEtukqqLoK5+Z/4UeDaLuSW+39JPeFgs4gCGqsrJHVZX0fUrx//4OF0K1CUGwlIFow==", + "dev": true + }, + "pn": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pn/-/pn-1.1.0.tgz", + "integrity": "sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==", + "dev": true + }, + "popper.js": { + "version": "1.14.5", + "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.14.5.tgz", + "integrity": "sha512-fs4Sd8bZLgEzrk8aS7Em1qh+wcawtE87kRUJQhK6+LndyV1HerX7+LURzAylVaTyWIn5NTB/lyjnWqw/AZ6Yrw==", + "dev": true + }, + "posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", + "dev": true + }, + "postcss": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.6.tgz", + "integrity": "sha512-Nq/rNjnHFcKgCDDZYO0lNsl6YWe6U7tTy+ESN+PnLxebL8uBtYX59HZqvrj7YLK5UCyll2hqDsJOo3ndzEW8Ug==", + "dev": true, + "requires": { + "chalk": "^2.4.1", + "source-map": "^0.6.1", + "supports-color": "^5.5.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-cli": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/postcss-cli/-/postcss-cli-6.0.1.tgz", + "integrity": "sha512-M9GiEMzXVMlI4ln8e+mdeHT+qvoHVZdlN06hj5/EhrRZWDr+J1sniPeGJ4nghknl+du3Oj2UoqqhgpKKhiZ9+w==", + "dev": true, + "requires": { + "chalk": "^2.1.0", + "chokidar": "^2.0.0", + "dependency-graph": "^0.7.0", + "fs-extra": "^7.0.0", + "get-stdin": "^6.0.0", + "globby": "^8.0.0", + "postcss": "^7.0.0", + "postcss-load-config": "^2.0.0", + "postcss-reporter": "^6.0.0", + "pretty-hrtime": "^1.0.3", + "read-cache": "^1.0.0", + "yargs": "^12.0.1" + } + }, + "postcss-load-config": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-2.0.0.tgz", + "integrity": "sha512-V5JBLzw406BB8UIfsAWSK2KSwIJ5yoEIVFb4gVkXci0QdKgA24jLmHZ/ghe/GgX0lJ0/D1uUK1ejhzEY94MChQ==", + "dev": true, + "requires": { + "cosmiconfig": "^4.0.0", + "import-cwd": "^2.0.0" + } + }, + "postcss-reporter": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/postcss-reporter/-/postcss-reporter-6.0.0.tgz", + "integrity": "sha512-5xQXm1UPWuFObjbtyQzWvQaupru8yFcFi4HUlm6OPo1o2bUszYASuqRJ7bVArb3svGCdbYtqdMBKrqR1Aoy+tw==", + "dev": true, + "requires": { + "chalk": "^2.0.1", + "lodash": "^4.17.4", + "log-symbols": "^2.0.0", + "postcss": "^7.0.2" + } + }, + "postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true + }, + "prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", + "dev": true + }, + "preserve": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", + "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", + "dev": true + }, + "pretty-format": { + "version": "23.6.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-23.6.0.tgz", + "integrity": "sha512-zf9NV1NSlDLDjycnwm6hpFATCGl/K1lt0R/GdkAK2O5LN/rwJoB+Mh93gGJjut4YbmecbfgLWVGSTCr0Ewvvbw==", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0", + "ansi-styles": "^3.2.0" + } + }, + "pretty-hrtime": { + "version": "1.0.3", + "resolved": "http://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", + "integrity": "sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=", + "dev": true + }, + "prismjs": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.15.0.tgz", + "integrity": "sha512-Lf2JrFYx8FanHrjoV5oL8YHCclLQgbJcVZR+gikGGMqz6ub5QVWDTM6YIwm3BuPxM/LOV+rKns3LssXNLIf+DA==", + "dev": true, + "requires": { + "clipboard": "^2.0.0" + } + }, + "private": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", + "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", + "dev": true + }, + "process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "dev": true + }, + "progress": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.1.tgz", + "integrity": "sha512-OE+a6vzqazc+K6LxJrX5UPyKFvGnL5CYmq2jFGNIBWHpc4QyE49/YOumcrpQFJpfejmvRtbJzgO1zPmMCqlbBg==", + "dev": true + }, + "prompts": { + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-0.1.14.tgz", + "integrity": "sha512-rxkyiE9YH6zAz/rZpywySLKkpaj0NMVyNw1qhsubdbjjSgcayjTShDreZGlFMcGSu5sab3bAKPfFk78PB90+8w==", + "dev": true, + "requires": { + "kleur": "^2.0.1", + "sisteransi": "^0.1.1" + } + }, + "proxy-addr": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.4.tgz", + "integrity": "sha512-5erio2h9jp5CHGwcybmxmVqHmnCBZeewlfJ0pex+UW7Qny7OOZXTtH56TGNyBizkgiOwhJtMKrVzDTeKcySZwA==", + "dev": true, + "requires": { + "forwarded": "~0.1.2", + "ipaddr.js": "1.8.0" + } + }, + "pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", + "dev": true + }, + "psl": { + "version": "1.1.29", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.29.tgz", + "integrity": "sha512-AeUmQ0oLN02flVHXWh9sSJF7mcdFq0ppid/JkErufc3hGIV/AMa8Fo9VgDo/cT2jFdOWoFvHp90qqBH54W+gjQ==", + "dev": true + }, + "public-encrypt": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", + "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", + "dev": true, + "requires": { + "bn.js": "^4.1.0", + "browserify-rsa": "^4.0.0", + "create-hash": "^1.1.0", + "parse-asn1": "^5.0.0", + "randombytes": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "dev": true + }, + "qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", + "dev": true + }, + "querystring": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", + "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", + "dev": true + }, + "querystring-es3": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", + "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", + "dev": true + }, + "quick-lru": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-1.1.0.tgz", + "integrity": "sha1-Q2CxfGETatOAeDl/8RQW4Ybc+7g=", + "dev": true + }, + "randomatic": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", + "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==", + "dev": true, + "requires": { + "is-number": "^4.0.0", + "kind-of": "^6.0.0", + "math-random": "^1.0.1" + }, + "dependencies": { + "is-number": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "dev": true + } + } + }, + "randombytes": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.6.tgz", + "integrity": "sha512-CIQ5OFxf4Jou6uOKe9t1AOgqpeU5fd70A8NPdHSGeYXqXsPe6peOwI0cUl88RWZ6sP1vPMV3avd/R6cZ5/sP1A==", + "dev": true, + "requires": { + "safe-buffer": "^5.1.0" + } + }, + "randomcolor": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/randomcolor/-/randomcolor-0.5.3.tgz", + "integrity": "sha1-f5Dy8qf21aUiMhYe6u6uqaw7WBU=" + }, + "randomfill": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", + "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", + "dev": true, + "requires": { + "randombytes": "^2.0.5", + "safe-buffer": "^5.1.0" + } + }, + "range-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz", + "integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4=", + "dev": true + }, + "raw-body": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.3.tgz", + "integrity": "sha512-9esiElv1BrZoI3rCDuOuKCBRbuApGGaDPQfjSflGxdy4oyzqghxu6klEkkVIvBje+FF0BX9coEv8KqW6X/7njw==", + "dev": true, + "requires": { + "bytes": "3.0.0", + "http-errors": "1.6.3", + "iconv-lite": "0.4.23", + "unpipe": "1.0.0" + }, + "dependencies": { + "iconv-lite": { + "version": "0.4.23", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", + "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", + "dev": true, + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + } + } + }, + "read-cache": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", + "integrity": "sha1-5mTvMRYRZsl1HNvo28+GtftY93Q=", + "dev": true, + "requires": { + "pify": "^2.3.0" + } + }, + "read-only-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/read-only-stream/-/read-only-stream-2.0.0.tgz", + "integrity": "sha1-JyT9aoET1zdkrCiNQ4YnDB2/F/A=", + "dev": true, + "requires": { + "readable-stream": "^2.0.2" + } + }, + "read-pkg": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", + "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", + "dev": true, + "requires": { + "load-json-file": "^1.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^1.0.0" + } + }, + "read-pkg-up": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", + "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", + "dev": true, + "requires": { + "find-up": "^1.0.0", + "read-pkg": "^1.0.0" + }, + "dependencies": { + "find-up": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", + "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", + "dev": true, + "requires": { + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" + } + }, + "path-exists": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", + "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", + "dev": true, + "requires": { + "pinkie-promise": "^2.0.0" + } + } + } + }, + "readable-stream": { + "version": "2.3.6", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + }, + "dependencies": { + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "readdirp": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", + "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.11", + "micromatch": "^3.1.10", + "readable-stream": "^2.0.2" + } + }, + "realpath-native": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/realpath-native/-/realpath-native-1.0.2.tgz", + "integrity": "sha512-+S3zTvVt9yTntFrBpm7TQmQ3tzpCrnA1a/y+3cUHAc9ZR6aIjG0WNLR+Rj79QpJktY+VeW/TQtFlQ1bzsehI8g==", + "dev": true, + "requires": { + "util.promisify": "^1.0.0" + } + }, + "redent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", + "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", + "dev": true, + "requires": { + "indent-string": "^3.0.0", + "strip-indent": "^2.0.0" + } + }, + "regenerate": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.0.tgz", + "integrity": "sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==", + "dev": true + }, + "regenerate-unicode-properties": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-7.0.0.tgz", + "integrity": "sha512-s5NGghCE4itSlUS+0WUj88G6cfMVMmH8boTPNvABf8od+2dhT9WDlWu8n01raQAJZMOK8Ch6jSexaRO7swd6aw==", + "dev": true, + "requires": { + "regenerate": "^1.4.0" + } + }, + "regenerator-runtime": { + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz", + "integrity": "sha512-odxIc1/vDlo4iZcfXqRYFj0vpXFNoGdKMAUieAlFYO6m/nl5e9KR/beGf41z4a1FI+aQgtjhuaSlDxQ0hmkrHg==" + }, + "regenerator-transform": { + "version": "0.13.3", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.13.3.tgz", + "integrity": "sha512-5ipTrZFSq5vU2YoGoww4uaRVAK4wyYC4TSICibbfEPOruUu8FFP7ErV0BjmbIOEpn3O/k9na9UEdYR/3m7N6uA==", + "dev": true, + "requires": { + "private": "^0.1.6" + } + }, + "regex-cache": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", + "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", + "dev": true, + "requires": { + "is-equal-shallow": "^0.1.3" + } + }, + "regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "dev": true, + "requires": { + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" + } + }, + "regexpp": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", + "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", + "dev": true + }, + "regexpu-core": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.2.0.tgz", + "integrity": "sha512-Z835VSnJJ46CNBttalHD/dB+Sj2ezmY6Xp38npwU87peK6mqOzOpV8eYktdkLTEkzzD+JsTcxd84ozd8I14+rw==", + "dev": true, + "requires": { + "regenerate": "^1.4.0", + "regenerate-unicode-properties": "^7.0.0", + "regjsgen": "^0.4.0", + "regjsparser": "^0.3.0", + "unicode-match-property-ecmascript": "^1.0.4", + "unicode-match-property-value-ecmascript": "^1.0.2" + } + }, + "regjsgen": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.4.0.tgz", + "integrity": "sha512-X51Lte1gCYUdlwhF28+2YMO0U6WeN0GLpgpA7LK7mbdDnkQYiwvEpmpe0F/cv5L14EbxgrdayAG3JETBv0dbXA==", + "dev": true + }, + "regjsparser": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.3.0.tgz", + "integrity": "sha512-zza72oZBBHzt64G7DxdqrOo/30bhHkwMUoT0WqfGu98XLd7N+1tsy5MJ96Bk4MD0y74n629RhmrGW6XlnLLwCA==", + "dev": true, + "requires": { + "jsesc": "~0.5.0" + }, + "dependencies": { + "jsesc": { + "version": "0.5.0", + "resolved": "http://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", + "dev": true + } + } + }, + "remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", + "dev": true + }, + "repeat-element": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", + "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", + "dev": true + }, + "repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "dev": true + }, + "repeating": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", + "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", + "dev": true, + "requires": { + "is-finite": "^1.0.0" + } + }, + "request": { + "version": "2.88.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", + "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", + "dev": true, + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.0", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.4.3", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + } + }, + "request-promise-core": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz", + "integrity": "sha1-Pu4AssWqgyOc+wTFcA2jb4HNCLY=", + "dev": true, + "requires": { + "lodash": "^4.13.1" + } + }, + "request-promise-native": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.5.tgz", + "integrity": "sha1-UoF3D2jgyXGeUWP9P6tIIhX0/aU=", + "dev": true, + "requires": { + "request-promise-core": "1.1.1", + "stealthy-require": "^1.1.0", + "tough-cookie": ">=2.3.3" + } + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "dev": true + }, + "require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true + }, + "require-main-filename": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", + "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", + "dev": true + }, + "require-uncached": { + "version": "1.0.3", + "resolved": "http://registry.npmjs.org/require-uncached/-/require-uncached-1.0.3.tgz", + "integrity": "sha1-Tg1W1slmL9MeQwEcS5WqSZVUIdM=", + "dev": true, + "requires": { + "caller-path": "^0.1.0", + "resolve-from": "^1.0.0" + } + }, + "requizzle": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.1.tgz", + "integrity": "sha1-aUPDUwxNmn5G8c3dUcFY/GcM294=", + "dev": true, + "requires": { + "underscore": "~1.6.0" + }, + "dependencies": { + "underscore": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz", + "integrity": "sha1-izixDKze9jM3uLJOT/htRa6lKag=", + "dev": true + } + } + }, + "resolve": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.8.1.tgz", + "integrity": "sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA==", + "dev": true, + "requires": { + "path-parse": "^1.0.5" + } + }, + "resolve-cwd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-2.0.0.tgz", + "integrity": "sha1-AKn3OHVW4nA46uIyyqNypqWbZlo=", + "dev": true, + "requires": { + "resolve-from": "^3.0.0" + }, + "dependencies": { + "resolve-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", + "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", + "dev": true + } + } + }, + "resolve-from": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-1.0.1.tgz", + "integrity": "sha1-Jsv+k10a7uq7Kbw/5a6wHpPUQiY=", + "dev": true + }, + "resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", + "dev": true + }, + "restore-cursor": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", + "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", + "dev": true, + "requires": { + "onetime": "^2.0.0", + "signal-exit": "^3.0.2" + } + }, + "ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "dev": true + }, + "right-align": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", + "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", + "dev": true, + "optional": true, + "requires": { + "align-text": "^0.1.1" + } + }, + "rimraf": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", + "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, + "ripemd160": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", + "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", + "dev": true, + "requires": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1" + } + }, + "rsvp": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-3.6.2.tgz", + "integrity": "sha512-OfWGQTb9vnwRjwtA2QwpG2ICclHC3pgXZO5xt8H2EfgDquO0qVdSb5T88L4qJVAEugbS56pAuV4XZM58UX8ulw==", + "dev": true + }, + "run-async": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz", + "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", + "dev": true, + "requires": { + "is-promise": "^2.1.0" + } + }, + "runjs": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/runjs/-/runjs-4.3.2.tgz", + "integrity": "sha512-HPXoaK7Dop2z4nb+EGkwvT5v5zz2Kl79e4jN5Eugt8CPHvtJyCx/5T/Y9FLdLWX951OnW192OHVT+4ymIlK2BQ==", + "dev": true, + "requires": { + "chalk": "2.3.0", + "lodash.padend": "4.6.1", + "microcli": "1.3.1", + "omelette": "0.4.5" + }, + "dependencies": { + "chalk": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.0.tgz", + "integrity": "sha512-Az5zJR2CBujap2rqXGaJKaPHyJ0IrUimvYNX+ncCy8PJP4ltOGTrHUIo097ZaL2zMeKYpiCdqDvS6zdrTFok3Q==", + "dev": true, + "requires": { + "ansi-styles": "^3.1.0", + "escape-string-regexp": "^1.0.5", + "supports-color": "^4.0.0" + } + }, + "has-flag": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", + "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=", + "dev": true + }, + "supports-color": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.5.0.tgz", + "integrity": "sha1-vnoN5ITexcXN34s9WRJQRJEvY1s=", + "dev": true, + "requires": { + "has-flag": "^2.0.0" + } + } + } + }, + "rw": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/rw/-/rw-1.3.3.tgz", + "integrity": "sha1-P4Yt+pGrdmsUiF700BEkv9oHT7Q=" + }, + "rxjs": { + "version": "6.3.3", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.3.3.tgz", + "integrity": "sha512-JTWmoY9tWCs7zvIk/CvRjhjGaOd+OVBM987mxFo+OW66cGpdKjZcpmc74ES1sB//7Kl/PAe8+wEakuhG4pcgOw==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "safe-regex": { + "version": "1.1.0", + "resolved": "http://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", + "dev": true, + "requires": { + "ret": "~0.1.10" + } + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "sane": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/sane/-/sane-2.5.2.tgz", + "integrity": "sha1-tNwYYcIbQn6SlQej51HiosuKs/o=", + "dev": true, + "requires": { + "anymatch": "^2.0.0", + "capture-exit": "^1.2.0", + "exec-sh": "^0.2.0", + "fb-watchman": "^2.0.0", + "fsevents": "^1.2.3", + "micromatch": "^3.1.4", + "minimist": "^1.1.1", + "walker": "~1.0.5", + "watch": "~0.18.0" + } + }, + "sass": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.15.1.tgz", + "integrity": "sha512-WiDa5BsePB/rQEbh/Fv2pVDUCasxuRYjW7GsWx8Ld23LY61vx1VV5Mzf/7mu5kLWKMryMqo65fzYL34HgaM47w==", + "dev": true, + "requires": { + "chokidar": "^2.0.0" + } + }, + "sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", + "dev": true + }, + "scope-analyzer": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/scope-analyzer/-/scope-analyzer-2.0.5.tgz", + "integrity": "sha512-+U5H0417mnTEstCD5VwOYO7V4vYuSqwqjFap40ythe67bhMFL5C3UgPwyBv7KDJsqUBIKafOD57xMlh1rN7eaw==", + "dev": true, + "requires": { + "array-from": "^2.1.1", + "es6-map": "^0.1.5", + "es6-set": "^0.1.5", + "es6-symbol": "^3.1.1", + "estree-is-function": "^1.0.0", + "get-assigned-identifiers": "^1.1.0" + } + }, + "select": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/select/-/select-1.1.2.tgz", + "integrity": "sha1-DnNQrN7ICxEIUoeG7B1EGNEbOW0=", + "dev": true, + "optional": true + }, + "semver": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", + "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", + "dev": true + }, + "send": { + "version": "0.16.2", + "resolved": "https://registry.npmjs.org/send/-/send-0.16.2.tgz", + "integrity": "sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw==", + "dev": true, + "requires": { + "debug": "2.6.9", + "depd": "~1.1.2", + "destroy": "~1.0.4", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "~1.6.2", + "mime": "1.4.1", + "ms": "2.0.0", + "on-finished": "~2.3.0", + "range-parser": "~1.2.0", + "statuses": "~1.4.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "serve-static": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.2.tgz", + "integrity": "sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw==", + "dev": true, + "requires": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.2", + "send": "0.16.2" + } + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "dev": true + }, + "set-value": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", + "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", + "dev": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "setprototypeof": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", + "dev": true + }, + "sha.js": { + "version": "2.4.11", + "resolved": "http://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", + "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "shasum": { + "version": "1.0.2", + "resolved": "http://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz", + "integrity": "sha1-5wEjENj0F/TetXEhUOVni4euVl8=", + "dev": true, + "requires": { + "json-stable-stringify": "~0.0.0", + "sha.js": "~2.4.4" + } + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, + "requires": { + "shebang-regex": "^1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true + }, + "shell-quote": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.6.1.tgz", + "integrity": "sha1-9HgZSczkAmlxJ0MOo7PFR29IF2c=", + "dev": true, + "requires": { + "array-filter": "~0.0.0", + "array-map": "~0.0.0", + "array-reduce": "~0.0.0", + "jsonify": "~0.0.0" + } + }, + "shellwords": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", + "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", + "dev": true + }, + "signal-exit": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "dev": true + }, + "simple-concat": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.0.tgz", + "integrity": "sha1-c0TLuLbib7J9ZrL8hvn21Zl1IcY=", + "dev": true + }, + "sisteransi": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-0.1.1.tgz", + "integrity": "sha512-PmGOd02bM9YO5ifxpw36nrNMBTptEtfRl4qUYl9SndkolplkrZZOW7PGHjrZL53QvMVj9nQ+TKqUnRsw4tJa4g==", + "dev": true + }, + "slash": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", + "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=", + "dev": true + }, + "slice-ansi": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-1.0.0.tgz", + "integrity": "sha512-POqxBK6Lb3q6s047D/XsDVNPnF9Dl8JSaqe9h9lURl0OdNqy/ujDrOiIHtsqXMGbWWTIomRzAMaTyawAU//Reg==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0" + } + }, + "snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "dev": true, + "requires": { + "base": "^0.11.1", + "debug": "^2.2.0", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "map-cache": "^0.2.2", + "source-map": "^0.5.6", + "source-map-resolve": "^0.5.0", + "use": "^3.1.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "dev": true, + "requires": { + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "^1.0.0" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + } + } + }, + "snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "dev": true, + "requires": { + "kind-of": "^3.2.0" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + }, + "source-map-resolve": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", + "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", + "dev": true, + "requires": { + "atob": "^2.1.1", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } + }, + "source-map-support": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", + "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "dev": true, + "requires": { + "source-map": "^0.5.6" + } + }, + "source-map-url": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", + "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", + "dev": true + }, + "sourcemap-codec": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.3.tgz", + "integrity": "sha512-vFrY/x/NdsD7Yc8mpTJXuao9S8lq08Z/kOITHz6b7YbfI9xL8Spe5EvSQUHOI7SbpY8bRPr0U3kKSsPuqEGSfA==", + "dev": true + }, + "spdx-correct": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.2.tgz", + "integrity": "sha512-q9hedtzyXHr5S0A1vEPoK/7l8NpfkFYTq6iCY+Pno2ZbdZR6WexZFtqeVGkGxW3TEJMN914Z55EnAGMmenlIQQ==", + "dev": true, + "requires": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-exceptions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", + "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", + "dev": true + }, + "spdx-expression-parse": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", + "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", + "dev": true, + "requires": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-license-ids": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.2.tgz", + "integrity": "sha512-qky9CVt0lVIECkEsYbNILVnPvycuEBkXoMFLRWsREkomQLevYhtRKC+R91a5TOAQ3bCMjikRwhyaRqj1VYatYg==", + "dev": true + }, + "split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "dev": true, + "requires": { + "extend-shallow": "^3.0.0" + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" + }, + "sshpk": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.15.2.tgz", + "integrity": "sha512-Ra/OXQtuh0/enyl4ETZAfTaeksa6BXks5ZcjpSUNrjBr0DvrJKX+1fsKDPpT9TBXgHAFsa4510aNVgI8g/+SzA==", + "dev": true, + "requires": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + } + }, + "stack-utils": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-1.0.2.tgz", + "integrity": "sha512-MTX+MeG5U994cazkjd/9KNAapsHnibjMLnfXodlkXw76JEea0UiNzrqidzo1emMwk7w5Qhc9jd4Bn9TBb1MFwA==", + "dev": true + }, + "static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", + "dev": true, + "requires": { + "define-property": "^0.2.5", + "object-copy": "^0.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + } + } + }, + "statuses": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", + "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==", + "dev": true + }, + "stealthy-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", + "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=", + "dev": true + }, + "stream-browserify": { + "version": "2.0.1", + "resolved": "http://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz", + "integrity": "sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds=", + "dev": true, + "requires": { + "inherits": "~2.0.1", + "readable-stream": "^2.0.2" + } + }, + "stream-combiner": { + "version": "0.2.2", + "resolved": "http://registry.npmjs.org/stream-combiner/-/stream-combiner-0.2.2.tgz", + "integrity": "sha1-rsjLrBd7Vrb0+kec7YwZEs7lKFg=", + "dev": true, + "requires": { + "duplexer": "~0.1.1", + "through": "~2.3.4" + } + }, + "stream-combiner2": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", + "integrity": "sha1-+02KFCDqNidk4hrUeAOXvry0HL4=", + "dev": true, + "requires": { + "duplexer2": "~0.1.0", + "readable-stream": "^2.0.2" + } + }, + "stream-http": { + "version": "2.8.3", + "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.3.tgz", + "integrity": "sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==", + "dev": true, + "requires": { + "builtin-status-codes": "^3.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.3.6", + "to-arraybuffer": "^1.0.0", + "xtend": "^4.0.0" + } + }, + "stream-shift": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", + "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", + "dev": true + }, + "stream-splicer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/stream-splicer/-/stream-splicer-2.0.0.tgz", + "integrity": "sha1-G2O+Q4oTPktnHMGTUZdgAXWRDYM=", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "readable-stream": "^2.0.2" + } + }, + "string-length": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-2.0.0.tgz", + "integrity": "sha1-1A27aGo6zpYMHP/KVivyxF+DY+0=", + "dev": true, + "requires": { + "astral-regex": "^1.0.0", + "strip-ansi": "^4.0.0" + } + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + }, + "strip-bom": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "dev": true, + "requires": { + "is-utf8": "^0.2.0" + } + }, + "strip-eof": { + "version": "1.0.0", + "resolved": "http://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", + "dev": true + }, + "strip-indent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", + "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "subarg": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz", + "integrity": "sha1-9izxdYHplrSPyWVpn1TAauJouNI=", + "dev": true, + "requires": { + "minimist": "^1.1.0" + } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "svg.draggable.js": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/svg.draggable.js/-/svg.draggable.js-2.2.1.tgz", + "integrity": "sha1-g7AP9rm6vxD70cb4boPx3bAgTL8=", + "requires": { + "svg.js": "^2.0.1" + } + }, + "svg.js": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/svg.js/-/svg.js-2.7.0.tgz", + "integrity": "sha512-cgzGacB+bMe4HqVlev8vE+INu8WZz0EyzwsbtiN2tsZIw7W3isA3cuJQvB2/PRPCXLkHJJ3Zp4sXT5+cajfxyA==" + }, + "symbol-tree": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.2.tgz", + "integrity": "sha1-rifbOPZgp64uHDt9G8KQgZuFGeY=", + "dev": true + }, + "syntax-error": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.4.0.tgz", + "integrity": "sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==", + "dev": true, + "requires": { + "acorn-node": "^1.2.0" + } + }, + "table": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/table/-/table-5.1.0.tgz", + "integrity": "sha512-e542in22ZLhD/fOIuXs/8yDZ9W61ltF8daM88rkRNtgTIct+vI2fTnAyu/Db2TCfEcI8i7mjZz6meLq0nW7TYg==", + "dev": true, + "requires": { + "ajv": "^6.5.3", + "lodash": "^4.17.10", + "slice-ansi": "1.0.0", + "string-width": "^2.1.1" + } + }, + "taffydb": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/taffydb/-/taffydb-2.6.2.tgz", + "integrity": "sha1-fLy2S1oUG2ou/CxdLGe04VCyomg=", + "dev": true + }, + "terser": { + "version": "3.10.11", + "resolved": "https://registry.npmjs.org/terser/-/terser-3.10.11.tgz", + "integrity": "sha512-iruZ7j14oBbRYJC5cP0/vTU7YOWjN+J1ZskEGoF78tFzXdkK2hbCL/3TRZN8XB+MuvFhvOHMp7WkOCBO4VEL5g==", + "dev": true, + "requires": { + "commander": "~2.17.1", + "source-map": "~0.6.1", + "source-map-support": "~0.5.6" + }, + "dependencies": { + "commander": { + "version": "2.17.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.17.1.tgz", + "integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-support": { + "version": "0.5.9", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.9.tgz", + "integrity": "sha512-gR6Rw4MvUlYy83vP0vxoVNzM6t8MUXqNuRsuBmBHQDu1Fh6X015FrLdgoDKcNdkwGubozq0P4N0Q37UyFVr1EA==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + } + } + }, + "test-exclude": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-4.2.3.tgz", + "integrity": "sha512-SYbXgY64PT+4GAL2ocI3HwPa4Q4TBKm0cwAVeKOt/Aoc0gSpNRjJX8w0pA1LMKZ3LBmd8pYBqApFNQLII9kavA==", + "dev": true, + "requires": { + "arrify": "^1.0.1", + "micromatch": "^2.3.11", + "object-assign": "^4.1.0", + "read-pkg-up": "^1.0.1", + "require-main-filename": "^1.0.1" + }, + "dependencies": { + "arr-diff": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", + "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", + "dev": true, + "requires": { + "arr-flatten": "^1.0.1" + } + }, + "array-unique": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", + "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", + "dev": true + }, + "braces": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", + "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", + "dev": true, + "requires": { + "expand-range": "^1.8.1", + "preserve": "^0.2.0", + "repeat-element": "^1.1.2" + } + }, + "expand-brackets": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", + "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", + "dev": true, + "requires": { + "is-posix-bracket": "^0.1.0" + } + }, + "extglob": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", + "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", + "dev": true, + "requires": { + "is-extglob": "^1.0.0" + } + }, + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", + "dev": true + }, + "is-glob": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "dev": true, + "requires": { + "is-extglob": "^1.0.0" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + }, + "micromatch": { + "version": "2.3.11", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", + "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", + "dev": true, + "requires": { + "arr-diff": "^2.0.0", + "array-unique": "^0.2.1", + "braces": "^1.8.2", + "expand-brackets": "^0.1.4", + "extglob": "^0.3.1", + "filename-regex": "^2.0.0", + "is-extglob": "^1.0.0", + "is-glob": "^2.0.1", + "kind-of": "^3.0.2", + "normalize-path": "^2.0.1", + "object.omit": "^2.0.0", + "parse-glob": "^3.0.4", + "regex-cache": "^0.4.2" + } + } + } + }, + "text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", + "dev": true + }, + "throat": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/throat/-/throat-4.1.0.tgz", + "integrity": "sha1-iQN8vJLFarGJJua6TLsgDhVnKmo=", + "dev": true + }, + "through": { + "version": "2.3.8", + "resolved": "http://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "dev": true + }, + "through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, + "requires": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "timers-browserify": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", + "integrity": "sha1-ycWLV1voQHN1y14kYtrO50NZ9B0=", + "dev": true, + "requires": { + "process": "~0.11.0" + } + }, + "tiny-emitter": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.0.2.tgz", + "integrity": "sha512-2NM0auVBGft5tee/OxP4PI3d8WItkDM+fPnaRAVo6xTDI2knbz9eC5ArWGqtGlYqiH3RU5yMpdyTTO7MguC4ow==", + "dev": true, + "optional": true + }, + "tinyify": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tinyify/-/tinyify-2.5.0.tgz", + "integrity": "sha512-SdKsUZM0k57hwdhjqZedWI4YSUcuVMmJabP6kOAvwHSlJJFR9PkTJ5meIiBRwjOnVwc0Q1xiTdj/FjzyGi099A==", + "dev": true, + "requires": { + "browser-pack-flat": "^3.0.9", + "bundle-collapser": "^1.3.0", + "common-shakeify": "^0.5.2", + "envify": "^4.1.0", + "minify-stream": "^1.1.0", + "uglifyify": "^5.0.0", + "unassertify": "^2.1.1" + } + }, + "tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "dev": true, + "requires": { + "os-tmpdir": "~1.0.2" + } + }, + "tmpl": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.4.tgz", + "integrity": "sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE=", + "dev": true + }, + "to-arraybuffer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", + "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=", + "dev": true + }, + "to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", + "dev": true + }, + "to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "dev": true, + "requires": { + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" + } + }, + "to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "dev": true, + "requires": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + } + }, + "tough-cookie": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", + "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", + "dev": true, + "requires": { + "psl": "^1.1.24", + "punycode": "^1.4.1" + } + }, + "tr46": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", + "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=", + "dev": true, + "requires": { + "punycode": "^2.1.0" + }, + "dependencies": { + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true + } + } + }, + "transform-ast": { + "version": "2.4.4", + "resolved": "https://registry.npmjs.org/transform-ast/-/transform-ast-2.4.4.tgz", + "integrity": "sha512-AxjeZAcIOUO2lev2GDe3/xZ1Q0cVGjIMk5IsriTy8zbWlsEnjeB025AhkhBJHoy997mXpLd4R+kRbvnnQVuQHQ==", + "dev": true, + "requires": { + "acorn-node": "^1.3.0", + "convert-source-map": "^1.5.1", + "dash-ast": "^1.0.0", + "is-buffer": "^2.0.0", + "magic-string": "^0.23.2", + "merge-source-map": "1.0.4", + "nanobench": "^2.1.1" + }, + "dependencies": { + "is-buffer": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.3.tgz", + "integrity": "sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw==", + "dev": true + } + } + }, + "trim-newlines": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", + "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", + "dev": true + }, + "trim-right": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", + "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", + "dev": true + }, + "tslib": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz", + "integrity": "sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==", + "dev": true + }, + "tty-browserify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.1.tgz", + "integrity": "sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw==", + "dev": true + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "dev": true, + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "dev": true + }, + "type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2" + } + }, + "type-is": { + "version": "1.6.16", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz", + "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==", + "dev": true, + "requires": { + "media-typer": "0.3.0", + "mime-types": "~2.1.18" + } + }, + "typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", + "dev": true + }, + "uglify-js": { + "version": "3.4.9", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.9.tgz", + "integrity": "sha512-8CJsbKOtEbnJsTyv6LE6m6ZKniqMiFWmm9sRbopbkGs3gMPPfd3Fh8iIA4Ykv5MgaTbqHr4BaoGLJLZNhsrW1Q==", + "dev": true, + "optional": true, + "requires": { + "commander": "~2.17.1", + "source-map": "~0.6.1" + }, + "dependencies": { + "commander": { + "version": "2.17.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.17.1.tgz", + "integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==", + "dev": true, + "optional": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "optional": true + } + } + }, + "uglify-to-browserify": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", + "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", + "dev": true, + "optional": true + }, + "uglifyify": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/uglifyify/-/uglifyify-5.0.1.tgz", + "integrity": "sha512-PO44rgExvwj3rkK0UzenHVnPU18drBy9x9HOUmgkuRh6K2KIsDqrB5LqxGtjybgGTOS1JeP8SBc+TN5rhiva6w==", + "dev": true, + "requires": { + "convert-source-map": "~1.1.0", + "extend": "^1.2.1", + "minimatch": "^3.0.2", + "terser": "^3.7.5", + "through": "~2.3.4" + }, + "dependencies": { + "convert-source-map": { + "version": "1.1.3", + "resolved": "http://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", + "integrity": "sha1-SCnId+n+SbMWHzvzZziI4gRpmGA=", + "dev": true + }, + "extend": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extend/-/extend-1.3.0.tgz", + "integrity": "sha1-0VFvsP9WJNLr+RI+odrFoZlABPg=", + "dev": true + } + } + }, + "umd": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/umd/-/umd-3.0.3.tgz", + "integrity": "sha512-4IcGSufhFshvLNcMCV80UnQVlZ5pMOC8mvNPForqwA4+lzYQuetTESLDQkeLmihq8bRcnpbQa48Wb8Lh16/xow==", + "dev": true + }, + "unassert": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/unassert/-/unassert-1.5.1.tgz", + "integrity": "sha1-y8iOw4dBfFpeTALTzQe+mL11/3Y=", + "dev": true, + "requires": { + "acorn": "^4.0.0", + "call-matcher": "^1.0.1", + "deep-equal": "^1.0.0", + "espurify": "^1.3.0", + "estraverse": "^4.1.0", + "esutils": "^2.0.2", + "object-assign": "^4.1.0" + }, + "dependencies": { + "acorn": { + "version": "4.0.13", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", + "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=", + "dev": true + } + } + }, + "unassertify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/unassertify/-/unassertify-2.1.1.tgz", + "integrity": "sha512-YIAaIlc6/KC9Oib8cVZLlpDDhK1UTEuaDyx9BwD97xqxDZC0cJOqwFcs/Y6K3m73B5VzHsRTBLXNO0dxS/GkTw==", + "dev": true, + "requires": { + "acorn": "^5.1.0", + "convert-source-map": "^1.1.1", + "escodegen": "^1.6.1", + "multi-stage-sourcemap": "^0.2.1", + "through": "^2.3.7", + "unassert": "^1.3.1" + }, + "dependencies": { + "acorn": { + "version": "5.7.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz", + "integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==", + "dev": true + } + } + }, + "undeclared-identifiers": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/undeclared-identifiers/-/undeclared-identifiers-1.1.2.tgz", + "integrity": "sha512-13EaeocO4edF/3JKime9rD7oB6QI8llAGhgn5fKOPyfkJbRb6NFv9pYV6dFEmpa4uRjKeBqLZP8GpuzqHlKDMQ==", + "dev": true, + "requires": { + "acorn-node": "^1.3.0", + "get-assigned-identifiers": "^1.2.0", + "simple-concat": "^1.0.0", + "xtend": "^4.0.1" + } + }, + "underscore": { + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz", + "integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI=", + "dev": true + }, + "underscore-contrib": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/underscore-contrib/-/underscore-contrib-0.3.0.tgz", + "integrity": "sha1-ZltmwkeD+PorGMn4y7Dix9SMJsc=", + "dev": true, + "requires": { + "underscore": "1.6.0" + }, + "dependencies": { + "underscore": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz", + "integrity": "sha1-izixDKze9jM3uLJOT/htRa6lKag=", + "dev": true + } + } + }, + "unicode-canonical-property-names-ecmascript": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz", + "integrity": "sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ==", + "dev": true + }, + "unicode-match-property-ecmascript": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz", + "integrity": "sha512-L4Qoh15vTfntsn4P1zqnHulG0LdXgjSO035fEpdtp6YxXhMT51Q6vgM5lYdG/5X3MjS+k/Y9Xw4SFCY9IkR0rg==", + "dev": true, + "requires": { + "unicode-canonical-property-names-ecmascript": "^1.0.4", + "unicode-property-aliases-ecmascript": "^1.0.4" + } + }, + "unicode-match-property-value-ecmascript": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.0.2.tgz", + "integrity": "sha512-Rx7yODZC1L/T8XKo/2kNzVAQaRE88AaMvI1EF/Xnj3GW2wzN6fop9DDWuFAKUVFH7vozkz26DzP0qyWLKLIVPQ==", + "dev": true + }, + "unicode-property-aliases-ecmascript": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.0.4.tgz", + "integrity": "sha512-2WSLa6OdYd2ng8oqiGIWnJqyFArvhn+5vgx5GTxMbUYjCYKUcuKS62YLFF0R/BDGlB1yzXjQOLtPAfHsgirEpg==", + "dev": true + }, + "union-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", + "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", + "dev": true, + "requires": { + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^0.4.3" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "set-value": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", + "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", + "dev": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.1", + "to-object-path": "^0.3.0" + } + } + } + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + }, + "unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", + "dev": true + }, + "unset-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", + "dev": true, + "requires": { + "has-value": "^0.3.1", + "isobject": "^3.0.0" + }, + "dependencies": { + "has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", + "dev": true, + "requires": { + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" + }, + "dependencies": { + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, + "requires": { + "isarray": "1.0.0" + } + } + } + }, + "has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", + "dev": true + } + } + }, + "upath": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/upath/-/upath-1.1.0.tgz", + "integrity": "sha512-bzpH/oBhoS/QI/YtbkqCg6VEiPYjSZtrHQM6/QnJS6OL9pKUFLqb3aFh4Scvwm45+7iAgiMkLhSbaZxUqmrprw==", + "dev": true + }, + "uri-js": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + }, + "dependencies": { + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true + } + } + }, + "urix": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", + "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", + "dev": true + }, + "url": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", + "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", + "dev": true, + "requires": { + "punycode": "1.3.2", + "querystring": "0.2.0" + }, + "dependencies": { + "punycode": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", + "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", + "dev": true + } + } + }, + "use": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", + "dev": true + }, + "util": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", + "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", + "dev": true, + "requires": { + "inherits": "2.0.3" + } + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "dev": true + }, + "util.promisify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/util.promisify/-/util.promisify-1.0.0.tgz", + "integrity": "sha512-i+6qA2MPhvoKLuxnJNpXAGhg7HphQOSUq2LKMZD0m15EiskXUkMvKdF4Uui0WYeCUGea+o2cw/ZuwehtfsrNkA==", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "object.getownpropertydescriptors": "^2.0.3" + } + }, + "utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", + "dev": true + }, + "uuid": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==", + "dev": true + }, + "validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "requires": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", + "dev": true + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "vm-browserify": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz", + "integrity": "sha1-XX6kW7755Kb/ZflUOOCofDV9WnM=", + "dev": true, + "requires": { + "indexof": "0.0.1" + } + }, + "w3c-hr-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz", + "integrity": "sha1-gqwr/2PZUOqeMYmlimViX+3xkEU=", + "dev": true, + "requires": { + "browser-process-hrtime": "^0.1.2" + } + }, + "walk": { + "version": "2.3.9", + "resolved": "https://registry.npmjs.org/walk/-/walk-2.3.9.tgz", + "integrity": "sha1-MbTbZnjyrgHDnqn7hyWpAx5Vins=", + "dev": true, + "requires": { + "foreachasync": "^3.0.0" + } + }, + "walker": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.7.tgz", + "integrity": "sha1-L3+bj9ENZ3JisYqITijRlhjgKPs=", + "dev": true, + "requires": { + "makeerror": "1.0.x" + } + }, + "watch": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/watch/-/watch-0.18.0.tgz", + "integrity": "sha1-KAlUdsbffJDJYxOJkMClQj60uYY=", + "dev": true, + "requires": { + "exec-sh": "^0.2.0", + "minimist": "^1.2.0" + } + }, + "watchify": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/watchify/-/watchify-3.11.0.tgz", + "integrity": "sha512-7jWG0c3cKKm2hKScnSAMUEUjRJKXUShwMPk0ASVhICycQhwND3IMAdhJYmc1mxxKzBUJTSF5HZizfrKrS6BzkA==", + "dev": true, + "requires": { + "anymatch": "^1.3.0", + "browserify": "^16.1.0", + "chokidar": "^1.0.0", + "defined": "^1.0.0", + "outpipe": "^1.1.0", + "through2": "^2.0.0", + "xtend": "^4.0.0" + }, + "dependencies": { + "anymatch": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz", + "integrity": "sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==", + "dev": true, + "requires": { + "micromatch": "^2.1.5", + "normalize-path": "^2.0.0" + } + }, + "arr-diff": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", + "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", + "dev": true, + "requires": { + "arr-flatten": "^1.0.1" + } + }, + "array-unique": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", + "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", + "dev": true + }, + "braces": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", + "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", + "dev": true, + "requires": { + "expand-range": "^1.8.1", + "preserve": "^0.2.0", + "repeat-element": "^1.1.2" + } + }, + "browserify": { + "version": "16.2.3", + "resolved": "https://registry.npmjs.org/browserify/-/browserify-16.2.3.tgz", + "integrity": "sha512-zQt/Gd1+W+IY+h/xX2NYMW4orQWhqSwyV+xsblycTtpOuB27h1fZhhNQuipJ4t79ohw4P4mMem0jp/ZkISQtjQ==", + "dev": true, + "requires": { + "JSONStream": "^1.0.3", + "assert": "^1.4.0", + "browser-pack": "^6.0.1", + "browser-resolve": "^1.11.0", + "browserify-zlib": "~0.2.0", + "buffer": "^5.0.2", + "cached-path-relative": "^1.0.0", + "concat-stream": "^1.6.0", + "console-browserify": "^1.1.0", + "constants-browserify": "~1.0.0", + "crypto-browserify": "^3.0.0", + "defined": "^1.0.0", + "deps-sort": "^2.0.0", + "domain-browser": "^1.2.0", + "duplexer2": "~0.1.2", + "events": "^2.0.0", + "glob": "^7.1.0", + "has": "^1.0.0", + "htmlescape": "^1.1.0", + "https-browserify": "^1.0.0", + "inherits": "~2.0.1", + "insert-module-globals": "^7.0.0", + "labeled-stream-splicer": "^2.0.0", + "mkdirp": "^0.5.0", + "module-deps": "^6.0.0", + "os-browserify": "~0.3.0", + "parents": "^1.0.1", + "path-browserify": "~0.0.0", + "process": "~0.11.0", + "punycode": "^1.3.2", + "querystring-es3": "~0.2.0", + "read-only-stream": "^2.0.0", + "readable-stream": "^2.0.2", + "resolve": "^1.1.4", + "shasum": "^1.0.0", + "shell-quote": "^1.6.1", + "stream-browserify": "^2.0.0", + "stream-http": "^2.0.0", + "string_decoder": "^1.1.1", + "subarg": "^1.0.0", + "syntax-error": "^1.1.1", + "through2": "^2.0.0", + "timers-browserify": "^1.0.1", + "tty-browserify": "0.0.1", + "url": "~0.11.0", + "util": "~0.10.1", + "vm-browserify": "^1.0.0", + "xtend": "^4.0.0" + } + }, + "chokidar": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-1.7.0.tgz", + "integrity": "sha1-eY5ol3gVHIB2tLNg5e3SjNortGg=", + "dev": true, + "requires": { + "anymatch": "^1.3.0", + "async-each": "^1.0.0", + "fsevents": "^1.0.0", + "glob-parent": "^2.0.0", + "inherits": "^2.0.1", + "is-binary-path": "^1.0.0", + "is-glob": "^2.0.0", + "path-is-absolute": "^1.0.0", + "readdirp": "^2.0.0" + } + }, + "concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "detective": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/detective/-/detective-5.1.0.tgz", + "integrity": "sha512-TFHMqfOvxlgrfVzTEkNBSh9SvSNX/HfF4OFI2QFGCyPm02EsyILqnUeb5P6q7JZ3SFNTBL5t2sePRgrN4epUWQ==", + "dev": true, + "requires": { + "acorn-node": "^1.3.0", + "defined": "^1.0.0", + "minimist": "^1.1.1" + } + }, + "domain-browser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", + "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", + "dev": true + }, + "events": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/events/-/events-2.1.0.tgz", + "integrity": "sha512-3Zmiobend8P9DjmKAty0Era4jV8oJ0yGYe2nJJAxgymF9+N8F2m0hhZiMoWtcfepExzNKZumFU3ksdQbInGWCg==", + "dev": true + }, + "expand-brackets": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", + "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", + "dev": true, + "requires": { + "is-posix-bracket": "^0.1.0" + } + }, + "extglob": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", + "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", + "dev": true, + "requires": { + "is-extglob": "^1.0.0" + } + }, + "glob-parent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", + "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", + "dev": true, + "requires": { + "is-glob": "^2.0.0" + } + }, + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", + "dev": true + }, + "is-glob": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "dev": true, + "requires": { + "is-extglob": "^1.0.0" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + }, + "micromatch": { + "version": "2.3.11", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", + "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", + "dev": true, + "requires": { + "arr-diff": "^2.0.0", + "array-unique": "^0.2.1", + "braces": "^1.8.2", + "expand-brackets": "^0.1.4", + "extglob": "^0.3.1", + "filename-regex": "^2.0.0", + "is-extglob": "^1.0.0", + "is-glob": "^2.0.1", + "kind-of": "^3.0.2", + "normalize-path": "^2.0.1", + "object.omit": "^2.0.0", + "parse-glob": "^3.0.4", + "regex-cache": "^0.4.2" + } + }, + "module-deps": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/module-deps/-/module-deps-6.2.0.tgz", + "integrity": "sha512-hKPmO06so6bL/ZvqVNVqdTVO8UAYsi3tQWlCa+z9KuWhoN4KDQtb5hcqQQv58qYiDE21wIvnttZEPiDgEbpwbA==", + "dev": true, + "requires": { + "JSONStream": "^1.0.3", + "browser-resolve": "^1.7.0", + "cached-path-relative": "^1.0.0", + "concat-stream": "~1.6.0", + "defined": "^1.0.0", + "detective": "^5.0.2", + "duplexer2": "^0.1.2", + "inherits": "^2.0.1", + "parents": "^1.0.0", + "readable-stream": "^2.0.2", + "resolve": "^1.4.0", + "stream-combiner2": "^1.1.1", + "subarg": "^1.0.0", + "through2": "^2.0.0", + "xtend": "^4.0.0" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "vm-browserify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.0.tgz", + "integrity": "sha512-iq+S7vZJE60yejDYM0ek6zg308+UZsdtPExWP9VZoCFCz1zkJoXFnAX7aZfd/ZwrkidzdUZL0C/ryW+JwAiIGw==", + "dev": true + } + } + }, + "webidl-conversions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", + "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", + "dev": true + }, + "whatwg-encoding": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", + "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", + "dev": true, + "requires": { + "iconv-lite": "0.4.24" + } + }, + "whatwg-mimetype": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.2.0.tgz", + "integrity": "sha512-5YSO1nMd5D1hY3WzAQV3PzZL83W3YeyR1yW9PcH26Weh1t+Vzh9B6XkDh7aXm83HBZ4nSMvkjvN2H2ySWIvBgw==", + "dev": true + }, + "whatwg-url": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-6.5.0.tgz", + "integrity": "sha512-rhRZRqx/TLJQWUpQ6bmrt2UV4f0HCQ463yQuONJqC6fO2VoEb1pTYddbe59SkYq87aoM5A3bdhMZiUiVws+fzQ==", + "dev": true, + "requires": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "dev": true + }, + "window-size": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", + "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", + "dev": true, + "optional": true + }, + "wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", + "dev": true + }, + "wrap-ansi": { + "version": "2.1.0", + "resolved": "http://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "dev": true, + "requires": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + } + } + }, + "wrap-comment": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/wrap-comment/-/wrap-comment-1.0.1.tgz", + "integrity": "sha512-APccrMwl/ont0RHFTXNAQfM647duYYEfs6cngrIyTByTI0xbWnDnPSptFZhS68L4WCjt2ZxuhCFwuY6Pe88KZQ==", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "write": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/write/-/write-0.2.1.tgz", + "integrity": "sha1-X8A4KOJkzqP+kUVUdvejxWbLB1c=", + "dev": true, + "requires": { + "mkdirp": "^0.5.1" + } + }, + "write-file-atomic": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.3.0.tgz", + "integrity": "sha512-xuPeK4OdjWqtfi59ylvVL0Yn35SF3zgcAcv7rBPFHVaEapaDr4GdGgm3j7ckTwH9wHL7fGmgfAnb0+THrHb8tA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.11", + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.2" + } + }, + "ws": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-5.2.2.tgz", + "integrity": "sha512-jaHFD6PFv6UgoIVda6qZllptQsMlDEJkTQcybzzXDYM1XO9Y8em691FGMPmM46WGyLU4z9KMgQN+qrux/nhlHA==", + "dev": true, + "requires": { + "async-limiter": "~1.0.0" + } + }, + "xml-name-validator": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", + "dev": true + }, + "xmlcreate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-1.0.2.tgz", + "integrity": "sha1-+mv3YqYKQT+z3Y9LA8WyaSONMI8=", + "dev": true + }, + "xmlhttprequest": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz", + "integrity": "sha1-Z/4HXFwk/vOfnWX197f+dRcZaPw=" + }, + "xregexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/xregexp/-/xregexp-4.0.0.tgz", + "integrity": "sha512-PHyM+sQouu7xspQQwELlGwwd05mXUFqwFYfqPO0cC7x4fxyHnnuetmQr6CjJiafIDoH4MogHb9dOoJzR/Y4rFg==", + "dev": true + }, + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + }, + "y18n": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", + "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", + "dev": true + }, + "yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", + "dev": true + }, + "yargs": { + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.1.tgz", + "integrity": "sha512-B0vRAp1hRX4jgIOWFtjfNjd9OA9RWYZ6tqGA9/I/IrTMsxmKvtWy+ersM+jzpQqbC3YfLzeABPdeTgcJ9eu1qQ==", + "dev": true, + "requires": { + "cliui": "^4.0.0", + "decamelize": "^2.0.0", + "find-up": "^3.0.0", + "get-caller-file": "^1.0.1", + "os-locale": "^2.0.0", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^2.0.0", + "which-module": "^2.0.0", + "y18n": "^3.2.1 || ^4.0.0", + "yargs-parser": "^10.1.0" + } + }, + "yargs-parser": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.1.0.tgz", + "integrity": "sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ==", + "dev": true, + "requires": { + "camelcase": "^4.1.0" + } + } + } +} diff --git a/package.json b/package.json index 7ec6c20..8355224 100644 --- a/package.json +++ b/package.json @@ -1,48 +1,16 @@ { - "name": "tag", + "name": "text-annotation-graphs", "version": "0.0.1", "description": "A modular annotation system that supports complex, interactive annotation graphs embedded on top of sequences of text.", - "main": "main.js", + "main": "src/tag.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", - "preall": "npm run update-install && colors --white \" - \" --cyan \"Starting build process: Will clean, build, and copy to dist (./dist)\"", - "postall": "colors --white \" - \" --cyan \"Build process finished\"", - "all": "npm-run-all clean build dist", - "preclean": "colors --white \" - \" --green \"Bundling sources\"", - "clean": "npm-run-all --parallel clean:*", - "clean:build": "rimraf build", - "clean:dist": "rimraf dist", - "preupdate-install": "echo \" - Installing/Updating NPM packages\"", - "update-install": "npm install --no-optional", - "build": "mkdirp build && npm-run-all --parallel build:css build:fonts build:js", - "prebuild:css": "colors --white \" - \" --green \"Bundling and minifying CSS files\"", - "build:css": "mkdirp build/css && npm-run-all build:css:vendor build:css:app", - "build:css:vendor": "npm-run-all build:css:vendor:copy build:css:vendor:minify", - "build:css:vendor:copy": "npm-run-all --parallel build:css:copy:*", - "build:css:copy:novender": "colors --white \" - \" --cyan \"No vendor CSS to copy...\"", - "build:css:vendor:minify": "cleancss -o build/css/vendor.min.css build/css/*.css", - "build:css:app": "npm run build:css:app:minify", - "build:css:app:minify": "cleancss -o build/css/app.min.css src/css/app.css", - "prebuild:fonts": "colors --white \" - \" --green \"Collecting font files\"", - "build:fonts": "colors --white \" - \" --green \"No font files specified...\"", - "prebuild:js": "colors --white \" - \" --green \"Bundling and minifying JS files\"", - "build:js": "mkdirp build/js && npm run build:js:app", - "build:js:app": "npm run bundle && npm run build:js:app:minify", - "build:js:app:minify": "uglifyjs build/js/bundle.js -o build/js/tag.min.js", - "prebundle": "colors --white \" - \" --cyan \"Bundling ES6\"", - "bundle": "browserify src/js/main.js -t [ babelify --presets [ es2015 ] ] --outfile build/js/bundle.js -v", - "predist": "colors --white \" - \" --green \"Copying built files to dist directory (dist/tag)\"", - "dist": "npm-run-all --parallel dist:css dist:js", - "dist:css": "mkdirp dist/tag/css && npm-run-all --parallel dist:css:*", - "dist:css:vendor": "cpy build/css/vendor.min.css dist/tag/css/", - "dist:css:app": "cpy build/css/app.min.css dist/tag/css/ --rename=tag.min.css", - "dist:js": "mkdirp dist/tag/js && npm run dist:js:app", - "dist:js:app": "cpy build/js/tag.min.js dist/tag/js/", - "watch": "npm-run-all --parallel watch:css watch:js", - "prewatch:css": "colors --white \" - \" --cyan \"Watching for updates to app.css. (Minified)\"", - "watch:css": "onchange src/css/main.css -- cleancss -d -o dist/tag/css/tag.min.css", - "prewatch:js": "colors --white \" - \" --cyan \"Watching for updates to main.js. (Recompiled verbatim; run 'build' task for minification)\"", - "watch:js": "watchify src/js/main.js -t -t [ babelify --presets [ es2015 ] ] --outfile dist/tag/js/tag.min.js -v" + "test": "jest --verbose", + "build": "run build:all", + "quick": "run build:quick", + "watch": "run watch:quick", + "demo-build": "run demo:build:all && run demo:run", + "demo": "run demo:run", + "generate-docs": "run build:app:docs:all" }, "repository": { "type": "git", @@ -61,26 +29,50 @@ }, "homepage": "https://github.com/CreativeCodingLab/TextAnnotationGraphs#readme", "dependencies": { + "@babel/runtime": "^7.1.5", + "common-tags": "^1.8.0", "d3": "^4.12.2", - "lodash": "^4.17.4", + "jquery": "^3.3.1", + "js-yaml": "^3.12.0", + "lodash": "^4.17.11", + "randomcolor": "^0.5.3", "svg.draggable.js": "^2.2.1", "svg.js": "^2.6.3" }, "devDependencies": { - "babel-cli": "^6.26.0", - "babel-core": "^6.26.0", - "babel-preset-es2015": "^6.24.1", - "babelify": "^8.0.0", + "@babel/core": "^7.1.5", + "@babel/plugin-proposal-decorators": "^7.1.2", + "@babel/plugin-transform-runtime": "^7.1.0", + "@babel/preset-env": "^7.1.5", + "autobind-decorator": "^2.2.1", + "autoprefixer": "^9.3.0", + "babel-core": "^7.0.0-bridge.0", + "babel-eslint": "^10.0.1", + "babelify": "^10.0.0", + "bootstrap": "^4.1.2", + "bootstrap-colorpicker": "^3.0.3", + "bootstrap-slider": "^10.4.2", "browserify": "^14.4.0", + "chalk": "^2.4.1", + "chokidar-cli": "^1.2.1", "clean-css-cli": "^4.1.10", - "colors-cli": "^1.0.9", - "cpy-cli": "^1.0.1", - "deamdify": "^0.3.0", + "codeflask": "^1.3.0", + "cpy-cli": "^2.0.0", + "eslint": "^5.6.1", + "express": "^4.16.3", + "hbs": "^4.0.1", + "hbsfy": "^2.8.1", + "jest": "^23.6.0", + "jsdoc": "^3.5.5", "mkdirp": "^0.5.1", - "npm-run-all": "^4.1.1", - "onchange": "^3.2.1", - "rimraf": "^2.6.2", - "uglify-es": "^3.3.7", + "morgan": "^1.9.1", + "popper.js": "^1.14.4", + "postcss-cli": "^6.0.1", + "prismjs": "^1.15.0", + "rimraf": "^2.6.3", + "runjs": "^4.3.2", + "sass": "^1.14.3", + "tinyify": "^2.4.3", "watchify": "^3.9.0" } } diff --git a/runfile.js b/runfile.js new file mode 100644 index 0000000..0c6877f --- /dev/null +++ b/runfile.js @@ -0,0 +1,517 @@ +/** + * Contains the main build scripts + * See https://github.com/pawelgalazka/runjs + */ + +const {run} = require("runjs"); +const chalk = require("chalk"); +const {performance} = require("perf_hooks"); + +// Coloured output/logging +// ----------------------- +// Force colours on MinTTY (i.e., for the Windows Git SDK). Change this if +// it garbles output on other terminals. +chalk.default.enabled = true; +chalk.default.level = 3; + +// Output colours +const colourType = chalk.default.green; +const colourOutput = chalk.default.cyan; +const colourInfo = chalk.default.yellow; + +// Project-specific configuration +// ------------------------------ +const config = { + // Folder for built static assets -- Build tasks will put their output here + assetsDir: "dist/tag", + // Sub-folders for different file types + scriptsDir: "js", + stylesDir: "css" +}; + +// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= +// Build tasks +// ----------- +const build = {}; + +// --------- +// App tasks +// --------- +// Generates various scripts and styles from app-specific sources, putting +// them in the static assets directory +build.app = {}; + +// App scripts +// ----------- +// Bundles up the various .js scripts, putting them in the static assets +// directory. `quick` versions of the build functions leave out expensive +// transforms like babelify and tinyify. +build.app.scripts = { + // Main TAG bundle + // ----------------- + async tag() { + const input = "src/js/main.js"; + const output = `${config.assetsDir}/${config.scriptsDir}/tag.min.js`; + const type = "Build"; + const desc = "Main TAG JS bundle"; + + console.log(`\n[${colourType(type)}: ${colourOutput(output)}] ${colourInfo(desc)}`); + + run(`mkdirp ${config.assetsDir}/${config.scriptsDir}`); + return run(`browserify ${input} -t [ babelify ] -t [ hbsfy ] -p [ tinyify ] -o ${output} -v`, {async: true}); + }, + async quickTag() { + const input = "src/js/main.js"; + const output = `${config.assetsDir}/${config.scriptsDir}/tag.js`; + const type = "Build"; + const desc = "Main TAG JS bundle (Unminified)"; + + console.log(`\n[${colourType(type)}: ${colourOutput(output)}] ${colourInfo(desc)}`); + + run(`mkdirp ${config.assetsDir}/${config.scriptsDir}`); + return run(`browserify ${input} -t [ babelify ] -t [ hbsfy ] -o ${output} -v`, {async: true}); + }, + + // All/Quick + // --------- + all() { + return Promise.all([ + build.app.scripts.tag(), + build.app.scripts.quickTag() + ]); + }, + quick() { + return Promise.all([ + build.app.scripts.quickTag() + ]); + } +}; + +// App styles +// ---------- +// Bundles up the app-specific .css files +build.app.styles = { + // Main TAG Sass + // ---------------- + async tag() { + const input = "src/css/tag.scss"; + const output = `${config.assetsDir}/${config.stylesDir}/tag.min.css`; + const type = "Build"; + const desc = "Main TAG CSS bundle"; + + console.log(`\n[${colourType(type)}: ${colourOutput(output)}] ${colourInfo(desc)}`); + + await run(`sass ${input} ${output}`, {async: true}); + // Autoprefixer + await run(`postcss ${output} --use autoprefixer --replace`, {async: true}); + // Minify + return run(`cleancss ${output} -o ${output}`, {async: true}); + }, + async quickTag() { + const input = "src/css/tag.scss"; + const output = `${config.assetsDir}/${config.stylesDir}/tag.css`; + const type = "Build"; + const desc = "Main TAG CSS bundle (Unminified)"; + + console.log(`\n[${colourType(type)}: ${colourOutput(output)}] ${colourInfo(desc)}`); + + await run(`sass ${input} ${output}`, {async: true}); + // Autoprefixer + return run(`postcss ${output} --use autoprefixer --replace`, {async: true}); + }, + + // All/Quick + // --------- + all() { + return Promise.all([ + build.app.styles.tag(), + build.app.styles.quickTag() + ]); + }, + quick() { + return Promise.all([ + build.app.styles.quickTag() + ]); + } +}; + +// App docs +// -------- +// Generates the documentation for the app +build.app.docs = { + // JSDoc + // ----- + async jsdoc() { + const input = "src/js"; + const output = "docs"; + const type = "Build"; + const desc = "Main TAG documentation"; + + console.log(`\n[${colourType(type)}: ${colourOutput(output)}] ${colourInfo(desc)}`); + + // Clean and (re-)build docs + await run(`rimraf ${output}`, {async: true}); + await run(`jsdoc ${input} README.md -c .jsdoc.json -d ${output} --verbose`, {async: true}); + return build.app.docs.figures(); + }, + + // Copy figures to doc directory + async figures() { + const input = "figs"; + const output = "docs/figs"; + const type = "Build"; + const desc = "TAG documentation figures"; + + console.log(`\n[${colourType(type)}: ${colourOutput(output)}] ${colourInfo(desc)}`); + + return run(`cpy ${input} ${output}`, {async: true}); + }, + + // All/Quick + // --------- + all() { + return Promise.all([ + build.app.docs.jsdoc() + ]); + }, + quick() { + return Promise.all([ + build.app.docs.jsdoc() + ]); + } +}; + +// All/quick +// --------- +build.app.all = async () => { + return Promise.all([ + build.app.scripts.all(), + build.app.styles.all(), + build.app.docs.all() + ]); +}; +build.app.quick = async () => { + return Promise.all([ + build.app.scripts.quick(), + build.app.styles.quick(), + build.app.docs.all() + ]); +}; + +// ------------ +// Vendor tasks +// ------------ +// Copies and post-processes various vendor scripts and styles from the +// `node_modules` directory, putting them in the static assets directory. +build.vendor = {}; + +// Vendor styles +// -------------- +build.vendor.styles = { + // Concat and minify all vendor CSS files that can be directly used without + // further processing + async concat() { + const input = [].join(" "); + const output = `${config.assetsDir}/${config.stylesDir}/vendor.min.css`; + const type = "Build (Vendor)"; + const desc = "Vendor CSS (concatenate + minify)"; + + console.log(`\n[${colourType(type)}: ${colourOutput(output)}] ${colourInfo(desc)}`); + + if (input === "") { + console.log(`No vendor CSS to bundle.`); + } else { + // Cleancss chokes if the output directory is not present + run(`mkdirp ${config.assetsDir}/${config.stylesDir}`); + return run(`cleancss ${input} -o ${output}`, {async: true}); + } + }, + + // All/Quick + // --------- + all() { + return Promise.all([ + build.vendor.styles.concat() + ]); + }, + quick() { + return build.vendor.styles.all(); + } +}; + +// All/quick +// --------- +build.vendor.all = async () => { + return Promise.all([ + build.vendor.styles.all() + ]); +}; +build.vendor.quick = async () => { + return Promise.all([ + build.vendor.styles.quick() + ]); +}; + +// ------------------- +// Comprehensive tasks +// ------------------- +build.all = async () => { + const t0 = performance.now(); + + await Promise.all([ + build.app.all(), + build.vendor.all() + ]); + + const time = (performance.now() - t0) / 1000; + const doneString = `Done! (in ${time.toFixed(3)}s)`; + console.log(); + console.log(`${colourInfo(doneString)}`); +}; + +build.quick = async () => { + const t0 = performance.now(); + + await Promise.all([ + build.app.quick(), + build.vendor.quick() + ]); + + const time = (performance.now() - t0) / 1000; + const doneString = `Done! (in ${time.toFixed(3)}s)`; + console.log(); + console.log(`${colourInfo(doneString)}`); +}; + +// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= +// Watch tasks +// ----------- +const watch = {}; + +watch.scripts = { + async tag() { + const input = "src/js/main.js"; + const output = `${config.assetsDir}/${config.scriptsDir}/tag.min.js`; + const type = "Watch"; + const desc = "Main TAG JS bundle"; + + console.log(`\n[${colourType(type)}: ${colourOutput(output)}] ${colourInfo(desc)}`); + + return run(`watchify ${input} -t [ babelify ] -t [ hbsfy ] -p [ tinyify ] -o ${output} -v --poll=500`, {async: true}); + }, + async quickTag() { + const input = "src/js/main.js"; + const output = `${config.assetsDir}/${config.scriptsDir}/tag.js`; + const type = "Watch"; + const desc = "Main TAG JS bundle (Unminified)"; + + console.log(`\n[${colourType(type)}: ${colourOutput(output)}] ${colourInfo(desc)}`); + + return run(`watchify ${input} -t [ babelify ] -t [ hbsfy ] -o ${output} -v --poll=500`, {async: true}); + }, + + all() { + return Promise.all([ + watch.scripts.tag(), + watch.scripts.quickTag() + ]); + }, + quick() { + return Promise.all([ + watch.scripts.quickTag() + ]); + } +}; + +watch.styles = { + async tag() { + const input = "src/css/tag.scss"; + const output = `${config.assetsDir}/${config.stylesDir}/tag.min.css`; + const type = "Watch"; + const desc = "Main TAG CSS bundle"; + + console.log(`\n[${colourType(type)}: ${colourOutput(output)}] ${colourInfo(desc)}`); + + return run(`chokidar ${input} --initial -c "sass ${input} ${output} && postcss ${output} --use autoprefixer --replace && cleancss ${output} -o ${output} -d"`, {async: true}); + }, + async quickTag() { + const input = "src/css/tag.scss"; + const output = `${config.assetsDir}/${config.stylesDir}/tag.css`; + const type = "Watch"; + const desc = "Main TAG CSS bundle (Unminified)"; + + console.log(`\n[${colourType(type)}: ${colourOutput(output)}] ${colourInfo(desc)}`); + + return run(`chokidar ${input} --initial -c "sass ${input} ${output} && postcss ${output} --use autoprefixer --replace --verbose"`, {async: true}); + }, + + all() { + return Promise.all([ + watch.styles.tag(), + watch.styles.quickTag() + ]); + }, + quick() { + return Promise.all([ + watch.styles.quickTag() + ]); + } +}; + +watch.all = async () => { + await Promise.all([ + watch.scripts.all(), + watch.styles.all() + ]); +}; + +watch.quick = async () => { + await Promise.all([ + watch.scripts.quick(), + watch.styles.quick() + ]); +}; + +// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= +// Demo tasks +// ---------- +const demo = { + build: { + async scripts() { + const input = "demo/src/demo.js"; + const output = `demo/demo.min.js`; + const type = "Build"; + const desc = "TAG demo JS bundle"; + + console.log(`\n[${colourType(type)}: ${colourOutput(output)}] ${colourInfo(desc)}`); + + return run(`browserify ${input} -t [ babelify ] -t [ hbsfy ] -p [ tinyify ] -o ${output} -v`, {async: true}); + }, + + async BSColourPicker() { + const input = "node_modules/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.min.js"; + const output = `demo/`; + const type = "Build (Vendor)"; + const desc = "Bootstrap Colorpicker Library"; + + // `cpy` takes a directory rather than a file as its target + console.log(`\n[${colourType(type)}: ${colourOutput(output + "bootstrap-colorpicker.min.js")}] ${colourInfo(desc)}`); + + return run(`cpy ${input} ${output}`, {async: true}); + }, + + async styles() { + const input = "demo/src/demo.scss"; + const output = `demo/demo.min.css`; + const type = "Build"; + const desc = "TAG demo CSS bundle"; + + console.log(`\n[${colourType(type)}: ${colourOutput(output)}] ${colourInfo(desc)}`); + + await run(`sass ${input} ${output}`, {async: true}); + // Autoprefixer + await run(`postcss ${output} --use autoprefixer --replace`, {async: true}); + // Minify + return run(`cleancss ${output} -o ${output}`, {async: true}); + }, + + async all() { + return Promise.all([ + demo.build.scripts(), + demo.build.BSColourPicker(), + demo.build.styles() + ]); + }, + }, + + // For ease of demo development; intentionally left undocumented + // (end-users should be importing the library into their own projects + // rather than building directly off the demo script) + watch: { + async scripts() { + const input = "demo/src/demo.js"; + const output = `demo/demo.min.js`; + const type = "Watch"; + const desc = "TAG demo JS bundle"; + + console.log(`\n[${colourType(type)}: ${colourOutput(output)}] ${colourInfo(desc)}`); + + return run(`watchify ${input} -d -t [ babelify ] -t [ hbsfy ] -p [ tinyify ] -o ${output} -v --poll=500`, {async: true}); + }, + + async BSColourPicker() { + const input = "node_modules/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.min.js"; + const output = `demo/`; + const type = "Build (Vendor)"; + const desc = "Bootstrap Colorpicker Library"; + + // `cpy` takes a directory rather than a file as its target + console.log(`\n[${colourType(type)}: ${colourOutput(output + "bootstrap-colorpicker.min.js")}] ${colourInfo(desc)}`); + + return run(`chokidar ${input} --initial -c "cpy ${input} ${output}"`, {async: true}); + }, + + async styles() { + const input = "demo/src/demo.scss"; + const output = `demo/demo.min.css`; + const type = "Build"; + const desc = "TAG demo CSS bundle"; + + console.log(`\n[${colourType(type)}: ${colourOutput(output)}] ${colourInfo(desc)}`); + + return run(`chokidar ${input} -c "sass ${input} ${output} && postcss ${output} --use autoprefixer --replace && cleancss ${output} -o ${output}"`, {async: true}); + }, + + async coreStyles() { + // This task rebuilds the demo stylesheet when the core TAG stylesheet + // changes + // (`demo.scss` imports `tag.css`, which needs to be rebuilt from + // `tag.scss`) + const input = "src/css/tag.scss"; + const output = `${config.assetsDir}/${config.stylesDir}/tag.css`; + const input2 = "demo/src/demo.scss"; + const output2 = `demo/demo.min.css`; + const type = "Build"; + const desc = "Main TAG CSS bundle (Unminified)"; + + console.log(`\n[${colourType(type)}: ${colourOutput(output)}] ${colourInfo(desc)}`); + + return run(`chokidar ${input} --initial -c "sass ${input} ${output} && postcss ${output} --use autoprefixer --replace && sass ${input2} ${output2} && postcss ${output2} --use autoprefixer --replace && cleancss ${output2} -o ${output2}"`, {async: true}); + }, + + async docs() { + // This task regenerates the documentation whenever one of the + // source files (or the JSDoc template) changes + const input = "src/**/*.js"; + const input2 = "README.md"; + const input3 = "src/jsdoc-template/**/*"; + const output = `${config.assetsDir}/${config.stylesDir}/tag.css`; + const type = "Watch"; + const desc = "Main TAG documentation"; + + console.log(`\n[${colourType(type)}: ${colourOutput(output)}] ${colourInfo(desc)}`); + + return run(`chokidar "${input}" "${input2}" "${input3}" --initial -c "npm run generate-docs"`); + }, + + async all() { + return Promise.all([ + demo.watch.scripts(), + demo.watch.BSColourPicker(), + demo.watch.styles(), + demo.watch.coreStyles(), + demo.watch.docs() + ]); + } + }, + + run() { + return run(`cd demo && node server.js`); + } +}; + +module.exports = { + build, + watch, + demo +}; \ No newline at end of file diff --git a/src/__tests__/__snapshots__/taxonomymanager.test.js.snap b/src/__tests__/__snapshots__/taxonomymanager.test.js.snap new file mode 100644 index 0000000..2334981 --- /dev/null +++ b/src/__tests__/__snapshots__/taxonomymanager.test.js.snap @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`The TaxonomyManager should load an Odin taxonomy (yaml string) 1`] = `"[\\"Alias\\",\\"ModificationTrigger\\",\\"Site\\",{\\"Context\\":[\\"Species\\",\\"CellLine\\",\\"Organ\\",\\"CellType\\",\\"Cellular_component\\",\\"TissueType\\",\\"ContextDirection\\",\\"ContextLocation\\",\\"ContextPossessive\\"]},{\\"Modification\\":[\\"PTM\\",{\\"Mutant\\":[\\"GenericMutant\\",\\"SubstitutionMutant\\",\\"DeletionMutant\\",\\"DuplicationMutant\\",\\"InsertionMutant\\",\\"FrameshiftMutant\\"]},\\"EventSite\\",\\"Negation\\"]},{\\"PossibleController\\":[{\\"Event\\":[{\\"SimpleEvent\\":[\\"Binding\\",\\"Generic_event\\",\\"Translocation\\",{\\"Amount\\":[{\\"IncreaseAmount\\":[\\"Transcription\\"]},\\"DecreaseAmount\\"]},{\\"AdditionEvent\\":[\\"Acetylation\\",\\"Farnesylation\\",\\"Glycosylation\\",\\"Hydrolysis\\",\\"Hydroxylation\\",\\"Methylation\\",{\\"Phosphorylation\\":[\\"AutoPhosphorylation\\"]},\\"Ribosylation\\",\\"Sumoylation\\",\\"Ubiquitination\\"]},{\\"RemovalEvent\\":[\\"Deacetylation\\",\\"Defarnesylation\\",\\"Deglycosylation\\",\\"Dehydrolysis\\",\\"Dehydroxylation\\",\\"Demethylation\\",\\"Dephosphorylation\\",\\"Deribosylation\\",\\"Desumoylation\\",\\"Deubiquitination\\"]}]},{\\"ComplexEvent\\":[{\\"Regulation\\":[\\"Positive_regulation\\",\\"Negative_regulation\\"]},{\\"ActivationEvent\\":[\\"Positive_activation\\",\\"Negative_activation\\"]}]}]},{\\"Entity\\":[{\\"BioEntity\\":[\\"BioProcess\\",{\\"BioChemicalEntity\\":[\\"Generic_entity\\",\\"Simple_chemical\\",{\\"Equivalable\\":[\\"Family\\",{\\"MacroMolecule\\":[\\"Protein\\",\\"Gene_or_gene_product\\",\\"Complex\\",\\"GENE\\"]}]}]}]}]}]},{\\"Precedence\\":[\\"DirectConnection\\",\\"IndirectConnection\\",{\\"BetweenSentence\\":[\\"TimexAfter\\",\\"TimexBefore\\",\\"SentenceInitialEvent\\",\\"InterAfter\\",\\"InterBefore\\"]},{\\"TAM\\":[\\"Aux\\",{\\"Tense\\":[\\"PastTense\\",\\"PresentTense\\",\\"FutureTense\\"]},{\\"Aspect\\":[\\"Perfective\\",\\"Progressive\\"]}]}]}]"`; diff --git a/src/__tests__/data/taxonomy.yml b/src/__tests__/data/taxonomy.yml new file mode 100644 index 0000000..44971bb --- /dev/null +++ b/src/__tests__/data/taxonomy.yml @@ -0,0 +1,102 @@ +- Alias +- ModificationTrigger +- Site +- Context: + - Species + - CellLine + - Organ + - CellType + - Cellular_component + - TissueType + - ContextDirection + - ContextLocation + - ContextPossessive +- Modification: + - PTM + - Mutant: + - GenericMutant + - SubstitutionMutant + - DeletionMutant + - DuplicationMutant + - InsertionMutant + - FrameshiftMutant + - EventSite + - Negation +- PossibleController: + - Event: + - SimpleEvent: + - Binding + - Generic_event + - Translocation + - Amount: + - IncreaseAmount: + - Transcription + - DecreaseAmount + - AdditionEvent: + - Acetylation + - Farnesylation + - Glycosylation + - Hydrolysis + - Hydroxylation + - Methylation + - Phosphorylation: + - AutoPhosphorylation + - Ribosylation + - Sumoylation + - Ubiquitination + - RemovalEvent: + - Deacetylation + - Defarnesylation + - Deglycosylation + - Dehydrolysis + - Dehydroxylation + - Demethylation + - Dephosphorylation + - Deribosylation + - Desumoylation + - Deubiquitination + - ComplexEvent: + - Regulation: + - Positive_regulation + - Negative_regulation + - ActivationEvent: + - Positive_activation + - Negative_activation + - Entity: + # Any BioEntity may appear as the controlled in an Activation + - BioEntity: + - BioProcess # ex. "apoptosis" + - BioChemicalEntity: + - Generic_entity + - Simple_chemical + - Equivalable: #TODO: Better name + - Family + - MacroMolecule: + - Protein + - Gene_or_gene_product + - Complex + - GENE +# a preliminary taxonomy for assembly (precedence relations) +- Precedence: + # for pairs that are directly (immediately) connected + # difficult to know from odin rules alone, but not impossible + - DirectConnection + # for pairs that are indirectly (not immediately) connected + - IndirectConnection + # Between-sentence precedence + - BetweenSentence: + - TimexAfter + - TimexBefore + - SentenceInitialEvent + - InterAfter + - InterBefore + # tense and aspect detection + - TAM: + - Aux + - Tense: + - PastTense + - PresentTense + - FutureTense + - Aspect: + - Perfective + - Progressive diff --git a/src/__tests__/data/test-odin.json b/src/__tests__/data/test-odin.json new file mode 100644 index 0000000..a99782d --- /dev/null +++ b/src/__tests__/data/test-odin.json @@ -0,0 +1,180 @@ +{ + "documents": { + "-1180172198": { + "sentences": [ + { + "words": ["Gonzo", "married", "Camilla", "."], + "startOffsets": [0, 6, 14, 21], + "endOffsets": [5, 13, 21, 22], + "tags": ["NNP", "VBD", "NNP", "."], + "lemmas": ["Gonzo", "marry", "Camilla", "."], + "entities": ["O", "O", "PERSON", "O"], + "norms": ["O", "O", "O", "O"], + "chunks": ["B-NP", "B-VP", "B-NP", "O"], + "graphs": { + "stanford-basic": { + "edges": [ + { + "source": 1, + "destination": 0, + "relation": "nsubj" + }, + { + "source": 1, + "destination": 2, + "relation": "dobj" + }, + { + "source": 1, + "destination": 3, + "relation": "punct" + } + ], + "roots": [1] + }, + "stanford-collapsed": { + "edges": [ + { + "source": 1, + "destination": 0, + "relation": "nsubj" + }, + { + "source": 1, + "destination": 2, + "relation": "dobj" + }, + { + "source": 1, + "destination": 3, + "relation": "punct" + } + ], + "roots": [1] + } + } + } + ] + } + }, + "mentions": [ + { + "type": "TextBoundMention", + "id": "T:648733472", + "text": "Camilla", + "labels": ["Person", "PossiblePerson", "Entity"], + "tokenInterval": { + "start": 2, + "end": 3 + }, + "characterStartOffset": 14, + "characterEndOffset": 21, + "sentence": 0, + "document": "-1180172198", + "keep": true, + "foundBy": "ner-person" + }, + { + "type": "EventMention", + "id": "E:1351231268", + "text": "Gonzo married Camilla", + "labels": ["Marry"], + "trigger": { + "type": "TextBoundMention", + "id": "T:1627076846", + "text": "married", + "labels": ["Marry"], + "tokenInterval": { + "start": 1, + "end": 2 + }, + "characterStartOffset": 6, + "characterEndOffset": 13, + "sentence": 0, + "document": "-1180172198", + "keep": true, + "foundBy": "marry-syntax-1" + }, + "arguments": { + "spouse": [ + { + "type": "TextBoundMention", + "id": "T:1618195043", + "text": "Gonzo", + "labels": ["Person", "PossiblePerson", "Entity"], + "tokenInterval": { + "start": 0, + "end": 1 + }, + "characterStartOffset": 0, + "characterEndOffset": 5, + "sentence": 0, + "document": "-1180172198", + "keep": true, + "foundBy": "ner-person" + }, + { + "type": "TextBoundMention", + "id": "T:648733472", + "text": "Camilla", + "labels": ["Person", "PossiblePerson", "Entity"], + "tokenInterval": { + "start": 2, + "end": 3 + }, + "characterStartOffset": 14, + "characterEndOffset": 21, + "sentence": 0, + "document": "-1180172198", + "keep": true, + "foundBy": "ner-person" + } + ] + }, + "paths": { + "spouse": { + "T:1618195043": [ + { + "source": 1, + "destination": 0, + "relation": "nsubj" + } + ], + "T:648733472": [ + { + "source": 1, + "destination": 2, + "relation": "dobj" + } + ] + } + }, + "tokenInterval": { + "start": 0, + "end": 3 + }, + "characterStartOffset": 0, + "characterEndOffset": 21, + "sentence": 0, + "document": "-1180172198", + "keep": true, + "foundBy": "marry-syntax-1" + }, + { + "type": "TextBoundMention", + "id": "T:1618195043", + "text": "Gonzo", + "labels": ["Person", "PossiblePerson", "Entity"], + "tokenInterval": { + "start": 0, + "end": 1 + }, + "characterStartOffset": 0, + "characterEndOffset": 5, + "sentence": 0, + "document": "-1180172198", + "keep": true, + "foundBy": "ner-person" + } + ] +} \ No newline at end of file diff --git a/src/__tests__/parser.test.js b/src/__tests__/parser.test.js new file mode 100644 index 0000000..1b9ca8f --- /dev/null +++ b/src/__tests__/parser.test.js @@ -0,0 +1,24 @@ +/** + * Test parser manager + */ + +import Parser from "../js/parse/parse.js"; + +describe("The annotation parser", () => { + it("returns a cloned copy of the parsed data with circular references" + + " intact", () => { + // Pull the sample annotation file + const jsonData = require("./data/test-odin.json"); + + // Parse and get cloned copy + const parser = new Parser(); + const parsed = parser.loadData(jsonData, "odin"); + + // Check circular references + // (Using the first word/link pair as a proxy for the others) + expect(parsed.words[0]).toBe(parsed.words[0].links[0].endpoints[0]); + + // Compare with private copy + expect(parsed.words[0]).not.toBe(parser._parsedData.words[0]); + }); +}); diff --git a/src/__tests__/taxonomymanager.test.js b/src/__tests__/taxonomymanager.test.js new file mode 100644 index 0000000..6c4e992 --- /dev/null +++ b/src/__tests__/taxonomymanager.test.js @@ -0,0 +1,25 @@ +/** + * Test taxonomy manager + */ + +import * as fs from "fs"; + +import TaxonomyManager from "../js/managers/taxonomy.js"; +import Config from "../js/config.js"; + +describe("The TaxonomyManager", () => { + it("should load an Odin taxonomy (yaml string)", () => { + const yamlData = fs.readFileSync("./src/__tests__/data/taxonomy.yml", "utf8"); + + const conf = new Config(); + + // Initialize TaxonomyManager and load data + const taxman = new TaxonomyManager(conf); + + taxman.loadTaxonomyYaml(yamlData); + + const tree = taxman.getTaxonomyTree(); + + expect(JSON.stringify(tree)).toMatchSnapshot(); + }); +}); diff --git a/src/css/app.css b/src/css/app.css deleted file mode 100644 index 8c777b5..0000000 --- a/src/css/app.css +++ /dev/null @@ -1,284 +0,0 @@ -#fill { - /* ensure body takes up entire window */ - position:absolute; - z-index:-1; - top:0; - left:0; - width:100%; - height:100%; -} -body { - margin:0; - -moz-osx-font-smoothing:grayscale; - -webkit-font-smoothing:antialiased; - font-family: BrownPro, Brown, futura, helvetica, arial, sans-serif; - font-size: 11px; - min-height:100%; - overflow-y: scroll; -} - -svg, svg text { - font-family: Nunito, futura, helvetica, arial, sans-serif; - font-weight:600; -} -svg text { - cursor: default; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -#header { - position:fixed; - z-index:100; - width:100%; - padding:10px 20px; - background-image:linear-gradient(to top, rgba(255,255,255,0),rgba(255,255,255,0.8), white, white); - /*background:rgba(255,255,255,0.5);*/ - top:0; - color:#777; - font: 14px/1.5em helvetica, arial, sans-serif; -} - -header > div { - float:right; - display:inline-block; - background:inherit; - position:relative; -} -#dataset, -header > button { - color:inherit; - background: none; - outline:none; - cursor:pointer; - font:inherit; - border:none; - padding:0; - margin:10px; -} -#dataset { - display:inline-block; - height:40px; - background-color:white; - border:1px solid #ddd; - transition:background 200ms ease; -} -#dataset:hover { - background:#fafafa; -} -header > button:hover { - border-bottom:1px solid grey; -} - - -/* input */ -#input-modal { -} -#input-modal textarea { - width:100%; - height:300px; - padding:5px; - font-size:15px; -} -label[for="file-input"] { - padding:10px 15px; - cursor:pointer; - background:steelblue; - color:white; - margin:10px 0; - display:inline-block; - border-radius:5px; -} - -/* modal */ -.modal { - color:#222; - background:rgba(0,0,0,0.3); - width:100%; - height:100%; - top:0; - left:0; - position:fixed; - z-index:1000; - display:none; -} -.modal.open { - display:block; -} -.modal > div { - background:hsl(5,5%,98%); - margin: 10vh auto; - width:80%; - max-width:700px; - height:80vh; - border-radius:6px; - box-shadow: 0 0 20px black; - font-size:14px; - line-height:1.5em; -} -.modal header { - padding: 0 1em; - background:white; - white-space: nowrap; - overflow-x:auto; - cursor:move; - box-shadow: 0 0 1em rgba(0,0,0, 0.15); -} -.modal header .tab { - background: hsl(5, 5%, 85%); - display:inline-block; - margin-top:0.8em; - padding: 0.5em 1em; - cursor:pointer; - border-radius: 3px 3px 0 0; - border:1px solid hsl(5, 5%, 85%); - border-bottom:none; - text-transform: uppercase; - font-size:0.85em; - letter-spacing:0.03em; - color:#555; -} -.modal header .tab.active { - color:#222; - background: hsl(5, 5%, 98%); -} - -.modal .page { - position:relative; - padding: 2em; - padding-top: 0.5em; - display:none; - height:calc(100% - 5.6em); - overflow-y:auto; -} -.modal .page.active { - display:block; -} -.modal svg { - width:100%; - height:100%; - position:absolute; - top:0; - left:0; -} - -#toggle-taxonomy { - font-size:0.9em; - text-decoration:underline; - cursor:pointer; - color:steelblue; - float:right; -} - -#taxonomy > ul { - list-style-type: none; - padding:0; - margin:0; -} -#taxonomy > ul ul { - list-style-type: none; - padding:0; - padding-left: 1.5em; -} -#taxonomy li { - margin-top: 0.5em; - margin-bottom: 0.5em; -} -#taxonomy input[type="checkbox"] { - margin-right: 0.5em; -} -#taxonomy input.colorpicker { - margin-left: 0.5em; - width:5em; - text-align:center; - display:inline-block; - outline:none; - border:1px solid transparent; - padding:0.4em; - border-radius: 3px; - cursor: pointer; - box-shadow: 0 0 8px rgba(0,0,0,0.2); - text-transform:uppercase; - -moz-osx-font-smoothing:initial; - -webkit-font-smoothing:initial; -} -#taxonomy input.colorpicker[disabled="true"] { - border-color:#ccc; - box-shadow: none; - pointer-events:none; - opacity:0.5; -} - -#taxonomy input.colorpicker:focus { - border-color: white; -} - -body > #tree-svg { - border-top: 1px solid #ccc; - /*box-shadow: 0 0 1em #aaa;*/ - background:hsl(5,5%,98%); - position:fixed; - bottom:0; - font-size:14px; - height:200px; - width:100%; - max-height:40vh; -} -body { margin-bottom:200px; } -body.tree-closed { margin-bottom: 0; } -body.tree-closed > #tree-svg { - display:none; -} -body > #tree-svg #tree-close { - display:inline-block; -} -#tree-close { - display:none; -} -#tree-popout, #tree-close { - font-size: 0.9em; - text-decoration: underline; - cursor: pointer; - fill: steelblue; -} - -#tooltip { - width:175px; - background:hsl(40,10%,98%); - margin-bottom:10px; - box-shadow: 0 0 10px #555; - border-radius:3px; - position:absolute; - padding: 8px 0; - font: 14px helvetica, arial, sans-serif; - font-weight: 400; - color:#444; - display:none; - z-index:100; -} -#tooltip.active { - display:block; -} -#tooltip p { - padding: 4px 14px; - margin:0; - cursor:default; -} -#tooltip p:hover { - background-color: rgb(77, 157, 250); - color:white; -} -#tooltip hr { - border-width: 0; - border-top:1px solid #ddd; -} - - -/* svg styles for main vis */ -#main { - margin-top:100px; - margin-bottom:20px; - position:relative; -} \ No newline at end of file diff --git a/src/css/tag.scss b/src/css/tag.scss new file mode 100644 index 0000000..3875473 --- /dev/null +++ b/src/css/tag.scss @@ -0,0 +1,108 @@ +/** + * Core styles for the library + */ + +.tag-element text { + text-anchor: middle; +} + +.row-drag { + stroke-width: 2; + stroke-dasharray: 2, 1; + stroke: rgba(100, 100, 100, 0.3); + transition: stroke 300ms ease; + cursor: row-resize; +} + +.row-drag-compact { + cursor: default; +} + +.row-drag:hover { + stroke-dasharray: none; + stroke: rgba(100, 100, 100, 0.8); +} + +.word text { + font-size: 16px; + fill: black; +} + +.word-cluster path, +.word path { + stroke: #333; + fill: none; +} + +.word .word-text { + cursor: pointer; +} + +.word-cluster text, +.word .word-tag { + font-size: 12px; + cursor: text; +} + +.word-cluster text, +.word .word-tag { + fill: #333; +} + +.word .syntax-tag { + fill: rgb(208, 150, 143); +} + +.toggle-syntax .syntax-tag, .toggle-syntax .syntax-link { + display: none; +} + +.editing .word-tag, +.editing-text, +.editing text { + fill: #fff !important; +} + +.editing-rect, +.editing rect { + fill: #a94442; +} + +/** + * Links and link lines (which are SVG Paths) + */ +.link { + fill: #6590b4; + stroke-width: 1.5px; +} + +.link-main-label { + font-weight: bold; + font-size: 12px; +} + +.link-arg-label { + font-size: 11px; +} + +.link-text-bg { + fill: #fff; +} + +.link.syntax-link { + fill: #999; +} + +.link:hover { + stroke-width: 2.5px; +} + +.link path { + stroke: #6590b4; + fill: none; +} + +.syntax-link path { + stroke: #999; + fill: none; +} \ No newline at end of file diff --git a/src/js/colorpicker.js b/src/js/colorpicker.js deleted file mode 100644 index 3dd70c7..0000000 --- a/src/js/colorpicker.js +++ /dev/null @@ -1,67 +0,0 @@ -class ColorPicker { - constructor(className, options = {}) { - this.initialColor = options.initialColor || '#000000'; - this.llColor = options.lightLabelColor || '#dddddd'; - this.dlColor = options.darkLabelColor || '#333333'; - this.changeCallback = options.changeCallback || null; - - this.currentInput; - this.picker = document.createElement('input'); - this.picker.type = 'color'; - this.picker.style = 'position:absolute; display: block; opacity: 0; z-index:-100;'; - this.picker.onchange = () => { - if (this.currentInput) { - this.setColor(this.currentInput, this.picker.value); - if (this.changeCallback) { - this.changeCallback(this.currentInput); - } - } - } - document.body.appendChild(this.picker); - - const nodes = document.querySelectorAll(`input.${className}`); - this.registerInputs(nodes); - } - - registerInputs(nodes) { - nodes.forEach(input => { - this.setColor(input, this.initialColor); - - input.setAttribute('readonly', true); - - input.onclick = () => { - this.currentInput = input; - this.picker.focus(); - this.picker.click(); - input.focus(); - this.picker.value = input.colorValue; - } - }); - } - - // make label color light on a dark background and dark on a light one - getLabelColor(bgColor) { - return (this.RGBLum(bgColor) > 128) ? this.dlColor : this.llColor; - } - - // set the color of an input - setColor(input, hex) { - input.colorValue = hex; - input.value = hex; - input.style.backgroundColor = hex; - input.style.color = this.getLabelColor(hex); - } - - // return the perceptive luminescence from a hex value for color contrast - RGBLum(hex) { - let c = parseInt(hex.slice(1), 16); - - let r = (c >> 16) & 0xff; - let g = (c >> 8) & 0xff; - let b = (c >> 0) & 0xff; - - return 0.299 * r + 0.587 * g + 0.114 * b; - } -} - -module.exports = ColorPicker; \ No newline at end of file diff --git a/src/js/components/link.js b/src/js/components/link.js index 448a6f0..f992d47 100644 --- a/src/js/components/link.js +++ b/src/js/components/link.js @@ -1,581 +1,1413 @@ -import WordTag from './tag.js'; -import Word from './word.js'; -import * as draggable from 'svg.draggable.js'; +import $ from "jquery"; -class Link { - constructor(eventId, trigger, args, reltype, top = true) { - this.eventId = eventId; - this.trigger = trigger; - this.arguments = args.sort((a,b) => a.anchor.idx - b.anchor.idx); - this.links = []; - this.reltype = reltype; - this.top = top; - this.visible = true; - - this.resetSlotRecalculation(); - - if (this.top) { - // top links - if (this.trigger) { - this.trigger.links.push(this); - } - this.arguments.forEach(arg => { - arg.anchor.links.push(this); - }); - } - else { - // bottom links - this.trigger.links.push(this); - this.arguments.forEach(arg => arg.anchor.links.push(this)); - } +import WordTag from "./word-tag.js"; +import WordCluster from "./word-cluster.js"; - this.endpoints = this.getEndpoints(); +import Util from "../util.js"; - this.mainSVG = null; - this.svg = null; - this.handles = []; - this.line = null; - this.svgTexts = []; +class Link { + /** + * Creates a new Link between other entities. Links can have Words or + * other Links as argument anchors. + * + * @param {String} eventId - Unique ID + * @param {Word} trigger - Text-bound entity that indicates the presence of + * this event + * @param {Object[]} args - The arguments to this Link. An Array of + * Objects specifying `anchor` and `type` + * @param {String} reltype - For (binary) relational Links, a String + * identifying the relationship type + * @param {Boolean} top - Whether or not this Link should be drawn above + * the text row (if false, it will be drawn below) + * @param {String} category - Links can be shown/hidden by category + */ + constructor(eventId, trigger, args, reltype, top = true, category = "default") { + // --------------- + // Core properties + this.eventId = eventId; + + // Links can be either Event or Relation annotations, to borrow the BRAT + // terminology. Event annotations have a `trigger` entity from the text + // that specifies the event, whereas Relation annotations have a `type` + // that may not be bound to any particular part of the raw text. + // Both types of Links have arguments, which may themselves be nested links. + this.trigger = trigger; + this.reltype = reltype; + this.arguments = args; + + // Contains references to higher-level Links that have this Link as an + // argument + this.links = []; + + this.top = top; + this.category = category; + + // Is this Link currently visible in the visualisation? + this.visible = false; + + // Should this Link be drawn onto the visualisation? + this.enabled = false; + + // Slots are the y-intervals at which links may be drawn. + // The main instance will need to provide the `.calculateSlot()` method + // with the full set of Words in the data so that we can check for + // crossing/intervening Links. + this.slot = null; + this.calculatingSlot = false; + + // Fill in references in this Link's trigger/argument Words + if (this.trigger) { + this.trigger.links.push(this); } + this.arguments.forEach(arg => { + arg.anchor.links.push(this); + }); + + // --------------- + // Visualisation-related properties + this.initialised = false; + + // The main API/config instance this Link is attached to + this.main = null; + this.config = null; + + // SVG-related properties + + // SVG parents + this.mainSvg = null; + this.svg = null; + + // Handle objects + this.handles = []; + + // SVG Path and last-drawn path string + this.path = null; + this.lastPathString = ""; + + // (Horizontal-only) width of the last drawn line for this Link; used + // for calculating Handle positions for parent Links + this.lastDrawnWidth = null; + + // Objects for main Link label / argument labels + this.argLabels = []; + this.linkLabel = null; + } + + /** + * Initialises this Link against the main API instance + * @param main + */ + init(main) { + this.main = main; + this.config = main.config; + + this.mainSvg = main.svg; + this.svg = main.svg.group() + .addClass("tag-element") + .addClass(this.top ? "link" : "link syntax-link"); + + // Links are hidden by default; the main function should call `.show()` + // for any Links to be shown + this.svg.hide(); + + // The main Link line + this.path = this.svg.path() + .addClass("tag-element"); + + // Init handles and SVG texts. + // If there is a trigger, it will be the first handle + if (this.trigger) { + this.handles.push(new Handle( + this.trigger, + this + )); + } + + // Arguments + this.arguments.forEach(arg => { + this.handles.push(new Handle( + arg.anchor, + this + )); + + const text = new Label(this.mainSvg, this.svg, arg.type, "link-arg-label"); + this.argLabels.push(text); + }); + + // Main Link label + this.linkLabel = new Label(this.mainSvg, this.svg, this.reltype, "link-main-label"); + + // Closure for identifying dragged handles + let draggedHandle = null; + let dragStartX = 0; + + // Drag/Click events + this.path.draggable() + .on("dragstart", (e) => { + // We use the x and y values (with a little tolerance) to make sure + // that the user is dragging near one of the Link's handles, and not + // just in the middle of the Link's line. + const dragX = e.detail.p.x; + + // `dragY` is adjusted for the document's scroll position, but we + // want to compare it against our internal container coordinates + const dragY = e.detail.p.y - $(window).scrollTop(); + + for (let handle of this.handles) { + // Is this handle in the correct vicinity on the y-axis? + if (this.top) { + // The Link line will be above the handle + if (dragY < this.getLineY(handle.row) - 5 || dragY > handle.y + 5) { + continue; + } + } else { + // The Link line will be below the handle + if (dragY < handle.y - 5 || dragY > this.getLineY(handle.row) + 5) { + continue; + } + } - init(svg) { - this.arguments.sort((a,b) => a.anchor.idx - b.anchor.idx); + // Is this handle close enough on the x-axis? + // In particular, the handle arrowheads might get fairly long + let distX = Math.abs(handle.x - dragX); + if (distX > this.config.linkArrowWidth) { + continue; + } - this.mainSVG = svg; - this.svg = svg.group().addClass(this.top ? 'link' : 'link syntax-link'); - if (!this.visible) { this.svg.hide(); } + // Is it closer than any previous candidate? + if (!draggedHandle || distX < Math.abs(draggedHandle.x - dragX)) { + // Sold! + draggedHandle = handle; + dragStartX = e.detail.p.x; + } + } - // init handles - // get location of trigger - if (this.trigger) { - let x = this.trigger.cx; - let y = this.top ? this.trigger.absoluteY : this.trigger.absoluteDescent; - this.handles.push({ anchor: this.trigger, x, y, offset: null }); - } + }) + .on("dragmove", (e) => { + e.preventDefault(); - // draw arguments - this.arguments.forEach(arg => { - // get location of the argument - let x = arg.anchor.cx; - let y = this.top ? arg.anchor.absoluteY : arg.anchor.absoluteDescent; - this.handles.push({ anchor: arg.anchor, x, y, offset: null }); - - // draw svgText for each trigger-argument relation - if (this.trigger) { - let text = this.svg.text(arg.type) - .y(-7) - .addClass('link-text'); - this.svgTexts.push(text); + if (!draggedHandle) { + return; } - }); - // draw svgText for a non-trigger relation - if (this.reltype) { - let text = this.svg.text(this.reltype) - .y(-7) - .addClass('link-text'); - this.svgTexts.push(text); - } + // Handle the change in raw x-position for this `dragmove` iteration + let dx = e.detail.p.x - dragStartX; + dragStartX = e.detail.p.x; + draggedHandle.offset += dx; + + // Constrain the handle's offset so that it doesn't end up + // overshooting the sides of its anchor + let anchor = draggedHandle.anchor; + if (anchor instanceof Link) { + // The handle is resting on another Link; offset 0 is the left + // edge of the lower Link + draggedHandle.offset = Math.min(draggedHandle.offset, anchor.width); + draggedHandle.offset = Math.max(draggedHandle.offset, 0); + } else { + // The handle is resting on a WordTag/WordCluster; offset 0 is the + // centre of the tag + let halfWidth; + if (this.top && anchor.topTag instanceof WordTag) { + halfWidth = anchor.topTag.textWidth / 2; + } else if (!this.top && anchor.bottomTag instanceof WordTag) { + halfWidth = anchor.bottomTag.textWidth / 2; + } else if (this.top && anchor instanceof WordCluster) { + halfWidth = anchor.textWidth / 2; + } else { + // Shouldn't happen, but maybe this is pointed directly at a Word? + halfWidth = anchor.boxWidth / 2; + } - // apply click events to text - this.svgTexts.forEach(text => { - text.node.oncontextmenu = (e) => { - this.selectedLabel = text; - e.preventDefault(); - svg.fire('link-label-right-click', { object: this, type: 'text', event: e }); - }; - text.click((e) => svg.fire('link-label-edit', { object: this, text, event: e })); - text.dblclick((e) => svg.fire('build-tree', { object: this, event: e })); + // Constrain the handle to be within 3px of the bounds of its base + draggedHandle.offset = Math.min(draggedHandle.offset, halfWidth - 3); + draggedHandle.offset = Math.max(draggedHandle.offset, -halfWidth + 3); + } + + this.draw(anchor); + }) + .on("dragend", () => { + draggedHandle = null; }); - this.line = this.svg.path() - .addClass('polyline'); + this.path.dblclick((e) => this.mainSvg.fire("build-tree", { + object: this, + event: e + })); + this.path.node.oncontextmenu = (e) => { + e.preventDefault(); + this.mainSvg.fire("link-right-click", { + object: this, + type: "link", + event: e + }); + }; + + this.initialised = true; + } + + /** + * Toggles the visibility of this Link + */ + toggle() { + if (this.enabled) { + this.hide(); + } else { + this.show(); + } + } - // apply drag events to line - let draggedHandle = null; - let x = 0; + /** + * Enables this Link and draws it onto the visualisation + */ + show() { + this.enabled = true; - this.line.dblclick((e) => svg.fire('build-tree', { object: this, event: e })); - this.line.node.oncontextmenu = (e) => { - e.preventDefault(); - svg.fire('link-right-click', { object: this, type: 'link', event: e }); + if (this.svg && !this.svg.visible()) { + this.svg.show(); + } + this.draw(); + this.visible = true; + } + + /** + * Disables this Link and removes it from the visualisation + */ + hide() { + this.enabled = false; + + if (this.svg && this.svg.visible()) { + this.svg.hide(); + } + this.visible = false; + } + + /** + * Shows the main label for this Link + */ + showMainLabel() { + this.linkLabel.show(); + // Redraw the Link to make sure that the label ends up in the correct spot + this.draw(); + } + + /** + * Hides the main label for this Link + */ + hideMainLabel() { + this.linkLabel.hide(); + } + + /** + * Shows the argument labels for this Link + */ + showArgLabels() { + this.argLabels.forEach(label => label.show()); + // Redraw the Link to make sure that the label ends up in the correct spot + this.draw(); + } + + /** + * Hides the argument labels for this Link + */ + hideArgLabels() { + this.argLabels.forEach(label => label.hide()); + } + + /** + * (Re-)draw some Link onto the main visualisation + * + * @param {Word|WordCluster|Link} [modAnchor] - Passed when we know that + * (only) a specific anchor has changed position since the last + * redraw. If not, the positions of all handles will be recalculated. + */ + draw(modAnchor) { + if (!this.initialised || !this.enabled) { + return; + } + + // Recalculate handle positions + let calcHandles = this.handles; + if (modAnchor) { + // Only one needs to be calculated + calcHandles = [this.handles.find(h => h.anchor === modAnchor)]; + } + const changedHandles = []; + + // One or more of our anchors might be nested Links. We need to make + // sure that all of them are already drawn in, so that our offset + // calculations and the like are accurate. + for (let handle of calcHandles) { + const anchor = handle.anchor; + if (anchor instanceof Link && !anchor.visible) { + anchor.show(); } + } - this.line.draggable() - .on('dragstart', (e) => { - let closestHandle = this.handles.reduce((acc, val) => - Math.abs(val.x - e.detail.p.x) < Math.abs(acc.x - e.detail.p.x) - ? val - : acc, - this.handles[0]); - - // 8 is a "magic number" for tolerance of closeness to the endpoint of the handle - if (Math.abs(closestHandle.x - e.detail.p.x) < 5) { - draggedHandle = closestHandle; - x = e.detail.p.x; - } - }) - .on('dragmove', (e) => { - e.preventDefault(); - if (draggedHandle) { - let dx = e.detail.p.x - x; - x = e.detail.p.x; - draggedHandle.offset += dx; - let anchor = draggedHandle.anchor; - if (anchor instanceof Link) { - let handles = anchor.handles - .filter(h => h.anchor.row.idx === anchor.handles[0].anchor.row.idx) - .sort((a,b) => a.x - b.x); - - let min = handles[0].x; - let max = handles[handles.length - 1].x; - if (handles.length < anchor.handles.length) { - max = this.mainSVG.width(); - } - let cx = draggedHandle.anchor.cx; - draggedHandle.offset = Math.min(max - cx, Math.max(min - cx, draggedHandle.offset)); - } - else { - let halfWidth = anchor.boxWidth / 2; - if (this.top && anchor.tag instanceof WordTag) { - halfWidth = anchor.tag.ww / 2; - } - else if (!this.top && anchor.syntaxTag instanceof WordTag) { - halfWidth = anchor.syntaxTag.ww / 2; - } - halfWidth = Math.max(halfWidth, 13); - draggedHandle.offset = draggedHandle.offset < 0 - ? Math.max(-halfWidth + 3, draggedHandle.offset) - : Math.min(halfWidth - 3, draggedHandle.offset); - } + // Offset calculations + for (let handle of calcHandles) { + const anchor = handle.anchor; + // Two possibilities: The anchor is a Word/WordCluster, or it is a + // Link. + if (!(anchor instanceof Link)) { + // No need to account for multiple rows (the handle will be resting + // on the label for a Word/WordCluster) + // The 0-offset location is the centre of the anchor. + const newX = anchor.cx + handle.offset; + const newY = this.top + ? anchor.absoluteY + : anchor.absoluteDescent; + + if (handle.x !== newX || handle.y !== newY) { + handle.x = newX; + handle.y = newY; + handle.row = anchor.row; + changedHandles.push(handle); + } + } else { + // The anchor is a Link; the handle rests on another Link's line, + // and the offset might extend to the next row and beyond. + const baseLeft = anchor.leftHandle; + + // First, make sure the offset doesn't overshoot the base row + handle.offset = Math.min(handle.offset, anchor.width); + handle.offset = Math.max(handle.offset, 0); + + // Handle intervening rows without modifying `handle.offset` or + // the anchor Link directly + let calcOffset = handle.offset; + let calcRow = baseLeft.row; + let calcX = baseLeft.x; + + while (calcOffset > calcRow.rw - calcX) { + calcOffset -= calcRow.rw - calcX; + calcX = 0; + calcRow = this.main.rowManager.rows[calcRow.idx + 1]; + } - // also constrain links above this link - let handles = this.handles - .filter(h => h.anchor.row.idx === this.handles[0].anchor.row.idx) - .sort((a, b) => a.x - b.x); + // Last row - Deal with remaining offset + const newX = calcX + calcOffset; + const newY = anchor.getLineY(calcRow); - let min = handles[0].x; - let max = handles[handles.length - 1].x; - if (handles.length < this.handles.length) { - max = this.mainSVG.width(); - } - let cx = this.cx; - this.links.forEach(link => { - link.handles.forEach(h => { - if (h.anchor === this) { - h.offset = Math.min(max - cx, Math.max(min - cx, h.offset)); - } - }); - }); - this.draw(draggedHandle.anchor); - } - }) - .on('dragend', () => { draggedHandle = null }); + if (handle.x !== newX || handle.y !== newY) { + handle.x = newX; + handle.y = newY; + handle.row = calcRow; + changedHandles.push(handle); + } + } } - toggle() { - this.visible = !this.visible; - if (this.visible) { this.show(); } - else { this.hide(); } - } - show() { - this.visible = true; - if (this.svg) { - this.svg.show(); - this.draw(); + // If our width has changed, we should update the offset of any of our + // parent Links. + // The parent Link will be redrawn after we're done redrawing this + // one, and any adjustments will be made automatically during the redraw. + if (this.lastDrawnWidth === null) { + this.lastDrawnWidth = this.width; + } else { + const growth = this.width - this.lastDrawnWidth; + this.lastDrawnWidth = this.width; + + // To get the parent Link's handle position to remain as constant as + // possible, we should adjust its offset only if our left handle changed + if (changedHandles.length === 1 && + changedHandles[0] === this.leftHandle) { + for (let parentLink of this.links) { + const parentHandle = parentLink.handles.find(h => h.anchor === this); + parentHandle.offset += growth; + parentHandle.offset = Math.max(parentHandle.offset, 0); + parentLink.draw(this); + } } } - hide() { - this.visible = false; - if (this.svg) { - this.svg.hide(); + + // draw a polyline between the trigger and each of its arguments + // https://www.w3.org/TR/SVG/paths.html#PathData + if (this.trigger) { + // This Link has a trigger (Event) + this._drawAsEvent(); + } else { + // This Link has no trigger (Relation) + this._drawAsRelation(); + } + } + + /** + * Removes this Link's SVG elements from the visualisation, and removes + * all references to it from the data stores + */ + remove() { + this.svg.remove(); + + let self = this; + + // remove reference to a link + function detachLink(anchor) { + let i = anchor.links.indexOf(self); + if (i > -1) { + anchor.links.splice(i, 1); } } - draw(anchor) { - if (!anchor) { - // initialize offsets - this.handles.forEach(h => { - if (h.offset === null) { - let l = h.anchor.links - .sort((a,b) => a.slot - b.slot) - .filter(link => link.top == this.top); - - let w = 10; // magic number => TODO: resize this to tag width? - - if (l.length > 1) { - if (h.anchor instanceof Link && h.anchor.trigger.idx === h.anchor.endpoints[0].idx) { - h.offset = l.indexOf(this) / l.length * 2 * w; - } - else if (h.anchor instanceof Link && h.anchor.trigger.idx === h.anchor.endpoints[1].idx) { - h.offset = l.indexOf(this) / l.length * 2 * -w; - } - else { - l = l.filter(link => h.anchor.idx > link.endpoints[0].idx == h.anchor.idx > this.endpoints[0].idx); - h.offset = (l.indexOf(this) + 0.5) / l.length * (h.anchor.idx > this.endpoints[0].idx ? -w : w); - } - } - else { - h.offset = 0; - } - } - }); - } - else { - // redraw handles if word or link was moved - let h = this.handles.find(h => (anchor === h.anchor)); - if (h) { - h.x = anchor.cx + h.offset; - h.y = this.top ? anchor.absoluteY : anchor.absoluteDescent; + // remove references to link from all anchors + if (this.trigger) { + detachLink(this.trigger); + } + this.arguments.forEach(arg => detachLink(arg.anchor)); + } + + /** + * Returns the y-position that this Link's main line will have if it were + * drawn in the given row (based on the Row's position, and this Link's slot) + * + * @param {Row} row + */ + getLineY(row) { + return this.top + ? row.ry + row.rh - row.wordHeight - this.config.linkSlotInterval * this.slot + // Bottom Links have negative slot numbers + : row.ry + row.rh + row.wordDescent - this.config.linkSlotInterval * this.slot; + } + + + /** + * Given the full array of Words in the document, calculates this Link's + * slot based on other crossing/intervening/nested Links, recursively if + * necessary. + * + * Principles: + * 1) Links with no other Links intervening have priority for lowest slot + * 2) Links with fully slotted intervening Links (i.e., no crossings) have + * second priority + * 3) Crossed Links have lowest priority, and are handled in order from + * left to right and descending order of length (in terms of number of + * Words covered) + * + * Sorting of the full Links array is handled by + * {@link module:Util.sortForSlotting Util.sortForSlotting}. + * + * @param {Word[]} words + */ + calculateSlot(words) { + // We may already have calculated this Link's slot in a previous + // iteration, or *be* calculating this Link's slot in a previous + // iteration (i.e., in the case of crossing Links). + if (this.slot) { + // Already calculated + return this.slot; + } else if (this.calculatingSlot) { + // Currently trying to calculate this slot in a previous recursive + // iteration + return 0; + } + + this.calculatingSlot = true; + + // Pick up all the intervening Links + // We don't include the first and last Word since Links ending on the + // same Word can share the same slot if they don't otherwise overlap + let intervening = []; + const coveredWords = words.slice( + this.endpoints[0].idx + 1, + this.endpoints[1].idx + ); + // The above comments notwithstanding, the first and last Word should + // know that we are watching them + words[this.endpoints[0].idx].passingLinks.push(this); + words[this.endpoints[1].idx].passingLinks.push(this); + + for (const word of coveredWords) { + // Let this Word know we're watching it + word.passingLinks.push(this); + + // Word Links + for (const link of word.links) { + // Only consider Links on the same side of the Row as this one + if (link !== this && + link.top === this.top && intervening.indexOf(link) < 0) { + intervening.push(link); } } - if (!this.visible) { return; } - - // redraw line if it exists - if (this.line) { - let width = this.mainSVG.width(); - let d = ''; - - // draw a polyline between the trigger and each of its arguments - if (this.trigger) { - let y = this.getY(this.handles[1]); - let rowCrossed = false; - - for (let i = 0, il = this.arguments.length; i < il; ++i) { - let leftOfTrigger = this.arguments[i].anchor.idx < this.trigger.idx; - let dx = leftOfTrigger ? 5 : -5; - let textlen = leftOfTrigger ? this.svgTexts[i].length() : -this.svgTexts[i].length(); - - let handle1 = this.handles[i + 1]; - - // draw a line from the prev arrow segment - if (i > 0) { - // check if crossing over a row - if (rowCrossed) { - rowCrossed = false; - d += 'L' + [width, y] + 'M0,'; - y = this.getY(handle1); - d += y; - } - if (leftOfTrigger) { - d += 'L' + [handle1.x + dx, y]; - } - else { - d += 'L' + [handle1.x + dx + textlen, y]; - } - } - else if (!leftOfTrigger) { - // start drawing from the trigger - y = this.getY(this.handles[0]); - d += 'M' + [this.handles[0].x, this.handles[0].y] - + 'C' + [this.handles[0].x, y, this.handles[0].x, y, this.handles[0].x - dx, y]; - - // check if crossing over a row - if (this.handles[0].anchor.row.idx < this.handles[1].anchor.row.idx) { - d += 'L' + [width, y] + 'M0,'; - y = this.getY(this.handles[1]); - d += y; - } - d += 'L' + [this.handles[1].x + dx + textlen, y]; - } + // WordCluster Links + for (const cluster of word.clusters) { + for (const link of cluster.links) { + if (link !== this && + link.top === this.top && intervening.indexOf(link) < 0) { + intervening.push(link); + } + } + } + } - // draw the text svg - this.svgTexts[i] - .x(handle1.x + dx + textlen / 2) - .y(y - 10); + // All of our own nested Links are also intervening Links + for (const arg of this.arguments) { + if (arg.anchor instanceof Link && intervening.indexOf(arg.anchor) < 0) { + intervening.push(arg.anchor); + } + } - // draw an arrow at the handle - const s = 4; - d += this.arrowhead(handle1); + intervening = Util.sortForSlotting(intervening); + + // Map to slots, reduce to the highest number seen so far (or 0 if there + // are none) + const maxSlot = intervening + .map(link => link.calculateSlot(words)) + .reduce((prev, next) => { + // Absolute numbers -- Slots for bottom Links are negative + next = Math.abs(next); + if (next > prev) { + return next; + } else { + return prev; + } + }, 0); - let handlePrecedesTrigger = leftOfTrigger && (i + 2 > il || this.arguments[i + 1].anchor.idx >= this.trigger.idx); + this.slot = maxSlot + 1; + if (!this.top) { + this.slot = this.slot * -1; + } + this.calculatingSlot = false; + return this.slot; + } + + listenForEdit(e) { + this.isEditing = true; + + let bbox = e.detail.text.bbox(); + e.detail.text + .addClass("tag-element") + .addClass("editing-text"); + this.editingText = e.detail.text; + this.editingRect = this.svg.rect(bbox.width + 8, bbox.height + 4) + .x(bbox.x - 4) + .y(bbox.y - 2) + .rx(2) + .ry(2) + .addClass("tag-element") + .addClass("editing-rect") + .back(); + } + + text(str) { + if (this.editingText) { + if (str === undefined) { + return this.editingText; + } + this.editingText.text(str); + } + } + + stopEditing() { + this.isEditing = false; + this.editingText.removeClass("editing-text"); + this.editingRect.remove(); + this.editingRect = this.editingText = null; + this.draw(); + } + + /** + * Gets the left-most and right-most Word anchors that come under this Link. + * (Nested Links are treated as extensions of this Link, so the relevant + * endpoint of the nested Link is recursively found and used) + * @return {Word[]} + */ + get endpoints() { + let minWord = null; + let maxWord = null; + + if (this.trigger) { + minWord = maxWord = this.trigger; + } - // check if crossing over a row - rowCrossed = (handlePrecedesTrigger && this.handles[0].anchor.row.idx != handle1.anchor.row.idx) || (!handlePrecedesTrigger && i + 1 < il && this.handles[i + 2].anchor.row.idx != handle1.anchor.row.idx); + this.arguments.forEach(arg => { + if (arg.anchor instanceof Link) { + let endpts = arg.anchor.endpoints; + if (!minWord || minWord.idx > endpts[0].idx) { + minWord = endpts[0]; + } + if (!maxWord || maxWord.idx < endpts[1].idx) { + maxWord = endpts[1]; + } + } else { // word or wordcluster + if (!minWord || minWord.idx > arg.anchor.idx) { + minWord = arg.anchor; + } + if (!maxWord || maxWord.idx < arg.anchor.idx) { + maxWord = arg.anchor; + } + } + }); + return [minWord, maxWord]; + } + + /** + * Returns the total horizontal width of the Link, from the leftmost handle + * to the rightmost handle + */ + get width() { + // Handles on the same row? + if (this.leftHandle.row === this.rightHandle.row) { + return this.rightHandle.x - this.leftHandle.x; + } - // draw an arrow segment coming from each argument - if (handlePrecedesTrigger && rowCrossed) { - // if row is crossed - let tempY = this.getY(handle1); - y = this.getY(this.handles[0]); + // If not, calculate the width (including intervening rows) + let width = 0; + width += this.leftHandle.row.rw - this.leftHandle.x; + for (let i = this.leftHandle.row.idx + 1; i < this.rightHandle.row.idx; i++) { + width += this.main.rowManager.rows[i].rw; + } + width += this.rightHandle.x; + + return width; + } + + /** + * Returns the leftmost handle (smallest Row index, smallest x-position) + * in this Link + */ + get leftHandle() { + return this.handles.reduce((prev, next) => { + if (prev.precedes(next)) { + return prev; + } else { + return next; + } + }, this.handles[0]); + } + + /** + * Returns the rightmost handle (largest Row index, largest x-position) + * in this Link + */ + get rightHandle() { + return this.handles.reduce((prev, next) => { + if (prev.precedes(next)) { + return next; + } else { + return prev; + } + }, this.handles[0]); + } + + /** + * Returns the handle corresponding to the trigger for this Link, if one + * is defined + */ + get triggerHandle() { + if (!this.trigger) { + return null; + } - d += 'M' + [handle1.x, handle1.y] - + 'C' + [handle1.x, tempY, handle1.x, tempY, handle1.x + dx, tempY] - + 'm' + [textlen, 0] - + 'L' + [width, tempY] - + 'M' + [0,y]; - rowCrossed = false; + return this.handles.find(handle => handle.anchor === this.trigger); + } + + // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + // Private helper/setup functions + + /** + * Draws this Link as an Event annotation (has a trigger) + * @private + */ + _drawAsEvent() { + let d = ""; + const triggerHandle = this.triggerHandle; + const pTrigger = { + x: triggerHandle.x, + y: this.top + ? triggerHandle.y - this.config.linkHandlePadding + : triggerHandle.y + this.config.linkHandlePadding + }; + + // How we draw the lines to each argument's Handle depends on which side + // of the trigger they're on. + // Collect the left and right Handles, sorted by distance from the + // trigger Handle, ascending + const lHandles = []; + const rHandles = []; + for (const handle of this.handles) { + if (handle === triggerHandle) { + continue; + } - this.svgTexts[i].y(tempY - 10); - } - else { - d += 'M' + [handle1.x, handle1.y] - + 'C' + [handle1.x, y, handle1.x, y, handle1.x + dx, y]; - if (leftOfTrigger) { - d += 'm' + [textlen, 0]; - } - } + if (handle.precedes(triggerHandle)) { + lHandles.push(handle); + } else { + rHandles.push(handle); + } + } + lHandles.sort((a, b) => a.precedes(b) ? 1 : -1); + rHandles.sort((a, b) => a.precedes(b) ? -1 : 1); + + // Start drawing lines between the Handles/text. + + // To prevent drawing lines over the same coordinates repeatedly, we + // simply tack on additional lines as we move to the arguments further + // from the trigger. + // pReference will be the point on the last drawn argument line from + // which the line to the next argument should begin. + let pReference; + + // Left handles + // ============ + pReference = null; + for (const handle of lHandles) { + // Handle + // ------ + const pHandle = { + x: handle.x, + y: this.top + ? handle.y - this.config.linkHandlePadding + : handle.y + this.config.linkHandlePadding + }; - if (handlePrecedesTrigger) { - // draw trigger to the right of the arrow segment - if (i + 1 < il) { - d += 'L' + [this.handles[0].x - dx, y] - + 'c' + [dx, 0, dx, 0, dx, this.handles[0].y - y] - + 'm' + [dx, 0] - + 'l' + [-2 * dx, 0] - + 'm' + [dx, 0] - + 'C' + [this.handles[0].x, y, this.handles[0].x, y, this.handles[0].x + dx, y]; - rowCrossed = this.handles[i + 2].anchor.row.idx != this.handles[0].anchor.row.idx; - } - else { - d += 'L' + [this.handles[0].x - dx, y] - + 'c' + [dx, 0, dx, 0, dx, this.handles[0].y - y]; - } - } - } - } - else if (this.reltype) { - - // draw lines between a non-trigger relationship - let y = this.getY(this.handles[0]); - let endHandle = this.handles[this.handles.length - 1]; - let textlen = this.svgTexts[0].length(); - let avg; - - if (this.handles[0].anchor.row.idx === endHandle.anchor.row.idx) { - avg = this.handles.reduce((acc, h) => acc + h.x, 0) / this.arguments.length; - let textLeft = avg - textlen / 2; - - d = 'M' + [this.handles[0].x, this.handles[0].y] + - (textLeft < this.handles[0].x - ? ('L' + [this.handles[0].x, y] - + 'M' + [endHandle.x, y] - + 'L' + [endHandle.x, endHandle.y] ) - : ('C' + [this.handles[0].x, y, this.handles[0].x, y, Math.min(textLeft, this.handles[0].x + 5), y] - + 'L' + [textLeft, y] - + 'm' + [textlen, 0] - + 'L' + [Math.max(textLeft + textlen, endHandle.x - 5), y] - + 'C' + [endHandle.x, y, endHandle.x, y, endHandle.x, endHandle.y] ) - ) - + this.arrowhead(this.handles[0]) - + this.arrowhead(endHandle); + // Line + // ---- + // Draw from argument handle to main Link line + d += "M" + [pHandle.x, pHandle.y]; + + const handleY = this.getLineY(handle.row); + const curveLeftX = pHandle.x + this.config.linkCurveWidth; + const curveLeftY = this.top + ? handleY + this.config.linkCurveWidth + : handleY - this.config.linkCurveWidth; + + d += "L" + [pHandle.x, curveLeftY] + + "Q" + [pHandle.x, handleY, curveLeftX, handleY]; + + // Horizontal line to pReference (if set) + if (pReference) { + if (handle.row.idx !== pReference.row.idx) { + // Draw in Link line across the end of the first row and all + // intervening rows + d += "L" + [handle.row.rw, handleY]; + + for (let i = handle.row.idx + 1; i < pReference.row.idx; i++) { + const thisRow = this.main.rowManager.rows[i]; + const lineY = this.getLineY(thisRow); + d += "M" + [0, lineY] + + "L" + [thisRow.rw, lineY]; } - else { - avg = (this.handles[0].x + width) / 2; - d = 'M' + [this.handles[0].x, this.handles[0].y] - + 'C' + [this.handles[0].x, y, this.handles[0].x, y, this.handles[0].x + 5, y] - + 'L' + [avg - textlen / 2, y] - + 'm' + [textlen, 0] - + 'L' + [width, y]; - - let tempY = this.getY(endHandle); - d += 'M0,' + tempY - + 'L' + [endHandle.x - 5, tempY] - + 'C' + [endHandle.x, tempY, endHandle.x, tempY, endHandle.x, endHandle.y] - + this.arrowhead(this.handles[0]) - + this.arrowhead(endHandle); - } - this.svgTexts[0].x(avg) - .y(y - 10); + d += "M" + [0, this.getLineY(pReference.row)]; } - this.line.plot(d); + + d += "L" + [pReference.x, pReference.y]; } - this.links.forEach(l => l.draw(this)); - } + if (pReference === null) { + // This is the first left handle; draw in the line to the trigger also. - // helper function to calculate line-height in draw() - getY(handle) { - let r = handle.anchor.row; - return this.top ? - r.rh + r.ry - 45 - 15 * this.slot - : r.rh + r.ry + 25 - 15 * this.slot; - } + // Label to Trigger handle + // If this handle and the trigger handle are not on the same row, + // draw in the intervening rows first. + let finalY = handleY; - // helper function to return a path string for an arrowhead - arrowhead(handle) { - const s = 4, s2 = 6; - return this.top ? - 'M' + [handle.x - s, handle.y - s] + 'l' + [s, s2] + 'l' + [s, -s2] : - 'M' + [handle.x - s, handle.y + s] + 'l' + [s, -s2] + 'l' + [s, s2]; - } + if (handle.row.idx !== triggerHandle.row.idx) { + d += "L" + [handle.row.rw, handleY]; - remove() { - this.svg.remove(); + for (let i = handle.row.idx + 1; i < triggerHandle.row.idx; i++) { + const thisRow = this.main.rowManager.rows[i]; + const lineY = this.getLineY(thisRow); + d += "M" + [0, lineY] + + "L" + [thisRow.rw, lineY]; + } - let self = this; - // remove reference to a link - function detachLink(anchor) { - let i = anchor.links.indexOf(self); - if (i > -1) { - anchor.links.splice(i, 1); + finalY = this.getLineY(triggerHandle.row); + d += "M" + [0, finalY]; } - }; - // remove references to link from all anchors - if (this.trigger) { detachLink(this.trigger); } - this.arguments.forEach(arg => detachLink(arg.anchor)); - } + // Draw down to trigger on last row + const curveRightX = pTrigger.x - this.config.linkCurveWidth; + const curveRightY = this.top + ? finalY + this.config.linkCurveWidth + : finalY - this.config.linkCurveWidth; - resetSlotRecalculation() { - this.isRecalculated = false; - this.slot = 0; + d += "L" + [curveRightX, finalY] + + "Q" + [pTrigger.x, finalY, pTrigger.x, curveRightY] + + "L" + [pTrigger.x, pTrigger.y]; + } - if (this.top) { - // top links - if (this.trigger) { - this.slot = this.trigger.slot; - } - this.arguments.forEach(arg => { - if (arg.anchor.slot > this.slot) { - this.slot = arg.anchor.slot; - } - }); + // pReference for the next handle will be just past the curved part of + // the left-side vertical line + const refLeft = Math.min( + pHandle.x + this.config.linkCurveWidth, + handle.row.rw + ); + + pReference = { + x: refLeft, + y: handleY, + row: handle.row + }; + + // Arrowhead + d += this._arrowhead(pHandle); - this.slot += 1; + // Label + // ----- + // The trigger always takes up index 0, so the index for the label is + // one less than the index for this handle in `this.handles` + const label = this.argLabels[this.handles.indexOf(handle) - 1]; + + let labelCentre = pHandle.x; + if (labelCentre + label.length() / 2 > handle.row.rw) { + labelCentre = handle.row.rw - label.length() / 2; } - else { - // bottom links - this.slot = -1; + if (labelCentre - label.length() / 2 < 0) { + labelCentre = label.length() / 2; } + label.move(labelCentre, (pHandle.y + handleY) / 2); } - recalculateSlots(words) { - // reorganize slots - let ep = this.endpoints; - if (this.isRecalculated) { return [{slot: this.slot, endpoints: ep}]; } + // Right handles + // ============ + pReference = null; + for (const handle of rHandles) { + // Handle + // ------ + const pHandle = { + x: handle.x, + y: this.top + ? handle.y - this.config.linkHandlePadding + : handle.y + this.config.linkHandlePadding + }; - this.isRecalculated = true; - let wordArray = words.slice(ep[0].idx, ep[1].idx + 1); - let self = this; + // pReference for the next handle will be just past the curved part of + // the right-side vertical line. We calculate it here since we use it + // when drawing the line itself. + const refRight = Math.max( + pHandle.x - this.config.linkCurveWidth, + 0 + ); + + // Line + // ---- + // Draw from main Link line to argument handle + const handleY = this.getLineY(handle.row); + + d += "M" + [refRight, handleY]; + + const curveRightX = pHandle.x - this.config.linkCurveWidth; + const curveRightY = this.top + ? handleY + this.config.linkCurveWidth + : handleY - this.config.linkCurveWidth; + + d += "L" + [curveRightX, handleY] + + "Q" + [pHandle.x, handleY, pHandle.x, curveRightY] + + "L" + [pHandle.x, pHandle.y]; + + // Horizontal line from pReference (if set) + if (pReference) { + d += "M" + [pReference.x, pReference.y]; + + if (pReference.row.idx !== handle.row.idx) { + // Draw in Link line across end of the first row and all + // intervening rows + d += "L" + [pReference.row.rw, pReference.y]; + + for (let i = pReference.row.idx + 1; i < handle.row.idx; i++) { + const thisRow = this.main.rowManager.rows[i]; + const lineY = this.getLineY(thisRow); + d += "M" + [0, lineY] + + "L" + [thisRow.rw, lineY]; + } + + d += "M" + [0, handleY]; + } - let slots = []; + d += "L" + [refRight, handleY]; + } - // get all interfering slots - wordArray.forEach(word => { - word.links.forEach(l => { - if (l !== self && - l.top === self.top && - !(l.endpoints[0].idx >= ep[1].idx || - l.endpoints[1].idx <= ep[0].idx)) { - [].push.apply(slots, l.recalculateSlots(words)); + if (pReference === null) { + // This is the first right handle; draw in the line from the trigger + // also. + d += "M" + [pTrigger.x, pTrigger.y]; + + // Draw up from trigger handle to main line, then draw across + // intervening rows if trigger handle and this handle are not on the + // same row + const triggerY = this.getLineY(triggerHandle.row); + const curveLeftX = pTrigger.x + this.config.linkCurveWidth; + const curveLeftY = this.top + ? triggerY + this.config.linkCurveWidth + : triggerY - this.config.linkCurveWidth; + + d += "L" + [pTrigger.x, curveLeftY] + + "Q" + [pTrigger.x, triggerY, curveLeftX, triggerY]; + + if (triggerHandle.row.idx !== handle.row.idx) { + d += "L" + [triggerHandle.row.rw, triggerY]; + + for (let i = triggerHandle.row.idx + 1; i < handle.row.idx; i++) { + const thisRow = this.main.rowManager.rows[i]; + const lineY = this.getLineY(thisRow); + d += "M" + [0, lineY] + + "L" + [thisRow.rw, lineY]; } - }); - }); - // find a slot to place this link - function incrementSlot(l) { - while (slots.find(s => s.slot === l.slot && - !(s.endpoints[0].idx >= l.endpoints[1].idx || - s.endpoints[1].idx <= l.endpoints[0].idx))) { - l.slot += l.top ? 1 : -1; + d += "M" + [0, handleY]; } - slots.push({slot: l.slot, endpoints: l.endpoints}); - l.links.forEach(link => { - if (link.top === l.top) { - incrementSlot(link); - } - }); + + d += "L" + [refRight, handleY]; } - incrementSlot(this); - return slots; - } + // pReference for the next handle is just inside the curved part of + // the right-side vertical line + pReference = { + x: refRight, + y: handleY, + row: handle.row + }; - listenForEdit(e) { - this.isEditing = true; + // Arrowhead + d += this._arrowhead(pHandle); - let bbox = e.detail.text.bbox(); - e.detail.text.addClass('editing-text'); - this.editingText = e.detail.text; - this.editingRect = this.svg.rect(bbox.width + 8, bbox.height + 4) - .x(bbox.x - 4) - .y(bbox.y - 2) - .rx(2) - .ry(2) - .addClass('editing-rect') - .back(); - } - text(str) { - if (this.editingText) { - if (str === undefined) { return this.editingText; } - this.editingText.text(str); + // Label + // ----- + // The trigger always takes up index 0, so the index for the label is + // one less than the index for this handle in `this.handles` + const label = this.argLabels[this.handles.indexOf(handle) - 1]; + + let labelCentre = pHandle.x; + if (labelCentre + label.length() / 2 > handle.row.rw) { + labelCentre = handle.row.rw - label.length() / 2; } - } - stopEditing() { - this.isEditing = false; - this.editingText.removeClass('editing-text'); - this.editingRect.remove(); - this.editingRect = this.editingText = null; - this.draw(); + if (labelCentre - label.length() / 2 < 0) { + labelCentre = label.length() / 2; + } + label.move(labelCentre, (pHandle.y + handleY) / 2); } - getEndpoints() { - let minWord = null; - let maxWord = null; + // Add flat arrowhead to trigger handle if there are both leftward and + // rightward handles + if (lHandles.length > 0 && rHandles.length > 0) { + d += "M" + [pTrigger.x, pTrigger.y] + + "m" + [this.config.linkArrowWidth, 0] + + "l" + [-2 * this.config.linkArrowWidth, 0]; + } - if (this.trigger) { - minWord = maxWord = this.trigger; - } + // Figure out where to put the main link label + const linkLabelY = this.getLineY(triggerHandle.row); + if (lHandles.length > 0 && rHandles.length > 0) { + // Put it in the middle, right on top of the trigger Word + this.linkLabel.move(triggerHandle.x, linkLabelY); + } else if (lHandles.length === 0) { + // Put it in between the trigger and the first right handle + const rHandle = rHandles[0]; + + const linkLabelX = rHandle.row.idx === triggerHandle.row.idx + ? (triggerHandle.x + rHandle.x) / 2 + : (triggerHandle.x + triggerHandle.row.rw) / 2; + + this.linkLabel.move(linkLabelX, linkLabelY); + } else if (rHandles.length === 0) { + // Put it in between the trigger and the first left handle + const lHandle = lHandles[0]; + + const linkLabelX = lHandle.row.idx === triggerHandle.row.idx + ? (triggerHandle.x + lHandle.x) / 2 + : triggerHandle.x / 2; + + this.linkLabel.move(linkLabelX, linkLabelY); + } - this.arguments.forEach(arg => { - if (arg.anchor instanceof Link) { - let endpts = arg.anchor.getEndpoints(); - if (!minWord || minWord.idx > endpts[0].idx) { - minWord = endpts[0]; - } - if (!maxWord || maxWord.idx < endpts[1].idx) { - maxWord = endpts[1]; - } - } - else { // word or wordcluster - if (!minWord || minWord.idx > arg.anchor.idx) { - minWord = arg.anchor; - } - if (!maxWord || maxWord.idx < arg.anchor.idx) { - maxWord = arg.anchor; - } - } - }); - return [minWord, maxWord]; + // Perform draw + if (this.lastPathString !== d) { + this.path.plot(d); + this.lastPathString = d; + } + } + + /** + * Draws this Link as a Relation annotation (no trigger/directionality + * implied) + * @private + */ + _drawAsRelation() { + let d = ""; + const leftHandle = this.leftHandle; + const rightHandle = this.rightHandle; + + // Start/end points + const pStart = { + x: leftHandle.x, + y: this.top + ? leftHandle.y - this.config.linkHandlePadding + : leftHandle.y + this.config.linkHandlePadding + }; + const pEnd = { + x: rightHandle.x, + y: this.top + ? rightHandle.y - this.config.linkHandlePadding + : rightHandle.y + this.config.linkHandlePadding + }; + + const sameRow = leftHandle.row.idx === rightHandle.row.idx; + + // Width/position of the Link's label + // (Always on the first row for multi-line Links) + const textLength = this.linkLabel.length(); + const textY = this.getLineY(leftHandle.row); + + // Centre on the segment of the Link line on the first row, making sure + // it doesn't overshoot the right row boundary + let textCentre = sameRow + ? (pStart.x + pEnd.x) / 2 + : (pStart.x + leftHandle.row.rw) / 2; + if (textCentre + textLength / 2 > leftHandle.row.rw) { + textCentre = leftHandle.row.rw - textLength / 2; } - get rootWord() { - if (this.trigger) { return this.trigger; } - if (this.arguments[0].anchor instanceof Word) { - return this.arguments[0].anchor; + // Start preparing path string + d += "M" + [pStart.x, pStart.y]; + + // Left handle/label + // Draw up to the level of the Link line, then position the left arg label + const firstY = this.getLineY(leftHandle.row); + let curveLeftX = pStart.x + this.config.linkCurveWidth; + curveLeftX = Math.min(curveLeftX, leftHandle.row.rw); + const curveLeftY = this.top + ? firstY + this.config.linkCurveWidth + : firstY - this.config.linkCurveWidth; + + d += "L" + [pStart.x, curveLeftY] + + "Q" + [pStart.x, firstY, curveLeftX, firstY]; + + const leftLabel = this.argLabels[this.handles.indexOf(leftHandle)]; + let leftLabelCentre = pStart.x; + if (leftLabelCentre + leftLabel.length() / 2 > leftHandle.row.rw) { + leftLabelCentre = leftHandle.row.rw - leftLabel.length() / 2; + } + if (leftLabelCentre - leftLabel.length() / 2 < 0) { + leftLabelCentre = leftLabel.length() / 2; + } + leftLabel.move(leftLabelCentre, (pStart.y + firstY) / 2); + + // Right handle/label + // Handling depends on whether or not the right handle is on the same + // row as the left handle + let finalY = firstY; + if (!sameRow) { + // Draw in Link line across the end of the first row, and all + // intervening rows + d += "L" + [leftHandle.row.rw, firstY]; + + for (let i = leftHandle.row.idx + 1; i < rightHandle.row.idx; i++) { + const thisRow = this.main.rowManager.rows[i]; + const lineY = this.getLineY(thisRow); + d += "M" + [0, lineY] + + "L" + [thisRow.rw, lineY]; } - return this.arguments[0].anchor.rootWord; + + finalY = this.getLineY(rightHandle.row); + d += "M" + [0, finalY]; } - get idx() { - return this.rootWord.idx; + // Draw down from the main Link line on last row + const curveRightX = pEnd.x - this.config.linkCurveWidth; + const curveRightY = this.top + ? finalY + this.config.linkCurveWidth + : finalY - this.config.linkCurveWidth; + + d += "L" + [curveRightX, finalY] + + "Q" + [pEnd.x, finalY, pEnd.x, curveRightY] + + "L" + [pEnd.x, pEnd.y]; + + const rightLabel = this.argLabels[this.handles.indexOf(rightHandle)]; + let rightLabelCentre = pEnd.x; + if (rightLabelCentre + rightLabel.length() / 2 > rightHandle.row.rw) { + rightLabelCentre = rightHandle.row.rw - rightLabel.length() / 2; + } + if (rightLabelCentre - rightLabel.length() / 2 < 0) { + rightLabelCentre = rightLabel.length() / 2; } + rightLabel.move(rightLabelCentre, (pEnd.y + finalY) / 2); - get row() { - return this.rootWord.row; + // Arrowheads + d += this._arrowhead(pStart) + + this._arrowhead(pEnd); + + // Main label + this.linkLabel.move(textCentre, textY); + + // Perform draw + if (this.lastPathString !== d) { + this.path.plot(d); + this.lastPathString = d; } + } + + /** + * Returns an SVG path string for an arrowhead pointing towards the given + * point. The arrow points down for top Links, and up for bottom Links. + * @param point + * @return {string} + * @private + */ + _arrowhead(point) { + const s = this.config.linkArrowWidth, s2 = 5; + return this.top + ? "M" + [point.x - s, point.y - s2] + "l" + [s, s2] + "l" + [s, -s2] + : "M" + [point.x - s, point.y + s2] + "l" + [s, -s2] + "l" + [s, s2]; + } + + // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + // Debug functions + /** + * Draws the outline of this component's bounding box + */ + drawBbox() { + const bbox = this.svg.bbox(); + this.svg.polyline([ + [bbox.x, bbox.y], [bbox.x2, bbox.y], [bbox.x2, bbox.y2], [bbox.x, bbox.y2], + [bbox.x, bbox.y]]) + .fill("none") + .stroke({width: 1}); + } + + /** + * Draws the outline of the text element's bounding box + */ + drawTextBbox() { + const bbox = this.svgTexts[0].bbox(); + this.svg.polyline([ + [bbox.x, bbox.y], [bbox.x2, bbox.y], [bbox.x2, bbox.y2], [bbox.x, bbox.y2], + [bbox.x, bbox.y]]) + .fill("none") + .stroke({width: 1}); + } +} - get cx() { - if (this.line) { - if (this.trigger) { - return this.trigger.cx + this.handles[0].offset; - } - else { - // FIXME: does not occur currently +/** + * Helper class for Link handles (the start/end-points for the Link's line; + * for each Link, there is one handle for each associated Word/nested Link) + * @param {Word|Link} anchor - The Word or Link anchor for this Handle + * @param {Link} parent - The parent Link that this Handle belongs to + */ +class Handle { + constructor(anchor, parent) { + this.anchor = anchor; + this.parent = parent; + + this.x = 0; + this.y = 0; + + // Offsets + // ------- + // For anchor Links, offsets start at 0 on the left bound of the Link + // For anchor Words/WordTags, offsets start at 0 in the centre of the + // Word/WordTag + this.offset = 0; + + // If the handle's anchor has multiple Links associated with it, + // stagger them horizontally by setting this handle's offset + // based on its index in the anchor's list of links. + // We want to sort the Links by slot descending (the ones with higher slots + // should be on the left) + let l = anchor.links + .filter(link => link.top === parent.top) + .sort((a, b) => Math.abs(b.slot) - Math.abs(a.slot)); + + // Magic number for width to distribute handles across on the same anchor + // TODO: Base on anchor width? + let w = 15; + + // Distribute the handles based on their sort position + if (l.length > 1) { + if (anchor instanceof Link) { + this.offset = l.indexOf(parent) * w / (l.length - 1); + } else { + // Word/WordCluster offsets are a bit more complex -- We have to + // sort again based on whether the Link extends to the + // left or right of this anchor, then adjust the offset horizontally to + // account for the fact that offset 0 is the centre of the anchor + const leftLinks = []; + const rightLinks = []; + for (const link of l) { + if (anchor.idx > link.endpoints[0].idx) { + leftLinks.push(link); + } else { + rightLinks.push(link); + } } + + // To minimise crossings, we sort the left Links ascending this time, + // so that the ones with smaller slots are on the left. + leftLinks.sort((a, b) => Math.abs(a.slot) - Math.abs(b.slot)); + l = leftLinks.concat(rightLinks); + this.offset = (l.indexOf(parent) * w / (l.length - 1)) - w / 2; } - return this.rootWord.cx; } - get absoluteY() { - return this.rootWord.row.rh + this.rootWord.row.ry - 45 - 15 * this.slot; + // Row + // --- + // There are two possibilities; the argument might be a Word, or it + // might be a Link. For Words, the Handle is on the same Row. For + // Links, the Handle is in the same Row as the Link's left endpoint. + if (anchor instanceof Link) { + this.row = anchor.endpoints[0].row; + } else { + this.row = anchor.row; } - - get val() { - return this.reltype || this.trigger.reltype || (this.trigger.tag && this.trigger.tag.val) || this.trigger.val; + } + + /** + * Returns true if this handle precedes the given handle + * (i.e., this handle has an earlier Row, or is to its left within the + * same row) + * @param {Handle} handle + */ + precedes(handle) { + if (!this.row || !handle.row) { + return false; } + + return this.row.idx < handle.row.idx || + (this.row.idx === handle.row.idx && this.x < handle.x); + } } -module.exports = Link; \ No newline at end of file + +/** + * Helper class for various types of labels to be drawn on/around the Link. + * Consists of two main SVG elements: + * - An SVG Text element with the label text, drawn in some given colour + * - Another SVG Text element with the same text, but with a larger stroke + * width and drawn in white, to serve as the background for the main element + * + * @param mainSvg - The main SVG document (for firing events, etc.) + * @param {svgjs.Doc} svg - The SVG document/group to draw the Text elements in + * @param {String} text - The text of the Label + * @param {String} addClass - Any additional CSS classes to add to the SVG + * elements + */ +class Label { + constructor(mainSvg, svg, text, addClass) { + this.mainSvg = mainSvg; + this.svg = svg.group(); + + // Main label + /** @type svgjs.Text */ + this.svgText = this.svg.plain(text) + .addClass("tag-element") + .addClass("link-text") + .addClass(addClass); + + // Calculate the y-interval between the Text element's top edge and + // baseline, so that we can transform the background / move the Label + // around accordingly. + // Svg.js has actually already done this for us -- the value of `.y()` + // is the top edge, and `.attr("y")` is the baseline + this.svgTextBbox = this.svgText.bbox(); + this.ascent = this.svgText.attr("y") - this.svgText.y(); + this.baselineYOffset = this.ascent - this.svgTextBbox.h / 2; + + // Background (rectangle) + this.svgBackground = this.svg.rect( + this.svgTextBbox.width + 2, + this.svgTextBbox.height + ) + .addClass("tag-element") + .addClass("link-text-bg") + .addClass(addClass) + .radius(2.5) + .back(); + // Transform the rectangle to sit nicely behind the label + this.svgBackground.transform({ + x: -this.svgTextBbox.width / 2 - 1, + y: -this.ascent + }); + + // // Background (text) + // this.svgBackground = this.svg.text(text) + // .addClass("tag-element") + // .addClass("link-text-bg") + // .addClass(addClass) + // .back(); + + // Click events + this.svgText.node.oncontextmenu = (e) => { + this.selectedLabel = text; + e.preventDefault(); + this.mainSvg.fire("link-label-right-click", { + object: this.svgText, + type: "text", + event: e + }); + }; + this.svgText.click((e) => this.mainSvg.fire("link-label-edit", { + object: this.svgText, + text, + event: e + })); + this.svgText.dblclick((e) => this.mainSvg.fire("build-tree", { + object: this.svgText, + event: e + })); + + // Start hidden + this.hide(); + } + + /** + * Shows the Label text elements + */ + show() { + this.svgBackground.show(); + this.svgText.show(); + } + + /** + * Hides the Label text elements + */ + hide() { + this.svgBackground.hide(); + this.svgText.hide(); + } + + /** + * Moves the centre of the baseline of the Label text elements to the given + * coordinates + * (N.B.: SVG Text elements are positioned horizontally by their centres, + * by default. Also, setting the y-attribute directly allows us to move + * the Text element directly by its baseline, rather than its top edge) + * @param x - New horizontal centre of the Label + * @param y - New baseline of the Label + */ + move(x, y) { + this.svgBackground.move(x, y); + this.svgText.attr({x, y}); + } + + /** + * Centres the Label elements horizontally and vertically on the given point + * @param x - New horizontal centre of the Label + * @param y - New vertical centre of the Label + */ + centre(x, y) { + return this.move(x, y + this.baselineYOffset); + } + + /** + * Returns the length (i.e., width) of the main label + * https://svgjs.com/docs/2.7/elements/#text-length + */ + length() { + return this.svgText.length(); + } + + // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + // Debug functions + /** + * Draws the outline of the text element's bounding box + */ + drawTextBbox() { + const bbox = this.svgText.bbox(); + this.svg.polyline([ + [bbox.x, bbox.y], [bbox.x2, bbox.y], [bbox.x2, bbox.y2], [bbox.x, bbox.y2], + [bbox.x, bbox.y]]) + .fill("none") + .stroke({width: 1}); + } +} + +export default Link; \ No newline at end of file diff --git a/src/js/components/row.js b/src/js/components/row.js index 670772a..5160437 100644 --- a/src/js/components/row.js +++ b/src/js/components/row.js @@ -1,144 +1,474 @@ -import * as draggable from 'svg.draggable.js'; - class Row { - constructor(svg, idx = 0, ry = 0, rh = 100) { + /** + * Creates a new Row for holding Words. + * + * @param svg - This Row's SVG group + * @param {Config~Config} config - The Config object for the parent TAG + * instance + * @param {Number} idx - The Row's index + * @param {Number} ry - The y-position of the Row's top edge + * @param {Number} rh - The Row's height + */ + constructor(svg, config, idx = 0, ry = 0, rh = 100) { + this.config = config; + this.idx = idx; this.ry = ry; // row position from top this.rh = rh; // row height this.rw = 0; this.words = []; - this.maxSlot = 0; - this.minSlot = 0; // svg elements this.svg = null; // group this.draggable = null; // row resizer this.wordGroup = null; // child group element + // The last Word we removed, if any. + // In case we have a Row with no Words left but which still has Links + // passing through. + this.lastRemovedWord = null; + if (svg) { - this.init(svg); + this.svgInit(svg); } } - init(svg) { - this.svg = svg.group() - .transform({y: this.ry}) - .addClass('row'); - // group element to contain word elements - this.wordGroup = this.svg.group() - .y(this.rh); + /** + * Initialises the SVG elements related to this Row, and performs an + * initial draw of the baseline/resize line + * @param mainSvg - The main SVG document + */ + svgInit(mainSvg) { + // All positions will be relative to the baseline for this Row + this.svg = mainSvg.group() + .transform({y: this.baseline}) + .addClass("tag-element") + .addClass("row"); - // set width - this.rw = svg.width(); + // Group element to contain word elements + this.wordGroup = this.svg.group(); - // add draggable rectangle + // Row width + this.rw = mainSvg.width(); + + // Add draggable resize line this.draggable = this.svg.line(0, 0, this.rw, 0) - .y(this.rh) - .addClass('row-drag') + .addClass("tag-element") + .addClass("row-drag") .draggable(); - let row = this; let y = 0; this.draggable - .on('dragstart', function(e) { y = e.detail.p.y; }) - .on('dragmove', (e) => { + .on("dragstart", function (e) { + y = e.detail.p.y; + }) + .on("dragmove", (e) => { e.preventDefault(); let dy = e.detail.p.y - y; y = e.detail.p.y; - svg.fire('row-resize', { object: this, y: dy }); + mainSvg.fire("row-resize", {object: this, y: dy}); }); } + + /** + * Removes all elements related to this Row from the main SVG document + * @return {*} + */ remove() { return this.svg.remove(); } + /** + * Changes the y-position of this Row's upper bound by the given amount + * @param y + */ dy(y) { this.ry += y; - this.svg.transform({y: this.ry}); + this.svg.transform({y: this.baseline}); } + /** + * Moves this Row's upper bound vertically to the given y-position + * @param y + */ move(y) { this.ry = y; - this.svg.transform({y: this.ry}); + this.svg.transform({y: this.baseline}); } + /** + * Sets the height of this Row + * @param rh + */ height(rh) { this.rh = rh; - this.wordGroup.y(this.rh); - this.draggable.y(this.rh); + this.svg.transform({y: this.baseline}); } + + /** + * Sets the width of this Row + * @param rw + */ width(rw) { this.rw = rw; - this.draggable.attr('x2', this.rw); + this.draggable.attr("x2", this.rw); } - addWord(word, i, ignorePosition) { - if (isNaN(i)) { i = this.words.length; } + /** + * Adds the given Word to this Row at the given index, adjusting the + * x-positions of any Words with higher indices. + * Optionally, attempts to force an x-position for the Word. + * If adding the Word to the Row causes any existing Words to overflow its + * bounds, will return the index of the first Word that no longer fits. + * @param word + * @param index + * @param forceX + * @return {number} - The index of the first Word that no longer fits, if + * the additional Word causes overflow + */ + addWord(word, index, forceX) { + if (isNaN(index)) { + index = this.words.length; + } word.row = this; - this.words.splice(i,0,word); + this.words.splice(index, 0, word); this.wordGroup.add(word.svg); - if (!ignorePosition) { - return this.moveWordRight(word); + // Determine the new x-position this Word should have. + word.x = -1; + let newX; + if (index === 0) { + newX = this.config.rowEdgePadding; + } else { + const prevWord = this.words[index - 1]; + newX = prevWord.x + prevWord.minWidth; + if (word.isPunct) { + newX += this.config.wordPunctPadding; + } else { + newX += this.config.wordPadding; + } + } + + if (forceX) { + newX = forceX; } + + return this.positionWord(word, newX); + } - moveWordRight(word, x) { - const EDGE_PADDING = 10; - const WORD_PADDING = 5; + /** + * Assumes that the given Word is already on this Row. + * Tries to move the Word to the given x-position, adjusting the + * x-positions of all the following Words on the Row as well. + * If this ends up pushing some Words off the Row, returns the index of + * the first Word that no longer fits. + * @param word + * @param newX + * @return {number} - The index of the first Word that no longer fits, if + * the additional Word causes overflow + */ + positionWord(word, newX) { + const wordIndex = this.words.indexOf(word); + const prevWord = this.words[wordIndex - 1]; + const nextWord = this.words[wordIndex + 1]; - let i = this.words.indexOf(word); - let prevWord = this.words[i - 1]; - if (x) { - x = Math.min(this.rw, x); - if (x + word.boxWidth > this.rw - EDGE_PADDING) { - return i; - } - word.move(x); - ++i; - prevWord = word; - } - else if (!prevWord) { - word.move(EDGE_PADDING); - ++i; - prevWord = word; - } - while (i < this.words.length) { - let word = this.words[i]; - let dx = prevWord.x + prevWord.boxWidth + (word.isPunct ? 0 : WORD_PADDING); - if (word.x > dx) { - // prevWord fits in space before next word; return - return; + // By default, assume that no Words have overflowed the Row + let overflowIndex = this.words.length; + + // Make sure we aren't stomping over a previous Word + if (prevWord) { + const wordPadding = word.isPunct + ? this.config.wordPunctPadding + : this.config.wordPadding; + + if (newX < prevWord.x + prevWord.minWidth + wordPadding) { + throw `Trying to position new Word over existing one! + (Row: ${this.idx}, wordIndex: ${wordIndex})`; } - // move next word over - if (dx + word.boxWidth > this.rw - EDGE_PADDING) { - return i; + } + + // Change the position of the next Word if we have to; + if (nextWord) { + const nextWordPadding = nextWord.isPunct + ? this.config.wordPunctPadding + : this.config.wordPadding; + + if (nextWord.x - nextWordPadding < newX + word.minWidth) { + overflowIndex = this.positionWord( + nextWord, + newX + word.minWidth + nextWordPadding + ); } - word.move(dx); - prevWord = this.words[i]; - ++i; + } + + // We have moved the next Word on the Row, or marked it as part of the + // overflow; at this point, we either have space to move this Word, or + // this Word itself is about to overflow the Row. + if (newX + word.minWidth > this.rw - this.config.rowEdgePadding) { + // Alas. The overflowIndex is ours. + return wordIndex; + } else { + // We can move. If any of the Words that follow us overflowed, return + // their index. + word.move(newX); + return overflowIndex; } } + + /** + * Removes the specified Word from this Row, returning it for potential + * further operations. + * @param word + * @return {Word} + */ removeWord(word) { + if (this.lastRemovedWord !== word) { + this.lastRemovedWord = word; + } this.words.splice(this.words.indexOf(word), 1); this.wordGroup.removeElement(word.svg); return word; } + + /** + * Removes the last Word from this Row, returning it for potential + * further operations. + * @return {Word} + */ removeLastWord() { - const word = this.words.pop(); - this.wordGroup.removeElement(word.svg); - return word; + return this.removeWord(this.words[this.words.length - 1]); } - removeFirstWord() { - const word = this.words.shift(); - this.wordGroup.removeElement(word.svg); - return word; + + /** + * Redraws all the unique Links and WordClusters associated with all the + * Words in the row + */ + redrawLinksAndClusters() { + const elements = []; + for (const word of this.words) { + for (const link of word.passingLinks) { + if (elements.indexOf(link) < 0) { + elements.push(link); + } + } + for (const cluster of word.clusters) { + if (elements.indexOf(cluster) < 0) { + elements.push(cluster); + } + } + } + elements.forEach(element => element.draw()); } - get ry2() { return this.ry + this.rh + 20 - this.minSlot * 15; } + /** + * Gets the y-position of the Row's baseline (where the draggable resize + * line is, and the baseline for all the Row's words) + */ + get baseline() { + return this.ry + this.rh; + } + + /** + * Returns the lower bound of the Row on the y-axis + * @return {number} + */ + get ry2() { + return this.ry + this.rh + this.minDescent; + } + + /** + * Returns the maximum slot occupied by Links related to Words on this Row. + * Considers positive slots, so only accounts for top Links. + */ + get maxSlot() { + let checkWords = this.words; + if (checkWords.length === 0 && this.lastRemovedWord !== null) { + // We let all our Words go; what was the last one that mattered? + checkWords = [this.lastRemovedWord]; + } + + let maxSlot = 0; + for (const word of checkWords) { + for (const link of word.passingLinks) { + maxSlot = Math.max(maxSlot, link.slot); + } + } + return maxSlot; + } + + /** + * Returns the minimum slot occupied by Links related to Words on this Row. + * Considers negative slots, so only accounts for bottom Links. + */ + get minSlot() { + let checkWords = this.words; + if (checkWords.length === 0 && this.lastRemovedWord !== null) { + // We let all our Words go; what was the last one that mattered? + checkWords = [this.lastRemovedWord]; + } + + let minSlot = 0; + for (const word of checkWords) { + for (const link of word.passingLinks) { + minSlot = Math.min(minSlot, link.slot); + } + } + return minSlot; + } + + /** + * Returns the maximum height above the baseline of the Word + * elements on the Row (accounting for their top WordTags and attached + * WordClusters, if present) + */ + get wordHeight() { + let wordHeight = 0; + for (const word of this.words) { + wordHeight = Math.max(wordHeight, word.boxHeight); + + if (word.clusters.length > 0) { + for (const cluster of word.clusters) { + wordHeight = Math.max(wordHeight, cluster.fullHeight); + } + } + } + if (wordHeight === 0 && this.lastRemovedWord) { + // If we have no Words left on this Row, base our calculations on the + // last Word that was on this Row, for positioning any Links that are + // still passing through + wordHeight = this.lastRemovedWord.boxHeight; + if (this.lastRemovedWord.clusters.length > 0) { + for (const cluster of this.lastRemovedWord.clusters) { + wordHeight = Math.max(wordHeight, cluster.fullHeight); + } + } + } + return wordHeight; + } + + /** + * Returns the maximum descent below the baseline of the Word + * elements on the Row (accounting for their bottom WordTags, if present) + */ + get wordDescent() { + let wordDescent = 0; + for (const word of this.words) { + wordDescent = Math.max(wordDescent, word.descendHeight); + } + return wordDescent; + } + + /** + * Returns the minimum amount of height above the baseline needed to fit + * all this Row's Words, top WordTags and currently-visible top Links. + * Includes vertical Row padding. + * @return {number} + */ get minHeight() { - return 60 + this.maxSlot * 15; + // Minimum height needed for Words + padding only + let height = this.wordHeight + this.config.rowVerticalPadding; + + // Highest visible top Link + let maxVisibleSlot = 0; + + let checkWords = this.words; + if (checkWords.length === 0 && this.lastRemovedWord !== null) { + // We let all our Words go; what was the last one that mattered? + checkWords = [this.lastRemovedWord]; + } + + for (const word of checkWords) { + for (const link of word.links.concat(word.passingLinks)) { + if (link.top && link.visible) { + maxVisibleSlot = Math.max( + maxVisibleSlot, + link.slot + ); + } + } + } + + // Because top Link labels are above the Link lines, we need to add + // their height if any of the Words on this Row is an endpoint for a Link + if (maxVisibleSlot > 0) { + return height + + maxVisibleSlot * this.config.linkSlotInterval + + this.config.rowExtraTopPadding; + } + + // Still here? No visible top Links on this row. + return height; + } + + /** + * Returns the minimum amount of descent below the baseline needed to fit + * all this Row's bottom WordTags and currently-visible bottom Links. + * Includes vertical Row padding. + * @return {number} + */ + get minDescent() { + // Minimum height needed for WordTags + padding only + let descent = this.wordDescent + this.config.rowVerticalPadding; + + // Lowest visible bottom Link + let minVisibleSlot = 0; + + let checkWords = this.words; + if (checkWords.length === 0 && this.lastRemovedWord !== null) { + // We let all our Words go; what was the last one that mattered? + checkWords = [this.lastRemovedWord]; + } + + for (const word of checkWords) { + for (const link of word.links.concat(word.passingLinks)) { + if (!link.top && link.visible) { + minVisibleSlot = Math.min( + minVisibleSlot, + link.slot + ); + } + } + } + + // Unlike in the `minHeight()` function, bottom Link labels do not + // extend below the Link lines, so we don't need to add extra padding + // for them. + if (minVisibleSlot < 0) { + return descent + Math.abs(minVisibleSlot) * this.config.linkSlotInterval; + } + + // Still here? No visible bottom Links on this row. + return descent; + } + + /** + * Returns the amount of space available at the end of this Row for adding + * new Words + */ + get availableSpace() { + if (this.words.length === 0) { + return this.rw - this.config.rowEdgePadding * 2; + } + + const lastWord = this.words[this.words.length - 1]; + return this.rw - this.config.rowEdgePadding - lastWord.x - lastWord.minWidth; + } + + // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + // Debug functions + /** + * Draws the outline of this component's bounding box + */ + drawBbox() { + const bbox = this.svg.bbox(); + this.svg.polyline([ + [bbox.x, bbox.y], [bbox.x2, bbox.y], [bbox.x2, bbox.y2], [bbox.x, bbox.y2], + [bbox.x, bbox.y]]) + .fill("none") + .stroke({width: 1}); } } -module.exports = Row; \ No newline at end of file + +export default Row; \ No newline at end of file diff --git a/src/js/components/tag.js b/src/js/components/tag.js deleted file mode 100644 index 311e194..0000000 --- a/src/js/components/tag.js +++ /dev/null @@ -1,108 +0,0 @@ -class WordTag { - constructor(val, word, above = true) { - this.val = val; - this.entity = word; - this.position = above; - - if (!word.svg) { - console.log("error: word must have an svg element"); - return; - } - - this.svg = word.svg.group() - .y(this.tagOffset); - this.svgText = this.svg.text(this.val) - .addClass(above ? 'word-tag' : 'word-tag syntax-tag'); - this.ww = this.svgText.length(); - - // add click and right-click listeners - let svg = word.mainSVG; - this.svgText.node.oncontextmenu = (e) => { - e.preventDefault(); - svg.fire('tag-right-click', { object: this, event: e }); - }; - this.svgText.click((e) => svg.fire('tag-edit', { object: this })); - - this.line = this.svg.path(); - this.updateWordWidth(); - } - remove() { - this.entity.tag = null; - this.entity.calculateBox(); - return this.svg.remove(); - } - updateWordWidth() { - if (this.position) { - let ww = this.entity.ww; - if (this.entity.val.length < 9) { - this.line.plot('M0,25,l0,8'); - } - else { - let diff = ww / 2; - this.line.plot('M0,25,c0,8,' - + [diff,0,diff,8] - + ',M0,25,c0,8,' - + [-diff,0,-diff,8] - ); - } - } - } - text(val) { - if (val === undefined) { return this.svgText; } - this.val = val; - this.svgText.text(this.val); - this.ww = this.svgText.length(); - if (this.editingRect) { - let bbox = this.svgText.bbox(); - if (bbox.width > 0) { - this.editingRect - .width(bbox.width + 8) - .height(bbox.height + 4) - .x(bbox.x - 4) - .y(bbox.y - 2); - } - else { - this.editingRect.width(10) - .x(-5); - } - } - } - changeEntity(word) { - if (this.entity) { - this.entity.tag = null; - } - - this.entity = word; - this.entity.tag = this; - this.entity.svg.add(this.svg); - } - listenForEdit() { - this.isEditing = true; - let bbox = this.svgText.bbox(); - - this.svg.addClass('editing'); - this.editingRect = this.svg.rect(bbox.width + 8, bbox.height + 4) - .x(bbox.x - 4) - .y(bbox.y - 2) - .rx(2) - .ry(2) - .back(); - } - stopEditing() { - this.isEditing = false; - this.svg.removeClass('editing'); - this.editingRect.remove(); - this.editingRect = null; - this.val = this.val.trim(); - if (!this.val) { - this.remove(); - } - else { - this.entity.calculateBox(); - } - } - get tagOffset() { - return this.position ? -28 : 20; - } -} -module.exports = WordTag; \ No newline at end of file diff --git a/src/js/components/word-cluster.js b/src/js/components/word-cluster.js new file mode 100644 index 0000000..da4cdbc --- /dev/null +++ b/src/js/components/word-cluster.js @@ -0,0 +1,384 @@ +/** + * Tags for cases where multiple words make up a single entity + * E.g.: The two words "DNA damage" as a single "BioProcess" + * + * Act as the anchor for any incoming Links (in lieu of the Words it covers) + * + * WordTag -> Word -> Row + * [WordCluster] + * Link + */ + +class WordCluster { + /** + * Creates a new WordCluster instance + * @param {Word[]} words - An array of the Words that this cluster will cover + * @param {String} val - The raw text for this cluster's label + */ + constructor(words = [], val) { + this.eventIds = []; + this.val = val; + this.words = words; + this.links = []; + + // SVG elements: + // 2 groups for left & right brace, containing: + // a path appended to each of the two groups + // a text label appended to the left group + // The SVG groups are children of the main SVG document rather than the + // Word's SVG group, since WordClusters technically exceed the bounds of + // their individual Words. + this.svgs = []; + this.lines = []; + this.svgText = null; + + // The main API instance for the visualisation + this.main = null; + + // Main Config object for the parent instance; set by `.init()` + this.config = null; + + // Cached SVG BBox values + this._textBbox = null; + + words.forEach(word => word.clusters.push(this)); + } + + /** + * Any event IDs (essentially arbitrary labels) that this WordCluster is + * associated with + * @param id + */ + addEventId(id) { + if (this.eventIds.indexOf(id) < 0) { + this.eventIds.push(id); + } + } + + /** + * Sets the text of this WordCluster, or returns this WordCluster's SVG text + * element + * @param val + * @return {*} + */ + text(val) { + if (val === undefined) { + return this.svgText; + } + + this.val = val; + this.svgText.text(this.val); + this._textBbox = this.svgText.bbox(); + + if (this.editingRect) { + let bbox = this.svgText.bbox(); + if (bbox.width > 0) { + this.editingRect + .width(bbox.width + 8) + .height(bbox.height + 4) + .x(bbox.x - 4) + .y(bbox.y - 2); + } else { + this.editingRect.width(10) + .x(this.svgText.x() - 5); + } + } + } + + /** + * Initialise this WordCluster against the main API instance. + * Will be called once each by every Word within this cluster's coverage, + * but we are really only interested in the first Word and the last Word + * @param {Word} word - A Word within this cluster's coverage. + * @param main + */ + init(word, main) { + const idx = this.endpoints.indexOf(word); + if (idx < 0) { + // Not a critical word + return; + } + + this.main = main; + this.config = main.config; + + // A critical Word. Prepare the corresponding SVG group. + const mainSvg = main.svg; + + if (!this.svgs[idx]) { + let svg = this.svgs[idx] = mainSvg.group() + .addClass("tag-element") + .addClass("word-cluster"); + + this.lines[idx] = svg.path() + .addClass("tag-element"); + + // Add the text label to the left arm + if (idx === 0) { + this.svgText = svg.text(this.val).leading(1); + this._textBbox = this.svgText.bbox(); + + this.svgText.node.oncontextmenu = (e) => { + e.preventDefault(); + mainSvg.fire("tag-right-click", {object: this, event: e}); + }; + this.svgText.click(() => mainSvg.fire("tag-edit", {object: this})); + } + } + + // Perform initial draw if both arms are ready + if (this.lines[1] && this.endpoints[1].row) { + this.draw(); + } + } + + /** + * Draws in the SVG elements for this WordCluster + * https://codepen.io/explosion/pen/YGApwd + */ + draw() { + if (!this.lines[1] || !this.endpoints[1].row) { + // The Word/WordClusters are not ready for drawing + return; + } + + /** @type {Word} */ + const leftAnchor = this.endpoints[0]; + /** @type {Word} */ + const rightAnchor = this.endpoints[1]; + + const leftX = leftAnchor.x; + const rightX = rightAnchor.x + rightAnchor.boxWidth; + + if (leftAnchor.row === rightAnchor.row) { + // Draw in full curly brace between anchors + const baseY = this.getBaseY(leftAnchor.row); + const textY = baseY + - this.config.wordTopTagPadding + - this._textBbox.height; + + const centre = (leftX + rightX) / 2; + this.svgText.move(centre, textY); + this._textBbox = this.svgText.bbox(); + + // Each arm consists of two curves with relatively tight control + // points (to preserve the "hook-iness" of the curve). + // The following x-/y- values are all relative. + const armWidth = (rightX - leftX) / 2; + const curveWidth = armWidth / 2; + + const curveControl = Math.min(curveWidth, this.config.linkCurveWidth); + const curveY = -this.config.wordTopTagPadding / 2; + + // Left arm + this.lines[0].plot( + "M" + [leftX, baseY] + + "c" + [0, curveY, curveControl, curveY, curveWidth, curveY] + + "c" + [curveWidth - curveControl, 0, curveWidth, 0, curveWidth, curveY] + ); + + // Right arm + this.lines[1].plot( + "M" + [rightX, baseY] + + "c" + [0, curveY, -curveControl, curveY, -curveWidth, curveY] + + "c" + [-curveWidth + curveControl, 0, -curveWidth, 0, -curveWidth, curveY] + ); + } else { + // Extend curly brace to end of first Row, draw intervening rows, + // finish on last Row + const textY = leftAnchor.row.baseline + - leftAnchor.boxHeight + - this._textBbox.height + - this.config.wordTopTagPadding; + let centre = (leftX + leftAnchor.row.rw) / 2; + this.svgText.move(centre, textY); + this._textBbox = this.svgText.bbox(); + + // Left arm + const leftY = this.getBaseY(leftAnchor.row); + const armWidth = (leftAnchor.row.rw - leftX) / 2; + const curveWidth = armWidth / 2; + + const curveControl = Math.min(curveWidth, this.config.linkCurveWidth); + const curveY = -this.config.wordTopTagPadding / 2; + + this.lines[0].plot( + "M" + [leftX, leftY] + + "c" + [0, curveY, curveControl, curveY, curveWidth, curveY] + + "c" + [curveWidth - curveControl, 0, curveWidth, 0, curveWidth, curveY] + ); + + // Right arm, first Row + let d = ""; + d += "M" + [leftAnchor.row.rw, leftY + curveY] + + "c" + [-armWidth + curveControl, 0, -armWidth, 0, -armWidth, curveY]; + + // Intervening rows + for (let i = leftAnchor.row.idx + 1; i < rightAnchor.row.idx; i++) { + const thisRow = this.main.rowManager.rows[i]; + const lineY = this.getBaseY(thisRow); + d += "M" + [0, lineY + curveY] + + "L" + [thisRow.rw, lineY + curveY]; + } + + // Last Row + const rightY = this.getBaseY(rightAnchor.row); + d += "M" + [rightX, rightY] + + "c" + [0, curveY, -curveControl, curveY, -rightX, curveY]; + + this.lines[1].plot(d); + + // // draw right side of brace extending to end of row and align text + // let center = (-left + this.endpoints[0].row.rw) / 2 + 10; + // this.x = center + lOffset; + // this.svgText.x(center + lOffset); + // + // this.lines[0].plot("M" + lOffset + // + ",33c0,-10," + [center, 0, center, -8] + // + "c0,10," + [center, 0, center, 8] + // ); + // this.lines[1].plot("M" + rOffset + // + ",33c0,-10," + [-right + 8, 0, -right + 8, -8] + // + "c0,10," + [-right + 8, 0, -right + 8, 8] + // ); + } + + // propagate draw command to parent links + this.links.forEach(l => l.draw(this)); + } + + /** + * Calculates what the absolute y-value for the base of this cluster's curly + * brace should be if it were drawn on the given Row + * @param row + */ + getBaseY(row) { + // Use the taller of the endpoint's boxes as the base + const wordHeight = Math.max( + this.endpoints[0].boxHeight, + this.endpoints[1].boxHeight + ); + + return row.baseline - wordHeight; + } + + remove() { + this.svgs.forEach(svg => svg.remove()); + this.words.forEach(word => { + let i = word.clusters.indexOf(this); + if (i > -1) { + word.clusters.splice(i, 1); + } + }); + } + + listenForEdit() { + this.isEditing = true; + let bbox = this.svgText.bbox(); + + this.svgs[0] + .addClass("tag-element") + .addClass("editing"); + this.editingRect = this.svgs[0].rect(bbox.width + 8, bbox.height + 4) + .x(bbox.x - 4) + .y(bbox.y - 2) + .rx(2) + .ry(2) + .back(); + } + + stopEditing() { + this.isEditing = false; + this.svgs[0].removeClass("editing"); + this.editingRect.remove(); + this.editingRect = null; + this.val = this.val.trim(); + if (!this.val) { + this.remove(); + } + } + + /** + * Returns an array of the first and last Words covered by this WordCluster + * @return {Word[]} + */ + get endpoints() { + return [ + this.words[0], + this.words[this.words.length - 1] + ]; + } + + get row() { + return this.endpoints[0].row; + } + + /** + * Returns the absolute y-position of the top of the WordCluster's label + * (for positioning Links that point at it) + * @return {Number} + */ + get absoluteY() { + // The text label lives with the left arm of the curly brace + const thisHeight = this.svgs[0].bbox().height; + return this.endpoints[0].absoluteY - thisHeight; + } + + /** + * Returns the height of this WordCluster, from Row baseline to the top of + * its label + */ + get fullHeight() { + // The text label lives with the left arm of the curly brace + const thisHeight = this.svgs[0].bbox().height; + return this.endpoints[0].boxHeight + thisHeight; + } + + get idx() { + return this.endpoints[0].idx; + } + + /** + * Returns the x-position of the centre of this WordCluster's label + * @return {*} + */ + get cx() { + return this._textBbox.cx; + } + + /** + * Returns the width of the bounding box of the WordTag's SVG text element + * @return {Number} + */ + get textWidth() { + return this._textBbox.width; + } + + // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + // Debug functions + /** + * Draws the outline of this component's bounding box + */ + drawBbox() { + const bbox = this.svgs[0].bbox(); + this.svgs[0].polyline([ + [bbox.x, bbox.y], [bbox.x2, bbox.y], [bbox.x2, bbox.y2], [bbox.x, bbox.y2], + [bbox.x, bbox.y]]) + .fill("none") + .stroke({width: 1}); + } + + /** + * Draws the outline of the text element's bounding box + */ + drawTextBbox() { + const bbox = this.svgText.bbox(); + this.svgs[0].polyline([ + [bbox.x, bbox.y], [bbox.x2, bbox.y], [bbox.x2, bbox.y2], [bbox.x, bbox.y2], + [bbox.x, bbox.y]]) + .fill("none") + .stroke({width: 1}); + } +} + +export default WordCluster; \ No newline at end of file diff --git a/src/js/components/word-tag.js b/src/js/components/word-tag.js new file mode 100644 index 0000000..d5deda6 --- /dev/null +++ b/src/js/components/word-tag.js @@ -0,0 +1,248 @@ +/** + * Tags for single entities/tokens. + * Essentially a helper class for Words; should not be directly instantiated + * by Parsers. + * + * [WordTag] -> Word -> Row + * WordCluster + * Link + */ + +class WordTag { + /** + * Creates a new WordTag instance + * @param {String} val - The raw text for this WordTag + * @param {Word} word - The parent Word for this WordTag + * @param {Config~Config} config - The Config object for the parent TAG + * instance + * @param {Boolean} top - True if this WordTag should be drawn above the + * parent Word, false if it should be drawn below + */ + constructor(val, word, config, top = true) { + this.val = val; + this.word = word; + this.config = config; + this.top = top; + + if (!word.svg) { + throw "Error: Trying to initialise WordTag on Word without SVG" + + " element"; + } + + this.draw(); + } + + /** + * (Re-)draws this WordTag's SVG elements onto the visualisation + */ + draw() { + if (this.svg) { + // Delete remnants of any previous draw + this.remove(); + } + + // Prepare our SVG elements as a group within the Word's SVG element + this.svg = this.word.svg.group(); + + // Draw in the SVG text element. + // Note that applying classes to the text element may change its font + // size, and if its font size changes, the anchor point for the resizing + // is the text's baseline (not any of the bounding box sides). + // N.B.: Typographical baselines ignore descenders + this.svgText = this.svg.text(this.val) + .addClass("tag-element") + .addClass(this.top ? "word-tag" : "word-tag syntax-tag") + .leading(1); + + // add click and right-click listeners + let mainSvg = this.word.main.svg; + this.svgText.node.oncontextmenu = (e) => { + e.preventDefault(); + mainSvg.fire("tag-right-click", {object: this, event: e}); + }; + this.svgText.click(() => mainSvg.fire("tag-edit", {object: this})); + + // Draws a line / curly bracket between the Word and this WordTag, if + // it's a top tag + this.line = this.svg.path() + .addClass("tag-element"); + this.drawTagLine(); + + // Centre the WordTag and its line horizontally + // (SVG text elements are positioned on the x-axis by their centres) + this.centre(); + + // Position the WordTag above/below the main Word + // (It starts with its upper-left corner on the Row's baseline) + let newY; + if (this.top) { + newY = -this.word.textHeight - this.svgText.bbox().height + - this.config.wordTopTagPadding; + } else { + newY = this.config.wordBottomTagPadding; + } + this.svgText.y(newY); + this.line.cy((this.svgText.bbox().y2 + this.word.svgText.bbox().y) / 2); + } + + /** + * Centres this WordTag and its line horizontally against the base Word's + * current position + * (N.B.: SVG Text elements are positioned on the x-axis by their centres) + */ + centre() { + // Centre the Text element + this.svgText.x(this.word.textRcx); + + // Centre the line between the Word and WordTag + this.line.cx(this.svgText.cx()); + } + + /** + * Removes this WordTag's SVG elements from the visualisation + * If this instance is not deleted, it can be redrawn with the `.draw()` + * method + * @return {*} + */ + remove() { + this.svg.remove(); + this.svg = null; + } + + /** + * Draws a connecting line between this WordTag and its parent Word, if + * this is a top WordTag. + */ + drawTagLine() { + if (!this.top) { + return; + } + + const wordWidth = this.word.textWidth; + + if (wordWidth < this.config.wordBraceThreshold) { + // Draw a single vertical line + this.line.plot("M 0,0, 0," + this.config.wordTagLineLength); + } else { + // Draw a curly brace + const height = this.config.wordTagLineLength; + const arm = wordWidth / 2; + this.line.plot( + "M0,0" + + "c" + [0, height, arm, 0, arm, height] + + "M0,0" + + "c" + [0, height, -arm, 0, -arm, height] + ); + } + } + + + /** + * Sets the text of this WordTag, or returns this WordTag's SVG text element + * @param val + * @return {*} + */ + text(val) { + if (val === undefined) { + return this.svgText; + } + + this.val = val; + this.svgText.text(this.val); + + if (this.editingRect) { + let bbox = this.svgText.bbox(); + if (bbox.width > 0) { + this.editingRect + .width(bbox.width + 8) + .height(bbox.height + 4) + .x(bbox.x - 4) + .y(bbox.y - 2); + } else { + this.editingRect.width(10) + .x(-5); + } + } + } + + /** + * Returns the width of the bounding box for this WordTag + */ + boxWidth() { + return this.svg.bbox().width; + } + + /** + * Returns the width of the bounding box of the WordTag's SVG text element + * @return {Number} + */ + get textWidth() { + return this.svgText.bbox().width; + } + + changeEntity(word) { + if (this.word) { + this.word.tag = null; + } + + this.word = word; + this.word.tag = this; + this.word.svg.add(this.svg); + } + + listenForEdit() { + this.isEditing = true; + let bbox = this.svgText.bbox(); + + this.svg + .addClass("tag-element") + .addClass("editing"); + this.editingRect = this.svg.rect(bbox.width + 8, bbox.height + 4) + .x(bbox.x - 4) + .y(bbox.y - 2) + .rx(2) + .ry(2) + .back(); + } + + stopEditing() { + this.isEditing = false; + this.svg.removeClass("editing"); + this.editingRect.remove(); + this.editingRect = null; + this.val = this.val.trim(); + if (!this.val) { + this.remove(); + } else { + this.word.alignBox(); + } + } + + // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + // Debug functions + /** + * Draws the outline of this component's bounding box + */ + drawBbox() { + const bbox = this.svg.bbox(); + this.svg.polyline([ + [bbox.x, bbox.y], [bbox.x2, bbox.y], [bbox.x2, bbox.y2], [bbox.x, bbox.y2], + [bbox.x, bbox.y]]) + .fill("none") + .stroke({width: 1}); + } + + /** + * Draws the outline of the text element's bounding box + */ + drawTextBbox() { + const bbox = this.svgText.bbox(); + this.svg.polyline([ + [bbox.x, bbox.y], [bbox.x2, bbox.y], [bbox.x2, bbox.y2], [bbox.x, bbox.y2], + [bbox.x, bbox.y]]) + .fill("none") + .stroke({width: 1}); + } +} + +export default WordTag; \ No newline at end of file diff --git a/src/js/components/word.js b/src/js/components/word.js index 2681e1b..1ab3f0b 100644 --- a/src/js/components/word.js +++ b/src/js/components/word.js @@ -1,178 +1,511 @@ -import WordTag from './tag.js'; -import * as draggable from 'svg.draggable.js'; +/** + * Objects representing raw entity/token strings. + * + * The SVG elements for the Word and any attendant WordTags are positioned + * within an SVG group such that the bounding box of the Word always has an + * x-value of 0. In addition, a y-value of 0 within the bounding box + * corresponds to the bottom of the Word's text element (between the Word + * and a bottom WordTag, if one is present). + * + * Actual positioning of this Word's SVG elements is then achieved by + * applying an x-transformation to the SVG group as a whole. + * + * WordTag / WordCluster -> [Word] -> Row + */ + +import WordTag from "./word-tag.js"; class Word { - constructor(val, idx, tag, svg, row) { - this.eventIds = []; - this.val = val; - this.idx = idx; - this.x = 0; - this.slot = 0; - this.boxWidth = 0; - this.boxHeight = 0; - this.descendHeight = 0; - this.isPunct = (val.length === 1 && val.charCodeAt(0) < 65); // FIXME: doesn't handle fancier unicode punct | should exclude left-punctuation e.g. left-paren or left-quote - this.clusters = []; - this.links = []; - - if (tag) { - this.setTag(tag); - } - if (svg) { - this.init(svg, row); - } + /** + * Creates a new Word instance + * @param {String} text - The raw text for this Word + * @param {Number} idx - The index of this Word within the + * currently-parsed document + */ + constructor(text, idx) { + this.text = text; + this.idx = idx; + + // Optional properties that may be set later + // ----------------------------------------- + this.eventIds = []; + + this.registeredTags = {}; + this.topTagCategory = ""; + this.bottomTagCategory = ""; + + // Back-references that will be set when this Word is used in + // other structures + // --------------------------------------------------------- + // WordTag + this.topTag = null; + this.bottomTag = null; + + // WordCluster + this.clusters = []; + + // Link + this.links = []; + + // Row + this.row = null; + + // Links that pass over this Word (even if this Word is not an endpoint + // for the Link) -- Used for Link/Row slot calculations + this.passingLinks = []; + + // SVG-related properties + // ---------------------- + this.initialised = false; + + // Main API instance + this.main = null; + + // Main Config object for the parent instance + this.config = null; + + // SVG group containing this Word and its attendant WordTags + this.svg = null; + + // The x-position of the left bound of the Word's box + this.x = 0; + + // Calculate the SVG BBox only once per transformation (it's expensive) + this._bbox = null; + this._textBbox = null; + } + + /** + * Any event IDs (essentially arbitrary labels) that this Word is + * associated with + * @param id + */ + addEventId(id) { + if (this.eventIds.indexOf(id) < 0) { + this.eventIds.push(id); } - addEventId(id) { - if (this.eventIds.indexOf(id) < 0) { - this.eventIds.push(id); - } + } + + /** + * Register a tag for this word under the given category. + * At run-time, one category of tags can be shown above this Word and + * another can be shown below it. + * @param {String} category + * @param {String} tag + */ + registerTag(category = "default", tag) { + this.registeredTags[category] = tag; + } + + /** + * Returns all the unique tag categories currently registered for this Word + */ + getTagCategories() { + return Object.keys(this.registeredTags); + } + + /** + * Sets the top tag category for this Word, redrawing it if it is initialised + * @param {String} category + */ + setTopTagCategory(category) { + if (this.topTag) { + this.topTag.remove(); + this.topTag = null; } - setSyntaxId(id) { - this.syntaxId = id; + + // Not all categories of tags will be available for all Words + if (!this.registeredTags[category]) { + return; } - setTag(tag) { - if (this.svg) { - if (tag instanceof WordTag) { - this.tag = tag; - } - else if (this.tag instanceof WordTag) { - this.tag.text(tag); - } - else { - this.tag = new WordTag(tag, this); - } - this.calculateBox(); - } - else { - this.tag = tag; - } - return this.tag; + this.topTagCategory = category; + if (this.initialised) { + this.topTag = new WordTag( + this.registeredTags[category], + this, + this.config + ); + + // Since one of the Word's tags has changed, recalculate/realign its + // bounding box + this.alignBox(); } - setSyntaxTag(tag) { - if (this.svg) { - if (tag instanceof WordTag) { - this.syntaxTag = tag; - } - else if (this.syntaxTag instanceof WordTag) { - this.syntaxTag.text(tag); - } - else { - this.tag = new WordTag(tag, this, false); - } - this.calculateBox(); - } - else { - this.syntaxTag = tag; - } - return this.syntaxTag; + } + + /** + * Sets the bottom tag category for this Word, redrawing it if it is + * initialised + * @param {String} category + */ + setBottomTagCategory(category) { + if (this.bottomTag) { + this.bottomTag.remove(); + this.bottomTag = null; } - init(svg) { - this.mainSVG = svg; - this.svg = svg.group() - .addClass('word'); + // Not all categories of tags will be available for all Words + if (!this.registeredTags[category]) { + return; + } - // draw text - this.svgText = this.svg.text(this.val).addClass('word-text'); + this.bottomTagCategory = category; + if (this.initialised) { + this.bottomTag = new WordTag( + this.registeredTags[category], + this, + this.config, + false + ); - // draw tag - if (this.tag && !(this.tag instanceof WordTag)) { - this.tag = new WordTag(this.tag, this); - } - if (this.syntaxTag && !(this.syntaxTag instanceof WordTag)) { - this.syntaxTag = new WordTag(this.syntaxTag, this, false); - } + // Since one of the Word's tags has changed, recalculate/realign its + // bounding box + this.alignBox(); + } + } - // draw cluster info - this.clusters.forEach((cluster) => { - cluster.init(this); - }); + /** + * Initialises the SVG elements related to this Word, and performs an + * initial draw of it and its WordTags. + * The Word will be drawn in the top left corner of the canvas, but will + * be properly positioned when added to a Row. + * @param main - The main API instance + */ + init(main) { + this.main = main; + this.config = main.config; - // translate over by half (since the text is centered) - this.calculateBox(); - this.svg.y(-this.svgText.bbox().y2); - - // attach drag listeners - let x = 0; - let mousemove = false; - this.svgText.draggable() - .on('dragstart', function(e) { - mousemove = false; - x = e.detail.p.x; - svg.fire('word-move-start'); - }) - .on('dragmove', (e) => { - e.preventDefault(); - let dx = e.detail.p.x - x; - x = e.detail.p.x; - svg.fire('word-move', { object: this, x: dx }); - if (dx !== 0) { mousemove = true; } - }) - .on('dragend', (e) => { - svg.fire('word-move-end', { object: this, clicked: mousemove === false }); - }); + const mainSvg = main.svg; - // attach right click listener - this.svgText.dblclick((e) => svg.fire('build-tree', { object: this, event: e })); - this.svgText.node.oncontextmenu = (e) => { - e.preventDefault(); - svg.fire('word-right-click', { object: this, event: e }); - } - } + this.svg = mainSvg.group() + .addClass("tag-element") + .addClass("word"); - redrawLinks() { - this.links.forEach(l => l.draw(this)); - this.redrawClusters(); + // Draw main word text. We remove the default additional leading + // (basically vertical line-height padding) so that we can position it + // more precisely. + this.svgText = this.svg.text(this.text) + .addClass("tag-element") + .addClass("word-text") + .leading(1); + + // The positioning anchor for the text element is its centre, so we need + // to translate the entire Word rightward by half its width. + // In addition, the x/y-position points at the upper-left corner of the + // Word's bounding box, but since we are working relative to the Row's + // main line, we need to move the Word upwards so that the lower-left + // corner meets the Row. + // The desired final outcome is for the Text element's bbox to have an + // x-value of 0 and a y2-value of 0. + const currentBox = this.svgText.bbox(); + this.svgText.move(-currentBox.x, -currentBox.height); + this._textBbox = this.svgText.bbox(); + + // ------------------------ + // Draw in this Word's tags + if (this.topTagCategory) { + this.topTag = new WordTag( + this.registeredTags[this.topTagCategory], + this, + this.config + ); + } + if (this.bottomTagCategory) { + this.bottomTag = new WordTag( + this.registeredTags[this.bottomTagCategory], + this, + this.config, + false + ); } - redrawClusters() { - this.clusters.forEach(cluster => { - if (cluster.endpoints.indexOf(this) > -1) { - cluster.draw(); + // Draw cluster info + this.clusters.forEach((cluster) => { + cluster.init(this, main); + }); + + // Ensure that all the SVG elements for this Word and any WordTags are + // well-positioned within the Word's bounding box, and set the cached + // values this._textBbox and this._bbox + this.alignBox(); + + // --------------------- + // Attach drag listeners + let x = 0; + let mousemove = false; + this.svgText.draggable() + .on("dragstart", function (e) { + mousemove = false; + x = e.detail.p.x; + mainSvg.fire("word-move-start"); + }) + .on("dragmove", (e) => { + e.preventDefault(); + let dx = e.detail.p.x - x; + x = e.detail.p.x; + mainSvg.fire("word-move", {object: this, x: dx}); + if (dx !== 0) { + mousemove = true; } + }) + .on("dragend", () => { + mainSvg.fire("word-move-end", { + object: this, + clicked: mousemove === false + }); }); - } + // attach right click listener + this.svgText.dblclick((e) => mainSvg.fire("build-tree", { + object: this, + event: e + })); + this.svgText.node.oncontextmenu = (e) => { + e.preventDefault(); + mainSvg.fire("word-right-click", {object: this, event: e}); + }; - move(x) { - this.x = x; - this.svg.transform({x: this.boxWidth / 2 + this.x}); - this.redrawLinks(); - } + this.initialised = true; + } - dx(x) { - this.move(this.x + x); - } + /** + * Redraw Links + */ + redrawLinks() { + this.links.forEach(l => l.draw(this)); + this.redrawClusters(); + } - calculateBox() { - let minWidth = (this.tag instanceof WordTag) ? Math.max(this.tag.ww, this.ww) : this.ww; - // if (this.syntaxTag instanceof WordTag && this.syntaxTag.ww > minWidth) { minWidth = this.syntaxTag.ww; } - let diff = this.boxWidth - minWidth; - this.boxWidth -= diff; - this.descendHeight = this.syntaxTag instanceof WordTag ? this.syntaxTag.svgText.bbox().height : 0; - this.boxHeight = this.svg.bbox().height - this.descendHeight; + /** + * Redraw all clusters (they should always be visible) + */ + redrawClusters() { + this.clusters.forEach(cluster => { + if (cluster.endpoints.indexOf(this) > -1) { + cluster.draw(); + } + }); + } - this.dx(diff / 2); - this.mainSVG.fire('word-move', {object: this, x: 0}); - } + /** + * Sets the base x-position of this Word and its attendant SVG elements + * (including its WordTags) + * @param x + */ + move(x) { + this.x = x; + this.svg.transform({x: this.x}); + this.redrawLinks(); + } - moveToRow(row, i, ignorePosition = true) { - this.row.removeWord(this); - row.addWord(this, i, ignorePosition); - } + /** + * Moves the base x-position of this Word and its attendant SVG elements + * by the given amount + * @param x + */ + dx(x) { + this.move(this.x + x); + } + + /** + * Aligns the elements of this Word and any attendant WordTags such that + * the entire Word's bounding box has an x-value of 0, and an x2-value + * equal to its width + */ + alignBox() { + // We begin by resetting the position of the Text elements of this Word + // and any WordTags, so that consecutive calls to `.alignBox()` don't + // push them further and further away from their starting point + this.svgText.attr({x: 0, y: 0}); + const currentBox = this.svgText.bbox(); + this.svgText.move(-currentBox.x, -currentBox.height); + this._textBbox = this.svgText.bbox(); - get absoluteDescent() { - return this.row ? this.row.ry + this.row.rh + this.descendHeight + 8 : 0; + if (this.topTag) { + this.topTag.centre(); } - get absoluteY() { - // console.log(this.svgText.bbox().height); - return this.row ? this.row.ry + this.row.rh - this.boxHeight : 0; + if (this.bottomTag) { + this.bottomTag.centre(); + } + + // Generally, we will only need to move things around if the WordTags + // are wider than the Word, which gives the Word's bounding box a + // negative x-value. + this._bbox = this.svg.bbox(); + const diff = -this._bbox.x; + if (diff <= 0) { + return; } - get cx() { - return this.x + this.boxWidth / 2; + + // We can't apply the `.x()` translation directly to this Word's SVG + // group, or it will simply set a transformation on the group (leaving + // the bounding box unchanged). We need to move all its children + // (recursively) instead. + function childrenDx(parent, diff) { + for (const child of parent.children()) { + if (child.children && child.children()) { + childrenDx(child, diff); + } else { + child.dx(diff); + } + } } - get ww() { - return this.svgText.length(); + + childrenDx(this.svg, diff); + + // And update the cached values + this._bbox = this.svg.bbox(); + } + + /** + * Returns the width of the bounding box for this Word and its WordTags. + * @return {Number} + */ + get boxWidth() { + return this._bbox.width; + } + + /** + * Returns the minimum width needed to hold this Word and its WordTags. + * Differs from boxWidth in that it will also reserve space for the Word's + * WordClusters if necessary (even though the WordClusters are not + * technically part of the Word's box) + */ + get minWidth() { + // The Word's Bbox covers the Word and its WordTags + let minWidth = this.boxWidth; + + for (const cluster of this.clusters) { + const [clusterLeft, clusterRight] = cluster.endpoints; + if (clusterLeft.row !== clusterRight.row) { + // Let's presume that if the Rows are different, the Cluster has + // enough space (this probably isn't true, but can be revisited later) + continue; + } + + const wordWidth = + cluster.endpoints[1].x + cluster.endpoints[1].boxWidth + - cluster.endpoints[0].x; + + const labelWidth = cluster.svgText.bbox().width; + + if (labelWidth > wordWidth) { + // The WordCluster's label is wider than the Words it comprises; add + // a bit of extra width to this Word + minWidth = Math.max(minWidth, labelWidth / cluster.words.length); + } + } + return minWidth; + } + + /** + * Returns the extent of the bounding box for this Word above the Row's line + * @return {Number} + */ + get boxHeight() { + // Since the Word's box is relative to the Row's line to begin with, + // this is simply the negative of the y-value of the box + return -this._bbox.y; + } + + /** + * Returns the extent of the bounding box for this Word below the Row's line + * @return {Number} + */ + get descendHeight() { + // Since the Word's box is relative to the Row's line to begin with, + // this is simply the y2-value of the box + return this._bbox.y2; + } + + /** + * Returns the absolute y-position of the top of this Word's bounding box + * @return {Number} + */ + get absoluteY() { + return this.row + ? this.row.baseline - this.boxHeight + : this.boxHeight; + } + + /** + * Returns the absolute y-position of the bottom of this Word's bounding box + * @return {Number} + */ + get absoluteDescent() { + return this.row + ? this.row.ry + this.row.rh + this.descendHeight + : this.descendHeight; + } + + /** + * Returns the absolute x-position of the centre of this Word's box + * @return {Number} + */ + get cx() { + return this.x + this.boxWidth / 2; + } + + /** + * Returns the width of the bounding box of the Word's SVG text element + * @return {Number} + */ + get textWidth() { + return this._textBbox.width; + } + + /** + * Returns the height of the bounding box of the Word's SVG text element + * @return {Number} + */ + get textHeight() { + return this._textBbox.height; + } + + /** + * Returns the *relative* x-position of the centre of the bounding + * box of the Word's SVG text element + */ + get textRcx() { + return this._textBbox.cx; + } + + /** + * Returns true if this Word contains a single punctuation character + * + * FIXME: doesn't handle fancier unicode punctuation | should exclude + * left-punctuation e.g. left-paren or left-quote + * @return {Boolean} + */ + get isPunct() { + return (this.text.length === 1 && this.text.charCodeAt(0) < 65); + } + + // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + // Debug functions + /** + * Draws the outline of this component's bounding box + */ + drawBbox() { + const bbox = this.svg.bbox(); + this.svg.polyline([ + [bbox.x, bbox.y], [bbox.x2, bbox.y], [bbox.x2, bbox.y2], [bbox.x, bbox.y2], + [bbox.x, bbox.y]]) + .fill("none") + .stroke({width: 1}); + } + + /** + * Draws the outline of the text element's bounding box + */ + drawTextBbox() { + const bbox = this.svgText.bbox(); + this.svg.polyline([ + [bbox.x, bbox.y], [bbox.x2, bbox.y], [bbox.x2, bbox.y2], [bbox.x, bbox.y2], + [bbox.x, bbox.y]]) + .fill("none") + .stroke({width: 1}); + } } -module.exports = Word; \ No newline at end of file + +export default Word; \ No newline at end of file diff --git a/src/js/components/wordcluster.js b/src/js/components/wordcluster.js deleted file mode 100644 index 94645d5..0000000 --- a/src/js/components/wordcluster.js +++ /dev/null @@ -1,183 +0,0 @@ -class WordCluster { - constructor(words = [], val) { - this.eventIds = []; - this.val = val; - this.words = words; - this.slot = words.reduce((acc, w) => Math.max(acc, w.slot), 0); - this.metaValue = words.map(w => { - w.clusters.push(this); - return w.val; - }).join(' '); - this.setEndpoints(); - this.links = []; - - // svgs: - // 2 groups for left & right brace, containing: - // a path appended to each of the two groups - // a text label appended to the left group - this.svgs = []; - this.lines = []; - this.svgText = null; - this.x = 0; // x position of text - } - addEventId(id) { - if (this.eventIds.indexOf(id) < 0) { - this.eventIds.push(id); - } - } - setTag(tag) { - this.val = tag; - } - text(val) { - this.val = val; - this.svgText.text(this.val); - - if (this.editingRect) { - let bbox = this.svgText.bbox(); - if (bbox.width > 0) { - this.editingRect - .width(bbox.width + 8) - .height(bbox.height + 4) - .x(bbox.x - 4) - .y(bbox.y - 2); - } - else { - this.editingRect.width(10) - .x(this.svgText.x() - 5); - } - } - } - setEndpoints() { - this.endpoints = [ - this.words[0], - this.words[this.words.length - 1] - ]; - } - - /** - * function init : draw path and attach it to svg of the parent word element - * @param word - */ - init(word) { - let i = this.endpoints.indexOf(word); - if (i === 0 || i === 1) { - if (this.svgs[i]) { - console.log('already exists u dumb fuck'); // TODO: handle this - } - else { - let svg = this.svgs[i] = word.svg.group() - .addClass('word-cluster'); - - // TODO: recalculate offset when tag is added/removed - if (this.words.find(word => word.tag)) { - svg.y(this.tagOffset * 1.9); - } - else { - svg.y(this.tagOffset); - } - - this.lines[i] = svg.path(); - if (i === 0) { - this.svgText = svg.text(this.val); - this.svgText.node.oncontextmenu = (e) => { - e.preventDefault(); - word.mainSVG.fire('tag-right-click', { object: this, event: e }); - }; - this.svgText.click((e) => word.mainSVG.fire('tag-edit', { object: this })); - } - } - this.draw(); - } - } - - /** - * recalculate position of lines - */ - draw() { - if (!this.lines[1]) { return; } - let left = this.endpoints[0].x; - let right = this.endpoints[1].x + this.endpoints[1].boxWidth; - - let lOffset = -this.endpoints[0].boxWidth / 2; - let rOffset = this.endpoints[1].boxWidth / 2; - - if (this.endpoints[0].row === this.endpoints[1].row) { - // draw left side of the brace and align text - let center = (-left + right) / 2; - this.x = center + lOffset; - this.svgText.x(center + lOffset); - this.lines[0].plot('M' + lOffset + ',33c0,-10,' + [center,0,center,-8]); - this.lines[1].plot('M' + rOffset + ',33c0,-10,' + [-center,0,-center,-8]); - } - else { - // draw right side of brace extending to end of row and align text - let center = (-left + this.endpoints[0].row.rw) / 2 + 10; - this.x = center + lOffset; - this.svgText.x(center + lOffset); - - this.lines[0].plot('M' + lOffset - + ',33c0,-10,' + [center,0,center,-8] - + 'c0,10,' + [center,0,center,8] - ); - this.lines[1].plot('M' + rOffset - + ',33c0,-10,' + [-right + 8, 0, -right + 8, -8] - + 'c0,10,' + [-right + 8, 0, -right + 8, 8] - ); - } - - // propagate draw command to parent links - this.links.forEach(l => l.draw(this)); - } - remove() { - this.svgs.forEach(svg => svg.remove()); - this.words.forEach(word => { - let i = word.clusters.indexOf(this); - if (i > -1) { - word.clusters.splice(i, 1); - } - }); - } - - listenForEdit() { - this.isEditing = true; - let bbox = this.svgText.bbox(); - - this.svgs[0].addClass('editing'); - this.editingRect = this.svgs[0].rect(bbox.width + 8, bbox.height + 4) - .x(bbox.x - 4) - .y(bbox.y - 2) - .rx(2) - .ry(2) - .back(); - } - stopEditing() { - this.isEditing = false; - this.svgs[0].removeClass('editing'); - this.editingRect.remove(); - this.editingRect = null; - this.val = this.val.trim(); - if (!this.val) { - this.remove(); - } - } - - get row() { - return this.endpoints[0].row; - } - get absoluteY() { - return this.endpoints[0].absoluteY; - } - get idx() { - return this.endpoints[0].idx; - } - get cx() { - return this.endpoints[0].cx; - } - get ww() { - return this.svgText.length(); - } - get tagOffset() { - return -28; - } -} -module.exports = WordCluster; \ No newline at end of file diff --git a/src/js/config.js b/src/js/config.js new file mode 100644 index 0000000..244f3b6 --- /dev/null +++ b/src/js/config.js @@ -0,0 +1,198 @@ +/** + * *Configuration options for the library* + * + * Each TAG instance will instantiate its own instance of the Config object, so + * that various options can be changed on the fly. + * + * These options can be changed at init-time by the user via the `options` + * parameter, or on the fly via other API methods. + */ + +/** + * Available configuration options: + * @typedef {Object} Config~Config + * + * @property {String|"none"} topLinkCategory="default" + * The category of {@link Link} to show above the text. + * @property {String|"none"} bottomLinkCategory="none" + * The category of {@link Link} to show below the text. + * + * @property {String|"none"} topTagCategory="default" + * The category of {@link WordTag} to show above the text. + * @property {String|"none"} bottomTagCategory="POS" + * The category of {@link WordTag} to show below the text. + * + * @property {Boolean} compactRows=false + * Whether or not to lock every {@link Row} to its minimum height. + * + * @property {Boolean} showTopLinksOnMove=true + * Continue to display top {@link Link}s when the user drags {@link + * Word Words} around. + * @property {Boolean} showBottomLinksOnMove=true + * Continue to display bottom {@link Link}s when the user drags {@link + * Word Words} around. + * + * @property {Boolean} showTopMainLabel=true + * Display the main type label for top {@link Link Links}. + * @property {Boolean} showTopArgLabels=false + * Display the type labels for each argument for top {@link Link Links}. + * @property {Boolean} showBottomMainLabel=true + * Display the main type label for bottom {@link Link Links}. + * @property {Boolean} showBottomArgLabels=false + * Display the type labels for each argument for bottom {@link Link Links}. + * + * @property {Number} rowEdgePadding=10 + * Padding on the left/right edges of each {@link Row}. + * @property {Number} rowVerticalPadding=20 + * Padding on the top/bottom of each {@link Row}. + * @property {Number} rowExtraTopPadding=10 + * Extra padding on {@link Row} top for {@link Link} labels.
    + * (Labels for top Links are drawn above their line, and it is not trivial + * to get a good value for how high they are, so swe use a pre-configured + * value here.) + * + * @property {Number} wordPadding=10 + * Padding on the left of {@link Word Words}. + * @property {Number} wordPunctPadding=2 + * Padding on the left of {@link Word Words} that contain a single + * punctuation character. + * @property {Number} wordTopTagPadding=10 + * Padding between {@link Word Words} and the {@link WordTag WordTags} + * drawn above them. + * @property {Number} wordBottomTagPadding=0 + * Padding between {@link Word Words} and the {@link WordTag WordTags} + * drawn below them. + * @property {Number} wordTagLineLength=9 + * For {@link WordTag WordTags} drawn above {@link Word Words}, the height + * of the connecting line/brace between the {@link Word} and the + * {@link WordTag}. + * @property {Number} wordBraceThreshold=100 + * {@link Word Words} that are wider than this will have curly braces + * drawn between them and their {@link WordTag WordTags} (rather than a + * single vertical line). + * + * @property {Number} linkSlotInterval=40 + * Vertical distance between each overlapping {@link Link} slot. + * @property {Number} linkHandlePadding=2 + * Vertical padding between {@link Link} handles and their anchors. + * @property {Number} linkCurveWidth=5 + * Corner curve width for {@link Link} lines. + * @property {Number} linkArrowWidth=5 + * Width of arrowheads for {@link Link} handles. + * + * @property {String[]} tagDefaultColours=... + * The first *n* default colours to use for {@link WordTag WordTags} (as a + * queue). After this array is exhausted, {@link WordTag WordTags} will + * be assigned random colours by default.
    + * See the source for the pre-configured default values. + */ + +class Config { + /** + * Instantiates a new configuration object. + * @returns {Config~Config} + */ + constructor() { + // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + // User options + + // Category of top/bottom Links to show + this.topLinkCategory = "default"; + this.bottomLinkCategory = "none"; + + // Category of top/bottom tags to show + this.topTagCategory = "default"; + this.bottomTagCategory = "POS"; + + // Lock Rows to minimum height? + this.compactRows = false; + + // Continue to display top/bottom Links when moving Words? + this.showTopLinksOnMove = true; + this.showBottomLinksOnMove = false; + + // Show main/argument labels on Links? + this.showTopMainLabel = true; + this.showTopArgLabels = false; + this.showBottomMainLabel = true; + this.showBottomArgLabels = false; + + // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + // Drawing options for Rows + + // Padding on the left/right edges of each Row + this.rowEdgePadding = 10; + + // Padding on the top/bottom of each Row + this.rowVerticalPadding = 20; + + // Extra padding on Row top for Link labels + // (Labels for top Links are drawn above their line, and it is not + // trivial to get a good value for how high they are, so we use a + // pre-configured value here) + this.rowExtraTopPadding = 10; + + // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + // Drawing options for Words + + // Left-padding for Words + this.wordPadding = 10; + + // Left-padding for punctuation Words + this.wordPunctPadding = 2; + + // Vertical padding between Words and WordTags drawn above them + this.wordTopTagPadding = 10; + + // Vertical padding between Words and WordTags drawn below them + this.wordBottomTagPadding = 0; + + // For WordTags drawn above Words, the height of the connecting + // line/brace between the Word and the WordTag + this.wordTagLineLength = 9; + + // Words that are wider than this width will have curly braces drawn + // between them and their tags. Words that are shorter will have single + // vertical lines drawn between them and their tags. + this.wordBraceThreshold = 100; + + // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + // Drawing options for Links in the visualisation + + // Vertical distance between each Link slot (for crossing/overlapping Links) + this.linkSlotInterval = 40; + + // Vertical padding between Link arrowheads and their anchors + this.linkHandlePadding = 2; + + // Corner curve width for Links + this.linkCurveWidth = 5; + + // Width of arrowheads for handles + this.linkArrowWidth = 5; + + // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + // Drawing options for Tags + + // An array containing the first n default colours to use for tags (as a + // queue). When this array is exhausted, we will switch to using + // randomColor. + this.tagDefaultColours = [ + "#3fa1d1", + "#ed852a", + "#2ca02c", + "#c34a1d", + "#a048b3", + "#e377c2", + "#bcbd22", + "#17becf", + "#e7298a", + "#e6ab02", + "#7570b3", + "#a6761d", + "#7f7f7f" + ]; + } +} + +export default Config; \ No newline at end of file diff --git a/src/js/main.js b/src/js/main.js index 2cd1871..2e9dc15 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -1,441 +1,641 @@ -import * as SVG from 'svg.js'; -import Parser from './parse/parse.js'; -import TreeLayout from './treelayout.js'; -import * as ymljson from './ymljson.js'; -import LabelManager from './managers/labelmanager.js'; -import RowManager from './managers/rowmanager.js'; -import Taxonomy from './managers/taxonomy.js'; -import Tooltip from './managers/tooltip.js'; -import Word from './components/word.js'; -import WordCluster from './components/wordcluster.js'; -import Link from './components/link.js'; -import load from './xhr.js'; - -const Main = (function() { - // classes - let parser, lm, rm, tm; - - // main svg element - let svg; - let css = ''; - - // node-link objects - let words = []; - let links = []; - let clusters = []; - - // other html elements - let tooltip = {}; - let tree = {}; - let options = { - showSyntax: false, - showLinksOnMove: false, - showTreeInModal: false - }; - - //-------------------------------- - // public functions - //-------------------------------- +/** + * Main library class + */ + +import _ from "lodash"; +import $ from "jquery"; +import * as SVG from "svg.js"; + +import Parser from "./parse/parse.js"; +import RowManager from "./managers/rowmanager.js"; +import LabelManager from "./managers/labelmanager.js"; +import Taxonomy from "./managers/taxonomy.js"; + +import Config from "./config.js"; + +import Util from "./util.js"; + +/** + * Take a small performance hit from `autobind` to ensure that the scope of + * `this` is always correct for all our API methods + */ +import autobind from "autobind-decorator"; + +@autobind +class Main { /** - * init: set up singleton classes and create initial drawing + * Initialises a TAG instance with the given parameters + * @param {String|Element|jQuery} container - Either a string containing the + * ID of the container element, or the element itself (as a + * native/jQuery object) + * @param {Object} options - Overrides for default library options */ - function init() { - // setup - let body = document.body.getBoundingClientRect(); - svg = new SVG.Doc('main') - .size(body.width, window.innerHeight - body.top - 10); - tooltip = new Tooltip('tooltip', svg); - parser = new Parser(); - rm = new RowManager(svg); - lm = new LabelManager(svg); - tm = new Taxonomy('taxonomy'); - tree = new TreeLayout('#tree', svg); - - if (document.getElementById('svgStyles')) { - css = document.getElementById('svgStyles').innerHTML; + constructor(container, options = {}) { + // Config options + this.config = _.defaults( + options, + new Config() + ); + + // SVG.Doc expects either a string with the element's ID, or the element + // itself (not a jQuery object). + if (_.hasIn(container, "jquery")) { + container = container[0]; } - // load and render initial dataset by default - changeDataset(); + this.svg = new SVG.Doc(container); - setupSVGListeners(); - setupUIListeners(); - } // end init + // That said, we need to set the SVG Doc's size using absolute units + // (since they are used for calculating the widths of rows and other + // elements). We use jQuery to get the parent's size. + this.$container = $(this.svg.node).parent(); + // Managers/Components + this.parser = new Parser(); + this.rowManager = new RowManager(this.svg, this.config); + this.labelManager = new LabelManager(this.svg); + this.taxonomyManager = new Taxonomy(this.config); - function setupSVGListeners() { - // svg event listeners - svg.on('row-resize', function(e) { - lm.stopEditing(); - rm.resizeRow(e.detail.object.idx, e.detail.y); - }); - - // svg.on('label-updated', function(e) { - // // TODO: so so incomplete - // let color = tm.getColor(e.detail.label, e.detail.object); - // e.detail.object.node.style.fill = color; - // }); + // Tokens and links that are currently drawn on the visualisation + this.words = []; + this.links = []; - svg.on('word-move-start', function() { - if (!options.showLinksOnMove && options.showSyntax) { - setSyntaxVisibility(false); - } - }); + // Initialisation + this.resize(); + this._setupSVGListeners(); + this._setupUIListeners(); + } - svg.on('word-move', function(e) { - tooltip.clear() - lm.stopEditing(); - rm.moveWordOnRow(e.detail.object, e.detail.x); - }); + // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + // Loading data into the parser - svg.on('word-move-end', function(e) { - if (!options.showLinksOnMove && options.showSyntax) { - setSyntaxVisibility(true); - } - }); + /** + * Loads the given annotation data onto the TAG visualisation + * @param {Object} data - The data to load + * @param {String} format - One of the supported format identifiers for + * the data + */ + loadData(data, format) { + this.parser.loadData(data, format); + this.redraw(); + } - // svg.on('tag-remove', function(e) { - // e.detail.object.remove(); - // tm.remove(e.detail.object); - // }); + /** + * Reads the given data file asynchronously and loads it onto the TAG + * visualisation + * @param {Object} path - The path pointing to the data + * @param {String} format - One of the supported format identifiers for + * the data + */ + async loadUrlAsync(path, format) { + const data = await $.ajax(path); + this.parser.loadData(data, format); + this.redraw(); + } - svg.on('row-recalculate-slots', function(e) { - links.forEach(link => { - link.resetSlotRecalculation(); - }); - links.forEach(link => { - link.recalculateSlots(words); - link.draw(); + /** + * Reads the given annotation files and loads them onto the TAG + * visualisation + * @param {FileList} fileList - We generally expect only one file here, but + * some formats (e.g., Brat) involve multiple files per dataset + * @param {String} format + */ + async loadFilesAsync(fileList, format) { + // Instantiate FileReaders for all the given files, and wait until they + // are read + const readPromises = _.map(fileList, (file) => { + const reader = new FileReader(); + reader.readAsText(file); + return new Promise((resolve) => { + reader.onload = () => { + resolve({ + name: file.name, + type: file.type, + content: reader.result + }); + }; }); }); - svg.on('build-tree', function(e) { - document.body.classList.remove('tree-closed'); - if (tree.isInModal) { - setActiveTab('tree'); - } - else { - setActiveTab(null); - } - if (e.detail) { - tree.graph(e.detail.object); - } - else { - tree.resize(); - } - }); - } - - function setActiveTab(pageId, modalId="modal") { - let m = document.getElementById(modalId); - if (pageId == null) { - m.classList.remove('open'); - } - else { - m.classList.add('open'); - - m.querySelector('.tab.active').classList.remove('active'); - m.querySelector('.page.active').classList.remove('active'); - m.querySelector('header span[data-id="' + pageId + '"]').classList.add('active'); - document.getElementById(pageId).classList.add('active'); - } + const files = await Promise.all(readPromises); + this.parser.loadFiles(files, format); + this.redraw(); } - function setupUIListeners() { - // window event listeners - // resize function - function resizeWindow() { - let body = document.body.getBoundingClientRect(); - links.forEach(l => l.hide()); - svg.width(body.width); - rm.width(body.width); - setSyntaxVisibility(); - } - window.onresize = debounce(resizeWindow, 200); + // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + // Controlling the SVG element - document.getElementById('dataset').onchange = function(e) { - if (this.selectedIndex > 0) { - // FIXME: this can be improved by instead receiving the file name, rather than an index. - changeDataset(this.selectedIndex); - } + /** + * Prepares all the Rows/Words/Links. + * Adds all Words/WordClusters to Rows in the visualisation, but does not draw + * Links or colour the various Words/WordTags + */ + init() { + // Save a reference to the currently loaded tokens and links + const data = this.parser.getParsedData(); + this.words = data.words; + this.links = data.links; + + // Calculate the Link slots (vertical intervals to separate + // crossing/intervening Links). + // Because the order of the Links array affects the slot calculations, + // we sort it here first in case they aren't sorted in the original + // annotation data. + this.links = Util.sortForSlotting(this.links); + this.links.forEach(link => link.calculateSlot(this.words)); + + // Initialise the first Row; new ones will be added automatically as + // Words are drawn onto the visualisation + if (this.words.length > 0 && !this.rowManager.lastRow) { + this.rowManager.appendRow(); } - document.querySelectorAll('#options input').forEach(input => { - input.onclick = function() { - let option = this.getAttribute('data-option'); - switch(option) { - case 'syntax': - options.showSyntax = this.checked; - setSyntaxVisibility(); - break; - case 'links': - options.showLinksOnMove = this.checked; - break; - case 'tree': - options.showTreeInModal = this.checked; - // document.querySelector('.tab[data-id="tree"]').style.display = this.checked ? 'inline-block' : 'none'; - break; - default: ; - } - }; + // Draw the Words onto the visualisation + this.words.forEach(word => { + // If the tag categories to show for the Word are already set (via the + // default config or user options), set them here so that the Word can + // draw them directly on init + word.setTopTagCategory(this.config.topTagCategory); + word.setBottomTagCategory(this.config.bottomTagCategory); + word.init(this); + this.rowManager.addWordToRow(word, this.rowManager.lastRow); }); - let modalHeader = document.querySelector('#modal header'); - let modalDrag = null; - let modalWindow = document.querySelector('#modal > div'); - modalHeader.onmousedown = function(e) { - modalDrag = e; - } - document.addEventListener('mousemove', function(e) { - if (modalDrag) { - let dx = e.x - modalDrag.x; - let dy = e.y - modalDrag.y; - modalDrag = e; - let transform = modalWindow.style.transform.match(/-?\d+/g) || [0,0]; - transform[0] = +transform[0] + dx || dx; - transform[1] = +transform[1] + dy || dy; - modalWindow.style.transform = `translate(${transform[0]}px, ${transform[1]}px)`; - } + // We have to initialise all the Links before we draw any of them, to + // account for nested Links etc. + this.links.forEach(link => { + link.init(this); }); - document.addEventListener('mouseup', function() { - modalDrag = null; - let transform = modalWindow.style.transform.match(/-?\d+/g); - if (!transform) { return; } - - let rect = modalWindow.getBoundingClientRect(); - if (rect.left > window.innerWidth - 50) { - transform[0] -= (50 + rect.left - window.innerWidth); - } - else if (rect.right < 50) { - transform[0] -= (rect.right - 50); + } + + /** + * Resizes Rows and (re-)draws Links and WordClusters, without changing + * the positions of Words/Link handles + */ + draw() { + // Draw in the currently toggled Links + this.links.forEach(link => { + if ((link.top && link.category === this.config.topLinkCategory) || + (!link.top && link.category === this.config.bottomLinkCategory)) { + link.show(); } - if (rect.top < 0) { - transform[1] -= rect.top; + + if ((link.top && this.config.showTopMainLabel) || + (!link.top && this.config.showBottomMainLabel)) { + link.showMainLabel(); + } else { + link.hideMainLabel(); } - else if (rect.top > window.innerHeight - 50) { - transform[1] -= (50 + rect.top - window.innerHeight); + + if ((link.top && this.config.showTopArgLabels) || + (!link.top && this.config.showBottomArgLabels)) { + link.showArgLabels(); + } else { + link.hideArgLabels(); } - modalWindow.style.transform = `translate(${transform[0]}px, ${transform[1]}px)`; }); - document.querySelectorAll('.modal header .tab').forEach(tab => { - tab.onclick = function() { - setActiveTab(this.getAttribute('data-id')); - } + // Now that Links are visible, make sure that all Rows have enough space + this.rowManager.resizeAll(); + + // And change the Row resize cursor if compact mode is on + this.rowManager.rows.forEach(row => { + this.config.compactRows + ? row.draggable.addClass("row-drag-compact") + : row.draggable.removeClass("row-drag-compact"); }); - document.getElementById('custom-annotation').onclick = function() { - document.getElementById('input-modal').classList.add('open'); - } + // Change token colours based on the current taxonomy, if loaded + this.taxonomyManager.colour(this.words); + } - document.getElementById('options-toggle').onclick = function() { - setActiveTab('options'); - } - document.getElementById('taxonomy-toggle').onclick = function() { - setActiveTab('taxonomy'); + /** + * Removes all elements from the visualisation + */ + clear() { + // Removing Rows takes care of Words and WordTags + while (this.rowManager.rows.length > 0) { + this.rowManager.removeLastRow(); } - document.querySelectorAll('.modal').forEach(modal => { - modal.onclick = function(e) { - e.target.classList.remove('open'); - } + // Links and Clusters are drawn directly on the main SVG document + this.links.forEach(link => link.svg && link.svg.remove()); + this.words.forEach(word => { + word.clusters.forEach(cluster => cluster.remove()); }); + // Reset colours + this.taxonomyManager.resetDefaultColours(); + } - // upload file - document.getElementById('file-input').onchange = uploadFile; + /** + * Resets and redraws the visualisation using the data currently stored by the + * Parser (if any) + */ + redraw() { + this.clear(); + this.init(); + this.draw(); + } - // upload file via drag and drop - document.body.addEventListener('dragenter', (e) => e.preventDefault()); - document.body.addEventListener('dragover', (e) => e.preventDefault()); - document.body.addEventListener('drop', uploadFile); + /** + * Fits the SVG element and its children to the size of its container + */ + resize() { + this.svg.size(this.$container.innerWidth(), this.$container.innerHeight()); + this.rowManager.resizeAll(); + } + // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + // Controlling taxonomic information and associated colours - function exportFile() { + /** + * Loads a new taxonomy specification (in YAML form) into the module + * @param {String} taxonomy - A YAML string representing the taxonomy object + */ + loadTaxonomyYaml(taxonomy) { + return this.taxonomyManager.loadTaxonomyYaml(taxonomy); + } - let exportedSVG = svg.svg(); - let i = exportedSVG.indexOf(''); - exportedSVG = exportedSVG.slice(0, i) - + '' - + exportedSVG.slice(i); - let a = document.getElementById('download'); - a.setAttribute('href', 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(exportedSVG)); - a.setAttribute('download', 'tag.svg'); - a.click(); - } - document.getElementById('download-button').onclick = exportFile; - document.addEventListener('keydown', (e) => { - let key = e.keyCode || e.which; - let ctrl = e.ctrlKey || (e.metaKey && !e.ctrlKey); - if (key === 83 && ctrl) { - e.preventDefault(); - exportFile(); - } - }) + /** + * Returns a YAML representation of the currently loaded taxonomy + */ + getTaxonomyYaml() { + return this.taxonomyManager.getTaxonomyYaml(); } - /* read an externally loaded file */ - function uploadFile(e) { - e.preventDefault(); - let files = (this === document.body) ? e.dataTransfer.files : e.target.files; + /** + * Returns the currently loaded taxonomy as an Array. + * Simple labels are stored as Strings in Arrays, and category labels are + * stored as single-key objects. + * + * E.g., a YAML document like the following: + * + * - Label A + * - Category 1: + * - Label B + * - Label C + * - Label D + * + * Parses to the following taxonomy object: + * + * [ + * "Label A", + * { + * "Category 1": [ + * "Label B", + * "Label C" + * ] + * }, + * "Label D" + * ] + * + * @return {Array} + */ + getTaxonomyTree() { + return this.taxonomyManager.getTaxonomyTree(); + } - // read blobs with FileReader - const promises = [...files].map(file => { - const fr = new FileReader(); - fr.readAsText(file); - return new Promise((resolve, reject) => { - fr.onload = function() { - resolve({ - name: file.name, - type: file.type, - content: fr.result - }); - }; - }); - }); + /** + * Given some label (either for a WordTag or WordCluster), return the + * colour that the taxonomy manager has assigned to it + * @param label + */ + getColour(label) { + return this.taxonomyManager.getColour(label); + } - Promise.all(promises).then(files => { - try { - let message = parser.parseFiles(files); - redrawVisualization(); - if (message) { - printMessage(message); - } - } - catch(err) { - console.log('ERROR: ', err); - printMessage(err); - } - document.getElementById('form').reset(); - }); + /** + * Sets the colour for some label (either for a WordTag or WordCluster) + * and redraws the visualisation + * @param label + * @param colour + */ + setColour(label, colour) { + this.taxonomyManager.assignColour(label, colour); + this.taxonomyManager.colour(this.words); } - function printMessage(text) { - document.getElementById('message').textContent = text; + // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + // Higher-level API functions + + /** + * Exports the current visualisation as an SVG file + */ + exportSvg() { + // Get the raw SVG definition + let exportedSVG = this.svg.svg(); + + // We also need to inline a copy of the relevant SVG styles, which might + // have been modified/overwritten by the user + const svgRules = Util.getCssRules( + this.$container.find(".tag-element").toArray() + ); + + const i = exportedSVG.indexOf(""); + exportedSVG = exportedSVG.slice(0, i) + + "" + + exportedSVG.slice(i); + + // Create a virtual download link and simulate a click on it (using the + // native `.click()` method, since jQuery cannot `.trigger()` it + $(``) + .appendTo($("body"))[0] + .click(); } - function clearMessage() { - document.getElementById('message').textContent = ''; + + /** + * Changes the value of the given option setting + * (Redraw to see changes) + * @param {String} option + * @param value + */ + setOption(option, value) { + this.config[option] = value; } + /** + * Gets the current value for the given option setting + * @param {String} option + */ + getOption(option) { + return this.config[option]; + } /** - * changeDataset: read and parse data from a json file in the /data folder - * and generate visualization from it + * Returns an Array of all the categories available for the top Links + * (Generally, event/relation annotations) */ - function changeDataset(index = 6) { - let path; - if (index >= 6) { - path = `./data/example${index - 5}.ann`; - } - else { - path = `./data/data${index}.json`; - } + getTopLinkCategories() { + const categories = this.links + .filter(link => link.top) + .map(link => link.category); - parser.loadFile(path) - .then(data => { - redrawVisualization(); - clearMessage(); - }) - .catch(err => { - console.log('ERROR: ', err); - printMessage(err); + return _.uniq(categories); + } + + /** + * Shows the specified category of top Links, hiding the others + * @param category + */ + setTopLinkCategory(category) { + this.setOption("topLinkCategory", category); + this.links + .filter(link => link.top) + .forEach(link => { + if (link.category === category) { + link.show(); + } else { + link.hide(); + } }); - }; + + // Always resize when the set of visible Links may have changed + this.rowManager.resizeAll(); + } /** - * clear: delete all elements from the visualization + * Returns an Array of all the categories available for the bottom Links + * (Generally, syntactic/dependency parses) */ - function clear() { - while (rm.rows.length > 0) { - rm.removeRow(); - } - links.forEach(link => link.svg && link.svg.remove()); + getBottomLinkCategories() { + const categories = this.links + .filter(link => !link.top) + .map(link => link.category); + + return _.uniq(categories); } - function redrawVisualization() { - let data = parser.parsedData; - ymljson.convert('taxonomy.yml', function(taxonomy) { - clear(); - words = data.words; - links = data.links; - clusters = data.clusters; - setSyntaxVisibility(); - draw(); + /** + * Shows the specified category of bottom Links, hiding the others + * @param category + */ + setBottomLinkCategory(category) { + this.setOption("bottomLinkCategory", category); + this.links + .filter(link => !link.top) + .forEach(link => { + if (link.category === category) { + link.show(); + } else { + link.hide(); + } + }); + + // Always resize when the set of visible Links may have changed + this.rowManager.resizeAll(); + } - tm.draw(taxonomy, words); + /** + * Returns an Array of all the categories available for top Word tags + * (Generally, text-bound mentions) + */ + getTagCategories() { + const categories = this.words + .flatMap(word => word.getTagCategories()); + return _.uniq(categories); + } + + /** + * Shows the specified category of top Word tags + * @param category + */ + setTopTagCategory(category) { + this.setOption("topTagCategory", category); + this.words.forEach(word => { + word.setTopTagCategory(category); + word.passingLinks.forEach(link => link.draw()); }); + + // (Re-)colour the labels + this.taxonomyManager.colour(this.words); + + // Always resize when the set of visible Links may have changed + this.rowManager.resizeAll(); + } + + /** + * Shows the specified category of bottom Word tags + * @param category + */ + setBottomTagCategory(category) { + this.setOption("bottomTagCategory", category); + this.words.forEach(word => { + word.setBottomTagCategory(category); + word.passingLinks.forEach(link => link.draw()); + }); + + // Always resize when the set of visible Links may have changed + this.rowManager.resizeAll(); + } + + /** + * Shows/hides the main label on top Links + * @param {Boolean} visible - Show if true, hide if false + */ + setTopMainLabelVisibility(visible) { + this.setOption("showTopMainLabel", visible); + if (visible) { + this.links + .filter(link => link.top) + .forEach(link => link.showMainLabel()); + } else { + this.links + .filter(link => link.top) + .forEach(link => link.hideMainLabel()); + } + } + + /** + * Shows/hides the argument labels on top Links + * @param {Boolean} visible - Show if true, hide if false + */ + setTopArgLabelVisibility(visible) { + this.setOption("showTopArgLabels", visible); + if (visible) { + this.links + .filter(link => link.top) + .forEach(link => link.showArgLabels()); + } else { + this.links + .filter(link => link.top) + .forEach(link => link.hideArgLabels()); + } + } + + /** + * Shows/hides the main label on bottom Links + * @param {Boolean} visible - Show if true, hide if false + */ + setBottomMainLabelVisibility(visible) { + this.setOption("showBottomMainLabel", visible); + if (visible) { + this.links + .filter(link => !link.top) + .forEach(link => link.showMainLabel()); + } else { + this.links + .filter(link => !link.top) + .forEach(link => link.hideMainLabel()); + } } /** - * draw: draw words, links, rows, etc. onto the visualization + * Shows/hides the argument labels on bottom Links + * @param {Boolean} visible - Show if true, hide if false */ - function draw() { - if (words.length > 0 && !rm.lastRow) { - rm.appendRow(); + setBottomArgLabelVisibility(visible) { + this.setOption("showBottomArgLabels", visible); + if (visible) { + this.links + .filter(link => !link.top) + .forEach(link => link.showArgLabels()); + } else { + this.links + .filter(link => !link.top) + .forEach(link => link.hideArgLabels()); } - words.forEach(word => { - word.init(svg); - rm.addWordToRow(word, rm.lastRow); + } + + // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + // Private helper/setup functions + + /** + * Sets up listeners for custom SVG.js events + * N.B.: Event listeners will change the execution context by default, so + * either provide a closure to the main library instance or use arrow + * functions to preserve the original context + * cf. http://es6-features.org/#Lexicalthis + * @private + */ + _setupSVGListeners() { + this.svg.on("row-resize", (event) => { + this.labelManager.stopEditing(); + this.rowManager.resizeRow(event.detail.object.idx, event.detail.y); }); - links.forEach(link => { - link.init(svg); + + // svg.on('label-updated', function(e) { + // // TODO: so so incomplete + // let color = tm.getColor(e.detail.label, e.detail.object); + // e.detail.object.node.style.fill = color; + // }); + + this.svg.on("word-move-start", () => { + this.links.forEach(link => { + if ((link.top && !this.config.showTopLinksOnMove) || + (!link.top && !this.config.showBottomLinksOnMove)) { + link.hide(); + } + }); }); - links.forEach(link => { - link.recalculateSlots(words); - link.draw(); - }) - rm.resizeAll(); - } - - //-------------------------------- - // private functions - //-------------------------------- - - // from https://davidwalsh.name/javascript-debounce-function, - // as taken from underscore - - // Returns a function, that, as long as it continues to be invoked, will not - // be triggered. The function will be called after it stops being called for - // N milliseconds. If `immediate` is passed, trigger the function on the - // leading edge, instead of the trailing. - function debounce(func, wait, immediate) { - var timeout; - return function() { - var context = this, args = args; - var later = function() { - timeout = null; - if (!immediate) func.apply(context, args); - }; - var callNow = immediate && !timeout; - clearTimeout(timeout); - timeout = setTimeout(later, wait); - if (callNow) func.apply(context, args); - }; - }; - - - /** options to set visibility of syntax tree - */ - function setSyntaxVisibility(bool) { - bool = (bool === undefined) ? options.showSyntax : bool; - links.forEach(l => { - if (!l.top) { - bool ? l.show() : l.hide(); - } - else { - l.show(); - } + + this.svg.on("word-move", (event) => { + // tooltip.clear(); + this.labelManager.stopEditing(); + this.rowManager.moveWordOnRow(event.detail.object, event.detail.x); }); - if (rm.rows.length > 0) { - rm.resizeAll(); - } + + this.svg.on("word-move-end", () => { + this.links.forEach(link => { + if ((link.top && link.category === this.config.topLinkCategory) || + (!link.top && link.category === this.config.bottomLinkCategory)) { + link.show(); + } + }); + }); + + // this.svg.on("tag-remove", (event) => { + // event.detail.object.remove(); + // this.taxonomyManager.remove(event.detail.object); + // }); + + // this.svg.on("row-recalculate-slots", () => { + // this.links.forEach(link => { + // link.slot = null; + // }); + // this.links = Util.sortForSlotting(this.links); + // this.links.forEach(link => link.calculateSlot(this.words)); + // this.links.forEach(link => link.draw()); + // }); + + // ZW: Hardcoded dependencies on full UI + // this.svg.on("build-tree", (event) => { + // document.body.classList.remove("tree-closed"); + // if (tree.isInModal) { + // setActiveTab("tree"); + // } + // else { + // setActiveTab(null); + // } + // if (e.detail) { + // tree.graph(e.detail.object); + // } + // else { + // tree.resize(); + // } + // }); } - // export public functions - return { - init, - draw, - changeDataset - }; + /** + * Sets up listeners for general browser events + * @private + */ + _setupUIListeners() { + // Browser window resize + $(window).on("resize", _.throttle(() => { + this.resize(); + }, 50)); + } -})(); + // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + // Debug functions + xLine(x) { + this.svg.line(x, 0, x, 1000).stroke({width: 1}); + } + + yLine(y) { + this.svg.line(0, y, 1000, y).stroke({width: 1}); + } +} -Main.init(); +export default Main; \ No newline at end of file diff --git a/src/js/managers/labelmanager.js b/src/js/managers/labelmanager.js index a7fa67a..ac86580 100644 --- a/src/js/managers/labelmanager.js +++ b/src/js/managers/labelmanager.js @@ -1,6 +1,10 @@ -import Link from '../components/link.js'; +/** + * Not currently in use. + */ -module.exports = (function() { +import Link from "../components/link.js"; + +module.exports = (function () { let _svg; let activeObject = null; let string = null; @@ -24,8 +28,8 @@ module.exports = (function() { constructor(svg) { // listeners for label handling _svg = svg; - svg.on('tag-edit', listenForEdit); - svg.on('link-label-edit', listenForEdit); + svg.on("tag-edit", listenForEdit); + svg.on("link-label-edit", listenForEdit); this.stopEditing = stopEditing; } } @@ -41,7 +45,7 @@ module.exports = (function() { if (activeObject && activeObject.isEditing) { let text = activeObject.text(); if (text && !(activeObject instanceof Link)) { - _svg.fire('label-updated', { object: text, label: text.text() }); + _svg.fire("label-updated", {object: text, label: text.text()}); } activeObject.stopEditing(); activeObject = null; @@ -54,48 +58,53 @@ module.exports = (function() { activeObject.text(string); } - document.addEventListener('keydown', function(e) { + document.addEventListener("keydown", function (e) { if (activeObject && activeObject.isEditing) { - if (KeyValues.indexOf(e.keyCode) > -1) { - switch (e.keyCode) { - case Key.delete: - if (string === null) { string = originalString; } - updateString(string.slice(0, -1)); - break; - case Key.tab: - break; - case Key.enter: - stopEditing(); - break; - case Key.escape: - updateString(originalString); - stopEditing(); - break; - case Key.right: - if (string === null) { - updateString(originalString); - } - break; - default: - break; - } - }; + if (KeyValues.indexOf(e.keyCode) > -1) { + switch (e.keyCode) { + case Key.delete: + if (string === null) { + string = originalString; + } + updateString(string.slice(0, -1)); + break; + case Key.tab: + break; + case Key.enter: + stopEditing(); + break; + case Key.escape: + updateString(originalString); + stopEditing(); + break; + case Key.right: + if (string === null) { + updateString(originalString); + } + break; + default: + break; + } + } + ; } - }) - document.addEventListener('keypress', function(e) { + }); + document.addEventListener("keypress", function (e) { // console.log(String.fromCharCode(e.which), e.which, e.metaKey); if (activeObject && activeObject.isEditing) { if (e.which === 32) { e.preventDefault(); } if (e.which > 31 && !e.ctrlKey && !e.metaKey && !e.altKey) { - if (string === null) { string = ''; } + if (string === null) { + string = ""; + } updateString(string + String.fromCharCode(e.which)); } } }); - document.addEventListener('mousedown', stopEditing); + document.addEventListener("mousedown", stopEditing); return LabelManager; })(); diff --git a/src/js/managers/rowmanager.js b/src/js/managers/rowmanager.js index f53ccf0..ef8ceeb 100644 --- a/src/js/managers/rowmanager.js +++ b/src/js/managers/rowmanager.js @@ -1,234 +1,385 @@ -import Row from '../components/row.js'; -import Link from '../components/link.js'; +import Row from "../components/row.js"; -module.exports = (function() { - const ROW_PADDING = 10; - const _rows = []; - let _svg; - class RowManager { - constructor(svg) { - _svg = svg; - } +class RowManager { + /** + * Instantiate a RowManager for some TAG instance + * @param svg - The svg.js API object for the current TAG instance + * @param config - The Config object for the instance + */ + constructor(svg, config) { + this.config = config; + this._svg = svg; + this._rows = []; + } - resizeAll() { - _rows.forEach(row => { - this.recalculateRowSlots(row); - }); - this.resizeRow(0); + /** + * Resizes all the Rows in the visualisation, making sure that they all + * fit the parent container and that none of the Rows/Words overlap + */ + resizeAll() { + this.width(this._svg.width()); + this.resizeRow(0); + this.fitWords(); + } + + /** + * Attempts to adjust the height of the Row with index `i` by the specified + * `dy`. If successful, also adjusts the positions of all the Rows that + * follow it accordingly. + * + * If called without a `dy`, simply ensures that the Row's height is at + * least as large as its minimum height. + */ + resizeRow(i, dy = 0) { + const row = this._rows[i]; + if (!row) return; + + // Height adjustment + const newHeight = this.config.compactRows + ? row.minHeight + : Math.max(row.rh + dy, row.minHeight); + if (row.rh !== newHeight) { + row.height(newHeight); + row.redrawLinksAndClusters(); } - resizeRow(i, dy = 0) { - let row = _rows[i]; - if (i > 0) { - let adjust = _rows[i - 1].ry2 + ROW_PADDING - row.ry; - row.move(row.ry + adjust); - row.height(row.rh - adjust); + // Adjust position/height of all following Rows + for (i = i + 1; i < this._rows.length; i++) { + const prevRow = this._rows[i - 1]; + const thisRow = this._rows[i]; + + // Height check + let changed = false; + const newHeight = this.config.compactRows + ? thisRow.minHeight + : Math.max(thisRow.rh, thisRow.minHeight); + if (thisRow.rh !== newHeight) { + thisRow.height(newHeight); + changed = true; } - dy = Math.max(-row.rh + row.minHeight, dy); - row.height(row.rh + dy); - row.words.forEach(word => word.redrawLinks()); - for (let j = i + 1; j < _rows.length; ++j) { - if (_rows[j - 1].ry2 + ROW_PADDING > _rows[j].ry + dy) { - _rows[j].move(_rows[j - 1].ry2 + ROW_PADDING); - } - else { - _rows[j].dy(dy); - } - _rows[j].words.forEach(word => word.redrawLinks()); + + // Position check + if (thisRow.ry !== prevRow.ry2) { + thisRow.move(prevRow.ry2); + changed = true; + } + + if (changed) { + thisRow.redrawLinksAndClusters(); } - _svg.height(this.lastRow.ry2 + ROW_PADDING + 20); } - width(rw) { - _rows.forEach(row => { - row.width(rw); + this._svg.height(this.lastRow.ry2 + 20); + } + + + /** + * Sets the width of all the Rows in the visualisation + * @param {Number} rw - The new Row width + */ + width(rw) { + this._rows.forEach(row => { + row.width(rw); - let i = row.words.findIndex(w => w.x > rw); - if (i > 0) { - this.moveWordOnRow(row.words[i - 1], 0); + // Find any Words that no longer fit on the Row + let i = row.words + .findIndex(w => w.x + w.minWidth > rw - this.config.rowEdgePadding); + if (i > 0) { + while (i < row.words.length) { + this.moveLastWordDown(row.idx); } - else { - row.words.forEach(word => { - word.links.forEach(function(l) { - if (l.endpoints[1].row !== l.endpoints[0].row) { - l.draw(this); - } - }); - word.redrawClusters(); + } else { + // Redraw Words/Links that might have changed + row.redrawLinksAndClusters(); + } + }); + } + + /** + * Makes sure that all Words fit nicely on their Rows without overlaps. + * Runs through all the Words on all the Rows in order; the moment one is + * found that overlaps with a neighbour, a recursive move is initiated. + */ + fitWords() { + for (const row of this._rows) { + for (let i = 1; i < row.words.length; i++) { + const prevWord = row.words[i - 1]; + const thisWord = row.words[i]; + const thisWordPadding = thisWord.isPunct + ? this.config.wordPunctPadding + : this.config.wordPadding; + const thisMinX = prevWord.x + prevWord.minWidth + thisWordPadding; + const diff = thisMinX - thisWord.x; + if (diff > 0) { + return this.moveWordRight({ + row: row, + wordIndex: i, + dx: diff }); } - }); + } } + } - /** - * add a new row to the bottom of the svg and resize to match - */ - appendRow() { - const lr = this.lastRow; - const row = !lr ? new Row(_svg) : new Row(_svg, lr.idx + 1, lr.ry2 + ROW_PADDING); - _rows.push(row); - _svg.height(row.ry2 + ROW_PADDING + 20); - return row; - } - - /** - * remove last row at the bottom of the svg and resize to match - */ - removeRow() { - _rows.pop().remove(); - if (this.lastRow) { - _svg.height(this.lastRow.ry2 + ROW_PADDING + 20); - } + /** + * Adds a new Row to the bottom of the svg and sets the height of the main + * document to match + */ + appendRow() { + const lr = this.lastRow; + const row = !lr + ? new Row(this._svg, this.config) + : new Row(this._svg, this.config, lr.idx + 1, lr.ry2); + this._rows.push(row); + this._svg.height(row.ry2 + 20); + return row; + } + + /** + * remove last row at the bottom of the svg and resize to match + */ + removeLastRow() { + this._rows.pop().remove(); + if (this.lastRow) { + this._svg.height(this.lastRow.ry2 + 20); } + } - addWordToRow(word, row, i, ignorePosition) { - if (isNaN(i)) { i = row.words.length; } + /** + * Adds the given Word to the given Row at the given index. + * Optionally attempts to force an x-position for the Word, which will also + * adjust the x-positions of any Words with higher indices on this Row. + * @param word + * @param row + * @param i + * @param forceX + */ + addWordToRow(word, row, i, forceX) { + if (isNaN(i)) { + i = row.words.length; + } - // get word slots - let slots = this.getSlotRange([0,0], word); - if (word.row && word.row !== row && (slots[0] === word.row.minSlot || word.row.maxSlot === slots[1])) { - this.recalculateRowSlots(word.row); - } - if (row.minSlot > slots[0] || row.maxSlot < slots[1]) { - if (row.minSlot > slots[0]) { row.minSlot = slots[0]; } - if (row.maxSlot < slots[1]) { row.maxSlot = slots[1]; } - this.resizeRow(row.idx); - } + let overflow = row.addWord(word, i, forceX); + while (overflow < row.words.length) { + this.moveLastWordDown(row.idx); + } - let overflow = row.addWord(word, i, ignorePosition); - while (overflow < row.words.length) { - this.moveWordDownARow(row.idx); - } + // Now that the Words are settled, make sure that the Row is high enough + // (in case it started too short) and has enough descent space, if there + // are Rows following. + this.resizeRow(row.idx); + } + + moveWordOnRow(word, dx) { + let row = word.row; + if (!row) { + return; + } + if (dx >= 0) { + this.moveWordRight({ + row, + wordIndex: row.words.indexOf(word), + dx + }); + } else if (dx < 0) { + dx = -dx; + this.moveWordLeft({ + row, + wordIndex: row.words.indexOf(word), + dx + }); } + } - moveWordOnRow(word, dx) { - let row = word.row; - if (!row) { return; } - if (dx >= 0) { - this.moveWordRight(row, dx, word); - } - else if (dx < 0) { - this.moveWordLeft(row, -dx, row.words.indexOf(word)); - } + /** + * Recursively attempts to move the Word at the given index on the given + * Row rightwards. If it runs out of space, moves all other Words right or + * to the next Row as needed. + * @param {Row} params.row + * @param {Number} params.wordIndex + * @param {Number} params.dx - A positive number specifying how far to the + * right we should move the Word + */ + moveWordRight(params) { + const row = params.row; + const wordIndex = params.wordIndex; + const dx = params.dx; + + const word = row.words[wordIndex]; + const nextWord = row.words[wordIndex + 1]; + + // First, check if we have space available directly next to this word. + let rightEdge; + if (nextWord) { + rightEdge = nextWord.x; + rightEdge -= nextWord.isPunct + ? this.config.wordPunctPadding + : this.config.wordPadding; + } else { + rightEdge = row.rw - this.config.rowEdgePadding; } + const space = rightEdge - (word.x + word.minWidth); - /** - * recursive function that moves word right and, if it runs out - * of space, moves all other words right or to the next row as needed - */ - moveWordRight(row, dx, word) { - let overflow = row.moveWordRight(word, dx + word.x); - while (overflow < row.words.length) { - this.moveWordDownARow(row.idx); - } - } - - /** - * recursive function that checks for room to move word left and, if - * there is space, performs the transformation in the tail - */ - moveWordLeft(row, dx, i, overflow) { - if (!row) { return false; } - const EDGE_PADDING = 10; - const WORD_PADDING = 5; - let fitsOnRow = true; // recursive flag - - // position to place words[i] - let x; // remaining space to move words into - let j = i; // index at which words overflow to next row - let finalRow; // flag if recursion ends inside this call - let words = overflow ? row.words.concat(overflow) : row.words; - if (overflow || !words[i]) { - x = row.rw - EDGE_PADDING; - j = i = words.length - 1; - let lastWord = row.words[row.words.length - 1]; - dx = (lastWord ? lastWord.x + lastWord.boxWidth : 0) - x; - } - else { - x = words[i].x + words[i].boxWidth - dx; - } + if (dx <= space) { + word.dx(dx); + return; + } - while (j >= 0) { - let wordToCheck = words[j]; - x -= words[j].boxWidth; - if (j < row.words.length && x >= words[j].x) { // short-circuit: success - finalRow = true; - break; - } - if (x < EDGE_PADDING) { - // doesn't fit on row - fitsOnRow = this.moveWordLeft(_rows[row.idx - 1], null, null, words.slice(0, j + 1)); - break; - } - if (words[j].isPunct === false) { - x -= WORD_PADDING; - } - --j; - } + // No space directly available; recursively move the following Words. + if (!nextWord) { + // Last word on this row + this.moveLastWordDown(row.idx); + } else { + // Move next Word, then move this Word again + this.moveWordRight({ + row, + wordIndex: wordIndex + 1, + dx + }); + this.moveWordRight(params); + } + } - // end head recursion - if (!fitsOnRow) { return false; } - - // if recursion turned out ok, apply transformation - if (overflow) { - x = row.rw - EDGE_PADDING; - while (i > j) { - x -= words[i].boxWidth; - words[i].move(x); - if (!words[i].isPunct) { - x -= WORD_PADDING; - } - --i; - } - } - else { - while (i > j) { - words[i] && words[i].dx(-dx); - --i; - } - } - if (!finalRow) { - while (j >= 0) { - this.moveWordUpARow(row.idx); - --j; - } - if (row.words.length === 0 && row.idx === _rows.length - 1) { - this.removeRow(); - } - } + /** + * Recursively attempts to move the Word at the given index on the given + * Row leftwards. If it runs out of space, tries to move preceding Words + * leftwards or to the previous Row as needed. + * @param {Row} params.row + * @param {Number} params.wordIndex + * @param {Number} params.dx - A positive number specifying how far to the + * left we should try to move the Word + * @return {Boolean} True if the Word was successfully moved + */ + moveWordLeft(params) { + const row = params.row; + const wordIndex = params.wordIndex; + const dx = params.dx; + + const word = row.words[wordIndex]; + const prevWord = row.words[wordIndex - 1]; + const leftPadding = word.isPunct + ? this.config.wordPunctPadding + : this.config.wordPadding; + + // First, check if we have space available directly next to this word. + let space = word.x; + if (prevWord) { + space -= prevWord.x + prevWord.minWidth + leftPadding; + } else { + space -= this.config.rowEdgePadding; + } + if (dx <= space) { + word.dx(-dx); return true; } - moveWordUpARow(index) { - if (!_rows[index - 1]) { return; } - let removedWord = _rows[index].removeFirstWord(); - this.addWordToRow(removedWord, _rows[index - 1], undefined, true); - removedWord.redrawClusters(); - removedWord.redrawLinks(); + // No space directly available; try to recursively move the preceding Words. + + // If this is the first Word on this Row, try fitting it on the + // previous Row, or getting the Words on the previous Row to shift. + if (wordIndex === 0) { + const prevRow = this._rows[row.idx - 1]; + if (!prevRow) { + return false; + } + + // Fits on the previous Row? + if (prevRow.availableSpace >= word.minWidth + leftPadding) { + this.moveFirstWordUp(row.idx); + return true; + } + + // Can we shift the Words on the previous Row? + const prevRowShift = + word.minWidth + leftPadding - prevRow.availableSpace; + const canMove = this.moveWordLeft({ + row: prevRow, + wordIndex: prevRow.words.length - 1, + dx: prevRowShift + }); + + if (canMove) { + // Pop this word up to the previous row + this.moveFirstWordUp(row.idx); + return true; + } else { + // No can do + return false; + } } - moveWordDownARow(index) { - let nextRow = _rows[index + 1] || this.appendRow(); - this.addWordToRow(_rows[index].removeLastWord(), nextRow, 0); + // Not the first Word; try getting the preceding Words on this Row to shift. + const canMove = this.moveWordLeft({ + row, + wordIndex: wordIndex - 1, + dx + }); + if (canMove) { + // Retry the move (noting that our index may have changed if earlier + // Words were popped up to the previous Row + return this.moveWordLeft({ + row, + wordIndex: row.words.indexOf(word), + dx + }); + } else { + // Ah well + return false; } + } - getSlotRange(acc, anchor) { - if (anchor instanceof Link && !anchor.visible) { return [acc[0], acc[1]]; } - if (anchor.links.length === 0) { - return [Math.min(acc[0], anchor.slot), Math.max(acc[1], anchor.slot)]; - } - let a = anchor.links.reduce((acc, val) => this.getSlotRange(acc, val), [0, 0]); - return [Math.min(acc[0], a[0]), Math.max(acc[1], a[1])]; + /** + * Move the first Word on the Row with the given index up to the end + * of the previous Row + * @param index + */ + moveFirstWordUp(index) { + const row = this._rows[index]; + const prevRow = this._rows[index - 1]; + if (!row || !prevRow) { + return; } - recalculateRowSlots(row) { - [row.minSlot, row.maxSlot] = row.words - .reduce((acc, val) => this.getSlotRange(acc, val), [0, 0]); + const word = row.words[0]; + const newX = prevRow.rw - this.config.rowEdgePadding - word.minWidth; + + row.removeWord(word); + this.addWordToRow(word, prevRow, undefined, newX); + + word.redrawClusters(); + word.redrawLinks(); + + if (row === this.lastRow && row.words.length === 0) { + this.removeLastRow(); } + } - get lastRow() { return _rows[_rows.length - 1]; } - get rows() { return _rows; } + /** + * Move the last Word on the Row with the given index down to the start of + * the next Row + * @param index + */ + moveLastWordDown(index) { + let nextRow = this._rows[index + 1] || this.appendRow(); + this.addWordToRow(this._rows[index].removeLastWord(), nextRow, 0); } - return RowManager; -})(); + + /** + * Returns the last Row managed by the RowManager + * @return {*} + */ + get lastRow() { + return this._rows[this._rows.length - 1]; + } + + /** + * Returns the RowManager's internal Row array + * @return {Array} + */ + get rows() { + return this._rows; + } +} + +export default RowManager; \ No newline at end of file diff --git a/src/js/managers/taxonomy.js b/src/js/managers/taxonomy.js index 2bfc23a..cdac7d7 100644 --- a/src/js/managers/taxonomy.js +++ b/src/js/managers/taxonomy.js @@ -1,279 +1,174 @@ -import ColorPicker from '../colorpicker.js'; -import Word from '../components/word.js'; +/** + * Manages the user-provided taxonomy tree, and the colouring of the + * associated elements in the visualisation + */ -module.exports = (function() { - let colors = [ - '#3fa1d1', - '#ed852a', - '#2ca02c', - '#c34a1d', - '#a048b3', - '#e377c2', - '#bcbd22', - '#17becf', - '#e7298a', - '#e6ab02', - '#7570b3', - '#a6761d', - '#7f7f7f' - ]; - let div = {}; - let tagTypes = {}; +import _ from "lodash"; +import randomColor from "randomcolor"; +import yaml from "js-yaml"; - function updateColor(word, color) { - if (word instanceof Word) { - word.tag.svgText.node.style.fill = color; - } - else { - word.svgText.node.style.fill = color; - } - }; +import Word from "../components/word.js"; - function updateTagColor(tag, color) { - tagTypes[tag].forEach(word => updateColor(word, color)); - }; - - class Taxonomy { - constructor(id) { - this.tree = {}; - div = document.getElementById('taxonomy'); - } +class TaxonomyManager { + constructor(config) { + // The global Config object + this.config = config; - draw(taxonomy, words) { - if (taxonomy) { - this.buildTree(taxonomy); + // The currently loaded taxonomy (as a JS Array representing the tree) + this.taxonomy = []; - if (words) { - this.buildTagTypes(words); - } + // The originally-loaded taxonomy string (as a YAML document) + this.taxonomyYaml = ""; - this.populateTaxonomy(); - this.attachHandlers(); - } - } + // Tag->Colour assignments for the currently loaded taxonomy + this.tagColours = {}; - buildTagTypes(words) { - tagTypes = {}; - words.forEach(word => { - if (word.tag) { - if (tagTypes[word.tag.val]) { - tagTypes[word.tag.val].push(word); - } - else { - tagTypes[word.tag.val] = [word]; - } - } - if (word.clusters.length > 0) { - word.clusters.forEach(cluster => { - if (tagTypes[cluster.val]) { - tagTypes[cluster.val].push(cluster); - } - else { - tagTypes[cluster.val] = [cluster]; - } - }); - } - }); - } + // An array containing the first n default colours to use (as a queue). + // When this array is exhausted, we will switch to using randomColor. + this.defaultColours = _.cloneDeep(config.tagDefaultColours); + } - buildTree(taxonomy) { - // turn taxonomy into a proper tree - let flat = []; + /** + * Loads a new taxonomy specification (in YAML form) into the module + * @param {String} taxonomyYaml - A YAML string representing the taxonomy + * object + */ + loadTaxonomyYaml(taxonomyYaml) { + this.taxonomy = yaml.safeLoad(taxonomyYaml); + this.taxonomyYaml = taxonomyYaml; + } - function createLinks(val, i, n, parent) { - let index = { i, n }; - let obj = { - val, - parent, - index: parent ? parent.index.concat(index) : [index], - depth: parent ? parent.depth + 1 : 0, - ancestor: parent ? parent.ancestor : null, - children: null - }; - if (!obj.ancestor) { - obj.ancestor = obj; - obj.descendantCount = 0; - } - ++obj.ancestor.descendantCount; + /** + * Returns a YAML representation of the currently loaded taxonomy + */ + getTaxonomyYaml() { + return this.taxonomyYaml; + } - flat.push(obj); + /** + * Returns the currently loaded taxonomy as an Array. + * Simple labels are stored as Strings in Arrays, and category labels are + * stored as single-key objects. + * + * E.g., a YAML document like the following: + * + * - Label A + * - Category 1: + * - Label B + * - Label C + * - Label D + * + * Parses to the following taxonomy object: + * + * [ + * "Label A", + * { + * "Category 1": [ + * "Label B", + * "Label C" + * ] + * }, + * "Label D" + * ] + * + * @return {Array} + */ + getTaxonomyTree() { + return this.taxonomy; + } - if (!(typeof val === 'string' || val instanceof String)) { - let key = Object.keys(val)[0]; - obj.val = key; - obj.children = val[key].map((v, i) => createLinks(v, i, val[key].length, obj)); + /** + * Given some array of Words, recolours them according to the currently + * loaded taxonomy. + * If the word has a WordTag that we are not currently tracking, it will + * be assigned a colour from the default colours list. + * @param {Array} words + */ + colour(words) { + words.forEach(word => { + // Words with WordTags + if (word.topTag) { + if (!this.tagColours[word.topTag.val]) { + // We have yet to assign this tag a colour + this.assignColour(word.topTag.val, this.getNewColour()); } - return obj; + TaxonomyManager.setColour(word, this.tagColours[word.topTag.val]); } - let hierarchy = taxonomy.map((val, i) => createLinks(val, i, taxonomy.length, null)); - - this.tree = { - hierarchy, - flat - }; - } - - // populate modal window with list of taxonomic classes - populateTaxonomy() { - div.innerHTML = 'Filter unused labels'; - - // build list of inputs in DOM - let ul = document.createElement('ul'); - div.appendChild(ul); - - let nli = 1; // number of list items - function createLi(node, parent) { - let li = document.createElement('li'); - - // create checkbox - let cbox = document.createElement('input'); - cbox.setAttribute('type', 'checkbox'); - cbox.id = 'cb-' + nli; - - // create label for checkbox - let label = document.createElement('label'); - label.setAttribute('for', cbox.id); - label.textContent = node.val; - node.cbox = cbox; - - // create color picker input - let picker = document.createElement('input'); - picker.className = 'colorpicker'; - picker.value = '#000000'; - picker.setAttribute('disabled', true); - picker.node = node; - node.picker = picker; - - li.appendChild(cbox); - li.appendChild(label); - li.appendChild(picker); - parent.appendChild(li); - ++nli; - - if (node.children) { - let childUl = document.createElement('ul'); - li.appendChild(childUl); - - node.children.forEach(child => { - createLi(child, childUl); - }) - } + // Words with WordClusters + if (word.clusters.length > 0) { + word.clusters.forEach(cluster => { + if (!this.tagColours[cluster.val]) { + this.assignColour(cluster.val, this.getNewColour()); + } + TaxonomyManager.setColour(cluster, this.tagColours[cluster.val]); + }); } + }); + } - this.tree.hierarchy.forEach(node => { - createLi(node, ul); - }); - } - - // bind events to data - attachHandlers() { - // initialize colorpicker - this.colorpicker = new ColorPicker('colorpicker', { - initialColor: '#000000', - changeCallback: (input) => { - this.setColor(input.node); - } - }); - - const keys = Object.keys(tagTypes); - this.tree.flat.forEach(node => { - // disable/enable color picking on a node - node.cbox.onclick = () => this.onCheckboxClick(node); - - // check if tag type exists in document - if (tagTypes[node.val]) { - this.setColor(node, colors[keys.indexOf(node.val)]); - node.cbox.click(); - } - }); + /** + * Synonym for `.colour()` + * @param words + * @return {*} + */ + color(words) { + return this.colour(words); + } - // update colors of existing data - Object.keys(tagTypes).forEach((tag, i) => updateTagColor(tag, colors[i])); - } + /** + * Given some label in the visualisation (either for a WordTag or a + * WordCluster), assigns it a colour that will be reflected the next time + * `.colour()` is called. + */ + assignColour(label, colour) { + this.tagColours[label] = colour; + } - /* handle event when checkbox state changes */ - onCheckboxClick(node) { - if (node.cbox.checked) { - // activate node - // propagate color to all descendants - node.picker.removeAttribute('disabled'); - this.setColor(node); - } else { - // deactivate node - // undo color propagation to all descendants - node.picker.setAttribute('disabled', true); - if (node.parent) { - this.setColor(node, node.parent.picker.value); - } else { - this.setColor(node, '#000000'); - } - } + /** + * Given some element in the visualisation, change its colour + * @param element + * @param colour + */ + static setColour(element, colour) { + if (element instanceof Word) { + // Set the colour of the tag + element.topTag.svgText.node.style.fill = colour; + } else { + // Set the colour of the element itself + element.svgText.node.style.fill = colour; } + } - /* change the color of a node */ - setColor(node, color) { - let picker = node.picker; - - // manually set color - if (color) { - this.colorpicker.setColor(picker, color); - } - - if (tagTypes[node.val]) { - updateTagColor(node.val, picker.value); - } - - // set color of input and descendant inputs - function inheritColor(child) { - if (!child.cbox.checked) { - // set color and style - child.picker.value = picker.value; - child.picker.style.cssText = picker.style.cssText || child.picker.style.cssText; - if (tagTypes[child.val]) { - updateTagColor(child.val, picker.value); - } - - // recursively propagate value to all children - if (child.children) { - child.children.forEach(inheritColor); - } - } - } + /** + * Given some label (either for a WordTag or WordCluster), return the + * colour that the taxonomy manager has assigned to it + * @param label + */ + getColour(label) { + return this.tagColours[label]; + } - if (node.children) { - node.children.forEach(inheritColor); - } + /** + * Returns a colour for a new tag. Will pop from `.defaultColours` first, + * then fall back to `randomColor()` + */ + getNewColour() { + if (this.defaultColours.length > 0) { + return this.defaultColours.shift(); + } else { + return randomColor(); } + } - remove(object) { - // FIXME - return; - let tag = object.val; - let entity = object.entity; - if (tagTypes[tag]) { - let i = tagTypes[tag].indexOf(entity); - if (i > -1) { - tagTypes[tag].splice(i, 1); - if (tagTypes[tag].length < 1) { - delete tagTypes[tag]; - } - } - } - } - getColor(label, object) { - //FIXME - return; - let keys = Object.keys(tagTypes); - if (tagTypes[label]) { - return colors[keys.indexOf(label)]; - } - else { - tagTypes[label] = object; - return colors[keys.length] || 'black'; - } - } + /** + * Resets `.defaultColours` to the Array specified in the Config object + * (Used when clearing the visualisation, for example) + */ + resetDefaultColours() { + this.defaultColours = _.cloneDeep(this.config.tagDefaultColours); } - return Taxonomy; -})(); +} + +export default TaxonomyManager; diff --git a/src/js/managers/tooltip.js b/src/js/managers/tooltip.js index f56f0fc..080b34c 100644 --- a/src/js/managers/tooltip.js +++ b/src/js/managers/tooltip.js @@ -1,4 +1,8 @@ -module.exports = (function() { +/** + * Not currently in use. + */ + +module.exports = (function () { let div = {}; let _svg = {}; let activeObject = null; @@ -13,10 +17,10 @@ module.exports = (function() { _svg = svg; // listeners to open tooltip - svg.on('tag-right-click', openTooltip); - svg.on('word-right-click', openTooltip); - svg.on('link-label-right-click', openTooltip); - svg.on('link-right-click', openTooltip); + svg.on("tag-right-click", openTooltip); + svg.on("word-right-click", openTooltip); + svg.on("link-label-right-click", openTooltip); + svg.on("link-right-click", openTooltip); } } @@ -24,35 +28,30 @@ module.exports = (function() { function openTooltip(e) { let width = document.body.getBoundingClientRect().width - 175 - 5; activeObject = e.detail.object; - let html = ''; + let html = ""; if (activeObject instanceof Word) { if (activeObject.tag) { - html += ''; - } - else { - html += ''; - } - html += '
    '; - } - else if (activeObject instanceof WordTag || activeObject instanceof WordCluster) { - html += ''; - } - else if (activeObject instanceof Link) { - if (e.detail.type === 'text') { - html += ''; + html += "

    Edit tag

    Remove tag

    "; + } else { + html += "

    Add tag

    "; } - else { - html += ''; + html += "

    Add link


    Tree visualization

    "; + } else if (activeObject instanceof WordTag || activeObject instanceof WordCluster) { + html += "

    Remove

    "; + } else if (activeObject instanceof Link) { + if (e.detail.type === "text") { + html += "

    Remove link

    "; + } else { + html += "

    Remove link

    "; } - html += '
    '; + html += "

    Tree visualization

    "; } if (html) { div.innerHTML = html; - div.style.left = Math.min(e.detail.event.x, width) + 'px'; - div.style.top = e.detail.event.y + document.body.scrollTop - yOffset + 'px'; - div.className = 'active'; - } - else { + div.style.left = Math.min(e.detail.event.x, width) + "px"; + div.style.top = e.detail.event.y + document.body.scrollTop - yOffset + "px"; + div.className = "active"; + } else { activeObject = null; } }; @@ -65,48 +64,52 @@ module.exports = (function() { // window listeners // function to listen for a click outside the tooltip - document.addEventListener('mousedown', function(e) { + document.addEventListener("mousedown", function (e) { if (e.target !== div && e.target.parentNode !== div) { clear(); } }); // listen for a click inside the tooltip; - document.addEventListener('click', function(e) { + document.addEventListener("click", function (e) { if (e.target.parentNode === div && activeObject) { switch (e.target.id) { // tag management events - case 'menu--remove-tag': + case "menu--remove-tag": let tag1 = (activeObject instanceof Word && activeObject.tag) ? activeObject.tag : activeObject; - _svg.fire('tag-remove', { object: tag1 }); + _svg.fire("tag-remove", {object: tag1}); break; - case 'menu--add-tag': - let tag2 = activeObject.setTag('?'); - _svg.fire('tag-edit', { object: tag2 }); + case "menu--add-tag": + let tag2 = activeObject.setTag("?"); + _svg.fire("tag-edit", {object: tag2}); break; - case 'menu--edit-tag': - _svg.fire('tag-edit', { object: activeObject.tag }); + case "menu--edit-tag": + _svg.fire("tag-edit", {object: activeObject.tag}); break; - case 'menu--edit-link-label': - _svg.fire('link-label-edit', { object: activeObject, text: activeObject.selectedLabel }); + case "menu--edit-link-label": + _svg.fire("link-label-edit", { + object: activeObject, + text: activeObject.selectedLabel + }); activeObject.selectedLabel = null; break; - case 'menu--remove-link': + case "menu--remove-link": activeObject.remove(); - _svg.fire('row-recalculate-slots', { object: activeObject }); + _svg.fire("row-recalculate-slots", {object: activeObject}); break; - case 'menu--tree': - _svg.fire('build-tree', { object: activeObject }); + case "menu--tree": + _svg.fire("build-tree", {object: activeObject}); break; - default: ; + default: + ; } console.log(e.target.id, activeObject && activeObject.val); clear(); } }); - document.addEventListener('contextmenu', function(e) { - if (tooltip.className === 'active') { + document.addEventListener("contextmenu", function (e) { + if (tooltip.className === "active") { e.preventDefault(); } }); diff --git a/src/js/parse/ann.js b/src/js/parse/brat.js similarity index 74% rename from src/js/parse/ann.js rename to src/js/parse/brat.js index 47969d2..f0bbcfa 100644 --- a/src/js/parse/ann.js +++ b/src/js/parse/brat.js @@ -1,34 +1,35 @@ -import Word from '../components/word.js'; -import Link from '../components/link.js'; +import Word from "../components/word.js"; +import Link from "../components/link.js"; class BratParser { constructor() { this.data = {}; - this.re = /:+(?=[TER]\d+$)/; // regular expression for reading in a mention + this.re = /:+(?=[TER]\d+$)/; // regular expression for reading in a + // mention this.text = ""; this.mentions = {}; } -/* - @param textInput : Source text or text + input in standoff format - @param entInput : entity annotation or input in standoff format - @param evtInput : event annotations or {undefined} - */ + /* + @param textInput : Source text or text + input in standoff format + @param entInput : entity annotation or input in standoff format + @param evtInput : event annotations or {undefined} + */ parse(textInput, entInput, evtInput) { this.mentions = {}; let lines; // separate source text and annotation if (!entInput) { - let splitLines = textInput.split('\n'); + let splitLines = textInput.split("\n"); this.text = splitLines[0]; lines = splitLines.slice(1); } else { this.text = textInput; - lines = entInput.split('\n'); + lines = entInput.split("\n"); if (evtInput) { lines = lines.concat( - evtInput.split('\n')); + evtInput.split("\n")); } } @@ -39,7 +40,7 @@ class BratParser { this.mentions[tokens[0]] = { annotation: tokens, object: null - } + }; } }); @@ -63,17 +64,24 @@ class BratParser { } let n = graph.words.length; + let idx = 0; this.textArray.forEach((t, i) => { if (t.entity === null) { let text = this.text.slice(t.charStart, t.charEnd).trim(); + if (text === "") { + // The un-annotated span contained only whitespace; ignore it + return; + } + text.split(/\s+/).forEach(token => { - let word = new Word(token, graph.words.length - n + 1); + let word = new Word(token, idx); graph.words.push(word); + idx++; }); } else { - --n; - t.entity.idx = graph.words.length - n; + t.entity.idx = idx; + idx++; } }); graph.words.sort((a, b) => a.idx - b.idx); @@ -94,7 +102,14 @@ class BratParser { // parse annotation let tokens = m.annotation; switch (tokens[0].charAt(0)) { - case 'T': + case "T": + /** + * Entity annotations have: + * - Unique ID + * - Type + * - Character span + * - Raw text + */ let tbm = this.parseTextMention(tokens); if (tbm === null) { // invalid line @@ -106,7 +121,13 @@ class BratParser { m.object = tbm; return tbm; } - case 'E': + case "E": + /** + * Event annotations have: + * - Unique ID + * - Type:ID string representing the trigger entity + * - Role:ID strings representing the argument entities + */ let em = this.parseEventMention(tokens, graph); if (em === null) { // invalid event @@ -118,7 +139,13 @@ class BratParser { m.object = em; return em; } - case 'R': + case "R": + /** + * Binary relations have: + * - Unique ID + * - Type + * - Role:ID strings representing the argument entities (x2) + */ let rm = this.parseRelationMention(tokens, graph); if (rm === null) { // invalid event @@ -130,7 +157,7 @@ class BratParser { m.object = rm; return rm; } - case 'A': + case "A": break; } return null; @@ -145,7 +172,7 @@ class BratParser { if (charStart >= 0 && charStart < charEnd && charEnd <= this.text.length) { // create Word let word = new Word(this.text.slice(charStart, charEnd), Number(id)); - word.setTag(label); + word.registerTag("default", label); word.addEventId(id); // cut textArray @@ -157,7 +184,7 @@ class BratParser { let i = this.textArray.findIndex(token => token.charEnd > charStart); if (i === -1) { - console.log('// mistake in tokenizing string') + console.log("// mistake in tokenizing string"); } else if (this.textArray[i].charStart < charStart) { // textArray[i] starts to the left of the word let tempEnd = this.textArray[i].charEnd; @@ -202,22 +229,22 @@ class BratParser { let successfulParse = true; const id = tokens[0]; const args = tokens.slice(1) - .map((token, i) => { - let [label, id] = token.split(this.re); - let object = this.parseAnnotation(id, graph) - if (object !== null) { - return { - type: label, - anchor: object - }; - } else { - if (i === 0) { - successfulParse = false; - } - return null; - } - }) - .filter(arg => arg); + .map((token, i) => { + let [label, id] = token.split(this.re); + let object = this.parseAnnotation(id, graph); + if (object !== null) { + return { + type: label, + anchor: object + }; + } else { + if (i === 0) { + successfulParse = false; + } + return null; + } + }) + .filter(arg => arg); if (successfulParse && args.length > 1) { // create link return new Link(id, args[0].anchor, args.slice(1)); @@ -248,11 +275,11 @@ class BratParser { }); if (successfulParse === true) { - return new Link(id, null, args, reltype) + return new Link(id, null, args, reltype); } else { return null; } } } -module.exports = BratParser; +export default BratParser; diff --git a/src/js/parse/odin.js b/src/js/parse/odin.js new file mode 100644 index 0000000..4b402de --- /dev/null +++ b/src/js/parse/odin.js @@ -0,0 +1,295 @@ +/** + * Parser for Odin `mentions.json` output + * https://gist.github.com/myedibleenso/87a3191c73938840b8ed768ec305db38 + */ + +import Word from "../components/word.js"; +import Link from "../components/link.js"; +import WordCluster from "../components/word-cluster.js"; + +class OdinParser { + constructor() { + // This will eventually hold the parsed data for returning to the caller + this.data = { + words: [], + links: [], + clusters: [] + }; + + // Holds the data for individual documents + this.parsedDocuments = {}; + + // Previously-parsed mentions, by Id. + // Old TextBoundMentions return their host Word/WordCluster + // Old EventMentions/RelationMentions return their Link + this.parsedMentions = {}; + + // We record the index of the last Word from the previous sentence so + // that we can generate each Word's global index (if not Word indices + // will incorrectly restart from 0 for each new document/sentence) + this.lastWordIdx = -1; + } + + /** + * Parses the given data, filling out `this.data` accordingly. + * @param {Object} data + */ + parse(data) { + // Clear out any old parse data + this.reset(); + + // At the top level, the data has two parts: `documents` and `mentions`. + // - `documents` includes the tokens and dependency parses for each + // document the data contains. + // - `mentions` includes all the events/relations that *every* document + // contains, but each mention has a `document` property that specifies + // which document it applies to. + + // We will display the tokens from every document consecutively, and fill in + // their mentions to match. + const docIds = Object.keys(data.documents).sort(); + for (const docId of docIds) { + this.parsedDocuments[docId] = + this._parseDocument(data.documents[docId], docId); + } + + // There are a number of different types of mentions types: + // - TextBoundMention + // - EventMention + for (const mention of data.mentions) { + this._parseMention(mention); + } + } + + /** + * Clears out all previously cached parse data (in preparation for a new + * parse) + */ + reset() { + this.data = { + words: [], + links: [], + clusters: [] + }; + this.parsedDocuments = {}; + this.parsedMentions = {}; + this.lastWordIdx = -1; + } + + /** + * Parses a given document (essentially an array of sentences), appending + * the tokens and first set of dependency links to the final dataset. + * TODO: Allow user to select between different dependency graphs + * + * @param document + * @property {Object[]} sentences + * + * @param {String} docId - Unique identifier for this document + * @private + */ + _parseDocument(document, docId) { + const thisDocument = {}; + /** @type Word[][] **/ + thisDocument.sentences = []; + + /** + * Each sentence is an object with a number of pre-defined properties; + * we are interested in the following. + * @property {String[]} words + * @property raw + * @property tags + * @property lemmas + * @property entities + * @property norms + * @property chunks + * @property graphs + */ + for (const [sentenceId, sentence] of document.sentences.entries()) { + // Hold on to the Words we generate even as we push them up to the + // main data store, so that we can create their syntax Links too + // (which rely on sentence-level indices, not global indices) + const thisSentence = []; + + // Read any token-level annotations + for (let thisIdx = 0; thisIdx < sentence.words.length; thisIdx++) { + const thisWord = new Word( + // Text + sentence.words[thisIdx], + // (Global) Word index + thisIdx + this.lastWordIdx + 1 + ); + + // Various token-level tags, if they are available + if (sentence.raw) { + thisWord.registerTag("raw", sentence.raw[thisIdx]); + } + if (sentence.tags) { + thisWord.registerTag("POS", sentence.tags[thisIdx]); + } + if (sentence.lemmas) { + thisWord.registerTag("lemma", sentence.lemmas[thisIdx]); + } + if (sentence.entities) { + thisWord.registerTag("entity", sentence.entities[thisIdx]); + } + if (sentence.norms) { + thisWord.registerTag("norm", sentence.norms[thisIdx]); + } + if (sentence.chunks) { + thisWord.registerTag("chunk", sentence.chunks[thisIdx]); + } + + thisSentence.push(thisWord); + this.data.words.push(thisWord); + } + + // Update the global Word index offset for the next sentence + this.lastWordIdx += sentence.words.length; + + // Sentences may have multiple dependency graphs available + const graphTypes = Object.keys(sentence.graphs); + + for (const graphType of graphTypes) { + /** + * @property {Object[]} edges + * @property roots + */ + const graph = sentence.graphs[graphType]; + + /** + * @property {Number} source + * @property {Number} destination + * @property {String} relation + */ + for (const [edgeId, edge] of graph.edges.entries()) { + this.data.links.push(new Link( + // eventId + `${docId}-${sentenceId}-${graphType}-${edgeId}`, + // Trigger + thisSentence[edge.source], + // Arguments + [{ + anchor: thisSentence[edge.destination], + type: edge.relation + }], + // Relation type + edge.relation, + // Draw Link above Words? + false, + // Category + graphType + )); + } + } + + thisDocument.sentences.push(thisSentence); + } + + return thisDocument; + } + + /** + * Parses the given mention and enriches the data stores accordingly. + * + * - TextBoundMentions become WordTags + * - EventMentions become Links + * - RelationMentions become Links + * + * @param mention + * @private + */ + _parseMention(mention) { + /** + * @property {String} mention.type + * @property {String} mention.id + * @property {String} mention.document - The ID of the mention's host + * document + * @property {Number} mention.sentence - The index of the sentence in the + * document that this mention comes from + * @property {Object} mention.tokenInterval - The start and end indices + * for this mention + * @property {String[]} mention.labels - An Array of the labels that + * this mention should have. By convention, the first element in the + * Array is the actual label, and the other elements simply reflect the + * higher-levels of the label's taxonomic hierarchy. + * @property {Object} mention.arguments + */ + + // Have we seen this one before? + if (this.parsedMentions[mention.id]) { + return this.parsedMentions[mention.id]; + } + + // TextBoundMention + // Will become either a tag for a Word, or a WordCluster. + if (mention.type === "TextBoundMention") { + const tokens = this.parsedDocuments[mention.document] + .sentences[mention.sentence] + .slice(mention.tokenInterval.start, mention.tokenInterval.end); + const label = mention.labels[0]; + + if (tokens.length === 1) { + // Set the annotation tag for this Word + tokens[0].registerTag("default", label); + + // tokens[0].setTag(label); + + this.parsedMentions[mention.id] = tokens[0]; + return tokens[0]; + } else { + const cluster = new WordCluster(tokens, label); + this.data.clusters.push(cluster); + this.parsedMentions[mention.id] = cluster; + return cluster; + } + } + + // EventMention/RelationMention + // Will become a Link + if (mention.type === "EventMention" || mention.type === "RelationMention") { + // If there is a trigger, it will be a nested Mention. Ensure it is + // parsed. + let trigger = null; + if (mention.trigger) { + trigger = this._parseMention(mention.trigger); + } + + // Read the relation label + const relType = mention.labels[0]; + + // Generate the arguments array + // `mentions.arguments` is an Object keyed by argument type. + // The value of each key is an array of nested Mentions as arguments + const linkArgs = []; + for (const [type, args] of Object.entries(mention["arguments"])) { + for (const arg of args) { + // Ensure that the argument mention has been parsed before + const anchor = this._parseMention(arg); + linkArgs.push({ + anchor, + type + }); + } + } + + // Done; prepare the new Link + const link = new Link( + // eventId + mention.id, + // Trigger + trigger, + // Arguments + linkArgs, + // Relation type + relType, + // Draw Link above Words? + true + ); + this.data.links.push(link); + this.parsedMentions[mention.id] = link; + return link; + } + } +} + +export default OdinParser; \ No newline at end of file diff --git a/src/js/parse/parse.js b/src/js/parse/parse.js index 74b72aa..02f4574 100644 --- a/src/js/parse/parse.js +++ b/src/js/parse/parse.js @@ -1,62 +1,65 @@ -import ReachParser from './reach.js'; -import BratParser from './ann.js'; -import load from '../xhr.js'; +import _ from "lodash"; + +import BratParser from "./brat.js"; +import OdinParser from "./odin.js"; const re = /.*(?=\.(\S+))|.*/; class Parser { constructor() { /* output */ - this.parsedData = { + this._parsedData = { words: [], links: [], clusters: [] }; /* supported formats */ - this.reach = new ReachParser(); this.ann = new BratParser(); + this.odin = new OdinParser(); } - loadFile(path, format) { - // get format from extension - if (!format) { - const extension = path.toLowerCase().match(re)[1]; - - if (extension === 'json') { - format = 'json'; - } - else { - format = 'brat'; - } + /** + * Loads annotation data directly into the parser + * @param {Object} data - The raw data expected by the parser for the + * given format + * @param {String} format + */ + loadData(data, format) { + if (format === "brat") { + this.parseBrat(data); + } else if (format === "odin") { + this.parseOdin(data); + } else { + throw `Unknown annotation format: ${format}`; } - - // load and parse file - return load(path).then(data => { - if (format === 'json') { - this.parseJson(JSON.parse(data)); - } - else if (format === 'brat') { - this.parseText(data); - } - - return this.parsedData; - }) + return this.getParsedData(); } - parseFiles(files) { - // console.log(files); + /** + * Loads annotation data from file objects (as read by Main.loadFilesAsync()) + * @param {Array} files - An array of objects with the following structure: + * { + * name: + * type: + * content: + * } + * @param {String} format + */ + loadFiles(files, format) { if (files.length === 1) { + // Single file const file = files[0]; - if (file.type === 'application/json') { - this.parseJson(JSON.parse(file.content)); - } - else if (file.type === '') { - this.parseText(file.content); + if (format === "brat") { + this.parseBrat(file.content); + } else if (format === "odin") { + // The Odin parser expects an Object directly, not a String + this.parseOdin(JSON.parse(file.content)); + } else { + throw `Unknown annotation format: ${format}`; } - return file.name; - } - else if (files.length > 1) { + } else { + // Multi-file format // find 2 or 3 files that match in name files.sort((a, b) => a.name.localeCompare(b.name)); @@ -84,33 +87,55 @@ class Parser { } // found matching files - if (matchingFiles.length === 2) { - // find text content - let text = matchingFiles.find(file => file.name.endsWith('.txt')); - let standoff = matchingFiles.find(file => !file.name.endsWith('.txt')); - this.parseText(text.content, standoff.content); - return [text.name, standoff.name].join('\n'); - } else { - let text = matchingFiles.find(file => file.name.endsWith('.txt')); - let entities = matchingFiles.find(file => file.name.endsWith('.a1')); - let evts = matchingFiles.find(file => file.name.endsWith('.a2')); - if (text && evts && entities) { - this.parseText(text.content, entities.content, evts.content) + if (format === "brat") { + if (matchingFiles.length === 2) { + // find text content + let text = matchingFiles.find(file => file.name.endsWith(".txt")); + let standoff = matchingFiles.find(file => !file.name.endsWith(".txt")); + this.parseBrat(text.content, standoff.content); + } else { + let text = matchingFiles.find(file => file.name.endsWith(".txt")); + let entities = matchingFiles.find(file => file.name.endsWith(".a1")); + let evts = matchingFiles.find(file => file.name.endsWith(".a2")); + if (text && evts && entities) { + this.parseBrat(text.content, entities.content, evts.content); + } else { + throw "Wrong number/type of files for Brat format"; + } } - return [text.name, entities.name, evts.name].join('\n'); + } else { + throw "Unknown format, or wrong number/type of files for format"; } } + + return this.getParsedData(); } - parseJson(data) { - this.reach.parse(data); - this.parsedData = this.reach.data; + /** + * Returns a cloned copy of the most recently parsed data, with circular + * references (e.g., between Words and Links) intact + */ + getParsedData() { + return _.cloneDeep(this._parsedData); } - parseText() { + /** + * Parses the given Brat-format data + * http://brat.nlplab.org/standoff.html + */ + parseBrat() { this.ann.parse.apply(this.ann, arguments); - this.parsedData = this.ann.data; + this._parsedData = this.ann.data; + } + + /** + * Parses the given Odin-format data + * https://gist.github.com/myedibleenso/87a3191c73938840b8ed768ec305db38 + */ + parseOdin(data) { + this.odin.parse(data); + this._parsedData = this.odin.data; } } -module.exports = Parser; +export default Parser; diff --git a/src/js/parse/reach.js b/src/js/parse/reach.js deleted file mode 100644 index 45c94bc..0000000 --- a/src/js/parse/reach.js +++ /dev/null @@ -1,187 +0,0 @@ -import Word from '../components/word.js'; -import WordCluster from '../components/wordcluster.js'; -import Link from '../components/link.js'; - -class ReachParser { - constructor() { - this.data = {}; - } - - /* - @param data : JSON input - */ - parse(data) { - /* first get string tokens from the syntaxData */ - const text = data.syntaxData.text; - const tokens = data.syntaxData.entities - .sort((a, b) => a[2][0][0] - b[2][0][0]) - .map(x => { - return { - text: text.substring(x[2][0][0], x[2][0][1]), - id: x[0], - type: x[1], - startIndex: x[2][0][0], - endIndex: x[2][0][1] - } - }); - - function findTokenByIndex([i1, i2]) { - const startToken = tokens.findIndex(token => token.startIndex === i1); - const endToken = tokens.findIndex(token => token.endIndex === i2); - return [startToken, endToken]; - } - - const syntax = data.syntaxData.relations.map(arr => { - return { - id: arr[0], - trigger: arr[2][0][1], - arguments: [ - { - id: arr[2][1][1], - type: arr[1] - } - ] - }; - }); - - /* parse the event data: entities, triggers, events, and relations */ - const e = data.eventData; - const entities = e.entities.map(arr => { - return { - id: arr[0], - type: arr[1], - tokenIndex: findTokenByIndex(arr[2][0]), - string: e.text.substring(arr[2][0][0], arr[2][0][1]) - }; - }); - - const triggers = e.triggers.map(arr => { - return { - id: arr[0], - type: arr[1], - tokenIndex: findTokenByIndex(arr[2][0]), - string: e.text.substring(arr[2][0][0], arr[2][0][1]) - }; - }); - - const events = e.events.map(arr => { - return { - id: arr[0], - trigger: arr[1], - arguments: arr[2].map(argument => { - return { - id: argument[1], - type: argument[0] - }; - }) - }; - }); - - const relations = e.relations.map(arr => { - return { - id: arr[0], - type: arr[1], - arguments: arr[2].map(argument => { - return { - id: argument[1], - type: argument[0] - }; - }) - }; - }); - - this.buildWordsAndLinks(tokens, entities, triggers, events, relations, syntax); - } - - buildWordsAndLinks(tokens, entities, triggers, events, relations, syntax) { - // construct word objects and tags from tokens, entities, and triggers - const words = tokens.map((token, i) => { - let w = new Word(token.text, i); - w.setSyntaxTag(token.type); - w.setSyntaxId(token.id); - return w; - }); - - const clusters = []; - - [].concat(entities, triggers).forEach(el => { - if (el.tokenIndex[0] === el.tokenIndex[1]) { - words[el.tokenIndex[0]].setTag(el.type); // TODO: enable setting multiple tags - words[el.tokenIndex[0]].addEventId(el.id); - } - else { - let cluster = []; - for (let i = el.tokenIndex[0]; i <= el.tokenIndex[1]; ++i) { - cluster.push(words[i]); - } - const wordCluster = new WordCluster(cluster, el.type); - wordCluster.addEventId(el.id); - clusters.push(wordCluster); - } - }); - - entities = words.concat(clusters); - - function searchForEntity(argument) { - let anchor; - switch (argument.id.charAt(0)) { - case 'E': - case 'R': - anchor = links.find(link => link.eventId === argument.id); - break; - case 'T': - anchor = entities.find(word => word.eventIds.indexOf(argument.id) > -1); - break; - default: - console.log('unhandled argument type', argument); - break; - } - return { anchor, type: argument.type }; - } - - // construct links from events and relations - const links = []; - events.forEach(evt => { - // create a link between the trigger and each of its arguments - const trigger = entities.find(word => word.eventIds.indexOf(evt.trigger) > -1); - const args = evt.arguments.map(searchForEntity); - - // create link - const link = new Link(evt.id, trigger, args); - - // push link to link array - links.push(link); - }); - - relations.forEach(rel => { - const args = rel.arguments.map(searchForEntity); - // create link - const link = new Link(rel.id, null, args, rel.type); - - // push link to link array - links.push(link); - }); - - // syntax data - syntax.forEach(syn => { - // create a link between the trigger and each of its arguments - const trigger = entities.find(word => word.syntaxId === syn.trigger); - const args = syn.arguments.map(arg => { - let anchor = words.find(w => w.syntaxId === arg.id); - return { anchor, type: arg.type }; - }); - - // create link - const link = new Link(syn.id, trigger, args, null, false); - - // push link to link array - links.push(link); - }); - - this.data = { - words, links, clusters - }; - } -} - -module.exports = ReachParser; diff --git a/src/js/tag.js b/src/js/tag.js new file mode 100644 index 0000000..8b60464 --- /dev/null +++ b/src/js/tag.js @@ -0,0 +1,44 @@ +/** + * Instantiation and static functions + */ + +import Main from "./main"; + +/** + * Initialises a TAG visualisation on the given element. + * @param {Object} params - Initialisation parameters. + * @param {String|Element|jQuery} params.container - Either a string + * containing the ID of the container element, or the element itself (as a + * native/jQuery object). + * @param {Object} [params.data] - Initial data to load, if any. + * @param {String} [params.format] - One of the supported format identifiers for + * the data. + * @param {Object} [params.options] - Overrides for various default + * library options. + */ +function tag(params) { + // Core params + if (!params.container) { + throw "No TAG container element specified."; + } + + if (!params.options) { + params.options = {}; + } + + const instance = new Main(params.container, params.options); + + // Initial data load + if (params.data && params.format) { + instance.loadData(params.data, params.format); + } + return instance; +} + +// ES6 and CommonJS compatibility +export default { + tag +}; +module.exports = { + tag +}; \ No newline at end of file diff --git a/src/js/treelayout.js b/src/js/treelayout.js index 2db4f84..e5382da 100644 --- a/src/js/treelayout.js +++ b/src/js/treelayout.js @@ -1,339 +1,346 @@ -import * as d3 from 'd3'; -import Word from './components/word.js'; -import Link from './components/link.js'; +/** + * Not currently in use. + */ -module.exports = (function() { +import * as d3 from "d3"; +import Word from "./components/word.js"; +import Link from "./components/link.js"; - // depth of recursion - let maxDepth; - const rh = 50; // row height +module.exports = (function () { - // recursively build hierarchy from a root word or link - function addNode(node, depth, source) { - let incoming = []; + // depth of recursion + let maxDepth; + const rh = 50; // row height + // recursively build hierarchy from a root word or link + function addNode(node, depth, source) { + let incoming = []; + + let data = { + node, + incoming, + name: node instanceof Word ? node.val : node.textStr, + type: node instanceof Word ? "Word" : "Link" + }; + + if (depth < maxDepth) { + let children = node.links + .filter(parent => { + // ignore "incoming" links + if (parent !== source && parent instanceof Link) { + const i = parent.words.indexOf(node); + if (i < 0 || parent.arrowDirections[i] === -1) { + incoming.push(parent); + return false; + } + } + return parent !== source; + }) + .map((parent) => addNode(parent, depth + 1, node)); + + if (node instanceof Link) { + let anchors = node.words + .map((word, i) => { + if (word !== source) { + const newNode = addNode(word, depth + 1, node); + + if (node.arrowDirections[i] === -1) { + newNode.receivesArrow = true; + } + + return newNode; + } + return null; + }) + .filter(word => word); + + children = children.concat(anchors); + } + + if (children.length > 0) { + data.children = children; + } + } + + return data; + }; + + class TreeLayout { + constructor(el, mainSVG, openInModal) { + // container element + this.isInModal = openInModal; + this.svg = openInModal ? d3.select(el) : d3.select(document.body).append("svg") + .attr("id", "tree-svg"); + this.draggable = this.svg.append("g"); + this.g = this.draggable.append("g"); + + let self = this; + // this.svg.append('text') + // .text(openInModal ? 'Show in main window' : 'Pop into modal') + // .attr('id', 'tree-popout') + // .attr('x', 15) + // .attr('y', 25) + // .on('click', function() { + // let node = document.getElementById('tree-svg'); + // let parent = node.parentNode; + // if (parent === document.body) { + // d3.select(this).text('Show in main window'); + // d3.select(el).node().appendChild(node); + // self.isInModal = true; + // } + // else { + // d3.select(this).text('Pop into modal'); + // document.body.appendChild(node); + // self.isInModal = false; + // } + // mainSVG.fire('build-tree'); + // }); + this.svg.append("text") + .text("Close") + .attr("id", "tree-close") + .attr("x", this.svg.node().getBoundingClientRect().width - 15) + .attr("text-anchor", "end") + .attr("y", 25) + .on("click", () => { + document.body.classList.add("tree-closed"); + }); + + // add zoom/pan events + this.svg.call(d3.zoom() + .scaleExtent([1 / 2, 4]) + .on("zoom", () => { + this.draggable.attr("transform", d3.event.transform); + })) + .on("dblclick.zoom", null); + + // selected words to generate graph around + this.maxDepth = 20; // default value for max dist from root + this.maxWidth = 0; + this.layers = []; + } + + resize() { + let bounds = this.svg.node().getBoundingClientRect(); + this.g.attr("transform", "translate(" + [bounds.width / 2 - this.maxWidth / 2, bounds.height / 2 - (this.layers.length - 1) * rh / 2] + ")"); + } + + clear() { + this.g.selectAll("*").remove(); + } + + /** + * construct a set of hierarchies from an array of + * Word or Link "root" nodes + */ + graph(selected) { + maxDepth = this.maxDepth; + + let data = []; + + function addNode(node, source = null, depth = 0) { let data = { - node, - incoming, - name: node instanceof Word ? node.val : node.textStr, - type: node instanceof Word ? 'Word' : 'Link' + node, + depth, + children: [], + siblings: [] }; if (depth < maxDepth) { - let children = node.links - .filter(parent => { - // ignore "incoming" links - if (parent !== source && parent instanceof Link) { - const i = parent.words.indexOf(node); - if (i < 0 || parent.arrowDirections[i] === -1) { - incoming.push(parent); - return false; - } - } - return parent !== source; - }) - .map((parent) => addNode(parent, depth + 1, node)); - - if (node instanceof Link) { - let anchors = node.words - .map((word, i) => { - if (word !== source) { - const newNode = addNode(word, depth + 1, node); - - if (node.arrowDirections[i] === -1) { - newNode.receivesArrow = true; - } - - return newNode; - } - return null; - }) - .filter(word => word); - - children = children.concat(anchors); - } + let links = node.links.filter(l => l.top); + let args = []; + let corefs = links.filter(x => !x.trigger && (!source || x !== source.node)) + .map(coref => { + return { + type: coref.reltype, + args: coref.arguments.filter(x => x.anchor !== node && x.anchor !== source) + .map(x => addNode(x.anchor, node, depth)) + }; + }); - if (children.length > 0) { - data.children = children; - } + if (node instanceof Word) { + args = links.filter(x => x.trigger === node); + } else if (node instanceof Link) { + args = node.arguments.map(x => x.anchor); + } + + data.children = args.map(arg => addNode(arg, data, depth + 1)); + data.siblings = corefs; } return data; - }; - - class TreeLayout { - constructor(el, mainSVG, openInModal) { - // container element - this.isInModal = openInModal; - this.svg = openInModal ? d3.select(el) : d3.select(document.body).append('svg') - .attr('id', 'tree-svg'); - this.draggable = this.svg.append('g'); - this.g = this.draggable.append('g'); - - let self = this; - // this.svg.append('text') - // .text(openInModal ? 'Show in main window' : 'Pop into modal') - // .attr('id', 'tree-popout') - // .attr('x', 15) - // .attr('y', 25) - // .on('click', function() { - // let node = document.getElementById('tree-svg'); - // let parent = node.parentNode; - // if (parent === document.body) { - // d3.select(this).text('Show in main window'); - // d3.select(el).node().appendChild(node); - // self.isInModal = true; - // } - // else { - // d3.select(this).text('Pop into modal'); - // document.body.appendChild(node); - // self.isInModal = false; - // } - // mainSVG.fire('build-tree'); - // }); - this.svg.append('text') - .text('Close') - .attr('id', 'tree-close') - .attr('x', this.svg.node().getBoundingClientRect().width - 15) - .attr('text-anchor', 'end') - .attr('y', 25) - .on('click', () => { - document.body.classList.add('tree-closed'); + } + + let hierarchy = addNode(selected); + + let [nodes, links] = (function () { + let nodes = []; + let links = []; + + function flatten(node) { + nodes.push(node); + node.siblings.forEach(sibling => { + sibling.args.forEach(arg => { + flatten(arg); + links.push({ + type: "sibling", + label: sibling.type, + source: node, + target: arg }); - - // add zoom/pan events - this.svg.call(d3.zoom() - .scaleExtent([1 / 2, 4]) - .on("zoom", () => { - this.draggable.attr('transform', d3.event.transform); - })) - .on("dblclick.zoom", null); - - // selected words to generate graph around - this.maxDepth = 20; // default value for max dist from root - this.maxWidth = 0; - this.layers = []; - } - resize() { - let bounds = this.svg.node().getBoundingClientRect(); - this.g.attr('transform', 'translate(' + [bounds.width / 2 - this.maxWidth / 2, bounds.height / 2 - (this.layers.length - 1) * rh / 2] + ')'); - } - clear() { - this.g.selectAll('*').remove(); + }); + }); + node.children.forEach(child => { + flatten(child); + links.push({ + type: "child", + source: node, + target: child + }); + }); } - /** - * construct a set of hierarchies from an array of - * Word or Link "root" nodes - */ - graph(selected) { - maxDepth = this.maxDepth; - - let data = []; - - function addNode(node, source = null, depth = 0) { - let data = { - node, - depth, - children: [], - siblings: [] - }; - - if (depth < maxDepth) { - let links = node.links.filter(l => l.top); - let args = []; - let corefs = links.filter(x => !x.trigger && (!source || x !== source.node)) - .map(coref => { - return { - type: coref.reltype, - args: coref.arguments.filter(x => x.anchor !== node && x.anchor !== source) - .map(x => addNode(x.anchor, node, depth)) - }; - }); - - if (node instanceof Word) { - args = links.filter(x => x.trigger === node); - } - else if (node instanceof Link) { - args = node.arguments.map(x => x.anchor); - } - - data.children = args.map(arg => addNode(arg, data, depth + 1)); - data.siblings = corefs; - } + flatten(hierarchy); - return data; - } - - let hierarchy = addNode(selected); - - let [nodes, links] = (function() { - let nodes = []; - let links = []; - - function flatten(node) { - nodes.push(node); - node.siblings.forEach(sibling => { - sibling.args.forEach(arg => { - flatten(arg); - links.push({ - type: 'sibling', - label: sibling.type, - source: node, - target: arg - }); - }); - }); - node.children.forEach(child => { - flatten(child); - links.push({ - type: 'child', - source: node, - target: child - }) - }); - } - flatten(hierarchy); + return [nodes, links]; + })(); - return [nodes, links]; - })(); + let maxWidth = 0; + let layers = []; + nodes.forEach(node => { + layers[node.depth] = layers[node.depth] || []; + layers[node.depth].push(node); + }); - let maxWidth = 0; - let layers = []; - nodes.forEach(node => { - layers[node.depth] = layers[node.depth] || []; - layers[node.depth].push(node); - }); + function shiftSubtree(node, dx, root) { + node.offset += dx; + if (node.offset > maxWidth) { + maxWidth = node.offset; + } + if (!root) { + node.siblings.forEach(node => shiftSubtree(node, dx)); + } + node.children.forEach(node => shiftSubtree(node, dx)); + } + + for (let i = layers.length - 1; i >= 0; --i) { + layers[i].forEach((node, j) => { + // 1st pass: assign an initial offset according to children + if (node.children.length > 0) { + let leftChild = node.children[0]; + let rightChild = node.children[node.children.length - 1]; + node.offset = (leftChild.offset + rightChild.offset) / 2; + } else if (j > 0) { + node.offset = layers[i][j - 1].offset; + } else { + node.offset = 0; + } + }); + + // 2nd pass: check that subtree doesn't collide with left tree + function computeWidth(word, svg) { + let text = svg.append("text").text(word); + let length = text.node().getComputedTextLength(); + text.remove(); + return length; + } - function shiftSubtree(node, dx, root) { - node.offset += dx; - if (node.offset > maxWidth) { maxWidth = node.offset; } - if (!root) { - node.siblings.forEach(node => shiftSubtree(node, dx)) + layers[i].forEach((node, j) => { + node.width = computeWidth(node.node.val, this.svg); + if (j > 0) { + const prev = layers[i][j - 1]; + const separation = prev.siblings.some(sibling => sibling.args.indexOf(node) > -1) ? 50 : 20; // TODO: make more universal + + let dx = prev.offset + prev.width / 2 + node.width / 2 - node.offset + separation; + if (dx > 0) { + // shift subtree and right-ward trees by dx + for (let k = j; k < layers[i].length; ++k) { + shiftSubtree(layers[i][k], dx, true); } - node.children.forEach(node => shiftSubtree(node, dx)); } - for (let i = layers.length - 1; i >= 0; --i) { - layers[i].forEach((node, j) => { - // 1st pass: assign an initial offset according to children - if (node.children.length > 0) { - let leftChild = node.children[0]; - let rightChild = node.children[node.children.length - 1]; - node.offset = (leftChild.offset + rightChild.offset) / 2; - } - else if (j > 0) { - node.offset = layers[i][j - 1].offset; - } - else { - node.offset = 0; - } - }); - - // 2nd pass: check that subtree doesn't collide with left tree - function computeWidth(word, svg) { - let text = svg.append('text').text(word); - let length = text.node().getComputedTextLength(); - text.remove(); - return length; - } - - layers[i].forEach((node, j) => { - node.width = computeWidth(node.node.val, this.svg); - if (j > 0) { - const prev = layers[i][j - 1]; - const separation = prev.siblings.some(sibling => sibling.args.indexOf(node) > -1) ? 50 : 20; // TODO: make more universal - - let dx = prev.offset + prev.width / 2 + node.width / 2 - node.offset + separation; - if (dx > 0) { - // shift subtree and right-ward trees by dx - for (let k = j; k < layers[i].length; ++k) { - shiftSubtree(layers[i][k], dx, true); - } - } - } - if (node.offset > maxWidth) { maxWidth = node.offset; } - }); - }// end for - - this.maxWidth = maxWidth; - this.layers = layers; - - let nodeSVG = this.g.selectAll('.node') - .data(nodes, d => d.node); - - let edgeLabel = this.g.selectAll('.edgeLabel') - .data(links.filter(l => l.source.node instanceof Link), d => d.source.node); - - let edgeSVG = this.g.selectAll('.edge') - .data(links, d => d.source.node); - - nodeSVG.exit().remove(); - nodeSVG.enter().append('text') - .attr('class','node') - .attr('text-anchor', 'middle') - .attr('transform', d => 'translate(' + [d.offset, d.depth * rh] + ')') - .merge(nodeSVG) - .text(d => d.node.val) - .transition() - .attr('transform', d => 'translate(' + [d.offset, d.depth * rh] + ')'); - - // resize - this.resize(); - - edgeSVG.exit().remove(); - edgeSVG.enter().append('path') - .attr('class', 'edge') - .attr('stroke', 'grey') - .attr('stroke-dasharray', d => d.source.node instanceof Word ? [2,2] : null) - .attr('stroke-width', '1px') - .attr('fill','none') - .merge(edgeSVG) - .attr('d', d => { - if (d.type === 'sibling') { - let x1, x2; - if (d.target.offset > d.source.offset) { - x1 = d.source.offset + d.source.width / 2; - x2 = d.target.offset - d.target.width / 2; - } - else { - x1 = d.target.offset + d.target.width / 2; - x2 = d.source.offset - d.source.width / 2; - } - return 'M' + [x1 - 10, d.source.depth * rh + 5] - + 'v7h' + (x2 - x1 + 20) + 'v-7'; - } - else if (d.type === 'child') { - let offset = 0; - if (d.source.node.arguments) { - offset = -7; - } - return 'M' + [d.source.offset, d.source.depth * rh + 5] - + 'C' + [ - d.source.offset, d.source.depth * rh + 25, - d.target.offset, d.target.depth * rh - 40, - d.target.offset, d.target.depth * rh - 15 + offset - ]; - } - }); - - edgeLabel.exit().remove(); - edgeLabel.enter().append('text') - .attr('text-anchor', 'middle') - .attr('transform', d => 'translate(' + [d.target.offset, d.target.depth * rh] + ')') - .attr('class', 'edgeLabel') - .attr('font-size', '0.65em') - .merge(edgeLabel) - .text((d, i) => { - let arg = d.source.node.arguments.find(arg => arg.anchor === d.target.node); - if (arg) { - return arg.type; - } - }) - .transition() - .attr('transform', d => 'translate(' + [d.target.offset, d.target.depth * rh - 13] + ')'); - } - }//end class TreeLayout - - return TreeLayout; + } + if (node.offset > maxWidth) { + maxWidth = node.offset; + } + }); + }// end for + + this.maxWidth = maxWidth; + this.layers = layers; + + let nodeSVG = this.g.selectAll(".node") + .data(nodes, d => d.node); + + let edgeLabel = this.g.selectAll(".edgeLabel") + .data(links.filter(l => l.source.node instanceof Link), d => d.source.node); + + let edgeSVG = this.g.selectAll(".edge") + .data(links, d => d.source.node); + + nodeSVG.exit().remove(); + nodeSVG.enter().append("text") + .attr("class", "node") + .attr("text-anchor", "middle") + .attr("transform", d => "translate(" + [d.offset, d.depth * rh] + ")") + .merge(nodeSVG) + .text(d => d.node.val) + .transition() + .attr("transform", d => "translate(" + [d.offset, d.depth * rh] + ")"); + + // resize + this.resize(); + + edgeSVG.exit().remove(); + edgeSVG.enter().append("path") + .attr("class", "edge") + .attr("stroke", "grey") + .attr("stroke-dasharray", d => d.source.node instanceof Word ? [2, 2] : null) + .attr("stroke-width", "1px") + .attr("fill", "none") + .merge(edgeSVG) + .attr("d", d => { + if (d.type === "sibling") { + let x1, x2; + if (d.target.offset > d.source.offset) { + x1 = d.source.offset + d.source.width / 2; + x2 = d.target.offset - d.target.width / 2; + } else { + x1 = d.target.offset + d.target.width / 2; + x2 = d.source.offset - d.source.width / 2; + } + return "M" + [x1 - 10, d.source.depth * rh + 5] + + "v7h" + (x2 - x1 + 20) + "v-7"; + } else if (d.type === "child") { + let offset = 0; + if (d.source.node.arguments) { + offset = -7; + } + return "M" + [d.source.offset, d.source.depth * rh + 5] + + "C" + [ + d.source.offset, d.source.depth * rh + 25, + d.target.offset, d.target.depth * rh - 40, + d.target.offset, d.target.depth * rh - 15 + offset + ]; + } + }); + + edgeLabel.exit().remove(); + edgeLabel.enter().append("text") + .attr("text-anchor", "middle") + .attr("transform", d => "translate(" + [d.target.offset, d.target.depth * rh] + ")") + .attr("class", "edgeLabel") + .attr("font-size", "0.65em") + .merge(edgeLabel) + .text((d, i) => { + let arg = d.source.node.arguments.find(arg => arg.anchor === d.target.node); + if (arg) { + return arg.type; + } + }) + .transition() + .attr("transform", d => "translate(" + [d.target.offset, d.target.depth * rh - 13] + ")"); + } + }//end class TreeLayout + + return TreeLayout; })(); diff --git a/src/js/util.js b/src/js/util.js new file mode 100644 index 0000000..121d603 --- /dev/null +++ b/src/js/util.js @@ -0,0 +1,92 @@ +/** + * Utility functions + * @module Util + */ + +import _ from "lodash"; + +// For some reason, the `draggable` import has to be in a different file +// from `main.js`. This has something to do with the way ES6 imports work, +// and the fact that `svg.draggable.js` expects the `SVG` variable to be +// globally available. +import * as SVG from "svg.js"; +import * as draggable from "svg.draggable.js"; + +/** + * Get all the CSS rules that match the given elements + * Adapted from: + * https://stackoverflow.com/questions/2952667/find-all-css-rules-that-apply-to-an-element + * + * @param {Array} elements - Array of elements to get rules for + * @return {Array} + * @memberof module:Util + */ +function getCssRules(elements) { + const sheets = document.styleSheets; + const ret = []; + let importRules = []; + + for (const sheet of sheets) { + try { + const rules = sheet.rules || sheets.cssRules; + for (const rule of rules) { + // Include @import rules by default, since we can't be sure if they + // apply, and since they are generally used for fonts + if (rule.type === CSSRule.IMPORT_RULE) { + importRules.push(rule.cssText); + continue; + } + + // For other types of rules, check against the listed elements + for (const el of elements) { + el.matches = el.matches || el.webkitMatchesSelector || + el.mozMatchesSelector || el.msMatchesSelector || + el.oMatchesSelector; + if (el.matches(rule.selectorText)) { + ret.push(rule.cssText); + break; + } + } + } + } catch (err) { + // Sometimes we get CORS errors with Chrome and external stylesheets, + // but we should be all right to keep going + console.log("Warning:", err); + } + } + + // Import rules have to be at the top of the styles list + return _.uniq(importRules.concat(ret)); +} + +/** + * Sort some given array of Links in preparation for determining their slots + * (vertical intervals for overlapping/crossing Links). Needed because the + * order that the Parser puts Links in might not be the order we actually want: + * + * 1) Primary sort by index of left endpoint, ascending + * 2) Secondary sort by number of Words covered, descending + * + * @param links + * @memberof module:Util + */ +function sortForSlotting(links) { + const sortingArray = links.map((link, idx) => { + const endpoints = link.endpoints; + return { + idx, + leftAnchor: endpoints[0].idx, + width: endpoints[1].idx - endpoints[0].idx + 1 + }; + }); + // Sort by number of words covered, descending + sortingArray.sort((a, b) => b.width - a.width); + // Sort by index of left endpoint, ascending + sortingArray.sort((a, b) => a.leftAnchor - b.leftAnchor); + return sortingArray.map(link => links[link.idx]); +} + +export default { + getCssRules, + sortForSlotting +}; \ No newline at end of file diff --git a/src/js/xhr.js b/src/js/xhr.js deleted file mode 100644 index a27fc8c..0000000 --- a/src/js/xhr.js +++ /dev/null @@ -1,20 +0,0 @@ -function load(url) { - var xhr = new XMLHttpRequest(); - xhr.open("GET", url); - xhr.send(); - - return new Promise((res, err) => { - xhr.onreadystatechange = function() { - if (xhr.readyState === 4) { - if (xhr.status === 200) { - res(xhr.responseText); - } - else { - err(xhr); - } - } - } - }); -} - -module.exports = load; diff --git a/src/js/ymljson.js b/src/js/ymljson.js deleted file mode 100644 index 334e2f3..0000000 --- a/src/js/ymljson.js +++ /dev/null @@ -1,42 +0,0 @@ -import load from './xhr.js' - -// non-comprehensive function to convert yml file to json -export function convert(url, callback) { - load(url).then(function(text) { - let taxonomy = []; - let arr = taxonomy; - const lines = text.split('\n'); - let depths = []; - - lines.forEach(line => { - let comment = line.indexOf('#'); - let lineStart = line.indexOf('-'); - if (lineStart < 0 || (comment >= 0 && comment < lineStart)) { - return; - } - - line = ((comment >= 0) ? line.slice(lineStart + 1, comment) : line.slice(lineStart + 1)).trim(); - - while (depths.length > 0 && depths[depths.length - 1].i >= lineStart) { - arr = depths.pop().arr; - } - if (depths.length === 0) { arr = taxonomy; } - - if (line.endsWith(':')) { - depths.push({ arr, i: lineStart }); - - let newArray = []; - let child = {}; - child[line.slice(0, -1).trim()] = newArray; - arr.push(child); - arr = newArray; - } - else { - arr.push(line); - } - });//end forEach - if (callback) { - callback(taxonomy); - } - }) -}; diff --git a/src/jsdoc-template/CHANGELOG.md b/src/jsdoc-template/CHANGELOG.md new file mode 100644 index 0000000..29adc71 --- /dev/null +++ b/src/jsdoc-template/CHANGELOG.md @@ -0,0 +1,23 @@ +CHANGELOG +========= +3.3.0 +----- +- Added support for templates.collapse option. When set to true only the active component\'s members are expaneded. +- Added templates.resources option that takes an object where the keys are the labels and the values are links to external resources. +- Minor css bugfixes + +3.2.0 +----- +- Fix issue where all elements would be hidden if no excludePattern is included (#16 thanks @mercmobily) +- Display bullet points in documentation (#17 thanks @mercmobily) +- Allow `disableSort` to be included in template to prevent automatic sorting of classes and methods (#15 thanks @mercmobily) + +3.1.1 +----- +- Hide hidden modules from members section + +3.1.0 +----- +- Add anchor tags to examples +- Increase max-width of sections + diff --git a/src/jsdoc-template/LICENSE b/src/jsdoc-template/LICENSE new file mode 100644 index 0000000..0a469aa --- /dev/null +++ b/src/jsdoc-template/LICENSE @@ -0,0 +1,27 @@ +## JSDoc 3 + +JSDoc 3 is free software, licensed under the Apache License, Version 2.0 (the +"License"). Commercial and non-commercial use are permitted in compliance with +the License. + +Copyright (c) 2011-2015 Michael Mathews and the +[contributors to JSDoc](https://github.com/jsdoc3/jsdoc/graphs/contributors). +All rights reserved. + +You may obtain a copy of the License at: +http://www.apache.org/licenses/LICENSE-2.0 + +In addition, a copy of the License is included with this distribution. + +As stated in Section 7, "Disclaimer of Warranty," of the License: + +> Licensor provides the Work (and each Contributor provides its Contributions) +> on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either +> express or implied, including, without limitation, any warranties or +> conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A +> PARTICULAR PURPOSE. You are solely responsible for determining the +> appropriateness of using or redistributing the Work and assume any risks +> associated with Your exercise of permissions under this License. + +The source code for JSDoc 3 is available at: +https://github.com/jsdoc3/jsdoc diff --git a/src/jsdoc-template/README.md b/src/jsdoc-template/README.md new file mode 100644 index 0000000..b38918b --- /dev/null +++ b/src/jsdoc-template/README.md @@ -0,0 +1,90 @@ +# Braintree JSDoc Template + +A clean, responsive documentation template with search and navigation highlighting for JSDoc 3. Forked from [github.com/nijikokun/minami](https://github.com/nijikokun/minami). + +![Braintree JS Doc Template Screenshot](https://puu.sh/rWvW0/2831fd69d6.png) + +## Responsive + +![Braintree JS Doc Template Screenshot](https://puu.sh/rWvZ6/aee92a4787.png) + +## Uses + +- [the Taffy Database library](http://taffydb.com/) +- [Underscore Template library](http://documentcloud.github.com/underscore/#template) +- [Algolia DocSearch](https://community.algolia.com/docsearch/) + +## Usage + +Clone repository to your designated `jsdoc` template directory, then: + + +### Node.js Dependency + +In your projects `package.json` file add a generate script: + +```json +"script": { + "generate-docs": "node_modules/.bin/jsdoc --configure .jsdoc.json --verbose" +} +``` + +In your `.jsdoc.json` file, add a template option. + +```json +"opts": { + "template": "node_modules/jsdoc-template" +} +``` + +### Example JSDoc Config + +```json +{ + "tags": { + "allowUnknownTags": true, + "dictionaries": ["jsdoc"] + }, + "source": { + "include": ["lib", "package.json", "README.md"], + "includePattern": ".js$", + "excludePattern": "(node_modules/|docs)" + }, + "plugins": [ + "plugins/markdown" + ], + "templates": { + "referenceTitle": "My SDK Name", + "disableSort": false, + "collapse": true, + "resources": { + "google": "https://www.google.com/" + } + }, + "opts": { + "destination": "./docs/", + "encoding": "utf8", + "private": true, + "recurse": true, + "template": "./node_modules/jsdoc-template" + } +} +``` + +Note: `referenceTitle` and `disableSort` will affect the output of this theme. + +If you would like to enable [Algolia DocSearch](https://community.algolia.com/docsearch/), you can pass a `search` object into the `templates` object. + +```json +"templates": { + "search": { + "apiKey": "your-api-key", + "indexName": "Your index name. Defaults to braintree.", + "hitsPerPage": "Number of Results to show. Defaults to 7.", + } +} +``` + +## License + +Licensed under the Apache2 license. diff --git a/src/jsdoc-template/package.json b/src/jsdoc-template/package.json new file mode 100644 index 0000000..65233ca --- /dev/null +++ b/src/jsdoc-template/package.json @@ -0,0 +1,56 @@ +{ + "_from": "github:braintree/jsdoc-template", + "_id": "jsdoc-template@3.3.0", + "_inBundle": false, + "_integrity": "sha1-JqjJUidJ+fal6B4guu4afckn7EQ=", + "_location": "/jsdoc-template", + "_phantomChildren": {}, + "_requested": { + "type": "git", + "raw": "braintree/jsdoc-template", + "rawSpec": "braintree/jsdoc-template", + "saveSpec": "github:braintree/jsdoc-template", + "fetchSpec": null, + "gitCommittish": "master" + }, + "_requiredBy": [ + "#DEV:/", + "#USER" + ], + "_resolved": "github:braintree/jsdoc-template#ec0e3c0ec95de6b4e928af3285bbf69aac2f25b6", + "_spec": "braintree/jsdoc-template", + "_where": "H:\\Git\\TextAnnotationGraphs", + "author": { + "name": "Braintreeps", + "email": "code@getbraintree.com" + }, + "bugs": { + "url": "https://github.com/braintree/jsdoc-template" + }, + "bundleDependencies": false, + "deprecated": false, + "description": "Braintree JSDoc 3 Template", + "devDependencies": { + "eslint": "^2.13.1", + "eslint-config-braintree": "^1.0.2", + "taffydb": "^2.7.3" + }, + "homepage": "https://github.com/braintree/jsdoc-template", + "licenses": [ + { + "type": "Apache-2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0" + } + ], + "main": "publish.js", + "name": "jsdoc-template", + "repository": { + "type": "git", + "url": "git+https://github.com/braintree/jsdoc-template.git" + }, + "scripts": { + "lint": "eslint .", + "test": "npm run lint" + }, + "version": "3.3.0" +} diff --git a/src/jsdoc-template/publish.js b/src/jsdoc-template/publish.js new file mode 100644 index 0000000..1308bc3 --- /dev/null +++ b/src/jsdoc-template/publish.js @@ -0,0 +1,670 @@ +/* global env: true */ +/* eslint-disable vars-on-top, valid-jsdoc */ +'use strict'; + +var doop = require('jsdoc/util/doop'); +var fs = require('jsdoc/fs'); +var helper = require('jsdoc/util/templateHelper'); +var logger = require('jsdoc/util/logger'); +var path = require('jsdoc/path'); +var taffy = require('taffydb').taffy; +var template = require('jsdoc/template'); +var util = require('util'); + +var htmlsafe = helper.htmlsafe; +var linkto = helper.linkto; +var resolveAuthorLinks = helper.resolveAuthorLinks; +var hasOwnProp = Object.prototype.hasOwnProperty; + +var data, view; + +var outdir = path.normalize(env.opts.destination); + +function find(spec) { + return helper.find(data, spec); +} + +function tutoriallink(tutorial) { + return helper.toTutorial(tutorial, null, {tag: 'em', classname: 'disabled', prefix: 'Tutorial: '}); +} + +function getAncestorLinks(doclet) { + return helper.getAncestorLinks(data, doclet); +} + +function hashToLink(doclet, hash) { + if (!/^(#.+)/.test(hash)) { return hash; } + + var url = helper.createLink(doclet); + + url = url.replace(/(#.+|$)/, hash); + return '' + hash + ''; +} + +function needsSignature(doclet) { + var i, l; + var needsSig = false; + + // function and class definitions always get a signature + if (doclet.kind === 'function' || doclet.kind === 'class') { + needsSig = true; + } else if (doclet.kind === 'typedef' && doclet.type && doclet.type.names && + doclet.type.names.length) { // typedefs that contain functions get a signature, too + for (i = 0, l = doclet.type.names.length; i < l; i++) { + if (doclet.type.names[i].toLowerCase() === 'function') { + needsSig = true; + break; + } + } + } + + return needsSig; +} + +function getSignatureAttributes(item) { + var attributes = []; + + if (item.optional) { + attributes.push('opt'); + } + + if (item.nullable === true) { + attributes.push('nullable'); + } else if (item.nullable === false) { + attributes.push('non-null'); + } + + return attributes; +} + +function updateItemName(item) { + var attributes = getSignatureAttributes(item); + var itemName = item.name || ''; + + if (item.variable) { + itemName = '…' + itemName; + } + + if (attributes && attributes.length) { + itemName = util.format('%s%s', itemName, + attributes.join(', ')); + } + + return itemName; +} + +function addParamAttributes(params) { + return params.filter(function (param) { + return param.name && param.name.indexOf('.') === -1; + }).map(updateItemName); +} + +function buildItemTypeStrings(item) { + var types = []; + + if (item && item.type && item.type.names) { + item.type.names.forEach(function (name) { + types.push(linkto(name, htmlsafe(name))); + }); + } + + return types; +} + +function buildAttribsString(attribs) { + var attribsString = ''; + + if (attribs && attribs.length) { + attribsString = htmlsafe(util.format('(%s) ', attribs.join(', '))); + } + + return attribsString; +} + +function addNonParamAttributes(items) { + var types = []; + + items.forEach(function (item) { + types = types.concat(buildItemTypeStrings(item)); + }); + + return types; +} + +function addSignatureParams(f) { + var params = f.params ? addParamAttributes(f.params) : []; + + f.signature = util.format('%s(%s)', f.signature || '', params.join(', ')); +} + +function addSignatureReturns(f) { + var attribs = []; + var attribsString = ''; + var returnTypes = []; + var returnTypesString = ''; + + // jam all the return-type attributes into an array. this could create odd results (for example, + // if there are both nullable and non-nullable return types), but let's assume that most people + // who use multiple @return tags aren't using Closure Compiler type annotations, and vice-versa. + if (f.returns) { + f.returns.forEach(function (item) { + helper.getAttribs(item).forEach(function (attrib) { + if (attribs.indexOf(attrib) === -1) { + attribs.push(attrib); + } + }); + }); + + attribsString = buildAttribsString(attribs); + } + + if (f.returns) { + returnTypes = addNonParamAttributes(f.returns); + } + if (returnTypes.length) { + returnTypesString = util.format(' → %s{%s}', attribsString, returnTypes.join('|')); + } + + f.signature = '' + (f.signature || '') + '' + + '' + returnTypesString + ''; +} + +function addSignatureTypes(f) { + var types = f.type ? buildItemTypeStrings(f) : []; + + f.signature = (f.signature || '') + '' + + (types.length ? ' :' + types.join('|') : '') + ''; +} + +function addAttribs(f) { + var attribs = helper.getAttribs(f); + var attribsString = buildAttribsString(attribs); + + f.attribs = util.format('%s', attribsString); +} + +function shortenPaths(files, commonPrefix) { + Object.keys(files).forEach(function (file) { + files[file].shortened = files[file].resolved.replace(commonPrefix, '') + // always use forward slashes + .replace(/\\/g, '/'); + }); + + return files; +} + +function getPathFromDoclet(doclet) { + if (!doclet.meta) { + return null; + } + + return doclet.meta.path && doclet.meta.path !== 'null' ? + path.join(doclet.meta.path, doclet.meta.filename) : + doclet.meta.filename; +} + +function generate(type, title, docs, filename, resolveLinks) { + resolveLinks = resolveLinks !== false; + + var docData = { + type: type, + title: title, + docs: docs + }; + + var outpath = path.join(outdir, filename); + var html = view.render('container.tmpl', docData); + + if (resolveLinks) { + html = helper.resolveLinks(html); // turn {@link foo} into foo + } + + fs.writeFileSync(outpath, html, 'utf8'); +} + +function generateSourceFiles(sourceFiles, encoding) { + encoding = encoding || 'utf8'; + Object.keys(sourceFiles).forEach(function (file) { + var source; + // links are keyed to the shortened path in each doclet's `meta.shortpath` property + var sourceOutfile = helper.getUniqueFilename(sourceFiles[file].shortened); + + helper.registerLink(sourceFiles[file].shortened, sourceOutfile); + + try { + source = { + kind: 'source', + code: helper.htmlsafe(fs.readFileSync(sourceFiles[file].resolved, encoding)) + }; + } catch (e) { + logger.error('Error while generating source file %s: %s', file, e.message); + } + + generate('Source', sourceFiles[file].shortened, [source], sourceOutfile, false); + }); +} + +/** + * Look for classes or functions with the same name as modules (which indicates that the module + * exports only that class or function), then attach the classes or functions to the `module` + * property of the appropriate module doclets. The name of each class or function is also updated + * for display purposes. This function mutates the original arrays. + * + * @private + * @param {Array.} doclets - The array of classes and functions to + * check. + * @param {Array.} modules - The array of module doclets to search. + */ +function attachModuleSymbols(doclets, modules) { + var symbols = {}; + + // build a lookup table + doclets.forEach(function (symbol) { + symbols[symbol.longname] = symbols[symbol.longname] || []; + symbols[symbol.longname].push(symbol); + }); + + return modules.map(function (module) { + if (symbols[module.longname]) { + module.modules = symbols[module.longname] + // Only show symbols that have a description. Make an exception for classes, because + // we want to show the constructor-signature heading no matter what. + .filter(function (symbol) { + return symbol.description || symbol.kind === 'class'; + }) + .map(function (symbol) { + symbol = doop(symbol); + + if (symbol.kind === 'class' || symbol.kind === 'function') { + symbol.name = symbol.name.replace('module:', '(require("') + '"))'; + } + + return symbol; + }); + } + }); +} + +function buildMemberNav(items, itemHeading, itemsSeen, linktoFn) { + var nav = ''; + var itemsNav = ''; + + if (items && items.length) { + items.forEach(function (item) { + var methods = find({kind: 'function', memberof: item.longname}); + + if (!hasOwnProp.call(item, 'longname')) { + itemsNav += '
  • ' + linktoFn('', item.name); + itemsNav += '
  • '; + } else if (!hasOwnProp.call(itemsSeen, item.longname)) { + // replace '/' in url to match ID in some section + itemsNav += '
  • ' + linktoFn(item.longname, item.name.replace(/^module:/, '')); + if (methods.length) { + itemsNav += "
      "; + + methods.forEach(function (method) { + itemsNav += '
    • '; + itemsNav += linkto(method.longname, method.name); + itemsNav += '
    • '; + }); + + itemsNav += '
    '; + } + itemsNav += '
  • '; + itemsSeen[item.longname] = true; + } + }); + + if (itemsNav !== '') { + nav += '

    ' + itemHeading + '

      ' + itemsNav + '
    '; + } + } + + return nav; +} + +// TODO: as needed, comment back in later +// function linktoTutorial(longName, name) { +// return tutoriallink(name); +// } + +// function linktoExternal(longName, name) { +// return linkto(longName, name.replace(/(^"|"$)/g, '')); +// } + +/** + * Create the navigation sidebar. + * @param {object} members The members that will be used to create the sidebar. + * @param {array} members.classes + * @param {array} members.externals + * @param {array} members.globals + * @param {array} members.mixins + * @param {array} members.modules + * @param {array} members.namespaces + * @param {array} members.tutorials + * @param {array} members.events + * @param {array} members.interfaces + * @return {string} The HTML for the navigation sidebar. + */ +function buildNav(members) { + var nav = ''; + var globalNav = ''; + var seen = {}; + // var seenTutorials = {}; + + nav += buildMemberNav(members.classes, 'Classes', seen, linkto); + nav += buildMemberNav(members.modules, 'Modules', {}, linkto); + // TODO: as needed, comment back in later + // nav += buildMemberNav(members.externals, 'Externals', seen, linktoExternal); + // nav += buildMemberNav(members.events, 'Events', seen, linkto); + // nav += buildMemberNav(members.namespaces, 'Namespaces', seen, linkto); + // nav += buildMemberNav(members.mixins, 'Mixins', seen, linkto); + // nav += buildMemberNav(members.tutorials, 'Tutorials', seenTutorials, linktoTutorial); + // nav += buildMemberNav(members.interfaces, 'Interfaces', seen, linkto); + + if (members.globals.length) { + members.globals.forEach(function (g) { + if (g.kind !== 'typedef' && !hasOwnProp.call(seen, g.longname)) { + globalNav += '
  • ' + linkto(g.longname, g.name) + '
  • '; + } + seen[g.longname] = true; + }); + + if (!globalNav) { + // turn the heading into a link so you can actually get to the global page + nav += ''; + } else { + nav += '
      ' + globalNav + '
    '; + } + } + + return nav; +} + +/** + @param {TAFFY} taffyData See . + @param {object} opts + @param {Tutorial} tutorials + */ +exports.publish = function (taffyData, opts, tutorials) { + var conf, templatePath, indexUrl, globalUrl, sourceFiles, sourceFilePaths, staticFilePaths, staticFileFilter, staticFileScanner; + + data = taffyData; + + conf = env.conf.templates || {}; + conf.default = conf.default || {}; + + templatePath = path.normalize(opts.template); + + view = new template.Template(path.join(templatePath, 'tmpl')); + + // claim some special filenames in advance, so the All-Powerful Overseer of Filename Uniqueness + // doesn't try to hand them out later + indexUrl = helper.getUniqueFilename('index'); + + // don't call registerLink() on this one! 'index' is also a valid longname + globalUrl = helper.getUniqueFilename('global'); + + helper.registerLink('global', globalUrl); + + // set up templating + view.layout = conf.default.layoutFile ? + path.getResourcePath(path.dirname(conf.default.layoutFile), + path.basename(conf.default.layoutFile)) : + 'layout.tmpl'; + + // set up tutorials for helper + helper.setTutorials(tutorials); + + data = helper.prune(data); + if (!conf.disableSort) { + data.sort('longname, version, since'); + } + helper.addEventListeners(data); + + sourceFiles = {}; + sourceFilePaths = []; + + data().each(function (doclet) { + doclet.attribs = ''; + + if (doclet.examples) { + doclet.examples = doclet.examples.map(function (example) { + var caption, code; + + if (example.match(/^\s*([\s\S]+?)<\/caption>(\s*[\n\r])([\s\S]+)$/i)) { + caption = RegExp.$1; + code = RegExp.$3; + } + + return { + caption: caption || '', + code: code || example + }; + }); + } + if (doclet.see) { + doclet.see.forEach(function (seeItem, i) { + doclet.see[i] = hashToLink(doclet, seeItem); + }); + } + + // build a list of source files + var sourcePath; + + if (doclet.meta) { + sourcePath = getPathFromDoclet(doclet); + sourceFiles[sourcePath] = { + resolved: sourcePath, + shortened: null + }; + if (sourceFilePaths.indexOf(sourcePath) === -1) { + sourceFilePaths.push(sourcePath); + } + } + }); + + // update outdir if necessary, then create outdir + var packageInfo = (find({kind: 'package'}) || []) [0]; + + if (packageInfo && packageInfo.name) { + outdir = path.join(outdir, packageInfo.name, packageInfo.version || ''); + } + fs.mkPath(outdir); + + // copy the template's static files to outdir + var fromDir = path.join(templatePath, 'static'); + var staticFiles = fs.ls(fromDir, 3); + + staticFiles.forEach(function (fileName) { + var toDir = fs.toDir(fileName.replace(fromDir, outdir)); + + fs.mkPath(toDir); + fs.copyFileSync(fileName, toDir); + }); + + // copy user-specified static files to outdir + if (conf.default.staticFiles) { + // The canonical property name is `include`. We accept `paths` for backwards compatibility + // with a bug in JSDoc 3.2.x. + staticFilePaths = conf.default.staticFiles.include || + conf.default.staticFiles.paths || + []; + staticFileFilter = new (require('jsdoc/src/filter')).Filter(conf.default.staticFiles); + staticFileScanner = new (require('jsdoc/src/scanner')).Scanner(); + + staticFilePaths.forEach(function (filePath) { + var extraStaticFiles = staticFileScanner.scan([filePath], 10, staticFileFilter); + + extraStaticFiles.forEach(function (fileName) { + var sourcePath = fs.toDir(filePath); + var toDir = fs.toDir(fileName.replace(sourcePath, outdir)); + + fs.mkPath(toDir); + fs.copyFileSync(fileName, toDir); + }); + }); + } + + if (sourceFilePaths.length) { + sourceFiles = shortenPaths(sourceFiles, path.commonPrefix(sourceFilePaths)); + } + data().each(function (doclet) { + var docletPath; + var url = helper.createLink(doclet); + + helper.registerLink(doclet.longname, url); + + // add a shortened version of the full path + if (doclet.meta) { + docletPath = getPathFromDoclet(doclet); + docletPath = sourceFiles[docletPath].shortened; + if (docletPath) { + doclet.meta.shortpath = docletPath; + } + } + }); + + data().each(function (doclet) { + var url = helper.longnameToUrl[doclet.longname]; + + if (url.indexOf('#') > -1) { + doclet.id = helper.longnameToUrl[doclet.longname].split(/#/).pop(); + } else { + doclet.id = doclet.name; + } + + if (needsSignature(doclet)) { + addSignatureParams(doclet); + addSignatureReturns(doclet); + addAttribs(doclet); + } + }); + + // do this after the urls have all been generated + data().each(function (doclet) { + doclet.ancestors = getAncestorLinks(doclet); + + if (doclet.kind === 'member' || doclet.kind === 'event' || doclet.kind === 'typedef' && doclet.signature == null) { + addSignatureTypes(doclet); + addAttribs(doclet); + } + + if (doclet.kind === 'constant') { + addSignatureTypes(doclet); + addAttribs(doclet); + doclet.kind = 'member'; + } + }); + + var members = helper.getMembers(data); + + members.tutorials = tutorials.children; + + // output pretty-printed source files by default + var outputSourceFiles = conf.default && conf.default.outputSourceFiles !== false; + + // add template helpers + view.find = find; + view.linkto = linkto; + view.resolveAuthorLinks = resolveAuthorLinks; + view.tutoriallink = tutoriallink; + view.htmlsafe = htmlsafe; + view.outputSourceFiles = outputSourceFiles; + + // once for all + view.nav = buildNav(members); + attachModuleSymbols(find({longname: {left: 'module:'}}), members.modules); + + // generate the pretty-printed source files first so other pages can link to them + if (outputSourceFiles) { + generateSourceFiles(sourceFiles, opts.encoding); + } + + if (members.globals.length) { + generate('', 'Global', [{kind: 'globalobj'}], globalUrl); + } + + // index page displays information from package.json and lists files + var files = find({kind: 'file'}); + var packages = find({kind: 'package'}); + + generate('', 'Home', + packages.concat( + [{kind: 'mainpage', readme: opts.readme, longname: opts.mainpagetitle ? opts.mainpagetitle : 'Main Page'}] + ).concat(files), + indexUrl); + + // set up the lists that we'll use to generate pages + var classes = taffy(members.classes); + var modules = taffy(members.modules); + var namespaces = taffy(members.namespaces); + var mixins = taffy(members.mixins); + var externals = taffy(members.externals); + var interfaces = taffy(members.interfaces); + + Object.keys(helper.longnameToUrl).forEach(function (longname) { + var myModules = helper.find(modules, {longname: longname}); + + if (myModules.length) { + generate('Module', myModules[0].name, myModules, helper.longnameToUrl[longname]); + } + + var myClasses = helper.find(classes, {longname: longname}); + + if (myClasses.length) { + generate('Class', myClasses[0].name, myClasses, helper.longnameToUrl[longname]); + } + + var myNamespaces = helper.find(namespaces, {longname: longname}); + + if (myNamespaces.length) { + generate('Namespace', myNamespaces[0].name, myNamespaces, helper.longnameToUrl[longname]); + } + + var myMixins = helper.find(mixins, {longname: longname}); + + if (myMixins.length) { + generate('Mixin', myMixins[0].name, myMixins, helper.longnameToUrl[longname]); + } + + var myExternals = helper.find(externals, {longname: longname}); + + if (myExternals.length) { + generate('External', myExternals[0].name, myExternals, helper.longnameToUrl[longname]); + } + + var myInterfaces = helper.find(interfaces, {longname: longname}); + + if (myInterfaces.length) { + generate('Interface', myInterfaces[0].name, myInterfaces, helper.longnameToUrl[longname]); + } + }); + + // TODO: move the tutorial functions to templateHelper.js + function generateTutorial(title, tutorial, filename) { + var tutorialData = { + title: title, + header: tutorial.title, + content: tutorial.parse(), + children: tutorial.children + }; + + var tutorialPath = path.join(outdir, filename); + var html = view.render('tutorial.tmpl', tutorialData); + + // yes, you can use {@link} in tutorials too! + html = helper.resolveLinks(html); // turn {@link foo} into foo + fs.writeFileSync(tutorialPath, html, 'utf8'); + } + + // tutorials can have only one parent so there is no risk for loops + function saveChildren(node) { + node.children.forEach(function (child) { + generateTutorial('Tutorial: ' + child.title, child, helper.tutorialToUrl(child.name)); + saveChildren(child); + }); + } + + saveChildren(tutorials); +}; diff --git a/src/jsdoc-template/static/fonts/OpenSans-Bold-webfont.eot b/src/jsdoc-template/static/fonts/OpenSans-Bold-webfont.eot new file mode 100644 index 0000000..5d20d91 Binary files /dev/null and b/src/jsdoc-template/static/fonts/OpenSans-Bold-webfont.eot differ diff --git a/src/jsdoc-template/static/fonts/OpenSans-Bold-webfont.svg b/src/jsdoc-template/static/fonts/OpenSans-Bold-webfont.svg new file mode 100644 index 0000000..3ed7be4 --- /dev/null +++ b/src/jsdoc-template/static/fonts/OpenSans-Bold-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/jsdoc-template/static/fonts/OpenSans-Bold-webfont.woff b/src/jsdoc-template/static/fonts/OpenSans-Bold-webfont.woff new file mode 100644 index 0000000..1205787 Binary files /dev/null and b/src/jsdoc-template/static/fonts/OpenSans-Bold-webfont.woff differ diff --git a/src/jsdoc-template/static/fonts/OpenSans-BoldItalic-webfont.eot b/src/jsdoc-template/static/fonts/OpenSans-BoldItalic-webfont.eot new file mode 100644 index 0000000..1f639a1 Binary files /dev/null and b/src/jsdoc-template/static/fonts/OpenSans-BoldItalic-webfont.eot differ diff --git a/src/jsdoc-template/static/fonts/OpenSans-BoldItalic-webfont.svg b/src/jsdoc-template/static/fonts/OpenSans-BoldItalic-webfont.svg new file mode 100644 index 0000000..6a2607b --- /dev/null +++ b/src/jsdoc-template/static/fonts/OpenSans-BoldItalic-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/jsdoc-template/static/fonts/OpenSans-BoldItalic-webfont.woff b/src/jsdoc-template/static/fonts/OpenSans-BoldItalic-webfont.woff new file mode 100644 index 0000000..ed760c0 Binary files /dev/null and b/src/jsdoc-template/static/fonts/OpenSans-BoldItalic-webfont.woff differ diff --git a/src/jsdoc-template/static/fonts/OpenSans-Italic-webfont.eot b/src/jsdoc-template/static/fonts/OpenSans-Italic-webfont.eot new file mode 100644 index 0000000..0c8a0ae Binary files /dev/null and b/src/jsdoc-template/static/fonts/OpenSans-Italic-webfont.eot differ diff --git a/src/jsdoc-template/static/fonts/OpenSans-Italic-webfont.svg b/src/jsdoc-template/static/fonts/OpenSans-Italic-webfont.svg new file mode 100644 index 0000000..e1075dc --- /dev/null +++ b/src/jsdoc-template/static/fonts/OpenSans-Italic-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/jsdoc-template/static/fonts/OpenSans-Italic-webfont.woff b/src/jsdoc-template/static/fonts/OpenSans-Italic-webfont.woff new file mode 100644 index 0000000..ff652e6 Binary files /dev/null and b/src/jsdoc-template/static/fonts/OpenSans-Italic-webfont.woff differ diff --git a/src/jsdoc-template/static/fonts/OpenSans-Light-webfont.eot b/src/jsdoc-template/static/fonts/OpenSans-Light-webfont.eot new file mode 100644 index 0000000..1486840 Binary files /dev/null and b/src/jsdoc-template/static/fonts/OpenSans-Light-webfont.eot differ diff --git a/src/jsdoc-template/static/fonts/OpenSans-Light-webfont.svg b/src/jsdoc-template/static/fonts/OpenSans-Light-webfont.svg new file mode 100644 index 0000000..11a472c --- /dev/null +++ b/src/jsdoc-template/static/fonts/OpenSans-Light-webfont.svg @@ -0,0 +1,1831 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/jsdoc-template/static/fonts/OpenSans-Light-webfont.woff b/src/jsdoc-template/static/fonts/OpenSans-Light-webfont.woff new file mode 100644 index 0000000..e786074 Binary files /dev/null and b/src/jsdoc-template/static/fonts/OpenSans-Light-webfont.woff differ diff --git a/src/jsdoc-template/static/fonts/OpenSans-LightItalic-webfont.eot b/src/jsdoc-template/static/fonts/OpenSans-LightItalic-webfont.eot new file mode 100644 index 0000000..8f44592 Binary files /dev/null and b/src/jsdoc-template/static/fonts/OpenSans-LightItalic-webfont.eot differ diff --git a/src/jsdoc-template/static/fonts/OpenSans-LightItalic-webfont.svg b/src/jsdoc-template/static/fonts/OpenSans-LightItalic-webfont.svg new file mode 100644 index 0000000..431d7e3 --- /dev/null +++ b/src/jsdoc-template/static/fonts/OpenSans-LightItalic-webfont.svg @@ -0,0 +1,1835 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/jsdoc-template/static/fonts/OpenSans-LightItalic-webfont.woff b/src/jsdoc-template/static/fonts/OpenSans-LightItalic-webfont.woff new file mode 100644 index 0000000..43e8b9e Binary files /dev/null and b/src/jsdoc-template/static/fonts/OpenSans-LightItalic-webfont.woff differ diff --git a/src/jsdoc-template/static/fonts/OpenSans-Regular-webfont.eot b/src/jsdoc-template/static/fonts/OpenSans-Regular-webfont.eot new file mode 100644 index 0000000..6bbc3cf Binary files /dev/null and b/src/jsdoc-template/static/fonts/OpenSans-Regular-webfont.eot differ diff --git a/src/jsdoc-template/static/fonts/OpenSans-Regular-webfont.svg b/src/jsdoc-template/static/fonts/OpenSans-Regular-webfont.svg new file mode 100644 index 0000000..25a3952 --- /dev/null +++ b/src/jsdoc-template/static/fonts/OpenSans-Regular-webfont.svg @@ -0,0 +1,1831 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/jsdoc-template/static/fonts/OpenSans-Regular-webfont.woff b/src/jsdoc-template/static/fonts/OpenSans-Regular-webfont.woff new file mode 100644 index 0000000..e231183 Binary files /dev/null and b/src/jsdoc-template/static/fonts/OpenSans-Regular-webfont.woff differ diff --git a/src/jsdoc-template/static/fonts/OpenSans-Semibold-webfont.eot b/src/jsdoc-template/static/fonts/OpenSans-Semibold-webfont.eot new file mode 100644 index 0000000..d8375dd Binary files /dev/null and b/src/jsdoc-template/static/fonts/OpenSans-Semibold-webfont.eot differ diff --git a/src/jsdoc-template/static/fonts/OpenSans-Semibold-webfont.svg b/src/jsdoc-template/static/fonts/OpenSans-Semibold-webfont.svg new file mode 100644 index 0000000..eec4db8 --- /dev/null +++ b/src/jsdoc-template/static/fonts/OpenSans-Semibold-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/jsdoc-template/static/fonts/OpenSans-Semibold-webfont.ttf b/src/jsdoc-template/static/fonts/OpenSans-Semibold-webfont.ttf new file mode 100644 index 0000000..b329084 Binary files /dev/null and b/src/jsdoc-template/static/fonts/OpenSans-Semibold-webfont.ttf differ diff --git a/src/jsdoc-template/static/fonts/OpenSans-Semibold-webfont.woff b/src/jsdoc-template/static/fonts/OpenSans-Semibold-webfont.woff new file mode 100644 index 0000000..28d6ade Binary files /dev/null and b/src/jsdoc-template/static/fonts/OpenSans-Semibold-webfont.woff differ diff --git a/src/jsdoc-template/static/fonts/OpenSans-SemiboldItalic-webfont.eot b/src/jsdoc-template/static/fonts/OpenSans-SemiboldItalic-webfont.eot new file mode 100644 index 0000000..0ab1db2 Binary files /dev/null and b/src/jsdoc-template/static/fonts/OpenSans-SemiboldItalic-webfont.eot differ diff --git a/src/jsdoc-template/static/fonts/OpenSans-SemiboldItalic-webfont.svg b/src/jsdoc-template/static/fonts/OpenSans-SemiboldItalic-webfont.svg new file mode 100644 index 0000000..7166ec1 --- /dev/null +++ b/src/jsdoc-template/static/fonts/OpenSans-SemiboldItalic-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/jsdoc-template/static/fonts/OpenSans-SemiboldItalic-webfont.ttf b/src/jsdoc-template/static/fonts/OpenSans-SemiboldItalic-webfont.ttf new file mode 100644 index 0000000..d2d6318 Binary files /dev/null and b/src/jsdoc-template/static/fonts/OpenSans-SemiboldItalic-webfont.ttf differ diff --git a/src/jsdoc-template/static/fonts/OpenSans-SemiboldItalic-webfont.woff b/src/jsdoc-template/static/fonts/OpenSans-SemiboldItalic-webfont.woff new file mode 100644 index 0000000..d4dfca4 Binary files /dev/null and b/src/jsdoc-template/static/fonts/OpenSans-SemiboldItalic-webfont.woff differ diff --git a/src/jsdoc-template/static/icons/home.svg b/src/jsdoc-template/static/icons/home.svg new file mode 100644 index 0000000..676d2d3 --- /dev/null +++ b/src/jsdoc-template/static/icons/home.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/jsdoc-template/static/icons/search.svg b/src/jsdoc-template/static/icons/search.svg new file mode 100644 index 0000000..ccc84b6 --- /dev/null +++ b/src/jsdoc-template/static/icons/search.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/jsdoc-template/static/scripts/linenumber.js b/src/jsdoc-template/static/scripts/linenumber.js new file mode 100644 index 0000000..ff6c069 --- /dev/null +++ b/src/jsdoc-template/static/scripts/linenumber.js @@ -0,0 +1,24 @@ +'use strict'; + +/* global document */ +(function () { + var lineId, lines, totalLines, anchorHash; + var source = document.getElementsByClassName('prettyprint source linenums'); + var i = 0; + var lineNumber = 0; + + if (source && source[0]) { + anchorHash = document.location.hash.substring(1); + lines = source[0].getElementsByTagName('li'); + totalLines = lines.length; + + for (; i < totalLines; i++) { + lineNumber++; + lineId = 'line' + lineNumber; + lines[i].id = lineId; + if (lineId === anchorHash) { + lines[i].className += ' selected'; + } + } + } +})(); diff --git a/src/jsdoc-template/static/scripts/pagelocation.js b/src/jsdoc-template/static/scripts/pagelocation.js new file mode 100644 index 0000000..e138368 --- /dev/null +++ b/src/jsdoc-template/static/scripts/pagelocation.js @@ -0,0 +1,89 @@ +'use strict'; + +$(document).ready(function () { + var currentSectionNav, target; + + // If an anchor hash is in the URL highlight the menu item + highlightActiveHash(); + // If a specific page section is in the URL highlight the menu item + highlightActiveSection(); + + // If a specific page section is in the URL scroll that section up to the top + currentSectionNav = $('#' + getCurrentSectionName() + '-nav'); + + if (currentSectionNav.position()) { + $('nav').scrollTop(currentSectionNav.position().top); + } + + // function to scroll to anchor when clicking an anchor linl + $('a[href*="#"]:not([href="#"])').click(function () { + /* eslint-disable no-invalid-this */ + if (location.pathname.replace(/^\//, '') === this.pathname.replace(/^\//, '') && location.hostname === this.hostname) { + target = $(this.hash); + target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); + if (target.length) { + $('html, body').animate({ + scrollTop: target.offset().top + }, 1000); + } + } + /* eslint-enable no-invalid-this */ + }); +}); + +// If a new anchor section is selected, change the hightlighted menu item +$(window).bind('hashchange', function (event) { + highlightActiveHash(event); +}); + +function highlightActiveHash(event) { + var oldUrl, oldSubSectionElement; + + // check for and remove old hash active state + if (event && event.originalEvent.oldURL) { + oldUrl = event.originalEvent.oldURL; + + if (oldUrl.indexOf('#') > -1) { + oldSubSectionElement = $('#' + getCurrentSectionName() + '-' + oldUrl.substring(oldUrl.indexOf('#') + 1) + '-nav'); + + if (oldSubSectionElement) { + oldSubSectionElement.removeClass('active'); + } + } + } + + if (getCurrentHashName()) { + $('#' + getCurrentSectionName() + '-' + getCurrentHashName() + '-nav').addClass('active'); + } +} + +function highlightActiveSection() { + var pageId = getCurrentSectionName(); + + $('#' + pageId + '-nav').addClass('active'); +} + +function getCurrentSectionName() { + var path = window.location.pathname; + var pageUrl = path.split('/').pop(); + + var sectionName = pageUrl.substring(0, pageUrl.indexOf('.')); + + // remove the wodr module- if its in the url + sectionName = sectionName.replace('module-', ''); + + return sectionName; +} + +function getCurrentHashName() { + var pageSubSectionId; + var pageSubSectionHash = window.location.hash; + + if (pageSubSectionHash) { + pageSubSectionId = pageSubSectionHash.substring(1).replace('.', ''); + + return pageSubSectionId; + } + + return false; +} diff --git a/src/jsdoc-template/static/styles/collapse.css b/src/jsdoc-template/static/styles/collapse.css new file mode 100644 index 0000000..4dc4121 --- /dev/null +++ b/src/jsdoc-template/static/styles/collapse.css @@ -0,0 +1,27 @@ +@media only screen and (min-width: 681px) { + nav > ul > li:hover .methods, + .active .methods { + display: block; + } + + .methods { + display: none; + } + + nav > ul > li { + padding: 20px 0; + } + + nav > ul > li > a { + padding: 0; + } + + nav > ul > li.active a { + margin-bottom: 10px; + } + + nav > ul > li:hover > a, + nav > ul > li.active > a { + margin-bottom: 15px; + } +} diff --git a/src/jsdoc-template/static/styles/jsdoc-default.css b/src/jsdoc-template/static/styles/jsdoc-default.css new file mode 100644 index 0000000..7b74143 --- /dev/null +++ b/src/jsdoc-template/static/styles/jsdoc-default.css @@ -0,0 +1,977 @@ +@font-face { + font-family: "Avenir Next W01"; + font-style: normal; + font-weight: 600; + src: url("https://fast.fonts.net/dv2/14/14c73713-e4df-4dba-933b-057feeac8dd1.woff2?d44f19a684109620e484167ba790e8180fd9e29df91d80ce3d096f014db863074e1ea706cf5ed4e1c042492e76df291ce1d24ec684d3d9da9684f55406b9f22bce02f0f30f556681593dafea074d7bd44e28a680d083ccfd44ed4f8a3087a20c56147c11f917ed1dbd85c4a18cf38da25e6ac78f008f472262304d50e7e0cb7541ef1642c676db6e4bde4924846f5daf486fbde9335e98f6a20f6664bc4525253d1d4fca42cf1c490483c8daf0237f6a0fd292563417ad80ca3e69321417747bdc6f0969f34b2a0401b5e2b9a4dfd5b06d9710850900c66b34870aef&projectId=f750d5c7-baa2-4767-afd7-45484f47fe17") format('woff2'); +} + +@font-face { + font-family: "Avenir Next W01"; + font-style: normal; + font-weight: 500; + src: url("https://fast.fonts.net/dv2/14/627fbb5a-3bae-4cd9-b617-2f923e29d55e.woff2?d44f19a684109620e484167ba790e8180fd9e29df91d80ce3d096f014db863074e1ea706cf5ed4e1c042492e76df291ce1d24ec684d3d9da9684f55406b9f22bce02f0f30f556681593dafea074d7bd44e28a680d083ccfd44ed4f8a3087a20c56147c11f917ed1dbd85c4a18cf38da25e6ac78f008f472262304d50e7e0cb7541ef1642c676db6e4bde4924846f5daf486fbde9335e98f6a20f6664bc4525253d1d4fca42cf1c490483c8daf0237f6a0fd292563417ad80ca3e69321417747bdc6f0969f34b2a0401b5e2b9a4dfd5b06d9710850900c66b34870aef&projectId=f750d5c7-baa2-4767-afd7-45484f47fe17") format('woff2'); +} + +@font-face { + font-family: "Avenir Next W01"; + font-style: normal; + font-weight: 400; + src: url("https://fast.fonts.net/dv2/14/2cd55546-ec00-4af9-aeca-4a3cd186da53.woff2?d44f19a684109620e484167ba790e8180fd9e29df91d80ce3d096f014db863074e1ea706cf5ed4e1c042492e76df291ce1d24ec684d3d9da9684f55406b9f22bce02f0f30f556681593dafea074d7bd44e28a680d083ccfd44ed4f8a3087a20c56147c11f917ed1dbd85c4a18cf38da25e6ac78f008f472262304d50e7e0cb7541ef1642c676db6e4bde4924846f5daf486fbde9335e98f6a20f6664bc4525253d1d4fca42cf1c490483c8daf0237f6a0fd292563417ad80ca3e69321417747bdc6f0969f34b2a0401b5e2b9a4dfd5b06d9710850900c66b34870aef&projectId=f750d5c7-baa2-4767-afd7-45484f47fe17") format('woff2'); +} + +@font-face { + font-family: 'bt_mono'; + font-style: normal; + font-weight: 400; + src: url('https://assets.braintreegateway.com/fonts/bt_mono_regular-webfont.eot'); + src: url('https://assets.braintreegateway.com/fonts/bt_mono_regular-webfont.woff2') format('woff2'), url('https://assets.braintreegateway.com/fonts/bt_mono_regular-webfont.woff') format('woff'), url('https://assets.braintreegateway.com/fonts/bt_mono_regular-webfont.ttf') format('truetype'), url('https://assets.braintreegateway.com/fonts/bt_mono_regular-webfont.svg#bt_mono_reqular-webfont') format('svg'); +} + +@font-face { + font-family: 'bt_mono'; + font-style: normal; + font-weight: 500; + src: url('https://assets.braintreegateway.com/fonts/bt_mono_medium-webfont.eot'); + src: url('https://assets.braintreegateway.com/fonts/bt_mono_medium-webfont.woff2') format('woff2'), url('https://assets.braintreegateway.com/fonts/bt_mono_medium-webfont.woff') format('woff'), url('https://assets.braintreegateway.com/fonts/bt_mono_medium-webfont.ttf') format('truetype'), url('https://assets.braintreegateway.com/fonts/bt_mono_medium-webfont.svg#bt_mono_medium-webfont') format('svg'); +} + +@font-face { + font-family: 'bt_mono'; + font-style: normal; + font-weight: 600; + src: url('https://assets.braintreegateway.com/fonts/bt_mono_bold-webfont.eot'); + src: url('https://assets.braintreegateway.com/fonts/bt_mono_bold-webfont.woff2') format('woff2'), url('https://assets.braintreegateway.com/fonts/bt_mono_bold-webfont.woff') format('woff'), url('https://assets.braintreegateway.com/fonts/bt_mono_bold-webfont.ttf') format('truetype'), url('https://assets.braintreegateway.com/fonts/bt_mono_bold-webfont.svg#bt_mono_bold-webfont') format('svg'); +} + +@font-face { + font-family: 'bt_mono'; + font-style: normal; + font-weight: 900; + src: url('https://assets.braintreegateway.com/fonts/bt_mono_heavy-webfont.eot'); + src: url('https://assets.braintreegateway.com/fonts/bt_mono_heavy-webfont.woff2') format('woff2'), url('https://assets.braintreegateway.com/fonts/bt_mono_heavy-webfont.woff') format('woff'), url('https://assets.braintreegateway.com/fonts/bt_mono_heavy-webfont.ttf') format('truetype'), url('https://assets.braintreegateway.com/fonts/bt_mono_heavy-webfont.svg#bt_mono_heavy-webfont') format('svg'); +} + +* { + box-sizing: border-box +} + +html, body { + height: 100%; + width: 100%; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + color: #3e3c42; + text-rendering: optimizeLegibility; + margin: 0; +} + +body { + color: #3e3c42; + background-color: #f3f3f3; + width: 100%; + font: 16px/1.875 "Avenir Next W01", "Avenir Next", "Helvetica Neue", Helvetica, sans-serif; + font-size: 16px; + line-height: 160%; +} + +a, a:active { + color: #0095dd; + text-decoration: none; +} + +a:hover { + text-decoration: underline +} + +p, ul, ol, blockquote { + margin-bottom: 1em; +} + +p { + max-width: 800px; +} + +h1, h2, h3, h4, h5, h6 { + color: #706d77; + font-weight: 500; + margin: 0; + line-height: 1; +} + +h1 { + color: #4b484f; + font-weight: 500; + font-size: 40px; + display: block; +} + +h1 span { + color: #999; + font-size: 32px; + display: block; + line-height: 1.5; +} + +h1.page-title { + border-bottom: 1px dashed #ccc; + margin-bottom: 20px; + padding-bottom: 30px; +} + +h2 { + font-size: 30px; + margin: 1.5em 0 0; +} + +h3 { + font-size: 20px; + margin: 1.5em 0 0; + text-transform: uppercase; +} + +h3.reference-title { + display: block; + font-weight: 400; + margin-top: 2em; + max-width: 200px; +} + +h3.reference-title small { + display: inline-block; + color: #0095dd; + margin-left: 5px; + font-weight: 500; +} + +h3.subsection-title { + border-bottom: 1px solid #ececec; + padding-bottom: 20px; + margin-top: 3em; + margin-bottom: 1em; +} + +h4 { + font-size: 16px; + margin: 1em 0 0; + font-weight: bold; +} + +h4.name { + font-size: 20px; + margin-top: 0; + font-weight: 500; +} + +h5 { + margin: 2em 0 0.5em 0; + font-size: 14px; + font-weight: 500; + text-transform: uppercase; +} + +.container-overview .subsection-title { + font-size: 14px; + text-transform: uppercase; + margin: 8px 0 15px 0; + font-weight: bold; + color: #4D4E53; + padding-top: 10px; +} + +h6 { + font-size: 100%; + letter-spacing: -0.01em; + margin: 6px 0 3px 0; + font-style: italic; + text-transform: uppercase; + font-weight: 500; +} + +tt, code, kbd, samp { + font-family: "Source Code Pro", monospace; + background: #f4f4f4; + padding: 1px 5px; + border-radius: 5px; +} + +.class-description { + margin-bottom: 1em; + margin-top: 1em; + padding: 10px 20px; + background-color: rgba(26, 159, 224, 0.1); +} + +.class-description:empty { + margin: 0 +} + +#main { + background-color: white; + float: right; + min-width: 360px; + width: calc(100% - 300px); + padding: 30px; + z-index: 100; +} + +header { + display: block; + max-width: 1400px; +} + +section { + display: block; + max-width: 1400px; + background-color: #fff; +} + +.variation { + display: none +} + +.signature-attributes { + font-size: 60%; + color: #aaa; + font-style: italic; + font-weight: lighter; +} + +.rule { + width: 100%; + margin-top: 20px; + display: block; + border-top: 1px solid #ccc; +} + +ul { + list-style-type: none; + padding-left: 0; +} + +ul li a { + font-weight: 500; +} + +ul ul { + padding-top: 5px; +} + +ul li ul { + padding-left: 20px; +} + +ul li ul li a { + font-weight: normal; +} + +nav { + float: left; + display: block; + width: 300px; + background: #f7f7f7; + overflow-x: visible; + overflow-y: auto; + height: 100%; + padding: 0px 30px 100px 30px; + height: 100%; + position: fixed; + transition: left 0.2s; + z-index: 998; + margin-top: 0px; + top: 43px; +} + +.navicon-button { + display: inline-block; + position: fixed; + bottom: 1.5em; + right: 1.5em; + z-index: 2; +} + +nav h3 { + font-size: 13px; + text-transform: uppercase; + letter-spacing: 1px; + font-weight: bold; + line-height: 24px; + margin: 40px 0 10px 0; + padding: 0; +} + +nav ul { + font-size: 100%; + line-height: 17px; + padding: 0; + margin: 0; + list-style-type: none; + border: none; + padding-left: 0; +} + +nav ul a { + font-size: 16px; +} + +nav ul a, nav ul a:active { + display: block; +} + +nav ul a:hover, nav ul a:active { + color: hsl(200, 100%, 43%); + text-decoration: none; +} + +nav > ul { + padding: 0 10px; +} + +nav > ul li:first-child { + padding-top: 0; +} + +nav ul li ul { + padding-left: 0; +} + +nav > ul > li { + border-bottom: 1px solid #e2e2e2; + padding: 10px 0 20px 0; +} + +nav > ul > li.active ul { + border-left: 3px solid #0095dd; + padding-left: 15px; +} + +nav > ul > li.active ul li.active a { + font-weight: bold; +} + +nav > ul > li.active a { + color: #0095dd; +} + +nav > ul > li > a { + color: #706d77; + padding: 20px 0; + font-size: 18px; +} + +nav ul ul { + margin-bottom: 10px; + padding-left: 0; +} + +nav ul ul a { + color: #5f5c63; +} + +nav ul ul a, nav ul ul a:active { + font-family: 'bt_mono', monospace; + font-size: 14px; + padding-left: 20px; + padding-top: 3px; + padding-bottom: 9px; +} + +nav h2 { + font-size: 12px; + margin: 0; + padding: 0; +} + +nav > h2 > a { + color: hsl(202, 71%, 50%); + border-bottom: 1px solid hsl(202, 71%, 50%); + padding-bottom: 5px; +} + +nav > h2 > a:hover { + font-weight: 500; + text-decoration: none; +} + +footer { + background-color: #fff; + color: hsl(0, 0%, 28%); + margin-left: 300px; + display: block; + font-style: italic; + font-size: 12px; + padding: 30px; + text-align: center; +} + +.ancestors { + color: #999; +} + +.ancestors a { + color: #999 !important; + text-decoration: none; +} + +.clear { + clear: both; +} + +.important { + font-weight: bold; + color: #950B02; +} + +.yes-def { + text-indent: -1000px; +} + +.type-signature { + color: #aaa; +} + +.name, .signature { + font-family: 'bt_mono', monospace; + word-wrap: break-word; +} + +.details { + margin-top: 14px; + font-size: 13px; + text-align: right; + background: #ffffff; + /* Old browsers */ + background: -moz-linear-gradient(left, #ffffff 0%, #fafafa 100%); + /* FF3.6-15 */ + background: -webkit-linear-gradient(left, #ffffff 0%, #fafafa 100%); + /* Chrome10-25,Safari5.1-6 */ + background: linear-gradient(to right, #ffffff 0%, #fafafa 100%); + /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */ + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#fafafa', GradientType=1); + padding-right: 5px; +} + +.details dt { + display: inline-block; +} + +.details dd { + display: inline-block; + margin: 0; +} + +.details dd a { + font-style: italic; + font-weight: normal; + line-height: 1; +} + +.details ul { + list-style-type: none; + margin: 0; +} + +.details pre.prettyprint { + margin: 0 +} + +.details .object-value { + padding-top: 0 +} + +.description { + margin-bottom: 1em; + margin-top: 1em; +} + +.code-caption { + font-style: italic; + margin: 0; + font-size: 16px; + color: #545454; +} + +.prettyprint { + font-size: 13px; + border: 1px solid #ddd; + border-radius: 3px; + overflow: auto; + background-color: #fbfbfb; +} + +.prettyprint.source { + width: inherit; +} + +.prettyprint code { + font-size: 100%; + line-height: 18px; + display: block; + margin: 0 30px; + background-color: #fbfbfb; + color: #4D4E53; +} + +.prettyprint > code { + padding: 30px 15px; +} + +.prettyprint .linenums code { + padding: 0 15px; +} + +.prettyprint .linenums li:first-of-type code { + padding-top: 15px; +} + +.prettyprint code span.line { + display: inline-block; +} + +.prettyprint.linenums { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.prettyprint.linenums ol { + padding-left: 0 +} + +.prettyprint.linenums li { + border-left: 3px #ddd solid +} + +.prettyprint.linenums li.selected, .prettyprint.linenums li.selected * { + background-color: lightyellow +} + +.prettyprint.linenums li * { + -webkit-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + user-select: text; +} + +.readme .prettyprint { + max-width: 800px; +} + +.params, .props { + border-spacing: 0; + border: 1px solid #ddd; + border-radius: 3px; + width: 100%; + font-size: 14px; +} + +.params .name, .props .name, .name code { + color: #4D4E53; + font-family: 'bt_mono', monospace; + font-size: 100%; +} + +.params td, .params th, .props td, .props th { + margin: 0px; + text-align: left; + vertical-align: top; + padding: 10px; + display: table-cell; +} + +.params td { + border-top: 1px solid #eee; +} + +.params thead tr, .props thead tr { + background-color: #fff; + font-weight: bold; +} + +.params .params thead tr, .props .props thead tr { + background-color: #fff; + font-weight: bold; +} + +.params td.description > p:first-child, .props td.description > p:first-child { + margin-top: 0; + padding-top: 0; +} + +.params td.description > p:last-child, .props td.description > p:last-child { + margin-bottom: 0; + padding-bottom: 0; +} + +dl.param-type { + margin-top: 5px; +} + +.param-type dt, .param-type dd { + display: inline-block +} + +.param-type dd { + font-family: Consolas, Monaco, 'Andale Mono', monospace +} + +.disabled { + color: #454545 +} + + +/* tag source style */ + +.tag-deprecated { + padding-right: 5px; +} + +.tag-source { + border-bottom: 1px solid rgba(28, 160, 224, 0.35); +} + +.tag-source:first-child { + border-bottom: 1px solid rgba(28, 160, 224, 1); +} + + +/* navicon button */ + +.navicon-button { + position: relative; + transition: 0.25s; + cursor: pointer; + user-select: none; + opacity: .8; + background-color: white; + border-radius: 100%; + width: 50px; + height: 50px; + -webkit-box-shadow: 0px 2px 9px 0px rgba(0, 0, 0, 0.31); + -moz-box-shadow: 0px 2px 9px 0px rgba(0, 0, 0, 0.31); + box-shadow: 0px 2px 9px 0px rgba(0, 0, 0, 0.31); +} + +.navicon-button .navicon:before, .navicon-button .navicon:after { + transition: 0.25s; +} + +.navicon-button:hover { + transition: 0.5s; + opacity: 1; +} + +.navicon-button:hover .navicon:before, .navicon-button:hover .navicon:after { + transition: 0.25s; +} + +.navicon-button:hover .navicon:before { + top: .425rem; +} + +.navicon-button:hover .navicon:after { + top: -.425rem; +} + + +/* navicon */ + +.navicon { + position: relative; + width: 1.5em; + height: .195rem; + background: #000; + top: calc(50% - .09rem); + left: calc(50% - .75rem); + transition: 0.3s; + border-radius: 5px; +} + +.navicon:before, .navicon:after { + display: block; + content: ""; + height: .195rem; + width: 1.5rem; + background: #000; + position: absolute; + z-index: -1; + transition: 0.3s 0.25s; +} + +.navicon:before { + top: 0.425rem; + height: .195rem; + border-radius: 5px; +} + +.navicon:after { + top: -0.425rem; + border-radius: 5px; +} + + +/* open */ + +.nav-trigger:checked + label:not(.steps) .navicon:before, .nav-trigger:checked + label:not(.steps) .navicon:after { + top: 0 !important; +} + +.nav-trigger:checked + label .navicon:before, .nav-trigger:checked + label .navicon:after { + transition: 0.5s; +} + + +/* Minus */ + +.nav-trigger:checked + label { + transform: scale(0.75); +} + + +/* × and + */ + +.nav-trigger:checked + label.plus .navicon, .nav-trigger:checked + label.x .navicon { + background: transparent; +} + +.nav-trigger:checked + label.plus .navicon:before, .nav-trigger:checked + label.x .navicon:before { + transform: rotate(-45deg); + background: #000; +} + +.nav-trigger:checked + label.plus .navicon:after, .nav-trigger:checked + label.x .navicon:after { + transform: rotate(45deg); + background: #000; +} + +.nav-trigger:checked + label.plus { + transform: scale(0.75) rotate(45deg); +} + +.nav-trigger:checked ~ nav { + left: 0 !important; +} + +.nav-trigger:checked ~ .overlay { + display: block; +} + +.nav-trigger { + position: fixed; + top: 0; + clip: rect(0, 0, 0, 0); +} + +.overlay { + display: none; + position: fixed; + top: 0; + bottom: 0; + left: 0; + right: 0; + width: 100%; + height: 100%; + background: hsla(0, 0%, 0%, 0.5); + z-index: 1; +} + +table { + border-collapse: separate;; + display: block; + overflow-x: auto; + /*table-layout:fixed;*/ +} + +table tbody td { + border-top: 1px solid hsl(207, 10%, 86%); + border-right: 1px solid #eee; + padding: 5px; + /*word-wrap: break-word;*/ +} + +td table.params, td table.props { + border: 0; +} + +@media only screen and (min-width: 320px) and (max-width: 680px) { + body { + overflow-x: hidden; + } + + #main { + padding: 30px 30px; + width: 100%; + min-width: 360px; + } + + nav { + background: #FFF; + width: 300px; + height: 100%; + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: -300px; + z-index: 3; + padding: 0 10px; + transition: left 0.2s; + margin-top: 0; + } + + .navicon-button { + display: inline-block; + position: fixed; + bottom: 1.5em; + right: 20px; + z-index: 1000; + } + + .top-nav-wrapper { + display: none; + } + + #main h1.page-title { + margin: 0.5em 0; + } + + footer { + margin-left: 0; + margin-bottom: 30px; + } +} + +.top-nav-wrapper { + background-color: #ececec; + position: fixed; + top: 0px; + left: 0px; + padding: 10px 10px 0 10px; + z-index: 999; + width: 300px; +} + +.top-nav-wrapper ul { + margin: 0; +} + +.top-nav-wrapper ul li { + display: inline-block; + padding: 0 10px; + vertical-align: top; +} + +.top-nav-wrapper ul li.active { + border-bottom: 2px solid rgba(28, 160, 224, 1); +} + +.search-wrapper { + display: inline-block; + position: relative; +} + +.search-wrapper svg { + position: absolute; + left: 0px; +} + +input.search-input { + background: transparent; + box-shadow: 0; + border: 0; + border-bottom: 1px solid #c7c7c7; + padding: 7px 15px 12px 35px; + margin: 0 auto; +} + + +/* Smooth outline with box-shadow: */ + +input.search-input:focus { + border-bottom: 2px solid rgba(28, 160, 224, 1); + outline: none; +} + + +/* Hightlight JS Paradiso Light Theme */ + +.hljs-comment, .hljs-quote { + color: #776e71 +} + +.hljs-variable, .hljs-template-variable, .hljs-tag, .hljs-name, .hljs-selector-id, .hljs-selector-class, .hljs-regexp, .hljs-link, .hljs-meta { + color: #ef6155 +} + +.hljs-number, .hljs-built_in, .hljs-builtin-name, .hljs-literal, .hljs-type, .hljs-params, .hljs-deletion { + color: #f99b15 +} + +.hljs-title, .hljs-section, .hljs-attribute { + color: #fec418 +} + +.hljs-string, .hljs-symbol, .hljs-bullet, .hljs-addition { + color: #48b685 +} + +.hljs-keyword, .hljs-selector-tag { + color: #815ba4 +} + +.hljs { + display: block; + overflow-x: auto; + background: #e7e9db; + color: #4f424c; + padding: 0.5em +} + +.hljs-emphasis { + font-style: italic +} + +.hljs-strong { + font-weight: bold +} + +.link-icon { + opacity: 0; + position: absolute; + margin-left: -25px; + padding-right: 5px; + padding-top: 2px; +} + +.example-container .link-icon { + margin-top: -6px; +} + +.example-container:hover .link-icon, +.name-container:hover .link-icon { + opacity: .5; +} + +.name-container { + display: flex; + padding-top: 1em; +} + +/** Additions for TAG **/ +table { + border-collapse: collapse; + display: table; +} + +table thead th { + border-top: 1px solid hsl(207, 10%, 86%); + border-right: 1px solid #eee; +} + +img { + max-width: 800px; +} + +h3 { + text-transform: none !important; +} \ No newline at end of file diff --git a/src/jsdoc-template/static/styles/prettify-jsdoc.css b/src/jsdoc-template/static/styles/prettify-jsdoc.css new file mode 100644 index 0000000..834a866 --- /dev/null +++ b/src/jsdoc-template/static/styles/prettify-jsdoc.css @@ -0,0 +1,111 @@ +/* JSDoc prettify.js theme */ + +/* plain text */ +.pln { + color: #000000; + font-weight: normal; + font-style: normal; +} + +/* string content */ +.str { + color: hsl(104, 100%, 24%); + font-weight: normal; + font-style: normal; +} + +/* a keyword */ +.kwd { + color: #000000; + font-weight: bold; + font-style: normal; +} + +/* a comment */ +.com { + font-weight: normal; + font-style: italic; +} + +/* a type name */ +.typ { + color: #000000; + font-weight: normal; + font-style: normal; +} + +/* a literal value */ +.lit { + color: #006400; + font-weight: normal; + font-style: normal; +} + +/* punctuation */ +.pun { + color: #000000; + font-weight: bold; + font-style: normal; +} + +/* lisp open bracket */ +.opn { + color: #000000; + font-weight: bold; + font-style: normal; +} + +/* lisp close bracket */ +.clo { + color: #000000; + font-weight: bold; + font-style: normal; +} + +/* a markup tag name */ +.tag { + color: #006400; + font-weight: normal; + font-style: normal; +} + +/* a markup attribute name */ +.atn { + color: #006400; + font-weight: normal; + font-style: normal; +} + +/* a markup attribute value */ +.atv { + color: #006400; + font-weight: normal; + font-style: normal; +} + +/* a declaration */ +.dec { + color: #000000; + font-weight: bold; + font-style: normal; +} + +/* a variable name */ +.var { + color: #000000; + font-weight: normal; + font-style: normal; +} + +/* a function name */ +.fun { + color: #000000; + font-weight: bold; + font-style: normal; +} + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; +} diff --git a/src/jsdoc-template/static/styles/prettify-tomorrow.css b/src/jsdoc-template/static/styles/prettify-tomorrow.css new file mode 100644 index 0000000..eaf1251 --- /dev/null +++ b/src/jsdoc-template/static/styles/prettify-tomorrow.css @@ -0,0 +1,138 @@ +/* Tomorrow Theme */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #4d4d4c; } + +@media screen { + /* string content */ + .str { + color: hsl(104, 100%, 24%); } + + /* a keyword */ + .kwd { + color: hsl(240, 100%, 50%); } + + /* a comment */ + .com { + color: hsl(0, 0%, 60%); } + + /* a type name */ + .typ { + color: hsl(240, 100%, 32%); } + + /* a literal value */ + .lit { + color: hsl(240, 100%, 40%); } + + /* punctuation */ + .pun { + color: #000000; } + + /* lisp open bracket */ + .opn { + color: #000000; } + + /* lisp close bracket */ + .clo { + color: #000000; } + + /* a markup tag name */ + .tag { + color: #c82829; } + + /* a markup attribute name */ + .atn { + color: #f5871f; } + + /* a markup attribute value */ + .atv { + color: #3e999f; } + + /* a declaration */ + .dec { + color: #f5871f; } + + /* a variable name */ + .var { + color: #c82829; } + + /* a function name */ + .fun { + color: #4271ae; } } +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #060; } + + .kwd { + color: #006; + font-weight: bold; } + + .com { + color: #600; + font-style: italic; } + + .typ { + color: #404; + font-weight: bold; } + + .lit { + color: #044; } + + .pun, .opn, .clo { + color: #440; } + + .tag { + color: #006; + font-weight: bold; } + + .atn { + color: #404; } + + .atv { + color: #060; } } +/* Style */ +/* +pre.prettyprint { + background: white; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 12px; + line-height: 1.5; + border: 1px solid #ccc; + padding: 10px; } +*/ + +/* Get LI elements to show when they are in the main article */ +article ul li { + list-style-type: circle; + margin-left: 25px; +} + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; } + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ } + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ } diff --git a/src/jsdoc-template/tmpl/augments.tmpl b/src/jsdoc-template/tmpl/augments.tmpl new file mode 100644 index 0000000..908bb75 --- /dev/null +++ b/src/jsdoc-template/tmpl/augments.tmpl @@ -0,0 +1,10 @@ + + + +
      +
    • +
    + diff --git a/src/jsdoc-template/tmpl/container.tmpl b/src/jsdoc-template/tmpl/container.tmpl new file mode 100644 index 0000000..cb94ea6 --- /dev/null +++ b/src/jsdoc-template/tmpl/container.tmpl @@ -0,0 +1,213 @@ + + + + + + +
    +
    + +

    + + + + + + + +

    + + +
    + +
    + + + + +
    + +
    + +
    + +
    +
    + + +
    + +
    + + + + + + + + + +
    + +
    + + + + + +

    Example 1? 's':'' ?>

    + + + +
    + + +

    Extends

    + + + + + +

    Requires

    + +
      + +
    • + +
    • + +
    + + + +

    Classes

    + +
    + +
    + +
    +
    + + + +
    + +
    + + + +

    Mixins

    + +
    + +
    + +
    +
    + +
    + +
    + + + +

    Namespaces

    + +
    + +
    + +
    +
    + +
    + +
    + + + +

    Members

    + + + + + + + + +

    Methods

    + + + + + + + +

    Type Definitions

    + + + + + + + + +

    Events

    + + + + + +
    +
    + + + diff --git a/src/jsdoc-template/tmpl/details.tmpl b/src/jsdoc-template/tmpl/details.tmpl new file mode 100644 index 0000000..95eafe6 --- /dev/null +++ b/src/jsdoc-template/tmpl/details.tmpl @@ -0,0 +1,212 @@ +" + data.defaultvalue + ""; + defaultObjectClass = ' class="object-value"'; + } + + var properties = data.properties; + + if (properties && properties.length && properties.forEach) { +?> + +
    Properties:
    + + + + + +
    + + +
    Version:
    +
    +
      +
    • + +
    • +
    +
    + + + +
    Since:
    +
    +
      +
    • + +
    • +
    +
    + + + +
    Inherited From:
    +
    +
      +
    • + +
    • +
    +
    + + + +
    Overrides:
    +
    +
      +
    • + +
    • +
    +
    + + + +
    Implementations:
    +
    +
      + +
    • + +
    • + +
    +
    + + + +
    Implements:
    +
    +
      + +
    • + +
    +
    + + + +
    Mixes In:
    + +
    +
      + +
    • + +
    • + +
    +
    + + + +
    Deprecated:
    + +
    +
      +
    • Yes
    • +
    +
    + +
    +
      +
    • + +
    • +
    +
    + +
    + + + +
    Author:
    +
    +
      + +
    • + +
    • + +
    +
    + + + + + + + + +
    License:
    +
    +
      +
    • + +
    • +
    +
    + + + +
    Source:
    +
    +
      +
    • + , +
    • +
    +
    + + + +
    Tutorials:
    +
    +
      + +
    • + +
    • + +
    +
    + + + +
    See:
    +
    +
      + +
    • + +
    • + +
    +
    + + + +
    To Do:
    +
    +
      + +
    • + +
    • + +
    +
    + +
    diff --git a/src/jsdoc-template/tmpl/example.tmpl b/src/jsdoc-template/tmpl/example.tmpl new file mode 100644 index 0000000..e87caa5 --- /dev/null +++ b/src/jsdoc-template/tmpl/example.tmpl @@ -0,0 +1,2 @@ + +
    diff --git a/src/jsdoc-template/tmpl/examples.tmpl b/src/jsdoc-template/tmpl/examples.tmpl new file mode 100644 index 0000000..2c24a71 --- /dev/null +++ b/src/jsdoc-template/tmpl/examples.tmpl @@ -0,0 +1,14 @@ + +

    + +

    + + +
    + diff --git a/src/jsdoc-template/tmpl/exceptions.tmpl b/src/jsdoc-template/tmpl/exceptions.tmpl new file mode 100644 index 0000000..fe34e87 --- /dev/null +++ b/src/jsdoc-template/tmpl/exceptions.tmpl @@ -0,0 +1,28 @@ + + +
    +
    +
    + +
    +
    +
    +
    +
    +
    Type
    +
    + +
    +
    +
    +
    +
    + +
    + + + + + +
    + diff --git a/src/jsdoc-template/tmpl/layout.tmpl b/src/jsdoc-template/tmpl/layout.tmpl new file mode 100644 index 0000000..c6f0796 --- /dev/null +++ b/src/jsdoc-template/tmpl/layout.tmpl @@ -0,0 +1,150 @@ + + + + + + + + + + + <?js= title ?> - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +

    + + + +
    + +
    + +
    + Documentation generated by JSDoc +
    + + + + + + + + + + diff --git a/src/jsdoc-template/tmpl/mainpage.tmpl b/src/jsdoc-template/tmpl/mainpage.tmpl new file mode 100644 index 0000000..1a8e6b9 --- /dev/null +++ b/src/jsdoc-template/tmpl/mainpage.tmpl @@ -0,0 +1,9 @@ + + + +
    +
    + +
    +
    + diff --git a/src/jsdoc-template/tmpl/members.tmpl b/src/jsdoc-template/tmpl/members.tmpl new file mode 100644 index 0000000..ea9a975 --- /dev/null +++ b/src/jsdoc-template/tmpl/members.tmpl @@ -0,0 +1,44 @@ + + +

    + +

    + + +

    + +

    + + + +
    + +
    + + + +
    + Default value: +
    + + + + + +
    Fires:
    +
      + +
    • + +
    • + +
    + + + +
    Example 1? 's':'' ?>
    + + diff --git a/src/jsdoc-template/tmpl/method.tmpl b/src/jsdoc-template/tmpl/method.tmpl new file mode 100644 index 0000000..d2d14b0 --- /dev/null +++ b/src/jsdoc-template/tmpl/method.tmpl @@ -0,0 +1,128 @@ + + + + +

    Constructor

    + + + + + + + + +

    + +

    +
    + + +

    + +

    + + + + +
    + +
    + + + +
    Extends:
    + + + + +
    This:
    +
      +
    • + +
    • +
    + + + +
    Parameters:
    + + + + + + +
    Requires:
    +
      + +
    • + +
    • + +
    + + + +
    Fires:
    +
      + +
    • + +
    • + +
    + + + +
    Listens to Events:
    +
      + +
    • + +
    • + +
    + + + +
    Listeners of This Event:
    +
      + +
    • + +
    • + +
    + + + +
    Throws:
    + 1) { ?> +
      + +
    • + +
    • + +
    + + + + + +
    + + + + + +
    Example 1? 's':'' ?>
    + +
    + diff --git a/src/jsdoc-template/tmpl/params.tmpl b/src/jsdoc-template/tmpl/params.tmpl new file mode 100644 index 0000000..72c1b61 --- /dev/null +++ b/src/jsdoc-template/tmpl/params.tmpl @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributesDefaultDescription
    + + + + + + <optional>
    + + + + <nullable>
    + + + + <repeatable>
    + +
    + + + + + + +
    Properties
    + + +
    diff --git a/src/jsdoc-template/tmpl/properties.tmpl b/src/jsdoc-template/tmpl/properties.tmpl new file mode 100644 index 0000000..0e3c2be --- /dev/null +++ b/src/jsdoc-template/tmpl/properties.tmpl @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributesDefaultDescription
    + + + + + + <optional>
    + + + + <nullable>
    + +
    + + + + + + +
    Properties
    + +
    diff --git a/src/jsdoc-template/tmpl/returns.tmpl b/src/jsdoc-template/tmpl/returns.tmpl new file mode 100644 index 0000000..bdac784 --- /dev/null +++ b/src/jsdoc-template/tmpl/returns.tmpl @@ -0,0 +1,17 @@ + +
    + +
    + + + +
    +
    Type
    +
    + +
    +
    + diff --git a/src/jsdoc-template/tmpl/source.tmpl b/src/jsdoc-template/tmpl/source.tmpl new file mode 100644 index 0000000..14fae8f --- /dev/null +++ b/src/jsdoc-template/tmpl/source.tmpl @@ -0,0 +1,9 @@ + + +
    +
    +
    +
    +
    diff --git a/src/jsdoc-template/tmpl/tutorial.tmpl b/src/jsdoc-template/tmpl/tutorial.tmpl new file mode 100644 index 0000000..ab31eed --- /dev/null +++ b/src/jsdoc-template/tmpl/tutorial.tmpl @@ -0,0 +1,23 @@ +
    +
    + 0) { ?> +
      + +
    • + +
    • + +
    + + +

    + +

    +
    + +
    + +
    +
    diff --git a/src/jsdoc-template/tmpl/type.tmpl b/src/jsdoc-template/tmpl/type.tmpl new file mode 100644 index 0000000..59d7372 --- /dev/null +++ b/src/jsdoc-template/tmpl/type.tmpl @@ -0,0 +1,11 @@ + + + + + + | +