diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 00000000..bb731a6e --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,35 @@ +const errorInProduction = process.env.NODE_ENV === 'production' ? 'error' : 'off'; +const path = require('path'); + +module.exports = { + root: true, + env: { + node: true, + browser: true + }, + extends: [ + ], + rules: { + 'no-console': 0, // errorInProduction, + 'no-debugger': errorInProduction, + 'brace-style': 0, + // 'brace-style': [2, 'stroustrup'], + 'padded-blocks': 0, + // 'indent': [2, 2, { 'SwitchCase': 1 }], + 'indent': 0, + 'spaced-comment': 0, + 'quotes': 0, + // 'quotes': ['error', 'single', { 'allowTemplateLiterals': true }], + 'global-require': 0, + 'no-unused-vars': [0, { 'argsIgnorePattern': '^_' }], + 'quote-props': [0], + 'prefer-destructuring': 0, + 'prefer-arrow-callback': 0, + 'prefer-template': 0, + 'comma-dangle': 0, + 'max-len': 0, + 'no-param-reassign': 0, + 'no-underscore-dangle': 0, + }, +}; + diff --git a/.gitignore b/.gitignore index 5691bc09..697722ad 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,12 @@ ## Ignore npm libs. node_modules +dist ## Ignore python behave tests generated libs tests/behave/lib tests/behave/bin tests/behave/lib64 -tests/behave/include +tests/behave/include tests/behave/ghostdriver.log ## Others diff --git a/.jshintrc b/.jshintrc deleted file mode 100644 index fda19a6d..00000000 --- a/.jshintrc +++ /dev/null @@ -1,94 +0,0 @@ -{ - // JSHint Default Configuration File (as on JSHint website) - // See http://jshint.com/docs/ for more details - - "maxerr" : 150, // {int} Maximum error before stopping - - // Enforcing - "bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.) - "camelcase" : false, // true: Identifiers must be in camelCase - "curly" : true, // true: Require {} for every new block or scope - "eqeqeq" : true, // true: Require triple equals (===) for comparison - "forin" : false, // true: Require filtering for..in loops with obj.hasOwnProperty() - "freeze" : true, // true: prohibits overwriting prototypes of native objects such as Array, Date etc. - "immed" : false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());` - "indent" : 4, // {int} Number of spaces to use for indentation - "latedef" : false, // true: Require variables/functions to be defined before being used - "newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()` - "noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee` - "noempty" : true, // true: Prohibit use of empty blocks - "nonbsp" : true, // true: Prohibit "non-breaking whitespace" characters. - "nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment) - "plusplus" : false, // true: Prohibit use of `++` & `--` - "quotmark" : false, // Quotation mark consistency: - // false : do nothing (default) - // true : ensure whatever is used is consistent - // "single" : require single quotes - // "double" : require double quotes - "undef" : true, // true: Require all non-global variables to be declared (prevents global leaks) - "unused" : true, // Unused variables: - // true : all variables, last function parameter - // "vars" : all variables only - // "strict" : all variables, all function parameters - "strict" : true, // true: Requires all functions run in ES5 Strict Mode - "maxparams" : false, // {int} Max number of formal params allowed per function - "maxdepth" : false, // {int} Max depth of nested blocks (within functions) - "maxstatements" : false, // {int} Max number statements per function - "maxcomplexity" : false, // {int} Max cyclomatic complexity per function - "maxlen" : false, // {int} Max number of characters per line - "varstmt" : false, // true: Disallow any var statements. Only `let` and `const` are allowed. - - // Relaxing - "asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons) - "boss" : false, // true: Tolerate assignments where comparisons would be expected - "debug" : false, // true: Allow debugger statements e.g. browser breakpoints. - "eqnull" : false, // true: Tolerate use of `== null` - "es5" : false, // true: Allow ES5 syntax (ex: getters and setters) - "esnext" : false, // true: Allow ES.next (ES6) syntax (ex: `const`) - "moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features) - // (ex: `for each`, multiple try/catch, function expression…) - "evil" : false, // true: Tolerate use of `eval` and `new Function()` - "expr" : false, // true: Tolerate `ExpressionStatement` as Programs - "funcscope" : false, // true: Tolerate defining variables inside control statements - "globalstrict" : false, // true: Allow global "use strict" (also enables 'strict') - "iterator" : false, // true: Tolerate using the `__iterator__` property - "lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block - "laxbreak" : false, // true: Tolerate possibly unsafe line breakings - "laxcomma" : false, // true: Tolerate comma-first style coding - "loopfunc" : false, // true: Tolerate functions being defined in loops - "multistr" : false, // true: Tolerate multi-line strings - "noyield" : false, // true: Tolerate generator functions with no yield statement in them. - "notypeof" : false, // true: Tolerate invalid typeof operator values - "proto" : false, // true: Tolerate using the `__proto__` property - "scripturl" : false, // true: Tolerate script-targeted URLs - "shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;` - "sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation - "supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;` - "validthis" : false, // true: Tolerate using this in a non-constructor function - - // Environments - "browser" : true, // Web Browser (window, document, etc) - "browserify" : true, // Browserify (node.js code in the browser) - "couch" : false, // CouchDB - "devel" : true, // Development/debugging (alert, confirm, etc) - "dojo" : false, // Dojo Toolkit - "jasmine" : false, // Jasmine - "jquery" : false, // jQuery - "mocha" : true, // Mocha - "mootools" : false, // MooTools - "node" : false, // Node.js - "nonstandard" : false, // Widely adopted globals (escape, unescape, etc) - "phantom" : false, // PhantomJS - "prototypejs" : false, // Prototype and Scriptaculous - "qunit" : false, // QUnit - "rhino" : false, // Rhino - "shelljs" : false, // ShellJS - "typed" : false, // Globals for typed array constructions - "worker" : false, // Web Workers - "wsh" : false, // Windows Scripting Host - "yui" : false, // Yahoo User Interface - - // Custom Globals - "globals" : {} // additional predefined global variables -} - diff --git a/.npmignore b/.npmignore index fd97da54..7c3a6c5f 100644 --- a/.npmignore +++ b/.npmignore @@ -1,11 +1,12 @@ .travis.yml .jshintrc +.eslintrc.js .gitignore tests/behave/lib tests/behave/bin tests/behave/lib64 -tests/behave/include +tests/behave/include tests/behave/ghostdriver.log diff --git a/.travis.yml b/.travis.yml index 82661e94..561a663f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,23 +2,39 @@ sudo: required language: node_js +env: + - MOZ_HEADLESS=1 +addons: + firefox: latest + node_js: - - "0.12" + - "v8.12.0" before_install: - - "sudo pip install --upgrade pip" - - "sudo pip install selenium" - - "sudo pip install behave" - + - wget https://github.com/mozilla/geckodriver/releases/download/v0.23.0/geckodriver-v0.23.0-linux64.tar.gz + - mkdir geckodriver + - tar -xzf geckodriver-v0.23.0-linux64.tar.gz -C geckodriver + - export PATH=$PATH:$PWD/geckodriver + - "cd tests/behave" + - "virtualenv env" + - "source env/bin/activate" + - "pip install selenium" + - "pip install --ignore-installed behave" + - "cd ../.." + # - "sudo pip install --upgrade pip" + # - "sudo pip install selenium" + # - "sudo pip install --ignore-installed behave" + install: - "npm install" -script: - - "gulp bundle" - - "gulp test" +script: + - "npx gulp bundle" + - "npx gulp test" - "PGDIR=`pwd`" - "cd tests/behave" - - "TARGET=file://$PGDIR BROWSER=phantomjs behave" + - "source env/bin/activate" + - "TARGET=file://$PGDIR DRAFT=6 behave" # whitelist branches: diff --git a/README.md b/README.md index 967d8288..6c2f113a 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ## About Phenogrid -Phenogrid is a Javascript component that visualizes semantic similarity calculations provided by [OWLSim](https://github.com/owlcollab/owltools), as provided through APIs from the [Monarch Initiative](http://monarchinitiative.org/). +Phenogrid is a Javascript component that visualizes semantic similarity calculations provided by [OWLSim](https://github.com/owlcollab/owltools), as provided through APIs from the [Monarch Initiative](https://monarchinitiative.org/). Given an input list of phenotypes (you will see the sample input below) and parameters specified in config/phenogrid_config.js indicating desired source of matching models (humans, model organisms, etc.), the phenogrid will call the Monarch API to get OWLSim results and render them in your web browser in data visualization. And you may use the visualized data for your research. @@ -281,7 +281,7 @@ var data = { window.onload = function() { // There are three species that are loaded and each of them has simsearch matches. Phenogrid.createPhenogridForElement(document.getElementById('phenogrid_container'), { - serverURL : "http://monarchinitiative.org", + serverURL : "https://monarchinitiative.org", gridSkeletonData: data }); } @@ -303,7 +303,7 @@ window.onload = function() { This URL should be pointed to the OWLSim URL server associated with your installation containing the Monarch web services. You have three options: - Use http://beta.monarchinitiative.org to connect to the development/test web services. This server is less stable than the production server. -- Use http://monarchinitiative.org to connect to the stable, production version of the web services (better uptime) +- Use https://monarchinitiative.org to connect to the stable, production version of the web services (better uptime) - If you are running the complete monarch-app, you can point it to http://localhost:8080, or whichever server/port you are using in your local installation. diff --git a/config/phenogrid_config.js b/config/phenogrid_config.js index 82290417..a295e79d 100644 --- a/config/phenogrid_config.js +++ b/config/phenogrid_config.js @@ -1,6 +1,5 @@ var configoptions = { - serverURL: "https://beta.monarchinitiative.org", + serverURL: "https://monarchinitiative.org", selectedCalculation: 0, selectedSort: "Frequency" }; - \ No newline at end of file diff --git a/dist/fonts/FontAwesome.otf b/dist/fonts/FontAwesome.otf deleted file mode 100644 index 59853bcd..00000000 Binary files a/dist/fonts/FontAwesome.otf and /dev/null differ diff --git a/dist/fonts/fontawesome-webfont.eot b/dist/fonts/fontawesome-webfont.eot deleted file mode 100644 index 96f92f9b..00000000 Binary files a/dist/fonts/fontawesome-webfont.eot and /dev/null differ diff --git a/dist/fonts/fontawesome-webfont.svg b/dist/fonts/fontawesome-webfont.svg deleted file mode 100644 index 5a5f0ecd..00000000 --- a/dist/fonts/fontawesome-webfont.svg +++ /dev/null @@ -1,685 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/dist/fonts/fontawesome-webfont.ttf b/dist/fonts/fontawesome-webfont.ttf deleted file mode 100644 index 86784df9..00000000 Binary files a/dist/fonts/fontawesome-webfont.ttf and /dev/null differ diff --git a/dist/fonts/fontawesome-webfont.woff b/dist/fonts/fontawesome-webfont.woff deleted file mode 100644 index c7faa19c..00000000 Binary files a/dist/fonts/fontawesome-webfont.woff and /dev/null differ diff --git a/dist/fonts/fontawesome-webfont.woff2 b/dist/fonts/fontawesome-webfont.woff2 deleted file mode 100644 index cab8571d..00000000 Binary files a/dist/fonts/fontawesome-webfont.woff2 and /dev/null differ diff --git a/dist/images/animated-overlay.gif b/dist/images/animated-overlay.gif deleted file mode 100644 index d441f75e..00000000 Binary files a/dist/images/animated-overlay.gif and /dev/null differ diff --git a/dist/images/ui-bg_flat_0_aaaaaa_40x100.png b/dist/images/ui-bg_flat_0_aaaaaa_40x100.png deleted file mode 100644 index 5b5dab2a..00000000 Binary files a/dist/images/ui-bg_flat_0_aaaaaa_40x100.png and /dev/null differ diff --git a/dist/images/ui-bg_flat_75_ffffff_40x100.png b/dist/images/ui-bg_flat_75_ffffff_40x100.png deleted file mode 100644 index ac8b229a..00000000 Binary files a/dist/images/ui-bg_flat_75_ffffff_40x100.png and /dev/null differ diff --git a/dist/images/ui-bg_glass_55_fbf9ee_1x400.png b/dist/images/ui-bg_glass_55_fbf9ee_1x400.png deleted file mode 100644 index ad3d6346..00000000 Binary files a/dist/images/ui-bg_glass_55_fbf9ee_1x400.png and /dev/null differ diff --git a/dist/images/ui-bg_glass_65_ffffff_1x400.png b/dist/images/ui-bg_glass_65_ffffff_1x400.png deleted file mode 100644 index 42ccba26..00000000 Binary files a/dist/images/ui-bg_glass_65_ffffff_1x400.png and /dev/null differ diff --git a/dist/images/ui-bg_glass_75_dadada_1x400.png b/dist/images/ui-bg_glass_75_dadada_1x400.png deleted file mode 100644 index 5a46b47c..00000000 Binary files a/dist/images/ui-bg_glass_75_dadada_1x400.png and /dev/null differ diff --git a/dist/images/ui-bg_glass_75_e6e6e6_1x400.png b/dist/images/ui-bg_glass_75_e6e6e6_1x400.png deleted file mode 100644 index 86c2baa6..00000000 Binary files a/dist/images/ui-bg_glass_75_e6e6e6_1x400.png and /dev/null differ diff --git a/dist/images/ui-bg_glass_95_fef1ec_1x400.png b/dist/images/ui-bg_glass_95_fef1ec_1x400.png deleted file mode 100644 index 4443fdc1..00000000 Binary files a/dist/images/ui-bg_glass_95_fef1ec_1x400.png and /dev/null differ diff --git a/dist/images/ui-bg_highlight-soft_75_cccccc_1x100.png b/dist/images/ui-bg_highlight-soft_75_cccccc_1x100.png deleted file mode 100644 index 7c9fa6c6..00000000 Binary files a/dist/images/ui-bg_highlight-soft_75_cccccc_1x100.png and /dev/null differ diff --git a/dist/images/ui-icons_222222_256x240.png b/dist/images/ui-icons_222222_256x240.png deleted file mode 100644 index ee039dc0..00000000 Binary files a/dist/images/ui-icons_222222_256x240.png and /dev/null differ diff --git a/dist/images/ui-icons_2e83ff_256x240.png b/dist/images/ui-icons_2e83ff_256x240.png deleted file mode 100644 index 45e8928e..00000000 Binary files a/dist/images/ui-icons_2e83ff_256x240.png and /dev/null differ diff --git a/dist/images/ui-icons_444444_256x240.png b/dist/images/ui-icons_444444_256x240.png deleted file mode 100644 index 92214389..00000000 Binary files a/dist/images/ui-icons_444444_256x240.png and /dev/null differ diff --git a/dist/images/ui-icons_454545_256x240.png b/dist/images/ui-icons_454545_256x240.png deleted file mode 100644 index 7ec70d11..00000000 Binary files a/dist/images/ui-icons_454545_256x240.png and /dev/null differ diff --git a/dist/images/ui-icons_555555_256x240.png b/dist/images/ui-icons_555555_256x240.png deleted file mode 100644 index 4c372960..00000000 Binary files a/dist/images/ui-icons_555555_256x240.png and /dev/null differ diff --git a/dist/images/ui-icons_777620_256x240.png b/dist/images/ui-icons_777620_256x240.png deleted file mode 100644 index 3b4ce686..00000000 Binary files a/dist/images/ui-icons_777620_256x240.png and /dev/null differ diff --git a/dist/images/ui-icons_777777_256x240.png b/dist/images/ui-icons_777777_256x240.png deleted file mode 100644 index de6cf086..00000000 Binary files a/dist/images/ui-icons_777777_256x240.png and /dev/null differ diff --git a/dist/images/ui-icons_888888_256x240.png b/dist/images/ui-icons_888888_256x240.png deleted file mode 100644 index 5ba708c3..00000000 Binary files a/dist/images/ui-icons_888888_256x240.png and /dev/null differ diff --git a/dist/images/ui-icons_cc0000_256x240.png b/dist/images/ui-icons_cc0000_256x240.png deleted file mode 100644 index 6c64c85e..00000000 Binary files a/dist/images/ui-icons_cc0000_256x240.png and /dev/null differ diff --git a/dist/images/ui-icons_cd0a0a_256x240.png b/dist/images/ui-icons_cd0a0a_256x240.png deleted file mode 100644 index 7930a558..00000000 Binary files a/dist/images/ui-icons_cd0a0a_256x240.png and /dev/null differ diff --git a/dist/images/ui-icons_ffffff_256x240.png b/dist/images/ui-icons_ffffff_256x240.png deleted file mode 100644 index 4ab379a1..00000000 Binary files a/dist/images/ui-icons_ffffff_256x240.png and /dev/null differ diff --git a/dist/phenogrid-bundle.css b/dist/phenogrid-bundle.css deleted file mode 100644 index e3ad65df..00000000 --- a/dist/phenogrid-bundle.css +++ /dev/null @@ -1,11 +0,0 @@ -/*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block}audio:not([controls]){display:none;height:0}progress{vertical-align:baseline}[hidden],template{display:none}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit;font-weight:bolder}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}svg:not(:root){overflow:hidden}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}button,input,select,textarea{font:inherit;margin:0}optgroup{font-weight:700}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{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-input-placeholder{color:inherit;opacity:.54}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit} - -/*! - * Font Awesome 4.6.1 by @davegandy - http://fontawesome.io - @fontawesome - * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) - */@font-face{font-family:FontAwesome;src:url(fonts/fontawesome-webfont.eot?v=4.6.1);src:url(fonts/fontawesome-webfont.eot?#iefix&v=4.6.1) format("embedded-opentype"),url(fonts/fontawesome-webfont.woff2?v=4.6.1) format("woff2"),url(fonts/fontawesome-webfont.woff?v=4.6.1) format("woff"),url(fonts/fontawesome-webfont.ttf?v=4.6.1) format("truetype"),url(fonts/fontawesome-webfont.svg?v=4.6.1#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:a 2s infinite linear;animation:a 2s infinite linear}.fa-pulse{-webkit-animation:a 1s infinite steps(8);animation:a 1s infinite steps(8)}@-webkit-keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scaleY(-1);transform:scaleY(-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-close:before,.fa-remove:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-cog:before,.fa-gear:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-repeat:before,.fa-rotate-right:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-exclamation-triangle:before,.fa-warning:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-cogs:before,.fa-gears:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-floppy-o:before,.fa-save:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-sort:before,.fa-unsorted:before{content:"\f0dc"}.fa-sort-desc:before,.fa-sort-down:before{content:"\f0dd"}.fa-sort-asc:before,.fa-sort-up:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-gavel:before,.fa-legal:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-bolt:before,.fa-flash:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-clipboard:before,.fa-paste:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-chain-broken:before,.fa-unlink:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:"\f150"}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:"\f151"}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:"\f152"}.fa-eur:before,.fa-euro:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-inr:before,.fa-rupee:before{content:"\f156"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:"\f157"}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:"\f158"}.fa-krw:before,.fa-won:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-try:before,.fa-turkish-lira:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-bank:before,.fa-institution:before,.fa-university:before{content:"\f19c"}.fa-graduation-cap:before,.fa-mortar-board:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:"\f1c5"}.fa-file-archive-o:before,.fa-file-zip-o:before{content:"\f1c6"}.fa-file-audio-o:before,.fa-file-sound-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-rebel:before{content:"\f1d0"}.fa-empire:before,.fa-ge:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-hacker-news:before,.fa-y-combinator-square:before,.fa-yc-square:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-paper-plane:before,.fa-send:before{content:"\f1d8"}.fa-paper-plane-o:before,.fa-send-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-bed:before,.fa-hotel:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-y-combinator:before,.fa-yc:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-paper-o:before,.fa-hand-stop-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-television:before,.fa-tv:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"}.fa-gitlab:before{content:"\f296"}.fa-wpbeginner:before{content:"\f297"}.fa-wpforms:before{content:"\f298"}.fa-envira:before{content:"\f299"}.fa-universal-access:before{content:"\f29a"}.fa-wheelchair-alt:before{content:"\f29b"}.fa-question-circle-o:before{content:"\f29c"}.fa-blind:before{content:"\f29d"}.fa-audio-description:before{content:"\f29e"}.fa-volume-control-phone:before{content:"\f2a0"}.fa-braille:before{content:"\f2a1"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before{content:"\f2a3"}.fa-deaf:before,.fa-deafness:before,.fa-hard-of-hearing:before{content:"\f2a4"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-sign-language:before,.fa-signing:before{content:"\f2a7"}.fa-low-vision:before{content:"\f2a8"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto} - -/*! jQuery UI - v1.10.4 - 2014-02-18 -* http://jqueryui.com -* Includes: jquery.ui.core.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css, jquery.ui.theme.css -* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:after,.ui-helper-clearfix:before{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:3}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:.1px;display:block}.ui-resizable-autohide .ui-resizable-handle,.ui-resizable-disabled .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-selectable-helper{position:absolute;z-index:3;border:1px dotted #000}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin-top:2px;padding:.5em .5em .5em .7em;min-height:0}.ui-accordion .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-noicons{padding-left:.7em}.ui-accordion .ui-accordion-icons .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-header .ui-accordion-header-icon{position:absolute;left:.5em;top:50%;margin-top:-8px}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-button{display:inline-block;position:relative;padding:0;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;overflow:visible}.ui-button,.ui-button:active,.ui-button:hover,.ui-button:link,.ui-button:visited{text-decoration:none}.ui-button-icon-only{width:2.2em}button.ui-button-icon-only{width:2.4em}.ui-button-icons-only{width:3.4em}button.ui-button-icons-only{width:3.7em}.ui-button .ui-button-text{display:block;line-height:normal}.ui-button-text-only .ui-button-text{padding:.4em 1em}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:.4em;text-indent:-9999999px}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 1em .4em 2.1em}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 2.1em .4em 1em}.ui-button-text-icons .ui-button-text{padding-left:2.1em;padding-right:2.1em}input.ui-button{padding:.4em 1em}.ui-button-icon-only .ui-icon,.ui-button-icons-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon{position:absolute;top:50%;margin-top:-8px}.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px}.ui-button-icons-only .ui-button-icon-primary,.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary{left:.5em}.ui-button-icons-only .ui-button-icon-secondary,.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary{right:.5em}.ui-buttonset{margin-right:7px}.ui-buttonset .ui-button{margin-left:0;margin-right:-.3em}button.ui-button::-moz-focus-inner,input.ui-button::-moz-focus-inner{border:0;padding:0}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-next,.ui-datepicker .ui-datepicker-prev{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-next-hover,.ui-datepicker .ui-datepicker-prev-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-next span,.ui-datepicker .ui-datepicker-prev span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:700;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td a,.ui-datepicker td span{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-dialog{overflow:hidden;position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:20px;margin:-10px 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:none;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-se{width:12px;height:12px;right:-5px;bottom:-5px;background-position:16px 16px}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-menu{list-style:none;padding:2px;margin:0;display:block;outline:none}.ui-menu .ui-menu{margin-top:-3px;position:absolute}.ui-menu .ui-menu-item{margin:0;padding:0;width:100%;list-style-image:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)}.ui-menu .ui-menu-divider{margin:5px -2px;height:0;font-size:0;line-height:0;border-width:1px 0 0}.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:2px .4em;line-height:1.5;min-height:0;font-weight:400}.ui-menu .ui-menu-item a.ui-state-active,.ui-menu .ui-menu-item a.ui-state-focus{font-weight:400;margin:-1px}.ui-menu .ui-state-disabled{font-weight:400;margin:.4em 0 .2em;line-height:1.5}.ui-menu .ui-state-disabled a{cursor:default}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item a{position:relative;padding-left:2em}.ui-menu .ui-icon{position:absolute;top:.2em;left:.2em}.ui-menu .ui-menu-icon{position:static;float:right}.ui-progressbar{height:2em;text-align:left;overflow:hidden}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-progressbar .ui-progressbar-overlay{background:url(images/animated-overlay.gif);height:100%;filter:alpha(opacity=25);opacity:.25}.ui-progressbar-indeterminate .ui-progressbar-value{background-image:none}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-spinner{position:relative;display:inline-block;overflow:hidden}.ui-spinner,.ui-spinner-input{padding:0;vertical-align:middle}.ui-spinner-input{border:none;background:none;color:inherit;margin:.2em 0;margin-left:.4em;margin-right:22px}.ui-spinner-button{width:16px;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.ui-spinner a.ui-spinner-button{border-top:none;border-bottom:none;border-right:none}.ui-spinner .ui-icon{position:absolute;margin-top:-8px;top:50%;left:0}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-spinner .ui-icon-triangle-1-s{background-position:-65px -16px}.ui-tabs{position:relative;padding:.2em}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav .ui-tabs-anchor{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor{cursor:text}.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:none}.ui-tooltip{padding:8px;position:absolute;z-index:6;max-width:300px;box-shadow:0 0 5px #aaa}body .ui-tooltip{border-width:2px}.ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget .ui-widget{font-size:1em}.ui-widget button,.ui-widget input,.ui-widget select,.ui-widget textarea{font-family:Verdana,Arial,sans-serif;font-size:1em}.ui-widget-content{border:1px solid #aaa;background:#fff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x;color:#222}.ui-widget-content a{color:#222}.ui-widget-header{border:1px solid #aaa;background:#ccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x;color:#222;font-weight:700}.ui-widget-header a{color:#222}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #d3d3d3;background:#e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;font-weight:400;color:#555}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#555;text-decoration:none}.ui-state-focus,.ui-state-hover,.ui-widget-content .ui-state-focus,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-focus,.ui-widget-header .ui-state-hover{border:1px solid #999;background:#dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x;font-weight:400;color:#212121}.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited,.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited{color:#212121;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #aaa;background:#fff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;font-weight:400;color:#212121}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#212121;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fcefa1;background:#fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x;color:#363636}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x;color:#cd0a0a}.ui-state-error-text,.ui-state-error a,.ui-widget-content .ui-state-error-text,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error-text,.ui-widget-header .ui-state-error a{color:#cd0a0a}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:700}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:400}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon,.ui-widget-header .ui-icon{background-image:url(images/ui-icons_222222_256x240.png)}.ui-state-default .ui-icon{background-image:url(images/ui-icons_888888_256x240.png)}.ui-state-active .ui-icon,.ui-state-focus .ui-icon,.ui-state-hover .ui-icon{background-image:url(images/ui-icons_454545_256x240.png)}.ui-state-highlight .ui-icon{background-image:url(images/ui-icons_2e83ff_256x240.png)}.ui-state-error-text .ui-icon,.ui-state-error .ui-icon{background-image:url(images/ui-icons_cd0a0a_256x240.png)}.ui-icon-blank{background-position:16px 16px}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-first,.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-left,.ui-corner-tl,.ui-corner-top{border-top-left-radius:4px}.ui-corner-all,.ui-corner-right,.ui-corner-top,.ui-corner-tr{border-top-right-radius:4px}.ui-corner-all,.ui-corner-bl,.ui-corner-bottom,.ui-corner-left{border-bottom-left-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-br,.ui-corner-right{border-bottom-right-radius:4px}.ui-widget-overlay,.ui-widget-shadow{background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30)}.ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;border-radius:8px}.pg_message{padding:10px 20px;font-size:12px;color:#e27b67}.pg_container{margin:0;position:relative;font-family:Verdana,Geneva,sans-serif;font-size:12px}.pg_container .pg_controls{position:absolute;left:0;top:0}.pg_container .pg_controls_options{position:absolute;width:200px;height:434px;background:#f1f3f8;padding:20px;color:#111;border:1px solid #222;box-shadow:4px 4px 2px #ddd;z-index:4}.pg_container .pg_controls_options_arrow_border{top:-17px;border-color:transparent transparent #222}.pg_container .pg_controls_options_arrow,.pg_container .pg_controls_options_arrow_border{display:block;position:absolute;left:27px;border-style:solid;border-width:8px;height:0;width:0}.pg_container .pg_controls_options_arrow{top:-16px;border-color:transparent transparent #f1f3f8}.pg_container .pg_controls_close{float:right;margin-top:-20px;margin-right:-20px;color:#fff;border-left:1px solid #222;border-bottom:1px solid #222;background:#605f61;font-size:20px;display:inline-block;padding:2px 5px}.pg_container .pg_controls_close:hover,.pg_container .pg_unmatched_close:hover{cursor:pointer;background:#ea763b}.pg_container .pg_slide_btn{position:absolute;width:75px;font-size:14px;color:#44a293}.pg_container .pg_slide_btn:hover,.pg_container .pg_unmatched_btn:hover{cursor:pointer;color:#ea763b}.pg_container .pg_slide_open:hover,.pg_container .pg_unmatched_open:hover{cursor:default!important;color:#44a293!important}.pg_container .pg_ctrl_label{font-weight:700;font-size:12px;margin-bottom:3px}.pg_container input[type=checkbox],.pg_container input[type=radio]{width:11px;height:11px;margin:0 2px 0 0;vertical-align:-1px}.pg_container .pg_hr{clear:both;margin:10px 0;border-bottom:1px solid #cbcbcb}.pg_container .pg_select_item{margin:2px 0;padding:0;font-size:12px;text-overflow:ellipsis;width:200px;height:14px;white-space:nowrap;overflow:hidden}.pg_container .pg_unmatched{position:absolute;left:0;top:0}.pg_container .pg_unmatched_list{position:absolute;left:30px;background:#f1f3f8;padding:10px;margin-bottom:20px;color:#111;border:1px solid #222;box-shadow:4px 4px 2px #ddd;z-index:4}.pg_container .pg_unmatched_close{float:right;margin-top:-10px;margin-right:-10px;color:#fff;border-left:1px solid #222;border-bottom:1px solid #222;background:#605f61;font-size:20px;display:inline-block;padding:2px 5px}.pg_container .pg_unmatched_list_item a{padding:5px 10px;float:left;font-size:11px}.pg_container .pg_unmatched_list_arrow_border{top:-16px;border-color:transparent transparent #222}.pg_container .pg_unmatched_list_arrow,.pg_container .pg_unmatched_list_arrow_border{display:block;position:absolute;left:80px;border-style:solid;border-width:8px;height:0;width:0}.pg_container .pg_unmatched_list_arrow{top:-15px;border-color:transparent transparent #f1f3f8}.pg_container .pg_unmatched_btn{position:absolute;width:185px;text-align:right;font-size:14px;color:#44a293}.pg_container .pg_col_accent,.pg_container .pg_row_accent{stroke:#4ca092;stroke-width:2;fill:#4ca092;fill-opacity:.1}.pg_container .pg_scores_tip_icon{cursor:pointer}.pg_container .pg_tooltip{position:absolute;padding:5px;z-index:5}.pg_container .pg_tooltip_inner{box-shadow:5px 5px 8px #818181;-webkit-box-shadow:5px 5px 8px #818181;-moz-box-shadow:5px 5px 8px #818181;border:1px solid #000;background:#fff;padding:5px;font-family:Verdana,Geneva,sans-serif;font-size:11px}.ui-dialog-content{font-size:11px;font-family:arial;color:#000}.pg_faq_dialog_bg_color{background-color:#fff!important}.pg_container .cursor_pointer{cursor:pointer}.pg_container .pg_linethrough{text-decoration:line-through}.pg_container .pg_draggable{cursor:move}.pg_container .pg_dragging{fill:#ea763b!important}.clearfix:after,.clearfix:before{content:" ";display:table}.clearfix:after{content:" ";visibility:hidden;display:block;height:0;clear:both}.pg_container .pg_active{font-weight:700}.pg_container .pg_active,.pg_container .pg_related_active{font-family:Verdana,Geneva,sans-serif;font-size:11px;fill:blue}.pg_container .pg_expand_genotype,.pg_container .pg_expand_ontology{text-decoration:underline;color:#dc4945;cursor:pointer}.pg_container .pg_expand_genotype_icon,.pg_container .pg_expand_ontology_icon{margin-left:2px}.pg_container em.pg_ontology_tree_indent{width:12px;float:left;display:inline-block;height:1px}.pg_container .pg_cursor_pointer{cursor:pointer}.pg_container .pg_focusLine{fill:none;stroke:red;shape-rendering:crispEdges}.pg_container .pg_rowcolmatch{fill:red!important;border-style:solid;border-width:medium}.pg_container .pg_hide{display:none}.pg_container .pg_export:hover{cursor:pointer;color:#ea763b} \ No newline at end of file diff --git a/dist/phenogrid-bundle.js b/dist/phenogrid-bundle.js deleted file mode 100644 index ff912d51..00000000 --- a/dist/phenogrid-bundle.js +++ /dev/null @@ -1,21 +0,0 @@ -!function t(e,i,n){function r(a,o){if(!i[a]){if(!e[a]){var l="function"==typeof require&&require;if(!o&&l)return l(a,!0);if(s)return s(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=i[a]={exports:{}};e[a][0].call(c.exports,function(t){var i=e[a][1][t];return r(i?i:t)},c,c.exports,t,e,i,n)}return i[a].exports}for(var s="function"==typeof require&&require,a=0;at||t>this.groupLength())&&(t=0),this.renderStartPos=t},getRenderEndPos:function(){return this.renderEndPos},setRenderEndPos:function(t){t>this.groupLength()&&(t=this.groupLength()),this.renderEndPos=t},itemAt:function(t){var e=this.keys(),i=e[t];return this.get(i)},get:function(t){return this.items[t]},entries:function(){for(var t=Object.keys(this.items),e=[],i=this.renderStartPos;ii?-1:i>n?1:0}),this.items=[];for(var i in e)this.items[e[i].id]=e[i]},getScale:function(){var t=this.keys(),e=i.scale.ordinal().domain(t).rangeRoundBands([0,t.length]);return e}},e.exports=n}()},{d3:8}],2:[function(t,e,i){!function(){"use strict";var i=t("jquery"),n=t("./utils.js"),r=function(t,e,i){this.serverURL=t,this.simSearchQuery=e,this.qryString="",this.groupsNoMatch=[],this.limit=i,this.owlsimsData=[],this.origSourceList=[],this.maxMaxIC=0,this.targetData={},this.sourceData={},this.cellData={},this.ontologyCacheLabels=[],this.ontologyCache=[],this.loadedNewTargetGroupItems={},this.postDataLoadCallback=""};r.prototype={constructor:r,load:function(t,e,i,n){this.origSourceList=t,this.qryString=this.simSearchQuery.inputItemsString+t.join("+"),"undefined"!=typeof n&&(this.qryString+=this.simSearchQuery.limitString+n),this.postDataLoadCallback=i,this.process(e,this.qryString)},loadCompareData:function(t,e,n,r){this.postDataLoadCallback=r,this.origSourceList=e,this.qryString=this.serverURL+this.simSearchQuery.URL+"/"+e.join("+")+"/"+n.join(",");var s=this,a=i.ajax({url:this.qryString,method:"GET",async:!0,dataType:"json"});a.done(function(e){"undefined"==typeof e.b?s.groupsNoMatch.push(t):s.transform(t,e),s.postDataLoadCallback()}),a.fail(function(){console.log("Ajax error - loadCompareData()")})},loadCompareDataForVendor:function(t,e,i,n){this.origSourceList=t,this.qryString=this.serverURL+this.simSearchQuery.URL+"/"+t.join("+")+"/",this.postDataLoadCallback=i,this.processDataForVendor(e,this.qryString,n)},processDataForVendor:function(t,e,n){if(t.length>0){var r=t[0];t=t.slice(1);for(var s=[],a=0;a0){var i=t[0];t=t.slice(1);var n=e+this.simSearchQuery.targetSpeciesString+i.groupId,r=this.postSimsFetchCb;this.postFetch(this.serverURL+this.simSearchQuery.URL,i,t,r,n)}else this.postDataLoadCallback()},postFetch:function(t,e,n,r,s){var a=this;console.log("POST:"+t);var o=i.ajax({url:t,method:"POST",data:s,async:!0,timeout:6e4,dataType:"json"});o.done(function(t){r(a,e,n,t)}),o.fail(function(){console.log("Ajax error - postFetch()")})},postSimsFetchCb:function(t,e,i,n){(null!==n||"undefined"!=typeof n)&&("undefined"==typeof n.b?t.groupsNoMatch.push(e.groupName):(t.owlsimsData[e.groupName]=n,t.transform(e.groupName,n))),t.process(i,t.qryString)},transform:function(t,e){if("undefined"!=typeof e&&"undefined"!=typeof e.b){console.log("Transforming simsearch data of group: "+t),"undefined"!=typeof e.metadata&&(this.maxMaxIC=e.metadata.maxMaxIC),"undefined"==typeof this.cellData[t]&&(this.cellData[t]={}),"undefined"==typeof this.targetData[t]&&(this.targetData[t]={}),"undefined"==typeof this.sourceData[t]&&(this.sourceData[t]={});for(var i in e.b){var r=e.b[i],s=n.getConceptId(r.id),a=r.taxon.label;a&&"Not Specified"!==a||(a=t);var o={id:s,label:r.label,targetGroup:a,type:r.type,rank:parseInt(i)+1,score:r.score.score};"undefined"==typeof this.targetData[t][s]&&(this.targetData[t][s]={}),this.targetData[t][s]=o;var l,u,c,h,d,p,f=e.b[i].matches;if("undefined"!=typeof f&&f.length>0)for(var g in f){var m=0,v=0;l=f[g],h=n.getConceptId(l.a.id),d=n.getConceptId(l.b.id),p=n.getConceptId(l.lcs.id),u=n.normalizeIC(l,this.maxMaxIC);var y=this.sourceData[t][h];"undefined"==typeof y?(v++,m+=parseFloat(l.lcs.IC),c={id:h,label:l.a.label,IC:parseFloat(l.a.IC),count:v,sum:m,type:"phenotype"},this.sourceData[t][h]=c):(this.sourceData[t][h].count+=1,this.sourceData[t][h].sum+=parseFloat(l.lcs.IC)),c={source_id:h,target_id:s,targetGroup:t,value:u,a_IC:l.a.IC,a_label:l.a.label,subsumer_id:p,subsumer_label:l.lcs.label,subsumer_IC:parseFloat(l.lcs.IC),b_id:d,b_label:l.b.label,b_IC:parseFloat(l.b.IC),type:"cell"},"undefined"==typeof this.cellData[t][h]&&(this.cellData[t][h]={}),this.cellData[t][h][s]=c}}}},transformDataForVendor:function(t,e,i){if("undefined"!=typeof e&&"undefined"!=typeof e.b){console.log("Vendor Data transforming...");var r=(t.groupId,t.groupName);"undefined"!=typeof e.metadata&&(this.maxMaxIC=e.metadata.maxMaxIC),"undefined"==typeof this.targetData[r]&&(this.targetData[r]={}),"undefined"==typeof this.sourceData[r]&&(this.sourceData[r]={}),"undefined"==typeof this.cellData[r]&&(this.cellData[r]={});for(var s in e.b)for(var a in t.entities)if(e.b[s].id===t.entities[a].combinedList){e.b[s].newid=t.entities[a].id,e.b[s].label=t.entities[a].label,e.b[s].phenodigmScore=t.entities[a].score,e.b[s].info=t.entities[a].info;break}for(var o in e.b){var l=e.b[o],u=t.groupId+l.newid,c={id:u,label:l.label,targetGroup:r,type:"genotype",info:l.info,rank:parseInt(o)+1,score:Math.round(l.phenodigmScore.score)};"undefined"==typeof this.targetData[r][u]&&(this.targetData[r][u]={}),this.targetData[r][u]=c;var h,d,p,f,g,m,v=e.b[o].matches;if("undefined"!=typeof v&&v.length>0)for(var y in v){var _=0,b=0;h=v[y],f=n.getConceptId(h.a.id),g=n.getConceptId(h.b.id),m=n.getConceptId(h.lcs.id),d=n.normalizeIC(h,this.maxMaxIC);var x=this.sourceData[r][f];"undefined"==typeof x?(b++,_+=parseFloat(h.lcs.IC),p={id:f,label:h.a.label,IC:parseFloat(h.a.IC),count:b,sum:_,type:"phenotype"},this.sourceData[r][f]=p):(this.sourceData[r][f].count+=1,this.sourceData[r][f].sum+=parseFloat(h.lcs.IC)),p={source_id:f,target_id:u,targetGroup:r,value:d,a_IC:h.a.IC,a_label:h.a.label,subsumer_id:m,subsumer_label:h.lcs.label,subsumer_IC:parseFloat(h.lcs.IC),b_id:g,b_label:h.b.label,b_IC:parseFloat(h.b.IC),type:"cell"},"undefined"==typeof this.cellData[r][f]&&(this.cellData[r][f]={}),this.cellData[r][f][u]=p}}}},transformNewTargetGroupItems:function(t,e,i){if("undefined"!=typeof e&&"undefined"!=typeof e.b){console.log("transforming genotype data..."),"undefined"!=typeof e.metadata&&(this.maxMaxIC=e.metadata.maxMaxIC);for(var r in e.b){var s=e.b[r],a=n.getConceptId(s.id),o={id:a,label:s.label,targetGroup:s.taxon.label,type:s.type,parentGeneID:i,rank:parseInt(r)+1,score:s.score.score,visible:!0};"undefined"==typeof this.targetData[t][a]&&(this.targetData[t][a]={}),this.targetData[t][a]=o;var l,u,c,h,d,p,f=e.b[r].matches;if("undefined"!=typeof f&&f.length>0)for(var g in f){var m=0,v=0;l=f[g],h=n.getConceptId(l.a.id),d=n.getConceptId(l.b.id),p=n.getConceptId(l.lcs.id),u=n.normalizeIC(l,this.maxMaxIC),"undefined"==typeof this.sourceData[t]&&(this.sourceData[t]={});var y=this.sourceData[t][h];"undefined"==typeof y?(v++,m+=parseFloat(l.lcs.IC),c={id:h,label:l.a.label,IC:parseFloat(l.a.IC),count:v,sum:m,type:"phenotype"},this.sourceData[t][h]=c):(this.sourceData[t][h].count+=1,this.sourceData[t][h].sum+=parseFloat(l.lcs.IC)),c={source_id:h,target_id:a,target_type:"genotype",targetGroup:s.taxon.label,value:u,a_IC:l.a.IC,a_label:l.a.label,subsumer_id:p,subsumer_label:l.lcs.label,subsumer_IC:parseFloat(l.lcs.IC),b_id:d,b_label:l.b.label,b_IC:parseFloat(l.b.IC),type:"cell"},"undefined"==typeof this.cellData[t][h]&&(this.cellData[t][h]={}),this.cellData[t][h][a]=c}}}},refresh:function(t,e){var i=[],n=!1;if(e)for(var r in t)this.dataExists(t[r].name)===!1&&i.push(t[r]);else i=t;return i.length>0&&(this.load(this.origSourceList,i,this.postDataLoadCallback),n=!0),n},getFetch:function(t,e,n,r,s,a){console.log("GET:"+e);var o=i.ajax({url:e,method:"GET",async:!0,dataType:"json"});o.done(function(e){r(t,n,e,s,a)}),o.fail(function(){console.log("Ajax error - getFetch()")})},getOntology:function(t,e,i,n,r){var s=this,a=e,o=r.state.ontologyRelationship,l=i,u=this.serverURL+r.state.ontologyQuery+t+"/"+l+"/"+a+"/"+o+".json",c=this.postOntologyCb;this.getFetch(s,u,t,c,n,r)},getNewTargetGroupItems:function(t,e,i){var n=this,r=this.serverURL+"/gene/"+t+"/genotype_list.json",s=this.getNewTargetGroupItemsCb;this.getFetch(n,r,t,s,e,i)},getNewTargetGroupItemsCb:function(t,e,i,n,r){if("undefined"!=typeof i.genotype_list)if(i.genotype_list.length>0){var s=r.state.unstableTargetGroupItemPrefix;for(var a in i.genotype_list)for(var o in s)0===i.genotype_list[a].id.indexOf(s[o])&&i.genotype_list.splice(a,1);var l=i.genotype_list.slice(0,r.state.targetGroupItemExpandLimit),u=t.origSourceList.join("+"),c="";for(var a in l)c+=l[a].id+",";","===c.slice(-1)&&(c=c.slice(0,-1));var h=t.serverURL+r.state.compareQuery.URL+"/"+u+"/"+c,d=t.getNewTargetGroupItemsCbCb;t.getFetch(t,h,e,d,n,r)}else{var p={},f=r.state.messaging.noAssociatedGenotype;n(p,e,r,f)}},getNewTargetGroupItemsCbCb:function(t,e,i,n,r){var s=[];if("undefined"!=typeof i.b){for(var a=0;a=e)break}}return i},createCombinedSourceList:function(t){var e=[];for(var n in t){var r=this.getData("source",t[n].groupName);if("undefined"!=typeof r)for(var s in r){var a=r[s].id,o=e[a];if("undefined"==typeof o){var l={};e[a]=i.extend({},l,r[s])}}}for(var u in e){e[u].count=0,e[u].sum=0;for(var c in t){var h=this.getData("cellData",t[c].groupName);for(var d in h){var p=h[d];for(var f in p)e[u].id==p[f].source_id&&(e[u].count+=1,e[u].sum+=p[f].subsumer_IC)}}}return e},getOntologyLabel:function(t){return this.dataLoader.getOntologyLabel(t)},isExpanded:function(t){return"undefined"==typeof this.expandedItemList[t]?!1:!0},checkExpandedItemsLoaded:function(t,e){"undefined"==typeof this.reorderedTargetEntriesIndexArray[t]&&(this.reorderedTargetEntriesIndexArray[t]=[]);for(var i=0;i
What is the score shown at the top of the grid?
The score indicated at the top of each column, below the target label, is the overall similarity score between the query and target. Briefly, for each of the targets (columns) listed, the set of Q(1..n) phenotypes of the query are pairwise compared against all of the T(1..m) phenotypes in the target.

Then, for each pairwise comparison of phenotypes (q x P1...n), the best comparison is retained for each q and summed for all p1..n.

The raw score is then normalized against the maximal possible score, which is the query matching to itself. Therefore, range of scores displayed is 0..100. For more details, please see (Smedley et al, 2012 http://www.ncbi.nlm.nih.gov/pubmed/23660285 and http://www.owlsim.org)
\r\n",sorts:"
What are the different ways that phenotypes can be sorted?
The phenotypes that are shown on the left side of the grid may be sorted using one of three methods. More options may be available in the future.
  • Alphabetical - A-Z
  • Frequency and Rarity - Phenotypes are sorted by the sum of the phenotype values across all models/genes
  • Frequency (Default) - Phenotypes are sorted by the count of the number of model/gene matches per phenotype
",faq:"

Phenogrid Faq

How are the similar targets obtained?
We query our owlsim server to obtain the top 100 most-phenotypically similar targets for the selected organism. The grid defaults to showing mouse.
What are the possible targets for comparison?
Currently, the phenogrid is configured to permit comparisons between your query (typically a set of disease-phenotype associations) and one of:
  • human diseases
  • mouse genes
  • zebrafish genes
You can change the target organism by selecting a new organism. The grid will temporarily disappear, and reappear with the new target rendered.
Can I compare the phenotypes to human genes?
No, not yet. But that will be added soon.
Where does the data come from?
The phenotype annotations utilized to compute the phenotypic similarity are drawn from a number of sources:
  • Human disease-phenotype annotations were obtained from http://human-phenotype-ontology.org, which contains annotations for approx. 7,500 diseases.
  • Mouse gene-phenotype annotations were obtained from MGI (www.informatics.jax.org). The original annotations were made between genotypes and phenotypes. We then inferred the relationship between gene and phenotype based on the genes that were variant in each genotype. We only perform this inference for those genotypes that contain a single variant gene.
  • Zebrafish genotype-phenotype annotations were obtained from ZFIN (www.zfin.org). The original annotations were made between genotypes and phenotypes, with some of those genotypes created experimentally with the application of morpholino reagents. Like for mouse, we inferred the relationship between gene and phenotype based on the genes that were varied in each genotype. We only perform this inference for those genotypes that contain a single variant gene.
  • All annotation data, preformatted for use in OWLSim, is available for download from http://code.google.com/p/phenotype-ontologies/
What does the phenogrid show?
The grid depicts the comparison of a set of phenotypes in a query (such as those annotated to a disease or a gene) with one or more phenotypically similar targets. Each row is a phenotype that is annotated to the query (either directly or it is a less-specific phenotype that is inferred), and each column is an annotated target (such as a gene or disease). When a phenotype is shared between the query and target, the intersection is colored based on the selected calculation method (see What do the different calculation methods mean). You can hover over the intersection to get more information about what the original phenotype is of the target, and what is in-common between the two.
Where can I make suggestions for improvements or additions?
Please email your feedback to info@monarchinitiative.org.
What happens to the phenotypes that are not shared?
Phenotypes that were part of your query but are not shared by any of the targets can be seen by clicking the View Unmatched Phenotype link.
Why do I sometimes see two targets that share the same phenotypes have very different overall scores?
This is usually because of some of the phenotypes that are not shared with the query. For example, if the top hit to a query matches each phenotype exactly, and the next hit matches all of them exactly plus it has 10 additional phenotypes that don't match it at all, it is penalized for those phenotypes are not in common, and thus ranks lower on the similarity scale.
\r\n",calcs:"
What do the different calculation methods mean?
For each pairwise comparison of phenotypes from the query (q) and target (t), we can assess their individual similarities in a number of ways. First, we find the phenotype-in-common between each pair (called the lowest common subsumer or LCS). Then, we can leverage the Information Content (IC) of the phenotypes (q,t,lcs) in a variety of combinations to interpret the strength of the similarity.

**Uniqueness reflects how often the phenotype-in-common is annotated to all diseases and genes in the Monarch Initiative knowledgebase. This is simply a reflection of the IC normalized based on the maxIC. IC(PhenotypeInCommon)/maxIC(AllPhenotypes)

**Distance is the euclidian distance between the query, target, and phenotype-in-common, computed using IC scores.
d=(IC(q)-IC(lcs))2+(IC(t)-IC(lcs))2

This is normalized based on the maximal distance possible, which would be between two rarely annotated leaf nodes that only have the root node (phenotypic abnormality) in common. So what is depicted in the grid is 1-dmax(d)

**Ratio(q) is the proportion of shared information between a query phenotype and the phenotype-in-common with the target.
ratio(q)=IC(lcs)/IC(q)*100

**Ratio(t) is the proportion of shared information between the target phenotype and the phenotype-in-common with the query.
ratio(t)=IC(lcs)/IC(t)*100
\r\n"}},{}],5:[function(t,e,i){e.exports={logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjIwMC40NjNweCIgaGVpZ2h0PSIxMzMuMDY1cHgiIHZpZXdCb3g9IjAgMCAyMDAuNDYzIDEzMy4wNjUiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwMC40NjMgMTMzLjA2NSIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PGcgaWQ9ImFubm90YXRpb25zIiBkaXNwbGF5PSJub25lIj48ZyBkaXNwbGF5PSJpbmxpbmUiPjxkZWZzPjxsaW5lIGlkPSJTVkdJRF8xXyIgeDE9IjEwMy44MDMiIHkxPSI1OS41MzIiIHgyPSIxMDMuODEyIiB5Mj0iNTkuNTQxIi8+PC9kZWZzPjxjbGlwUGF0aCBpZD0iU1ZHSURfMl8iPjx1c2UgeGxpbms6aHJlZj0iI1NWR0lEXzFfIiAgb3ZlcmZsb3c9InZpc2libGUiLz48L2NsaXBQYXRoPjxnIGNsaXAtcGF0aD0idXJsKCNTVkdJRF8yXykiPjxkZWZzPjxsaW5lIGlkPSJTVkdJRF8zXyIgeDE9IjEwMy4zMjMiIHkxPSI2MC4xNjkiIHgyPSIxMDMuMzIzIiB5Mj0iNDguMjY1Ii8+PC9kZWZzPjxjbGlwUGF0aCBpZD0iU1ZHSURfNF8iPjx1c2UgeGxpbms6aHJlZj0iI1NWR0lEXzNfIiAgb3ZlcmZsb3c9InZpc2libGUiLz48L2NsaXBQYXRoPjwvZz48L2c+PGcgZGlzcGxheT0iaW5saW5lIj48ZGVmcz48cmVjdCBpZD0iU1ZHSURfNV8iIHg9Ii0wLjI0NSIgeT0iLTEyLjg3OSIgd2lkdGg9IjIwMS4zMjkiIGhlaWdodD0iMTYyLjE3NSIvPjwvZGVmcz48Y2xpcFBhdGggaWQ9IlNWR0lEXzZfIj48dXNlIHhsaW5rOmhyZWY9IiNTVkdJRF81XyIgIG92ZXJmbG93PSJ2aXNpYmxlIi8+PC9jbGlwUGF0aD48cGF0aCBjbGlwLXBhdGg9InVybCgjU1ZHSURfNl8pIiBmaWxsPSIjRTZFN0U4IiBkPSJNMTQ2Ljk1OSwxMzIuOTczdi0yLjM5NWgtMTkuNzg1Yy0zLjkyOCwwLTYuMzcxLTEuNDg1LTYuMzcxLTYuNzA3YzAtNS4yNywyLjc3OC02LjQxOSw4LTYuNDE5aDE4LjE1NnYtMi4zOTZoLTE4Ljg3NWMtNC4wMjIsMC03LjI4MS0xLjUzNC03LjI4MS02Ljc1NWMwLTUuMjcsMi4wNi02LjQxOSw4LTYuNDE5aDE4LjE1NnYtMi4zOTZoLTE4LjEwOGMtNi42MTEsMC0xMC4yNSwxLjcyNi0xMC4yNSw4LjU3NWMwLDMuMDY2LDAuNjIxLDUuNzQ5LDQuMTE4LDguMDQ5Yy0yLjM5NiwxLjAwNi00LjExOCwzLjQtNC4xMTgsNy41MjFjMCwzLjA2NiwwLjc2Niw1LjQxMywyLjc3Nyw2Ljg5OGwtMi4yNTIsMC4yMzh2Mi4yMDRIMTQ2Ljk1OXoiLz48cGF0aCBjbGlwLXBhdGg9InVybCgjU1ZHSURfNl8pIiBmaWxsPSIjRTZFN0U4IiBkPSJNMTQ2Ljk1OSwzMy44OHYtMi4zOTZoLTE5Ljc4NWMtMy45MjgsMC02LjM3MS0xLjQ4NC02LjM3MS02LjcwN2MwLTUuMjY5LDIuNzc4LTYuNDE5LDgtNi40MTloMTguMTU2di0yLjM5NWgtMTguODc1Yy00LjAyMiwwLTcuMjgxLTEuNTM0LTcuMjgxLTYuNzU1YzAtNS4yNzEsMi4wNi02LjQxOSw4LTYuNDE5aDE4LjE1NlYwLjM5NGgtMTguMTA4Yy02LjYxMSwwLTEwLjI1LDEuNzI2LTEwLjI1LDguNTc1YzAsMy4wNjYsMC42MjEsNS43NDksNC4xMTgsOC4wNDljLTIuMzk2LDEuMDA1LTQuMTE4LDMuNC00LjExOCw3LjUyMWMwLDMuMDY1LDAuNzY2LDUuNDEzLDIuNzc3LDYuODk3bC0yLjI1MiwwLjIzOXYyLjIwNEgxNDYuOTU5eiIvPjxwYXRoIGNsaXAtcGF0aD0idXJsKCNTVkdJRF82XykiIGZpbGw9IiNFNkU3RTgiIGQ9Ik0xNjcuNTk5LDgwLjU0NGgyLjM5NVY2MC43NmMwLTMuOTI5LDEuNDg1LTYuMzcxLDYuNzA3LTYuMzcxYzUuMjcsMCw2LjQxOSwyLjc3Nyw2LjQxOSw4djE4LjE1NWgyLjM5NlY2MS42NjljMC00LjAyMiwxLjUzMy03LjI4LDYuNzU0LTcuMjhjNS4yNzEsMCw2LjQyLDIuMDYsNi40Miw4djE4LjE1NWgyLjM5NlY2Mi40MzZjMC02LjYxMS0xLjcyNi0xMC4yNS04LjU3Ni0xMC4yNWMtMy4wNjUsMC01Ljc0OCwwLjYyMi04LjA0OSw0LjExOWMtMS4wMDUtMi4zOTYtMy40LTQuMTE5LTcuNTIxLTQuMTE5Yy0zLjA2NiwwLTUuNDEzLDAuNzY2LTYuODk3LDIuNzc3bC0wLjI0LTIuMjUyaC0yLjIwM1Y4MC41NDR6Ii8+PHBhdGggY2xpcC1wYXRoPSJ1cmwoI1NWR0lEXzZfKSIgZmlsbD0iI0U2RTdFOCIgZD0iTS0wLjI0NSw4MC41NDRIMi4xNVY2MC43NmMwLTMuOTI5LDEuNDg1LTYuMzcxLDYuNzA3LTYuMzcxYzUuMjY5LDAsNi40MTksMi43NzcsNi40MTksOHYxOC4xNTVoMi4zOTVWNjEuNjY5YzAtNC4wMjIsMS41MzQtNy4yOCw2Ljc1NS03LjI4YzUuMjcsMCw2LjQxOSwyLjA2LDYuNDE5LDh2MTguMTU1aDIuMzk2VjYyLjQzNmMwLTYuNjExLTEuNzI1LTEwLjI1LTguNTc1LTEwLjI1Yy0zLjA2NiwwLTUuNzQ5LDAuNjIyLTguMDQ5LDQuMTE5Yy0xLjAwNS0yLjM5Ni0zLjQtNC4xMTktNy41MjEtNC4xMTljLTMuMDY2LDAtNS40MTMsMC43NjYtNi44OTgsMi43NzdsLTAuMjM5LTIuMjUyaC0yLjIwNFY4MC41NDR6Ii8+PGxpbmUgY2xpcC1wYXRoPSJ1cmwoI1NWR0lEXzZfKSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNTg1OTVCIiBzdHJva2Utd2lkdGg9IjAuNSIgc3Ryb2tlLW1pdGVybGltaXQ9IjIiIHN0cm9rZS1kYXNoYXJyYXk9IjIuOTI0LDUuOTI0IiB4MT0iMTAwLjA0IiB5MT0iMTQ5LjI5NiIgeDI9IjEwMC4wNCIgeTI9Ii0xMi44NzkiLz48L2c+PC9nPjxnIGlkPSJGdWxsX0NvbG9yIj48Zz48cGF0aCBmaWxsPSIjNDZBNTk3IiBkPSJNMTQxLjc5MiwzNC43ODVjLTIuMDg4LTAuNDI5LTQuMjUtMC42NTQtNi40NjMtMC42NTRjLTguNTE0LDAtMTYuMjU4LDMuMzMyLTIyLjAwOCw4Ljc2Yy0wLjQ1MSwwLjQyNy0wLjg5LDAuODY1LTEuMzE2LDEuMzE3bC0xMS43NzEsMTEuNzcxTDg4LjQ2Miw0NC4yMDhjLTAuNDI2LTAuNDUyLTAuODY0LTAuODkxLTEuMzE2LTEuMzE3Yy01Ljc1LTUuNDI4LTEzLjQ5Ni04Ljc2LTIyLjAwNy04Ljc2Yy0yLjIxNSwwLTQuMzc2LDAuMjI2LTYuNDY0LDAuNjU0Yy0xNC42MDQsMy0yNS42MjEsMTUuOTUyLTI1LjYyMSwzMS40M2gwLjAxN2MwLDE1LjQ1OCwxMC45ODksMjguMzk3LDI1LjU2NSwzMS40MThjMi4xMDYsMC40MzgsNC4yODUsMC42NjgsNi41MTcsMC42NjhjOC4wMDksMCwxNS4zMzctMi45NTEsMjAuOTY0LTcuODJsMi42Ny0yLjY3bDAuMTU3LTAuMTU2YzAuMzktMC40MjYsMC42MjktMC45OTQsMC42MjktMS42MTljMC0xLjMzLTEuMDc3LTIuNDA2LTIuNDA3LTIuNDA2Yy0wLjYwNywwLTEuMTYyLDAuMjI3LTEuNTg0LDAuNkw4NS4zNiw4NC40NWwtMi41MTEsMi41MWMtNC45MzYsNC4yMTktMTEuMjE0LDYuNTQxLTE3LjY5Niw2LjU0MWMtMS44NjQsMC0zLjcyOS0wLjE5MS01LjU0My0wLjU2OGMtMTIuNTk1LTIuNjA5LTIxLjczOS0xMy44NDYtMjEuNzM5LTI2LjcxN2gwLjA3M2MwLTEyLjg5NSw5LjE2My0yNC4xMzUsMjEuNzg2LTI2LjcyOGwtMC4wMDQtMC4wMTdjMS43NzEtMC4zNTcsMy41OTEtMC41MzksNS40MTMtMC41MzljNi45NzYsMCwxMy42MjMsMi42NDYsMTguNzExLDcuNDQ5YzAuMzgzLDAuMzYyLDIzLjA2MiwyMy4yNTUsMjMuMDYyLDIzLjI1NWwwLjAwNC0wLjAwNGwwLjAxMywwLjAxMmwxNi41MjgtMTYuNTI1YzMuMTQyLTIuODQ4LDcuMzA2LTQuNTg3LDExLjg2OS00LjU4N2M5Ljc1MiwwLDE3LjY4NSw3LjkzMywxNy42ODUsMTcuNjg0YzAsOS43NS03LjkzMywxNy42ODQtMTcuNjg1LDE3LjY4NGMtNC4zMjYsMC04LjI5My0xLjU2Ni0xMS4zNjktNC4xNTRsLTIuMDE3LTIuMDE2bC0wLjM5LTAuMzkzYy0wLjQxMS0wLjMyNC0wLjkzLTAuNTIxLTEuNDk0LTAuNTIxYy0xLjMyOSwwLTIuNDA3LDEuMDgtMi40MDcsMi40MDhjMCwwLjcxMSwwLjMxMiwxLjM0OCwwLjgwMiwxLjc4OWwtMC4wOC0wLjA3MmwyLjMzNiwyLjM0NGwwLjE1OCwwLjEzM2M0LjA0NywzLjQwNiw5LjE4NCw1LjI4MywxNC40NjEsNS4yODNjMTIuMzk5LDAsMjIuNDg1LTEwLjA4NiwyMi40ODUtMjIuNDg1YzAtMTIuMzk4LTEwLjA4Ni0yMi40ODQtMjIuNDg1LTIyLjQ4NGMtNS41ODYsMC0xMC45NDcsMi4wNzEtMTUuMDk0LDUuODMybC0wLjA4NiwwLjA3OEwxMDYuOTQsNjIuODQ2bC0zLjM5NS0zLjM5MWwxMS44NTMtMTEuODUzbDAuMDk3LTAuMWMwLjM1OS0wLjM4MiwwLjczNy0wLjc2LDEuMTIxLTEuMTIyYzUuMDktNC44MDQsMTEuNzM0LTcuNDQ5LDE4LjcxMy03LjQ0OWMxLjg1MSwwLDMuNywwLjE4Nyw1LjQ5OCwwLjU1NmMxMi42MjMsMi41OTMsMjEuNzg1LDEzLjgzMywyMS43ODUsMjYuNzI4YzAsMTIuODcyLTkuMTQ1LDI0LjEwOC0yMS43MzgsMjYuNzE3Yy0xLjgxNCwwLjM3Ny0zLjY4LDAuNTY4LTUuNTQ1LDAuNTY4Yy02LjQ4MSwwLTEyLjc1OS0yLjMyMi0xNy42OTUtNi41NDFsLTIuNTEtMi41MWwtMC4yMjItMC4yMjFjLTAuNDIzLTAuMzczLTAuOTc4LTAuNi0xLjU4NS0wLjZjLTEuMzMsMC0yLjQwNiwxLjA3Ni0yLjQwNiwyLjQwNmMwLDAuNjI1LDAuMjM5LDEuMTkzLDAuNjI5LDEuNjE5bDAuMTU3LDAuMTU2bDIuNjY5LDIuNjdjNS42MjcsNC44NjksMTIuOTU1LDcuODIsMjAuOTYzLDcuODJjMi4yMzMsMCw0LjQxMi0wLjIzLDYuNTE5LTAuNjY4YzE0LjU3NS0zLjAyMSwyNS41NjUtMTUuOTYxLDI1LjU2NS0zMS40MThDMTY3LjQxMyw1MC43MzcsMTU2LjM5NSwzNy43ODUsMTQxLjc5MiwzNC43ODUiLz48cGF0aCBmaWxsPSIjNDZBNTk3IiBkPSJNODAuMjMyLDQ5LjU2M2MtNC4xMjQtMy43NDEtOS40NDgtNS44MDgtMTUuMDA0LTUuODN2LTAuMDAybC0wLjA1OCwwLjAwMWwtMC4wMzItMC4wMDFjLTEyLjM5OCwwLTIyLjQ4NCwxMC4wODYtMjIuNDg0LDIyLjQ4NGgwLjAxN2MwLDEyLjM5OSwxMC4wODYsMjIuNDg1LDIyLjQ4NCwyMi40ODVjNS4yNzgsMCwxMC40MTUtMS44NzUsMTQuNDYzLTUuMjgzbDAuMTU2LTAuMTMzbDIuMzM3LTIuMzQybC0wLjA4LDAuMDdjMC40ODktMC40MzksMC44MDEtMS4wNzgsMC44MDEtMS43OTFjMC0xLjMyOC0xLjA3OC0yLjQwNi0yLjQwNy0yLjQwNmMtMC41NjQsMC0xLjA4MywwLjE5Ny0xLjQ5MywwLjUyM2wtMC4zOTEsMC4zOTFsLTIuMDE3LDIuMDE2Yy0zLjA3NiwyLjU5LTcuMDQyLDQuMTU0LTExLjM2OSw0LjE1NGMtOS43NTEsMC0xNy42ODMtNy45MzQtMTcuNjgzLTE3LjY4NGgwLjA3M2MwLTkuNzM2LDcuOTA5LTE3LjY2LDE3LjYzOS0xNy42ODJjNC41NDYsMC4wMTEsOC42OTQsMS43NDcsMTEuODIzLDQuNTg1bDIzLjIyMiwyMy4yMjVsMy40MS0zLjQxTDgwLjQwMSw0OS43MjRMODAuMjMyLDQ5LjU2M3oiLz48L2c+PGc+PGRlZnM+PHBhdGggaWQ9IlNWR0lEXzdfIiBkPSJNMTEwLjM5Miw2Ni4xODJsMC4wMDQsMC4wMDRsMC45NzktMC45ODhMMTEwLjM5Miw2Ni4xODJ6IE0xMDYuOTc5LDYyLjc2OGwwLjAyLDAuMDJsMTAuMzY3LTEwLjM2N2wtMC4wMDctMC4wMDlMMTA2Ljk3OSw2Mi43Njh6Ii8+PC9kZWZzPjxjbGlwUGF0aCBpZD0iU1ZHSURfOF8iPjx1c2UgeGxpbms6aHJlZj0iI1NWR0lEXzdfIiAgb3ZlcmZsb3c9InZpc2libGUiLz48L2NsaXBQYXRoPjxnIGNsaXAtcGF0aD0idXJsKCNTVkdJRF84XykiPjxkZWZzPjxyZWN0IGlkPSJTVkdJRF85XyIgeD0iMTA2LjU5MiIgeT0iNTEuOTU2IiB3aWR0aD0iMTEuNTIxIiBoZWlnaHQ9IjE0Ljk3NiIvPjwvZGVmcz48Y2xpcFBhdGggaWQ9IlNWR0lEXzEwXyI+PHVzZSB4bGluazpocmVmPSIjU1ZHSURfOV8iICBvdmVyZmxvdz0idmlzaWJsZSIvPjwvY2xpcFBhdGg+PGcgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgMSA3LjYyOTM5NWUtMDYgMCkiIGNsaXAtcGF0aD0idXJsKCNTVkdJRF8xMF8pIj48aW1hZ2Ugb3ZlcmZsb3c9InZpc2libGUiIHdpZHRoPSIzMCIgaGVpZ2h0PSIzOSIgeGxpbms6aHJlZj0iZGF0YTppbWFnZS9qcGVnO2Jhc2U2NCwvOWovNEFBUVNrWkpSZ0FCQWdFQXV3QzdBQUQvN0FBUlJIVmphM2tBQVFBRUFBQUFIZ0FBLys0QUlVRmtiMkpsQUdUQUFBQUFBUU1BRUFNQ0F3WUFBQUdjQUFBQjNBQUFBaWYvMndDRUFCQUxDd3NNQ3hBTURCQVhEdzBQRnhzVUVCQVVHeDhYRnhjWEZ4OGVGeG9hR2hvWEhoNGpKU2NsSXg0dkx6TXpMeTlBUUVCQVFFQkFRRUJBUUVCQVFFQUJFUThQRVJNUkZSSVNGUlFSRkJFVUdoUVdGaFFhSmhvYUhCb2FKakFqSGg0ZUhpTXdLeTRuSnljdUt6VTFNREExTlVCQVAwQkFRRUJBUUVCQVFFQkFRUC9DQUJFSUFDb0FJZ01CSWdBQ0VRRURFUUgveEFCOUFBRUFBd0VCQVFBQUFBQUFBQUFBQUFBQUFnTUVBUVVHQVFFQkFBQUFBQUFBQUFBQUFBQUFBQUFBQVJBQUFRUUJCUUVBQUFBQUFBQUFBQUFBQXdBQkFnUUZFQ0F3RVJKQkVRQUJBZ1FIQVFFQUFBQUFBQUFBQUFBQkFBSWdZWUVERVNGQmNaR3gwY0V6RWdFQUFBQUFBQUFBQUFBQUFBQUFBQUF3LzlvQURBTUJBQUlSQXhFQUFBRDZMSk9tdGV1amRHeEllRjNUYU5pWUJtdTdJQUEvLzlvQUNBRUNBQUVGQU9ILzJnQUlBUU1BQVFVQTRmL2FBQWdCQVFBQkJRREs1QzRDNjJWeUx1Szlma2hXTGNsMjZ6TE8rUkNGQkNnaFhTeVkvVjhJVUVLaEJvc3JZL1ZzSVZDRFJiUWd2Um9RYUxhL2RuLy8yZ0FJQVFJQ0JqOEFILy9hQUFnQkF3SUdQd0FmLzlvQUNBRUJBUVkvQUgyN1YwdFlBM0FZRFVUQy9ZOE44V2Q0OER4WjNDYUR4VVZ6WnZRZ29ubVRlaEM0eUhVSk8wT24ySC8vMlE9PSIgdHJhbnNmb3JtPSJtYXRyaXgoMC4zODQgMCAwIC0wLjM4NCAxMDYuNTkyMyA2Ni45MzIxKSI+PC9pbWFnZT48L2c+PC9nPjwvZz48Zz48ZGVmcz48cmVjdCBpZD0iU1ZHSURfMTFfIiB4PSIxMDguOTA4IiB5PSI0Ni42MDciIHRyYW5zZm9ybT0ibWF0cml4KC0wLjY2OSAtMC43NDMzIDAuNzQzMyAtMC42NjkgMTQxLjU2NzggMTcxLjIzNjUpIiB3aWR0aD0iMC4wMTMiIGhlaWdodD0iMTQuOTc0Ii8+PC9kZWZzPjxjbGlwUGF0aCBpZD0iU1ZHSURfMTJfIj48dXNlIHhsaW5rOmhyZWY9IiNTVkdJRF8xMV8iICBvdmVyZmxvdz0idmlzaWJsZSIvPjwvY2xpcFBhdGg+PGcgY2xpcC1wYXRoPSJ1cmwoI1NWR0lEXzEyXykiPjxkZWZzPjxyZWN0IGlkPSJTVkdJRF8xM18iIHg9IjEwMy4xMzYiIHk9IjQ4LjExNiIgd2lkdGg9IjExLjUyMSIgaGVpZ2h0PSIxMS45MDQiLz48L2RlZnM+PGNsaXBQYXRoIGlkPSJTVkdJRF8xNF8iPjx1c2UgeGxpbms6aHJlZj0iI1NWR0lEXzEzXyIgIG92ZXJmbG93PSJ2aXNpYmxlIi8+PC9jbGlwUGF0aD48ZyB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAxIDAgMy44MTQ2OTdlLTA2KSIgY2xpcC1wYXRoPSJ1cmwoI1NWR0lEXzE0XykiPjxpbWFnZSBvdmVyZmxvdz0idmlzaWJsZSIgd2lkdGg9IjMwIiBoZWlnaHQ9IjMxIiB4bGluazpocmVmPSJkYXRhOmltYWdlL2pwZWc7YmFzZTY0LC85ai80QUFRU2taSlJnQUJBZ0VBdXdDN0FBRC83QUFSUkhWamEza0FBUUFFQUFBQUhnQUEvKzRBSVVGa2IySmxBR1RBQUFBQUFRTUFFQU1DQXdZQUFBR1dBQUFCdndBQUFnei8yd0NFQUJBTEN3c01DeEFNREJBWER3MFBGeHNVRUJBVUd4OFhGeGNYRng4ZUZ4b2FHaG9YSGg0akpTY2xJeDR2THpNekx5OUFRRUJBUUVCQVFFQkFRRUJBUUVBQkVROFBFUk1SRlJJU0ZSUVJGQkVVR2hRV0ZoUWFKaG9hSEJvYUpqQWpIaDRlSGlNd0t5NG5KeWN1S3pVMU1EQTFOVUJBUDBCQVFFQkFRRUJBUUVCQVFQL0NBQkVJQUNJQUh3TUJJZ0FDRVFFREVRSC94QUIvQUFFQUF3RUJBQUFBQUFBQUFBQUFBQUFBQVFNRUJRSUJBUUVBQUFBQUFBQUFBQUFBQUFBQUFBQUJFQUFDQWdJQ0F3QUFBQUFBQUFBQUFBQUJBd0lFQUNBUkJSQVNFeEVBQVFJREJRa0FBQUFBQUFBQUFBQUFBUUFDRVNFREVEQlJZZEV4UVlHeEVpSkNncklTQVFBQUFBQUFBQUFBQUFBQUFBQUFBQ0QvMmdBTUF3RUFBaEVERVFBQUFPL2ZUc3EvVkZrYzdiUHNBQUEvLzlvQUNBRUNBQUVGQU52LzJnQUlBUU1BQVFVQTIvL2FBQWdCQVFBQkJRQi9aZGhHMHE3ZmxpVzJaWUJQMVlubTBoR0xXSURQank5YXhBZUl3QU8vLzlvQUNBRUNBZ1kvQUYvLzJnQUlBUU1DQmo4QVgvL2FBQWdCQVFFR1B3Q3RUWlZneGxSeldqcGJzQklIaXU2ckgxYm9wdmp3R2lNVE9FbFdPTlIzMFVKTE94NXhjZWF6dEoza3h1UC8yUT09IiB0cmFuc2Zvcm09Im1hdHJpeCgwLjM4NCAwIDAgLTAuMzg0IDEwMy4xMzYyIDYwLjAyKSI+PC9pbWFnZT48L2c+PC9nPjwvZz48bGluZWFyR3JhZGllbnQgaWQ9IlNWR0lEXzE1XyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSIxMDguNjk1OCIgeTE9IjY0LjQ4NjMiIHgyPSIxMTguODg1OSIgeTI9IjU0LjI5NjIiPjxzdG9wICBvZmZzZXQ9IjAiIHN0eWxlPSJzdG9wLWNvbG9yOiMwMDAwMDAiLz48c3RvcCAgb2Zmc2V0PSIwLjA4OTYiIHN0eWxlPSJzdG9wLWNvbG9yOiMwMDAwMDA7c3RvcC1vcGFjaXR5OjAuOTEwNCIvPjxzdG9wICBvZmZzZXQ9IjEiIHN0eWxlPSJzdG9wLWNvbG9yOiMwMDAwMDA7c3RvcC1vcGFjaXR5OjAiLz48L2xpbmVhckdyYWRpZW50Pjxwb2x5Z29uIG9wYWNpdHk9IjAuNSIgZmlsbD0idXJsKCNTVkdJRF8xNV8pIiBwb2ludHM9IjEwNi45OTksNjIuNzg4IDExMC4zOTIsNjYuMTgyIDExMS4zNzUsNjUuMTk4IDEyMC40MzMsNTYuMDY2IDExNy4zNjYsNTIuNDIxICIvPjxsaW5lYXJHcmFkaWVudCBpZD0iU1ZHSURfMTZfIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjEwMS45MTk0IiB5MT0iNTcuNzE0NCIgeDI9IjExMi4xMDk5IiB5Mj0iNDcuNTIzOSI+PHN0b3AgIG9mZnNldD0iMCIgc3R5bGU9InN0b3AtY29sb3I6IzAwMDAwMCIvPjxzdG9wICBvZmZzZXQ9IjAuMDg5NiIgc3R5bGU9InN0b3AtY29sb3I6IzAwMDAwMDtzdG9wLW9wYWNpdHk6MC45MTA0Ii8+PHN0b3AgIG9mZnNldD0iMSIgc3R5bGU9InN0b3AtY29sb3I6IzAwMDAwMDtzdG9wLW9wYWNpdHk6MCIvPjwvbGluZWFyR3JhZGllbnQ+PHBvbHlnb24gb3BhY2l0eT0iMC41IiBmaWxsPSJ1cmwoI1NWR0lEXzE2XykiIHBvaW50cz0iMTAwLjI1LDU2LjAxNyAxMDMuNjE3LDU5LjM4MyAxMTQuMjA2LDQ4Ljc5NSAxMTAuOTcxLDQ1LjI5NSAiLz48L2c+PGcgaWQ9IkJXIiBkaXNwbGF5PSJub25lIj48ZyBkaXNwbGF5PSJpbmxpbmUiPjxwYXRoIGZpbGw9IiM5Mzk1OTgiIGQ9Ik0xNDEuNjc3LDM0Ljg5Yy0yLjA4OC0wLjQyOS00LjI1LTAuNjU0LTYuNDYzLTAuNjU0Yy04LjUxNCwwLTE2LjI1OCwzLjMzMi0yMi4wMDgsOC43NmMtMC40NTEsMC40MjctMC44OSwwLjg2NS0xLjMxNiwxLjMxN2wtMTEuNzcxLDExLjc3MWwtMTEuNzctMTEuNzcxYy0wLjQyNi0wLjQ1Mi0wLjg2NS0wLjg5MS0xLjMxNy0xLjMxN2MtNS43NS01LjQyOC0xMy40OTYtOC43Ni0yMi4wMDctOC43NmMtMi4yMTUsMC00LjM3NiwwLjIyNi02LjQ2NCwwLjY1NGMtMTQuNjA0LDMtMjUuNjIxLDE1Ljk1Mi0yNS42MjEsMzEuNDMxaDAuMDE3YzAsMTUuNDU3LDEwLjk4OSwyOC4zOTYsMjUuNTY1LDMxLjQxOGMyLjEwNiwwLjQzOCw0LjI4NSwwLjY2OCw2LjUxNywwLjY2OGM4LjAwOSwwLDE1LjMzNy0yLjk1MywyMC45NjQtNy44MmwyLjY2OS0yLjY3bDAuMTU4LTAuMTU2YzAuMzg5LTAuNDI4LDAuNjI5LTAuOTk2LDAuNjI5LTEuNjIxYzAtMS4zMjgtMS4wNzctMi40MDQtMi40MDctMi40MDRjLTAuNjA4LDAtMS4xNjMsMC4yMjctMS41ODUsMC42bC0wLjIyMSwwLjIxOWwtMi41MTEsMi41MWMtNC45MzYsNC4yMjEtMTEuMjE0LDYuNTQxLTE3LjY5Niw2LjU0MWMtMS44NjQsMC0zLjcyOS0wLjE4OS01LjU0My0wLjU2NkM0Ni45MDEsOTAuNDI2LDM3Ljc1Nyw3OS4xODksMzcuNzU3LDY2LjMyaDAuMDczYzAtMTIuODk2LDkuMTYzLTI0LjEzNiwyMS43ODYtMjYuNzI5bC0wLjAwNC0wLjAxN2MxLjc3MS0wLjM1NywzLjU5MS0wLjUzOSw1LjQxMy0wLjUzOWM2Ljk3NiwwLDEzLjYyMywyLjY0NiwxOC43MTEsNy40NDljMC4zODMsMC4zNjIsMjMuMDYyLDIzLjI1NSwyMy4wNjIsMjMuMjU1bDAuMDA0LTAuMDA0bDAuMDEzLDAuMDEzbDE2LjUyOC0xNi41MjZjMy4xNDItMi44NDgsNy4zMDYtNC41ODcsMTEuODY5LTQuNTg3YzkuNzUyLDAsMTcuNjg1LDcuOTMzLDE3LjY4NSwxNy42ODVjMCw5Ljc1LTcuOTMzLDE3LjY4Mi0xNy42ODUsMTcuNjgyYy00LjMyNiwwLTguMjkzLTEuNTY0LTExLjM2OS00LjE1MmwtMi4wMTctMi4wMThsLTAuMzktMC4zOTFjLTAuNDExLTAuMzI0LTAuOTMtMC41MjEtMS40OTQtMC41MjFjLTEuMzI5LDAtMi40MDcsMS4wNzgtMi40MDcsMi40MDZjMCwwLjcxMywwLjMxMiwxLjM1LDAuODAyLDEuNzkxbC0wLjA4LTAuMDcybDIuMzM2LDIuMzQybDAuMTU4LDAuMTM1YzQuMDQ3LDMuNDA2LDkuMTg0LDUuMjgxLDE0LjQ2MSw1LjI4MWMxMi4zOTksMCwyMi40ODUtMTAuMDg2LDIyLjQ4NS0yMi40ODJjMC0xMi4zOTgtMTAuMDg2LTIyLjQ4NC0yMi40ODUtMjIuNDg0Yy01LjU4NiwwLTEwLjk0NywyLjA3MS0xNS4wOTQsNS44MzJsLTAuMDg2LDAuMDc4bC0xMy4yMDcsMTMuMjA1bC0zLjM5NS0zLjM5MmwxMS44NTMtMTEuODUzbDAuMDk3LTAuMWMwLjM1OS0wLjM4MiwwLjczNy0wLjc2LDEuMTIxLTEuMTIyYzUuMDktNC44MDQsMTEuNzM0LTcuNDQ5LDE4LjcxMy03LjQ0OWMxLjg1MSwwLDMuNywwLjE4Nyw1LjQ5OCwwLjU1NmMxMi42MjMsMi41OTMsMjEuNzg1LDEzLjgzMywyMS43ODUsMjYuNzI5YzAsMTIuODY5LTkuMTQ1LDI0LjEwNS0yMS43MzgsMjYuNzE3Yy0xLjgxNCwwLjM3Ny0zLjY4LDAuNTY2LTUuNTQ1LDAuNTY2Yy02LjQ4MSwwLTEyLjc1OS0yLjMyLTE3LjY5NS02LjU0MWwtMi41MS0yLjUxbC0wLjIyMi0wLjIxOWMtMC40MjMtMC4zNzMtMC45NzgtMC42LTEuNTg1LTAuNmMtMS4zMywwLTIuNDA2LDEuMDc2LTIuNDA2LDIuNDA0YzAsMC42MjUsMC4yMzksMS4xOTMsMC42MjksMS42MjFsMC4xNTcsMC4xNTZsMi42NjksMi42N2M1LjYyNyw0Ljg2NywxMi45NTUsNy44MiwyMC45NjMsNy44MmMyLjIzMywwLDQuNDEyLTAuMjMsNi41MTktMC42NjhjMTQuNTc1LTMuMDIxLDI1LjU2NS0xNS45NjEsMjUuNTY1LTMxLjQxOEMxNjcuMjk4LDUwLjg0MiwxNTYuMjgxLDM3Ljg5LDE0MS42NzcsMzQuODkiLz48cGF0aCBmaWxsPSIjOTM5NTk4IiBkPSJNODAuMTE4LDQ5LjY2OGMtNC4xMjQtMy43NDEtOS40NDgtNS44MDgtMTUuMDA0LTUuODN2LTAuMDAybC0wLjA1OCwwLjAwMWwtMC4wMzItMC4wMDFjLTEyLjM5OCwwLTIyLjQ4NCwxMC4wODYtMjIuNDg0LDIyLjQ4M2gwLjAxN2MwLDEyLjM5OSwxMC4wODYsMjIuNDg1LDIyLjQ4NCwyMi40ODVjNS4yNzgsMCwxMC40MTUtMS44NzcsMTQuNDYzLTUuMjgzbDAuMTU2LTAuMTMzbDIuMzM3LTIuMzQ0bC0wLjA4LDAuMDdjMC40OS0wLjQzOSwwLjgwMS0xLjA3OCwwLjgwMS0xLjc4OWMwLTEuMzI4LTEuMDc4LTIuNDA2LTIuNDA3LTIuNDA2Yy0wLjU2NCwwLTEuMDgzLDAuMTk1LTEuNDkzLDAuNTIxbC0wLjM5MSwwLjM5M0w3Ni40MSw3OS44NWMtMy4wNzYsMi41ODgtNy4wNDIsNC4xNTQtMTEuMzY5LDQuMTU0Yy05Ljc1MSwwLTE3LjY4My03LjkzNi0xNy42ODMtMTcuNjg1aDAuMDczYzAtOS43MzUsNy45MDktMTcuNjU5LDE3LjYzOS0xNy42ODJjNC41NDYsMC4wMTEsOC42OTQsMS43NDcsMTEuODIzLDQuNTg1bDIzLjIyMiwyMy4yMjVsMy40MS0zLjQxTDgwLjI4Nyw0OS44MjhMODAuMTE4LDQ5LjY2OHoiLz48L2c+PGxpbmVhckdyYWRpZW50IGlkPSJTVkdJRF8xN18iIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4MT0iMTA4LjU4MDYiIHkxPSI2NC4zODg3IiB4Mj0iMTE4Ljc3MDYiIHkyPSI1NC4xOTg2Ij48c3RvcCAgb2Zmc2V0PSIwIiBzdHlsZT0ic3RvcC1jb2xvcjojMDAwMDAwIi8+PHN0b3AgIG9mZnNldD0iMC4wODk2IiBzdHlsZT0ic3RvcC1jb2xvcjojMDAwMDAwO3N0b3Atb3BhY2l0eTowLjkxMDQiLz48c3RvcCAgb2Zmc2V0PSIxIiBzdHlsZT0ic3RvcC1jb2xvcjojMDAwMDAwO3N0b3Atb3BhY2l0eTowIi8+PC9saW5lYXJHcmFkaWVudD48cG9seWdvbiBkaXNwbGF5PSJpbmxpbmUiIG9wYWNpdHk9IjAuNSIgZmlsbD0idXJsKCNTVkdJRF8xN18pIiBwb2ludHM9IjEwNi44ODQsNjIuNjkgMTEwLjI3OCw2Ni4wODYgMTExLjI2MSw2NS4xMDIgMTIwLjMxOSw1NS45NyAxMTcuMjUxLDUyLjMyNCAiLz48bGluZWFyR3JhZGllbnQgaWQ9IlNWR0lEXzE4XyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSIxMDEuODA1MiIgeTE9IjU3LjYxODIiIHgyPSIxMTEuOTk1NiIgeTI9IjQ3LjQyNzciPjxzdG9wICBvZmZzZXQ9IjAiIHN0eWxlPSJzdG9wLWNvbG9yOiMwMDAwMDAiLz48c3RvcCAgb2Zmc2V0PSIwLjA4OTYiIHN0eWxlPSJzdG9wLWNvbG9yOiMwMDAwMDA7c3RvcC1vcGFjaXR5OjAuOTEwNCIvPjxzdG9wICBvZmZzZXQ9IjEiIHN0eWxlPSJzdG9wLWNvbG9yOiMwMDAwMDA7c3RvcC1vcGFjaXR5OjAiLz48L2xpbmVhckdyYWRpZW50Pjxwb2x5Z29uIGRpc3BsYXk9ImlubGluZSIgb3BhY2l0eT0iMC41IiBmaWxsPSJ1cmwoI1NWR0lEXzE4XykiIHBvaW50cz0iMTAwLjEzNiw1NS45MiAxMDMuNTAyLDU5LjI4NiAxMTQuMDkxLDQ4LjY5OCAxMTAuODU3LDQ1LjE5OCAiLz48L2c+PGcgaWQ9InJldmVyc2UiIGRpc3BsYXk9Im5vbmUiPjxwYXRoIGRpc3BsYXk9ImlubGluZSIgZmlsbD0iIzkzOTU5OCIgZD0iTTAsMHYxMzMuMDY1aDIwMC40NjNWMEgweiBNMTAwLjExNSw3Ni40NDdMNzYuODkzLDUzLjIyM2MtMy4xMjktMi44MzgtNy4yNzctNC41NzQtMTEuODIzLTQuNTg1Yy05LjczLDAuMDIyLTE3LjYzOSw3Ljk0Ni0xNy42MzksMTcuNjgyaC0wLjA3M2MwLDkuNzQ5LDcuOTMyLDE3LjY4NSwxNy42ODMsMTcuNjg1YzQuMzI3LDAsOC4yOTMtMS41NjYsMTEuMzY5LTQuMTU0bDIuMDE3LTIuMDE2bDAuMzkxLTAuMzkzYzAuNDEtMC4zMjYsMC45MjktMC41MjEsMS40OTMtMC41MjFjMS4zMjksMCwyLjQwNywxLjA3OCwyLjQwNywyLjQwNmMwLDAuNzExLTAuMzExLDEuMzUtMC44MDEsMS43ODlsMC4wOC0wLjA3bC0yLjMzNywyLjM0NGwtMC4xNTYsMC4xMzNjLTQuMDQ4LDMuNDA2LTkuMTg1LDUuMjgzLTE0LjQ2Myw1LjI4M2MtMTIuMzk4LDAtMjIuNDg0LTEwLjA4Ni0yMi40ODQtMjIuNDg1SDQyLjU0YzAtMTIuMzk3LDEwLjA4Ni0yMi40ODMsMjIuNDg0LTIyLjQ4M2wwLjAzMiwwLjAwMWwwLjA1OC0wLjAwMXYwLjAwMmM1LjU1NiwwLjAyMiwxMC44OCwyLjA4OSwxNS4wMDQsNS44M2wwLjE2OSwwLjE2bDIzLjIzOCwyMy4yMDlMMTAwLjExNSw3Ni40NDd6IE0xNDEuNzMzLDk3LjczOGMtMi4xMDYsMC40MzgtNC4yODUsMC42NjgtNi41MTksMC42NjhjLTguMDA4LDAtMTUuMzM2LTIuOTUzLTIwLjk2My03LjgybC0yLjY2OS0yLjY3bC0wLjE1Ny0wLjE1NmMtMC4zOS0wLjQyOC0wLjYyOS0wLjk5Ni0wLjYyOS0xLjYyMWMwLTEuMzI4LDEuMDc2LTIuNDA0LDIuNDA2LTIuNDA0YzAuNjA3LDAsMS4xNjIsMC4yMjcsMS41ODUsMC42bDAuMjIyLDAuMjE5bDIuNTEsMi41MWM0LjkzNyw0LjIyMSwxMS4yMTQsNi41NDEsMTcuNjk1LDYuNTQxYzEuODY1LDAsMy43My0wLjE4OSw1LjU0NS0wLjU2NmMxMi41OTQtMi42MTEsMjEuNzM4LTEzLjg0OCwyMS43MzgtMjYuNzE3YzAtMTIuODk2LTkuMTYyLTI0LjEzNi0yMS43ODUtMjYuNzI5Yy0xLjc5OC0wLjM2OS0zLjY0Ny0wLjU1Ni01LjQ5OC0wLjU1NmMtNi45NzksMC0xMy42MjMsMi42NDYtMTguNzEzLDcuNDQ5Yy0wLjM4NCwwLjM2Mi0wLjc2MiwwLjc0LTEuMTIxLDEuMTIybC0wLjA5NywwLjFMMTAzLjQzMSw1OS41NmwzLjM5NSwzLjM5MmwxMy4yMDctMTMuMjA1bDAuMDg2LTAuMDc4YzQuMTQ2LTMuNzYxLDkuNTA4LTUuODMyLDE1LjA5NC01LjgzMmMxMi4zOTksMCwyMi40ODUsMTAuMDg2LDIyLjQ4NSwyMi40ODRjMCwxMi4zOTYtMTAuMDg2LDIyLjQ4Mi0yMi40ODUsMjIuNDgyYy01LjI3NywwLTEwLjQxNC0xLjg3NS0xNC40NjEtNS4yODFsLTAuMTU4LTAuMTM1bC0yLjMzNi0yLjM0MmwwLjA4LDAuMDcyYy0wLjQ5LTAuNDQxLTAuODAyLTEuMDc4LTAuODAyLTEuNzkxYzAtMS4zMjgsMS4wNzgtMi40MDYsMi40MDctMi40MDZjMC41NjQsMCwxLjA4MywwLjE5NywxLjQ5NCwwLjUyMWwwLjM5LDAuMzkxbDIuMDE3LDIuMDE4YzMuMDc2LDIuNTg4LDcuMDQzLDQuMTUyLDExLjM2OSw0LjE1MmM5Ljc1MiwwLDE3LjY4NS03LjkzMiwxNy42ODUtMTcuNjgyYzAtOS43NTItNy45MzMtMTcuNjg1LTE3LjY4NS0xNy42ODVjLTQuNTYzLDAtOC43MjgsMS43MzktMTEuODY5LDQuNTg3bC0xNi41MjgsMTYuNTI2bC0wLjAxMy0wLjAxM2wtMC4wMDQsMC4wMDRjMCwwLTIyLjY4LTIyLjg5My0yMy4wNjItMjMuMjU1Yy01LjA4OC00LjgwNC0xMS43MzUtNy40NDktMTguNzExLTcuNDQ5Yy0xLjgyMiwwLTMuNjQyLDAuMTgyLTUuNDEzLDAuNTM5bDAuMDA0LDAuMDE3QzQ2Ljk5Myw0Mi4xODUsMzcuODMsNTMuNDI1LDM3LjgzLDY2LjMyaC0wLjA3M2MwLDEyLjg2OSw5LjE0NCwyNC4xMDUsMjEuNzM5LDI2LjcxN2MxLjgxNCwwLjM3NywzLjY3OSwwLjU2Niw1LjU0MywwLjU2NmM2LjQ4MiwwLDEyLjc2LTIuMzIsMTcuNjk2LTYuNTQxbDIuNTExLTIuNTFsMC4yMjEtMC4yMTljMC40MjItMC4zNzMsMC45NzctMC42LDEuNTg1LTAuNmMxLjMzLDAsMi40MDcsMS4wNzYsMi40MDcsMi40MDRjMCwwLjYyNS0wLjI0LDEuMTkzLTAuNjI5LDEuNjIxbC0wLjE1OCwwLjE1NmwtMi42NjksMi42N2MtNS42MjcsNC44NjctMTIuOTU1LDcuODItMjAuOTY0LDcuODJjLTIuMjMyLDAtNC40MTEtMC4yMy02LjUxNy0wLjY2OEM0My45NDYsOTQuNzE3LDMyLjk1Nyw4MS43NzcsMzIuOTU3LDY2LjMySDMyLjk0YzAtMTUuNDc5LDExLjAxNy0yOC40MzEsMjUuNjIxLTMxLjQzMWMyLjA4OC0wLjQyOSw0LjI0OS0wLjY1NCw2LjQ2NC0wLjY1NGM4LjUxMSwwLDE2LjI1NywzLjMzMiwyMi4wMDcsOC43NmMwLjQ1MiwwLjQyNywwLjg5MSwwLjg2NSwxLjMxNywxLjMxN2wxMS43NywxMS43NzFsMTEuNzcxLTExLjc3MWMwLjQyNy0wLjQ1MiwwLjg2NS0wLjg5MSwxLjMxNi0xLjMxN2M1Ljc1LTUuNDI4LDEzLjQ5NC04Ljc2LDIyLjAwOC04Ljc2YzIuMjEzLDAsNC4zNzUsMC4yMjYsNi40NjMsMC42NTRjMTQuNjA0LDMsMjUuNjIxLDE1Ljk1MiwyNS42MjEsMzEuNDMxQzE2Ny4yOTgsODEuNzc3LDE1Ni4zMDgsOTQuNzE3LDE0MS43MzMsOTcuNzM4eiIvPjwvZz48L3N2Zz4=" -}},{}],6:[function(t,e,i){!function(){"use strict";t("jquery"),t("jquery-ui");var i=t("d3"),n=t("filesaver.js"),r=t("./axisgroup.js"),s=t("./dataloader.js"),a=t("./datamanager.js"),o=t("./utils.js"),l=t("./htmlnotes.json"),u=t("./images.json");!function(i){"object"==typeof e&&"object"==typeof e.exports?e.exports=i(t("jquery"),window,document):i($,window,document)}(function(t,e,c,h){var d=function(e,i){var n=t(e);n.phenogrid(i)};e.Phenogrid={createPhenogridForElement:d},t.widget("ui.phenogrid",{config:{serverURL:"https://monarchinitiative.org",gridSkeletonData:{},selectedCalculation:0,selectedSort:"Frequency",messaging:{misconfig:"Please fix your config to have at least one target group.",gridSkeletonDataError:"No phenotypes to compare.",noAssociatedGenotype:"This gene has no associated genotypes.",noSimSearchMatchForExpandedGenotype:"No similarity matches found between the provided phenotypes and expanded genotypes.",noSimSearchMatch:"No similarity matches found for {%groupName%} based on the provided phenotypes."},gridSkeletonDataVendor:"",owlSimFunction:"",targetSpecies:"",searchResultLimit:100,geneList:[]},internalOptions:{invertAxis:!1,simSearchQuery:{URL:"/simsearch/phenotype",inputItemsString:"input_items=",targetSpeciesString:"&target_species=",limitString:"&limit"},compareQuery:{URL:"/compare"},monarchInitiativeText:"Powered by The Monarch Initiative",unmatchedButtonLabel:"Unmatched Phenotypes",optionsBtnText:"Options",gridTitle:"Phenotype Similarity Comparison",singleTargetModeTargetLengthLimit:30,sourceLengthLimit:30,multiTargetsModeTargetLengthLimit:10,targetLabelCharLimit:23,ontologyDepth:10,ontologyDirection:"OUTGOING",ontologyRelationship:"subClassOf",ontologyQuery:"/neighborhood/",ontologyTreeAmounts:1,targetGroupItemExpandLimit:5,unstableTargetGroupItemPrefix:["MONARCH:","_:",":.well-known"],colorDomains:[0,.2,.4,.6,.8,1],colorRanges:["rgb(237,248,177)","rgb(199,233,180)","rgb(127,205,187)","rgb(65,182,196)","rgb(29,145,192)","rgb(34,94,168)"],minimap:{x:112,y:75,width:100,height:100,bgColor:"#fff",borderColor:"#666",borderThickness:2,miniCellSize:2,shadedAreaBgColor:"#666",shadedAreaOpacity:.5},scrollbar:{barToGridMargin:20,barThickness:1,barColor:"#ccc",sliderThickness:8,sliderColor:"#999"},targetGroupDividerLine:{color:"#EA763B",thickness:1,rotatedDividerLength:150},gridRegion:{x:240,y:200,cellPad:19,cellSize:12,rowLabelOffset:25,colLabelOffset:20,scoreOffset:5},gradientRegion:{width:240,height:5},optionsControls:{left:30,top:35,defaultButtonWidth:75},phenotypeSort:["Alphabetic","Frequency and Rarity","Frequency"],similarityCalculation:[{label:"Similarity",calc:0,high:"Max",low:"Min"},{label:"Ratio (q)",calc:1,high:"More Similar",low:"Less Similar"},{label:"Uniqueness",calc:2,high:"Highest",low:"Lowest"},{label:"Ratio (t)",calc:3,high:"More Similar",low:"Less Similar"}]},_destroy:function(){this.element.empty()},_create:function(){if(this.configoptions="undefined"!=typeof configoptions?configoptions:{},this.state=t.extend({},this.internalOptions,this.config,this.configoptions,this.options),this.state.targetGroupList=[],this.state.initialTargetGroupLoadList=[],this.state.selectedCompareTargetGroup=[],this._createPhenogridContainer(),this._showLoadingSpinner(),this.state.gridSkeletonData.xAxis.length>0&&this.state.gridSkeletonData.yAxis.length>0){"undefined"!=typeof this.state.gridSkeletonData.title&&""!==this.state.gridSkeletonData.title&&null!==this.state.gridSkeletonData.title&&(this.state.gridTitle=this.state.gridSkeletonData.title),this._parseGridSourceList();var e=this;this.state.asyncDataLoadingCallback=function(){e._asyncDataLoadingCB(e)},"IMPC"===this.state.gridSkeletonDataVendor?this._initGridSkeletonDataForVendor():"compare"===this.state.owlSimFunction&&0!==this.state.geneList.length?this._initCompare():"search"===this.state.owlSimFunction&&""!==this.state.targetSpecies?this._initSearch():this._initGridSkeletonData()}else this._showGridSkeletonDataErrorMsg()},_parseGridSourceList:function(){for(var t=[],e=0;e
'),this.element.append(this.state.pgContainer)},_showLoadingSpinner:function(){var e=t('
Loading Phenogrid Widget...
');e.appendTo(this.state.pgContainer)},_asyncDataLoadingCB:function(t){t.state.dataManager=new a(t.state.dataLoader),"compare"!==t.state.owlSimFunction&&t._updateSelectedCompareTargetGroup(),t.state.pgContainer.html(""),"compare"===t.state.owlSimFunction&&this.state.dataLoader.groupsNoMatch.length>0?t._showGroupsNoMatch():t._createDisplay()},_updateSelectedCompareTargetGroup:function(){for(var t=0;te)&&(this.state.selectedCompareTargetGroup.splice(t,1),t--)}},_updateTargetAxisRenderingGroup:function(t){var e=[];e=this.state.newTargetGroupItems[t]?this.state.dataManager.reorderedTargetEntriesNamedArray[t]:this.state.removedTargetGroupItems[t]?this.state.dataManager.getReorderedTargetEntriesNamedArray(t):this.state.reactivateTargetGroupItems[t]?this.state.dataManager.getReorderedTargetEntriesNamedArray(t):this.state.dataManager.getData("target",t);var i=this.state.targetAxis.getRenderStartPos(),n=this.state.targetAxis.getRenderEndPos();this.state.targetAxis=new r(i,n,e),this._setAxisRenderers()},_createAxisRenderingGroups:function(){var t=[],e=[];if(this._isCrossComparisonView()){e=this.state.dataManager.createCombinedSourceList(this.state.selectedCompareTargetGroup),this.state.sourceDisplayLimit=Object.keys(e).length;for(var i=[],n=[],s=0;sthis.state.singleTargetModeTargetLengthLimit&&(this.state.targetDisplayLimit=this.state.singleTargetModeTargetLengthLimit)}this.state.sourceDisplayLimit>this.state.sourceLengthLimit&&(this.state.sourceDisplayLimit=this.state.sourceLengthLimit),this.state.sourceAxis=new r(0,this.state.sourceDisplayLimit,e),this.state.sourceAxis.sort(this.state.selectedSort),this.state.targetAxis=new r(0,this.state.targetDisplayLimit,t),this._setAxisRenderers()},_setAxisRenderers:function(){this.state.invertAxis?(this.state.xAxisRender=this.state.sourceAxis,this.state.yAxisRender=this.state.targetAxis):(this.state.xAxisRender=this.state.targetAxis,this.state.yAxisRender=this.state.sourceAxis)},_createDisplay:function(){1===this.state.initialTargetGroupLoadList.length?0===this.state.dataLoader.groupsNoMatch.length?this._createDisplayComponents():this._showGroupsNoMatch():this.state.initialTargetGroupLoadList.length>1?this.state.dataLoader.groupsNoMatch.length>0?this.state.dataLoader.groupsNoMatch.length===this.state.initialTargetGroupLoadList.length?this._showGroupsNoMatch():(this._showGroupsNoMatch(),this._createDisplayComponents()):this._createDisplayComponents():this._showConfigErrorMsg()},_showConfigErrorMsg:function(){this.state.pgContainer.html(this.state.messaging.misconfig)},_createDisplayComponents:function(){this._createAxisRenderingGroups(),this._createColorScalePerSimilarityCalculation(),this._createTooltipStub(),this._createSvgComponents(),this._createUnmatchedSources(),this.state.btnPadding=this.state.gridRegion.x-t("#"+this.state.pgInstanceId+"_unmatched_btn").width()-this.state.gridRegion.rowLabelOffset,this._positionUnmatchedSources(),this._createPhenogridControls(),this._positionPhenogridControls(),this._togglePhenogridControls(),this._scalableCutoffGroupLabel(),this._setSvgSize()},_updateDisplay:function(){this.element.find("#"+this.state.pgInstanceId+"_svg").remove(),this._createSvgComponents(),this.state.btnPadding=this.state.gridRegion.x-t("#"+this.state.pgInstanceId+"_unmatched_btn").width()-this.state.gridRegion.rowLabelOffset,this._positionUnmatchedSources(),this._positionPhenogridControls(),this._setSvgSize()},_createSvgComponents:function(){this._createSvgContainer(),this._createTargetGroupLabels(),this._createNavigation(),this._createGrid(),this._createScoresTipIcon(),this._addGridTitle(),this._createGradientLegend(),this._createTargetGroupDividerLines(),this._createMonarchInitiativeRecognition(),this._relinkTooltip()},_createSvgContainer:function(){this.state.pgContainer.append(''),this.state.svg=i.select("#"+this.state.pgInstanceId+"_svg_group").style("font-family","Verdana, Geneva, sans-serif")},_showGroupsNoMatch:function(){for(var e="",i="",n=0;n2&&(r=","+r),this.state.dataLoader.groupsNoMatch.length>1){var s=i.lastIndexOf(", ");i=i.slice(0,s)+i.slice(s).replace(", ",r)}e=this.state.messaging.noSimSearchMatch.replace(/{%groupName%}/,i)+"
",t('
'+e+"
").insertBefore(this.state.pgContainer)},_addLogoImage:function(){var i=this.state.gridRegion,n=(i.x+this.state.singleTargetModeTargetLengthLimit*i.cellPad+i.rowLabelOffset)/2,r=this;this.state.svg.append("svg:image").attr("xlink:href",u.logo).attr("x",n+t("#"+this.state.pgInstanceId+"_monarchinitiative_text")[0].getBoundingClientRect().width+5).attr("y",this.state.gridRegion.y+this._gridHeight()+74).attr("id",this.state.pgInstanceId+"_logo").attr("class","pg_cursor_pointer").attr("width",40).attr("height",26).on("click",function(){e.open(r.state.serverURL,"_blank")})},_createTargetGroupLabels:function(){if("compare"!==this.state.owlSimFunction){var e=this,i=this.state.selectedCompareTargetGroup.map(function(t){return t.groupName}),n=[],r=[];if(this._isCrossComparisonView())for(var s=0,a=[],o=0;o=e.state.searchResultLimit&&(r=">"+r));return i[n]+" ("+r+")"}).style("font-size","11px").attr("text-anchor",function(t,e){return 0===e?"middle":"start"}).on("click",function(n,r){var s=t("#"+e.state.pgInstanceId+"_targetGroup"),a=s.children();if(e.state.taxonExpanded){e.state.taxonExpanded=!1;for(var o=0;on){var r=Math.floor(this.state.selectedCompareTargetGroup[e].groupName.length*(n/i));t("#"+this.state.pgInstanceId+"_groupName_"+(e+1)).text(this.state.selectedCompareTargetGroup[e].groupName.substring(0,r))}else 0===e&&t("#"+this.state.pgInstanceId+"_groupName_"+(e+1)).attr("x",this.state.gridRegion.x+(this.state.targetLengthPerGroup[e].targetLength*this.state.gridRegion.cellPad-(this.state.gridRegion.cellPad-this.state.gridRegion.cellSize)/2)/2)}},_createNavigation:function(){var t=this.state.xAxisRender.groupLength(),e=this.state.yAxisRender.groupLength(),i=this.state.minimap.width,n=this.state.minimap.height;this.state.invertAxis?this._isCrossComparisonView()?t>this.state.sourceLengthLimit&&(this._createMinimap(i,n),this._createScrollbars(!0,!1)):t>this.state.sourceLengthLimit?e>this.state.singleTargetModeTargetLengthLimit?(this._createMinimap(i,n),this._createScrollbars(!0,!0)):(n*=e/this.state.singleTargetModeTargetLengthLimit,this._createMinimap(i,n),this._createScrollbars(!0,!1)):e>this.state.singleTargetModeTargetLengthLimit&&(i*=t/this.state.sourceLengthLimit,this._createMinimap(i,n),this._createScrollbars(!1,!0)):this._isCrossComparisonView()?e>this.state.sourceLengthLimit&&(this._createMinimap(i,n),this._createScrollbars(!1,!0)):e>this.state.sourceLengthLimit?t>this.state.singleTargetModeTargetLengthLimit?(this._createMinimap(i,n),this._createScrollbars(!0,!0)):(i*=t/this.state.singleTargetModeTargetLengthLimit,this._createMinimap(i,n),this._createScrollbars(!1,!0)):t>this.state.singleTargetModeTargetLengthLimit&&(n*=e/this.state.sourceLengthLimit,this._createMinimap(i,n),this._createScrollbars(!0,!1))},_createMinimap:function(t,e){var n=this.state.xAxisRender.displayLength(),r=this.state.yAxisRender.displayLength(),s=this.state.xAxisRender.groupLength(),a=this.state.yAxisRender.groupLength(),o=this.state.minimap.x,l=this.state.minimap.y,u=this.state.svg.append("g").attr("id",this.state.pgInstanceId+"_navigator");u.append("rect").attr("x",o).attr("y",l).attr("id",this.state.pgInstanceId+"_globalview").attr("width",t+2*this.state.minimap.borderThickness).attr("height",e+2*this.state.minimap.borderThickness).style("fill",this.state.minimap.bgColor).style("stroke",this.state.minimap.borderColor).style("stroke-width",this.state.minimap.borderThickness),this._createSmallScales(t,e);var c=this.state.xAxisRender.groupEntries(),h=this.state.yAxisRender.groupEntries();if("compare"===this.state.owlSimFunction)var d=this.state.dataManager.buildMatrix(c,h,!0,this.state.owlSimFunction);else var d=this.state.dataManager.buildMatrix(c,h,!0);var p=this.state.svg.select("#"+this.state.pgInstanceId+"_navigator").append("g").attr("id",this.state.pgInstanceId+"_mini_cells_container").attr("transform","translate("+o+","+l+")"),f=this,g=(p.selectAll(".mini_cell").data(d,function(t){return t.source_id+t.target_id}).enter().append("rect").attr("class","mini_cell").attr("x",function(t){return f.state.smallXScale(t.target_id)+f.state.minimap.miniCellSize/2}).attr("y",function(t){return f.state.smallYScale(t.source_id)+f.state.minimap.miniCellSize/2}).attr("width",this.state.minimap.miniCellSize).attr("height",this.state.minimap.miniCellSize).attr("fill",function(t){var e=f.state.dataManager.getCellDetail(t.source_id,t.target_id,t.targetGroup);return f._getCellColor(e.value[f.state.selectedCalculation])}),this.state.yAxisRender.itemAt(0).id),m=this.state.xAxisRender.itemAt(0).id,v=this.state.smallXScale(m),y=this.state.smallYScale(g),_=e*(r/a),b=t*(n/s);this.state.highlightRect=this.state.svg.select("#"+this.state.pgInstanceId+"_navigator").append("rect").attr("x",o+v).attr("y",l+y).attr("id",this.state.pgInstanceId+"_navigator_shaded_area").attr("height",_+2*this.state.minimap.borderThickness).attr("width",b+2*this.state.minimap.borderThickness).attr("class","pg_draggable").style("fill",this.state.minimap.shadedAreaBgColor).style("opacity",this.state.minimap.shadedAreaOpacity).call(i.behavior.drag().on("dragstart",f._dragstarted).on("drag",function(){f._crossHairsOff();var s=parseFloat(i.select(this).attr("x"))+i.event.dx,a=parseFloat(i.select(this).attr("y"))+i.event.dy;_===e&&(a=l),b===t&&(s=o),o>s&&(s=o),l>a&&(a=l),s+b>o+t&&(s=o+t-b),a+_>l+e&&(a=l+e-_),f.state.svg.select("#"+f.state.pgInstanceId+"_navigator_shaded_area").attr("x",s).attr("y",a),f.state.svg.select("#"+f.state.pgInstanceId+"_horizontal_scrollbar_slider").attr("x",function(){var e=(s-o)/t,i=f._gridWidth();return f.state.gridRegion.x+i*e}),f.state.svg.select("#"+f.state.pgInstanceId+"_vertical_scrollbar_slider").attr("y",function(){var t=(a-l)/e,i=f._gridHeight();return f.state.gridRegion.y+i*t}),s-=o,a-=l;var u=f._invertDragPosition(f.state.smallXScale,s)+n,c=f._invertDragPosition(f.state.smallYScale,a)+r;f._updateGrid(u,c)}).on("dragend",f._dragended))},_dragstarted:function(){i.select(this).classed("pg_dragging",!0)},_dragended:function(){i.select(this).classed("pg_dragging",!1)},_createScrollbars:function(t,e){var n=this,r=this.state.scrollbar,s=r.barToGridMargin,a=r.barThickness,o=r.barColor,l=r.sliderThickness,u=r.sliderColor;this._createScrollbarScales(this._gridWidth(),this._gridHeight());var c=this.state.xAxisRender.displayLength(),h=this.state.xAxisRender.groupLength(),d=this.state.xAxisRender.itemAt(0).id,p=this.state.gridRegion.x,f=this.state.horizontalScrollbarScale(d),g=this._gridWidth()*(c/h),m=this.state.yAxisRender.displayLength(),v=this.state.yAxisRender.groupLength(),y=this.state.yAxisRender.itemAt(0).id,_=this.state.gridRegion.y,b=this.state.verticalScrollbarScale(y),x=this._gridHeight()*(m/v);if(t===!0){var M=this.state.svg.append("g").attr("id",this.state.pgInstanceId+"_horizontal_scrollbar_group");M.append("line").attr("x1",this.state.gridRegion.x).attr("y1",this.state.gridRegion.y+this._gridHeight()+s).attr("x2",this.state.gridRegion.x+this._gridWidth()).attr("y2",this.state.gridRegion.y+this._gridHeight()+s).attr("id",this.state.pgInstanceId+"_horizontal_scrollbar").style("stroke",o).style("stroke-width",a),M.append("rect").attr("x",p+f).attr("y",this.state.gridRegion.y+this._gridHeight()+s-l/2).attr("id",this.state.pgInstanceId+"_horizontal_scrollbar_slider").attr("height",l).attr("width",g).style("fill",u).attr("class","pg_draggable").call(i.behavior.drag().on("dragstart",n._dragstarted).on("drag",function(){n._crossHairsOff();var t=parseFloat(i.select(this).attr("x"))+i.event.dx;p>t&&(t=p),t+g>n.state.gridRegion.x+n._gridWidth()&&(t=n.state.gridRegion.x+n._gridWidth()-g),n.state.svg.select("#"+n.state.pgInstanceId+"_horizontal_scrollbar_slider").attr("x",t),n.state.svg.select("#"+n.state.pgInstanceId+"_navigator_shaded_area").attr("x",function(){var e=(t-p)/n._gridWidth(),r=parseFloat(i.select("#"+n.state.pgInstanceId+"_globalview").attr("width"))-2*n.state.minimap.borderThickness;return n.state.minimap.x+r*e}),t-=p;var e=n._invertDragPosition(n.state.horizontalScrollbarScale,t)+c;n._updateHorizontalGrid(e)}).on("dragend",n._dragended))}if(e===!0){var w=this.state.svg.append("g").attr("id",this.state.pgInstanceId+"_vertical_scrollbar_group");w.append("line").attr("x1",this._positionVerticalScrollbarLine(l,s)).attr("y1",this.state.gridRegion.y).attr("x2",this._positionVerticalScrollbarLine(l,s)).attr("y2",this.state.gridRegion.y+this._gridHeight()).attr("id",this.state.pgInstanceId+"_vertical_scrollbar").style("stroke",o).style("stroke-width",a),w.append("rect").attr("x",this._positionVerticalScrollbarRect(l,s)).attr("y",_+b).attr("id",this.state.pgInstanceId+"_vertical_scrollbar_slider").attr("height",x).attr("width",l).style("fill",u).attr("class","pg_draggable").call(i.behavior.drag().on("dragstart",n._dragstarted).on("drag",function(){n._crossHairsOff();var t=parseFloat(i.select(this).attr("y"))+i.event.dy;_>t&&(t=_),t+x>n.state.gridRegion.y+n._gridHeight()&&(t=n.state.gridRegion.y+n._gridHeight()-x),n.state.svg.select("#"+n.state.pgInstanceId+"_vertical_scrollbar_slider").attr("y",t),n.state.svg.select("#"+n.state.pgInstanceId+"_navigator_shaded_area").attr("y",function(){var e=(t-_)/n._gridHeight(),r=parseFloat(i.select("#"+n.state.pgInstanceId+"_globalview").attr("height"))-2*n.state.minimap.borderThickness;return n.state.minimap.y+r*e}),t-=_;var e=n._invertDragPosition(n.state.verticalScrollbarScale,t)+m;n._updateVerticalGrid(e)}).on("dragend",n._dragended))}},_positionVerticalScrollbarLine:function(t,e){var i;return i=this._isCrossComparisonView()?this.state.gridRegion.x+this.state.multiTargetsModeTargetLengthLimit*this.state.selectedCompareTargetGroup.length*this.state.gridRegion.cellPad-t/2+e:this.state.gridRegion.x+this.state.singleTargetModeTargetLengthLimit*this.state.gridRegion.cellPad-t/2+e},_positionVerticalScrollbarRect:function(t,e){var i;return i=this._isCrossComparisonView()?this.state.gridRegion.x+this.state.multiTargetsModeTargetLengthLimit*this.state.selectedCompareTargetGroup.length*this.state.gridRegion.cellPad+e-t:this.state.gridRegion.x+this.state.singleTargetModeTargetLengthLimit*this.state.gridRegion.cellPad+e-t},_createScrollbarScales:function(t,e){var n=this.state.yAxisRender.groupIDs(),r=this.state.xAxisRender.groupIDs();this.state.verticalScrollbarScale=i.scale.ordinal().domain(n.map(function(t){return t})).rangePoints([0,e]),this.state.horizontalScrollbarScale=i.scale.ordinal().domain(r.map(function(t){return t})).rangePoints([0,t])},_setSvgSize:function(){var t;t=this._isCrossComparisonView()?this.state.gridRegion.x+this.state.multiTargetsModeTargetLengthLimit*this.state.selectedCompareTargetGroup.length*this.state.gridRegion.cellPad+this.state.gridRegion.rowLabelOffset+this.state.btnPadding:this.state.gridRegion.x+this.state.singleTargetModeTargetLengthLimit*this.state.gridRegion.cellPad+this.state.gridRegion.rowLabelOffset+this.state.btnPadding,i.select("#"+this.state.pgInstanceId+"_svg").attr("width",t).attr("height",this.state.gridRegion.y+this._gridHeight()+100)},_togglePhenogridControls:function(){var e=this;t("#"+this.state.pgInstanceId+"_slide_btn").click(function(){t(this).hasClass("pg_slide_open")||(t("#"+e.state.pgInstanceId+"_controls_options").fadeIn(),t(this).addClass("pg_slide_open"))}),t("#"+this.state.pgInstanceId+"_controls_close").click(function(){t("#"+e.state.pgInstanceId+"_controls_options").fadeOut(),t("#"+e.state.pgInstanceId+"_slide_btn").removeClass("pg_slide_open")})},_toggleUnmatchedSources:function(){var e=this;t("#"+this.state.pgInstanceId+"_unmatched_btn").click(function(){t(this).hasClass("pg_unmatched_open")||(t("#"+e.state.pgInstanceId+"_unmatched_list").fadeIn(),t(this).addClass("pg_unmatched_open"))}),t("#"+this.state.pgInstanceId+"_unmatched_close").click(function(){t("#"+e.state.pgInstanceId+"_unmatched_list").fadeOut(),t("#"+e.state.pgInstanceId+"_unmatched_btn").removeClass("pg_unmatched_open")})},_crossHairsOff:function(){this.state.svg.selectAll(".pg_focusLine").remove()},_crossHairsOn:function(t,e,i){var n=this.state.xAxisRender.getScale(),r=n(t),s=this.state.gridRegion,a=s.x+r*s.cellPad+5,o=s.y+e*s.cellPad+5;"vertical"===i?this._createFocusLineVertical(a,s.y,a,s.y+this._gridHeight()):"horizontal"===i?this._createFocusLineHorizontal(s.x,o,s.x+this._gridWidth(),o):(this._createFocusLineVertical(a,s.y,a,s.y+s.cellPad*e),this._createFocusLineVertical(a,s.y+s.cellPad*e+s.cellSize,a,s.y+this._gridHeight()),this._createFocusLineHorizontal(s.x,o,s.x+s.cellPad*r,o),this._createFocusLineHorizontal(s.x+s.cellPad*r+s.cellSize,o,s.x+this._gridWidth(),o))},_createFocusLineVertical:function(t,e,i,n){this.state.svg.append("line").attr("class","pg_focusLine").attr("x1",t).attr("y1",e).attr("x2",i).attr("y2",n)},_createFocusLineHorizontal:function(t,e,i,n){this.state.svg.append("line").attr("class","pg_focusLine").attr("x1",t).attr("y1",e).attr("x2",i).attr("y2",n)},_mouseover:function(e,i){this._showEffectsOnMouseover(e,i);var n;"cell"===i.type?n=this.state.dataManager.getCellDetail(i.source_id,i.target_id,i.targetGroup):e.classList.contains("pg_targetGroup_name")?(n=new Array,n.type="targetgroup",n.name=i):n=i,this._createHoverBox(n),this._showTooltip(t("#"+this.state.pgInstanceId+"_tooltip"),e,i)},_mouseout:function(){this._removeMatchingHighlight(),this._crossHairsOff()},_showEffectsOnMouseover:function(t,e){if(t.classList.contains("pg_targetGroup_name"))i.select("#"+t.id).classed("pg_active",!0);else if("cell"===e.type)i.select("#"+this.state.pgInstanceId+"_grid_row_"+e.ypos+" text").classed("pg_active",!0),i.select("#"+this.state.pgInstanceId+"_grid_col_"+e.xpos+" text").classed("pg_active",!0),i.select("#"+this.state.pgInstanceId+"_cell_"+e.ypos+"_"+e.xpos).classed("pg_rowcolmatch",!0),this._crossHairsOn(e.target_id,e.ypos,"both");else if("phenotype"===e.type)if(this._createMatchingHighlight(t,e),this.state.invertAxis){var n=this.state.xAxisRender.getScale(),r=n(e.id);this._crossHairsOn(e.id,r,"vertical")}else{var s=this.state.yAxisRender.getScale(),a=s(e.id);this._crossHairsOn(e.id,a,"horizontal")}else if(this._createMatchingHighlight(t,e),this.state.invertAxis){var s=this.state.yAxisRender.getScale(),a=s(e.id);this._crossHairsOn(e.id,a,"horizontal")}else{var n=this.state.xAxisRender.getScale(),r=n(e.id);this._crossHairsOn(e.id,r,"vertical")}},_removeMatchingHighlight:function(){i.selectAll(".row text").classed("pg_active",!1),i.selectAll(".pg_targetGroup_name").classed("pg_active",!1),i.selectAll(".column text").classed("pg_active",!1),i.selectAll(".row text").classed("pg_related_active",!1),i.selectAll(".column text").classed("pg_related_active",!1),i.selectAll(".cell").classed("pg_rowcolmatch",!1)},_createMatchingHighlight:function(t,e){var n=!0,r=this._getAxisDataPosition(e.id),s=t.parentNode.id;if(s.indexOf("grid_col")>-1){n=!0;var a=this.state.dataManager.getMatrixSourceTargetMatches(r,n);if("undefined"!=typeof a)for(var o=0;on[i]+r;i++);return i},_getAxisData:function(t){return this.state.yAxisRender.contains(t)?this.state.yAxisRender.get(t):this.state.xAxisRender.contains(t)?this.state.xAxisRender.get(t):null},_getAxisDataPosition:function(t){return this.state.yAxisRender.contains(t)?this.state.yAxisRender.position(t):this.state.xAxisRender.contains(t)?this.state.xAxisRender.position(t):-1},_createColorScalePerSimilarityCalculation:function(){this.state.colorScale=[];for(var t=this.state.similarityCalculation.length,e=0;t>e;e++){var n=100;2===e&&(n=this.state.dataManager.maxMaxIC);var r=i.scale.linear();r.domain([0,n]),r.domain(this.state.colorDomains.map(r.invert)),r.range(this.state.colorRanges),this.state.colorScale[e]=r}},_createTooltipStub:function(){var e=t("
").attr("id",this.state.pgInstanceId+"_tooltip").attr("class","pg_tooltip"),i=t("
").attr("id",this.state.pgInstanceId+"_tooltip_inner").attr("class","pg_tooltip_inner");e.append(i),this.state.pgContainer.append(e),this._hideTooltip(e)},_relinkTooltip:function(){var e=this;t(c).ready(function(t){var i=t("*[data-tooltip]"),n=t("#"+e.state.pgInstanceId+"_tooltip");0!==i.length&&(e._hideTooltip(n),i.mouseout(function(t){var i=t.relatedTarget||t.toElement||t.fromElement;"undefined"!=typeof i&&i.id!==e.state.pgInstanceId+"_tooltip"&&""!==i.id&&e._hideTooltip(n)}))})},_showTooltip:function(e,i,n){var r=t(i).offset(),s=this.state.pgContainer.offset(),a=r.left-s.left,o=r.top-s.top;i.parentNode.id.indexOf("grid_row")>-1?(a+=i.getBoundingClientRect().width,o+=i.getBoundingClientRect().height/2):i.classList.contains("pg_targetGroup_name")?o+=i.getBoundingClientRect().height:a+=10;var l={left:a,top:o};e.css({left:l.left,top:l.top}),e.show(),this._off(e,"mouseover"),this._off(e,"mouseleave"),this._on(e,{mouseover:function(){this._showEffectsOnMouseover(i,n)}}),this._on(e,{mouseleave:function(){this._mouseout()}})},_hideTooltip:function(t){t.hide()},_addGridTitle:function(){if(""!==this.state.gridTitle){var t=this;this.state.svg.append("svg:text").attr("id",this.state.pgInstanceId+"_toptitle").attr("x",function(){return t._isCrossComparisonView()?t.state.gridRegion.x+t.state.multiTargetsModeTargetLengthLimit*t.state.selectedCompareTargetGroup.length*t.state.gridRegion.cellPad/2-t.state.optionsControls.defaultButtonWidth:t.state.gridRegion.x+t.state.singleTargetModeTargetLengthLimit*t.state.gridRegion.cellPad/2-t.state.optionsControls.defaultButtonWidth}).attr("y",25).style("text-anchor","middle").style("font-size","1.4em").style("font-weight","bold").text(this.state.gridTitle)}},_createHoverBox:function(e){var i;i="cell"===e.type?this.state.invertAxis?e.target_id:e.source_id:e.id;var n=this._renderTooltip(i,e);if(t("#"+this.state.pgInstanceId+"_tooltip_inner").empty(),t("#"+this.state.pgInstanceId+"_tooltip_inner").html(n),"phenotype"===e.type){{t("#"+this.state.pgInstanceId+"_expandOntology_"+i)}this._on(t(".pg_expand_ontology"),{click:function(t){this._expandOntology(i)}})}if("gene"===e.type){var r=t(".pg_expand_genotype");this._on(r,{click:function(t){this._insertExpandedItems(i)}});var s=t(".pg_expand_genotype");this._on(s,{click:function(t){this._removeExpandedItems(i)}})}},_phenotypeTooltip:function(t,e){var i="",n="undefined"!=typeof e.type?""+o.capitalizeString(e.type)+": "+this._encodeTooltipHref(e.type,t,e.label)+"
":"",r="undefined"!=typeof e.IC?"IC: "+e.IC.toFixed(2)+"
":"",s="undefined"!=typeof e.sum?"Sum: "+e.sum.toFixed(2)+"
":"",a="undefined"!=typeof e.count?"Frequency: "+e.count+"
":"";i=n+r+s+a;var l=!1,u="
",c=this.state.dataLoader.checkOntologyCache(t);if("undefined"!=typeof c){l=!0,this.state.ontologyTreesDone=0,this.state.ontologyTreeHeight=0;var h='
'+this._buildOntologyTree(t,c.edges,0)+"
";u+="
"===h?"No Classification hierarchy Found":"Classification hierarchy:"+h}return i+=l?u:'
Expand classification hierarchy
'},_targetTooltip:function(t,e){var i="",n="Show only "+e.name+" results";return(this.state.taxonExpanded||1===this.state.selectedCompareTargetGroup.length)&&(n="Show results for all species"),i=n},_cellTooltip:function(t,e){var i,n,r,s,a,l="",u="",c=this.state.selectedCalculation;r=e.source_id,n=e.target_id,this.state.invertAxis?(s=this.state.yAxisRender.get(e.target_id),a=this.state.xAxisRender.get(e.source_id)):(s=this.state.xAxisRender.get(e.target_id),a=this.state.yAxisRender.get(e.source_id));for(var h in this.state.similarityCalculation)if(this.state.similarityCalculation[h].calc===this.state.selectedCalculation){i=this.state.similarityCalculation[h].label;break}return 2!==c&&(u="%"),l=""+o.capitalizeString(a.type)+"
"+this._encodeTooltipHref(a.type,r,e.a_label)+" "+o.formatScore(e.a_IC.toFixed(2))+"

In-common
"+this._encodeTooltipHref(a.type,e.subsumer_id,e.subsumer_label)+" ("+o.formatScore(e.subsumer_IC.toFixed(2))+", "+i+" "+e.value[this.state.selectedCalculation].toFixed(2)+"%)

Match
"+this._encodeTooltipHref(a.type,e.b_id,e.b_label)+o.formatScore(e.b_IC.toFixed(2))},_vendorTooltip:function(t,e){var i="";for(var n in e.info)i+=null!==typeof e.info[n].id?"string"==typeof e.info[n].href?""+e.info[n].id+' '+e.info[n].value+"
":""+e.info[n].id+" "+e.info[n].value+"
":"string"==typeof e.info[n].href?''+e.info[n].value+"
":e.info[n].value+"
";return i.slice(0,-4)},_defaultTooltip:function(t,e){var i="",n="undefined"!=typeof e.type?""+o.capitalizeString(e.type)+": "+this._encodeTooltipHref(e.type,t,e.label)+"
":"",r="undefined"!=typeof e.rank?"Rank: "+e.rank+"
":"",s="undefined"!=typeof e.score?"Score: "+e.score+"
":"",a="undefined"!=typeof e.targetGroup?"Species: "+e.targetGroup+"
":"";if(i=n+r+s+a,"gene"===e.type&&1===this.state.selectedCompareTargetGroup.length&&"compare"!==this.state.selectedCompareTargetGroup[0].groupName){var l=this.state.dataManager.isExpanded(t);i+=l?'
Remove associated genotypes
':'
Insert associated genotypes
'}return i},_renderTooltip:function(t,e){var i="";return i="phenotype"===e.type?this._phenotypeTooltip(t,e):"cell"===e.type?this._cellTooltip(t,e):"IMPC"===this.state.gridSkeletonDataVendor?this._vendorTooltip(t,e):"targetgroup"===e.type?this._targetTooltip(t,e):this._defaultTooltip(t,e)},_encodeTooltipHref:function(t,e,i){return''+o.encodeHtmlEntity(i)+""},_buildOntologyTree:function(t,e,i){var n,r="",s=i+1;for(var a in e){if(!e.hasOwnProperty(a))break;"subClassOf"===e[a].pred&&this.state.ontologyTreesDone!==this.state.ontologyTreeAmounts&&e[a].sub===t&&(this.state.ontologyTreeHeight"+this._buildIndentMark(this.state.ontologyTreeHeight-s)+""+this._buildOntologyHyperLink(e[a].obj)+"",this.state.ontologyTreesDone++):r+=n+"
"+this._buildIndentMark(this.state.ontologyTreeHeight-s)+this._buildOntologyHyperLink(e[a].obj),0===i&&(r+="
"+this._buildIndentMark(this.state.ontologyTreeHeight)+this.state.dataManager.getOntologyLabel(t)+"
",this.state.ontologyTreeHeight=0))}return r},_buildIndentMark:function(t){var e='';if(0===t)return e;for(var i=1;t>i;i++)e+='';return e+"↳"},_buildOntologyHyperLink:function(t){return''+this.state.dataManager.getOntologyLabel(t)+""},_createTargetGroupDividerLines:function(){var t=this.state.gridRegion;if(this._isCrossComparisonView()){for(var e=0,i=[],n=0;n=i?i:t,this.state.currYIdx=e>=n?n:e,this.state.xAxisRender.setRenderStartPos(this.state.currXIdx-this.state.xAxisRender.displayLength()),this.state.xAxisRender.setRenderEndPos(this.state.currXIdx),this.state.yAxisRender.setRenderStartPos(this.state.currYIdx-this.state.yAxisRender.displayLength()),this.state.yAxisRender.setRenderEndPos(this.state.currYIdx),this._recreateGrid()},_updateVerticalGrid:function(t){var e=this.state.yAxisRender.groupLength();this.state.currYIdx=t>=e?e:t,this.state.yAxisRender.setRenderStartPos(this.state.currYIdx-this.state.yAxisRender.displayLength()),this.state.yAxisRender.setRenderEndPos(this.state.currYIdx),this._recreateGrid()},_updateHorizontalGrid:function(t){var e=this.state.xAxisRender.groupLength();this.state.currXIdx=t>=e?e:t,this.state.xAxisRender.setRenderStartPos(this.state.currXIdx-this.state.xAxisRender.displayLength()),this.state.xAxisRender.setRenderEndPos(this.state.currXIdx),this._recreateGrid()},_recreateGrid:function(){this._clearGrid(),this._createGrid(),this._relinkTooltip()},_clearGrid:function(){this.state.svg.selectAll("g.row").remove(),this.state.svg.selectAll("g.column").remove(),this.state.svg.selectAll("g.pg_score_text").remove()},_populateDialog:function(e){var i="Title",n=t("
").html(i).dialog({modal:!0,width:400,minHeight:200,height:260,maxHeight:300,minWidth:400,resizable:!1,draggable:!0,dialogClass:"pg_faq_dialog_bg_color",position:{my:"top",at:"top+25%",of:"#"+this.state.pgContainerId},title:"Phenogrid Notes"});n.html(e),n.dialog("open")},_createGradientLegend:function(){var t=this.state.gridRegion;if(this._isCrossComparisonView())var e=t.x+this.state.multiTargetsModeTargetLengthLimit*this.state.selectedCompareTargetGroup.length*t.cellPad/2;else var e=t.x+this.state.singleTargetModeTargetLengthLimit*t.cellPad/2;var i=this.state.svg.append("g").attr("id",this.state.pgInstanceId+"_gradient_legend"),n=i.append("svg:defs").append("svg:linearGradient").attr("id",this.state.pgInstanceId+"_gradient_legend_fill").attr("x1","0").attr("x2","100%").attr("y1","0%").attr("y2","0%");for(var r in this.state.colorDomains){if(!this.state.colorDomains.hasOwnProperty(r))break;n.append("svg:stop").attr("offset",this.state.colorDomains[r]).style("stop-color",this.state.colorRanges[r])}i.append("rect").attr("x",e-this.state.gradientRegion.width/2).attr("y",t.y+this._gridHeight()+60).attr("id",this.state.pgInstanceId+"_gradient_legend_rect").attr("width",this.state.gradientRegion.width).attr("height",this.state.gradientRegion.height).attr("fill","url(#"+this.state.pgInstanceId+"_gradient_legend_fill)");var s,a,o;for(var l in this.state.similarityCalculation){if(!this.state.similarityCalculation.hasOwnProperty(l))break;if(this.state.similarityCalculation[l].calc===this.state.selectedCalculation){s=this.state.similarityCalculation[l].low,a=this.state.similarityCalculation[l].high,o=this.state.similarityCalculation[l].label;break}}var u=this.state.svg.select("#"+this.state.pgInstanceId+"_gradient_legend").append("g").attr("id",this.state.pgInstanceId+"_gradient_legend_texts").style("font-size","11px"),c=t.y+this._gridHeight()+57;u.append("svg:text").attr("x",e-this.state.gradientRegion.width/2).attr("y",c).style("text-anchor","start").text(s),u.append("svg:text").attr("x",e).attr("y",c).style("text-anchor","middle").text(o),u.append("svg:text").attr("x",e+this.state.gradientRegion.width/2).attr("y",c).style("text-anchor","end").text(a)},_createUnmatchedSources:function(){if(this.state.unmatchedSources=this._getUnmatchedSources(),this.state.unmatchedSources.length>0){var e=t('
');this.state.pgContainer.append(e);var i='
',n='
'+this.state.unmatchedButtonLabel+"
";if(e.append(i),e.append(n),t("#"+this.state.pgInstanceId+"_unmatched_list").hide(),"IMPC"===this.state.gridSkeletonDataVendor){for(var r=[],s=0;s'+r[l].label+"
";t("#"+this.state.pgInstanceId+"_unmatched_list_data").append(u)}}else this._formatUnmatchedSources(this.state.unmatchedSources);this._positionUnmatchedSources(),this._toggleUnmatchedSources()}},_createPhenogridControls:function(){var e=this,i=t('
');this.state.pgContainer.append(i);var r='
',s='
'+this.state.optionsBtnText+"
",a=t(r);if(this.state.initialTargetGroupLoadList.length>1){var o=this._createTargetGroupSelection();a.append(o)}var c=this._createSortPhenotypeSelection();a.append(c);var h=this._createCalculationSelection();a.append(h);var d=this._createAxisSelection();a.append(d);var p=this._createExportPhenogridButton();a.append(p);var f=this._createAboutPhenogrid();a.append(f),i.append(a),i.append(s),t("#"+this.state.pgInstanceId+"_controls_options").hide(),t("#"+this.state.pgInstanceId+"_targetGroup").change(function(i){for(var n=this.childNodes,r=[],s=0;s0?e.state.selectedCompareTargetGroup=r:alert("You must have at least 1 target group selected."),e._createAxisRenderingGroups(),t("#"+e.state.pgInstanceId+"_unmatched").remove(),e._createUnmatchedSources(),e._updateDisplay()}),t("#"+this.state.pgInstanceId+"_calculation").change(function(t){e.state.selectedCalculation=parseInt(t.target.value),e._updateDisplay()}),t("#"+this.state.pgInstanceId+"_sortphenotypes").change(function(t){e.state.selectedSort=t.target.value,e.state.invertAxis?e.state.xAxisRender.sort(e.state.selectedSort):e.state.yAxisRender.sort(e.state.selectedSort),e._updateDisplay()}),t("#"+this.state.pgInstanceId+"_invert_axis").click(function(){var i=t(this);e.state.invertAxis=i.is(":checked")?!0:!1,e._setAxisRenderers(),e._updateDisplay()}),t("#"+this.state.pgInstanceId+"_export").click(function(){var i=t("#"+e.state.pgInstanceId+"_svg").clone();i.find("#"+e.state.pgInstanceId+"_logo").attr("href",u.logo),i.find("#"+e.state.pgInstanceId+"_scores_tip_icon").remove(),i.find("#"+e.state.pgInstanceId+"_monarchinitiative_text").removeClass("pg_hide");var r=''+i.html()+"",s=new Blob([r],{type:"image/svg+xml"});n.saveAs(s,"phenogrid.svg")}),t("#"+this.state.pgInstanceId+"_sorts_faq").click("click",function(){e._populateDialog(l.sorts)}),t("#"+this.state.pgInstanceId+"_calcs_faq").click(function(){e._populateDialog(l.calcs)}),t("#"+this.state.pgInstanceId+"_about_phenogrid").click(function(){e._populateDialog(l.faq)})},_createMonarchInitiativeRecognition:function(){var i=this.state.gridRegion;if(this._isCrossComparisonView())var n=i.x+this.state.multiTargetsModeTargetLengthLimit*this.state.selectedCompareTargetGroup.length*i.cellPad/2;else var n=i.x+this.state.singleTargetModeTargetLengthLimit*i.cellPad/2;var r=this.state.svg.append("g").attr("id",this.state.pgInstanceId+"_recognition");r.append("text").attr("x",n).attr("y",this.state.gridRegion.y+this._gridHeight()+90).attr("id",this.state.pgInstanceId+"_monarchinitiative_text").style("font-size","10px").text(this.state.monarchInitiativeText);var s=this;r.append("svg:image").attr("xlink:href",u.logo).attr("x",n+t("#"+this.state.pgInstanceId+"_monarchinitiative_text")[0].getBoundingClientRect().width+3).attr("y",this.state.gridRegion.y+this._gridHeight()+74).attr("id",this.state.pgInstanceId+"_logo").attr("class","pg_cursor_pointer").attr("width",40).attr("height",26).on("click",function(){e.open(s.state.serverURL,"_blank")});var a=t("#"+this.state.pgInstanceId+"_recognition")[0].getBoundingClientRect().width;r.attr("transform","translate("+-a/2+"0)")},_positionPhenogridControls:function(){this.state.gridRegion;t("#"+this.state.pgInstanceId+"_slide_btn").css("top",this.state.optionsControls.top);var e=t("#"+this.state.pgInstanceId+"_controls_options");1===this.state.initialTargetGroupLoadList.length&&e.css("height",310),e.css("top",this.state.optionsControls.top+30),e.css("left",this.state.optionsControls.left),t("#"+this.state.pgInstanceId+"_slide_btn").css("left",this.state.optionsControls.left)},_createTargetGroupSelection:function(){var e="
Target Group(s)
";for(var i in this.state.targetGroupList){if(!this.state.targetGroupList.hasOwnProperty(i))break;var n="",r="",s="";this._isTargetGroupSelected(this,this.state.targetGroupList[i].groupName)&&(n="checked"),0===this.state.dataManager.length("target",this.state.targetGroupList[i].groupName)&&(r="disabled",s="pg_linethrough"),e+="
"+this.state.targetGroupList[i].groupName+"
"}return e+="
",t(e)},_createCalculationSelection:function(){var e="
Calculation Method
";for(var i in this.state.similarityCalculation){if(!this.state.similarityCalculation.hasOwnProperty(i))break;var n="";this.state.similarityCalculation[i].calc===this.state.selectedCalculation&&(n="checked"),e+='
"+this.state.similarityCalculation[i].label+"
"}return e+="
",t(e)},_createSortPhenotypeSelection:function(){var e='
Sort Phenotypes
';for(var i in this.state.phenotypeSort){if(!this.state.phenotypeSort.hasOwnProperty(i))break;var n="";this.state.phenotypeSort[i]===this.state.selectedSort&&(n="checked"),e+='
"+this.state.phenotypeSort[i]+"
"}return e+="
",t(e)},_createAxisSelection:function(){var e="";this.state.invertAxis&&(e="checked");var i='
Invert Axis
';return t(i)},_createAboutPhenogrid:function(){var e='
About Phenogrid
';return t(e)},_createExportPhenogridButton:function(){var e='
Save as SVG...
';return t(e)},_getUnmatchedSources:function(){var t=this.state.dataLoader.origSourceList,e=this.state.yAxisRender.groupIDs(),i=[],n=[];for(var r in e)i.push(e[r]);for(var s in t)-1===i.indexOf(t[s])&&n.push(t[s]);return n},_positionUnmatchedSources:function(){var e=this.state.gridRegion;t("#"+this.state.pgInstanceId+"_unmatched_btn").css("top",e.y+this._gridHeight()+17),t("#"+this.state.pgInstanceId+"_unmatched_btn").css("left",this.state.btnPadding),t("#"+this.state.pgInstanceId+"_unmatched_list").css("top",e.y+this._gridHeight()+t("#"+this.state.pgInstanceId+"_unmatched_btn").outerHeight()+17+10),this._isCrossComparisonView()?t("#"+this.state.pgInstanceId+"_unmatched_list").css("width",e.x+this.state.multiTargetsModeTargetLengthLimit*this.state.selectedCompareTargetGroup.length*e.cellPad-20):t("#"+this.state.pgInstanceId+"_unmatched_list").css("width",e.x+this.state.singleTargetModeTargetLengthLimit*e.cellPad-20)},_fetchSourceLabelCallback:function(e,i,n,r){var s;s="undefined"!=typeof r.label?r.label:r.id;var a='";t("#"+e.state.pgInstanceId+"_unmatched_list_data").append(a),e._formatUnmatchedSources(n)},_fetchUnmatchedLabel:function(e,i,n){var r=this,s=t.ajax({url:this.state.serverURL+"/phenotype/"+e+".json",async:!0,method:"GET",dataType:"json"});s.done(function(t){n(r,e,i,t)}),s.fail(function(){console.log("Ajax error - _fetchUnmatchedLabel()")})},_formatUnmatchedSources:function(t){if(t.length>0){var e=t[0];t=t.slice(1);var i=this._fetchSourceLabelCallback;this._fetchUnmatchedLabel(e,t,i)}},_removeDuplicatedSourceId:function(t){var e,i={},n=[];for(var r in t)e=t[r],"string"==typeof e&&n.push(e);return n=n.filter(function(t){return i.hasOwnProperty(t)?!1:i[t]=!0})},_expandOntology:function(t){var e=this.state.dataLoader.checkOntologyCache(t);if("undefined"==typeof e){var i=this._postExpandOntologyCB;this.state.dataLoader.getOntology(t,this.state.ontologyDirection,this.state.ontologyDepth,i,this)}else this._postExpandOntologyCB(e,t,this)},_postExpandOntologyCB:function(e,i,n){n.state.ontologyTreesDone=0,n.state.ontologyTreeHeight=0;var r=n._getAxisData(i),s=''+r.label+"",a="Phenotype: "+s+"
";a+="IC: "+r.IC.toFixed(2)+"
",a+="Sum: "+r.sum.toFixed(2)+"
",a+="Frequency: "+r.count+"

";var o=n._buildOntologyTree(i,e.edges,0);a+="
"===o?"No classification hierarchy data found":"Classification hierarchy:"+o,t("#"+n.state.pgInstanceId+"_tooltip_inner").html(a)},_insertExpandedItems:function(e){t(".pg_expand_genotype_icon").removeClass("fa-plus-circle"),t(".pg_expand_genotype_icon").addClass("fa-spinner fa-pulse");var i=this.state.selectedCompareTargetGroup[0].groupName,n=this.state.dataManager.checkExpandedItemsLoaded(i,e);if(n){for(var r=this.state.dataLoader.loadedNewTargetGroupItems[e],s=0;s0){var s=n.state.selectedCompareTargetGroup[0].groupName;if(n.state.dataLoader.transformNewTargetGroupItems(s,e,i),n._updateTargetAxisRenderingGroup(s),"undefined"==typeof n.state.dataManager.reorderedTargetEntriesIndexArray[s]&&(n.state.dataManager.reorderedTargetEntriesIndexArray[s]=[]),0===n.state.dataManager.reorderedTargetEntriesIndexArray[s].length)var a=n.state.targetAxis.groupEntries();else var a=n.state.dataManager.appendNewItemsToOrderedTargetList(s,e.b);var o={targetEntries:a,genotypes:e.b,parentGeneID:i,group:s};n.state.dataManager.updateTargetList(o),n.state.newTargetGroupItems[s]=!0,n._updateTargetAxisRenderingGroup(s),n.state.newTargetGroupItems[s]=!1,n.state.expandedTargetGroupItems[s]=!0,n._updateDisplay(),t(".pg_expand_genotype_icon").removeClass("fa-spinner fa-pulse"),t(".pg_expand_genotype_icon").addClass("fa-plus-circle"),n.state.dataManager.expandedItemList[i]=n.state.dataLoader.loadedNewTargetGroupItems[i]}}else n._populateDialog(r)},_removeExpandedItems:function(t){for(var e=this.state.selectedCompareTargetGroup[0].groupName,i=this.state.dataLoader.loadedNewTargetGroupItems[t],n=0;ne&&(i=t.substring(0,e-3)+"..."),i}return"Unknown"},encodeHtmlEntity:function(t){return null!==t?t.replace(/»/g,"»").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"):t},decodeHtmlEntity:function(t){return i("
").html(t).text()},formatScore:function(t){return 0===t?"":"(IC: "+t+")"},capitalizeString:function(t){return void 0===t?"Undefined":null===t?"":t.charAt(0).toUpperCase()+t.slice(1)},toProperCase:function(t){return t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()})}};e.exports=n}()},{jquery:11}],8:[function(t,e,i){!function(){function t(t){return t&&(t.ownerDocument||t.document||t).documentElement}function i(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}function n(t,e){return e>t?-1:t>e?1:t>=e?0:0/0}function r(t){return null===t?0/0:+t}function s(t){return!isNaN(t)}function a(t){return{left:function(e,i,n,r){for(arguments.length<3&&(n=0),arguments.length<4&&(r=e.length);r>n;){var s=n+r>>>1;t(e[s],i)<0?n=s+1:r=s}return n},right:function(e,i,n,r){for(arguments.length<3&&(n=0),arguments.length<4&&(r=e.length);r>n;){var s=n+r>>>1;t(e[s],i)>0?r=s:n=s+1}return n}}}function o(t){return t.length}function l(t){for(var e=1;t*e%1;)e*=10;return e}function u(t,e){for(var i in e)Object.defineProperty(t.prototype,i,{value:e[i],enumerable:!1})}function c(){this._=Object.create(null)}function h(t){return(t+="")===xa||t[0]===Ma?Ma+t:t}function d(t){return(t+="")[0]===Ma?t.slice(1):t}function p(t){return h(t)in this._}function f(t){return(t=h(t))in this._&&delete this._[t]}function g(){var t=[];for(var e in this._)t.push(d(e));return t}function m(){var t=0;for(var e in this._)++t;return t}function v(){for(var t in this._)return!1;return!0}function y(){this._=Object.create(null)}function _(t){return t}function b(t,e,i){return function(){var n=i.apply(e,arguments);return n===e?t:n}}function x(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var i=0,n=wa.length;n>i;++i){var r=wa[i]+e;if(r in t)return r}}function M(){}function w(){}function L(t){function e(){for(var e,n=i,r=-1,s=n.length;++ri;i++)for(var r,s=t[i],a=0,o=s.length;o>a;a++)(r=s[a])&&e(r,a,i);return t}function Q(t){return Da(t,ja),t}function B(t){var e,i;return function(n,r,s){var a,o=t[s].update,l=o.length;for(s!=i&&(i=s,e=0),r>=e&&(e=r+1);!(a=o[e])&&++e0&&(t=t.slice(0,o));var u=Aa.get(t);return u&&(t=u,l=Z),o?e?r:n:e?M:s}function V(t,e){return function(i){var n=la.event;la.event=i,e[0]=this.__data__;try{t.apply(this,e)}finally{la.event=n}}}function Z(t,e){var i=V(t,e);return function(t){var e=this,n=t.relatedTarget;n&&(n===e||8&n.compareDocumentPosition(e))||i.call(e,t)}}function X(e){var n=".dragsuppress-"+ ++za,r="click"+n,s=la.select(i(e)).on("touchmove"+n,D).on("dragstart"+n,D).on("selectstart"+n,D);if(null==Ea&&(Ea="onselectstart"in e?!1:x(e.style,"userSelect")),Ea){var a=t(e).style,o=a[Ea];a[Ea]="none"}return function(t){if(s.on(n,null),Ea&&(a[Ea]=o),t){var e=function(){s.on(r,null)};s.on(r,function(){D(),e()},!0),setTimeout(e,0)}}}function J(t,e){e.changedTouches&&(e=e.changedTouches[0]);var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();if(0>Pa){var s=i(t);if(s.scrollX||s.scrollY){n=la.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var a=n[0][0].getScreenCTM();Pa=!(a.f||a.e),n.remove()}}return Pa?(r.x=e.pageX,r.y=e.pageY):(r.x=e.clientX,r.y=e.clientY),r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}function $(){return la.event.changedTouches[0].identifier}function K(t){return t>0?1:0>t?-1:0}function tt(t,e,i){return(e[0]-t[0])*(i[1]-t[1])-(e[1]-t[1])*(i[0]-t[0])}function et(t){return t>1?0:-1>t?Ua:Math.acos(t)}function it(t){return t>1?Wa:-1>t?-Wa:Math.asin(t)}function nt(t){return((t=Math.exp(t))-1/t)/2}function rt(t){return((t=Math.exp(t))+1/t)/2}function st(t){return((t=Math.exp(2*t))-1)/(t+1)}function at(t){return(t=Math.sin(t/2))*t}function ot(){}function lt(t,e,i){return this instanceof lt?(this.h=+t,this.s=+e,void(this.l=+i)):arguments.length<2?t instanceof lt?new lt(t.h,t.s,t.l):Mt(""+t,wt,lt):new lt(t,e,i)}function ut(t,e,i){function n(t){return t>360?t-=360:0>t&&(t+=360),60>t?s+(a-s)*t/60:180>t?a:240>t?s+(a-s)*(240-t)/60:s}function r(t){return Math.round(255*n(t))}var s,a;return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)?0:0>e?0:e>1?1:e,i=0>i?0:i>1?1:i,a=.5>=i?i*(1+e):i+e-i*e,s=2*i-a,new yt(r(t+120),r(t),r(t-120))}function ct(t,e,i){return this instanceof ct?(this.h=+t,this.c=+e,void(this.l=+i)):arguments.length<2?t instanceof ct?new ct(t.h,t.c,t.l):t instanceof dt?ft(t.l,t.a,t.b):ft((t=Lt((t=la.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new ct(t,e,i)}function ht(t,e,i){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new dt(i,Math.cos(t*=Ya)*e,Math.sin(t)*e)}function dt(t,e,i){return this instanceof dt?(this.l=+t,this.a=+e,void(this.b=+i)):arguments.length<2?t instanceof dt?new dt(t.l,t.a,t.b):t instanceof ct?ht(t.h,t.c,t.l):Lt((t=yt(t)).r,t.g,t.b):new dt(t,e,i)}function pt(t,e,i){var n=(t+16)/116,r=n+e/500,s=n-i/200;return r=gt(r)*to,n=gt(n)*eo,s=gt(s)*io,new yt(vt(3.2404542*r-1.5371385*n-.4985314*s),vt(-.969266*r+1.8760108*n+.041556*s),vt(.0556434*r-.2040259*n+1.0572252*s))}function ft(t,e,i){return t>0?new ct(Math.atan2(i,e)*Ga,Math.sqrt(e*e+i*i),t):new ct(0/0,0/0,t)}function gt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function mt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function vt(t){return Math.round(255*(.00304>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function yt(t,e,i){return this instanceof yt?(this.r=~~t,this.g=~~e,void(this.b=~~i)):arguments.length<2?t instanceof yt?new yt(t.r,t.g,t.b):Mt(""+t,yt,ut):new yt(t,e,i)}function _t(t){return new yt(t>>16,t>>8&255,255&t)}function bt(t){return _t(t)+""}function xt(t){return 16>t?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function Mt(t,e,i){var n,r,s,a=0,o=0,l=0;if(n=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(r=n[2].split(","),n[1]){case"hsl":return i(parseFloat(r[0]),parseFloat(r[1])/100,parseFloat(r[2])/100);case"rgb":return e(Ct(r[0]),Ct(r[1]),Ct(r[2]))}return(s=so.get(t))?e(s.r,s.g,s.b):(null==t||"#"!==t.charAt(0)||isNaN(s=parseInt(t.slice(1),16))||(4===t.length?(a=(3840&s)>>4,a=a>>4|a,o=240&s,o=o>>4|o,l=15&s,l=l<<4|l):7===t.length&&(a=(16711680&s)>>16,o=(65280&s)>>8,l=255&s)),e(a,o,l))}function wt(t,e,i){var n,r,s=Math.min(t/=255,e/=255,i/=255),a=Math.max(t,e,i),o=a-s,l=(a+s)/2;return o?(r=.5>l?o/(a+s):o/(2-a-s),n=t==a?(e-i)/o+(i>e?6:0):e==a?(i-t)/o+2:(t-e)/o+4,n*=60):(n=0/0,r=l>0&&1>l?0:n),new lt(n,r,l)}function Lt(t,e,i){t=Dt(t),e=Dt(e),i=Dt(i);var n=mt((.4124564*t+.3575761*e+.1804375*i)/to),r=mt((.2126729*t+.7151522*e+.072175*i)/eo),s=mt((.0193339*t+.119192*e+.9503041*i)/io);return dt(116*r-16,500*(n-r),200*(r-s))}function Dt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ct(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}function Tt(t){return"function"==typeof t?t:function(){return t}}function It(t){return function(e,i,n){return 2===arguments.length&&"function"==typeof i&&(n=i,i=null),Nt(e,i,t,n)}}function Nt(t,e,i,n){function r(){var t,e=l.status;if(!e&&St(l)||e>=200&&300>e||304===e){try{t=i.call(s,l)}catch(n){return void a.error.call(s,n)}a.load.call(s,t)}else a.error.call(s,l)}var s={},a=la.dispatch("beforesend","progress","load","error"),o={},l=new XMLHttpRequest,u=null;return!this.XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(t)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=r:l.onreadystatechange=function(){l.readyState>3&&r()},l.onprogress=function(t){var e=la.event;la.event=t;try{a.progress.call(s,l)}finally{la.event=e}},s.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?o[t]:(null==e?delete o[t]:o[t]=e+"",s)},s.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",s):e},s.responseType=function(t){return arguments.length?(u=t,s):u},s.response=function(t){return i=t,s},["get","post"].forEach(function(t){s[t]=function(){return s.send.apply(s,[t].concat(ca(arguments)))}}),s.send=function(i,n,r){if(2===arguments.length&&"function"==typeof n&&(r=n,n=null),l.open(i,t,!0),null==e||"accept"in o||(o.accept=e+",*/*"),l.setRequestHeader)for(var c in o)l.setRequestHeader(c,o[c]);return null!=e&&l.overrideMimeType&&l.overrideMimeType(e),null!=u&&(l.responseType=u),null!=r&&s.on("error",r).on("load",function(t){r(null,t)}),a.beforesend.call(s,l),l.send(null==n?null:n),s},s.abort=function(){return l.abort(),s},la.rebind(s,a,"on"),null==n?s:s.get(kt(n))}function kt(t){return 1===t.length?function(e,i){t(null==e?i:null)}:t}function St(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}function jt(t,e,i){var n=arguments.length;2>n&&(e=0),3>n&&(i=Date.now());var r=i+e,s={c:t,t:r,n:null};return oo?oo.n=s:ao=s,oo=s,lo||(uo=clearTimeout(uo),lo=1,co(At)),s}function At(){var t=Et(),e=zt()-t;e>24?(isFinite(e)&&(clearTimeout(uo),uo=setTimeout(At,e)),lo=0):(lo=1,co(At))}function Et(){for(var t=Date.now(),e=ao;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function zt(){for(var t,e=ao,i=1/0;e;)e.c?(e.t8?function(t){return t/i}:function(t){return t*i},symbol:t}}function Rt(t){var e=t.decimal,i=t.thousands,n=t.grouping,r=t.currency,s=n&&i?function(t,e){for(var r=t.length,s=[],a=0,o=n[0],l=0;r>0&&o>0&&(l+o+1>e&&(o=Math.max(1,e-l)),s.push(t.substring(r-=o,r+o)),!((l+=o+1)>e));)o=n[a=(a+1)%n.length];return s.reverse().join(i)}:_;return function(t){var i=po.exec(t),n=i[1]||" ",a=i[2]||">",o=i[3]||"-",l=i[4]||"",u=i[5],c=+i[6],h=i[7],d=i[8],p=i[9],f=1,g="",m="",v=!1,y=!0;switch(d&&(d=+d.substring(1)),(u||"0"===n&&"="===a)&&(u=n="0",a="="),p){case"n":h=!0,p="g";break;case"%":f=100,m="%",p="f";break;case"p":f=100,m="%",p="r";break;case"b":case"o":case"x":case"X":"#"===l&&(g="0"+p.toLowerCase());case"c":y=!1;case"d":v=!0,d=0;break;case"s":f=-1,p="r"}"$"===l&&(g=r[0],m=r[1]),"r"!=p||d||(p="g"),null!=d&&("g"==p?d=Math.max(1,Math.min(21,d)):("e"==p||"f"==p)&&(d=Math.max(0,Math.min(20,d)))),p=fo.get(p)||Ut;var _=u&&h;return function(t){var i=m;if(v&&t%1)return"";var r=0>t||0===t&&0>1/t?(t=-t,"-"):"-"===o?"":o;if(0>f){var l=la.formatPrefix(t,d);t=l.scale(t),i=l.symbol+m}else t*=f;t=p(t,d);var b,x,M=t.lastIndexOf(".");if(0>M){var w=y?t.lastIndexOf("e"):-1;0>w?(b=t,x=""):(b=t.substring(0,w),x=t.substring(w))}else b=t.substring(0,M),x=e+t.substring(M+1);!u&&h&&(b=s(b,1/0));var L=g.length+b.length+x.length+(_?0:r.length),D=c>L?new Array(L=c-L+1).join(n):"";return _&&(b=s(D+b,D.length?c-x.length:1/0)),r+=g,t=b+x,("<"===a?r+t+D:">"===a?D+r+t:"^"===a?D.substring(0,L>>=1)+r+t+D.substring(L):r+(_?t:D+t))+i}}}function Ut(t){return t+""}function Ft(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Ht(t,e,i){function n(e){var i=t(e),n=s(i,1);return n-e>e-i?i:n}function r(i){return e(i=t(new mo(i-1)),1),i}function s(t,i){return e(t=new mo(+t),i),t}function a(t,n,s){var a=r(t),o=[];if(s>1)for(;n>a;)i(a)%s||o.push(new Date(+a)),e(a,1);else for(;n>a;)o.push(new Date(+a)),e(a,1);return o}function o(t,e,i){try{mo=Ft;var n=new Ft;return n._=t,a(n,e,i)}finally{mo=Date}}t.floor=t,t.round=n,t.ceil=r,t.offset=s,t.range=a;var l=t.utc=Wt(t);return l.floor=l,l.round=Wt(n),l.ceil=Wt(r),l.offset=Wt(s),l.range=o,t}function Wt(t){return function(e,i){try{mo=Ft;var n=new Ft;return n._=e,t(n,i)._}finally{mo=Date}}}function Yt(t){function e(t){function e(e){for(var i,r,s,a=[],o=-1,l=0;++oo;){if(n>=u)return-1;if(r=e.charCodeAt(o++),37===r){if(a=e.charAt(o++),s=N[a in yo?e.charAt(o++):a],!s||(n=s(t,i,n))<0)return-1}else if(r!=i.charCodeAt(n++))return-1}return n}function n(t,e,i){M.lastIndex=0;var n=M.exec(e.slice(i));return n?(t.w=w.get(n[0].toLowerCase()),i+n[0].length):-1}function r(t,e,i){b.lastIndex=0;var n=b.exec(e.slice(i));return n?(t.w=x.get(n[0].toLowerCase()),i+n[0].length):-1}function s(t,e,i){C.lastIndex=0;var n=C.exec(e.slice(i));return n?(t.m=T.get(n[0].toLowerCase()),i+n[0].length):-1}function a(t,e,i){L.lastIndex=0;var n=L.exec(e.slice(i));return n?(t.m=D.get(n[0].toLowerCase()),i+n[0].length):-1}function o(t,e,n){return i(t,I.c.toString(),e,n)}function l(t,e,n){return i(t,I.x.toString(),e,n)}function u(t,e,n){return i(t,I.X.toString(),e,n)}function c(t,e,i){var n=_.get(e.slice(i,i+=2).toLowerCase());return null==n?-1:(t.p=n,i)}var h=t.dateTime,d=t.date,p=t.time,f=t.periods,g=t.days,m=t.shortDays,v=t.months,y=t.shortMonths;e.utc=function(t){function i(t){try{mo=Ft;var e=new mo;return e._=t,n(e)}finally{mo=Date}}var n=e(t);return i.parse=function(t){try{mo=Ft;var e=n.parse(t);return e&&e._}finally{mo=Date}},i.toString=n.toString,i},e.multi=e.utc.multi=ue;var _=la.map(),b=Qt(g),x=Bt(g),M=Qt(m),w=Bt(m),L=Qt(v),D=Bt(v),C=Qt(y),T=Bt(y);f.forEach(function(t,e){_.set(t.toLowerCase(),e)});var I={a:function(t){return m[t.getDay()]},A:function(t){return g[t.getDay()]},b:function(t){return y[t.getMonth()]},B:function(t){return v[t.getMonth()]},c:e(h),d:function(t,e){return Gt(t.getDate(),e,2)},e:function(t,e){return Gt(t.getDate(),e,2)},H:function(t,e){return Gt(t.getHours(),e,2)},I:function(t,e){return Gt(t.getHours()%12||12,e,2)},j:function(t,e){return Gt(1+go.dayOfYear(t),e,3)},L:function(t,e){return Gt(t.getMilliseconds(),e,3)},m:function(t,e){return Gt(t.getMonth()+1,e,2)},M:function(t,e){return Gt(t.getMinutes(),e,2)},p:function(t){return f[+(t.getHours()>=12)]},S:function(t,e){return Gt(t.getSeconds(),e,2)},U:function(t,e){return Gt(go.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Gt(go.mondayOfYear(t),e,2)},x:e(d),X:e(p),y:function(t,e){return Gt(t.getFullYear()%100,e,2)},Y:function(t,e){return Gt(t.getFullYear()%1e4,e,4)},Z:oe,"%":function(){return"%"}},N={a:n,A:r,b:s,B:a,c:o,d:ee,e:ee,H:ne,I:ne,j:ie,L:ae,m:te,M:re,p:c,S:se,U:Vt,w:qt,W:Zt,x:l,X:u,y:Jt,Y:Xt,Z:$t,"%":le};return e}function Gt(t,e,i){var n=0>t?"-":"",r=(n?-t:t)+"",s=r.length;return n+(i>s?new Array(i-s+1).join(e)+r:r)}function Qt(t){return new RegExp("^(?:"+t.map(la.requote).join("|")+")","i")}function Bt(t){for(var e=new c,i=-1,n=t.length;++i68?1900:2e3)}function te(t,e,i){_o.lastIndex=0;var n=_o.exec(e.slice(i,i+2));return n?(t.m=n[0]-1,i+n[0].length):-1}function ee(t,e,i){_o.lastIndex=0;var n=_o.exec(e.slice(i,i+2));return n?(t.d=+n[0],i+n[0].length):-1}function ie(t,e,i){_o.lastIndex=0;var n=_o.exec(e.slice(i,i+3));return n?(t.j=+n[0],i+n[0].length):-1}function ne(t,e,i){_o.lastIndex=0;var n=_o.exec(e.slice(i,i+2));return n?(t.H=+n[0],i+n[0].length):-1}function re(t,e,i){_o.lastIndex=0;var n=_o.exec(e.slice(i,i+2));return n?(t.M=+n[0],i+n[0].length):-1}function se(t,e,i){_o.lastIndex=0;var n=_o.exec(e.slice(i,i+2));return n?(t.S=+n[0],i+n[0].length):-1}function ae(t,e,i){_o.lastIndex=0;var n=_o.exec(e.slice(i,i+3));return n?(t.L=+n[0],i+n[0].length):-1}function oe(t){var e=t.getTimezoneOffset(),i=e>0?"-":"+",n=ba(e)/60|0,r=ba(e)%60;return i+Gt(n,"0",2)+Gt(r,"0",2)}function le(t,e,i){bo.lastIndex=0;var n=bo.exec(e.slice(i,i+1));return n?i+n[0].length:-1}function ue(t){for(var e=t.length,i=-1;++i=0?1:-1,o=a*i,l=Math.cos(e),u=Math.sin(e),c=s*u,h=r*l+c*Math.cos(o),d=c*a*Math.sin(o);Co.add(Math.atan2(d,h)),n=t,r=l,s=u}var e,i,n,r,s;To.point=function(a,o){To.point=t,n=(e=a)*Ya,r=Math.cos(o=(i=o)*Ya/2+Ua/4),s=Math.sin(o)},To.lineEnd=function(){t(e,i)}}function me(t){var e=t[0],i=t[1],n=Math.cos(i);return[n*Math.cos(e),n*Math.sin(e),Math.sin(i)]}function ve(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function ye(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function _e(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function be(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function xe(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Me(t){return[Math.atan2(t[1],t[0]),it(t[2])]}function we(t,e){return ba(t[0]-e[0])o;++o)r.point((i=t[o])[0],i[1]);return void r.lineEnd()}var l=new Ae(i,t,null,!0),u=new Ae(i,null,l,!1);l.o=u,s.push(l),a.push(u),l=new Ae(n,t,null,!1),u=new Ae(n,null,l,!0),l.o=u,s.push(l),a.push(u)}}),a.sort(e),je(s),je(a),s.length){for(var o=0,l=i,u=a.length;u>o;++o)a[o].e=l=!l;for(var c,h,d=s[0];;){for(var p=d,f=!0;p.v;)if((p=p.n)===d)return;c=p.z,r.lineStart();do{if(p.v=p.o.v=!0,p.e){if(f)for(var o=0,u=c.length;u>o;++o)r.point((h=c[o])[0],h[1]);else n(p.x,p.n.x,1,r);p=p.n}else{if(f){c=p.p.z;for(var o=c.length-1;o>=0;--o)r.point((h=c[o])[0],h[1])}else n(p.x,p.p.x,-1,r);p=p.p}p=p.o,c=p.z,f=!f}while(!p.v);r.lineEnd()}}}function je(t){if(e=t.length){for(var e,i,n=0,r=t[0];++n0){for(x||(s.polygonStart(),x=!0),s.lineStart();++a1&&2&e&&i.push(i.pop().concat(i.shift())),p.push(i.filter(ze))}var p,f,g,m=e(s),v=r.invert(n[0],n[1]),y={point:a,lineStart:l,lineEnd:u,polygonStart:function(){y.point=c,y.lineStart=h,y.lineEnd=d,p=[],f=[]},polygonEnd:function(){y.point=a,y.lineStart=l,y.lineEnd=u,p=la.merge(p);var t=He(v,f);p.length?(x||(s.polygonStart(),x=!0),Se(p,Oe,t,i,s)):t&&(x||(s.polygonStart(),x=!0),s.lineStart(),i(null,null,1,s),s.lineEnd()),x&&(s.polygonEnd(),x=!1),p=f=null},sphere:function(){s.polygonStart(),s.lineStart(),i(null,null,1,s),s.lineEnd(),s.polygonEnd()}},_=Pe(),b=e(_),x=!1;return y}}function ze(t){return t.length>1}function Pe(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,i){t.push([e,i])},lineEnd:M,buffer:function(){var i=e;return e=[],t=null,i},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function Oe(t,e){return((t=t.x)[0]<0?t[1]-Wa-Oa:Wa-t[1])-((e=e.x)[0]<0?e[1]-Wa-Oa:Wa-e[1])}function Re(t){var e,i=0/0,n=0/0,r=0/0;return{lineStart:function(){t.lineStart(),e=1},point:function(s,a){var o=s>0?Ua:-Ua,l=ba(s-i);ba(l-Ua)0?Wa:-Wa),t.point(r,n),t.lineEnd(),t.lineStart(),t.point(o,n),t.point(s,n),e=0):r!==o&&l>=Ua&&(ba(i-r)Oa?Math.atan((Math.sin(e)*(s=Math.cos(n))*Math.sin(i)-Math.sin(n)*(r=Math.cos(e))*Math.sin(t))/(r*s*a)):(e+n)/2}function Fe(t,e,i,n){var r;if(null==t)r=i*Wa,n.point(-Ua,r),n.point(0,r),n.point(Ua,r),n.point(Ua,0),n.point(Ua,-r),n.point(0,-r),n.point(-Ua,-r),n.point(-Ua,0),n.point(-Ua,r);else if(ba(t[0]-e[0])>Oa){var s=t[0]o;++o){var u=e[o],c=u.length;if(c)for(var h=u[0],d=h[0],p=h[1]/2+Ua/4,f=Math.sin(p),g=Math.cos(p),m=1;;){m===c&&(m=0),t=u[m];var v=t[0],y=t[1]/2+Ua/4,_=Math.sin(y),b=Math.cos(y),x=v-d,M=x>=0?1:-1,w=M*x,L=w>Ua,D=f*_;if(Co.add(Math.atan2(D*M*Math.sin(w),g*b+D*Math.cos(w))),s+=L?x+M*Fa:x,L^d>=i^v>=i){var C=ye(me(h),me(t));xe(C);var T=ye(r,C);xe(T);var I=(L^x>=0?-1:1)*it(T[2]);(n>I||n===I&&(C[0]||C[1]))&&(a+=L^x>=0?1:-1)}if(!m++)break;d=v,f=_,g=b,h=t}}return(-Oa>s||Oa>s&&-Oa>Co)^1&a}function We(t){function e(t,e){return Math.cos(t)*Math.cos(e)>s}function i(t){var i,s,l,u,c;return{lineStart:function(){u=l=!1,c=1},point:function(h,d){var p,f=[h,d],g=e(h,d),m=a?g?0:r(h,d):g?r(h+(0>h?Ua:-Ua),d):0;if(!i&&(u=l=g)&&t.lineStart(),g!==l&&(p=n(i,f),(we(i,p)||we(f,p))&&(f[0]+=Oa,f[1]+=Oa,g=e(f[0],f[1]))),g!==l)c=0,g?(t.lineStart(),p=n(f,i),t.point(p[0],p[1])):(p=n(i,f),t.point(p[0],p[1]),t.lineEnd()),i=p;else if(o&&i&&a^g){var v;m&s||!(v=n(f,i,!0))||(c=0,a?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!g||i&&we(i,f)||t.point(f[0],f[1]),i=f,l=g,s=m},lineEnd:function(){l&&t.lineEnd(),i=null},clean:function(){return c|(u&&l)<<1}}}function n(t,e,i){var n=me(t),r=me(e),a=[1,0,0],o=ye(n,r),l=ve(o,o),u=o[0],c=l-u*u;if(!c)return!i&&t;var h=s*l/c,d=-s*u/c,p=ye(a,o),f=be(a,h),g=be(o,d);_e(f,g);var m=p,v=ve(f,m),y=ve(m,m),_=v*v-y*(ve(f,f)-1);if(!(0>_)){var b=Math.sqrt(_),x=be(m,(-v-b)/y);if(_e(x,f),x=Me(x),!i)return x;var M,w=t[0],L=e[0],D=t[1],C=e[1];w>L&&(M=w,w=L,L=M);var T=L-w,I=ba(T-Ua)T;if(!I&&D>C&&(M=D,D=C,C=M),N?I?D+C>0^x[1]<(ba(x[0]-w)Ua^(w<=x[0]&&x[0]<=L)){var k=be(m,(-v+b)/y);return _e(k,f),[x,Me(k)]}}}function r(e,i){var n=a?t:Ua-t,r=0;return-n>e?r|=1:e>n&&(r|=2),-n>i?r|=4:i>n&&(r|=8),r}var s=Math.cos(t),a=s>0,o=ba(s)>Oa,l=gi(t,6*Ya);return Ee(e,i,l,a?[0,-t]:[-Ua,t-Ua])}function Ye(t,e,i,n){return function(r){var s,a=r.a,o=r.b,l=a.x,u=a.y,c=o.x,h=o.y,d=0,p=1,f=c-l,g=h-u;if(s=t-l,f||!(s>0)){if(s/=f,0>f){if(d>s)return;p>s&&(p=s)}else if(f>0){if(s>p)return;s>d&&(d=s)}if(s=i-l,f||!(0>s)){if(s/=f,0>f){if(s>p)return;s>d&&(d=s)}else if(f>0){if(d>s)return;p>s&&(p=s)}if(s=e-u,g||!(s>0)){if(s/=g,0>g){if(d>s)return;p>s&&(p=s)}else if(g>0){if(s>p)return;s>d&&(d=s)}if(s=n-u,g||!(0>s)){if(s/=g,0>g){if(s>p)return;s>d&&(d=s)}else if(g>0){if(d>s)return;p>s&&(p=s)}return d>0&&(r.a={x:l+d*f,y:u+d*g}),1>p&&(r.b={x:l+p*f,y:u+p*g}),r}}}}}}function Ge(t,e,i,n){function r(n,r){return ba(n[0]-t)0?0:3:ba(n[0]-i)0?2:1:ba(n[1]-e)0?1:0:r>0?3:2}function s(t,e){return a(t.x,e.x)}function a(t,e){var i=r(t,1),n=r(e,1);return i!==n?i-n:0===i?e[1]-t[1]:1===i?t[0]-e[0]:2===i?t[1]-e[1]:e[0]-t[0]}return function(o){function l(t){for(var e=0,i=m.length,n=t[1],r=0;i>r;++r)for(var s,a=1,o=m[r],l=o.length,u=o[0];l>a;++a)s=o[a],u[1]<=n?s[1]>n&&tt(u,s,t)>0&&++e:s[1]<=n&&tt(u,s,t)<0&&--e,u=s;return 0!==e}function u(s,o,l,u){var c=0,h=0;if(null==s||(c=r(s,l))!==(h=r(o,l))||a(s,o)<0^l>0){do u.point(0===c||3===c?t:i,c>1?n:e);while((c=(c+l+4)%4)!==h)}else u.point(o[0],o[1])}function c(r,s){return r>=t&&i>=r&&s>=e&&n>=s}function h(t,e){c(t,e)&&o.point(t,e)}function d(){N.point=f,m&&m.push(v=[]),L=!0,w=!1,x=M=0/0}function p(){g&&(f(y,_),b&&w&&T.rejoin(),g.push(T.buffer())),N.point=h,w&&o.lineEnd()}function f(t,e){t=Math.max(-Ho,Math.min(Ho,t)),e=Math.max(-Ho,Math.min(Ho,e));var i=c(t,e);if(m&&v.push([t,e]),L)y=t,_=e,b=i,L=!1,i&&(o.lineStart(),o.point(t,e));else if(i&&w)o.point(t,e);else{var n={a:{x:x,y:M},b:{x:t,y:e}};I(n)?(w||(o.lineStart(),o.point(n.a.x,n.a.y)),o.point(n.b.x,n.b.y),i||o.lineEnd(),D=!1):i&&(o.lineStart(),o.point(t,e),D=!1)}x=t,M=e,w=i}var g,m,v,y,_,b,x,M,w,L,D,C=o,T=Pe(),I=Ye(t,e,i,n),N={point:h,lineStart:d,lineEnd:p,polygonStart:function(){o=T,g=[],m=[],D=!0},polygonEnd:function(){o=C,g=la.merge(g);var e=l([t,n]),i=D&&e,r=g.length;(i||r)&&(o.polygonStart(),i&&(o.lineStart(),u(null,null,1,o),o.lineEnd()),r&&Se(g,s,e,u,o),o.polygonEnd()),g=m=v=null}};return N}}function Qe(t){var e=0,i=Ua/3,n=oi(t),r=n(e,i);return r.parallels=function(t){return arguments.length?n(e=t[0]*Ua/180,i=t[1]*Ua/180):[e/Ua*180,i/Ua*180]},r}function Be(t,e){function i(t,e){var i=Math.sqrt(s-2*r*Math.sin(e))/r;return[i*Math.sin(t*=r),a-i*Math.cos(t)]}var n=Math.sin(t),r=(n+Math.sin(e))/2,s=1+n*(2*r-n),a=Math.sqrt(s)/r;return i.invert=function(t,e){var i=a-e;return[Math.atan2(t,i)/r,it((s-(t*t+i*i)*r*r)/(2*r))]},i}function qe(){function t(t,e){Yo+=r*t-n*e,n=t,r=e}var e,i,n,r;Vo.point=function(s,a){Vo.point=t,e=n=s,i=r=a},Vo.lineEnd=function(){t(e,i)}}function Ve(t,e){Go>t&&(Go=t),t>Bo&&(Bo=t),Qo>e&&(Qo=e),e>qo&&(qo=e)}function Ze(){function t(t,e){a.push("M",t,",",e,s)}function e(t,e){a.push("M",t,",",e),o.point=i}function i(t,e){a.push("L",t,",",e)}function n(){o.point=t}function r(){a.push("Z")}var s=Xe(4.5),a=[],o={point:t,lineStart:function(){o.point=e},lineEnd:n,polygonStart:function(){o.lineEnd=r},polygonEnd:function(){o.lineEnd=n, -o.point=t},pointRadius:function(t){return s=Xe(t),o},result:function(){if(a.length){var t=a.join("");return a=[],t}}};return o}function Xe(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Je(t,e){ko+=t,So+=e,++jo}function $e(){function t(t,n){var r=t-e,s=n-i,a=Math.sqrt(r*r+s*s);Ao+=a*(e+t)/2,Eo+=a*(i+n)/2,zo+=a,Je(e=t,i=n)}var e,i;Xo.point=function(n,r){Xo.point=t,Je(e=n,i=r)}}function Ke(){Xo.point=Je}function ti(){function t(t,e){var i=t-n,s=e-r,a=Math.sqrt(i*i+s*s);Ao+=a*(n+t)/2,Eo+=a*(r+e)/2,zo+=a,a=r*t-n*e,Po+=a*(n+t),Oo+=a*(r+e),Ro+=3*a,Je(n=t,r=e)}var e,i,n,r;Xo.point=function(s,a){Xo.point=t,Je(e=n=s,i=r=a)},Xo.lineEnd=function(){t(e,i)}}function ei(t){function e(e,i){t.moveTo(e+a,i),t.arc(e,i,a,0,Fa)}function i(e,i){t.moveTo(e,i),o.point=n}function n(e,i){t.lineTo(e,i)}function r(){o.point=e}function s(){t.closePath()}var a=4.5,o={point:e,lineStart:function(){o.point=i},lineEnd:r,polygonStart:function(){o.lineEnd=s},polygonEnd:function(){o.lineEnd=r,o.point=e},pointRadius:function(t){return a=t,o},result:M};return o}function ii(t){function e(t){return(o?n:i)(t)}function i(e){return si(e,function(i,n){i=t(i,n),e.point(i[0],i[1])})}function n(e){function i(i,n){i=t(i,n),e.point(i[0],i[1])}function n(){_=0/0,L.point=s,e.lineStart()}function s(i,n){var s=me([i,n]),a=t(i,n);r(_,b,y,x,M,w,_=a[0],b=a[1],y=i,x=s[0],M=s[1],w=s[2],o,e),e.point(_,b)}function a(){L.point=i,e.lineEnd()}function l(){n(),L.point=u,L.lineEnd=c}function u(t,e){s(h=t,d=e),p=_,f=b,g=x,m=M,v=w,L.point=s}function c(){r(_,b,y,x,M,w,p,f,h,g,m,v,o,e),L.lineEnd=a,a()}var h,d,p,f,g,m,v,y,_,b,x,M,w,L={point:i,lineStart:n,lineEnd:a,polygonStart:function(){e.polygonStart(),L.lineStart=l},polygonEnd:function(){e.polygonEnd(),L.lineStart=n}};return L}function r(e,i,n,o,l,u,c,h,d,p,f,g,m,v){var y=c-e,_=h-i,b=y*y+_*_;if(b>4*s&&m--){var x=o+p,M=l+f,w=u+g,L=Math.sqrt(x*x+M*M+w*w),D=Math.asin(w/=L),C=ba(ba(w)-1)s||ba((y*k+_*S)/b-.5)>.3||a>o*p+l*f+u*g)&&(r(e,i,n,o,l,u,I,N,C,x/=L,M/=L,w,m,v),v.point(I,N),r(I,N,C,x,M,w,c,h,d,p,f,g,m,v))}}var s=.5,a=Math.cos(30*Ya),o=16;return e.precision=function(t){return arguments.length?(o=(s=t*t)>0&&16,e):Math.sqrt(s)},e}function ni(t){var e=ii(function(e,i){return t([e*Ga,i*Ga])});return function(t){return li(e(t))}}function ri(t){this.stream=t}function si(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function ai(t){return oi(function(){return t})()}function oi(t){function e(t){return t=o(t[0]*Ya,t[1]*Ya),[t[0]*d+l,u-t[1]*d]}function i(t){return t=o.invert((t[0]-l)/d,(u-t[1])/d),t&&[t[0]*Ga,t[1]*Ga]}function n(){o=Ne(a=hi(v,y,b),s);var t=s(g,m);return l=p-t[0]*d,u=f+t[1]*d,r()}function r(){return c&&(c.valid=!1,c=null),e}var s,a,o,l,u,c,h=ii(function(t,e){return t=s(t,e),[t[0]*d+l,u-t[1]*d]}),d=150,p=480,f=250,g=0,m=0,v=0,y=0,b=0,x=Fo,M=_,w=null,L=null;return e.stream=function(t){return c&&(c.valid=!1),c=li(x(a,h(M(t)))),c.valid=!0,c},e.clipAngle=function(t){return arguments.length?(x=null==t?(w=t,Fo):We((w=+t)*Ya),r()):w},e.clipExtent=function(t){return arguments.length?(L=t,M=t?Ge(t[0][0],t[0][1],t[1][0],t[1][1]):_,r()):L},e.scale=function(t){return arguments.length?(d=+t,n()):d},e.translate=function(t){return arguments.length?(p=+t[0],f=+t[1],n()):[p,f]},e.center=function(t){return arguments.length?(g=t[0]%360*Ya,m=t[1]%360*Ya,n()):[g*Ga,m*Ga]},e.rotate=function(t){return arguments.length?(v=t[0]%360*Ya,y=t[1]%360*Ya,b=t.length>2?t[2]%360*Ya:0,n()):[v*Ga,y*Ga,b*Ga]},la.rebind(e,h,"precision"),function(){return s=t.apply(this,arguments),e.invert=s.invert&&i,n()}}function li(t){return si(t,function(e,i){t.point(e*Ya,i*Ya)})}function ui(t,e){return[t,e]}function ci(t,e){return[t>Ua?t-Fa:-Ua>t?t+Fa:t,e]}function hi(t,e,i){return t?e||i?Ne(pi(t),fi(e,i)):pi(t):e||i?fi(e,i):ci}function di(t){return function(e,i){return e+=t,[e>Ua?e-Fa:-Ua>e?e+Fa:e,i]}}function pi(t){var e=di(t);return e.invert=di(-t),e}function fi(t,e){function i(t,e){var i=Math.cos(e),o=Math.cos(t)*i,l=Math.sin(t)*i,u=Math.sin(e),c=u*n+o*r;return[Math.atan2(l*s-c*a,o*n-u*r),it(c*s+l*a)]}var n=Math.cos(t),r=Math.sin(t),s=Math.cos(e),a=Math.sin(e);return i.invert=function(t,e){var i=Math.cos(e),o=Math.cos(t)*i,l=Math.sin(t)*i,u=Math.sin(e),c=u*s-l*a;return[Math.atan2(l*s+u*a,o*n+c*r),it(c*n-o*r)]},i}function gi(t,e){var i=Math.cos(t),n=Math.sin(t);return function(r,s,a,o){var l=a*e;null!=r?(r=mi(i,r),s=mi(i,s),(a>0?s>r:r>s)&&(r+=a*Fa)):(r=t+a*Fa,s=t-.5*l);for(var u,c=r;a>0?c>s:s>c;c-=l)o.point((u=Me([i,-n*Math.cos(c),-n*Math.sin(c)]))[0],u[1])}}function mi(t,e){var i=me(e);i[0]-=t,xe(i);var n=et(-i[1]);return((-i[2]<0?-n:n)+2*Math.PI-Oa)%(2*Math.PI)}function vi(t,e,i){var n=la.range(t,e-Oa,i).concat(e);return function(t){return n.map(function(e){return[t,e]})}}function yi(t,e,i){var n=la.range(t,e-Oa,i).concat(e);return function(t){return n.map(function(e){return[e,t]})}}function _i(t){return t.source}function bi(t){return t.target}function xi(t,e,i,n){var r=Math.cos(e),s=Math.sin(e),a=Math.cos(n),o=Math.sin(n),l=r*Math.cos(t),u=r*Math.sin(t),c=a*Math.cos(i),h=a*Math.sin(i),d=2*Math.asin(Math.sqrt(at(n-e)+r*a*at(i-t))),p=1/Math.sin(d),f=d?function(t){var e=Math.sin(t*=d)*p,i=Math.sin(d-t)*p,n=i*l+e*c,r=i*u+e*h,a=i*s+e*o;return[Math.atan2(r,n)*Ga,Math.atan2(a,Math.sqrt(n*n+r*r))*Ga]}:function(){return[t*Ga,e*Ga]};return f.distance=d,f}function Mi(){function t(t,r){var s=Math.sin(r*=Ya),a=Math.cos(r),o=ba((t*=Ya)-e),l=Math.cos(o);Jo+=Math.atan2(Math.sqrt((o=a*Math.sin(o))*o+(o=n*s-i*a*l)*o),i*s+n*a*l),e=t,i=s,n=a}var e,i,n;$o.point=function(r,s){e=r*Ya,i=Math.sin(s*=Ya),n=Math.cos(s),$o.point=t},$o.lineEnd=function(){$o.point=$o.lineEnd=M}}function wi(t,e){function i(e,i){var n=Math.cos(e),r=Math.cos(i),s=t(n*r);return[s*r*Math.sin(e),s*Math.sin(i)]}return i.invert=function(t,i){var n=Math.sqrt(t*t+i*i),r=e(n),s=Math.sin(r),a=Math.cos(r);return[Math.atan2(t*s,n*a),Math.asin(n&&i*s/n)]},i}function Li(t,e){function i(t,e){a>0?-Wa+Oa>e&&(e=-Wa+Oa):e>Wa-Oa&&(e=Wa-Oa);var i=a/Math.pow(r(e),s);return[i*Math.sin(s*t),a-i*Math.cos(s*t)]}var n=Math.cos(t),r=function(t){return Math.tan(Ua/4+t/2)},s=t===e?Math.sin(t):Math.log(n/Math.cos(e))/Math.log(r(e)/r(t)),a=n*Math.pow(r(t),s)/s;return s?(i.invert=function(t,e){var i=a-e,n=K(s)*Math.sqrt(t*t+i*i);return[Math.atan2(t,i)/s,2*Math.atan(Math.pow(a/n,1/s))-Wa]},i):Ci}function Di(t,e){function i(t,e){var i=s-e;return[i*Math.sin(r*t),s-i*Math.cos(r*t)]}var n=Math.cos(t),r=t===e?Math.sin(t):(n-Math.cos(e))/(e-t),s=n/r+t;return ba(r)r;r++){for(;n>1&&tt(t[i[n-2]],t[i[n-1]],t[r])<=0;)--n;i[n++]=r}return i.slice(0,n)}function ji(t,e){return t[0]-e[0]||t[1]-e[1]}function Ai(t,e,i){return(i[0]-e[0])*(t[1]-e[1])<(i[1]-e[1])*(t[0]-e[0])}function Ei(t,e,i,n){var r=t[0],s=i[0],a=e[0]-r,o=n[0]-s,l=t[1],u=i[1],c=e[1]-l,h=n[1]-u,d=(o*(l-u)-h*(r-s))/(h*a-o*c);return[r+d*a,l+d*c]}function zi(t){var e=t[0],i=t[t.length-1];return!(e[0]-i[0]||e[1]-i[1])}function Pi(){rn(this),this.edge=this.site=this.circle=null}function Oi(t){var e=cl.pop()||new Pi;return e.site=t,e}function Ri(t){Vi(t),ol.remove(t),cl.push(t),rn(t)}function Ui(t){var e=t.circle,i=e.x,n=e.cy,r={x:i,y:n},s=t.P,a=t.N,o=[t];Ri(t);for(var l=s;l.circle&&ba(i-l.circle.x)c;++c)u=o[c],l=o[c-1],tn(u.edge,l.site,u.site,r);l=o[0],u=o[h-1],u.edge=$i(l.site,u.site,null,r),qi(l),qi(u)}function Fi(t){for(var e,i,n,r,s=t.x,a=t.y,o=ol._;o;)if(n=Hi(o,a)-s,n>Oa)o=o.L;else{if(r=s-Wi(o,a),!(r>Oa)){n>-Oa?(e=o.P,i=o):r>-Oa?(e=o,i=o.N):e=i=o;break}if(!o.R){e=o;break}o=o.R}var l=Oi(t);if(ol.insert(e,l),e||i){if(e===i)return Vi(e),i=Oi(e.site),ol.insert(l,i),l.edge=i.edge=$i(e.site,l.site),qi(e),void qi(i);if(!i)return void(l.edge=$i(e.site,l.site));Vi(e),Vi(i);var u=e.site,c=u.x,h=u.y,d=t.x-c,p=t.y-h,f=i.site,g=f.x-c,m=f.y-h,v=2*(d*m-p*g),y=d*d+p*p,_=g*g+m*m,b={x:(m*y-p*_)/v+c,y:(d*_-g*y)/v+h};tn(i.edge,u,f,b),l.edge=$i(u,t,null,b),i.edge=$i(t,f,null,b),qi(e),qi(i)}}function Hi(t,e){var i=t.site,n=i.x,r=i.y,s=r-e;if(!s)return n;var a=t.P;if(!a)return-(1/0);i=a.site;var o=i.x,l=i.y,u=l-e;if(!u)return o;var c=o-n,h=1/s-1/u,d=c/u;return h?(-d+Math.sqrt(d*d-2*h*(c*c/(-2*u)-l+u/2+r-s/2)))/h+n:(n+o)/2}function Wi(t,e){var i=t.N;if(i)return Hi(i,e);var n=t.site;return n.y===e?n.x:1/0}function Yi(t){this.site=t,this.edges=[]}function Gi(t){for(var e,i,n,r,s,a,o,l,u,c,h=t[0][0],d=t[1][0],p=t[0][1],f=t[1][1],g=al,m=g.length;m--;)if(s=g[m],s&&s.prepare())for(o=s.edges,l=o.length,a=0;l>a;)c=o[a].end(),n=c.x,r=c.y,u=o[++a%l].start(),e=u.x,i=u.y,(ba(n-e)>Oa||ba(r-i)>Oa)&&(o.splice(a,0,new en(Ki(s.site,c,ba(n-h)Oa?{x:h,y:ba(e-h)Oa?{x:ba(i-f)Oa?{x:d,y:ba(e-d)Oa?{x:ba(i-p)=-Ra)){var p=l*l+u*u,f=c*c+h*h,g=(h*p-u*f)/d,m=(l*f-c*p)/d,h=m+o,v=hl.pop()||new Bi;v.arc=t,v.site=r,v.x=g+a,v.y=h+Math.sqrt(g*g+m*m),v.cy=h,t.circle=v;for(var y=null,_=ul._;_;)if(v.y<_.y||v.y===_.y&&v.x<=_.x){if(!_.L){y=_.P;break}_=_.L}else{if(!_.R){y=_;break}_=_.R}ul.insert(y,v),y||(ll=v)}}}}function Vi(t){var e=t.circle;e&&(e.P||(ll=e.N),ul.remove(e),hl.push(e),rn(e),t.circle=null)}function Zi(t){for(var e,i=sl,n=Ye(t[0][0],t[0][1],t[1][0],t[1][1]),r=i.length;r--;)e=i[r],(!Xi(e,t)||!n(e)||ba(e.a.x-e.b.x)m||m>=o)return;if(d>f){if(s){if(s.y>=u)return}else s={x:m,y:l};i={x:m,y:u}}else{if(s){if(s.yn||n>1)if(d>f){if(s){if(s.y>=u)return}else s={x:(l-r)/n,y:l};i={x:(u-r)/n,y:u}}else{if(s){if(s.yp){if(s){if(s.x>=o)return}else s={x:a,y:n*a+r};i={x:o,y:n*o+r}}else{if(s){if(s.xs||h>a||n>d||r>p)){if(f=t.point){var f,g=e-t.x,m=i-t.y,v=g*g+m*m;if(l>v){var y=Math.sqrt(l=v);n=e-y,r=i-y,s=e+y,a=i+y,o=f}}for(var _=t.nodes,b=.5*(c+d),x=.5*(h+p),M=e>=b,w=i>=x,L=w<<1|M,D=L+4;D>L;++L)if(t=_[3&L])switch(3&L){case 0:u(t,c,h,b,x);break;case 1:u(t,b,h,d,x);break;case 2:u(t,c,x,b,p);break;case 3:u(t,b,x,d,p)}}}(t,n,r,s,a),o}function mn(t,e){t=la.rgb(t),e=la.rgb(e);var i=t.r,n=t.g,r=t.b,s=e.r-i,a=e.g-n,o=e.b-r;return function(t){return"#"+xt(Math.round(i+s*t))+xt(Math.round(n+a*t))+xt(Math.round(r+o*t))}}function vn(t,e){var i,n={},r={};for(i in t)i in e?n[i]=bn(t[i],e[i]):r[i]=t[i];for(i in e)i in t||(r[i]=e[i]);return function(t){for(i in n)r[i]=n[i](t);return r}}function yn(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}function _n(t,e){var i,n,r,s=pl.lastIndex=fl.lastIndex=0,a=-1,o=[],l=[];for(t+="",e+="";(i=pl.exec(t))&&(n=fl.exec(e));)(r=n.index)>s&&(r=e.slice(s,r),o[a]?o[a]+=r:o[++a]=r),(i=i[0])===(n=n[0])?o[a]?o[a]+=n:o[++a]=n:(o[++a]=null,l.push({i:a,x:yn(i,n)})),s=fl.lastIndex;return sn;++n)o[(i=l[n]).i]=i.x(t);return o.join("")})}function bn(t,e){for(var i,n=la.interpolators.length;--n>=0&&!(i=la.interpolators[n](t,e)););return i}function xn(t,e){var i,n=[],r=[],s=t.length,a=e.length,o=Math.min(t.length,e.length);for(i=0;o>i;++i)n.push(bn(t[i],e[i]));for(;s>i;++i)r[i]=t[i];for(;a>i;++i)r[i]=e[i];return function(t){for(i=0;o>i;++i)r[i]=n[i](t);return r}}function Mn(t){return function(e){return 0>=e?0:e>=1?1:t(e)}}function wn(t){return function(e){return 1-t(1-e)}}function Ln(t){return function(e){return.5*(.5>e?t(2*e):2-t(2-2*e))}}function Dn(t){return t*t}function Cn(t){return t*t*t}function Tn(t){if(0>=t)return 0;if(t>=1)return 1;var e=t*t,i=e*t;return 4*(.5>t?i:3*(t-e)+i-.75)}function In(t){return function(e){return Math.pow(e,t)}}function Nn(t){return 1-Math.cos(t*Wa)}function kn(t){return Math.pow(2,10*(t-1))}function Sn(t){return 1-Math.sqrt(1-t*t)}function jn(t,e){var i;return arguments.length<2&&(e=.45),arguments.length?i=e/Fa*Math.asin(1/t):(t=1,i=e/4),function(n){return 1+t*Math.pow(2,-10*n)*Math.sin((n-i)*Fa/e)}}function An(t){return t||(t=1.70158),function(e){return e*e*((t+1)*e-t)}}function En(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function zn(t,e){t=la.hcl(t),e=la.hcl(e);var i=t.h,n=t.c,r=t.l,s=e.h-i,a=e.c-n,o=e.l-r;return isNaN(a)&&(a=0,n=isNaN(n)?e.c:n),isNaN(s)?(s=0,i=isNaN(i)?e.h:i):s>180?s-=360:-180>s&&(s+=360),function(t){return ht(i+s*t,n+a*t,r+o*t)+""}}function Pn(t,e){t=la.hsl(t),e=la.hsl(e);var i=t.h,n=t.s,r=t.l,s=e.h-i,a=e.s-n,o=e.l-r;return isNaN(a)&&(a=0,n=isNaN(n)?e.s:n),isNaN(s)?(s=0,i=isNaN(i)?e.h:i):s>180?s-=360:-180>s&&(s+=360),function(t){return ut(i+s*t,n+a*t,r+o*t)+""}}function On(t,e){t=la.lab(t),e=la.lab(e);var i=t.l,n=t.a,r=t.b,s=e.l-i,a=e.a-n,o=e.b-r;return function(t){return pt(i+s*t,n+a*t,r+o*t)+""}}function Rn(t,e){return e-=t,function(i){return Math.round(t+e*i)}}function Un(t){var e=[t.a,t.b],i=[t.c,t.d],n=Hn(e),r=Fn(e,i),s=Hn(Wn(i,e,-r))||0;e[0]*i[1]180?e+=360:e-t>180&&(t+=360),n.push({i:i.push(Yn(i)+"rotate(",null,")")-2,x:yn(t,e)})):e&&i.push(Yn(i)+"rotate("+e+")")}function Bn(t,e,i,n){t!==e?n.push({i:i.push(Yn(i)+"skewX(",null,")")-2,x:yn(t,e)}):e&&i.push(Yn(i)+"skewX("+e+")")}function qn(t,e,i,n){if(t[0]!==e[0]||t[1]!==e[1]){var r=i.push(Yn(i)+"scale(",null,",",null,")");n.push({i:r-4,x:yn(t[0],e[0])},{i:r-2,x:yn(t[1],e[1])})}else(1!==e[0]||1!==e[1])&&i.push(Yn(i)+"scale("+e+")")}function Vn(t,e){var i=[],n=[];return t=la.transform(t),e=la.transform(e),Gn(t.translate,e.translate,i,n),Qn(t.rotate,e.rotate,i,n),Bn(t.skew,e.skew,i,n),qn(t.scale,e.scale,i,n),t=e=null,function(t){for(var e,r=-1,s=n.length;++r=0;)i.push(r[n])}function or(t,e){for(var i=[t],n=[];null!=(t=i.pop());)if(n.push(t),(s=t.children)&&(r=s.length))for(var r,s,a=-1;++ai;++i)(e=t[i][1])>r&&(n=i,r=e);return n}function yr(t){return t.reduce(_r,0)}function _r(t,e){return t+e[1]}function br(t,e){return xr(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function xr(t,e){for(var i=-1,n=+t[0],r=(t[1]-n)/e,s=[];++i<=e;)s[i]=r*i+n;return s}function Mr(t){return[la.min(t),la.max(t)]}function wr(t,e){return t.value-e.value}function Lr(t,e){var i=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=i,i._pack_prev=e}function Dr(t,e){t._pack_next=e,e._pack_prev=t}function Cr(t,e){var i=e.x-t.x,n=e.y-t.y,r=t.r+e.r;return.999*r*r>i*i+n*n}function Tr(t){function e(t){c=Math.min(t.x-t.r,c),h=Math.max(t.x+t.r,h),d=Math.min(t.y-t.r,d),p=Math.max(t.y+t.r,p)}if((i=t.children)&&(u=i.length)){var i,n,r,s,a,o,l,u,c=1/0,h=-(1/0),d=1/0,p=-(1/0);if(i.forEach(Ir),n=i[0],n.x=-n.r,n.y=0,e(n),u>1&&(r=i[1],r.x=r.r,r.y=0,e(r),u>2))for(s=i[2],Sr(n,r,s),e(s),Lr(n,s),n._pack_prev=s,Lr(s,r),r=n._pack_next,a=3;u>a;a++){Sr(n,r,s=i[a]);var f=0,g=1,m=1;for(o=r._pack_next;o!==r;o=o._pack_next,g++)if(Cr(o,s)){f=1;break}if(1==f)for(l=n._pack_prev;l!==o._pack_prev&&!Cr(l,s);l=l._pack_prev,m++);f?(m>g||g==m&&r.ra;a++)s=i[a],s.x-=v,s.y-=y,_=Math.max(_,s.r+Math.sqrt(s.x*s.x+s.y*s.y));t.r=_,i.forEach(Nr)}}function Ir(t){t._pack_next=t._pack_prev=t}function Nr(t){delete t._pack_next,delete t._pack_prev}function kr(t,e,i,n){var r=t.children;if(t.x=e+=n*t.x,t.y=i+=n*t.y,t.r*=n,r)for(var s=-1,a=r.length;++s=0;)e=r[s],e.z+=i,e.m+=i,i+=e.s+(n+=e.c)}function Or(t,e,i){return t.a.parent===e.parent?t.a:i}function Rr(t){return 1+la.max(t,function(t){return t.y})}function Ur(t){return t.reduce(function(t,e){return t+e.x},0)/t.length}function Fr(t){var e=t.children;return e&&e.length?Fr(e[0]):t}function Hr(t){var e,i=t.children;return i&&(e=i.length)?Hr(i[e-1]):t}function Wr(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function Yr(t,e){var i=t.x+e[3],n=t.y+e[0],r=t.dx-e[1]-e[3],s=t.dy-e[0]-e[2];return 0>r&&(i+=r/2,r=0),0>s&&(n+=s/2,s=0),{x:i,y:n,dx:r,dy:s}}function Gr(t){var e=t[0],i=t[t.length-1];return i>e?[e,i]:[i,e]}function Qr(t){return t.rangeExtent?t.rangeExtent():Gr(t.range())}function Br(t,e,i,n){var r=i(t[0],t[1]),s=n(e[0],e[1]);return function(t){return s(r(t))}}function qr(t,e){var i,n=0,r=t.length-1,s=t[n],a=t[r];return s>a&&(i=n,n=r,r=i,i=s,s=a,a=i),t[n]=e.floor(s),t[r]=e.ceil(a),t}function Vr(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:Dl}function Zr(t,e,i,n){var r=[],s=[],a=0,o=Math.min(t.length,e.length)-1;for(t[o]2?Zr:Br,l=n?Xn:Zn;return a=r(t,e,l,i),o=r(e,t,l,bn),s}function s(t){return a(t)}var a,o;return s.invert=function(t){return o(t)},s.domain=function(e){return arguments.length?(t=e.map(Number),r()):t},s.range=function(t){return arguments.length?(e=t,r()):e},s.rangeRound=function(t){return s.range(t).interpolate(Rn)},s.clamp=function(t){return arguments.length?(n=t,r()):n},s.interpolate=function(t){return arguments.length?(i=t,r()):i},s.ticks=function(e){return ts(t,e)},s.tickFormat=function(e,i){return es(t,e,i)},s.nice=function(e){return $r(t,e),r()},s.copy=function(){return Xr(t,e,i,n)},r()}function Jr(t,e){return la.rebind(t,e,"range","rangeRound","interpolate","clamp")}function $r(t,e){return qr(t,Vr(Kr(t,e)[2])),qr(t,Vr(Kr(t,e)[2])),t}function Kr(t,e){null==e&&(e=10);var i=Gr(t),n=i[1]-i[0],r=Math.pow(10,Math.floor(Math.log(n/e)/Math.LN10)),s=e/n*r;return.15>=s?r*=10:.35>=s?r*=5:.75>=s&&(r*=2),i[0]=Math.ceil(i[0]/r)*r,i[1]=Math.floor(i[1]/r)*r+.5*r,i[2]=r,i}function ts(t,e){return la.range.apply(la,Kr(t,e))}function es(t,e,i){var n=Kr(t,e);if(i){var r=po.exec(i);if(r.shift(),"s"===r[8]){var s=la.formatPrefix(Math.max(ba(n[0]),ba(n[1])));return r[7]||(r[7]="."+is(s.scale(n[2]))),r[8]="f",i=la.format(r.join("")),function(t){return i(s.scale(t))+s.symbol}}r[7]||(r[7]="."+ns(r[8],n)),i=r.join("")}else i=",."+is(n[2])+"f";return la.format(i)}function is(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function ns(t,e){var i=is(e[2]);return t in Cl?Math.abs(i-is(Math.max(ba(e[0]),ba(e[1]))))+ +("e"!==t):i-2*("%"===t)}function rs(t,e,i,n){function r(t){return(i?Math.log(0>t?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function s(t){return i?Math.pow(e,t):-Math.pow(e,-t)}function a(e){return t(r(e))}return a.invert=function(e){return s(t.invert(e))},a.domain=function(e){return arguments.length?(i=e[0]>=0,t.domain((n=e.map(Number)).map(r)),a):n},a.base=function(i){return arguments.length?(e=+i,t.domain(n.map(r)),a):e},a.nice=function(){var e=qr(n.map(r),i?Math:Il);return t.domain(e),n=e.map(s),a},a.ticks=function(){var t=Gr(n),a=[],o=t[0],l=t[1],u=Math.floor(r(o)),c=Math.ceil(r(l)),h=e%1?2:e;if(isFinite(c-u)){if(i){for(;c>u;u++)for(var d=1;h>d;d++)a.push(s(u)*d);a.push(s(u))}else for(a.push(s(u));u++0;d--)a.push(s(u)*d);for(u=0;a[u]l;c--);a=a.slice(u,c)}return a},a.tickFormat=function(t,i){if(!arguments.length)return Tl;arguments.length<2?i=Tl:"function"!=typeof i&&(i=la.format(i));var n=Math.max(1,e*t/a.ticks().length);return function(t){var a=t/s(Math.round(r(t)));return e-.5>a*e&&(a*=e),n>=a?i(t):""}},a.copy=function(){return rs(t.copy(),e,i,n)},Jr(a,t)}function ss(t,e,i){function n(e){return t(r(e))}var r=as(e),s=as(1/e);return n.invert=function(e){return s(t.invert(e))},n.domain=function(e){return arguments.length?(t.domain((i=e.map(Number)).map(r)),n):i},n.ticks=function(t){return ts(i,t)},n.tickFormat=function(t,e){return es(i,t,e)},n.nice=function(t){return n.domain($r(i,t))},n.exponent=function(a){return arguments.length?(r=as(e=a),s=as(1/e),t.domain(i.map(r)),n):e},n.copy=function(){return ss(t.copy(),e,i)},Jr(n,t)}function as(t){return function(e){return 0>e?-Math.pow(-e,t):Math.pow(e,t)}}function os(t,e){function i(i){return s[((r.get(i)||("range"===e.t?r.set(i,t.push(i)):0/0))-1)%s.length]}function n(e,i){return la.range(t.length).map(function(t){return e+i*t})}var r,s,a;return i.domain=function(n){if(!arguments.length)return t;t=[],r=new c;for(var s,a=-1,o=n.length;++ai?[0/0,0/0]:[i>0?o[i-1]:t[0],ie?0/0:e/s+t,[e,e+1/s]},n.copy=function(){return us(t,e,i)},r()}function cs(t,e){function i(i){return i>=i?e[la.bisect(t,i)]:void 0}return i.domain=function(e){return arguments.length?(t=e,i):t},i.range=function(t){return arguments.length?(e=t,i):e},i.invertExtent=function(i){return i=e.indexOf(i),[t[i-1],t[i]]},i.copy=function(){return cs(t,e)},i}function hs(t){function e(t){return+t}return e.invert=e,e.domain=e.range=function(i){return arguments.length?(t=i.map(e),e):t},e.ticks=function(e){return ts(t,e)},e.tickFormat=function(e,i){return es(t,e,i)},e.copy=function(){return hs(t)},e}function ds(){return 0}function ps(t){return t.innerRadius}function fs(t){return t.outerRadius}function gs(t){return t.startAngle}function ms(t){return t.endAngle}function vs(t){return t&&t.padAngle}function ys(t,e,i,n){return(t-i)*e-(e-n)*t>0?0:1}function _s(t,e,i,n,r){var s=t[0]-e[0],a=t[1]-e[1],o=(r?n:-n)/Math.sqrt(s*s+a*a),l=o*a,u=-o*s,c=t[0]+l,h=t[1]+u,d=e[0]+l,p=e[1]+u,f=(c+d)/2,g=(h+p)/2,m=d-c,v=p-h,y=m*m+v*v,_=i-n,b=c*p-d*h,x=(0>v?-1:1)*Math.sqrt(Math.max(0,_*_*y-b*b)),M=(b*v-m*x)/y,w=(-b*m-v*x)/y,L=(b*v+m*x)/y,D=(-b*m+v*x)/y,C=M-f,T=w-g,I=L-f,N=D-g;return C*C+T*T>I*I+N*N&&(M=L,w=D),[[M-l,w-u],[M*i/_,w*i/_]]}function bs(t){function e(e){function a(){u.push("M",s(t(c),o))}for(var l,u=[],c=[],h=-1,d=e.length,p=Tt(i),f=Tt(n);++h1?t.join("L"):t+"Z"}function Ms(t){return t.join("L")+"Z"}function ws(t){for(var e=0,i=t.length,n=t[0],r=[n[0],",",n[1]];++e1&&r.push("H",n[0]),r.join("")}function Ls(t){for(var e=0,i=t.length,n=t[0],r=[n[0],",",n[1]];++e1){o=e[1],s=t[l],l++,n+="C"+(r[0]+a[0])+","+(r[1]+a[1])+","+(s[0]-o[0])+","+(s[1]-o[1])+","+s[0]+","+s[1];for(var u=2;u9&&(r=3*e/Math.sqrt(r),a[o]=r*i,a[o+1]=r*n));for(o=-1;++o<=l;)r=(t[Math.min(l,o+1)][0]-t[Math.max(0,o-1)][0])/(6*(1+a[o]*a[o])),s.push([r||0,a[o]*r||0]);return s}function Fs(t){return t.length<3?xs(t):t[0]+Ns(t,Us(t))}function Hs(t){for(var e,i,n,r=-1,s=t.length;++r=e?a(t-e):void(u.c=a)}function a(i){var r=f.active,s=f[r];s&&(s.timer.c=null,s.timer.t=0/0,--f.count,delete f[r],s.event&&s.event.interrupt.call(t,t.__data__,s.index));for(var a in f)if(n>+a){var c=f[a];c.timer.c=null,c.timer.t=0/0,--f.count,delete f[a]}u.c=o,jt(function(){return u.c&&o(i||1)&&(u.c=null,u.t=0/0),1},0,l),f.active=n,g.event&&g.event.start.call(t,t.__data__,e),p=[],g.tween.forEach(function(i,n){(n=n.call(t,t.__data__,e))&&p.push(n)}),d=g.ease,h=g.duration}function o(r){for(var s=r/h,a=d(s),o=p.length;o>0;)p[--o].call(t,a);return s>=1?(g.event&&g.event.end.call(t,t.__data__,e),--f.count?delete f[n]:delete t[i],1):void 0}var l,u,h,d,p,f=t[i]||(t[i]={active:0,count:0}),g=f[n];g||(l=r.time,u=jt(s,0,l),g=f[n]={tween:new c,time:l,timer:u,delay:r.delay,duration:r.duration,ease:r.ease,index:e},r=null,++f.count)}function ea(t,e,i){t.attr("transform",function(t){var n=e(t);return"translate("+(isFinite(n)?n:i(t))+",0)"})}function ia(t,e,i){t.attr("transform",function(t){var n=e(t);return"translate(0,"+(isFinite(n)?n:i(t))+")"})}function na(t){return t.toISOString()}function ra(t,e,i){function n(e){return t(e)}function r(t,i){var n=t[1]-t[0],r=n/i,s=la.bisect(Kl,r);return s==Kl.length?[e.year,Kr(t.map(function(t){return t/31536e6}),i)[2]]:s?e[r/Kl[s-1]1?{floor:function(e){for(;i(e=t.floor(e));)e=sa(e-1);return e},ceil:function(e){for(;i(e=t.ceil(e));)e=sa(+e+1);return e}}:t))},n.ticks=function(t,e){var i=Gr(n.domain()),s=null==t?r(i,10):"number"==typeof t?r(i,t):!t.range&&[{range:t},e];return s&&(t=s[0],e=s[1]),t.range(i[0],sa(+i[1]+1),1>e?1:e)},n.tickFormat=function(){return i},n.copy=function(){return ra(t.copy(),e,i)},Jr(n,t)}function sa(t){return new Date(t)}function aa(t){return JSON.parse(t.responseText)}function oa(t){var e=ha.createRange();return e.selectNode(ha.body),e.createContextualFragment(t.responseText)}var la={version:"3.5.17"},ua=[].slice,ca=function(t){return ua.call(t)},ha=this.document;if(ha)try{ca(ha.documentElement.childNodes)[0].nodeType}catch(da){ca=function(t){for(var e=t.length,i=new Array(e);e--;)i[e]=t[e];return i}}if(Date.now||(Date.now=function(){return+new Date}),ha)try{ha.createElement("DIV").style.setProperty("opacity",0,"")}catch(pa){var fa=this.Element.prototype,ga=fa.setAttribute,ma=fa.setAttributeNS,va=this.CSSStyleDeclaration.prototype,ya=va.setProperty;fa.setAttribute=function(t,e){ga.call(this,t,e+"")},fa.setAttributeNS=function(t,e,i){ma.call(this,t,e,i+"")},va.setProperty=function(t,e,i){ya.call(this,t,e+"",i)}}la.ascending=n,la.descending=function(t,e){return t>e?-1:e>t?1:e>=t?0:0/0},la.min=function(t,e){var i,n,r=-1,s=t.length;if(1===arguments.length){for(;++r=n){i=n;break}for(;++rn&&(i=n)}else{for(;++r=n){i=n;break}for(;++rn&&(i=n)}return i},la.max=function(t,e){var i,n,r=-1,s=t.length;if(1===arguments.length){for(;++r=n){i=n;break}for(;++ri&&(i=n)}else{for(;++r=n){i=n;break}for(;++ri&&(i=n)}return i},la.extent=function(t,e){var i,n,r,s=-1,a=t.length;if(1===arguments.length){for(;++s=n){i=r=n;break}for(;++sn&&(i=n),n>r&&(r=n))}else{for(;++s=n){i=r=n;break}for(;++sn&&(i=n),n>r&&(r=n))}return[i,r]},la.sum=function(t,e){var i,n=0,r=t.length,a=-1;if(1===arguments.length)for(;++a1?l/(c-1):void 0},la.deviation=function(){var t=la.variance.apply(this,arguments);return t?Math.sqrt(t):t};var _a=a(n);la.bisectLeft=_a.left,la.bisect=la.bisectRight=_a.right,la.bisector=function(t){return a(1===t.length?function(e,i){return n(t(e),i)}:t)},la.shuffle=function(t,e,i){(s=arguments.length)<3&&(i=t.length,2>s&&(e=0));for(var n,r,s=i-e;s;)r=Math.random()*s--|0,n=t[s+e],t[s+e]=t[r+e],t[r+e]=n;return t},la.permute=function(t,e){for(var i=e.length,n=new Array(i);i--;)n[i]=t[e[i]];return n},la.pairs=function(t){for(var e,i=0,n=t.length-1,r=t[0],s=new Array(0>n?0:n);n>i;)s[i]=[e=r,r=t[++i]];return s},la.transpose=function(t){if(!(r=t.length))return[];for(var e=-1,i=la.min(t,o),n=new Array(i);++e=0;)for(n=t[r],e=n.length;--e>=0;)i[--a]=n[e];return i};var ba=Math.abs;la.range=function(t,e,i){if(arguments.length<3&&(i=1,arguments.length<2&&(e=t,t=0)),(e-t)/i===1/0)throw new Error("infinite range");var n,r=[],s=l(ba(i)),a=-1;if(t*=s,e*=s,i*=s,0>i)for(;(n=t+i*++a)>e;)r.push(n/s);else for(;(n=t+i*++a)=s.length)return n?n.call(r,a):i?a.sort(i):a;for(var l,u,h,d,p=-1,f=a.length,g=s[o++],m=new c;++p=s.length)return t;var n=[],r=a[i++];return t.forEach(function(t,r){n.push({key:t,values:e(r,i)})}),r?n.sort(function(t,e){return r(t.key,e.key)}):n}var i,n,r={},s=[],a=[];return r.map=function(e,i){return t(i,e,0)},r.entries=function(i){return e(t(la.map,i,0),0)},r.key=function(t){return s.push(t),r},r.sortKeys=function(t){return a[s.length-1]=t,r},r.sortValues=function(t){return i=t,r},r.rollup=function(t){return n=t,r},r},la.set=function(t){var e=new y;if(t)for(var i=0,n=t.length;n>i;++i)e.add(t[i]);return e},u(y,{has:p,add:function(t){return this._[h(t+="")]=!0,t},remove:f,values:g,size:m,empty:v,forEach:function(t){for(var e in this._)t.call(this,d(e))}}),la.behavior={},la.rebind=function(t,e){for(var i,n=1,r=arguments.length;++n=0&&(n=t.slice(i+1),t=t.slice(0,i)),t)return arguments.length<2?this[t].on(n):this[t].on(n,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(n,null);return this}},la.event=null,la.requote=function(t){return t.replace(La,"\\$&")};var La=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Da={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)t[i]=e[i]},Ca=function(t,e){return e.querySelector(t)},Ta=function(t,e){return e.querySelectorAll(t)},Ia=function(t,e){var i=t.matches||t[x(t,"matchesSelector")];return(Ia=function(t,e){return i.call(t,e)})(t,e)};"function"==typeof Sizzle&&(Ca=function(t,e){return Sizzle(t,e)[0]||null},Ta=Sizzle,Ia=Sizzle.matchesSelector),la.selection=function(){return la.select(ha.documentElement)};var Na=la.selection.prototype=[];Na.select=function(t){var e,i,n,r,s=[];t=N(t);for(var a=-1,o=this.length;++a=0&&"xmlns"!==(i=t.slice(0,e))&&(t=t.slice(e+1)),Sa.hasOwnProperty(i)?{space:Sa[i],local:t}:t}},Na.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var i=this.node();return t=la.ns.qualify(t),t.local?i.getAttributeNS(t.space,t.local):i.getAttribute(t)}for(e in t)this.each(S(e,t[e]));return this}return this.each(S(t,e))},Na.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var i=this.node(),n=(t=E(t)).length,r=-1;if(e=i.classList){for(;++rr){if("string"!=typeof t){2>r&&(e="");for(n in t)this.each(O(n,t[n],e));return this}if(2>r){var s=this.node();return i(s).getComputedStyle(s,null).getPropertyValue(t)}n=""}return this.each(O(t,e,n))},Na.property=function(t,e){if(arguments.length<2){if("string"==typeof t)return this.node()[t];for(e in t)this.each(R(e,t[e]));return this}return this.each(R(t,e))},Na.text=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}:null==t?function(){this.textContent=""}:function(){this.textContent=t}):this.node().textContent},Na.html=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}:null==t?function(){this.innerHTML=""}:function(){this.innerHTML=t}):this.node().innerHTML},Na.append=function(t){return t=U(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},Na.insert=function(t,e){return t=U(t),e=N(e),this.select(function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)})},Na.remove=function(){return this.each(F)},Na.data=function(t,e){function i(t,i){var n,r,s,a=t.length,h=i.length,d=Math.min(a,h),p=new Array(h),f=new Array(h),g=new Array(a);if(e){var m,v=new c,y=new Array(a);for(n=-1;++nn;++n)f[n]=H(i[n]);for(;a>n;++n)g[n]=t[n]}f.update=p,f.parentNode=p.parentNode=g.parentNode=t.parentNode,o.push(f),l.push(p),u.push(g)}var n,r,s=-1,a=this.length;if(!arguments.length){for(t=new Array(a=(n=this[0]).length);++ss;s++){r.push(e=[]),e.parentNode=(i=this[s]).parentNode;for(var o=0,l=i.length;l>o;o++)(n=i[o])&&t.call(n,n.__data__,o,s)&&e.push(n)}return I(r)},Na.order=function(){for(var t=-1,e=this.length;++t=0;)(i=n[r])&&(s&&s!==i.nextSibling&&s.parentNode.insertBefore(i,s),s=i);return this},Na.sort=function(t){t=Y.apply(this,arguments);for(var e=-1,i=this.length;++et;t++)for(var i=this[t],n=0,r=i.length;r>n;n++){var s=i[n];if(s)return s}return null},Na.size=function(){var t=0;return G(this,function(){++t}),t};var ja=[];la.selection.enter=Q,la.selection.enter.prototype=ja,ja.append=Na.append,ja.empty=Na.empty,ja.node=Na.node,ja.call=Na.call,ja.size=Na.size,ja.select=function(t){for(var e,i,n,r,s,a=[],o=-1,l=this.length;++on){if("string"!=typeof t){2>n&&(e=!1);for(i in t)this.each(q(i,t[i],e));return this}if(2>n)return(n=this.node()["__on"+t])&&n._;i=!1}return this.each(q(t,e,i))};var Aa=la.map({mouseenter:"mouseover",mouseleave:"mouseout"});ha&&Aa.forEach(function(t){"on"+t in ha&&Aa.remove(t)});var Ea,za=0;la.mouse=function(t){return J(t,C())};var Pa=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;la.touch=function(t,e,i){if(arguments.length<3&&(i=e,e=C().changedTouches),e)for(var n,r=0,s=e.length;s>r;++r)if((n=e[r]).identifier===i)return J(t,n)},la.behavior.drag=function(){function t(){this.on("mousedown.drag",s).on("touchstart.drag",a)}function e(t,e,i,s,a){return function(){function o(){var t,i,n=e(d,g);n&&(t=n[0]-_[0],i=n[1]-_[1],f|=t|i,_=n,p({type:"drag",x:n[0]+u[0],y:n[1]+u[1],dx:t,dy:i}))}function l(){e(d,g)&&(v.on(s+m,null).on(a+m,null),y(f),p({type:"dragend"}))}var u,c=this,h=la.event.target.correspondingElement||la.event.target,d=c.parentNode,p=n.of(c,arguments),f=0,g=t(),m=".drag"+(null==g?"":"-"+g),v=la.select(i(h)).on(s+m,o).on(a+m,l),y=X(h),_=e(d,g);r?(u=r.apply(c,arguments),u=[u.x-_[0],u.y-_[1]]):u=[0,0],p({type:"dragstart"})}}var n=T(t,"drag","dragstart","dragend"),r=null,s=e(M,la.mouse,i,"mousemove","mouseup"),a=e($,la.touch,_,"touchmove","touchend");return t.origin=function(e){return arguments.length?(r=e,t):r},la.rebind(t,n,"on")},la.touches=function(t,e){return arguments.length<2&&(e=C().touches),e?ca(e).map(function(e){var i=J(t,e);return i.identifier=e.identifier,i}):[]};var Oa=1e-6,Ra=Oa*Oa,Ua=Math.PI,Fa=2*Ua,Ha=Fa-Oa,Wa=Ua/2,Ya=Ua/180,Ga=180/Ua,Qa=Math.SQRT2,Ba=2,qa=4;la.interpolateZoom=function(t,e){var i,n,r=t[0],s=t[1],a=t[2],o=e[0],l=e[1],u=e[2],c=o-r,h=l-s,d=c*c+h*h;if(Ra>d)n=Math.log(u/a)/Qa,i=function(t){return[r+t*c,s+t*h,a*Math.exp(Qa*t*n)]};else{var p=Math.sqrt(d),f=(u*u-a*a+qa*d)/(2*a*Ba*p),g=(u*u-a*a-qa*d)/(2*u*Ba*p),m=Math.log(Math.sqrt(f*f+1)-f),v=Math.log(Math.sqrt(g*g+1)-g);n=(v-m)/Qa,i=function(t){var e=t*n,i=rt(m),o=a/(Ba*p)*(i*st(Qa*e+m)-nt(m));return[r+o*c,s+o*h,a*i/rt(Qa*e+m)]}}return i.duration=1e3*n,i},la.behavior.zoom=function(){function t(t){t.on(S,h).on(Za+".zoom",p).on("dblclick.zoom",f).on(E,d)}function e(t){return[(t[0]-L.x)/L.k,(t[1]-L.y)/L.k]}function n(t){return[t[0]*L.k+L.x,t[1]*L.k+L.y]}function r(t){L.k=Math.max(I[0],Math.min(I[1],t))}function s(t,e){e=n(e),L.x+=t[0]-e[0],L.y+=t[1]-e[1]}function a(e,i,n,a){e.__chart__={x:L.x,y:L.y,k:L.k},r(Math.pow(2,a)),s(m=i,n),e=la.select(e),N>0&&(e=e.transition().duration(N)),e.call(t.event)}function o(){x&&x.domain(b.range().map(function(t){return(t-L.x)/L.k}).map(b.invert)),w&&w.domain(M.range().map(function(t){return(t-L.y)/L.k}).map(M.invert))}function l(t){k++||t({type:"zoomstart"})}function u(t){o(),t({type:"zoom",scale:L.k,translate:[L.x,L.y]})}function c(t){--k||(t({type:"zoomend"}),m=null)}function h(){function t(){o=1,s(la.mouse(r),d),u(a)}function n(){h.on(j,null).on(A,null),p(o),c(a)}var r=this,a=z.of(r,arguments),o=0,h=la.select(i(r)).on(j,t).on(A,n),d=e(la.mouse(r)),p=X(r);Yl.call(r),l(a)}function d(){function t(){var t=la.touches(f);return p=L.k,t.forEach(function(t){t.identifier in m&&(m[t.identifier]=e(t))}),t}function i(){var e=la.event.target;la.select(e).on(b,n).on(x,o),M.push(e);for(var i=la.event.changedTouches,r=0,s=i.length;s>r;++r)m[i[r].identifier]=null;var l=t(),u=Date.now();if(1===l.length){if(500>u-_){var c=l[0];a(f,c,m[c.identifier],Math.floor(Math.log(L.k)/Math.LN2)+1),D()}_=u}else if(l.length>1){var c=l[0],h=l[1],d=c[0]-h[0],p=c[1]-h[1];v=d*d+p*p}}function n(){var t,e,i,n,a=la.touches(f);Yl.call(f);for(var o=0,l=a.length;l>o;++o,n=null)if(i=a[o],n=m[i.identifier]){if(e)break;t=i,e=n}if(n){var c=(c=i[0]-t[0])*c+(c=i[1]-t[1])*c,h=v&&Math.sqrt(c/v);t=[(t[0]+i[0])/2,(t[1]+i[1])/2],e=[(e[0]+n[0])/2,(e[1]+n[1])/2],r(h*p)}_=null,s(t,e),u(g)}function o(){if(la.event.touches.length){for(var e=la.event.changedTouches,i=0,n=e.length;n>i;++i)delete m[e[i].identifier];for(var r in m)return void t()}la.selectAll(M).on(y,null),w.on(S,h).on(E,d),C(),c(g)}var p,f=this,g=z.of(f,arguments),m={},v=0,y=".zoom-"+la.event.changedTouches[0].identifier,b="touchmove"+y,x="touchend"+y,M=[],w=la.select(f),C=X(f);i(),l(g),w.on(S,null).on(E,i)}function p(){var t=z.of(this,arguments);y?clearTimeout(y):(Yl.call(this),g=e(m=v||la.mouse(this)),l(t)),y=setTimeout(function(){y=null,c(t)},50),D(),r(Math.pow(2,.002*Va())*L.k),s(m,g),u(t)}function f(){var t=la.mouse(this),i=Math.log(L.k)/Math.LN2;a(this,t,e(t),la.event.shiftKey?Math.ceil(i)-1:Math.floor(i)+1)}var g,m,v,y,_,b,x,M,w,L={x:0,y:0,k:1},C=[960,500],I=Xa,N=250,k=0,S="mousedown.zoom",j="mousemove.zoom",A="mouseup.zoom",E="touchstart.zoom",z=T(t,"zoomstart","zoom","zoomend");return Za||(Za="onwheel"in ha?(Va=function(){return-la.event.deltaY*(la.event.deltaMode?120:1)},"wheel"):"onmousewheel"in ha?(Va=function(){return la.event.wheelDelta},"mousewheel"):(Va=function(){return-la.event.detail},"MozMousePixelScroll")),t.event=function(t){t.each(function(){var t=z.of(this,arguments),e=L;Hl?la.select(this).transition().each("start.zoom",function(){L=this.__chart__||{x:0,y:0,k:1},l(t)}).tween("zoom:zoom",function(){var i=C[0],n=C[1],r=m?m[0]:i/2,s=m?m[1]:n/2,a=la.interpolateZoom([(r-L.x)/L.k,(s-L.y)/L.k,i/L.k],[(r-e.x)/e.k,(s-e.y)/e.k,i/e.k]);return function(e){var n=a(e),o=i/n[2];this.__chart__=L={x:r-n[0]*o,y:s-n[1]*o,k:o},u(t)}}).each("interrupt.zoom",function(){c(t)}).each("end.zoom",function(){c(t)}):(this.__chart__=L,l(t),u(t),c(t))})},t.translate=function(e){return arguments.length?(L={x:+e[0],y:+e[1],k:L.k},o(),t):[L.x,L.y]},t.scale=function(e){return arguments.length?(L={x:L.x,y:L.y,k:null},r(+e),o(),t):L.k},t.scaleExtent=function(e){return arguments.length?(I=null==e?Xa:[+e[0],+e[1]],t):I},t.center=function(e){return arguments.length?(v=e&&[+e[0],+e[1]],t):v},t.size=function(e){return arguments.length?(C=e&&[+e[0],+e[1]],t):C},t.duration=function(e){return arguments.length?(N=+e,t):N},t.x=function(e){return arguments.length?(x=e,b=e.copy(),L={x:0,y:0,k:1},t):x},t.y=function(e){return arguments.length?(w=e,M=e.copy(),L={x:0,y:0,k:1},t):w},la.rebind(t,z,"on")};var Va,Za,Xa=[0,1/0];la.color=ot,ot.prototype.toString=function(){return this.rgb()+""},la.hsl=lt;var Ja=lt.prototype=new ot;Ja.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new lt(this.h,this.s,this.l/t)},Ja.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new lt(this.h,this.s,t*this.l)},Ja.rgb=function(){return ut(this.h,this.s,this.l)},la.hcl=ct;var $a=ct.prototype=new ot;$a.brighter=function(t){return new ct(this.h,this.c,Math.min(100,this.l+Ka*(arguments.length?t:1)))},$a.darker=function(t){return new ct(this.h,this.c,Math.max(0,this.l-Ka*(arguments.length?t:1)))},$a.rgb=function(){return ht(this.h,this.c,this.l).rgb()},la.lab=dt;var Ka=18,to=.95047,eo=1,io=1.08883,no=dt.prototype=new ot;no.brighter=function(t){return new dt(Math.min(100,this.l+Ka*(arguments.length?t:1)),this.a,this.b)},no.darker=function(t){return new dt(Math.max(0,this.l-Ka*(arguments.length?t:1)),this.a,this.b)},no.rgb=function(){return pt(this.l,this.a,this.b)},la.rgb=yt;var ro=yt.prototype=new ot;ro.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,i=this.g,n=this.b,r=30;return e||i||n?(e&&r>e&&(e=r),i&&r>i&&(i=r),n&&r>n&&(n=r),new yt(Math.min(255,e/t),Math.min(255,i/t),Math.min(255,n/t))):new yt(r,r,r)},ro.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new yt(t*this.r,t*this.g,t*this.b)},ro.hsl=function(){return wt(this.r,this.g,this.b)},ro.toString=function(){return"#"+xt(this.r)+xt(this.g)+xt(this.b)};var so=la.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});so.forEach(function(t,e){so.set(t,_t(e))}),la.functor=Tt,la.xhr=It(_),la.dsv=function(t,e){function i(t,i,s){arguments.length<3&&(s=i,i=null);var a=Nt(t,e,null==i?n:r(i),s);return a.row=function(t){return arguments.length?a.response(null==(i=t)?n:r(t)):i},a}function n(t){return i.parse(t.responseText)}function r(t){return function(e){return i.parse(e.responseText,t)}}function s(e){return e.map(a).join(t)}function a(t){return o.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var o=new RegExp('["'+t+"\n]"),l=t.charCodeAt(0);return i.parse=function(t,e){var n;return i.parseRows(t,function(t,i){if(n)return n(t,i-1);var r=new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}");n=e?function(t,i){return e(r(t),i)}:r})},i.parseRows=function(t,e){function i(){if(c>=u)return a;if(r)return r=!1,s;var e=c;if(34===t.charCodeAt(e)){for(var i=e;i++c;){var n=t.charCodeAt(c++),o=1;if(10===n)r=!0;else if(13===n)r=!0,10===t.charCodeAt(c)&&(++c,++o);else if(n!==l)continue;return t.slice(e,c-o)}return t.slice(e)}for(var n,r,s={},a={},o=[],u=t.length,c=0,h=0;(n=i())!==a;){for(var d=[];n!==s&&n!==a;)d.push(n),n=i();e&&null==(d=e(d,h++))||o.push(d)}return o},i.format=function(e){if(Array.isArray(e[0]))return i.formatRows(e);var n=new y,r=[];return e.forEach(function(t){for(var e in t)n.has(e)||r.push(n.add(e))}),[r.map(a).join(t)].concat(e.map(function(e){return r.map(function(t){return a(e[t])}).join(t)})).join("\n")},i.formatRows=function(t){return t.map(s).join("\n")},i},la.csv=la.dsv(",","text/csv"),la.tsv=la.dsv(" ","text/tab-separated-values");var ao,oo,lo,uo,co=this[x(this,"requestAnimationFrame")]||function(t){setTimeout(t,17)};la.timer=function(){jt.apply(this,arguments)},la.timer.flush=function(){Et(),zt()},la.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var ho=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(Ot);la.formatPrefix=function(t,e){var i=0;return(t=+t)&&(0>t&&(t*=-1),e&&(t=la.round(t,Pt(t,e))),i=1+Math.floor(1e-12+Math.log(t)/Math.LN10),i=Math.max(-24,Math.min(24,3*Math.floor((i-1)/3)))),ho[8+i/3]};var po=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,fo=la.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=la.round(t,Pt(t,e))).toFixed(Math.max(0,Math.min(20,Pt(t*(1+1e-15),e))))}}),go=la.time={},mo=Date;Ft.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){vo.setUTCDate.apply(this._,arguments)},setDay:function(){vo.setUTCDay.apply(this._,arguments)},setFullYear:function(){vo.setUTCFullYear.apply(this._,arguments)},setHours:function(){vo.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){vo.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){vo.setUTCMinutes.apply(this._,arguments)},setMonth:function(){vo.setUTCMonth.apply(this._,arguments)},setSeconds:function(){vo.setUTCSeconds.apply(this._,arguments)},setTime:function(){ -vo.setTime.apply(this._,arguments)}};var vo=Date.prototype;go.year=Ht(function(t){return t=go.day(t),t.setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),go.years=go.year.range,go.years.utc=go.year.utc.range,go.day=Ht(function(t){var e=new mo(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),go.days=go.day.range,go.days.utc=go.day.utc.range,go.dayOfYear=function(t){var e=go.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(t,e){e=7-e;var i=go[t]=Ht(function(t){return(t=go.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var i=go.year(t).getDay();return Math.floor((go.dayOfYear(t)+(i+e)%7)/7)-(i!==e)});go[t+"s"]=i.range,go[t+"s"].utc=i.utc.range,go[t+"OfYear"]=function(t){var i=go.year(t).getDay();return Math.floor((go.dayOfYear(t)+(i+e)%7)/7)}}),go.week=go.sunday,go.weeks=go.sunday.range,go.weeks.utc=go.sunday.utc.range,go.weekOfYear=go.sundayOfYear;var yo={"-":"",_:" ",0:"0"},_o=/^\s*\d+/,bo=/^%/;la.locale=function(t){return{numberFormat:Rt(t),timeFormat:Yt(t)}};var xo=la.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});la.format=xo.numberFormat,la.geo={},ce.prototype={s:0,t:0,add:function(t){he(t,this.t,Mo),he(Mo.s,this.s,this),this.s?this.t+=Mo.t:this.s=Mo.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var Mo=new ce;la.geo.stream=function(t,e){t&&wo.hasOwnProperty(t.type)?wo[t.type](t,e):de(t,e)};var wo={Feature:function(t,e){de(t.geometry,e)},FeatureCollection:function(t,e){for(var i=t.features,n=-1,r=i.length;++nt?4*Ua+t:t,To.lineStart=To.lineEnd=To.point=M}};la.geo.bounds=function(){function t(t,e){_.push(b=[c=t,d=t]),h>e&&(h=e),e>p&&(p=e)}function e(e,i){var n=me([e*Ya,i*Ya]);if(v){var r=ye(v,n),s=[r[1],-r[0],0],a=ye(s,r);xe(a),a=Me(a);var l=e-f,u=l>0?1:-1,g=a[0]*Ga*u,m=ba(l)>180;if(m^(g>u*f&&u*e>g)){var y=a[1]*Ga;y>p&&(p=y)}else if(g=(g+360)%360-180,m^(g>u*f&&u*e>g)){var y=-a[1]*Ga;h>y&&(h=y)}else h>i&&(h=i),i>p&&(p=i);m?f>e?o(c,e)>o(c,d)&&(d=e):o(e,d)>o(c,d)&&(c=e):d>=c?(c>e&&(c=e),e>d&&(d=e)):e>f?o(c,e)>o(c,d)&&(d=e):o(e,d)>o(c,d)&&(c=e)}else t(e,i);v=n,f=e}function i(){x.point=e}function n(){b[0]=c,b[1]=d,x.point=t,v=null}function r(t,i){if(v){var n=t-f;y+=ba(n)>180?n+(n>0?360:-360):n}else g=t,m=i;To.point(t,i),e(t,i)}function s(){To.lineStart()}function a(){r(g,m),To.lineEnd(),ba(y)>Oa&&(c=-(d=180)),b[0]=c,b[1]=d,v=null}function o(t,e){return(e-=t)<0?e+360:e}function l(t,e){return t[0]-e[0]}function u(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tCo?(c=-(d=180),h=-(p=90)):y>Oa?p=90:-Oa>y&&(h=-90),b[0]=c,b[1]=d}};return function(t){p=d=-(c=h=1/0),_=[],la.geo.stream(t,x);var e=_.length;if(e){_.sort(l);for(var i,n=1,r=_[0],s=[r];e>n;++n)i=_[n],u(i[0],r)||u(i[1],r)?(o(r[0],i[1])>o(r[0],r[1])&&(r[1]=i[1]),o(i[0],r[1])>o(r[0],r[1])&&(r[0]=i[0])):s.push(r=i);for(var a,i,f=-(1/0),e=s.length-1,n=0,r=s[e];e>=n;r=i,++n)i=s[n],(a=o(r[1],i[0]))>f&&(f=a,c=i[0],d=r[1])}return _=b=null,c===1/0||h===1/0?[[0/0,0/0],[0/0,0/0]]:[[c,h],[d,p]]}}(),la.geo.centroid=function(t){Io=No=ko=So=jo=Ao=Eo=zo=Po=Oo=Ro=0,la.geo.stream(t,Uo);var e=Po,i=Oo,n=Ro,r=e*e+i*i+n*n;return Ra>r&&(e=Ao,i=Eo,n=zo,Oa>No&&(e=ko,i=So,n=jo),r=e*e+i*i+n*n,Ra>r)?[0/0,0/0]:[Math.atan2(i,e)*Ga,it(n/Math.sqrt(r))*Ga]};var Io,No,ko,So,jo,Ao,Eo,zo,Po,Oo,Ro,Uo={sphere:M,point:Le,lineStart:Ce,lineEnd:Te,polygonStart:function(){Uo.lineStart=Ie},polygonEnd:function(){Uo.lineStart=Ce}},Fo=Ee(ke,Re,Fe,[-Ua,-Ua/2]),Ho=1e9;la.geo.clipExtent=function(){var t,e,i,n,r,s,a={stream:function(t){return r&&(r.valid=!1),r=s(t),r.valid=!0,r},extent:function(o){return arguments.length?(s=Ge(t=+o[0][0],e=+o[0][1],i=+o[1][0],n=+o[1][1]),r&&(r.valid=!1,r=null),a):[[t,e],[i,n]]}};return a.extent([[0,0],[960,500]])},(la.geo.conicEqualArea=function(){return Qe(Be)}).raw=Be,la.geo.albers=function(){return la.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},la.geo.albersUsa=function(){function t(t){var s=t[0],a=t[1];return e=null,i(s,a),e||(n(s,a),e)||r(s,a),e}var e,i,n,r,s=la.geo.albers(),a=la.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),o=la.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,i){e=[t,i]}};return t.invert=function(t){var e=s.scale(),i=s.translate(),n=(t[0]-i[0])/e,r=(t[1]-i[1])/e;return(r>=.12&&.234>r&&n>=-.425&&-.214>n?a:r>=.166&&.234>r&&n>=-.214&&-.115>n?o:s).invert(t)},t.stream=function(t){var e=s.stream(t),i=a.stream(t),n=o.stream(t);return{point:function(t,r){e.point(t,r),i.point(t,r),n.point(t,r)},sphere:function(){e.sphere(),i.sphere(),n.sphere()},lineStart:function(){e.lineStart(),i.lineStart(),n.lineStart()},lineEnd:function(){e.lineEnd(),i.lineEnd(),n.lineEnd()},polygonStart:function(){e.polygonStart(),i.polygonStart(),n.polygonStart()},polygonEnd:function(){e.polygonEnd(),i.polygonEnd(),n.polygonEnd()}}},t.precision=function(e){return arguments.length?(s.precision(e),a.precision(e),o.precision(e),t):s.precision()},t.scale=function(e){return arguments.length?(s.scale(e),a.scale(.35*e),o.scale(e),t.translate(s.translate())):s.scale()},t.translate=function(e){if(!arguments.length)return s.translate();var u=s.scale(),c=+e[0],h=+e[1];return i=s.translate(e).clipExtent([[c-.455*u,h-.238*u],[c+.455*u,h+.238*u]]).stream(l).point,n=a.translate([c-.307*u,h+.201*u]).clipExtent([[c-.425*u+Oa,h+.12*u+Oa],[c-.214*u-Oa,h+.234*u-Oa]]).stream(l).point,r=o.translate([c-.205*u,h+.212*u]).clipExtent([[c-.214*u+Oa,h+.166*u+Oa],[c-.115*u-Oa,h+.234*u-Oa]]).stream(l).point,t},t.scale(1070)};var Wo,Yo,Go,Qo,Bo,qo,Vo={point:M,lineStart:M,lineEnd:M,polygonStart:function(){Yo=0,Vo.lineStart=qe},polygonEnd:function(){Vo.lineStart=Vo.lineEnd=Vo.point=M,Wo+=ba(Yo/2)}},Zo={point:Ve,lineStart:M,lineEnd:M,polygonStart:M,polygonEnd:M},Xo={point:Je,lineStart:$e,lineEnd:Ke,polygonStart:function(){Xo.lineStart=ti},polygonEnd:function(){Xo.point=Je,Xo.lineStart=$e,Xo.lineEnd=Ke}};la.geo.path=function(){function t(t){return t&&("function"==typeof o&&s.pointRadius(+o.apply(this,arguments)),a&&a.valid||(a=r(s)),la.geo.stream(t,a)),s.result()}function e(){return a=null,t}var i,n,r,s,a,o=4.5;return t.area=function(t){return Wo=0,la.geo.stream(t,r(Vo)),Wo},t.centroid=function(t){return ko=So=jo=Ao=Eo=zo=Po=Oo=Ro=0,la.geo.stream(t,r(Xo)),Ro?[Po/Ro,Oo/Ro]:zo?[Ao/zo,Eo/zo]:jo?[ko/jo,So/jo]:[0/0,0/0]},t.bounds=function(t){return Bo=qo=-(Go=Qo=1/0),la.geo.stream(t,r(Zo)),[[Go,Qo],[Bo,qo]]},t.projection=function(t){return arguments.length?(r=(i=t)?t.stream||ni(t):_,e()):i},t.context=function(t){return arguments.length?(s=null==(n=t)?new Ze:new ei(t),"function"!=typeof o&&s.pointRadius(o),e()):n},t.pointRadius=function(e){return arguments.length?(o="function"==typeof e?e:(s.pointRadius(+e),+e),t):o},t.projection(la.geo.albersUsa()).context(null)},la.geo.transform=function(t){return{stream:function(e){var i=new ri(e);for(var n in t)i[n]=t[n];return i}}},ri.prototype={point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},la.geo.projection=ai,la.geo.projectionMutator=oi,(la.geo.equirectangular=function(){return ai(ui)}).raw=ui.invert=ui,la.geo.rotation=function(t){function e(e){return e=t(e[0]*Ya,e[1]*Ya),e[0]*=Ga,e[1]*=Ga,e}return t=hi(t[0]%360*Ya,t[1]*Ya,t.length>2?t[2]*Ya:0),e.invert=function(e){return e=t.invert(e[0]*Ya,e[1]*Ya),e[0]*=Ga,e[1]*=Ga,e},e},ci.invert=ui,la.geo.circle=function(){function t(){var t="function"==typeof n?n.apply(this,arguments):n,e=hi(-t[0]*Ya,-t[1]*Ya,0).invert,r=[];return i(null,null,1,{point:function(t,i){r.push(t=e(t,i)),t[0]*=Ga,t[1]*=Ga}}),{type:"Polygon",coordinates:[r]}}var e,i,n=[0,0],r=6;return t.origin=function(e){return arguments.length?(n=e,t):n},t.angle=function(n){return arguments.length?(i=gi((e=+n)*Ya,r*Ya),t):e},t.precision=function(n){return arguments.length?(i=gi(e*Ya,(r=+n)*Ya),t):r},t.angle(90)},la.geo.distance=function(t,e){var i,n=(e[0]-t[0])*Ya,r=t[1]*Ya,s=e[1]*Ya,a=Math.sin(n),o=Math.cos(n),l=Math.sin(r),u=Math.cos(r),c=Math.sin(s),h=Math.cos(s);return Math.atan2(Math.sqrt((i=h*a)*i+(i=u*c-l*h*o)*i),l*c+u*h*o)},la.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return la.range(Math.ceil(s/m)*m,r,m).map(d).concat(la.range(Math.ceil(u/v)*v,l,v).map(p)).concat(la.range(Math.ceil(n/f)*f,i,f).filter(function(t){return ba(t%m)>Oa}).map(c)).concat(la.range(Math.ceil(o/g)*g,a,g).filter(function(t){return ba(t%v)>Oa}).map(h))}var i,n,r,s,a,o,l,u,c,h,d,p,f=10,g=f,m=90,v=360,y=2.5;return t.lines=function(){return e().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[d(s).concat(p(l).slice(1),d(r).reverse().slice(1),p(u).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.majorExtent(e).minorExtent(e):t.minorExtent()},t.majorExtent=function(e){return arguments.length?(s=+e[0][0],r=+e[1][0],u=+e[0][1],l=+e[1][1],s>r&&(e=s,s=r,r=e),u>l&&(e=u,u=l,l=e),t.precision(y)):[[s,u],[r,l]]},t.minorExtent=function(e){return arguments.length?(n=+e[0][0],i=+e[1][0],o=+e[0][1],a=+e[1][1],n>i&&(e=n,n=i,i=e),o>a&&(e=o,o=a,a=e),t.precision(y)):[[n,o],[i,a]]},t.step=function(e){return arguments.length?t.majorStep(e).minorStep(e):t.minorStep()},t.majorStep=function(e){return arguments.length?(m=+e[0],v=+e[1],t):[m,v]},t.minorStep=function(e){return arguments.length?(f=+e[0],g=+e[1],t):[f,g]},t.precision=function(e){return arguments.length?(y=+e,c=vi(o,a,90),h=yi(n,i,y),d=vi(u,l,90),p=yi(s,r,y),t):y},t.majorExtent([[-180,-90+Oa],[180,90-Oa]]).minorExtent([[-180,-80-Oa],[180,80+Oa]])},la.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[e||n.apply(this,arguments),i||r.apply(this,arguments)]}}var e,i,n=_i,r=bi;return t.distance=function(){return la.geo.distance(e||n.apply(this,arguments),i||r.apply(this,arguments))},t.source=function(i){return arguments.length?(n=i,e="function"==typeof i?null:i,t):n},t.target=function(e){return arguments.length?(r=e,i="function"==typeof e?null:e,t):r},t.precision=function(){return arguments.length?t:0},t},la.geo.interpolate=function(t,e){return xi(t[0]*Ya,t[1]*Ya,e[0]*Ya,e[1]*Ya)},la.geo.length=function(t){return Jo=0,la.geo.stream(t,$o),Jo};var Jo,$o={sphere:M,point:M,lineStart:Mi,lineEnd:M,polygonStart:M,polygonEnd:M},Ko=wi(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(la.geo.azimuthalEqualArea=function(){return ai(Ko)}).raw=Ko;var tl=wi(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},_);(la.geo.azimuthalEquidistant=function(){return ai(tl)}).raw=tl,(la.geo.conicConformal=function(){return Qe(Li)}).raw=Li,(la.geo.conicEquidistant=function(){return Qe(Di)}).raw=Di;var el=wi(function(t){return 1/t},Math.atan);(la.geo.gnomonic=function(){return ai(el)}).raw=el,Ci.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Wa]},(la.geo.mercator=function(){return Ti(Ci)}).raw=Ci;var il=wi(function(){return 1},Math.asin);(la.geo.orthographic=function(){return ai(il)}).raw=il;var nl=wi(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(la.geo.stereographic=function(){return ai(nl)}).raw=nl,Ii.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Wa]},(la.geo.transverseMercator=function(){var t=Ti(Ii),e=t.center,i=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return t?i([t[0],t[1],t.length>2?t[2]+90:90]):(t=i(),[t[0],t[1],t[2]-90])},i([0,0,90])}).raw=Ii,la.geom={},la.geom.hull=function(t){function e(t){if(t.length<3)return[];var e,r=Tt(i),s=Tt(n),a=t.length,o=[],l=[];for(e=0;a>e;e++)o.push([+r.call(this,t[e],e),+s.call(this,t[e],e),e]);for(o.sort(ji),e=0;a>e;e++)l.push([o[e][0],-o[e][1]]);var u=Si(o),c=Si(l),h=c[0]===u[0],d=c[c.length-1]===u[u.length-1],p=[];for(e=u.length-1;e>=0;--e)p.push(t[o[u[e]][2]]);for(e=+h;e=n&&u.x<=s&&u.y>=r&&u.y<=a?[[n,a],[s,a],[s,r],[n,r]]:[];c.point=t[o]}),e}function i(t){return t.map(function(t,e){return{x:Math.round(s(t,e)/Oa)*Oa,y:Math.round(a(t,e)/Oa)*Oa,i:e}})}var n=Ni,r=ki,s=n,a=r,o=dl;return t?e(t):(e.links=function(t){return ln(i(t)).edges.filter(function(t){return t.l&&t.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},e.triangles=function(t){var e=[];return ln(i(t)).cells.forEach(function(i,n){for(var r,s,a=i.site,o=i.edges.sort(Qi),l=-1,u=o.length,c=o[u-1].edge,h=c.l===a?c.r:c.l;++l=u,d=n>=c,p=d<<1|h;t.leaf=!1,t=t.nodes[p]||(t.nodes[p]=pn()),h?r=u:o=u,d?a=c:l=c,s(t,e,i,n,r,a,o,l)}var c,h,d,p,f,g,m,v,y,_=Tt(o),b=Tt(l);if(null!=e)g=e,m=i,v=n,y=r;else if(v=y=-(g=m=1/0),h=[],d=[],f=t.length,a)for(p=0;f>p;++p)c=t[p],c.xv&&(v=c.x),c.y>y&&(y=c.y),h.push(c.x),d.push(c.y);else for(p=0;f>p;++p){var x=+_(c=t[p],p),M=+b(c,p);g>x&&(g=x),m>M&&(m=M),x>v&&(v=x),M>y&&(y=M),h.push(x),d.push(M)}var w=v-g,L=y-m;w>L?y=m+w:v=g+L;var D=pn();if(D.add=function(t){s(D,t,+_(t,++p),+b(t,p),g,m,v,y)},D.visit=function(t){fn(t,D,g,m,v,y)},D.find=function(t){return gn(D,t[0],t[1],g,m,v,y)},p=-1,null==e){for(;++p=0?t.slice(0,e):t,n=e>=0?t.slice(e+1):"in";return i=ml.get(i)||gl,n=vl.get(n)||_,Mn(n(i.apply(null,ua.call(arguments,1))))},la.interpolateHcl=zn,la.interpolateHsl=Pn,la.interpolateLab=On,la.interpolateRound=Rn,la.transform=function(t){var e=ha.createElementNS(la.ns.prefix.svg,"g");return(la.transform=function(t){if(null!=t){e.setAttribute("transform",t);var i=e.transform.baseVal.consolidate()}return new Un(i?i.matrix:yl)})(t)},Un.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var yl={a:1,b:0,c:0,d:1,e:0,f:0};la.interpolateTransform=Vn,la.layout={},la.layout.bundle=function(){return function(t){for(var e=[],i=-1,n=t.length;++io*o/v){if(g>l){var u=e.charge/l;t.px-=s*u,t.py-=a*u}return!0}if(e.point&&l&&g>l){var u=e.pointCharge/l;t.px-=s*u,t.py-=a*u}}return!e.charge}}function e(t){t.px=la.event.x,t.py=la.event.y,l.resume()}var i,n,r,s,a,o,l={},u=la.dispatch("start","tick","end"),c=[1,1],h=.9,d=_l,p=bl,f=-30,g=xl,m=.1,v=.64,y=[],b=[];return l.tick=function(){if((r*=.99)<.005)return i=null,u.end({type:"end",alpha:r=0}),!0;var e,n,l,d,p,g,v,_,x,M=y.length,w=b.length;for(n=0;w>n;++n)l=b[n],d=l.source,p=l.target,_=p.x-d.x,x=p.y-d.y,(g=_*_+x*x)&&(g=r*a[n]*((g=Math.sqrt(g))-s[n])/g,_*=g,x*=g,p.x-=_*(v=d.weight+p.weight?d.weight/(d.weight+p.weight):.5),p.y-=x*v,d.x+=_*(v=1-v),d.y+=x*v);if((v=r*m)&&(_=c[0]/2,x=c[1]/2,n=-1,v))for(;++n0?r=t:(i.c=null,i.t=0/0,i=null,u.end({type:"end",alpha:r=0})):t>0&&(u.start({type:"start",alpha:r=t}),i=jt(l.tick)),l):r},l.start=function(){function t(t,n){if(!i){for(i=new Array(r),l=0;r>l;++l)i[l]=[];for(l=0;u>l;++l){var s=b[l];i[s.source.index].push(s.target),i[s.target.index].push(s.source)}}for(var a,o=i[e],l=-1,c=o.length;++le;++e)(n=y[e]).index=e,n.weight=0;for(e=0;u>e;++e)n=b[e],"number"==typeof n.source&&(n.source=y[n.source]),"number"==typeof n.target&&(n.target=y[n.target]),++n.source.weight,++n.target.weight;for(e=0;r>e;++e)n=y[e],isNaN(n.x)&&(n.x=t("x",h)),isNaN(n.y)&&(n.y=t("y",g)),isNaN(n.px)&&(n.px=n.x),isNaN(n.py)&&(n.py=n.y);if(s=[],"function"==typeof d)for(e=0;u>e;++e)s[e]=+d.call(this,b[e],e);else for(e=0;u>e;++e)s[e]=d;if(a=[],"function"==typeof p)for(e=0;u>e;++e)a[e]=+p.call(this,b[e],e);else for(e=0;u>e;++e)a[e]=p;if(o=[],"function"==typeof f)for(e=0;r>e;++e)o[e]=+f.call(this,y[e],e);else for(e=0;r>e;++e)o[e]=f;return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){return n||(n=la.behavior.drag().origin(_).on("dragstart.force",tr).on("drag.force",e).on("dragend.force",er)),arguments.length?void this.on("mouseover.force",ir).on("mouseout.force",nr).call(n):n},la.rebind(l,u,"on")};var _l=20,bl=1,xl=1/0;la.layout.hierarchy=function(){function t(r){var s,a=[r],o=[];for(r.depth=0;null!=(s=a.pop());)if(o.push(s),(u=i.call(t,s,s.depth))&&(l=u.length)){for(var l,u,c;--l>=0;)a.push(c=u[l]),c.parent=s,c.depth=s.depth+1;n&&(s.value=0),s.children=u}else n&&(s.value=+n.call(t,s,s.depth)||0),delete s.children;return or(r,function(t){var i,r;e&&(i=t.children)&&i.sort(e),n&&(r=t.parent)&&(r.value+=t.value)}),o}var e=cr,i=lr,n=ur;return t.sort=function(i){return arguments.length?(e=i,t):e},t.children=function(e){return arguments.length?(i=e,t):i},t.value=function(e){return arguments.length?(n=e,t):n},t.revalue=function(e){return n&&(ar(e,function(t){t.children&&(t.value=0)}),or(e,function(e){var i;e.children||(e.value=+n.call(t,e,e.depth)||0),(i=e.parent)&&(i.value+=e.value)})),e},t},la.layout.partition=function(){function t(e,i,n,r){var s=e.children;if(e.x=i,e.y=e.depth*r,e.dx=n,e.dy=r,s&&(a=s.length)){var a,o,l,u=-1;for(n=e.value?n/e.value:0;++uh?-1:1),f=la.sum(u),g=f?(h-l*p)/f:0,m=la.range(l),v=[];return null!=i&&m.sort(i===Ml?function(t,e){return u[e]-u[t]}:function(t,e){return i(a[t],a[e])}),m.forEach(function(t){v[t]={data:a[t],value:o=u[t],startAngle:c,endAngle:c+=o*g+p,padAngle:d}}),v}var e=Number,i=Ml,n=0,r=Fa,s=0;return t.value=function(i){return arguments.length?(e=i,t):e},t.sort=function(e){return arguments.length?(i=e,t):i},t.startAngle=function(e){return arguments.length?(n=e,t):n},t.endAngle=function(e){return arguments.length?(r=e,t):r},t.padAngle=function(e){return arguments.length?(s=e,t):s},t};var Ml={};la.layout.stack=function(){function t(o,l){if(!(d=o.length))return o;var u=o.map(function(i,n){return e.call(t,i,n)}),c=u.map(function(e){return e.map(function(e,i){return[s.call(t,e,i),a.call(t,e,i)]})}),h=i.call(t,c,l);u=la.permute(u,h),c=la.permute(c,h);var d,p,f,g,m=n.call(t,c,l),v=u[0].length;for(f=0;v>f;++f)for(r.call(t,u[0][f],g=m[f],c[0][f][1]),p=1;d>p;++p)r.call(t,u[p][f],g+=c[p-1][f][1],c[p][f][1]);return o}var e=_,i=gr,n=mr,r=fr,s=dr,a=pr;return t.values=function(i){return arguments.length?(e=i,t):e},t.order=function(e){return arguments.length?(i="function"==typeof e?e:wl.get(e)||gr,t):i},t.offset=function(e){return arguments.length?(n="function"==typeof e?e:Ll.get(e)||mr,t):n},t.x=function(e){return arguments.length?(s=e,t):s},t.y=function(e){return arguments.length?(a=e,t):a},t.out=function(e){return arguments.length?(r=e,t):r},t};var wl=la.map({"inside-out":function(t){var e,i,n=t.length,r=t.map(vr),s=t.map(yr),a=la.range(n).sort(function(t,e){return r[t]-r[e]}),o=0,l=0,u=[],c=[];for(e=0;n>e;++e)i=a[e],l>o?(o+=s[i],u.push(i)):(l+=s[i],c.push(i));return c.reverse().concat(u)},reverse:function(t){return la.range(t.length).reverse()},"default":gr}),Ll=la.map({silhouette:function(t){var e,i,n,r=t.length,s=t[0].length,a=[],o=0,l=[];for(i=0;s>i;++i){for(e=0,n=0;r>e;e++)n+=t[e][i][1];n>o&&(o=n),a.push(n)}for(i=0;s>i;++i)l[i]=(o-a[i])/2;return l},wiggle:function(t){var e,i,n,r,s,a,o,l,u,c=t.length,h=t[0],d=h.length,p=[];for(p[0]=l=u=0,i=1;d>i;++i){for(e=0,r=0;c>e;++e)r+=t[e][i][1];for(e=0,s=0,o=h[i][0]-h[i-1][0];c>e;++e){for(n=0,a=(t[e][i][1]-t[e][i-1][1])/(2*o);e>n;++n)a+=(t[n][i][1]-t[n][i-1][1])/o;s+=a*t[e][i][1]}p[i]=l-=r?s/r*o:0,u>l&&(u=l)}for(i=0;d>i;++i)p[i]-=u;return p},expand:function(t){var e,i,n,r=t.length,s=t[0].length,a=1/r,o=[];for(i=0;s>i;++i){for(e=0,n=0;r>e;e++)n+=t[e][i][1];if(n)for(e=0;r>e;e++)t[e][i][1]/=n;else for(e=0;r>e;e++)t[e][i][1]=a}for(i=0;s>i;++i)o[i]=0;return o},zero:mr});la.layout.histogram=function(){function t(t,s){for(var a,o,l=[],u=t.map(i,this),c=n.call(this,u,s),h=r.call(this,c,u,s),s=-1,d=u.length,p=h.length-1,f=e?1:1/d;++s0)for(s=-1;++s=c[0]&&o<=c[1]&&(a=l[la.bisect(h,o,1,p)-1],a.y+=f,a.push(t[s]));return l}var e=!0,i=Number,n=Mr,r=br;return t.value=function(e){return arguments.length?(i=e,t):i},t.range=function(e){return arguments.length?(n=Tt(e),t):n},t.bins=function(e){return arguments.length?(r="number"==typeof e?function(t){return xr(t,e)}:Tt(e),t):r},t.frequency=function(i){return arguments.length?(e=!!i,t):e},t},la.layout.pack=function(){function t(t,s){var a=i.call(this,t,s),o=a[0],l=r[0],u=r[1],c=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(o.x=o.y=0,or(o,function(t){t.r=+c(t.value)}),or(o,Tr),n){var h=n*(e?1:Math.max(2*o.r/l,2*o.r/u))/2;or(o,function(t){t.r+=h}),or(o,Tr),or(o,function(t){t.r-=h})}return kr(o,l/2,u/2,e?1:1/Math.max(2*o.r/l,2*o.r/u)),a}var e,i=la.layout.hierarchy().sort(wr),n=0,r=[1,1];return t.size=function(e){return arguments.length?(r=e,t):r},t.radius=function(i){return arguments.length?(e=null==i||"function"==typeof i?i:+i,t):e},t.padding=function(e){return arguments.length?(n=+e,t):n},sr(t,i)},la.layout.tree=function(){function t(t,r){var c=a.call(this,t,r),h=c[0],d=e(h);if(or(d,i),d.parent.m=-d.z,ar(d,n),u)ar(h,s);else{var p=h,f=h,g=h;ar(h,function(t){t.xf.x&&(f=t),t.depth>g.depth&&(g=t)});var m=o(p,f)/2-p.x,v=l[0]/(f.x+o(f,p)/2+m),y=l[1]/(g.depth||1);ar(h,function(t){t.x=(t.x+m)*v,t.y=t.depth*y})}return c}function e(t){for(var e,i={A:null,children:[t]},n=[i];null!=(e=n.pop());)for(var r,s=e.children,a=0,o=s.length;o>a;++a)n.push((s[a]=r={_:s[a],parent:e,children:(r=s[a].children)&&r.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:a}).a=r);return i.children[0]}function i(t){var e=t.children,i=t.parent.children,n=t.i?i[t.i-1]:null;if(e.length){Pr(t);var s=(e[0].z+e[e.length-1].z)/2;n?(t.z=n.z+o(t._,n._),t.m=t.z-s):t.z=s}else n&&(t.z=n.z+o(t._,n._));t.parent.A=r(t,n,t.parent.A||i[0])}function n(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function r(t,e,i){if(e){for(var n,r=t,s=t,a=e,l=r.parent.children[0],u=r.m,c=s.m,h=a.m,d=l.m;a=Er(a),r=Ar(r),a&&r;)l=Ar(l),s=Er(s),s.a=t,n=a.z+h-r.z-u+o(a._,r._),n>0&&(zr(Or(a,t,i),t,n),u+=n,c+=n),h+=a.m,u+=r.m,d+=l.m,c+=s.m;a&&!Er(s)&&(s.t=a,s.m+=h-c),r&&!Ar(l)&&(l.t=r,l.m+=u-d,i=t)}return i}function s(t){t.x*=l[0],t.y=t.depth*l[1]}var a=la.layout.hierarchy().sort(null).value(null),o=jr,l=[1,1],u=null;return t.separation=function(e){return arguments.length?(o=e,t):o},t.size=function(e){return arguments.length?(u=null==(l=e)?s:null,t):u?null:l},t.nodeSize=function(e){return arguments.length?(u=null==(l=e)?null:s,t):u?l:null},sr(t,a)},la.layout.cluster=function(){function t(t,s){var a,o=e.call(this,t,s),l=o[0],u=0;or(l,function(t){ -var e=t.children;e&&e.length?(t.x=Ur(e),t.y=Rr(e)):(t.x=a?u+=i(t,a):0,t.y=0,a=t)});var c=Fr(l),h=Hr(l),d=c.x-i(c,h)/2,p=h.x+i(h,c)/2;return or(l,r?function(t){t.x=(t.x-l.x)*n[0],t.y=(l.y-t.y)*n[1]}:function(t){t.x=(t.x-d)/(p-d)*n[0],t.y=(1-(l.y?t.y/l.y:1))*n[1]}),o}var e=la.layout.hierarchy().sort(null).value(null),i=jr,n=[1,1],r=!1;return t.separation=function(e){return arguments.length?(i=e,t):i},t.size=function(e){return arguments.length?(r=null==(n=e),t):r?null:n},t.nodeSize=function(e){return arguments.length?(r=null!=(n=e),t):r?n:null},sr(t,e)},la.layout.treemap=function(){function t(t,e){for(var i,n,r=-1,s=t.length;++re?0:e),i.area=isNaN(n)||0>=n?0:n}function e(i){var s=i.children;if(s&&s.length){var a,o,l,u=h(i),c=[],d=s.slice(),f=1/0,g="slice"===p?u.dx:"dice"===p?u.dy:"slice-dice"===p?1&i.depth?u.dy:u.dx:Math.min(u.dx,u.dy);for(t(d,u.dx*u.dy/i.value),c.area=0;(l=d.length)>0;)c.push(a=d[l-1]),c.area+=a.area,"squarify"!==p||(o=n(c,g))<=f?(d.pop(),f=o):(c.area-=c.pop().area,r(c,g,u,!1),g=Math.min(u.dx,u.dy),c.length=c.area=0,f=1/0);c.length&&(r(c,g,u,!0),c.length=c.area=0),s.forEach(e)}}function i(e){var n=e.children;if(n&&n.length){var s,a=h(e),o=n.slice(),l=[];for(t(o,a.dx*a.dy/e.value),l.area=0;s=o.pop();)l.push(s),l.area+=s.area,null!=s.z&&(r(l,s.z?a.dx:a.dy,a,!o.length),l.length=l.area=0);n.forEach(i)}}function n(t,e){for(var i,n=t.area,r=0,s=1/0,a=-1,o=t.length;++ai&&(s=i),i>r&&(r=i));return n*=n,e*=e,n?Math.max(e*r*f/n,n/(e*s*f)):1/0}function r(t,e,i,n){var r,s=-1,a=t.length,o=i.x,u=i.y,c=e?l(t.area/e):0;if(e==i.dx){for((n||c>i.dy)&&(c=i.dy);++si.dx)&&(c=i.dx);++si&&(e=1),1>i&&(t=0),function(){var i,n,r;do i=2*Math.random()-1,n=2*Math.random()-1,r=i*i+n*n;while(!r||r>1);return t+e*i*Math.sqrt(-2*Math.log(r)/r)}},logNormal:function(){var t=la.random.normal.apply(la,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=la.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,i=0;t>i;i++)e+=Math.random();return e}}},la.scale={};var Dl={floor:_,ceil:_};la.scale.linear=function(){return Xr([0,1],[0,1],bn,!1)};var Cl={s:1,g:1,p:1,r:1,e:1};la.scale.log=function(){return rs(la.scale.linear().domain([0,1]),10,!0,[1,10])};var Tl=la.format(".0e"),Il={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};la.scale.pow=function(){return ss(la.scale.linear(),1,[0,1])},la.scale.sqrt=function(){return la.scale.pow().exponent(.5)},la.scale.ordinal=function(){return os([],{t:"range",a:[[]]})},la.scale.category10=function(){return la.scale.ordinal().range(Nl)},la.scale.category20=function(){return la.scale.ordinal().range(kl)},la.scale.category20b=function(){return la.scale.ordinal().range(Sl)},la.scale.category20c=function(){return la.scale.ordinal().range(jl)};var Nl=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(bt),kl=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(bt),Sl=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(bt),jl=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(bt);la.scale.quantile=function(){return ls([],[])},la.scale.quantize=function(){return us(0,1,[0,1])},la.scale.threshold=function(){return cs([.5],[0,1])},la.scale.identity=function(){return hs([0,1])},la.svg={},la.svg.arc=function(){function t(){var t=Math.max(0,+i.apply(this,arguments)),u=Math.max(0,+n.apply(this,arguments)),c=a.apply(this,arguments)-Wa,h=o.apply(this,arguments)-Wa,d=Math.abs(h-c),p=c>h?0:1;if(t>u&&(f=u,u=t,t=f),d>=Ha)return e(u,p)+(t?e(t,1-p):"")+"Z";var f,g,m,v,y,_,b,x,M,w,L,D,C=0,T=0,I=[];if((v=(+l.apply(this,arguments)||0)/2)&&(m=s===Al?Math.sqrt(t*t+u*u):+s.apply(this,arguments),p||(T*=-1),u&&(T=it(m/u*Math.sin(v))),t&&(C=it(m/t*Math.sin(v)))),u){y=u*Math.cos(c+T),_=u*Math.sin(c+T),b=u*Math.cos(h-T),x=u*Math.sin(h-T);var N=Math.abs(h-c-2*T)<=Ua?0:1;if(T&&ys(y,_,b,x)===p^N){var k=(c+h)/2;y=u*Math.cos(k),_=u*Math.sin(k),b=x=null}}else y=_=0;if(t){M=t*Math.cos(h-C),w=t*Math.sin(h-C),L=t*Math.cos(c+C),D=t*Math.sin(c+C);var S=Math.abs(c-h+2*C)<=Ua?0:1;if(C&&ys(M,w,L,D)===1-p^S){var j=(c+h)/2;M=t*Math.cos(j),w=t*Math.sin(j),L=D=null}}else M=w=0;if(d>Oa&&(f=Math.min(Math.abs(u-t)/2,+r.apply(this,arguments)))>.001){g=u>t^p?0:1;var A=f,E=f;if(Ua>d){var z=null==L?[M,w]:null==b?[y,_]:Ei([y,_],[L,D],[b,x],[M,w]),P=y-z[0],O=_-z[1],R=b-z[0],U=x-z[1],F=1/Math.sin(Math.acos((P*R+O*U)/(Math.sqrt(P*P+O*O)*Math.sqrt(R*R+U*U)))/2),H=Math.sqrt(z[0]*z[0]+z[1]*z[1]);E=Math.min(f,(t-H)/(F-1)),A=Math.min(f,(u-H)/(F+1))}if(null!=b){var W=_s(null==L?[M,w]:[L,D],[y,_],u,A,p),Y=_s([b,x],[M,w],u,A,p);f===A?I.push("M",W[0],"A",A,",",A," 0 0,",g," ",W[1],"A",u,",",u," 0 ",1-p^ys(W[1][0],W[1][1],Y[1][0],Y[1][1]),",",p," ",Y[1],"A",A,",",A," 0 0,",g," ",Y[0]):I.push("M",W[0],"A",A,",",A," 0 1,",g," ",Y[0])}else I.push("M",y,",",_);if(null!=L){var G=_s([y,_],[L,D],t,-E,p),Q=_s([M,w],null==b?[y,_]:[b,x],t,-E,p);f===E?I.push("L",Q[0],"A",E,",",E," 0 0,",g," ",Q[1],"A",t,",",t," 0 ",p^ys(Q[1][0],Q[1][1],G[1][0],G[1][1]),",",1-p," ",G[1],"A",E,",",E," 0 0,",g," ",G[0]):I.push("L",Q[0],"A",E,",",E," 0 0,",g," ",G[0])}else I.push("L",M,",",w)}else I.push("M",y,",",_),null!=b&&I.push("A",u,",",u," 0 ",N,",",p," ",b,",",x),I.push("L",M,",",w),null!=L&&I.push("A",t,",",t," 0 ",S,",",1-p," ",L,",",D);return I.push("Z"),I.join("")}function e(t,e){return"M0,"+t+"A"+t+","+t+" 0 1,"+e+" 0,"+-t+"A"+t+","+t+" 0 1,"+e+" 0,"+t}var i=ps,n=fs,r=ds,s=Al,a=gs,o=ms,l=vs;return t.innerRadius=function(e){return arguments.length?(i=Tt(e),t):i},t.outerRadius=function(e){return arguments.length?(n=Tt(e),t):n},t.cornerRadius=function(e){return arguments.length?(r=Tt(e),t):r},t.padRadius=function(e){return arguments.length?(s=e==Al?Al:Tt(e),t):s},t.startAngle=function(e){return arguments.length?(a=Tt(e),t):a},t.endAngle=function(e){return arguments.length?(o=Tt(e),t):o},t.padAngle=function(e){return arguments.length?(l=Tt(e),t):l},t.centroid=function(){var t=(+i.apply(this,arguments)+ +n.apply(this,arguments))/2,e=(+a.apply(this,arguments)+ +o.apply(this,arguments))/2-Wa;return[Math.cos(e)*t,Math.sin(e)*t]},t};var Al="auto";la.svg.line=function(){return bs(_)};var El=la.map({linear:xs,"linear-closed":Ms,step:ws,"step-before":Ls,"step-after":Ds,basis:Ss,"basis-open":js,"basis-closed":As,bundle:Es,cardinal:Is,"cardinal-open":Cs,"cardinal-closed":Ts,monotone:Fs});El.forEach(function(t,e){e.key=t,e.closed=/-closed$/.test(t)});var zl=[0,2/3,1/3,0],Pl=[0,1/3,2/3,0],Ol=[0,1/6,2/3,1/6];la.svg.line.radial=function(){var t=bs(Hs);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},Ls.reverse=Ds,Ds.reverse=Ls,la.svg.area=function(){return Ws(_)},la.svg.area.radial=function(){var t=Ws(Hs);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},la.svg.chord=function(){function t(t,o){var l=e(this,s,t,o),u=e(this,a,t,o);return"M"+l.p0+n(l.r,l.p1,l.a1-l.a0)+(i(l,u)?r(l.r,l.p1,l.r,l.p0):r(l.r,l.p1,u.r,u.p0)+n(u.r,u.p1,u.a1-u.a0)+r(u.r,u.p1,l.r,l.p0))+"Z"}function e(t,e,i,n){var r=e.call(t,i,n),s=o.call(t,r,n),a=l.call(t,r,n)-Wa,c=u.call(t,r,n)-Wa;return{r:s,a0:a,a1:c,p0:[s*Math.cos(a),s*Math.sin(a)],p1:[s*Math.cos(c),s*Math.sin(c)]}}function i(t,e){return t.a0==e.a0&&t.a1==e.a1}function n(t,e,i){return"A"+t+","+t+" 0 "+ +(i>Ua)+",1 "+e}function r(t,e,i,n){return"Q 0,0 "+n}var s=_i,a=bi,o=Ys,l=gs,u=ms;return t.radius=function(e){return arguments.length?(o=Tt(e),t):o},t.source=function(e){return arguments.length?(s=Tt(e),t):s},t.target=function(e){return arguments.length?(a=Tt(e),t):a},t.startAngle=function(e){return arguments.length?(l=Tt(e),t):l},t.endAngle=function(e){return arguments.length?(u=Tt(e),t):u},t},la.svg.diagonal=function(){function t(t,r){var s=e.call(this,t,r),a=i.call(this,t,r),o=(s.y+a.y)/2,l=[s,{x:s.x,y:o},{x:a.x,y:o},a];return l=l.map(n),"M"+l[0]+"C"+l[1]+" "+l[2]+" "+l[3]}var e=_i,i=bi,n=Gs;return t.source=function(i){return arguments.length?(e=Tt(i),t):e},t.target=function(e){return arguments.length?(i=Tt(e),t):i},t.projection=function(e){return arguments.length?(n=e,t):n},t},la.svg.diagonal.radial=function(){var t=la.svg.diagonal(),e=Gs,i=t.projection;return t.projection=function(t){return arguments.length?i(Qs(e=t)):e},t},la.svg.symbol=function(){function t(t,n){return(Rl.get(e.call(this,t,n))||Vs)(i.call(this,t,n))}var e=qs,i=Bs;return t.type=function(i){return arguments.length?(e=Tt(i),t):e},t.size=function(e){return arguments.length?(i=Tt(e),t):i},t};var Rl=la.map({circle:Vs,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*Fl)),i=e*Fl;return"M0,"+-e+"L"+i+",0 0,"+e+" "+-i+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/Ul),i=e*Ul/2;return"M0,"+i+"L"+e+","+-i+" "+-e+","+-i+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/Ul),i=e*Ul/2;return"M0,"+-i+"L"+e+","+i+" "+-e+","+i+"Z"}});la.svg.symbolTypes=Rl.keys();var Ul=Math.sqrt(3),Fl=Math.tan(30*Ya);Na.transition=function(t){for(var e,i,n=Hl||++Ql,r=Ks(t),s=[],a=Wl||{time:Date.now(),ease:Tn,delay:0,duration:250},o=-1,l=this.length;++os;s++){r.push(e=[]);for(var i=this[s],o=0,l=i.length;l>o;o++)(n=i[o])&&t.call(n,n.__data__,o,s)&&e.push(n)}return Xs(r,this.namespace,this.id)},Gl.tween=function(t,e){var i=this.id,n=this.namespace;return arguments.length<2?this.node()[n][i].tween.get(t):G(this,null==e?function(e){e[n][i].tween.remove(t)}:function(r){r[n][i].tween.set(t,e)})},Gl.attr=function(t,e){function i(){this.removeAttribute(o)}function n(){this.removeAttributeNS(o.space,o.local)}function r(t){return null==t?i:(t+="",function(){var e,i=this.getAttribute(o);return i!==t&&(e=a(i,t),function(t){this.setAttribute(o,e(t))})})}function s(t){return null==t?n:(t+="",function(){var e,i=this.getAttributeNS(o.space,o.local);return i!==t&&(e=a(i,t),function(t){this.setAttributeNS(o.space,o.local,e(t))})})}if(arguments.length<2){for(e in t)this.attr(e,t[e]);return this}var a="transform"==t?Vn:bn,o=la.ns.qualify(t);return Js(this,"attr."+t,e,o.local?s:r)},Gl.attrTween=function(t,e){function i(t,i){var n=e.call(this,t,i,this.getAttribute(r));return n&&function(t){this.setAttribute(r,n(t))}}function n(t,i){var n=e.call(this,t,i,this.getAttributeNS(r.space,r.local));return n&&function(t){this.setAttributeNS(r.space,r.local,n(t))}}var r=la.ns.qualify(t);return this.tween("attr."+t,r.local?n:i)},Gl.style=function(t,e,n){function r(){this.style.removeProperty(t)}function s(e){return null==e?r:(e+="",function(){var r,s=i(this).getComputedStyle(this,null).getPropertyValue(t);return s!==e&&(r=bn(s,e),function(e){this.style.setProperty(t,r(e),n)})})}var a=arguments.length;if(3>a){if("string"!=typeof t){2>a&&(e="");for(n in t)this.style(n,t[n],e);return this}n=""}return Js(this,"style."+t,e,s)},Gl.styleTween=function(t,e,n){function r(r,s){var a=e.call(this,r,s,i(this).getComputedStyle(this,null).getPropertyValue(t));return a&&function(e){this.style.setProperty(t,a(e),n)}}return arguments.length<3&&(n=""),this.tween("style."+t,r)},Gl.text=function(t){return Js(this,"text",t,$s)},Gl.remove=function(){var t=this.namespace;return this.each("end.transition",function(){var e;this[t].count<2&&(e=this.parentNode)&&e.removeChild(this)})},Gl.ease=function(t){var e=this.id,i=this.namespace;return arguments.length<1?this.node()[i][e].ease:("function"!=typeof t&&(t=la.ease.apply(la,arguments)),G(this,function(n){n[i][e].ease=t}))},Gl.delay=function(t){var e=this.id,i=this.namespace;return arguments.length<1?this.node()[i][e].delay:G(this,"function"==typeof t?function(n,r,s){n[i][e].delay=+t.call(n,n.__data__,r,s)}:(t=+t,function(n){n[i][e].delay=t}))},Gl.duration=function(t){var e=this.id,i=this.namespace;return arguments.length<1?this.node()[i][e].duration:G(this,"function"==typeof t?function(n,r,s){n[i][e].duration=Math.max(1,t.call(n,n.__data__,r,s))}:(t=Math.max(1,t),function(n){n[i][e].duration=t}))},Gl.each=function(t,e){var i=this.id,n=this.namespace;if(arguments.length<2){var r=Wl,s=Hl;try{Hl=i,G(this,function(e,r,s){Wl=e[n][i],t.call(e,e.__data__,r,s)})}finally{Wl=r,Hl=s}}else G(this,function(r){var s=r[n][i];(s.event||(s.event=la.dispatch("start","end","interrupt"))).on(t,e)});return this},Gl.transition=function(){for(var t,e,i,n,r=this.id,s=++Ql,a=this.namespace,o=[],l=0,u=this.length;u>l;l++){o.push(t=[]);for(var e=this[l],c=0,h=e.length;h>c;c++)(i=e[c])&&(n=i[a][r],ta(i,c,a,s,{time:n.time,ease:n.ease,delay:n.delay+n.duration,duration:n.duration})),t.push(i)}return Xs(o,a,s)},la.svg.axis=function(){function t(t){t.each(function(){var t,u=la.select(this),c=this.__chart__||i,h=this.__chart__=i.copy(),d=null==l?h.ticks?h.ticks.apply(h,o):h.domain():l,p=null==e?h.tickFormat?h.tickFormat.apply(h,o):_:e,f=u.selectAll(".tick").data(d,h),g=f.enter().insert("g",".domain").attr("class","tick").style("opacity",Oa),m=la.transition(f.exit()).style("opacity",Oa).remove(),v=la.transition(f.order()).style("opacity",1),y=Math.max(r,0)+a,b=Qr(h),x=u.selectAll(".domain").data([0]),M=(x.enter().append("path").attr("class","domain"),la.transition(x));g.append("line"),g.append("text");var w,L,D,C,T=g.select("line"),I=v.select("line"),N=f.select("text").text(p),k=g.select("text"),S=v.select("text"),j="top"===n||"left"===n?-1:1;if("bottom"===n||"top"===n?(t=ea,w="x",D="y",L="x2",C="y2",N.attr("dy",0>j?"0em":".71em").style("text-anchor","middle"),M.attr("d","M"+b[0]+","+j*s+"V0H"+b[1]+"V"+j*s)):(t=ia,w="y",D="x",L="y2",C="x2",N.attr("dy",".32em").style("text-anchor",0>j?"end":"start"),M.attr("d","M"+j*s+","+b[0]+"H0V"+b[1]+"H"+j*s)),T.attr(C,j*r),k.attr(D,j*y),I.attr(L,0).attr(C,j*r),S.attr(w,0).attr(D,j*y),h.rangeBand){var A=h,E=A.rangeBand()/2;c=h=function(t){return A(t)+E}}else c.rangeBand?c=h:m.call(t,h,c);g.call(t,c,h),v.call(t,h,h)})}var e,i=la.scale.linear(),n=Bl,r=6,s=6,a=3,o=[10],l=null;return t.scale=function(e){return arguments.length?(i=e,t):i},t.orient=function(e){return arguments.length?(n=e in ql?e+"":Bl,t):n},t.ticks=function(){return arguments.length?(o=ca(arguments),t):o},t.tickValues=function(e){return arguments.length?(l=e,t):l},t.tickFormat=function(i){return arguments.length?(e=i,t):e},t.tickSize=function(e){var i=arguments.length;return i?(r=+e,s=+arguments[i-1],t):r},t.innerTickSize=function(e){return arguments.length?(r=+e,t):r},t.outerTickSize=function(e){return arguments.length?(s=+e,t):s},t.tickPadding=function(e){return arguments.length?(a=+e,t):a},t.tickSubdivide=function(){return arguments.length&&t},t};var Bl="bottom",ql={top:1,right:1,bottom:1,left:1};la.svg.brush=function(){function t(i){i.each(function(){var i=la.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",s).on("touchstart.brush",s),a=i.selectAll(".background").data([0]);a.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),i.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var o=i.selectAll(".resize").data(g,_);o.exit().remove(),o.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return Vl[t]}).append("rect").attr("x",function(t){return/[ew]$/.test(t)?-3:null}).attr("y",function(t){return/^[ns]/.test(t)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),o.style("display",t.empty()?"none":null);var l,h=la.transition(i),d=la.transition(a);u&&(l=Qr(u),d.attr("x",l[0]).attr("width",l[1]-l[0]),n(h)),c&&(l=Qr(c),d.attr("y",l[0]).attr("height",l[1]-l[0]),r(h)),e(h)})}function e(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+h[+/e$/.test(t)]+","+d[+/^s/.test(t)]+")"})}function n(t){t.select(".extent").attr("x",h[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",h[1]-h[0])}function r(t){t.select(".extent").attr("y",d[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",d[1]-d[0])}function s(){function s(){32==la.event.keyCode&&(N||(_=null,S[0]-=h[1],S[1]-=d[1],N=2),D())}function g(){32==la.event.keyCode&&2==N&&(S[0]+=h[1],S[1]+=d[1],N=0,D())}function m(){var t=la.mouse(x),i=!1;b&&(t[0]+=b[0],t[1]+=b[1]),N||(la.event.altKey?(_||(_=[(h[0]+h[1])/2,(d[0]+d[1])/2]),S[0]=h[+(t[0]<_[0])],S[1]=d[+(t[1]<_[1])]):_=null),T&&v(t,u,0)&&(n(L),i=!0),I&&v(t,c,1)&&(r(L),i=!0),i&&(e(L),w({type:"brush",mode:N?"move":"resize"}))}function v(t,e,i){var n,r,s=Qr(e),l=s[0],u=s[1],c=S[i],g=i?d:h,m=g[1]-g[0];return N&&(l-=c,u-=m+c),n=(i?f:p)?Math.max(l,Math.min(u,t[i])):t[i],N?r=(n+=c)+m:(_&&(c=Math.max(l,Math.min(u,2*_[i]-n))),n>c?(r=n,n=c):r=c),g[0]!=n||g[1]!=r?(i?o=null:a=null,g[0]=n,g[1]=r,!0):void 0}function y(){m(),L.style("pointer-events","all").selectAll(".resize").style("display",t.empty()?"none":null),la.select("body").style("cursor",null),j.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),k(),w({type:"brushend"})}var _,b,x=this,M=la.select(la.event.target),w=l.of(x,arguments),L=la.select(x),C=M.datum(),T=!/^(n|s)$/.test(C)&&u,I=!/^(e|w)$/.test(C)&&c,N=M.classed("extent"),k=X(x),S=la.mouse(x),j=la.select(i(x)).on("keydown.brush",s).on("keyup.brush",g);if(la.event.changedTouches?j.on("touchmove.brush",m).on("touchend.brush",y):j.on("mousemove.brush",m).on("mouseup.brush",y),L.interrupt().selectAll("*").interrupt(),N)S[0]=h[0]-S[0],S[1]=d[0]-S[1];else if(C){var A=+/w$/.test(C),E=+/^n/.test(C);b=[h[1-A]-S[0],d[1-E]-S[1]],S[0]=h[A],S[1]=d[E]}else la.event.altKey&&(_=S.slice());L.style("pointer-events","none").selectAll(".resize").style("display",null),la.select("body").style("cursor",M.style("cursor")),w({type:"brushstart"}),m()}var a,o,l=T(t,"brushstart","brush","brushend"),u=null,c=null,h=[0,0],d=[0,0],p=!0,f=!0,g=Zl[0];return t.event=function(t){t.each(function(){var t=l.of(this,arguments),e={x:h,y:d,i:a,j:o},i=this.__chart__||e;this.__chart__=e,Hl?la.select(this).transition().each("start.brush",function(){a=i.i,o=i.j,h=i.x,d=i.y,t({type:"brushstart"})}).tween("brush:brush",function(){var i=xn(h,e.x),n=xn(d,e.y);return a=o=null,function(r){h=e.x=i(r),d=e.y=n(r),t({type:"brush",mode:"resize"})}}).each("end.brush",function(){a=e.i,o=e.j,t({type:"brush",mode:"resize"}),t({type:"brushend"})}):(t({type:"brushstart"}),t({type:"brush",mode:"resize"}),t({type:"brushend"}))})},t.x=function(e){return arguments.length?(u=e,g=Zl[!u<<1|!c],t):u},t.y=function(e){return arguments.length?(c=e,g=Zl[!u<<1|!c],t):c},t.clamp=function(e){return arguments.length?(u&&c?(p=!!e[0],f=!!e[1]):u?p=!!e:c&&(f=!!e),t):u&&c?[p,f]:u?p:c?f:null},t.extent=function(e){var i,n,r,s,l;return arguments.length?(u&&(i=e[0],n=e[1],c&&(i=i[0],n=n[0]),a=[i,n],u.invert&&(i=u(i),n=u(n)),i>n&&(l=i,i=n,n=l),(i!=h[0]||n!=h[1])&&(h=[i,n])),c&&(r=e[0],s=e[1],u&&(r=r[1],s=s[1]),o=[r,s],c.invert&&(r=c(r),s=c(s)),r>s&&(l=r,r=s,s=l),(r!=d[0]||s!=d[1])&&(d=[r,s])),t):(u&&(a?(i=a[0],n=a[1]):(i=h[0],n=h[1],u.invert&&(i=u.invert(i),n=u.invert(n)),i>n&&(l=i,i=n,n=l))),c&&(o?(r=o[0],s=o[1]):(r=d[0],s=d[1],c.invert&&(r=c.invert(r),s=c.invert(s)),r>s&&(l=r,r=s,s=l))),u&&c?[[i,r],[n,s]]:u?[i,n]:c&&[r,s])},t.clear=function(){return t.empty()||(h=[0,0],d=[0,0],a=o=null),t},t.empty=function(){return!!u&&h[0]==h[1]||!!c&&d[0]==d[1]},la.rebind(t,l,"on")};var Vl={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Zl=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Xl=go.format=xo.timeFormat,Jl=Xl.utc,$l=Jl("%Y-%m-%dT%H:%M:%S.%LZ");Xl.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?na:$l,na.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},na.toString=$l.toString,go.second=Ht(function(t){return new mo(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))},function(t){return t.getSeconds()}),go.seconds=go.second.range,go.seconds.utc=go.second.utc.range,go.minute=Ht(function(t){return new mo(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))},function(t){return t.getMinutes()}),go.minutes=go.minute.range,go.minutes.utc=go.minute.utc.range,go.hour=Ht(function(t){var e=t.getTimezoneOffset()/60;return new mo(36e5*(Math.floor(t/36e5-e)+e))},function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))},function(t){return t.getHours()}),go.hours=go.hour.range,go.hours.utc=go.hour.utc.range,go.month=Ht(function(t){return t=go.day(t),t.setDate(1),t},function(t,e){t.setMonth(t.getMonth()+e)},function(t){return t.getMonth()}),go.months=go.month.range,go.months.utc=go.month.utc.range;var Kl=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],tu=[[go.second,1],[go.second,5],[go.second,15],[go.second,30],[go.minute,1],[go.minute,5],[go.minute,15],[go.minute,30],[go.hour,1],[go.hour,3],[go.hour,6],[go.hour,12],[go.day,1],[go.day,2],[go.week,1],[go.month,1],[go.month,3],[go.year,1]],eu=Xl.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",ke]]),iu={range:function(t,e,i){return la.range(Math.ceil(t/i)*i,+e,i).map(sa)},floor:_,ceil:_};tu.year=go.year,go.scale=function(){return ra(la.scale.linear(),tu,eu)};var nu=tu.map(function(t){return[t[0].utc,t[1]]}),ru=Jl.multi([[".%L",function(t){return t.getUTCMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",ke]]);nu.year=go.year.utc,go.scale.utc=function(){return ra(la.scale.linear(),nu,ru)},la.text=It(function(t){return t.responseText}),la.json=function(t,e){return Nt(t,"application/json",aa,e)},la.html=function(t,e){return Nt(t,"text/html",oa,e)},la.xml=It(function(t){return t.responseXML}),"function"==typeof define&&define.amd?(this.d3=la,define(la)):"object"==typeof e&&e.exports?e.exports=la:this.d3=la}()},{}],9:[function(t,e,i){var n=n||function(t){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var e=t.document,i=function(){return t.URL||t.webkitURL||t},n=e.createElementNS("http://www.w3.org/1999/xhtml","a"),r="download"in n,s=function(t){var e=new MouseEvent("click");t.dispatchEvent(e)},a=t.webkitRequestFileSystem,o=t.requestFileSystem||a||t.mozRequestFileSystem,l=function(e){(t.setImmediate||t.setTimeout)(function(){throw e},0)},u="application/octet-stream",c=0,h=500,d=function(e){var n=function(){"string"==typeof e?i().revokeObjectURL(e):e.remove()};t.chrome?n():setTimeout(n,h)},p=function(t,e,i){e=[].concat(e);for(var n=e.length;n--;){var r=t["on"+e[n]];if("function"==typeof r)try{r.call(t,i||t)}catch(s){l(s)}}},f=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t},g=function(e,l,h){h||(e=f(e));var g,m,v,y=this,_=e.type,b=!1,x=function(){p(y,"writestart progress write writeend".split(" "))},M=function(){if((b||!g)&&(g=i().createObjectURL(e)),m)m.location.href=g;else{var n=t.open(g,"_blank");void 0==n&&"undefined"!=typeof safari&&(t.location.href=g)}y.readyState=y.DONE,x(),d(g)},w=function(t){return function(){return y.readyState!==y.DONE?t.apply(this,arguments):void 0}},L={create:!0,exclusive:!1};return y.readyState=y.INIT,l||(l="download"),r?(g=i().createObjectURL(e),n.href=g,n.download=l,void setTimeout(function(){s(n),x(),d(g),y.readyState=y.DONE})):(t.chrome&&_&&_!==u&&(v=e.slice||e.webkitSlice,e=v.call(e,0,e.size,u),b=!0),a&&"download"!==l&&(l+=".download"),(_===u||a)&&(m=t),o?(c+=e.size,void o(t.TEMPORARY,c,w(function(t){t.root.getDirectory("saved",L,w(function(t){var i=function(){t.getFile(l,L,w(function(t){t.createWriter(w(function(i){i.onwriteend=function(e){m.location.href=t.toURL(),y.readyState=y.DONE,p(y,"writeend",e),d(t)},i.onerror=function(){var t=i.error;t.code!==t.ABORT_ERR&&M()},"writestart progress write abort".split(" ").forEach(function(t){i["on"+t]=y["on"+t]}),i.write(e),y.abort=function(){i.abort(),y.readyState=y.DONE},y.readyState=y.WRITING}),M)}),M)};t.getFile(l,{create:!1},w(function(t){t.remove(),i()}),w(function(t){t.code===t.NOT_FOUND_ERR?i():M()}))}),M)}),M)):void M())},m=g.prototype,v=function(t,e,i){return new g(t,e,i)};return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,i){return i||(t=f(t)),navigator.msSaveOrOpenBlob(t,e||"download")}:(m.abort=function(){var t=this;t.readyState=t.DONE,p(t,"abort")},m.readyState=m.INIT=0,m.WRITING=1,m.DONE=2,m.error=m.onwritestart=m.onprogress=m.onwrite=m.onabort=m.onerror=m.onwriteend=null,v)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof e&&e.exports?e.exports.saveAs=n:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return n})},{}],10:[function(t,e,i){var n=t("jquery");!function(t,e){function i(e,i){var r,s,a,o=e.nodeName.toLowerCase();return"area"===o?(r=e.parentNode,s=r.name,e.href&&s&&"map"===r.nodeName.toLowerCase()?(a=t("img[usemap=#"+s+"]")[0],!!a&&n(a)):!1):(/input|select|textarea|button|object/.test(o)?!e.disabled:"a"===o?e.href||i:i)&&n(e)}function n(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}var r=0,s=/^ui-id-\d+$/;t.ui=t.ui||{},t.extend(t.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({focus:function(e){return function(i,n){return"number"==typeof i?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),n&&n.call(e)},i)}):e.apply(this,arguments)}}(t.fn.focus),scrollParent:function(){var e;return e=t.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.css(this,"position"))&&/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css("zIndex",i);if(this.length)for(var n,r,s=t(this[0]);s.length&&s[0]!==document;){if(n=s.css("position"),("absolute"===n||"relative"===n||"fixed"===n)&&(r=parseInt(s.css("zIndex"),10),!isNaN(r)&&0!==r))return r;s=s.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++r)})},removeUniqueId:function(){return this.each(function(){s.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var n=t.attr(e,"tabindex"),r=isNaN(n);return(r||n>=0)&&i(e,!r)}}),t("").outerWidth(1).jquery||t.each(["Width","Height"],function(i,n){function r(e,i,n,r){return t.each(s,function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),r&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var s="Width"===n?["Left","Right"]:["Top","Bottom"],a=n.toLowerCase(),o={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+n]=function(i){return i===e?o["inner"+n].call(this):this.each(function(){t(this).css(a,r(this,i)+"px")})},t.fn["outer"+n]=function(e,i){return"number"!=typeof e?o["outer"+n].call(this,e):this.each(function(){t(this).css(a,r(this,e,!0,i)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.support.selectstart="onselectstart"in document.createElement("div"),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(t.ui,{plugin:{add:function(e,i,n){var r,s=t.ui[e].prototype;for(r in n)s.plugins[r]=s.plugins[r]||[],s.plugins[r].push([i,n[r]])},call:function(t,e,i){var n,r=t.plugins[e];if(r&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(n=0;n0?!0:(e[n]=1,r=e[n]>0,e[n]=0,r)}})}(n),function(t,e){var i=0,n=Array.prototype.slice,r=t.cleanData;t.cleanData=function(e){for(var i,n=0;null!=(i=e[n]);n++)try{t(i).triggerHandler("remove")}catch(s){}r(e)},t.widget=function(e,i,n){var r,s,a,o,l={},u=e.split(".")[0];e=e.split(".")[1],r=u+"-"+e,n||(n=i,i=t.Widget),t.expr[":"][r.toLowerCase()]=function(e){return!!t.data(e,r)},t[u]=t[u]||{},s=t[u][e],a=t[u][e]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new a(t,e)},t.extend(a,s,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),o=new i,o.options=t.widget.extend({},o.options),t.each(n,function(e,n){return t.isFunction(n)?void(l[e]=function(){var t=function(){return i.prototype[e].apply(this,arguments)},r=function(t){return i.prototype[e].apply(this,t)};return function(){var e,i=this._super,s=this._superApply;return this._super=t,this._superApply=r,e=n.apply(this,arguments),this._super=i,this._superApply=s,e}}()):void(l[e]=n)}),a.prototype=t.widget.extend(o,{widgetEventPrefix:s?o.widgetEventPrefix:e},l,{constructor:a,namespace:u,widgetName:e,widgetFullName:r}),s?(t.each(s._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,a,i._proto)}),delete s._childConstructors):i._childConstructors.push(a),t.widget.bridge(e,a)},t.widget.extend=function(i){for(var r,s,a=n.call(arguments,1),o=0,l=a.length;l>o;o++)for(r in a[o])s=a[o][r],a[o].hasOwnProperty(r)&&s!==e&&(i[r]=t.isPlainObject(s)?t.isPlainObject(i[r])?t.widget.extend({},i[r],s):t.widget.extend({},s):s);return i},t.widget.bridge=function(i,r){var s=r.prototype.widgetFullName||i;t.fn[i]=function(a){var o="string"==typeof a,l=n.call(arguments,1),u=this;return a=!o&&l.length?t.widget.extend.apply(null,[a].concat(l)):a,this.each(o?function(){var n,r=t.data(this,s);return r?t.isFunction(r[a])&&"_"!==a.charAt(0)?(n=r[a].apply(r,l),n!==r&&n!==e?(u=n&&n.jquery?u.pushStack(n.get()):n,!1):void 0):t.error("no such method '"+a+"' for "+i+" widget instance"):t.error("cannot call methods on "+i+" prior to initialization; attempted to call method '"+a+"'")}:function(){var e=t.data(this,s);e?e.option(a||{})._init():t.data(this,s,new r(a,this))}),u}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"
",options:{disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(i,n){var r,s,a,o=i;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof i)if(o={},r=i.split("."),i=r.shift(),r.length){for(s=o[i]=t.widget.extend({},this.options[i]),a=0;a=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(n),function(t,e){t.widget("ui.draggable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(e){var i=this.options;return this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(e),this.handle?(t(i.iframeFix===!0?"iframe":i.iframeFix).each(function(){t("
").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,i){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(this._trigger("drag",e,n)===!1)return this._mouseUp({}),!1;this.position=n.position}return this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),"original"!==this.options.helper||t.contains(this.element[0].ownerDocument,this.element[0])?("invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",e)!==!1&&i._clear()}):this._trigger("stop",e)!==!1&&this._clear(),!1):!1},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options;return r.containment?"window"===r.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===r.containment?void(this.containment=[0,0,t(document).width()-this.helperProportions.width-this.margins.left,(t(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):r.containment.constructor===Array?void(this.containment=r.containment):("parent"===r.containment&&(r.containment=this.helper[0].parentNode),i=t(r.containment),n=i[0],void(n&&(e="hidden"!==i.css("overflow"),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i))):void(this.containment=null)},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:r.scrollTop(),left:r.scrollLeft()}),{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*n}},_generatePosition:function(e){var i,n,r,s,a=this.options,o="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=e.pageX,u=e.pageY;return this.offset.scroll||(this.offset.scroll={top:o.scrollTop(),left:o.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(n=this.relative_container.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,e.pageX-this.offset.click.lefti[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(u=i[3]+this.offset.click.top)),a.grid&&(r=a.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,u=i?r-this.offset.click.top>=i[1]||r-this.offset.click.top>i[3]?r:r-this.offset.click.top>=i[1]?r-a.grid[1]:r+a.grid[1]:r,s=a.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,l=i?s-this.offset.click.left>=i[0]||s-this.offset.click.left>i[2]?s:s-this.offset.click.left>=i[0]?s-a.grid[0]:s+a.grid[0]:s)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n]),"drag"===e&&(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i){var n=t(this).data("ui-draggable"),r=n.options,s=t.extend({},i,{item:n.element});n.sortables=[],t(r.connectToSortable).each(function(){var i=t.data(this,"ui-sortable");i&&!i.options.disabled&&(n.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",e,s))})},stop:function(e,i){var n=t(this).data("ui-draggable"),r=t.extend({},i,{item:n.element});t.each(n.sortables,function(){this.instance.isOver?(this.instance.isOver=0,n.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"===n.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,r))})},drag:function(e,i){var n=t(this).data("ui-draggable"),r=this;t.each(n.sortables,function(){var s=!1,a=this;this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(s=!0,t.each(n.sortables,function(){return this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this!==a&&this.instance._intersectsWith(this.instance.containerCache)&&t.contains(a.instance.element[0],this.instance.element[0])&&(s=!1),s})),s?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(r).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=n.offset.click.top,this.instance.offset.click.left=n.offset.click.left,this.instance.offset.parent.left-=n.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=n.offset.parent.top-this.instance.offset.parent.top,n._trigger("toSortable",e),n.dropped=this.instance.element,n.currentItem=n.element,this.instance.fromOutside=n),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),n._trigger("fromSortable",e),n.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(){var e=t("body"),i=t(this).data("ui-draggable").options;e.css("cursor")&&(i._cursor=e.css("cursor")),e.css("cursor",i.cursor)},stop:function(){var e=t(this).data("ui-draggable").options;e._cursor&&t("body").css("cursor",e._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i){var n=t(i.helper),r=t(this).data("ui-draggable").options;n.css("opacity")&&(r._opacity=n.css("opacity")),n.css("opacity",r.opacity)},stop:function(e,i){var n=t(this).data("ui-draggable").options;n._opacity&&t(i.helper).css("opacity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(){var e=t(this).data("ui-draggable");e.scrollParent[0]!==document&&"HTML"!==e.scrollParent[0].tagName&&(e.overflowOffset=e.scrollParent.offset())},drag:function(e){var i=t(this).data("ui-draggable"),n=i.options,r=!1;i.scrollParent[0]!==document&&"HTML"!==i.scrollParent[0].tagName?(n.axis&&"x"===n.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-e.pageY=0;h--)o=p.snapElements[h].left,l=o+p.snapElements[h].width,u=p.snapElements[h].top,c=u+p.snapElements[h].height,o-g>v||m>l+g||u-g>_||y>c+g||!t.contains(p.snapElements[h].item.ownerDocument,p.snapElements[h].item)?(p.snapElements[h].snapping&&p.options.snap.release&&p.options.snap.release.call(p.element,e,t.extend(p._uiHash(),{snapItem:p.snapElements[h].item})),p.snapElements[h].snapping=!1):("inner"!==f.snapMode&&(n=Math.abs(u-_)<=g,r=Math.abs(c-y)<=g,s=Math.abs(o-v)<=g,a=Math.abs(l-m)<=g,n&&(i.position.top=p._convertPositionTo("relative",{top:u-p.helperProportions.height,left:0}).top-p.margins.top),r&&(i.position.top=p._convertPositionTo("relative",{top:c,left:0}).top-p.margins.top),s&&(i.position.left=p._convertPositionTo("relative",{top:0,left:o-p.helperProportions.width}).left-p.margins.left),a&&(i.position.left=p._convertPositionTo("relative",{top:0,left:l}).left-p.margins.left)),d=n||r||s||a,"outer"!==f.snapMode&&(n=Math.abs(u-y)<=g,r=Math.abs(c-_)<=g,s=Math.abs(o-m)<=g,a=Math.abs(l-v)<=g,n&&(i.position.top=p._convertPositionTo("relative",{top:u,left:0}).top-p.margins.top),r&&(i.position.top=p._convertPositionTo("relative",{top:c-p.helperProportions.height,left:0}).top-p.margins.top),s&&(i.position.left=p._convertPositionTo("relative",{top:0,left:o}).left-p.margins.left),a&&(i.position.left=p._convertPositionTo("relative",{top:0,left:l-p.helperProportions.width}).left-p.margins.left)),!p.snapElements[h].snapping&&(n||r||s||a||d)&&p.options.snap.snap&&p.options.snap.snap.call(p.element,e,t.extend(p._uiHash(),{snapItem:p.snapElements[h].item})),p.snapElements[h].snapping=n||r||s||a||d)}}),t.ui.plugin.add("draggable","stack",{start:function(){var e,i=this.data("ui-draggable").options,n=t.makeArray(t(i.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});n.length&&(e=parseInt(t(n[0]).css("zIndex"),10)||0,t(n).each(function(i){t(this).css("zIndex",e+i)}),this.css("zIndex",e+n.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i){var n=t(i.helper),r=t(this).data("ui-draggable").options;n.css("zIndex")&&(r._zIndex=n.css("zIndex")),n.css("zIndex",r.zIndex)},stop:function(e,i){var n=t(this).data("ui-draggable").options;n._zIndex&&t(i.helper).css("zIndex",n._zIndex)}})}(n),function(t,e){function i(t,e,i){return t>e&&e+i>t}t.widget("ui.droppable",{version:"1.10.3",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(i)?i:function(t){return t.is(i)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},t.ui.ddmanager.droppables[e.scope]=t.ui.ddmanager.droppables[e.scope]||[],t.ui.ddmanager.droppables[e.scope].push(this),e.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var e=0,i=t.ui.ddmanager.droppables[this.options.scope];e=c&&h>=o&&l>=d&&p>=u;case"intersect":return c=d&&p>=l||u>=d&&p>=u||d>l&&u>p)&&(a>=c&&h>=a||o>=c&&h>=o||c>a&&o>h);default:return!1}},t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,i){var n,r,s=t.ui.ddmanager.droppables[e.options.scope]||[],a=i?i.type:null,o=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(n=0;n
").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=o.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},i=0;i
"),r.css({zIndex:o.zIndex}),"se"===n&&r.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[n]=".ui-resizable-"+n,this.element.append(r);this._renderAxis=function(e){var i,n,r,s;e=e||this.element;for(i in this.handles)this.handles[i].constructor===String&&(this.handles[i]=t(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(n=t(this.handles[i],this.element),s=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),r=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(r,s),this._proportionallyResize()),t(this.handles[i]).length},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){a.resizing||(this.className&&(r=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=r&&r[1]?r[1]:"se")}),o.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter(function(){o.disabled||(t(this).removeClass("ui-resizable-autohide"),a._handles.show())}).mouseleave(function(){o.disabled||a.resizing||(t(this).addClass("ui-resizable-autohide"),a._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(e){var i,n,r=!1;for(i in this.handles)n=t(this.handles[i])[0],(n===e.target||t.contains(n,e.target))&&(r=!0);return!this.options.disabled&&r},_mouseStart:function(e){var n,r,s,a=this.options,o=this.element.position(),l=this.element;return this.resizing=!0,/absolute/.test(l.css("position"))?l.css({position:"absolute",top:l.css("top"),left:l.css("left")}):l.is(".ui-draggable")&&l.css({position:"absolute",top:o.top,left:o.left}),this._renderProxy(),n=i(this.helper.css("left")),r=i(this.helper.css("top")),a.containment&&(n+=t(a.containment).scrollLeft()||0,r+=t(a.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:r},this.size=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalSize=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalPosition={left:n,top:r},this.sizeDiff={width:l.outerWidth()-l.width(),height:l.outerHeight()-l.height()},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof a.aspectRatio?a.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===s?this.axis+"-resize":s),l.addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,n=this.helper,r={},s=this.originalMousePosition,a=this.axis,o=this.position.top,l=this.position.left,u=this.size.width,c=this.size.height,h=e.pageX-s.left||0,d=e.pageY-s.top||0,p=this._change[a];return p?(i=p.apply(this,[e,h,d]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),this.position.top!==o&&(r.top=this.position.top+"px"),this.position.left!==l&&(r.left=this.position.left+"px"),this.size.width!==u&&(r.width=this.size.width+"px"),this.size.height!==c&&(r.height=this.size.height+"px"),n.css(r),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(r)||this._trigger("resize",e,this.ui()),!1):!1},_mouseStop:function(e){this.resizing=!1;var i,n,r,s,a,o,l,u=this.options,c=this;return this._helper&&(i=this._proportionallyResizeElements,n=i.length&&/textarea/i.test(i[0].nodeName),r=n&&t.ui.hasScroll(i[0],"left")?0:c.sizeDiff.height,s=n?0:c.sizeDiff.width,a={width:c.helper.width()-s,height:c.helper.height()-r},o=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null,l=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null,u.animate||this.element.css(t.extend(a,{top:l,left:o})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!u.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(t){var e,i,r,s,a,o=this.options;a={minWidth:n(o.minWidth)?o.minWidth:0,maxWidth:n(o.maxWidth)?o.maxWidth:1/0,minHeight:n(o.minHeight)?o.minHeight:0,maxHeight:n(o.maxHeight)?o.maxHeight:1/0},(this._aspectRatio||t)&&(e=a.minHeight*this.aspectRatio,r=a.minWidth/this.aspectRatio,i=a.maxHeight*this.aspectRatio,s=a.maxWidth/this.aspectRatio,e>a.minWidth&&(a.minWidth=e),r>a.minHeight&&(a.minHeight=r),it.width,o=n(t.height)&&e.minHeight&&e.minHeight>t.height,l=this.originalPosition.left+this.originalSize.width,u=this.position.top+this.size.height,c=/sw|nw|w/.test(i),h=/nw|ne|n/.test(i);return a&&(t.width=e.minWidth),o&&(t.height=e.minHeight),r&&(t.width=e.maxWidth),s&&(t.height=e.maxHeight),a&&c&&(t.left=l-e.minWidth),r&&c&&(t.left=l-e.maxWidth),o&&h&&(t.top=u-e.minHeight),s&&h&&(t.top=u-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var t,e,i,n,r,s=this.helper||this.element;for(t=0;t
"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize,n=this.originalPosition;return{left:n.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize,r=this.originalPosition;return{top:r.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).data("ui-resizable"),n=i.options,r=i._proportionallyResizeElements,s=r.length&&/textarea/i.test(r[0].nodeName),a=s&&t.ui.hasScroll(r[0],"left")?0:i.sizeDiff.height,o=s?0:i.sizeDiff.width,l={width:i.size.width-o,height:i.size.height-a},u=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,c=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,c&&u?{top:c,left:u}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};r&&r.length&&t(r[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,n,r,s,a,o,l,u=t(this).data("ui-resizable"),c=u.options,h=u.element,d=c.containment,p=d instanceof t?d.get(0):/parent/.test(d)?h.parent().get(0):d;p&&(u.containerElement=t(p),/document/.test(d)||d===document?(u.containerOffset={left:0,top:0},u.containerPosition={left:0,top:0},u.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(p),n=[],t(["Top","Right","Left","Bottom"]).each(function(t,r){n[t]=i(e.css("padding"+r))}),u.containerOffset=e.offset(),u.containerPosition=e.position(),u.containerSize={height:e.innerHeight()-n[3],width:e.innerWidth()-n[1]},r=u.containerOffset,s=u.containerSize.height,a=u.containerSize.width,o=t.ui.hasScroll(p,"left")?p.scrollWidth:a,l=t.ui.hasScroll(p)?p.scrollHeight:s,u.parentData={element:p,left:r.left,top:r.top,width:o,height:l}))},resize:function(e){var i,n,r,s,a=t(this).data("ui-resizable"),o=a.options,l=a.containerOffset,u=a.position,c=a._aspectRatio||e.shiftKey,h={top:0,left:0},d=a.containerElement;d[0]!==document&&/static/.test(d.css("position"))&&(h=l),u.left<(a._helper?l.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-l.left:a.position.left-h.left),c&&(a.size.height=a.size.width/a.aspectRatio),a.position.left=o.helper?l.left:0),u.top<(a._helper?l.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-l.top:a.position.top),c&&(a.size.width=a.size.height*a.aspectRatio),a.position.top=a._helper?l.top:0),a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top,i=Math.abs((a._helper?a.offset.left-h.left:a.offset.left-h.left)+a.sizeDiff.width),n=Math.abs((a._helper?a.offset.top-h.top:a.offset.top-l.top)+a.sizeDiff.height),r=a.containerElement.get(0)===a.element.parent().get(0),s=/relative|absolute/.test(a.containerElement.css("position")),r&&s&&(i-=a.parentData.left),i+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-i,c&&(a.size.height=a.size.width/a.aspectRatio)),n+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-n,c&&(a.size.width=a.size.height*a.aspectRatio))},stop:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.containerOffset,r=e.containerPosition,s=e.containerElement,a=t(e.helper),o=a.offset(),l=a.outerWidth()-e.sizeDiff.width,u=a.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(s.css("position"))&&t(this).css({left:o.left-r.left-n.left,width:l,height:u}),e._helper&&!i.animate&&/static/.test(s.css("position"))&&t(this).css({left:o.left-r.left-n.left,width:l,height:u})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).data("ui-resizable"),i=e.options,n=function(e){t(e).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})};"object"!=typeof i.alsoResize||i.alsoResize.parentNode?n(i.alsoResize):i.alsoResize.length?(i.alsoResize=i.alsoResize[0],n(i.alsoResize)):t.each(i.alsoResize,function(t){n(t)})},resize:function(e,i){var n=t(this).data("ui-resizable"),r=n.options,s=n.originalSize,a=n.originalPosition,o={height:n.size.height-s.height||0,width:n.size.width-s.width||0,top:n.position.top-a.top||0,left:n.position.left-a.left||0},l=function(e,n){t(e).each(function(){var e=t(this),r=t(this).data("ui-resizable-alsoresize"),s={},a=n&&n.length?n:e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(a,function(t,e){var i=(r[e]||0)+(o[e]||0);i&&i>=0&&(s[e]=i||null)}),e.css(s)})};"object"!=typeof r.alsoResize||r.alsoResize.nodeType?l(r.alsoResize):t.each(r.alsoResize,function(t,e){l(t,e)})},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).data("ui-resizable");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).data("ui-resizable");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.size,r=e.originalSize,s=e.originalPosition,a=e.axis,o="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=o[0]||1,u=o[1]||1,c=Math.round((n.width-r.width)/l)*l,h=Math.round((n.height-r.height)/u)*u,d=r.width+c,p=r.height+h,f=i.maxWidth&&i.maxWidthd,v=i.minHeight&&i.minHeight>p;i.grid=o,m&&(d+=l),v&&(p+=u),f&&(d-=l),g&&(p-=u),/^(se|s|e)$/.test(a)?(e.size.width=d,e.size.height=p):/^(ne)$/.test(a)?(e.size.width=d,e.size.height=p,e.position.top=s.top-h):/^(sw)$/.test(a)?(e.size.width=d,e.size.height=p,e.position.left=s.left-c):(e.size.width=d,e.size.height=p,e.position.top=s.top-h,e.position.left=s.left-c)}})}(n),function(t,e){t.widget("ui.selectable",t.ui.mouse,{version:"1.10.3",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e=t(i.options.filter,i.element[0]),e.addClass("ui-selectee"),e.each(function(){var e=t(this),i=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("
")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var i=this,n=this.options;this.opos=[e.pageX,e.pageY],this.options.disabled||(this.selectees=t(n.filter,this.element[0]),this._trigger("start",e),t(n.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var n=t.data(this,"selectable-item");n.startselected=!0,e.metaKey||e.ctrlKey||(n.$element.removeClass("ui-selected"),n.selected=!1,n.$element.addClass("ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",e,{unselecting:n.element}))}),t(e.target).parents().addBack().each(function(){var n,r=t.data(this,"selectable-item");return r?(n=!e.metaKey&&!e.ctrlKey||!r.$element.hasClass("ui-selected"),r.$element.removeClass(n?"ui-unselecting":"ui-selected").addClass(n?"ui-selecting":"ui-unselecting"),r.unselecting=!n,r.selecting=n,r.selected=n,n?i._trigger("selecting",e,{selecting:r.element}):i._trigger("unselecting",e,{unselecting:r.element}),!1):void 0}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,n=this,r=this.options,s=this.opos[0],a=this.opos[1],o=e.pageX,l=e.pageY;return s>o&&(i=o,o=s,s=i),a>l&&(i=l,l=a,a=i),this.helper.css({left:s,top:a,width:o-s,height:l-a}),this.selectees.each(function(){var i=t.data(this,"selectable-item"),u=!1;i&&i.element!==n.element[0]&&("touch"===r.tolerance?u=!(i.left>o||i.rightl||i.bottoms&&i.righta&&i.bottome&&e+i>t}function n(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))}t.widget("ui.sortable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?"x"===t.axis||n(this.items[0].item):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,i){"disabled"===e?(this.options[e]=i,this.widget().toggleClass("ui-sortable-disabled",!!i)):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){var n=null,r=!1,s=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,s.widgetName+"-item")===s?(n=t(this),!1):void 0}),t.data(e.target,s.widgetName+"-item")===s&&(n=t(e.target)),n&&(!this.options.handle||i||(t(this.options.handle,n).find("*").addBack().each(function(){this===e.target&&(r=!0)}),r))?(this.currentItem=n,this._removeCurrentsFromItems(),!0):!1)},_mouseStart:function(e,i,n){var r,s,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(s=this.document.find("body"),this.storedCursor=s.css("cursor"),s.css("cursor",a.cursor),this.storedStylesheet=t("").appendTo(s)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,r,s,a=this.options,o=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY=0;i--)if(n=this.items[i],r=n.item[0],s=this._intersectsWithPointer(n),s&&n.instance===this.currentContainer&&r!==this.currentItem[0]&&this.placeholder[1===s?"next":"prev"]()[0]!==r&&!t.contains(this.placeholder[0],r)&&("semi-dynamic"===this.options.type?!t.contains(this.element[0],r):!0)){if(this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,r=this.placeholder.offset(),s=this.options.axis,a={};s&&"x"!==s||(a.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),s&&"y"!==s||(a.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each(function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,r=n+this.helperProportions.height,s=t.left,a=s+t.width,o=t.top,l=o+t.height,u=this.offset.click.top,c=this.offset.click.left,h="x"===this.options.axis||n+u>o&&l>n+u,d="y"===this.options.axis||e+c>s&&a>e+c,p=h&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:s0?"down":"up")},_getDragHorizontalDirection:function(){ -var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,r,s,a=[],o=[],l=this._connectWith();if(l&&e)for(i=l.length-1;i>=0;i--)for(r=t(l[i]),n=r.length-1;n>=0;n--)s=t.data(r[n],this.widgetFullName),s&&s!==this&&!s.options.disabled&&o.push([t.isFunction(s.options.items)?s.options.items.call(s.element):t(s.options.items,s.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),s]);for(o.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=o.length-1;i>=0;i--)o[i][0].each(function(){a.push(this)});return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;i=0;i--)for(r=t(d[i]),n=r.length-1;n>=0;n--)s=t.data(r[n],this.widgetFullName),s&&s!==this&&!s.options.disabled&&(h.push([t.isFunction(s.options.items)?s.options.items.call(s.element[0],e,{item:this.currentItem}):t(s.options.items,s.element),s]),this.containers.push(s));for(i=h.length-1;i>=0;i--)for(a=h[i][1],o=h[i][0],n=0,u=o.length;u>n;n++)l=t(o[n]),l.data(this.widgetName+"-item",a),c.push({item:l,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var i,n,r,s;for(i=this.items.length-1;i>=0;i--)n=this.items[i],n.instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=r.outerWidth(),n.height=r.outerHeight()),s=r.offset(),n.left=s.left,n.top=s.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)s=this.containers[i].element.offset(),this.containers[i].containerCache.left=s.left,this.containers[i].containerCache.top=s.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var i,n=e.options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),r=t("<"+n+">",e.document[0]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===n?e.currentItem.children().each(function(){t(" ",e.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(r)}):"img"===n&&r.attr("src",e.currentItem.attr("src")),i||r.css("visibility","hidden"),r},update:function(t,r){(!i||n.forcePlaceholderSize)&&(r.height()||r.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),r.width()||r.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_contactContainers:function(e){var r,s,a,o,l,u,c,h,d,p,f=null,g=null;for(r=this.containers.length-1;r>=0;r--)if(!t.contains(this.currentItem[0],this.containers[r].element[0]))if(this._intersectsWith(this.containers[r].containerCache)){if(f&&t.contains(this.containers[r].element[0],f.element[0]))continue;f=this.containers[r],g=r}else this.containers[r].containerCache.over&&(this.containers[r]._trigger("out",e,this._uiHash(this)),this.containers[r].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[g].containerCache.over||(this.containers[g]._trigger("over",e,this._uiHash(this)),this.containers[g].containerCache.over=1);else{for(a=1e4,o=null,p=f.floating||n(this.currentItem),l=p?"left":"top",u=p?"width":"height",c=this.positionAbs[l]+this.offset.click[l],s=this.items.length-1;s>=0;s--)t.contains(this.containers[g].element[0],this.items[s].item[0])&&this.items[s].item[0]!==this.currentItem[0]&&(!p||i(this.positionAbs.top+this.offset.click.top,this.items[s].top,this.items[s].height))&&(h=this.items[s].item.offset()[l],d=!1,Math.abs(h-c)>Math.abs(h+this.items[s][u]-c)&&(d=!0,h+=this.items[s][u]),Math.abs(h-c)this.containment[2]&&(s=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),r.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/r.grid[1])*r.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-r.grid[1]:i+r.grid[1]:i,n=this.originalPageX+Math.round((s-this.originalPageX)/r.grid[0])*r.grid[0],s=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-r.grid[0]:n+r.grid[0]:n)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:o.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:o.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay(function(){r===this.counter&&this.refreshPositions(!n)})},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||n.push(function(t){return function(e){t._trigger("deactivate",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(function(t){return function(e){t._trigger("out",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!e){for(this._trigger("beforeStop",t,this._uiHash()),i=0;it?0:n.max6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}var s,a="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",o=/^([\-+])=\s*(\d+\.?\d*)/,l=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],u=t.Color=function(e,i,n,r){return new t.Color.fn.parse(e,i,n,r)},c={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},h={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=u.support={},p=t("

")[0],f=t.each;p.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(c,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),u.fn=t.extend(u.prototype,{parse:function(r,a,o,l){if(r===e)return this._rgba=[null,null,null,null],this;(r.jquery||r.nodeType)&&(r=t(r).css(a),a=e);var h=this,d=t.type(r),p=this._rgba=[];return a!==e&&(r=[r,a,o,l],d="array"),"string"===d?this.parse(n(r)||s._default):"array"===d?(f(c.rgba.props,function(t,e){p[e.idx]=i(r[e.idx],e)}),this):"object"===d?(r instanceof u?f(c,function(t,e){r[e.cache]&&(h[e.cache]=r[e.cache].slice())}):f(c,function(e,n){var s=n.cache;f(n.props,function(t,e){if(!h[s]&&n.to){if("alpha"===t||null==r[t])return;h[s]=n.to(h._rgba)}h[s][e.idx]=i(r[t],e,!0)}),h[s]&&t.inArray(null,h[s].slice(0,3))<0&&(h[s][3]=1,n.from&&(h._rgba=n.from(h[s])))}),this):void 0},is:function(t){var e=u(t),i=!0,n=this;return f(c,function(t,r){var s,a=e[r.cache];return a&&(s=n[r.cache]||r.to&&r.to(n._rgba)||[],f(r.props,function(t,e){return null!=a[e.idx]?i=a[e.idx]===s[e.idx]:void 0})),i}),i},_space:function(){var t=[],e=this;return f(c,function(i,n){e[n.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var n=u(t),r=n._space(),s=c[r],a=0===this.alpha()?u("transparent"):this,o=a[s.cache]||s.to(a._rgba),l=o.slice();return n=n[s.cache],f(s.props,function(t,r){var s=r.idx,a=o[s],u=n[s],c=h[r.type]||{};null!==u&&(null===a?l[s]=u:(c.mod&&(u-a>c.mod/2?a+=c.mod:a-u>c.mod/2&&(a-=c.mod)),l[s]=i((u-a)*e+a,r)))}),this[r](l)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),r=u(e)._rgba;return u(t.map(i,function(t,e){return(1-n)*r[e]+n*t}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t});return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),n=i.pop();return e&&i.push(~~(255*n)),"#"+t.map(i,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),u.fn.parse.prototype=u.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,n=t[0]/255,r=t[1]/255,s=t[2]/255,a=t[3],o=Math.max(n,r,s),l=Math.min(n,r,s),u=o-l,c=o+l,h=.5*c;return e=l===o?0:n===o?60*(r-s)/u+360:r===o?60*(s-n)/u+120:60*(n-r)/u+240,i=0===u?0:.5>=h?u/c:u/(2-c),[Math.round(e)%360,i,h,null==a?1:a]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],n=t[2],s=t[3],a=.5>=n?n*(1+i):n+i-n*i,o=2*n-a;return[Math.round(255*r(o,a,e+1/3)),Math.round(255*r(o,a,e)),Math.round(255*r(o,a,e-1/3)),s]},f(c,function(n,r){var s=r.props,a=r.cache,l=r.to,c=r.from;u.fn[n]=function(n){if(l&&!this[a]&&(this[a]=l(this._rgba)),n===e)return this[a].slice();var r,o=t.type(n),h="array"===o||"object"===o?n:arguments,d=this[a].slice();return f(s,function(t,e){var n=h["object"===o?t:e.idx];null==n&&(n=d[e.idx]),d[e.idx]=i(n,e)}),c?(r=u(c(d)),r[a]=d,r):u(d)},f(s,function(e,i){u.fn[e]||(u.fn[e]=function(r){var s,a=t.type(r),l="alpha"===e?this._hsla?"hsla":"rgba":n,u=this[l](),c=u[i.idx];return"undefined"===a?c:("function"===a&&(r=r.call(this,c),a=t.type(r)),null==r&&i.empty?this:("string"===a&&(s=o.exec(r),s&&(r=c+parseFloat(s[2])*("+"===s[1]?1:-1))),u[i.idx]=r,this[l](u)))})})}),u.hook=function(e){var i=e.split(" ");f(i,function(e,i){t.cssHooks[i]={set:function(e,r){var s,a,o="";if("transparent"!==r&&("string"!==t.type(r)||(s=n(r)))){if(r=u(s||r),!d.rgba&&1!==r._rgba[3]){for(a="backgroundColor"===i?e.parentNode:e;(""===o||"transparent"===o)&&a&&a.style;)try{o=t.css(a,"backgroundColor"),a=a.parentNode}catch(l){}r=r.blend(o&&"transparent"!==o?o:"_default")}r=r.toRgbaString()}try{e.style[i]=r}catch(l){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=u(e.elem,i),e.end=u(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},u.hook(a),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(i,n){e["border"+n+"Color"]=t}),e}},s=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(n),function(){function i(e){var i,n,r=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,s={};if(r&&r.length&&r[0]&&r[r[0]])for(n=r.length;n--;)i=r[n],"string"==typeof r[i]&&(s[t.camelCase(i)]=r[i]);else for(i in r)"string"==typeof r[i]&&(s[i]=r[i]);return s}function r(e,i){var n,r,s={};for(n in i)r=i[n],e[n]!==r&&(a[n]||(t.fx.step[n]||!isNaN(parseFloat(r)))&&(s[n]=r));return s}var s=["add","remove","toggle"],a={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(n.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(e,n,a,o){var l=t.speed(n,a,o);return this.queue(function(){var n,a=t(this),o=a.attr("class")||"",u=l.children?a.find("*").addBack():a;u=u.map(function(){var e=t(this);return{el:e,start:i(this)}}),n=function(){t.each(s,function(t,i){e[i]&&a[i+"Class"](e[i])})},n(),u=u.map(function(){return this.end=i(this.el[0]),this.diff=r(this.start,this.end),this}),a.attr("class",o),u=u.map(function(){var e=this,i=t.Deferred(),n=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,n),i.promise()}),t.when.apply(t,u.get()).done(function(){n(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(a[0])})})},t.fn.extend({addClass:function(e){return function(i,n,r,s){return n?t.effects.animateClass.call(this,{add:i},n,r,s):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,n,r,s){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},n,r,s):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(i){return function(n,r,s,a,o){return"boolean"==typeof r||r===e?s?t.effects.animateClass.call(this,r?{add:n}:{remove:n},s,a,o):i.apply(this,arguments):t.effects.animateClass.call(this,{toggle:n},r,s,a)}}(t.fn.toggleClass),switchClass:function(e,i,n,r,s){return t.effects.animateClass.call(this,{add:i,remove:e},n,r,s)}})}(),function(){function n(e,i,n,r){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(r=i,n=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(r=n,n=i,i={}),t.isFunction(n)&&(r=n,n=null),i&&t.extend(e,i),n=n||i.duration,e.duration=t.fx.off?0:"number"==typeof n?n:n in t.fx.speeds?t.fx.speeds[n]:t.fx.speeds._default,e.complete=r||i.complete,e}function r(e){return!e||"number"==typeof e||t.fx.speeds[e]?!0:"string"!=typeof e||t.effects.effect[e]?t.isFunction(e)?!0:"object"!=typeof e||e.effect?!1:!0:!0}t.extend(t.effects,{version:"1.10.3",save:function(t,e){for(var n=0;n

").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r={width:e.width(),height:e.height()},s=document.activeElement;try{s.id}catch(a){s=document.body}return e.wrap(n),(e[0]===s||t.contains(e[0],s))&&t(s).focus(),n=e.parent(),"static"===e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(r),n.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).focus()),e},setTransition:function(e,i,n,r){return r=r||{},t.each(i,function(t,i){var s=e.cssUnit(i);s[0]>0&&(r[i]=s[0]*n+s[1])}),r}}),t.fn.extend({effect:function(){function e(e){function n(){t.isFunction(s)&&s.call(r[0]),t.isFunction(e)&&e()}var r=t(this),s=i.complete,o=i.mode;(r.is(":hidden")?"hide"===o:"show"===o)?(r[o](),n()):a.call(r[0],i,n)}var i=n.apply(this,arguments),r=i.mode,s=i.queue,a=t.effects.effect[i.effect];return t.fx.off||!a?r?this[r](i.duration,i.complete):this.each(function(){i.complete&&i.complete.call(this)}):s===!1?this.each(e):this.queue(s||"fx",e)},show:function(t){return function(e){if(r(e))return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="show",this.effect.call(this,i)}}(t.fn.show),hide:function(t){return function(e){if(r(e))return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="hide",this.effect.call(this,i)}}(t.fn.hide),toggle:function(t){return function(e){if(r(e)||"boolean"==typeof e)return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="toggle",this.effect.call(this,i)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),n=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(n=[parseFloat(i),e])}),n}})}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}})}()}(n),function(t,e){var i=0,n={},r={};n.height=n.paddingTop=n.paddingBottom=n.borderTopWidth=n.borderBottomWidth="hide",r.height=r.paddingTop=r.paddingBottom=r.borderTopWidth=r.borderBottomWidth="show",t.widget("ui.accordion",{version:"1.10.3",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||e.active!==!1&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t(),content:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&&(t("").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||this.options.active!==!1||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),void("disabled"===t&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e)))},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,n=this.headers.length,r=this.headers.index(e.target),s=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:s=this.headers[(r+1)%n];break;case i.LEFT:case i.UP:s=this.headers[(r-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:s=this.headers[0];break;case i.END:s=this.headers[n-1]}s&&(t(e.target).attr("tabIndex",-1),t(s).attr("tabIndex",0),s.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),e.active===!1&&e.collapsible===!0||!this.headers.length?(e.active=!1,this.active=t()):e.active===!1?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var e,n=this.options,r=n.heightStyle,s=this.element.parent(),a=this.accordionId="ui-accordion-"+(this.element.attr("id")||++i);this.active=this._findActive(n.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(e){var i=t(this),n=i.attr("id"),r=i.next(),s=r.attr("id");n||(n=a+"-header-"+e,i.attr("id",n)),s||(s=a+"-panel-"+e,r.attr("id",s)),i.attr("aria-controls",s),r.attr("aria-labelledby",n)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false" -}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(n.event),"fill"===r?(e=s.height(),this.element.siblings(":visible").each(function(){var i=t(this),n=i.css("position");"absolute"!==n&&"fixed"!==n&&(e-=i.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===r&&(e=0,this.headers.next().each(function(){e=Math.max(e,t(this).css("height","").height())}).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i=this.options,n=this.active,r=t(e.currentTarget),s=r[0]===n[0],a=s&&i.collapsible,o=a?t():r.next(),l=n.next(),u={oldHeader:n,oldPanel:l,newHeader:a?t():r,newPanel:o};e.preventDefault(),s&&!i.collapsible||this._trigger("beforeActivate",e,u)===!1||(i.active=a?!1:this.headers.index(r),this.active=s?t():r,this._toggle(u),n.removeClass("ui-accordion-header-active ui-state-active"),i.icons&&n.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),s||(r.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&&r.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),r.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,n=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=n,this.options.animate?this._animate(i,n,e):(n.hide(),i.show(),this._toggleComplete(e)),n.attr({"aria-expanded":"false","aria-hidden":"true"}),n.prev().attr("aria-selected","false"),i.length&&n.length?n.prev().attr("tabIndex",-1):i.length&&this.headers.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),i.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(t,e,i){var s,a,o,l=this,u=0,c=t.length&&(!e.length||t.index()",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var e,i,n,r=this.element[0].nodeName.toLowerCase(),s="textarea"===r,a="input"===r;this.isMultiLine=s?!0:a?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[s||a?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(r){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var s=t.ui.keyCode;switch(r.keyCode){case s.PAGE_UP:e=!0,this._move("previousPage",r);break;case s.PAGE_DOWN:e=!0,this._move("nextPage",r);break;case s.UP:e=!0,this._keyEvent("previous",r);break;case s.DOWN:e=!0,this._keyEvent("next",r);break;case s.ENTER:case s.NUMPAD_ENTER:this.menu.active&&(e=!0,r.preventDefault(),this.menu.select(r));break;case s.TAB:this.menu.active&&this.menu.select(r);break;case s.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(r),r.preventDefault());break;default:i=!0,this._searchTimeout(r)}},keypress:function(n){if(e)return e=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&&n.preventDefault());if(!i){var r=t.ui.keyCode;switch(n.keyCode){case r.PAGE_UP:this._move("previousPage",n);break;case r.PAGE_DOWN:this._move("nextPage",n);break;case r.UP:this._keyEvent("previous",n);break;case r.DOWN:this._keyEvent("next",n)}}},input:function(t){return n?(n=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("
"+(B[0]>0&&L===B[1]-1?"
":""):""),w+=T}b+=w}return b+=u,t._keyEvent=!1,b},_generateMonthYearHeader:function(t,e,i,n,r,s,a,o){var l,u,c,h,d,p,f,g,m=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),y=this._get(t,"showMonthAfterYear"),_="
",b="";if(s||!m)b+=""+a[e]+"";else{for(l=n&&n.getFullYear()===i,u=r&&r.getFullYear()===i,b+=""}if(y||(_+=b+(!s&&m&&v?"":" ")),!t.yearshtml)if(t.yearshtml="",s||!v)_+=""+i+"";else{for(h=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e},f=p(h[0]),g=Math.max(f,p(h[1]||"")),f=n?Math.max(f,n.getFullYear()):f,g=r?Math.min(g,r.getFullYear()):g,t.yearshtml+="",_+=t.yearshtml,t.yearshtml=null}return _+=this._get(t,"yearSuffix"),y&&(_+=(!s&&m&&v?"":" ")+b),_+="
"},_adjustInstDate:function(t,e,i){var n=t.drawYear+("Y"===i?e:0),r=t.drawMonth+("M"===i?e:0),s=Math.min(t.selectedDay,this._getDaysInMonth(n,r))+("D"===i?e:0),a=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,r,s)));t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),r=i&&i>e?i:e;return n&&r>n?n:r},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var r=this._getNumberOfMonths(t),s=this._daylightSavingAdjust(new Date(i,n+(0>e?e:r[0]*r[1]),1));return 0>e&&s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(t,s)},_isInRange:function(t,e){var i,n,r=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),a=null,o=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),a=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(a+=n),i[1].match(/[+\-].*/)&&(o+=n)),(!r||e.getTime()>=r.getTime())&&(!s||e.getTime()<=s.getTime())&&(!a||e.getFullYear()>=a)&&(!o||e.getFullYear()<=o)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var r=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),r,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).mousedown(t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new i,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.10.3"}(n),function(t,e){var i={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},n={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};t.widget("ui.dialog",{version:"1.10.3",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(this).css(e).offset().top;0>i&&t(this).css("top",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),t=e.parent.children().eq(e.index),t.length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isOpen&&this._trigger("beforeClose",e)!==!1&&(this._isOpen=!1,this._destroyOverlay(),this.opener.filter(":focusable").focus().length||t(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return i&&!e&&this._trigger("focus",t),i},open:function(){var e=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=t(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),void this._trigger("open"))},_focusTabbable:function(){var t=this.element.find("[autofocus]");t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).focus()},_keepFocus:function(e){function i(){var e=this.document[0].activeElement,i=this.uiDialog[0]===e||t.contains(this.uiDialog[0],e);i||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("
").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===t.ui.keyCode.TAB){var i=this.uiDialog.find(":tabbable"),n=i.filter(":first"),r=i.filter(":last");e.target!==r[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==n[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(r.focus(1),e.preventDefault()):(n.focus(1),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("
").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=t("").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(e),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title||t.html(" "),t.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=t("
").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("
").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?void this.uiDialog.removeClass("ui-dialog-buttons"):(t.each(i,function(i,n){var r,s;n=t.isFunction(n)?{click:n,text:i}:n,n=t.extend({type:"button"},n),r=n.click,n.click=function(){r.apply(e.element[0],arguments)},s={icons:n.icons,text:n.showText},delete n.icons,delete n.showText,t("",n).button(s).appendTo(e.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,r){t(this).addClass("ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",n,e(r))},drag:function(t,n){i._trigger("drag",t,e(n))},stop:function(r,s){n.position=[s.position.left-i.document.scrollLeft(),s.position.top-i.document.scrollTop()],t(this).removeClass("ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",r,e(s))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var i=this,n=this.options,r=n.resizable,s=this.uiDialog.css("position"),a="string"==typeof r?r:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:a,start:function(n,r){t(this).addClass("ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",n,e(r))},resize:function(t,n){i._trigger("resize",t,e(n))},stop:function(r,s){n.height=t(this).height(),n.width=t(this).width(),t(this).removeClass("ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",r,e(s))}}).css("position",s)},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var r=this,s=!1,a={};t.each(e,function(t,e){r._setOption(t,e),t in i&&(s=!0),t in n&&(a[t]=e)}),s&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",a)},_setOption:function(t,e){var i,n,r=this.uiDialog;"dialogClass"===t&&r.removeClass(this.options.dialogClass).addClass(e),"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:""+e}),"draggable"===t&&(i=r.is(":data(ui-draggable)"),i&&!e&&r.draggable("destroy"),!i&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&(n=r.is(":data(ui-resizable)"),n&&!e&&r.resizable("destroy"),n&&"string"==typeof e&&r.resizable("option","handles",e),n||e===!1||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),e=Math.max(0,n.minHeight-t),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none","auto"===n.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("
").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return t(e.target).closest(".ui-dialog").length?!0:!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=this,i=this.widgetFullName;t.ui.dialog.overlayInstances||this._delay(function(){t.ui.dialog.overlayInstances&&this.document.bind("focusin.dialog",function(n){e._allowInteraction(n)||(n.preventDefault(),t(".ui-dialog:visible:last .ui-dialog-content").data(i)._focusTabbable())})}),this.overlay=t("
").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),t.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(t.ui.dialog.overlayInstances--,t.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),t.ui.dialog.overlayInstances=0,t.uiBackCompat!==!1&&t.widget("ui.dialog",t.ui.dialog,{_position:function(){ -var e,i=this.options.position,n=[],r=[0,0];i?(("string"==typeof i||"object"==typeof i&&"0"in i)&&(n=i.split?i.split(" "):[i[0],i[1]],1===n.length&&(n[1]=n[0]),t.each(["left","top"],function(t,e){+n[t]===n[t]&&(r[t]=n[t],n[t]=e)}),i={my:n[0]+(r[0]<0?r[0]:"+"+r[0])+" "+n[1]+(r[1]<0?r[1]:"+"+r[1]),at:n.join(" ")}),i=t.extend({},t.ui.dialog.prototype.options.position,i)):i=t.ui.dialog.prototype.options.position,e=this.uiDialog.is(":visible"),e||this.uiDialog.show(),this.uiDialog.position(i),e||this.uiDialog.hide()}})}(n),function(t,e){var i=/up|down|vertical/,n=/up|left|vertical|horizontal/;t.effects.effect.blind=function(e,r){var s,a,o,l=t(this),u=["position","top","bottom","left","right","height","width"],c=t.effects.setMode(l,e.mode||"hide"),h=e.direction||"up",d=i.test(h),p=d?"height":"width",f=d?"top":"left",g=n.test(h),m={},v="show"===c;l.parent().is(".ui-effects-wrapper")?t.effects.save(l.parent(),u):t.effects.save(l,u),l.show(),s=t.effects.createWrapper(l).css({overflow:"hidden"}),a=s[p](),o=parseFloat(s.css(f))||0,m[p]=v?a:0,g||(l.css(d?"bottom":"right",0).css(d?"top":"left","auto").css({position:"absolute"}),m[f]=v?o:a+o),v&&(s.css(p,0),g||s.css(f,o+a)),s.animate(m,{duration:e.duration,easing:e.easing,queue:!1,complete:function(){"hide"===c&&l.hide(),t.effects.restore(l,u),t.effects.removeWrapper(l),r()}})}}(n),function(t,e){t.effects.effect.bounce=function(e,i){var n,r,s,a=t(this),o=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(a,e.mode||"effect"),u="hide"===l,c="show"===l,h=e.direction||"up",d=e.distance,p=e.times||5,f=2*p+(c||u?1:0),g=e.duration/f,m=e.easing,v="up"===h||"down"===h?"top":"left",y="up"===h||"left"===h,_=a.queue(),b=_.length;for((c||u)&&o.push("opacity"),t.effects.save(a,o),a.show(),t.effects.createWrapper(a),d||(d=a["top"===v?"outerHeight":"outerWidth"]()/3),c&&(s={opacity:1},s[v]=0,a.css("opacity",0).css(v,y?2*-d:2*d).animate(s,g,m)),u&&(d/=Math.pow(2,p-1)),s={},s[v]=0,n=0;p>n;n++)r={},r[v]=(y?"-=":"+=")+d,a.animate(r,g,m).animate(s,g,m),d=u?2*d:d/2;u&&(r={opacity:0},r[v]=(y?"-=":"+=")+d,a.animate(r,g,m)),a.queue(function(){u&&a.hide(),t.effects.restore(a,o),t.effects.removeWrapper(a),i()}),b>1&&_.splice.apply(_,[1,0].concat(_.splice(b,f+1))),a.dequeue()}}(n),function(t,e){t.effects.effect.clip=function(e,i){var n,r,s,a=t(this),o=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(a,e.mode||"hide"),u="show"===l,c=e.direction||"vertical",h="vertical"===c,d=h?"height":"width",p=h?"top":"left",f={};t.effects.save(a,o),a.show(),n=t.effects.createWrapper(a).css({overflow:"hidden"}),r="IMG"===a[0].tagName?n:a,s=r[d](),u&&(r.css(d,0),r.css(p,s/2)),f[d]=u?s:0,f[p]=u?0:s/2,r.animate(f,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){u||a.hide(),t.effects.restore(a,o),t.effects.removeWrapper(a),i()}})}}(n),function(t,e){t.effects.effect.drop=function(e,i){var n,r=t(this),s=["position","top","bottom","left","right","opacity","height","width"],a=t.effects.setMode(r,e.mode||"hide"),o="show"===a,l=e.direction||"left",u="up"===l||"down"===l?"top":"left",c="up"===l||"left"===l?"pos":"neg",h={opacity:o?1:0};t.effects.save(r,s),r.show(),t.effects.createWrapper(r),n=e.distance||r["top"===u?"outerHeight":"outerWidth"](!0)/2,o&&r.css("opacity",0).css(u,"pos"===c?-n:n),h[u]=(o?"pos"===c?"+=":"-=":"pos"===c?"-=":"+=")+n,r.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===a&&r.hide(),t.effects.restore(r,s),t.effects.removeWrapper(r),i()}})}}(n),function(t,e){t.effects.effect.explode=function(e,i){function n(){_.push(this),_.length===h*d&&r()}function r(){p.css({visibility:"visible"}),t(_).remove(),g||p.hide(),i()}var s,a,o,l,u,c,h=e.pieces?Math.round(Math.sqrt(e.pieces)):3,d=h,p=t(this),f=t.effects.setMode(p,e.mode||"hide"),g="show"===f,m=p.show().css("visibility","hidden").offset(),v=Math.ceil(p.outerWidth()/d),y=Math.ceil(p.outerHeight()/h),_=[];for(s=0;h>s;s++)for(l=m.top+s*y,c=s-(h-1)/2,a=0;d>a;a++)o=m.left+a*v,u=a-(d-1)/2,p.clone().appendTo("body").wrap("
").css({position:"absolute",visibility:"visible",left:-a*v,top:-s*y}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:y,left:o+(g?u*v:0),top:l+(g?c*y:0),opacity:g?0:1}).animate({left:o+(g?0:u*v),top:l+(g?0:c*y),opacity:g?1:0},e.duration||500,e.easing,n)}}(n),function(t,e){t.effects.effect.fade=function(e,i){var n=t(this),r=t.effects.setMode(n,e.mode||"toggle");n.animate({opacity:r},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}}(n),function(t,e){t.effects.effect.fold=function(e,i){var n,r,s=t(this),a=["position","top","bottom","left","right","height","width"],o=t.effects.setMode(s,e.mode||"hide"),l="show"===o,u="hide"===o,c=e.size||15,h=/([0-9]+)%/.exec(c),d=!!e.horizFirst,p=l!==d,f=p?["width","height"]:["height","width"],g=e.duration/2,m={},v={};t.effects.save(s,a),s.show(),n=t.effects.createWrapper(s).css({overflow:"hidden"}),r=p?[n.width(),n.height()]:[n.height(),n.width()],h&&(c=parseInt(h[1],10)/100*r[u?0:1]),l&&n.css(d?{height:0,width:c}:{height:c,width:0}),m[f[0]]=l?r[0]:c,v[f[1]]=l?r[1]:0,n.animate(m,g,e.easing).animate(v,g,e.easing,function(){u&&s.hide(),t.effects.restore(s,a),t.effects.removeWrapper(s),i()})}}(n),function(t,e){t.effects.effect.highlight=function(e,i){var n=t(this),r=["backgroundImage","backgroundColor","opacity"],s=t.effects.setMode(n,e.mode||"show"),a={backgroundColor:n.css("backgroundColor")};"hide"===s&&(a.opacity=0),t.effects.save(n,r),n.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(a,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===s&&n.hide(),t.effects.restore(n,r),i()}})}}(n),function(t,e){t.effects.effect.pulsate=function(e,i){var n,r=t(this),s=t.effects.setMode(r,e.mode||"show"),a="show"===s,o="hide"===s,l=a||"hide"===s,u=2*(e.times||5)+(l?1:0),c=e.duration/u,h=0,d=r.queue(),p=d.length;for((a||!r.is(":visible"))&&(r.css("opacity",0).show(),h=1),n=1;u>n;n++)r.animate({opacity:h},c,e.easing),h=1-h;r.animate({opacity:h},c,e.easing),r.queue(function(){o&&r.hide(),i()}),p>1&&d.splice.apply(d,[1,0].concat(d.splice(p,u+1))),r.dequeue()}}(n),function(t,e){t.effects.effect.puff=function(e,i){var n=t(this),r=t.effects.setMode(n,e.mode||"hide"),s="hide"===r,a=parseInt(e.percent,10)||150,o=a/100,l={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:r,complete:i,percent:s?a:100,from:s?l:{height:l.height*o,width:l.width*o,outerHeight:l.outerHeight*o,outerWidth:l.outerWidth*o}}),n.effect(e)},t.effects.effect.scale=function(e,i){var n=t(this),r=t.extend(!0,{},e),s=t.effects.setMode(n,e.mode||"effect"),a=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"hide"===s?0:100),o=e.direction||"both",l=e.origin,u={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()},c={y:"horizontal"!==o?a/100:1,x:"vertical"!==o?a/100:1};r.effect="size",r.queue=!1,r.complete=i,"effect"!==s&&(r.origin=l||["middle","center"],r.restore=!0),r.from=e.from||("show"===s?{height:0,width:0,outerHeight:0,outerWidth:0}:u),r.to={height:u.height*c.y,width:u.width*c.x,outerHeight:u.outerHeight*c.y,outerWidth:u.outerWidth*c.x},r.fade&&("show"===s&&(r.from.opacity=0,r.to.opacity=1),"hide"===s&&(r.from.opacity=1,r.to.opacity=0)),n.effect(r)},t.effects.effect.size=function(e,i){var n,r,s,a=t(this),o=["position","top","bottom","left","right","width","height","overflow","opacity"],l=["position","top","bottom","left","right","overflow","opacity"],u=["width","height","overflow"],c=["fontSize"],h=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],d=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=t.effects.setMode(a,e.mode||"effect"),f=e.restore||"effect"!==p,g=e.scale||"both",m=e.origin||["middle","center"],v=a.css("position"),y=f?o:l,_={height:0,width:0,outerHeight:0,outerWidth:0};"show"===p&&a.show(),n={height:a.height(),width:a.width(),outerHeight:a.outerHeight(),outerWidth:a.outerWidth()},"toggle"===e.mode&&"show"===p?(a.from=e.to||_,a.to=e.from||n):(a.from=e.from||("show"===p?_:n),a.to=e.to||("hide"===p?_:n)),s={from:{y:a.from.height/n.height,x:a.from.width/n.width},to:{y:a.to.height/n.height,x:a.to.width/n.width}},("box"===g||"both"===g)&&(s.from.y!==s.to.y&&(y=y.concat(h),a.from=t.effects.setTransition(a,h,s.from.y,a.from),a.to=t.effects.setTransition(a,h,s.to.y,a.to)),s.from.x!==s.to.x&&(y=y.concat(d),a.from=t.effects.setTransition(a,d,s.from.x,a.from),a.to=t.effects.setTransition(a,d,s.to.x,a.to))),("content"===g||"both"===g)&&s.from.y!==s.to.y&&(y=y.concat(c).concat(u),a.from=t.effects.setTransition(a,c,s.from.y,a.from),a.to=t.effects.setTransition(a,c,s.to.y,a.to)),t.effects.save(a,y),a.show(),t.effects.createWrapper(a),a.css("overflow","hidden").css(a.from),m&&(r=t.effects.getBaseline(m,n),a.from.top=(n.outerHeight-a.outerHeight())*r.y,a.from.left=(n.outerWidth-a.outerWidth())*r.x,a.to.top=(n.outerHeight-a.to.outerHeight)*r.y,a.to.left=(n.outerWidth-a.to.outerWidth)*r.x),a.css(a.from),("content"===g||"both"===g)&&(h=h.concat(["marginTop","marginBottom"]).concat(c),d=d.concat(["marginLeft","marginRight"]),u=o.concat(h).concat(d),a.find("*[width]").each(function(){var i=t(this),n={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};f&&t.effects.save(i,u),i.from={height:n.height*s.from.y,width:n.width*s.from.x,outerHeight:n.outerHeight*s.from.y,outerWidth:n.outerWidth*s.from.x},i.to={height:n.height*s.to.y,width:n.width*s.to.x,outerHeight:n.height*s.to.y,outerWidth:n.width*s.to.x},s.from.y!==s.to.y&&(i.from=t.effects.setTransition(i,h,s.from.y,i.from),i.to=t.effects.setTransition(i,h,s.to.y,i.to)),s.from.x!==s.to.x&&(i.from=t.effects.setTransition(i,d,s.from.x,i.from),i.to=t.effects.setTransition(i,d,s.to.x,i.to)),i.css(i.from),i.animate(i.to,e.duration,e.easing,function(){f&&t.effects.restore(i,u)})})),a.animate(a.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===a.to.opacity&&a.css("opacity",a.from.opacity),"hide"===p&&a.hide(),t.effects.restore(a,y),f||("static"===v?a.css({position:"relative",top:a.to.top,left:a.to.left}):t.each(["top","left"],function(t,e){a.css(e,function(e,i){var n=parseInt(i,10),r=t?a.to.left:a.to.top;return"auto"===i?r+"px":n+r+"px"})})),t.effects.removeWrapper(a),i()}})}}(n),function(t,e){t.effects.effect.shake=function(e,i){var n,r=t(this),s=["position","top","bottom","left","right","height","width"],a=t.effects.setMode(r,e.mode||"effect"),o=e.direction||"left",l=e.distance||20,u=e.times||3,c=2*u+1,h=Math.round(e.duration/c),d="up"===o||"down"===o?"top":"left",p="up"===o||"left"===o,f={},g={},m={},v=r.queue(),y=v.length;for(t.effects.save(r,s),r.show(),t.effects.createWrapper(r),f[d]=(p?"-=":"+=")+l,g[d]=(p?"+=":"-=")+2*l,m[d]=(p?"-=":"+=")+2*l,r.animate(f,h,e.easing),n=1;u>n;n++)r.animate(g,h,e.easing).animate(m,h,e.easing);r.animate(g,h,e.easing).animate(f,h/2,e.easing).queue(function(){"hide"===a&&r.hide(),t.effects.restore(r,s),t.effects.removeWrapper(r),i()}),y>1&&v.splice.apply(v,[1,0].concat(v.splice(y,c+1))),r.dequeue()}}(n),function(t,e){t.effects.effect.slide=function(e,i){var n,r=t(this),s=["position","top","bottom","left","right","width","height"],a=t.effects.setMode(r,e.mode||"show"),o="show"===a,l=e.direction||"left",u="up"===l||"down"===l?"top":"left",c="up"===l||"left"===l,h={};t.effects.save(r,s),r.show(),n=e.distance||r["top"===u?"outerHeight":"outerWidth"](!0),t.effects.createWrapper(r).css({overflow:"hidden"}),o&&r.css(u,c?isNaN(n)?"-"+n:-n:n),h[u]=(o?c?"+=":"-=":c?"-=":"+=")+n,r.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===a&&r.hide(),t.effects.restore(r,s),t.effects.removeWrapper(r),i()}})}}(n),function(t,e){t.effects.effect.transfer=function(e,i){var n=t(this),r=t(e.to),s="fixed"===r.css("position"),a=t("body"),o=s?a.scrollTop():0,l=s?a.scrollLeft():0,u=r.offset(),c={top:u.top-o,left:u.left-l,height:r.innerHeight(),width:r.innerWidth()},h=n.offset(),d=t("
").appendTo(document.body).addClass(e.className).css({top:h.top-o,left:h.left-l,height:n.innerHeight(),width:n.innerWidth(),position:s?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){d.remove(),i()})}}(n),function(t,e){t.widget("ui.menu",{version:"1.10.3",defaultElement:"
    ",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,t.proxy(function(t){this.options.disabled&&t.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(t){t.preventDefault()},"click .ui-state-disabled > a":function(t){t.preventDefault()},"click .ui-menu-item:has(a)":function(e){var i=t(e.target).closest(".ui-menu-item");!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(e),i.has(".ui-menu").length?this.expand(e):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var i=t(e.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(e,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.children(".ui-menu-item").eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){t(e.target).closest(".ui-menu").length||this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var n,r,s,a,o,l=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:l=!1,r=this.previousFilter||"",s=String.fromCharCode(e.keyCode),a=!1,clearTimeout(this.filterTimer),s===r?a=!0:s=r+s,o=new RegExp("^"+i(s),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return o.test(t(this).children("a").text())}),n=a&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n,n.length||(s=String.fromCharCode(e.keyCode),o=new RegExp("^"+i(s),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return o.test(t(this).children("a").text())})),n.length?(this.focus(e,n),n.length>1?(this.previousFilter=s,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}l&&e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i=this.options.icons.submenu,n=this.element.find(this.options.menus);n.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),n=e.prev("a"),r=t("").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);n.attr("aria-haspopup","true").prepend(r),e.attr("aria-labelledby",n.attr("id"))}),e=n.add(this.element),e.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),e.children(":not(.ui-menu-item)").each(function(){var e=t(this);/[^\-\u2014\u2013\s]/.test(e.text())||e.addClass("ui-widget-content ui-menu-divider")}),e.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),this._super(t,e)},focus:function(t,e){var i,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,n,r,s,a,o;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,r=e.offset().top-this.activeMenu.offset().top-i-n,s=this.activeMenu.scrollTop(),a=this.activeMenu.height(),o=e.height(),0>r?this.activeMenu.scrollTop(s+r):r+o>a&&this.activeMenu.scrollTop(s+r-a+o))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var n=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(e),this.activeMenu=n},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var n;this.active&&(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.children(".ui-menu-item")[e]()),this.focus(i,n)},nextPage:function(e){var i,n,r;return this.active?void(this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,r=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n-r<0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var i,n,r;return this.active?void(this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,r=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n+r>0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item").first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()
"),a=r.children()[0];return t("body").append(r),i=a.offsetWidth,r.css("overflow","scroll"),n=a.offsetWidth,i===n&&(n=r[0].clientWidth),r.remove(),s=i-n},getScrollInfo:function(e){var i=e.isWindow?"":e.element.css("overflow-x"),n=e.isWindow?"":e.element.css("overflow-y"),r="scroll"===i||"auto"===i&&e.widthn?"left":i>0?"right":"center",vertical:0>s?"top":r>0?"bottom":"middle"};h>p&&o(i+n)g&&o(r+s)a(o(r),o(s))?"horizontal":"vertical",e.using.call(this,t,l)}),c.offset(t.extend(C,{using:u}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollLeft:n.offset.left,s=n.width,o=t.left-e.collisionPosition.marginLeft,l=r-o,u=o+e.collisionWidth-s-r;e.collisionWidth>s?l>0&&0>=u?(i=t.left+l+e.collisionWidth-s-r,t.left+=l-i):t.left=u>0&&0>=l?r:l>u?r+s-e.collisionWidth:r:l>0?t.left+=l:u>0?t.left-=u:t.left=a(t.left-o,t.left)},top:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollTop:n.offset.top,s=e.within.height,o=t.top-e.collisionPosition.marginTop,l=r-o,u=o+e.collisionHeight-s-r;e.collisionHeight>s?l>0&&0>=u?(i=t.top+l+e.collisionHeight-s-r,t.top+=l-i):t.top=u>0&&0>=l?r:l>u?r+s-e.collisionHeight:r:l>0?t.top+=l:u>0?t.top-=u:t.top=a(t.top-o,t.top)}},flip:{left:function(t,e){var i,n,r=e.within,s=r.offset.left+r.scrollLeft,a=r.width,l=r.isWindow?r.scrollLeft:r.offset.left,u=t.left-e.collisionPosition.marginLeft,c=u-l,h=u+e.collisionWidth-a-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-a-s,(0>i||i0&&(n=t.left-e.collisionPosition.marginLeft+d+p+f-l,(n>0||o(n)c?(n=t.top+p+f+g+e.collisionHeight-a-s,t.top+p+f+g>c&&(0>n||n0&&(i=t.top-e.collisionPosition.marginTop+p+f+g-l,t.top+p+f+g>h&&(i>0||o(i)10&&11>r,e.innerHTML="",i.removeChild(e)}()}(n),function(t,e){t.widget("ui.progressbar",{version:"1.10.3",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=t("
").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(t){return t===e?this.options.value:(this.options.value=this._constrainedValue(t),void this._refreshValue())},_constrainedValue:function(t){return t===e&&(t=this.options.value),this.indeterminate=t===!1,"number"!=typeof t&&(t=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).toggleClass("ui-corner-right",e===this.options.max).width(i.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("
").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}})}(n),function(t,e){var i=5;t.widget("ui.slider",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,n=this.options,r=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),s="",a=[];for(i=n.values&&n.values.length||1,r.length>i&&(r.slice(i).remove(),r=r.slice(0,i)),e=r.length;i>e;e++)a.push(s);this.handles=r.add(t(a.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e)})},_createRange:function(){var e=this.options,i="";e.range?(e.range===!0&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=t("
").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+("min"===e.range||"max"===e.range?" ui-slider-range-"+e.range:""))):this.range=t([])},_setupEvents:function(){var t=this.handles.add(this.range).filter("a");this._off(t),this._on(t,this._handleEvents),this._hoverable(t),this._focusable(t)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var i,n,r,s,a,o,l,u,c=this,h=this.options;return h.disabled?!1:(this.elementSize={width:this.element.outerWidth(), -height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(i),r=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(n-c.values(e));(r>i||r===i&&(e===c._lastChangedValue||c.values(e)===h.min))&&(r=i,s=t(this),a=e)}),o=this._start(e,a),o===!1?!1:(this._mouseSliding=!0,this._handleIndex=a,s.addClass("ui-state-active").focus(),l=s.offset(),u=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:e.pageX-l.left-s.width()/2,top:e.pageY-l.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,n,r,s;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),n=i/e,n>1&&(n=1),0>n&&(n=0),"vertical"===this.orientation&&(n=1-n),r=this._valueMax()-this._valueMin(),s=this._valueMin()+n*r,this._trimAlignValue(s)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("start",t,i)},_slide:function(t,e,i){var n,r,s;this.options.values&&this.options.values.length?(n=this.values(e?0:1),2===this.options.values.length&&this.options.range===!0&&(0===e&&i>n||1===e&&n>i)&&(i=n),i!==this.values(e)&&(r=this.values(),r[e]=i,s=this._trigger("slide",t,{handle:this.handles[e],value:i,values:r}),n=this.values(e?0:1),s!==!1&&this.values(e,i,!0))):i!==this.value()&&(s=this._trigger("slide",t,{handle:this.handles[e],value:i}),s!==!1&&this.value(i))},_stop:function(t,e){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("stop",t,i)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._lastChangedValue=e,this._trigger("change",t,i)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var n,r,s;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(n=this.options.values,r=arguments[0],s=0;sn;n+=1)this._change(null,n);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,n;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this.options.values&&this.options.values.length){for(i=this.options.values.slice(),n=0;n=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,n=t-i;return 2*Math.abs(i)>=e&&(n+=i>0?e:-e),parseFloat(n.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,i,n,r,s,a=this.options.range,o=this.options,l=this,u=this._animateOff?!1:o.animate,c={};this.options.values&&this.options.values.length?this.handles.each(function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,c["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[u?"animate":"css"](c,o.animate),l.options.range===!0&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,1)[u?"animate":"css"]({left:i+"%"},o.animate),1===n&&l.range[u?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:o.animate})):(0===n&&l.range.stop(1,1)[u?"animate":"css"]({bottom:i+"%"},o.animate),1===n&&l.range[u?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:o.animate}))),e=i}):(n=this.value(),r=this._valueMin(),s=this._valueMax(),i=s!==r?(n-r)/(s-r)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[u?"animate":"css"](c,o.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:i+"%"},o.animate),"max"===a&&"horizontal"===this.orientation&&this.range[u?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:o.animate}),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:i+"%"},o.animate),"max"===a&&"vertical"===this.orientation&&this.range[u?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:o.animate}))},_handleEvents:{keydown:function(e){var n,r,s,a,o=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,t(e.target).addClass("ui-state-active"),n=this._start(e,o),n===!1))return}switch(a=this.options.step,r=s=this.options.values&&this.options.values.length?this.values(o):this.value(),e.keyCode){case t.ui.keyCode.HOME:s=this._valueMin();break;case t.ui.keyCode.END:s=this._valueMax();break;case t.ui.keyCode.PAGE_UP:s=this._trimAlignValue(r+(this._valueMax()-this._valueMin())/i);break;case t.ui.keyCode.PAGE_DOWN:s=this._trimAlignValue(r-(this._valueMax()-this._valueMin())/i);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(r===this._valueMax())return;s=this._trimAlignValue(r+a);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(r===this._valueMin())return;s=this._trimAlignValue(r-a)}this._slide(e,o,s)},click:function(t){t.preventDefault()},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),t(e.target).removeClass("ui-state-active"))}}})}(n),function(t){function e(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.widget("ui.spinner",{version:"1.10.3",defaultElement:"",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e={},i=this.element;return t.each(["min","max","step"],function(t,n){var r=i.attr(n);void 0!==r&&r.length&&(e[n]=r)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function i(){var t=this.element[0]===this.document[0].activeElement;t||(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(e)!==!1&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return t(e.currentTarget).hasClass("ui-state-active")?this._start(e)===!1?!1:void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var t=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=t.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*t.height())&&t.height()>0&&t.height(t.height()),this.options.disabled&&this.disable()},_keydown:function(e){var i=this.options,n=t.ui.keyCode;switch(e.keyCode){case n.UP:return this._repeat(null,1,e),!0;case n.DOWN:return this._repeat(null,-1,e),!0;case n.PAGE_UP:return this._repeat(null,i.page,e),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_uiSpinnerHtml:function(){return""},_buttonHtml:function(){return""},_start:function(t){return this.spinning||this._trigger("start",t)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&this._trigger("spin",e,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,n=this.options;return e=null!==n.min?n.min:0,i=t-e,i=Math.round(i/n.step)*n.step,t=e+i,t=parseFloat(t.toFixed(this._precision())),null!==n.max&&t>n.max?n.max:null!==n.min&&t1&&decodeURIComponent(t.href.replace(s,""))===decodeURIComponent(location.href.replace(s,""))}var r=0,s=/#.*$/;t.widget("ui.tabs",{version:"1.10.3",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var e=this,i=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",i.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),i.active=this._initialActive(),t.isArray(i.disabled)&&(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(i.active):t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var e=this.options.active,i=this.options.collapsible,n=location.hash.substring(1);return null===e&&(n&&this.tabs.each(function(i,r){return t(r).attr("aria-controls")===n?(e=i,!1):void 0}),null===e&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===e||-1===e)&&(e=this.tabs.length?0:!1)),e!==!1&&(e=this.tabs.index(this.tabs.eq(e)),-1===e&&(e=i?!1:0)),!i&&e===!1&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var i=t(this.document[0].activeElement).closest("li"),n=this.tabs.index(i),r=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:n++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:r=!1,n--;break;case t.ui.keyCode.END:n=this.anchors.length-1;break;case t.ui.keyCode.HOME:n=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n===this.options.active?!1:n);default:return}e.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,r),e.ctrlKey||(i.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.focus())},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,i){function n(){return e>r&&(e=0),0>e&&(e=r),e}for(var r=this.tabs.length-1;-1!==t.inArray(n(),this.options.disabled);)e=i?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).focus(),t},_setOption:function(t,e){return"active"===t?void this._activate(e):"disabled"===t?void this._setupDisabled(e):(this._super(t,e),"collapsible"===t&&(this.element.toggleClass("ui-tabs-collapsible",e),e||this.options.active!==!1||this._activate(0)),"event"===t&&this._setupEvents(e),void("heightStyle"===t&&this._setupHeightStyle(e)))},_tabId:function(t){return t.attr("aria-controls")||"ui-tabs-"+i()},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),function(t){return i.index(t)}),this._processTabs(),e.active!==!1&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=t(),this.anchors.each(function(i,r){var s,a,o,l=t(r).uniqueId().attr("id"),u=t(r).closest("li"),c=u.attr("aria-controls");n(r)?(s=r.hash,a=e.element.find(e._sanitizeSelector(s))):(o=e._tabId(u),s="#"+o,a=e.element.find(s),a.length||(a=e._createPanel(o),a.insertAfter(e.panels[i-1]||e.tablist)),a.attr("aria-live","polite")),a.length&&(e.panels=e.panels.add(a)),c&&u.data("ui-tabs-aria-controls",c),u.attr({"aria-controls":s.substring(1),"aria-labelledby":l}),a.attr("aria-labelledby",l)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(e){return t("
").attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(e){t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1);for(var i,n=0;i=this.tabs[n];n++)e===!0||-1!==t.inArray(n,e)?t(i).addClass("ui-state-disabled").attr("aria-disabled","true"):t(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=e},_setupEvents:function(e){var i={click:function(t){t.preventDefault()}};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,n=this.element.parent();"fill"===e?(i=n.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=t(this),n=e.css("position");"absolute"!==n&&"fixed"!==n&&(i-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each(function(){i=Math.max(i,t(this).height("").height())}).height(i))},_eventHandler:function(e){var i=this.options,n=this.active,r=t(e.currentTarget),s=r.closest("li"),a=s[0]===n[0],o=a&&i.collapsible,l=o?t():this._getPanelForTab(s),u=n.length?this._getPanelForTab(n):t(),c={oldTab:n,oldPanel:u,newTab:o?t():s,newPanel:l};e.preventDefault(),s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||a&&!i.collapsible||this._trigger("beforeActivate",e,c)===!1||(i.active=o?!1:this.tabs.index(s),this.active=a?t():s,this.xhr&&this.xhr.abort(),u.length||l.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),l.length&&this.load(this.tabs.index(s),e),this._toggle(e,c))},_toggle:function(e,i){function n(){s.running=!1,s._trigger("activate",e,i)}function r(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),a.length&&s.options.show?s._show(a,s.options.show,n):(a.show(),n())}var s=this,a=i.newPanel,o=i.oldPanel;this.running=!0,o.length&&this.options.hide?this._hide(o,this.options.hide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),r()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),o.hide(),r()),o.attr({"aria-expanded":"false","aria-hidden":"true"}),i.oldTab.attr("aria-selected","false"),a.length&&o.length?i.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),a.attr({"aria-expanded":"true","aria-hidden":"false"}),i.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(e){var i,n=this._findActive(e);n[0]!==this.active[0]&&(n.length||(n=this.active),i=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return e===!1?t():this.tabs.eq(e)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+t+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var e=t(this),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var n=this.options.disabled;n!==!1&&(i===e?n=!1:(i=this._getIndex(i),n=t.isArray(n)?t.map(n,function(t){return t!==i?t:null}):t.map(this.tabs,function(t,e){return e!==i?e:null})),this._setupDisabled(n))},disable:function(i){var n=this.options.disabled;if(n!==!0){if(i===e)n=!0;else{if(i=this._getIndex(i),-1!==t.inArray(i,n))return;n=t.isArray(n)?t.merge([i],n).sort():[i]}this._setupDisabled(n)}},load:function(e,i){e=this._getIndex(e);var r=this,s=this.tabs.eq(e),a=s.find(".ui-tabs-anchor"),o=this._getPanelForTab(s),l={tab:s,panel:o};n(a[0])||(this.xhr=t.ajax(this._ajaxSettings(a,i,l)),this.xhr&&"canceled"!==this.xhr.statusText&&(s.addClass("ui-tabs-loading"),o.attr("aria-busy","true"),this.xhr.success(function(t){setTimeout(function(){o.html(t),r._trigger("load",i,l)},1)}).complete(function(t,e){setTimeout(function(){"abort"===e&&r.panels.stop(!1,!0),s.removeClass("ui-tabs-loading"),o.removeAttr("aria-busy"),t===r.xhr&&delete r.xhr},1)})))},_ajaxSettings:function(e,i,n){var r=this;return{url:e.attr("href"),beforeSend:function(e,s){return r._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:s},n))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}})}(n),function(t){function e(e,i){var n=(e.attr("aria-describedby")||"").split(/\s+/);n.push(i),e.data("ui-tooltip-id",i).attr("aria-describedby",t.trim(n.join(" ")))}function i(e){var i=e.data("ui-tooltip-id"),n=(e.attr("aria-describedby")||"").split(/\s+/),r=t.inArray(i,n);-1!==r&&n.splice(r,1),e.removeData("ui-tooltip-id"),n=t.trim(n.join(" ")),n?e.attr("aria-describedby",n):e.removeAttr("aria-describedby")}var n=0;t.widget("ui.tooltip",{version:"1.10.3",options:{content:function(){var e=t(this).attr("title")||"";return t("").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(e,i){var n=this;return"disabled"===e?(this[i?"_disable":"_enable"](),void(this.options[e]=i)):(this._super(e,i),void("content"===e&&t.each(this.tooltips,function(t,e){n._updateContent(e)})))},_disable:function(){var e=this;t.each(this.tooltips,function(i,n){var r=t.Event("blur");r.target=r.currentTarget=n[0],e.close(r,!0)}),this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.is("[title]")&&e.data("ui-tooltip-title",e.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))})},open:function(e){var i=this,n=t(e?e.target:this.element).closest(this.options.items);n.length&&!n.data("ui-tooltip-id")&&(n.attr("title")&&n.data("ui-tooltip-title",n.attr("title")),n.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&n.parents().each(function(){var e,n=t(this);n.data("ui-tooltip-open")&&(e=t.Event("blur"),e.target=e.currentTarget=this,i.close(e,!0)),n.attr("title")&&(n.uniqueId(),i.parents[this.id]={element:this,title:n.attr("title")},n.attr("title",""))}),this._updateContent(n,e))},_updateContent:function(t,e){var i,n=this.options.content,r=this,s=e?e.type:null;return"string"==typeof n?this._open(e,t,n):(i=n.call(t[0],function(i){t.data("ui-tooltip-open")&&r._delay(function(){e&&(e.type=s),this._open(e,t,i)})}),void(i&&this._open(e,t,i)))},_open:function(i,n,r){function s(t){u.of=t,a.is(":hidden")||a.position(u)}var a,o,l,u=t.extend({},this.options.position);if(r){if(a=this._find(n),a.length)return void a.find(".ui-tooltip-content").html(r);n.is("[title]")&&(i&&"mouseover"===i.type?n.attr("title",""):n.removeAttr("title")),a=this._tooltip(n),e(n,a.attr("id")),a.find(".ui-tooltip-content").html(r),this.options.track&&i&&/^mouse/.test(i.type)?(this._on(this.document,{mousemove:s}),s(i)):a.position(t.extend({of:n},this.options.position)),a.hide(),this._show(a,this.options.show),this.options.show&&this.options.show.delay&&(l=this.delayedShow=setInterval(function(){a.is(":visible")&&(s(u.of),clearInterval(l))},t.fx.interval)),this._trigger("open",i,{tooltip:a}),o={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var i=t.Event(e);i.currentTarget=n[0],this.close(i,!0)}},remove:function(){this._removeTooltip(a)}},i&&"mouseover"!==i.type||(o.mouseleave="close"),i&&"focusin"!==i.type||(o.focusout="close"),this._on(!0,n,o)}},close:function(e){var n=this,r=t(e?e.currentTarget:this.element),s=this._find(r);this.closing||(clearInterval(this.delayedShow),r.data("ui-tooltip-title")&&r.attr("title",r.data("ui-tooltip-title")),i(r),s.stop(!0),this._hide(s,this.options.hide,function(){n._removeTooltip(t(this))}),r.removeData("ui-tooltip-open"),this._off(r,"mouseleave focusout keyup"),r[0]!==this.element[0]&&this._off(r,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,function(e,i){t(i.element).attr("title",i.title),delete n.parents[e]}),this.closing=!0,this._trigger("close",e,{tooltip:s}),this.closing=!1)},_tooltip:function(e){var i="ui-tooltip-"+n++,r=t("
").attr({id:i,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return t("
").addClass("ui-tooltip-content").appendTo(r),r.appendTo(this.document[0].body),this.tooltips[i]=e,r},_find:function(e){var i=e.data("ui-tooltip-id");return i?t("#"+i):t()},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var e=this;t.each(this.tooltips,function(i,n){var r=t.Event("blur");r.target=r.currentTarget=n[0],e.close(r,!0),t("#"+i).remove(),n.data("ui-tooltip-title")&&(n.attr("title",n.data("ui-tooltip-title")),n.removeData("ui-tooltip-title"))})}})}(n)},{jquery:11}],11:[function(t,e,i){!function(t,i){"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?i(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(t)}("undefined"!=typeof window?window:this,function(t,e){function i(t){var e=!!t&&"length"in t&&t.length,i=st.type(t);return"function"===i||st.isWindow(t)?!1:"array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t}function n(t,e,i){if(st.isFunction(e))return st.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return st.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(gt.test(e))return st.filter(e,t,i);e=st.filter(e,t)}return st.grep(t,function(t){return K.call(e,t)>-1!==i})}function r(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function s(t){var e={};return st.each(t.match(xt)||[],function(t,i){e[i]=!0}),e}function a(){Z.removeEventListener("DOMContentLoaded",a),t.removeEventListener("load",a),st.ready()}function o(){this.expando=st.expando+o.uid++}function l(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(It,"-$&").toLowerCase(),i=t.getAttribute(n),"string"==typeof i){try{i="true"===i?!0:"false"===i?!1:"null"===i?null:+i+""===i?+i:Tt.test(i)?st.parseJSON(i):i}catch(r){}Ct.set(t,e,i)}else i=void 0;return i}function u(t,e,i,n){var r,s=1,a=20,o=n?function(){return n.cur()}:function(){return st.css(t,e,"")},l=o(),u=i&&i[3]||(st.cssNumber[e]?"":"px"),c=(st.cssNumber[e]||"px"!==u&&+l)&&kt.exec(st.css(t,e)); - -if(c&&c[3]!==u){u=u||c[3],i=i||[],c=+l||1;do s=s||".5",c/=s,st.style(t,e,c+u);while(s!==(s=o()/l)&&1!==s&&--a)}return i&&(c=+c||+l||0,r=i[1]?c+(i[1]+1)*i[2]:+i[2],n&&(n.unit=u,n.start=c,n.end=r)),r}function c(t,e){var i="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&st.nodeName(t,e)?st.merge([t],i):i}function h(t,e){for(var i=0,n=t.length;n>i;i++)Dt.set(t[i],"globalEval",!e||Dt.get(e[i],"globalEval"))}function d(t,e,i,n,r){for(var s,a,o,l,u,d,p=e.createDocumentFragment(),f=[],g=0,m=t.length;m>g;g++)if(s=t[g],s||0===s)if("object"===st.type(s))st.merge(f,s.nodeType?[s]:s);else if(Ot.test(s)){for(a=a||p.appendChild(e.createElement("div")),o=(Et.exec(s)||["",""])[1].toLowerCase(),l=Pt[o]||Pt._default,a.innerHTML=l[1]+st.htmlPrefilter(s)+l[2],d=l[0];d--;)a=a.lastChild;st.merge(f,a.childNodes),a=p.firstChild,a.textContent=""}else f.push(e.createTextNode(s));for(p.textContent="",g=0;s=f[g++];)if(n&&st.inArray(s,n)>-1)r&&r.push(s);else if(u=st.contains(s.ownerDocument,s),a=c(p.appendChild(s),"script"),u&&h(a),i)for(d=0;s=a[d++];)zt.test(s.type||"")&&i.push(s);return p}function p(){return!0}function f(){return!1}function g(){try{return Z.activeElement}catch(t){}}function m(t,e,i,n,r,s){var a,o;if("object"==typeof e){"string"!=typeof i&&(n=n||i,i=void 0);for(o in e)m(t,o,i,n,e[o],s);return t}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),r===!1)r=f;else if(!r)return t;return 1===s&&(a=r,r=function(t){return st().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=st.guid++)),t.each(function(){st.event.add(this,e,r,n,i)})}function v(t,e){return st.nodeName(t,"table")&&st.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function y(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function _(t){var e=Gt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function b(t,e){var i,n,r,s,a,o,l,u;if(1===e.nodeType){if(Dt.hasData(t)&&(s=Dt.access(t),a=Dt.set(e,s),u=s.events)){delete a.handle,a.events={};for(r in u)for(i=0,n=u[r].length;n>i;i++)st.event.add(e,r,u[r][i])}Ct.hasData(t)&&(o=Ct.access(t),l=st.extend({},o),Ct.set(e,l))}}function x(t,e){var i=e.nodeName.toLowerCase();"input"===i&&At.test(t.type)?e.checked=t.checked:("input"===i||"textarea"===i)&&(e.defaultValue=t.defaultValue)}function M(t,e,i,n){e=J.apply([],e);var r,s,a,o,l,u,h=0,p=t.length,f=p-1,g=e[0],m=st.isFunction(g);if(m||p>1&&"string"==typeof g&&!nt.checkClone&&Yt.test(g))return t.each(function(r){var s=t.eq(r);m&&(e[0]=g.call(this,r,s.html())),M(s,e,i,n)});if(p&&(r=d(e,t[0].ownerDocument,!1,t,n),s=r.firstChild,1===r.childNodes.length&&(r=s),s||n)){for(a=st.map(c(r,"script"),y),o=a.length;p>h;h++)l=r,h!==f&&(l=st.clone(l,!0,!0),o&&st.merge(a,c(l,"script"))),i.call(t[h],l,h);if(o)for(u=a[a.length-1].ownerDocument,st.map(a,_),h=0;o>h;h++)l=a[h],zt.test(l.type||"")&&!Dt.access(l,"globalEval")&&st.contains(u,l)&&(l.src?st._evalUrl&&st._evalUrl(l.src):st.globalEval(l.textContent.replace(Qt,"")))}return t}function w(t,e,i){for(var n,r=e?st.filter(e,t):t,s=0;null!=(n=r[s]);s++)i||1!==n.nodeType||st.cleanData(c(n)),n.parentNode&&(i&&st.contains(n.ownerDocument,n)&&h(c(n,"script")),n.parentNode.removeChild(n));return t}function L(t,e){var i=st(e.createElement(t)).appendTo(e.body),n=st.css(i[0],"display");return i.detach(),n}function D(t){var e=Z,i=qt[t];return i||(i=L(t,e),"none"!==i&&i||(Bt=(Bt||st("