Skip to content

Instantly share code, notes, and snippets.

@kaezarrex
Created April 13, 2014 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaezarrex/10590711 to your computer and use it in GitHub Desktop.
Save kaezarrex/10590711 to your computer and use it in GitHub Desktop.
brewer (bokeh example)
Display the source blob
Display the rendered blob
Raw
{
"metadata": {
"name": "",
"signature": "sha256:4caaa5cf753ec4f23d92cc3face61ce412d8e67f3bd79ec6b3d94461ee34158c"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "code",
"collapsed": false,
"input": [
"from collections import OrderedDict\n",
"import numpy as np\n",
"import pandas as pd\n",
"from bokeh.plotting import *"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 1
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"N = 20\n",
"categories = ['y' + str(x) for x in range(10)]\n",
"data = {}\n",
"data['x'] = np.arange(N)\n",
"for cat in categories:\n",
" data[cat] = np.random.randint(10, 100, size=N)"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 2
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"df = pd.DataFrame(data)\n",
"df = df.set_index(['x'])"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 3
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"def stacked(df, categories):\n",
" areas = OrderedDict()\n",
" last = np.zeros(len(df[categories[0]]))\n",
" for cat in categories:\n",
" next = last + df[cat]\n",
" areas[cat] = np.hstack((last[::-1], next))\n",
" last = next\n",
" return areas"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 4
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"areas = stacked(df, categories)\n",
"colors = brewer[\"Spectral\"][len(areas)]\n",
"x2 = np.hstack((data['x'][::-1], data['x']))"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 5
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"output_notebook()"
],
"language": "python",
"metadata": {},
"outputs": [
{
"html": [
"<!DOCTYPE html>\n",
"<html lang=\"en\">\n",
" <head>\n",
" <meta charset=\"utf-8\">\n",
" <title>Bokeh Plot</title>\n",
" <style>\n",
" \n",
" /* BEGIN /Users/david/anaconda/lib/python2.7/site-packages/bokeh/server/static/css/bokeh.min.css */\n",
" /*!\n",
" * Bootstrap v2.0.4\n",
" *\n",
" * Copyright 2012 Twitter, Inc\n",
" * Licensed under the Apache License v2.0\n",
" * http://www.apache.org/licenses/LICENSE-2.0\n",
" *\n",
" * Designed and built with all the love in the world @twitter by @mdo and @fat.\n",
" */.bokeh article,.bokeh aside,.bokeh details,.bokeh figcaption,.bokeh figure,.bokeh footer,.bokeh header,.bokeh hgroup,.bokeh nav,.bokeh section{display:block}.bokeh audio,.bokeh canvas,.bokeh video{display:inline-block}.bokeh audio:not([controls]){display:none}.bokeh html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}.bokeh a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.bokeh a:hover,.bokeh a:active{outline:0}.bokeh sub,.bokeh sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}.bokeh sup{top:-.5em}.bokeh sub{bottom:-.25em}.bokeh img{max-width:100%;vertical-align:middle;border:0;-ms-interpolation-mode:bicubic}.bokeh #map_canvas img{max-width:none}.bokeh button,.bokeh input,.bokeh select,.bokeh textarea{margin:0;font-size:100%;vertical-align:middle}.bokeh button,.bokeh input{line-height:normal}.bokeh button::-moz-focus-inner,.bokeh input::-moz-focus-inner{padding:0;border:0}.bokeh button,.bokeh input[type=button],.bokeh input[type=reset],.bokeh input[type=submit]{cursor:pointer;-webkit-appearance:button}.bokeh input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}.bokeh input[type=search]::-webkit-search-decoration,.bokeh input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}.bokeh textarea{overflow:auto;vertical-align:top}.bokeh .clearfix{}.bokeh .clearfix:before,.bokeh .clearfix:after{display:table;content:\"\"}.bokeh .clearfix:after{clear:both}.bokeh .hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.bokeh .input-block-level{display:block;width:100%;min-height:28px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.bokeh body{margin:0;font-family:\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-size:13px;line-height:18px;color:#333;background-color:#fff}.bokeh a{color:#08c;text-decoration:none}.bokeh a:hover{color:#005580;text-decoration:underline}.bokeh .row{margin-left:-20px}.bokeh .row:before,.bokeh .row:after{display:table;content:\"\"}.bokeh .row:after{clear:both}.bokeh [class*=span]{float:left;margin-left:20px}.bokeh .container,.bokeh .navbar-fixed-top .container,.bokeh .navbar-fixed-bottom .container{width:940px}.bokeh .span12{width:940px}.bokeh .span11{width:860px}.bokeh .span10{width:780px}.bokeh .span9{width:700px}.bokeh .span8{width:620px}.bokeh .span7{width:540px}.bokeh .span6{width:460px}.bokeh .span5{width:380px}.bokeh .span4{width:300px}.bokeh .span3{width:220px}.bokeh .span2{width:140px}.bokeh .span1{width:60px}.bokeh .offset12{margin-left:980px}.bokeh .offset11{margin-left:900px}.bokeh .offset10{margin-left:820px}.bokeh .offset9{margin-left:740px}.bokeh .offset8{margin-left:660px}.bokeh .offset7{margin-left:580px}.bokeh .offset6{margin-left:500px}.bokeh .offset5{margin-left:420px}.bokeh .offset4{margin-left:340px}.bokeh .offset3{margin-left:260px}.bokeh .offset2{margin-left:180px}.bokeh .offset1{margin-left:100px}.bokeh .row-fluid{width:100%}.bokeh .row-fluid:before,.bokeh .row-fluid:after{display:table;content:\"\"}.bokeh .row-fluid:after{clear:both}.bokeh .row-fluid [class*=span]{display:block;float:left;width:100%;min-height:28px;margin-left:2.127659574%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.bokeh .row-fluid [class*=span]:first-child{margin-left:0}.bokeh .row-fluid .span12{width:99.99999998999999%}.bokeh .row-fluid .span11{width:91.489361693%}.bokeh .row-fluid .span10{width:82.97872339599999%}.bokeh .row-fluid .span9{width:74.468085099%}.bokeh .row-fluid .span8{width:65.95744680199999%}.bokeh .row-fluid .span7{width:57.446808505%}.bokeh .row-fluid .span6{width:48.93617020799999%}.bokeh .row-fluid .span5{width:40.425531911%}.bokeh .row-fluid .span4{width:31.914893614%}.bokeh .row-fluid .span3{width:23.404255317%}.bokeh .row-fluid .span2{width:14.89361702%}.bokeh .row-fluid .span1{width:6.382978723%}.bokeh .container{margin-right:auto;margin-left:auto}.bokeh .container:before,.bokeh .container:after{display:table;content:\"\"}.bokeh .container:after{clear:both}.bokeh .container-fluid{padding-right:20px;padding-left:20px}.bokeh .container-fluid:before,.bokeh .container-fluid:after{display:table;content:\"\"}.bokeh .container-fluid:after{clear:both}.bokeh p{margin:0 0 9px}.bokeh p small{font-size:11px;color:#999}.bokeh .lead{margin-bottom:18px;font-size:20px;font-weight:200;line-height:27px}.bokeh h1,.bokeh h2,.bokeh h3,.bokeh h4,.bokeh h5,.bokeh h6{margin:0;font-family:inherit;font-weight:700;color:inherit;text-rendering:optimizelegibility}.bokeh h1 small,.bokeh h2 small,.bokeh h3 small,.bokeh h4 small,.bokeh h5 small,.bokeh h6 small{font-weight:400;color:#999}.bokeh h1{font-size:30px;line-height:36px}.bokeh h1 small{font-size:18px}.bokeh h2{font-size:24px;line-height:36px}.bokeh h2 small{font-size:18px}.bokeh h3{font-size:18px;line-height:27px}.bokeh h3 small{font-size:14px}.bokeh h4,.bokeh h5,.bokeh h6{line-height:18px}.bokeh h4{font-size:14px}.bokeh h4 small{font-size:12px}.bokeh h5{font-size:12px}.bokeh h6{font-size:11px;color:#999;text-transform:uppercase}.bokeh .page-header{padding-bottom:17px;margin:18px 0;border-bottom:1px solid #eee}.bokeh .page-header h1{line-height:1}.bokeh ul,.bokeh ol{padding:0;margin:0 0 9px 25px}.bokeh ul ul,.bokeh ul ol,.bokeh ol ol,.bokeh ol ul{margin-bottom:0}.bokeh ul{list-style:disc}.bokeh ol{list-style:decimal}.bokeh li{line-height:18px}.bokeh ul.unstyled,.bokeh ol.unstyled{margin-left:0;list-style:none}.bokeh dl{margin-bottom:18px}.bokeh dt,.bokeh dd{line-height:18px}.bokeh dt{font-weight:700;line-height:17px}.bokeh dd{margin-left:9px}.bokeh .dl-horizontal dt{float:left;width:120px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.bokeh .dl-horizontal dd{margin-left:130px}.bokeh hr{margin:18px 0;border:0;border-top:1px solid #eee;border-bottom:1px solid #fff}.bokeh strong{font-weight:700}.bokeh em{font-style:italic}.bokeh .muted{color:#999}.bokeh abbr[title]{cursor:help;border-bottom:1px dotted #999}.bokeh abbr.initialism{font-size:90%;text-transform:uppercase}.bokeh blockquote{padding:0 0 0 15px;margin:0 0 18px;border-left:5px solid #eee}.bokeh blockquote p{margin-bottom:0;font-size:16px;font-weight:300;line-height:22.5px}.bokeh blockquote small{display:block;line-height:18px;color:#999}.bokeh blockquote small:before{content:'\\2014 \\00A0'}.bokeh blockquote.pull-right{float:right;padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0}.bokeh blockquote.pull-right p,.bokeh blockquote.pull-right small{text-align:right}.bokeh q:before,.bokeh q:after,.bokeh blockquote:before,.bokeh blockquote:after{content:\"\"}.bokeh address{display:block;margin-bottom:18px;font-style:normal;line-height:18px}.bokeh small{font-size:100%}.bokeh cite{font-style:normal}.bokeh code,.bokeh pre{padding:0 3px 2px;font-family:Menlo,Monaco,Consolas,\"Courier New\",monospace;font-size:12px;color:#333;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.bokeh code{padding:2px 4px;color:#d14;background-color:#f7f7f9;border:1px solid #e1e1e8}.bokeh pre{display:block;padding:8.5px;margin:0 0 9px;font-size:12.025px;line-height:18px;word-break:break-all;word-wrap:break-word;white-space:pre;white-space:pre-wrap;background-color:#f5f5f5;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.bokeh pre.prettyprint{margin-bottom:18px}.bokeh pre code{padding:0;color:inherit;background-color:transparent;border:0}.bokeh .pre-scrollable{max-height:340px;overflow-y:scroll}.bokeh form{margin:0 0 18px}.bokeh fieldset{padding:0;margin:0;border:0}.bokeh legend{display:block;width:100%;padding:0;margin-bottom:27px;font-size:19.5px;line-height:36px;color:#333;border:0;border-bottom:1px solid #e5e5e5}.bokeh legend small{font-size:13.5px;color:#999}.bokeh label,.bokeh input,.bokeh button,.bokeh select,.bokeh textarea{font-size:13px;font-weight:400;line-height:18px}.bokeh input,.bokeh button,.bokeh select,.bokeh textarea{font-family:\"Helvetica Neue\",Helvetica,Arial,sans-serif}.bokeh label{display:block;margin-bottom:5px}.bokeh select,.bokeh textarea,.bokeh input[type=text],.bokeh input[type=password],.bokeh input[type=datetime],.bokeh input[type=datetime-local],.bokeh input[type=date],.bokeh input[type=month],.bokeh input[type=time],.bokeh input[type=week],.bokeh input[type=number],.bokeh input[type=email],.bokeh input[type=url],.bokeh input[type=search],.bokeh input[type=tel],.bokeh input[type=color],.bokeh .uneditable-input{display:inline-block;height:18px;padding:4px;margin-bottom:9px;font-size:13px;line-height:18px;color:#555}.bokeh input,.bokeh textarea{width:210px}.bokeh textarea{height:auto}.bokeh textarea,.bokeh input[type=text],.bokeh input[type=password],.bokeh input[type=datetime],.bokeh input[type=datetime-local],.bokeh input[type=date],.bokeh input[type=month],.bokeh input[type=time],.bokeh input[type=week],.bokeh input[type=number],.bokeh input[type=email],.bokeh input[type=url],.bokeh input[type=search],.bokeh input[type=tel],.bokeh input[type=color],.bokeh .uneditable-input{background-color:#fff;border:1px solid #ccc;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border linear .2s,box-shadow linear .2s;-moz-transition:border linear .2s,box-shadow linear .2s;-ms-transition:border linear .2s,box-shadow linear .2s;-o-transition:border linear .2s,box-shadow linear .2s;transition:border linear .2s,box-shadow linear .2s}.bokeh textarea:focus,.bokeh input[type=text]:focus,.bokeh input[type=password]:focus,.bokeh input[type=datetime]:focus,.bokeh input[type=datetime-local]:focus,.bokeh input[type=date]:focus,.bokeh input[type=month]:focus,.bokeh input[type=time]:focus,.bokeh input[type=week]:focus,.bokeh input[type=number]:focus,.bokeh input[type=email]:focus,.bokeh input[type=url]:focus,.bokeh input[type=search]:focus,.bokeh input[type=tel]:focus,.bokeh input[type=color]:focus,.bokeh .uneditable-input:focus{border-color:rgba(82,168,236,.8);outline:0;outline:thin dotted \\9;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(82,168,236,.6);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(82,168,236,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(82,168,236,.6)}.bokeh input[type=radio],.bokeh input[type=checkbox]{margin:3px 0;line-height:normal;cursor:pointer}.bokeh input[type=submit],.bokeh input[type=reset],.bokeh input[type=button],.bokeh input[type=radio],.bokeh input[type=checkbox]{width:auto}.bokeh .uneditable-textarea{width:auto;height:auto}.bokeh select,.bokeh input[type=file]{height:28px;line-height:28px}.bokeh select{width:220px;border:1px solid #bbb}.bokeh select[multiple],.bokeh select[size]{height:auto}.bokeh select:focus,.bokeh input[type=file]:focus,.bokeh input[type=radio]:focus,.bokeh input[type=checkbox]:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.bokeh .radio,.bokeh .checkbox{min-height:18px;padding-left:18px}.bokeh .radio input[type=radio],.bokeh .checkbox input[type=checkbox]{float:left;margin-left:-18px}.bokeh .controls>.radio:first-child,.bokeh .controls>.checkbox:first-child{padding-top:5px}.bokeh .radio.inline,.bokeh .checkbox.inline{display:inline-block;padding-top:5px;margin-bottom:0;vertical-align:middle}.bokeh .radio.inline+.radio.inline,.bokeh .checkbox.inline+.checkbox.inline{margin-left:10px}.bokeh .input-mini{width:60px}.bokeh .input-small{width:90px}.bokeh .input-medium{width:150px}.bokeh .input-large{width:210px}.bokeh .input-xlarge{width:270px}.bokeh .input-xxlarge{width:530px}.bokeh input[class*=span],.bokeh select[class*=span],.bokeh textarea[class*=span],.bokeh .uneditable-input[class*=span],.bokeh .row-fluid input[class*=span],.bokeh .row-fluid select[class*=span],.bokeh .row-fluid textarea[class*=span],.bokeh .row-fluid .uneditable-input[class*=span]{float:none;margin-left:0}.bokeh .input-append input[class*=span],.bokeh .input-append .uneditable-input[class*=span],.bokeh .input-prepend input[class*=span],.bokeh .input-prepend .uneditable-input[class*=span],.bokeh .row-fluid .input-prepend [class*=span],.bokeh .row-fluid .input-append [class*=span]{display:inline-block}.bokeh input,.bokeh textarea,.bokeh .uneditable-input{margin-left:0}.bokeh input.span12,textarea.span12,.uneditable-input.span12{width:930px}.bokeh input.span11,textarea.span11,.uneditable-input.span11{width:850px}.bokeh input.span10,textarea.span10,.uneditable-input.span10{width:770px}.bokeh input.span9,textarea.span9,.uneditable-input.span9{width:690px}.bokeh input.span8,textarea.span8,.uneditable-input.span8{width:610px}.bokeh input.span7,textarea.span7,.uneditable-input.span7{width:530px}.bokeh input.span6,textarea.span6,.uneditable-input.span6{width:450px}.bokeh input.span5,textarea.span5,.uneditable-input.span5{width:370px}.bokeh input.span4,textarea.span4,.uneditable-input.span4{width:290px}.bokeh input.span3,textarea.span3,.uneditable-input.span3{width:210px}.bokeh input.span2,textarea.span2,.uneditable-input.span2{width:130px}.bokeh input.span1,textarea.span1,.uneditable-input.span1{width:50px}.bokeh input[disabled],.bokeh select[disabled],.bokeh textarea[disabled],.bokeh input[readonly],.bokeh select[readonly],.bokeh textarea[readonly]{cursor:not-allowed;background-color:#eee;border-color:#ddd}.bokeh input[type=radio][disabled],.bokeh input[type=checkbox][disabled],.bokeh input[type=radio][readonly],.bokeh input[type=checkbox][readonly]{background-color:transparent}.bokeh .control-group.warning>label,.bokeh .control-group.warning .help-block,.bokeh .control-group.warning .help-inline{color:#c09853}.bokeh .control-group.warning .checkbox,.bokeh .control-group.warning .radio,.bokeh .control-group.warning input,.bokeh .control-group.warning select,.bokeh .control-group.warning textarea{color:#c09853;border-color:#c09853}.bokeh .control-group.warning .checkbox:focus,.bokeh .control-group.warning .radio:focus,.bokeh .control-group.warning input:focus,.bokeh .control-group.warning select:focus,.bokeh .control-group.warning textarea:focus{border-color:#a47e3c;-webkit-box-shadow:0 0 6px #dbc59e;-moz-box-shadow:0 0 6px #dbc59e;box-shadow:0 0 6px #dbc59e}.bokeh .control-group.warning .input-prepend .add-on,.bokeh .control-group.warning .input-append .add-on{color:#c09853;background-color:#fcf8e3;border-color:#c09853}.bokeh .control-group.error>label,.bokeh .control-group.error .help-block,.bokeh .control-group.error .help-inline{color:#b94a48}.bokeh .control-group.error .checkbox,.bokeh .control-group.error .radio,.bokeh .control-group.error input,.bokeh .control-group.error select,.bokeh .control-group.error textarea{color:#b94a48;border-color:#b94a48}.bokeh .control-group.error .checkbox:focus,.bokeh .control-group.error .radio:focus,.bokeh .control-group.error input:focus,.bokeh .control-group.error select:focus,.bokeh .control-group.error textarea:focus{border-color:#953b39;-webkit-box-shadow:0 0 6px #d59392;-moz-box-shadow:0 0 6px #d59392;box-shadow:0 0 6px #d59392}.bokeh .control-group.error .input-prepend .add-on,.bokeh .control-group.error .input-append .add-on{color:#b94a48;background-color:#f2dede;border-color:#b94a48}.bokeh .control-group.success>label,.bokeh .control-group.success .help-block,.bokeh .control-group.success .help-inline{color:#468847}.bokeh .control-group.success .checkbox,.bokeh .control-group.success .radio,.bokeh .control-group.success input,.bokeh .control-group.success select,.bokeh .control-group.success textarea{color:#468847;border-color:#468847}.bokeh .control-group.success .checkbox:focus,.bokeh .control-group.success .radio:focus,.bokeh .control-group.success input:focus,.bokeh .control-group.success select:focus,.bokeh .control-group.success textarea:focus{border-color:#356635;-webkit-box-shadow:0 0 6px #7aba7b;-moz-box-shadow:0 0 6px #7aba7b;box-shadow:0 0 6px #7aba7b}.bokeh .control-group.success .input-prepend .add-on,.bokeh .control-group.success .input-append .add-on{color:#468847;background-color:#dff0d8;border-color:#468847}.bokeh input:focus:required:invalid,.bokeh textarea:focus:required:invalid,.bokeh select:focus:required:invalid{color:#b94a48;border-color:#ee5f5b}.bokeh input:focus:required:invalid:focus,.bokeh textarea:focus:required:invalid:focus,.bokeh select:focus:required:invalid:focus{border-color:#e9322d;-webkit-box-shadow:0 0 6px #f8b9b7;-moz-box-shadow:0 0 6px #f8b9b7;box-shadow:0 0 6px #f8b9b7}.bokeh .form-actions{padding:17px 20px 18px;margin-top:18px;margin-bottom:18px;background-color:#f5f5f5;border-top:1px solid #e5e5e5}.bokeh .form-actions:before,.bokeh .form-actions:after{display:table;content:\"\"}.bokeh .form-actions:after{clear:both}.bokeh .uneditable-input{overflow:hidden;white-space:nowrap;cursor:not-allowed;background-color:#fff;border-color:#eee;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.025);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.025);box-shadow:inset 0 1px 2px rgba(0,0,0,.025)}.bokeh:-moz-placeholder{color:#999}.bokeh:-ms-input-placeholder{color:#999}.bokeh::-webkit-input-placeholder{color:#999}.bokeh .help-block,.bokeh .help-inline{color:#555}.bokeh .help-block{display:block;margin-bottom:9px}.bokeh .help-inline{display:inline-block;padding-left:5px;vertical-align:middle}.bokeh .input-prepend,.bokeh .input-append{margin-bottom:5px}.bokeh .input-prepend input,.bokeh .input-append input,.bokeh .input-prepend select,.bokeh .input-append select,.bokeh .input-prepend .uneditable-input,.bokeh .input-append .uneditable-input{position:relative;margin-bottom:0;vertical-align:middle;-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.bokeh .input-prepend input:focus,.bokeh .input-append input:focus,.bokeh .input-prepend select:focus,.bokeh .input-append select:focus,.bokeh .input-prepend .uneditable-input:focus,.bokeh .input-append .uneditable-input:focus{z-index:2}.bokeh .input-prepend .uneditable-input,.bokeh .input-append .uneditable-input{border-left-color:#ccc}.bokeh .input-prepend .add-on,.bokeh .input-append .add-on{display:inline-block;width:auto;height:18px;min-width:16px;padding:4px 5px;font-weight:400;line-height:18px;text-align:center;text-shadow:0 1px 0 #fff;vertical-align:middle;background-color:#eee;border:1px solid #ccc}.bokeh .input-prepend .add-on,.bokeh .input-append .add-on,.bokeh .input-prepend .btn,.bokeh .input-append .btn{margin-left:-1px;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.bokeh .input-prepend .active,.bokeh .input-append .active{background-color:#a9dba9;border-color:#46a546}.bokeh .input-prepend .add-on,.bokeh .input-prepend .btn{margin-right:-1px}.bokeh .input-prepend .add-on:first-child,.bokeh .input-prepend .btn:first-child{-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.bokeh .input-append input,.bokeh .input-append select,.bokeh .input-append .uneditable-input{-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.bokeh .input-append .uneditable-input{border-right-color:#ccc;border-left-color:#eee}.bokeh .input-append .add-on:last-child,.bokeh .input-append .btn:last-child{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.bokeh .input-prepend.input-append input,.bokeh .input-prepend.input-append select,.bokeh .input-prepend.input-append .uneditable-input{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.bokeh .input-prepend.input-append .add-on:first-child,.bokeh .input-prepend.input-append .btn:first-child{margin-right:-1px;-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.bokeh .input-prepend.input-append .add-on:last-child,.bokeh .input-prepend.input-append .btn:last-child{margin-left:-1px;-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.bokeh .search-query{padding-right:14px;padding-right:4px \\9;padding-left:14px;padding-left:4px \\9;margin-bottom:0;-webkit-border-radius:14px;-moz-border-radius:14px;border-radius:14px}.bokeh .form-search input,.bokeh .form-inline input,.bokeh .form-horizontal input,.bokeh .form-search textarea,.bokeh .form-inline textarea,.bokeh .form-horizontal textarea,.bokeh .form-search select,.bokeh .form-inline select,.bokeh .form-horizontal select,.bokeh .form-search .help-inline,.bokeh .form-inline .help-inline,.bokeh .form-horizontal .help-inline,.bokeh .form-search .uneditable-input,.bokeh .form-inline .uneditable-input,.bokeh .form-horizontal .uneditable-input,.bokeh .form-search .input-prepend,.bokeh .form-inline .input-prepend,.bokeh .form-horizontal .input-prepend,.bokeh .form-search .input-append,.bokeh .form-inline .input-append,.bokeh .form-horizontal .input-append{display:inline-block;margin-bottom:0}.bokeh .form-search .hide,.bokeh .form-inline .hide,.bokeh .form-horizontal .hide{display:none}.bokeh .form-search label,.bokeh .form-inline label{display:inline-block}.bokeh .form-search .input-append,.bokeh .form-inline .input-append,.bokeh .form-search .input-prepend,.bokeh .form-inline .input-prepend{margin-bottom:0}.bokeh .form-search .radio,.bokeh .form-search .checkbox,.bokeh .form-inline .radio,.bokeh .form-inline .checkbox{padding-left:0;margin-bottom:0;vertical-align:middle}.bokeh .form-search .radio input[type=radio],.bokeh .form-search .checkbox input[type=checkbox],.bokeh .form-inline .radio input[type=radio],.bokeh .form-inline .checkbox input[type=checkbox]{float:left;margin-right:3px;margin-left:0}.bokeh .control-group{margin-bottom:9px}.bokeh legend+.control-group{margin-top:18px;-webkit-margin-top-collapse:separate}.bokeh .form-horizontal .control-group{margin-bottom:18px}.bokeh .form-horizontal .control-group:before,.bokeh .form-horizontal .control-group:after{display:table;content:\"\"}.bokeh .form-horizontal .control-group:after{clear:both}.bokeh .form-horizontal .control-label{float:left;width:140px;padding-top:5px;text-align:right}.bokeh .form-horizontal .controls{margin-left:160px}.bokeh .form-horizontal .controls:first-child{}.bokeh .form-horizontal .help-block{margin-top:9px;margin-bottom:0}.bokeh .form-horizontal .form-actions{padding-left:160px}.bokeh table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0}.bokeh .table{width:100%;margin-bottom:18px}.bokeh .table th,.bokeh .table td{padding:8px;line-height:18px;text-align:left;vertical-align:top;border-top:1px solid #ddd}.bokeh .table th{font-weight:700}.bokeh .table thead th{vertical-align:bottom}.bokeh .table caption+thead tr:first-child th,.bokeh .table caption+thead tr:first-child td,.bokeh .table colgroup+thead tr:first-child th,.bokeh .table colgroup+thead tr:first-child td,.bokeh .table thead:first-child tr:first-child th,.bokeh .table thead:first-child tr:first-child td{border-top:0}.bokeh .table tbody+tbody{border-top:2px solid #ddd}.bokeh .table-condensed th,.bokeh .table-condensed td{padding:4px 5px}.bokeh .table-bordered{border:1px solid #ddd;border-collapse:separate;border-left:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.bokeh .table-bordered th,.bokeh .table-bordered td{border-left:1px solid #ddd}.bokeh .table-bordered caption+thead tr:first-child th,.bokeh .table-bordered caption+tbody tr:first-child th,.bokeh .table-bordered caption+tbody tr:first-child td,.bokeh .table-bordered colgroup+thead tr:first-child th,.bokeh .table-bordered colgroup+tbody tr:first-child th,.bokeh .table-bordered colgroup+tbody tr:first-child td,.bokeh .table-bordered thead:first-child tr:first-child th,.bokeh .table-bordered tbody:first-child tr:first-child th,.bokeh .table-bordered tbody:first-child tr:first-child td{border-top:0}.bokeh .table-bordered thead:first-child tr:first-child th:first-child,.bokeh .table-bordered tbody:first-child tr:first-child td:first-child{-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topleft:4px}.bokeh .table-bordered thead:first-child tr:first-child th:last-child,.bokeh .table-bordered tbody:first-child tr:first-child td:last-child{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-topright:4px}.bokeh .table-bordered thead:last-child tr:last-child th:first-child,.bokeh .table-bordered tbody:last-child tr:last-child td:first-child{-webkit-border-radius:0 0 0 4px;-moz-border-radius:0 0 0 4px;border-radius:0 0 0 4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px}.bokeh .table-bordered thead:last-child tr:last-child th:last-child,.bokeh .table-bordered tbody:last-child tr:last-child td:last-child{-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px}.bokeh .table-striped tbody tr:nth-child(odd) td,.bokeh .table-striped tbody tr:nth-child(odd) th{background-color:#f9f9f9}.bokeh .table tbody tr:hover td,.bokeh .table tbody tr:hover th{background-color:#f5f5f5}.bokeh table .span1{float:none;width:44px;margin-left:0}.bokeh table .span2{float:none;width:124px;margin-left:0}.bokeh table .span3{float:none;width:204px;margin-left:0}.bokeh table .span4{float:none;width:284px;margin-left:0}.bokeh table .span5{float:none;width:364px;margin-left:0}.bokeh table .span6{float:none;width:444px;margin-left:0}.bokeh table .span7{float:none;width:524px;margin-left:0}.bokeh table .span8{float:none;width:604px;margin-left:0}.bokeh table .span9{float:none;width:684px;margin-left:0}.bokeh table .span10{float:none;width:764px;margin-left:0}.bokeh table .span11{float:none;width:844px;margin-left:0}.bokeh table .span12{float:none;width:924px;margin-left:0}.bokeh table .span13{float:none;width:1004px;margin-left:0}.bokeh table .span14{float:none;width:1084px;margin-left:0}.bokeh table .span15{float:none;width:1164px;margin-left:0}.bokeh table .span16{float:none;width:1244px;margin-left:0}.bokeh table .span17{float:none;width:1324px;margin-left:0}.bokeh table .span18{float:none;width:1404px;margin-left:0}.bokeh table .span19{float:none;width:1484px;margin-left:0}.bokeh table .span20{float:none;width:1564px;margin-left:0}.bokeh table .span21{float:none;width:1644px;margin-left:0}.bokeh table .span22{float:none;width:1724px;margin-left:0}.bokeh table .span23{float:none;width:1804px;margin-left:0}.bokeh table .span24{float:none;width:1884px;margin-left:0}.bokeh [class^=icon-],.bokeh [class*=\" icon-\"]{display:inline-block;width:14px;height:14px;line-height:14px;vertical-align:text-top;background-image:url(../img/glyphicons-halflings.png);background-position:14px 14px;background-repeat:no-repeat}.bokeh [class^=icon-]:last-child,.bokeh [class*=\" icon-\"]:last-child{}.bokeh .icon-white{background-image:url(../img/glyphicons-halflings-white.png)}.bokeh .icon-glass{background-position:0 0}.bokeh .icon-music{background-position:-24px 0}.bokeh .icon-search{background-position:-48px 0}.bokeh .icon-envelope{background-position:-72px 0}.bokeh .icon-heart{background-position:-96px 0}.bokeh .icon-star{background-position:-120px 0}.bokeh .icon-star-empty{background-position:-144px 0}.bokeh .icon-user{background-position:-168px 0}.bokeh .icon-film{background-position:-192px 0}.bokeh .icon-th-large{background-position:-216px 0}.bokeh .icon-th{background-position:-240px 0}.bokeh .icon-th-list{background-position:-264px 0}.bokeh .icon-ok{background-position:-288px 0}.bokeh .icon-remove{background-position:-312px 0}.bokeh .icon-zoom-in{background-position:-336px 0}.bokeh .icon-zoom-out{background-position:-360px 0}.bokeh .icon-off{background-position:-384px 0}.bokeh .icon-signal{background-position:-408px 0}.bokeh .icon-cog{background-position:-432px 0}.bokeh .icon-trash{background-position:-456px 0}.bokeh .icon-home{background-position:0 -24px}.bokeh .icon-file{background-position:-24px -24px}.bokeh .icon-time{background-position:-48px -24px}.bokeh .icon-road{background-position:-72px -24px}.bokeh .icon-download-alt{background-position:-96px -24px}.bokeh .icon-download{background-position:-120px -24px}.bokeh .icon-upload{background-position:-144px -24px}.bokeh .icon-inbox{background-position:-168px -24px}.bokeh .icon-play-circle{background-position:-192px -24px}.bokeh .icon-repeat{background-position:-216px -24px}.bokeh .icon-refresh{background-position:-240px -24px}.bokeh .icon-list-alt{background-position:-264px -24px}.bokeh .icon-lock{background-position:-287px -24px}.bokeh .icon-flag{background-position:-312px -24px}.bokeh .icon-headphones{background-position:-336px -24px}.bokeh .icon-volume-off{background-position:-360px -24px}.bokeh .icon-volume-down{background-position:-384px -24px}.bokeh .icon-volume-up{background-position:-408px -24px}.bokeh .icon-qrcode{background-position:-432px -24px}.bokeh .icon-barcode{background-position:-456px -24px}.bokeh .icon-tag{background-position:0 -48px}.bokeh .icon-tags{background-position:-25px -48px}.bokeh .icon-book{background-position:-48px -48px}.bokeh .icon-bookmark{background-position:-72px -48px}.bokeh .icon-print{background-position:-96px -48px}.bokeh .icon-camera{background-position:-120px -48px}.bokeh .icon-font{background-position:-144px -48px}.bokeh .icon-bold{background-position:-167px -48px}.bokeh .icon-italic{background-position:-192px -48px}.bokeh .icon-text-height{background-position:-216px -48px}.bokeh .icon-text-width{background-position:-240px -48px}.bokeh .icon-align-left{background-position:-264px -48px}.bokeh .icon-align-center{background-position:-288px -48px}.bokeh .icon-align-right{background-position:-312px -48px}.bokeh .icon-align-justify{background-position:-336px -48px}.bokeh .icon-list{background-position:-360px -48px}.bokeh .icon-indent-left{background-position:-384px -48px}.bokeh .icon-indent-right{background-position:-408px -48px}.bokeh .icon-facetime-video{background-position:-432px -48px}.bokeh .icon-picture{background-position:-456px -48px}.bokeh .icon-pencil{background-position:0 -72px}.bokeh .icon-map-marker{background-position:-24px -72px}.bokeh .icon-adjust{background-position:-48px -72px}.bokeh .icon-tint{background-position:-72px -72px}.bokeh .icon-edit{background-position:-96px -72px}.bokeh .icon-share{background-position:-120px -72px}.bokeh .icon-check{background-position:-144px -72px}.bokeh .icon-move{background-position:-168px -72px}.bokeh .icon-step-backward{background-position:-192px -72px}.bokeh .icon-fast-backward{background-position:-216px -72px}.bokeh .icon-backward{background-position:-240px -72px}.bokeh .icon-play{background-position:-264px -72px}.bokeh .icon-pause{background-position:-288px -72px}.bokeh .icon-stop{background-position:-312px -72px}.bokeh .icon-forward{background-position:-336px -72px}.bokeh .icon-fast-forward{background-position:-360px -72px}.bokeh .icon-step-forward{background-position:-384px -72px}.bokeh .icon-eject{background-position:-408px -72px}.bokeh .icon-chevron-left{background-position:-432px -72px}.bokeh .icon-chevron-right{background-position:-456px -72px}.bokeh .icon-plus-sign{background-position:0 -96px}.bokeh .icon-minus-sign{background-position:-24px -96px}.bokeh .icon-remove-sign{background-position:-48px -96px}.bokeh .icon-ok-sign{background-position:-72px -96px}.bokeh .icon-question-sign{background-position:-96px -96px}.bokeh .icon-info-sign{background-position:-120px -96px}.bokeh .icon-screenshot{background-position:-144px -96px}.bokeh .icon-remove-circle{background-position:-168px -96px}.bokeh .icon-ok-circle{background-position:-192px -96px}.bokeh .icon-ban-circle{background-position:-216px -96px}.bokeh .icon-arrow-left{background-position:-240px -96px}.bokeh .icon-arrow-right{background-position:-264px -96px}.bokeh .icon-arrow-up{background-position:-289px -96px}.bokeh .icon-arrow-down{background-position:-312px -96px}.bokeh .icon-share-alt{background-position:-336px -96px}.bokeh .icon-resize-full{background-position:-360px -96px}.bokeh .icon-resize-small{background-position:-384px -96px}.bokeh .icon-plus{background-position:-408px -96px}.bokeh .icon-minus{background-position:-433px -96px}.bokeh .icon-asterisk{background-position:-456px -96px}.bokeh .icon-exclamation-sign{background-position:0 -120px}.bokeh .icon-gift{background-position:-24px -120px}.bokeh .icon-leaf{background-position:-48px -120px}.bokeh .icon-fire{background-position:-72px -120px}.bokeh .icon-eye-open{background-position:-96px -120px}.bokeh .icon-eye-close{background-position:-120px -120px}.bokeh .icon-warning-sign{background-position:-144px -120px}.bokeh .icon-plane{background-position:-168px -120px}.bokeh .icon-calendar{background-position:-192px -120px}.bokeh .icon-random{background-position:-216px -120px}.bokeh .icon-comment{background-position:-240px -120px}.bokeh .icon-magnet{background-position:-264px -120px}.bokeh .icon-chevron-up{background-position:-288px -120px}.bokeh .icon-chevron-down{background-position:-313px -119px}.bokeh .icon-retweet{background-position:-336px -120px}.bokeh .icon-shopping-cart{background-position:-360px -120px}.bokeh .icon-folder-close{background-position:-384px -120px}.bokeh .icon-folder-open{background-position:-408px -120px}.bokeh .icon-resize-vertical{background-position:-432px -119px}.bokeh .icon-resize-horizontal{background-position:-456px -118px}.bokeh .icon-hdd{background-position:0 -144px}.bokeh .icon-bullhorn{background-position:-24px -144px}.bokeh .icon-bell{background-position:-48px -144px}.bokeh .icon-certificate{background-position:-72px -144px}.bokeh .icon-thumbs-up{background-position:-96px -144px}.bokeh .icon-thumbs-down{background-position:-120px -144px}.bokeh .icon-hand-right{background-position:-144px -144px}.bokeh .icon-hand-left{background-position:-168px -144px}.bokeh .icon-hand-up{background-position:-192px -144px}.bokeh .icon-hand-down{background-position:-216px -144px}.bokeh .icon-circle-arrow-right{background-position:-240px -144px}.bokeh .icon-circle-arrow-left{background-position:-264px -144px}.bokeh .icon-circle-arrow-up{background-position:-288px -144px}.bokeh .icon-circle-arrow-down{background-position:-312px -144px}.bokeh .icon-globe{background-position:-336px -144px}.bokeh .icon-wrench{background-position:-360px -144px}.bokeh .icon-tasks{background-position:-384px -144px}.bokeh .icon-filter{background-position:-408px -144px}.bokeh .icon-briefcase{background-position:-432px -144px}.bokeh .icon-fullscreen{background-position:-456px -144px}.bokeh .dropup,.bokeh .dropdown{position:relative}.bokeh .dropdown-toggle{}.bokeh .dropdown-toggle:active,.bokeh .open .dropdown-toggle{outline:0}.bokeh .caret{display:inline-block;width:0;height:0;vertical-align:top;border-top:4px solid #000;border-right:4px solid transparent;border-left:4px solid transparent;content:\"\";opacity:.3;filter:alpha(opacity=30)}.bokeh .dropdown .caret{margin-top:8px;margin-left:2px}.bokeh .dropdown:hover .caret,.bokeh .open .caret{opacity:1;filter:alpha(opacity=100)}.bokeh .dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:4px 0;margin:1px 0 0;list-style:none;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.bokeh .dropdown-menu.pull-right{right:0;left:auto}.bokeh .dropdown-menu .divider{height:1px;margin:8px 1px;overflow:hidden;background-color:#e5e5e5;border-bottom:1px solid #fff}.bokeh .dropdown-menu a{display:block;padding:3px 15px;clear:both;font-weight:400;line-height:18px;color:#333;white-space:nowrap}.bokeh .dropdown-menu li>a:hover,.bokeh .dropdown-menu .active>a,.bokeh .dropdown-menu .active>a:hover{color:#fff;text-decoration:none;background-color:#08c}.bokeh .open{}.bokeh .open>.dropdown-menu{display:block}.bokeh .pull-right>.dropdown-menu{right:0;left:auto}.bokeh .dropup .caret,.bokeh .navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid #000;content:\"\\2191\"}.bokeh .dropup .dropdown-menu,.bokeh .navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}.bokeh .typeahead{margin-top:2px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.bokeh .well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #eee;border:1px solid rgba(0,0,0,.05);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.bokeh .well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.bokeh .well-large{padding:24px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.bokeh .well-small{padding:9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.bokeh .fade{opacity:0;-webkit-transition:opacity .15s linear;-moz-transition:opacity .15s linear;-ms-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.bokeh .fade.in{opacity:1}.bokeh .collapse{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;-moz-transition:height .35s ease;-ms-transition:height .35s ease;-o-transition:height .35s ease;transition:height .35s ease}.bokeh .collapse.in{height:auto}.bokeh .close{float:right;font-size:20px;font-weight:700;line-height:18px;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.bokeh .close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.4;filter:alpha(opacity=40)}.bokeh button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.bokeh .btn{display:inline-block;padding:4px 10px;margin-bottom:0;font-size:13px;line-height:18px;color:#333;text-align:center;text-shadow:0 1px 1px rgba(255,255,255,.75);vertical-align:middle;cursor:pointer;background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-ms-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(top,#fff,#e6e6e6);background-repeat:repeat-x;border:1px solid #ccc;border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.bokeh .btn:hover,.bokeh .btn:active,.bokeh .btn.active,.bokeh .btn.disabled,.bokeh .btn[disabled]{background-color:#e6e6e6}.bokeh .btn:active,.bokeh .btn.active{background-color:#ccc \\9}.bokeh .btn:first-child{}.bokeh .btn:hover{color:#333;text-decoration:none;background-color:#e6e6e6;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-ms-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.bokeh .btn:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.bokeh .btn.active,.bokeh .btn:active{background-color:#e6e6e6;background-color:#d9d9d9 \\9;background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.bokeh .btn.disabled,.bokeh .btn[disabled]{cursor:default;background-color:#e6e6e6;background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.bokeh .btn-large{padding:9px 14px;font-size:15px;line-height:normal;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.bokeh .btn-large [class^=icon-]{margin-top:1px}.bokeh .btn-small{padding:5px 9px;font-size:11px;line-height:16px}.bokeh .btn-small [class^=icon-]{margin-top:-1px}.bokeh .btn-mini{padding:2px 6px;font-size:11px;line-height:14px}.bokeh .btn-primary,.bokeh .btn-primary:hover,.bokeh .btn-warning,.bokeh .btn-warning:hover,.bokeh .btn-danger,.bokeh .btn-danger:hover,.bokeh .btn-success,.bokeh .btn-success:hover,.bokeh .btn-info,.bokeh .btn-info:hover,.bokeh .btn-inverse,.bokeh .btn-inverse:hover{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.bokeh .btn-primary.active,.bokeh .btn-warning.active,.bokeh .btn-danger.active,.bokeh .btn-success.active,.bokeh .btn-info.active,.bokeh .btn-inverse.active{color:rgba(255,255,255,.75)}.bokeh .btn{border-color:#ccc;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25)}.bokeh .btn-primary{background-color:#0074cc;background-image:-moz-linear-gradient(top,#08c,#05c);background-image:-ms-linear-gradient(top,#08c,#05c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#05c));background-image:-webkit-linear-gradient(top,#08c,#05c);background-image:-o-linear-gradient(top,#08c,#05c);background-image:linear-gradient(top,#08c,#05c);background-repeat:repeat-x;border-color:#05c #05c #003580;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0055cc', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.bokeh .btn-primary:hover,.bokeh .btn-primary:active,.bokeh .btn-primary.active,.bokeh .btn-primary.disabled,.bokeh .btn-primary[disabled]{background-color:#05c}.bokeh .btn-primary:active,.bokeh .btn-primary.active{background-color:#004099 \\9}.bokeh .btn-warning{background-color:#faa732;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-ms-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(top,#fbb450,#f89406);background-repeat:repeat-x;border-color:#f89406 #f89406 #ad6704;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.bokeh .btn-warning:hover,.bokeh .btn-warning:active,.bokeh .btn-warning.active,.bokeh .btn-warning.disabled,.bokeh .btn-warning[disabled]{background-color:#f89406}.bokeh .btn-warning:active,.bokeh .btn-warning.active{background-color:#c67605 \\9}.bokeh .btn-danger{background-color:#da4f49;background-image:-moz-linear-gradient(top,#ee5f5b,#bd362f);background-image:-ms-linear-gradient(top,#ee5f5b,#bd362f);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#bd362f));background-image:-webkit-linear-gradient(top,#ee5f5b,#bd362f);background-image:-o-linear-gradient(top,#ee5f5b,#bd362f);background-image:linear-gradient(top,#ee5f5b,#bd362f);background-repeat:repeat-x;border-color:#bd362f #bd362f #802420;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#bd362f', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.bokeh .btn-danger:hover,.bokeh .btn-danger:active,.bokeh .btn-danger.active,.bokeh .btn-danger.disabled,.bokeh .btn-danger[disabled]{background-color:#bd362f}.bokeh .btn-danger:active,.bokeh .btn-danger.active{background-color:#942a25 \\9}.bokeh .btn-success{background-color:#5bb75b;background-image:-moz-linear-gradient(top,#62c462,#51a351);background-image:-ms-linear-gradient(top,#62c462,#51a351);background-image:-webkit-gradient(linear,0 0,0 100%,from(#62c462),to(#51a351));background-image:-webkit-linear-gradient(top,#62c462,#51a351);background-image:-o-linear-gradient(top,#62c462,#51a351);background-image:linear-gradient(top,#62c462,#51a351);background-repeat:repeat-x;border-color:#51a351 #51a351 #387038;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#51a351', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.bokeh .btn-success:hover,.bokeh .btn-success:active,.bokeh .btn-success.active,.bokeh .btn-success.disabled,.bokeh .btn-success[disabled]{background-color:#51a351}.bokeh .btn-success:active,.bokeh .btn-success.active{background-color:#408140 \\9}.bokeh .btn-info{background-color:#49afcd;background-image:-moz-linear-gradient(top,#5bc0de,#2f96b4);background-image:-ms-linear-gradient(top,#5bc0de,#2f96b4);background-image:-webkit-gradient(linear,0 0,0 100%,from(#5bc0de),to(#2f96b4));background-image:-webkit-linear-gradient(top,#5bc0de,#2f96b4);background-image:-o-linear-gradient(top,#5bc0de,#2f96b4);background-image:linear-gradient(top,#5bc0de,#2f96b4);background-repeat:repeat-x;border-color:#2f96b4 #2f96b4 #1f6377;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5bc0de', endColorstr='#2f96b4', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.bokeh .btn-info:hover,.bokeh .btn-info:active,.bokeh .btn-info.active,.bokeh .btn-info.disabled,.bokeh .btn-info[disabled]{background-color:#2f96b4}.bokeh .btn-info:active,.bokeh .btn-info.active{background-color:#24748c \\9}.bokeh .btn-inverse{background-color:#414141;background-image:-moz-linear-gradient(top,#555,#222);background-image:-ms-linear-gradient(top,#555,#222);background-image:-webkit-gradient(linear,0 0,0 100%,from(#555),to(#222));background-image:-webkit-linear-gradient(top,#555,#222);background-image:-o-linear-gradient(top,#555,#222);background-image:linear-gradient(top,#555,#222);background-repeat:repeat-x;border-color:#222 #222 #000;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#555555', endColorstr='#222222', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.bokeh .btn-inverse:hover,.bokeh .btn-inverse:active,.bokeh .btn-inverse.active,.bokeh .btn-inverse.disabled,.bokeh .btn-inverse[disabled]{background-color:#222}.bokeh .btn-inverse:active,.bokeh .btn-inverse.active{background-color:#080808 \\9}.bokeh button.btn,.bokeh input[type=submit].btn{}.bokeh button.btn::-moz-focus-inner,.bokeh input[type=submit].btn::-moz-focus-inner{padding:0;border:0}.bokeh button.btn.btn-large,.bokeh input[type=submit].btn.btn-large{}.bokeh button.btn.btn-small,.bokeh input[type=submit].btn.btn-small{}.bokeh button.btn.btn-mini,.bokeh input[type=submit].btn.btn-mini{}.bokeh .btn-group{position:relative}.bokeh .btn-group:before,.bokeh .btn-group:after{display:table;content:\"\"}.bokeh .btn-group:after{clear:both}.bokeh .btn-group:first-child{}.bokeh .btn-group+.btn-group{margin-left:5px}.bokeh .btn-toolbar{margin-top:9px;margin-bottom:9px}.bokeh .btn-toolbar .btn-group{display:inline-block}.bokeh .btn-group>.btn{position:relative;float:left;margin-left:-1px;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.bokeh .btn-group>.btn:first-child{margin-left:0;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-bottomleft:4px;-moz-border-radius-topleft:4px}.bokeh .btn-group>.btn:last-child,.bokeh .btn-group>.dropdown-toggle{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-topright:4px;-moz-border-radius-bottomright:4px}.bokeh .btn-group>.btn.large:first-child{margin-left:0;-webkit-border-bottom-left-radius:6px;border-bottom-left-radius:6px;-webkit-border-top-left-radius:6px;border-top-left-radius:6px;-moz-border-radius-bottomleft:6px;-moz-border-radius-topleft:6px}.bokeh .btn-group>.btn.large:last-child,.bokeh .btn-group>.large.dropdown-toggle{-webkit-border-top-right-radius:6px;border-top-right-radius:6px;-webkit-border-bottom-right-radius:6px;border-bottom-right-radius:6px;-moz-border-radius-topright:6px;-moz-border-radius-bottomright:6px}.bokeh .btn-group>.btn:hover,.bokeh .btn-group>.btn:focus,.bokeh .btn-group>.btn:active,.bokeh .btn-group>.btn.active{z-index:2}.bokeh .btn-group .dropdown-toggle:active,.bokeh .btn-group.open .dropdown-toggle{outline:0}.bokeh .btn-group>.dropdown-toggle{padding-right:8px;padding-left:8px;-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,.125),inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,.125),inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 1px 0 0 rgba(255,255,255,.125),inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.bokeh .btn-group>.btn-mini.dropdown-toggle{padding-right:5px;padding-left:5px}.bokeh .btn-group>.btn-small.dropdown-toggle{}.bokeh .btn-group>.btn-large.dropdown-toggle{padding-right:12px;padding-left:12px}.bokeh .btn-group.open .dropdown-toggle{background-image:none;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.bokeh .btn-group.open .btn.dropdown-toggle{background-color:#e6e6e6}.bokeh .btn-group.open .btn-primary.dropdown-toggle{background-color:#05c}.bokeh .btn-group.open .btn-warning.dropdown-toggle{background-color:#f89406}.bokeh .btn-group.open .btn-danger.dropdown-toggle{background-color:#bd362f}.bokeh .btn-group.open .btn-success.dropdown-toggle{background-color:#51a351}.bokeh .btn-group.open .btn-info.dropdown-toggle{background-color:#2f96b4}.bokeh .btn-group.open .btn-inverse.dropdown-toggle{background-color:#222}.bokeh .btn .caret{margin-top:7px;margin-left:0}.bokeh .btn:hover .caret,.bokeh .open.btn-group .caret{opacity:1;filter:alpha(opacity=100)}.bokeh .btn-mini .caret{margin-top:5px}.bokeh .btn-small .caret{margin-top:6px}.bokeh .btn-large .caret{margin-top:6px;border-top-width:5px;border-right-width:5px;border-left-width:5px}.bokeh .dropup .btn-large .caret{border-top:0;border-bottom:5px solid #000}.bokeh .btn-primary .caret,.bokeh .btn-warning .caret,.bokeh .btn-danger .caret,.bokeh .btn-info .caret,.bokeh .btn-success .caret,.bokeh .btn-inverse .caret{border-top-color:#fff;border-bottom-color:#fff;opacity:.75;filter:alpha(opacity=75)}.bokeh .alert{padding:8px 35px 8px 14px;margin-bottom:18px;color:#c09853;text-shadow:0 1px 0 rgba(255,255,255,.5);background-color:#fcf8e3;border:1px solid #fbeed5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.bokeh .alert-heading{color:inherit}.bokeh .alert .close{position:relative;top:-2px;right:-21px;line-height:18px}.bokeh .alert-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.bokeh .alert-danger,.bokeh .alert-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.bokeh .alert-info{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.bokeh .alert-block{padding-top:14px;padding-bottom:14px}.bokeh .alert-block>p,.bokeh .alert-block>ul{margin-bottom:0}.bokeh .alert-block p+p{margin-top:5px}.bokeh .nav{margin-bottom:18px;margin-left:0;list-style:none}.bokeh .nav>li>a{display:block}.bokeh .nav>li>a:hover{text-decoration:none;background-color:#eee}.bokeh .nav>.pull-right{float:right}.bokeh .nav .nav-header{display:block;padding:3px 15px;font-size:11px;font-weight:700;line-height:18px;color:#999;text-shadow:0 1px 0 rgba(255,255,255,.5);text-transform:uppercase}.bokeh .nav li+.nav-header{margin-top:9px}.bokeh .nav-list{padding-right:15px;padding-left:15px;margin-bottom:0}.bokeh .nav-list>li>a,.bokeh .nav-list .nav-header{margin-right:-15px;margin-left:-15px;text-shadow:0 1px 0 rgba(255,255,255,.5)}.bokeh .nav-list>li>a{padding:3px 15px}.bokeh .nav-list>.active>a,.bokeh .nav-list>.active>a:hover{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.2);background-color:#08c}.bokeh .nav-list [class^=icon-]{margin-right:2px}.bokeh .nav-list .divider{height:1px;margin:8px 1px;overflow:hidden;background-color:#e5e5e5;border-bottom:1px solid #fff}.bokeh .nav-tabs,.bokeh .nav-pills{}.bokeh .nav-tabs:before,.bokeh .nav-pills:before,.bokeh .nav-tabs:after,.bokeh .nav-pills:after{display:table;content:\"\"}.bokeh .nav-tabs:after,.bokeh .nav-pills:after{clear:both}.bokeh .nav-tabs>li,.bokeh .nav-pills>li{float:left}.bokeh .nav-tabs>li>a,.bokeh .nav-pills>li>a{padding-right:12px;padding-left:12px;margin-right:2px;line-height:14px}.bokeh .nav-tabs{border-bottom:1px solid #ddd}.bokeh .nav-tabs>li{margin-bottom:-1px}.bokeh .nav-tabs>li>a{padding-top:8px;padding-bottom:8px;line-height:18px;border:1px solid transparent;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.bokeh .nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.bokeh .nav-tabs>.active>a,.bokeh .nav-tabs>.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.bokeh .nav-pills>li>a{padding-top:8px;padding-bottom:8px;margin-top:2px;margin-bottom:2px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.bokeh .nav-pills>.active>a,.bokeh .nav-pills>.active>a:hover{color:#fff;background-color:#08c}.bokeh .nav-stacked>li{float:none}.bokeh .nav-stacked>li>a{margin-right:0}.bokeh .nav-tabs.nav-stacked{border-bottom:0}.bokeh .nav-tabs.nav-stacked>li>a{border:1px solid #ddd;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.bokeh .nav-tabs.nav-stacked>li:first-child>a{-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.bokeh .nav-tabs.nav-stacked>li:last-child>a{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.bokeh .nav-tabs.nav-stacked>li>a:hover{z-index:2;border-color:#ddd}.bokeh .nav-pills.nav-stacked>li>a{margin-bottom:3px}.bokeh .nav-pills.nav-stacked>li:last-child>a{margin-bottom:1px}.bokeh .nav-tabs .dropdown-menu{-webkit-border-radius:0 0 5px 5px;-moz-border-radius:0 0 5px 5px;border-radius:0 0 5px 5px}.bokeh .nav-pills .dropdown-menu{-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.bokeh .nav-tabs .dropdown-toggle .caret,.bokeh .nav-pills .dropdown-toggle .caret{margin-top:6px;border-top-color:#08c;border-bottom-color:#08c}.bokeh .nav-tabs .dropdown-toggle:hover .caret,.bokeh .nav-pills .dropdown-toggle:hover .caret{border-top-color:#005580;border-bottom-color:#005580}.bokeh .nav-tabs .active .dropdown-toggle .caret,.bokeh .nav-pills .active .dropdown-toggle .caret{border-top-color:#333;border-bottom-color:#333}.bokeh .nav>.dropdown.active>a:hover{color:#000;cursor:pointer}.bokeh .nav-tabs .open .dropdown-toggle,.bokeh .nav-pills .open .dropdown-toggle,.bokeh .nav>li.dropdown.open.active>a:hover{color:#fff;background-color:#999;border-color:#999}.bokeh .nav li.dropdown.open .caret,.bokeh .nav li.dropdown.open.active .caret,.bokeh .nav li.dropdown.open a:hover .caret{border-top-color:#fff;border-bottom-color:#fff;opacity:1;filter:alpha(opacity=100)}.bokeh .tabs-stacked .open>a:hover{border-color:#999}.bokeh .tabbable{}.bokeh .tabbable:before,.bokeh .tabbable:after{display:table;content:\"\"}.bokeh .tabbable:after{clear:both}.bokeh .tab-content{overflow:auto}.bokeh .tabs-below>.nav-tabs,.bokeh .tabs-right>.nav-tabs,.bokeh .tabs-left>.nav-tabs{border-bottom:0}.bokeh .tab-content>.tab-pane,.bokeh .pill-content>.pill-pane{display:none}.bokeh .tab-content>.active,.bokeh .pill-content>.active{display:block}.bokeh .tabs-below>.nav-tabs{border-top:1px solid #ddd}.bokeh .tabs-below>.nav-tabs>li{margin-top:-1px;margin-bottom:0}.bokeh .tabs-below>.nav-tabs>li>a{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.bokeh .tabs-below>.nav-tabs>li>a:hover{border-top-color:#ddd;border-bottom-color:transparent}.bokeh .tabs-below>.nav-tabs>.active>a,.bokeh .tabs-below>.nav-tabs>.active>a:hover{border-color:transparent #ddd #ddd}.bokeh .tabs-left>.nav-tabs>li,.bokeh .tabs-right>.nav-tabs>li{float:none}.bokeh .tabs-left>.nav-tabs>li>a,.bokeh .tabs-right>.nav-tabs>li>a{min-width:74px;margin-right:0;margin-bottom:3px}.bokeh .tabs-left>.nav-tabs{float:left;margin-right:19px;border-right:1px solid #ddd}.bokeh .tabs-left>.nav-tabs>li>a{margin-right:-1px;-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.bokeh .tabs-left>.nav-tabs>li>a:hover{border-color:#eee #ddd #eee #eee}.bokeh .tabs-left>.nav-tabs .active>a,.bokeh .tabs-left>.nav-tabs .active>a:hover{border-color:#ddd transparent #ddd #ddd}.bokeh .tabs-right>.nav-tabs{float:right;margin-left:19px;border-left:1px solid #ddd}.bokeh .tabs-right>.nav-tabs>li>a{margin-left:-1px;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.bokeh .tabs-right>.nav-tabs>li>a:hover{border-color:#eee #eee #eee #ddd}.bokeh .tabs-right>.nav-tabs .active>a,.bokeh .tabs-right>.nav-tabs .active>a:hover{border-color:#ddd #ddd #ddd transparent}.bokeh .navbar{margin-bottom:18px;overflow:visible}.bokeh .navbar-inner{min-height:40px;padding-right:20px;padding-left:20px;background-color:#2c2c2c;background-image:-moz-linear-gradient(top,#333,#222);background-image:-ms-linear-gradient(top,#333,#222);background-image:-webkit-gradient(linear,0 0,0 100%,from(#333),to(#222));background-image:-webkit-linear-gradient(top,#333,#222);background-image:-o-linear-gradient(top,#333,#222);background-image:linear-gradient(top,#333,#222);background-repeat:repeat-x;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#222222', GradientType=0);-webkit-box-shadow:0 1px 3px rgba(0,0,0,.25),inset 0 -1px 0 rgba(0,0,0,.1);-moz-box-shadow:0 1px 3px rgba(0,0,0,.25),inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:0 1px 3px rgba(0,0,0,.25),inset 0 -1px 0 rgba(0,0,0,.1)}.bokeh .navbar .container{width:auto}.bokeh .nav-collapse.collapse{height:auto}.bokeh .navbar{color:#999}.bokeh .navbar .brand:hover{text-decoration:none}.bokeh .navbar .brand{display:block;float:left;padding:8px 20px 12px;margin-left:-20px;font-size:20px;font-weight:200;line-height:1;color:#999}.bokeh .navbar .navbar-text{margin-bottom:0;line-height:40px}.bokeh .navbar .navbar-link{color:#999}.bokeh .navbar .navbar-link:hover{color:#fff}.bokeh .navbar .btn,.bokeh .navbar .btn-group{margin-top:5px}.bokeh .navbar .btn-group .btn{margin:0}.bokeh .navbar-form{margin-bottom:0}.bokeh .navbar-form:before,.bokeh .navbar-form:after{display:table;content:\"\"}.bokeh .navbar-form:after{clear:both}.bokeh .navbar-form input,.bokeh .navbar-form select,.bokeh .navbar-form .radio,.bokeh .navbar-form .checkbox{margin-top:5px}.bokeh .navbar-form input,.bokeh .navbar-form select{display:inline-block;margin-bottom:0}.bokeh .navbar-form input[type=image],.bokeh .navbar-form input[type=checkbox],.bokeh .navbar-form input[type=radio]{margin-top:3px}.bokeh .navbar-form .input-append,.bokeh .navbar-form .input-prepend{margin-top:6px;white-space:nowrap}.bokeh .navbar-form .input-append input,.bokeh .navbar-form .input-prepend input{margin-top:0}.bokeh .navbar-search{position:relative;float:left;margin-top:6px;margin-bottom:0}.bokeh .navbar-search .search-query{padding:4px 9px;font-family:\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-size:13px;font-weight:400;line-height:1;color:#fff;background-color:#626262;border:1px solid #151515;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1),0 1px 0 rgba(255,255,255,.15);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1),0 1px 0 rgba(255,255,255,.15);box-shadow:inset 0 1px 2px rgba(0,0,0,.1),0 1px 0 rgba(255,255,255,.15);-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.bokeh .navbar-search .search-query:-moz-placeholder{color:#ccc}.bokeh .navbar-search .search-query:-ms-input-placeholder{color:#ccc}.bokeh .navbar-search .search-query::-webkit-input-placeholder{color:#ccc}.bokeh .navbar-search .search-query:focus,.bokeh .navbar-search .search-query.focused{padding:5px 10px;color:#333;text-shadow:0 1px 0 #fff;background-color:#fff;border:0;outline:0;-webkit-box-shadow:0 0 3px rgba(0,0,0,.15);-moz-box-shadow:0 0 3px rgba(0,0,0,.15);box-shadow:0 0 3px rgba(0,0,0,.15)}.bokeh .navbar-fixed-top,.bokeh .navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030;margin-bottom:0}.bokeh .navbar-fixed-top .navbar-inner,.bokeh .navbar-fixed-bottom .navbar-inner{padding-right:0;padding-left:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.bokeh .navbar-fixed-top .container,.bokeh .navbar-fixed-bottom .container{width:940px}.bokeh .navbar-fixed-top{top:0}.bokeh .navbar-fixed-bottom{bottom:0}.bokeh .navbar .nav{position:relative;left:0;display:block;float:left;margin:0 10px 0 0}.bokeh .navbar .nav.pull-right{float:right}.bokeh .navbar .nav>li{display:block;float:left}.bokeh .navbar .nav>li>a{float:none;padding:9px 10px 11px;line-height:19px;color:#999;text-decoration:none;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.bokeh .navbar .btn{display:inline-block;padding:4px 10px;margin:5px 5px 6px;line-height:18px}.bokeh .navbar .btn-group{padding:5px 5px 6px;margin:0}.bokeh .navbar .nav>li>a:hover{color:#fff;text-decoration:none;background-color:transparent}.bokeh .navbar .nav .active>a,.bokeh .navbar .nav .active>a:hover{color:#fff;text-decoration:none;background-color:#222}.bokeh .navbar .divider-vertical{width:1px;height:40px;margin:0 9px;overflow:hidden;background-color:#222;border-right:1px solid #333}.bokeh .navbar .nav.pull-right{margin-right:0;margin-left:10px}.bokeh .navbar .btn-navbar{display:none;float:right;padding:7px 10px;margin-right:5px;margin-left:5px;background-color:#2c2c2c;background-image:-moz-linear-gradient(top,#333,#222);background-image:-ms-linear-gradient(top,#333,#222);background-image:-webkit-gradient(linear,0 0,0 100%,from(#333),to(#222));background-image:-webkit-linear-gradient(top,#333,#222);background-image:-o-linear-gradient(top,#333,#222);background-image:linear-gradient(top,#333,#222);background-repeat:repeat-x;border-color:#222 #222 #000;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#222222', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.075);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.075)}.bokeh .navbar .btn-navbar:hover,.bokeh .navbar .btn-navbar:active,.bokeh .navbar .btn-navbar.active,.bokeh .navbar .btn-navbar.disabled,.bokeh .navbar .btn-navbar[disabled]{background-color:#222}.bokeh .navbar .btn-navbar:active,.bokeh .navbar .btn-navbar.active{background-color:#080808 \\9}.bokeh .navbar .btn-navbar .icon-bar{display:block;width:18px;height:2px;background-color:#f5f5f5;-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.25);-moz-box-shadow:0 1px 0 rgba(0,0,0,.25);box-shadow:0 1px 0 rgba(0,0,0,.25)}.bokeh .btn-navbar .icon-bar+.icon-bar{margin-top:3px}.bokeh .navbar .dropdown-menu:before{position:absolute;top:-7px;left:9px;display:inline-block;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-left:7px solid transparent;border-bottom-color:rgba(0,0,0,.2);content:''}.bokeh .navbar .dropdown-menu:after{position:absolute;top:-6px;left:10px;display:inline-block;border-right:6px solid transparent;border-bottom:6px solid #fff;border-left:6px solid transparent;content:''}.bokeh .navbar-fixed-bottom .dropdown-menu:before{top:auto;bottom:-7px;border-top:7px solid #ccc;border-bottom:0;border-top-color:rgba(0,0,0,.2)}.bokeh .navbar-fixed-bottom .dropdown-menu:after{top:auto;bottom:-6px;border-top:6px solid #fff;border-bottom:0}.bokeh .navbar .nav li.dropdown .dropdown-toggle .caret,.bokeh .navbar .nav li.dropdown.open .caret{border-top-color:#fff;border-bottom-color:#fff}.bokeh .navbar .nav li.dropdown.active .caret{opacity:1;filter:alpha(opacity=100)}.bokeh .navbar .nav li.dropdown.open>.dropdown-toggle,.bokeh .navbar .nav li.dropdown.active>.dropdown-toggle,.bokeh .navbar .nav li.dropdown.open.active>.dropdown-toggle{background-color:transparent}.bokeh .navbar .nav li.dropdown.active>.dropdown-toggle:hover{color:#fff}.bokeh .navbar .pull-right .dropdown-menu,.bokeh .navbar .dropdown-menu.pull-right{right:0;left:auto}.bokeh .navbar .pull-right .dropdown-menu:before,.bokeh .navbar .dropdown-menu.pull-right:before{right:12px;left:auto}.bokeh .navbar .pull-right .dropdown-menu:after,.bokeh .navbar .dropdown-menu.pull-right:after{right:13px;left:auto}.bokeh .breadcrumb{padding:7px 14px;margin:0 0 18px;list-style:none;background-color:#fbfbfb;background-image:-moz-linear-gradient(top,#fff,#f5f5f5);background-image:-ms-linear-gradient(top,#fff,#f5f5f5);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#f5f5f5));background-image:-webkit-linear-gradient(top,#fff,#f5f5f5);background-image:-o-linear-gradient(top,#fff,#f5f5f5);background-image:linear-gradient(top,#fff,#f5f5f5);background-repeat:repeat-x;border:1px solid #ddd;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f5f5f5', GradientType=0);-webkit-box-shadow:inset 0 1px 0 #fff;-moz-box-shadow:inset 0 1px 0 #fff;box-shadow:inset 0 1px 0 #fff}.bokeh .breadcrumb li{display:inline-block;text-shadow:0 1px 0 #fff}.bokeh .breadcrumb .divider{padding:0 5px;color:#999}.bokeh .breadcrumb .active a{color:#333}.bokeh .pagination{height:36px;margin:18px 0}.bokeh .pagination ul{display:inline-block;margin-bottom:0;margin-left:0;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}.bokeh .pagination li{display:inline}.bokeh .pagination a{float:left;padding:0 14px;line-height:34px;text-decoration:none;border:1px solid #ddd;border-left-width:0}.bokeh .pagination a:hover,.bokeh .pagination .active a{background-color:#f5f5f5}.bokeh .pagination .active a{color:#999;cursor:default}.bokeh .pagination .disabled span,.bokeh .pagination .disabled a,.bokeh .pagination .disabled a:hover{color:#999;cursor:default;background-color:transparent}.bokeh .pagination li:first-child a{border-left-width:1px;-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.bokeh .pagination li:last-child a{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.bokeh .pagination-centered{text-align:center}.bokeh .pagination-right{text-align:right}.bokeh .pager{margin-bottom:18px;margin-left:0;text-align:center;list-style:none}.bokeh .pager:before,.bokeh .pager:after{display:table;content:\"\"}.bokeh .pager:after{clear:both}.bokeh .pager li{display:inline}.bokeh .pager a{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px}.bokeh .pager a:hover{text-decoration:none;background-color:#f5f5f5}.bokeh .pager .next a{float:right}.bokeh .pager .previous a{float:left}.bokeh .pager .disabled a,.bokeh .pager .disabled a:hover{color:#999;cursor:default;background-color:#fff}.bokeh .modal-open .dropdown-menu{z-index:2050}.bokeh .modal-open .dropdown.open{}.bokeh .modal-open .popover{z-index:2060}.bokeh .modal-open .tooltip{z-index:2070}.bokeh .modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.bokeh .modal-backdrop.fade{opacity:0}.bokeh .modal-backdrop,.bokeh .modal-backdrop.fade.in{opacity:.8;filter:alpha(opacity=80)}.bokeh .modal{position:fixed;top:50%;left:50%;z-index:1050;width:560px;margin:-250px 0 0 -280px;overflow:auto;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,.3);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 3px 7px rgba(0,0,0,.3);-moz-box-shadow:0 3px 7px rgba(0,0,0,.3);box-shadow:0 3px 7px rgba(0,0,0,.3);-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box}.bokeh .modal.fade{top:-25%;-webkit-transition:opacity .3s linear,top .3s ease-out;-moz-transition:opacity .3s linear,top .3s ease-out;-ms-transition:opacity .3s linear,top .3s ease-out;-o-transition:opacity .3s linear,top .3s ease-out;transition:opacity .3s linear,top .3s ease-out}.bokeh .modal.fade.in{top:50%}.bokeh .modal-header{padding:9px 15px;border-bottom:1px solid #eee}.bokeh .modal-header .close{margin-top:2px}.bokeh .modal-body{max-height:400px;padding:15px;overflow-y:auto}.bokeh .modal-form{margin-bottom:0}.bokeh .modal-footer{padding:14px 15px 15px;margin-bottom:0;text-align:right;background-color:#f5f5f5;border-top:1px solid #ddd;-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px;-webkit-box-shadow:inset 0 1px 0 #fff;-moz-box-shadow:inset 0 1px 0 #fff;box-shadow:inset 0 1px 0 #fff}.bokeh .modal-footer:before,.bokeh .modal-footer:after{display:table;content:\"\"}.bokeh .modal-footer:after{clear:both}.bokeh .modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.bokeh .modal-footer .btn-group .btn+.btn{margin-left:-1px}.bokeh .tooltip{position:absolute;z-index:1020;display:block;padding:5px;font-size:11px;opacity:0;filter:alpha(opacity=0);visibility:visible}.bokeh .tooltip.in{opacity:.8;filter:alpha(opacity=80)}.bokeh .tooltip.top{margin-top:-2px}.bokeh .tooltip.right{margin-left:2px}.bokeh .tooltip.bottom{margin-top:2px}.bokeh .tooltip.left{margin-left:-2px}.bokeh .tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-top:5px solid #000;border-right:5px solid transparent;border-left:5px solid transparent}.bokeh .tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000}.bokeh .tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-right:5px solid transparent;border-bottom:5px solid #000;border-left:5px solid transparent}.bokeh .tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-right:5px solid #000;border-bottom:5px solid transparent}.bokeh .tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.bokeh .tooltip-arrow{position:absolute;width:0;height:0}.bokeh .popover{position:absolute;top:0;left:0;z-index:1010;display:none;padding:5px}.bokeh .popover.top{margin-top:-5px}.bokeh .popover.right{margin-left:5px}.bokeh .popover.bottom{margin-top:5px}.bokeh .popover.left{margin-left:-5px}.bokeh .popover.top .arrow{bottom:0;left:50%;margin-left:-5px;border-top:5px solid #000;border-right:5px solid transparent;border-left:5px solid transparent}.bokeh .popover.right .arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-right:5px solid #000;border-bottom:5px solid transparent}.bokeh .popover.bottom .arrow{top:0;left:50%;margin-left:-5px;border-right:5px solid transparent;border-bottom:5px solid #000;border-left:5px solid transparent}.bokeh .popover.left .arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000}.bokeh .popover .arrow{position:absolute;width:0;height:0}.bokeh .popover-inner{width:280px;padding:3px;overflow:hidden;background:#000;background:rgba(0,0,0,.8);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 3px 7px rgba(0,0,0,.3);-moz-box-shadow:0 3px 7px rgba(0,0,0,.3);box-shadow:0 3px 7px rgba(0,0,0,.3)}.bokeh .popover-title{padding:9px 15px;line-height:1;background-color:#f5f5f5;border-bottom:1px solid #eee;-webkit-border-radius:3px 3px 0 0;-moz-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0}.bokeh .popover-content{padding:14px;background-color:#fff;-webkit-border-radius:0 0 3px 3px;-moz-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px;-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box}.bokeh .popover-content p,.bokeh .popover-content ul,.bokeh .popover-content ol{margin-bottom:0}.bokeh .thumbnails{margin-left:-20px;list-style:none}.bokeh .thumbnails:before,.bokeh .thumbnails:after{display:table;content:\"\"}.bokeh .thumbnails:after{clear:both}.bokeh .row-fluid .thumbnails{margin-left:0}.bokeh .thumbnails>li{float:left;margin-bottom:18px;margin-left:20px}.bokeh .thumbnail{display:block;padding:4px;line-height:1;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.075);-moz-box-shadow:0 1px 1px rgba(0,0,0,.075);box-shadow:0 1px 1px rgba(0,0,0,.075)}.bokeh a.thumbnail:hover{border-color:#08c;-webkit-box-shadow:0 1px 4px rgba(0,105,214,.25);-moz-box-shadow:0 1px 4px rgba(0,105,214,.25);box-shadow:0 1px 4px rgba(0,105,214,.25)}.bokeh .thumbnail>img{display:block;max-width:100%;margin-right:auto;margin-left:auto}.bokeh .thumbnail .caption{padding:9px}.bokeh .label,.bokeh .badge{font-size:10.998px;font-weight:700;line-height:14px;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);white-space:nowrap;vertical-align:baseline;background-color:#999}.bokeh .label{padding:1px 4px 2px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.bokeh .badge{padding:1px 9px 2px;-webkit-border-radius:9px;-moz-border-radius:9px;border-radius:9px}.bokeh a.label:hover,.bokeh a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.bokeh .label-important,.bokeh .badge-important{background-color:#b94a48}.bokeh .label-important[href],.bokeh .badge-important[href]{background-color:#953b39}.bokeh .label-warning,.bokeh .badge-warning{background-color:#f89406}.bokeh .label-warning[href],.bokeh .badge-warning[href]{background-color:#c67605}.bokeh .label-success,.bokeh .badge-success{background-color:#468847}.bokeh .label-success[href],.bokeh .badge-success[href]{background-color:#356635}.bokeh .label-info,.bokeh .badge-info{background-color:#3a87ad}.bokeh .label-info[href],.bokeh .badge-info[href]{background-color:#2d6987}.bokeh .label-inverse,.bokeh .badge-inverse{background-color:#333}.bokeh .label-inverse[href],.bokeh .badge-inverse[href]{background-color:#1a1a1a}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-moz-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-ms-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:0 0}to{background-position:40px 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.bokeh .progress{height:18px;margin-bottom:18px;overflow:hidden;background-color:#f7f7f7;background-image:-moz-linear-gradient(top,#f5f5f5,#f9f9f9);background-image:-ms-linear-gradient(top,#f5f5f5,#f9f9f9);background-image:-webkit-gradient(linear,0 0,0 100%,from(#f5f5f5),to(#f9f9f9));background-image:-webkit-linear-gradient(top,#f5f5f5,#f9f9f9);background-image:-o-linear-gradient(top,#f5f5f5,#f9f9f9);background-image:linear-gradient(top,#f5f5f5,#f9f9f9);background-repeat:repeat-x;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f5f5f5', endColorstr='#f9f9f9', GradientType=0);-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.bokeh .progress .bar{width:0;height:18px;font-size:12px;color:#fff;text-align:center;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#0e90d2;background-image:-moz-linear-gradient(top,#149bdf,#0480be);background-image:-ms-linear-gradient(top,#149bdf,#0480be);background-image:-webkit-gradient(linear,0 0,0 100%,from(#149bdf),to(#0480be));background-image:-webkit-linear-gradient(top,#149bdf,#0480be);background-image:-o-linear-gradient(top,#149bdf,#0480be);background-image:linear-gradient(top,#149bdf,#0480be);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#149bdf', endColorstr='#0480be', GradientType=0);-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-moz-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;-webkit-transition:width .6s ease;-moz-transition:width .6s ease;-ms-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.bokeh .progress-striped .bar{background-color:#149bdf;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,.15)),color-stop(0.75,rgba(255,255,255,.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-ms-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;-moz-background-size:40px 40px;-o-background-size:40px 40px;background-size:40px 40px}.bokeh .progress.active .bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-moz-animation:progress-bar-stripes 2s linear infinite;-ms-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.bokeh .progress-danger .bar{background-color:#dd514c;background-image:-moz-linear-gradient(top,#ee5f5b,#c43c35);background-image:-ms-linear-gradient(top,#ee5f5b,#c43c35);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#c43c35));background-image:-webkit-linear-gradient(top,#ee5f5b,#c43c35);background-image:-o-linear-gradient(top,#ee5f5b,#c43c35);background-image:linear-gradient(top,#ee5f5b,#c43c35);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#c43c35', GradientType=0)}.bokeh .progress-danger.progress-striped .bar{background-color:#ee5f5b;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,.15)),color-stop(0.75,rgba(255,255,255,.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-ms-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.bokeh .progress-success .bar{background-color:#5eb95e;background-image:-moz-linear-gradient(top,#62c462,#57a957);background-image:-ms-linear-gradient(top,#62c462,#57a957);background-image:-webkit-gradient(linear,0 0,0 100%,from(#62c462),to(#57a957));background-image:-webkit-linear-gradient(top,#62c462,#57a957);background-image:-o-linear-gradient(top,#62c462,#57a957);background-image:linear-gradient(top,#62c462,#57a957);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#57a957', GradientType=0)}.bokeh .progress-success.progress-striped .bar{background-color:#62c462;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,.15)),color-stop(0.75,rgba(255,255,255,.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-ms-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.bokeh .progress-info .bar{background-color:#4bb1cf;background-image:-moz-linear-gradient(top,#5bc0de,#339bb9);background-image:-ms-linear-gradient(top,#5bc0de,#339bb9);background-image:-webkit-gradient(linear,0 0,0 100%,from(#5bc0de),to(#339bb9));background-image:-webkit-linear-gradient(top,#5bc0de,#339bb9);background-image:-o-linear-gradient(top,#5bc0de,#339bb9);background-image:linear-gradient(top,#5bc0de,#339bb9);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5bc0de', endColorstr='#339bb9', GradientType=0)}.bokeh .progress-info.progress-striped .bar{background-color:#5bc0de;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,.15)),color-stop(0.75,rgba(255,255,255,.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-ms-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.bokeh .progress-warning .bar{background-color:#faa732;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-ms-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(top,#fbb450,#f89406);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0)}.bokeh .progress-warning.progress-striped .bar{background-color:#fbb450;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,.15)),color-stop(0.75,rgba(255,255,255,.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-ms-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.bokeh .accordion{margin-bottom:18px}.bokeh .accordion-group{margin-bottom:2px;border:1px solid #e5e5e5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.bokeh .accordion-heading{border-bottom:0}.bokeh .accordion-heading .accordion-toggle{display:block;padding:8px 15px}.bokeh .accordion-toggle{cursor:pointer}.bokeh .accordion-inner{padding:9px 15px;border-top:1px solid #e5e5e5}.bokeh .carousel{position:relative;margin-bottom:18px;line-height:1}.bokeh .carousel-inner{position:relative;width:100%;overflow:hidden}.bokeh .carousel .item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-moz-transition:.6s ease-in-out left;-ms-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.bokeh .carousel .item>img{display:block;line-height:1}.bokeh .carousel .active,.bokeh .carousel .next,.bokeh .carousel .prev{display:block}.bokeh .carousel .active{left:0}.bokeh .carousel .next,.bokeh .carousel .prev{position:absolute;top:0;width:100%}.bokeh .carousel .next{left:100%}.bokeh .carousel .prev{left:-100%}.bokeh .carousel .next.left,.bokeh .carousel .prev.right{left:0}.bokeh .carousel .active.left{left:-100%}.bokeh .carousel .active.right{left:100%}.bokeh .carousel-control{position:absolute;top:40%;left:15px;width:40px;height:40px;margin-top:-20px;font-size:60px;font-weight:100;line-height:30px;color:#fff;text-align:center;background:#222;border:3px solid #fff;-webkit-border-radius:23px;-moz-border-radius:23px;border-radius:23px;opacity:.5;filter:alpha(opacity=50)}.bokeh .carousel-control.right{right:15px;left:auto}.bokeh .carousel-control:hover{color:#fff;text-decoration:none;opacity:.9;filter:alpha(opacity=90)}.bokeh .carousel-caption{position:absolute;right:0;bottom:0;left:0;padding:10px 15px 5px;background:#333;background:rgba(0,0,0,.75)}.bokeh .carousel-caption h4,.bokeh .carousel-caption p{color:#fff}.bokeh .hero-unit{padding:60px;margin-bottom:30px;background-color:#eee;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.bokeh .hero-unit h1{margin-bottom:0;font-size:60px;line-height:1;letter-spacing:-1px;color:inherit}.bokeh .hero-unit p{font-size:18px;font-weight:200;line-height:27px;color:inherit}.bokeh .pull-right{float:right}.bokeh .pull-left{float:left}.bokeh .hide{display:none}.bokeh .show{display:block}.bokeh .invisible{visibility:hidden}.tableelem{padding-left:10px;padding-right:10px;padding-bottom:2px;padding-top:2px;border-width:2px;border-color:#fff;background-color:#E0E0E0}.tableheader{background-color:silver}.bokehtable form table tr td{padding:2px}.bokehtable form table tr td input{padding:0}.bokehtable table tr td{padding:2px}svg{font:12px sans-serif;margin:0}.ui-dialog-titlebar{height:16px}.button_bar{overflow:hidden;margin-top:5px;margin-bottom:5px;padding-top:5px;padding-bottom:5px}.grid_plot .button_bar{display:none}.plotview{clear:both}.bokeh_canvas_wrapper{position:relative;font-size:12pt}.bokeh_canvas{position:absolute;font-size:12pt}.bokeh_canvas_wrapper .bokeh_gmap{position:absolute!important;z-index:-5}.plotview{clear:both}.bokeh_canvas_wrapper{position:relative;font-size:12pt;float:left}.bokeh_canvas{position:absolute;font-size:12pt}.bokeh_tooltip:before{position:absolute;top:40%;width:0;height:0;left:-9px;border-style:solid;border-width:7px 10px 7px 0;border-color:transparent #1e4B6c transparent transparent;content:\" \";display:block}.bokeh_tooltip{position:absolute;padding:5px;background-color:#1e4B6c;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;pointer-events:none}.bokeh_tooltip_row_label{font-family:Helvetica,sans-serif;color:#9ab9b1;text-align:right}.bokeh_tooltip_row_value{font-family:Helvetica,sans-serif;color:#e2ddbd}.bokeh_tooltip_color_block{width:12px;height:12px;margin-left:5px;margin-right:5px;outline:#ddd solid 1px;display:inline-block}.bokeh_gmap{border:0;position:absolute;z-index:-5}.shading{display:block;border:1px dashed green;position:absolute;z-index:100}.gridplot_container{position:relative}.gridplot_container .gp_plotwrapper{position:absolute}button.active{border:1px solid #00f}.table_wrap table{margin:5px;height:300px;display:block;overflow-y:scroll}.plot_wrap .button_bar{height:30px}.plot_wrap .button_bar *{display:none}.plot_wrap:hover .button_bar *{display:inherit}.maximize{display:none;float:right}.plotclose{float:right}.plotsidebar{overflow-x:auto;width:350px;float:left}.maxplot{float:left}.bokehtable{overflow:auto}.pandassize,.pandasoffset{width:30px!important;height:20px!important;padding:1px!important}.hide{display:none}.pandasicons{position:relative;top:5px}.bokehdocheading{background-color:#ccc}.bokehdocheading:hover>.bokehdelete{display:none;float:right}.bokehdelete{float:right}.pandasgroup{width:auto;height:20px!important;padding:1px!important}.pandasagg{width:auto;height:20px!important;padding:1px!important}.tablecontrolstate{width:auto;height:20px!important;padding:1px!important}.paginatedisplay{overflow:hidden}.pagination{margin:0!important}.tablecontrolform{margin:0}.computedtxtbox,.computedname,.search{height:20px!important;padding:1px!important}.plottitle{padding-left:50px;padding-bottom:10px}.dataslider{margin-top:10px;margin-bottom:10px;margin-left:5px;margin-right:5px;width:20px}.maxlabel,.minlabel{margin-top:10px;margin-bottom:10px}.jsp{overflow:hidden}\n",
" /* END /Users/david/anaconda/lib/python2.7/site-packages/bokeh/server/static/css/bokeh.min.css */\n",
" </style>\n",
" <script type=\"text/javascript\">\n",
" \n",
" /* BEGIN /Users/david/anaconda/lib/python2.7/site-packages/bokeh/server/static/js/bokeh.min.js */\n",
" /**\n",
" * @license almond 0.2.9 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.\n",
" * Available via the MIT or new BSD license.\n",
" * see: http://github.com/jrburke/almond for details\n",
" */\n",
" \n",
" // Underscore.js 1.5.2\n",
" // http://underscorejs.org\n",
" // (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n",
" // Underscore may be freely distributed under the MIT license.\n",
" \n",
" /*!\n",
" * jQuery JavaScript Library v2.0.3\n",
" * http://jquery.com/\n",
" *\n",
" * Includes Sizzle.js\n",
" * http://sizzlejs.com/\n",
" *\n",
" * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors\n",
" * Released under the MIT license\n",
" * http://jquery.org/license\n",
" *\n",
" * Date: 2013-07-03T13:30Z\n",
" */\n",
" \n",
" /*!\n",
" * Sizzle CSS Selector Engine v1.9.4-pre\n",
" * http://sizzlejs.com/\n",
" *\n",
" * Copyright 2013 jQuery Foundation, Inc. and other contributors\n",
" * Released under the MIT license\n",
" * http://jquery.org/license\n",
" *\n",
" * Date: 2013-06-03\n",
" */\n",
" \n",
" // (c) 2010-2011 Jeremy Ashkenas, DocumentCloud Inc.\n",
" // (c) 2011-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n",
" // Backbone may be freely distributed under the MIT license.\n",
" // For all details and documentation:\n",
" // http://backbonejs.org\n",
" \n",
" /*\n",
" (c) 2013, Vladimir Agafonkin\n",
" RBush, a JavaScript library for high-performance 2D spatial indexing of points and rectangles.\n",
" https://github.com/mourner/rbush\n",
" */\n",
" \n",
" /*! sprintf.js | Copyright (c) 2007-2013 Alexandru Marasteanu <hello at alexei dot ro> | 3 clause BSD license */\n",
" \n",
" /* =========================================================\n",
" * bootstrap-modal.js v2.0.4\n",
" * http://twitter.github.com/bootstrap/javascript.html#modals\n",
" * =========================================================\n",
" * Copyright 2012 Twitter, Inc.\n",
" *\n",
" * Licensed under the Apache License, Version 2.0 (the \"License\");\n",
" * you may not use this file except in compliance with the License.\n",
" * You may obtain a copy of the License at\n",
" *\n",
" * http://www.apache.org/licenses/LICENSE-2.0\n",
" *\n",
" * Unless required by applicable law or agreed to in writing, software\n",
" * distributed under the License is distributed on an \"AS IS\" BASIS,\n",
" * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
" * See the License for the specific language governing permissions and\n",
" * limitations under the License.\n",
" * ========================================================= */\n",
" \n",
" !function(t,e){t.Bokeh=e()}(this,function(){var t,e,n;return function(r){function i(t,e){return b.call(t,e)}function o(t,e){var n,r,i,o,s,a,l,u,p,h,c,_=e&&e.split(\"/\"),d=y.map,f=d&&d[\"*\"]||{};if(t&&\".\"===t.charAt(0))if(e){for(_=_.slice(0,_.length-1),t=t.split(\"/\"),s=t.length-1,y.nodeIdCompat&&x.test(t[s])&&(t[s]=t[s].replace(x,\"\")),t=_.concat(t),p=0;p<t.length;p+=1)if(c=t[p],\".\"===c)t.splice(p,1),p-=1;else if(\"..\"===c){if(1===p&&(\"..\"===t[2]||\"..\"===t[0]))break;p>0&&(t.splice(p-1,2),p-=2)}t=t.join(\"/\")}else 0===t.indexOf(\"./\")&&(t=t.substring(2));if((_||f)&&d){for(n=t.split(\"/\"),p=n.length;p>0;p-=1){if(r=n.slice(0,p).join(\"/\"),_)for(h=_.length;h>0;h-=1)if(i=d[_.slice(0,h).join(\"/\")],i&&(i=i[r])){o=i,a=p;break}if(o)break;!l&&f&&f[r]&&(l=f[r],u=p)}!o&&l&&(o=l,a=u),o&&(n.splice(0,a,o),t=n.join(\"/\"))}return t}function s(t,e){return function(){return _.apply(r,w.call(arguments,0).concat([t,e]))}}function a(t){return function(e){return o(e,t)}}function l(t){return function(e){g[t]=e}}function u(t){if(i(m,t)){var e=m[t];delete m[t],v[t]=!0,c.apply(r,e)}if(!i(g,t)&&!i(v,t))throw new Error(\"No \"+t);return g[t]}function p(t){var e,n=t?t.indexOf(\"!\"):-1;return n>-1&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function h(t){return function(){return y&&y.config&&y.config[t]||{}}}var c,_,d,f,g={},m={},y={},v={},b=Object.prototype.hasOwnProperty,w=[].slice,x=/\\.js$/;d=function(t,e){var n,r=p(t),i=r[0];return t=r[1],i&&(i=o(i,e),n=u(i)),i?t=n&&n.normalize?n.normalize(t,a(e)):o(t,e):(t=o(t,e),r=p(t),i=r[0],t=r[1],i&&(n=u(i))),{f:i?i+\"!\"+t:t,n:t,pr:i,p:n}},f={require:function(t){return s(t)},exports:function(t){var e=g[t];return\"undefined\"!=typeof e?e:g[t]={}},module:function(t){return{id:t,uri:\"\",exports:g[t],config:h(t)}}},c=function(t,e,n,o){var a,p,h,c,_,y,b=[],w=typeof n;if(o=o||t,\"undefined\"===w||\"function\"===w){for(e=!e.length&&n.length?[\"require\",\"exports\",\"module\"]:e,_=0;_<e.length;_+=1)if(c=d(e[_],o),p=c.f,\"require\"===p)b[_]=f.require(t);else if(\"exports\"===p)b[_]=f.exports(t),y=!0;else if(\"module\"===p)a=b[_]=f.module(t);else if(i(g,p)||i(m,p)||i(v,p))b[_]=u(p);else{if(!c.p)throw new Error(t+\" missing \"+p);c.p.load(c.n,s(o,!0),l(p),{}),b[_]=g[p]}h=n?n.apply(g[t],b):void 0,t&&(a&&a.exports!==r&&a.exports!==g[t]?g[t]=a.exports:h===r&&y||(g[t]=h))}else t&&(g[t]=n)},t=e=_=function(t,e,n,i,o){if(\"string\"==typeof t)return f[t]?f[t](e):u(d(t,e).f);if(!t.splice){if(y=t,y.deps&&_(y.deps,y.callback),!e)return;e.splice?(t=e,e=n,n=null):t=r}return e=e||function(){},\"function\"==typeof n&&(n=i,i=o),i?c(r,t,e,n):setTimeout(function(){c(r,t,e,n)},4),_},_.config=function(t){return _(t)},t._defined=g,n=function(t,e,n){e.splice||(n=e,e=[]),i(g,t)||i(m,t)||(m[t]=[t,e,n])},n.amd={jQuery:!0}}(),n(\"vendor/almond/almond\",function(){}),function(){var t=this,e=t._,r={},i=Array.prototype,o=Object.prototype,s=Function.prototype,a=i.push,l=i.slice,u=i.concat,p=o.toString,h=o.hasOwnProperty,c=i.forEach,_=i.map,d=i.reduce,f=i.reduceRight,g=i.filter,m=i.every,y=i.some,v=i.indexOf,b=i.lastIndexOf,w=Array.isArray,x=Object.keys,k=s.bind,T=function(t){return t instanceof T?t:this instanceof T?(this._wrapped=t,void 0):new T(t)};\"undefined\"!=typeof exports?(\"undefined\"!=typeof module&&module.exports&&(exports=module.exports=T),exports._=T):t._=T,T.VERSION=\"1.5.2\";var C=T.each=T.forEach=function(t,e,n){if(null!=t)if(c&&t.forEach===c)t.forEach(e,n);else if(t.length===+t.length){for(var i=0,o=t.length;o>i;i++)if(e.call(n,t[i],i,t)===r)return}else for(var s=T.keys(t),i=0,o=s.length;o>i;i++)if(e.call(n,t[s[i]],s[i],t)===r)return};T.map=T.collect=function(t,e,n){var r=[];return null==t?r:_&&t.map===_?t.map(e,n):(C(t,function(t,i,o){r.push(e.call(n,t,i,o))}),r)};var M=\"Reduce of empty array with no initial value\";T.reduce=T.foldl=T.inject=function(t,e,n,r){var i=arguments.length>2;if(null==t&&(t=[]),d&&t.reduce===d)return r&&(e=T.bind(e,r)),i?t.reduce(e,n):t.reduce(e);if(C(t,function(t,o,s){i?n=e.call(r,n,t,o,s):(n=t,i=!0)}),!i)throw new TypeError(M);return n},T.reduceRight=T.foldr=function(t,e,n,r){var i=arguments.length>2;if(null==t&&(t=[]),f&&t.reduceRight===f)return r&&(e=T.bind(e,r)),i?t.reduceRight(e,n):t.reduceRight(e);var o=t.length;if(o!==+o){var s=T.keys(t);o=s.length}if(C(t,function(a,l,u){l=s?s[--o]:--o,i?n=e.call(r,n,t[l],l,u):(n=t[l],i=!0)}),!i)throw new TypeError(M);return n},T.find=T.detect=function(t,e,n){var r;return j(t,function(t,i,o){return e.call(n,t,i,o)?(r=t,!0):void 0}),r},T.filter=T.select=function(t,e,n){var r=[];return null==t?r:g&&t.filter===g?t.filter(e,n):(C(t,function(t,i,o){e.call(n,t,i,o)&&r.push(t)}),r)},T.reject=function(t,e,n){return T.filter(t,function(t,r,i){return!e.call(n,t,r,i)},n)},T.every=T.all=function(t,e,n){e||(e=T.identity);var i=!0;return null==t?i:m&&t.every===m?t.every(e,n):(C(t,function(t,o,s){return(i=i&&e.call(n,t,o,s))?void 0:r}),!!i)};var j=T.some=T.any=function(t,e,n){e||(e=T.identity);var i=!1;return null==t?i:y&&t.some===y?t.some(e,n):(C(t,function(t,o,s){return i||(i=e.call(n,t,o,s))?r:void 0}),!!i)};T.contains=T.include=function(t,e){return null==t?!1:v&&t.indexOf===v?-1!=t.indexOf(e):j(t,function(t){return t===e})},T.invoke=function(t,e){var n=l.call(arguments,2),r=T.isFunction(e);return T.map(t,function(t){return(r?e:t[e]).apply(t,n)})},T.pluck=function(t,e){return T.map(t,function(t){return t[e]})},T.where=function(t,e,n){return T.isEmpty(e)?n?void 0:[]:T[n?\"find\":\"filter\"](t,function(t){for(var n in e)if(e[n]!==t[n])return!1;return!0})},T.findWhere=function(t,e){return T.where(t,e,!0)},T.max=function(t,e,n){if(!e&&T.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.max.apply(Math,t);if(!e&&T.isEmpty(t))return-1/0;var r={computed:-1/0,value:-1/0};return C(t,function(t,i,o){var s=e?e.call(n,t,i,o):t;s>r.computed&&(r={value:t,computed:s})}),r.value},T.min=function(t,e,n){if(!e&&T.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.min.apply(Math,t);if(!e&&T.isEmpty(t))return 1/0;var r={computed:1/0,value:1/0};return C(t,function(t,i,o){var s=e?e.call(n,t,i,o):t;s<r.computed&&(r={value:t,computed:s})}),r.value},T.shuffle=function(t){var e,n=0,r=[];return C(t,function(t){e=T.random(n++),r[n-1]=r[e],r[e]=t}),r},T.sample=function(t,e,n){return arguments.length<2||n?t[T.random(t.length-1)]:T.shuffle(t).slice(0,Math.max(0,e))};var S=function(t){return T.isFunction(t)?t:function(e){return e[t]}};T.sortBy=function(t,e,n){var r=S(e);return T.pluck(T.map(t,function(t,e,i){return{value:t,index:e,criteria:r.call(n,t,e,i)}}).sort(function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(r>n||void 0===r)return-1}return t.index-e.index}),\"value\")};var z=function(t){return function(e,n,r){var i={},o=null==n?T.identity:S(n);return C(e,function(n,s){var a=o.call(r,n,s,e);t(i,a,n)}),i}};T.groupBy=z(function(t,e,n){(T.has(t,e)?t[e]:t[e]=[]).push(n)}),T.indexBy=z(function(t,e,n){t[e]=n}),T.countBy=z(function(t,e){T.has(t,e)?t[e]++:t[e]=1}),T.sortedIndex=function(t,e,n,r){n=null==n?T.identity:S(n);for(var i=n.call(r,e),o=0,s=t.length;s>o;){var a=o+s>>>1;n.call(r,t[a])<i?o=a+1:s=a}return o},T.toArray=function(t){return t?T.isArray(t)?l.call(t):t.length===+t.length?T.map(t,T.identity):T.values(t):[]},T.size=function(t){return null==t?0:t.length===+t.length?t.length:T.keys(t).length},T.first=T.head=T.take=function(t,e,n){return null==t?void 0:null==e||n?t[0]:l.call(t,0,e)},T.initial=function(t,e,n){return l.call(t,0,t.length-(null==e||n?1:e))},T.last=function(t,e,n){return null==t?void 0:null==e||n?t[t.length-1]:l.call(t,Math.max(t.length-e,0))},T.rest=T.tail=T.drop=function(t,e,n){return l.call(t,null==e||n?1:e)},T.compact=function(t){return T.filter(t,T.identity)};var A=function(t,e,n){return e&&T.every(t,T.isArray)?u.apply(n,t):(C(t,function(t){T.isArray(t)||T.isArguments(t)?e?a.apply(n,t):A(t,e,n):n.push(t)}),n)};T.flatten=function(t,e){return A(t,e,[])},T.without=function(t){return T.difference(t,l.call(arguments,1))},T.uniq=T.unique=function(t,e,n,r){T.isFunction(e)&&(r=n,n=e,e=!1);var i=n?T.map(t,n,r):t,o=[],s=[];return C(i,function(n,r){(e?r&&s[s.length-1]===n:T.contains(s,n))||(s.push(n),o.push(t[r]))}),o},T.union=function(){return T.uniq(T.flatten(arguments,!0))},T.intersection=function(t){var e=l.call(arguments,1);return T.filter(T.uniq(t),function(t){return T.every(e,function(e){return T.indexOf(e,t)>=0})})},T.difference=function(t){var e=u.apply(i,l.call(arguments,1));return T.filter(t,function(t){return!T.contains(e,t)})},T.zip=function(){for(var t=T.max(T.pluck(arguments,\"length\").concat(0)),e=new Array(t),n=0;t>n;n++)e[n]=T.pluck(arguments,\"\"+n);return e},T.object=function(t,e){if(null==t)return{};for(var n={},r=0,i=t.length;i>r;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n},T.indexOf=function(t,e,n){if(null==t)return-1;var r=0,i=t.length;if(n){if(\"number\"!=typeof n)return r=T.sortedIndex(t,e),t[r]===e?r:-1;r=0>n?Math.max(0,i+n):n}if(v&&t.indexOf===v)return t.indexOf(e,n);for(;i>r;r++)if(t[r]===e)return r;return-1},T.lastIndexOf=function(t,e,n){if(null==t)return-1;var r=null!=n;if(b&&t.lastIndexOf===b)return r?t.lastIndexOf(e,n):t.lastIndexOf(e);for(var i=r?n:t.length;i--;)if(t[i]===e)return i;return-1},T.range=function(t,e,n){arguments.length<=1&&(e=t||0,t=0),n=arguments[2]||1;for(var r=Math.max(Math.ceil((e-t)/n),0),i=0,o=new Array(r);r>i;)o[i++]=t,t+=n;return o};var N=function(){};T.bind=function(t,e){var n,r;if(k&&t.bind===k)return k.apply(t,l.call(arguments,1));if(!T.isFunction(t))throw new TypeError;return n=l.call(arguments,2),r=function(){if(!(this instanceof r))return t.apply(e,n.concat(l.call(arguments)));N.prototype=t.prototype;var i=new N;N.prototype=null;var o=t.apply(i,n.concat(l.call(arguments)));return Object(o)===o?o:i}},T.partial=function(t){var e=l.call(arguments,1);return function(){return t.apply(this,e.concat(l.call(arguments)))}},T.bindAll=function(t){var e=l.call(arguments,1);if(0===e.length)throw new Error(\"bindAll must be passed function names\");return C(e,function(e){t[e]=T.bind(t[e],t)}),t},T.memoize=function(t,e){var n={};return e||(e=T.identity),function(){var r=e.apply(this,arguments);return T.has(n,r)?n[r]:n[r]=t.apply(this,arguments)}},T.delay=function(t,e){var n=l.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},T.defer=function(t){return T.delay.apply(T,[t,1].concat(l.call(arguments,1)))},T.throttle=function(t,e,n){var r,i,o,s=null,a=0;n||(n={});var l=function(){a=n.leading===!1?0:new Date,s=null,o=t.apply(r,i)};return function(){var u=new Date;a||n.leading!==!1||(a=u);var p=e-(u-a);return r=this,i=arguments,0>=p?(clearTimeout(s),s=null,a=u,o=t.apply(r,i)):s||n.trailing===!1||(s=setTimeout(l,p)),o}},T.debounce=function(t,e,n){var r,i,o,s,a;return function(){o=this,i=arguments,s=new Date;var l=function(){var u=new Date-s;e>u?r=setTimeout(l,e-u):(r=null,n||(a=t.apply(o,i)))},u=n&&!r;return r||(r=setTimeout(l,e)),u&&(a=t.apply(o,i)),a}},T.once=function(t){var e,n=!1;return function(){return n?e:(n=!0,e=t.apply(this,arguments),t=null,e)}},T.wrap=function(t,e){return function(){var n=[t];return a.apply(n,arguments),e.apply(this,n)}},T.compose=function(){var t=arguments;return function(){for(var e=arguments,n=t.length-1;n>=0;n--)e=[t[n].apply(this,e)];return e[0]}},T.after=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}},T.keys=x||function(t){if(t!==Object(t))throw new TypeError(\"Invalid object\");var e=[];for(var n in t)T.has(t,n)&&e.push(n);return e},T.values=function(t){for(var e=T.keys(t),n=e.length,r=new Array(n),i=0;n>i;i++)r[i]=t[e[i]];return r},T.pairs=function(t){for(var e=T.keys(t),n=e.length,r=new Array(n),i=0;n>i;i++)r[i]=[e[i],t[e[i]]];return r},T.invert=function(t){for(var e={},n=T.keys(t),r=0,i=n.length;i>r;r++)e[t[n[r]]]=n[r];return e},T.functions=T.methods=function(t){var e=[];for(var n in t)T.isFunction(t[n])&&e.push(n);return e.sort()},T.extend=function(t){return C(l.call(arguments,1),function(e){if(e)for(var n in e)t[n]=e[n]}),t},T.pick=function(t){var e={},n=u.apply(i,l.call(arguments,1));return C(n,function(n){n in t&&(e[n]=t[n])}),e},T.omit=function(t){var e={},n=u.apply(i,l.call(arguments,1));for(var r in t)T.contains(n,r)||(e[r]=t[r]);return e},T.defaults=function(t){return C(l.call(arguments,1),function(e){if(e)for(var n in e)void 0===t[n]&&(t[n]=e[n])}),t},T.clone=function(t){return T.isObject(t)?T.isArray(t)?t.slice():T.extend({},t):t},T.tap=function(t,e){return e(t),t};var P=function(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof T&&(t=t._wrapped),e instanceof T&&(e=e._wrapped);var i=p.call(t);if(i!=p.call(e))return!1;switch(i){case\"[object String]\":return t==String(e);case\"[object Number]\":return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case\"[object Date]\":case\"[object Boolean]\":return+t==+e;case\"[object RegExp]\":return t.source==e.source&&t.global==e.global&&t.multiline==e.multiline&&t.ignoreCase==e.ignoreCase}if(\"object\"!=typeof t||\"object\"!=typeof e)return!1;for(var o=n.length;o--;)if(n[o]==t)return r[o]==e;var s=t.constructor,a=e.constructor;if(s!==a&&!(T.isFunction(s)&&s instanceof s&&T.isFunction(a)&&a instanceof a))return!1;n.push(t),r.push(e);var l=0,u=!0;if(\"[object Array]\"==i){if(l=t.length,u=l==e.length)for(;l--&&(u=P(t[l],e[l],n,r)););}else{for(var h in t)if(T.has(t,h)&&(l++,!(u=T.has(e,h)&&P(t[h],e[h],n,r))))break;if(u){for(h in e)if(T.has(e,h)&&!l--)break;u=!l}}return n.pop(),r.pop(),u};T.isEqual=function(t,e){return P(t,e,[],[])},T.isEmpty=function(t){if(null==t)return!0;if(T.isArray(t)||T.isString(t))return 0===t.length;for(var e in t)if(T.has(t,e))return!1;return!0},T.isElement=function(t){return!(!t||1!==t.nodeType)},T.isArray=w||function(t){return\"[object Array]\"==p.call(t)},T.isObject=function(t){return t===Object(t)},C([\"Arguments\",\"Function\",\"String\",\"Number\",\"Date\",\"RegExp\"],function(t){T[\"is\"+t]=function(e){return p.call(e)==\"[object \"+t+\"]\"}}),T.isArguments(arguments)||(T.isArguments=function(t){return!(!t||!T.has(t,\"callee\"))}),\"function\"!=typeof/./&&(T.isFunction=function(t){return\"function\"==typeof t}),T.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},T.isNaN=function(t){return T.isNumber(t)&&t!=+t},T.isBoolean=function(t){return t===!0||t===!1||\"[object Boolean]\"==p.call(t)},T.isNull=function(t){return null===t},T.isUndefined=function(t){return void 0===t},T.has=function(t,e){return h.call(t,e)},T.noConflict=function(){return t._=e,this},T.identity=function(t){return t},T.times=function(t,e,n){for(var r=Array(Math.max(0,t)),i=0;t>i;i++)r[i]=e.call(n,i);return r},T.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))};var F={escape:{\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#x27;\"}};F.unescape=T.invert(F.escape);var E={escape:new RegExp(\"[\"+T.keys(F.escape).join(\"\")+\"]\",\"g\"),unescape:new RegExp(\"(\"+T.keys(F.unescape).join(\"|\")+\")\",\"g\")};T.each([\"escape\",\"unescape\"],function(t){T[t]=function(e){return null==e?\"\":(\"\"+e).replace(E[t],function(e){return F[t][e]})}}),T.result=function(t,e){if(null==t)return void 0;var n=t[e];return T.isFunction(n)?n.call(t):n},T.mixin=function(t){C(T.functions(t),function(e){var n=T[e]=t[e];T.prototype[e]=function(){var t=[this._wrapped];return a.apply(t,arguments),B.call(this,n.apply(T,t))}})};var D=0;T.uniqueId=function(t){var e=++D+\"\";return t?t+e:e},T.templateSettings={evaluate:/<%([\\s\\S]+?)%>/g,interpolate:/<%=([\\s\\S]+?)%>/g,escape:/<%-([\\s\\S]+?)%>/g};var $=/(.)^/,O={\"'\":\"'\",\"\\\\\":\"\\\\\",\"\\r\":\"r\",\"\\n\":\"n\",\"\t\":\"t\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},q=/\\\\|'|\\r|\\n|\\t|\\u2028|\\u2029/g;T.template=function(t,e,n){var r;n=T.defaults({},n,T.templateSettings);var i=new RegExp([(n.escape||$).source,(n.interpolate||$).source,(n.evaluate||$).source].join(\"|\")+\"|$\",\"g\"),o=0,s=\"__p+='\";t.replace(i,function(e,n,r,i,a){return s+=t.slice(o,a).replace(q,function(t){return\"\\\\\"+O[t]}),n&&(s+=\"'+\\n((__t=(\"+n+\"))==null?'':_.escape(__t))+\\n'\"),r&&(s+=\"'+\\n((__t=(\"+r+\"))==null?'':__t)+\\n'\"),i&&(s+=\"';\\n\"+i+\"\\n__p+='\"),o=a+e.length,e}),s+=\"';\\n\",n.variable||(s=\"with(obj||{}){\\n\"+s+\"}\\n\"),s=\"var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\\n\"+s+\"return __p;\\n\";try{r=new Function(n.variable||\"obj\",\"_\",s)}catch(a){throw a.source=s,a}if(e)return r(e,T);var l=function(t){return r.call(this,t,T)};return l.source=\"function(\"+(n.variable||\"obj\")+\"){\\n\"+s+\"}\",l},T.chain=function(t){return T(t).chain()};var B=function(t){return this._chain?T(t).chain():t};T.mixin(T),C([\"pop\",\"push\",\"reverse\",\"shift\",\"sort\",\"splice\",\"unshift\"],function(t){var e=i[t];T.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),\"shift\"!=t&&\"splice\"!=t||0!==n.length||delete n[0],B.call(this,n)}}),C([\"concat\",\"join\",\"slice\"],function(t){var e=i[t];T.prototype[t]=function(){return B.call(this,e.apply(this._wrapped,arguments))}}),T.extend(T.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}}),\"function\"==typeof n&&n.amd&&n(\"underscore\",[],function(){return T})}.call(this),function(){n(\"common/custom\",[\"underscore\"],function(t){var e;return e=function(){return t.uniqueId=function(t){var e,n,r,i,o;for(r=[],e=\"0123456789ABCDEF\",n=o=0;31>=o;n=++o)r[n]=e.substr(Math.floor(16*Math.random()),1);return r[12]=\"4\",r[16]=e.substr(8|3&r[16],1),i=r.join(\"\"),t?t+\"-\"+i:i}},t.isNullOrUndefined=function(e){return t.isNull(e)||t.isUndefined(e)},t.setdefault=function(e,n,r){return t.has(e,n)?e[n]:(e[n]=r,r)},{monkey_patch:e}})}.call(this),function(t,e){function r(t){var e=t.length,n=se.type(t);return se.isWindow(t)?!1:1===t.nodeType&&e?!0:\"array\"===n||\"function\"!==n&&(0===e||\"number\"==typeof e&&e>0&&e-1 in t)}function i(t){var e=fe[t]={};return se.each(t.match(le)||[],function(t,n){e[n]=!0}),e}function o(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=se.expando+Math.random()}function s(t,n,r){var i;if(r===e&&1===t.nodeType)if(i=\"data-\"+n.replace(ve,\"-$1\").toLowerCase(),r=t.getAttribute(i),\"string\"==typeof r){try{r=\"true\"===r?!0:\"false\"===r?!1:\"null\"===r?null:+r+\"\"===r?+r:ye.test(r)?JSON.parse(r):r}catch(o){}ge.set(t,n,r)}else r=e;return r}function a(){return!0}function l(){return!1}function u(){try{return G.activeElement}catch(t){}}function p(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function h(t,e,n){if(se.isFunction(e))return se.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return se.grep(t,function(t){return t===e!==n});if(\"string\"==typeof e){if(ze.test(e))return se.filter(e,t,n);e=se.filter(e,t)}return se.grep(t,function(t){return ne.call(e,t)>=0!==n})}function c(t,e){return se.nodeName(t,\"table\")&&se.nodeName(1===e.nodeType?e:e.firstChild,\"tr\")?t.getElementsByTagName(\"tbody\")[0]||t.appendChild(t.ownerDocument.createElement(\"tbody\")):t}function _(t){return t.type=(null!==t.getAttribute(\"type\"))+\"/\"+t.type,t}function d(t){var e=Re.exec(t.type);return e?t.type=e[1]:t.removeAttribute(\"type\"),t}function f(t,e){for(var n=t.length,r=0;n>r;r++)me.set(t[r],\"globalEval\",!e||me.get(e[r],\"globalEval\"))}function g(t,e){var n,r,i,o,s,a,l,u;if(1===e.nodeType){if(me.hasData(t)&&(o=me.access(t),s=me.set(e,o),u=o.events)){delete s.handle,s.events={};for(i in u)for(n=0,r=u[i].length;r>n;n++)se.event.add(e,i,u[i][n])}ge.hasData(t)&&(a=ge.access(t),l=se.extend({},a),ge.set(e,l))}}function m(t,n){var r=t.getElementsByTagName?t.getElementsByTagName(n||\"*\"):t.querySelectorAll?t.querySelectorAll(n||\"*\"):[];return n===e||n&&se.nodeName(t,n)?se.merge([t],r):r}function y(t,e){var n=e.nodeName.toLowerCase();\"input\"===n&&Oe.test(t.type)?e.checked=t.checked:(\"input\"===n||\"textarea\"===n)&&(e.defaultValue=t.defaultValue)}function v(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),r=e,i=tn.length;i--;)if(e=tn[i]+n,e in t)return e;return r}function b(t,e){return t=e||t,\"none\"===se.css(t,\"display\")||!se.contains(t.ownerDocument,t)}function w(e){return t.getComputedStyle(e,null)}function x(t,e){for(var n,r,i,o=[],s=0,a=t.length;a>s;s++)r=t[s],r.style&&(o[s]=me.get(r,\"olddisplay\"),n=r.style.display,e?(o[s]||\"none\"!==n||(r.style.display=\"\"),\"\"===r.style.display&&b(r)&&(o[s]=me.access(r,\"olddisplay\",M(r.nodeName)))):o[s]||(i=b(r),(n&&\"none\"!==n||!i)&&me.set(r,\"olddisplay\",i?n:se.css(r,\"display\"))));for(s=0;a>s;s++)r=t[s],r.style&&(e&&\"none\"!==r.style.display&&\"\"!==r.style.display||(r.style.display=e?o[s]||\"\":\"none\"));return t}function k(t,e,n){var r=We.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||\"px\"):e}function T(t,e,n,r,i){for(var o=n===(r?\"border\":\"content\")?4:\"width\"===e?1:0,s=0;4>o;o+=2)\"margin\"===n&&(s+=se.css(t,n+Ke[o],!0,i)),r?(\"content\"===n&&(s-=se.css(t,\"padding\"+Ke[o],!0,i)),\"margin\"!==n&&(s-=se.css(t,\"border\"+Ke[o]+\"Width\",!0,i))):(s+=se.css(t,\"padding\"+Ke[o],!0,i),\"padding\"!==n&&(s+=se.css(t,\"border\"+Ke[o]+\"Width\",!0,i)));return s}function C(t,e,n){var r=!0,i=\"width\"===e?t.offsetWidth:t.offsetHeight,o=w(t),s=se.support.boxSizing&&\"border-box\"===se.css(t,\"boxSizing\",!1,o);if(0>=i||null==i){if(i=Ie(t,e,o),(0>i||null==i)&&(i=t.style[e]),Ye.test(i))return i;r=s&&(se.support.boxSizingReliable||i===t.style[e]),i=parseFloat(i)||0}return i+T(t,e,n||(s?\"border\":\"content\"),r,o)+\"px\"}function M(t){var e=G,n=Je[t];return n||(n=j(t,e),\"none\"!==n&&n||(He=(He||se(\"<iframe frameborder='0' width='0' height='0'/>\").css(\"cssText\",\"display:block !important\")).appendTo(e.documentElement),e=(He[0].contentWindow||He[0].contentDocument).document,e.write(\"<!doctype html><html><body>\"),e.close(),n=j(t,e),He.detach()),Je[t]=n),n}function j(t,e){var n=se(e.createElement(t)).appendTo(e.body),r=se.css(n[0],\"display\");return n.remove(),r}function S(t,e,n,r){var i;if(se.isArray(e))se.each(e,function(e,i){n||nn.test(t)?r(t,i):S(t+\"[\"+(\"object\"==typeof i?e:\"\")+\"]\",i,n,r)});else if(n||\"object\"!==se.type(e))r(t,e);else for(i in e)S(t+\"[\"+i+\"]\",e[i],n,r)}function z(t){return function(e,n){\"string\"!=typeof e&&(n=e,e=\"*\");var r,i=0,o=e.toLowerCase().match(le)||[];if(se.isFunction(n))for(;r=o[i++];)\"+\"===r[0]?(r=r.slice(1)||\"*\",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function A(t,e,n,r){function i(a){var l;return o[a]=!0,se.each(t[a]||[],function(t,a){var u=a(e,n,r);return\"string\"!=typeof u||s||o[u]?s?!(l=u):void 0:(e.dataTypes.unshift(u),i(u),!1)}),l}var o={},s=t===bn;return i(e.dataTypes[0])||!o[\"*\"]&&i(\"*\")}function N(t,n){var r,i,o=se.ajaxSettings.flatOptions||{};for(r in n)n[r]!==e&&((o[r]?t:i||(i={}))[r]=n[r]);return i&&se.extend(!0,t,i),t}function P(t,n,r){for(var i,o,s,a,l=t.contents,u=t.dataTypes;\"*\"===u[0];)u.shift(),i===e&&(i=t.mimeType||n.getResponseHeader(\"Content-Type\"));if(i)for(o in l)if(l[o]&&l[o].test(i)){u.unshift(o);break}if(u[0]in r)s=u[0];else{for(o in r){if(!u[0]||t.converters[o+\" \"+u[0]]){s=o;break}a||(a=o)}s=s||a}return s?(s!==u[0]&&u.unshift(s),r[s]):void 0}function F(t,e,n,r){var i,o,s,a,l,u={},p=t.dataTypes.slice();if(p[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(o=p.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=p.shift())if(\"*\"===o)o=l;else if(\"*\"!==l&&l!==o){if(s=u[l+\" \"+o]||u[\"* \"+o],!s)for(i in u)if(a=i.split(\" \"),a[1]===o&&(s=u[l+\" \"+a[0]]||u[\"* \"+a[0]])){s===!0?s=u[i]:u[i]!==!0&&(o=a[0],p.unshift(a[1]));break}if(s!==!0)if(s&&t[\"throws\"])e=s(e);else try{e=s(e)}catch(h){return{state:\"parsererror\",error:s?h:\"No conversion from \"+l+\" to \"+o}}}return{state:\"success\",data:e}}function E(){return setTimeout(function(){zn=e}),zn=se.now()}function D(t,e,n){for(var r,i=(Dn[e]||[]).concat(Dn[\"*\"]),o=0,s=i.length;s>o;o++)if(r=i[o].call(n,e,t))return r}function $(t,e,n){var r,i,o=0,s=En.length,a=se.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var e=zn||E(),n=Math.max(0,u.startTime+u.duration-e),r=n/u.duration||0,o=1-r,s=0,l=u.tweens.length;l>s;s++)u.tweens[s].run(o);return a.notifyWith(t,[u,o,n]),1>o&&l?n:(a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:se.extend({},e),opts:se.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:zn||E(),duration:n.duration,tweens:[],createTween:function(e,n){var r=se.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(r),r},stop:function(e){var n=0,r=e?u.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)u.tweens[n].run(1);return e?a.resolveWith(t,[u,e]):a.rejectWith(t,[u,e]),this}}),p=u.props;for(O(p,u.opts.specialEasing);s>o;o++)if(r=En[o].call(u,t,p,u.opts))return r;return se.map(p,D,u),se.isFunction(u.opts.start)&&u.opts.start.call(t,u),se.fx.timer(se.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function O(t,e){var n,r,i,o,s;for(n in t)if(r=se.camelCase(n),i=e[r],o=t[n],se.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),s=se.cssHooks[r],s&&\"expand\"in s){o=s.expand(o),delete t[r];for(n in o)n in t||(t[n]=o[n],e[n]=i)}else e[r]=i}function q(t,n,r){var i,o,s,a,l,u,p=this,h={},c=t.style,_=t.nodeType&&b(t),d=me.get(t,\"fxshow\");r.queue||(l=se._queueHooks(t,\"fx\"),null==l.unqueued&&(l.unqueued=0,u=l.empty.fire,l.empty.fire=function(){l.unqueued||u()}),l.unqueued++,p.always(function(){p.always(function(){l.unqueued--,se.queue(t,\"fx\").length||l.empty.fire()})})),1===t.nodeType&&(\"height\"in n||\"width\"in n)&&(r.overflow=[c.overflow,c.overflowX,c.overflowY],\"inline\"===se.css(t,\"display\")&&\"none\"===se.css(t,\"float\")&&(c.display=\"inline-block\")),r.overflow&&(c.overflow=\"hidden\",p.always(function(){c.overflow=r.overflow[0],c.overflowX=r.overflow[1],c.overflowY=r.overflow[2]}));for(i in n)if(o=n[i],Nn.exec(o)){if(delete n[i],s=s||\"toggle\"===o,o===(_?\"hide\":\"show\")){if(\"show\"!==o||!d||d[i]===e)continue;_=!0}h[i]=d&&d[i]||se.style(t,i)}if(!se.isEmptyObject(h)){d?\"hidden\"in d&&(_=d.hidden):d=me.access(t,\"fxshow\",{}),s&&(d.hidden=!_),_?se(t).show():p.done(function(){se(t).hide()}),p.done(function(){var e;me.remove(t,\"fxshow\");for(e in h)se.style(t,e,h[e])});for(i in h)a=D(_?d[i]:0,i,p),i in d||(d[i]=a.start,_&&(a.end=a.start,a.start=\"width\"===i||\"height\"===i?1:0))}}function B(t,e,n,r,i){return new B.prototype.init(t,e,n,r,i)}function R(t,e){var n,r={height:t},i=0;for(e=e?1:0;4>i;i+=2-e)n=Ke[i],r[\"margin\"+n]=r[\"padding\"+n]=t;return e&&(r.opacity=r.width=t),r}function L(t){return se.isWindow(t)?t:9===t.nodeType&&t.defaultView}var U,I,H=typeof e,V=t.location,G=t.document,W=G.documentElement,Y=t.jQuery,X=t.$,J={},Z=[],Q=\"2.0.3\",K=Z.concat,te=Z.push,ee=Z.slice,ne=Z.indexOf,re=J.toString,ie=J.hasOwnProperty,oe=Q.trim,se=function(t,e){return new se.fn.init(t,e,U)},ae=/[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/.source,le=/\\S+/g,ue=/^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]*))$/,pe=/^<(\\w+)\\s*\\/?>(?:<\\/\\1>|)$/,he=/^-ms-/,ce=/-([\\da-z])/gi,_e=function(t,e){return e.toUpperCase()},de=function(){G.removeEventListener(\"DOMContentLoaded\",de,!1),t.removeEventListener(\"load\",de,!1),se.ready()};se.fn=se.prototype={jquery:Q,constructor:se,init:function(t,n,r){var i,o;if(!t)return this;if(\"string\"==typeof t){if(i=\"<\"===t.charAt(0)&&\">\"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:ue.exec(t),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(t):this.constructor(n).find(t);if(i[1]){if(n=n instanceof se?n[0]:n,se.merge(this,se.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:G,!0)),pe.test(i[1])&&se.isPlainObject(n))for(i in n)se.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}return o=G.getElementById(i[2]),o&&o.parentNode&&(this.length=1,this[0]=o),this.context=G,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):se.isFunction(t)?r.ready(t):(t.selector!==e&&(this.selector=t.selector,this.context=t.context),se.makeArray(t,this))},selector:\"\",length:0,toArray:function(){return ee.call(this)},get:function(t){return null==t?this.toArray():0>t?this[this.length+t]:this[t]},pushStack:function(t){var e=se.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return se.each(this,t,e)},ready:function(t){return se.ready.promise().done(t),this},slice:function(){return this.pushStack(ee.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(0>t?e:0);return this.pushStack(n>=0&&e>n?[this[n]]:[])},map:function(t){return this.pushStack(se.map(this,function(e,n){return t.call(e,n,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:te,sort:[].sort,splice:[].splice},se.fn.init.prototype=se.fn,se.extend=se.fn.extend=function(){var t,n,r,i,o,s,a=arguments[0]||{},l=1,u=arguments.length,p=!1;for(\"boolean\"==typeof a&&(p=a,a=arguments[1]||{},l=2),\"object\"==typeof a||se.isFunction(a)||(a={}),u===l&&(a=this,--l);u>l;l++)if(null!=(t=arguments[l]))for(n in t)r=a[n],i=t[n],a!==i&&(p&&i&&(se.isPlainObject(i)||(o=se.isArray(i)))?(o?(o=!1,s=r&&se.isArray(r)?r:[]):s=r&&se.isPlainObject(r)?r:{},a[n]=se.extend(p,s,i)):i!==e&&(a[n]=i));return a},se.extend({expando:\"jQuery\"+(Q+Math.random()).replace(/\\D/g,\"\"),noConflict:function(e){return t.$===se&&(t.$=X),e&&t.jQuery===se&&(t.jQuery=Y),se},isReady:!1,readyWait:1,holdReady:function(t){t?se.readyWait++:se.ready(!0)},ready:function(t){(t===!0?--se.readyWait:se.isReady)||(se.isReady=!0,t!==!0&&--se.readyWait>0||(I.resolveWith(G,[se]),se.fn.trigger&&se(G).trigger(\"ready\").off(\"ready\")))},isFunction:function(t){return\"function\"===se.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},type:function(t){return null==t?String(t):\"object\"==typeof t||\"function\"==typeof t?J[re.call(t)]||\"object\":typeof t},isPlainObject:function(t){if(\"object\"!==se.type(t)||t.nodeType||se.isWindow(t))return!1;try{if(t.constructor&&!ie.call(t.constructor.prototype,\"isPrototypeOf\"))return!1}catch(e){return!1}return!0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},error:function(t){throw new Error(t)},parseHTML:function(t,e,n){if(!t||\"string\"!=typeof t)return null;\"boolean\"==typeof e&&(n=e,e=!1),e=e||G;var r=pe.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=se.buildFragment([t],e,i),i&&se(i).remove(),se.merge([],r.childNodes))},parseJSON:JSON.parse,parseXML:function(t){var n,r;if(!t||\"string\"!=typeof t)return null;try{r=new DOMParser,n=r.parseFromString(t,\"text/xml\")}catch(i){n=e}return(!n||n.getElementsByTagName(\"parsererror\").length)&&se.error(\"Invalid XML: \"+t),n},noop:function(){},globalEval:function(t){var e,n=eval;t=se.trim(t),t&&(1===t.indexOf(\"use strict\")?(e=G.createElement(\"script\"),e.text=t,G.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(he,\"ms-\").replace(ce,_e)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var i,o=0,s=t.length,a=r(t);if(n){if(a)for(;s>o&&(i=e.apply(t[o],n),i!==!1);o++);else for(o in t)if(i=e.apply(t[o],n),i===!1)break}else if(a)for(;s>o&&(i=e.call(t[o],o,t[o]),i!==!1);o++);else for(o in t)if(i=e.call(t[o],o,t[o]),i===!1)break;return t},trim:function(t){return null==t?\"\":oe.call(t)},makeArray:function(t,e){var n=e||[];return null!=t&&(r(Object(t))?se.merge(n,\"string\"==typeof t?[t]:t):te.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:ne.call(e,t,n)},merge:function(t,n){var r=n.length,i=t.length,o=0;if(\"number\"==typeof r)for(;r>o;o++)t[i++]=n[o];else for(;n[o]!==e;)t[i++]=n[o++];return t.length=i,t},grep:function(t,e,n){var r,i=[],o=0,s=t.length;for(n=!!n;s>o;o++)r=!!e(t[o],o),n!==r&&i.push(t[o]);return i},map:function(t,e,n){var i,o=0,s=t.length,a=r(t),l=[];if(a)for(;s>o;o++)i=e(t[o],o,n),null!=i&&(l[l.length]=i);else for(o in t)i=e(t[o],o,n),null!=i&&(l[l.length]=i);return K.apply([],l)},guid:1,proxy:function(t,n){var r,i,o;return\"string\"==typeof n&&(r=t[n],n=t,t=r),se.isFunction(t)?(i=ee.call(arguments,2),o=function(){return t.apply(n||this,i.concat(ee.call(arguments)))},o.guid=t.guid=t.guid||se.guid++,o):e},access:function(t,n,r,i,o,s,a){var l=0,u=t.length,p=null==r;if(\"object\"===se.type(r)){o=!0;for(l in r)se.access(t,n,l,r[l],!0,s,a)}else if(i!==e&&(o=!0,se.isFunction(i)||(a=!0),p&&(a?(n.call(t,i),n=null):(p=n,n=function(t,e,n){return p.call(se(t),n)\n",
" })),n))for(;u>l;l++)n(t[l],r,a?i:i.call(t[l],l,n(t[l],r)));return o?t:p?n.call(t):u?n(t[0],r):s},now:Date.now,swap:function(t,e,n,r){var i,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];i=n.apply(t,r||[]);for(o in e)t.style[o]=s[o];return i}}),se.ready.promise=function(e){return I||(I=se.Deferred(),\"complete\"===G.readyState?setTimeout(se.ready):(G.addEventListener(\"DOMContentLoaded\",de,!1),t.addEventListener(\"load\",de,!1))),I.promise(e)},se.each(\"Boolean Number String Function Array Date RegExp Object Error\".split(\" \"),function(t,e){J[\"[object \"+e+\"]\"]=e.toLowerCase()}),U=se(G),function(t,e){function n(t,e,n,r){var i,o,s,a,l,u,p,h,d,f;if((e?e.ownerDocument||e:R)!==P&&N(e),e=e||P,n=n||[],!t||\"string\"!=typeof t)return n;if(1!==(a=e.nodeType)&&9!==a)return[];if(E&&!r){if(i=ve.exec(t))if(s=i[1]){if(9===a){if(o=e.getElementById(s),!o||!o.parentNode)return n;if(o.id===s)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(s))&&q(e,o)&&o.id===s)return n.push(o),n}else{if(i[2])return te.apply(n,e.getElementsByTagName(t)),n;if((s=i[3])&&k.getElementsByClassName&&e.getElementsByClassName)return te.apply(n,e.getElementsByClassName(s)),n}if(k.qsa&&(!D||!D.test(t))){if(h=p=B,d=e,f=9===a&&t,1===a&&\"object\"!==e.nodeName.toLowerCase()){for(u=c(t),(p=e.getAttribute(\"id\"))?h=p.replace(xe,\"\\\\$&\"):e.setAttribute(\"id\",h),h=\"[id='\"+h+\"'] \",l=u.length;l--;)u[l]=h+_(u[l]);d=_e.test(t)&&e.parentNode||e,f=u.join(\",\")}if(f)try{return te.apply(n,d.querySelectorAll(f)),n}catch(g){}finally{p||e.removeAttribute(\"id\")}}}return w(t.replace(pe,\"$1\"),e,n,r)}function r(){function t(n,r){return e.push(n+=\" \")>C.cacheLength&&delete t[e.shift()],t[n]=r}var e=[];return t}function i(t){return t[B]=!0,t}function o(t){var e=P.createElement(\"div\");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function s(t,e){for(var n=t.split(\"|\"),r=t.length;r--;)C.attrHandle[n[r]]=e}function a(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||X)-(~t.sourceIndex||X);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function l(t){return function(e){var n=e.nodeName.toLowerCase();return\"input\"===n&&e.type===t}}function u(t){return function(e){var n=e.nodeName.toLowerCase();return(\"input\"===n||\"button\"===n)&&e.type===t}}function p(t){return i(function(e){return e=+e,i(function(n,r){for(var i,o=t([],n.length,e),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function h(){}function c(t,e){var r,i,o,s,a,l,u,p=H[t+\" \"];if(p)return e?0:p.slice(0);for(a=t,l=[],u=C.preFilter;a;){(!r||(i=he.exec(a)))&&(i&&(a=a.slice(i[0].length)||a),l.push(o=[])),r=!1,(i=ce.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(pe,\" \")}),a=a.slice(r.length));for(s in C.filter)!(i=me[s].exec(a))||u[s]&&!(i=u[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return e?a.length:a?n.error(t):H(t,l).slice(0)}function _(t){for(var e=0,n=t.length,r=\"\";n>e;e++)r+=t[e].value;return r}function d(t,e,n){var r=e.dir,i=n&&\"parentNode\"===r,o=U++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,s){var a,l,u,p=L+\" \"+o;if(s){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,s))return!0}else for(;e=e[r];)if(1===e.nodeType||i)if(u=e[B]||(e[B]={}),(l=u[r])&&l[0]===p){if((a=l[1])===!0||a===T)return a===!0}else if(l=u[r]=[p],l[1]=t(e,n,s)||T,l[1]===!0)return!0}}function f(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function g(t,e,n,r,i){for(var o,s=[],a=0,l=t.length,u=null!=e;l>a;a++)(o=t[a])&&(!n||n(o,r,i))&&(s.push(o),u&&e.push(a));return s}function m(t,e,n,r,o,s){return r&&!r[B]&&(r=m(r)),o&&!o[B]&&(o=m(o,s)),i(function(i,s,a,l){var u,p,h,c=[],_=[],d=s.length,f=i||b(e||\"*\",a.nodeType?[a]:a,[]),m=!t||!i&&e?f:g(f,c,t,a,l),y=n?o||(i?t:d||r)?[]:s:m;if(n&&n(m,y,a,l),r)for(u=g(y,_),r(u,[],a,l),p=u.length;p--;)(h=u[p])&&(y[_[p]]=!(m[_[p]]=h));if(i){if(o||t){if(o){for(u=[],p=y.length;p--;)(h=y[p])&&u.push(m[p]=h);o(null,y=[],u,l)}for(p=y.length;p--;)(h=y[p])&&(u=o?ne.call(i,h):c[p])>-1&&(i[u]=!(s[u]=h))}}else y=g(y===s?y.splice(d,y.length):y),o?o(null,s,y,l):te.apply(s,y)})}function y(t){for(var e,n,r,i=t.length,o=C.relative[t[0].type],s=o||C.relative[\" \"],a=o?1:0,l=d(function(t){return t===e},s,!0),u=d(function(t){return ne.call(e,t)>-1},s,!0),p=[function(t,n,r){return!o&&(r||n!==z)||((e=n).nodeType?l(t,n,r):u(t,n,r))}];i>a;a++)if(n=C.relative[t[a].type])p=[d(f(p),n)];else{if(n=C.filter[t[a].type].apply(null,t[a].matches),n[B]){for(r=++a;i>r&&!C.relative[t[r].type];r++);return m(a>1&&f(p),a>1&&_(t.slice(0,a-1).concat({value:\" \"===t[a-2].type?\"*\":\"\"})).replace(pe,\"$1\"),n,r>a&&y(t.slice(a,r)),i>r&&y(t=t.slice(r)),i>r&&_(t))}p.push(n)}return f(p)}function v(t,e){var r=0,o=e.length>0,s=t.length>0,a=function(i,a,l,u,p){var h,c,_,d=[],f=0,m=\"0\",y=i&&[],v=null!=p,b=z,w=i||s&&C.find.TAG(\"*\",p&&a.parentNode||a),x=L+=null==b?1:Math.random()||.1;for(v&&(z=a!==P&&a,T=r);null!=(h=w[m]);m++){if(s&&h){for(c=0;_=t[c++];)if(_(h,a,l)){u.push(h);break}v&&(L=x,T=++r)}o&&((h=!_&&h)&&f--,i&&y.push(h))}if(f+=m,o&&m!==f){for(c=0;_=e[c++];)_(y,d,a,l);if(i){if(f>0)for(;m--;)y[m]||d[m]||(d[m]=Q.call(u));d=g(d)}te.apply(u,d),v&&!i&&d.length>0&&f+e.length>1&&n.uniqueSort(u)}return v&&(L=x,z=b),y};return o?i(a):a}function b(t,e,r){for(var i=0,o=e.length;o>i;i++)n(t,e[i],r);return r}function w(t,e,n,r){var i,o,s,a,l,u=c(t);if(!r&&1===u.length){if(o=u[0]=u[0].slice(0),o.length>2&&\"ID\"===(s=o[0]).type&&k.getById&&9===e.nodeType&&E&&C.relative[o[1].type]){if(e=(C.find.ID(s.matches[0].replace(ke,Te),e)||[])[0],!e)return n;t=t.slice(o.shift().value.length)}for(i=me.needsContext.test(t)?0:o.length;i--&&(s=o[i],!C.relative[a=s.type]);)if((l=C.find[a])&&(r=l(s.matches[0].replace(ke,Te),_e.test(o[0].type)&&e.parentNode||e))){if(o.splice(i,1),t=r.length&&_(o),!t)return te.apply(n,r),n;break}}return S(t,u)(r,e,!E,n,_e.test(t)),n}var x,k,T,C,M,j,S,z,A,N,P,F,E,D,$,O,q,B=\"sizzle\"+-new Date,R=t.document,L=0,U=0,I=r(),H=r(),V=r(),G=!1,W=function(t,e){return t===e?(G=!0,0):0},Y=typeof e,X=1<<31,J={}.hasOwnProperty,Z=[],Q=Z.pop,K=Z.push,te=Z.push,ee=Z.slice,ne=Z.indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(this[e]===t)return e;return-1},re=\"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\",ie=\"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",oe=\"(?:\\\\\\\\.|[\\\\w-]|[^\\\\x00-\\\\xa0])+\",ae=oe.replace(\"w\",\"w#\"),le=\"\\\\[\"+ie+\"*(\"+oe+\")\"+ie+\"*(?:([*^$|!~]?=)\"+ie+\"*(?:(['\\\"])((?:\\\\\\\\.|[^\\\\\\\\])*?)\\\\3|(\"+ae+\")|)|)\"+ie+\"*\\\\]\",ue=\":(\"+oe+\")(?:\\\\(((['\\\"])((?:\\\\\\\\.|[^\\\\\\\\])*?)\\\\3|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\"+le.replace(3,8)+\")*)|.*)\\\\)|)\",pe=new RegExp(\"^\"+ie+\"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\"+ie+\"+$\",\"g\"),he=new RegExp(\"^\"+ie+\"*,\"+ie+\"*\"),ce=new RegExp(\"^\"+ie+\"*([>+~]|\"+ie+\")\"+ie+\"*\"),_e=new RegExp(ie+\"*[+~]\"),de=new RegExp(\"=\"+ie+\"*([^\\\\]'\\\"]*)\"+ie+\"*\\\\]\",\"g\"),fe=new RegExp(ue),ge=new RegExp(\"^\"+ae+\"$\"),me={ID:new RegExp(\"^#(\"+oe+\")\"),CLASS:new RegExp(\"^\\\\.(\"+oe+\")\"),TAG:new RegExp(\"^(\"+oe.replace(\"w\",\"w*\")+\")\"),ATTR:new RegExp(\"^\"+le),PSEUDO:new RegExp(\"^\"+ue),CHILD:new RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+ie+\"*(even|odd|(([+-]|)(\\\\d*)n|)\"+ie+\"*(?:([+-]|)\"+ie+\"*(\\\\d+)|))\"+ie+\"*\\\\)|)\",\"i\"),bool:new RegExp(\"^(?:\"+re+\")$\",\"i\"),needsContext:new RegExp(\"^\"+ie+\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\"+ie+\"*((?:-\\\\d)?\\\\d*)\"+ie+\"*\\\\)|)(?=[^-]|$)\",\"i\")},ye=/^[^{]+\\{\\s*\\[native \\w/,ve=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,be=/^(?:input|select|textarea|button)$/i,we=/^h\\d$/i,xe=/'|\\\\/g,ke=new RegExp(\"\\\\\\\\([\\\\da-f]{1,6}\"+ie+\"?|(\"+ie+\")|.)\",\"ig\"),Te=function(t,e,n){var r=\"0x\"+e-65536;return r!==r||n?e:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{te.apply(Z=ee.call(R.childNodes),R.childNodes),Z[R.childNodes.length].nodeType}catch(Ce){te={apply:Z.length?function(t,e){K.apply(t,ee.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}j=n.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?\"HTML\"!==e.nodeName:!1},k=n.support={},N=n.setDocument=function(t){var e=t?t.ownerDocument||t:R,n=e.defaultView;return e!==P&&9===e.nodeType&&e.documentElement?(P=e,F=e.documentElement,E=!j(e),n&&n.attachEvent&&n!==n.top&&n.attachEvent(\"onbeforeunload\",function(){N()}),k.attributes=o(function(t){return t.className=\"i\",!t.getAttribute(\"className\")}),k.getElementsByTagName=o(function(t){return t.appendChild(e.createComment(\"\")),!t.getElementsByTagName(\"*\").length}),k.getElementsByClassName=o(function(t){return t.innerHTML=\"<div class='a'></div><div class='a i'></div>\",t.firstChild.className=\"i\",2===t.getElementsByClassName(\"i\").length}),k.getById=o(function(t){return F.appendChild(t).id=B,!e.getElementsByName||!e.getElementsByName(B).length}),k.getById?(C.find.ID=function(t,e){if(typeof e.getElementById!==Y&&E){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},C.filter.ID=function(t){var e=t.replace(ke,Te);return function(t){return t.getAttribute(\"id\")===e}}):(delete C.find.ID,C.filter.ID=function(t){var e=t.replace(ke,Te);return function(t){var n=typeof t.getAttributeNode!==Y&&t.getAttributeNode(\"id\");return n&&n.value===e}}),C.find.TAG=k.getElementsByTagName?function(t,e){return typeof e.getElementsByTagName!==Y?e.getElementsByTagName(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if(\"*\"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},C.find.CLASS=k.getElementsByClassName&&function(t,e){return typeof e.getElementsByClassName!==Y&&E?e.getElementsByClassName(t):void 0},$=[],D=[],(k.qsa=ye.test(e.querySelectorAll))&&(o(function(t){t.innerHTML=\"<select><option selected=''></option></select>\",t.querySelectorAll(\"[selected]\").length||D.push(\"\\\\[\"+ie+\"*(?:value|\"+re+\")\"),t.querySelectorAll(\":checked\").length||D.push(\":checked\")}),o(function(t){var n=e.createElement(\"input\");n.setAttribute(\"type\",\"hidden\"),t.appendChild(n).setAttribute(\"t\",\"\"),t.querySelectorAll(\"[t^='']\").length&&D.push(\"[*^$]=\"+ie+\"*(?:''|\\\"\\\")\"),t.querySelectorAll(\":enabled\").length||D.push(\":enabled\",\":disabled\"),t.querySelectorAll(\"*,:x\"),D.push(\",.*:\")})),(k.matchesSelector=ye.test(O=F.webkitMatchesSelector||F.mozMatchesSelector||F.oMatchesSelector||F.msMatchesSelector))&&o(function(t){k.disconnectedMatch=O.call(t,\"div\"),O.call(t,\"[s!='']:x\"),$.push(\"!=\",ue)}),D=D.length&&new RegExp(D.join(\"|\")),$=$.length&&new RegExp($.join(\"|\")),q=ye.test(F.contains)||F.compareDocumentPosition?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},W=F.compareDocumentPosition?function(t,n){if(t===n)return G=!0,0;var r=n.compareDocumentPosition&&t.compareDocumentPosition&&t.compareDocumentPosition(n);return r?1&r||!k.sortDetached&&n.compareDocumentPosition(t)===r?t===e||q(R,t)?-1:n===e||q(R,n)?1:A?ne.call(A,t)-ne.call(A,n):0:4&r?-1:1:t.compareDocumentPosition?-1:1}:function(t,n){var r,i=0,o=t.parentNode,s=n.parentNode,l=[t],u=[n];if(t===n)return G=!0,0;if(!o||!s)return t===e?-1:n===e?1:o?-1:s?1:A?ne.call(A,t)-ne.call(A,n):0;if(o===s)return a(t,n);for(r=t;r=r.parentNode;)l.unshift(r);for(r=n;r=r.parentNode;)u.unshift(r);for(;l[i]===u[i];)i++;return i?a(l[i],u[i]):l[i]===R?-1:u[i]===R?1:0},e):P},n.matches=function(t,e){return n(t,null,null,e)},n.matchesSelector=function(t,e){if((t.ownerDocument||t)!==P&&N(t),e=e.replace(de,\"='$1']\"),!(!k.matchesSelector||!E||$&&$.test(e)||D&&D.test(e)))try{var r=O.call(t,e);if(r||k.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(i){}return n(e,P,null,[t]).length>0},n.contains=function(t,e){return(t.ownerDocument||t)!==P&&N(t),q(t,e)},n.attr=function(t,n){(t.ownerDocument||t)!==P&&N(t);var r=C.attrHandle[n.toLowerCase()],i=r&&J.call(C.attrHandle,n.toLowerCase())?r(t,n,!E):e;return i===e?k.attributes||!E?t.getAttribute(n):(i=t.getAttributeNode(n))&&i.specified?i.value:null:i},n.error=function(t){throw new Error(\"Syntax error, unrecognized expression: \"+t)},n.uniqueSort=function(t){var e,n=[],r=0,i=0;if(G=!k.detectDuplicates,A=!k.sortStable&&t.slice(0),t.sort(W),G){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return t},M=n.getText=function(t){var e,n=\"\",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if(\"string\"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=M(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r];r++)n+=M(e);return n},C=n.selectors={cacheLength:50,createPseudo:i,match:me,attrHandle:{},find:{},relative:{\">\":{dir:\"parentNode\",first:!0},\" \":{dir:\"parentNode\"},\"+\":{dir:\"previousSibling\",first:!0},\"~\":{dir:\"previousSibling\"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(ke,Te),t[3]=(t[4]||t[5]||\"\").replace(ke,Te),\"~=\"===t[2]&&(t[3]=\" \"+t[3]+\" \"),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),\"nth\"===t[1].slice(0,3)?(t[3]||n.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*(\"even\"===t[3]||\"odd\"===t[3])),t[5]=+(t[7]+t[8]||\"odd\"===t[3])):t[3]&&n.error(t[0]),t},PSEUDO:function(t){var n,r=!t[5]&&t[2];return me.CHILD.test(t[0])?null:(t[3]&&t[4]!==e?t[2]=t[4]:r&&fe.test(r)&&(n=c(r,!0))&&(n=r.indexOf(\")\",r.length-n)-r.length)&&(t[0]=t[0].slice(0,n),t[2]=r.slice(0,n)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(ke,Te).toLowerCase();return\"*\"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=I[t+\" \"];return e||(e=new RegExp(\"(^|\"+ie+\")\"+t+\"(\"+ie+\"|$)\"))&&I(t,function(t){return e.test(\"string\"==typeof t.className&&t.className||typeof t.getAttribute!==Y&&t.getAttribute(\"class\")||\"\")})},ATTR:function(t,e,r){return function(i){var o=n.attr(i,t);return null==o?\"!=\"===e:e?(o+=\"\",\"=\"===e?o===r:\"!=\"===e?o!==r:\"^=\"===e?r&&0===o.indexOf(r):\"*=\"===e?r&&o.indexOf(r)>-1:\"$=\"===e?r&&o.slice(-r.length)===r:\"~=\"===e?(\" \"+o+\" \").indexOf(r)>-1:\"|=\"===e?o===r||o.slice(0,r.length+1)===r+\"-\":!1):!0}},CHILD:function(t,e,n,r,i){var o=\"nth\"!==t.slice(0,3),s=\"last\"!==t.slice(-4),a=\"of-type\"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,l){var u,p,h,c,_,d,f=o!==s?\"nextSibling\":\"previousSibling\",g=e.parentNode,m=a&&e.nodeName.toLowerCase(),y=!l&&!a;if(g){if(o){for(;f;){for(h=e;h=h[f];)if(a?h.nodeName.toLowerCase()===m:1===h.nodeType)return!1;d=f=\"only\"===t&&!d&&\"nextSibling\"}return!0}if(d=[s?g.firstChild:g.lastChild],s&&y){for(p=g[B]||(g[B]={}),u=p[t]||[],_=u[0]===L&&u[1],c=u[0]===L&&u[2],h=_&&g.childNodes[_];h=++_&&h&&h[f]||(c=_=0)||d.pop();)if(1===h.nodeType&&++c&&h===e){p[t]=[L,_,c];break}}else if(y&&(u=(e[B]||(e[B]={}))[t])&&u[0]===L)c=u[1];else for(;(h=++_&&h&&h[f]||(c=_=0)||d.pop())&&((a?h.nodeName.toLowerCase()!==m:1!==h.nodeType)||!++c||(y&&((h[B]||(h[B]={}))[t]=[L,c]),h!==e)););return c-=i,c===r||0===c%r&&c/r>=0}}},PSEUDO:function(t,e){var r,o=C.pseudos[t]||C.setFilters[t.toLowerCase()]||n.error(\"unsupported pseudo: \"+t);return o[B]?o(e):o.length>1?(r=[t,t,\"\",e],C.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,n){for(var r,i=o(t,e),s=i.length;s--;)r=ne.call(t,i[s]),t[r]=!(n[r]=i[s])}):function(t){return o(t,0,r)}):o}},pseudos:{not:i(function(t){var e=[],n=[],r=S(t.replace(pe,\"$1\"));return r[B]?i(function(t,e,n,i){for(var o,s=r(t,null,i,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),!n.pop()}}),has:i(function(t){return function(e){return n(t,e).length>0}}),contains:i(function(t){return function(e){return(e.textContent||e.innerText||M(e)).indexOf(t)>-1}}),lang:i(function(t){return ge.test(t||\"\")||n.error(\"unsupported lang: \"+t),t=t.replace(ke,Te).toLowerCase(),function(e){var n;do if(n=E?e.lang:e.getAttribute(\"xml:lang\")||e.getAttribute(\"lang\"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+\"-\");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===F},focus:function(t){return t===P.activeElement&&(!P.hasFocus||P.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return\"input\"===e&&!!t.checked||\"option\"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeName>\"@\"||3===t.nodeType||4===t.nodeType)return!1;return!0},parent:function(t){return!C.pseudos.empty(t)},header:function(t){return we.test(t.nodeName)},input:function(t){return be.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return\"input\"===e&&\"button\"===t.type||\"button\"===e},text:function(t){var e;return\"input\"===t.nodeName.toLowerCase()&&\"text\"===t.type&&(null==(e=t.getAttribute(\"type\"))||e.toLowerCase()===t.type)},first:p(function(){return[0]}),last:p(function(t,e){return[e-1]}),eq:p(function(t,e,n){return[0>n?n+e:n]}),even:p(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:p(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:p(function(t,e,n){for(var r=0>n?n+e:n;--r>=0;)t.push(r);return t}),gt:p(function(t,e,n){for(var r=0>n?n+e:n;++r<e;)t.push(r);return t})}},C.pseudos.nth=C.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[x]=l(x);for(x in{submit:!0,reset:!0})C.pseudos[x]=u(x);h.prototype=C.filters=C.pseudos,C.setFilters=new h,S=n.compile=function(t,e){var n,r=[],i=[],o=V[t+\" \"];if(!o){for(e||(e=c(t)),n=e.length;n--;)o=y(e[n]),o[B]?r.push(o):i.push(o);o=V(t,v(i,r))}return o},k.sortStable=B.split(\"\").sort(W).join(\"\")===B,k.detectDuplicates=G,N(),k.sortDetached=o(function(t){return 1&t.compareDocumentPosition(P.createElement(\"div\"))}),o(function(t){return t.innerHTML=\"<a href='#'></a>\",\"#\"===t.firstChild.getAttribute(\"href\")})||s(\"type|href|height|width\",function(t,e,n){return n?void 0:t.getAttribute(e,\"type\"===e.toLowerCase()?1:2)}),k.attributes&&o(function(t){return t.innerHTML=\"<input/>\",t.firstChild.setAttribute(\"value\",\"\"),\"\"===t.firstChild.getAttribute(\"value\")})||s(\"value\",function(t,e,n){return n||\"input\"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),o(function(t){return null==t.getAttribute(\"disabled\")})||s(re,function(t,e,n){var r;return n?void 0:(r=t.getAttributeNode(e))&&r.specified?r.value:t[e]===!0?e.toLowerCase():null}),se.find=n,se.expr=n.selectors,se.expr[\":\"]=se.expr.pseudos,se.unique=n.uniqueSort,se.text=n.getText,se.isXMLDoc=n.isXML,se.contains=n.contains}(t);var fe={};se.Callbacks=function(t){t=\"string\"==typeof t?fe[t]||i(t):se.extend({},t);var n,r,o,s,a,l,u=[],p=!t.once&&[],h=function(e){for(n=t.memory&&e,r=!0,l=s||0,s=0,a=u.length,o=!0;u&&a>l;l++)if(u[l].apply(e[0],e[1])===!1&&t.stopOnFalse){n=!1;break}o=!1,u&&(p?p.length&&h(p.shift()):n?u=[]:c.disable())},c={add:function(){if(u){var e=u.length;!function r(e){se.each(e,function(e,n){var i=se.type(n);\"function\"===i?t.unique&&c.has(n)||u.push(n):n&&n.length&&\"string\"!==i&&r(n)})}(arguments),o?a=u.length:n&&(s=e,h(n))}return this},remove:function(){return u&&se.each(arguments,function(t,e){for(var n;(n=se.inArray(e,u,n))>-1;)u.splice(n,1),o&&(a>=n&&a--,l>=n&&l--)}),this},has:function(t){return t?se.inArray(t,u)>-1:!(!u||!u.length)},empty:function(){return u=[],a=0,this},disable:function(){return u=p=n=e,this},disabled:function(){return!u},lock:function(){return p=e,n||c.disable(),this},locked:function(){return!p},fireWith:function(t,e){return!u||r&&!p||(e=e||[],e=[t,e.slice?e.slice():e],o?p.push(e):h(e)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},se.extend({Deferred:function(t){var e=[[\"resolve\",\"done\",se.Callbacks(\"once memory\"),\"resolved\"],[\"reject\",\"fail\",se.Callbacks(\"once memory\"),\"rejected\"],[\"notify\",\"progress\",se.Callbacks(\"memory\")]],n=\"pending\",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return se.Deferred(function(n){se.each(e,function(e,o){var s=o[0],a=se.isFunction(t[e])&&t[e];i[o[1]](function(){var t=a&&a.apply(this,arguments);t&&se.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+\"With\"](this===r?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?se.extend(t,r):r}},i={};return r.pipe=r.then,se.each(e,function(t,o){var s=o[2],a=o[3];r[o[1]]=s.add,a&&s.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+\"With\"](this===i?r:this,arguments),this},i[o[0]+\"With\"]=s.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=ee.call(arguments),s=o.length,a=1!==s||t&&se.isFunction(t.promise)?s:0,l=1===a?t:se.Deferred(),u=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?ee.call(arguments):i,r===e?l.notifyWith(n,r):--a||l.resolveWith(n,r)}};if(s>1)for(e=new Array(s),n=new Array(s),r=new Array(s);s>i;i++)o[i]&&se.isFunction(o[i].promise)?o[i].promise().done(u(i,r,o)).fail(l.reject).progress(u(i,n,e)):--a;return a||l.resolveWith(r,o),l.promise()}}),se.support=function(e){var n=G.createElement(\"input\"),r=G.createDocumentFragment(),i=G.createElement(\"div\"),o=G.createElement(\"select\"),s=o.appendChild(G.createElement(\"option\"));return n.type?(n.type=\"checkbox\",e.checkOn=\"\"!==n.value,e.optSelected=s.selected,e.reliableMarginRight=!0,e.boxSizingReliable=!0,e.pixelPosition=!1,n.checked=!0,e.noCloneChecked=n.cloneNode(!0).checked,o.disabled=!0,e.optDisabled=!s.disabled,n=G.createElement(\"input\"),n.value=\"t\",n.type=\"radio\",e.radioValue=\"t\"===n.value,n.setAttribute(\"checked\",\"t\"),n.setAttribute(\"name\",\"t\"),r.appendChild(n),e.checkClone=r.cloneNode(!0).cloneNode(!0).lastChild.checked,e.focusinBubbles=\"onfocusin\"in t,i.style.backgroundClip=\"content-box\",i.cloneNode(!0).style.backgroundClip=\"\",e.clearCloneStyle=\"content-box\"===i.style.backgroundClip,se(function(){var n,r,o=\"padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box\",s=G.getElementsByTagName(\"body\")[0];s&&(n=G.createElement(\"div\"),n.style.cssText=\"border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px\",s.appendChild(n).appendChild(i),i.innerHTML=\"\",i.style.cssText=\"-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%\",se.swap(s,null!=s.style.zoom?{zoom:1}:{},function(){e.boxSizing=4===i.offsetWidth}),t.getComputedStyle&&(e.pixelPosition=\"1%\"!==(t.getComputedStyle(i,null)||{}).top,e.boxSizingReliable=\"4px\"===(t.getComputedStyle(i,null)||{width:\"4px\"}).width,r=i.appendChild(G.createElement(\"div\")),r.style.cssText=i.style.cssText=o,r.style.marginRight=r.style.width=\"0\",i.style.width=\"1px\",e.reliableMarginRight=!parseFloat((t.getComputedStyle(r,null)||{}).marginRight)),s.removeChild(n))}),e):e}({});var ge,me,ye=/(?:\\{[\\s\\S]*\\}|\\[[\\s\\S]*\\])$/,ve=/([A-Z])/g;o.uid=1,o.accepts=function(t){return t.nodeType?1===t.nodeType||9===t.nodeType:!0},o.prototype={key:function(t){if(!o.accepts(t))return 0;var e={},n=t[this.expando];if(!n){n=o.uid++;try{e[this.expando]={value:n},Object.defineProperties(t,e)}catch(r){e[this.expando]=n,se.extend(t,e)}}return this.cache[n]||(this.cache[n]={}),n},set:function(t,e,n){var r,i=this.key(t),o=this.cache[i];if(\"string\"==typeof e)o[e]=n;else if(se.isEmptyObject(o))se.extend(this.cache[i],e);else for(r in e)o[r]=e[r];return o},get:function(t,n){var r=this.cache[this.key(t)];return n===e?r:r[n]},access:function(t,n,r){var i;return n===e||n&&\"string\"==typeof n&&r===e?(i=this.get(t,n),i!==e?i:this.get(t,se.camelCase(n))):(this.set(t,n,r),r!==e?r:n)},remove:function(t,n){var r,i,o,s=this.key(t),a=this.cache[s];if(n===e)this.cache[s]={};else{se.isArray(n)?i=n.concat(n.map(se.camelCase)):(o=se.camelCase(n),n in a?i=[n,o]:(i=o,i=i in a?[i]:i.match(le)||[])),r=i.length;for(;r--;)delete a[i[r]]}},hasData:function(t){return!se.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}},ge=new o,me=new o,se.extend({acceptData:o.accepts,hasData:function(t){return ge.hasData(t)||me.hasData(t)},data:function(t,e,n){return ge.access(t,e,n)},removeData:function(t,e){ge.remove(t,e)},_data:function(t,e,n){return me.access(t,e,n)},_removeData:function(t,e){me.remove(t,e)}}),se.fn.extend({data:function(t,n){var r,i,o=this[0],a=0,l=null;if(t===e){if(this.length&&(l=ge.get(o),1===o.nodeType&&!me.get(o,\"hasDataAttrs\"))){for(r=o.attributes;a<r.length;a++)i=r[a].name,0===i.indexOf(\"data-\")&&(i=se.camelCase(i.slice(5)),s(o,i,l[i]));me.set(o,\"hasDataAttrs\",!0)}return l}return\"object\"==typeof t?this.each(function(){ge.set(this,t)}):se.access(this,function(n){var r,i=se.camelCase(t);if(o&&n===e){if(r=ge.get(o,t),r!==e)return r;if(r=ge.get(o,i),r!==e)return r;if(r=s(o,i,e),r!==e)return r}else this.each(function(){var r=ge.get(this,i);ge.set(this,i,n),-1!==t.indexOf(\"-\")&&r!==e&&ge.set(this,t,n)})},null,n,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){ge.remove(this,t)})}}),se.extend({queue:function(t,e,n){var r;return t?(e=(e||\"fx\")+\"queue\",r=me.get(t,e),n&&(!r||se.isArray(n)?r=me.access(t,e,se.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(t,e){e=e||\"fx\";var n=se.queue(t,e),r=n.length,i=n.shift(),o=se._queueHooks(t,e),s=function(){se.dequeue(t,e)};\"inprogress\"===i&&(i=n.shift(),r--),i&&(\"fx\"===e&&n.unshift(\"inprogress\"),delete o.stop,i.call(t,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+\"queueHooks\";return me.get(t,n)||me.access(t,n,{empty:se.Callbacks(\"once memory\").add(function(){me.remove(t,[e+\"queue\",n])})})}}),se.fn.extend({queue:function(t,n){var r=2;return\"string\"!=typeof t&&(n=t,t=\"fx\",r--),arguments.length<r?se.queue(this[0],t):n===e?this:this.each(function(){var e=se.queue(this,t,n);se._queueHooks(this,t),\"fx\"===t&&\"inprogress\"!==e[0]&&se.dequeue(this,t)})},dequeue:function(t){return this.each(function(){se.dequeue(this,t)})},delay:function(t,e){return t=se.fx?se.fx.speeds[t]||t:t,e=e||\"fx\",this.queue(e,function(e,n){var r=setTimeout(e,t);n.stop=function(){clearTimeout(r)}})},clearQueue:function(t){return this.queue(t||\"fx\",[])},promise:function(t,n){var r,i=1,o=se.Deferred(),s=this,a=this.length,l=function(){--i||o.resolveWith(s,[s])};for(\"string\"!=typeof t&&(n=t,t=e),t=t||\"fx\";a--;)r=me.get(s[a],t+\"queueHooks\"),r&&r.empty&&(i++,r.empty.add(l));return l(),o.promise(n)}});var be,we,xe=/[\\t\\r\\n\\f]/g,ke=/\\r/g,Te=/^(?:input|select|textarea|button)$/i;se.fn.extend({attr:function(t,e){return se.access(this,se.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){se.removeAttr(this,t)})},prop:function(t,e){return se.access(this,se.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[se.propFix[t]||t]})},addClass:function(t){var e,n,r,i,o,s=0,a=this.length,l=\"string\"==typeof t&&t;if(se.isFunction(t))return this.each(function(e){se(this).addClass(t.call(this,e,this.className))});if(l)for(e=(t||\"\").match(le)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(\" \"+n.className+\" \").replace(xe,\" \"):\" \")){for(o=0;i=e[o++];)r.indexOf(\" \"+i+\" \")<0&&(r+=i+\" \");n.className=se.trim(r)}return this},removeClass:function(t){var e,n,r,i,o,s=0,a=this.length,l=0===arguments.length||\"string\"==typeof t&&t;if(se.isFunction(t))return this.each(function(e){se(this).removeClass(t.call(this,e,this.className))});if(l)for(e=(t||\"\").match(le)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(\" \"+n.className+\" \").replace(xe,\" \"):\"\")){for(o=0;i=e[o++];)for(;r.indexOf(\" \"+i+\" \")>=0;)r=r.replace(\" \"+i+\" \",\" \");n.className=t?se.trim(r):\"\"}return this},toggleClass:function(t,e){var n=typeof t;return\"boolean\"==typeof e&&\"string\"===n?e?this.addClass(t):this.removeClass(t):se.isFunction(t)?this.each(function(n){se(this).toggleClass(t.call(this,n,this.className,e),e)}):this.each(function(){if(\"string\"===n)for(var e,r=0,i=se(this),o=t.match(le)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else(n===H||\"boolean\"===n)&&(this.className&&me.set(this,\"__className__\",this.className),this.className=this.className||t===!1?\"\":me.get(this,\"__className__\")||\"\")})},hasClass:function(t){for(var e=\" \"+t+\" \",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(\" \"+this[n].className+\" \").replace(xe,\" \").indexOf(e)>=0)return!0;return!1},val:function(t){var n,r,i,o=this[0];{if(arguments.length)return i=se.isFunction(t),this.each(function(r){var o;1===this.nodeType&&(o=i?t.call(this,r,se(this).val()):t,null==o?o=\"\":\"number\"==typeof o?o+=\"\":se.isArray(o)&&(o=se.map(o,function(t){return null==t?\"\":t+\"\"})),n=se.valHooks[this.type]||se.valHooks[this.nodeName.toLowerCase()],n&&\"set\"in n&&n.set(this,o,\"value\")!==e||(this.value=o))});if(o)return n=se.valHooks[o.type]||se.valHooks[o.nodeName.toLowerCase()],n&&\"get\"in n&&(r=n.get(o,\"value\"))!==e?r:(r=o.value,\"string\"==typeof r?r.replace(ke,\"\"):null==r?\"\":r)}}}),se.extend({valHooks:{option:{get:function(t){var e=t.attributes.value;return!e||e.specified?t.value:t.text}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o=\"select-one\"===t.type||0>i,s=o?null:[],a=o?i+1:r.length,l=0>i?a:o?i:0;a>l;l++)if(n=r[l],!(!n.selected&&l!==i||(se.support.optDisabled?n.disabled:null!==n.getAttribute(\"disabled\"))||n.parentNode.disabled&&se.nodeName(n.parentNode,\"optgroup\"))){if(e=se(n).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var n,r,i=t.options,o=se.makeArray(e),s=i.length;s--;)r=i[s],(r.selected=se.inArray(se(r).val(),o)>=0)&&(n=!0);return n||(t.selectedIndex=-1),o}}},attr:function(t,n,r){var i,o,s=t.nodeType;if(t&&3!==s&&8!==s&&2!==s)return typeof t.getAttribute===H?se.prop(t,n,r):(1===s&&se.isXMLDoc(t)||(n=n.toLowerCase(),i=se.attrHooks[n]||(se.expr.match.bool.test(n)?we:be)),r===e?i&&\"get\"in i&&null!==(o=i.get(t,n))?o:(o=se.find.attr(t,n),null==o?e:o):null!==r?i&&\"set\"in i&&(o=i.set(t,r,n))!==e?o:(t.setAttribute(n,r+\"\"),r):(se.removeAttr(t,n),void 0))},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(le);if(o&&1===t.nodeType)for(;n=o[i++];)r=se.propFix[n]||n,se.expr.match.bool.test(n)&&(t[r]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!se.support.radioValue&&\"radio\"===e&&se.nodeName(t,\"input\")){var n=t.value;return t.setAttribute(\"type\",e),n&&(t.value=n),e}}}},propFix:{\"for\":\"htmlFor\",\"class\":\"className\"},prop:function(t,n,r){var i,o,s,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return s=1!==a||!se.isXMLDoc(t),s&&(n=se.propFix[n]||n,o=se.propHooks[n]),r!==e?o&&\"set\"in o&&(i=o.set(t,r,n))!==e?i:t[n]=r:o&&\"get\"in o&&null!==(i=o.get(t,n))?i:t[n]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute(\"tabindex\")||Te.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),we={set:function(t,e,n){return e===!1?se.removeAttr(t,n):t.setAttribute(n,n),n}},se.each(se.expr.match.bool.source.match(/\\w+/g),function(t,n){var r=se.expr.attrHandle[n]||se.find.attr;se.expr.attrHandle[n]=function(t,n,i){var o=se.expr.attrHandle[n],s=i?e:(se.expr.attrHandle[n]=e)!=r(t,n,i)?n.toLowerCase():null;return se.expr.attrHandle[n]=o,s}}),se.support.optSelected||(se.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),se.each([\"tabIndex\",\"readOnly\",\"maxLength\",\"cellSpacing\",\"cellPadding\",\"rowSpan\",\"colSpan\",\"useMap\",\"frameBorder\",\"contentEditable\"],function(){se.propFix[this.toLowerCase()]=this}),se.each([\"radio\",\"checkbox\"],function(){se.valHooks[this]={set:function(t,e){return se.isArray(e)?t.checked=se.inArray(se(t).val(),e)>=0:void 0}},se.support.checkOn||(se.valHooks[this].get=function(t){return null===t.getAttribute(\"value\")?\"on\":t.value})});var Ce=/^key/,Me=/^(?:mouse|contextmenu)|click/,je=/^(?:focusinfocus|focusoutblur)$/,Se=/^([^.]*)(?:\\.(.+)|)$/;se.event={global:{},add:function(t,n,r,i,o){var s,a,l,u,p,h,c,_,d,f,g,m=me.get(t);if(m){for(r.handler&&(s=r,r=s.handler,o=s.selector),r.guid||(r.guid=se.guid++),(u=m.events)||(u=m.events={}),(a=m.handle)||(a=m.handle=function(t){return typeof se===H||t&&se.event.triggered===t.type?e:se.event.dispatch.apply(a.elem,arguments)\n",
" },a.elem=t),n=(n||\"\").match(le)||[\"\"],p=n.length;p--;)l=Se.exec(n[p])||[],d=g=l[1],f=(l[2]||\"\").split(\".\").sort(),d&&(c=se.event.special[d]||{},d=(o?c.delegateType:c.bindType)||d,c=se.event.special[d]||{},h=se.extend({type:d,origType:g,data:i,handler:r,guid:r.guid,selector:o,needsContext:o&&se.expr.match.needsContext.test(o),namespace:f.join(\".\")},s),(_=u[d])||(_=u[d]=[],_.delegateCount=0,c.setup&&c.setup.call(t,i,f,a)!==!1||t.addEventListener&&t.addEventListener(d,a,!1)),c.add&&(c.add.call(t,h),h.handler.guid||(h.handler.guid=r.guid)),o?_.splice(_.delegateCount++,0,h):_.push(h),se.event.global[d]=!0);t=null}},remove:function(t,e,n,r,i){var o,s,a,l,u,p,h,c,_,d,f,g=me.hasData(t)&&me.get(t);if(g&&(l=g.events)){for(e=(e||\"\").match(le)||[\"\"],u=e.length;u--;)if(a=Se.exec(e[u])||[],_=f=a[1],d=(a[2]||\"\").split(\".\").sort(),_){for(h=se.event.special[_]||{},_=(r?h.delegateType:h.bindType)||_,c=l[_]||[],a=a[2]&&new RegExp(\"(^|\\\\.)\"+d.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"),s=o=c.length;o--;)p=c[o],!i&&f!==p.origType||n&&n.guid!==p.guid||a&&!a.test(p.namespace)||r&&r!==p.selector&&(\"**\"!==r||!p.selector)||(c.splice(o,1),p.selector&&c.delegateCount--,h.remove&&h.remove.call(t,p));s&&!c.length&&(h.teardown&&h.teardown.call(t,d,g.handle)!==!1||se.removeEvent(t,_,g.handle),delete l[_])}else for(_ in l)se.event.remove(t,_+e[u],n,r,!0);se.isEmptyObject(l)&&(delete g.handle,me.remove(t,\"events\"))}},trigger:function(n,r,i,o){var s,a,l,u,p,h,c,_=[i||G],d=ie.call(n,\"type\")?n.type:n,f=ie.call(n,\"namespace\")?n.namespace.split(\".\"):[];if(a=l=i=i||G,3!==i.nodeType&&8!==i.nodeType&&!je.test(d+se.event.triggered)&&(d.indexOf(\".\")>=0&&(f=d.split(\".\"),d=f.shift(),f.sort()),p=d.indexOf(\":\")<0&&\"on\"+d,n=n[se.expando]?n:new se.Event(d,\"object\"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=f.join(\".\"),n.namespace_re=n.namespace?new RegExp(\"(^|\\\\.)\"+f.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"):null,n.result=e,n.target||(n.target=i),r=null==r?[n]:se.makeArray(r,[n]),c=se.event.special[d]||{},o||!c.trigger||c.trigger.apply(i,r)!==!1)){if(!o&&!c.noBubble&&!se.isWindow(i)){for(u=c.delegateType||d,je.test(u+d)||(a=a.parentNode);a;a=a.parentNode)_.push(a),l=a;l===(i.ownerDocument||G)&&_.push(l.defaultView||l.parentWindow||t)}for(s=0;(a=_[s++])&&!n.isPropagationStopped();)n.type=s>1?u:c.bindType||d,h=(me.get(a,\"events\")||{})[n.type]&&me.get(a,\"handle\"),h&&h.apply(a,r),h=p&&a[p],h&&se.acceptData(a)&&h.apply&&h.apply(a,r)===!1&&n.preventDefault();return n.type=d,o||n.isDefaultPrevented()||c._default&&c._default.apply(_.pop(),r)!==!1||!se.acceptData(i)||p&&se.isFunction(i[d])&&!se.isWindow(i)&&(l=i[p],l&&(i[p]=null),se.event.triggered=d,i[d](),se.event.triggered=e,l&&(i[p]=l)),n.result}},dispatch:function(t){t=se.event.fix(t);var n,r,i,o,s,a=[],l=ee.call(arguments),u=(me.get(this,\"events\")||{})[t.type]||[],p=se.event.special[t.type]||{};if(l[0]=t,t.delegateTarget=this,!p.preDispatch||p.preDispatch.call(this,t)!==!1){for(a=se.event.handlers.call(this,t,u),n=0;(o=a[n++])&&!t.isPropagationStopped();)for(t.currentTarget=o.elem,r=0;(s=o.handlers[r++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(s.namespace))&&(t.handleObj=s,t.data=s.data,i=((se.event.special[s.origType]||{}).handle||s.handler).apply(o.elem,l),i!==e&&(t.result=i)===!1&&(t.preventDefault(),t.stopPropagation()));return p.postDispatch&&p.postDispatch.call(this,t),t.result}},handlers:function(t,n){var r,i,o,s,a=[],l=n.delegateCount,u=t.target;if(l&&u.nodeType&&(!t.button||\"click\"!==t.type))for(;u!==this;u=u.parentNode||this)if(u.disabled!==!0||\"click\"!==t.type){for(i=[],r=0;l>r;r++)s=n[r],o=s.selector+\" \",i[o]===e&&(i[o]=s.needsContext?se(o,this).index(u)>=0:se.find(o,this,null,[u]).length),i[o]&&i.push(s);i.length&&a.push({elem:u,handlers:i})}return l<n.length&&a.push({elem:this,handlers:n.slice(l)}),a},props:\"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which\".split(\" \"),fixHooks:{},keyHooks:{props:\"char charCode key keyCode\".split(\" \"),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:\"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement\".split(\" \"),filter:function(t,n){var r,i,o,s=n.button;return null==t.pageX&&null!=n.clientX&&(r=t.target.ownerDocument||G,i=r.documentElement,o=r.body,t.pageX=n.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),t.pageY=n.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)),t.which||s===e||(t.which=1&s?1:2&s?3:4&s?2:0),t}},fix:function(t){if(t[se.expando])return t;var e,n,r,i=t.type,o=t,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=Me.test(i)?this.mouseHooks:Ce.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,t=new se.Event(o),e=r.length;e--;)n=r[e],t[n]=o[n];return t.target||(t.target=G),3===t.target.nodeType&&(t.target=t.target.parentNode),s.filter?s.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==u()&&this.focus?(this.focus(),!1):void 0},delegateType:\"focusin\"},blur:{trigger:function(){return this===u()&&this.blur?(this.blur(),!1):void 0},delegateType:\"focusout\"},click:{trigger:function(){return\"checkbox\"===this.type&&this.click&&se.nodeName(this,\"input\")?(this.click(),!1):void 0},_default:function(t){return se.nodeName(t.target,\"a\")}},beforeunload:{postDispatch:function(t){t.result!==e&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=se.extend(new se.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?se.event.trigger(i,null,e):se.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},se.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},se.Event=function(t,e){return this instanceof se.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.getPreventDefault&&t.getPreventDefault()?a:l):this.type=t,e&&se.extend(this,e),this.timeStamp=t&&t.timeStamp||se.now(),this[se.expando]=!0,void 0):new se.Event(t,e)},se.Event.prototype={isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=a,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=a,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=a,this.stopPropagation()}},se.each({mouseenter:\"mouseover\",mouseleave:\"mouseout\"},function(t,e){se.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return(!i||i!==r&&!se.contains(r,i))&&(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),se.support.focusinBubbles||se.each({focus:\"focusin\",blur:\"focusout\"},function(t,e){var n=0,r=function(t){se.event.simulate(e,t.target,se.event.fix(t),!0)};se.event.special[e]={setup:function(){0===n++&&G.addEventListener(t,r,!0)},teardown:function(){0===--n&&G.removeEventListener(t,r,!0)}}}),se.fn.extend({on:function(t,n,r,i,o){var s,a;if(\"object\"==typeof t){\"string\"!=typeof n&&(r=r||n,n=e);for(a in t)this.on(a,n,r,t[a],o);return this}if(null==r&&null==i?(i=n,r=n=e):null==i&&(\"string\"==typeof n?(i=r,r=e):(i=r,r=n,n=e)),i===!1)i=l;else if(!i)return this;return 1===o&&(s=i,i=function(t){return se().off(t),s.apply(this,arguments)},i.guid=s.guid||(s.guid=se.guid++)),this.each(function(){se.event.add(this,t,i,r,n)})},one:function(t,e,n,r){return this.on(t,e,n,r,1)},off:function(t,n,r){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,se(t.delegateTarget).off(i.namespace?i.origType+\".\"+i.namespace:i.origType,i.selector,i.handler),this;if(\"object\"==typeof t){for(o in t)this.off(o,n,t[o]);return this}return(n===!1||\"function\"==typeof n)&&(r=n,n=e),r===!1&&(r=l),this.each(function(){se.event.remove(this,t,r,n)})},trigger:function(t,e){return this.each(function(){se.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?se.event.trigger(t,e,n,!0):void 0}});var ze=/^.[^:#\\[\\.,]*$/,Ae=/^(?:parents|prev(?:Until|All))/,Ne=se.expr.match.needsContext,Pe={children:!0,contents:!0,next:!0,prev:!0};se.fn.extend({find:function(t){var e,n=[],r=this,i=r.length;if(\"string\"!=typeof t)return this.pushStack(se(t).filter(function(){for(e=0;i>e;e++)if(se.contains(r[e],this))return!0}));for(e=0;i>e;e++)se.find(t,r[e],n);return n=this.pushStack(i>1?se.unique(n):n),n.selector=this.selector?this.selector+\" \"+t:t,n},has:function(t){var e=se(t,this),n=e.length;return this.filter(function(){for(var t=0;n>t;t++)if(se.contains(this,e[t]))return!0})},not:function(t){return this.pushStack(h(this,t||[],!0))},filter:function(t){return this.pushStack(h(this,t||[],!1))},is:function(t){return!!h(this,\"string\"==typeof t&&Ne.test(t)?se(t):t||[],!1).length},closest:function(t,e){for(var n,r=0,i=this.length,o=[],s=Ne.test(t)||\"string\"!=typeof t?se(t,e||this.context):0;i>r;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&se.find.matchesSelector(n,t))){n=o.push(n);break}return this.pushStack(o.length>1?se.unique(o):o)},index:function(t){return t?\"string\"==typeof t?ne.call(se(t),this[0]):ne.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){var n=\"string\"==typeof t?se(t,e):se.makeArray(t&&t.nodeType?[t]:t),r=se.merge(this.get(),n);return this.pushStack(se.unique(r))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),se.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return se.dir(t,\"parentNode\")},parentsUntil:function(t,e,n){return se.dir(t,\"parentNode\",n)},next:function(t){return p(t,\"nextSibling\")},prev:function(t){return p(t,\"previousSibling\")},nextAll:function(t){return se.dir(t,\"nextSibling\")},prevAll:function(t){return se.dir(t,\"previousSibling\")},nextUntil:function(t,e,n){return se.dir(t,\"nextSibling\",n)},prevUntil:function(t,e,n){return se.dir(t,\"previousSibling\",n)},siblings:function(t){return se.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return se.sibling(t.firstChild)},contents:function(t){return t.contentDocument||se.merge([],t.childNodes)}},function(t,e){se.fn[t]=function(n,r){var i=se.map(this,e,n);return\"Until\"!==t.slice(-5)&&(r=n),r&&\"string\"==typeof r&&(i=se.filter(r,i)),this.length>1&&(Pe[t]||se.unique(i),Ae.test(t)&&i.reverse()),this.pushStack(i)}}),se.extend({filter:function(t,e,n){var r=e[0];return n&&(t=\":not(\"+t+\")\"),1===e.length&&1===r.nodeType?se.find.matchesSelector(r,t)?[r]:[]:se.find.matches(t,se.grep(e,function(t){return 1===t.nodeType}))},dir:function(t,n,r){for(var i=[],o=r!==e;(t=t[n])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&se(t).is(r))break;i.push(t)}return i},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}});var Fe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:]+)[^>]*)\\/>/gi,Ee=/<([\\w:]+)/,De=/<|&#?\\w+;/,$e=/<(?:script|style|link)/i,Oe=/^(?:checkbox|radio)$/i,qe=/checked\\s*(?:[^=]|=\\s*.checked.)/i,Be=/^$|\\/(?:java|ecma)script/i,Re=/^true\\/(.*)/,Le=/^\\s*<!(?:\\[CDATA\\[|--)|(?:\\]\\]|--)>\\s*$/g,Ue={option:[1,\"<select multiple='multiple'>\",\"</select>\"],thead:[1,\"<table>\",\"</table>\"],col:[2,\"<table><colgroup>\",\"</colgroup></table>\"],tr:[2,\"<table><tbody>\",\"</tbody></table>\"],td:[3,\"<table><tbody><tr>\",\"</tr></tbody></table>\"],_default:[0,\"\",\"\"]};Ue.optgroup=Ue.option,Ue.tbody=Ue.tfoot=Ue.colgroup=Ue.caption=Ue.thead,Ue.th=Ue.td,se.fn.extend({text:function(t){return se.access(this,function(t){return t===e?se.text(this):this.empty().append((this[0]&&this[0].ownerDocument||G).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=c(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=c(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,r=t?se.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||se.cleanData(m(n)),n.parentNode&&(e&&se.contains(n.ownerDocument,n)&&f(m(n,\"script\")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(se.cleanData(m(t,!1)),t.textContent=\"\");return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return se.clone(this,t,e)})},html:function(t){return se.access(this,function(t){var n=this[0]||{},r=0,i=this.length;if(t===e&&1===n.nodeType)return n.innerHTML;if(\"string\"==typeof t&&!$e.test(t)&&!Ue[(Ee.exec(t)||[\"\",\"\"])[1].toLowerCase()]){t=t.replace(Fe,\"<$1></$2>\");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(se.cleanData(m(n,!1)),n.innerHTML=t);n=0}catch(o){}}n&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=se.map(this,function(t){return[t.nextSibling,t.parentNode]}),e=0;return this.domManip(arguments,function(n){var r=t[e++],i=t[e++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),se(this).remove(),i.insertBefore(n,r))},!0),e?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e,n){t=K.apply([],t);var r,i,o,s,a,l,u=0,p=this.length,h=this,c=p-1,f=t[0],g=se.isFunction(f);if(g||!(1>=p||\"string\"!=typeof f||se.support.checkClone)&&qe.test(f))return this.each(function(r){var i=h.eq(r);g&&(t[0]=f.call(this,r,i.html())),i.domManip(t,e,n)});if(p&&(r=se.buildFragment(t,this[0].ownerDocument,!1,!n&&this),i=r.firstChild,1===r.childNodes.length&&(r=i),i)){for(o=se.map(m(r,\"script\"),_),s=o.length;p>u;u++)a=r,u!==c&&(a=se.clone(a,!0,!0),s&&se.merge(o,m(a,\"script\"))),e.call(this[u],a,u);if(s)for(l=o[o.length-1].ownerDocument,se.map(o,d),u=0;s>u;u++)a=o[u],Be.test(a.type||\"\")&&!me.access(a,\"globalEval\")&&se.contains(l,a)&&(a.src?se._evalUrl(a.src):se.globalEval(a.textContent.replace(Le,\"\")))}return this}}),se.each({appendTo:\"append\",prependTo:\"prepend\",insertBefore:\"before\",insertAfter:\"after\",replaceAll:\"replaceWith\"},function(t,e){se.fn[t]=function(t){for(var n,r=[],i=se(t),o=i.length-1,s=0;o>=s;s++)n=s===o?this:this.clone(!0),se(i[s])[e](n),te.apply(r,n.get());return this.pushStack(r)}}),se.extend({clone:function(t,e,n){var r,i,o,s,a=t.cloneNode(!0),l=se.contains(t.ownerDocument,t);if(!(se.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||se.isXMLDoc(t)))for(s=m(a),o=m(t),r=0,i=o.length;i>r;r++)y(o[r],s[r]);if(e)if(n)for(o=o||m(t),s=s||m(a),r=0,i=o.length;i>r;r++)g(o[r],s[r]);else g(t,a);return s=m(a,\"script\"),s.length>0&&f(s,!l&&m(t,\"script\")),a},buildFragment:function(t,e,n,r){for(var i,o,s,a,l,u,p=0,h=t.length,c=e.createDocumentFragment(),_=[];h>p;p++)if(i=t[p],i||0===i)if(\"object\"===se.type(i))se.merge(_,i.nodeType?[i]:i);else if(De.test(i)){for(o=o||c.appendChild(e.createElement(\"div\")),s=(Ee.exec(i)||[\"\",\"\"])[1].toLowerCase(),a=Ue[s]||Ue._default,o.innerHTML=a[1]+i.replace(Fe,\"<$1></$2>\")+a[2],u=a[0];u--;)o=o.lastChild;se.merge(_,o.childNodes),o=c.firstChild,o.textContent=\"\"}else _.push(e.createTextNode(i));for(c.textContent=\"\",p=0;i=_[p++];)if((!r||-1===se.inArray(i,r))&&(l=se.contains(i.ownerDocument,i),o=m(c.appendChild(i),\"script\"),l&&f(o),n))for(u=0;i=o[u++];)Be.test(i.type||\"\")&&n.push(i);return c},cleanData:function(t){for(var n,r,i,s,a,l,u=se.event.special,p=0;(r=t[p])!==e;p++){if(o.accepts(r)&&(a=r[me.expando],a&&(n=me.cache[a]))){if(i=Object.keys(n.events||{}),i.length)for(l=0;(s=i[l])!==e;l++)u[s]?se.event.remove(r,s):se.removeEvent(r,s,n.handle);me.cache[a]&&delete me.cache[a]}delete ge.cache[r[ge.expando]]}},_evalUrl:function(t){return se.ajax({url:t,type:\"GET\",dataType:\"script\",async:!1,global:!1,\"throws\":!0})}}),se.fn.extend({wrapAll:function(t){var e;return se.isFunction(t)?this.each(function(e){se(this).wrapAll(t.call(this,e))}):(this[0]&&(e=se(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return se.isFunction(t)?this.each(function(e){se(this).wrapInner(t.call(this,e))}):this.each(function(){var e=se(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=se.isFunction(t);return this.each(function(n){se(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){se.nodeName(this,\"body\")||se(this).replaceWith(this.childNodes)}).end()}});var Ie,He,Ve=/^(none|table(?!-c[ea]).+)/,Ge=/^margin/,We=new RegExp(\"^(\"+ae+\")(.*)$\",\"i\"),Ye=new RegExp(\"^(\"+ae+\")(?!px)[a-z%]+$\",\"i\"),Xe=new RegExp(\"^([+-])=(\"+ae+\")\",\"i\"),Je={BODY:\"block\"},Ze={position:\"absolute\",visibility:\"hidden\",display:\"block\"},Qe={letterSpacing:0,fontWeight:400},Ke=[\"Top\",\"Right\",\"Bottom\",\"Left\"],tn=[\"Webkit\",\"O\",\"Moz\",\"ms\"];se.fn.extend({css:function(t,n){return se.access(this,function(t,n,r){var i,o,s={},a=0;if(se.isArray(n)){for(i=w(t),o=n.length;o>a;a++)s[n[a]]=se.css(t,n[a],!1,i);return s}return r!==e?se.style(t,n,r):se.css(t,n)},t,n,arguments.length>1)},show:function(){return x(this,!0)},hide:function(){return x(this)},toggle:function(t){return\"boolean\"==typeof t?t?this.show():this.hide():this.each(function(){b(this)?se(this).show():se(this).hide()})}}),se.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Ie(t,\"opacity\");return\"\"===n?\"1\":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{\"float\":\"cssFloat\"},style:function(t,n,r,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,s,a,l=se.camelCase(n),u=t.style;return n=se.cssProps[l]||(se.cssProps[l]=v(u,l)),a=se.cssHooks[n]||se.cssHooks[l],r===e?a&&\"get\"in a&&(o=a.get(t,!1,i))!==e?o:u[n]:(s=typeof r,\"string\"===s&&(o=Xe.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(se.css(t,n)),s=\"number\"),null==r||\"number\"===s&&isNaN(r)||(\"number\"!==s||se.cssNumber[l]||(r+=\"px\"),se.support.clearCloneStyle||\"\"!==r||0!==n.indexOf(\"background\")||(u[n]=\"inherit\"),a&&\"set\"in a&&(r=a.set(t,r,i))===e||(u[n]=r)),void 0)}},css:function(t,n,r,i){var o,s,a,l=se.camelCase(n);return n=se.cssProps[l]||(se.cssProps[l]=v(t.style,l)),a=se.cssHooks[n]||se.cssHooks[l],a&&\"get\"in a&&(o=a.get(t,!0,r)),o===e&&(o=Ie(t,n,i)),\"normal\"===o&&n in Qe&&(o=Qe[n]),\"\"===r||r?(s=parseFloat(o),r===!0||se.isNumeric(s)?s||0:o):o}}),Ie=function(t,n,r){var i,o,s,a=r||w(t),l=a?a.getPropertyValue(n)||a[n]:e,u=t.style;return a&&(\"\"!==l||se.contains(t.ownerDocument,t)||(l=se.style(t,n)),Ye.test(l)&&Ge.test(n)&&(i=u.width,o=u.minWidth,s=u.maxWidth,u.minWidth=u.maxWidth=u.width=l,l=a.width,u.width=i,u.minWidth=o,u.maxWidth=s)),l},se.each([\"height\",\"width\"],function(t,e){se.cssHooks[e]={get:function(t,n,r){return n?0===t.offsetWidth&&Ve.test(se.css(t,\"display\"))?se.swap(t,Ze,function(){return C(t,e,r)}):C(t,e,r):void 0},set:function(t,n,r){var i=r&&w(t);return k(t,n,r?T(t,e,r,se.support.boxSizing&&\"border-box\"===se.css(t,\"boxSizing\",!1,i),i):0)}}}),se(function(){se.support.reliableMarginRight||(se.cssHooks.marginRight={get:function(t,e){return e?se.swap(t,{display:\"inline-block\"},Ie,[t,\"marginRight\"]):void 0}}),!se.support.pixelPosition&&se.fn.position&&se.each([\"top\",\"left\"],function(t,e){se.cssHooks[e]={get:function(t,n){return n?(n=Ie(t,e),Ye.test(n)?se(t).position()[e]+\"px\":n):void 0}}})}),se.expr&&se.expr.filters&&(se.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},se.expr.filters.visible=function(t){return!se.expr.filters.hidden(t)}),se.each({margin:\"\",padding:\"\",border:\"Width\"},function(t,e){se.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o=\"string\"==typeof n?n.split(\" \"):[n];4>r;r++)i[t+Ke[r]+e]=o[r]||o[r-2]||o[0];return i}},Ge.test(t)||(se.cssHooks[t+e].set=k)});var en=/%20/g,nn=/\\[\\]$/,rn=/\\r?\\n/g,on=/^(?:submit|button|image|reset|file)$/i,sn=/^(?:input|select|textarea|keygen)/i;se.fn.extend({serialize:function(){return se.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=se.prop(this,\"elements\");return t?se.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!se(this).is(\":disabled\")&&sn.test(this.nodeName)&&!on.test(t)&&(this.checked||!Oe.test(t))}).map(function(t,e){var n=se(this).val();return null==n?null:se.isArray(n)?se.map(n,function(t){return{name:e.name,value:t.replace(rn,\"\\r\\n\")}}):{name:e.name,value:n.replace(rn,\"\\r\\n\")}}).get()}}),se.param=function(t,n){var r,i=[],o=function(t,e){e=se.isFunction(e)?e():null==e?\"\":e,i[i.length]=encodeURIComponent(t)+\"=\"+encodeURIComponent(e)};if(n===e&&(n=se.ajaxSettings&&se.ajaxSettings.traditional),se.isArray(t)||t.jquery&&!se.isPlainObject(t))se.each(t,function(){o(this.name,this.value)});else for(r in t)S(r,t[r],n,o);return i.join(\"&\").replace(en,\"+\")},se.each(\"blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu\".split(\" \"),function(t,e){se.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),se.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,\"**\"):this.off(e,t||\"**\",n)}});var an,ln,un=se.now(),pn=/\\?/,hn=/#.*$/,cn=/([?&])_=[^&]*/,_n=/^(.*?):[ \\t]*([^\\r\\n]*)$/gm,dn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,fn=/^(?:GET|HEAD)$/,gn=/^\\/\\//,mn=/^([\\w.+-]+:)(?:\\/\\/([^\\/?#:]*)(?::(\\d+)|)|)/,yn=se.fn.load,vn={},bn={},wn=\"*/\".concat(\"*\");try{ln=V.href}catch(xn){ln=G.createElement(\"a\"),ln.href=\"\",ln=ln.href}an=mn.exec(ln.toLowerCase())||[],se.fn.load=function(t,n,r){if(\"string\"!=typeof t&&yn)return yn.apply(this,arguments);var i,o,s,a=this,l=t.indexOf(\" \");return l>=0&&(i=t.slice(l),t=t.slice(0,l)),se.isFunction(n)?(r=n,n=e):n&&\"object\"==typeof n&&(o=\"POST\"),a.length>0&&se.ajax({url:t,type:o,dataType:\"html\",data:n}).done(function(t){s=arguments,a.html(i?se(\"<div>\").append(se.parseHTML(t)).find(i):t)}).complete(r&&function(t,e){a.each(r,s||[t.responseText,e,t])}),this},se.each([\"ajaxStart\",\"ajaxStop\",\"ajaxComplete\",\"ajaxError\",\"ajaxSuccess\",\"ajaxSend\"],function(t,e){se.fn[e]=function(t){return this.on(e,t)}}),se.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ln,type:\"GET\",isLocal:dn.test(an[1]),global:!0,processData:!0,async:!0,contentType:\"application/x-www-form-urlencoded; charset=UTF-8\",accepts:{\"*\":wn,text:\"text/plain\",html:\"text/html\",xml:\"application/xml, text/xml\",json:\"application/json, text/javascript\"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:\"responseXML\",text:\"responseText\",json:\"responseJSON\"},converters:{\"* text\":String,\"text html\":!0,\"text json\":se.parseJSON,\"text xml\":se.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?N(N(t,se.ajaxSettings),e):N(se.ajaxSettings,t)},ajaxPrefilter:z(vn),ajaxTransport:z(bn),ajax:function(t,n){function r(t,n,r,a){var u,h,y,v,w,k=n;2!==b&&(b=2,l&&clearTimeout(l),i=e,s=a||\"\",x.readyState=t>0?4:0,u=t>=200&&300>t||304===t,r&&(v=P(c,x,r)),v=F(c,v,x,u),u?(c.ifModified&&(w=x.getResponseHeader(\"Last-Modified\"),w&&(se.lastModified[o]=w),w=x.getResponseHeader(\"etag\"),w&&(se.etag[o]=w)),204===t||\"HEAD\"===c.type?k=\"nocontent\":304===t?k=\"notmodified\":(k=v.state,h=v.data,y=v.error,u=!y)):(y=k,(t||!k)&&(k=\"error\",0>t&&(t=0))),x.status=t,x.statusText=(n||k)+\"\",u?f.resolveWith(_,[h,k,x]):f.rejectWith(_,[x,k,y]),x.statusCode(m),m=e,p&&d.trigger(u?\"ajaxSuccess\":\"ajaxError\",[x,c,u?h:y]),g.fireWith(_,[x,k]),p&&(d.trigger(\"ajaxComplete\",[x,c]),--se.active||se.event.trigger(\"ajaxStop\")))}\"object\"==typeof t&&(n=t,t=e),n=n||{};var i,o,s,a,l,u,p,h,c=se.ajaxSetup({},n),_=c.context||c,d=c.context&&(_.nodeType||_.jquery)?se(_):se.event,f=se.Deferred(),g=se.Callbacks(\"once memory\"),m=c.statusCode||{},y={},v={},b=0,w=\"canceled\",x={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!a)for(a={};e=_n.exec(s);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=v[n]=v[n]||t,y[t]=e),this},overrideMimeType:function(t){return b||(c.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>b)for(e in t)m[e]=[m[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||w;return i&&i.abort(e),r(0,e),this}};if(f.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,c.url=((t||c.url||ln)+\"\").replace(hn,\"\").replace(gn,an[1]+\"//\"),c.type=n.method||n.type||c.method||c.type,c.dataTypes=se.trim(c.dataType||\"*\").toLowerCase().match(le)||[\"\"],null==c.crossDomain&&(u=mn.exec(c.url.toLowerCase()),c.crossDomain=!(!u||u[1]===an[1]&&u[2]===an[2]&&(u[3]||(\"http:\"===u[1]?\"80\":\"443\"))===(an[3]||(\"http:\"===an[1]?\"80\":\"443\")))),c.data&&c.processData&&\"string\"!=typeof c.data&&(c.data=se.param(c.data,c.traditional)),A(vn,c,n,x),2===b)return x;p=c.global,p&&0===se.active++&&se.event.trigger(\"ajaxStart\"),c.type=c.type.toUpperCase(),c.hasContent=!fn.test(c.type),o=c.url,c.hasContent||(c.data&&(o=c.url+=(pn.test(o)?\"&\":\"?\")+c.data,delete c.data),c.cache===!1&&(c.url=cn.test(o)?o.replace(cn,\"$1_=\"+un++):o+(pn.test(o)?\"&\":\"?\")+\"_=\"+un++)),c.ifModified&&(se.lastModified[o]&&x.setRequestHeader(\"If-Modified-Since\",se.lastModified[o]),se.etag[o]&&x.setRequestHeader(\"If-None-Match\",se.etag[o])),(c.data&&c.hasContent&&c.contentType!==!1||n.contentType)&&x.setRequestHeader(\"Content-Type\",c.contentType),x.setRequestHeader(\"Accept\",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(\"*\"!==c.dataTypes[0]?\", \"+wn+\"; q=0.01\":\"\"):c.accepts[\"*\"]);for(h in c.headers)x.setRequestHeader(h,c.headers[h]);if(c.beforeSend&&(c.beforeSend.call(_,x,c)===!1||2===b))return x.abort();w=\"abort\";for(h in{success:1,error:1,complete:1})x[h](c[h]);if(i=A(bn,c,n,x)){x.readyState=1,p&&d.trigger(\"ajaxSend\",[x,c]),c.async&&c.timeout>0&&(l=setTimeout(function(){x.abort(\"timeout\")},c.timeout));try{b=1,i.send(y,r)}catch(k){if(!(2>b))throw k;r(-1,k)}}else r(-1,\"No Transport\");return x},getJSON:function(t,e,n){return se.get(t,e,n,\"json\")},getScript:function(t,n){return se.get(t,e,n,\"script\")}}),se.each([\"get\",\"post\"],function(t,n){se[n]=function(t,r,i,o){return se.isFunction(r)&&(o=o||i,i=r,r=e),se.ajax({url:t,type:n,dataType:o,data:r,success:i})}}),se.ajaxSetup({accepts:{script:\"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript\"},contents:{script:/(?:java|ecma)script/},converters:{\"text script\":function(t){return se.globalEval(t),t}}}),se.ajaxPrefilter(\"script\",function(t){t.cache===e&&(t.cache=!1),t.crossDomain&&(t.type=\"GET\")}),se.ajaxTransport(\"script\",function(t){if(t.crossDomain){var e,n;return{send:function(r,i){e=se(\"<script>\").prop({async:!0,charset:t.scriptCharset,src:t.url}).on(\"load error\",n=function(t){e.remove(),n=null,t&&i(\"error\"===t.type?404:200,t.type)}),G.head.appendChild(e[0])},abort:function(){n&&n()}}}});var kn=[],Tn=/(=)\\?(?=&|$)|\\?\\?/;se.ajaxSetup({jsonp:\"callback\",jsonpCallback:function(){var t=kn.pop()||se.expando+\"_\"+un++;return this[t]=!0,t}}),se.ajaxPrefilter(\"json jsonp\",function(n,r,i){var o,s,a,l=n.jsonp!==!1&&(Tn.test(n.url)?\"url\":\"string\"==typeof n.data&&!(n.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&Tn.test(n.data)&&\"data\");return l||\"jsonp\"===n.dataTypes[0]?(o=n.jsonpCallback=se.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Tn,\"$1\"+o):n.jsonp!==!1&&(n.url+=(pn.test(n.url)?\"&\":\"?\")+n.jsonp+\"=\"+o),n.converters[\"script json\"]=function(){return a||se.error(o+\" was not called\"),a[0]},n.dataTypes[0]=\"json\",s=t[o],t[o]=function(){a=arguments},i.always(function(){t[o]=s,n[o]&&(n.jsonpCallback=r.jsonpCallback,kn.push(o)),a&&se.isFunction(s)&&s(a[0]),a=s=e}),\"script\"):void 0}),se.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Cn=se.ajaxSettings.xhr(),Mn={0:200,1223:204},jn=0,Sn={};t.ActiveXObject&&se(t).on(\"unload\",function(){for(var t in Sn)Sn[t]();Sn=e}),se.support.cors=!!Cn&&\"withCredentials\"in Cn,se.support.ajax=Cn=!!Cn,se.ajaxTransport(function(t){var n;return se.support.cors||Cn&&!t.crossDomain?{send:function(r,i){var o,s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r[\"X-Requested-With\"]||(r[\"X-Requested-With\"]=\"XMLHttpRequest\");for(o in r)a.setRequestHeader(o,r[o]);n=function(t){return function(){n&&(delete Sn[s],n=a.onload=a.onerror=null,\"abort\"===t?a.abort():\"error\"===t?i(a.status||404,a.statusText):i(Mn[a.status]||a.status,a.statusText,\"string\"==typeof a.responseText?{text:a.responseText}:e,a.getAllResponseHeaders()))}},a.onload=n(),a.onerror=n(\"error\"),n=Sn[s=jn++]=n(\"abort\"),a.send(t.hasContent&&t.data||null)},abort:function(){n&&n()}}:void 0});var zn,An,Nn=/^(?:toggle|show|hide)$/,Pn=new RegExp(\"^(?:([+-])=|)(\"+ae+\")([a-z%]*)$\",\"i\"),Fn=/queueHooks$/,En=[q],Dn={\"*\":[function(t,e){var n=this.createTween(t,e),r=n.cur(),i=Pn.exec(e),o=i&&i[3]||(se.cssNumber[t]?\"\":\"px\"),s=(se.cssNumber[t]||\"px\"!==o&&+r)&&Pn.exec(se.css(n.elem,t)),a=1,l=20;if(s&&s[3]!==o){o=o||s[3],i=i||[],s=+r||1;do a=a||\".5\",s/=a,se.style(n.elem,t,s+o);while(a!==(a=n.cur()/r)&&1!==a&&--l)}return i&&(s=n.start=+s||+r||0,n.unit=o,n.end=i[1]?s+(i[1]+1)*i[2]:+i[2]),n}]};se.Animation=se.extend($,{tweener:function(t,e){se.isFunction(t)?(e=t,t=[\"*\"]):t=t.split(\" \");for(var n,r=0,i=t.length;i>r;r++)n=t[r],Dn[n]=Dn[n]||[],Dn[n].unshift(e)},prefilter:function(t,e){e?En.unshift(t):En.push(t)}}),se.Tween=B,B.prototype={constructor:B,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||\"swing\",this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(se.cssNumber[n]?\"\":\"px\")},cur:function(){var t=B.propHooks[this.prop];return t&&t.get?t.get(this):B.propHooks._default.get(this)},run:function(t){var e,n=B.propHooks[this.prop];return this.pos=e=this.options.duration?se.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):B.propHooks._default.set(this),this}},B.prototype.init.prototype=B.prototype,B.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=se.css(t.elem,t.prop,\"\"),e&&\"auto\"!==e?e:0):t.elem[t.prop]},set:function(t){se.fx.step[t.prop]?se.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[se.cssProps[t.prop]]||se.cssHooks[t.prop])?se.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},B.propHooks.scrollTop=B.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},se.each([\"toggle\",\"show\",\"hide\"],function(t,e){var n=se.fn[e];se.fn[e]=function(t,r,i){return null==t||\"boolean\"==typeof t?n.apply(this,arguments):this.animate(R(e,!0),t,r,i)}}),se.fn.extend({fadeTo:function(t,e,n,r){return this.filter(b).css(\"opacity\",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=se.isEmptyObject(t),o=se.speed(e,n,r),s=function(){var e=$(this,se.extend({},t),o);(i||me.get(this,\"finish\"))&&e.stop(!0)};return s.finish=s,i||o.queue===!1?this.each(s):this.queue(o.queue,s)},stop:function(t,n,r){var i=function(t){var e=t.stop;delete t.stop,e(r)};return\"string\"!=typeof t&&(r=n,n=t,t=e),n&&t!==!1&&this.queue(t||\"fx\",[]),this.each(function(){var e=!0,n=null!=t&&t+\"queueHooks\",o=se.timers,s=me.get(this);\n",
" if(n)s[n]&&s[n].stop&&i(s[n]);else for(n in s)s[n]&&s[n].stop&&Fn.test(n)&&i(s[n]);for(n=o.length;n--;)o[n].elem!==this||null!=t&&o[n].queue!==t||(o[n].anim.stop(r),e=!1,o.splice(n,1));(e||!r)&&se.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||\"fx\"),this.each(function(){var e,n=me.get(this),r=n[t+\"queue\"],i=n[t+\"queueHooks\"],o=se.timers,s=r?r.length:0;for(n.finish=!0,se.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;s>e;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),se.each({slideDown:R(\"show\"),slideUp:R(\"hide\"),slideToggle:R(\"toggle\"),fadeIn:{opacity:\"show\"},fadeOut:{opacity:\"hide\"},fadeToggle:{opacity:\"toggle\"}},function(t,e){se.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),se.speed=function(t,e,n){var r=t&&\"object\"==typeof t?se.extend({},t):{complete:n||!n&&e||se.isFunction(t)&&t,duration:t,easing:n&&e||e&&!se.isFunction(e)&&e};return r.duration=se.fx.off?0:\"number\"==typeof r.duration?r.duration:r.duration in se.fx.speeds?se.fx.speeds[r.duration]:se.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue=\"fx\"),r.old=r.complete,r.complete=function(){se.isFunction(r.old)&&r.old.call(this),r.queue&&se.dequeue(this,r.queue)},r},se.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},se.timers=[],se.fx=B.prototype.init,se.fx.tick=function(){var t,n=se.timers,r=0;for(zn=se.now();r<n.length;r++)t=n[r],t()||n[r]!==t||n.splice(r--,1);n.length||se.fx.stop(),zn=e},se.fx.timer=function(t){t()&&se.timers.push(t)&&se.fx.start()},se.fx.interval=13,se.fx.start=function(){An||(An=setInterval(se.fx.tick,se.fx.interval))},se.fx.stop=function(){clearInterval(An),An=null},se.fx.speeds={slow:600,fast:200,_default:400},se.fx.step={},se.expr&&se.expr.filters&&(se.expr.filters.animated=function(t){return se.grep(se.timers,function(e){return t===e.elem}).length}),se.fn.offset=function(t){if(arguments.length)return t===e?this:this.each(function(e){se.offset.setOffset(this,t,e)});var n,r,i=this[0],o={top:0,left:0},s=i&&i.ownerDocument;if(s)return n=s.documentElement,se.contains(n,i)?(typeof i.getBoundingClientRect!==H&&(o=i.getBoundingClientRect()),r=L(s),{top:o.top+r.pageYOffset-n.clientTop,left:o.left+r.pageXOffset-n.clientLeft}):o},se.offset={setOffset:function(t,e,n){var r,i,o,s,a,l,u,p=se.css(t,\"position\"),h=se(t),c={};\"static\"===p&&(t.style.position=\"relative\"),a=h.offset(),o=se.css(t,\"top\"),l=se.css(t,\"left\"),u=(\"absolute\"===p||\"fixed\"===p)&&(o+l).indexOf(\"auto\")>-1,u?(r=h.position(),s=r.top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(l)||0),se.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(c.top=e.top-a.top+s),null!=e.left&&(c.left=e.left-a.left+i),\"using\"in e?e.using.call(t,c):h.css(c)}},se.fn.extend({position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return\"fixed\"===se.css(n,\"position\")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),se.nodeName(t[0],\"html\")||(r=t.offset()),r.top+=se.css(t[0],\"borderTopWidth\",!0),r.left+=se.css(t[0],\"borderLeftWidth\",!0)),{top:e.top-r.top-se.css(n,\"marginTop\",!0),left:e.left-r.left-se.css(n,\"marginLeft\",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||W;t&&!se.nodeName(t,\"html\")&&\"static\"===se.css(t,\"position\");)t=t.offsetParent;return t||W})}}),se.each({scrollLeft:\"pageXOffset\",scrollTop:\"pageYOffset\"},function(n,r){var i=\"pageYOffset\"===r;se.fn[n]=function(o){return se.access(this,function(n,o,s){var a=L(n);return s===e?a?a[r]:n[o]:(a?a.scrollTo(i?t.pageXOffset:s,i?s:t.pageYOffset):n[o]=s,void 0)},n,o,arguments.length,null)}}),se.each({Height:\"height\",Width:\"width\"},function(t,n){se.each({padding:\"inner\"+t,content:n,\"\":\"outer\"+t},function(r,i){se.fn[i]=function(i,o){var s=arguments.length&&(r||\"boolean\"!=typeof i),a=r||(i===!0||o===!0?\"margin\":\"border\");return se.access(this,function(n,r,i){var o;return se.isWindow(n)?n.document.documentElement[\"client\"+t]:9===n.nodeType?(o=n.documentElement,Math.max(n.body[\"scroll\"+t],o[\"scroll\"+t],n.body[\"offset\"+t],o[\"offset\"+t],o[\"client\"+t])):i===e?se.css(n,r,a):se.style(n,r,i,a)},n,s?i:e,s,null)}})}),se.fn.size=function(){return this.length},se.fn.andSelf=se.fn.addBack,\"object\"==typeof module&&module&&\"object\"==typeof module.exports?module.exports=se:\"function\"==typeof n&&n.amd&&n(\"jquery\",[],function(){return se}),\"object\"==typeof t&&\"object\"==typeof t.document&&(t.jQuery=t.$=se)}(window),function(t,r){\"undefined\"!=typeof exports?r(t,exports,e(\"underscore\")):\"function\"==typeof n&&n.amd?n(\"backbone\",[\"underscore\",\"jquery\",\"exports\"],function(e,n,i){t.Backbone=r(t,i,e,n)}):t.Backbone=r(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}(this,function(t,e,n,r){var i=t.Backbone,o=[];o.push;var s=o.slice;o.splice,e.VERSION=\"1.1.0\",e.$=r,e.noConflict=function(){return t.Backbone=i,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=e.Events={on:function(t,e,n){if(!u(this,\"on\",t,[e,n])||!e)return this;this._events||(this._events={});var r=this._events[t]||(this._events[t]=[]);return r.push({callback:e,context:n,ctx:n||this}),this},once:function(t,e,r){if(!u(this,\"once\",t,[e,r])||!e)return this;var i=this,o=n.once(function(){i.off(t,o),e.apply(this,arguments)});return o._callback=e,this.on(t,o,r)},off:function(t,e,r){var i,o,s,a,l,p,h,c;if(!this._events||!u(this,\"off\",t,[e,r]))return this;if(!t&&!e&&!r)return this._events={},this;for(a=t?[t]:n.keys(this._events),l=0,p=a.length;p>l;l++)if(t=a[l],s=this._events[t]){if(this._events[t]=i=[],e||r)for(h=0,c=s.length;c>h;h++)o=s[h],(e&&e!==o.callback&&e!==o.callback._callback||r&&r!==o.context)&&i.push(o);i.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=s.call(arguments,1);if(!u(this,\"trigger\",t,e))return this;var n=this._events[t],r=this._events.all;return n&&p(n,e),r&&p(r,arguments),this},stopListening:function(t,e,r){var i=this._listeningTo;if(!i)return this;var o=!e&&!r;r||\"object\"!=typeof e||(r=this),t&&((i={})[t._listenId]=t);for(var s in i)t=i[s],t.off(e,r,this),(o||n.isEmpty(t._events))&&delete this._listeningTo[s];return this}},l=/\\s+/,u=function(t,e,n,r){if(!n)return!0;if(\"object\"==typeof n){for(var i in n)t[e].apply(t,[i,n[i]].concat(r));return!1}if(l.test(n)){for(var o=n.split(l),s=0,a=o.length;a>s;s++)t[e].apply(t,[o[s]].concat(r));return!1}return!0},p=function(t,e){var n,r=-1,i=t.length,o=e[0],s=e[1],a=e[2];switch(e.length){case 0:for(;++r<i;)(n=t[r]).callback.call(n.ctx);return;case 1:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o);return;case 2:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o,s);return;case 3:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o,s,a);return;default:for(;++r<i;)(n=t[r]).callback.apply(n.ctx,e)}},h={listenTo:\"on\",listenToOnce:\"once\"};n.each(h,function(t,e){a[e]=function(e,r,i){var o=this._listeningTo||(this._listeningTo={}),s=e._listenId||(e._listenId=n.uniqueId(\"l\"));return o[s]=e,i||\"object\"!=typeof r||(i=this),e[t](r,i,this),this}}),a.bind=a.on,a.unbind=a.off,n.extend(e,a);var c=e.Model=function(t,e){var r=t||{};e||(e={}),this.cid=n.uniqueId(\"c\"),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(r=this.parse(r,e)||{}),r=n.defaults({},r,n.result(this,\"defaults\")),this.set(r,e),this.changed={},this.initialize.apply(this,arguments)};n.extend(c.prototype,a,{changed:null,validationError:null,idAttribute:\"id\",initialize:function(){},toJSON:function(){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,r){var i,o,s,a,l,u,p,h;if(null==t)return this;if(\"object\"==typeof t?(o=t,r=e):(o={})[t]=e,r||(r={}),!this._validate(o,r))return!1;s=r.unset,l=r.silent,a=[],u=this._changing,this._changing=!0,u||(this._previousAttributes=n.clone(this.attributes),this.changed={}),h=this.attributes,p=this._previousAttributes,this.idAttribute in o&&(this.id=o[this.idAttribute]);for(i in o)e=o[i],n.isEqual(h[i],e)||a.push(i),n.isEqual(p[i],e)?delete this.changed[i]:this.changed[i]=e,s?delete h[i]:h[i]=e;if(!l){a.length&&(this._pending=!0);for(var c=0,_=a.length;_>c;c++)this.trigger(\"change:\"+a[c],this,h[a[c]],r)}if(u)return this;if(!l)for(;this._pending;)this._pending=!1,this.trigger(\"change\",this,r);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var r in this.attributes)e[r]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?n.clone(this.changed):!1;var e,r=!1,i=this._changing?this._previousAttributes:this.attributes;for(var o in t)n.isEqual(i[o],e=t[o])||((r||(r={}))[o]=e);return r},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){t=t?n.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=this,r=t.success;return t.success=function(n){return e.set(e.parse(n,t),t)?(r&&r(e,n,t),e.trigger(\"sync\",e,n,t),void 0):!1},O(this,t),this.sync(\"read\",this,t)},save:function(t,e,r){var i,o,s,a=this.attributes;if(null==t||\"object\"==typeof t?(i=t,r=e):(i={})[t]=e,r=n.extend({validate:!0},r),i&&!r.wait){if(!this.set(i,r))return!1}else if(!this._validate(i,r))return!1;i&&r.wait&&(this.attributes=n.extend({},a,i)),void 0===r.parse&&(r.parse=!0);var l=this,u=r.success;return r.success=function(t){l.attributes=a;var e=l.parse(t,r);return r.wait&&(e=n.extend(i||{},e)),n.isObject(e)&&!l.set(e,r)?!1:(u&&u(l,t,r),l.trigger(\"sync\",l,t,r),void 0)},O(this,r),o=this.isNew()?\"create\":r.patch?\"patch\":\"update\",\"patch\"===o&&(r.attrs=i),s=this.sync(o,this,r),i&&r.wait&&(this.attributes=a),s},destroy:function(t){t=t?n.clone(t):{};var e=this,r=t.success,i=function(){e.trigger(\"destroy\",e,e.collection,t)};if(t.success=function(n){(t.wait||e.isNew())&&i(),r&&r(e,n,t),e.isNew()||e.trigger(\"sync\",e,n,t)},this.isNew())return t.success(),!1;O(this,t);var o=this.sync(\"delete\",this,t);return t.wait||i(),o},url:function(){var t=n.result(this,\"urlRoot\")||n.result(this.collection,\"url\")||$();return this.isNew()?t:t+(\"/\"===t.charAt(t.length-1)?\"\":\"/\")+encodeURIComponent(this.id)},parse:function(t){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return null==this.id},isValid:function(t){return this._validate({},n.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var r=this.validationError=this.validate(t,e)||null;return r?(this.trigger(\"invalid\",this,r,n.extend(e,{validationError:r})),!1):!0}});var _=[\"keys\",\"values\",\"pairs\",\"invert\",\"pick\",\"omit\"];n.each(_,function(t){c.prototype[t]=function(){var e=s.call(arguments);return e.unshift(this.attributes),n[t].apply(n,e)}});var d=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},f={add:!0,remove:!0,merge:!0},g={add:!0,remove:!1};n.extend(d.prototype,a,{model:c,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,g))},remove:function(t,e){var r=!n.isArray(t);t=r?[t]:n.clone(t),e||(e={});var i,o,s,a;for(i=0,o=t.length;o>i;i++)a=t[i]=this.get(t[i]),a&&(delete this._byId[a.id],delete this._byId[a.cid],s=this.indexOf(a),this.models.splice(s,1),this.length--,e.silent||(e.index=s,a.trigger(\"remove\",a,this,e)),this._removeReference(a));return r?t[0]:t},set:function(t,e){e=n.defaults({},e,f),e.parse&&(t=this.parse(t,e));var r=!n.isArray(t);t=r?t?[t]:[]:n.clone(t);var i,o,s,a,l,u,p,h=e.at,_=this.model,d=this.comparator&&null==h&&e.sort!==!1,g=n.isString(this.comparator)?this.comparator:null,m=[],y=[],v={},b=e.add,w=e.merge,x=e.remove,k=!d&&b&&x?[]:!1;for(i=0,o=t.length;o>i;i++){if(l=t[i],s=l instanceof c?a=l:l[_.prototype.idAttribute],u=this.get(s))x&&(v[u.cid]=!0),w&&(l=l===a?a.attributes:l,e.parse&&(l=u.parse(l,e)),u.set(l,e),d&&!p&&u.hasChanged(g)&&(p=!0)),t[i]=u;else if(b){if(a=t[i]=this._prepareModel(l,e),!a)continue;m.push(a),a.on(\"all\",this._onModelEvent,this),this._byId[a.cid]=a,null!=a.id&&(this._byId[a.id]=a)}k&&k.push(u||a)}if(x){for(i=0,o=this.length;o>i;++i)v[(a=this.models[i]).cid]||y.push(a);y.length&&this.remove(y,e)}if(m.length||k&&k.length)if(d&&(p=!0),this.length+=m.length,null!=h)for(i=0,o=m.length;o>i;i++)this.models.splice(h+i,0,m[i]);else{k&&(this.models.length=0);var T=k||m;for(i=0,o=T.length;o>i;i++)this.models.push(T[i])}if(p&&this.sort({silent:!0}),!e.silent){for(i=0,o=m.length;o>i;i++)(a=m[i]).trigger(\"add\",a,this,e);(p||k&&k.length)&&this.trigger(\"sort\",this,e)}return r?t[0]:t},reset:function(t,e){e||(e={});for(var r=0,i=this.models.length;i>r;r++)this._removeReference(this.models[r]);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger(\"reset\",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t),e},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t),e},slice:function(){return s.apply(this.models,arguments)},get:function(t){return null==t?void 0:this._byId[t.id]||this._byId[t.cid]||this._byId[t]},at:function(t){return this.models[t]},where:function(t,e){return n.isEmpty(t)?e?void 0:[]:this[e?\"find\":\"filter\"](function(e){for(var n in t)if(t[n]!==e.get(n))return!1;return!0})},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error(\"Cannot sort a set without a comparator\");return t||(t={}),n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),t.silent||this.trigger(\"sort\",this,t),this},pluck:function(t){return n.invoke(this.models,\"get\",t)},fetch:function(t){t=t?n.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=t.success,r=this;return t.success=function(n){var i=t.reset?\"reset\":\"set\";r[i](n,t),e&&e(r,n,t),r.trigger(\"sync\",r,n,t)},O(this,t),this.sync(\"read\",this,t)},create:function(t,e){if(e=e?n.clone(e):{},!(t=this._prepareModel(t,e)))return!1;e.wait||this.add(t,e);var r=this,i=e.success;return e.success=function(t,e,n){n.wait&&r.add(t,n),i&&i(t,e,n)},t.save(null,e),t},parse:function(t){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(t instanceof c)return t.collection||(t.collection=this),t;e=e?n.clone(e):{},e.collection=this;var r=new this.model(t,e);return r.validationError?(this.trigger(\"invalid\",this,r.validationError,e),!1):r},_removeReference:function(t){this===t.collection&&delete t.collection,t.off(\"all\",this._onModelEvent,this)},_onModelEvent:function(t,e,n,r){(\"add\"!==t&&\"remove\"!==t||n===this)&&(\"destroy\"===t&&this.remove(e,r),e&&t===\"change:\"+e.idAttribute&&(delete this._byId[e.previous(e.idAttribute)],null!=e.id&&(this._byId[e.id]=e)),this.trigger.apply(this,arguments))}});var m=[\"forEach\",\"each\",\"map\",\"collect\",\"reduce\",\"foldl\",\"inject\",\"reduceRight\",\"foldr\",\"find\",\"detect\",\"filter\",\"select\",\"reject\",\"every\",\"all\",\"some\",\"any\",\"include\",\"contains\",\"invoke\",\"max\",\"min\",\"toArray\",\"size\",\"first\",\"head\",\"take\",\"initial\",\"rest\",\"tail\",\"drop\",\"last\",\"without\",\"difference\",\"indexOf\",\"shuffle\",\"lastIndexOf\",\"isEmpty\",\"chain\"];n.each(m,function(t){d.prototype[t]=function(){var e=s.call(arguments);return e.unshift(this.models),n[t].apply(n,e)}});var y=[\"groupBy\",\"countBy\",\"sortBy\"];n.each(y,function(t){d.prototype[t]=function(e,r){var i=n.isFunction(e)?e:function(t){return t.get(e)};return n[t](this.models,i,r)}});var v=e.View=function(t){this.cid=n.uniqueId(\"view\"),t||(t={}),n.extend(this,n.pick(t,w)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},b=/^(\\S+)\\s*(.*)$/,w=[\"model\",\"collection\",\"el\",\"id\",\"attributes\",\"className\",\"tagName\",\"events\"];n.extend(v.prototype,a,{tagName:\"div\",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,n){return this.$el&&this.undelegateEvents(),this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0],n!==!1&&this.delegateEvents(),this},delegateEvents:function(t){if(!t&&!(t=n.result(this,\"events\")))return this;this.undelegateEvents();for(var e in t){var r=t[e];if(n.isFunction(r)||(r=this[t[e]]),r){var i=e.match(b),o=i[1],s=i[2];r=n.bind(r,this),o+=\".delegateEvents\"+this.cid,\"\"===s?this.$el.on(o,r):this.$el.on(o,s,r)}}return this},undelegateEvents:function(){return this.$el.off(\".delegateEvents\"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(n.result(this,\"el\"),!1);else{var t=n.extend({},n.result(this,\"attributes\"));this.id&&(t.id=n.result(this,\"id\")),this.className&&(t[\"class\"]=n.result(this,\"className\"));var r=e.$(\"<\"+n.result(this,\"tagName\")+\">\").attr(t);this.setElement(r,!1)}}}),e.sync=function(t,r,i){var o=k[t];n.defaults(i||(i={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var s={type:o,dataType:\"json\"};if(i.url||(s.url=n.result(r,\"url\")||$()),null!=i.data||!r||\"create\"!==t&&\"update\"!==t&&\"patch\"!==t||(s.contentType=\"application/json\",s.data=JSON.stringify(i.attrs||r.toJSON(i))),i.emulateJSON&&(s.contentType=\"application/x-www-form-urlencoded\",s.data=s.data?{model:s.data}:{}),i.emulateHTTP&&(\"PUT\"===o||\"DELETE\"===o||\"PATCH\"===o)){s.type=\"POST\",i.emulateJSON&&(s.data._method=o);var a=i.beforeSend;i.beforeSend=function(t){return t.setRequestHeader(\"X-HTTP-Method-Override\",o),a?a.apply(this,arguments):void 0}}\"GET\"===s.type||i.emulateJSON||(s.processData=!1),\"PATCH\"===s.type&&x&&(s.xhr=function(){return new ActiveXObject(\"Microsoft.XMLHTTP\")});var l=i.xhr=e.ajax(n.extend(s,i));return r.trigger(\"request\",r,l,i),l};var x=!(\"undefined\"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),k={create:\"POST\",update:\"PUT\",patch:\"PATCH\",\"delete\":\"DELETE\",read:\"GET\"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var T=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},C=/\\((.*?)\\)/g,M=/(\\(\\?)?:\\w+/g,j=/\\*\\w+/g,S=/[\\-{}\\[\\]+?.,\\\\\\^$|#\\s]/g;n.extend(T.prototype,a,{initialize:function(){},route:function(t,r,i){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(r)&&(i=r,r=\"\"),i||(i=this[r]);var o=this;return e.history.route(t,function(n){var s=o._extractParameters(t,n);i&&i.apply(o,s),o.trigger.apply(o,[\"route:\"+r].concat(s)),o.trigger(\"route\",r,s),e.history.trigger(\"route\",o,r,s)}),this},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,\"routes\");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(S,\"\\\\$&\").replace(C,\"(?:$1)?\").replace(M,function(t,e){return e?t:\"([^/]+)\"}).replace(j,\"(.*?)\"),new RegExp(\"^\"+t+\"$\")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return n.map(r,function(t){return t?decodeURIComponent(t):null})}});var z=e.History=function(){this.handlers=[],n.bindAll(this,\"checkUrl\"),\"undefined\"!=typeof window&&(this.location=window.location,this.history=window.history)},A=/^[#\\/]|\\s+$/g,N=/^\\/+|\\/+$/g,P=/msie [\\w.]+/,F=/\\/$/,E=/[?#].*$/;z.started=!1,n.extend(z.prototype,a,{interval:50,getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:\"\"},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=this.location.pathname;var n=this.root.replace(F,\"\");t.indexOf(n)||(t=t.slice(n.length))}else t=this.getHash();return t.replace(A,\"\")},start:function(t){if(z.started)throw new Error(\"Backbone.history has already been started\");z.started=!0,this.options=n.extend({root:\"/\"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var r=this.getFragment(),i=document.documentMode,o=P.exec(navigator.userAgent.toLowerCase())&&(!i||7>=i);this.root=(\"/\"+this.root+\"/\").replace(N,\"/\"),o&&this._wantsHashChange&&(this.iframe=e.$('<iframe src=\"javascript:0\" tabindex=\"-1\" />').hide().appendTo(\"body\")[0].contentWindow,this.navigate(r)),this._hasPushState?e.$(window).on(\"popstate\",this.checkUrl):this._wantsHashChange&&\"onhashchange\"in window&&!o?e.$(window).on(\"hashchange\",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=r;var s=this.location,a=s.pathname.replace(/[^\\/]$/,\"$&/\")===this.root;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!a)return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+this.location.search+\"#\"+this.fragment),!0;this._hasPushState&&a&&s.hash&&(this.fragment=this.getHash().replace(A,\"\"),this.history.replaceState({},document.title,this.root+this.fragment+s.search))}return this.options.silent?void 0:this.loadUrl()},stop:function(){e.$(window).off(\"popstate\",this.checkUrl).off(\"hashchange\",this.checkUrl),clearInterval(this._checkUrlInterval),z.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(){var t=this.getFragment();return t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe))),t===this.fragment?!1:(this.iframe&&this.navigate(t),this.loadUrl(),void 0)},loadUrl:function(t){return t=this.fragment=this.getFragment(t),n.any(this.handlers,function(e){return e.route.test(t)?(e.callback(t),!0):void 0})},navigate:function(t,e){if(!z.started)return!1;e&&e!==!0||(e={trigger:!!e});var n=this.root+(t=this.getFragment(t||\"\"));if(t=t.replace(E,\"\"),this.fragment!==t){if(this.fragment=t,\"\"===t&&\"/\"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[e.replace?\"replaceState\":\"pushState\"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getFragment(this.getHash(this.iframe))&&(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var r=t.href.replace(/(javascript:|#).*$/,\"\");t.replace(r+\"#\"+e)}else t.hash=\"#\"+e}}),e.history=new z;var D=function(t,e){var r,i=this;r=t&&n.has(t,\"constructor\")?t.constructor:function(){return i.apply(this,arguments)},n.extend(r,i,e);var o=function(){this.constructor=r};return o.prototype=i.prototype,r.prototype=new o,t&&n.extend(r.prototype,t),r.__super__=i.prototype,r};c.extend=d.extend=T.extend=v.extend=z.extend=D;var $=function(){throw new Error('A \"url\" property or function must be specified')},O=function(t,e){var n=e.error;e.error=function(r){n&&n(t,r,e),t.trigger(\"error\",t,r,e)}};return e}),function(){n(\"common/build_views\",[\"underscore\"],function(t){var e;return e=function(e,n,r,i){var o,s,a,l,u,p,h,c,_,d,f,g;null==i&&(i=[]),o=[];try{p=t.filter(n,function(n){return!t.has(e,n.id)})}catch(m){throw s=m,console.log(s),s}for(a=_=0,f=p.length;f>_;a=++_){u=p[a],c=t.extend({},r,{model:u});try{e[u.id]=a<i.length?new i[a](c):new u.default_view(c)}catch(m){throw s=m,console.log(\"error on model of\",u,s),s}o.push(e[u.id])}for(h=t.difference(t.keys(e),t.pluck(n,\"id\")),d=0,g=h.length;g>d;d++)l=h[d],e[l].remove(),delete e[l];return o}})}.call(this),function(){n(\"common/safebind\",[\"underscore\"],function(t){var e;return e=function(e,n,r,i){var o;t.has(e,\"eventers\")||(e.eventers={});try{e.eventers[n.id]=n}catch(s){o=s}return null!=n?(n.on(r,i,e),n.on(\"destroy remove\",function(){return delete e.eventers[n]},e)):console.log(\"error with binder\",e,r),null}})}.call(this),function(){n(\"common/load_models\",[\"require\",\"./base\"],function(t){var e;return e=function(e){var n,r,i,o,s,a,l,u,p,h,c,_,d,f,g,m,y;for(a=[],l=[],n=t(\"./base\").Collections,u=0,_=e.length;_>u;u++)s=e[u],i=n(s.type),r=s.attributes,i&&i.get(r.id)?l.push([i,r]):a.push([i,r]);for(p=0,d=a.length;d>p;p++)o=a[p],i=o[0],r=o[1],i&&i.add(r,{silent:!0});for(h=0,f=a.length;f>h;h++)o=a[h],i=o[0],r=o[1],i&&i.get(r.id).dinitialize(r);for(c=0,g=a.length;g>c;c++)o=a[c],i=o[0],r=o[1],i&&(s=i.get(r.id),s.trigger(\"add\",s,i,{}));for(y=0,m=l.length;m>y;y++)o=l[y],i=o[0],r=o[1],i&&i.get(r.id).set(r);return null}})}.call(this),function(){n(\"common/bulk_save\",[\"underscore\",\"jquery\",\"require\",\"./base\",\"./load_models\"],function(t,e,n,r,i){var o;return o=function(r){var o,s,a,l,u,p;return o=n(\"./base\").Config,s=r[0].get(\"doc\"),a=function(){var e,n,i;for(i=[],e=0,n=r.length;n>e;e++)l=r[e],i.push({type:l.type,attributes:t.clone(l.attributes)});return i}(),a=JSON.stringify(a),u=o.prefix+\"/bokeh/bb/\"+s+\"/bulkupsert\",p=e.ajax({type:\"POST\",url:u,contentType:\"application/json\",data:a,header:{client:\"javascript\"}}),p.done(function(t){return i(t.modelspecs)}),p}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"common/continuum_view\",[\"underscore\",\"backbone\"],function(n,r){var i,o;return i=function(r){function i(){return o=i.__super__.constructor.apply(this,arguments)}return e(i,r),i.prototype.initialize=function(t){return n.has(t,\"id\")?void 0:this.id=n.uniqueId(\"ContinuumView\")},i.prototype.bind_bokeh_events=function(){return\"pass\"},i.prototype.delegateEvents=function(t){return i.__super__.delegateEvents.call(this,t)},i.prototype.remove=function(){var e,r,o;if(n.has(this,\"eventers\")){o=this.eventers;for(e in o)t.call(o,e)&&(r=o[e],r.off(null,null,this))}return this.trigger(\"remove\"),i.__super__.remove.call(this)},i.prototype.mget=function(){return this.model.get.apply(this.model,arguments)},i.prototype.mset=function(){return this.model.set.apply(this.model,arguments)},i.prototype.mget_obj=function(t){return this.model.get_obj(t)},i.prototype.render_end=function(){return\"pass\"},i}(r.View),{View:i}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,r=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};n(\"common/has_properties\",[\"underscore\",\"backbone\",\"require\",\"./base\",\"./safebind\"],function(n,i,o,s,a){var l,u;return l=function(i){function l(){return this.rpc=t(this.rpc,this),this.get_obj=t(this.get_obj,this),this.resolve_ref=t(this.resolve_ref,this),this.convert_to_ref=t(this.convert_to_ref,this),u=l.__super__.constructor.apply(this,arguments)}return r(l,i),l.prototype.destroy=function(t){var r,i,o,s;if(l.__super__.destroy.call(this,t),n.has(this,\"eventers\")){o=this.eventers,s=[];for(r in o)e.call(o,r)&&(i=o[r],s.push(i.off(null,null,this)));return s}},l.prototype.isNew=function(){return!1},l.prototype.initialize=function(t,e){var r=this;return t||(t={}),e||(e={}),l.__super__.initialize.call(this,t,e),this._base=!1,this.properties={},this.property_cache={},n.has(t,this.idAttribute)||(this.id=n.uniqueId(this.type),this.attributes[this.idAttribute]=this.id),n.defer(function(){return r.inited?void 0:r.dinitialize(t,e)})},l.prototype.dinitialize=function(){return this.inited=!0},l.prototype.set_obj=function(t,r,i){var o,s;n.isObject(t)||null===t?(o=t,i=r):(o={},o[t]=r);for(t in o)e.call(o,t)&&(s=o[t],o[t]=this.convert_to_ref(s));return this.set(o,i)},l.prototype.set=function(t,r,i){var o,s,a,u,p;n.isObject(t)||null===t?(o=t,i=r):(o={},o[t]=r),s=[];for(t in o)e.call(o,t)&&(a=o[t],n.has(this,\"properties\")&&n.has(this.properties,t)&&this.properties[t].setter&&(this.properties[t].setter.call(this,a),s.push(t)));if(!n.isEmpty(s))for(o=n.clone(o),u=0,p=s.length;p>u;u++)t=s[u],delete o[t];return n.isEmpty(o)?void 0:l.__super__.set.call(this,o,i)},l.prototype.convert_to_ref=function(t){return n.isArray(t)?n.map(t,this.convert_to_ref):t instanceof l?t.ref():void 0},l.prototype.add_dependencies=function(t,e,r){var i,o,s,l,u;for(n.isArray(r)||(r=[r]),o=this.properties[t],o.dependencies=o.dependencies.concat({obj:e,fields:r}),u=[],s=0,l=r.length;l>s;s++)i=r[s],u.push(a(this,e,\"change:\"+i,o.callbacks.changedep));return u},l.prototype.register_setter=function(t,e){var n;return n=this.properties[t],n.setter=e},l.prototype.register_property=function(t,e,r){var i,o,s,l=this;return n.isUndefined(r)&&(r=!0),n.has(this.properties,t)&&this.remove_property(t),i=function(){return l.trigger(\"changedep:\"+t)},s=function(){var e,n,r;return e=!0,o.use_cache&&(r=l.get_cache(t),l.clear_cache(t),n=l.get(t),e=n!==r),e?(l.trigger(\"change:\"+t,l,l.get(t)),l.trigger(\"change\",l)):void 0},o={getter:e,dependencies:[],use_cache:r,setter:null,callbacks:{changedep:i,propchange:s}},this.properties[t]=o,a(this,this,\"changedep:\"+t,o.callbacks.propchange),o},l.prototype.remove_property=function(t){var e,n,r,i,o,s,a,l,u,p;for(o=this.properties[t],n=o.dependencies,s=0,l=n.length;l>s;s++)for(e=n[s],i=e.obj,p=e.fields,a=0,u=p.length;u>a;a++)r=p[a],i.off(\"change:\"+r,o.callbacks.changedep,this);return this.off(\"changedep:\"+e),delete this.properties[t],o.use_cache?this.clear_cache(t):void 0},l.prototype.has_cache=function(t){return n.has(this.property_cache,t)},l.prototype.add_cache=function(t,e){return this.property_cache[t]=e},l.prototype.clear_cache=function(t){return delete this.property_cache[t]},l.prototype.get_cache=function(t){return this.property_cache[t]},l.prototype.get=function(t){var e,r,i;return n.has(this.properties,t)?(i=this.properties[t],i.use_cache&&this.has_cache(t)?this.property_cache[t]:(r=i.getter,e=r.apply(this),this.properties[t].use_cache&&this.add_cache(t,e),e)):l.__super__.get.call(this,t)},l.prototype.ref=function(){return{type:this.type,id:this.id}},l.prototype.resolve_ref=function(t){return n.isArray(t)?n.map(t,this.resolve_ref):(t||console.log(\"ERROR, null reference\"),t.type===this.type&&t.id===this.id?this:this.base().Collections(t.type).get(t.id))},l.prototype.get_obj=function(t){var e;return e=this.get(t),e?this.resolve_ref(e):void 0},l.prototype.base=function(){return this._base||(this._base=o(\"./base\")),this._base},l.prototype.url=function(){var t;return t=this.base().Config.prefix+\"/bokeh/bb/\"+this.get(\"doc\")+\"/\"+this.type+\"/\",this.isNew()?t:t+this.get(\"id\")+\"/\"},l.prototype.sync=function(t,e,n){return n.success(e,null,{})},l.prototype.defaults=function(){return{}},l.prototype.rpc=function(t,e,n){var r,i,o,a,l,u,p;return a=s.Config.prefix,i=this.get(\"doc\"),o=this.get(\"id\"),u=this.type,p=\"\"+a+\"/bokeh/bb/rpc/\"+i+\"/\"+u+\"/\"+o+\"/\"+t+\"/\",r={args:e,kwargs:n},l=$.ajax({type:\"POST\",url:p,data:JSON.stringify(r),contentType:\"application/json\",xhrFields:{withCredentials:!0}})},l}(i.Model)})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"common/has_parent\",[\"underscore\",\"./has_properties\"],function(t,n){var r,i;return r=function(n){function r(){return i=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.get_fallback=function(e){return this.get_obj(\"parent\")&&t.indexOf(this.get_obj(\"parent\").parent_properties,e)>=0&&!t.isUndefined(this.get_obj(\"parent\").get(e))?this.get_obj(\"parent\").get(e):t.isFunction(this.display_defaults)?this.display_defaults()[e]:this.display_defaults[e]},r.prototype.get=function(e){var n;return n=r.__super__.get.call(this,e),t.isUndefined(n)?\"parent\"!==e?this.get_fallback(e):void 0:n\n",
" },r.prototype.display_defaults={},r}(n)})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"range/range1d\",[\"underscore\",\"backbone\",\"common/has_properties\"],function(t,n,r){var i,o,s,a;return i=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"Range1d\",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),this.register_property(\"min\",function(){return Math.min(this.get(\"start\"),this.get(\"end\"))},!0),this.add_dependencies(\"min\",this,[\"start\",\"end\"]),this.register_property(\"max\",function(){return Math.max(this.get(\"start\"),this.get(\"end\"))},!0),this.add_dependencies(\"max\",this,[\"start\",\"end\"])},n.prototype.defaults=function(){return{start:0,end:1}},n}(r),o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n.Collection),{Model:i,Collection:new o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"common/view_state\",[\"./has_properties\",\"range/range1d\"],function(t,n){var r,i;return r=function(t){function r(){return i=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype.initialize=function(t,e){var i,o;return r.__super__.initialize.call(this,t,e),this.register_property(\"border_top\",function(){return Math.max(this.get(\"min_border_top\"),this.get(\"requested_border_top\"))},!1),this.add_dependencies(\"border_top\",this,[\"min_border_top\",\"requested_border_top\"]),this.register_property(\"border_bottom\",function(){return Math.max(this.get(\"min_border_bottom\"),this.get(\"requested_border_bottom\"))},!1),this.add_dependencies(\"border_bottom\",this,[\"min_border_bottom\",\"requested_border_bottom\"]),this.register_property(\"border_left\",function(){return Math.max(this.get(\"min_border_left\"),this.get(\"requested_border_left\"))},!1),this.add_dependencies(\"border_left\",this,[\"min_border_left\",\"requested_border_left\"]),this.register_property(\"border_right\",function(){return Math.max(this.get(\"min_border_right\"),this.get(\"requested_border_right\"))},!1),this.add_dependencies(\"border_right\",this,[\"min_border_right\",\"requested_border_right\"]),this.register_property(\"canvas_aspect\",function(){return this.get(\"canvas_height\")/this.get(\"canvas_width\")},!0),this.add_dependencies(\"canvas_aspect\",this,[\"canvas_height\",\"canvas_width\"]),this.register_property(\"outer_aspect\",function(){return this.get(\"outer_height\")/this.get(\"outer_width\")},!0),this.add_dependencies(\"outer_aspect\",this,[\"outer_height\",\"outer_width\"]),this.register_property(\"inner_width\",function(){return this.get(\"outer_width\")-this.get(\"border_left\")-this.get(\"border_right\")},!0),this.add_dependencies(\"inner_width\",this,[\"outer_width\",\"border_left\",\"border_right\"]),this.register_property(\"inner_height\",function(){return this.get(\"outer_height\")-this.get(\"border_top\")-this.get(\"border_bottom\")},!0),this.add_dependencies(\"inner_height\",this,[\"outer_height\",\"border_top\",\"border_bottom\"]),this.register_property(\"inner_aspect\",function(){return this.get(\"inner_height\")/this.get(\"inner_width\")},!0),this.add_dependencies(\"inner_aspect\",this,[\"inner_height\",\"inner_width\"]),i=new n.Model({start:this.get(\"border_left\"),end:this.get(\"border_left\")+this.get(\"inner_width\")}),this.register_property(\"inner_range_horizontal\",function(){return i.set(\"start\",this.get(\"border_left\")),i.set(\"end\",this.get(\"border_left\")+this.get(\"inner_width\")),i},!0),this.add_dependencies(\"inner_range_horizontal\",this,[\"border_left\",\"inner_width\"]),o=new n.Model({start:this.get(\"border_bottom\"),end:this.get(\"border_bottom\")+this.get(\"inner_height\")}),this.register_property(\"inner_range_vertical\",function(){return o.set(\"start\",this.get(\"border_bottom\")),o.set(\"end\",this.get(\"border_bottom\")+this.get(\"inner_height\")),o},!0),this.add_dependencies(\"inner_range_vertical\",this,[\"border_bottom\",\"inner_height\"])},r.prototype.vx_to_sx=function(t){return t},r.prototype.vy_to_sy=function(t){return this.get(\"canvas_height\")-t},r.prototype.v_vx_to_sx=function(t){var e,n,r,i;for(e=r=0,i=t.length;i>r;e=++r)n=t[e],t[e]=n;return t},r.prototype.v_vy_to_sy=function(t){var e,n,r,i,o;for(e=this.get(\"canvas_height\"),n=i=0,o=t.length;o>i;n=++i)r=t[n],t[n]=e-r;return t},r.prototype.sx_to_vx=function(t){return t},r.prototype.sy_to_vy=function(t){return this.get(\"canvas_height\")-t},r.prototype.v_sx_to_vx=function(t){var e,n,r,i;for(e=r=0,i=t.length;i>r;e=++r)n=t[e],t[e]=n;return t},r.prototype.v_sy_to_vy=function(t){var e,n,r,i,o;for(e=this.get(\"canvas_height\"),n=i=0,o=t.length;o>i;n=++i)r=t[n],t[n]=e-r;return t},r}(t)})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"mapper/1d/linear_mapper\",[\"common/has_properties\"],function(t){var n,r;return n=function(t){function n(){return r=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),this.register_property(\"mapper_state\",this._mapper_state,!0),this.add_dependencies(\"mapper_state\",this,[\"source_range\",\"target_range\"]),this.add_dependencies(\"mapper_state\",this.get(\"source_range\"),[\"start\",\"end\"]),this.add_dependencies(\"mapper_state\",this.get(\"target_range\"),[\"start\",\"end\"])},n.prototype.map_to_target=function(t){var e,n,r;return r=this.get(\"mapper_state\"),n=r[0],e=r[1],n*t+e},n.prototype.v_map_to_target=function(t){var e,n,r,i,o,s,a,l;for(l=this.get(\"mapper_state\"),i=l[0],n=l[1],r=new Float64Array(t.length),e=s=0,a=t.length;a>s;e=++s)o=t[e],r[e]=i*o+n;return r},n.prototype.map_from_target=function(t){var e,n,r;return r=this.get(\"mapper_state\"),n=r[0],e=r[1],(t-e)/n},n.prototype.v_map_from_target=function(t){var e,n,r,i,o,s,a,l;for(l=this.get(\"mapper_state\"),i=l[0],n=l[1],r=new Float64Array(t.length),e=s=0,a=t.length;a>s;e=++s)o=t[e],r[e]=(o-n)/i;return r},n.prototype._mapper_state=function(){var t,e,n,r,i,o;return r=this.get(\"source_range\").get(\"start\"),n=this.get(\"source_range\").get(\"end\"),o=this.get(\"target_range\").get(\"start\"),i=this.get(\"target_range\").get(\"end\"),e=(i-o)/(n-r),t=-(e*r)+o,[e,t]},n}(t)})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"mapper/2d/grid_mapper\",[\"common/has_properties\"],function(t){var n,r;return n=function(t){function n(){return r=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.map_to_target=function(t,e){var n,r;return n=this.get(\"domain_mapper\").map_to_target(t),r=this.get(\"codomain_mapper\").map_to_target(e),[n,r]},n.prototype.v_map_to_target=function(t,e){var n,r;return n=this.get(\"domain_mapper\").v_map_to_target(t),r=this.get(\"codomain_mapper\").v_map_to_target(e),[n,r]},n.prototype.map_from_target=function(t,e){var n,r;return n=this.get(\"domain_mapper\").map_from_target(t),r=this.get(\"codomain_mapper\").map_from_target(e),[n,r]},n.prototype.v_map_from_target=function(t,e){var n,r;return n=this.get(\"domain_mapper\").v_map_from_target(t),r=this.get(\"codomain_mapper\").v_map_from_target(e),[n,r]},n}(t)})}.call(this),function(){n(\"common/svg_colors\",[],function(){var t;return t={indianred:\"#CD5C5C\",lightcoral:\"#F08080\",salmon:\"#FA8072\",darksalmon:\"#E9967A\",lightsalmon:\"#FFA07A\",crimson:\"#DC143C\",red:\"#FF0000\",firebrick:\"#B22222\",darkred:\"#8B0000\",pink:\"#FFC0CB\",lightpink:\"#FFB6C1\",hotpink:\"#FF69B4\",deeppink:\"#FF1493\",mediumvioletred:\"#C71585\",palevioletred:\"#DB7093\",lightsalmon:\"#FFA07A\",coral:\"#FF7F50\",tomato:\"#FF6347\",orangered:\"#FF4500\",darkorange:\"#FF8C00\",orange:\"#FFA500\",gold:\"#FFD700\",yellow:\"#FFFF00\",lightyellow:\"#FFFFE0\",lemonchiffon:\"#FFFACD\",lightgoldenrodyellow:\"#FAFAD2\",papayawhip:\"#FFEFD5\",moccasin:\"#FFE4B5\",peachpuff:\"#FFDAB9\",palegoldenrod:\"#EEE8AA\",khaki:\"#F0E68C\",darkkhaki:\"#BDB76B\",lavender:\"#E6E6FA\",thistle:\"#D8BFD8\",plum:\"#DDA0DD\",violet:\"#EE82EE\",orchid:\"#DA70D6\",fuchsia:\"#FF00FF\",magenta:\"#FF00FF\",mediumorchid:\"#BA55D3\",mediumpurple:\"#9370DB\",blueviolet:\"#8A2BE2\",darkviolet:\"#9400D3\",darkorchid:\"#9932CC\",darkmagenta:\"#8B008B\",purple:\"#800080\",indigo:\"#4B0082\",slateblue:\"#6A5ACD\",darkslateblue:\"#483D8B\",mediumslateblue:\"#7B68EE\",greenyellow:\"#ADFF2F\",chartreuse:\"#7FFF00\",lawngreen:\"#7CFC00\",lime:\"#00FF00\",limegreen:\"#32CD32\",palegreen:\"#98FB98\",lightgreen:\"#90EE90\",mediumspringgreen:\"#00FA9A\",springgreen:\"#00FF7F\",mediumseagreen:\"#3CB371\",seagreen:\"#2E8B57\",forestgreen:\"#228B22\",green:\"#008000\",darkgreen:\"#006400\",yellowgreen:\"#9ACD32\",olivedrab:\"#6B8E23\",olive:\"#808000\",darkolivegreen:\"#556B2F\",mediumaquamarine:\"#66CDAA\",darkseagreen:\"#8FBC8F\",lightseagreen:\"#20B2AA\",darkcyan:\"#008B8B\",teal:\"#008080\",aqua:\"#00FFFF\",cyan:\"#00FFFF\",lightcyan:\"#E0FFFF\",paleturquoise:\"#AFEEEE\",aquamarine:\"#7FFFD4\",turquoise:\"#40E0D0\",mediumturquoise:\"#48D1CC\",darkturquoise:\"#00CED1\",cadetblue:\"#5F9EA0\",steelblue:\"#4682B4\",lightsteelblue:\"#B0C4DE\",powderblue:\"#B0E0E6\",lightblue:\"#ADD8E6\",skyblue:\"#87CEEB\",lightskyblue:\"#87CEFA\",deepskyblue:\"#00BFFF\",dodgerblue:\"#1E90FF\",cornflowerblue:\"#6495ED\",mediumslateblue:\"#7B68EE\",royalblue:\"#4169E1\",blue:\"#0000FF\",mediumblue:\"#0000CD\",darkblue:\"#00008B\",navy:\"#000080\",midnightblue:\"#191970\",cornsilk:\"#FFF8DC\",blanchedalmond:\"#FFEBCD\",bisque:\"#FFE4C4\",navajowhite:\"#FFDEAD\",wheat:\"#F5DEB3\",burlywood:\"#DEB887\",tan:\"#D2B48C\",rosybrown:\"#BC8F8F\",sandybrown:\"#F4A460\",goldenrod:\"#DAA520\",darkgoldenrod:\"#B8860B\",peru:\"#CD853F\",chocolate:\"#D2691E\",saddlebrown:\"#8B4513\",sienna:\"#A0522D\",brown:\"#A52A2A\",maroon:\"#800000\",white:\"#FFFFFF\",snow:\"#FFFAFA\",honeydew:\"#F0FFF0\",mintcream:\"#F5FFFA\",azure:\"#F0FFFF\",aliceblue:\"#F0F8FF\",ghostwhite:\"#F8F8FF\",whitesmoke:\"#F5F5F5\",seashell:\"#FFF5EE\",beige:\"#F5F5DC\",oldlace:\"#FDF5E6\",floralwhite:\"#FFFAF0\",ivory:\"#FFFFF0\",antiquewhite:\"#FAEBD7\",linen:\"#FAF0E6\",lavenderblush:\"#FFF0F5\",mistyrose:\"#FFE4E1\",gainsboro:\"#DCDCDC\",lightgrey:\"#D3D3D3\",silver:\"#C0C0C0\",darkgray:\"#A9A9A9\",darkgrey:\"#A9A9A9\",gray:\"#808080\",grey:\"#808080\",dimgray:\"#696969\",dimgrey:\"#696969\",lightslategray:\"#778899\",lightslategrey:\"#778899\",slategray:\"#708090\",darkslategray:\"#2F4F4F\",darkslategrey:\"#2F4F4F\",black:\"#000000\"}})}.call(this),function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1},e={}.hasOwnProperty,r=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};n(\"renderer/properties\",[\"underscore\",\"common/svg_colors\"],function(e,n){var i,o,s,a,l;return a=function(){function r(){}return r.prototype.source_v_select=function(t,e){var n,r,i,o,s,a,l;if(r=this,!(t in r))return console.log(\"requested vector selection of unknown property '\"+t+\"' on objects\"),function(){var t,n,r,o;for(r=e.get_length(),o=[],t=0,n=r.length;n>t;t++)i=r[t],o.push(null);return o}();if(o=r[t],null!=o.field&&o.field in e.get(\"data\"))return e.getcolumn(o.field);if(null!=r[t].value)n=r[t].value;else{if(t in e.get(\"data\"))return e.getcolumn(t);null!=r[t][\"default\"]&&(n=r[t][\"default\"])}for(s=[],i=a=0,l=e.get_length();l>=0?l>a:a>l;i=l>=0?++a:--a)s.push(n);return s},r.prototype.string=function(t,n,r){var i,o;return this[r]={},i=t.mget(r),null==i||(e.isString(i)?this[r][\"default\"]=i:console.log(\"string property '\"+r+\"' given invalid default value: \"+i)),null!=n&&r in n?(o=n[r],e.isString(o)?this[r].value=o:e.isObject(o)?this[r]=e.extend(this[r],o):console.log(\"string property '\"+r+\"' given invalid glyph value: \"+o)):void 0},r.prototype.number=function(t,n,r){var i,o,s,a;return this[r]={},i=t.mget(r),null==i||(e.isNumber(i)?this[r][\"default\"]=i:console.log(\"number property '\"+r+\"' given invalid default value: \"+i)),s=null!=(a=t.mget(r+\"_units\"))?a:\"data\",null!=n&&r+\"_units\"in n&&(s=n[r+\"_units\"]),this[r].units=s,null!=n&&r in n?(o=n[r],e.isString(o)?this[r].field=o:e.isNumber(o)?this[r].value=o:e.isObject(o)?this[r]=e.extend(this[r],o):console.log(\"number property '\"+r+\"' given invalid glyph value: \"+o)):void 0},r.prototype.color=function(t,r,i){var o,s;return this[i]={},o=t.mget(i),e.isUndefined(o)?this[i][\"default\"]=null:e.isString(o)&&(null!=n[o]||\"#\"===o.substring(0,1))||e.isNull(o)?this[i][\"default\"]=o:console.log(\"color property '\"+i+\"' given invalid default value: \"+o),null!=r&&i in r?(s=r[i],e.isNull(s)?this[i].value=null:e.isString(s)?null!=n[s]||\"#\"===s.substring(0,1)?this[i].value=s:this[i].field=s:e.isObject(s)?this[i]=e.extend(this[i],s):console.log(\"color property '\"+i+\"' given invalid glyph value: \"+s)):void 0},r.prototype.array=function(t,n,r){var i,o,s,a;return this[r]={},i=t.mget(r),null==i||(e.isArray(i)?this[r][\"default\"]=i:console.log(\"array property '\"+r+\"' given invalid default value: \"+i)),s=null!=(a=t.mget(r+\"_units\"))?a:\"data\",null!=n&&r+\"_units\"in n&&(s=n[r+\"_units\"]),this[r].units=s,null!=n&&r in n?(o=n[r],e.isString(o)?this[r].field=o:e.isArray(o)?this[r].value=o:e.isObject(o)?this[r]=e.extend(this[r],o):console.log(\"array property '\"+r+\"' given invalid glyph value: \"+o)):void 0},r.prototype[\"enum\"]=function(n,r,i,o){var s,a,l;return this[i]={},l=o.split(\" \"),s=n.mget(i),e.isNull(s)||(e.isString(s)&&t.call(l,s)>=0?this[i]={\"default\":s}:(console.log(\"enum property '\"+i+\"' given invalid default value: \"+s),console.log(\" acceptable values:\"+l))),null!=r&&i in r?(a=r[i],e.isString(a)?t.call(l,a)>=0?this[i].value=a:this[i].field=a:e.isObject(a)?this[i]=e.extend(this[i],a):(console.log(\"enum property '\"+i+\"' given invalid glyph value: \"+a),console.log(\" acceptable values:\"+l))):void 0},r.prototype.setattr=function(t,e,n,r){var i,o;return i=null,r.indexOf(\":\")>-1&&(o=r.split(\":\"),r=o[0],i=o[1]),\"string\"===r?this.string(t,e,n):\"number\"===r?this.number(t,e,n):\"color\"===r?this.color(t,e,n):\"array\"===r?this.array(t,e,n):\"enum\"===r&&i?this[\"enum\"](t,e,n,i):console.log(\"Unknown type '\"+r+\"' for glyph property: \"+n)},r.prototype.select=function(t,e){return t in this?null!=this[t].field&&this[t].field in e?e[this[t].field]:null!=this[t].value?this[t].value:e.get&&e.get(t)?e.get(t):e.mget&&e.mget(t)?e.mget(t):null!=e[t]?e[t]:null!=this[t][\"default\"]?this[t][\"default\"]:console.log(\"selection for attribute '\"+t+\"' failed on object: \"+e):(console.log(\"requested selection of unknown property '\"+t+\"' on object: \"+e),void 0)},r.prototype.v_select=function(t,e){var n,r,i,o,s;if(!(t in this))return console.log(\"requested vector selection of unknown property '\"+t+\"' on objects\"),void 0;for(i=null!=this[t].typed?new Float64Array(e.length):new Array(e.length),n=o=0,s=e.length;s>=0?s>o:o>s;n=s>=0?++o:--o)if(r=e[n],null!=this[t].field&&this[t].field in r)i[n]=r[this[t].field];else if(null!=this[t].value)i[n]=this[t].value;else if(null!=r[t])i[n]=r[t];else{if(null==this[t][\"default\"])return console.log(\"vector selection for attribute '\"+t+\"' failed on object: \"+r),void 0;i[n]=this[t][\"default\"]}return i},r}(),s=function(t){function n(t,n,r){null==r&&(r=\"\"),this.line_color_name=\"\"+r+\"line_color\",this.line_width_name=\"\"+r+\"line_width\",this.line_alpha_name=\"\"+r+\"line_alpha\",this.line_join_name=\"\"+r+\"line_join\",this.line_cap_name=\"\"+r+\"line_cap\",this.line_dash_name=\"\"+r+\"line_dash\",this.line_dash_offset_name=\"\"+r+\"line_dash_offset\",this.color(t,n,this.line_color_name),this.number(t,n,this.line_width_name),this.number(t,n,this.line_alpha_name),this[\"enum\"](t,n,this.line_join_name,\"miter round bevel\"),this[\"enum\"](t,n,this.line_cap_name,\"butt round square\"),this.array(t,n,this.line_dash_name),this.number(t,n,this.line_dash_offset_name),this.do_stroke=!0,e.isUndefined(this[this.line_color_name].value)?e.isNull(this[this.line_color_name][\"default\"])&&(this.do_stroke=!1):e.isNull(this[this.line_color_name].value)&&(this.do_stroke=!1)}return r(n,t),n.prototype.set=function(t,e){return t.strokeStyle=this.select(this.line_color_name,e),t.globalAlpha=this.select(this.line_alpha_name,e),t.lineWidth=this.select(this.line_width_name,e),t.lineJoin=this.select(this.line_join_name,e),t.lineCap=this.select(this.line_cap_name,e),t.setLineDash(this.select(this.line_dash_name,e)),t.setLineDashOffset(this.select(this.line_dash_offset_name,e))},n.prototype.set_prop_cache=function(t){return this.cache={},this.cache.strokeStyle=this.source_v_select(this.line_color_name,t),this.cache.globalAlpha=this.source_v_select(this.line_alpha_name,t),this.cache.lineWidth=this.source_v_select(this.line_width_name,t),this.cache.lineJoin=this.source_v_select(this.line_join_name,t),this.cache.lineCap=this.source_v_select(this.line_cap_name,t),this.cache.setLineDash=this.source_v_select(this.line_dash_name,t),this.cache.setLineDashOffset=this.source_v_select(this.line_dash_offset_name,t)},n.prototype.clear_prop_cache=function(){return this.cache={}},n.prototype.set_vectorize=function(t,e){var n;return n=!1,t.strokeStyle!==this.cache.strokeStyle[e]&&(t.strokeStyle=this.cache.strokeStyle[e],n=!0),t.globalAlpha!==this.cache.globalAlpha[e]&&(t.globalAlpha=this.cache.globalAlpha[e],n=!0),t.lineWidth!==this.cache.lineWidth[e]&&(t.lineWidth=this.cache.lineWidth[e],n=!0),t.lineJoin!==this.cache.lineJoin[e]&&(t.lineJoin=this.cache.lineJoin[e],n=!0),t.lineCap!==this.cache.lineCap[e]&&(t.lineCap=this.cache.lineCap[e],n=!0),t.getLineDash()!==this.cache.setLineDash[e]&&(t.setLineDash(this.cache.setLineDash[e]),n=!0),t.getLineDashOffset()!==this.cache.setLineDashOffset[e]&&(t.setLineDashOffset(this.cache.setLineDashOffset[e]),n=!0),n},n}(a),i=function(t){function n(t,n,r){null==r&&(r=\"\"),this.fill_color_name=\"\"+r+\"fill_color\",this.fill_alpha_name=\"\"+r+\"fill_alpha\",this.color(t,n,this.fill_color_name),this.number(t,n,this.fill_alpha_name),this.do_fill=!0,e.isUndefined(this[this.fill_color_name].value)?e.isNull(this[this.fill_color_name][\"default\"])&&(this.do_fill=!1):e.isNull(this[this.fill_color_name].value)&&(this.do_fill=!1)}return r(n,t),n.prototype.set=function(t,e){return t.fillStyle=this.select(this.fill_color_name,e),t.globalAlpha=this.select(this.fill_alpha_name,e)},n.prototype.set_prop_cache=function(t){return this.cache={},this.cache.fillStyle=this.source_v_select(this.fill_color_name,t),this.cache.globalAlpha=this.source_v_select(this.fill_alpha_name,t)},n.prototype.set_vectorize=function(t,e){var n;return n=!1,t.fillStyle!==this.cache.fillStyle[e]&&(t.fillStyle=this.cache.fillStyle[e],n=!0),t.globalAlpha!==this.cache.globalAlpha[e]&&(t.globalAlpha=this.cache.globalAlpha[e],n=!0),n},n}(a),l=function(t){function e(t,e,n){null==n&&(n=\"\"),this.text_font_name=\"\"+n+\"text_font\",this.text_font_size_name=\"\"+n+\"text_font_size\",this.text_font_style_name=\"\"+n+\"text_font_style\",this.text_color_name=\"\"+n+\"text_color\",this.text_alpha_name=\"\"+n+\"text_alpha\",this.text_align_name=\"\"+n+\"text_align\",this.text_baseline_name=\"\"+n+\"text_baseline\",this.string(t,e,this.text_font_name),this.string(t,e,this.text_font_size_name),this[\"enum\"](t,e,this.text_font_style_name,\"normal italic bold\"),this.color(t,e,this.text_color_name),this.number(t,e,this.text_alpha_name),this[\"enum\"](t,e,this.text_align_name,\"left right center\"),this[\"enum\"](t,e,this.text_baseline_name,\"top middle bottom alphabetic hanging\")}return r(e,t),e.prototype.font=function(t,e){var n,r;return null==e&&(e=this.select(this.text_font_size_name,t)),n=this.select(this.text_font_name,t),r=this.select(this.text_font_style_name,t),n=r+\" \"+e+\" \"+n},e.prototype.set=function(t,e){return t.font=this.font(e),t.fillStyle=this.select(this.text_color_name,e),t.globalAlpha=this.select(this.text_alpha_name,e),t.textAlign=this.select(this.text_align_name,e),t.textBaseline=this.select(this.text_baseline_name,e)},e.prototype.set_prop_cache=function(t){var e,n,r,i;return this.cache={},n=this.source_v_select(this.text_font_size_name,t),e=this.source_v_select(this.text_font_name,t),r=this.source_v_select(this.text_font_style_name,t),this.cache.font=function(){var t,o,s;for(s=[],i=t=0,o=e.length;o>=0?o>t:t>o;i=o>=0?++t:--t)s.push(\"\"+r[i]+\" \"+n[i]+\" \"+e[i]);return s}(),this.cache.fillStyle=this.source_v_select(this.text_color_name,t),this.cache.globalAlpha=this.source_v_select(this.text_alpha_name,t),this.cache.textAlign=this.source_v_select(this.text_align_name,t),this.cache.textBaseline=this.source_v_select(this.text_baseline_name,t)},e.prototype.clear_prop_cache=function(){return this.cache={}},e.prototype.set_vectorize=function(t,e){var n;return n=!1,t.font!==this.cache.font[e]&&(t.font=this.cache.font[e],n=!0),t.fillStyle!==this.cache.fillStyle[e]&&(t.fillStyle=this.cache.fillStyle[e],n=!0),t.globalAlpha!==this.cache.globalAlpha[e]&&(t.globalAlpha=this.cache.globalAlpha[e],n=!0),t.textAlign!==this.cache.textAlign[e]&&(t.textAlign=this.cache.textAlign[e],n=!0),t.textBaseline!==this.cache.textBaseline[e]&&(t.textBaseline=this.cache.textBaseline[e],n=!0),n},e}(a),o=function(t){function e(t,e,n,r){var i,o,s,a,l,u;for(a=0,l=n.length;l>a;a++)i=n[a],o=\"number\",i.indexOf(\":\")>-1&&(u=i.split(\":\"),i=u[0],o=u[1]),this.setattr(t,e,i,o);for(s in r)this[s]=r[s];this.fast_path=!1,\"fast_path\"in e&&(this.fast_path=e.fast_path)}return r(e,t),e}(a),{glyph_properties:o,fill_properties:i,line_properties:s,text_properties:l}})}.call(this),function(){n(\"tool/active_tool_manager\",[],function(){var t;return t=function(){\" This makes sure that only one tool is active at a time \";function t(t){this.event_sink=t,this.event_sink.active=null}return t.prototype.bind_bokeh_events=function(){var t=this;return this.event_sink.on(\"clear_active_tool\",function(){return t.event_sink.trigger(\"\"+t.event_sink.active+\":deactivated\"),t.event_sink.active=null}),this.event_sink.on(\"active_tool\",function(e){return e!==t.event_sink.active?(t.event_sink.trigger(\"\"+e+\":activated\"),t.event_sink.trigger(\"\"+t.event_sink.active+\":deactivated\"),t.event_sink.active=e):void 0}),this.event_sink.on(\"try_active_tool\",function(e){return null==t.event_sink.active?(t.event_sink.trigger(\"\"+e+\":activated\"),t.event_sink.trigger(\"\"+t.event_sink.active+\":deactivated\"),t.event_sink.active=e):void 0})},t}()})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,r=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};n(\"common/gmap_plot\",[\"underscore\",\"jquery\",\"backbone\",\"./build_views\",\"./safebind\",\"./bulk_save\",\"./continuum_view\",\"./has_parent\",\"./view_state\",\"mapper/1d/linear_mapper\",\"mapper/2d/grid_mapper\",\"renderer/properties\",\"tool/active_tool_manager\"],function(e,n,i,o,s,a,l,u,p,h,c,_,d){var f,g,m,y,v,b,w;return y=[\"image\",\"underlay\",\"glyph\",\"overlay\",\"annotation\",\"tool\"],g=function(l){function u(){return this.bounds_change=t(this.bounds_change,this),this._mousemove=t(this._mousemove,this),this._mousedown=t(this._mousedown,this),v=u.__super__.constructor.apply(this,arguments)}return r(u,l),u.prototype.events={\"mousemove .bokeh_canvas_wrapper\":\"_mousemove\",\"mousedown .bokeh_canvas_wrapper\":\"_mousedown\"},u.prototype.className=\"bokeh\",u.prototype.view_options=function(){return e.extend({plot_model:this.model,plot_view:this},this.options)},u.prototype._mousedown=function(t){var e,n,r,i,o;for(i=this.mousedownCallbacks,o=[],n=0,r=i.length;r>n;n++)e=i[n],o.push(e(t,t.layerX,t.layerY));return o},u.prototype._mousemove=function(t){var e,n,r,i,o;for(i=this.moveCallbacks,o=[],n=0,r=i.length;r>n;n++)e=i[n],o.push(e(t,t.layerX,t.layerY));return o},u.prototype.pause=function(){return this.is_paused=!0},u.prototype.unpause=function(t){return null==t&&(t=!1),this.is_paused=!1,t?this.request_render_canvas(!0):this.request_render()},u.prototype.request_render=function(){this.is_paused||this.throttled_render()},u.prototype.request_render_canvas=function(t){this.is_paused||this.throttled_render_canvas(t)},u.prototype.initialize=function(t){var n,r,o,s,a,l,f,g,m,v,b,w,x,k,T,C,M,j,S,z,A,N,P,F;for(u.__super__.initialize.call(this,e.defaults(t,this.default_options)),this.throttled_render=e.throttle(this.render,100),this.throttled_render_canvas=e.throttle(this.render_canvas,100),this.outline_props=new _.line_properties(this,{},\"title_\"),this.title_props=new _.text_properties(this,{},\"title_\"),this.view_state=new p({canvas_width:null!=(f=t.canvas_width)?f:this.mget(\"canvas_width\"),canvas_height:null!=(M=t.canvas_height)?M:this.mget(\"canvas_height\"),x_offset:null!=(j=t.x_offset)?j:this.mget(\"x_offset\"),y_offset:null!=(S=t.y_offset)?S:this.mget(\"y_offset\"),outer_width:null!=(z=t.outer_width)?z:this.mget(\"outer_width\"),outer_height:null!=(A=t.outer_height)?A:this.mget(\"outer_height\"),min_border_top:null!=(N=null!=(P=t.min_border_top)?P:this.mget(\"min_border_top\"))?N:this.mget(\"min_border\"),min_border_bottom:null!=(F=null!=(g=t.min_border_bottom)?g:this.mget(\"min_border_bottom\"))?F:this.mget(\"min_border\"),min_border_left:null!=(m=null!=(v=t.min_border_left)?v:this.mget(\"min_border_left\"))?m:this.mget(\"min_border\"),min_border_right:null!=(b=null!=(w=t.min_border_right)?w:this.mget(\"min_border_right\"))?b:this.mget(\"min_border\"),requested_border_top:0,requested_border_bottom:0,requested_border_left:0,requested_border_right:0}),this.hidpi=null!=(x=t.hidpi)?x:this.mget(\"hidpi\"),this.x_range=null!=(k=t.x_range)?k:this.mget_obj(\"x_range\"),this.y_range=null!=(T=t.y_range)?T:this.mget_obj(\"y_range\"),this.xmapper=new h({source_range:this.x_range,target_range:this.view_state.get(\"inner_range_horizontal\")}),this.ymapper=new h({source_range:this.y_range,target_range:this.view_state.get(\"inner_range_vertical\")}),this.mapper=new c({domain_mapper:this.xmapper,codomain_mapper:this.ymapper}),C=this.mget_obj(\"tools\"),o=0,a=C.length;a>o;o++)r=C[o],(\"PanTool\"===r.type||\"WheelZoomTool\"===r.type)&&(r.set_obj(\"dataranges\",[this.x_range,this.y_range]),r.set(\"dimensions\",[\"width\",\"height\"]));for(this.requested_padding={top:0,bottom:0,left:0,right:0},this.old_mapper_state={x:null,y:null},this.am_rendering=!1,this.renderers={},this.tools={},this.zoom_count=null,this.eventSink=e.extend({},i.Events),this.moveCallbacks=[],this.mousedownCallbacks=[],this.keydownCallbacks=[],this.render_init(),this.render_canvas(!1),this.atm=new d(this.eventSink),this.levels={},s=0,l=y.length;l>s;s++)n=y[s],this.levels[n]={};return this.build_levels(),this.request_render(),this.atm.bind_bokeh_events(),this.bind_bokeh_events(),this},u.prototype.map_to_screen=function(t,e,n){var r,i,o;return\"screen\"===e?(r=t.slice(0),i=n.slice(0)):(o=this.mapper.v_map_to_target(t,n),r=o[0],i=o[1]),r=this.view_state.v_vx_to_sx(r),i=this.view_state.v_vy_to_sy(i),[r,i]},u.prototype.map_from_screen=function(t,e,n){var r,i,o;return t=this.view_state.v_sx_to_vx(t.slice(0)),e=this.view_state.v_sy_to_vy(e.slice(0)),\"screen\"===n?(r=t,i=e):(o=this.mapper.v_map_from_target(t,e),r=o[0],i=o[1]),[r,i]},u.prototype.update_range=function(t){var e,n,r,i,o;return null==t&&(t=this.initial_range_info),this.pause(),null!=t.sdx?this.map.panBy(t.sdx,t.sdy):(o=Math.min(t.xr.start,t.xr.end),r=Math.max(t.xr.start,t.xr.end),i=Math.min(t.yr.start,t.yr.end),n=Math.max(t.yr.start,t.yr.end),e=new google.maps.LatLng((n+i)/2,(r+o)/2),null==t.factor?(this.map.setCenter(e),this.map.setZoom(this.initial_zoom)):t.factor>0?(this.zoom_count+=1,10===this.zoom_count&&(this.map.setZoom(this.map.getZoom()+1),this.zoom_count=0)):(this.zoom_count-=1,-10===this.zoom_count&&(this.map.setCenter(e),this.map.setZoom(this.map.getZoom()-1),this.map.setCenter(e),this.zoom_count=0))),this.unpause()},u.prototype.build_tools=function(){return o(this.tools,this.mget_obj(\"tools\"),this.view_options())},u.prototype.build_views=function(){return o(this.renderers,this.mget_obj(\"renderers\"),this.view_options())},u.prototype.build_levels=function(){var t,e,n,r,i,o,s,a,l;for(i=this.build_views(),n=this.build_tools(),o=0,a=i.length;a>o;o++)r=i[o],t=r.mget(\"level\"),this.levels[t][r.model.id]=r,r.bind_bokeh_events();for(s=0,l=n.length;l>s;s++)e=n[s],t=e.mget(\"level\"),this.levels[t][e.model.id]=e,e.bind_bokeh_events();return this},u.prototype.bind_bokeh_events=function(){var t=this;return s(this,this.view_state,\"change\",function(){return t.request_render_canvas(),t.request_render()}),s(this,this.x_range,\"change\",this.request_render),s(this,this.y_range,\"change\",this.request_render),s(this,this.model,\"change:renderers\",this.build_levels),s(this,this.model,\"change:tool\",this.build_levels),s(this,this.model,\"change\",this.request_render),s(this,this.model,\"destroy\",function(){return t.remove()})},u.prototype.render_init=function(){return this.$el.append(n(\"<div class='button_bar btn-group'/>\\n<div class='plotarea'>\\n<div class='bokeh_canvas_wrapper'>\\n <div class=\\\"bokeh_gmap\\\"></div>\\n <canvas class='bokeh_canvas'></canvas>\\n</div>\\n</div>\")),this.button_bar=this.$el.find(\".button_bar\"),this.canvas_wrapper=this.$el.find(\".bokeh_canvas_wrapper\"),this.canvas=this.$el.find(\"canvas.bokeh_canvas\"),this.gmap_div=this.$el.find(\".bokeh_gmap\")},u.prototype.render_canvas=function(t){var n,r,i,o,s,a,l,u,p,h,c=this;return null==t&&(t=!0),this.ctx=this.canvas[0].getContext(\"2d\"),this.hidpi?(i=window.devicePixelRatio||1,n=this.ctx.webkitBackingStorePixelRatio||this.ctx.mozBackingStorePixelRatio||this.ctx.msBackingStorePixelRatio||this.ctx.oBackingStorePixelRatio||this.ctx.backingStorePixelRatio||1,p=i/n):p=1,l=this.view_state.get(\"outer_height\"),u=this.view_state.get(\"outer_width\"),this.canvas.width=u*p,this.canvas.height=l*p,this.button_bar.attr(\"style\",\"width:\"+u+\"px;\"),this.canvas_wrapper.attr(\"style\",\"width:\"+u+\"px; height:\"+l+\"px\"),this.canvas.attr(\"style\",\"width:\"+u+\"px;\"),this.canvas.attr(\"style\",\"height:\"+l+\"px;\"),this.canvas.attr(\"width\",u*p).attr(\"height\",l*p),this.$el.attr(\"width\",u).attr(\"height\",l),this.ctx.scale(p,p),this.ctx.translate(.5,.5),s=this.view_state.get(\"inner_width\"),o=this.view_state.get(\"inner_height\"),h=this.view_state.get(\"border_top\"),a=this.view_state.get(\"border_left\"),this.gmap_div.attr(\"style\",\"top: \"+h+\"px; left: \"+a+\"px; position: absolute\"),this.gmap_div.attr(\"style\",\"width:\"+s+\"px;\"),this.gmap_div.attr(\"style\",\"height:\"+o+\"px;\"),this.gmap_div.width(\"\"+s+\"px\").height(\"\"+o+\"px\"),this.initial_zoom=this.mget(\"map_options\").zoom,r=function(){var t,e;return e=c.mget(\"map_options\"),t={center:new google.maps.LatLng(e.lat,e.lng),zoom:e.zoom,disableDefaultUI:!0,mapTypeId:google.maps.MapTypeId.SATELLITE},c.map=new google.maps.Map(c.gmap_div[0],t),google.maps.event.addListener(c.map,\"bounds_changed\",c.bounds_change)},e.defer(r),t?this.render():void 0},u.prototype.bounds_change=function(){var t,e,n;return t=this.map.getBounds(),e=t.getNorthEast(),n=t.getSouthWest(),this.x_range.set({start:n.lng(),end:e.lng(),silent:!0}),this.y_range.set({start:n.lat(),end:e.lat()}),null==this.initial_range_info?this.initial_range_info={xr:{start:this.x_range.get(\"start\"),end:this.x_range.get(\"end\")},yr:{start:this.y_range.get(\"start\"),end:this.y_range.get(\"end\")}}:void 0},u.prototype.save_png=function(){var t;return this.render(),t=this.canvas[0].toDataURL(),this.model.set(\"png\",this.canvas[0].toDataURL()),a([this.model])},u.prototype.render=function(){var t,e,n,r,i,o,s,a,l,u,p,h,c,_,d,f,g,m,y,v,b,w,x,k,T,C,M,j,S,z;for(this.requested_padding={top:0,bottom:0,left:0,right:0},M=[\"image\",\"underlay\",\"glyph\",\"overlay\",\"annotation\",\"tool\"],b=0,k=M.length;k>b;b++){s=M[b],p=this.levels[s];for(i in p)if(m=p[i],null!=m.padding_request){u=m.padding_request();for(i in u)m=u[i],this.requested_padding[i]+=m}}f=this.mget(\"title\"),f&&(this.title_props.set(this.ctx,{}),d=this.ctx.measureText(this.mget(\"title\")).ascent,this.requested_padding.top+=d+this.mget(\"title_standoff\")),_=this.mget(\"border_symmetry\"),(_.indexOf(\"h\")>=0||_.indexOf(\"H\")>=0)&&(e=Math.max(this.requested_padding.left,this.requested_padding.right),this.requested_padding.left=e,this.requested_padding.right=e),(_.indexOf(\"v\")>=0||_.indexOf(\"V\")>=0)&&(e=Math.max(this.requested_padding.top,this.requested_padding.bottom),this.requested_padding.top=e,this.requested_padding.bottom=e),this.is_paused=!0,j=this.requested_padding;\n",
" for(i in j)m=j[i],this.view_state.set(\"requested_border_\"+i,m);for(this.is_paused=!1,a=this.view_state.get(\"outer_height\"),l=this.view_state.get(\"outer_width\"),r=this.view_state.get(\"inner_width\"),n=this.view_state.get(\"inner_height\"),g=this.view_state.get(\"border_top\"),o=this.view_state.get(\"border_left\"),this.gmap_div.attr(\"style\",\"top: \"+g+\"px; left: \"+o+\"px;\"),this.gmap_div.width(\"\"+r+\"px\").height(\"\"+n+\"px\"),this.ctx.clearRect(0,0,l,a),this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(0,a),this.ctx.lineTo(l,a),this.ctx.lineTo(l,0),this.ctx.lineTo(0,0),this.ctx.moveTo(o,g),this.ctx.lineTo(o+r,g),this.ctx.lineTo(o+r,g+n),this.ctx.lineTo(o,g+n),this.ctx.lineTo(o,g),this.ctx.closePath(),this.ctx.fillStyle=this.mget(\"border_fill\"),this.ctx.fill(),this.outline_props.do_stroke&&(this.outline_props.set(this.ctx,{}),this.ctx.strokeRect(this.view_state.get(\"border_left\"),this.view_state.get(\"border_top\"),this.view_state.get(\"inner_width\"),this.view_state.get(\"inner_height\"))),t=!1,y=this.xmapper.get(\"mapper_state\")[0],v=this.xmapper.get(\"mapper_state\")[0],(Math.abs(this.old_mapper_state.x-y)>1e-8||Math.abs(this.old_mapper_state.y-v)>1e-8)&&(this.old_mapper_state.x=y,this.old_mapper_state.y=v,t=!0),this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(this.view_state.get(\"border_left\"),this.view_state.get(\"border_top\"),this.view_state.get(\"inner_width\"),this.view_state.get(\"inner_height\")),this.ctx.clip(),this.ctx.beginPath(),S=[\"image\",\"underlay\",\"glyph\"],w=0,T=S.length;T>w;w++){s=S[w],p=this.levels[s];for(i in p)m=p[i],m.render(t)}for(this.ctx.restore(),z=[\"overlay\",\"annotation\",\"tool\"],x=0,C=z.length;C>x;x++){s=z[x],p=this.levels[s];for(i in p)m=p[i],m.render(t)}return f?(h=this.view_state.get(\"outer_width\")/2,c=d,this.title_props.set(this.ctx,{}),this.ctx.fillText(f,h,c)):void 0},u}(l.View),f=function(t){function e(){return b=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type=\"GMapPlot\",e.prototype.default_view=g,e.prototype.add_renderers=function(t){var e;return e=this.get(\"renderers\"),e=e.concat(t),this.set(\"renderers\",e)},e.prototype.parent_properties=[\"border_fill\",\"canvas_width\",\"canvas_height\",\"outer_width\",\"outer_height\",\"min_border\",\"min_border_top\",\"min_border_bottom\",\"min_border_left\",\"min_border_right\"],e.prototype.defaults=function(){return{data_sources:{},renderers:[],tools:[],title:\"GMapPlot\"}},e.prototype.display_defaults=function(){return{hidpi:!0,border_fill:\"#eee\",border_symmetry:\"h\",min_border:40,x_offset:0,y_offset:0,canvas_width:300,canvas_height:300,outer_width:300,outer_height:300,title_standoff:8,title_text_font:\"helvetica\",title_text_font_size:\"20pt\",title_text_font_style:\"normal\",title_text_color:\"#444444\",title_text_alpha:1,title_text_align:\"center\",title_text_baseline:\"alphabetic\",outline_line_color:\"#aaaaaa\",outline_line_width:1,outline_line_alpha:1,outline_line_join:\"miter\",outline_line_cap:\"butt\",outline_line_dash:[],outline_line_dash_offset:0}},e}(u),m=function(t){function e(){return w=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.model=f,e}(i.Collection),{Model:f,Collection:new m,View:g}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,r=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};n(\"common/grid_view_state\",[\"underscore\",\"./safebind\",\"./view_state\"],function(e,n,i){var o,s;return o=function(i){function o(){return this.layout_widths=t(this.layout_widths,this),this.layout_heights=t(this.layout_heights,this),this.setup_layout_properties=t(this.setup_layout_properties,this),s=o.__super__.constructor.apply(this,arguments)}return r(o,i),o.prototype.setup_layout_properties=function(){var t,e,n,r,i,o;for(this.register_property(\"layout_heights\",this.layout_heights,!0),this.register_property(\"layout_widths\",this.layout_widths,!0),i=this.get(\"childviewstates\"),o=[],n=0,r=i.length;r>n;n++)t=i[n],o.push(function(){var n,r,i;for(i=[],n=0,r=t.length;r>n;n++)e=t[n],this.add_dependencies(\"layout_heights\",e,\"outer_height\"),i.push(this.add_dependencies(\"layout_widths\",e,\"outer_width\"));return i}.call(this));return o},o.prototype.initialize=function(t,r){return o.__super__.initialize.call(this,t,r),this.setup_layout_properties(),n(this,this,\"change:childviewstates\",this.setup_layout_properties),this.register_property(\"height\",function(){return e.reduce(this.get(\"layout_heights\"),function(t,e){return t+e},0)},!0),this.add_dependencies(\"height\",this,\"layout_heights\"),this.register_property(\"width\",function(){return e.reduce(this.get(\"layout_widths\"),function(t,e){return t+e},0)},!0),this.add_dependencies(\"width\",this,\"layout_widths\")},o.prototype.position_child_x=function(t){return t},o.prototype.position_child_y=function(t,e){return this.get(\"height\")-t-e},o.prototype.maxdim=function(t,n){return 0===n.length?0:e.max(e.map(n,function(e){return e.get(t)}))},o.prototype.layout_heights=function(){var t,e;return e=function(){var e,n,r,i;for(r=this.get(\"childviewstates\"),i=[],e=0,n=r.length;n>e;e++)t=r[e],i.push(this.maxdim(\"outer_height\",t));return i}.call(this)},o.prototype.layout_widths=function(){var t,n,r,i,o,s;return o=this.get(\"childviewstates\")[0].length,r=function(){var t,n,r,a;for(r=e.range(o),a=[],t=0,n=r.length;n>t;t++)i=r[t],a.push(function(){var t,e,n,r;for(n=this.get(\"childviewstates\"),r=[],t=0,e=n.length;e>t;t++)s=n[t],r.push(s[i]);return r}.call(this));return a}.call(this),n=function(){var e,n,i;for(i=[],e=0,n=r.length;n>e;e++)t=r[e],i.push(this.maxdim(\"outer_width\",t));return i}.call(this)},o.prototype.defaults=function(){return{childviewstates:[[]],border_space:0}},o}(i)})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"common/grid_plot\",[\"underscore\",\"backbone\",\"./build_views\",\"./safebind\",\"./continuum_view\",\"./has_parent\",\"./grid_view_state\",\"mapper/1d/linear_mapper\",\"mapper/2d/grid_mapper\",\"renderer/properties\",\"tool/active_tool_manager\"],function(t,n,r,i,o,s,a,l,u,p,h){var c,_,d,f,g,m;return _=function(o){function s(){return f=s.__super__.constructor.apply(this,arguments)}return e(s,o),s.prototype.tagName=\"div\",s.prototype.className=\"bokeh grid_plot\",s.prototype.default_options={scale:1},s.prototype.set_child_view_states=function(){var t,e,n,r,i,o,s;for(n=[],s=this.mget(\"children\"),i=0,o=s.length;o>i;i++)t=s[i],e=function(){var e,n,i;for(i=[],e=0,n=t.length;n>e;e++)r=t[e],i.push(this.childviews[r.id].view_state);return i}.call(this),n.push(e);return this.viewstate.set(\"childviewstates\",n)},s.prototype.initialize=function(e){return s.__super__.initialize.call(this,t.defaults(e,this.default_options)),this.viewstate=new a,this.toolbar_height=0,this.childviews={},this.build_children(),this.bind_bokeh_events(),this.render(),this},s.prototype.bind_bokeh_events=function(){var t=this;return i(this,this.model,\"change:children\",this.build_children),i(this,this.model,\"change\",this.render),i(this,this.viewstate,\"change\",this.render),i(this,this.model,\"destroy\",function(){return t.remove()})},s.prototype.b_events={\"change:children model\":\"build_children\",\"change model\":\"render\",\"change viewstate\":\"render\",\"destroy model\":\"remove\"},s.prototype.build_children=function(){var t,e,n,i,o,s,a,l;for(t=[],l=this.mget_obj(\"children\"),i=0,s=l.length;s>i;i++)for(n=l[i],o=0,a=n.length;a>o;o++)e=n[o],t.push(e);return r(this.childviews,t,{}),this.set_child_view_states()},s.prototype.makeButton=function(e,n,r,i){var o,s,a,l,u;return o=t.flatten(t.map(t.pluck(this.childviews,\"tools\"),t.values)),l=t.where(o,{constructor:n}),s=$(\"<button class='btn btn-small'>\"+i+\"</button>\"),r.append(s),u=!1,a=!1,s.click(function(){return a?e.trigger(\"clear_active_tool\"):e.trigger(\"active_tool\",i)}),e.on(\"\"+i+\":deactivated\",function(){return s.removeClass(\"active\"),a=!1,t.each(l,function(t){var e;return e=t.evgen.toolName,t.evgen.eventSink.trigger(\"\"+e+\":deactivated\")})}),e.on(\"\"+i+\":activated\",function(){return s.addClass(\"active\"),a=!0,t.each(l,function(t){var e;return e=t.evgen.toolName,t.evgen.eventSink.trigger(\"\"+e+\":activated\")})})},s.prototype.addGridToolbar=function(){var e,r,i,o=this;return this.button_bar=$(\"<div class='grid_button_bar'/>\"),this.button_bar.attr(\"style\",\"position:absolute; left:10px; top:0px; \"),this.toolEventSink=t.extend({},n.Events),this.atm=new h(this.toolEventSink),this.atm.bind_bokeh_events(),this.$el.append(this.button_bar),r=t.flatten(t.map(t.pluck(this.childviews,\"tools\"),t.values)),e=t.uniq(t.pluck(r,\"constructor\")),e.length>0&&(this.toolbar_height=35),i={},t.each(e,function(e){var n;return n=t.where(r,{constructor:e})[0].evgen_options.buttonText,i[n]=e}),t.map(i,function(t,e){return o.makeButton(o.toolEventSink,t,o.button_bar,e)}),t.map(r,function(t){return t.evgen.hide_button()})},s.prototype.render=function(){var e,n,r,i,o,a,l,u,p,h,c,_,d,f,g,m,y,v,b,w,x,k,T,C,M,j;for(s.__super__.render.call(this),M=t.values(this.childviews),b=0,k=M.length;k>b;b++)d=M[b],d.$el.detach();for(this.$el.html(\"\"),this.addGridToolbar(),c=this.viewstate.get(\"layout_heights\"),r=this.viewstate.get(\"layout_widths\"),y=[0],t.reduceRight(c.slice(1),function(t,e){var n;return n=t+e,y.push(n),n},0),y.reverse(),g=[0],t.reduce(r.slice(0),function(t,e){var n;return n=t+e,g.push(n),n},0),a=[],o=null,j=this.mget(\"children\"),p=w=0,T=j.length;T>w;p=++w)for(h=j[p],n=x=0,C=h.length;C>x;n=++x)u=h[n],d=this.childviews[u.id],v=this.viewstate.position_child_y(y[p],d.view_state.get(\"outer_height\")-this.toolbar_height),m=this.viewstate.position_child_x(g[n],d.view_state.get(\"outer_width\")),l=$(\"<div class='gp_plotwrapper'></div>\"),l.attr(\"style\",\"position: absolute; left:\"+m+\"px; top:\"+v+\"px\"),l.append(d.$el),this.$el.append(l);return e=function(t,e){return t+e},_=t.reduce(c,e,0),i=_+this.toolbar_height,f=this.viewstate.get(\"outerwidth\"),this.$el.attr(\"style\",\"position:relative; height:\"+i+\"px;width:\"+f+\"px\"),this.render_end()},s}(o.View),c=function(t){function n(){return g=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"GridPlot\",n.prototype.default_view=_,n.prototype.defaults=function(){return{children:[[]],border_space:0}},n}(s),d=function(t){function n(){return m=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=c,n}(n.Collection),{Model:c,Collection:new d,View:_}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"mapper/1d/categorical_mapper\",[\"./linear_mapper\"],function(t){var n,r;return n=function(t){function n(){return r=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.map_to_target=function(t){var e,r,i,o;return\"number\"==typeof t?n.__super__.map_to_target.call(this,t):(r=this.get(\"source_range\").get(\"factors\"),t.indexOf(\":\")>=0?(o=t.split(\":\"),e=o[0],i=o[1],i=parseFloat(i),n.__super__.map_to_target.call(this,r.indexOf(e)+.5+i)):n.__super__.map_to_target.call(this,r.indexOf(t)+1))},n.prototype.v_map_to_target=function(t){var e,r,i,o,s,a,l,u,p;if(\"number\"==typeof t[0])return n.__super__.v_map_to_target.call(this,t);for(r=this.get(\"source_range\").get(\"factors\"),s=Array(t.length),i=l=0,u=t.length;u>=0?u>l:l>u;i=u>=0?++l:--l)a=t[i],a.indexOf(\":\")>=0?(p=a.split(\":\"),e=p[0],o=p[1],o=parseFloat(o),s[i]=r.indexOf(e)+.5+o):s[i]=r.indexOf(a)+1;return n.__super__.v_map_to_target.call(this,s)},n.prototype.map_from_target=function(t){var e;return t=n.__super__.map_from_target.call(this,t)-.5,e=this.get(\"source_range\").get(\"factors\"),e[Math.floor(t)]},n.prototype.v_map_from_target=function(t){var e,r,i,o,s;for(i=n.__super__.v_map_from_target.call(this,t),e=this.get(\"source_range\").get(\"factors\"),r=o=0,s=i.length;s>=0?s>o:o>s;r=s>=0?++o:--o)i[r]=e[Math.floor(i[r]-.5)];return i},n}(t)})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,r=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};n(\"common/plot\",[\"underscore\",\"backbone\",\"require\",\"./build_views\",\"./safebind\",\"./bulk_save\",\"./continuum_view\",\"./has_parent\",\"./view_state\",\"mapper/1d/linear_mapper\",\"mapper/1d/categorical_mapper\",\"mapper/2d/grid_mapper\",\"renderer/properties\",\"tool/active_tool_manager\"],function(e,n,i,o,s,a,l,u,p,h,c,_,d,f){var g,m,y,v,b,w,x,k,T,C,M;return w=d.line_properties,x=d.text_properties,g=[\"image\",\"underlay\",\"glyph\",\"overlay\",\"annotation\",\"tool\"],b=function(t){return t()},b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||b,k=function(t,e){var n,r,i,o,s,a,l,u;return u=[null,null,null,null],r=u[0],n=u[1],l=u[2],a=u[3],s=0,o=!1,i=function(){return s=new Date,l=null,o=!1,a=t.apply(r,n)},function(){var t,u;return t=new Date,u=e-(t-s),r=this,n=arguments,0>=u&&!o?(clearTimeout(l),o=!0,b(i)):l||(l=setTimeout(function(){return b(i)},u)),a}},y=function(i){function l(){return this._mousemove=t(this._mousemove,this),this._mousedown=t(this._mousedown,this),T=l.__super__.constructor.apply(this,arguments)}return r(l,i),l.prototype.className=\"bokeh plotview\",l.prototype.events={\"mousemove .bokeh_canvas_wrapper\":\"_mousemove\",\"mousedown .bokeh_canvas_wrapper\":\"_mousedown\"},l.prototype.view_options=function(){return e.extend({plot_model:this.model,plot_view:this},this.options)},l.prototype._mousedown=function(t){var e,n,r,i,o;for(i=this.mousedownCallbacks,o=[],n=0,r=i.length;r>n;n++)e=i[n],o.push(e(t,t.layerX,t.layerY));return o},l.prototype._mousemove=function(t){var e,n,r,i,o;for(i=this.moveCallbacks,o=[],n=0,r=i.length;r>n;n++)e=i[n],o.push(e(t,t.layerX,t.layerY));return o},l.prototype.pause=function(){return this.is_paused=!0},l.prototype.unpause=function(t){return null==t&&(t=!1),this.is_paused=!1,t?this.request_render_canvas(!0):this.request_render()},l.prototype.request_render=function(){this.is_paused||this.throttled_render()},l.prototype.request_render_canvas=function(t){this.is_paused||this.throttled_render_canvas(t)},l.prototype.initialize=function(t){var r,i,o,s,a,u,d,m,y,v,b,T,C,M,j,S,z,A,N,P,F,E;for(l.__super__.initialize.call(this,e.defaults(t,this.default_options)),this.throttled_render=k(this.render,15),this.throttled_render_canvas=k(this.render_canvas,15),this.outline_props=new w(this,{},\"outline_\"),this.title_props=new x(this,{},\"title_\"),this.view_state=new p({canvas_width:null!=(u=t.canvas_width)?u:this.mget(\"canvas_width\"),canvas_height:null!=(j=t.canvas_height)?j:this.mget(\"canvas_height\"),x_offset:null!=(S=t.x_offset)?S:this.mget(\"x_offset\"),y_offset:null!=(z=t.y_offset)?z:this.mget(\"y_offset\"),outer_width:null!=(A=t.outer_width)?A:this.mget(\"outer_width\"),outer_height:null!=(N=t.outer_height)?N:this.mget(\"outer_height\"),min_border_top:null!=(P=null!=(F=t.min_border_top)?F:this.mget(\"min_border_top\"))?P:this.mget(\"min_border\"),min_border_bottom:null!=(E=null!=(d=t.min_border_bottom)?d:this.mget(\"min_border_bottom\"))?E:this.mget(\"min_border\"),min_border_left:null!=(m=null!=(y=t.min_border_left)?y:this.mget(\"min_border_left\"))?m:this.mget(\"min_border\"),min_border_right:null!=(v=null!=(b=t.min_border_right)?b:this.mget(\"min_border_right\"))?v:this.mget(\"min_border\"),requested_border_top:0,requested_border_bottom:0,requested_border_left:0,requested_border_right:0}),this.hidpi=null!=(T=t.hidpi)?T:this.mget(\"hidpi\"),this.x_range=null!=(C=t.x_range)?C:this.mget_obj(\"x_range\"),this.y_range=null!=(M=t.y_range)?M:this.mget_obj(\"y_range\"),i=h,\"FactorRange\"===this.x_range.type&&(i=c),this.xmapper=new i({source_range:this.x_range,target_range:this.view_state.get(\"inner_range_horizontal\")}),o=h,\"FactorRange\"===this.y_range.type&&(o=c),this.ymapper=new o({source_range:this.y_range,target_range:this.view_state.get(\"inner_range_vertical\")}),this.mapper=new _({domain_mapper:this.xmapper,codomain_mapper:this.ymapper}),this.requested_padding={top:0,bottom:0,left:0,right:0},this.old_mapper_state={x:null,y:null},this.am_rendering=!1,this.renderers={},this.tools={},this.eventSink=e.extend({},n.Events),this.moveCallbacks=[],this.mousedownCallbacks=[],this.keydownCallbacks=[],this.render_init(),this.render_canvas(!1),this.atm=new f(this.eventSink),this.levels={},s=0,a=g.length;a>s;s++)r=g[s],this.levels[r]={};return this.build_levels(),this.request_render(),this.atm.bind_bokeh_events(),this.bind_bokeh_events(),this},l.prototype.map_to_screen=function(t,n,r,i){var o,s;return\"screen\"===n?e.isArray(t)?o=t.slice(0):(o=new Float64Array(t.length),o.set(t)):o=this.xmapper.v_map_to_target(t),\"screen\"===i?e.isArray(r)?s=r.slice(0):(s=new Float64Array(r.length),s.set(r)):s=this.ymapper.v_map_to_target(r),o=this.view_state.v_vx_to_sx(o),s=this.view_state.v_vy_to_sy(s),[o,s]},l.prototype.map_from_screen=function(t,n,r){var i,o,s,a,l;return e.isArray(t)?i=t.slice(0):(i=new Float64Array(t.length),i.set(s)),e.isArray(n)?o=n.slice(0):(o=new Float64Array(n.length),o.set(a)),t=this.view_state.v_sx_to_vx(i),n=this.view_state.v_sy_to_vy(o),\"screen\"===r?(s=t,a=n):(l=this.mapper.v_map_from_target(t,n),s=l[0],a=l[1]),[s,a]},l.prototype.update_range=function(t){return null==t&&(t=this.initial_range_info),this.pause(),this.x_range.set(t.xr),this.y_range.set(t.yr),this.unpause()},l.prototype.build_tools=function(){return o(this.tools,this.mget_obj(\"tools\"),this.view_options())},l.prototype.build_views=function(){return o(this.renderers,this.mget_obj(\"renderers\"),this.view_options())},l.prototype.build_levels=function(){var t,n,r,i,o,s,a,l,u,p,h,c,_,d;for(r=e.keys(this.renderers),l=this.build_views(),i=e.difference(r,e.pluck(this.mget_obj(\"renderers\"),\"id\")),console.log(\"renderers_to_remove\",i),u=0,c=i.length;c>u;u++)t=i[u],delete this.levels.glyph[t];for(s=this.build_tools(),p=0,_=l.length;_>p;p++)a=l[p],n=a.mget(\"level\"),this.levels[n][a.model.id]=a,a.bind_bokeh_events();for(h=0,d=s.length;d>h;h++)o=s[h],n=o.mget(\"level\"),this.levels[n][o.model.id]=o,o.bind_bokeh_events();return this},l.prototype.bind_bokeh_events=function(){var t=this;return s(this,this.view_state,\"change\",function(){return t.request_render_canvas(),t.request_render()}),s(this,this.x_range,\"change\",this.request_render),s(this,this.y_range,\"change\",this.request_render),s(this,this.model,\"change:renderers\",this.build_levels),s(this,this.model,\"change:tool\",this.build_levels),s(this,this.model,\"change\",this.request_render),s(this,this.model,\"destroy\",function(){return t.remove()})},l.prototype.render_init=function(){return this.$el.append($(\"<div class='button_bar btn-group pull-top'/>\\n<div class='plotarea'>\\n<div class='bokeh_canvas_wrapper'>\\n <canvas class='bokeh_canvas'></canvas>\\n</div>\\n</div>\")),this.button_bar=this.$el.find(\".button_bar\"),this.canvas_wrapper=this.$el.find(\".bokeh_canvas_wrapper\"),this.canvas=this.$el.find(\"canvas.bokeh_canvas\")},l.prototype.render_canvas=function(t){var e,n,r,i,o;return null==t&&(t=!0),this.ctx=this.canvas[0].getContext(\"2d\"),this.hidpi?(n=window.devicePixelRatio||1,e=this.ctx.webkitBackingStorePixelRatio||this.ctx.mozBackingStorePixelRatio||this.ctx.msBackingStorePixelRatio||this.ctx.oBackingStorePixelRatio||this.ctx.backingStorePixelRatio||1,o=n/e):o=1,i=this.view_state.get(\"outer_width\"),r=this.view_state.get(\"outer_height\"),this.canvas.width=i*o,this.canvas.height=r*o,this.button_bar.attr(\"style\",\"width:\"+i+\"px;\"),this.canvas_wrapper.attr(\"style\",\"width:\"+i+\"px; height:\"+r+\"px\"),this.canvas.attr(\"style\",\"width:\"+i+\"px;\"),this.canvas.attr(\"style\",\"height:\"+r+\"px;\"),this.canvas.attr(\"width\",i*o).attr(\"height\",r*o),this.$el.attr(\"width\",i).attr(\"height\",r),this.ctx.scale(o,o),this.ctx.translate(.5,.5),t?this.render():void 0},l.prototype.save_png=function(){var t;return this.render(),t=this.canvas[0].toDataURL(),this.model.set(\"png\",this.canvas[0].toDataURL()),a([this.model])},l.prototype.render=function(){var t,e,n,r,i,o,s,a,u,p,h,c,_,d,f,g,m,y,v,b,w;for(l.__super__.render.call(this),null==this.initial_range_info&&null!=this.x_range.get(\"start\")&&(this.initial_range_info={xr:{start:this.x_range.get(\"start\"),end:this.x_range.get(\"end\")},yr:{start:this.y_range.get(\"start\"),end:this.y_range.get(\"end\")}}),this.requested_padding={top:0,bottom:0,left:0,right:0},v=[\"image\",\"underlay\",\"glyph\",\"overlay\",\"annotation\",\"tool\"],f=0,m=v.length;m>f;f++){r=v[f],o=this.levels[r];for(n in o)if(c=o[n],null!=c.padding_request){i=c.padding_request();for(n in i)c=i[n],this.requested_padding[n]+=c}}h=this.mget(\"title\"),h&&(this.title_props.set(this.ctx,{}),p=this.ctx.measureText(this.mget(\"title\")).ascent,this.requested_padding.top+=p+this.mget(\"title_standoff\")),u=this.mget(\"border_symmetry\"),(u.indexOf(\"h\")>=0||u.indexOf(\"H\")>=0)&&(e=Math.max(this.requested_padding.left,this.requested_padding.right),this.requested_padding.left=e,this.requested_padding.right=e),(u.indexOf(\"v\")>=0||u.indexOf(\"V\")>=0)&&(e=Math.max(this.requested_padding.top,this.requested_padding.bottom),this.requested_padding.top=e,this.requested_padding.bottom=e),this.is_paused=!0,b=this.requested_padding;for(n in b)c=b[n],this.view_state.set(\"requested_border_\"+n,c);for(this.is_paused=!1,this.ctx.fillStyle=this.mget(\"border_fill\"),this.ctx.fillRect(0,0,this.view_state.get(\"canvas_width\"),this.view_state.get(\"canvas_height\")),this.ctx.fillStyle=this.mget(\"background_fill\"),this.ctx.fillRect(this.view_state.get(\"border_left\"),this.view_state.get(\"border_top\"),this.view_state.get(\"inner_width\"),this.view_state.get(\"inner_height\")),this.outline_props.do_stroke&&(this.outline_props.set(this.ctx,{}),this.ctx.strokeRect(this.view_state.get(\"border_left\"),this.view_state.get(\"border_top\"),this.view_state.get(\"inner_width\"),this.view_state.get(\"inner_height\"))),t=!1,_=this.xmapper.get(\"mapper_state\")[0],d=this.ymapper.get(\"mapper_state\")[0],(Math.abs(this.old_mapper_state.x-_)>1e-8||Math.abs(this.old_mapper_state.y-d)>1e-8)&&(this.old_mapper_state.x=_,this.old_mapper_state.y=d,t=!0),this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(this.view_state.get(\"border_left\"),this.view_state.get(\"border_top\"),this.view_state.get(\"inner_width\"),this.view_state.get(\"inner_height\")),this.ctx.clip(),this.ctx.beginPath(),w=[\"image\",\"underlay\",\"glyph\"],g=0,y=w.length;y>g;g++){r=w[g],o=this.levels[r];for(n in o)c=o[n],c.render(t)}return this.ctx.restore(),this.render_overlays(t),h?(s=this.view_state.get(\"outer_width\")/2,a=p,this.title_props.set(this.ctx,{}),this.ctx.fillText(h,s,a)):void 0},l.prototype.render_overlays=function(t){var e,n,r,i,o,s,a,l;for(a=[\"overlay\",\"annotation\",\"tool\"],l=[],o=0,s=a.length;s>o;o++)n=a[o],r=this.levels[n],l.push(function(){var n;n=[];for(e in r)i=r[e],n.push(i.render(t));return n}());return l},l}(l.View),m=function(t){function e(){return C=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type=\"Plot\",e.prototype.default_view=y,e.prototype.add_renderers=function(t){var e;return e=this.get(\"renderers\"),e=e.concat(t),this.set(\"renderers\",e)},e.prototype.parent_properties=[\"background_fill\",\"border_fill\",\"canvas_width\",\"canvas_height\",\"outer_width\",\"outer_height\",\"min_border\",\"min_border_top\",\"min_border_bottom\",\"min_border_left\",\"min_border_right\"],e.prototype.defaults=function(){return{data_sources:{},renderers:[],tools:[],title:\"Plot\"}},e.prototype.display_defaults=function(){return{hidpi:!0,background_fill:\"#fff\",border_fill:\"#fff\",border_symmetry:\"h\",min_border:40,x_offset:0,y_offset:0,canvas_width:300,canvas_height:300,outer_width:300,outer_height:300,title_standoff:8,title_text_font:\"helvetica\",title_text_font_size:\"20pt\",title_text_font_style:\"normal\",title_text_color:\"#444444\",title_text_alpha:1,title_text_align:\"center\",title_text_baseline:\"alphabetic\",outline_line_color:\"#aaaaaa\",outline_line_width:1,outline_line_alpha:1,outline_line_join:\"miter\",outline_line_cap:\"butt\",outline_line_dash:[],outline_line_dash_offset:0}},e}(u),v=function(t){function e(){return M=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.model=m,e}(n.Collection),{Model:m,Collection:new v,View:y}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,r=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};n(\"common/plot_context\",[\"underscore\",\"backbone\",\"./build_views\",\"./safebind\",\"./has_parent\",\"./continuum_view\"],function(n,i,o,s,a,l){var u,p,h,c,_,d;return p=function(i){function a(){return this.removeplot=t(this.removeplot,this),this.closeall=t(this.closeall,this),c=a.__super__.constructor.apply(this,arguments)}return r(a,i),a.prototype.initialize=function(t){return this.views={},this.views_rendered=[!1],this.child_models=[],a.__super__.initialize.call(this,t),this.render()},a.prototype.delegateEvents=function(){return s(this,this.model,\"destroy\",this.remove),s(this,this.model,\"change\",this.render),a.__super__.delegateEvents.call(this)},a.prototype.build_children=function(){var t;return t=o(this.views,this.mget_obj(\"children\"),{}),window.pc_created_views=t,window.pc_views=this.views,null},a.prototype.events={\"click .plotclose\":\"removeplot\",\"click .closeall\":\"closeall\"},a.prototype.size_textarea=function(t){var e;return e=$(t).height(0).prop(\"scrollHeight\"),$(t).height(e)},a.prototype.closeall=function(){return this.mset(\"children\",[]),this.model.save()},a.prototype.removeplot=function(t){var e,n,r,i,o;return n=parseInt($(t.currentTarget).parent().attr(\"data-plot_num\")),r=this.model.resolve_ref(this.mget(\"children\")[n]),i=this.views[r.get(\"id\")],i.remove(),e=function(){var t,e,n,r;for(n=this.mget(\"children\"),r=[],t=0,e=n.length;e>t;t++)o=n[t],o.id!==i.model.id&&r.push(o);return r}.call(this),this.mset(\"children\",e),this.model.save(),!1},a.prototype.render=function(){var t,r,i,o,s,l,u,p,h,c,_,d,f,g=this;a.__super__.render.call(this),this.build_children(),d=this.views;for(r in d)e.call(d,r)&&(p=d[r],p.$el.detach());for(this.$el.html(\"\"),s=n.keys(this.views).length,this.$el.append(\"<div>You have \"+s+\" plots</div>\"),this.$el.append(\"<div><a class='closeall' href='#'>Close All Plots</a></div>\"),this.$el.append(\"<br/>\"),u=[],l={},f=this.mget(\"children\"),t=c=0,_=f.length;_>c;t=++c)i=f[t],h=this.views[i.id],o=$(\"<div class='jsp' data-plot_num='\"+t+\"'></div>\"),this.$el.append(o),o.append($(\"<a class='plotclose'>[close]</a>\")),o.append(h.el);return n.defer(function(){var t,e,n,r,i;for(r=g.$el.find(\".plottitle\"),i=[],e=0,n=r.length;n>e;e++)t=r[e],i.push(g.size_textarea($(t)));return i}),null},a}(l.View),u=function(t){function e(){return _=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type=\"PlotContext\",e.prototype.default_view=p,e.prototype.url=function(){return e.__super__.url.call(this)},e.prototype.defaults=function(){return{children:[],render_loop:!0}},e}(a),h=function(t){function e(){return d=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.model=u,e}(i.Collection),{Model:u,Collection:new h,View:p}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"range/factor_range\",[\"backbone\",\"common/has_properties\"],function(t,n){var r,i,o,s;return r=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"FactorRange\",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),this.register_property(\"end\",function(){return this.get(\"factors\").length+.5},!0),this.add_dependencies(\"end\",this,[\"factors\"]),this.register_property(\"min\",function(){return this.get(\"start\")},!0),this.add_dependencies(\"min\",this,[\"factors\"]),this.register_property(\"max\",function(){return this.get(\"end\")},!0),this.add_dependencies(\"max\",this,[\"factors\"])},n.prototype.defaults=function(){return{start:.5,factors:[]}},n}(n),i=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(t.Collection),{Model:r,Collection:new i}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,r=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};n(\"range/data_factor_range\",[\"underscore\",\"backbone\",\"range/factor_range\"],function(e,n,i){var o,s,a,l;return o=function(n){function i(){return this._get_values=t(this._get_values,this),a=i.__super__.constructor.apply(this,arguments)}return r(i,n),i.prototype.type=\"DataFactorRange\",i.prototype._get_values=function(){var t,n,r,i,o,s,a;for(t=function(){var t,e,n,r;for(n=this.get(\"columns\"),r=[],t=0,e=n.length;e>t;t++)o=n[t],r.push(this.get_obj(\"data_source\").getcolumn(o));return r}.call(this),t=e.reduce(t,function(t,e){return t.concat(e)},[]),n={},s=0,a=t.length;a>s;s++)i=t[s],n[i]=!0;return r=e.keys(n),r=e.sortBy(r,function(t){return t})},i.prototype.dinitialize=function(t,e){return i.__super__.dinitialize.call(this,t,e),this.register_property,this.register_property(\"values\",this._get_values,!0),this.add_dependencies(\"values\",this,[\"data_source\",\"columns\"]),this.add_dependencies(\"values\",this.get_obj(\"data_source\"),[\"data_source\",\"columns\"])},i.prototype.defaults=function(){return{values:[],columns:[],data_source:null}},i}(i.Model),s=function(t){function e(){return l=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.model=o,e}(n.Collection),{Model:o,Collection:new s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"range/data_range1d\",[\"underscore\",\"backbone\",\"range/range1d\"],function(t,n,r){var i,o,s,a;return i=function(n){function r(){return s=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"DataRange1d\",r.prototype._get_minmax=function(){var e,n,r,i,o,s,a,l,u,p,h,c,_,d,f,g;for(r=[],_=this.get(\"sources\"),u=0,h=_.length;h>u;u++)for(s=_[u],a=this.resolve_ref(s.ref),d=s.columns,p=0,c=d.length;c>p;p++)n=d[p],r.push(a.getcolumn(n));return r=t.flatten(r),r=t.filter(r,function(t){return\"string\"!=typeof t}),r=t.reject(r,function(t){return isNaN(t)}),f=[t.min(r),t.max(r)],o=f[0],i=f[1],l=i!==o?(i-o)*(1+this.get(\"rangepadding\")):0!==i?Math.abs(i)*(1+this.get(\"rangepadding\")):2,e=(i+o)/2,g=[e-l/2,e+l/2],o=g[0],i=g[1],[o,i]},r.prototype._get_start=function(){return t.isNullOrUndefined(this.get(\"_start\"))?this.get(\"minmax\")[0]:this.get(\"_start\")},r.prototype._set_start=function(t){return this.set(\"_start\",t)},r.prototype._get_end=function(){return t.isNullOrUndefined(this.get(\"_end\"))?this.get(\"minmax\")[1]:this.get(\"_end\")},r.prototype._set_end=function(t){return this.set(\"_end\",t)},r.prototype.dinitialize=function(t,e){var n,i,o,s;for(this.register_property(\"minmax\",this._get_minmax,!0),this.add_dependencies(\"minmax\",this,[\"sources\"],[\"rangepadding\"]),s=this.get(\"sources\"),i=0,o=s.length;o>i;i++)n=s[i],n=this.resolve_ref(n.ref),this.add_dependencies(\"minmax\",n,\"data\");return this.register_property(\"start\",this._get_start,!0),this.register_setter(\"start\",this._set_start),this.add_dependencies(\"start\",this,[\"minmax\",\"_start\"]),this.register_property(\"end\",this._get_end,!0),this.register_setter(\"end\",this._set_end),this.add_dependencies(\"end\",this,[\"minmax\",\"_end\"]),r.__super__.dinitialize.call(this,t,e)},r.prototype.defaults=function(){return{sources:[],rangepadding:.1}},r}(r.Model),o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n.Collection),{Model:i,Collection:new o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e\n",
" }for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"common/plot_widget\",[\"./continuum_view\",\"./safebind\"],function(t){var n,r;return n=function(t){function n(){return r=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.tagName=\"div\",n.prototype.initialize=function(t){return this.plot_model=t.plot_model,this.plot_view=t.plot_view,this._fixup_line_dash(this.plot_view.ctx),this._fixup_line_dash_offset(this.plot_view.ctx),this._fixup_image_smoothing(this.plot_view.ctx),this._fixup_measure_text(this.plot_view.ctx),n.__super__.initialize.call(this,t)},n.prototype._fixup_line_dash=function(t){return t.setLineDash||(t.setLineDash=function(e){return t.mozDash=e,t.webkitLineDash=e}),t.getLineDash?void 0:t.getLineDash=function(){return t.mozDash}},n.prototype._fixup_line_dash_offset=function(t){return t.setLineDashOffset=function(e){return t.lineDashOffset=e,t.mozDashOffset=e,t.webkitLineDashOffset=e},t.getLineDashOffset=function(){return t.mozDashOffset}},n.prototype._fixup_image_smoothing=function(t){return t.setImageSmoothingEnabled=function(e){return t.imageSmoothingEnabled=e,t.mozImageSmoothingEnabled=e,t.oImageSmoothingEnabled=e,t.webkitImageSmoothingEnabled=e},t.getImageSmoothingEnabled=function(){var e;return null!=(e=t.imageSmoothingEnabled)?e:!0}},n.prototype._fixup_measure_text=function(t){return t.measureText&&null==t.html5MeasureText?(t.html5MeasureText=t.measureText,t.measureText=function(e){var n;return n=t.html5MeasureText(e),n.ascent=1.6*t.html5MeasureText(\"m\").width,n}):void 0},n.prototype.bind_bokeh_events=function(){},n.prototype.request_render=function(){return this.plot_view.request_render()},n}(t.View)})}.call(this),function(){n(\"common/textutils\",[],function(){var t,e;return t={},e=function(e){var n,r,i,o,s;if(null!=t[e])return t[e];s=$(\"<span>Hg</span>\").css({font:e}),n=$('<div style=\"display: inline-block; width: 1px; height: 0px;\"></div>'),i=$(\"<div></div>\"),i.append(s,n),r=$(\"body\"),r.append(i);try{o={},n.css({verticalAlign:\"baseline\"}),o.ascent=n.offset().top-s.offset().top,n.css({verticalAlign:\"bottom\"}),o.height=n.offset().top-s.offset().top,o.descent=o.height-o.ascent}finally{i.remove()}return t[e]=o,o},{getTextHeight:e}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/annotation/legend\",[\"underscore\",\"common/has_parent\",\"common/plot_widget\",\"common/textutils\",\"renderer/properties\"],function(t,n,r,i,o){var s,a,l,u,p,h,c,_,d;return u=o.glyph_properties,p=o.line_properties,h=o.text_properties,a=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(e){return r.__super__.initialize.call(this,e),this.label_props=new h(this,this.model,\"label_\"),this.border_props=new p(this,this.model,\"border_\"),this.mget(\"legend_names\")?this.legend_names=this.mget(\"legend_names\"):(this.legends=this.mget(\"legends\"),this.legend_names=t.keys(this.mget(\"legends\"))),this.calc_dims()},r.prototype.delegateEvents=function(t){return r.__super__.delegateEvents.call(this,t),this.listenTo(this.plot_view.view_state,\"change\",this.calc_dims)},r.prototype.calc_dims=function(){var e,n,r,o,s,a,l,u,p,h,c,_,d;return r=this.mget(\"label_height\"),this.glyph_height=this.mget(\"glyph_height\"),o=this.mget(\"label_width\"),this.glyph_width=this.mget(\"glyph_width\"),a=this.mget(\"legend_spacing\"),this.label_height=t.max([i.getTextHeight(this.label_props.font(this)),r,this.glyph_height]),this.legend_height=this.label_height,this.legend_height=this.legend_names.length*this.legend_height+(1+this.legend_names.length)*a,e=this.plot_view.ctx,e.save(),this.label_props.set(e,this),p=t.map(this.legend_names,function(t){return e.measureText(t).width}),e.restore(),u=t.max(p),this.label_width=t.max([u,o]),this.legend_width=this.label_width+this.glyph_width+3*a,l=this.mget(\"orientation\"),s=this.mget(\"legend_padding\"),n=this.plot_view.view_state.get(\"inner_range_horizontal\"),h=this.plot_view.view_state.get(\"inner_range_vertical\"),\"top_right\"===l?(c=n.get(\"end\")-s-this.legend_width,_=h.get(\"end\")-s):\"top_left\"===l?(c=n.get(\"start\")+s,_=h.get(\"end\")-s):\"bottom_left\"===l?(c=n.get(\"start\")+s,_=h.get(\"start\")+s+this.legend_height):\"bottom_right\"===l?(c=n.get(\"end\")-s-this.legend_width,_=h.get(\"start\")+s+this.legend_height):\"absolute\"===l&&(d=this.absolute_coords,c=d[0],_=d[1]),c=this.plot_view.view_state.vx_to_sx(c),_=this.plot_view.view_state.vy_to_sy(_),this.box_coords=[c,_]},r.prototype.render=function(){var t,e,n,r,i,o,s,a,l,u,p,h,c,_,d,f,g,m,y,v;for(t=this.plot_view.ctx,t.save(),t.fillStyle=this.plot_model.get(\"background_fill\"),this.border_props.set(t,this),t.beginPath(),t.rect(this.box_coords[0],this.box_coords[1],this.legend_width,this.legend_height),t.fill(),t.stroke(),r=this.mget(\"legend_spacing\"),y=this.legend_names,e=d=0,g=y.length;g>d;e=++d)for(n=y[e],c=e*this.label_height,_=(1+e)*r,u=this.box_coords[1]+this.label_height/2+c+_,s=this.box_coords[0]+r,a=this.box_coords[0]+2*r+this.label_width,l=a+this.glyph_width,p=this.box_coords[1]+c+_,h=p+this.glyph_height,this.label_props.set(t,this),t.fillText(n,s,u),v=this.model.resolve_ref(this.legends[n]),f=0,m=v.length;m>f;f++)i=v[f],o=this.plot_view.renderers[i.id],o.draw_legend(t,a,l,p,h);return t.restore()},r}(r),s=function(t){function n(){return _=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=a,n.prototype.type=\"Legend\",n.prototype.display_defaults=function(){return{level:\"overlay\",border_line_color:\"black\",border_line_width:1,border_line_alpha:1,border_line_join:\"miter\",border_line_cap:\"butt\",border_line_dash:[],border_line_dash_offset:0,label_standoff:15,label_text_font:\"helvetica\",label_text_font_size:\"10pt\",label_text_font_style:\"normal\",label_text_color:\"#444444\",label_text_alpha:1,label_text_align:\"left\",label_text_baseline:\"middle\",glyph_height:20,glyph_width:20,label_height:20,label_width:50,legend_padding:10,legend_spacing:3,orientation:\"top_right\",datapoint:null}},n}(n),l=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(Backbone.Collection),{Model:s,Collection:new l,View:a}})}.call(this),function(){function t(e,n){return this instanceof t?(this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),n&&this._initFormat(n),this.clear(),void 0):new t(e,n)}t.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,n=[];if(!this._intersects(t,e.bbox))return n;for(var r,i,o,s,a=[];e;){for(r=0,i=e.children.length;i>r;r++)o=e.children[r],s=e.leaf?this.toBBox(o):o.bbox,this._intersects(t,s)&&(e.leaf?n.push(o):this._contains(t,s)?this._all(o,n):a.push(o));e=a.pop()}return n},load:function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0,n=t.length;n>e;e++)this.insert(t[e]);return this}var r=this._build(t.slice(),0);if(this.data.children.length)if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var i=this.data;this.data=r,r=i}this._insert(r,this.data.height-r.height-1,!0)}else this.data=r;return this},insert:function(t){return t&&this._insert(t,this.data.height-1),this},clear:function(){return this.data={children:[],leaf:!0,bbox:this._empty(),height:1},this},remove:function(t){if(!t)return this;for(var e,n,r,i,o=this.data,s=this.toBBox(t),a=[],l=[];o||a.length;){if(o||(o=a.pop(),n=a[a.length-1],e=l.pop(),i=!0),o.leaf&&(r=o.children.indexOf(t),-1!==r))return o.children.splice(r,1),a.push(o),this._condense(a),this;i||o.leaf||!this._contains(o.bbox,s)?n?(e++,o=n.children[e],i=!1):o=null:(a.push(o),l.push(e),e=0,n=o,o=o.children[0])}return this},toBBox:function(t){return t},compareMinX:function(t,e){return t[0]-e[0]},compareMinY:function(t,e){return t[1]-e[1]},toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},_all:function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},_build:function(t,e,n){var r,i=t.length,o=this._maxEntries;if(o>=i)return r={children:t,leaf:!0,height:1},this._calcBBox(r),r;e||(n=Math.ceil(Math.log(i)/Math.log(o)),o=Math.ceil(i/Math.pow(o,n-1)),t.sort(this.compareMinX)),r={children:[],height:n};var s,a,l,u,p,h=Math.ceil(i/o)*Math.ceil(Math.sqrt(o)),c=Math.ceil(i/o),_=1===e%2?this.compareMinX:this.compareMinY;for(s=0;i>s;s+=h)for(l=t.slice(s,s+h).sort(_),a=0,u=l.length;u>a;a+=c)p=this._build(l.slice(a,a+c),e+1,n-1),r.children.push(p);return this._calcBBox(r),r},_chooseSubtree:function(t,e,n,r){for(var i,o,s,a,l,u,p,h;;){if(r.push(e),e.leaf||r.length-1===n)break;for(p=h=1/0,i=0,o=e.children.length;o>i;i++)s=e.children[i],l=this._area(s.bbox),u=this._enlargedArea(t,s.bbox)-l,h>u?(h=u,p=p>l?l:p,a=s):u===h&&p>l&&(p=l,a=s);e=a}return e},_insert:function(t,e,n){var r=n?t.bbox:this.toBBox(t),i=[],o=this._chooseSubtree(r,this.data,e,i);for(o.children.push(t),this._extend(o.bbox,r);e>=0&&i[e].children.length>this._maxEntries;)this._split(i,e),e--;this._adjustParentBBoxes(r,i,e)},_split:function(t,e){var n=t[e],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o={children:n.children.splice(this._chooseSplitIndex(n,i,r)),height:n.height};n.leaf&&(o.leaf=!0),this._calcBBox(n),this._calcBBox(o),e?t[e-1].children.push(o):this._splitRoot(n,o)},_splitRoot:function(t,e){this.data={},this.data.children=[t,e],this.data.height=t.height+1,this._calcBBox(this.data)},_chooseSplitIndex:function(t,e,n){var r,i,o,s,a,l,u,p;for(l=u=1/0,r=e;n-e>=r;r++)i=this._distBBox(t,0,r),o=this._distBBox(t,r,n),s=this._intersectionArea(i,o),a=this._area(i)+this._area(o),l>s?(l=s,p=r,u=u>a?a:u):s===l&&u>a&&(u=a,p=r);return p},_chooseSplitAxis:function(t,e,n){var r=t.leaf?this.compareMinX:this._compareNodeMinX,i=t.leaf?this.compareMinY:this._compareNodeMinY,o=this._allDistMargin(t,e,n,r),s=this._allDistMargin(t,e,n,i);s>o&&t.children.sort(r)},_allDistMargin:function(t,e,n,r){t.children.sort(r);var i,o,s=this._distBBox(t,0,e),a=this._distBBox(t,n-e,n),l=this._margin(s)+this._margin(a);for(i=e;n-e>i;i++)o=t.children[i],this._extend(s,t.leaf?this.toBBox(o):o.bbox),l+=this._margin(s);for(i=n-e-1;i>=e;i--)o=t.children[i],this._extend(a,t.leaf?this.toBBox(o):o.bbox),l+=this._margin(a);return l},_distBBox:function(t,e,n){for(var r,i=this._empty(),o=e;n>o;o++)r=t.children[o],this._extend(i,t.leaf?this.toBBox(r):r.bbox);return i},_calcBBox:function(t){t.bbox=this._distBBox(t,0,t.children.length)},_adjustParentBBoxes:function(t,e,n){for(var r=n;r>=0;r--)this._extend(e[r].bbox,t)},_condense:function(t){for(var e,n=t.length-1;n>=0;n--)0===t[n].children.length?n>0?(e=t[n-1].children,e.splice(e.indexOf(t[n]),1)):this.clear():this._calcBBox(t[n])},_contains:function(t,e){return t[0]<=e[0]&&t[1]<=e[1]&&e[2]<=t[2]&&e[3]<=t[3]},_intersects:function(t,e){return e[0]<=t[2]&&e[1]<=t[3]&&e[2]>=t[0]&&e[3]>=t[1]},_extend:function(t,e){return t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t},_area:function(t){return(t[2]-t[0])*(t[3]-t[1])},_margin:function(t){return t[2]-t[0]+(t[3]-t[1])},_enlargedArea:function(t,e){return(Math.max(e[2],t[2])-Math.min(e[0],t[0]))*(Math.max(e[3],t[3])-Math.min(e[1],t[1]))},_intersectionArea:function(t,e){var n=Math.max(t[0],e[0]),r=Math.max(t[1],e[1]),i=Math.min(t[2],e[2]),o=Math.min(t[3],e[3]);return Math.max(0,i-n)*Math.max(0,o-r)},_empty:function(){return[1/0,1/0,-1/0,-1/0]},_compareNodeMinX:function(t,e){return t.bbox[0]-e.bbox[0]},_compareNodeMinY:function(t,e){return t.bbox[1]-e.bbox[1]},_initFormat:function(t){var e=[\"return a\",\" - b\",\";\"];this.compareMinX=new Function(\"a\",\"b\",e.join(t[0])),this.compareMinY=new Function(\"a\",\"b\",e.join(t[1])),this.toBBox=new Function(\"a\",\"return [a\"+t.join(\", a\")+\"];\")}},\"function\"==typeof n&&n.amd?n(\"rbush\",[],function(){return t}):\"undefined\"!=typeof module?module.exports=t:\"undefined\"!=typeof self?self.rbush=t:window.rbush=t}(),function(){n(\"common/mathutils\",[],function(){var t,e,n;return n=function(t){for(;0>t;)t+=2*Math.PI;for(;t>2*Math.PI;)ngle-=2*Math.PI;return t},e=function(t,e){var r;return r=n(t)-n(e),Math.abs(n(r+Math.PI)-Math.PI)},t=function(t,n,r,i){var o;return o=e(n,r),\"anticlock\"===i?e(n,t)<=o&&e(t,r)<=o:!(e(n,t)<=o&&e(t,r)<=o)},{angle_norm:n,angle_dist:e,angle_between:t}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e},r=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};n(\"renderer/glyph/glyph\",[\"underscore\",\"common/has_parent\",\"common/plot_widget\",\"renderer/properties\"],function(t,n,i,o){var s,a,l,u;return a=function(n){function i(){return l=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.initialize=function(e){var n;return i.__super__.initialize.call(this,e),this.need_set_data=!0,this.glyph_props=this.init_glyph(this.mget(\"glyphspec\")),this.have_selection_props=!1,this.mget(\"selection_glyphspec\")?(n=t.extend({},this.mget(\"glyphspec\"),this.mget(\"selection_glyphspec\")),this.selection_glyphprops=this.init_glyph(n),this.have_selection_props=!0):this.selection_glyphprops=this.glyph_props,this.mget(\"nonselection_glyphspec\")?(n=t.extend({},this.mget(\"glyphspec\"),this.mget(\"nonselection_glyphspec\")),this.nonselection_glyphprops=this.init_glyph(n),this.have_selection_props=!0):this.nonselection_glyphprops=this.glyph_props},i.prototype.init_glyph=function(t){var e,n;return n={},r.call(this._properties,\"line\")>=0&&(n.line_properties=new o.line_properties(this,t)),r.call(this._properties,\"fill\")>=0&&(n.fill_properties=new o.fill_properties(this,t)),r.call(this._properties,\"text\")>=0&&(n.text_properties=new o.text_properties(this,t)),e=new o.glyph_properties(this,t,this._fields,n)},i.prototype.set_data=function(t){var e,n,r,i,o,s,a,l,u,p,h,c,_,d,f;for(null==t&&(t=!0),s=this.mget_obj(\"data_source\"),c=this._fields,u=0,h=c.length;h>u;u++){if(n=c[u],n.indexOf(\":\")>-1&&(_=n.split(\":\"),n=_[0],i=_[1]),this[n]=this.glyph_props.source_v_select(n,s),\"direction\"===n){for(a=new Uint8Array(this.direction.length),r=p=0,d=this.direction.length;d>=0?d>p:p>d;r=d>=0?++p:--p)e=this.direction[r],\"clock\"===e?a[r]=!1:\"anticlock\"===e?a[r]=!0:a=0/0;this.direction=a}n.indexOf(\"angle\")>-1&&(this[n]=function(){var t,e,r,i;for(r=this[n],i=[],t=0,e=r.length;e>t;t++)l=r[t],i.push(-l);return i}.call(this))}return null!=this._set_data&&this._set_data(),o=this[n].length,this.all_indices=function(){f=[];for(var t=0;o>=0?o>t:t>o;o>=0?t++:t--)f.push(t);return f}.apply(this),this.have_new_data=!0,t?this.request_render():void 0},i.prototype.render=function(t){var e,n,r,i,o,s,a,l,u,p,h,c,_=this;if(null==t&&(t=!0),this.need_set_data&&(this.set_data(!1),this.need_set_data=!1),this._map_data(),o=null!=this._mask_data&&\"FactorRange\"!==this.plot_view.x_range.type&&\"FactorRange\"!==this.plot_view.y_range.type?this._mask_data():this.all_indices,e=this.plot_view.ctx,e.save(),n=function(t,e,n){var r;return r=_.mget_obj(\"data_source\"),_.have_new_data&&(null!=n.fill_properties&&n.fill_properties.do_fill&&n.fill_properties.set_prop_cache(r),null!=n.line_properties&&n.line_properties.do_stroke&&n.line_properties.set_prop_cache(r),null!=n.text_properties&&n.text_properties.set_prop_cache(r)),_._render(t,e,n)},a=this.mget_obj(\"data_source\").get(\"selected\"),a&&a.length&&this.have_selection_props){for(l=function(){var t,e,n,i;for(n=this.all_indices,i=[],t=0,e=n.length;e>t;t++)r=n[t],i.push(!1);return i}.call(this),u=0,h=a.length;h>u;u++)i=a[u],l[i]=!0;for(a=new Array,s=new Array,p=0,c=o.length;c>p;p++)r=o[p],l[r]?a.push(r):s.push(r);n(e,a,this.selection_glyphprops),n(e,s,this.nonselection_glyphprops)}else n(e,o,this.glyph_props);return this.have_new_data=!1,e.restore()},i.prototype.xrange=function(){return this.plot_view.x_range},i.prototype.yrange=function(){return this.plot_view.y_range},i.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,\"change\",this.request_render),this.listenTo(this.mget_obj(\"data_source\"),\"change\",this.set_data)},i.prototype.distance=function(t,e,n,r){var i,o,s,a,l,u,p,h,c,_,d;return p=this.glyph_props[e].units,c=this.glyph_props[n].units,\"x\"===e?a=this.plot_view.xmapper:\"y\"===e&&(a=this.plot_view.ymapper),n=this.glyph_props.v_select(n,t),\"screen\"===c?n:(\"center\"===r?(o=function(){var t,e,r;for(r=[],t=0,e=n.length;e>t;t++)i=n[t],r.push(i/2);return r}(),h=this.glyph_props.v_select(e,t),\"screen\"===p&&(h=a.v_map_from_target(h)),\"string\"==typeof h&&(h=a.v_map_to_target(h)),l=function(){var t,e,n;for(n=[],s=t=0,e=h.length;e>=0?e>t:t>e;s=e>=0?++t:--t)n.push(h[s]-o[s]);return n}(),u=function(){var t,e,n;for(n=[],s=t=0,e=h.length;e>=0?e>t:t>e;s=e>=0?++t:--t)n.push(h[s]+o[s]);return n}()):(l=this.glyph_props.v_select(e,t),\"screen\"===p&&(l=a.v_map_from_target(l)),u=function(){var t,e,r;for(r=[],s=t=0,e=l.length;e>=0?e>t:t>e;s=e>=0?++t:--t)r.push(l[s]+n[s]);return r}()),_=a.v_map_to_target(l),d=a.v_map_to_target(u),function(){var t,e,n;for(n=[],s=t=0,e=_.length;e>=0?e>t:t>e;s=e>=0?++t:--t)n.push(Math.abs(d[s]-_[s]));return n}())},i.prototype.distance_vector=function(t,e,n){\" returns an array \";var r,i,o,s,a,l,u,p,h,c,_,d,f,g,m=this;return p=this.glyph_props[t].units,d=this.glyph_props[e].units,\"x\"===t?a=this.plot_view.xmapper:\"y\"===t&&(a=this.plot_view.ymapper),c=this.mget_obj(\"data_source\"),s=function(t){return m.glyph_props.source_v_select(t,c)},_=s(e),\"screen\"===d?_:(\"center\"===n?(i=function(){var t,e,n;for(n=[],t=0,e=_.length;e>t;t++)r=_[t],n.push(r/2);return n}(),h=s(t),\"screen\"===p&&(h=a.v_map_from_target(h)),\"string\"==typeof h[0]&&(h=a.v_map_to_target(h)),l=function(){var t,e,n;for(n=[],o=t=0,e=h.length;e>=0?e>t:t>e;o=e>=0?++t:--t)n.push(h[o]-i[o]);return n}(),u=function(){var t,e,n;for(n=[],o=t=0,e=h.length;e>=0?e>t:t>e;o=e>=0?++t:--t)n.push(h[o]+i[o]);return n}()):(l=s(t),\"screen\"===p&&(l=a.v_map_from_target(l)),u=function(){var t,e,n;for(n=[],o=t=0,e=l.length;e>=0?e>t:t>e;o=e>=0?++t:--t)n.push(l[o]+_[o]);return n}()),f=a.v_map_to_target(l),g=a.v_map_to_target(u),function(){var t,e,n;for(n=[],o=t=0,e=f.length;e>=0?e>t:t>e;o=e>=0?++t:--t)n.push(Math.abs(g[o]-f[o]));return n}())},i.prototype.get_reference_point=function(){var e;return e=this.mget(\"reference_point\"),t.isNumber(e)?this.data[e]:e},i.prototype.draw_legend=function(){return null},i.prototype._generic_line_legend=function(t,e,n,r,i){var o,s,a;return s=null!=(a=this.get_reference_point())?a:0,o=this.glyph_props.line_properties,t.save(),t.beginPath(),t.moveTo(e,(r+i)/2),t.lineTo(n,(r+i)/2),o.do_stroke&&(o.set_vectorize(t,s),t.stroke()),t.restore()},i.prototype._generic_area_legend=function(t,e,n,r,i){var o,s,a,l,u,p,h,c,_,d,f;return u=null!=(f=this.get_reference_point())?f:0,l=[u],d=Math.abs(n-e),s=.1*d,a=Math.abs(i-r),o=.1*a,p=e+s,h=n-s,c=r+o,_=i-o,this.glyph_props.fill_properties.do_fill&&(this.glyph_props.fill_properties.set_vectorize(t,u),t.fillRect(p,c,h-p,_-c)),this.glyph_props.line_properties.do_stroke?(t.beginPath(),t.rect(p,c,h-p,_-c),this.glyph_props.line_properties.set_vectorize(t,u),t.stroke()):void 0},i.prototype.hit_test=function(t){return\"point\"===t.type?null!=this._hit_point?this._hit_point(t):(null==this._point_hit_warned&&(console.log(\"WARNING: 'point' selection not available on renderer\"),this._point_hit_warned=!0),null):\"rect\"===t.type?null!=this._hit_rect?this._hit_rect(t):(null==this._rect_hit_warned&&(console.log(\"WARNING: 'rect' selection not avaliable on renderer\"),this._rect_hit_warned=!0),null):(console.log(\"unrecognized selection geometry type '\"+t.type+\"'\"),null)},i}(i),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.defaults=function(){return{data_source:null}},n.prototype.display_defaults=function(){return{level:\"glyph\",radius_units:\"data\",length_units:\"screen\",angle_units:\"deg\",start_angle_units:\"deg\",end_angle_units:\"deg\"}},n}(n),{Model:s,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/annular_wedge\",[\"underscore\",\"rbush\",\"common/mathutils\",\"renderer/properties\",\"./glyph\"],function(t,n,r,i,o){var s,a,l,u;return a=function(i){function o(){return l=o.__super__.constructor.apply(this,arguments)}return e(o,i),o.prototype._fields=[\"x\",\"y\",\"inner_radius\",\"outer_radius\",\"start_angle\",\"end_angle\",\"direction:string\"],o.prototype._properties=[\"line\",\"fill\"],o.prototype._set_data=function(){var e;return this.max_radius=t.max(this.outer_radius),this.index=n(),this.index.load(function(){var t,n,r;for(r=[],e=t=0,n=this.x.length;n>=0?n>t:t>n;e=n>=0?++t:--t)r.push([this.x[e],this.y[e],this.x[e],this.y[e],{i:e}]);return r}.call(this))},o.prototype._map_data=function(){var t,e,n,r,i;for(n=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=n[0],this.sy=n[1],this.inner_radius=this.distance_vector(\"x\",\"inner_radius\",\"edge\"),this.outer_radius=this.distance_vector(\"x\",\"outer_radius\",\"edge\"),this.angle=new Float32Array(this.start_angle.length),i=[],t=e=0,r=this.start_angle.length;r>=0?r>e:e>r;t=r>=0?++e:--e)i.push(this.angle[t]=this.end_angle[t]-this.start_angle[t]);return i},o.prototype._render=function(t,e,n,r,i,o,s){var a,l,u,p;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.inner_radius),null==s&&(s=this.outer_radius),p=[],l=0,u=e.length;u>l;l++)a=e[l],isNaN(r[a]+i[a]+o[a]+s[a]+this.start_angle[a]+this.angle[a])||(t.translate(r[a],i[a]),t.rotate(this.start_angle[a]),t.moveTo(s[a],0),t.beginPath(),t.arc(0,0,s[a],0,this.angle[a],this.direction[a]),t.rotate(this.angle[a]),t.lineTo(o[a],0),t.arc(0,0,o[a],0,-this.angle[a],!this.direction[a]),t.closePath(),t.rotate(-this.angle[a]-this.start_angle[a]),t.translate(-r[a],-i[a]),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,a),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,a),p.push(t.stroke())):p.push(void 0));return p},o.prototype._hit_point=function(e){var n,i,o,s,a,l,u,p,h,c,_,d,f,g,m,y,v,b,w,x,k,T,C,M,j,S,z,A,N,P,F,E,D,$,O,q,B,R,L,U,I,H,V;if(R=[e.vx,e.vy],y=R[0],w=R[1],T=this.plot_view.xmapper.map_from_target(y),j=this.plot_view.ymapper.map_from_target(w),\"screen\"===this.outer_radius_units?(v=y-this.max_radius,b=y+this.max_radius,L=this.plot_view.xmapper.v_map_from_target([v,b]),C=L[0],M=L[1],x=w-this.max_radius,k=w+this.max_radius,U=this.plot_view.ymapper.v_map_from_target([x,k]),S=U[0],z=U[1]):(C=T-this.max_radius,M=T+this.max_radius,S=j-this.max_radius,z=j+this.max_radius),i=function(){var t,e,n,r;for(n=this.index.search([C,S,M,z]),r=[],t=0,e=n.length;e>t;t++)p=n[t],r.push(p[4].i);return r}.call(this),o=[],\"screen\"===this.outer_radius_units)for(c=this.plot_view.view_state.vx_to_sx(y),f=this.plot_view.view_state.vy_to_sy(w),A=0,E=i.length;E>A;A++)u=i[A],h=Math.pow(this.outer_radius[u],2),a=Math.pow(this.sx[u]-c,2)+Math.pow(this.sy[u]-f,2),h>=a&&o.push([u,a]);else for(N=0,D=i.length;D>N;N++)u=i[N],h=Math.pow(this.outer_radius[u],2),_=this.plot_view.xmapper.map_to_target(T),d=this.plot_view.xmapper.map_to_target(this.x[u]),g=this.plot_view.ymapper.map_to_target(j),m=this.plot_view.ymapper.map_to_target(this.y[u]),a=Math.pow(_-d,2)+Math.pow(g-m,2),h>=a&&o.push([u,a]);if(s=[],\"screen\"===this.inner_radius_units)for(c=this.plot_view.view_state.vx_to_sx(y),f=this.plot_view.view_state.vy_to_sy(w),P=0,$=o.length;$>P;P++)I=o[P],u=I[0],a=I[1],h=Math.pow(this.inner_radius[u],2),a>=h&&s.push([u,a]);else for(F=0,O=o.length;O>F;F++)H=o[F],u=H[0],a=H[1],h=Math.pow(this.inner_radius[u],2),_=this.plot_view.xmapper.map_to_target(T),d=this.plot_view.xmapper.map_to_target(this.x[u]),g=this.plot_view.ymapper.map_to_target(j),m=this.plot_view.ymapper.map_to_target(this.y[u]),a>=h&&s.push([u,a]);for(l=[],B=0,q=s.length;q>B;B++)V=s[B],u=V[0],a=V[1],c=this.plot_view.view_state.vx_to_sx(y),f=this.plot_view.view_state.vy_to_sy(w),n=Math.atan2(f-this.sy[u],c-this.sx[u]),r.angle_between(-n,-this.start_angle[u],-this.end_angle[u],this.direction[u])&&l.push([u,a]);return l=t.chain(l).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value()},o.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l,u,p,h,c;return u=null!=(c=this.get_reference_point())?c:0,o=[u],p={},p[u]=(e+n)/2,h={},h[u]=(r+i)/2,l=.5*Math.min(Math.abs(n-e),Math.abs(i-r)),s={},s[u]=.25*l,a={},a[u]=.8*l,this._render(t,o,this.glyph_props,p,h,s,a)},o}(o.View),s=function(n){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=a,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{direction:\"anticlock\",fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(o.Model),{Model:s,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/annulus\",[\"underscore\",\"rbush\",\"renderer/properties\",\"./glyph\"],function(t,n,r,i){var o,s,a,l;return s=function(r){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,r),i.prototype._fields=[\"x\",\"y\",\"inner_radius\",\"outer_radius\"],i.prototype._properties=[\"line\",\"fill\"],i.prototype._set_data=function(){var e;return this.max_radius=t.max(this.outer_radius),this.index=n(),this.index.load(function(){var t,n,r;for(r=[],e=t=0,n=this.x.length;n>=0?n>t:t>n;e=n>=0?++t:--t)r.push([this.x[e],this.y[e],this.x[e],this.y[e],{i:e}]);return r}.call(this))},i.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],this.inner_radius=this.distance_vector(\"x\",\"inner_radius\",\"edge\"),this.outer_radius=this.distance_vector(\"x\",\"outer_radius\",\"edge\")},i.prototype._render=function(t,e,n,r,i,o,s){var a,l,u,p;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.inner_radius),null==s&&(s=this.outer_radius),p=[],l=0,u=e.length;u>l;l++)a=e[l],isNaN(r[a]+i[a]+o[a]+s[a])||(t.beginPath(),t.arc(r[a],i[a],o[a],0,2*2*Math.PI,!1),t.moveTo(r[a]+s[a],i[a]),t.arc(r[a],i[a],s[a],0,2*2*Math.PI,!0),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,a),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,a),p.push(t.stroke())):p.push(void 0));return p},i.prototype._hit_point=function(e){var n,r,i,o,s,a,l,u,p,h,c,_,d,f,g,m,y,v,b,w,x,k,T,C,M,j,S,z,A,N,P,F,E,D,$,O,q,B;if(D=[e.vx,e.vy],f=D[0],y=D[1],w=this.plot_view.xmapper.map_from_target(f),T=this.plot_view.ymapper.map_from_target(y),\"screen\"===this.outer_radius_units?(g=f-this.max_radius,m=f+this.max_radius,$=this.plot_view.xmapper.v_map_from_target([g,m]),x=$[0],k=$[1],v=y-this.max_radius,b=y+this.max_radius,O=this.plot_view.ymapper.v_map_from_target([v,b]),C=O[0],M=O[1]):(x=w-this.max_radius,k=w+this.max_radius,C=T-this.max_radius,M=T+this.max_radius),n=function(){var t,e,n,r;for(n=this.index.search([x,C,k,M]),r=[],t=0,e=n.length;e>t;t++)a=n[t],r.push(a[4].i);return r}.call(this),r=[],\"screen\"===this.outer_radius_units)for(u=this.plot_view.view_state.vx_to_sx(f),c=this.plot_view.view_state.vy_to_sy(y),j=0,N=n.length;N>j;j++)s=n[j],l=Math.pow(this.outer_radius[s],2),i=Math.pow(this.sx[s]-u,2)+Math.pow(this.sy[s]-c,2),l>=i&&r.push([s,i]);else for(S=0,P=n.length;P>S;S++)s=n[S],l=Math.pow(this.outer_radius[s],2),p=this.plot_view.xmapper.map_to_target(w),h=this.plot_view.xmapper.map_to_target(this.x[s]),_=this.plot_view.ymapper.map_to_target(T),d=this.plot_view.ymapper.map_to_target(this.y[s]),i=Math.pow(p-h,2)+Math.pow(_-d,2),l>=i&&r.push([s,i]);if(o=[],\"screen\"===this.inner_radius_units)for(u=this.plot_view.view_state.vx_to_sx(f),c=this.plot_view.view_state.vy_to_sy(y),z=0,F=r.length;F>z;z++)q=r[z],s=q[0],i=q[1],l=Math.pow(this.inner_radius[s],2),i>=l&&o.push([s,i]);else for(A=0,E=r.length;E>A;A++)B=r[A],s=B[0],i=B[1],l=Math.pow(this.inner_radius[s],2),p=this.plot_view.xmapper.map_to_target(w),h=this.plot_view.xmapper.map_to_target(this.x[s]),_=this.plot_view.ymapper.map_to_target(T),d=this.plot_view.ymapper.map_to_target(this.y[s]),i>=l&&o.push([s,i]);return o=t.chain(o).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value()},i.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l,u,p,h,c;return u=null!=(c=this.get_reference_point())?c:0,o=[u],p={},p[u]=(e+n)/2,h={},h[u]=(r+i)/2,l=.5*Math.min(Math.abs(n-e),Math.abs(i-r)),s={},s[u]=.4*l,a={},a[u]=.8*l,this._render(t,o,this.glyph_props,p,h,s,a)},i}(i.View),o=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(i.Model),{Model:o,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/arc\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"x\",\"y\",\"radius\",\"start_angle\",\"end_angle\",\"direction:string\"],n.prototype._properties=[\"line\"],n.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],this.radius=this.distance_vector(\"x\",\"radius\",\"edge\")},n.prototype._render=function(t,e,n,r,i,o){var s,a,l,u;if(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.radius),n.line_properties.do_stroke){for(u=[],a=0,l=e.length;l>a;a++)s=e[a],isNaN(r[s]+i[s]+o[s]+this.start_angle[s]+this.end_angle[s]+this.direction[s])||(t.beginPath(),t.arc(r[s],i[s],o[s],this.start_angle[s],this.end_angle[s],this.direction[s]),n.line_properties.set_vectorize(t,s),u.push(t.stroke()));return u}},n.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l,u,p;return a=null!=(p=this.get_reference_point())?p:0,o=[a],l={},l[a]=(e+n)/2,u={},u[a]=(r+i)/2,s={},s[a]=.4*Math.min(Math.abs(n-e),Math.abs(i-r)),this._render(t,o,this.glyph_props,l,u,s)},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{direction:\"anticlock\",line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/marker\",[\"underscore\",\"rbush\",\"renderer/properties\",\"./glyph\"],function(t,n,r,i){var o,s,a,l;return s=function(r){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,r),i.prototype._fields=[\"x\",\"y\",\"size\"],i.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l,u,p;return s=null!=(p=this.get_reference_point())?p:0,o=[s],l={},l[s]=(e+n)/2,u={},u[s]=(r+i)/2,a={},a[s]=.8*Math.min(Math.abs(n-e),Math.abs(i-r)),this._render(t,o,this.glyph_props,l,u,a)},i.prototype._set_data=function(){var e;return this.max_size=t.max(this.size),this.index=n(),this.index.load(function(){var t,n,r;\n",
" for(r=[],e=t=0,n=this.x.length;n>=0?n>t:t>n;e=n>=0?++t:--t)r.push([this.x[e],this.y[e],this.x[e],this.y[e],{i:e}]);return r}.call(this))},i.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],t},i.prototype._mask_data=function(){var t,e,n,r,i,o,s,a,l,u,p,h,c;return t=this.plot_view.view_state.get(\"inner_range_horizontal\"),n=t.get(\"start\")-this.max_size,r=t.get(\"end\")+this.max_size,h=this.plot_view.xmapper.v_map_from_target([n,r]),a=h[0],l=h[1],e=this.plot_view.view_state.get(\"inner_range_vertical\"),i=e.get(\"start\")-this.max_size,o=e.get(\"end\")+this.max_size,c=this.plot_view.ymapper.v_map_from_target([i,o]),u=c[0],p=c[1],function(){var t,e,n,r;for(n=this.index.search([a,u,l,p]),r=[],t=0,e=n.length;e>t;t++)s=n[t],r.push(s[4].i);return r}.call(this)},i.prototype._hit_point=function(e){var n,r,i,o,s,a,l,u,p,h,c,_,d,f,g,m,y,v,b,w,x,k,T;for(x=[e.vx,e.vy],u=x[0],c=x[1],a=this.plot_view.view_state.vx_to_sx(u),l=this.plot_view.view_state.vy_to_sy(c),p=u-this.max_size,h=u+this.max_size,k=this.plot_view.xmapper.v_map_from_target([p,h]),g=k[0],m=k[1],_=c-this.max_size,d=c+this.max_size,T=this.plot_view.ymapper.v_map_from_target([_,d]),y=T[0],v=T[1],n=function(){var t,e,n,r;for(n=this.index.search([g,y,m,v]),r=[],t=0,e=n.length;e>t;t++)f=n[t],r.push(f[4].i);return r}.call(this),i=[],b=0,w=n.length;w>b;b++)o=n[b],s=this.size[o]/2,r=Math.abs(this.sx[o]-a)+Math.abs(this.sy[o]-l),Math.abs(this.sx[o]-a)<=s&&Math.abs(this.sy[o]-l)<=s&&i.push([o,r]);return i=t.chain(i).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value()},i.prototype._hit_rect=function(t){var e,n,r,i,o,s,a;return s=this.plot_view.xmapper.v_map_from_target([t.vx0,t.vx1]),n=s[0],r=s[1],a=this.plot_view.ymapper.v_map_from_target([t.vy0,t.vy1]),i=a[0],o=a[1],function(){var t,s,a,l;for(a=this.index.search([n,i,r,o]),l=[],t=0,s=a.length;s>t;t++)e=a[t],l.push(e[4].i);return l}.call(this)},i}(i.View),o=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(i.Model),{Model:o,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/asterisk\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,u,p,h;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),h=[],u=0,p=e.length;p>u;u++)s=e[u],isNaN(r[s]+i[s]+o[s])||(a=o[s]/2,l=.65*a,t.beginPath(),t.moveTo(r[s],i[s]+a),t.lineTo(r[s],i[s]-a),t.moveTo(r[s]-a,i[s]),t.lineTo(r[s]+a,i[s]),t.moveTo(r[s]-l,i[s]+l),t.lineTo(r[s]+l,i[s]-l),t.moveTo(r[s]-l,i[s]-l),t.lineTo(r[s]+l,i[s]+l),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),h.push(t.stroke())):h.push(void 0));return h},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/bezier\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"x0\",\"y0\",\"x1\",\"y1\",\"cx0\",\"cy0\",\"cx1\",\"cy1\"],n.prototype._properties=[\"line\"],n.prototype._map_data=function(){var t,e,n,r;return t=this.plot_view.map_to_screen(this.x0,this.glyph_props.x0.units,this.y0,this.glyph_props.y0.units),this.sx0=t[0],this.sy0=t[1],e=this.plot_view.map_to_screen(this.x1,this.glyph_props.x1.units,this.y1,this.glyph_props.y1.units),this.sx1=e[0],this.sy1=e[1],n=this.plot_view.map_to_screen(this.cx0,this.glyph_props.cx0.units,this.cy0,this.glyph_props.cy0.units),this.scx0=n[0],this.scy0=n[1],r=this.plot_view.map_to_screen(this.cx1,this.glyph_props.cx1.units,this.cy1,this.glyph_props.cy1.units),this.scx1=r[0],this.scy1=r[1],r},n.prototype._render=function(t,e,n){var r,i,o,s;if(n.line_properties.do_stroke){for(s=[],i=0,o=e.length;o>i;i++)r=e[i],isNaN(this.sx0[r]+this.sy0[r]+this.sx1[r]+this.sy1[r]+this.scx0[r]+this.scy0[r]+this.scx1[r]+this.scy1[r])||(t.beginPath(),t.moveTo(this.sx0[r],this.sy0[r]),t.bezierCurveTo(this.scx0[r],this.scy0[r],this.scx1[r],this.scy1[r],this.sx1[r],this.sy1[r]),n.line_properties.set_vectorize(t,r),s.push(t.stroke()));return s}},n.prototype.draw_legend=function(t,e,n,r,i){return this._generic_line_legend(t,e,n,r,i)},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/circle\",[\"underscore\",\"rbush\",\"renderer/properties\",\"./glyph\"],function(t,n,r,i){var o,s,a,l;return s=function(r){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,r),i.prototype._properties=[\"line\",\"fill\"],i.prototype.initialize=function(t){var e;return e=this.mget(\"glyphspec\"),null!=e.radius?this._fields=[\"x\",\"y\",\"radius\"]:null!=e.size&&(this._fields=[\"x\",\"y\",\"size\"]),i.__super__.initialize.call(this,t)},i.prototype._set_data=function(){var e;return this.max_radius=this.size?t.max(this.size)/2:t.max(this.radius),this.index=n(),this.index.load(function(){var t,n,r;for(r=[],e=t=0,n=this.x.length;n>=0?n>t:t>n;e=n>=0?++t:--t)r.push([this.x[e],this.y[e],this.x[e],this.y[e],{i:e}]);return r}.call(this))},i.prototype._map_data=function(){var t,e;return e=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=e[0],this.sy=e[1],this.size?(this.radius=function(){var e,n,r,i;for(r=this.distance_vector(\"x\",\"size\",\"edge\"),i=[],e=0,n=r.length;n>e;e++)t=r[e],i.push(t/2);return i}.call(this),this.radius_units=this.glyph_props.size.units):this.radius=this.distance_vector(\"x\",\"radius\",\"edge\")},i.prototype._mask_data=function(){var t,e,n,r,i,o,s,a,l,u,p,h,c,_,d;return t=this.plot_view.view_state.get(\"inner_range_horizontal\"),o=this.plot_view.view_state.get(\"inner_range_vertical\"),\"screen\"===this.radius_units?(e=t.get(\"start\")-this.max_radius,n=t.get(\"end\")-this.max_radius,h=this.plot_view.xmapper.v_map_from_target([e,n]),a=h[0],l=h[1],r=o.get(\"start\")-this.max_radius,i=o.get(\"end\")-this.max_radius,c=this.plot_view.ymapper.v_map_from_target([r,i]),u=c[0],p=c[1]):(e=t.get(\"start\"),n=t.get(\"end\"),_=this.plot_view.xmapper.v_map_from_target([e,n]),a=_[0],l=_[1],a-=this.max_radius,l+=this.max_radius,r=o.get(\"start\"),i=o.get(\"end\"),d=this.plot_view.ymapper.v_map_from_target([r,i]),u=d[0],p=d[1],u-=this.max_radius,p+=this.max_radius),function(){var t,e,n,r;for(n=this.index.search([a,u,l,p]),r=[],t=0,e=n.length;e>t;t++)s=n[t],r.push(s[4].i);return r}.call(this)},i.prototype._render=function(t,e,n,r,i,o){var s,a,l,u;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.radius),u=[],a=0,l=e.length;l>a;a++)s=e[a],isNaN(r[s]+i[s]+o[s])||(t.beginPath(),t.arc(r[s],i[s],o[s],0,2*Math.PI,!1),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),u.push(t.stroke())):u.push(void 0));return u},i.prototype._hit_point=function(e){var n,r,i,o,s,a,l,u,p,h,c,_,d,f,g,m,y,v,b,w,x,k,T,C,M,j,S,z,A,N,P;if(A=[e.vx,e.vy],d=A[0],m=A[1],b=this.plot_view.xmapper.map_from_target(d),k=this.plot_view.ymapper.map_from_target(m),\"screen\"===this.radius_units?(f=d-this.max_radius,g=d+this.max_radius,N=this.plot_view.xmapper.v_map_from_target([f,g]),w=N[0],x=N[1],y=m-this.max_radius,v=m+this.max_radius,P=this.plot_view.ymapper.v_map_from_target([y,v]),T=P[0],C=P[1]):(w=b-this.max_radius,x=b+this.max_radius,T=k-this.max_radius,C=k+this.max_radius),n=function(){var t,e,n,r;for(n=this.index.search([w,T,x,C]),r=[],t=0,e=n.length;e>t;t++)s=n[t],r.push(s[4].i);return r}.call(this),i=[],\"screen\"===this.radius_units)for(l=this.plot_view.view_state.vx_to_sx(d),h=this.plot_view.view_state.vy_to_sy(m),M=0,S=n.length;S>M;M++)o=n[M],a=Math.pow(this.radius[o],2),r=Math.pow(this.sx[o]-l,2)+Math.pow(this.sy[o]-h,2),a>=r&&i.push([o,r]);else for(j=0,z=n.length;z>j;j++)o=n[j],a=Math.pow(this.radius[o],2),u=this.plot_view.xmapper.map_to_target(b),p=this.plot_view.xmapper.map_to_target(this.x[o]),c=this.plot_view.ymapper.map_to_target(k),_=this.plot_view.ymapper.map_to_target(this.y[o]),r=Math.pow(u-p,2)+Math.pow(c-_,2),a>=r&&i.push([o,r]);return i=t.chain(i).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value()},i.prototype._hit_rect=function(t){var e,n,r,i,o,s,a;return s=this.plot_view.xmapper.v_map_from_target([t.vx0,t.vx1]),n=s[0],r=s[1],a=this.plot_view.ymapper.v_map_from_target([t.vy0,t.vy1]),i=a[0],o=a[1],function(){var t,s,a,l;for(a=this.index.search([n,i,r,o]),l=[],t=0,s=a.length;s>t;t++)e=a[t],l.push(e[4].i);return l}.call(this)},i.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l,u,p;return a=null!=(p=this.get_reference_point())?p:0,o=[a],l={},l[a]=(e+n)/2,u={},u[a]=(r+i)/2,s={},s[a]=.4*Math.min(Math.abs(n-e),Math.abs(i-r)),this._render(t,o,this.glyph_props,l,u,s)},i}(i.View),o=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{radius_units:\"data\",size_units:\"screen\",fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(i.Model),{Model:o,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/circle_x\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\",\"fill\"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,u,p;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),p=[],l=0,u=e.length;u>l;l++)s=e[l],isNaN(r[s]+i[s]+o[s])||(t.beginPath(),a=o[s]/2,t.arc(r[s],i[s],a,0,2*Math.PI,!1),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),t.moveTo(r[s]-a,i[s]+a),t.lineTo(r[s]+a,i[s]-a),t.moveTo(r[s]-a,i[s]-a),t.lineTo(r[s]+a,i[s]+a),p.push(t.stroke())):p.push(void 0));return p},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/circle_cross\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\",\"fill\"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,u,p;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),p=[],l=0,u=e.length;u>l;l++)s=e[l],isNaN(r[s]+i[s]+o[s])||(t.beginPath(),a=o[s]/2,t.arc(r[s],i[s],a,0,2*Math.PI,!1),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),t.moveTo(r[s],i[s]+a),t.lineTo(r[s],i[s]-a),t.moveTo(r[s]-a,i[s]),t.lineTo(r[s]+a,i[s]),p.push(t.stroke())):p.push(void 0));return p},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/diamond\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\",\"fill\"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,u,p;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),p=[],l=0,u=e.length;u>l;l++)s=e[l],isNaN(r[s]+i[s]+o[s])||(a=o[s]/2,t.beginPath(),t.moveTo(r[s],i[s]+a),t.lineTo(r[s]+a,i[s]),t.lineTo(r[s],i[s]-a),t.lineTo(r[s]-a,i[s]),t.closePath(),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),p.push(t.stroke())):p.push(void 0));return p},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/diamond_cross\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\",\"fill\"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,u,p;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),p=[],l=0,u=e.length;u>l;l++)s=e[l],isNaN(r[s]+i[s]+o[s])||(a=o[s]/2,t.beginPath(),t.moveTo(r[s],i[s]+a),t.lineTo(r[s]+a,i[s]),t.lineTo(r[s],i[s]-a),t.lineTo(r[s]-a,i[s]),t.closePath(),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),t.moveTo(r[s],i[s]+a),t.lineTo(r[s],i[s]-a),t.moveTo(r[s]-a,i[s]),t.lineTo(r[s]+a,i[s]),p.push(t.stroke())):p.push(void 0));return p},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"mapper/color/linear_color_mapper\",[\"common/has_properties\"],function(t){var n,r;return n=function(t){function n(){return r=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),this.low=e.low,this.high=e.high,this.palette=this._build_palette(e.palette),this.little_endian=this._is_little_endian()},n.prototype.v_map_screen=function(t){var e,n,r,i,o,s,a,l,u,p,h,c,_,d,f,g,m,y;for(n=new ArrayBuffer(4*t.length),r=new Uint32Array(n),l=-1/0,u=1/0,c=0,s=_=0,g=t.length;g>=0?g>_:_>g;s=g>=0?++_:--_)c=t[s],c>l&&(l=c),u>c&&(u=c);if(a=null!=this.low?this.low:u,o=null!=this.high?this.high:l,e=this.palette.length-1,h=e/(o-a),p=-h*a,this.little_endian)for(s=d=0,m=t.length;m>=0?m>d:d>m;s=m>=0?++d:--d)i=t[s],i>o&&(i=o),a>i&&(i=a),c=this.palette[Math.floor(i*h+p)],r[s]=255<<24|(16711680&c)>>16|65280&c|(255&c)<<16;else for(s=f=0,y=t.length;y>=0?y>f:f>y;s=y>=0?++f:--f)i=t[s],i>o&&(i=o),a>i&&(i=a),c=this.palette[Math.floor(i*h+p)],r[s]=255|c<<8;return n},n.prototype._is_little_endian=function(){var t,e,n,r;return t=new ArrayBuffer(4),n=new Uint8ClampedArray(t),e=new Uint32Array(t),e[1]=168496141,r=!0,10===n[4]&&11===n[5]&&12===n[6]&&13===n[7]&&(r=!1),r},n.prototype._build_palette=function(t){var e,n,r,i;for(n=new Uint32Array(t.length+1),e=r=0,i=t.length;i>=0?i>r:r>i;e=i>=0?++r:--r)n[e]=t[e];return n[n.length-1]=t[t.length-1],n},n}(t)})}.call(this),function(){n(\"palettes/colorbrewer\",[],function(){var t;return t={YlGn:{3:[16252089,11394446,3253076],4:[16777164,12773017,7915129,2327619],5:[16777164,12773017,7915129,3253076,26679],6:[16777164,14282915,11394446,7915129,3253076,26679],7:[16777164,14282915,11394446,7915129,4303709,2327619,23090],8:[16777189,16252089,14282915,11394446,7915129,4303709,2327619,23090],9:[16777189,16252089,14282915,11394446,7915129,4303709,2327619,26679,17705]},YlGnBu:{3:[15595697,8375739,2916280],4:[16777164,10607284,4306628,2252456],5:[16777164,10607284,4306628,2916280,2438292],6:[16777164,13101492,8375739,4306628,2916280,2438292],7:[16777164,13101492,8375739,4306628,1937856,2252456,797828],8:[16777177,15595697,13101492,8375739,4306628,1937856,2252456,797828],9:[16777177,15595697,13101492,8375739,4306628,1937856,2252456,2438292,531800]},GnBu:{3:[14742491,11066805,4432586],4:[15792616,12248252,8113348,2854078],5:[15792616,12248252,8113348,4432586,551084],6:[15792616,13429701,11066805,8113348,4432586,551084],7:[15792616,13429701,11066805,8113348,5157843,2854078,546974],8:[16252144,14742491,13429701,11066805,8113348,5157843,2854078,546974],9:[16252144,14742491,13429701,11066805,8113348,5157843,2854078,551084,540801]},BuGn:{3:[15070713,10082505,2925151],4:[15595771,11723490,6734500,2329413],5:[15595771,11723490,6734500,2925151,27948],6:[15595771,13429990,10082505,6734500,2925151,27948],7:[15595771,13429990,10082505,6734500,4304502,2329413,22564],8:[16252157,15070713,13429990,10082505,6734500,4304502,2329413,22564],9:[16252157,15070713,13429990,10082505,6734500,4304502,2329413,27948,17435]},PuBuGn:{3:[15524592,10927579,1872025],4:[16183287,12437985,6793679,164234],5:[16183287,12437985,6793679,1872025,93273],6:[16183287,13685222,10927579,6793679,1872025,93273],7:[16183287,13685222,10927579,6793679,3576e3,164234,91216],8:[16775163,15524592,13685222,10927579,6793679,3576e3,164234,91216],9:[16775163,15524592,13685222,10927579,6793679,3576e3,164234,93273,83510]},PuBu:{3:[15525874,10927579,2854078],4:[15855350,12437985,7645647,356528],5:[15855350,12437985,7645647,2854078,285325],6:[15855350,13685222,10927579,7645647,2854078,285325],7:[15855350,13685222,10927579,7645647,3576e3,356528,216699],8:[16775163,15525874,13685222,10927579,7645647,3576e3,356528,216699],9:[16775163,15525874,13685222,10927579,7645647,3576e3,356528,285325,145496]},BuPu:{3:[14740724,10403034,8935079],4:[15595771,11783651,9213638,8929693],5:[15595771,11783651,9213638,8935079,8458108],6:[15595771,12571622,10403034,9213638,8935079,8458108],7:[15595771,12571622,10403034,9213638,9202609,8929693,7209323],8:[16252157,14740724,12571622,10403034,9213638,9202609,8929693,7209323],9:[16252157,14740724,12571622,10403034,9213638,9202609,8929693,8458108,5046347]},RdPu:{3:[16638173,16424885,12917642],4:[16706530,16495801,16214177,11403646],5:[16706530,16495801,16214177,12917642,7995767],6:[16706530,16565696,16424885,16214177,12917642,7995767],7:[16706530,16565696,16424885,16214177,14496919,11403646,7995767],8:[16775155,16638173,16565696,16424885,16214177,14496919,11403646,7995767],9:[16775155,16638173,16565696,16424885,16214177,14496919,11403646,7995767,4784234]},PuRd:{3:[15196655,13210823,14490743],4:[15855350,14136792,14640560,13505110],5:[15855350,14136792,14640560,14490743,9961539],6:[15855350,13941210,13210823,14640560,14490743,9961539],7:[15855350,13941210,13210823,14640560,15149450,13505110,9502783],8:[16250105,15196655,13941210,13210823,14640560,15149450,13505110,9502783],9:[16250105,15196655,13941210,13210823,14640560,15149450,13505110,9961539,6750239]},OrRd:{3:[16705736,16628612,14895667],4:[16707801,16632970,16551257,14102559],5:[16707801,16632970,16551257,14895667,11730944],6:[16707801,16635038,16628612,16551257,14895667,11730944],7:[16707801,16635038,16628612,16551257,15689032,14102559,10027008],8:[16775148,16705736,16635038,16628612,16551257,15689032,14102559,10027008],9:[16775148,16705736,16635038,16628612,16551257,15689032,14102559,11730944,8323072]},YlOrRd:{3:[16772512,16691788,15743776],4:[16777138,16698460,16616764,14883356],5:[16777138,16698460,16616764,15743776,12386342],6:[16777138,16701814,16691788,16616764,15743776,12386342],7:[16777138,16701814,16691788,16616764,16535082,14883356,11599910],8:[16777164,16772512,16701814,16691788,16616764,16535082,14883356,11599910],9:[16777164,16772512,16701814,16691788,16616764,16535082,14883356,12386342,8388646]},YlOrBr:{3:[16775100,16696399,14245646],4:[16777172,16701838,16685353,13388802],5:[16777172,16701838,16685353,14245646,10040324],6:[16777172,16704401,16696399,16685353,14245646,10040324],7:[16777172,16704401,16696399,16685353,15495188,13388802,9186564],8:[16777189,16775100,16704401,16696399,16685353,15495188,13388802,9186564],9:[16777189,16775100,16704401,16696399,16685353,15495188,13388802,10040324,6694150]},Purples:{3:[15724021,12369372,7695281],4:[15921399,13355490,10394312,6967715],5:[15921399,13355490,10394312,7695281,5515151],6:[15921399,14342891,12369372,10394312,7695281,5515151],7:[15921399,14342891,12369372,10394312,8420794,6967715,4854918],8:[16579581,15724021,14342891,12369372,10394312,8420794,6967715,4854918],9:[16579581,15724021,14342891,12369372,10394312,8420794,6967715,5515151,4128893]},Blues:{3:[14609399,10406625,3244733],4:[15725567,12441575,7057110,2191797],5:[15725567,12441575,7057110,3244733,545180],6:[15725567,13032431,10406625,7057110,3244733,545180],7:[15725567,13032431,10406625,7057110,4362950,2191797,542100],8:[16251903,14609399,13032431,10406625,7057110,4362950,2191797,542100],9:[16251903,14609399,13032431,10406625,7057110,4362950,2191797,545180,536683]},Greens:{3:[15070688,10607003,3253076],4:[15595753,12248243,7652470,2329413],5:[15595753,12248243,7652470,3253076,27948],6:[15595753,13101504,10607003,7652470,3253076,27948],7:[15595753,13101504,10607003,7652470,4303709,2329413,23090],8:[16252149,15070688,13101504,10607003,7652470,4303709,2329413,23090],9:[16252149,15070688,13101504,10607003,7652470,4303709,2329413,27948,17435]},Oranges:{3:[16705230,16625259,15095053],4:[16707038,16629381,16616764,14239489],5:[16707038,16629381,16616764,15095053,10892803],6:[16707038,16634018,16625259,16616764,15095053,10892803],7:[16707038,16634018,16625259,16616764,15821075,14239745,9186564],8:[16774635,16705230,16634018,16625259,16616764,15821075,14239745,9186564],9:[16774635,16705230,16634018,16625259,16616764,15821075,14239745,10892803,8333060]},Reds:{3:[16703698,16552562,14560550],4:[16704985,16559761,16476746,13309981],5:[16704985,16559761,16476746,14560550,10817301],6:[16704985,16563105,16552562,16476746,14560550,10817301],7:[16704985,16563105,16552562,16476746,15678252,13309981,10027021],8:[16774640,16703698,16563105,16552562,16476746,15678252,13309981,10027021],9:[16774640,16703698,16563105,16552562,16476746,15678252,13309981,10817301,6750221]},Greys:{3:[15790320,12434877,6513507],4:[16250871,13421772,9868950,5395026],5:[16250871,13421772,9868950,6513507,2434341],6:[16250871,14277081,12434877,9868950,6513507,2434341],7:[16250871,14277081,12434877,9868950,7566195,5395026,2434341],8:[16777215,15790320,14277081,12434877,9868950,7566195,5395026,2434341],9:[16777215,15790320,14277081,12434877,9868950,7566195,5395026,2434341,0]},PuOr:{3:[15835968,16250871,10063555],4:[15098113,16627811,11709394,6175897],5:[15098113,16627811,16250871,11709394,6175897],6:[11753478,15835968,16703670,14211819,10063555,5515144],7:[11753478,15835968,16703670,16250871,14211819,10063555,5515144],8:[11753478,14713364,16627811,16703670,14211819,11709394,8418220,5515144],9:[11753478,14713364,16627811,16703670,16250871,14211819,11709394,8418220,5515144],10:[8338184,11753478,14713364,16627811,16703670,14211819,11709394,8418220,5515144,2949195],11:[8338184,11753478,14713364,16627811,16703670,16250871,14211819,11709394,8418220,5515144,2949195]},BrBG:{3:[14201701,16119285,5944492],4:[10903834,14664317,8441281,99697],5:[10903834,14664317,16119285,8441281,99697],6:[9195786,14201701,16181443,13101797,5944492,91742],7:[9195786,14201701,16181443,16119285,13101797,5944492,91742],8:[9195786,12550445,14664317,16181443,13101797,8441281,3512207,91742],9:[9195786,12550445,14664317,16181443,16119285,13101797,8441281,3512207,91742],10:[5517317,9195786,12550445,14664317,16181443,13101797,8441281,3512207,91742,15408],11:[5517317,9195786,12550445,14664317,16181443,16119285,13101797,8441281,3512207,91742,15408]},PRGn:{3:[11505091,16250871,8372091],4:[8073876,12756431,10935200,34871],5:[8073876,12756431,16250871,10935200,34871],6:[7744131,11505091,15193320,14282963,8372091,1800247],7:[7744131,11505091,15193320,16250871,14282963,8372091,1800247],8:[7744131,10055851,12756431,15193320,14282963,10935200,5942881,1800247],9:[7744131,10055851,12756431,15193320,16250871,14282963,10935200,5942881,1800247],10:[4194379,7744131,10055851,12756431,15193320,14282963,10935200,5942881,1800247,17435],11:[4194379,7744131,10055851,12756431,15193320,16250871,14282963,10935200,5942881,1800247,17435]},PiYG:{3:[15311817,16250871,10606442],4:[13638795,15840986,12116358,5090342],5:[13638795,15840986,16250871,12116358,5090342],6:[12917629,15311817,16638191,15136208,10606442,5083681],7:[12917629,15311817,16638191,16250871,15136208,10606442,5083681],8:[12917629,14579630,15840986,16638191,15136208,12116358,8371265,5083681],9:[12917629,14579630,15840986,16638191,16250871,15136208,12116358,8371265,5083681],10:[9306450,12917629,14579630,15840986,16638191,15136208,12116358,8371265,5083681,2581529],11:[9306450,12917629,14579630,15840986,16638191,16250871,15136208,12116358,8371265,5083681,2581529]},RdBu:{3:[15698530,16250871,6793679],4:[13238304,16033154,9618910,356784],5:[13238304,16033154,16250871,9618910,356784],6:[11671595,15698530,16636871,13755888,6793679,2188972],7:[11671595,15698530,16636871,16250871,13755888,6793679,2188972],8:[11671595,14049357,16033154,16636871,13755888,9618910,4428739,2188972],9:[11671595,14049357,16033154,16636871,16250871,13755888,9618910,4428739,2188972],10:[6750239,11671595,14049357,16033154,16636871,13755888,9618910,4428739,2188972,340065],11:[6750239,11671595,14049357,16033154,16636871,16250871,13755888,9618910,4428739,2188972,340065]},RdGy:{3:[15698530,16777215,10066329],4:[13238304,16033154,12237498,4210752],5:[13238304,16033154,16777215,12237498,4210752],6:[11671595,15698530,16636871,14737632,10066329,5066061],7:[11671595,15698530,16636871,16777215,14737632,10066329,5066061],8:[11671595,14049357,16033154,16636871,14737632,12237498,8882055,5066061],9:[11671595,14049357,16033154,16636871,16777215,14737632,12237498,8882055,5066061],10:[6750239,11671595,14049357,16033154,16636871,14737632,12237498,8882055,5066061,1710618],11:[6750239,11671595,14049357,16033154,16636871,16777215,14737632,12237498,8882055,5066061,1710618]},RdYlBu:{3:[16551257,16777151,9551835],4:[14096668,16625249,11262441,2915254],5:[14096668,16625249,16777151,11262441,2915254],6:[14102567,16551257,16703632,14742520,9551835,4552116],7:[14102567,16551257,16703632,16777151,14742520,9551835,4552116],8:[14102567,16018755,16625249,16703632,14742520,11262441,7646673,4552116],9:[14102567,16018755,16625249,16703632,16777151,14742520,11262441,7646673,4552116],10:[10813478,14102567,16018755,16625249,16703632,14742520,11262441,7646673,4552116,3225237],11:[10813478,14102567,16018755,16625249,16703632,16777151,14742520,11262441,7646673,4552116,3225237]},Spectral:{3:[16551257,16777151,10081684],4:[14096668,16625249,11263396,2851770],5:[14096668,16625249,16777151,11263396,2851770],6:[13975119,16551257,16703627,15136152,10081684,3311805],7:[13975119,16551257,16703627,16777151,15136152,10081684,3311805],8:[13975119,16018755,16625249,16703627,15136152,11263396,6734501,3311805],9:[13975119,16018755,16625249,16703627,16777151,15136152,11263396,6734501,3311805],10:[10355010,13975119,16018755,16625249,16703627,15136152,11263396,6734501,3311805,6180770],11:[10355010,13975119,16018755,16625249,16703627,16777151,15136152,11263396,6734501,3311805,6180770]},RdYlGn:{3:[16551257,16777151,9555808],4:[14096668,16625249,10934634,1742401],5:[14096668,16625249,16777151,10934634,1742401],6:[14102567,16551257,16703627,14282635,9555808,1742928],7:[14102567,16551257,16703627,16777151,14282635,9555808,1742928],8:[14102567,16018755,16625249,16703627,14282635,10934634,6733155,1742928],9:[14102567,16018755,16625249,16703627,16777151,14282635,10934634,6733155,1742928],10:[10813478,14102567,16018755,16625249,16703627,14282635,10934634,6733155,1742928,26679],11:[10813478,14102567,16018755,16625249,16703627,16777151,14282635,10934634,6733155,1742928,26679]}}})}.call(this),function(){n(\"palettes/palettes\",[\"./colorbrewer\"],function(t){var e,n,r,i,o;e={};for(r in t){n=t[r];for(i in n)o=n[i],e[\"\"+r+\"-\"+i]=o.reverse()}return{all_palettes:e}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/image\",[\"underscore\",\"renderer/properties\",\"mapper/color/linear_color_mapper\",\"palettes/palettes\",\"./glyph\"],function(t,n,r,i,o){var s,a,l,u,p;return l=i.all_palettes,a=function(n){function i(){return u=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype._properties=[],i.prototype.initialize=function(t){var e;return e=this.mget(\"glyphspec\"),this._fields=null!=e.rows?[\"image:array\",\"rows\",\"cols\",\"x\",\"y\",\"dw\",\"dh\",\"palette:string\"]:[\"image:array\",\"x\",\"y\",\"dw\",\"dh\",\"palette:string\"],i.__super__.initialize.call(this,t)},i.prototype._set_data=function(e){var n,i,o,s,a,u,p,h,c,_,d,f,g;for(this.data=e,u=c=0,d=this.y.length;d>=0?d>c:c>d;u=d>=0?++c:--c)this.y[u]+=this.dh[u];for((null==this.image_data||this.image_data.length!==this.image.length)&&(this.image_data=new Array(this.image.length)),(null==this.width||this.width.length!==this.image.length)&&(this.width=new Array(this.image.length)),(null==this.height||this.height.length!==this.image.length)&&(this.height=new Array(this.image.length)),g=[],u=_=0,f=this.image.length;f>=0?f>_:_>f;u=f>=0?++_:--_)null!=this.rows?(this.height[u]=this.rows[u],this.width[u]=this.cols[u]):(this.height[u]=this.image[u].length,this.width[u]=this.image[u][0].length),o=document.createElement(\"canvas\"),o.width=this.width[u],o.height=this.height[u],a=o.getContext(\"2d\"),p=a.getImageData(0,0,this.width[u],this.height[u]),s=new r({},{palette:l[this.palette[u]]}),h=null!=this.rows?this.image[u]:t.flatten(this.image[u]),n=s.v_map_screen(h),i=new Uint8ClampedArray(n),p.data.set(i),a.putImageData(p,0,0),g.push(this.image_data[u]=o);\n",
" return g},i.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],this.sw=this.distance_vector(\"x\",\"dw\",\"edge\"),this.sh=this.distance_vector(\"y\",\"dh\",\"edge\")},i.prototype._render=function(t,e){var n,r,i,o,s;for(r=t.getImageSmoothingEnabled(),t.setImageSmoothingEnabled(!1),o=0,s=e.length;s>o;o++)n=e[o],isNaN(this.sx[n]+this.sy[n]+this.sw[n]+this.sh[n])||(i=this.sy[n]+this.sh[n]/2,t.translate(0,i),t.scale(1,-1),t.translate(0,-i),t.drawImage(this.image_data[n],0|this.sx[n],0|this.sy[n],this.sw[n],this.sh[n]),t.translate(0,i),t.scale(1,-1),t.translate(0,-i));return t.setImageSmoothingEnabled(r)},i}(o.View),s=function(n){function r(){return p=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=a,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{level:\"underlay\"})},r}(o.Model),{Model:s,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/image_rgba\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,r){var i,o,s,a,l;return s=n.glyph_properties,o=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype._properties=[],r.prototype.initialize=function(t){var e;return e=this.mget(\"glyphspec\"),this._fields=null!=e.rows?[\"image:array\",\"rows\",\"cols\",\"x\",\"y\",\"dw\",\"dh\"]:[\"image:array\",\"x\",\"y\",\"dw\",\"dh\"],r.__super__.initialize.call(this,t)},r.prototype._set_data=function(){var e,n,r,i,o,s,a,l,u,p,h,c,_,d,f,g;for(a=p=0,_=this.y.length;_>=0?_>p:p>_;a=_>=0?++p:--p)this.y[a]+=this.dh[a];for((null==this.image_data||this.image_data.length!==this.image.length)&&(this.image_data=new Array(this.image.length)),(null==this.width||this.width.length!==this.image.length)&&(this.width=new Array(this.image.length)),(null==this.height||this.height.length!==this.image.length)&&(this.height=new Array(this.image.length)),g=[],a=h=0,d=this.image.length;d>=0?d>h:h>d;a=d>=0?++h:--h){if(null!=this.rows?(this.height[a]=this.rows[a],this.width[a]=this.cols[a]):(this.height[a]=this.image[a].length,this.width[a]=this.image[a][0].length),r=document.createElement(\"canvas\"),r.width=this.width[a],r.height=this.height[a],o=r.getContext(\"2d\"),l=o.getImageData(0,0,this.width[a],this.height[a]),null!=this.rows)l.data.set(new Uint8ClampedArray(this.image[a]));else{for(s=t.flatten(this.image[a]),e=new ArrayBuffer(4*s.length),i=new Uint32Array(e),u=c=0,f=s.length;f>=0?f>c:c>f;u=f>=0?++c:--c)i[u]=s[u];n=new Uint8ClampedArray(e),l.data.set(n)}o.putImageData(l,0,0),g.push(this.image_data[a]=r)}return g},r.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],this.sw=this.distance_vector(\"x\",\"dw\",\"edge\"),this.sh=this.distance_vector(\"y\",\"dh\",\"edge\")},r.prototype._render=function(t,e){var n,r,i,o,s;for(r=t.getImageSmoothingEnabled(),t.setImageSmoothingEnabled(!1),o=0,s=e.length;s>o;o++)n=e[o],isNaN(this.sx[n]+this.sy[n]+this.sw[n]+this.sh[n])||(i=this.sy[n]+this.sh[n]/2,t.translate(0,i),t.scale(1,-1),t.translate(0,-i),t.drawImage(this.image_data[n],0|this.sx[n],0|this.sy[n],this.sw[n],this.sh[n]),t.translate(0,i),t.scale(1,-1),t.translate(0,-i));return t.setImageSmoothingEnabled(r)},r}(r.View),i=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{level:\"underlay\"})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/image_uri\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,r){var i,o,s,a,l;return s=n.glyph_properties,o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"url:string\",\"x\",\"y\",\"angle\"],n.prototype._properties=[],n.prototype._set_data=function(t){var e;return this.data=t,this.image=function(){var t,n,r,i;for(r=this.url,i=[],t=0,n=r.length;n>t;t++)e=r[t],i.push(null);return i}.call(this),this.need_load=function(){var t,n,r,i;for(r=this.url,i=[],t=0,n=r.length;n>t;t++)e=r[t],i.push(!0);return i}.call(this),this.loaded=function(){var t,n,r,i;for(r=this.url,i=[],t=0,n=r.length;n>t;t++)e=r[t],i.push(!1);return i}.call(this)},n.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],t},n.prototype._render=function(t,e){var n,r,i,o,s,a=this;for(s=[],i=0,o=e.length;o>i;i++)n=e[i],isNaN(this.sx[n]+this.sy[n]+this.angle[n])||(this.need_load[n]?(r=new Image,r.onload=function(e,n){return function(){return a.loaded[n]=!0,a.image[n]=e,t.save(),t.beginPath(),t.rect(vs.get(\"border_left\")+1,vs.get(\"border_top\")+1,vs.get(\"inner_width\")-2,vs.get(\"inner_height\")-2),t.clip(),a._render_image(t,vs,n,e),t.restore()}}(r,n),r.src=this.url[n],s.push(this.need_load[n]=!1)):this.loaded[n]?s.push(this._render_image(t,vs,n,this.image[n])):s.push(void 0));return s},n.prototype._render_image=function(t,e,n,r){return this.angle[n]?(t.translate(this.sx[n],this.sy[n]),t.rotate(this.angle[n]),t.drawImage(r,0,0),t.rotate(-this.angle[n]),t.translate(-this.sx[n],-this.sy[n])):t.drawImage(r,this.sx[n],this.sy[n])},n}(r.View),i=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{level:\"underlay\"})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/inverted_triangle\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"x\",\"y\",\"size\"],n.prototype._properties=[\"line\",\"fill\"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,u,p,h,c;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),c=[],p=0,h=e.length;h>p;p++)l=e[p],isNaN(r[l]+i[l]+o[l])||(s=o[l]*Math.sqrt(3)/6,u=o[l]/2,a=o[l]*Math.sqrt(3)/2,t.beginPath(),t.moveTo(r[l]-u,i[l]-s),t.lineTo(r[l]+u,i[l]-s),t.lineTo(r[l],i[l]-s+a),t.closePath(),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,l),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,l),c.push(t.stroke())):c.push(void 0));return c},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/line\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"x\",\"y\"],n.prototype._properties=[\"line\"],n.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],t},n.prototype._render=function(t,e,n){var r,i,o,s;for(r=!1,n.line_properties.set(t,n),o=0,s=e.length;s>o;o++)i=e[o],isNaN(this.sx[i]+this.sy[i])&&r?(t.stroke(),t.beginPath(),r=!1):r?t.lineTo(this.sx[i],this.sy[i]):(t.beginPath(),t.moveTo(this.sx[i],this.sy[i]),r=!0);return r?t.stroke():void 0},n.prototype.draw_legend=function(t,e,n,r,i){return this._generic_line_legend(t,e,n,r,i)},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/multi_line\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"xs\",\"ys\"],n.prototype._properties=[\"line\"],n.prototype._map_data=function(){return null},n.prototype._render=function(t,e,n){var r,i,o,s,a,l,u,p,h,c,_,d;for(d=[],u=0,h=e.length;h>u;u++){for(r=e[u],a=this.xs[r],l=this.ys[r],c=this.plot_view.map_to_screen(a,this.glyph_props.xs.units,l,this.glyph_props.ys.units),o=c[0],s=c[1],n.line_properties.set_vectorize(t,r),i=p=0,_=o.length;_>=0?_>p:p>_;i=_>=0?++p:--p)0!==i?isNaN(o[i])||isNaN(s[i])?(t.stroke(),t.beginPath()):t.lineTo(o[i],s[i]):(t.beginPath(),t.moveTo(o[i],s[i]));d.push(t.stroke())}return d},n.prototype.draw_legend=function(t,e,n,r,i){return this._generic_line_legend(t,e,n,r,i)},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/oval\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"x\",\"y\",\"width\",\"height\",\"angle\"],n.prototype._properties=[\"line\",\"fill\"],n.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],this.sw=this.distance_vector(\"x\",\"width\",\"center\"),this.sh=this.distance_vector(\"y\",\"height\",\"center\")},n.prototype._render=function(t,e,n,r,i,o,s){var a,l,u,p;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.sw),null==s&&(s=this.sh),p=[],l=0,u=e.length;u>l;l++)a=e[l],isNaN(r[a]+i[a]+o[a]+s[a]+this.angle[a])||(t.translate(r[a],i[a]),t.rotate(this.angle[a]),t.beginPath(),t.moveTo(0,-s[a]/2),t.bezierCurveTo(o[a]/2,-s[a]/2,o[a]/2,s[a]/2,0,s[a]/2),t.bezierCurveTo(-o[a]/2,s[a]/2,-o[a]/2,-s[a]/2,0,-s[a]/2),t.closePath(),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,a),t.fill()),n.line_properties.do_stroke&&(n.line_properties.set_vectorize(t,a),t.stroke()),t.rotate(-this.angle[a]),p.push(t.translate(-r[a],-i[a])));return p},n.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l,u,p,h,c,_;return a=null!=(_=this.get_reference_point())?_:0,s=[a],h={},h[a]=(e+n)/2,c={},c[a]=(r+i)/2,l=this.sw[a]/this.sh[a],o=.8*Math.min(Math.abs(n-e),Math.abs(i-r)),p={},u={},l>1?(p[a]=o,u[a]=o/l):(p[a]=o*l,u[a]=o),this._render(t,s,this.glyph_props,h,c,p,u)},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0,angle:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/patch\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"x\",\"y\"],n.prototype._properties=[\"line\",\"fill\"],n.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],t},n.prototype._render=function(t,e,n){var r,i,o,s,a;if(n.fill_properties.do_fill){for(n.fill_properties.set(t,n),i=0,s=e.length;s>i;i++)r=e[i],0!==r?isNaN(this.sx[r]+this.sy[r])?(t.closePath(),t.fill(),t.beginPath()):t.lineTo(this.sx[r],this.sy[r]):(t.beginPath(),t.moveTo(this.sx[r],this.sy[r]));t.closePath(),t.fill()}if(n.line_properties.do_stroke){for(n.line_properties.set(t,n),o=0,a=e.length;a>o;o++)r=e[o],0!==r?isNaN(this.sx[r]+this.sy[r])?(t.closePath(),t.stroke(),t.beginPath()):t.lineTo(this.sx[r],this.sy[r]):(t.beginPath(),t.moveTo(this.sx[r],this.sy[r]));return t.closePath(),t.stroke()}},n.prototype.draw_legend=function(t,e,n,r,i){return this._generic_area_legend(t,e,n,r,i)},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/patches\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"xs\",\"ys\"],n.prototype._properties=[\"line\",\"fill\"],n.prototype._map_data=function(){return null},n.prototype._render=function(t,e,n){var r,i,o,s,a,l,u,p,h,c,_,d;for(t=this.plot_view.ctx,d=[],a=0,p=e.length;p>a;a++){if(r=e[a],h=this.plot_view.map_to_screen(this.xs[r],n.xs.units,this.ys[r],n.ys.units),o=h[0],s=h[1],n.fill_properties.do_fill){for(n.fill_properties.set_vectorize(t,r),i=l=0,c=o.length;c>=0?c>l:l>c;i=c>=0?++l:--l)0!==i?isNaN(o[i]+s[i])?(t.closePath(),t.fill(),t.beginPath()):t.lineTo(o[i],s[i]):(t.beginPath(),t.moveTo(o[i],s[i]));t.closePath(),t.fill()}if(n.line_properties.do_stroke){for(n.line_properties.set_vectorize(t,r),i=u=0,_=o.length;_>=0?_>u:u>_;i=_>=0?++u:--u)0!==i?isNaN(o[i]+s[i])?(t.closePath(),t.stroke(),t.beginPath()):t.lineTo(o[i],s[i]):(t.beginPath(),t.moveTo(o[i],s[i]));t.closePath(),d.push(t.stroke())}else d.push(void 0)}return d},n.prototype.draw_legend=function(t,e,n,r,i){return this._generic_area_legend(t,e,n,r,i)},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/cross\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,u,p;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),p=[],l=0,u=e.length;u>l;l++)s=e[l],isNaN(r[s]+i[s]+o[s])||(a=o[s]/2,t.beginPath(),t.moveTo(r[s],i[s]+a),t.lineTo(r[s],i[s]-a),t.moveTo(r[s]-a,i[s]),t.lineTo(r[s]+a,i[s]),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),p.push(t.stroke())):p.push(void 0));return p},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/quad\",[\"underscore\",\"rbush\",\"renderer/properties\",\"./glyph\"],function(t,n,r,i){var o,s,a,l;return s=function(t){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype._fields=[\"right\",\"left\",\"bottom\",\"top\"],r.prototype._properties=[\"line\",\"fill\"],r.prototype._set_data=function(){var t;return this.index=n(),this.index.load(function(){var e,n,r;for(r=[],t=e=0,n=this.left.length;n>=0?n>e:e>n;t=n>=0?++e:--e)r.push([this.left[t],this.bottom[t],this.right[t],this.top[t],{i:t}]);return r}.call(this))},r.prototype._map_data=function(){var t,e;return t=this.plot_view.map_to_screen(this.left,this.glyph_props.left.units,this.top,this.glyph_props.top.units),this.sx0=t[0],this.sy0=t[1],e=this.plot_view.map_to_screen(this.right,this.glyph_props.right.units,this.bottom,this.glyph_props.bottom.units),this.sx1=e[0],this.sy1=e[1],e},r.prototype._mask_data=function(){var t,e,n,r,i,o,s,a,l,u;return e=this.plot_view.view_state.get(\"outer_width\"),t=this.plot_view.view_state.get(\"outer_height\"),l=this.plot_view.xmapper.v_map_from_target([0,e]),i=l[0],o=l[1],n=this.plot_view.view_state.get(\"inner_range_vertical\"),u=this.plot_view.ymapper.v_map_from_target([0,e]),s=u[0],a=u[1],function(){var t,e,n,l;for(n=this.index.search([i,s,o,a]),l=[],t=0,e=n.length;e>t;t++)r=n[t],l.push(r[4].i);return l}.call(this)},r.prototype._render=function(t,e,n,r,i,o,s){var a,l,u,p;for(null==r&&(r=this.sx0),null==i&&(i=this.sx1),null==o&&(o=this.sy0),null==s&&(s=this.sy1),p=[],l=0,u=e.length;u>l;l++)a=e[l],isNaN(r[a]+o[a]+i[a]+s[a])||(n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,a),t.fillRect(r[a],o[a],i[a]-r[a],s[a]-o[a])),n.line_properties.do_stroke?(t.beginPath(),t.rect(r[a],o[a],i[a]-r[a],s[a]-o[a]),n.line_properties.set_vectorize(t,a),p.push(t.stroke())):p.push(void 0));return p},r.prototype.draw_legend=function(t,e,n,r,i){return this._generic_area_legend(t,e,n,r,i)},r}(i.View),o=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(i.Model),{Model:o,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/quadratic\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"x0\",\"y0\",\"x1\",\"y1\",\"cx\",\"cy\"],n.prototype._properties=[\"line\"],n.prototype._map_data=function(){var t,e,n;return t=this.plot_view.map_to_screen(this.x0,this.glyph_props.x0.units,this.y0,this.glyph_props.y0.units),this.sx0=t[0],this.sy0=t[1],e=this.plot_view.map_to_screen(this.x1,this.glyph_props.x1.units,this.y1,this.glyph_props.y1.units),this.sx1=e[0],this.sy1=e[1],n=this.plot_view.map_to_screen(this.cx,this.glyph_props.cx.units,this.cy,this.glyph_props.cy.units),this.scx=n[0],this.scy=n[1],n},n.prototype._render=function(t,e,n){var r,i,o,s;if(n.line_properties.do_stroke){for(s=[],i=0,o=e.length;o>i;i++)r=e[i],isNaN(this.sx0[r]+this.sy0[r]+this.sx1[r]+this.sy1[r]+this.scx[r]+this.scy[r])||(t.beginPath(),t.moveTo(this.sx0[r],this.sy0[r]),t.quadraticCurveTo(this.scx[r],this.scy[r],this.sx1[r],this.sy1[r]),n.line_properties.set_vectorize(t,r),s.push(t.stroke()));return s}},n.prototype.draw_legend=function(t,e,n,r,i){return this._generic_line_legend(t,e,n,r,i)},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/ray\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"x\",\"y\",\"angle\",\"length\"],n.prototype._properties=[\"line\"],n.prototype._map_data=function(){var t,e,n,r,i,o,s,a;for(o=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=o[0],this.sy=o[1],r=this.plot_view.view_state.get(\"width\"),t=this.plot_view.view_state.get(\"height\"),n=2*(r+t),a=[],e=i=0,s=this.length.length;s>=0?s>i:i>s;e=s>=0?++i:--i)0===this.length[e]?a.push(this.length[e]=n):a.push(void 0);return a},n.prototype._render=function(t,e,n){var r,i,o,s;if(n.line_properties.do_stroke){for(s=[],i=0,o=e.length;o>i;i++)r=e[i],isNaN(this.sx[r]+this.sy[r]+this.angle[r]+this.length[r])||(t.translate(this.sx[r],this.sy[r]),t.rotate(this.angle[r]),t.beginPath(),t.moveTo(0,0),t.lineTo(this.length[r],0),n.line_properties.set_vectorize(t,r),t.stroke(),t.rotate(-this.angle[r]),s.push(t.translate(-this.sx[r],-this.sy[r])));return s}},n.prototype.draw_legend=function(t,e,n,r,i){return this._generic_line_legend(t,e,n,r,i)},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/rect\",[\"underscore\",\"rbush\",\"renderer/properties\",\"./glyph\"],function(t,n,r,i){var o,s,a,l;return s=function(r){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,r),i.prototype._fields=[\"x\",\"y\",\"width\",\"height\",\"angle\"],i.prototype._properties=[\"line\",\"fill\"],i.prototype._map_data=function(){var e,n,r,i,o,s;for(o=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),n=o[0],r=o[1],this.sw=this.distance_vector(\"x\",\"width\",\"center\"),this.sh=this.distance_vector(\"y\",\"height\",\"center\"),this.sx=new Array(n.length),this.sy=new Array(n.length),e=i=0,s=n.length;s>=0?s>i:i>s;e=s>=0?++i:--i)this.sx[e]=Math.abs(n[e]-this.sw[e])<2?Math.round(n[e]):n[e],this.sy[e]=Math.abs(r[e]-this.sh[e])<2?Math.round(r[e]):r[e];return this.max_width=t.max(this.width),this.max_height=t.max(this.height)},i.prototype._set_data=function(){var t;return this.index=n(),this.index.load(function(){var e,n,r;for(r=[],t=e=0,n=this.x.length;n>=0?n>e:e>n;t=n>=0?++e:--e)r.push([this.x[t],this.y[t],this.x[t],this.y[t],{i:t}]);return r}.call(this))},i.prototype._render=function(t,e,n,r,i,o,s){var a,l,u,p,h;if(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.sw),null==s&&(s=this.sh),n.fill_properties.do_fill)for(l=0,p=e.length;p>l;l++)a=e[l],isNaN(r[a]+i[a]+o[a]+s[a]+this.angle[a])||(n.fill_properties.set_vectorize(t,a),this.angle[a]?(t.translate(r[a],i[a]),t.rotate(this.angle[a]),t.fillRect(-o[a]/2,-s[a]/2,o[a],s[a]),t.rotate(-this.angle[a]),t.translate(-r[a],-i[a])):(t.fillRect(r[a]-o[a]/2,i[a]-s[a]/2,o[a],s[a]),t.rect(r[a]-o[a]/2,i[a]-s[a]/2,o[a],s[a])));if(n.line_properties.do_stroke){for(t.beginPath(),u=0,h=e.length;h>u;u++)a=e[u],isNaN(r[a]+i[a]+o[a]+s[a]+this.angle[a])||(this.angle[a]?(t.translate(r[a],i[a]),t.rotate(this.angle[a]),t.rect(-o[a]/2,-s[a]/2,o[a],s[a]),t.rotate(-this.angle[a]),t.translate(-r[a],-i[a])):t.rect(r[a]-o[a]/2,i[a]-s[a]/2,o[a],s[a]),n.line_properties.set_vectorize(t,a),t.stroke(),t.beginPath());return t.stroke()}},i.prototype._hit_point=function(t){var e,n,r,i,o,s,a,l,u,p,h,c,_,d,f,g,m,y,v,b,w,x,k,T,C,M,j,S,z,A,N,P,F,E;for(P=[t.vx,t.vy],f=P[0],y=P[1],x=this.plot_view.xmapper.map_from_target(f),M=this.plot_view.ymapper.map_from_target(y),C=\"string\"==typeof x,z=\"string\"==typeof M,C||z?n=function(){var t,e,n;for(n=[],s=t=0,e=this.x.length;e>=0?e>t:t>e;s=e>=0?++t:--t)n.push(s);return n}.call(this):(\"screen\"===this.width_units||C?(l=this.max_width,C&&(l=this.plot_view.xmapper.map_to_target(l)),g=f-2*l,m=f+2*l,F=this.plot_view.xmapper.v_map_from_target([g,m]),k=F[0],T=F[1]):(k=x-2*this.max_width,T=x+2*this.max_width),\"screen\"===this.height_units||z?(a=this.max_height,z&&(a=this.plot_view.ymapper.map_to_target(a)),v=y-2*a,b=y+2*a,E=this.plot_view.ymapper.v_map_from_target([v,b]),j=E[0],S=E[1]):(j=M-2*this.max_height,S=M+2*this.max_height),n=function(){var t,e,n,r;for(n=this.index.search([k,j,T,S]),r=[],t=0,e=n.length;e>t;t++)u=n[t],r.push(u[4].i);return r}.call(this)),o=[],A=0,N=n.length;N>A;A++)s=n[A],_=\"screen\"===this.width_units||C?this.plot_view.view_state.vx_to_sx(f):this.plot_view.view_state.vx_to_sx(this.plot_view.xmapper.map_to_target(x)),d=\"screen\"===this.height_units||z?this.plot_view.view_state.vy_to_sy(y):this.plot_view.view_state.vy_to_sy(this.plot_view.ymapper.map_to_target(M)),this.angle[s]&&(r=Math.sqrt(Math.pow(_-this.sx[s],2)+Math.pow(d-this.sy[s],2)),c=Math.sin(-this.angle[s]),e=Math.cos(-this.angle[s]),p=e*(_-this.sx[s])-c*(d-this.sy[s])+this.sx[s],h=c*(_-this.sx[s])+e*(d-this.sy[s])+this.sy[s],_=p,d=h),w=Math.abs(this.sx[s]-_)<=this.sw[s]/2,i=Math.abs(this.sy[s]-d)<=this.sh[s]/2,i&&w&&o.push(s);return o},i.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l,u,p,h,c,_;return a=null!=(_=this.get_reference_point())?_:0,s=[a],h={},h[a]=(e+n)/2,c={},c[a]=(r+i)/2,l=this.sw[a]/this.sh[a],o=.8*Math.min(Math.abs(n-e),Math.abs(i-r)),p={},u={},l>1?(p[a]=o,u[a]=o/l):(p[a]=o*l,u[a]=o),this._render(t,s,this.glyph_props,h,c,p,u)},i}(i.View),o=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0,angle:0})},r}(i.Model),{Model:o,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/square\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\",\"fill\"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,u;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),u=[],a=0,l=e.length;l>a;a++)s=e[a],isNaN(r[s]+i[s]+o[s])||(t.translate(r[s],i[s]),t.beginPath(),t.rect(-o[s]/2,-o[s]/2,o[s],o[s]),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke&&(n.line_properties.set_vectorize(t,s),t.stroke()),u.push(t.translate(-r[s],-i[s])));return u},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{size_units:\"screen\",fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/square_x\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\",\"fill\"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,u,p;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),p=[],l=0,u=e.length;u>l;l++)s=e[l],isNaN(r[s]+i[s]+o[s])||(t.translate(r[s],i[s]),t.beginPath(),t.rect(-o[s]/2,-o[s]/2,o[s],o[s]),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke&&(n.line_properties.set_vectorize(t,s),t.stroke(),a=o[s]/2,t.moveTo(-a,+a),t.lineTo(+a,-a),t.moveTo(-a,-a),t.lineTo(+a,+a),t.stroke()),p.push(t.translate(-r[s],-i[s])));return p},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{size_units:\"screen\",fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/square_cross\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\",\"fill\"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,u,p;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),p=[],l=0,u=e.length;u>l;l++)s=e[l],isNaN(r[s]+i[s]+o[s])||(t.translate(r[s],i[s]),t.beginPath(),t.rect(-o[s]/2,-o[s]/2,o[s],o[s]),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke&&(n.line_properties.set_vectorize(t,s),a=o[s]/2,t.moveTo(0,+a),t.lineTo(0,-a),t.moveTo(-a,0),t.lineTo(+a,0),t.stroke()),p.push(t.translate(-r[s],-i[s])));\n",
" return p},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{size_units:\"screen\",fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/segment\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"x0\",\"y0\",\"x1\",\"y1\"],n.prototype._properties=[\"line\"],n.prototype._map_data=function(){var t,e;return t=this.plot_view.map_to_screen(this.x0,this.glyph_props.x0.units,this.y0,this.glyph_props.y0.units),this.sx0=t[0],this.sy0=t[1],e=this.plot_view.map_to_screen(this.x1,this.glyph_props.x1.units,this.y1,this.glyph_props.y1.units),this.sx1=e[0],this.sy1=e[1],e},n.prototype._render=function(t,e,n){var r,i,o,s;if(n.line_properties.do_stroke){for(s=[],i=0,o=e.length;o>i;i++)r=e[i],isNaN(this.sx0[r]+this.sy0[r]+this.sx1[r]+this.sy1[r])||(t.beginPath(),t.moveTo(this.sx0[r],this.sy0[r]),t.lineTo(this.sx1[r],this.sy1[r]),n.line_properties.set_vectorize(t,r),s.push(t.stroke()));return s}},n.prototype.draw_legend=function(t,e,n,r,i){return this._generic_line_legend(t,e,n,r,i)},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/text\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"x\",\"y\",\"angle\",\"text:string\"],n.prototype._properties=[\"text\"],n.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],t},n.prototype._render=function(t,e,n){var r,i,o,s;for(s=[],i=0,o=e.length;o>i;i++)r=e[i],isNaN(this.sx[r]+this.sy[r]+this.angle[r])||(t.translate(this.sx[r],this.sy[r]),t.rotate(this.angle[r]),n.text_properties.set_vectorize(t,r),t.fillText(this.text[r],0,0),t.rotate(-this.angle[r]),s.push(t.translate(-this.sx[r],-this.sy[r])));return s},n.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l;return o=this.glyph_props,l=o.text_properties,t.save(),a=this.get_reference_point(),s=null!=a?a:o,l.set(t,s),t.font=l.font(12),t.textAlign=\"right\",t.textBaseline=\"middle\",t.fillText(\"txt\",n,(r+i)/2),t.restore()},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{text_font:\"helvetica\",text_font_size:\"12pt\",text_font_style:\"normal\",text_color:\"#444444\",text_alpha:1,text_align:\"left\",text_baseline:\"bottom\"})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/triangle\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\",\"fill\"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,u,p,h,c;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),c=[],p=0,h=e.length;h>p;p++)l=e[p],isNaN(r[l]+i[l]+o[l])||(s=o[l]*Math.sqrt(3)/6,u=o[l]/2,a=o[l]*Math.sqrt(3)/2,t.beginPath(),t.moveTo(r[l]-u,i[l]+s),t.lineTo(r[l]+u,i[l]+s),t.lineTo(r[l],i[l]+s-a),t.closePath(),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,l),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,l),c.push(t.stroke())):c.push(void 0));return c},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/wedge\",[\"underscore\",\"rbush\",\"common/mathutils\",\"renderer/properties\",\"./glyph\"],function(t,n,r,i,o){var s,a,l,u;return a=function(i){function o(){return l=o.__super__.constructor.apply(this,arguments)}return e(o,i),o.prototype._fields=[\"x\",\"y\",\"radius\",\"start_angle\",\"end_angle\",\"direction:string\"],o.prototype._properties=[\"line\",\"fill\"],o.prototype._set_data=function(){var e;return this.max_radius=t.max(this.radius),this.index=n(),this.index.load(function(){var t,n,r;for(r=[],e=t=0,n=this.x.length;n>=0?n>t:t>n;e=n>=0?++t:--t)r.push([this.x[e],this.y[e],this.x[e],this.y[e],{i:e}]);return r}.call(this))},o.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units),this.sx=t[0],this.sy=t[1],this.radius=this.distance_vector(\"x\",\"radius\",\"edge\")},o.prototype._render=function(t,e,n,r,i,o){var s,a,l,u;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.radius),u=[],a=0,l=e.length;l>a;a++)s=e[a],isNaN(r[s]+i[s]+o[s]+this.start_angle[s]+this.end_angle[s]+this.direction[s])||(t.beginPath(),t.arc(r[s],i[s],o[s],this.start_angle[s],this.end_angle[s],this.direction[s]),t.lineTo(r[s],i[s]),t.closePath(),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),u.push(t.stroke())):u.push(void 0));return u},o.prototype._hit_point=function(e){var n,i,o,s,a,l,u,p,h,c,_,d,f,g,m,y,v,b,w,x,k,T,C,M,j,S,z,A,N,P,F,E,D,$,O,q;if(D=[e.vx,e.vy],m=D[0],b=D[1],k=this.plot_view.xmapper.map_from_target(m),M=this.plot_view.ymapper.map_from_target(b),\"screen\"===this.radius_units?(y=m-this.max_radius,v=m+this.max_radius,$=this.plot_view.xmapper.v_map_from_target([y,v]),T=$[0],C=$[1],w=b-this.max_radius,x=b+this.max_radius,O=this.plot_view.ymapper.v_map_from_target([w,x]),j=O[0],S=O[1]):(T=k-this.max_radius,C=k+this.max_radius,j=M-this.max_radius,S=M+this.max_radius),i=function(){var t,e,n,r;for(n=this.index.search([T,j,C,S]),r=[],t=0,e=n.length;e>t;t++)u=n[t],r.push(u[4].i);return r}.call(this),o=[],\"screen\"===this.radius_units)for(h=this.plot_view.view_state.vx_to_sx(m),d=this.plot_view.view_state.vy_to_sy(b),z=0,P=i.length;P>z;z++)l=i[z],p=Math.pow(this.radius[l],2),s=Math.pow(this.sx[l]-h,2)+Math.pow(this.sy[l]-d,2),p>=s&&o.push([l,s]);else for(A=0,F=i.length;F>A;A++)l=i[A],p=Math.pow(this.radius[l],2),c=this.plot_view.xmapper.map_to_target(k),_=this.plot_view.xmapper.map_to_target(this.x[l]),f=this.plot_view.ymapper.map_to_target(M),g=this.plot_view.ymapper.map_to_target(this.y[l]),s=Math.pow(c-_,2)+Math.pow(f-g,2),p>=s&&o.push([l,s]);for(a=[],N=0,E=o.length;E>N;N++)q=o[N],l=q[0],s=q[1],h=this.plot_view.view_state.vx_to_sx(m),d=this.plot_view.view_state.vy_to_sy(b),n=Math.atan2(d-this.sy[l],h-this.sx[l]),r.angle_between(-n,-this.start_angle[l],-this.end_angle[l],this.direction[l])&&a.push([l,s]);return a=t.chain(a).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value()},o.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l,u,p;return a=null!=(p=this.get_reference_point())?p:0,o=[a],l={},l[a]=(e+n)/2,u={},u[a]=(r+i)/2,s={},s[a]=.4*Math.min(Math.abs(n-e),Math.abs(i-r)),this._render(t,o,this.glyph_props,l,u,s)},o}(o.View),s=function(n){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=a,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{direction:\"anticlock\",fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(o.Model),{Model:s,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/x\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,r){var i,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\"],n.prototype._render=function(t,e,n,r,i,o){var s,a,l,u,p;for(null==r&&(r=this.sx),null==i&&(i=this.sy),null==o&&(o=this.size),p=[],l=0,u=e.length;u>l;l++)s=e[l],isNaN(r[s]+i[s]+o[s])||(a=o[s]/2,t.beginPath(),t.moveTo(r[s]-a,i[s]+a),t.lineTo(r[s]+a,i[s]-a),t.moveTo(r[s]-a,i[s]-a),t.lineTo(r[s]+a,i[s]+a),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),p.push(t.stroke())):p.push(void 0));return p},n}(r.View),i=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Glyph\",r.prototype.display_defaults=function(){return t.extend(r.__super__.display_defaults.call(this),{line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},r}(r.Model),{Model:i,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/glyph/glyph_factory\",[\"require\",\"exports\",\"module\",\"underscore\",\"common/has_parent\",\"common/plot_widget\",\"./annular_wedge\",\"./annulus\",\"./arc\",\"./asterisk\",\"./bezier\",\"./circle\",\"./circle_x\",\"./circle_cross\",\"./diamond\",\"./diamond_cross\",\"./image\",\"./image_rgba\",\"./image_uri\",\"./inverted_triangle\",\"./line\",\"./multi_line\",\"./oval\",\"./patch\",\"./patches\",\"./cross\",\"./quad\",\"./quadratic\",\"./ray\",\"./rect\",\"./square\",\"./square_x\",\"./square_cross\",\"./segment\",\"./text\",\"./triangle\",\"./wedge\",\"./x\"],function(t){var n,r,i,o,s,a,l,u,p,h,c,_,d,f,g,m,y,v,b,w,x,k,T,C,M,j,S,z,A,N,P,F,E,D,$,O,q,B;return q=t(\"underscore\"),r=t(\"common/has_parent\"),i=t(\"common/plot_widget\"),o=t(\"./annular_wedge\"),s=t(\"./annulus\"),a=t(\"./arc\"),l=t(\"./asterisk\"),u=t(\"./bezier\"),p=t(\"./circle\"),c=t(\"./circle_x\"),h=t(\"./circle_cross\"),d=t(\"./diamond\"),f=t(\"./diamond_cross\"),m=t(\"./image\"),y=t(\"./image_rgba\"),v=t(\"./image_uri\"),b=t(\"./inverted_triangle\"),w=t(\"./line\"),x=t(\"./multi_line\"),k=t(\"./oval\"),T=t(\"./patch\"),C=t(\"./patches\"),_=t(\"./cross\"),M=t(\"./quad\"),j=t(\"./quadratic\"),S=t(\"./ray\"),z=t(\"./rect\"),N=t(\"./square\"),F=t(\"./square_x\"),P=t(\"./square_cross\"),A=t(\"./segment\"),E=t(\"./text\"),D=t(\"./triangle\"),$=t(\"./wedge\"),O=t(\"./x\"),g={annular_wedge:o.Model,annulus:s.Model,arc:a.Model,asterisk:l.Model,bezier:u.Model,circle:p.Model,circle_x:c.Model,circle_cross:h.Model,diamond:d.Model,diamond_cross:f.Model,image:m.Model,image_rgba:y.Model,image_uri:v.Model,inverted_triangle:b.Model,line:w.Model,multi_line:x.Model,oval:k.Model,patch:T.Model,patches:C.Model,cross:_.Model,quad:M.Model,quadratic:j.Model,ray:S.Model,square:N.Model,square_x:F.Model,square_cross:P.Model,rect:z.Model,segment:A.Model,text:E.Model,triangle:D.Model,wedge:$.Model,x:O.Model},n=function(t){function n(){return B=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=function(t,e){var n,r,i;return null==(null!=(i=t.glyphspec)?i.type:void 0)?(console.log(\"missing glyph type\"),void 0):(r=t.glyphspec.type,r in g?(n=g[r],new n(t,e)):(console.log(\"unknown glyph type '\"+r+\"'\"),void 0))},n}(Backbone.Collection),{Collection:new n}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/guide/axis\",[\"underscore\",\"backbone\",\"common/safebind\",\"common/has_parent\",\"common/plot_widget\",\"renderer/properties\"],function(t,n,r,i,o,s){var a,l,u,p,h,c,_,d,f,g,m,y,v;return u=s.glyph_properties,p=s.line_properties,h=s.text_properties,f={top:{parallel:0,normal:-Math.PI/2,horizontal:0,vertical:-Math.PI/2},bottom:{parallel:0,normal:Math.PI/2,horizontal:0,vertical:Math.PI/2},left:{parallel:-Math.PI/2,normal:0,horizontal:0,vertical:-Math.PI/2},right:{parallel:Math.PI/2,normal:0,horizontal:0,vertical:Math.PI/2}},g={top:{parallel:\"alphabetic\",normal:\"middle\",horizontal:\"alphabetic\",vertical:\"middle\"},bottom:{parallel:\"hanging\",normal:\"middle\",horizontal:\"hanging\",vertical:\"middle\"},left:{parallel:\"alphabetic\",normal:\"middle\",horizontal:\"middle\",vertical:\"alphabetic\"},right:{parallel:\"alphabetic\",normal:\"middle\",horizontal:\"middle\",vertical:\"alphabetic\"}},c={top:{parallel:\"center\",normal:\"left\",horizontal:\"center\",vertical:\"left\"},bottom:{parallel:\"center\",normal:\"left\",horizontal:\"center\",vertical:\"right\"},left:{parallel:\"center\",normal:\"right\",horizontal:\"right\",vertical:\"center\"},right:{parallel:\"center\",normal:\"left\",horizontal:\"left\",vertical:\"center\"}},_={top:\"right\",bottom:\"left\",left:\"right\",right:\"left\"},d={top:\"left\",bottom:\"right\",left:\"right\",right:\"left\"},m=[{norm:{norm:{min:1,max:-1},flip:{min:-1,max:1}},flip:{norm:{min:1,max:-1},flip:{min:-1,max:1}}},{norm:{norm:{min:-1,max:1},flip:{min:-1,max:1}},flip:{norm:{min:1,max:-1},flip:{min:1,max:-1}}}],l=function(n){function i(){return y=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.initialize=function(t){return i.__super__.initialize.call(this,t),this.rule_props=new p(this,null,\"axis_\"),this.major_tick_props=new p(this,null,\"major_tick_\"),this.major_label_props=new h(this,null,\"major_label_\"),this.axis_label_props=new h(this,null,\"axis_label_\"),this.formatter=t.formatter},i.prototype.render=function(){var t;return t=this.plot_view.ctx,t.save(),this._draw_rule(t),this._draw_major_ticks(t),this._draw_major_labels(t),this._draw_axis_label(t),t.restore()},i.prototype.bind_bokeh_events=function(){return r(this,this.model,\"change\",this.request_render)},i.prototype.padding_request=function(){return this._padding_request()},i.prototype._draw_rule=function(t){var e,n,r,i,o,s,a,l,u,p,h,c,_;if(this.rule_props.do_stroke){for(p=e=this.mget(\"rule_coords\"),a=p[0],l=p[1],h=this.plot_view.map_to_screen(a,\"data\",l,\"data\"),o=h[0],s=h[1],c=this.mget(\"normals\"),r=c[0],i=c[1],this.rule_props.set(t,this),t.beginPath(),t.moveTo(Math.round(o[0]),Math.round(s[0])),n=u=1,_=o.length;_>=1?_>u:u>_;n=_>=1?++u:--u)t.lineTo(Math.round(o[n]),Math.round(s[n]));return t.stroke()}},i.prototype._draw_major_ticks=function(t){var e,n,r,i,o,s,a,l,u,p,h,c,_,d,f,g;if(this.major_tick_props.do_stroke){for(c=e=this.mget(\"major_coords\"),u=c[0],p=c[1],_=this.plot_view.map_to_screen(u,\"data\",p,\"data\"),o=_[0],s=_[1],d=this.mget(\"normals\"),r=d[0],i=d[1],a=this.mget(\"major_tick_in\"),l=this.mget(\"major_tick_out\"),this.major_tick_props.set(t,this),g=[],n=h=0,f=o.length;f>=0?f>h:h>f;n=f>=0?++h:--h)t.beginPath(),t.moveTo(Math.round(o[n]+r*l),Math.round(s[n]+i*l)),t.lineTo(Math.round(o[n]-r*a),Math.round(s[n]-i*a)),g.push(t.stroke());return g}},i.prototype._draw_major_labels=function(e){var n,r,i,o,s,a,l,u,p,h,c,_,d,g,m,y,v,b,w,x;for(y=r=this.mget(\"major_coords\"),d=y[0],g=y[1],v=this.plot_view.map_to_screen(d,\"data\",g,\"data\"),c=v[0],_=v[1],b=this.mget(\"normals\"),a=b[0],l=b[1],i=this.mget(\"dimension\"),p=this.mget(\"side\"),u=this.mget(\"major_label_orientation\"),n=t.isString(u)?f[p][u]:-u,h=this._tick_extent()+this.mget(\"major_label_standoff\"),s=this.formatter.format(r[i]),this.major_label_props.set(e,this),this._apply_location_heuristics(e,p,u),x=[],o=m=0,w=c.length;w>=0?w>m:m>w;o=w>=0?++m:--m)n?(e.translate(c[o]+a*h,_[o]+l*h),e.rotate(n),e.fillText(s[o],0,0),e.rotate(-n),x.push(e.translate(-c[o]-a*h,-_[o]-l*h))):x.push(e.fillText(s[o],Math.round(c[o]+a*h),Math.round(_[o]+l*h)));return x},i.prototype._draw_axis_label=function(t){var e,n,r,i,o,s,a,l,u,p,h,c,_,d;return n=this.mget(\"axis_label\"),null!=n?(c=this.mget(\"rule_coords\"),p=c[0],h=c[1],_=this.plot_view.map_to_screen(p,\"data\",h,\"data\"),l=_[0],u=_[1],d=this.mget(\"normals\"),r=d[0],i=d[1],s=this.mget(\"side\"),o=\"parallel\",e=f[s][o],a=this._tick_extent()+this._tick_label_extent()+this.mget(\"axis_label_standoff\"),l=(l[0]+l[l.length-1])/2,u=(u[0]+u[u.length-1])/2,this.axis_label_props.set(t,this),this._apply_location_heuristics(t,s,o),e?(t.translate(l+r*a,u+i*a),t.rotate(e),t.fillText(n,0,0),t.rotate(-e),t.translate(-l-r*a,-u-i*a)):t.fillText(n,l+r*a,u+i*a)):void 0},i.prototype._apply_location_heuristics=function(e,n,r){var i,o;return t.isString(r)?(o=g[n][r],i=c[n][r]):0===r?(o=g[n][r],i=c[n][r]):0>r?(o=\"middle\",i=_[n]):r>0&&(o=\"middle\",i=d[n]),e.textBaseline=o,e.textAlign=i},i.prototype._tick_extent=function(){return this.mget(\"major_tick_out\")},i.prototype._tick_label_extent=function(){var e,n,r,i,o,s,a,l,u,p,h,c,_,d,g,m,y,v;if(o=0,i=this.mget(\"dimension\"),r=this.mget(\"major_coords\"),c=this.mget(\"side\"),p=this.mget(\"major_label_orientation\"),u=this.formatter.format(r[i]),this.major_label_props.set(this.plot_view.ctx,this),t.isString(p)?(s=1,e=f[c][p]):(s=2,e=-p),e=Math.abs(e),n=Math.cos(e),h=Math.sin(e),\"top\"===c||\"bottom\"===c)for(l=g=0,y=u.length;y>=0?y>g:g>y;l=y>=0?++g:--g)null!=u[l]&&(d=1.1*this.plot_view.ctx.measureText(u[l]).width,a=.9*this.plot_view.ctx.measureText(u[l]).ascent,_=d*h+a/s*n,_>o&&(o=_));else for(l=m=0,v=u.length;v>=0?v>m:m>v;l=v>=0?++m:--m)null!=u[l]&&(d=1.1*this.plot_view.ctx.measureText(u[l]).width,a=.9*this.plot_view.ctx.measureText(u[l]).ascent,_=d*n+a/s*h,_>o&&(o=_));return o>0&&(o+=this.mget(\"major_label_standoff\")),o},i.prototype._axis_label_extent=function(){var t,e,n,r,i,o,s,a;return n=0,s=this.mget(\"side\"),i=\"parallel\",this.major_label_props.set(this.plot_view.ctx,this),t=Math.abs(f[s][i]),e=Math.cos(t),o=Math.sin(t),this.mget(\"axis_label\")&&(n+=this.mget(\"axis_label_standoff\"),this.axis_label_props.set(this.plot_view.ctx,this),a=1.1*this.plot_view.ctx.measureText(this.mget(\"axis_label\")).width,r=.9*this.plot_view.ctx.measureText(this.mget(\"axis_label\")).ascent,n+=\"top\"===s||\"bottom\"===s?a*o+r*e:a*e+r*o),n},i.prototype._padding_request=function(){var e,n,r,i,o;return r={},i=this.mget(\"side\"),e=null!=(o=this.mget(\"location\"))?o:\"min\",t.isString(e)?(n=0,n+=this._tick_extent(),n+=this._tick_label_extent(),n+=this._axis_label_extent(),r[i]=n,r):r},i}(o),a=function(n){function r(){return v=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=l,r.prototype.type=\"Axis\",r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.scale=e.scale,this.register_property(\"computed_bounds\",this._bounds,!1),this.add_dependencies(\"computed_bounds\",this,[\"bounds\"]),this.register_property(\"rule_coords\",this._rule_coords,!1),this.add_dependencies(\"rule_coords\",this,[\"computed_bounds\",\"dimension\",\"location\"]),this.register_property(\"major_coords\",this._major_coords,!1),this.add_dependencies(\"major_coords\",this,[\"computed_bounds\",\"dimension\",\"location\"]),this.register_property(\"normals\",this._normals,!0),this.add_dependencies(\"normals\",this,[\"computed_bounds\",\"dimension\",\"location\"]),this.register_property(\"side\",this._side,!1),this.add_dependencies(\"side\",this,[\"normals\"]),this.register_property(\"padding_request\",this._padding_request,!1)},r.prototype.dinitialize=function(){return this.add_dependencies(\"computed_bounds\",this.get_obj(\"plot\"),[\"x_range\",\"y_range\"])},r.prototype._bounds=function(){var e,n,r,i,o,s,a,l;return n=this.get(\"dimension\"),r=(n+1)%2,o=[this.get_obj(\"plot\").get_obj(\"x_range\"),this.get_obj(\"plot\").get_obj(\"y_range\")],a=null!=(l=this.get(\"bounds\"))?l:\"auto\",i=[o[n].get(\"min\"),o[n].get(\"max\")],t.isArray(a)?Math.abs(a[0]-a[1])>Math.abs(i[0]-i[1])?(s=Math.max(Math.min(a[0],a[1]),i[0]),e=Math.min(Math.max(a[0],a[1]),i[1])):(s=Math.min(a[0],a[1]),e=Math.max(a[0],a[1])):(s=i[0],e=i[1]),[s,e]},r.prototype._rule_coords=function(){var e,n,r,i,o,s,a,l,u,p,h,c,_,d,f;return s=this.get(\"dimension\"),a=(s+1)%2,p=[this.get_obj(\"plot\").get_obj(\"x_range\"),this.get_obj(\"plot\").get_obj(\"y_range\")],u=p[s],r=p[a],d=this.get(\"computed_bounds\"),h=d[0],o=d[1],c=new Array(2),_=new Array(2),n=[c,_],i=r.get(\"start\"),e=r.get(\"end\"),l=null!=(f=this.get(\"location\"))?f:\"min\",t.isString(l)&&(\"left\"===l||\"bottom\"===l?l=e>i?\"start\":\"end\":(\"right\"===l||\"top\"===l)&&(l=e>i?\"end\":\"start\"),l=r.get(l)),n[s][0]=Math.max(h,u.get(\"min\")),n[s][1]=Math.min(o,u.get(\"max\")),n[s][0]>n[s][1]&&(n[s][0]=n[s][1]=0/0),n[a][0]=l,n[a][1]=l,n},r.prototype._major_coords=function(){var e,n,r,i,o,s,a,l,u,p,h,c,_,d,f,g,m,y,v,b,w,x,k,T;if(s=this.get(\"dimension\"),l=(s+1)%2,_=[this.get_obj(\"plot\").get_obj(\"x_range\"),this.get_obj(\"plot\").get_obj(\"y_range\")],p=_[s],r=_[l],b=this.get(\"computed_bounds\"),d=b[0],o=b[1],f=this.scale.get_ticks(d,o,p,{}),i=r.get(\"start\"),e=r.get(\"end\"),u=null!=(w=this.get(\"location\"))?w:\"min\",t.isString(u)&&(\"left\"===u||\"bottom\"===u?u=e>i?\"start\":\"end\":(\"right\"===u||\"top\"===u)&&(u=e>i?\"end\":\"start\"),u=r.get(u)),g=[],m=[],n=[g,m],\"FactorRange\"===p.type)for(a=y=0,x=f.length;x>=0?x>y:y>x;a=x>=0?++y:--y)n[s].push(f[a]),n[l].push(u);else for(k=[p.get(\"min\"),p.get(\"max\")],c=k[0],h=k[1],a=v=0,T=f.length;T>=0?T>v:v>T;a=T>=0?++v:--v)f[a]<c||f[a]>h||(n[s].push(f[a]),n[l].push(u));return n},r.prototype._normals=function(){var e,n,r,i,o,s,a,l,u,p,h,c,_,d,f;return o=this.get(\"dimension\"),a=(o+1)%2,c=[this.get_obj(\"plot\").get_obj(\"x_range\"),this.get_obj(\"plot\").get_obj(\"y_range\")],h=c[o],n=c[a],d=this.get(\"computed_bounds\"),_=d[0],i=d[1],r=n.get(\"start\"),e=n.get(\"end\"),u=null!=(f=this.get(\"location\"))?f:\"min\",p=[0,0],t.isString(u)?(s=_>i?\"flip\":\"norm\",r>e?(l=\"flip\",\"left\"===u||\"bottom\"===u?u=\"max\":(\"top\"===u||\"right\"===u)&&(u=\"max\")):(l=\"norm\",\"left\"===u||\"bottom\"===u?u=\"min\":(\"top\"===u||\"right\"===u)&&(u=\"max\")),p[a]=m[o][s][l][u]):p[a]=0===o?Math.abs(u-r)<=Math.abs(u-e)?1:-1:Math.abs(u-r)<=Math.abs(u-e)?-1:1,p},r.prototype._side=function(){var t,e;return t=this.get(\"normals\"),-1===t[1]?e=\"top\":1===t[1]?e=\"bottom\":-1===t[0]?e=\"left\":1===t[0]&&(e=\"right\"),e},r.prototype.display_defaults=function(){return{level:\"overlay\",axis_line_color:\"black\",axis_line_width:1,axis_line_alpha:1,axis_line_join:\"miter\",axis_line_cap:\"butt\",axis_line_dash:[],axis_line_dash_offset:0,major_tick_in:2,major_tick_out:6,major_tick_line_color:\"black\",major_tick_line_width:1,major_tick_line_alpha:1,major_tick_line_join:\"miter\",major_tick_line_cap:\"butt\",major_tick_line_dash:[],major_tick_line_dash_offset:0,major_label_standoff:5,major_label_orientation:\"horizontal\",major_label_text_font:\"helvetica\",major_label_text_font_size:\"10pt\",major_label_text_font_style:\"normal\",major_label_text_color:\"#444444\",major_label_text_alpha:1,major_label_text_align:\"center\",major_label_text_baseline:\"alphabetic\",axis_label:\"\",axis_label_standoff:5,axis_label_text_font:\"helvetica\",axis_label_text_font_size:\"16pt\",axis_label_text_font_style:\"normal\",axis_label_text_color:\"#444444\",axis_label_text_alpha:1,axis_label_text_align:\"center\",axis_label_text_baseline:\"alphabetic\"}},r}(i),{Model:a,View:l}})}.call(this),!function(t){\"object\"==typeof module&&module.exports?module.exports=t():\"function\"==typeof n?n(\"timezone\",t):this.tz=t()}(function(){function t(t,e,n){var r,i=e.day[1];do r=new Date(Date.UTC(n,e.month,Math.abs(i++)));while(e.day[0]<7&&r.getUTCDay()!=e.day[0]);return r={clock:e.clock,sort:r.getTime(),rule:e,save:6e4*e.save,offset:t.offset},r[r.clock]=r.sort+6e4*e.time,r.posix?r.wallclock=r[r.clock]+(t.offset+e.saved):r.posix=r[r.clock]-(t.offset+e.saved),r}function e(e,n,r){var i,o,s,a,l,u,p,h=e[e.zone],c=[],_=new Date(r).getUTCFullYear(),d=1;for(i=1,o=h.length;o>i&&!(h[i][n]<=r);i++);if(s=h[i],s.rules){for(u=e[s.rules],p=_+1;p>=_-d;--p)for(i=0,o=u.length;o>i;i++)u[i].from<=p&&p<=u[i].to?c.push(t(s,u[i],p)):u[i].to<p&&1==d&&(d=p-u[i].to);for(c.sort(function(t,e){return t.sort-e.sort}),i=0,o=c.length;o>i;i++)r>=c[i][n]&&c[i][c[i].clock]>s[c[i].clock]&&(a=c[i])}return a&&(a.abbrev=(l=/^(.*)\\/(.*)$/.exec(s.format))?l[a.save?2:1]:s.format.replace(/%s/,a.rule.letter)),a||s}function n(t,n){return\"UTC\"==t.zone?n:(t.entry=e(t,\"posix\",n),n+t.entry.offset+t.entry.save)}function r(t,n){if(\"UTC\"==t.zone)return n;var r,i;return t.entry=r=e(t,\"wallclock\",n),i=n-r.wallclock,i>0&&i<r.save?null:n-r.offset-r.save}function i(t,e,i){var o,s=+(i[1]+1),a=i[2]*s,l=u.indexOf(i[3].toLowerCase());if(l>9)e+=a*h[l-10];else{if(o=new Date(n(t,e)),7>l)for(;a;)o.setUTCDate(o.getUTCDate()+s),o.getUTCDay()==l&&(a-=s);else 7==l?o.setUTCFullYear(o.getUTCFullYear()+a):8==l?o.setUTCMonth(o.getUTCMonth()+a):o.setUTCDate(o.getUTCDate()+a);null==(e=r(t,o.getTime()))&&(e=r(t,o.getTime()+864e5*s)-864e5*s)}return e}function o(t){if(!t.length)return\"0.0.23\";var e,o,s,a,l,u=Object.create(this),h=[];for(e=0;e<t.length;e++)if(a=t[e],Array.isArray(a))e||isNaN(a[1])?a.splice.apply(t,[e--,1].concat(a)):l=a;else if(isNaN(a)){if(s=typeof a,\"string\"==s)~a.indexOf(\"%\")?u.format=a:e||\"*\"!=a?!e&&(s=/^(\\d{4})-(\\d{2})-(\\d{2})(?:[T\\s](\\d{2}):(\\d{2})(?::(\\d{2})(?:\\.(\\d+))?)?(Z|(([+-])(\\d{2}(:\\d{2}){0,2})))?)?$/.exec(a))?(l=[],l.push.apply(l,s.slice(1,8)),s[9]?(l.push(s[10]+1),l.push.apply(l,s[11].split(/:/))):s[8]&&l.push(1)):/^\\w{2,3}_\\w{2}$/.test(a)?u.locale=a:(s=p.exec(a))?h.push(s):u.zone=a:l=a;else if(\"function\"==s){if(s=a.call(u))return s}else if(/^\\w{2,3}_\\w{2}$/.test(a.name))u[a.name]=a;else if(a.zones){for(s in a.zones)u[s]=a.zones[s];for(s in a.rules)u[s]=a.rules[s]}}else e||(l=a);if(u[u.locale]||delete u.locale,u[u.zone]||delete u.zone,null!=l){if(\"*\"==l)l=u.clock();else if(Array.isArray(l)){for(o=!l[7],e=0;11>e;e++)l[e]=+(l[e]||0);--l[1],l=Date.UTC.apply(Date.UTC,l.slice(0,8))+-l[7]*(36e5*l[8]+6e4*l[9]+1e3*l[10])}else l=Math.floor(l);if(!isNaN(l)){if(o&&(l=r(u,l)),null==l)return l;for(e=0,o=h.length;o>e;e++)l=i(u,l,h[e]);return u.format?(s=new Date(n(u,l)),u.format.replace(/%([-0_^]?)(:{0,3})(\\d*)(.)/g,function(t,e,n,r,i){var o,a,p=\"0\";if(o=u[i]){for(t=String(o.call(u,s,l,e,n.length)),\"_\"==(e||o.style)&&(p=\" \"),a=\"-\"==e?0:o.pad||0;t.length<a;)t=p+t;for(a=\"-\"==e?0:r||o.pad;t.length<a;)t=p+t;\"N\"==i&&a<t.length&&(t=t.slice(0,a)),\"^\"==e&&(t=t.toUpperCase())}return t})):l}}return function(){return u.convert(arguments)}}function s(t,e){var n,r,i;return r=new Date(Date.UTC(t.getUTCFullYear(),0)),n=Math.floor((t.getTime()-r.getTime())/864e5),r.getUTCDay()==e?i=0:(i=7-r.getUTCDay()+e,8==i&&(i=1)),n>=i?Math.floor((n-i)/7)+1:0}function a(t){var e,n,r;return n=t.getUTCFullYear(),e=new Date(Date.UTC(n,0)).getUTCDay(),r=s(t,1)+(e>1&&4>=e?1:0),r?53!=r||4==e||3==e&&29==new Date(n,1,29).getDate()?[r,t.getUTCFullYear()]:[1,t.getUTCFullYear()+1]:(n=t.getUTCFullYear()-1,e=new Date(Date.UTC(n,0)).getUTCDay(),r=4==e||3==e&&29==new Date(n,1,29).getDate()?53:52,[r,t.getUTCFullYear()-1])}var l={clock:function(){return+new Date},zone:\"UTC\",entry:{abbrev:\"UTC\",offset:0,save:0},UTC:1,z:function(t,e,n,r){var i,o,s=this.entry.offset+this.entry.save,a=Math.abs(s/1e3),l=[],u=3600;for(i=0;3>i;i++)l.push((\"0\"+Math.floor(a/u)).slice(-2)),a%=u,u/=60;return\"^\"!=n||s?(\"^\"==n&&(r=3),3==r?(o=l.join(\":\"),o=o.replace(/:00$/,\"\"),\"^\"!=n&&(o=o.replace(/:00$/,\"\"))):r?(o=l.slice(0,r+1).join(\":\"),\"^\"==n&&(o=o.replace(/:00$/,\"\"))):o=l.slice(0,2).join(\"\"),o=(0>s?\"-\":\"+\")+o,o=o.replace(/([-+])(0)/,{_:\" $1\",\"-\":\"$1\"}[n]||\"$1$2\")):\"Z\"},\"%\":function(){return\"%\"},n:function(){return\"\\n\"},t:function(){return\"\t\"},U:function(t){return s(t,0)},W:function(t){return s(t,1)},V:function(t){return a(t)[0]},G:function(t){return a(t)[1]},g:function(t){return a(t)[1]%100},j:function(t){return Math.floor((t.getTime()-Date.UTC(t.getUTCFullYear(),0))/864e5)+1},s:function(t){return Math.floor(t.getTime()/1e3)},C:function(t){return Math.floor(t.getUTCFullYear()/100)},N:function(t){return 1e6*(t.getTime()%1e3)},m:function(t){return t.getUTCMonth()+1},Y:function(t){return t.getUTCFullYear()},y:function(t){return t.getUTCFullYear()%100},H:function(t){return t.getUTCHours()},M:function(t){return t.getUTCMinutes()},S:function(t){return t.getUTCSeconds()},e:function(t){return t.getUTCDate()},d:function(t){return t.getUTCDate()},u:function(t){return t.getUTCDay()||7},w:function(t){return t.getUTCDay()},l:function(t){return t.getUTCHours()%12||12},I:function(t){return t.getUTCHours()%12||12},k:function(t){return t.getUTCHours()},Z:function(){return this.entry.abbrev},a:function(t){return this[this.locale].day.abbrev[t.getUTCDay()]},A:function(t){return this[this.locale].day.full[t.getUTCDay()]},h:function(t){return this[this.locale].month.abbrev[t.getUTCMonth()]},b:function(t){return this[this.locale].month.abbrev[t.getUTCMonth()]},B:function(t){return this[this.locale].month.full[t.getUTCMonth()]},P:function(t){return this[this.locale].meridiem[Math.floor(t.getUTCHours()/12)].toLowerCase()},p:function(t){return this[this.locale].meridiem[Math.floor(t.getUTCHours()/12)]},R:function(t,e){return this.convert([e,\"%H:%M\"])},T:function(t,e){return this.convert([e,\"%H:%M:%S\"])},D:function(t,e){return this.convert([e,\"%m/%d/%y\"])},F:function(t,e){return this.convert([e,\"%Y-%m-%d\"])},x:function(t,e){return this.convert([e,this[this.locale].date])},r:function(t,e){return this.convert([e,this[this.locale].time12||\"%I:%M:%S\"])},X:function(t,e){return this.convert([e,this[this.locale].time24])},c:function(t,e){return this.convert([e,this[this.locale].dateTime])},convert:o,locale:\"en_US\",en_US:{date:\"%m/%d/%Y\",time24:\"%I:%M:%S %p\",time12:\"%I:%M:%S %p\",dateTime:\"%a %d %b %Y %I:%M:%S %p %Z\",meridiem:[\"AM\",\"PM\"],month:{abbrev:\"Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec\".split(\"|\"),full:\"January|February|March|April|May|June|July|August|September|October|November|December\".split(\"|\")},day:{abbrev:\"Sun|Mon|Tue|Wed|Thu|Fri|Sat\".split(\"|\"),full:\"Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday\".split(\"|\")}}},u=\"Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|year|month|day|hour|minute|second|millisecond\",p=new RegExp(\"^\\\\s*([+-])(\\\\d+)\\\\s+(\"+u+\")s?\\\\s*$\",\"i\"),h=[36e5,6e4,1e3,1];return u=u.toLowerCase().split(\"|\"),\"delmHMSUWVgCIky\".replace(/./g,function(t){l[t].pad=2}),l.N.pad=9,l.j.pad=3,l.k.style=\"_\",l.l.style=\"_\",l.e.style=\"_\",function(){return l.convert(arguments)}}),function(t){function e(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function n(t,e){for(var n=[];e>0;n[--e]=t);return n.join(\"\")}var r=function(){return r.cache.hasOwnProperty(arguments[0])||(r.cache[arguments[0]]=r.parse(arguments[0])),r.format.call(null,r.cache[arguments[0]],arguments)};r.format=function(t,i){var o,s,a,l,u,p,h,c=1,_=t.length,d=\"\",f=[];for(s=0;_>s;s++)if(d=e(t[s]),\"string\"===d)f.push(t[s]);else if(\"array\"===d){if(l=t[s],l[2])for(o=i[c],a=0;a<l[2].length;a++){if(!o.hasOwnProperty(l[2][a]))throw r('[sprintf] property \"%s\" does not exist',l[2][a]);o=o[l[2][a]]}else o=l[1]?i[l[1]]:i[c++];if(/[^s]/.test(l[8])&&\"number\"!=e(o))throw r(\"[sprintf] expecting number but found %s\",e(o));switch(l[8]){case\"b\":o=o.toString(2);break;case\"c\":o=String.fromCharCode(o);break;case\"d\":o=parseInt(o,10);\n",
" break;case\"e\":o=l[7]?o.toExponential(l[7]):o.toExponential();break;case\"f\":o=l[7]?parseFloat(o).toFixed(l[7]):parseFloat(o);break;case\"o\":o=o.toString(8);break;case\"s\":o=(o=String(o))&&l[7]?o.substring(0,l[7]):o;break;case\"u\":o>>>=0;break;case\"x\":o=o.toString(16);break;case\"X\":o=o.toString(16).toUpperCase()}o=/[def]/.test(l[8])&&l[3]&&o>=0?\"+\"+o:o,p=l[4]?\"0\"==l[4]?\"0\":l[4].charAt(1):\" \",h=l[6]-String(o).length,u=l[6]?n(p,h):\"\",f.push(l[5]?o+u:u+o)}return f.join(\"\")},r.cache={},r.parse=function(t){for(var e=t,n=[],r=[],i=0;e;){if(null!==(n=/^[^\\x25]+/.exec(e)))r.push(n[0]);else if(null!==(n=/^\\x25{2}/.exec(e)))r.push(\"%\");else{if(null===(n=/^\\x25(?:([1-9]\\d*)\\$|\\(([^\\)]+)\\))?(\\+)?(0|'[^$])?(-)?(\\d+)?(?:\\.(\\d+))?([b-fosuxX])/.exec(e)))throw\"[sprintf] huh?\";if(n[2]){i|=1;var o=[],s=n[2],a=[];if(null===(a=/^([a-z_][a-z_\\d]*)/i.exec(s)))throw\"[sprintf] huh?\";for(o.push(a[1]);\"\"!==(s=s.substring(a[0].length));)if(null!==(a=/^\\.([a-z_][a-z_\\d]*)/i.exec(s)))o.push(a[1]);else{if(null===(a=/^\\[(\\d+)\\]/.exec(s)))throw\"[sprintf] huh?\";o.push(a[1])}n[2]=o}else i|=2;if(3===i)throw\"[sprintf] mixing positional and named placeholders is not (yet) supported\";r.push(n)}e=e.substring(n[0].length)}return r};var i=function(t,e,n){return n=e.slice(0),n.splice(0,0,t),r.apply(null,n)};t.sprintf=r,t.vsprintf=i}(\"undefined\"!=typeof exports?exports:window),n(\"sprintf\",function(t){return function(){var e;return e||t.sprintf}}(this)),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"common/ticking\",[\"underscore\",\"timezone\",\"sprintf\"],function(t,n,r){var i,o,s,a,l,u,p,h,c,_,d,f,g,m,y,v,b,w,x,k,T,C,M,j,S,z,A,N,P,F,E,D,$,O,q;return x=function(t,e,n){var r,i;if(null==e&&(e=!1),null==n&&(n=!1),e||(e=t,t=0),t>e&&n===!1&&(n=-1),n||(n=1),i=[],r=t,e>t)for(;e>r;)i.push(r),r+=n;else for(;r>e;)i.push(r),r+=n;return i},P=function(t){var e,n,r,i,o;return null===t?\"null\":t.constructor===Array?(n=function(){var n,r,i;for(i=[],n=0,r=t.length;r>n;n++)e=t[n],i.push(P(e));return i}().join(\", \"),\"[\"+n+\"]\"):t.constructor===Object?(o=function(){var e;e=[];for(r in t)e.push(\"\"+r+\": \"+P(t[r]));return e}().join(\", \"),\"{\"+o+\"}\"):t.constructor===String?'\"'+t+'\"':t.constructor===Function?\"<Function: \"+t.name+\">\":(i=t.toString(),\"[object Object]\"===i?\"<\"+t.constructor.name+\">\":i)},S=function(e){return t.range(e.length)},k=function(e){var n;return n=t.min(S(e),function(t){return e[t]})},T=function(t,e,n){return Math.max(e,Math.min(n,t))},N=function(t,e){return null==e&&(e=Math.E),Math.log(t)/Math.log(e)},C=function(t){return new Date(t.getTime())},z=function(t){return t=C(t),t.setUTCDate(1),t.setUTCHours(0),t.setUTCMinutes(0),t.setUTCSeconds(0),t.setUTCMilliseconds(0),t},A=function(t){return t=z(t),t.setUTCMonth(0),t},j=function(t,e){var n,r,i,o;for(o=A(new Date(t)),i=A(new Date(e)),i.setUTCFullYear(i.getUTCFullYear()+1),r=[],n=o;;)if(r.push(C(n)),n.setUTCFullYear(n.getUTCFullYear()+1),n>i)break;return r},M=function(t,e){var n,r,i,o,s;for(s=z(new Date(t)),i=z(new Date(e)),o=C(i),i.setUTCMonth(i.getUTCMonth()+1),r=[],n=s;;)if(r.push(C(n)),n.setUTCMonth(n.getUTCMonth()+1),n>i)break;return r},u=6,i=function(){function t(t){this.toString_properties=null!=t?t:[]}return t.prototype.get_ticks=function(t,e,n,r){var i;return i=r.desired_n_ticks,null==i&&(i=u),this.get_ticks_no_defaults(t,e,i)},t.prototype.get_ticks_no_defaults=function(t,e,n){var r,i,o,s,a,l;return s=this.get_interval(t,e,n),a=Math.floor(t/s),r=Math.ceil(e/s),o=x(a,r+1),l=function(){var t,e,n;for(n=[],t=0,e=o.length;e>t;t++)i=o[t],n.push(i*s);return n}()},t.prototype.get_interval=void 0,t.prototype.get_min_interval=function(){return this.min_interval},t.prototype.get_max_interval=function(){return this.max_interval},t.prototype.min_interval=void 0,t.prototype.max_interval=void 0,t.prototype.toString=function(){var t,e,n,r;return t=this.constructor.name,r=this.toString_properties,n=function(){var t,n,i;for(i=[],t=0,n=r.length;n>t;t++)e=r[t],i.push(\"\"+e+\"=\"+P(this[e]));return i}.call(this).join(\", \"),\"\"+t+\"(\"+n+\")\"},t.prototype.get_ideal_interval=function(t,e,n){var r;return r=e-t,r/n},t}(),w=function(t){function n(t){this.interval=t,n.__super__.constructor.call(this,[\"interval\"]),this.min_interval=this.interval,this.max_interval=this.interval}return e(n,t),n.prototype.get_interval=function(){return this.interval},n}(i),l=function(n){function r(e){this.scales=e,r.__super__.constructor.call(this),this.min_intervals=t.invoke(this.scales,\"get_min_interval\"),this.max_intervals=t.invoke(this.scales,\"get_max_interval\"),this.min_interval=t.first(this.min_intervals),this.max_interval=t.last(this.max_intervals)}return e(r,n),r.prototype.get_best_scale=function(e,n,r){var i,o,s,a,l,u,p;return s=n-e,l=this.get_ideal_interval(e,n,r),p=[t.sortedIndex(this.min_intervals,l)-1,t.sortedIndex(this.max_intervals,l)],u=[this.min_intervals[p[0]],this.max_intervals[p[1]]],a=u.map(function(t){return Math.abs(r-s/t)}),o=p[k(a)],i=this.scales[o]},r.prototype.get_interval=function(t,e,n){var r;return r=this.get_best_scale(t,e,n),r.get_interval(t,e,n)},r.prototype.get_ticks_no_defaults=function(t,e,n){var r;return r=this.get_best_scale(t,e,n),r.get_ticks_no_defaults(t,e,n)},r}(i),o=function(n){function r(e,n,i,o){var s,a;this.mantissas=e,this.base=null!=n?n:10,this.min_interval=null!=i?i:0,this.max_interval=null!=o?o:1/0,r.__super__.constructor.call(this,[\"mantissas\",\"base\",\"min_magnitude\",\"max_magnitude\"]),s=t.last(this.mantissas)/this.base,a=t.first(this.mantissas)*this.base,this.extended_mantissas=t.flatten([s,this.mantissas,a]),this.base_factor=0===this.min_interval?1:this.min_interval}return e(r,n),r.prototype.get_interval=function(t,e,n){var r,i,o,s,a,l,u,p,h;return o=e-t,a=this.get_ideal_interval(t,e,n),h=Math.floor(N(a/this.base_factor,this.base)),l=Math.pow(this.base,h)*this.base_factor,u=a/l,i=this.extended_mantissas,s=i.map(function(t){return Math.abs(n-o/(t*l))}),r=i[k(s)],p=r*l,T(p,this.min_interval,this.max_interval)},r}(i),_=function(n){function r(t){this.months=t,this.typical_interval=this.months.length>1?(this.months[1]-this.months[0])*y:12*y,r.__super__.constructor.call(this,this.typical_interval),this.toString_properties=[\"months\"]}return e(r,n),r.prototype.get_ticks_no_defaults=function(e,n){var r,i,o,s,a,l,u;return u=j(e,n),s=this.months,a=function(t){return s.map(function(e){var n;return n=C(t),n.setUTCMonth(e),n})},o=t.flatten(function(){var t,e,n;for(n=[],t=0,e=u.length;e>t;t++)i=u[t],n.push(a(i));return n}()),r=t.invoke(o,\"getTime\"),l=t.filter(r,function(t){return t>=e&&n>=t})},r}(w),c=function(n){function r(t){this.days=t,this.typical_interval=this.days.length>1?(this.days[1]-this.days[0])*d:31*d,r.__super__.constructor.call(this,this.typical_interval),this.toString_properties=[\"days\"]}return e(r,n),r.prototype.get_ticks_no_defaults=function(e,n){var r,i,o,s,a,l,u,p;return l=M(e,n),s=this.days,p=this.typical_interval,a=function(t){var e,n,r,i,o,a;for(e=[],o=0,a=s.length;a>o;o++)n=s[o],r=C(t),r.setUTCDate(n),i=new Date(r.getTime()+p/2),i.getUTCMonth()===t.getUTCMonth()&&e.push(r);return e},o=t.flatten(function(){var t,e,n;for(n=[],t=0,e=l.length;e>t;t++)i=l[t],n.push(a(i));return n}()),r=t.invoke(o,\"getTime\"),u=t.filter(r,function(t){return t>=e&&n>=t})},r}(w),g=1,v=1e3,m=60*v,f=60*m,d=24*f,y=30*d,b=365*d,s=function(t){function n(){n.__super__.constructor.call(this,[1,2,5])}return e(n,t),n}(o),h=function(t){function n(){n.__super__.constructor.call(this,[new o([1,2,5],10,0,500*g),new o([1,2,5,10,15,20,30],60,v,30*m),new o([1,2,4,6,8,12],24,f,12*f),new c(x(1,32)),new c(x(1,31,3)),new c([1,8,15,22]),new c([1,15]),new _(x(0,12)),new _(x(0,12,2)),new _(x(0,12,4)),new _(x(0,12,6)),new o([1,2,5],10,b,1/0)])}return e(n,t),n}(l),a=function(){function e(t,e,n,r){this.precision=null!=t?t:\"auto\",this.use_scientific=null!=e?e:!0,this.power_limit_high=null!=n?n:5,this.power_limit_low=null!=r?r:-3,this.scientific_limit_low=Math.pow(10,r),this.scientific_limit_high=Math.pow(10,n),this.last_precision=3}return e.prototype.format=function(e){var n,r,i,o,s,a,l,u,p,h,c,_,d,f,g,m,y,v,b,w;if(0===e.length)return[];if(u=0,e.length>=2&&(u=Math.abs(e[1]-e[0])/1e4),o=!1,this.use_scientific)for(p=0,d=e.length;d>p;p++)if(s=e[p],a=Math.abs(s),a>u&&(a>=this.scientific_limit_high||a<=this.scientific_limit_low)){o=!0;break}if(t.isNumber(this.precision)){if(i=new Array(e.length),o)for(n=h=0,m=e.length;m>=0?m>h:h>m;n=m>=0?++h:--h)i[n]=e[n].toExponential(this.precision);else for(n=c=0,y=e.length;y>=0?y>c:c>y;n=y>=0?++c:--c)i[n]=e[n].toPrecision(this.precision).replace(/(\\.[0-9]*?)0+$/,\"$1\").replace(/\\.$/,\"\");return i}if(\"auto\"===this.precision)for(i=new Array(e.length),l=_=v=this.last_precision;15>=v?15>=_:_>=15;l=15>=v?++_:--_){if(r=!0,o){for(n=f=0,b=e.length;b>=0?b>f:f>b;n=b>=0?++f:--f)if(i[n]=e[n].toExponential(l),n>0&&i[n]===i[n-1]){r=!1;break}if(r)break}else{for(n=g=0,w=e.length;w>=0?w>g:g>w;n=w>=0?++g:--g)if(i[n]=e[n].toPrecision(l).replace(/(\\.[0-9]*?)0+$/,\"$1\").replace(/\\.$/,\"\"),n>0&&i[n]===i[n-1]){r=!1;break}if(r)break}if(r)return this.last_precision=l,i}return i},e}(),q=function(t){return r(\"%3dus\",Math.floor(1e3*(t%1)))},D=function(t){var e,n;return e=Math.floor(1e3*(t/1e3%1)),n=Math.floor(1e3*(t%1)),r(\"%3d.%3dms\",e,n)},O=function(t){var e,n;return e=new Date(t),n=e.getFullYear(),e.getMonth()>=7&&(n+=1),r(\"'%02d\",n%100)},E=function(t){var e,n;return e=new Date(t),n=e.getFullYear(),e.getMonth()>=7&&(n+=1),r(\"%d\",n)},F=function(t){return n(t,\"%Y %m %d %H %M %S\").split(/\\s+/).map(function(t){return parseInt(t,10)})},$=function(e,r){return t.isFunction(r)?r(e):n(e,r)},p=function(){function t(){var t,e,r,i,o,s,a,l;this._formats={microseconds:[q,D],milliseconds:[\"%3Nms\",\"%S.%3Ns\"],seconds:[\"%Ss\"],minsec:[\":%M:%S\"],minutes:[\":%M\",\"%Mm\"],hourmin:[\"%H:%M\"],hours:[\"%Hh\",\"%H:%M\"],days:[\"%m/%d\",\"%a%d\"],months:[\"%m/%Y\",\"%b%y\"],years:[\"%Y\",O,E]},this.formats={};for(e in this._formats){for(r=this._formats[e],o=[],s=n(new Date),a=0,l=r.length;l>a;a++)t=r[a],i=$(s,t).length,o.push(i);this.formats[e]=[o,r]}}return t.prototype.format_order=[\"microseconds\",\"milliseconds\",\"seconds\",\"minsec\",\"minutes\",\"hourmin\",\"hours\",\"days\",\"months\",\"years\"],t.prototype.strip_leading_zeros=!0,t.prototype._get_resolution_str=function(t,e){var n,r;return n=1.1*t,r=.001>n?\"microseconds\":1>n?\"milliseconds\":60>n?e>=60?\"minsec\":\"seconds\":3600>n?e>=3600?\"hourmin\":\"minutes\":86400>n?\"hours\":2678400>n?\"days\":31536e3>n?\"months\":\"years\"},t.prototype.format=function(t,e,n,r,i){var o,s,a,l,u,p,h,c,_,d,f,g,m,y,v,b,w,x,k,T,C,M,j,S,z,A,N,P,E;if(null==e&&(e=null),null==n&&(n=null),null==r&&(r=.3),null==i&&(i=null),0===t.length)return[];if(b=Math.abs(t[t.length-1]-t[0])/1e3,g=i?i.resolution:b/(t.length-1),m=this._get_resolution_str(g,b),N=this.formats[m],C=N[0],u=N[1],l=u[0],n){for(p=[],c=M=0,P=C.length;P>=0?P>M:M>P;c=P>=0?++M:--M)C[c]*t.length<r*n&&p.push(this.formats[c]);p.length>0&&(l=p[t.length-1])}for(_=[],y=this.format_order.indexOf(m),k={},E=this.format_order,j=0,z=E.length;z>j;j++)a=E[j],k[a]=0;for(k.seconds=5,k.minsec=4,k.minutes=4,k.hourmin=3,k.hours=3,S=0,A=t.length;A>S;S++){x=t[S];try{o=Date(x),T=F(x),v=$(x,l)}catch(D){s=D,console.log(s),console.log(\"Unable to convert tick for timestamp \"+x),_.push(\"ERR\");continue}for(h=!1,f=y;0===T[k[this.format_order[f]]]&&(f+=1,f!==this.format_order.length);){if((\"minsec\"===m||\"hourmin\"===m)&&!h){if(\"minsec\"===m&&0===T[4]&&0!==T[5]||\"hourmin\"===m&&0===T[3]&&0!==T[4]){d=this.formats[this.format_order[y-1]][1][0],v=$(x,d);break}h=!0}d=this.formats[this.format_order[f]][1][0],v=$(x,d)}this.strip_leading_zeros?(w=v.replace(/^0+/g,\"\"),w===v||\"\"!==w&&isFinite(w[0])||(w=\"0\"+w),_.push(w)):_.push(v)}return _},t}(),{BasicScale:s,DatetimeScale:h,BasicTickFormatter:a,DatetimeFormatter:p}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/guide/categorical_axis\",[\"backbone\",\"./axis\",\"common/ticking\",\"range/factor_range\"],function(t,n){var r,i,o,s,a,l,u,p;return s=function(){function t(){}return t.prototype.format=function(t){return t},t}(),a=function(){function t(){}return t.prototype.get_ticks=function(t,e,n,r){var i;return i=r.desired_n_ticks,n.get(\"factors\")},t}(),o=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),this.formatter=new s},n}(n.View),i=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=o,n.prototype.type=\"CategoricalAxis\",n.prototype.initialize=function(t,e){return e.scale=new a,n.__super__.initialize.call(this,t,e)},n.prototype._bounds=function(){var t,e,n,r,i;return t=this.get(\"dimension\"),n=[this.get_obj(\"plot\").get_obj(\"x_range\"),this.get_obj(\"plot\").get_obj(\"y_range\")],r=null!=(i=this.get(\"bounds\"))?i:\"auto\",\"auto\"!==r&&console.log(\"Categorical Axes only support user_bounds='auto', ignoring\"),e=[n[t].get(\"min\"),n[t].get(\"max\")]},n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(n.Model),r=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(t.Collection),{Model:i,Collection:new r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/guide/datetime_axis\",[\"backbone\",\"./axis\",\"common/ticking\"],function(t,n,r){var i,o,s,a,l,u;return s=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){return t.formatter=new r.DatetimeFormatter,n.__super__.initialize.call(this,t)},n}(n.View),o=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=s,n.prototype.type=\"DatetimeAxis\",n.prototype.initialize=function(t,e){return e.scale=new r.DatetimeScale,n.__super__.initialize.call(this,t,e)},n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(n.Model),i=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n.prototype.type=\"DatetimeAxis\",n}(t.Collection),{Model:o,Collection:new i,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/guide/grid\",[\"underscore\",\"common/safebind\",\"common/has_parent\",\"common/ticking\",\"renderer/properties\",\"common/plot_widget\"],function(t,n,r,i,o,s){var a,l,u,p,h,c,_;return p=o.line_properties,l=function(t){function r(){return h=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.grid_props=new p(this,null,\"grid_\")},r.prototype.render=function(){var t;return t=this.plot_view.ctx,t.save(),this._draw_grids(t),t.restore()},r.prototype.bind_bokeh_events=function(){return n(this,this.model,\"change\",this.request_render)},r.prototype._draw_grids=function(t){var e,n,r,i,o,s,a,l,u,p,h;if(this.grid_props.do_stroke)for(l=this.mget(\"grid_coords\"),i=l[0],o=l[1],this.grid_props.set(t,this),e=s=0,u=i.length;u>=0?u>s:s>u;e=u>=0?++s:--s){for(p=this.plot_view.map_to_screen(i[e],\"data\",o[e],\"data\"),n=p[0],r=p[1],t.beginPath(),t.moveTo(Math.round(n[0]),Math.round(r[0])),e=a=1,h=n.length;h>=1?h>a:a>h;e=h>=1?++a:--a)t.lineTo(Math.round(n[e]),Math.round(r[e]));t.stroke()}},r}(s),a=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=l,r.prototype.type=\"Grid\",r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.register_property(\"computed_bounds\",this._bounds,!1),this.add_dependencies(\"computed_bounds\",this,[\"bounds\"]),this.register_property(\"scale\",this._scale,!0),this.add_dependencies(\"scale\",this,[\"is_datetime\"]),this.register_property(\"grid_coords\",this._grid_coords,!1),this.add_dependencies(\"grid_coords\",this,[\"computed_bounds\",\"dimension\",\"scale\"])},r.prototype._scale=function(){return this.get(\"is_datetime\")?new i.DatetimeScale:new i.BasicScale},r.prototype._bounds=function(){var e,n,r,i,o,s,a,l;return n=this.get(\"dimension\"),r=(n+1)%2,o=[this.get_obj(\"plot\").get_obj(\"x_range\"),this.get_obj(\"plot\").get_obj(\"y_range\")],a=null!=(l=this.get(\"bounds\"))?l:\"auto\",i=[o[n].get(\"min\"),o[n].get(\"max\")],t.isArray(a)?(s=Math.min(a[0],a[1]),e=Math.max(a[0],a[1]),s<i[0]?s=i[0]:s>i[1]&&(s=null),e>i[1]?e=i[1]:e<i[0]&&(e=null)):(s=i[0],e=i[1]),[s,e]},r.prototype._grid_coords=function(){var t,e,n,r,i,o,s,a,l,u,p,h,c,_,d,f,g,m,y,v,b,w,x,k;for(l=this.get(\"dimension\"),p=(l+1)%2,g=[this.get_obj(\"plot\").get_obj(\"x_range\"),this.get_obj(\"plot\").get_obj(\"y_range\")],f=g[l],i=g[p],x=this.get(\"computed_bounds\"),m=x[0],a=x[1],v=Math.min(m,a),a=Math.max(m,a),m=v,y=this.get(\"scale\").get_ticks(m,a,f,{}),_=f.get(\"min\"),c=f.get(\"max\"),n=i.get(\"min\"),e=i.get(\"max\"),r=[[],[]],u=b=0,k=y.length;k>=0?k>b:b>k;u=k>=0?++b:--b)if(y[u]!==_&&y[u]!==c){for(o=[],s=[],t=2,d=w=0;t>=0?t>w:w>t;d=t>=0?++w:--w)h=n+(e-n)/(t-1)*d,o.push(y[u]),s.push(h);r[l].push(o),r[p].push(s)}return r},r.prototype.display_defaults=function(){return{level:\"underlay\",grid_line_color:\"#cccccc\",grid_line_width:1,grid_line_alpha:1,grid_line_join:\"miter\",grid_line_cap:\"butt\",grid_line_dash:[],grid_line_dash_offset:0}},r}(r),u=function(t){function n(){return _=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(Backbone.Collection),{Model:a,Collection:new u,View:l}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/guide/linear_axis\",[\"underscore\",\"backbone\",\"common/ticking\",\"./axis\"],function(t,n,r,i){var o,s,a,l,u,p;return a=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){return t.formatter=new r.BasicTickFormatter,n.__super__.initialize.call(this,t)},n}(i.View),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=a,n.prototype.type=\"LinearAxis\",n.prototype.initialize=function(t,e){return e.scale=new r.BasicScale,n.__super__.initialize.call(this,t,e)},n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(i.Model),o=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(n.Collection),{Model:s,Collection:new o,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"renderer/overlay/box_selection\",[\"underscore\",\"common/has_parent\",\"common/plot_widget\"],function(t,n,r){var i,o,s,a,l,u;return o=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(t){return this.selecting=!1,this.xrange=[null,null],this.yrange=[null,null],r.__super__.initialize.call(this,t),this.plot_view.$el.find(\".bokeh_canvas_wrapper\").append(this.$el)},r.prototype.boxselect=function(t,e){return this.xrange=t,this.yrange=e,this.request_render()},r.prototype.startselect=function(){return this.selecting=!0,this.xrange=[null,null],this.yrange=[null,null],this.request_render()},r.prototype.stopselect=function(){return this.selecting=!1,this.xrange=[null,null],this.yrange=[null,null],this.request_render()},r.prototype.bind_bokeh_events=function(){return this.toolview=this.plot_view.tools[this.mget(\"tool\").id],this.listenTo(this.toolview,\"boxselect\",this.boxselect),this.listenTo(this.toolview,\"startselect\",this.startselect),this.listenTo(this.toolview,\"stopselect\",this.stopselect)},r.prototype.render=function(){var e,n,r,i,o,s,a;return this.selecting?(o=this.xrange,a=this.yrange,t.any(t.map(o,t.isNullOrUndefined))||t.any(t.map(a,t.isNullOrUndefined))?(this.$el.removeClass(\"shading\"),void 0):(n=\"\",o?(i=this.plot_view.view_state.vx_to_sx(Math.min(o[0],o[1])),r=Math.abs(o[1]-o[0])):(i=0,r=this.plot_view.view_state.get(\"width\")),n+=\"; left:\"+i+\"px; width:\"+r+\"px; \",a?(s=this.plot_view.view_state.vy_to_sy(Math.max(a[0],a[1])),e=Math.abs(a[1]-a[0])):(s=0,e=this.plot_view.view_state.get(\"height\")),this.$el.addClass(\"shading\"),n+=\"top:\"+s+\"px; height:\"+e+\"px\",this.$el.attr(\"style\",n))):(this.$el.removeClass(\"shading\"),void 0)},r}(r),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=o,n.prototype.type=\"BoxSelection\",n.prototype.defaults=function(){return{tool:null,level:\"overlay\"}},n}(n),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(Backbone.Collection),{Model:i,Collection:new s,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"source/column_data_source\",[\"underscore\",\"backbone\",\"common/has_properties\"],function(t,n,r){var i,o,s,a;return i=function(n){function r(){return s=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"ColumnDataSource\",r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.cont_ranges={},this.discrete_ranges={}},r.prototype.getcolumn=function(t){var e;return null!=(e=this.get(\"data\")[t])?e:null},r.prototype.getcolumn_with_default=function(t){\" returns the column, with any undefineds replaced with default\";var e;return null!=(e=this.get(\"data\")[t])?e:null},r.prototype.get_length=function(){var e;return e=this.get(\"data\"),e[t.keys(e)[0]].length},r.prototype.columns=function(){return t.keys(this.get(\"data\"))},r.prototype.datapoints=function(){var e,n,r,i,o,s,a,l,u,p;for(e=this.get(\"data\"),r=t.keys(e),s=[],i=a=0,p=e[r[0]].length;p>=0?p>a:a>p;i=p>=0?++a:--a){for(o={},l=0,u=r.length;u>l;l++)n=r[l],o[n]=e[n][i];s.push(o)}return s},r.prototype.defaults=function(){return r.__super__.defaults.call(this)},r}(r),o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n.Collection),{Model:i,Collection:new o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"tool/tool\",[\"underscore\",\"common/plot_widget\",\"common/has_parent\"],function(t,n,r){var i,o,s,a;return o=function(n){function r(){return s=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t)},r.prototype.bind_bokeh_events=function(){var e,n,r,i,o=this;return e=this.plot_view.eventSink,r={eventBasename:this.cid},i=t.extend(r,this.evgen_options),n=new this.eventGeneratorClass(i),n.bind_bokeh_events(this.plot_view,e),t.each(this.tool_events,function(t,n){var r,i;return r=\"\"+o.cid+\":\"+n,i=function(e){return o[t](e)},e.on(r,i)}),this.evgen=n,{render:function(){}}},r}(n),i=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.display_defaults=function(){return{level:\"tool\"}},n}(r),{Model:i,View:o}})}.call(this),function(){n(\"tool/event_generators\",[],function(){var t,e,n,r;return r=function(t){var e,n,r;return n=$(t.currentTarget).offset(),e=null!=n?n.left:0,r=null!=n?n.top:0,t.bokehX=t.pageX-e,t.bokehY=t.pageY-r},n=function(){function t(t){this.restrict_to_innercanvas=t.restrict_to_innercanvas,this.options=t,this.toolName=this.options.eventBasename,this.dragging=!1,this.basepoint_set=!1,this.button_activated=!1,this.tool_active=!1}return t.prototype.bind_bokeh_events=function(t,e){var n,i=this;return n=this.toolName,this.plotview=t,this.eventSink=e,this.plotview.moveCallbacks.push(function(t){return i.dragging&&i.tool_active?(r(t),i.basepoint_set?(e.trigger(\"\"+n+\":UpdatingMouseMove\",t),t.preventDefault(),t.stopPropagation()):(i.dragging=!0,i.basepoint_set=!0,e.trigger(\"\"+n+\":SetBasepoint\",t))):void 0}),this.plotview.moveCallbacks.push(function(t,e,n){var o,s,a,l,u,p;if(i.dragging){if(r(t),o=i.plotview.view_state.get(\"inner_range_horizontal\"),s=i.plotview.view_state.get(\"inner_range_vertical\"),e=i.plotview.view_state.sx_to_vx(t.bokehX),n=i.plotview.view_state.sy_to_vy(t.bokehY),i.restrict_to_innercanvas?(l=o.get(\"start\"),a=o.get(\"end\"),p=s.get(\"start\"),u=s.get(\"end\")):(l=0,a=i.plotview.view_state.get(\"outer_width\"),p=0,u=i.plotview.view_state.get(\"outer_height\")),l>e||e>a)return i._stop_drag(t),!1;if(p>n||n>u)return i._stop_drag(t),!1}}),$(document).bind(\"keydown\",function(t){return 27===t.keyCode?e.trigger(\"clear_active_tool\"):void 0}),$(document).bind(\"keyup\",function(t){return t[i.options.keyName]?void 0:i._stop_drag(t)}),this.plotview.canvas_wrapper.bind(\"mousedown\",function(t){var e;return e=!1,i.button_activated||i.eventSink.active===i.toolName?e=!0:i.eventSink.active||(null!==i.options.keyName||t.ctrlKey||t.altKey||t.metaKey||t.shiftKey?t[i.options.keyName]===!0&&(e=!0):e=!0),e?(i._start_drag(),!1):void 0}),this.plotview.canvas_wrapper.bind(\"mouseup\",function(t){return i.button_activated?(i._stop_drag(t),!1):void 0}),this.plotview.canvas_wrapper.bind(\"mouseleave\",function(t){return i.button_activated?(i._stop_drag(t),!1):void 0}),this.$tool_button=$(\"<button class='btn btn-small'> \"+this.options.buttonText+\" </button>\"),this.plotview,this.plotview.$el.find(\".button_bar\").append(this.$tool_button),this.$tool_button.click(function(){return i.button_activated?e.trigger(\"clear_active_tool\"):e.trigger(\"active_tool\",n)}),e.on(\"\"+n+\":deactivated\",function(){return i.tool_active=!1,i.button_activated=!1,i.$tool_button.removeClass(\"active\")}),e.on(\"\"+n+\":activated\",function(){return i.tool_active=!0,i.$tool_button.addClass(\"active\"),i.button_activated=!0}),e},t.prototype.hide_button=function(){return this.$tool_button.hide()},t.prototype._start_drag=function(){return this._activated_with_button=this.button_activated,this.eventSink.trigger(\"active_tool\",this.toolName),this.dragging||(this.dragging=!0,this.button_activated||this.$tool_button.addClass(\"active\"),null==this.options.cursor)?void 0:this.plotview.canvas_wrapper.css(\"cursor\",this.options.cursor)},t.prototype._stop_drag=function(t){return this.basepoint_set=!1,this.dragging&&(this.dragging=!1,this._activated_with_button===!1&&this.options.auto_deactivate===!0&&this.eventSink.trigger(\"clear_active_tool\"),this.button_activated||this.$tool_button.removeClass(\"active\"),null!=this.options.cursor&&this.plotview.canvas_wrapper.css(\"cursor\",\"\"),r(t),this.eventSink.trigger(\"\"+this.options.eventBasename+\":DragEnd\",t)),this._activated_with_button=null},t}(),e=function(){function t(t){this.options=t,this.toolName=this.options.eventBasename,this.dragging=!1,this.basepoint_set=!1,this.button_activated=!1,this.tool_active=!1}return t.prototype.bind_bokeh_events=function(t,e){var n,i,o,s=this;return o=this.toolName,this.plotview=t,this.eventSink=e,this.plotview.canvas_wrapper.bind(\"mousewheel\",function(t,n){return s.tool_active||!s.eventSink.active&&t.shiftKey?(r(t),t.delta=n,e.trigger(\"\"+o+\":zoom\",t),t.preventDefault(),t.stopPropagation()):void 0}),$(document).bind(\"keydown\",function(t){return 27===t.keyCode?e.trigger(\"clear_active_tool\"):void 0}),this.plotview.$el.bind(\"mousein\",function(){return e.trigger(\"clear_active_tool\")}),this.plotview.$el.bind(\"mouseover\",function(){return s.mouseover_count+=1}),this.$tool_button=$(\"<button class='btn btn-small'> \"+this.options.buttonText+\" </button>\"),this.plotview.$el.find(\".button_bar\").append(this.$tool_button),this.$tool_button.click(function(){return s.button_activated?e.trigger(\"clear_active_tool\"):(e.trigger(\"active_tool\",o),s.button_activated=!0)}),n=function(t){return t.setAttribute(\"old_overflow\",t.style.overflow),t.style.overflow=\"hidden\",t!==document.body?n(t.parentNode):void 0},i=function(t){return t.style.overflow=t.getAttribute(\"old_overflow\"),t!==document.body?i(t.parentNode):void 0},e.on(\"\"+o+\":deactivated\",function(){return s.tool_active=!1,s.button_activated=!1,s.$tool_button.removeClass(\"active\"),document.body.style.overflow=s.old_overflow}),e.on(\"\"+o+\":activated\",function(){return s.tool_active=!0,s.$tool_button.addClass(\"active\")}),e},t.prototype.hide_button=function(){return this.$tool_button.hide()},t}(),t=function(){function t(t){this.options=t,this.toolName=this.options.eventBasename,this.button_activated=!1,this.tool_active=!1}return t.prototype.bind_bokeh_events=function(t,e){var n,r,i,o=this;return i=this.toolName,this.plotview=t,this.eventSink=e,$(document).bind(\"keydown\",function(t){return 27===t.keyCode?e.trigger(\"clear_active_tool\"):void 0}),this.plotview.$el.bind(\"mouseover\",function(){return o.mouseover_count+=1}),this.$tool_button=$(\"<button class='btn btn-small'> \"+this.options.buttonText+\" </button>\"),this.plotview.$el.find(\".button_bar\").append(this.$tool_button),this.$tool_button.click(function(){return o.button_activated?e.trigger(\"clear_active_tool\"):(e.trigger(\"active_tool\",i),o.button_activated=!0)}),n=function(t){return t.setAttribute(\"old_overflow\",t.style.overflow),t.style.overflow=\"hidden\",t!==document.body?n(t.parentNode):void 0},r=function(t){return t.style.overflow=t.getAttribute(\"old_overflow\"),t!==document.body?r(t.parentNode):void 0},e.on(\"\"+i+\":deactivated\",function(){return o.tool_active=!1,o.button_activated=!1,o.$tool_button.removeClass(\"active\"),document.body.style.overflow=o.old_overflow}),e.on(\"\"+i+\":activated\",function(){return o.tool_active=!0,o.$tool_button.addClass(\"active\")}),e},t.prototype.hide_button=function(){return this.$tool_button.hide()},t}(),{TwoPointEventGenerator:n,OnePointWheelEventGenerator:e,ButtonEventGenerator:t}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"tool/box_select_tool\",[\"underscore\",\"backbone\",\"./tool\",\"./event_generators\"],function(n,r,i,o){var s,a,l,u,p,h,c;return u=o.TwoPointEventGenerator,a=function(r){function i(){return p=i.__super__.constructor.apply(this,arguments)}return e(i,r),i.prototype.initialize=function(t){return i.__super__.initialize.call(this,t),this.select_every_mousemove=this.mget(\"select_every_mousemove\")},i.prototype.bind_bokeh_events=function(){var t,e,n,r,o,s;for(i.__super__.bind_bokeh_events.call(this),o=this.mget_obj(\"renderers\"),s=[],n=0,r=o.length;r>n;n++)t=o[n],e=this.plot_view.renderers[t.id],this.listenTo(e.xrange(),\"change\",this.select_callback),this.listenTo(e.yrange(),\"change\",this.select_callback),s.push(this.listenTo(t,\"change\",this.select_callback));return s},i.prototype.eventGeneratorClass=u,i.prototype.toolType=\"BoxSelectTool\",i.prototype.evgen_options={keyName:\"shiftKey\",buttonText:\"Select\",cursor:\"crosshair\",restrict_to_innercanvas:!0},i.prototype.tool_events={SetBasepoint:\"_start_selecting\",UpdatingMouseMove:\"_selecting\",deactivated:\"_stop_selecting\",DragEnd:\"_dragend\"},i.prototype.pause=function(){return null},i.prototype.view_coords=function(t,e){var n,r,i;return i=[this.plot_view.view_state.sx_to_vx(t),this.plot_view.view_state.sy_to_vy(e)],n=i[0],r=i[1],[n,r]},i.prototype._stop_selecting=function(){return this.trigger(\"stopselect\"),this.basepoint_set=!1,this.plot_view.unpause()},i.prototype._start_selecting=function(t){var e,n,r;\n",
" return this.plot_view.pause(),this.trigger(\"startselect\"),r=this.view_coords(t.bokehX,t.bokehY),e=r[0],n=r[1],this.mset({start_vx:e,start_vy:n,current_vx:null,current_vy:null}),this.basepoint_set=!0},i.prototype._get_selection_range=function(){var t,e;return this.mget(\"select_x\")?(t=[this.mget(\"start_vx\"),this.mget(\"current_vx\")],t=[n.min(t),n.max(t)]):t=null,this.mget(\"select_y\")?(e=[this.mget(\"start_vy\"),this.mget(\"current_vy\")],e=[n.min(e),n.max(e)]):e=null,[t,e]},i.prototype._selecting=function(t){var e,n,r,i;return r=this.view_coords(t.bokehX,t.bokehY),e=r[0],n=r[1],this.mset({current_vx:e,current_vy:n}),i=this._get_selection_range(),this.xrange=i[0],this.yrange=i[1],this.trigger(\"boxselect\",this.xrange,this.yrange),this.select_every_mousemove&&this._select_data(),this.plot_view.render_overlays(!0),null},i.prototype._dragend=function(){return this._select_data()},i.prototype._select_data=function(){var e,r,i,o,s,a,l,u,p,h,c,_,d,f,g,m;if(this.basepoint_set){for(a={type:\"rect\",vx0:this.xrange[0],vx1:this.xrange[1],vy0:this.yrange[0],vy1:this.yrange[1]},o={},i={},g=this.mget_obj(\"renderers\"),c=0,d=g.length;d>c;c++)u=g[c],e=u.get_obj(\"data_source\"),o[e.id]=e;for(m=this.mget_obj(\"renderers\"),_=0,f=m.length;f>_;_++)u=m[_],r=u.get_obj(\"data_source\").id,n.setdefault(i,r,[]),p=this.plot_view.renderers[u.id].hit_test(a),i[r].push(p);for(l in i)t.call(i,l)&&(h=i[l],p=n.intersection.apply(n,h),s=o[l],s.save({selected:p},{patch:!0}),this.plot_view.unpause());return null}},i}(i.View),s=function(t){function r(){return h=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype.default_view=a,r.prototype.type=\"BoxSelectTool\",r.prototype.defaults=function(){return n.extend(r.__super__.defaults.call(this),{renderers:[],select_x:!0,select_y:!0,select_every_mousemove:!1,data_source_options:{}})},r.prototype.display_defaults=function(){return r.__super__.display_defaults.call(this)},r}(i.Model),l=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(r.Collection),{Model:s,Collection:new l,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"tool/box_zoom_tool\",[\"underscore\",\"backbone\",\"./tool\",\"./event_generators\"],function(t,n,r,i){var o,s,a,l,u,p,h;return l=i.TwoPointEventGenerator,s=function(n){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t)},r.prototype.bind_bokeh_events=function(){return r.__super__.bind_bokeh_events.call(this)},r.prototype.eventGeneratorClass=l,r.prototype.toolType=\"BoxZoomTool\",r.prototype.evgen_options={keyName:\"ctrlKey\",buttonText:\"Box Zoom\",cursor:\"crosshair\",auto_deactivate:!0,restrict_to_innercanvas:!0},r.prototype.tool_events={SetBasepoint:\"_start_selecting\",UpdatingMouseMove:\"_selecting\",DragEnd:\"_dragend\"},r.prototype.pause=function(){return null},r.prototype.view_coords=function(t,e){var n,r,i;return i=[this.plot_view.view_state.sx_to_vx(t),this.plot_view.view_state.sy_to_vy(e)],n=i[0],r=i[1],[n,r]},r.prototype._start_selecting=function(t){var e,n,r;return this.plot_view.pause(),this.trigger(\"startselect\"),r=this.view_coords(t.bokehX,t.bokehY),e=r[0],n=r[1],this.mset({start_vx:e,start_vy:n,current_vx:null,current_vy:null}),this.basepoint_set=!0},r.prototype._get_selection_range=function(){var e,n;return this.mget(\"select_x\")?(e=[this.mget(\"start_vx\"),this.mget(\"current_vx\")],e=[t.min(e),t.max(e)]):e=null,this.mget(\"select_y\")?(n=[this.mget(\"start_vy\"),this.mget(\"current_vy\")],n=[t.min(n),t.max(n)]):n=null,[e,n]},r.prototype._selecting=function(t){var e,n,r,i;return r=this.view_coords(t.bokehX,t.bokehY),e=r[0],n=r[1],this.mset({current_vx:e,current_vy:n}),i=this._get_selection_range(),this.xrange=i[0],this.yrange=i[1],this.trigger(\"boxselect\",this.xrange,this.yrange),this.plot_view.render_overlays(!0),null},r.prototype._dragend=function(){return this._select_data(),this.basepoint_set=!1,this.plot_view.unpause(),this.trigger(\"stopselect\")},r.prototype._select_data=function(){var t,e,n,r,i,o,s;if(this.basepoint_set)return o=this.plot_view.xmapper.v_map_from_target([this.xrange[0],this.xrange[1]]),e=o[0],t=o[1],s=this.plot_view.ymapper.v_map_from_target([this.yrange[0],this.yrange[1]]),r=s[0],n=s[1],i={xr:{start:e,end:t},yr:{start:r,end:n}},this.plot_view.update_range(i)},r}(r.View),o=function(n){function r(){return p=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type=\"BoxZoomTool\",r.prototype.defaults=function(){return t.extend(r.__super__.defaults.call(this),{renderers:[],select_x:!0,select_y:!0,select_every_mousemove:!1,data_source_options:{}})},r.prototype.display_defaults=function(){return r.__super__.display_defaults.call(this)},r}(r.Model),a=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new a,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"tool/crosshair_tool\",[\"underscore\",\"backbone\",\"./tool\",\"./event_generators\",\"sprintf\"],function(t,n,r,i,o){var s,a,l,u,p,h,c;return u=i.TwoPointEventGenerator,a=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.active=!1},n.prototype.bind_events=function(t){return n.__super__.bind_events.call(this,t)},n.prototype.eventGeneratorClass=u,n.prototype.toolType=\"CrosshairTool\",n.prototype.evgen_options={keyName:\"\",buttonText:\"Crosshair\",cursor:\"crosshair\"},n.prototype.tool_events={activated:\"_activate\",deactivated:\"_deactivate\",UpdatingMouseMove:\"_drag\",SetBasepoint:\"_set_base_point\"},n.prototype.render=function(){var t,e,n,r;if(this.active)return e=this.plot_view.ctx,n=this.plot_view.view_state.get(\"canvas_width\"),t=this.plot_view.view_state.get(\"canvas_height\"),r=1,e.save(),e.strokeStyle=\"red\",e.globalAlpha=.7,e.lineWidth=r,e.setLineDash([]),e.beginPath(),e.moveTo(0,this.y),e.lineTo(n,this.y),console.log(this.x,this.y),e.moveTo(this.x,0),e.lineTo(this.x,t),e.stroke(),e.restore()},n.prototype.mouse_coords=function(t,e,n){return[e,n]},n.prototype._activate=function(){var t,e,n;if(!this.active)return this.active=!0,this.popup=$('<div class=\"resize_popup pull-right\"\\nstyle=\"border-radius: 10px; background-color: lightgrey; padding:3px 8px; font-size: 14px;\\nposition:absolute; right:20px; top: 20px; \"></div>'),t=this.plot_view.$el.find(\".bokeh_canvas_wrapper\"),this.popup.appendTo(t),e=this.plot_view.view_state.get(\"outer_height\"),n=this.plot_view.view_state.get(\"outer_width\"),this.popup.text(\"x: 0 y:0\"),this.plot_view.$el.css(\"cursor\",\"crosshair\"),null},n.prototype._deactivate=function(){return this.active=!1,this.plot_view.$el.css(\"cursor\",\"default\"),this.popup.remove(),this.request_render(),this.plot_view.request_render(),null},n.prototype._set_base_point=function(t){var e;return e=this.mouse_coords(t,t.bokehX,t.bokehY),this.x=e[0],this.y=e[1],null},n.prototype._drag=function(t){var e,n,r;return this.plot_view.pause(),r=this.mouse_coords(t,t.bokehX,t.bokehY),this.x=r[0],this.y=r[1],e=o(\"%.4f\",this.plot_view.xmapper.map_from_target(x)),n=o(\"%.4f\",this.plot_view.ymapper.map_from_target(y)),this.popup.text(\"x: \"+e+\" y: \"+n),this.request_render(),this.plot_view.request_render(),this.plot_view.unpause(!0),null},n}(r.View),s=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=a,n.prototype.type=\"CrosshairTool\",n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(r.Model),l=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(n.Collection),{Model:s,Collection:new l,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"tool/data_range_box_select_tool\",[\"underscore\",\"backbone\",\"./box_select_tool\"],function(t,n,r){var i,o,s,a,l,u;return o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.bind_bokeh_events=function(){return tool.ToolView.prototype.bind_bokeh_events.call(this)},n.prototype._select_data=function(){var t,e,n,r,i,o;return i=this.plot_view.mapper.map_from_target(this.xrange[0],this.yrange[0]),e=i[0],r=i[1],o=this.plot_view.mapper.map_from_target(this.xrange[1],this.yrange[1]),t=o[0],n=o[1],this.mset(\"xselect\",[e,t]),this.mset(\"yselect\",[r,n]),this.model.save()},n}(r.View),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=o,n.prototype.type=\"DataRangeBoxSelectTool\",n}(r.Model),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(n.Collection),{Model:i,Collection:new s,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"tool/embed_tool\",[\"underscore\",\"backbone\",\"./tool\",\"./event_generators\"],function(t,n,r,i){var o,s,a,l,u,p,h,c;return o=i.ButtonEventGenerator,u=function(t){return t.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\\\"/g,\"&quot;\").replace(/\\'/g,\"&#39;\")},a=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t)},n.prototype.eventGeneratorClass=o,n.prototype.evgen_options={buttonText:\"Embed Html\"},n.prototype.toolType=\"EmbedTool\",n.prototype.tool_events={activated:\"_activated\",deactivated:\"_close_modal\"},n.prototype._activated=function(){var t,e,n,r,i,o,s=this;return console.log(\"EmbedToolView._activated\"),window.tool_view=this,i=this.plot_model.get(\"id\"),n=this.plot_model.get(\"doc\"),e=this.plot_model.get(\"docapikey\"),t=this.plot_model.get(\"baseurl\"),o=u(this.plot_model.get(\"script_inject_snippet\")),r='<div id=\"embedModal\" class=\"bokeh\">\\n <div class=\"modal\" role=\"dialog\" aria-labelledby=\"embedLabel\" aria-hidden=\"true\">\\n <div class=\"modal-header\">\\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">\u00d7</button>\\n <h3 id=\"dataConfirmLabel\"> HTML Embed code</h3></div><div class=\"modal-body\">\\n <div class=\"modal-body\">\\n '+o+'\\n </div>\\n </div>\\n <div class=\"modal-footer\">\\n <button class=\"btn\" data-dismiss=\"modal\" aria-hidden=\"true\">Close</button>\\n </div>\\n </div>\\n</div>',$(\"body\").append(r),$(\"#embedModal > .modal\").on(\"hidden\",function(){return s.plot_view.eventSink.trigger(\"clear_active_tool\")}),$(\"#embedModal > .modal\").modal({show:!0})},n.prototype._close_modal=function(){return $(\"#embedModal\").remove(),$(\"#embedModal > .modal\").remove()},n}(r.View),s=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=a,n.prototype.type=\"EmbedTool\",n}(r.Model),l=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(n.Collection),{Model:s,Collection:new l,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"tool/hover_tool\",[\"underscore\",\"backbone\",\"sprintf\",\"./tool\"],function(t,n,r,i){var o,s,a,l,u,p,h,c;return l=function(t){var e,n,r,i,o;return\"#\"===t.substr(0,1)?t:(n=/(.*?)rgb\\((\\d+), (\\d+), (\\d+)\\)/.exec(t),i=parseInt(n[2]),r=parseInt(n[3]),e=parseInt(n[4]),o=e|r<<8|i<<16,n[1]+\"#\"+o.toString(16))},u=function(t){return\"string\"==typeof t?t:Math.floor(t)===t?r(\"%d\",t):Math.abs(t)>.1&&Math.abs(t)<1e3?r(\"%0.3f\",t):r(\"%0.3e\",t)},s=function(n){function r(){return p=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.div=$('<div class=\"bokeh_tooltip\" />').appendTo(\"body\"),this.div.hide(),this.active=!1},r.prototype.bind_bokeh_events=function(){var t,e=this;return t=\"hover_tool\",this.tool_button=$(\"<button class='btn btn-small'> Hover </button>\"),this.plot_view.$el.find(\".button_bar\").append(this.tool_button),this.tool_button.click(function(){return e.active?e.plot_view.eventSink.trigger(\"clear_active_tool\"):e.plot_view.eventSink.trigger(\"active_tool\",t)}),this.plot_view.eventSink.on(\"\"+t+\":deactivated\",function(){return e.active=!1,e.tool_button.removeClass(\"active\"),e.div.hide()}),this.plot_view.eventSink.on(\"\"+t+\":activated\",function(){return e.active=!0,e.tool_button.addClass(\"active\")}),this.plot_view.canvas.bind(\"mousemove\",function(t){var n,r,i,o,s,a,l,u,p,h,c,_;if(e.active)return o=$(t.currentTarget).offset(),i=null!=o?o.left:0,s=null!=o?o.top:0,t.bokehX=t.pageX-i,t.bokehY=t.pageY-s,_=e.view_coords(t.bokehX,t.bokehY),a=_[0],l=_[1],n=e.plot_view.view_state.get(\"inner_range_horizontal\"),r=e.plot_view.view_state.get(\"inner_range_vertical\"),p=n.get(\"start\"),u=n.get(\"end\"),c=r.get(\"start\"),h=r.get(\"end\"),p>a||a>u||c>l||l>h?(e.div.hide(),void 0):e._select(a,l,t)}),this.plot_view.canvas_wrapper.css(\"cursor\",\"crosshair\")},r.prototype.view_coords=function(t,e){var n,r,i;return i=[this.plot_view.view_state.sx_to_vx(t),this.plot_view.view_state.sy_to_vy(e)],n=i[0],r=i[1],[n,r]},r.prototype._select=function(e,n,r){var i,o,s,a,p,h,c,_,d,f,g,m,y,v,b,w,x,k,T,C,M,j,S,z,A,N,P,F,E,D,O,q,B,R,L,U;for(g={type:\"point\",vx:e,vy:n},N=this.plot_view.xmapper.map_from_target(e),P=this.plot_view.ymapper.map_from_target(n),_={},c={},q=this.mget_obj(\"renderers\"),F=0,D=q.length;D>F;F++)x=q[F],p=x.get_obj(\"data_source\"),_[p.id]=p;for(B=this.mget_obj(\"renderers\"),E=0,O=B.length;O>E;E++)if(x=B[E],h=x.get_obj(\"data_source\").id,t.setdefault(c,h,[]),T=this.plot_view.renderers[x.id].hit_test(g),d=_[h],null!==T){if(T.length>0){y=T[0],this.div.empty(),j=$(\"<table></table>\"),R=this.mget(\"tooltips\");for(v in R){if(A=R[v],k=$(\"<tr></tr>\"),k.append($(\"<td class='bokeh_tooltip_row_label'>\"+v+\": </td>\")),S=$(\"<td class='bokeh_tooltip_row_value'></td>\"),A.indexOf(\"$color\")>=0){if(L=A.match(/\\$color(\\[.*\\])?:(\\w*)/),b=L[0],w=L[1],i=L[2],s=d.getcolumn(i),null==s){C=$(\"<span>\"+i+\" unknown</span>\"),S.append(C);continue}if(m=(null!=w?w.indexOf(\"hex\"):void 0)>=0,M=(null!=w?w.indexOf(\"swatch\"):void 0)>=0,o=s[y],null==o){C=$(\"<span>(null)</span>\"),S.append(C);continue}m&&(o=l(o)),C=$(\"<span>\"+o+\"</span>\"),S.append(C),M&&(C=$(\"<span class='bokeh_tooltip_color_block'> </span>\"),C.css({backgroundColor:o})),S.append(C)}else{for(A=A.replace(\"$index\",\"\"+y),A=A.replace(\"$x\",\"\"+u(N)),A=A.replace(\"$y\",\"\"+u(P)),A=A.replace(\"$vx\",\"\"+e),A=A.replace(\"$vy\",\"\"+n),A=A.replace(\"$sx\",\"\"+r.bokehX),A=A.replace(\"$sy\",\"\"+r.bokehY);A.indexOf(\"@\")>=0;){if(U=A.match(/(@)(\\w*)/),b=U[0],z=U[1],a=U[2],s=d.getcolumn(a),null==s){A=A.replace(a,\"\"+a+\" unknown\");break}s=d.getcolumn(a),f=s[y],A=\"number\"==typeof f?A.replace(b,\"\"+u(f)):A.replace(b,\"\"+f)}C=$(\"<span>\"+A+\"</span>\"),S.append(C)}k.append(S),j.append(k)}this.div.append(j),this.div.css({top:r.pageY-this.div.height()/2,left:r.pageX+18}),this.div.show();break}this.div.hide(),c[h].push(T)}return null},r}(i.View),o=function(n){function r(){return h=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type=\"HoverTool\",r.prototype.dinitialize=function(t,e){var n;return r.__super__.dinitialize.call(this,t,e),this.set(\"renderers\",function(){var t,e,r,i;for(r=this.get_obj(\"plot\").get(\"renderers\"),i=[],t=0,e=r.length;e>t;t++)n=r[t],\"Glyph\"===n.type&&i.push(n);return i}.call(this))},r.prototype.defaults=function(){return t.extend(r.__super__.defaults.call(this),{renderers:[],tooltips:{index:\"$index\",\"data (x, y)\":\"($x, $y)\",\"canvas (x, y)\":\"($sx, $sy)\"}})},r.prototype.display_defaults=function(){return r.__super__.display_defaults.call(this)},r}(i.Model),a=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new a,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"tool/pan_tool\",[\"underscore\",\"backbone\",\"./tool\",\"./event_generators\"],function(t,n,r,i){var o,s,a,l,u,p,h;return l=i.TwoPointEventGenerator,window.render_count=0,s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t)},n.prototype.bind_bokeh_events=function(){return n.__super__.bind_bokeh_events.call(this)},n.prototype.eventGeneratorClass=l,n.prototype.toolType=\"PanTool\",n.prototype.evgen_options={keyName:null,buttonText:\"Pan\",cursor:\"move\",auto_deactivate:!0,restrict_to_innercanvas:!0},n.prototype.tool_events={UpdatingMouseMove:\"_drag\",SetBasepoint:\"_set_base_point\"},n.prototype.mouse_coords=function(t,e,n){var r,i,o;return o=[this.plot_view.view_state.sx_to_vx(e),this.plot_view.view_state.sy_to_vy(n)],r=o[0],i=o[1],[r,i]},n.prototype._set_base_point=function(t){var e;return e=this.mouse_coords(t,t.bokehX,t.bokehY),this.x=e[0],this.y=e[1],null},n.prototype._drag=function(t){var e,n,r,i,o,s,a,l,u,p,h,c,_,d,f,g,m;return g=this.mouse_coords(t,t.bokehX,t.bokehY),s=g[0],h=g[1],a=s-this.x,c=h-this.y,m=[s,h],this.x=m[0],this.y=m[1],u=this.plot_view.view_state.get(\"inner_range_horizontal\"),r=u.get(\"start\")-a,n=u.get(\"end\")-a,d=this.plot_view.view_state.get(\"inner_range_vertical\"),o=d.get(\"start\")-c,i=d.get(\"end\")-c,p=this.plot_view.xmapper.map_from_target(r),l=this.plot_view.xmapper.map_from_target(n),f=this.plot_view.ymapper.map_from_target(o),_=this.plot_view.ymapper.map_from_target(i),e={xr:{start:p,end:l},yr:{start:f,end:_},sdx:-a,sdy:c},this.plot_view.update_range(e),null},n}(r.View),o=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=s,n.prototype.type=\"PanTool\",n.prototype.defaults=function(){return{dimensions:[]}},n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(r.Model),a=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new a,View:s}})}.call(this),n(\"modal\",[\"jquery\"],function(t){function e(){var e=this,r=setTimeout(function(){e.$element.off(t.support.transition.end),n.call(e)},500);this.$element.one(t.support.transition.end,function(){clearTimeout(r),n.call(e)})}function n(){this.$element.hide().trigger(\"hidden\"),r.call(this)}function r(e){var n=this.$element.hasClass(\"fade\")?\"fade\":\"\";if(this.isShown&&this.options.backdrop){var r=t.support.transition&&n;this.$backdrop=t('<div class=\"modal-backdrop '+n+'\" />').appendTo(document.body),\"static\"!=this.options.backdrop&&this.$backdrop.click(t.proxy(this.hide,this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass(\"in\"),r?this.$backdrop.one(t.support.transition.end,e):e()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass(\"in\"),t.support.transition&&this.$element.hasClass(\"fade\")?this.$backdrop.one(t.support.transition.end,t.proxy(i,this)):i.call(this)):e&&e()}function i(){this.$backdrop.remove(),this.$backdrop=null}function o(){var e=this;this.isShown&&this.options.keyboard?t(document).on(\"keyup.dismiss.modal\",function(t){27==t.which&&e.hide()}):this.isShown||t(document).off(\"keyup.dismiss.modal\")}var s=function(e,n){this.options=n,this.$element=t(e).delegate('[data-dismiss=\"modal\"]',\"click.dismiss.modal\",t.proxy(this.hide,this))};s.prototype={constructor:s,toggle:function(){return this[this.isShown?\"hide\":\"show\"]()},show:function(){var e=this,n=t.Event(\"show\");this.$element.trigger(n),this.isShown||n.isDefaultPrevented()||(t(\"body\").addClass(\"modal-open\"),this.isShown=!0,o.call(this),r.call(this,function(){var n=t.support.transition&&e.$element.hasClass(\"fade\");e.$element.parent().length||e.$element.appendTo(document.body),e.$element.show(),n&&e.$element[0].offsetWidth,e.$element.addClass(\"in\"),n?e.$element.one(t.support.transition.end,function(){e.$element.trigger(\"shown\")}):e.$element.trigger(\"shown\")}))},hide:function(r){r&&r.preventDefault(),r=t.Event(\"hide\"),this.$element.trigger(r),this.isShown&&!r.isDefaultPrevented()&&(this.isShown=!1,t(\"body\").removeClass(\"modal-open\"),o.call(this),this.$element.removeClass(\"in\"),t.support.transition&&this.$element.hasClass(\"fade\")?e.call(this):n.call(this))}},t.fn.modal=function(e){return this.each(function(){var n=t(this),r=n.data(\"modal\"),i=t.extend({},t.fn.modal.defaults,n.data(),\"object\"==typeof e&&e);r||n.data(\"modal\",r=new s(this,i)),\"string\"==typeof e?r[e]():i.show&&r.show()})},t.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},t.fn.modal.Constructor=s}),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"tool/preview_save_tool\",[\"underscore\",\"jquery\",\"modal\",\"backbone\",\"common/bulk_save\",\"./tool\",\"./event_generators\"],function(t,n,r,i,o,s,a){var l,u,p,h,c,_,d;return l=a.ButtonEventGenerator,p=function(t){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t)},r.prototype.eventGeneratorClass=l,r.prototype.evgen_options={buttonText:\"Preview/Save\"},r.prototype.toolType=\"PreviewSaveTool\",r.prototype.tool_events={activated:\"_activated\",deactivated:\"_close_modal\"},r.prototype._activated=function(){var t,e,r=this;return t=this.plot_view.canvas[0].toDataURL(),this.plot_model.set(\"png\",this.plot_view.canvas[0].toDataURL()),e='<div id=\\'previewModal\\' class=\\'bokeh\\'>\\n <div class=\"modal\" role=\"dialog\" aria-labelledby=\"previewLabel\" aria-hidden=\"true\">\\n <div class=\"modal-header\">\\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">\u00d7</button>\\n <h3 id=\"dataConfirmLabel\">Image Preview (right click to save)</h3></div><div class=\"modal-body\">\\n <div class=\"modal-body\">\\n <img src=\"'+t+'\" style=\"max-height: 300px; max-width: 400px\">\\n </div>\\n </div><div class=\"modal-footer\">\\n <button class=\"btn\" data-dismiss=\"modal\" aria-hidden=\"true\">Close</button>\\n </div>\\n </div>\\n</div>',n(\"body\").append(e),n(\"#previewModal .modal\").on(\"hidden\",function(){return r.plot_view.eventSink.trigger(\"clear_active_tool\")}),n(\"#previewModal > .modal\").modal({show:!0})},r.prototype._close_modal=function(){return n(\"#previewModal\").remove(),n(\"#previewModal > .modal\").remove()},r}(s.View),u=function(t){function n(){return _=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=p,n.prototype.type=\"PreviewSaveTool\",n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(s.Model),h=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=u,n}(i.Collection),{Model:u,Collection:new h,View:p}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"tool/reset_tool\",[\"underscore\",\"backbone\",\"./tool\",\"./event_generators\"],function(t,n,r,i){var o,s,a,l,u,p,h;return o=i.ButtonEventGenerator,a=function(n){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t)},r.prototype.eventGeneratorClass=o,r.prototype.evgen_options={buttonText:\"Reset View\"},r.prototype.toolType=\"ResetTool\",r.prototype.tool_events={activated:\"_activated\"},r.prototype._activated=function(){var e=this;return this.plot_view.update_range(),t.delay(function(){return e.plot_view.eventSink.trigger(\"clear_active_tool\")},100)},r}(r.View),s=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=a,n.prototype.type=\"ResetTool\",n}(r.Model),l=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(n.Collection),{Model:s,Collection:new l,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"tool/resize_tool\",[\"underscore\",\"backbone\",\"./tool\",\"./event_generators\"],function(t,n,r,i){var o,s,a,l,u,p,h;return l=i.TwoPointEventGenerator,s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.active=!1},n.prototype.bind_events=function(t){return n.__super__.bind_events.call(this,t)},n.prototype.eventGeneratorClass=l,n.prototype.toolType=\"ResizeTool\",n.prototype.evgen_options={keyName:\"\",buttonText:\"Resize\",cursor:\"move\"},n.prototype.tool_events={activated:\"_activate\",deactivated:\"_deactivate\",UpdatingMouseMove:\"_drag\",SetBasepoint:\"_set_base_point\"},n.prototype.render=function(){var t,e,n,r;if(this.active)return e=this.plot_view.ctx,n=this.plot_view.view_state.get(\"canvas_width\"),t=this.plot_view.view_state.get(\"canvas_height\"),r=8,e.save(),e.strokeStyle=\"grey\",e.globalAlpha=.7,e.lineWidth=r,e.setLineDash([]),e.beginPath(),e.rect(r,r,n-2*r,t-2*r),e.moveTo(r,r),e.lineTo(n-r,t-r),e.moveTo(r,t-r),e.lineTo(n-r,r),e.stroke(),e.restore()},n.prototype.mouse_coords=function(t,e,n){return[e,n]},n.prototype._activate=function(){var t,e,n;if(!this.active)return this.active=!0,this.popup=$('<div class=\"resize_popup pull-right\"\\nstyle=\"border-radius: 10px; background-color: lightgrey; padding:3px 8px; font-size: 14px;\\nposition:absolute; right:20px; top: 20px; \"></div>'),t=this.plot_view.$el.find(\".bokeh_canvas_wrapper\"),this.popup.appendTo(t),e=this.plot_view.view_state.get(\"outer_height\"),n=this.plot_view.view_state.get(\"outer_width\"),this.popup.text(\"width: \"+n+\" height: \"+e),this.request_render(),this.plot_view.request_render(),null},n.prototype._deactivate=function(){return this.active=!1,this.popup.remove(),this.request_render(),this.plot_view.request_render(),null},n.prototype._set_base_point=function(t){var e;return e=this.mouse_coords(t,t.bokehX,t.bokehY),this.x=e[0],this.y=e[1],null},n.prototype._drag=function(t){var e,n,r,i,o,s,a,l;return this.plot_view.pause(),a=this.mouse_coords(t,t.bokehX,t.bokehY),r=a[0],o=a[1],i=r-this.x,s=o-this.y,l=[r,o],this.x=l[0],this.y=l[1],e=this.plot_view.view_state.get(\"outer_height\"),n=this.plot_view.view_state.get(\"outer_width\"),this.popup.text(\"width: \"+n+\" height: \"+e),this.plot_view.view_state.set(\"outer_height\",e+s,{silent:!0}),this.plot_view.view_state.set(\"outer_width\",n+i,{silent:!0}),this.plot_view.view_state.set(\"canvas_height\",e+s,{silent:!0}),this.plot_view.view_state.set(\"canvas_width\",n+i,{silent:!0}),this.plot_view.view_state.trigger(\"change:outer_height\",e+s),this.plot_view.view_state.trigger(\"change:outer_width\",n+i),this.plot_view.view_state.trigger(\"change:canvas_height\",e+s),this.plot_view.view_state.trigger(\"change:canvas_width\",n+i),this.plot_view.view_state.trigger(\"change\",this.plot_view.view_state),this.plot_view.unpause(!0),null},n}(r.View),o=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=s,n.prototype.type=\"ResizeTool\",n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(r.Model),a=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new a,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"tool/wheel_zoom_tool\",[\"underscore\",\"backbone\",\"./tool\",\"./event_generators\"],function(t,n,r,i){var o,s,a,l,u,p,h;return o=i.OnePointWheelEventGenerator,a=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t)},n.prototype.eventGeneratorClass=o,n.prototype.evgen_options={buttonText:\"WheelZoom\"},n.prototype.tool_events={zoom:\"_zoom\"},n.prototype.mouse_coords=function(t,e,n){var r,i,o;return o=[this.plot_view.view_state.sx_to_vx(e),this.plot_view.view_state.sy_to_vy(n)],r=o[0],i=o[1],[r,i]},n.prototype._zoom=function(t){var e,n,r,i,o,s,a,l,u,p,h,c,_,d,f,g,m,y,v,b,w;return e=t.originalEvent.wheelDelta,r=t.bokehX,i=t.bokehY,v=this.mouse_coords(t,r,i),p=v[0],d=v[1],o=this.mget(\"speed\"),n=o*e,n>.9?n=.9:-.9>n&&(n=-.9),c=this.plot_view.view_state.get(\"inner_range_horizontal\"),a=c.get(\"start\"),s=c.get(\"end\"),g=this.plot_view.view_state.get(\"inner_range_vertical\"),u=g.get(\"start\"),l=g.get(\"end\"),b=this.plot_view.xmapper.v_map_from_target([a-(a-p)*n,s-(s-p)*n]),_=b[0],h=b[1],w=this.plot_view.ymapper.v_map_from_target([u-(u-d)*n,l-(l-d)*n]),m=w[0],f=w[1],y={xr:{start:_,end:h},yr:{start:m,end:f},factor:n},this.plot_view.update_range(y),null},n}(r.View),s=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=a,n.prototype.type=\"WheelZoomTool\",n.prototype.defaults=function(){return{dimensions:[],speed:1/600}},n}(r.Model),l=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(n.Collection),{Model:s,Collection:new l,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"widget/data_slider\",[\"common/plot_widget\",\"common/has_parent\"],function(n,r){var i,o,s,a,l,u;return o=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.attributes={\"class\":\"dataslider pull-left\"},r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.render_init(),this.select=_.throttle(this._select,50)},r.prototype.delegateEvents=function(t){return r.__super__.delegateEvents.call(this,t),\"pass\"},r.prototype.label=function(t,e){return this.$(\".minlabel\").text(t),this.$(\".maxlabel\").text(e)},r.prototype.render_init=function(){var t,e,n,r,i=this;return this.$el.html(\"\"),this.$el.append(\"<div class='maxlabel'></div>\"),this.$el.append(\"<div class='slider'></div>\"),this.$el.append(\"<div class='minlabel'></div>\"),this.plot_view.$(\".plotarea\").append(this.$el),t=this.mget_obj(\"data_source\").getcolumn(this.mget(\"field\")),r=[_.min(t),_.max(t)],n=r[0],e=r[1],this.$el.find(\".slider\").slider({orientation:\"vertical\",animate:\"fast\",step:(e-n)/50,min:n,max:e,values:[n,e],slide:function(t,e){return i.set_selection_range(t,e),i.select(t,e)}}),this.label(n,e),this.$el.find(\".slider\").height(this.plot_view.view_state.get(\"inner_height\"))\n",
" },r.prototype.set_selection_range=function(t,e){var n,r,i,o;return o=_.min(e.values),i=_.max(e.values),this.label(o,i),n=this.mget_obj(\"data_source\"),r=this.mget(\"field\"),null==n.range_selections&&(n.range_selections={}),n.range_selections[r]=[o,i]},r.prototype._select=function(){var e,n,r,i,o,s,a,l,u,p,h,c,_,d;r=this.mget_obj(\"data_source\"),n={},a=0,_=r.range_selections;for(e in _)t.call(_,e)&&(h=_[e],n[e]=r.getcolumn(e),a=n[e].length);for(u=[],i=c=0;a>=0?a>c:c>a;i=a>=0?++c:--c){l=!0,d=r.range_selections;for(e in d)if(t.call(d,e)&&(h=d[e],s=h[0],o=h[1],p=n[e][i],s>p||p>o)){l=!1;break}l&&u.push(i)}return r.save({selected:u},{patch:!0})},r}(n),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"DataSlider\",n.prototype.default_view=o,n.prototype.defaults=function(){return{data_source:null,field:null}},n.prototype.display_defaults=function(){return{level:\"tool\"}},n}(r),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(Backbone.Collection),{Model:i,Collection:new s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"widget/pandas/ipython_remote_data\",[\"backbone\",\"common/has_properties\"],function(t,n){var r,i,o,s;return r=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"IPythonRemoteData\",n.prototype.defaults={computed_columns:[]},n}(n),i=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(t.Collection),{Model:r,Collection:new i}})}.call(this),n(\"widget/pandas/pandas_pivot_template\",[],function(){var t=function(t){var e=function(t){\"undefined\"==typeof t&&null==t&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e};return function(){var t=[],n=this,r=function(e){\"undefined\"!=typeof e&&null!=e&&t.push(e.ecoSafe?e:n.escape(e))};return function(){var t,n,i,o,s,a,l,u,p,h,c,d,f,g,m;if(r(e('<form class=\"form-inline tablecontrolform\">\\n<label>Transform </label>: <select class=\"tablecontrolstate\">\\n <option value=\"groupby\" selected=\"selected\">Group By</option>\\n <option value=\"filtering\">Filtering</option>\\n <option value=\"computed\">Computed Columns</option>\\n </select>\\n <br/>\\n ')),\"groupby\"===this.tablecontrolstate&&(r(e('\\n <label>GroupBy </label>\\n <input type=\"text\" class=\"pandasgroup\" value=\"')),r(this.group),r(e('\"/>\\n <label>Aggregation</label>\\n <select class=\"pandasagg\">\\n <option value=\"sum\">sum</option>\\n <option value=\"mean\">mean</option>\\n <option value=\"std\">std</option>\\n <option value=\"max\">max</option>\\n <option value=\"min\">min</option>\\n </select>\\n '))),r(e(\"\\n \")),\"filtering\"===this.tablecontrolstate&&(r(e('\\n <label class=\"checkbox\" >\\n ')),this.filterselected?r(e('\\n <input type=\"checkbox\" class=\"filterselected\" checked=\"checked\"/>\\n ')):r(e('\\n <input type=\"checkbox\" class=\"filterselected\"/>\\n ')),r(e('\\n Filter Selection\\n </label>\\n <input type=\"button\" class=\"clearselected btn btn-mini\" value=\"Clear Selection\"/>\\n <label>\\n Search\\n </label>\\n <input type=\"text\" class=\"search input-large\"/>\\n '))),r(e(\"\\n \\n \")),\"computed\"===this.tablecontrolstate){for(r(e('\\n <table class=\"table\">\\n <thead>\\n <th>\\n Name\\n </th>\\n <th>\\n Value\\n </th>\\n <th>\\n </th>\\n </thead>\\n ')),d=this.computed_columns,o=0,u=d.length;u>o;o++)n=d[o],r(e(\"\\n <tr>\\n <td>\\n \")),r(n.name),r(e(\"\\n </td>\\n <td>\\n \")),r(n.code),r(e('\\n </td>\\n <td>\\n <a class=\"column_del\" \\n name=\"')),r(n.name),r(e('\" href=\"#\">[delete]</a>\\n </td>\\n </tr>\\n '));r(e('\\n <tr>\\n <td>\\n <input type=\"text\" class=\"computedname input-mini\"/>\\n </td>\\n <td>\\n <input type=\"text\" class=\"computedtxtbox input-medium\"/>\\n </td>\\n <td>\\n </td>\\n </tr>\\n </table>\\n '))}for(r(e('\\n \\n</form>\\n\\n<table class=\"bokehdatatable table table-bordered\"\\n')),this.width?(r(e('\\n style=\"max-height:')),r(this.height),r(e(\"px;max-width:\")),r(this.width),r(e('px\"\\n'))):(r(e('\\n style=\"max-height:')),r(this.height),r(e('px\"\\n'))),r(e(\"\\n >\\n <thead>\\n \")),this.counts&&r(e(\"\\n <th>counts</th>\\n \")),r(e(\"\\n <th>index</th>\\n \")),f=this.columns,s=0,p=f.length;p>s;s++)t=f[s],r(e(\"\\n \")),this.skip[t]||(r(e('\\n <th><a class=\"pandascolumn\">')),r(t),r(e(\"</a>\\n \\n \")),this.sort_ascendings[t]===!0?r(e('\\n <i class=\"icon-caret-up\"></i>\\n ')):this.sort_ascendings[t]===!1&&r(e('\\n <i class=\"icon-caret-down\"></i>\\n ')),r(e(\"\\n \\n \"))),r(e(\"\\n </th>\\n \"));for(r(e(\"\\n </thead>\\n \")),g=_.range(this.length),a=0,h=g.length;h>a;a++){for(i=g[a],r(e('\\n <tr class=\"pandasrow\" rownum=\"')),r(i),r(e('\">\\n ')),this.selected&&this.selected[i]?(r(e('\\n <td style=\"background-color:')),r(this.colors[i]),r(e('\"> \\n ')),r(this.selected[i]),r(e(\"/\")),r(this.counts[i]),r(e(\"\\n </td> \\n \"))):(r(e(\"\\n <td> \")),r(this.counts[i]),r(e(\" </td>\\n \"))),r(e(\"\\n <td> \")),r(this.index[i]),r(e(\" </td>\\n \")),m=this.columns,l=0,c=m.length;c>l;l++)t=m[l],r(e(\"\\n \")),this.skip[t]||(r(e(\" \\n <td> \")),r(this.data[t][i]),r(e(\" </td>\\n \"))),r(e(\"\\n \"));r(e(\"\\n </tr>\\n \"))}r(e('\\n</table>\\n<form>\\n <center>\\n <div class=\"btn-group pagination\">\\n <button class=\"btn btn-mini\">First</button>\\n <button class=\"btn btn-mini\">Previous</button>\\n <button class=\"btn btn-mini\">Next</button>\\n <button class=\"btn btn-mini\">Last</button> \\n </div>\\n <div class=\"paginatedisplay\">\\n Show <input type=\"text\" class=\"pandassize\" value=\"')),r(this.length),r(e('\"> records\\n From <input type=\"text\" class=\"pandasoffset\" value=\"')),r(this.offset),r(e('\">\\n to ')),r(this.length+this.offset),r(e(\" - \\n Total : \")),r(this.totallength),r(e(\"\\n </div>\\n </center>\\n</form>\\n\"))}.call(this),t.join(\"\")}.call(function(){var n,r={escape:function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")},safe:e};for(n in t)r[n]=t[n];return r}())};return t}),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,r=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};n(\"widget/pandas/pandas_pivot_table\",[\"underscore\",\"backbone\",\"common/has_parent\",\"common/continuum_view\",\"./pandas_pivot_template\"],function(e,n,i,o,s){var a,l,u,p,h,c,_;return a=13,p=function(n){function i(){return this.colors=t(this.colors,this),this.pandasend=t(this.pandasend,this),this.pandasnext=t(this.pandasnext,this),this.pandasback=t(this.pandasback,this),this.pandasbeginning=t(this.pandasbeginning,this),this.toggle_more_controls=t(this.toggle_more_controls,this),this.sort=t(this.sort,this),this.rowclick=t(this.rowclick,this),this.toggle_filterselected=t(this.toggle_filterselected,this),this.clearselected=t(this.clearselected,this),this.computedtxtbox=t(this.computedtxtbox,this),this.column_del=t(this.column_del,this),this.search=t(this.search,this),h=i.__super__.constructor.apply(this,arguments)}return r(i,n),i.prototype.template=s,i.prototype.initialize=function(t){return i.__super__.initialize.call(this,t),this.listenTo(this.model,\"destroy\",this.remove),this.listenTo(this.model,\"change\",this.render),this.render()},i.prototype.events={\"keyup .pandasgroup\":\"pandasgroup\",\"keyup .pandasoffset\":\"pandasoffset\",\"keyup .pandassize\":\"pandassize\",\"change .pandasagg\":\"pandasagg\",\"change .tablecontrolstate\":\"tablecontrolstate\",\"click .pandasbeginning\":\"pandasbeginning\",\"click .pandasback\":\"pandasback\",\"click .pandasnext\":\"pandasnext\",\"click .pandasend\":\"pandasend\",\"click .controlsmore\":\"toggle_more_controls\",\"click .pandascolumn\":\"sort\",\"click .pandasrow\":\"rowclick\",\"click .filterselected\":\"toggle_filterselected\",\"click .clearselected\":\"clearselected\",\"keyup .computedtxtbox\":\"computedtxtbox\",\"click .column_del\":\"column_del\",\"keyup .search\":\"search\"},i.prototype.search=function(t){var e,n;return t.keyCode===a?(e=$(t.currentTarget).val(),n=this.model.get_obj(\"source\"),n.rpc(\"search\",[e]),t.preventDefault()):void 0},i.prototype.column_del=function(t){var n,r,i,o;return o=this.model.get_obj(\"source\"),i=o.get(\"computed_columns\"),r=$(t.currentTarget).attr(\"name\"),n=e.filter(i,function(t){return t.name!==r}),o.rpc(\"set_computed_columns\",[n])},i.prototype.computedtxtbox=function(t){var e,n,r,i;return t.keyCode===a?(n=this.$(\".computedname\").val(),e=this.$(\".computedtxtbox\").val(),i=this.model.get_obj(\"source\"),r=i.get(\"computed_columns\"),r.push({name:n,code:e}),i.rpc(\"set_computed_columns\",[r]),t.preventDefault()):void 0},i.prototype.clearselected=function(){return this.model.rpc(\"setselect\",[[]])},i.prototype.toggle_filterselected=function(){var t;return t=this.$(\".filterselected\").is(\":checked\"),this.mset(\"filterselected\",t),this.model.save()},i.prototype.rowclick=function(t){var n,r,i,o,s,a,l,u,p,h;return r=this.counts(),h=this.selected(),a=function(){var t,i,o,s,a;for(o=e.zip(h,r),a=[],t=0,i=o.length;i>t;t++)s=o[t],p=s[0],n=s[1],a.push(p/n);return a}(),h=function(){var t,e,n;for(n=[],i=t=0,e=a.length;e>t;i=++t)s=a[i],s>.5&&n.push(i);return n}(),u=Number($(t.currentTarget).attr(\"rownum\")),o=h.indexOf(u),l=-1===o?this.model.rpc(\"select\",[[u]]):this.model.rpc(\"deselect\",[[u]]),null},i.prototype.sort=function(t){var e;return e=$(t.currentTarget).text(),this.model.toggle_column_sort(e)},i.prototype.toggle_more_controls=function(){return this.controls_hide=this.controls_hide?!1:!0,this.render()},i.prototype.pandasbeginning=function(){return this.model.go_beginning()},i.prototype.pandasback=function(){return this.model.go_back()},i.prototype.pandasnext=function(){return this.model.go_forward()},i.prototype.pandasend=function(){return this.model.go_end()},i.prototype.pandasoffset=function(t){var n;return t.keyCode===a?(n=this.$el.find(\".pandasoffset\").val(),n=Number(n),e.isNaN(n)&&(n=this.model.defaults.offset),this.model.save(\"offset\",n,{wait:!0}),t.preventDefault()):void 0},i.prototype.pandassize=function(t){var n,r;return t.keyCode===a?(r=this.$el.find(\".pandassize\").val(),n=Number(r),(e.isNaN(n)||\"\"===r)&&(n=this.model.defaults.length),n+this.mget(\"offset\")>this.mget(\"maxlength\")&&(n=this.mget(\"maxlength\")-this.mget(\"offset\")),this.model.save(\"length\",n,{wait:!0}),t.preventDefault()):void 0},i.prototype.tablecontrolstate=function(){return this.mset(\"tablecontrolstate\",this.$(\".tablecontrolstate\").val())},i.prototype.pandasagg=function(){return this.model.save(\"agg\",this.$el.find(\".pandasagg\").val(),{wait:!0})},i.prototype.fromcsv=function(t){return t?e.map(t.split(\",\"),function(t){return t.trim()}):[]},i.prototype.pandasgroup=function(t){return t.keyCode===a?(this.model.set({group:this.fromcsv(this.$el.find(\".pandasgroup\").val()),offset:0}),this.model.save(),t.preventDefault(),!1):void 0},i.prototype.counts=function(){return this.mget(\"tabledata\").data._counts},i.prototype.selected=function(){return this.mget(\"tabledata\").data._selected},i.prototype.colors=function(){var t,n;return t=this.counts(),n=this.selected(),t&&n?e.map(e.zip(t,n),function(t){var e,r;return r=t[0],n=t[1],e=.3*n/r,\"rgba(0,0,255,\"+e+\")\"}):null},i.prototype.render=function(){var t,n,r,i,o,s,a,l,u,p,h;for(n=this.mget(\"group\"),e.isArray(n)&&(n=n.join(\",\")),o=this.mget(\"sort\"),e.isArray(o)&&(o=o.join(\",\")),t=this.colors(),s={},h=this.mget(\"sort\"),u=0,p=h.length;p>u;u++)i=h[u],s[i.column]=i.ascending;return a=this.mget_obj(\"source\"),l={skip:{_counts:!0,_selected:!0,index:!0},tablecontrolstate:this.mget(\"tablecontrolstate\"),computed_columns:this.mget_obj(\"source\").get(\"computed_columns\"),columns:this.mget(\"tabledata\").column_names,data:this.mget(\"tabledata\").data,group:n,sort_ascendings:s,height:this.mget(\"height\"),width:this.mget(\"width\"),offset:this.mget(\"offset\"),length:this.model.length(),filterselected:this.mget(\"filterselected\"),totallength:this.mget(\"totallength\"),counts:this.mget(\"tabledata\").data._counts,selected:this.mget(\"tabledata\").data._selected,controls_hide:this.controls_hide,colors:t,index:this.mget(\"tabledata\").data.index},this.$el.empty(),r=this.template(l),this.$el.html(r),this.$(\".pandasagg\").find('option[value=\"'+this.mget(\"agg\")+'\"]').attr(\"selected\",\"selected\"),this.$(\".tablecontrolstate\").find('option[value=\"'+this.mget(\"tablecontrolstate\")+'\"]').attr(\"selected\",\"selected\"),this.$el.addClass(\"bokehtable\")},i}(o.View),l=function(n){function i(){return this.toggle_column_sort=t(this.toggle_column_sort,this),this.dinitialize=t(this.dinitialize,this),c=i.__super__.constructor.apply(this,arguments)}return r(i,n),i.prototype.type=\"PandasPivotTable\",i.prototype.initialize=function(t,n){var r=this;return i.__super__.initialize.call(this,t,n),this.throttled_fetch=e.throttle(function(){return r.fetch()},500)},i.prototype.dinitialize=function(t,e){return i.__super__.dinitialize.call(this,t,e)},i.prototype.fetch=function(t){return i.__super__.fetch.call(this,t)},i.prototype.length=function(){return e.values(this.get(\"tabledata\").data)[0].length},i.prototype.toggle_column_sort=function(t){var n,r;return r=this.get(\"sort\"),this.unset(\"sort\",{silent:!0}),n=e.filter(r,function(e){return e.column===t}),n.length>0?(n=n[0],n.ascending?(n.ascending=!1,this.save(\"sort\",r,{wait:!0})):(r=e.filter(r,function(e){return e.column!==t}),this.save(\"sort\",r,{wait:!0})),void 0):(r=e.clone(r),r.push({column:t,ascending:!0}),this.save(\"sort\",r,{wait:!0}),void 0)},i.prototype.go_beginning=function(){return this.set(\"offset\",0),this.save()},i.prototype.go_back=function(){var t;return t=this.get(\"offset\"),t-=this.length(),0>t&&(t=0),this.set(\"offset\",t),this.save()},i.prototype.go_forward=function(){var t,e;return e=this.get(\"offset\"),e+=this.length(),t=this.get(\"maxlength\")-this.length(),e>t&&(e=t),this.set(\"offset\",e),this.save()},i.prototype.go_end=function(){var t;return t=this.get(\"maxlength\")-this.length(),this.set(\"offset\",t),this.save()},i.prototype.default_view=p,i.prototype.defaults=function(){return{sort:[],group:[],agg:\"sum\",offset:0,length:100,maxlength:1e3,tabledata:null,columns_names:[],width:null,tablecontrolstate:\"groupby\"}},i}(i),u=function(t){function e(){return _=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.model=l,e}(n.Collection),{Model:l,Collection:new u,View:p}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"widget/pandas/pandas_plot_source\",[\"backbone\",\"source/column_data_source\"],function(t,n){var r,i,o,s;return r=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"PandasPlotSource\",n}(n.Model),i=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(t.Collection),{Model:r,Collection:new i}})}.call(this),function(){n(\"common/base\",[\"underscore\",\"require\",\"common/custom\",\"common/gmap_plot\",\"common/grid_plot\",\"common/plot\",\"common/plot_context\",\"range/data_factor_range\",\"range/data_range1d\",\"range/factor_range\",\"range/range1d\",\"renderer/annotation/legend\",\"renderer/glyph/glyph_factory\",\"renderer/guide/categorical_axis\",\"renderer/guide/datetime_axis\",\"renderer/guide/grid\",\"renderer/guide/linear_axis\",\"renderer/overlay/box_selection\",\"source/column_data_source\",\"tool/box_select_tool\",\"tool/box_zoom_tool\",\"tool/crosshair_tool\",\"tool/data_range_box_select_tool\",\"tool/embed_tool\",\"tool/hover_tool\",\"tool/pan_tool\",\"tool/preview_save_tool\",\"tool/reset_tool\",\"tool/resize_tool\",\"tool/wheel_zoom_tool\",\"widget/data_slider\",\"widget/pandas/ipython_remote_data\",\"widget/pandas/pandas_pivot_table\",\"widget/pandas/pandas_plot_source\"],function(t,e){var n,r,i,o;return e(\"common/custom\").monkey_patch(),r={prefix:\"\"},i={Plot:\"common/plot\",GMapPlot:\"common/gmap_plot\",GridPlot:\"common/grid_plot\",CDXPlotContext:\"common/plot_context\",PlotContext:\"common/plot_context\",PlotList:\"common/plot_context\",DataFactorRange:\"range/data_factor_range\",DataRange1d:\"range/data_range1d\",FactorRange:\"range/factor_range\",Range1d:\"range/range1d\",Glyph:\"renderer/glyph/glyph_factory\",LinearAxis:\"renderer/guide/linear_axis\",CategoricalAxis:\"renderer/guide/categorical_axis\",DatetimeAxis:\"renderer/guide/datetime_axis\",Grid:\"renderer/guide/grid\",Legend:\"renderer/annotation/legend\",BoxSelection:\"renderer/overlay/box_selection\",ColumnDataSource:\"source/column_data_source\",PanTool:\"tool/pan_tool\",WheelZoomTool:\"tool/wheel_zoom_tool\",ResizeTool:\"tool/resize_tool\",CrosshairTool:\"tool/crosshair_tool\",BoxSelectTool:\"tool/box_select_tool\",BoxZoomTool:\"tool/box_zoom_tool\",HoverTool:\"tool/hover_tool\",DataRangeBoxSelectTool:\"tool/data_range_box_select_tool\",PreviewSaveTool:\"tool/preview_save_tool\",EmbedTool:\"tool/embed_tool\",ResetTool:\"tool/reset_tool\",DataSlider:\"widget/data_slider\",IPythonRemoteData:\"widget/pandas/ipython_remote_data\",PandasPivotTable:\"widget/pandas/pandas_pivot_table\",PandasPlotSource:\"widget/pandas/pandas_plot_source\"},o={},n=function(t){var n;if(!i[t])throw\"./base: Unknown Collection \"+t;return n=i[t],null==o[n]&&(console.log(\"calling require\",n),o[n]=e(n)),o[n].Collection},{mod_cache:o,locations:i,Collections:n,Config:r}})}.call(this),function(){n(\"common/plotting\",[\"underscore\",\"jquery\",\"./plot\",\"range/data_range1d\",\"range/factor_range\",\"range/range1d\",\"renderer/annotation/legend\",\"renderer/glyph/glyph_factory\",\"renderer/guide/categorical_axis\",\"renderer/guide/linear_axis\",\"renderer/guide/grid\",\"renderer/overlay/box_selection\",\"source/column_data_source\",\"tool/box_select_tool\",\"tool/box_zoom_tool\",\"tool/hover_tool\",\"tool/pan_tool\",\"tool/preview_save_tool\",\"tool/resize_tool\",\"tool/wheel_zoom_tool\",\"tool/reset_tool\",\"renderer/guide/datetime_axis\"],function(t,e,n,r,i,o,s,a,l,u,p,h,c,_,d,f,g,m,y,v,b,w){var x,k,T,C,M,j,S,z,A;return S=function(e){var n,r,i,o;for(t.isArray(e)||(e=[e]),r=[],i=0,o=e.length;o>i;i++)n=e[i],n instanceof c.Model?r.push(n):r.push(c.Collection.create({data:n}));return r},j=function(t,e,n){var s;return\"auto\"===t?r.Collection.create({sources:function(){var t,r,i;for(i=[],t=0,r=e.length;r>t;t++)s=e[t],i.push({ref:s.ref(),columns:n});return i}()}):t instanceof o.Model||t instanceof i.Model?t:\"string\"==typeof t[0]?i.Collection.create({factors:t}):o.Collection.create({start:t[0],end:t[1]})},M=function(e,n,r,i){var o,s,l,u,p,h,c,_,d,f;for(s=[],t.isArray(n)||(n=[n]),1===r.length&&(r=function(){var t,e,i;for(i=[],t=0,e=n.length;e>t;t++)c=n[t],i.push(r[0]);return i}()),null==i&&(i={fill_alpha:.1,line_alpha:.1}),t.isArray(i)||(i=function(){var t,e,r;for(r=[],t=0,e=n.length;e>t;t++)c=n[t],r.push(i);return r}()),f=t.zip(n,i,r),_=0,d=f.length;d>_;_++)h=f[_],p=h[0],l=h[1],u=h[2],o=a.Collection.create({parent:e.ref(),data_source:u.ref(),glyphspec:p,nonselection_glyphspec:l}),s.push(o);return s},x=function(e,n,r,i,o){var s,a,p,h,c,_,d,f,g,m,y,v,b,x,k;if(a=[],n)if(n===!0&&(n=[\"min\",\"max\"]),t.isArray(n)||(n=[n]),\"datetime\"===n[0])for(k=[\"min\",\"max\"],c=0,g=k.length;g>c;c++)h=k[c],p=w.Collection.create({dimension:0,axis_label:\"x\",location:h,parent:e.ref(),plot:e.ref()}),a.push(p);else if(\"FactorRange\"===i.type)for(_=0,m=n.length;m>_;_++)h=n[_],p=l.Collection.create({dimension:0,axis_label:\"x\",location:h,parent:e.ref(),plot:e.ref()}),a.push(p);else for(d=0,y=n.length;y>d;d++)h=n[d],p=u.Collection.create({dimension:0,axis_label:\"x\",location:h,parent:e.ref(),plot:e.ref()}),a.push(p);if(r)if(r===!0&&(r=[\"min\",\"max\"]),t.isArray(r)||(r=[r]),\"FactorRange\"===o.type)for(f=0,v=n.length;v>f;f++)h=n[f],p=l.Collection.create({dimension:1,axis_label:\"y\",location:h,parent:e.ref(),plot:e.ref()}),a.push(p);else for(x=0,b=r.length;b>x;x++)h=r[x],p=u.Collection.create({dimension:1,axis_label:\"y\",location:h,parent:e.ref(),plot:e.ref()}),a.push(p);return e.add_renderers(function(){var t,e,n;for(n=[],e=0,t=a.length;t>e;e++)s=a[e],n.push(s.ref());return n}())},k=function(t,e,n,r){var i,o,s;return null==r&&(r=False),s=[],e&&(o=p.Collection.create({dimension:0,parent:t.ref(),plot:t.ref(),is_datetime:r}),s.push(o)),n?(o=p.Collection.create({dimension:1,parent:t.ref(),plot:t.ref(),is_datetime:!1}),s.push(o),t.add_renderers(function(){var t,e,n;for(n=[],t=0,e=s.length;e>t;t++)i=s[t],n.push(i.ref());return n}())):void 0},C=function(t,e,n,r,i){var o,s,a,l,u,p,c,w,x,k,T,C;if(e!==!1)return e===!0&&(e=\"pan,wheel_zoom,select,resize,preview,reset,box_zoom\"),o=[],e.indexOf(\"pan\")>-1&&(p=g.Collection.create({dataranges:[r.ref(),i.ref()],dimensions:[\"width\",\"height\"]}),o.push(p)),e.indexOf(\"wheel_zoom\")>-1&&(C=v.Collection.create({dataranges:[r.ref(),i.ref()],dimensions:[\"width\",\"height\"]}),o.push(C)),e.indexOf(\"hover\")>-1&&(u=f.Collection.create({renderers:function(){var t,e,r;for(r=[],t=0,e=n.length;e>t;t++)l=n[t],r.push(l.ref());return r}()}),o.push(u)),e.indexOf(\"select\")>-1&&(T=_.Collection.create({renderers:function(){var t,e,r;for(r=[],t=0,e=n.length;e>t;t++)l=n[t],r.push(l.ref());return r}()}),k=h.Collection.create({tool:T.ref()}),o.push(T),t.add_renderers([k.ref()])),e.indexOf(\"resize\")>-1&&(x=y.Collection.create(),o.push(x)),e.indexOf(\"preview\")>-1&&(c=m.Collection.create(),o.push(c)),e.indexOf(\"reset\")>-1&&(w=b.Collection.create(),o.push(w)),e.indexOf(\"box_zoom\")>-1&&(a=d.Collection.create(),s=h.Collection.create({tool:a.ref()}),o.push(a),t.add_renderers([s.ref()])),t.set_obj(\"tools\",o)},T=function(t,e,n){var r,i,o,a,l,u;if(e){for(a={},i=l=0,u=n.length;u>l;i=++l)r=n[i],a[e+String(i)]=[r.ref()];return o=s.Collection.create({parent:t.ref(),plot:t.ref(),orientation:\"top_right\",legends:a}),t.add_renderers([o.ref()])}},z=function(t,e,r){var i,o,s,a,l,u,p,h,c,_,d,f,g,m,y,v,b;return l=r.nonselected,h=r.title,i=r.dims,g=r.xrange,b=r.yrange,_=r.xaxes,m=r.yaxes,f=r.xgrid,v=r.ygrid,d=r.xdr,y=r.ydr,c=r.tools,a=r.legend,null==l&&(l=null),null==h&&(h=\"\"),null==i&&(i=[400,400]),null==g&&(g=\"auto\"),null==b&&(b=\"auto\"),null==_&&(_=!0),null==m&&(m=!0),null==f&&(f=!0),null==v&&(v=!0),null==c&&(c=!0),null==a&&(a=!1),p=S(e),d=j(g,p,[\"x\"]),y=j(b,p,[\"y\"]),u=n.Collection.create({x_range:d.ref(),y_range:y.ref(),canvas_width:i[0],canvas_height:i[1],outer_width:i[0],outer_height:i[1],title:h}),s=M(u,t,p,l),u.add_renderers(function(){var t,e,n;for(n=[],t=0,e=s.length;e>t;t++)o=s[t],n.push(o.ref());return n}()),x(u,_,m,d,y),k(u,f,v,\"datetime\"===_),C(u,c,s,d,y),T(u,a,s),u},A=function(n,r){var i,o;return null==r&&(r=!1),i=e('<div class=\"plotdiv\"></div>'),r=r?e(r):e(\"body\"),r.append(i),o=function(){var t;return t=new n.default_view({model:n}),window.pview=t,i.append(t.$el),console.log(\"added plot: \"+n.get(\"title\"))},t.defer(o)},{make_plot:z,create_glyphs:M,show:A}})}.call(this),function(){n(\"common/affine\",[],function(){var t;return t=function(){function t(t,e,n,r,i,o){this.a=null!=t?t:1,this.b=null!=e?e:0,this.c=null!=n?n:0,this.d=null!=r?r:1,this.tx=null!=i?i:0,this.ty=null!=o?o:0}return t.prototype.apply=function(t,e){return[this.a*t+this.b*e+this.tx,this.c*t+this.d*e+this.ty]},t.prototype.v_apply=function(t,e){var n,r,i,o,s;for(r=new Float32Array(t.length),i=new Float32Array(e.length),n=o=0,s=t.length;s>=0?s>o:o>s;n=s>=0?++o:--o)r[n]=this.a*t[n]+this.b*e[n]+this.tx,i[n]=this.c*t[n]+this.d*e[n]+this.ty;return[r,i]},t.prototype.is_identity=function(){return 1===this.a&&0===this.b&&0===this.c&&1===this.d&&0===this.tx&&0===this.ty},t.prototype.translate=function(t,e){return this.tx=this.a*t+this.b*e,this.ty=this.c*t+this.d*e},t.prototype.scale=function(t,e){return this.a*=t,this.b*=e,this.c*=t,this.d*=e},t.prototype.rotate=function(t){var e,n,r,i,o,s;return e=Math.cos(t),n=Math.sin(t),r=e*this.a+n*this.b,i=e*this.b-n*this.a,o=e*this.c+n*this.d,s=e*this.d-n*this.c,this.a=r,this.b=i,this.c=o,this.d=s},t.prototype.shear=function(t,e){var n,r,i,o;return n=this.a+t*this.c,r=this.b+t*this.d,i=this.c+e*this.a,o=this.d+e*this.b,this.a=n,this.b=r,this.c=i,this.d=o},t.prototype.reflect_x=function(t){return this.tx=2*this.a*t+this.tx,this.ty=2*this.c*t+this.ty,this.a=-this.a,this.c=-this.c},t.prototype.reflect_y=function(t){return this.tx=2*this.b*t+this.tx,this.ty=2*this.d*t+this.ty,this.b=-this.b,this.d=-this.d},t.prototype.reflect_xy=function(t,e){return this.tx=2*(this.a*t+this.b*e)+this.tx,this.ty=2*(this.c*t+this.d*e)+this.ty,this.a=-this.a,this.b=-this.b,this.c=-this.c,this.d=-this.d},t.prototype.compose_right=function(t){var e,n,r,i,o,s;return e=this.a*t.a+this.b*t.c,n=this.a*t.b+this.b*t.d,r=this.c*t.a+this.d*t.c,i=this.c*t.b+this.d*t.d,o=this.a*t.tx+this.b*t.ty+this.tx,s=this.c*t.tx+this.d*t.ty+this.ty,this.a=e,this.b=n,this.c=r,this.d=i,this.tx=o,this.ty=s},t.prototype.compose_left=function(t){var e,n,r,i,o,s;return e=t.a*this.a+t.b*this.c,n=t.a*this.b+t.b*this.d,r=t.c*this.a+t.d*this.c,i=t.c*this.b+t.d*this.d,o=t.a*this.tx+t.b*this.ty+t.tx,s=t.c*this.tx+t.d*this.ty+t.ty,this.a=e,this.b=n,this.c=r,this.d=i,this.tx=o,this.ty=s},t}()})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"common/png_view\",[\"./continuum_view\"],function(t){var n,r;return n=function(t){function n(){return r=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.thumb_x=t.thumb_x||40,this.thumb_y=t.thumb_y||40,this.render(),this},n.prototype.render=function(){var t;return this.$el.html(\"\"),t=this.model.get(\"png\"),this.$el.append($(\"<p> \"+this.model.get(\"title\")+\" </p>\")),this.$el.append($(\"<img modeltype='\"+this.model.type+\"' modelid='\"+this.model.get(\"id\")+\"' class='pngview' width='\"+this.thumb_x+\"' height='\"+this.thumb_y+\"' src='\"+t+\"'/>\"))},n}(t.View)})}.call(this),function(){n(\"common/random\",[],function(){var t;return t=function(){function t(t){this.seed=t,this.multiplier=1664525,this.modulo=4294967296,this.offset=1013904223,null!=this.seed&&t>=0&&t<this.modulo||(this.seed=(new Date).valueOf()*(new Date).getMilliseconds()%this.modulo)}return t.prototype.seed=function(t){return this.seed=t},t.prototype.randn=function(){return this.seed=(this.multiplier*this.seed+this.offset)%this.modulo},t.prototype.randf=function(){return this.randn()/this.modulo},t.prototype.rand=function(t){return Math.floor(this.randf()*t)},t.prototype.rand2=function(t,e){return t+this.rand(e-t)},t}()})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};n(\"common/socket\",[\"backbone\",\"underscore\",\"common/base\",\"common/load_models\"],function(e,n,r,i){var o,s,a,l;return o=r.Config,s=function(){function r(e){this.onmessage=t(this.onmessage,this);var n=this;this.auth={},this.ws_conn_string=e,this._connected=$.Deferred(),this.connected=this._connected.promise(),this.s=window.MozWebSocket?new MozWebSocket(e):new WebSocket(e),this.s.onopen=function(){return n._connected.resolve()},this.s.onmessage=this.onmessage}return n.extend(r.prototype,e.Events),r.prototype.onmessage=function(t){var e,n,r;return e=t.data,n=e.indexOf(\":\"),n=e.indexOf(\":\",n+1),r=e.substring(0,n),e=e.substring(n+1),this.trigger(\"msg:\"+r,e),null},r.prototype.send=function(t){var e=this;return $.when(this.connected).done(function(){return e.s.send(t)})},r.prototype.subscribe=function(t,e){var n;return this.auth[t]=e,n=JSON.stringify({msgtype:\"subscribe\",topic:t,auth:e}),this.send(n)},r}(),l=function(t,e,n){return t.subscribe(e,n),t.on(\"msg:\"+e,function(t){var e,n,r,s,a,l,u;if(r=JSON.parse(t),\"modelpush\"===r.msgtype)i(r.modelspecs);else if(\"modeldel\"===r.msgtype)for(u=r.modelspecs,a=0,l=u.length;l>a;a++)s=u[a],n=resolve_ref(s.type,s.id),n&&n.destroy({local:!0});else\"status\"===r.msgtype&&\"subscribesuccess\"===r.status[0]?(e=r.status[2],o.clientid=e,$.ajaxSetup({headers:{\"Continuum-Clientid\":e}})):console.log(r);return null})},a={WebSocketWrapper:s,submodels:l}})}.call(this),function(){n(\"server/serverutils\",[\"common/base\",\"server/serverutils\",\"common/socket\",\"common/load_models\"],function(t,n,r,i){var o,s,a,l,u,p;return o={},s={},l={},a=r.WebSocketWrapper,u=r.submodels,o._doc_loaded=$.Deferred(),o._doc_requested=$.Deferred(),s.doc_loaded=o._doc_loaded.promise(),s.doc_requested=o._doc_requested.promise(),s.doc_promises={},l.wswrapper=null,l.plotcontext=null,l.plotcontextview=null,l.Promises=s,p={load_user:function(){var t;return t=$.get(\"/bokeh/userinfo/\",{})},load_doc_once:function(t){var e;return _.has(s.doc_promises,t)?(console.log(\"already found \"+t+\" in promises\"),s.doc_promises[t]):(console.log(\"\"+t+\" not in promises, loading it\"),e=p.load_doc(t),s.doc_promises[t]=e,e)},load_doc_by_title:function(t){var n,r;return n=e(\"common/base\").Config,r=$.get(n.prefix+\"/bokeh/doc\",{title:t}).done(function(t){var e,n,r;return e=t.all_models,i(e),n=t.apikey,r=t.docid,u(l.wswrapper,\"bokehplot:\"+r,n)})},load_doc_static:function(t,e){\" loads data without making a websocket connection \";var n;return load_data(e.all_models),n=jQuery.Deferred(),n.resolve(),n},load_doc:function(t){var n,r,o;return o=p.make_websocket(),n=e(\"common/base\").Config,r=$.get(n.prefix+(\"/bokeh/bokehinfo/\"+t+\"/\"),{}).done(function(e){var n,r;return n=e.all_models,i(n),r=e.apikey,u(l.wswrapper,\"bokehplot:\"+t,r)})},make_websocket:function(){var t,n;return t=e(\"common/base\").Config,n=new a(t.ws_conn_string),l.wswrapper=n,n},render_plots:function(t,n,r){var i,o,s,a;return null==n&&(n=null),null==r&&(r={}),i=e(\"common/base\").Collections,s=i(t.type).get(t.id),n||(n=s.default_view),o=_.extend(r,{model:s}),a=new n(o),s=s,a=a,a.render(),l.plotcontext=s,l.plotcontextview=a},bokeh_connection:function(t,e,n){return _.isUndefined(n)&&(n=\"https\"),\"pending\"===s.doc_requested.state()?(o._doc_requested.resolve(),$.get(\"\"+n+\"://\"+t+\"/bokeh/publicbokehinfo/\"+e,{},function(t){return console.log(\"instatiate_doc_single, docid\",e),t=JSON.parse(t),i(t.all_models),o._doc_loaded.resolve(t)})):void 0}},l.utility=p,l})}.call(this),function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};n(\"server/embed_core\",[\"common/base\",\"common/load_models\",\"server/serverutils\"],function(e,n,r){var i,o,s,a,l,u,p,h,c,d,f,g,m;return m=r.utility,a=function(t,e){return s(t.bokeh_modelid,t.bokeh_modeltype,t.element,e)},s=function(t,r,i,o){var s,a,l;return s=_.keys(o)[0],!s!==t?(console.log(\"addPlot\"),console.log(t,r,i),n(o[s]),a=e.Collections(r).get(t),l=new a.default_view({model:a}),l.render(),_.delay(function(){return $(i).replaceWith(l.$el)})):void 0},o=function(t){return console.log(\"addDirectPlotWrap\"),i(t.bokeh_docid,t.bokeh_ws_conn_string,t.bokeh_docapikey,t.bokeh_root_url,t.bokeh_modelid,t.bokeh_modeltype,t.element)},f=function(t,n,r,i){var o,s;return console.log(\"serverLoad\"),s={\"BOKEH-API-KEY\":r},$.ajaxSetup({headers:s}),o=e.Config,o.prefix=i,o.ws_conn_string=n,m.load_doc_once(t)},i=function(t,n,r,i,o,s,a){return f(t,n,r,i).done(function(){var t,n,r;return console.log(\"addPlot\"),console.log(o,s,a),n=e.Collections(s),t=n.get(o),r=new t.default_view({model:t}),_.delay(function(){return $(a).replaceWith(r.$el)})})},h=function(t){var e,n;return e=[\"\"+t+\"css/bokeh.css\",\"\"+t+\"css/continuum.css\",\"\"+t+\"js/vendor/bootstrap/bootstrap-bokeh-2.0.4.css\"],n=function(t){var e;return e=document.createElement(\"link\"),e.href=t,e.rel=\"stylesheet\",e.type=\"text/css\",document.body.appendChild(e)},_.map(e,n)},p=[],c=function(t){\"this takes a bokeh embed script element and returns the relvant\\nattributes through to a dictionary, \";var e,n,r,i,o,s,a;for(n=t.attributes,i=/bokeh.*/,o={},r=0,s=0,a=n.length;a>s;s++)e=n[s],e.name.match(i)&&(o[e.name]=e.value,r++);return r>0?o:!1},g={},u=function(){var e,n,r,i,o,s,a,l,u,h,_;\n",
" for(i=document.getElementsByTagName(\"script\"),u=/.*embed.js.*/,l=[],h=0,_=i.length;_>h;h++)r=i[h],s=t.call(p,r)<0,a=r.src.match(u),s&&a&&(p.push(r),o=c(r),n=document.createElement(\"div\"),e=document.createElement(\"div\"),e.className=\"bokeh-container\",r.parentNode.insertBefore(e,r),o.element=e,l.push(o));return l},d=function(t){var e,n;return n=function(e,n){var r;return\"embeddata\"!==e.bokeh_plottype?(o(e),delete g[n]):(r=_.keys(t)[0],n===r?(a(e,t),delete g[n]):void 0)},e=u(),_.each(e,function(t){return g[t.bokeh_modelid]=t}),_.map(g,n)},l={search_and_plot:d,injectCss:h}})}.call(this),n(\"server/usercontext/userdocstemplate\",[],function(){var t=function(t){var e=function(t){\"undefined\"==typeof t&&null==t&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e};return function(){var t=[],n=this,r=function(e){\"undefined\"!=typeof e&&null!=e&&t.push(e.ecoSafe?e:n.escape(e))};return function(){r(e('<div class=\"accordion\">\\n</div>\\n'))}.call(this),t.join(\"\")}.call(function(){var n,r={escape:function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")},safe:e};for(n in t)r[n]=t[n];return r}())};return t}),n(\"server/usercontext/documentationtemplate\",[],function(){var t=function(t){var e=function(t){\"undefined\"==typeof t&&null==t&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e};return function(){var t=[],n=this,r=function(e){\"undefined\"!=typeof e&&null!=e&&t.push(e.ecoSafe?e:n.escape(e))};return function(){r(e(\"<p>\\n <b>\\n You have no Plots. Follow the intsructions\\n below to create some\\n </b>\\n</p>\\n\"))}.call(this),t.join(\"\")}.call(function(){var n,r={escape:function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")},safe:e};for(n in t)r[n]=t[n];return r}())};return t}),n(\"server/usercontext/wrappertemplate\",[],function(){var t=function(t){var e=function(t){\"undefined\"==typeof t&&null==t&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e};return function(){var t=[],n=this,r=function(e){\"undefined\"!=typeof e&&null!=e&&t.push(e.ecoSafe?e:n.escape(e))};return function(){r(e('<div class=\"accordion-heading bokehdocheading\">\\n <a class=\"accordion-toggle bokehdoclabel\" data-toggle=\"collapse\" \\n href=\"#')),r(this.bodyid),r(e('\">\\n Document: ')),r(this.model.get(\"title\")),r(e('\\n <i class=\"bokehdelete icon-trash\"></i>\\n </a>\\n</div>\\n<div id=\"')),r(this.bodyid),r(e('\" class=\"accordion-body collapse\">\\n <div class=\"accordion-inner plots\">\\n </div>\\n</div>\\n\\n\\n'))}.call(this),t.join(\"\")}.call(function(){var n,r={escape:function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")},safe:e};for(n in t)r[n]=t[n];return r}())};return t}),function(){var t={}.hasOwnProperty,e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};n(\"server/usercontext/usercontext\",[\"common/base\",\"../serverutils\",\"common/continuum_view\",\"./userdocstemplate\",\"./documentationtemplate\",\"./wrappertemplate\",\"common/has_parent\",\"common/build_views\",\"common/load_models\"],function(t,n,r,i,o,s,a,l){var u,p,h,c,d,f,g,m,y,v,b;return f={},u=r.View,g=n.utility,h=function(t){function n(){return m=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.template=s,n.prototype.attributes={\"class\":\"accordion-group\"},n.prototype.events={\"click .bokehdoclabel\":\"loaddoc\",\"click .bokehdelete\":\"deldoc\"},n.prototype.deldoc=function(t){return console.log(\"foo\"),t.preventDefault(),this.model.destroy(),!1},n.prototype.loaddoc=function(){return this.model.load()},n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.render_init()},n.prototype.delegateEvents=function(t){return n.__super__.delegateEvents.call(this,t),this.listenTo(this.model,\"loaded\",this.render)},n.prototype.render_init=function(){var t;return t=this.template({model:this.model,bodyid:_.uniqueId()}),this.$el.html(t)},n.prototype.render=function(){var t;return t=this.model.get_obj(\"plot_context\"),this.plot_context_view=new t.default_view({model:t}),this.$el.find(\".plots\").append(this.plot_context_view.el),!0},n}(u),d=function(t){function n(){return y=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){return this.docs=t.docs,this.collection=t.collection,this.views={},n.__super__.initialize.call(this,t),this.render()},n.prototype.attributes={\"class\":\"usercontext\"},n.prototype.events={\"click .bokehrefresh\":function(){return this.collection.fetch({update:!0})}},n.prototype.delegateEvents=function(t){var e=this;return n.__super__.delegateEvents.call(this,t),this.listenTo(this.collection,\"add\",this.render),this.listenTo(this.collection,\"remove\",this.render),this.listenTo(this.collection,\"add\",function(t){return e.listenTo(t,\"loaded\",function(){return e.listenTo(t.get_obj(\"plot_context\"),\"change\",function(){return e.trigger(\"show\")})})}),this.listenTo(this.collection,\"remove\",function(t){return e.stopListening(t)})},n.prototype.render_docs=function(){return this.$el.html(o()),this.$el.append(this.docs)},n.prototype.render=function(){var t,e,n,r,o;if(0===this.collection.models.length&&this.docs)return this.render_docs();for(t=i(),_.map(_.values(this.views),function(t){return t.$el.detach()}),n=this.collection.models.slice().reverse(),l(this.views,n,{}),this.$el.html(t),r=0,o=n.length;o>r;r++)e=n[r],this.$el.find(\".accordion\").append(this.views[e.id].el);return this},n}(u),p=function(t){function n(){return v=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=h,n.prototype.idAttribute=\"docid\",n.prototype.defaults={docid:null,title:null,plot_context:null,apikey:null},n.prototype.sync=function(){},n.prototype.destroy=function(t){return n.__super__.destroy.call(this,t),$.ajax({url:\"/bokeh/doc/\"+this.get(\"docid\")+\"/\",type:\"delete\"})},n.prototype.load=function(t){var e,n,r,i=this;if(!this.loaded)return t?(r=this.get(\"title\"),n=g.load_doc_by_title(r)):(e=this.get(\"docid\"),n=g.load_doc(e)),n.done(function(t){return i.set(\"docid\",t.docid),i.set(\"apikey\",t.apikey),i.set(\"plot_context\",t.plot_context_ref),i.trigger(\"loaded\"),i.loaded=!0})},n}(a),c=function(t){function n(){return b=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=p,n.prototype.subscribe=function(t,e){return t.subscribe(\"bokehuser:\"+e,null),this.listenTo(t,\"msg:bokehuser:\"+e,function(t){return t=JSON.parse(t),\"docchange\"===t.msgtype?this.fetch({update:!0}):void 0})},n.prototype.fetch=function(t){var e,n,r=this;return _.isUndefined(t)&&(t={}),e=n=$.get(\"/bokeh/userinfo/\",{}),e.done(function(e){var n;return n=e.docs,t.update?r.update(n,t):r.reset(n,t)}),e},n}(Backbone.Collection),f.UserDocs=c,f.UserDocsView=d,f.Doc=p,f.DocView=h,f})}.call(this),function(){n(\"server/serverrun\",[\"common/base\",\"./serverutils\",\"./usercontext/usercontext\",\"common/has_properties\"],function(t,e,n,r){var i,o,s,a,l,u;return i=t.Config,o=e.Promises,i.ws_conn_string=\"ws://\"+window.location.host+\"/bokeh/sub\",s=function(t){return r.prototype.sync=Backbone.sync,$(function(){var r,i;return i=e.utility.make_websocket(),r=new n.UserDocs,r.subscribe(i,\"defaultuser\"),window.userdocs=r,s=r.fetch(),s.done(function(){return null!=t?u(r,t):l(r)})})},l=function(t){var e;return e=new n.UserDocsView({collection:t}),a(e.el)},u=function(t,e){var n,r;return n=t.find(function(t){return t.get(\"title\")===e}),null!=n?(n.on(\"loaded\",function(){var t,e;return t=n.get_obj(\"plot_context\"),e=new t.default_view({model:t}),a(e.el)}),n.load()):(r=\"Document '\"+e+\"' wasn't found on this server.\",a(r),console.error(r))},a=function(t){return $(\"#PlotPane\").append(t)},{load:s}})}.call(this),function(){n(\"main\",[\"require\",\"exports\",\"module\",\"common/base\",\"common/base\",\"common/gmap_plot\",\"common/grid_plot\",\"common/has_parent\",\"common/has_properties\",\"common/plot\",\"common/plotting\",\"common/affine\",\"common/build_views\",\"common/bulk_save\",\"common/continuum_view\",\"common/grid_view_state\",\"common/load_models\",\"common/plot_context\",\"common/plot_widget\",\"common/png_view\",\"common/random\",\"common/safebind\",\"common/svg_colors\",\"common/ticking\",\"common/view_state\",\"mapper/1d/linear_mapper\",\"mapper/1d/categorical_mapper\",\"mapper/2d/grid_mapper\",\"mapper/color/linear_color_mapper\",\"palettes/palettes\",\"renderer/annotation/legend\",\"renderer/glyph/glyph\",\"renderer/glyph/glyph_factory\",\"renderer/guide/categorical_axis\",\"renderer/guide/datetime_axis\",\"renderer/guide/grid\",\"renderer/guide/linear_axis\",\"renderer/overlay/box_selection\",\"renderer/properties\",\"server/embed_core\",\"server/serverrun\",\"server/serverutils\",\"source/column_data_source\",\"tool/box_select_tool\",\"tool/box_zoom_tool\",\"tool/crosshair_tool\",\"tool/data_range_box_select_tool\",\"tool/embed_tool\",\"tool/hover_tool\",\"tool/pan_tool\",\"tool/preview_save_tool\",\"tool/reset_tool\",\"tool/resize_tool\",\"tool/wheel_zoom_tool\",\"widget/data_slider\",\"server/serverrun\"],function(t,e){var n,r;return window.Float64Array||(console.warn(\"Float64Array is not supported. Using generic Array instead.\"),window.Float64Array=Array),n={},n.version=\"0.4.2\",n.Collections=t(\"common/base\").Collections,n.Config=t(\"common/base\").Collections,n.GMapPlot=t(\"common/gmap_plot\"),n.GridPlot=t(\"common/grid_plot\"),n.HasParent=t(\"common/has_parent\"),n.HasProperties=t(\"common/has_properties\"),n.Plot=t(\"common/plot\"),n.Plotting=t(\"common/plotting\"),n.Affine=t(\"common/affine\"),n.build_views=t(\"common/build_views\"),n.bulk_save=t(\"common/bulk_save\"),n.ContinuumView=t(\"common/continuum_view\"),n.GridViewState=t(\"common/grid_view_state\"),n.load_models=t(\"common/load_models\"),n.PlotContext=t(\"common/plot_context\"),n.PlotWidget=t(\"common/plot_widget\"),n.PNGView=t(\"common/png_view\"),n.Random=t(\"common/random\"),n.safebind=t(\"common/safebind\"),n.SVGColors=t(\"common/svg_colors\"),n.ticking=t(\"common/ticking\"),n.ViewState=t(\"common/view_state\"),n.LinearMapper=t(\"mapper/1d/linear_mapper\"),n.CategoricalMapper=t(\"mapper/1d/categorical_mapper\"),n.GridMapper=t(\"mapper/2d/grid_mapper\"),n.LinearColorMapper=t(\"mapper/color/linear_color_mapper\"),n.Palettes=t(\"palettes/palettes\"),n.Legend=t(\"renderer/annotation/legend\"),n.Glyph=t(\"renderer/glyph/glyph\"),r=t(\"renderer/glyph/glyph_factory\"),n.AnnularWedge=r.annular_wedge,n.Annulus=r.annulus,n.Arc=r.arc,n.Asterisk=r.asterisk,n.Bezier=r.bezier,n.Circle=r.circle,n.CircleCross=r.circle_cross,n.CircleX=r.circle_x,n.Cross=r.cross,n.Diamond=r.diamond,n.DiamondCross=r.diamond_cross,n.Image=r.image,n.ImageRGBA=r.image_rgba,n.ImageURI=r.image_uri,n.InvertedTriangle=r.inverted_triangle,n.Line=r.line,n.MultiLine=r.multi_line,n.Oval=r.oval,n.Patch=r.patch,n.Patches=r.patches,n.Quad=r.quad,n.Quadratic=r.quadratic,n.Ray=r.ray,n.Rect=r.rect,n.Segment=r.segment,n.Square=r.square,n.SquareCross=r.square_cross,n.SquareX=r.square_x,n.Text=r.text,n.Triangle=r.triangle,n.Wedge=r.wedge,n.X=r.x,n.CategoricalAxis=t(\"renderer/guide/categorical_axis\"),n.DatetimeAxis=t(\"renderer/guide/datetime_axis\"),n.Grid=t(\"renderer/guide/grid\"),n.LinearAxis=t(\"renderer/guide/linear_axis\"),n.BoxSelection=t(\"renderer/overlay/box_selection\"),n.Properties=t(\"renderer/properties\"),n.embed_core=t(\"server/embed_core\"),n.serverrun=t(\"server/serverrun\"),n.serverutils=t(\"server/serverutils\"),n.ColumnDataSource=t(\"source/column_data_source\"),n.BoxSelectTool=t(\"tool/box_select_tool\"),n.BoxZoomTool=t(\"tool/box_zoom_tool\"),n.CrosshairTool=t(\"tool/crosshair_tool\"),n.DataRangeBoxSelectTool=t(\"tool/data_range_box_select_tool\"),n.EmbedTool=t(\"tool/embed_tool\"),n.HoverTool=t(\"tool/hover_tool\"),n.PanTool=t(\"tool/pan_tool\"),n.PreviewSaveTool=t(\"tool/preview_save_tool\"),n.ResetTool=t(\"tool/reset_tool\"),n.ResizeTool=t(\"tool/resize_tool\"),n.WheelZoomTool=t(\"tool/wheel_zoom_tool\"),n.DataSlider=t(\"widget/data_slider\"),n.server_page=t(\"server/serverrun\").load,e.Bokeh=n,n})}.call(this),e(\"main\")});var _oldJQ=$;jQuery.noConflict(),\"undefined\"==typeof $&&($=_oldJQ);\n",
" /* END /Users/david/anaconda/lib/python2.7/site-packages/bokeh/server/static/js/bokeh.min.js */\n",
" </script>\n",
" </head>\n",
" <script type=\"text/javascript\">\n",
" $(function() {\n",
" });\n",
" </script>\n",
" <body>\n",
" <p>Configuring embedded BokehJS mode.</p>\n",
" </body>\n",
"</html>"
],
"metadata": {},
"output_type": "display_data"
}
],
"prompt_number": 6
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"patches([x2 for a in areas], list(areas.values()), color=colors, alpha=0.8, line_color=None)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 7,
"text": [
"<bokeh.objects.Plot at 0x106e2b390>"
]
}
],
"prompt_number": 7
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"show()"
],
"language": "python",
"metadata": {},
"outputs": [
{
"html": [
"<!DOCTYPE html>\n",
"<html lang=\"en\">\n",
" <head>\n",
" <meta charset=\"utf-8\">\n",
" <title>Bokeh Plot</title>\n",
" </head>\n",
" <script type=\"text/javascript\">\n",
" $(function() {\n",
" var all_models = [{\"attributes\": {\"column_names\": [\"fill_color\", \"xs\", \"ys\"], \"doc\": null, \"selected\": [], \"discrete_ranges\": {}, \"cont_ranges\": {}, \"data\": {\"xs\": [[19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], [19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], [19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], [19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], [19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], [19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], [19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], [19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], [19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], [19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]], \"ys\": [[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 99.0, 92.0, 10.0, 11.0, 29.0, 68.0, 64.0, 10.0, 16.0, 70.0, 33.0, 22.0, 65.0, 95.0, 60.0, 72.0, 56.0, 42.0, 46.0, 58.0], [58.0, 46.0, 42.0, 56.0, 72.0, 60.0, 95.0, 65.0, 22.0, 33.0, 70.0, 16.0, 10.0, 64.0, 68.0, 29.0, 11.0, 10.0, 92.0, 99.0, 151.0, 103.0, 103.0, 68.0, 61.0, 82.0, 91.0, 37.0, 109.0, 141.0, 68.0, 49.0, 78.0, 130.0, 72.0, 82.0, 146.0, 100.0, 78.0, 129.0], [129.0, 78.0, 100.0, 146.0, 82.0, 72.0, 130.0, 78.0, 49.0, 68.0, 141.0, 109.0, 37.0, 91.0, 82.0, 61.0, 68.0, 103.0, 103.0, 151.0, 212.0, 149.0, 128.0, 141.0, 72.0, 120.0, 110.0, 79.0, 119.0, 226.0, 104.0, 88.0, 159.0, 187.0, 112.0, 112.0, 232.0, 115.0, 98.0, 218.0], [218.0, 98.0, 115.0, 232.0, 112.0, 112.0, 187.0, 159.0, 88.0, 104.0, 226.0, 119.0, 79.0, 110.0, 120.0, 72.0, 141.0, 128.0, 149.0, 212.0, 308.0, 213.0, 143.0, 215.0, 140.0, 159.0, 207.0, 145.0, 177.0, 287.0, 145.0, 171.0, 253.0, 253.0, 179.0, 197.0, 267.0, 182.0, 147.0, 246.0], [246.0, 147.0, 182.0, 267.0, 197.0, 179.0, 253.0, 253.0, 171.0, 145.0, 287.0, 177.0, 145.0, 207.0, 159.0, 140.0, 215.0, 143.0, 213.0, 308.0, 364.0, 310.0, 233.0, 233.0, 153.0, 224.0, 227.0, 181.0, 238.0, 342.0, 165.0, 205.0, 311.0, 350.0, 201.0, 293.0, 281.0, 260.0, 228.0, 277.0], [277.0, 228.0, 260.0, 281.0, 293.0, 201.0, 350.0, 311.0, 205.0, 165.0, 342.0, 238.0, 181.0, 227.0, 224.0, 153.0, 233.0, 233.0, 310.0, 364.0, 440.0, 399.0, 285.0, 258.0, 183.0, 319.0, 292.0, 258.0, 306.0, 437.0, 250.0, 273.0, 346.0, 389.0, 260.0, 321.0, 358.0, 287.0, 314.0, 328.0], [328.0, 314.0, 287.0, 358.0, 321.0, 260.0, 389.0, 346.0, 273.0, 250.0, 437.0, 306.0, 258.0, 292.0, 319.0, 183.0, 258.0, 285.0, 399.0, 440.0, 525.0, 476.0, 315.0, 304.0, 274.0, 330.0, 302.0, 355.0, 323.0, 478.0, 276.0, 340.0, 390.0, 456.0, 347.0, 373.0, 427.0, 318.0, 372.0, 346.0], [346.0, 372.0, 318.0, 427.0, 373.0, 347.0, 456.0, 390.0, 340.0, 276.0, 478.0, 323.0, 355.0, 302.0, 330.0, 274.0, 304.0, 315.0, 476.0, 525.0, 560.0, 490.0, 361.0, 318.0, 322.0, 357.0, 356.0, 453.0, 354.0, 497.0, 358.0, 431.0, 403.0, 527.0, 427.0, 387.0, 480.0, 412.0, 382.0, 426.0], [426.0, 382.0, 412.0, 480.0, 387.0, 427.0, 527.0, 403.0, 431.0, 358.0, 497.0, 354.0, 453.0, 356.0, 357.0, 322.0, 318.0, 361.0, 490.0, 560.0, 584.0, 560.0, 399.0, 357.0, 379.0, 409.0, 380.0, 540.0, 437.0, 531.0, 398.0, 457.0, 447.0, 545.0, 451.0, 419.0, 543.0, 495.0, 432.0, 481.0], [481.0, 432.0, 495.0, 543.0, 419.0, 451.0, 545.0, 447.0, 457.0, 398.0, 531.0, 437.0, 540.0, 380.0, 409.0, 379.0, 357.0, 399.0, 560.0, 584.0, 626.0, 604.0, 485.0, 410.0, 439.0, 474.0, 407.0, 555.0, 484.0, 622.0, 483.0, 498.0, 486.0, 584.0, 471.0, 483.0, 614.0, 565.0, 488.0, 535.0]], \"fill_color\": [\"#9e0142\", \"#d53e4f\", \"#f46d43\", \"#fdae61\", \"#fee08b\", \"#e6f598\", \"#abdda4\", \"#66c2a5\", \"#3288bd\", \"#5e4fa2\"]}, \"id\": \"e23d955e-0b75-4011-8016-cfef0c0f121d\"}, \"type\": \"ColumnDataSource\", \"id\": \"e23d955e-0b75-4011-8016-cfef0c0f121d\"}, {\"attributes\": {\"data_source\": {\"type\": \"ColumnDataSource\", \"id\": \"e23d955e-0b75-4011-8016-cfef0c0f121d\"}, \"doc\": null, \"id\": \"3a848af5-3b05-4aa7-b6cc-24ef17092e92\", \"xdata_range\": null, \"ydata_range\": null, \"glyphspec\": {\"line_color\": {\"value\": null}, \"line_alpha\": {\"units\": \"data\", \"value\": 0.8}, \"fill_color\": {\"units\": \"data\", \"field\": \"fill_color\"}, \"line_width\": {\"units\": \"data\", \"field\": \"line_width\"}, \"fill_alpha\": {\"units\": \"data\", \"value\": 0.8}, \"text_alpha\": 0.8, \"text_color\": \"black\", \"xs\": {\"units\": \"data\", \"field\": \"xs\"}, \"ys\": {\"units\": \"data\", \"field\": \"ys\"}, \"type\": \"patches\"}, \"nonselection_glyphspec\": {\"line_color\": {\"value\": \"#1f77b4\"}, \"line_width\": {\"units\": \"data\", \"field\": \"line_width\"}, \"angle_units\": \"deg\", \"type\": \"patches\", \"fill_color\": {\"value\": \"#1f77b4\"}, \"line_alpha\": {\"units\": \"data\", \"value\": 0.1}, \"valign\": null, \"start_angle_units\": \"deg\", \"margin\": null, \"fill_alpha\": {\"units\": \"data\", \"value\": 0.1}, \"radius_units\": \"screen\", \"visible\": null, \"length_units\": \"screen\", \"end_angle_units\": \"deg\", \"line_dash_offset\": 0, \"line_cap\": \"butt\", \"line_dash\": [], \"xs\": {\"units\": \"data\", \"field\": \"xs\"}, \"ys\": {\"units\": \"data\", \"field\": \"ys\"}, \"line_join\": \"miter\", \"halign\": null}}, \"type\": \"Glyph\", \"id\": \"3a848af5-3b05-4aa7-b6cc-24ef17092e92\"}, {\"attributes\": {\"x_range\": {\"type\": \"DataRange1d\", \"id\": \"b879402b-d99c-4c44-b6ac-28388af7d575\"}, \"axes\": [], \"title\": \"Plot\", \"y_range\": {\"type\": \"DataRange1d\", \"id\": \"57f3373e-d4de-4646-a08a-77c19dde082a\"}, \"outer_width\": 600, \"renderers\": [{\"type\": \"LinearAxis\", \"id\": \"4e2249ee-4b63-44e0-aaa5-e1eeae8522e9\"}, {\"type\": \"LinearAxis\", \"id\": \"452f6622-9c65-4897-9db5-60caee8329fe\"}, {\"type\": \"Grid\", \"id\": \"b418ee35-2a87-4cc4-8dbd-b5e9b90718fb\"}, {\"type\": \"Grid\", \"id\": \"b389a102-e8fa-4421-a65a-312f31da1021\"}, {\"type\": \"BoxSelection\", \"id\": \"5f9acab2-84f9-436c-bfa2-9b644b6918d2\"}, {\"type\": \"BoxSelection\", \"id\": \"a8f48bd6-7e23-4f4f-a292-426e7a3845d1\"}, {\"type\": \"Glyph\", \"id\": \"3a848af5-3b05-4aa7-b6cc-24ef17092e92\"}], \"outer_height\": 600, \"doc\": null, \"canvas_height\": 600, \"id\": \"c64abf9c-7a2f-4982-a790-0f455cf002fd\", \"tools\": [{\"type\": \"PanTool\", \"id\": \"64de10af-ee07-4d3d-a40b-34cee303088a\"}, {\"type\": \"WheelZoomTool\", \"id\": \"891b516e-718f-42bc-b031-a5a916351cc7\"}, {\"type\": \"BoxZoomTool\", \"id\": \"9a6b7eca-8d9e-4e33-8e08-87efe2c4243c\"}, {\"type\": \"PreviewSaveTool\", \"id\": \"fb0ab337-a140-425d-ac5f-a6a17f474721\"}, {\"type\": \"ResizeTool\", \"id\": \"a91de159-7611-44a0-ab4a-da1c348b3a90\"}, {\"type\": \"BoxSelectTool\", \"id\": \"8a9a13d7-aa4c-4c0e-882a-4956a8706dc6\"}, {\"type\": \"ResetTool\", \"id\": \"60c5d305-e28b-42eb-8fed-04f8bb6f7260\"}], \"canvas_width\": 600}, \"type\": \"Plot\", \"id\": \"c64abf9c-7a2f-4982-a790-0f455cf002fd\"}, {\"attributes\": {\"plot\": {\"type\": \"Plot\", \"id\": \"c64abf9c-7a2f-4982-a790-0f455cf002fd\"}, \"dataranges\": [], \"id\": \"fb0ab337-a140-425d-ac5f-a6a17f474721\", \"doc\": null}, \"type\": \"PreviewSaveTool\", \"id\": \"fb0ab337-a140-425d-ac5f-a6a17f474721\"}, {\"attributes\": {\"plot\": {\"type\": \"Plot\", \"id\": \"c64abf9c-7a2f-4982-a790-0f455cf002fd\"}, \"doc\": null, \"dimensions\": [\"width\", \"height\"], \"id\": \"891b516e-718f-42bc-b031-a5a916351cc7\"}, \"type\": \"WheelZoomTool\", \"id\": \"891b516e-718f-42bc-b031-a5a916351cc7\"}, {\"attributes\": {\"plot\": {\"type\": \"Plot\", \"id\": \"c64abf9c-7a2f-4982-a790-0f455cf002fd\"}, \"id\": \"9a6b7eca-8d9e-4e33-8e08-87efe2c4243c\", \"doc\": null}, \"type\": \"BoxZoomTool\", \"id\": \"9a6b7eca-8d9e-4e33-8e08-87efe2c4243c\"}, {\"attributes\": {\"doc\": null, \"children\": [{\"type\": \"Plot\", \"id\": \"c64abf9c-7a2f-4982-a790-0f455cf002fd\"}], \"id\": \"1797eafc-59ad-4b80-9f16-d07100f90fe1\"}, \"type\": \"PlotContext\", \"id\": \"1797eafc-59ad-4b80-9f16-d07100f90fe1\"}, {\"attributes\": {\"sources\": [{\"ref\": {\"type\": \"ColumnDataSource\", \"id\": \"e23d955e-0b75-4011-8016-cfef0c0f121d\"}, \"columns\": [\"ys\"]}], \"id\": \"57f3373e-d4de-4646-a08a-77c19dde082a\", \"doc\": null}, \"type\": \"DataRange1d\", \"id\": \"57f3373e-d4de-4646-a08a-77c19dde082a\"}, {\"attributes\": {\"plot\": {\"type\": \"Plot\", \"id\": \"c64abf9c-7a2f-4982-a790-0f455cf002fd\"}, \"doc\": null, \"is_datetime\": false, \"dimension\": 1, \"id\": \"b389a102-e8fa-4421-a65a-312f31da1021\"}, \"type\": \"Grid\", \"id\": \"b389a102-e8fa-4421-a65a-312f31da1021\"}, {\"attributes\": {\"plot\": {\"type\": \"Plot\", \"id\": \"c64abf9c-7a2f-4982-a790-0f455cf002fd\"}, \"location\": \"min\", \"bounds\": \"auto\", \"doc\": null, \"id\": \"452f6622-9c65-4897-9db5-60caee8329fe\", \"dimension\": 1}, \"type\": \"LinearAxis\", \"id\": \"452f6622-9c65-4897-9db5-60caee8329fe\"}, {\"attributes\": {\"plot\": {\"type\": \"Plot\", \"id\": \"c64abf9c-7a2f-4982-a790-0f455cf002fd\"}, \"id\": \"a91de159-7611-44a0-ab4a-da1c348b3a90\", \"doc\": null}, \"type\": \"ResizeTool\", \"id\": \"a91de159-7611-44a0-ab4a-da1c348b3a90\"}, {\"attributes\": {\"doc\": null, \"tool\": {\"type\": \"BoxZoomTool\", \"id\": \"9a6b7eca-8d9e-4e33-8e08-87efe2c4243c\"}, \"id\": \"5f9acab2-84f9-436c-bfa2-9b644b6918d2\"}, \"type\": \"BoxSelection\", \"id\": \"5f9acab2-84f9-436c-bfa2-9b644b6918d2\"}, {\"attributes\": {\"sources\": [{\"ref\": {\"type\": \"ColumnDataSource\", \"id\": \"e23d955e-0b75-4011-8016-cfef0c0f121d\"}, \"columns\": [\"xs\"]}], \"id\": \"b879402b-d99c-4c44-b6ac-28388af7d575\", \"doc\": null}, \"type\": \"DataRange1d\", \"id\": \"b879402b-d99c-4c44-b6ac-28388af7d575\"}, {\"attributes\": {\"plot\": {\"type\": \"Plot\", \"id\": \"c64abf9c-7a2f-4982-a790-0f455cf002fd\"}, \"location\": \"min\", \"bounds\": \"auto\", \"doc\": null, \"id\": \"4e2249ee-4b63-44e0-aaa5-e1eeae8522e9\", \"dimension\": 0}, \"type\": \"LinearAxis\", \"id\": \"4e2249ee-4b63-44e0-aaa5-e1eeae8522e9\"}, {\"attributes\": {\"plot\": {\"type\": \"Plot\", \"id\": \"c64abf9c-7a2f-4982-a790-0f455cf002fd\"}, \"doc\": null, \"dimensions\": [\"width\", \"height\"], \"id\": \"64de10af-ee07-4d3d-a40b-34cee303088a\"}, \"type\": \"PanTool\", \"id\": \"64de10af-ee07-4d3d-a40b-34cee303088a\"}, {\"attributes\": {\"doc\": null, \"tool\": {\"type\": \"BoxSelectTool\", \"id\": \"8a9a13d7-aa4c-4c0e-882a-4956a8706dc6\"}, \"id\": \"a8f48bd6-7e23-4f4f-a292-426e7a3845d1\"}, \"type\": \"BoxSelection\", \"id\": \"a8f48bd6-7e23-4f4f-a292-426e7a3845d1\"}, {\"attributes\": {\"plot\": {\"type\": \"Plot\", \"id\": \"c64abf9c-7a2f-4982-a790-0f455cf002fd\"}, \"id\": \"60c5d305-e28b-42eb-8fed-04f8bb6f7260\", \"doc\": null}, \"type\": \"ResetTool\", \"id\": \"60c5d305-e28b-42eb-8fed-04f8bb6f7260\"}, {\"attributes\": {\"plot\": {\"type\": \"Plot\", \"id\": \"c64abf9c-7a2f-4982-a790-0f455cf002fd\"}, \"doc\": null, \"is_datetime\": false, \"dimension\": 0, \"id\": \"b418ee35-2a87-4cc4-8dbd-b5e9b90718fb\"}, \"type\": \"Grid\", \"id\": \"b418ee35-2a87-4cc4-8dbd-b5e9b90718fb\"}, {\"attributes\": {\"doc\": null, \"renderers\": [{\"type\": \"Glyph\", \"id\": \"3a848af5-3b05-4aa7-b6cc-24ef17092e92\"}], \"id\": \"8a9a13d7-aa4c-4c0e-882a-4956a8706dc6\"}, \"type\": \"BoxSelectTool\", \"id\": \"8a9a13d7-aa4c-4c0e-882a-4956a8706dc6\"}];\n",
" var modelid = \"c64abf9c-7a2f-4982-a790-0f455cf002fd\";\n",
" var modeltype = \"Plot\";\n",
" var elementid = \"e3ab3a3e-9e9d-4864-a7db-039451624d08\";\n",
" console.log(modelid, modeltype, elementid);\n",
" Bokeh.load_models(all_models);\n",
" var model = Bokeh.Collections(modeltype).get(modelid);\n",
" var view = new model.default_view({model: model, el: '#e3ab3a3e-9e9d-4864-a7db-039451624d08'});\n",
" });\n",
" </script>\n",
" <body>\n",
" <div class=\"plotdiv\" id=\"e3ab3a3e-9e9d-4864-a7db-039451624d08\">Plots</div>\n",
" </body>\n",
"</html>"
],
"metadata": {},
"output_type": "display_data"
}
],
"prompt_number": 8
}
],
"metadata": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment