{
 "metadata": {
  "name": "",
  "signature": "sha256:75ff44bc6280cc5c79d9fe34d5669a058624333065acb4ac0b1e4de6da41ab1e"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import time"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [],
     "prompt_number": 7
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from numpy import cumprod, linspace, random"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [],
     "prompt_number": 8
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from bokeh.sampledata.stocks import AAPL, FB, GOOG, IBM, MSFT\n",
      "from bokeh.plotting import *\n",
      "from bokeh.models import GridPlot"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [],
     "prompt_number": 9
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "num_points = 300\n",
      "\n",
      "now = time.time()\n",
      "dt = 24*3600 # days in seconds\n",
      "dates = linspace(now, now + num_points*dt, num_points) * 1000 # times in ms\n",
      "acme = cumprod(random.lognormal(0.0, 0.04, size=num_points))\n",
      "choam = cumprod(random.lognormal(0.0, 0.04, size=num_points))"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [],
     "prompt_number": 10
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "output_notebook()"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "html": [
        "    \n",
        "        <style>\n",
        "            /* BEGIN /Users/bryan/work/bokeh/bokeh/server/static/css/bokeh.min.css */\n",
        "                .bk-bs-container{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}@media (min-width:768px){.bk-bs-container{width:750px}}@media (min-width:992px){.bk-bs-container{width:970px}}@media (min-width:1200px){.bk-bs-container{width:1170px}}.bk-bs-container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}.bk-bs-row{margin-left:-15px;margin-right:-15px}.bk-bs-col-xs-1,.bk-bs-col-sm-1,.bk-bs-col-md-1,.bk-bs-col-lg-1,.bk-bs-col-xs-2,.bk-bs-col-sm-2,.bk-bs-col-md-2,.bk-bs-col-lg-2,.bk-bs-col-xs-3,.bk-bs-col-sm-3,.bk-bs-col-md-3,.bk-bs-col-lg-3,.bk-bs-col-xs-4,.bk-bs-col-sm-4,.bk-bs-col-md-4,.bk-bs-col-lg-4,.bk-bs-col-xs-5,.bk-bs-col-sm-5,.bk-bs-col-md-5,.bk-bs-col-lg-5,.bk-bs-col-xs-6,.bk-bs-col-sm-6,.bk-bs-col-md-6,.bk-bs-col-lg-6,.bk-bs-col-xs-7,.bk-bs-col-sm-7,.bk-bs-col-md-7,.bk-bs-col-lg-7,.bk-bs-col-xs-8,.bk-bs-col-sm-8,.bk-bs-col-md-8,.bk-bs-col-lg-8,.bk-bs-col-xs-9,.bk-bs-col-sm-9,.bk-bs-col-md-9,.bk-bs-col-lg-9,.bk-bs-col-xs-10,.bk-bs-col-sm-10,.bk-bs-col-md-10,.bk-bs-col-lg-10,.bk-bs-col-xs-11,.bk-bs-col-sm-11,.bk-bs-col-md-11,.bk-bs-col-lg-11,.bk-bs-col-xs-12,.bk-bs-col-sm-12,.bk-bs-col-md-12,.bk-bs-col-lg-12{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.bk-bs-col-xs-1,.bk-bs-col-xs-2,.bk-bs-col-xs-3,.bk-bs-col-xs-4,.bk-bs-col-xs-5,.bk-bs-col-xs-6,.bk-bs-col-xs-7,.bk-bs-col-xs-8,.bk-bs-col-xs-9,.bk-bs-col-xs-10,.bk-bs-col-xs-11,.bk-bs-col-xs-12{float:left}.bk-bs-col-xs-12{width:100%}.bk-bs-col-xs-11{width:91.66666667%}.bk-bs-col-xs-10{width:83.33333333%}.bk-bs-col-xs-9{width:75%}.bk-bs-col-xs-8{width:66.66666667%}.bk-bs-col-xs-7{width:58.33333333%}.bk-bs-col-xs-6{width:50%}.bk-bs-col-xs-5{width:41.66666667%}.bk-bs-col-xs-4{width:33.33333333%}.bk-bs-col-xs-3{width:25%}.bk-bs-col-xs-2{width:16.66666667%}.bk-bs-col-xs-1{width:8.33333333%}.bk-bs-col-xs-pull-12{right:100%}.bk-bs-col-xs-pull-11{right:91.66666667%}.bk-bs-col-xs-pull-10{right:83.33333333%}.bk-bs-col-xs-pull-9{right:75%}.bk-bs-col-xs-pull-8{right:66.66666667%}.bk-bs-col-xs-pull-7{right:58.33333333%}.bk-bs-col-xs-pull-6{right:50%}.bk-bs-col-xs-pull-5{right:41.66666667%}.bk-bs-col-xs-pull-4{right:33.33333333%}.bk-bs-col-xs-pull-3{right:25%}.bk-bs-col-xs-pull-2{right:16.66666667%}.bk-bs-col-xs-pull-1{right:8.33333333%}.bk-bs-col-xs-pull-0{right:0}.bk-bs-col-xs-push-12{left:100%}.bk-bs-col-xs-push-11{left:91.66666667%}.bk-bs-col-xs-push-10{left:83.33333333%}.bk-bs-col-xs-push-9{left:75%}.bk-bs-col-xs-push-8{left:66.66666667%}.bk-bs-col-xs-push-7{left:58.33333333%}.bk-bs-col-xs-push-6{left:50%}.bk-bs-col-xs-push-5{left:41.66666667%}.bk-bs-col-xs-push-4{left:33.33333333%}.bk-bs-col-xs-push-3{left:25%}.bk-bs-col-xs-push-2{left:16.66666667%}.bk-bs-col-xs-push-1{left:8.33333333%}.bk-bs-col-xs-push-0{left:0}.bk-bs-col-xs-offset-12{margin-left:100%}.bk-bs-col-xs-offset-11{margin-left:91.66666667%}.bk-bs-col-xs-offset-10{margin-left:83.33333333%}.bk-bs-col-xs-offset-9{margin-left:75%}.bk-bs-col-xs-offset-8{margin-left:66.66666667%}.bk-bs-col-xs-offset-7{margin-left:58.33333333%}.bk-bs-col-xs-offset-6{margin-left:50%}.bk-bs-col-xs-offset-5{margin-left:41.66666667%}.bk-bs-col-xs-offset-4{margin-left:33.33333333%}.bk-bs-col-xs-offset-3{margin-left:25%}.bk-bs-col-xs-offset-2{margin-left:16.66666667%}.bk-bs-col-xs-offset-1{margin-left:8.33333333%}.bk-bs-col-xs-offset-0{margin-left:0}@media (min-width:768px){.bk-bs-col-sm-1,.bk-bs-col-sm-2,.bk-bs-col-sm-3,.bk-bs-col-sm-4,.bk-bs-col-sm-5,.bk-bs-col-sm-6,.bk-bs-col-sm-7,.bk-bs-col-sm-8,.bk-bs-col-sm-9,.bk-bs-col-sm-10,.bk-bs-col-sm-11,.bk-bs-col-sm-12{float:left}.bk-bs-col-sm-12{width:100%}.bk-bs-col-sm-11{width:91.66666667%}.bk-bs-col-sm-10{width:83.33333333%}.bk-bs-col-sm-9{width:75%}.bk-bs-col-sm-8{width:66.66666667%}.bk-bs-col-sm-7{width:58.33333333%}.bk-bs-col-sm-6{width:50%}.bk-bs-col-sm-5{width:41.66666667%}.bk-bs-col-sm-4{width:33.33333333%}.bk-bs-col-sm-3{width:25%}.bk-bs-col-sm-2{width:16.66666667%}.bk-bs-col-sm-1{width:8.33333333%}.bk-bs-col-sm-pull-12{right:100%}.bk-bs-col-sm-pull-11{right:91.66666667%}.bk-bs-col-sm-pull-10{right:83.33333333%}.bk-bs-col-sm-pull-9{right:75%}.bk-bs-col-sm-pull-8{right:66.66666667%}.bk-bs-col-sm-pull-7{right:58.33333333%}.bk-bs-col-sm-pull-6{right:50%}.bk-bs-col-sm-pull-5{right:41.66666667%}.bk-bs-col-sm-pull-4{right:33.33333333%}.bk-bs-col-sm-pull-3{right:25%}.bk-bs-col-sm-pull-2{right:16.66666667%}.bk-bs-col-sm-pull-1{right:8.33333333%}.bk-bs-col-sm-pull-0{right:0}.bk-bs-col-sm-push-12{left:100%}.bk-bs-col-sm-push-11{left:91.66666667%}.bk-bs-col-sm-push-10{left:83.33333333%}.bk-bs-col-sm-push-9{left:75%}.bk-bs-col-sm-push-8{left:66.66666667%}.bk-bs-col-sm-push-7{left:58.33333333%}.bk-bs-col-sm-push-6{left:50%}.bk-bs-col-sm-push-5{left:41.66666667%}.bk-bs-col-sm-push-4{left:33.33333333%}.bk-bs-col-sm-push-3{left:25%}.bk-bs-col-sm-push-2{left:16.66666667%}.bk-bs-col-sm-push-1{left:8.33333333%}.bk-bs-col-sm-push-0{left:0}.bk-bs-col-sm-offset-12{margin-left:100%}.bk-bs-col-sm-offset-11{margin-left:91.66666667%}.bk-bs-col-sm-offset-10{margin-left:83.33333333%}.bk-bs-col-sm-offset-9{margin-left:75%}.bk-bs-col-sm-offset-8{margin-left:66.66666667%}.bk-bs-col-sm-offset-7{margin-left:58.33333333%}.bk-bs-col-sm-offset-6{margin-left:50%}.bk-bs-col-sm-offset-5{margin-left:41.66666667%}.bk-bs-col-sm-offset-4{margin-left:33.33333333%}.bk-bs-col-sm-offset-3{margin-left:25%}.bk-bs-col-sm-offset-2{margin-left:16.66666667%}.bk-bs-col-sm-offset-1{margin-left:8.33333333%}.bk-bs-col-sm-offset-0{margin-left:0}}@media (min-width:992px){.bk-bs-col-md-1,.bk-bs-col-md-2,.bk-bs-col-md-3,.bk-bs-col-md-4,.bk-bs-col-md-5,.bk-bs-col-md-6,.bk-bs-col-md-7,.bk-bs-col-md-8,.bk-bs-col-md-9,.bk-bs-col-md-10,.bk-bs-col-md-11,.bk-bs-col-md-12{float:left}.bk-bs-col-md-12{width:100%}.bk-bs-col-md-11{width:91.66666667%}.bk-bs-col-md-10{width:83.33333333%}.bk-bs-col-md-9{width:75%}.bk-bs-col-md-8{width:66.66666667%}.bk-bs-col-md-7{width:58.33333333%}.bk-bs-col-md-6{width:50%}.bk-bs-col-md-5{width:41.66666667%}.bk-bs-col-md-4{width:33.33333333%}.bk-bs-col-md-3{width:25%}.bk-bs-col-md-2{width:16.66666667%}.bk-bs-col-md-1{width:8.33333333%}.bk-bs-col-md-pull-12{right:100%}.bk-bs-col-md-pull-11{right:91.66666667%}.bk-bs-col-md-pull-10{right:83.33333333%}.bk-bs-col-md-pull-9{right:75%}.bk-bs-col-md-pull-8{right:66.66666667%}.bk-bs-col-md-pull-7{right:58.33333333%}.bk-bs-col-md-pull-6{right:50%}.bk-bs-col-md-pull-5{right:41.66666667%}.bk-bs-col-md-pull-4{right:33.33333333%}.bk-bs-col-md-pull-3{right:25%}.bk-bs-col-md-pull-2{right:16.66666667%}.bk-bs-col-md-pull-1{right:8.33333333%}.bk-bs-col-md-pull-0{right:0}.bk-bs-col-md-push-12{left:100%}.bk-bs-col-md-push-11{left:91.66666667%}.bk-bs-col-md-push-10{left:83.33333333%}.bk-bs-col-md-push-9{left:75%}.bk-bs-col-md-push-8{left:66.66666667%}.bk-bs-col-md-push-7{left:58.33333333%}.bk-bs-col-md-push-6{left:50%}.bk-bs-col-md-push-5{left:41.66666667%}.bk-bs-col-md-push-4{left:33.33333333%}.bk-bs-col-md-push-3{left:25%}.bk-bs-col-md-push-2{left:16.66666667%}.bk-bs-col-md-push-1{left:8.33333333%}.bk-bs-col-md-push-0{left:0}.bk-bs-col-md-offset-12{margin-left:100%}.bk-bs-col-md-offset-11{margin-left:91.66666667%}.bk-bs-col-md-offset-10{margin-left:83.33333333%}.bk-bs-col-md-offset-9{margin-left:75%}.bk-bs-col-md-offset-8{margin-left:66.66666667%}.bk-bs-col-md-offset-7{margin-left:58.33333333%}.bk-bs-col-md-offset-6{margin-left:50%}.bk-bs-col-md-offset-5{margin-left:41.66666667%}.bk-bs-col-md-offset-4{margin-left:33.33333333%}.bk-bs-col-md-offset-3{margin-left:25%}.bk-bs-col-md-offset-2{margin-left:16.66666667%}.bk-bs-col-md-offset-1{margin-left:8.33333333%}.bk-bs-col-md-offset-0{margin-left:0}}@media (min-width:1200px){.bk-bs-col-lg-1,.bk-bs-col-lg-2,.bk-bs-col-lg-3,.bk-bs-col-lg-4,.bk-bs-col-lg-5,.bk-bs-col-lg-6,.bk-bs-col-lg-7,.bk-bs-col-lg-8,.bk-bs-col-lg-9,.bk-bs-col-lg-10,.bk-bs-col-lg-11,.bk-bs-col-lg-12{float:left}.bk-bs-col-lg-12{width:100%}.bk-bs-col-lg-11{width:91.66666667%}.bk-bs-col-lg-10{width:83.33333333%}.bk-bs-col-lg-9{width:75%}.bk-bs-col-lg-8{width:66.66666667%}.bk-bs-col-lg-7{width:58.33333333%}.bk-bs-col-lg-6{width:50%}.bk-bs-col-lg-5{width:41.66666667%}.bk-bs-col-lg-4{width:33.33333333%}.bk-bs-col-lg-3{width:25%}.bk-bs-col-lg-2{width:16.66666667%}.bk-bs-col-lg-1{width:8.33333333%}.bk-bs-col-lg-pull-12{right:100%}.bk-bs-col-lg-pull-11{right:91.66666667%}.bk-bs-col-lg-pull-10{right:83.33333333%}.bk-bs-col-lg-pull-9{right:75%}.bk-bs-col-lg-pull-8{right:66.66666667%}.bk-bs-col-lg-pull-7{right:58.33333333%}.bk-bs-col-lg-pull-6{right:50%}.bk-bs-col-lg-pull-5{right:41.66666667%}.bk-bs-col-lg-pull-4{right:33.33333333%}.bk-bs-col-lg-pull-3{right:25%}.bk-bs-col-lg-pull-2{right:16.66666667%}.bk-bs-col-lg-pull-1{right:8.33333333%}.bk-bs-col-lg-pull-0{right:0}.bk-bs-col-lg-push-12{left:100%}.bk-bs-col-lg-push-11{left:91.66666667%}.bk-bs-col-lg-push-10{left:83.33333333%}.bk-bs-col-lg-push-9{left:75%}.bk-bs-col-lg-push-8{left:66.66666667%}.bk-bs-col-lg-push-7{left:58.33333333%}.bk-bs-col-lg-push-6{left:50%}.bk-bs-col-lg-push-5{left:41.66666667%}.bk-bs-col-lg-push-4{left:33.33333333%}.bk-bs-col-lg-push-3{left:25%}.bk-bs-col-lg-push-2{left:16.66666667%}.bk-bs-col-lg-push-1{left:8.33333333%}.bk-bs-col-lg-push-0{left:0}.bk-bs-col-lg-offset-12{margin-left:100%}.bk-bs-col-lg-offset-11{margin-left:91.66666667%}.bk-bs-col-lg-offset-10{margin-left:83.33333333%}.bk-bs-col-lg-offset-9{margin-left:75%}.bk-bs-col-lg-offset-8{margin-left:66.66666667%}.bk-bs-col-lg-offset-7{margin-left:58.33333333%}.bk-bs-col-lg-offset-6{margin-left:50%}.bk-bs-col-lg-offset-5{margin-left:41.66666667%}.bk-bs-col-lg-offset-4{margin-left:33.33333333%}.bk-bs-col-lg-offset-3{margin-left:25%}.bk-bs-col-lg-offset-2{margin-left:16.66666667%}.bk-bs-col-lg-offset-1{margin-left:8.33333333%}.bk-bs-col-lg-offset-0{margin-left:0}}table{max-width:100%;background-color:transparent}th{text-align:left}.bk-bs-table{width:100%;margin-bottom:20px}.bk-bs-table>thead>tr>th,.bk-bs-table>tbody>tr>th,.bk-bs-table>tfoot>tr>th,.bk-bs-table>thead>tr>td,.bk-bs-table>tbody>tr>td,.bk-bs-table>tfoot>tr>td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.bk-bs-table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.bk-bs-table>caption+thead>tr:first-child>th,.bk-bs-table>colgroup+thead>tr:first-child>th,.bk-bs-table>thead:first-child>tr:first-child>th,.bk-bs-table>caption+thead>tr:first-child>td,.bk-bs-table>colgroup+thead>tr:first-child>td,.bk-bs-table>thead:first-child>tr:first-child>td{border-top:0}.bk-bs-table>tbody+tbody{border-top:2px solid #ddd}.bk-bs-table .bk-bs-table{background-color:#fff}.bk-bs-table-condensed>thead>tr>th,.bk-bs-table-condensed>tbody>tr>th,.bk-bs-table-condensed>tfoot>tr>th,.bk-bs-table-condensed>thead>tr>td,.bk-bs-table-condensed>tbody>tr>td,.bk-bs-table-condensed>tfoot>tr>td{padding:5px}.bk-bs-table-bordered{border:1px solid #ddd}.bk-bs-table-bordered>thead>tr>th,.bk-bs-table-bordered>tbody>tr>th,.bk-bs-table-bordered>tfoot>tr>th,.bk-bs-table-bordered>thead>tr>td,.bk-bs-table-bordered>tbody>tr>td,.bk-bs-table-bordered>tfoot>tr>td{border:1px solid #ddd}.bk-bs-table-bordered>thead>tr>th,.bk-bs-table-bordered>thead>tr>td{border-bottom-width:2px}.bk-bs-table-striped>tbody>tr:nth-child(odd)>td,.bk-bs-table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.bk-bs-table-hover>tbody>tr:hover>td,.bk-bs-table-hover>tbody>tr:hover>th{background-color:#f5f5f5}table col[class*=col-]{position:static;float:none;display:table-column}table td[class*=col-],table th[class*=col-]{position:static;float:none;display:table-cell}.bk-bs-table>thead>tr>td.active,.bk-bs-table>tbody>tr>td.active,.bk-bs-table>tfoot>tr>td.active,.bk-bs-table>thead>tr>th.active,.bk-bs-table>tbody>tr>th.active,.bk-bs-table>tfoot>tr>th.active,.bk-bs-table>thead>tr.active>td,.bk-bs-table>tbody>tr.active>td,.bk-bs-table>tfoot>tr.active>td,.bk-bs-table>thead>tr.active>th,.bk-bs-table>tbody>tr.active>th,.bk-bs-table>tfoot>tr.active>th{background-color:#f5f5f5}.bk-bs-table-hover>tbody>tr>td.active:hover,.bk-bs-table-hover>tbody>tr>th.active:hover,.bk-bs-table-hover>tbody>tr.active:hover>td,.bk-bs-table-hover>tbody>tr.active:hover>th{background-color:#e8e8e8}.bk-bs-table>thead>tr>td.success,.bk-bs-table>tbody>tr>td.success,.bk-bs-table>tfoot>tr>td.success,.bk-bs-table>thead>tr>th.success,.bk-bs-table>tbody>tr>th.success,.bk-bs-table>tfoot>tr>th.success,.bk-bs-table>thead>tr.success>td,.bk-bs-table>tbody>tr.success>td,.bk-bs-table>tfoot>tr.success>td,.bk-bs-table>thead>tr.success>th,.bk-bs-table>tbody>tr.success>th,.bk-bs-table>tfoot>tr.success>th{background-color:#dff0d8}.bk-bs-table-hover>tbody>tr>td.success:hover,.bk-bs-table-hover>tbody>tr>th.success:hover,.bk-bs-table-hover>tbody>tr.success:hover>td,.bk-bs-table-hover>tbody>tr.success:hover>th{background-color:#d0e9c6}.bk-bs-table>thead>tr>td.info,.bk-bs-table>tbody>tr>td.info,.bk-bs-table>tfoot>tr>td.info,.bk-bs-table>thead>tr>th.info,.bk-bs-table>tbody>tr>th.info,.bk-bs-table>tfoot>tr>th.info,.bk-bs-table>thead>tr.info>td,.bk-bs-table>tbody>tr.info>td,.bk-bs-table>tfoot>tr.info>td,.bk-bs-table>thead>tr.info>th,.bk-bs-table>tbody>tr.info>th,.bk-bs-table>tfoot>tr.info>th{background-color:#d9edf7}.bk-bs-table-hover>tbody>tr>td.info:hover,.bk-bs-table-hover>tbody>tr>th.info:hover,.bk-bs-table-hover>tbody>tr.info:hover>td,.bk-bs-table-hover>tbody>tr.info:hover>th{background-color:#c4e3f3}.bk-bs-table>thead>tr>td.warning,.bk-bs-table>tbody>tr>td.warning,.bk-bs-table>tfoot>tr>td.warning,.bk-bs-table>thead>tr>th.warning,.bk-bs-table>tbody>tr>th.warning,.bk-bs-table>tfoot>tr>th.warning,.bk-bs-table>thead>tr.warning>td,.bk-bs-table>tbody>tr.warning>td,.bk-bs-table>tfoot>tr.warning>td,.bk-bs-table>thead>tr.warning>th,.bk-bs-table>tbody>tr.warning>th,.bk-bs-table>tfoot>tr.warning>th{background-color:#fcf8e3}.bk-bs-table-hover>tbody>tr>td.warning:hover,.bk-bs-table-hover>tbody>tr>th.warning:hover,.bk-bs-table-hover>tbody>tr.warning:hover>td,.bk-bs-table-hover>tbody>tr.warning:hover>th{background-color:#faf2cc}.bk-bs-table>thead>tr>td.danger,.bk-bs-table>tbody>tr>td.danger,.bk-bs-table>tfoot>tr>td.danger,.bk-bs-table>thead>tr>th.danger,.bk-bs-table>tbody>tr>th.danger,.bk-bs-table>tfoot>tr>th.danger,.bk-bs-table>thead>tr.danger>td,.bk-bs-table>tbody>tr.danger>td,.bk-bs-table>tfoot>tr.danger>td,.bk-bs-table>thead>tr.danger>th,.bk-bs-table>tbody>tr.danger>th,.bk-bs-table>tfoot>tr.danger>th{background-color:#f2dede}.bk-bs-table-hover>tbody>tr>td.danger:hover,.bk-bs-table-hover>tbody>tr>th.danger:hover,.bk-bs-table-hover>tbody>tr.danger:hover>td,.bk-bs-table-hover>tbody>tr.danger:hover>th{background-color:#ebcccc}@media (max-width:767px){.bk-bs-table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd;-webkit-overflow-scrolling:touch}.bk-bs-table-responsive>.bk-bs-table{margin-bottom:0}.bk-bs-table-responsive>.bk-bs-table>thead>tr>th,.bk-bs-table-responsive>.bk-bs-table>tbody>tr>th,.bk-bs-table-responsive>.bk-bs-table>tfoot>tr>th,.bk-bs-table-responsive>.bk-bs-table>thead>tr>td,.bk-bs-table-responsive>.bk-bs-table>tbody>tr>td,.bk-bs-table-responsive>.bk-bs-table>tfoot>tr>td{white-space:nowrap}.bk-bs-table-responsive>.bk-bs-table-bordered{border:0}.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr>th:first-child,.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>th:first-child,.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr>th:first-child,.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr>td:first-child,.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>td:first-child,.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr>td:first-child{border-left:0}.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr>th:last-child,.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>th:last-child,.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr>th:last-child,.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr>td:last-child,.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>td:last-child,.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr>td:last-child{border-right:0}.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr:last-child>th,.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr:last-child>th,.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr:last-child>td,.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr:last-child>td{border-bottom:0}}fieldset{padding:0;margin:0;border:0;min-width:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=radio],input[type=checkbox]{margin:4px 0 0;margin-top:1px \\9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=radio]:focus,input[type=checkbox]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.bk-bs-form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-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-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.bk-bs-form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.bk-bs-form-control::-moz-placeholder{color:#999;opacity:1}.bk-bs-form-control:-ms-input-placeholder{color:#999}.bk-bs-form-control::-webkit-input-placeholder{color:#999}.bk-bs-form-control[disabled],.bk-bs-form-control[readonly],fieldset[disabled] .bk-bs-form-control{cursor:not-allowed;background-color:#eee;opacity:1}textarea.bk-bs-form-control{height:auto}input[type=search]{-webkit-appearance:none}input[type=date]{line-height:34px}.bk-bs-form-group{margin-bottom:15px}.bk-bs-radio,.bk-bs-checkbox{display:block;min-height:20px;margin-top:10px;margin-bottom:10px;padding-left:20px}.bk-bs-radio label,.bk-bs-checkbox label{display:inline;font-weight:400;cursor:pointer}.bk-bs-radio input[type=radio],.bk-bs-radio-inline input[type=radio],.bk-bs-checkbox input[type=checkbox],.bk-bs-checkbox-inline input[type=checkbox]{float:left;margin-left:-20px}.bk-bs-radio+.bk-bs-radio,.bk-bs-checkbox+.bk-bs-checkbox{margin-top:-5px}.bk-bs-radio-inline,.bk-bs-checkbox-inline{display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:400;cursor:pointer}.bk-bs-radio-inline+.bk-bs-radio-inline,.bk-bs-checkbox-inline+.bk-bs-checkbox-inline{margin-top:0;margin-left:10px}input[type=radio][disabled],input[type=checkbox][disabled],.bk-bs-radio[disabled],.bk-bs-radio-inline[disabled],.bk-bs-checkbox[disabled],.bk-bs-checkbox-inline[disabled],fieldset[disabled] input[type=radio],fieldset[disabled] input[type=checkbox],fieldset[disabled] .bk-bs-radio,fieldset[disabled] .bk-bs-radio-inline,fieldset[disabled] .bk-bs-checkbox,fieldset[disabled] .bk-bs-checkbox-inline{cursor:not-allowed}.bk-bs-input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.bk-bs-input-sm{height:30px;line-height:30px}textarea.bk-bs-input-sm,select[multiple].bk-bs-input-sm{height:auto}.bk-bs-input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.bk-bs-input-lg{height:46px;line-height:46px}textarea.bk-bs-input-lg,select[multiple].bk-bs-input-lg{height:auto}.bk-bs-has-feedback{position:relative}.bk-bs-has-feedback .bk-bs-form-control{padding-right:42.5px}.bk-bs-has-feedback .bk-bs-form-control-feedback{position:absolute;top:25px;right:0;display:block;width:34px;height:34px;line-height:34px;text-align:center}.bk-bs-has-success .bk-bs-help-block,.bk-bs-has-success .bk-bs-control-label,.bk-bs-has-success .bk-bs-radio,.bk-bs-has-success .bk-bs-checkbox,.bk-bs-has-success .bk-bs-radio-inline,.bk-bs-has-success .bk-bs-checkbox-inline{color:#3c763d}.bk-bs-has-success .bk-bs-form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.bk-bs-has-success .bk-bs-form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.bk-bs-has-success .bk-bs-input-group-addon{color:#3c763d;border-color:#3c763d;background-color:#dff0d8}.bk-bs-has-success .bk-bs-form-control-feedback{color:#3c763d}.bk-bs-has-warning .bk-bs-help-block,.bk-bs-has-warning .bk-bs-control-label,.bk-bs-has-warning .bk-bs-radio,.bk-bs-has-warning .bk-bs-checkbox,.bk-bs-has-warning .bk-bs-radio-inline,.bk-bs-has-warning .bk-bs-checkbox-inline{color:#8a6d3b}.bk-bs-has-warning .bk-bs-form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.bk-bs-has-warning .bk-bs-form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.bk-bs-has-warning .bk-bs-input-group-addon{color:#8a6d3b;border-color:#8a6d3b;background-color:#fcf8e3}.bk-bs-has-warning .bk-bs-form-control-feedback{color:#8a6d3b}.bk-bs-has-error .bk-bs-help-block,.bk-bs-has-error .bk-bs-control-label,.bk-bs-has-error .bk-bs-radio,.bk-bs-has-error .bk-bs-checkbox,.bk-bs-has-error .bk-bs-radio-inline,.bk-bs-has-error .bk-bs-checkbox-inline{color:#a94442}.bk-bs-has-error .bk-bs-form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.bk-bs-has-error .bk-bs-form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.bk-bs-has-error .bk-bs-input-group-addon{color:#a94442;border-color:#a94442;background-color:#f2dede}.bk-bs-has-error .bk-bs-form-control-feedback{color:#a94442}.bk-bs-form-control-static{margin-bottom:0}.bk-bs-help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.bk-bs-form-inline .bk-bs-form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.bk-bs-form-inline .bk-bs-form-control{display:inline-block;width:auto;vertical-align:middle}.bk-bs-form-inline .bk-bs-input-group>.bk-bs-form-control{width:100%}.bk-bs-form-inline .bk-bs-control-label{margin-bottom:0;vertical-align:middle}.bk-bs-form-inline .bk-bs-radio,.bk-bs-form-inline .bk-bs-checkbox{display:inline-block;margin-top:0;margin-bottom:0;padding-left:0;vertical-align:middle}.bk-bs-form-inline .bk-bs-radio input[type=radio],.bk-bs-form-inline .bk-bs-checkbox input[type=checkbox]{float:none;margin-left:0}.bk-bs-form-inline .bk-bs-has-feedback .bk-bs-form-control-feedback{top:0}}.bk-bs-form-horizontal .bk-bs-control-label,.bk-bs-form-horizontal .bk-bs-radio,.bk-bs-form-horizontal .bk-bs-checkbox,.bk-bs-form-horizontal .bk-bs-radio-inline,.bk-bs-form-horizontal .bk-bs-checkbox-inline{margin-top:0;margin-bottom:0;padding-top:7px}.bk-bs-form-horizontal .bk-bs-radio,.bk-bs-form-horizontal .bk-bs-checkbox{min-height:27px}.bk-bs-form-horizontal .bk-bs-form-group{margin-left:-15px;margin-right:-15px}.bk-bs-form-horizontal .bk-bs-form-control-static{padding-top:7px}@media (min-width:768px){.bk-bs-form-horizontal .bk-bs-control-label{text-align:right}}.bk-bs-form-horizontal .bk-bs-has-feedback .bk-bs-form-control-feedback{top:0;right:15px}.bk-bs-btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bk-bs-btn:focus,.bk-bs-btn:active:focus,.bk-bs-btn.bk-bs-active:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.bk-bs-btn:hover,.bk-bs-btn:focus{color:#333;text-decoration:none}.bk-bs-btn:active,.bk-bs-btn.bk-bs-active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.bk-bs-btn.bk-bs-disabled,.bk-bs-btn[disabled],fieldset[disabled] .bk-bs-btn{cursor:not-allowed;pointer-events:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.bk-bs-btn-default{color:#333;background-color:#fff;border-color:#ccc}.bk-bs-btn-default:hover,.bk-bs-btn-default:focus,.bk-bs-btn-default:active,.bk-bs-btn-default.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-default{color:#333;background-color:#ebebeb;border-color:#adadad}.bk-bs-btn-default:active,.bk-bs-btn-default.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-default{background-image:none}.bk-bs-btn-default.bk-bs-disabled,.bk-bs-btn-default[disabled],fieldset[disabled] .bk-bs-btn-default,.bk-bs-btn-default.bk-bs-disabled:hover,.bk-bs-btn-default[disabled]:hover,fieldset[disabled] .bk-bs-btn-default:hover,.bk-bs-btn-default.bk-bs-disabled:focus,.bk-bs-btn-default[disabled]:focus,fieldset[disabled] .bk-bs-btn-default:focus,.bk-bs-btn-default.bk-bs-disabled:active,.bk-bs-btn-default[disabled]:active,fieldset[disabled] .bk-bs-btn-default:active,.bk-bs-btn-default.bk-bs-disabled.bk-bs-active,.bk-bs-btn-default[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-default.bk-bs-active{background-color:#fff;border-color:#ccc}.bk-bs-btn-default .bk-bs-badge{color:#fff;background-color:#333}.bk-bs-btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd}.bk-bs-btn-primary:hover,.bk-bs-btn-primary:focus,.bk-bs-btn-primary:active,.bk-bs-btn-primary.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-primary{color:#fff;background-color:#3276b1;border-color:#285e8e}.bk-bs-btn-primary:active,.bk-bs-btn-primary.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-primary{background-image:none}.bk-bs-btn-primary.bk-bs-disabled,.bk-bs-btn-primary[disabled],fieldset[disabled] .bk-bs-btn-primary,.bk-bs-btn-primary.bk-bs-disabled:hover,.bk-bs-btn-primary[disabled]:hover,fieldset[disabled] .bk-bs-btn-primary:hover,.bk-bs-btn-primary.bk-bs-disabled:focus,.bk-bs-btn-primary[disabled]:focus,fieldset[disabled] .bk-bs-btn-primary:focus,.bk-bs-btn-primary.bk-bs-disabled:active,.bk-bs-btn-primary[disabled]:active,fieldset[disabled] .bk-bs-btn-primary:active,.bk-bs-btn-primary.bk-bs-disabled.bk-bs-active,.bk-bs-btn-primary[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-primary.bk-bs-active{background-color:#428bca;border-color:#357ebd}.bk-bs-btn-primary .bk-bs-badge{color:#428bca;background-color:#fff}.bk-bs-btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.bk-bs-btn-success:hover,.bk-bs-btn-success:focus,.bk-bs-btn-success:active,.bk-bs-btn-success.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-success{color:#fff;background-color:#47a447;border-color:#398439}.bk-bs-btn-success:active,.bk-bs-btn-success.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-success{background-image:none}.bk-bs-btn-success.bk-bs-disabled,.bk-bs-btn-success[disabled],fieldset[disabled] .bk-bs-btn-success,.bk-bs-btn-success.bk-bs-disabled:hover,.bk-bs-btn-success[disabled]:hover,fieldset[disabled] .bk-bs-btn-success:hover,.bk-bs-btn-success.bk-bs-disabled:focus,.bk-bs-btn-success[disabled]:focus,fieldset[disabled] .bk-bs-btn-success:focus,.bk-bs-btn-success.bk-bs-disabled:active,.bk-bs-btn-success[disabled]:active,fieldset[disabled] .bk-bs-btn-success:active,.bk-bs-btn-success.bk-bs-disabled.bk-bs-active,.bk-bs-btn-success[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-success.bk-bs-active{background-color:#5cb85c;border-color:#4cae4c}.bk-bs-btn-success .bk-bs-badge{color:#5cb85c;background-color:#fff}.bk-bs-btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.bk-bs-btn-info:hover,.bk-bs-btn-info:focus,.bk-bs-btn-info:active,.bk-bs-btn-info.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-info{color:#fff;background-color:#39b3d7;border-color:#269abc}.bk-bs-btn-info:active,.bk-bs-btn-info.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-info{background-image:none}.bk-bs-btn-info.bk-bs-disabled,.bk-bs-btn-info[disabled],fieldset[disabled] .bk-bs-btn-info,.bk-bs-btn-info.bk-bs-disabled:hover,.bk-bs-btn-info[disabled]:hover,fieldset[disabled] .bk-bs-btn-info:hover,.bk-bs-btn-info.bk-bs-disabled:focus,.bk-bs-btn-info[disabled]:focus,fieldset[disabled] .bk-bs-btn-info:focus,.bk-bs-btn-info.bk-bs-disabled:active,.bk-bs-btn-info[disabled]:active,fieldset[disabled] .bk-bs-btn-info:active,.bk-bs-btn-info.bk-bs-disabled.bk-bs-active,.bk-bs-btn-info[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-info.bk-bs-active{background-color:#5bc0de;border-color:#46b8da}.bk-bs-btn-info .bk-bs-badge{color:#5bc0de;background-color:#fff}.bk-bs-btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.bk-bs-btn-warning:hover,.bk-bs-btn-warning:focus,.bk-bs-btn-warning:active,.bk-bs-btn-warning.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-warning{color:#fff;background-color:#ed9c28;border-color:#d58512}.bk-bs-btn-warning:active,.bk-bs-btn-warning.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-warning{background-image:none}.bk-bs-btn-warning.bk-bs-disabled,.bk-bs-btn-warning[disabled],fieldset[disabled] .bk-bs-btn-warning,.bk-bs-btn-warning.bk-bs-disabled:hover,.bk-bs-btn-warning[disabled]:hover,fieldset[disabled] .bk-bs-btn-warning:hover,.bk-bs-btn-warning.bk-bs-disabled:focus,.bk-bs-btn-warning[disabled]:focus,fieldset[disabled] .bk-bs-btn-warning:focus,.bk-bs-btn-warning.bk-bs-disabled:active,.bk-bs-btn-warning[disabled]:active,fieldset[disabled] .bk-bs-btn-warning:active,.bk-bs-btn-warning.bk-bs-disabled.bk-bs-active,.bk-bs-btn-warning[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-warning.bk-bs-active{background-color:#f0ad4e;border-color:#eea236}.bk-bs-btn-warning .bk-bs-badge{color:#f0ad4e;background-color:#fff}.bk-bs-btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.bk-bs-btn-danger:hover,.bk-bs-btn-danger:focus,.bk-bs-btn-danger:active,.bk-bs-btn-danger.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-danger{color:#fff;background-color:#d2322d;border-color:#ac2925}.bk-bs-btn-danger:active,.bk-bs-btn-danger.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-danger{background-image:none}.bk-bs-btn-danger.bk-bs-disabled,.bk-bs-btn-danger[disabled],fieldset[disabled] .bk-bs-btn-danger,.bk-bs-btn-danger.bk-bs-disabled:hover,.bk-bs-btn-danger[disabled]:hover,fieldset[disabled] .bk-bs-btn-danger:hover,.bk-bs-btn-danger.bk-bs-disabled:focus,.bk-bs-btn-danger[disabled]:focus,fieldset[disabled] .bk-bs-btn-danger:focus,.bk-bs-btn-danger.bk-bs-disabled:active,.bk-bs-btn-danger[disabled]:active,fieldset[disabled] .bk-bs-btn-danger:active,.bk-bs-btn-danger.bk-bs-disabled.bk-bs-active,.bk-bs-btn-danger[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-danger.bk-bs-active{background-color:#d9534f;border-color:#d43f3a}.bk-bs-btn-danger .bk-bs-badge{color:#d9534f;background-color:#fff}.bk-bs-btn-link{color:#428bca;font-weight:400;cursor:pointer;border-radius:0}.bk-bs-btn-link,.bk-bs-btn-link:active,.bk-bs-btn-link[disabled],fieldset[disabled] .bk-bs-btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bk-bs-btn-link,.bk-bs-btn-link:hover,.bk-bs-btn-link:focus,.bk-bs-btn-link:active{border-color:transparent}.bk-bs-btn-link:hover,.bk-bs-btn-link:focus{color:#2a6496;text-decoration:underline;background-color:transparent}.bk-bs-btn-link[disabled]:hover,fieldset[disabled] .bk-bs-btn-link:hover,.bk-bs-btn-link[disabled]:focus,fieldset[disabled] .bk-bs-btn-link:focus{color:#999;text-decoration:none}.bk-bs-btn-lg,.bk-bs-btn-group-lg>.bk-bs-btn{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.bk-bs-btn-sm,.bk-bs-btn-group-sm>.bk-bs-btn{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.bk-bs-btn-xs,.bk-bs-btn-group-xs>.bk-bs-btn{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.bk-bs-btn-block{display:block;width:100%;padding-left:0;padding-right:0}.bk-bs-btn-block+.bk-bs-btn-block{margin-top:5px}input[type=submit].bk-bs-btn-block,input[type=reset].bk-bs-btn-block,input[type=button].bk-bs-btn-block{width:100%}.bk-bs-caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.bk-bs-dropdown{position:relative}.bk-bs-dropdown-toggle:focus{outline:0}.bk-bs-dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:14px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box}.bk-bs-dropdown-menu.bk-bs-pull-right{right:0;left:auto}.bk-bs-dropdown-menu .bk-bs-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.bk-bs-dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.bk-bs-dropdown-menu>li>a:hover,.bk-bs-dropdown-menu>li>a:focus{text-decoration:none;color:#262626;background-color:#f5f5f5}.bk-bs-dropdown-menu>.bk-bs-active>a,.bk-bs-dropdown-menu>.bk-bs-active>a:hover,.bk-bs-dropdown-menu>.bk-bs-active>a:focus{color:#fff;text-decoration:none;outline:0;background-color:#428bca}.bk-bs-dropdown-menu>.bk-bs-disabled>a,.bk-bs-dropdown-menu>.bk-bs-disabled>a:hover,.bk-bs-dropdown-menu>.bk-bs-disabled>a:focus{color:#999}.bk-bs-dropdown-menu>.bk-bs-disabled>a:hover,.bk-bs-dropdown-menu>.bk-bs-disabled>a:focus{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.bk-bs-Microsoft.bk-bs-gradient(enabled=false);cursor:not-allowed}.bk-bs-open>.bk-bs-dropdown-menu{display:block}.bk-bs-open>a{outline:0}.bk-bs-dropdown-menu-right{left:auto;right:0}.bk-bs-dropdown-menu-left{left:0;right:auto}.bk-bs-dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#999}.bk-bs-dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990}.bk-bs-pull-right>.bk-bs-dropdown-menu{right:0;left:auto}.bk-bs-dropup .bk-bs-caret,.bk-bs-navbar-fixed-bottom .bk-bs-dropdown .bk-bs-caret{border-top:0;border-bottom:4px solid;content:\"\"}.bk-bs-dropup .bk-bs-dropdown-menu,.bk-bs-navbar-fixed-bottom .bk-bs-dropdown .bk-bs-dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}@media (min-width:768px){.bk-bs-navbar-right .bk-bs-dropdown-menu{left:auto;right:0}.bk-bs-navbar-right .bk-bs-dropdown-menu-left{left:0;right:auto}}.bk-bs-btn-group,.bk-bs-btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.bk-bs-btn-group>.bk-bs-btn,.bk-bs-btn-group-vertical>.bk-bs-btn{position:relative;float:left}.bk-bs-btn-group>.bk-bs-btn:hover,.bk-bs-btn-group-vertical>.bk-bs-btn:hover,.bk-bs-btn-group>.bk-bs-btn:focus,.bk-bs-btn-group-vertical>.bk-bs-btn:focus,.bk-bs-btn-group>.bk-bs-btn:active,.bk-bs-btn-group-vertical>.bk-bs-btn:active,.bk-bs-btn-group>.bk-bs-btn.bk-bs-active,.bk-bs-btn-group-vertical>.bk-bs-btn.bk-bs-active{z-index:2}.bk-bs-btn-group>.bk-bs-btn:focus,.bk-bs-btn-group-vertical>.bk-bs-btn:focus{outline:0}.bk-bs-btn-group .bk-bs-btn+.bk-bs-btn,.bk-bs-btn-group .bk-bs-btn+.bk-bs-btn-group,.bk-bs-btn-group .bk-bs-btn-group+.bk-bs-btn,.bk-bs-btn-group .bk-bs-btn-group+.bk-bs-btn-group{margin-left:-1px}.bk-bs-btn-toolbar{margin-left:-5px}.bk-bs-btn-toolbar .bk-bs-btn-group,.bk-bs-btn-toolbar .bk-bs-input-group{float:left}.bk-bs-btn-toolbar>.bk-bs-btn,.bk-bs-btn-toolbar>.bk-bs-btn-group,.bk-bs-btn-toolbar>.bk-bs-input-group{margin-left:5px}.bk-bs-btn-group>.bk-bs-btn:not(:first-child):not(:last-child):not(.bk-bs-dropdown-toggle){border-radius:0}.bk-bs-btn-group>.bk-bs-btn:first-child{margin-left:0}.bk-bs-btn-group>.bk-bs-btn:first-child:not(:last-child):not(.bk-bs-dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.bk-bs-btn-group>.bk-bs-btn:last-child:not(:first-child),.bk-bs-btn-group>.bk-bs-dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.bk-bs-btn-group>.bk-bs-btn-group{float:left}.bk-bs-btn-group>.bk-bs-btn-group:not(:first-child):not(:last-child)>.bk-bs-btn{border-radius:0}.bk-bs-btn-group>.bk-bs-btn-group:first-child>.bk-bs-btn:last-child,.bk-bs-btn-group>.bk-bs-btn-group:first-child>.bk-bs-dropdown-toggle{border-bottom-right-radius:0;border-top-right-radius:0}.bk-bs-btn-group>.bk-bs-btn-group:last-child>.bk-bs-btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.bk-bs-btn-group .bk-bs-dropdown-toggle:active,.bk-bs-btn-group.bk-bs-open .bk-bs-dropdown-toggle{outline:0}.bk-bs-btn-group>.bk-bs-btn+.bk-bs-dropdown-toggle{padding-left:8px;padding-right:8px}.bk-bs-btn-group>.bk-bs-btn-lg+.bk-bs-dropdown-toggle{padding-left:12px;padding-right:12px}.bk-bs-btn-group.bk-bs-open .bk-bs-dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.bk-bs-btn-group.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-link{-webkit-box-shadow:none;box-shadow:none}.bk-bs-btn .bk-bs-caret{margin-left:0}.bk-bs-btn-lg .bk-bs-caret{border-width:5px 5px 0;border-bottom-width:0}.bk-bs-dropup .bk-bs-btn-lg .bk-bs-caret{border-width:0 5px 5px}.bk-bs-btn-group-vertical>.bk-bs-btn,.bk-bs-btn-group-vertical>.bk-bs-btn-group,.bk-bs-btn-group-vertical>.bk-bs-btn-group>.bk-bs-btn{display:block;float:none;width:100%;max-width:100%}.bk-bs-btn-group-vertical>.bk-bs-btn-group>.bk-bs-btn{float:none}.bk-bs-btn-group-vertical>.bk-bs-btn+.bk-bs-btn,.bk-bs-btn-group-vertical>.bk-bs-btn+.bk-bs-btn-group,.bk-bs-btn-group-vertical>.bk-bs-btn-group+.bk-bs-btn,.bk-bs-btn-group-vertical>.bk-bs-btn-group+.bk-bs-btn-group{margin-top:-1px;margin-left:0}.bk-bs-btn-group-vertical>.bk-bs-btn:not(:first-child):not(:last-child){border-radius:0}.bk-bs-btn-group-vertical>.bk-bs-btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.bk-bs-btn-group-vertical>.bk-bs-btn:last-child:not(:first-child){border-bottom-left-radius:4px;border-top-right-radius:0;border-top-left-radius:0}.bk-bs-btn-group-vertical>.bk-bs-btn-group:not(:first-child):not(:last-child)>.bk-bs-btn{border-radius:0}.bk-bs-btn-group-vertical>.bk-bs-btn-group:first-child:not(:last-child)>.bk-bs-btn:last-child,.bk-bs-btn-group-vertical>.bk-bs-btn-group:first-child:not(:last-child)>.bk-bs-dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.bk-bs-btn-group-vertical>.bk-bs-btn-group:last-child:not(:first-child)>.bk-bs-btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.bk-bs-btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.bk-bs-btn-group-justified>.bk-bs-btn,.bk-bs-btn-group-justified>.bk-bs-btn-group{float:none;display:table-cell;width:1%}.bk-bs-btn-group-justified>.bk-bs-btn-group .bk-bs-btn{width:100%}[data-bk-bs-toggle=buttons]>.bk-bs-btn>input[type=radio],[data-bk-bs-toggle=buttons]>.bk-bs-btn>input[type=checkbox]{display:none}.bk-bs-input-group{position:relative;display:table;border-collapse:separate}.bk-bs-input-group[class*=col-]{float:none;padding-left:0;padding-right:0}.bk-bs-input-group .bk-bs-form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.bk-bs-input-group-lg>.bk-bs-form-control,.bk-bs-input-group-lg>.bk-bs-input-group-addon,.bk-bs-input-group-lg>.bk-bs-input-group-btn>.bk-bs-btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.bk-bs-input-group-lg>.bk-bs-form-control,select.bk-bs-input-group-lg>.bk-bs-input-group-addon,select.bk-bs-input-group-lg>.bk-bs-input-group-btn>.bk-bs-btn{height:46px;line-height:46px}textarea.bk-bs-input-group-lg>.bk-bs-form-control,textarea.bk-bs-input-group-lg>.bk-bs-input-group-addon,textarea.bk-bs-input-group-lg>.bk-bs-input-group-btn>.bk-bs-btn,select[multiple].bk-bs-input-group-lg>.bk-bs-form-control,select[multiple].bk-bs-input-group-lg>.bk-bs-input-group-addon,select[multiple].bk-bs-input-group-lg>.bk-bs-input-group-btn>.bk-bs-btn{height:auto}.bk-bs-input-group-sm>.bk-bs-form-control,.bk-bs-input-group-sm>.bk-bs-input-group-addon,.bk-bs-input-group-sm>.bk-bs-input-group-btn>.bk-bs-btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.bk-bs-input-group-sm>.bk-bs-form-control,select.bk-bs-input-group-sm>.bk-bs-input-group-addon,select.bk-bs-input-group-sm>.bk-bs-input-group-btn>.bk-bs-btn{height:30px;line-height:30px}textarea.bk-bs-input-group-sm>.bk-bs-form-control,textarea.bk-bs-input-group-sm>.bk-bs-input-group-addon,textarea.bk-bs-input-group-sm>.bk-bs-input-group-btn>.bk-bs-btn,select[multiple].bk-bs-input-group-sm>.bk-bs-form-control,select[multiple].bk-bs-input-group-sm>.bk-bs-input-group-addon,select[multiple].bk-bs-input-group-sm>.bk-bs-input-group-btn>.bk-bs-btn{height:auto}.bk-bs-input-group-addon,.bk-bs-input-group-btn,.bk-bs-input-group .bk-bs-form-control{display:table-cell}.bk-bs-input-group-addon:not(:first-child):not(:last-child),.bk-bs-input-group-btn:not(:first-child):not(:last-child),.bk-bs-input-group .bk-bs-form-control:not(:first-child):not(:last-child){border-radius:0}.bk-bs-input-group-addon,.bk-bs-input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.bk-bs-input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.bk-bs-input-group-addon.bk-bs-input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.bk-bs-input-group-addon.bk-bs-input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.bk-bs-input-group-addon input[type=radio],.bk-bs-input-group-addon input[type=checkbox]{margin-top:0}.bk-bs-input-group .bk-bs-form-control:first-child,.bk-bs-input-group-addon:first-child,.bk-bs-input-group-btn:first-child>.bk-bs-btn,.bk-bs-input-group-btn:first-child>.bk-bs-btn-group>.bk-bs-btn,.bk-bs-input-group-btn:first-child>.bk-bs-dropdown-toggle,.bk-bs-input-group-btn:last-child>.bk-bs-btn:not(:last-child):not(.bk-bs-dropdown-toggle),.bk-bs-input-group-btn:last-child>.bk-bs-btn-group:not(:last-child)>.bk-bs-btn{border-bottom-right-radius:0;border-top-right-radius:0}.bk-bs-input-group-addon:first-child{border-right:0}.bk-bs-input-group .bk-bs-form-control:last-child,.bk-bs-input-group-addon:last-child,.bk-bs-input-group-btn:last-child>.bk-bs-btn,.bk-bs-input-group-btn:last-child>.bk-bs-btn-group>.bk-bs-btn,.bk-bs-input-group-btn:last-child>.bk-bs-dropdown-toggle,.bk-bs-input-group-btn:first-child>.bk-bs-btn:not(:first-child),.bk-bs-input-group-btn:first-child>.bk-bs-btn-group:not(:first-child)>.bk-bs-btn{border-bottom-left-radius:0;border-top-left-radius:0}.bk-bs-input-group-addon:last-child{border-left:0}.bk-bs-input-group-btn{position:relative;font-size:0;white-space:nowrap}.bk-bs-input-group-btn>.bk-bs-btn{position:relative}.bk-bs-input-group-btn>.bk-bs-btn+.bk-bs-btn{margin-left:-1px}.bk-bs-input-group-btn>.bk-bs-btn:hover,.bk-bs-input-group-btn>.bk-bs-btn:focus,.bk-bs-input-group-btn>.bk-bs-btn:active{z-index:2}.bk-bs-input-group-btn:first-child>.bk-bs-btn,.bk-bs-input-group-btn:first-child>.bk-bs-btn-group{margin-right:-1px}.bk-bs-input-group-btn:last-child>.bk-bs-btn,.bk-bs-input-group-btn:last-child>.bk-bs-btn-group{margin-left:-1px}.bk-bs-nav{margin-bottom:0;padding-left:0;list-style:none}.bk-bs-nav>li{position:relative;display:block}.bk-bs-nav>li>a{position:relative;display:block;padding:10px 15px}.bk-bs-nav>li>a:hover,.bk-bs-nav>li>a:focus{text-decoration:none;background-color:#eee}.bk-bs-nav>li.bk-bs-disabled>a{color:#999}.bk-bs-nav>li.bk-bs-disabled>a:hover,.bk-bs-nav>li.bk-bs-disabled>a:focus{color:#999;text-decoration:none;background-color:transparent;cursor:not-allowed}.bk-bs-nav .bk-bs-open>a,.bk-bs-nav .bk-bs-open>a:hover,.bk-bs-nav .bk-bs-open>a:focus{background-color:#eee;border-color:#428bca}.bk-bs-nav .bk-bs-nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.bk-bs-nav>li>a>img{max-width:none}.bk-bs-nav-tabs{border-bottom:1px solid #ddd}.bk-bs-nav-tabs>li{float:left;margin-bottom:-1px}.bk-bs-nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.bk-bs-nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.bk-bs-nav-tabs>li.bk-bs-active>a,.bk-bs-nav-tabs>li.bk-bs-active>a:hover,.bk-bs-nav-tabs>li.bk-bs-active>a:focus{color:#555;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent;cursor:default}.bk-bs-nav-tabs.bk-bs-nav-justified{width:100%;border-bottom:0}.bk-bs-nav-tabs.bk-bs-nav-justified>li{float:none}.bk-bs-nav-tabs.bk-bs-nav-justified>li>a{text-align:center;margin-bottom:5px}.bk-bs-nav-tabs.bk-bs-nav-justified>.bk-bs-dropdown .bk-bs-dropdown-menu{top:auto;left:auto}@media (min-width:768px){.bk-bs-nav-tabs.bk-bs-nav-justified>li{display:table-cell;width:1%}.bk-bs-nav-tabs.bk-bs-nav-justified>li>a{margin-bottom:0}}.bk-bs-nav-tabs.bk-bs-nav-justified>li>a{margin-right:0;border-radius:4px}.bk-bs-nav-tabs.bk-bs-nav-justified>.bk-bs-active>a,.bk-bs-nav-tabs.bk-bs-nav-justified>.bk-bs-active>a:hover,.bk-bs-nav-tabs.bk-bs-nav-justified>.bk-bs-active>a:focus{border:1px solid #ddd}@media (min-width:768px){.bk-bs-nav-tabs.bk-bs-nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.bk-bs-nav-tabs.bk-bs-nav-justified>.bk-bs-active>a,.bk-bs-nav-tabs.bk-bs-nav-justified>.bk-bs-active>a:hover,.bk-bs-nav-tabs.bk-bs-nav-justified>.bk-bs-active>a:focus{border-bottom-color:#fff}}.bk-bs-nav-pills>li{float:left}.bk-bs-nav-pills>li>a{border-radius:4px}.bk-bs-nav-pills>li+li{margin-left:2px}.bk-bs-nav-pills>li.bk-bs-active>a,.bk-bs-nav-pills>li.bk-bs-active>a:hover,.bk-bs-nav-pills>li.bk-bs-active>a:focus{color:#fff;background-color:#428bca}.bk-bs-nav-stacked>li{float:none}.bk-bs-nav-stacked>li+li{margin-top:2px;margin-left:0}.bk-bs-nav-justified{width:100%}.bk-bs-nav-justified>li{float:none}.bk-bs-nav-justified>li>a{text-align:center;margin-bottom:5px}.bk-bs-nav-justified>.bk-bs-dropdown .bk-bs-dropdown-menu{top:auto;left:auto}@media (min-width:768px){.bk-bs-nav-justified>li{display:table-cell;width:1%}.bk-bs-nav-justified>li>a{margin-bottom:0}}.bk-bs-nav-tabs-justified{border-bottom:0}.bk-bs-nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.bk-bs-nav-tabs-justified>.bk-bs-active>a,.bk-bs-nav-tabs-justified>.bk-bs-active>a:hover,.bk-bs-nav-tabs-justified>.bk-bs-active>a:focus{border:1px solid #ddd}@media (min-width:768px){.bk-bs-nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.bk-bs-nav-tabs-justified>.bk-bs-active>a,.bk-bs-nav-tabs-justified>.bk-bs-active>a:hover,.bk-bs-nav-tabs-justified>.bk-bs-active>a:focus{border-bottom-color:#fff}}.bk-bs-tab-content>.bk-bs-tab-pane{display:none}.bk-bs-tab-content>.bk-bs-active{display:block}.bk-bs-nav-tabs .bk-bs-dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.bk-bs-label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.bk-bs-label[href]:hover,.bk-bs-label[href]:focus{color:#fff;text-decoration:none;cursor:pointer}.bk-bs-label:empty{display:none}.bk-bs-btn .bk-bs-label{position:relative;top:-1px}.bk-bs-label-default{background-color:#999}.bk-bs-label-default[href]:hover,.bk-bs-label-default[href]:focus{background-color:gray}.bk-bs-label-primary{background-color:#428bca}.bk-bs-label-primary[href]:hover,.bk-bs-label-primary[href]:focus{background-color:#3071a9}.bk-bs-label-success{background-color:#5cb85c}.bk-bs-label-success[href]:hover,.bk-bs-label-success[href]:focus{background-color:#449d44}.bk-bs-label-info{background-color:#5bc0de}.bk-bs-label-info[href]:hover,.bk-bs-label-info[href]:focus{background-color:#31b0d5}.bk-bs-label-warning{background-color:#f0ad4e}.bk-bs-label-warning[href]:hover,.bk-bs-label-warning[href]:focus{background-color:#ec971f}.bk-bs-label-danger{background-color:#d9534f}.bk-bs-label-danger[href]:hover,.bk-bs-label-danger[href]:focus{background-color:#c9302c}.bk-bs-panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.bk-bs-panel-body{padding:15px}.bk-bs-panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:3px;border-top-left-radius:3px}.bk-bs-panel-heading>.bk-bs-dropdown .bk-bs-dropdown-toggle{color:inherit}.bk-bs-panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.bk-bs-panel-title>a{color:inherit}.bk-bs-panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.bk-bs-panel>.bk-bs-list-group{margin-bottom:0}.bk-bs-panel>.bk-bs-list-group .bk-bs-list-group-item{border-width:1px 0;border-radius:0}.bk-bs-panel>.bk-bs-list-group:first-child .bk-bs-list-group-item:first-child{border-top:0;border-top-right-radius:3px;border-top-left-radius:3px}.bk-bs-panel>.bk-bs-list-group:last-child .bk-bs-list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.bk-bs-panel-heading+.bk-bs-list-group .bk-bs-list-group-item:first-child{border-top-width:0}.bk-bs-panel>.bk-bs-table,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table{margin-bottom:0}.bk-bs-panel>.bk-bs-table:first-child,.bk-bs-panel>.bk-bs-table-responsive:first-child>.bk-bs-table:first-child{border-top-right-radius:3px;border-top-left-radius:3px}.bk-bs-panel>.bk-bs-table:first-child>thead:first-child>tr:first-child td:first-child,.bk-bs-panel>.bk-bs-table-responsive:first-child>.bk-bs-table:first-child>thead:first-child>tr:first-child td:first-child,.bk-bs-panel>.bk-bs-table:first-child>tbody:first-child>tr:first-child td:first-child,.bk-bs-panel>.bk-bs-table-responsive:first-child>.bk-bs-table:first-child>tbody:first-child>tr:first-child td:first-child,.bk-bs-panel>.bk-bs-table:first-child>thead:first-child>tr:first-child th:first-child,.bk-bs-panel>.bk-bs-table-responsive:first-child>.bk-bs-table:first-child>thead:first-child>tr:first-child th:first-child,.bk-bs-panel>.bk-bs-table:first-child>tbody:first-child>tr:first-child th:first-child,.bk-bs-panel>.bk-bs-table-responsive:first-child>.bk-bs-table:first-child>tbody:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.bk-bs-panel>.bk-bs-table:first-child>thead:first-child>tr:first-child td:last-child,.bk-bs-panel>.bk-bs-table-responsive:first-child>.bk-bs-table:first-child>thead:first-child>tr:first-child td:last-child,.bk-bs-panel>.bk-bs-table:first-child>tbody:first-child>tr:first-child td:last-child,.bk-bs-panel>.bk-bs-table-responsive:first-child>.bk-bs-table:first-child>tbody:first-child>tr:first-child td:last-child,.bk-bs-panel>.bk-bs-table:first-child>thead:first-child>tr:first-child th:last-child,.bk-bs-panel>.bk-bs-table-responsive:first-child>.bk-bs-table:first-child>thead:first-child>tr:first-child th:last-child,.bk-bs-panel>.bk-bs-table:first-child>tbody:first-child>tr:first-child th:last-child,.bk-bs-panel>.bk-bs-table-responsive:first-child>.bk-bs-table:first-child>tbody:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.bk-bs-panel>.bk-bs-table:last-child,.bk-bs-panel>.bk-bs-table-responsive:last-child>.bk-bs-table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.bk-bs-panel>.bk-bs-table:last-child>tbody:last-child>tr:last-child td:first-child,.bk-bs-panel>.bk-bs-table-responsive:last-child>.bk-bs-table:last-child>tbody:last-child>tr:last-child td:first-child,.bk-bs-panel>.bk-bs-table:last-child>tfoot:last-child>tr:last-child td:first-child,.bk-bs-panel>.bk-bs-table-responsive:last-child>.bk-bs-table:last-child>tfoot:last-child>tr:last-child td:first-child,.bk-bs-panel>.bk-bs-table:last-child>tbody:last-child>tr:last-child th:first-child,.bk-bs-panel>.bk-bs-table-responsive:last-child>.bk-bs-table:last-child>tbody:last-child>tr:last-child th:first-child,.bk-bs-panel>.bk-bs-table:last-child>tfoot:last-child>tr:last-child th:first-child,.bk-bs-panel>.bk-bs-table-responsive:last-child>.bk-bs-table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.bk-bs-panel>.bk-bs-table:last-child>tbody:last-child>tr:last-child td:last-child,.bk-bs-panel>.bk-bs-table-responsive:last-child>.bk-bs-table:last-child>tbody:last-child>tr:last-child td:last-child,.bk-bs-panel>.bk-bs-table:last-child>tfoot:last-child>tr:last-child td:last-child,.bk-bs-panel>.bk-bs-table-responsive:last-child>.bk-bs-table:last-child>tfoot:last-child>tr:last-child td:last-child,.bk-bs-panel>.bk-bs-table:last-child>tbody:last-child>tr:last-child th:last-child,.bk-bs-panel>.bk-bs-table-responsive:last-child>.bk-bs-table:last-child>tbody:last-child>tr:last-child th:last-child,.bk-bs-panel>.bk-bs-table:last-child>tfoot:last-child>tr:last-child th:last-child,.bk-bs-panel>.bk-bs-table-responsive:last-child>.bk-bs-table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.bk-bs-panel>.bk-bs-panel-body+.bk-bs-table,.bk-bs-panel>.bk-bs-panel-body+.bk-bs-table-responsive{border-top:1px solid #ddd}.bk-bs-panel>.bk-bs-table>tbody:first-child>tr:first-child th,.bk-bs-panel>.bk-bs-table>tbody:first-child>tr:first-child td{border-top:0}.bk-bs-panel>.bk-bs-table-bordered,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered{border:0}.bk-bs-panel>.bk-bs-table-bordered>thead>tr>th:first-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr>th:first-child,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr>th:first-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>th:first-child,.bk-bs-panel>.bk-bs-table-bordered>tfoot>tr>th:first-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr>th:first-child,.bk-bs-panel>.bk-bs-table-bordered>thead>tr>td:first-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr>td:first-child,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr>td:first-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>td:first-child,.bk-bs-panel>.bk-bs-table-bordered>tfoot>tr>td:first-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr>td:first-child{border-left:0}.bk-bs-panel>.bk-bs-table-bordered>thead>tr>th:last-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr>th:last-child,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr>th:last-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>th:last-child,.bk-bs-panel>.bk-bs-table-bordered>tfoot>tr>th:last-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr>th:last-child,.bk-bs-panel>.bk-bs-table-bordered>thead>tr>td:last-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr>td:last-child,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr>td:last-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>td:last-child,.bk-bs-panel>.bk-bs-table-bordered>tfoot>tr>td:last-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr>td:last-child{border-right:0}.bk-bs-panel>.bk-bs-table-bordered>thead>tr:first-child>td,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr:first-child>td,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr:first-child>td,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr:first-child>td,.bk-bs-panel>.bk-bs-table-bordered>thead>tr:first-child>th,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr:first-child>th,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr:first-child>th,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr:first-child>th{border-bottom:0}.bk-bs-panel>.bk-bs-table-bordered>tbody>tr:last-child>td,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr:last-child>td,.bk-bs-panel>.bk-bs-table-bordered>tfoot>tr:last-child>td,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr:last-child>td,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr:last-child>th,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr:last-child>th,.bk-bs-panel>.bk-bs-table-bordered>tfoot>tr:last-child>th,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr:last-child>th{border-bottom:0}.bk-bs-panel>.bk-bs-table-responsive{border:0;margin-bottom:0}.bk-bs-panel-group{margin-bottom:20px}.bk-bs-panel-group .bk-bs-panel{margin-bottom:0;border-radius:4px;overflow:hidden}.bk-bs-panel-group .bk-bs-panel+.bk-bs-panel{margin-top:5px}.bk-bs-panel-group .bk-bs-panel-heading{border-bottom:0}.bk-bs-panel-group .bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top:1px solid #ddd}.bk-bs-panel-group .bk-bs-panel-footer{border-top:0}.bk-bs-panel-group .bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom:1px solid #ddd}.bk-bs-panel-default{border-color:#ddd}.bk-bs-panel-default>.bk-bs-panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.bk-bs-panel-default>.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#ddd}.bk-bs-panel-default>.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#ddd}.bk-bs-panel-primary{border-color:#428bca}.bk-bs-panel-primary>.bk-bs-panel-heading{color:#fff;background-color:#428bca;border-color:#428bca}.bk-bs-panel-primary>.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#428bca}.bk-bs-panel-primary>.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#428bca}.bk-bs-panel-success{border-color:#d6e9c6}.bk-bs-panel-success>.bk-bs-panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.bk-bs-panel-success>.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#d6e9c6}.bk-bs-panel-success>.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#d6e9c6}.bk-bs-panel-info{border-color:#bce8f1}.bk-bs-panel-info>.bk-bs-panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.bk-bs-panel-info>.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#bce8f1}.bk-bs-panel-info>.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#bce8f1}.bk-bs-panel-warning{border-color:#faebcc}.bk-bs-panel-warning>.bk-bs-panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.bk-bs-panel-warning>.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#faebcc}.bk-bs-panel-warning>.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#faebcc}.bk-bs-panel-danger{border-color:#ebccd1}.bk-bs-panel-danger>.bk-bs-panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.bk-bs-panel-danger>.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#ebccd1}.bk-bs-panel-danger>.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#ebccd1}.bk-bs-close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.bk-bs-close:hover,.bk-bs-close:focus{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.bk-bs-close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.bk-bs-modal-open{overflow:hidden}.bk-bs-modal{display:none;overflow:auto;overflow-y:scroll;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.bk-bs-modal.bk-bs-fade .bk-bs-modal-dialog{-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);transform:translate(0,-25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.bk-bs-modal.bk-bs-in .bk-bs-modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);transform:translate(0,0)}.bk-bs-modal-dialog{position:relative;width:auto;margin:10px}.bk-bs-modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5);background-clip:padding-box;outline:0}.bk-bs-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.bk-bs-modal-backdrop.bk-bs-fade{opacity:0;filter:alpha(opacity=0)}.bk-bs-modal-backdrop.bk-bs-in{opacity:.5;filter:alpha(opacity=50)}.bk-bs-modal-header{padding:15px;border-bottom:1px solid #e5e5e5;min-height:16.42857143px}.bk-bs-modal-header .bk-bs-close{margin-top:-2px}.bk-bs-modal-title{margin:0;line-height:1.42857143}.bk-bs-modal-body{position:relative;padding:20px}.bk-bs-modal-footer{margin-top:15px;padding:19px 20px 20px;text-align:right;border-top:1px solid #e5e5e5}.bk-bs-modal-footer .bk-bs-btn+.bk-bs-btn{margin-left:5px;margin-bottom:0}.bk-bs-modal-footer .bk-bs-btn-group .bk-bs-btn+.bk-bs-btn{margin-left:-1px}.bk-bs-modal-footer .bk-bs-btn-block+.bk-bs-btn-block{margin-left:0}@media (min-width:768px){.bk-bs-modal-dialog{width:600px;margin:30px auto}.bk-bs-modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.bk-bs-modal-sm{width:300px}}@media (min-width:992px){.bk-bs-modal-lg{width:900px}}.bk-bs-clearfix:before,.bk-bs-clearfix:after,.bk-bs-container:before,.bk-bs-container:after,.bk-bs-container-fluid:before,.bk-bs-container-fluid:after,.bk-bs-row:before,.bk-bs-row:after,.bk-bs-form-horizontal .bk-bs-form-group:before,.bk-bs-form-horizontal .bk-bs-form-group:after,.bk-bs-btn-toolbar:before,.bk-bs-btn-toolbar:after,.bk-bs-btn-group-vertical>.bk-bs-btn-group:before,.bk-bs-btn-group-vertical>.bk-bs-btn-group:after,.bk-bs-nav:before,.bk-bs-nav:after,.bk-bs-panel-body:before,.bk-bs-panel-body:after,.bk-bs-modal-footer:before,.bk-bs-modal-footer:after,.bk-crossfilter-row:before,.bk-crossfilter-row:after{content:\" \";display:table}.bk-bs-clearfix:after,.bk-bs-container:after,.bk-bs-container-fluid:after,.bk-bs-row:after,.bk-bs-form-horizontal .bk-bs-form-group:after,.bk-bs-btn-toolbar:after,.bk-bs-btn-group-vertical>.bk-bs-btn-group:after,.bk-bs-nav:after,.bk-bs-panel-body:after,.bk-bs-modal-footer:after,.bk-crossfilter-row:after{clear:both}.bk-bs-center-block{display:block;margin-left:auto;margin-right:auto}.bk-bs-pull-right{float:right!important}.bk-bs-pull-left{float:left!important}.bk-bs-hide{display:none!important}.bk-bs-show{display:block!important}.bk-bs-invisible{visibility:hidden}.bk-bs-text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.bk-bs-hidden{display:none!important;visibility:hidden!important}.bk-bs-affix{position:fixed}@font-face{font-family:FontAwesome;src:url(/bokehjs/static/js/vendor/font-awesome-4.2.0/fonts/fontawesome-webfont.eot?v=4.2.0);src:url(/bokehjs/static/js/vendor/font-awesome-4.2.0/fonts/fontawesome-webfont.eot?#iefix&v=4.2.0) format('embedded-opentype'),url(/bokehjs/static/js/vendor/font-awesome-4.2.0/fonts/fontawesome-webfont.woff?v=4.2.0) format('woff'),url(/bokehjs/static/js/vendor/font-awesome-4.2.0/fonts/fontawesome-webfont.ttf?v=4.2.0) format('truetype'),url(/bokehjs/static/js/vendor/font-awesome-4.2.0/fonts/fontawesome-webfont.svg?v=4.2.0#fontawesomeregular) format('svg');font-weight:400;font-style:normal}.bk-fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bk-fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.bk-fa-2x{font-size:2em}.bk-fa-3x{font-size:3em}.bk-fa-4x{font-size:4em}.bk-fa-5x{font-size:5em}.bk-fa-fw{width:1.28571429em;text-align:center}.bk-fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.bk-fa-ul>li{position:relative}.bk-fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.bk-fa-li.bk-fa-lg{left:-1.85714286em}.bk-fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.bk-fa.pull-left{margin-right:.3em}.bk-fa.pull-right{margin-left:.3em}.bk-fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.bk-fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.bk-fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.bk-fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.bk-fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-webkit-transform:scale(-1,1);-ms-transform:scale(-1,1);transform:scale(-1,1)}.bk-fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-webkit-transform:scale(1,-1);-ms-transform:scale(1,-1);transform:scale(1,-1)}:root .bk-fa-rotate-90,:root .bk-fa-rotate-180,:root .bk-fa-rotate-270,:root .bk-fa-flip-horizontal,:root .bk-fa-flip-vertical{filter:none}.bk-fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.bk-fa-stack-1x,.bk-fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.bk-fa-stack-1x{line-height:inherit}.bk-fa-stack-2x{font-size:2em}.bk-fa-inverse{color:#fff}.bk-fa-glass:before{content:\"\\f000\"}.bk-fa-music:before{content:\"\\f001\"}.bk-fa-search:before{content:\"\\f002\"}.bk-fa-envelope-o:before{content:\"\\f003\"}.bk-fa-heart:before{content:\"\\f004\"}.bk-fa-star:before{content:\"\\f005\"}.bk-fa-star-o:before{content:\"\\f006\"}.bk-fa-user:before{content:\"\\f007\"}.bk-fa-film:before{content:\"\\f008\"}.bk-fa-th-large:before{content:\"\\f009\"}.bk-fa-th:before{content:\"\\f00a\"}.bk-fa-th-list:before{content:\"\\f00b\"}.bk-fa-check:before{content:\"\\f00c\"}.bk-fa-remove:before,.bk-fa-close:before,.bk-fa-times:before{content:\"\\f00d\"}.bk-fa-search-plus:before{content:\"\\f00e\"}.bk-fa-search-minus:before{content:\"\\f010\"}.bk-fa-power-off:before{content:\"\\f011\"}.bk-fa-signal:before{content:\"\\f012\"}.bk-fa-gear:before,.bk-fa-cog:before{content:\"\\f013\"}.bk-fa-trash-o:before{content:\"\\f014\"}.bk-fa-home:before{content:\"\\f015\"}.bk-fa-file-o:before{content:\"\\f016\"}.bk-fa-clock-o:before{content:\"\\f017\"}.bk-fa-road:before{content:\"\\f018\"}.bk-fa-download:before{content:\"\\f019\"}.bk-fa-arrow-circle-o-down:before{content:\"\\f01a\"}.bk-fa-arrow-circle-o-up:before{content:\"\\f01b\"}.bk-fa-inbox:before{content:\"\\f01c\"}.bk-fa-play-circle-o:before{content:\"\\f01d\"}.bk-fa-rotate-right:before,.bk-fa-repeat:before{content:\"\\f01e\"}.bk-fa-refresh:before{content:\"\\f021\"}.bk-fa-list-alt:before{content:\"\\f022\"}.bk-fa-lock:before{content:\"\\f023\"}.bk-fa-flag:before{content:\"\\f024\"}.bk-fa-headphones:before{content:\"\\f025\"}.bk-fa-volume-off:before{content:\"\\f026\"}.bk-fa-volume-down:before{content:\"\\f027\"}.bk-fa-volume-up:before{content:\"\\f028\"}.bk-fa-qrcode:before{content:\"\\f029\"}.bk-fa-barcode:before{content:\"\\f02a\"}.bk-fa-tag:before{content:\"\\f02b\"}.bk-fa-tags:before{content:\"\\f02c\"}.bk-fa-book:before{content:\"\\f02d\"}.bk-fa-bookmark:before{content:\"\\f02e\"}.bk-fa-print:before{content:\"\\f02f\"}.bk-fa-camera:before{content:\"\\f030\"}.bk-fa-font:before{content:\"\\f031\"}.bk-fa-bold:before{content:\"\\f032\"}.bk-fa-italic:before{content:\"\\f033\"}.bk-fa-text-height:before{content:\"\\f034\"}.bk-fa-text-width:before{content:\"\\f035\"}.bk-fa-align-left:before{content:\"\\f036\"}.bk-fa-align-center:before{content:\"\\f037\"}.bk-fa-align-right:before{content:\"\\f038\"}.bk-fa-align-justify:before{content:\"\\f039\"}.bk-fa-list:before{content:\"\\f03a\"}.bk-fa-dedent:before,.bk-fa-outdent:before{content:\"\\f03b\"}.bk-fa-indent:before{content:\"\\f03c\"}.bk-fa-video-camera:before{content:\"\\f03d\"}.bk-fa-photo:before,.bk-fa-image:before,.bk-fa-picture-o:before{content:\"\\f03e\"}.bk-fa-pencil:before{content:\"\\f040\"}.bk-fa-map-marker:before{content:\"\\f041\"}.bk-fa-adjust:before{content:\"\\f042\"}.bk-fa-tint:before{content:\"\\f043\"}.bk-fa-edit:before,.bk-fa-pencil-square-o:before{content:\"\\f044\"}.bk-fa-share-square-o:before{content:\"\\f045\"}.bk-fa-check-square-o:before{content:\"\\f046\"}.bk-fa-arrows:before{content:\"\\f047\"}.bk-fa-step-backward:before{content:\"\\f048\"}.bk-fa-fast-backward:before{content:\"\\f049\"}.bk-fa-backward:before{content:\"\\f04a\"}.bk-fa-play:before{content:\"\\f04b\"}.bk-fa-pause:before{content:\"\\f04c\"}.bk-fa-stop:before{content:\"\\f04d\"}.bk-fa-forward:before{content:\"\\f04e\"}.bk-fa-fast-forward:before{content:\"\\f050\"}.bk-fa-step-forward:before{content:\"\\f051\"}.bk-fa-eject:before{content:\"\\f052\"}.bk-fa-chevron-left:before{content:\"\\f053\"}.bk-fa-chevron-right:before{content:\"\\f054\"}.bk-fa-plus-circle:before{content:\"\\f055\"}.bk-fa-minus-circle:before{content:\"\\f056\"}.bk-fa-times-circle:before{content:\"\\f057\"}.bk-fa-check-circle:before{content:\"\\f058\"}.bk-fa-question-circle:before{content:\"\\f059\"}.bk-fa-info-circle:before{content:\"\\f05a\"}.bk-fa-crosshairs:before{content:\"\\f05b\"}.bk-fa-times-circle-o:before{content:\"\\f05c\"}.bk-fa-check-circle-o:before{content:\"\\f05d\"}.bk-fa-ban:before{content:\"\\f05e\"}.bk-fa-arrow-left:before{content:\"\\f060\"}.bk-fa-arrow-right:before{content:\"\\f061\"}.bk-fa-arrow-up:before{content:\"\\f062\"}.bk-fa-arrow-down:before{content:\"\\f063\"}.bk-fa-mail-forward:before,.bk-fa-share:before{content:\"\\f064\"}.bk-fa-expand:before{content:\"\\f065\"}.bk-fa-compress:before{content:\"\\f066\"}.bk-fa-plus:before{content:\"\\f067\"}.bk-fa-minus:before{content:\"\\f068\"}.bk-fa-asterisk:before{content:\"\\f069\"}.bk-fa-exclamation-circle:before{content:\"\\f06a\"}.bk-fa-gift:before{content:\"\\f06b\"}.bk-fa-leaf:before{content:\"\\f06c\"}.bk-fa-fire:before{content:\"\\f06d\"}.bk-fa-eye:before{content:\"\\f06e\"}.bk-fa-eye-slash:before{content:\"\\f070\"}.bk-fa-warning:before,.bk-fa-exclamation-triangle:before{content:\"\\f071\"}.bk-fa-plane:before{content:\"\\f072\"}.bk-fa-calendar:before{content:\"\\f073\"}.bk-fa-random:before{content:\"\\f074\"}.bk-fa-comment:before{content:\"\\f075\"}.bk-fa-magnet:before{content:\"\\f076\"}.bk-fa-chevron-up:before{content:\"\\f077\"}.bk-fa-chevron-down:before{content:\"\\f078\"}.bk-fa-retweet:before{content:\"\\f079\"}.bk-fa-shopping-cart:before{content:\"\\f07a\"}.bk-fa-folder:before{content:\"\\f07b\"}.bk-fa-folder-open:before{content:\"\\f07c\"}.bk-fa-arrows-v:before{content:\"\\f07d\"}.bk-fa-arrows-h:before{content:\"\\f07e\"}.bk-fa-bar-chart-o:before,.bk-fa-bar-chart:before{content:\"\\f080\"}.bk-fa-twitter-square:before{content:\"\\f081\"}.bk-fa-facebook-square:before{content:\"\\f082\"}.bk-fa-camera-retro:before{content:\"\\f083\"}.bk-fa-key:before{content:\"\\f084\"}.bk-fa-gears:before,.bk-fa-cogs:before{content:\"\\f085\"}.bk-fa-comments:before{content:\"\\f086\"}.bk-fa-thumbs-o-up:before{content:\"\\f087\"}.bk-fa-thumbs-o-down:before{content:\"\\f088\"}.bk-fa-star-half:before{content:\"\\f089\"}.bk-fa-heart-o:before{content:\"\\f08a\"}.bk-fa-sign-out:before{content:\"\\f08b\"}.bk-fa-linkedin-square:before{content:\"\\f08c\"}.bk-fa-thumb-tack:before{content:\"\\f08d\"}.bk-fa-external-link:before{content:\"\\f08e\"}.bk-fa-sign-in:before{content:\"\\f090\"}.bk-fa-trophy:before{content:\"\\f091\"}.bk-fa-github-square:before{content:\"\\f092\"}.bk-fa-upload:before{content:\"\\f093\"}.bk-fa-lemon-o:before{content:\"\\f094\"}.bk-fa-phone:before{content:\"\\f095\"}.bk-fa-square-o:before{content:\"\\f096\"}.bk-fa-bookmark-o:before{content:\"\\f097\"}.bk-fa-phone-square:before{content:\"\\f098\"}.bk-fa-twitter:before{content:\"\\f099\"}.bk-fa-facebook:before{content:\"\\f09a\"}.bk-fa-github:before{content:\"\\f09b\"}.bk-fa-unlock:before{content:\"\\f09c\"}.bk-fa-credit-card:before{content:\"\\f09d\"}.bk-fa-rss:before{content:\"\\f09e\"}.bk-fa-hdd-o:before{content:\"\\f0a0\"}.bk-fa-bullhorn:before{content:\"\\f0a1\"}.bk-fa-bell:before{content:\"\\f0f3\"}.bk-fa-certificate:before{content:\"\\f0a3\"}.bk-fa-hand-o-right:before{content:\"\\f0a4\"}.bk-fa-hand-o-left:before{content:\"\\f0a5\"}.bk-fa-hand-o-up:before{content:\"\\f0a6\"}.bk-fa-hand-o-down:before{content:\"\\f0a7\"}.bk-fa-arrow-circle-left:before{content:\"\\f0a8\"}.bk-fa-arrow-circle-right:before{content:\"\\f0a9\"}.bk-fa-arrow-circle-up:before{content:\"\\f0aa\"}.bk-fa-arrow-circle-down:before{content:\"\\f0ab\"}.bk-fa-globe:before{content:\"\\f0ac\"}.bk-fa-wrench:before{content:\"\\f0ad\"}.bk-fa-tasks:before{content:\"\\f0ae\"}.bk-fa-filter:before{content:\"\\f0b0\"}.bk-fa-briefcase:before{content:\"\\f0b1\"}.bk-fa-arrows-alt:before{content:\"\\f0b2\"}.bk-fa-group:before,.bk-fa-users:before{content:\"\\f0c0\"}.bk-fa-chain:before,.bk-fa-link:before{content:\"\\f0c1\"}.bk-fa-cloud:before{content:\"\\f0c2\"}.bk-fa-flask:before{content:\"\\f0c3\"}.bk-fa-cut:before,.bk-fa-scissors:before{content:\"\\f0c4\"}.bk-fa-copy:before,.bk-fa-files-o:before{content:\"\\f0c5\"}.bk-fa-paperclip:before{content:\"\\f0c6\"}.bk-fa-save:before,.bk-fa-floppy-o:before{content:\"\\f0c7\"}.bk-fa-square:before{content:\"\\f0c8\"}.bk-fa-navicon:before,.bk-fa-reorder:before,.bk-fa-bars:before{content:\"\\f0c9\"}.bk-fa-list-ul:before{content:\"\\f0ca\"}.bk-fa-list-ol:before{content:\"\\f0cb\"}.bk-fa-strikethrough:before{content:\"\\f0cc\"}.bk-fa-underline:before{content:\"\\f0cd\"}.bk-fa-table:before{content:\"\\f0ce\"}.bk-fa-magic:before{content:\"\\f0d0\"}.bk-fa-truck:before{content:\"\\f0d1\"}.bk-fa-pinterest:before{content:\"\\f0d2\"}.bk-fa-pinterest-square:before{content:\"\\f0d3\"}.bk-fa-google-plus-square:before{content:\"\\f0d4\"}.bk-fa-google-plus:before{content:\"\\f0d5\"}.bk-fa-money:before{content:\"\\f0d6\"}.bk-fa-caret-down:before{content:\"\\f0d7\"}.bk-fa-caret-up:before{content:\"\\f0d8\"}.bk-fa-caret-left:before{content:\"\\f0d9\"}.bk-fa-caret-right:before{content:\"\\f0da\"}.bk-fa-columns:before{content:\"\\f0db\"}.bk-fa-unsorted:before,.bk-fa-sort:before{content:\"\\f0dc\"}.bk-fa-sort-down:before,.bk-fa-sort-desc:before{content:\"\\f0dd\"}.bk-fa-sort-up:before,.bk-fa-sort-asc:before{content:\"\\f0de\"}.bk-fa-envelope:before{content:\"\\f0e0\"}.bk-fa-linkedin:before{content:\"\\f0e1\"}.bk-fa-rotate-left:before,.bk-fa-undo:before{content:\"\\f0e2\"}.bk-fa-legal:before,.bk-fa-gavel:before{content:\"\\f0e3\"}.bk-fa-dashboard:before,.bk-fa-tachometer:before{content:\"\\f0e4\"}.bk-fa-comment-o:before{content:\"\\f0e5\"}.bk-fa-comments-o:before{content:\"\\f0e6\"}.bk-fa-flash:before,.bk-fa-bolt:before{content:\"\\f0e7\"}.bk-fa-sitemap:before{content:\"\\f0e8\"}.bk-fa-umbrella:before{content:\"\\f0e9\"}.bk-fa-paste:before,.bk-fa-clipboard:before{content:\"\\f0ea\"}.bk-fa-lightbulb-o:before{content:\"\\f0eb\"}.bk-fa-exchange:before{content:\"\\f0ec\"}.bk-fa-cloud-download:before{content:\"\\f0ed\"}.bk-fa-cloud-upload:before{content:\"\\f0ee\"}.bk-fa-user-md:before{content:\"\\f0f0\"}.bk-fa-stethoscope:before{content:\"\\f0f1\"}.bk-fa-suitcase:before{content:\"\\f0f2\"}.bk-fa-bell-o:before{content:\"\\f0a2\"}.bk-fa-coffee:before{content:\"\\f0f4\"}.bk-fa-cutlery:before{content:\"\\f0f5\"}.bk-fa-file-text-o:before{content:\"\\f0f6\"}.bk-fa-building-o:before{content:\"\\f0f7\"}.bk-fa-hospital-o:before{content:\"\\f0f8\"}.bk-fa-ambulance:before{content:\"\\f0f9\"}.bk-fa-medkit:before{content:\"\\f0fa\"}.bk-fa-fighter-jet:before{content:\"\\f0fb\"}.bk-fa-beer:before{content:\"\\f0fc\"}.bk-fa-h-square:before{content:\"\\f0fd\"}.bk-fa-plus-square:before{content:\"\\f0fe\"}.bk-fa-angle-double-left:before{content:\"\\f100\"}.bk-fa-angle-double-right:before{content:\"\\f101\"}.bk-fa-angle-double-up:before{content:\"\\f102\"}.bk-fa-angle-double-down:before{content:\"\\f103\"}.bk-fa-angle-left:before{content:\"\\f104\"}.bk-fa-angle-right:before{content:\"\\f105\"}.bk-fa-angle-up:before{content:\"\\f106\"}.bk-fa-angle-down:before{content:\"\\f107\"}.bk-fa-desktop:before{content:\"\\f108\"}.bk-fa-laptop:before{content:\"\\f109\"}.bk-fa-tablet:before{content:\"\\f10a\"}.bk-fa-mobile-phone:before,.bk-fa-mobile:before{content:\"\\f10b\"}.bk-fa-circle-o:before{content:\"\\f10c\"}.bk-fa-quote-left:before{content:\"\\f10d\"}.bk-fa-quote-right:before{content:\"\\f10e\"}.bk-fa-spinner:before{content:\"\\f110\"}.bk-fa-circle:before{content:\"\\f111\"}.bk-fa-mail-reply:before,.bk-fa-reply:before{content:\"\\f112\"}.bk-fa-github-alt:before{content:\"\\f113\"}.bk-fa-folder-o:before{content:\"\\f114\"}.bk-fa-folder-open-o:before{content:\"\\f115\"}.bk-fa-smile-o:before{content:\"\\f118\"}.bk-fa-frown-o:before{content:\"\\f119\"}.bk-fa-meh-o:before{content:\"\\f11a\"}.bk-fa-gamepad:before{content:\"\\f11b\"}.bk-fa-keyboard-o:before{content:\"\\f11c\"}.bk-fa-flag-o:before{content:\"\\f11d\"}.bk-fa-flag-checkered:before{content:\"\\f11e\"}.bk-fa-terminal:before{content:\"\\f120\"}.bk-fa-code:before{content:\"\\f121\"}.bk-fa-mail-reply-all:before,.bk-fa-reply-all:before{content:\"\\f122\"}.bk-fa-star-half-empty:before,.bk-fa-star-half-full:before,.bk-fa-star-half-o:before{content:\"\\f123\"}.bk-fa-location-arrow:before{content:\"\\f124\"}.bk-fa-crop:before{content:\"\\f125\"}.bk-fa-code-fork:before{content:\"\\f126\"}.bk-fa-unlink:before,.bk-fa-chain-broken:before{content:\"\\f127\"}.bk-fa-question:before{content:\"\\f128\"}.bk-fa-info:before{content:\"\\f129\"}.bk-fa-exclamation:before{content:\"\\f12a\"}.bk-fa-superscript:before{content:\"\\f12b\"}.bk-fa-subscript:before{content:\"\\f12c\"}.bk-fa-eraser:before{content:\"\\f12d\"}.bk-fa-puzzle-piece:before{content:\"\\f12e\"}.bk-fa-microphone:before{content:\"\\f130\"}.bk-fa-microphone-slash:before{content:\"\\f131\"}.bk-fa-shield:before{content:\"\\f132\"}.bk-fa-calendar-o:before{content:\"\\f133\"}.bk-fa-fire-extinguisher:before{content:\"\\f134\"}.bk-fa-rocket:before{content:\"\\f135\"}.bk-fa-maxcdn:before{content:\"\\f136\"}.bk-fa-chevron-circle-left:before{content:\"\\f137\"}.bk-fa-chevron-circle-right:before{content:\"\\f138\"}.bk-fa-chevron-circle-up:before{content:\"\\f139\"}.bk-fa-chevron-circle-down:before{content:\"\\f13a\"}.bk-fa-html5:before{content:\"\\f13b\"}.bk-fa-css3:before{content:\"\\f13c\"}.bk-fa-anchor:before{content:\"\\f13d\"}.bk-fa-unlock-alt:before{content:\"\\f13e\"}.bk-fa-bullseye:before{content:\"\\f140\"}.bk-fa-ellipsis-h:before{content:\"\\f141\"}.bk-fa-ellipsis-v:before{content:\"\\f142\"}.bk-fa-rss-square:before{content:\"\\f143\"}.bk-fa-play-circle:before{content:\"\\f144\"}.bk-fa-ticket:before{content:\"\\f145\"}.bk-fa-minus-square:before{content:\"\\f146\"}.bk-fa-minus-square-o:before{content:\"\\f147\"}.bk-fa-level-up:before{content:\"\\f148\"}.bk-fa-level-down:before{content:\"\\f149\"}.bk-fa-check-square:before{content:\"\\f14a\"}.bk-fa-pencil-square:before{content:\"\\f14b\"}.bk-fa-external-link-square:before{content:\"\\f14c\"}.bk-fa-share-square:before{content:\"\\f14d\"}.bk-fa-compass:before{content:\"\\f14e\"}.bk-fa-toggle-down:before,.bk-fa-caret-square-o-down:before{content:\"\\f150\"}.bk-fa-toggle-up:before,.bk-fa-caret-square-o-up:before{content:\"\\f151\"}.bk-fa-toggle-right:before,.bk-fa-caret-square-o-right:before{content:\"\\f152\"}.bk-fa-euro:before,.bk-fa-eur:before{content:\"\\f153\"}.bk-fa-gbp:before{content:\"\\f154\"}.bk-fa-dollar:before,.bk-fa-usd:before{content:\"\\f155\"}.bk-fa-rupee:before,.bk-fa-inr:before{content:\"\\f156\"}.bk-fa-cny:before,.bk-fa-rmb:before,.bk-fa-yen:before,.bk-fa-jpy:before{content:\"\\f157\"}.bk-fa-ruble:before,.bk-fa-rouble:before,.bk-fa-rub:before{content:\"\\f158\"}.bk-fa-won:before,.bk-fa-krw:before{content:\"\\f159\"}.bk-fa-bitcoin:before,.bk-fa-btc:before{content:\"\\f15a\"}.bk-fa-file:before{content:\"\\f15b\"}.bk-fa-file-text:before{content:\"\\f15c\"}.bk-fa-sort-alpha-asc:before{content:\"\\f15d\"}.bk-fa-sort-alpha-desc:before{content:\"\\f15e\"}.bk-fa-sort-amount-asc:before{content:\"\\f160\"}.bk-fa-sort-amount-desc:before{content:\"\\f161\"}.bk-fa-sort-numeric-asc:before{content:\"\\f162\"}.bk-fa-sort-numeric-desc:before{content:\"\\f163\"}.bk-fa-thumbs-up:before{content:\"\\f164\"}.bk-fa-thumbs-down:before{content:\"\\f165\"}.bk-fa-youtube-square:before{content:\"\\f166\"}.bk-fa-youtube:before{content:\"\\f167\"}.bk-fa-xing:before{content:\"\\f168\"}.bk-fa-xing-square:before{content:\"\\f169\"}.bk-fa-youtube-play:before{content:\"\\f16a\"}.bk-fa-dropbox:before{content:\"\\f16b\"}.bk-fa-stack-overflow:before{content:\"\\f16c\"}.bk-fa-instagram:before{content:\"\\f16d\"}.bk-fa-flickr:before{content:\"\\f16e\"}.bk-fa-adn:before{content:\"\\f170\"}.bk-fa-bitbucket:before{content:\"\\f171\"}.bk-fa-bitbucket-square:before{content:\"\\f172\"}.bk-fa-tumblr:before{content:\"\\f173\"}.bk-fa-tumblr-square:before{content:\"\\f174\"}.bk-fa-long-arrow-down:before{content:\"\\f175\"}.bk-fa-long-arrow-up:before{content:\"\\f176\"}.bk-fa-long-arrow-left:before{content:\"\\f177\"}.bk-fa-long-arrow-right:before{content:\"\\f178\"}.bk-fa-apple:before{content:\"\\f179\"}.bk-fa-windows:before{content:\"\\f17a\"}.bk-fa-android:before{content:\"\\f17b\"}.bk-fa-linux:before{content:\"\\f17c\"}.bk-fa-dribbble:before{content:\"\\f17d\"}.bk-fa-skype:before{content:\"\\f17e\"}.bk-fa-foursquare:before{content:\"\\f180\"}.bk-fa-trello:before{content:\"\\f181\"}.bk-fa-female:before{content:\"\\f182\"}.bk-fa-male:before{content:\"\\f183\"}.bk-fa-gittip:before{content:\"\\f184\"}.bk-fa-sun-o:before{content:\"\\f185\"}.bk-fa-moon-o:before{content:\"\\f186\"}.bk-fa-archive:before{content:\"\\f187\"}.bk-fa-bug:before{content:\"\\f188\"}.bk-fa-vk:before{content:\"\\f189\"}.bk-fa-weibo:before{content:\"\\f18a\"}.bk-fa-renren:before{content:\"\\f18b\"}.bk-fa-pagelines:before{content:\"\\f18c\"}.bk-fa-stack-exchange:before{content:\"\\f18d\"}.bk-fa-arrow-circle-o-right:before{content:\"\\f18e\"}.bk-fa-arrow-circle-o-left:before{content:\"\\f190\"}.bk-fa-toggle-left:before,.bk-fa-caret-square-o-left:before{content:\"\\f191\"}.bk-fa-dot-circle-o:before{content:\"\\f192\"}.bk-fa-wheelchair:before{content:\"\\f193\"}.bk-fa-vimeo-square:before{content:\"\\f194\"}.bk-fa-turkish-lira:before,.bk-fa-try:before{content:\"\\f195\"}.bk-fa-plus-square-o:before{content:\"\\f196\"}.bk-fa-space-shuttle:before{content:\"\\f197\"}.bk-fa-slack:before{content:\"\\f198\"}.bk-fa-envelope-square:before{content:\"\\f199\"}.bk-fa-wordpress:before{content:\"\\f19a\"}.bk-fa-openid:before{content:\"\\f19b\"}.bk-fa-institution:before,.bk-fa-bank:before,.bk-fa-university:before{content:\"\\f19c\"}.bk-fa-mortar-board:before,.bk-fa-graduation-cap:before{content:\"\\f19d\"}.bk-fa-yahoo:before{content:\"\\f19e\"}.bk-fa-google:before{content:\"\\f1a0\"}.bk-fa-reddit:before{content:\"\\f1a1\"}.bk-fa-reddit-square:before{content:\"\\f1a2\"}.bk-fa-stumbleupon-circle:before{content:\"\\f1a3\"}.bk-fa-stumbleupon:before{content:\"\\f1a4\"}.bk-fa-delicious:before{content:\"\\f1a5\"}.bk-fa-digg:before{content:\"\\f1a6\"}.bk-fa-pied-piper:before{content:\"\\f1a7\"}.bk-fa-pied-piper-alt:before{content:\"\\f1a8\"}.bk-fa-drupal:before{content:\"\\f1a9\"}.bk-fa-joomla:before{content:\"\\f1aa\"}.bk-fa-language:before{content:\"\\f1ab\"}.bk-fa-fax:before{content:\"\\f1ac\"}.bk-fa-building:before{content:\"\\f1ad\"}.bk-fa-child:before{content:\"\\f1ae\"}.bk-fa-paw:before{content:\"\\f1b0\"}.bk-fa-spoon:before{content:\"\\f1b1\"}.bk-fa-cube:before{content:\"\\f1b2\"}.bk-fa-cubes:before{content:\"\\f1b3\"}.bk-fa-behance:before{content:\"\\f1b4\"}.bk-fa-behance-square:before{content:\"\\f1b5\"}.bk-fa-steam:before{content:\"\\f1b6\"}.bk-fa-steam-square:before{content:\"\\f1b7\"}.bk-fa-recycle:before{content:\"\\f1b8\"}.bk-fa-automobile:before,.bk-fa-car:before{content:\"\\f1b9\"}.bk-fa-cab:before,.bk-fa-taxi:before{content:\"\\f1ba\"}.bk-fa-tree:before{content:\"\\f1bb\"}.bk-fa-spotify:before{content:\"\\f1bc\"}.bk-fa-deviantart:before{content:\"\\f1bd\"}.bk-fa-soundcloud:before{content:\"\\f1be\"}.bk-fa-database:before{content:\"\\f1c0\"}.bk-fa-file-pdf-o:before{content:\"\\f1c1\"}.bk-fa-file-word-o:before{content:\"\\f1c2\"}.bk-fa-file-excel-o:before{content:\"\\f1c3\"}.bk-fa-file-powerpoint-o:before{content:\"\\f1c4\"}.bk-fa-file-photo-o:before,.bk-fa-file-picture-o:before,.bk-fa-file-image-o:before{content:\"\\f1c5\"}.bk-fa-file-zip-o:before,.bk-fa-file-archive-o:before{content:\"\\f1c6\"}.bk-fa-file-sound-o:before,.bk-fa-file-audio-o:before{content:\"\\f1c7\"}.bk-fa-file-movie-o:before,.bk-fa-file-video-o:before{content:\"\\f1c8\"}.bk-fa-file-code-o:before{content:\"\\f1c9\"}.bk-fa-vine:before{content:\"\\f1ca\"}.bk-fa-codepen:before{content:\"\\f1cb\"}.bk-fa-jsfiddle:before{content:\"\\f1cc\"}.bk-fa-life-bouy:before,.bk-fa-life-buoy:before,.bk-fa-life-saver:before,.bk-fa-support:before,.bk-fa-life-ring:before{content:\"\\f1cd\"}.bk-fa-circle-o-notch:before{content:\"\\f1ce\"}.bk-fa-ra:before,.bk-fa-rebel:before{content:\"\\f1d0\"}.bk-fa-ge:before,.bk-fa-empire:before{content:\"\\f1d1\"}.bk-fa-git-square:before{content:\"\\f1d2\"}.bk-fa-git:before{content:\"\\f1d3\"}.bk-fa-hacker-news:before{content:\"\\f1d4\"}.bk-fa-tencent-weibo:before{content:\"\\f1d5\"}.bk-fa-qq:before{content:\"\\f1d6\"}.bk-fa-wechat:before,.bk-fa-weixin:before{content:\"\\f1d7\"}.bk-fa-send:before,.bk-fa-paper-plane:before{content:\"\\f1d8\"}.bk-fa-send-o:before,.bk-fa-paper-plane-o:before{content:\"\\f1d9\"}.bk-fa-history:before{content:\"\\f1da\"}.bk-fa-circle-thin:before{content:\"\\f1db\"}.bk-fa-header:before{content:\"\\f1dc\"}.bk-fa-paragraph:before{content:\"\\f1dd\"}.bk-fa-sliders:before{content:\"\\f1de\"}.bk-fa-share-alt:before{content:\"\\f1e0\"}.bk-fa-share-alt-square:before{content:\"\\f1e1\"}.bk-fa-bomb:before{content:\"\\f1e2\"}.bk-fa-soccer-ball-o:before,.bk-fa-futbol-o:before{content:\"\\f1e3\"}.bk-fa-tty:before{content:\"\\f1e4\"}.bk-fa-binoculars:before{content:\"\\f1e5\"}.bk-fa-plug:before{content:\"\\f1e6\"}.bk-fa-slideshare:before{content:\"\\f1e7\"}.bk-fa-twitch:before{content:\"\\f1e8\"}.bk-fa-yelp:before{content:\"\\f1e9\"}.bk-fa-newspaper-o:before{content:\"\\f1ea\"}.bk-fa-wifi:before{content:\"\\f1eb\"}.bk-fa-calculator:before{content:\"\\f1ec\"}.bk-fa-paypal:before{content:\"\\f1ed\"}.bk-fa-google-wallet:before{content:\"\\f1ee\"}.bk-fa-cc-visa:before{content:\"\\f1f0\"}.bk-fa-cc-mastercard:before{content:\"\\f1f1\"}.bk-fa-cc-discover:before{content:\"\\f1f2\"}.bk-fa-cc-amex:before{content:\"\\f1f3\"}.bk-fa-cc-paypal:before{content:\"\\f1f4\"}.bk-fa-cc-stripe:before{content:\"\\f1f5\"}.bk-fa-bell-slash:before{content:\"\\f1f6\"}.bk-fa-bell-slash-o:before{content:\"\\f1f7\"}.bk-fa-trash:before{content:\"\\f1f8\"}.bk-fa-copyright:before{content:\"\\f1f9\"}.bk-fa-at:before{content:\"\\f1fa\"}.bk-fa-eyedropper:before{content:\"\\f1fb\"}.bk-fa-paint-brush:before{content:\"\\f1fc\"}.bk-fa-birthday-cake:before{content:\"\\f1fd\"}.bk-fa-area-chart:before{content:\"\\f1fe\"}.bk-fa-pie-chart:before{content:\"\\f200\"}.bk-fa-line-chart:before{content:\"\\f201\"}.bk-fa-lastfm:before{content:\"\\f202\"}.bk-fa-lastfm-square:before{content:\"\\f203\"}.bk-fa-toggle-off:before{content:\"\\f204\"}.bk-fa-toggle-on:before{content:\"\\f205\"}.bk-fa-bicycle:before{content:\"\\f206\"}.bk-fa-bus:before{content:\"\\f207\"}.bk-fa-ioxhost:before{content:\"\\f208\"}.bk-fa-angellist:before{content:\"\\f209\"}.bk-fa-cc:before{content:\"\\f20a\"}.bk-fa-shekel:before,.bk-fa-sheqel:before,.bk-fa-ils:before{content:\"\\f20b\"}.bk-fa-meanpath:before{content:\"\\f20c\"}/*!\n",
        "                 * jQuery UI CSS Framework 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/category/theming/\n",
        "                 */.bk-ui-helper-hidden{display:none}.bk-ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.bk-ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.bk-ui-helper-clearfix:before,.bk-ui-helper-clearfix:after{content:\"\";display:table;border-collapse:collapse}.bk-ui-helper-clearfix:after{clear:both}.bk-ui-helper-clearfix{min-height:0}.bk-ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.bk-ui-front{z-index:100}.bk-ui-state-disabled{cursor:default!important}.bk-ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.bk-ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}/*!\n",
        "                 * jQuery UI Accordion 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/accordion/#theming\n",
        "                 */.bk-ui-accordion .bk-ui-accordion-header{display:block;cursor:pointer;position:relative;margin:2px 0 0;padding:.5em .5em .5em .7em;min-height:0;font-size:100%}.bk-ui-accordion .bk-ui-accordion-icons{padding-left:2.2em}.bk-ui-accordion .bk-ui-accordion-icons .bk-ui-accordion-icons{padding-left:2.2em}.bk-ui-accordion .bk-ui-accordion-header .bk-ui-accordion-header-icon{position:absolute;left:.5em;top:50%;margin-top:-8px}.bk-ui-accordion .bk-ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}/*!\n",
        "                 * jQuery UI Autocomplete 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/autocomplete/#theming\n",
        "                 */.bk-ui-autocomplete{position:absolute;top:0;left:0;cursor:default}/*!\n",
        "                 * jQuery UI Button 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/button/#theming\n",
        "                 */.bk-ui-button{display:inline-block;position:relative;padding:0;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;overflow:visible}.bk-ui-button,.bk-ui-button:link,.bk-ui-button:visited,.bk-ui-button:hover,.bk-ui-button:active{text-decoration:none}.bk-ui-button-icon-only{width:2.2em}button.bk-ui-button-icon-only{width:2.4em}.bk-ui-button-icons-only{width:3.4em}button.bk-ui-button-icons-only{width:3.7em}.bk-ui-button .bk-ui-button-text{display:block;line-height:normal}.bk-ui-button-text-only .bk-ui-button-text{padding:.4em 1em}.bk-ui-button-icon-only .bk-ui-button-text,.bk-ui-button-icons-only .bk-ui-button-text{padding:.4em;text-indent:-9999999px}.bk-ui-button-text-icon-primary .bk-ui-button-text,.bk-ui-button-text-icons .bk-ui-button-text{padding:.4em 1em .4em 2.1em}.bk-ui-button-text-icon-secondary .bk-ui-button-text,.bk-ui-button-text-icons .bk-ui-button-text{padding:.4em 2.1em .4em 1em}.bk-ui-button-text-icons .bk-ui-button-text{padding-left:2.1em;padding-right:2.1em}input.bk-ui-button{padding:.4em 1em}.bk-ui-button-icon-only .bk-ui-icon,.bk-ui-button-text-icon-primary .bk-ui-icon,.bk-ui-button-text-icon-secondary .bk-ui-icon,.bk-ui-button-text-icons .bk-ui-icon,.bk-ui-button-icons-only .bk-ui-icon{position:absolute;top:50%;margin-top:-8px}.bk-ui-button-icon-only .bk-ui-icon{left:50%;margin-left:-8px}.bk-ui-button-text-icon-primary .bk-ui-button-icon-primary,.bk-ui-button-text-icons .bk-ui-button-icon-primary,.bk-ui-button-icons-only .bk-ui-button-icon-primary{left:.5em}.bk-ui-button-text-icon-secondary .bk-ui-button-icon-secondary,.bk-ui-button-text-icons .bk-ui-button-icon-secondary,.bk-ui-button-icons-only .bk-ui-button-icon-secondary{right:.5em}.bk-ui-buttonset{margin-right:7px}.bk-ui-buttonset .bk-ui-button{margin-left:0;margin-right:-.3em}input.bk-ui-button::-moz-focus-inner,button.bk-ui-button::-moz-focus-inner{border:0;padding:0}/*!\n",
        "                 * jQuery UI Datepicker 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/datepicker/#theming\n",
        "                 */.bk-ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.bk-ui-datepicker .bk-ui-datepicker-header{position:relative;padding:.2em 0}.bk-ui-datepicker .bk-ui-datepicker-prev,.bk-ui-datepicker .bk-ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.bk-ui-datepicker .bk-ui-datepicker-prev-hover,.bk-ui-datepicker .bk-ui-datepicker-next-hover{top:1px}.bk-ui-datepicker .bk-ui-datepicker-prev{left:2px}.bk-ui-datepicker .bk-ui-datepicker-next{right:2px}.bk-ui-datepicker .bk-ui-datepicker-prev-hover{left:1px}.bk-ui-datepicker .bk-ui-datepicker-next-hover{right:1px}.bk-ui-datepicker .bk-ui-datepicker-prev span,.bk-ui-datepicker .bk-ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.bk-ui-datepicker .bk-ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.bk-ui-datepicker .bk-ui-datepicker-title select{font-size:1em;margin:1px 0}.bk-ui-datepicker select.bk-ui-datepicker-month,.bk-ui-datepicker select.bk-ui-datepicker-year{width:45%}.bk-ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.bk-ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:700;border:0}.bk-ui-datepicker td{border:0;padding:1px}.bk-ui-datepicker td span,.bk-ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.bk-ui-datepicker .bk-ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.bk-ui-datepicker .bk-ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em;width:auto;overflow:visible}.bk-ui-datepicker .bk-ui-datepicker-buttonpane button.bk-ui-datepicker-current{float:left}.bk-ui-datepicker.bk-ui-datepicker-multi{width:auto}.bk-ui-datepicker-multi .bk-ui-datepicker-group{float:left}.bk-ui-datepicker-multi .bk-ui-datepicker-group table{width:95%;margin:0 auto .4em}.bk-ui-datepicker-multi-2 .bk-ui-datepicker-group{width:50%}.bk-ui-datepicker-multi-3 .bk-ui-datepicker-group{width:33.3%}.bk-ui-datepicker-multi-4 .bk-ui-datepicker-group{width:25%}.bk-ui-datepicker-multi .bk-ui-datepicker-group-last .bk-ui-datepicker-header,.bk-ui-datepicker-multi .bk-ui-datepicker-group-middle .bk-ui-datepicker-header{border-left-width:0}.bk-ui-datepicker-multi .bk-ui-datepicker-buttonpane{clear:left}.bk-ui-datepicker-row-break{clear:both;width:100%;font-size:0}.bk-ui-datepicker-rtl{direction:rtl}.bk-ui-datepicker-rtl .bk-ui-datepicker-prev{right:2px;left:auto}.bk-ui-datepicker-rtl .bk-ui-datepicker-next{left:2px;right:auto}.bk-ui-datepicker-rtl .bk-ui-datepicker-prev:hover{right:1px;left:auto}.bk-ui-datepicker-rtl .bk-ui-datepicker-next:hover{left:1px;right:auto}.bk-ui-datepicker-rtl .bk-ui-datepicker-buttonpane{clear:right}.bk-ui-datepicker-rtl .bk-ui-datepicker-buttonpane button{float:left}.bk-ui-datepicker-rtl .bk-ui-datepicker-buttonpane button.bk-ui-datepicker-current,.bk-ui-datepicker-rtl .bk-ui-datepicker-group{float:right}.bk-ui-datepicker-rtl .bk-ui-datepicker-group-last .bk-ui-datepicker-header,.bk-ui-datepicker-rtl .bk-ui-datepicker-group-middle .bk-ui-datepicker-header{border-right-width:0;border-left-width:1px}/*!\n",
        "                 * jQuery UI Dialog 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/dialog/#theming\n",
        "                 */.bk-ui-dialog{overflow:hidden;position:absolute;top:0;left:0;padding:.2em;outline:0}.bk-ui-dialog .bk-ui-dialog-titlebar{padding:.4em 1em;position:relative}.bk-ui-dialog .bk-ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.bk-ui-dialog .bk-ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:20px;margin:-10px 0 0 0;padding:1px;height:20px}.bk-ui-dialog .bk-ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:0 0;overflow:auto}.bk-ui-dialog .bk-ui-dialog-buttonpane{text-align:left;border-width:1px 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.bk-ui-dialog .bk-ui-dialog-buttonpane .bk-ui-dialog-buttonset{float:right}.bk-ui-dialog .bk-ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.bk-ui-dialog .bk-ui-resizable-se{width:12px;height:12px;right:-5px;bottom:-5px;background-position:16px 16px}.bk-ui-draggable .bk-ui-dialog-titlebar{cursor:move}/*!\n",
        "                 * jQuery UI Draggable 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 */.bk-ui-draggable-handle{-ms-touch-action:none;touch-action:none}/*!\n",
        "                 * jQuery UI Menu 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/menu/#theming\n",
        "                 */.bk-ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.bk-ui-menu .bk-ui-menu{position:absolute}.bk-ui-menu .bk-ui-menu-item{position:relative;margin:0;padding:3px 1em 3px .4em;cursor:pointer;min-height:0;list-style-image:url(\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\")}.bk-ui-menu .bk-ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0}.bk-ui-menu .bk-ui-state-focus,.bk-ui-menu .bk-ui-state-active{margin:-1px}.bk-ui-menu-icons{position:relative}.bk-ui-menu-icons .bk-ui-menu-item{padding-left:2em}.bk-ui-menu .bk-ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.bk-ui-menu .bk-ui-menu-icon{left:auto;right:0}/*!\n",
        "                 * jQuery UI Progressbar 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/progressbar/#theming\n",
        "                 */.bk-ui-progressbar{height:2em;text-align:left;overflow:hidden}.bk-ui-progressbar .bk-ui-progressbar-value{margin:-1px;height:100%}.bk-ui-progressbar .bk-ui-progressbar-overlay{background:url(\"data:image/gif;base64,R0lGODlhKAAoAIABAAAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAQABACwAAAAAKAAoAAACkYwNqXrdC52DS06a7MFZI+4FHBCKoDeWKXqymPqGqxvJrXZbMx7Ttc+w9XgU2FB3lOyQRWET2IFGiU9m1frDVpxZZc6bfHwv4c1YXP6k1Vdy292Fb6UkuvFtXpvWSzA+HycXJHUXiGYIiMg2R6W459gnWGfHNdjIqDWVqemH2ekpObkpOlppWUqZiqr6edqqWQAAIfkECQEAAQAsAAAAACgAKAAAApSMgZnGfaqcg1E2uuzDmmHUBR8Qil95hiPKqWn3aqtLsS18y7G1SzNeowWBENtQd+T1JktP05nzPTdJZlR6vUxNWWjV+vUWhWNkWFwxl9VpZRedYcflIOLafaa28XdsH/ynlcc1uPVDZxQIR0K25+cICCmoqCe5mGhZOfeYSUh5yJcJyrkZWWpaR8doJ2o4NYq62lAAACH5BAkBAAEALAAAAAAoACgAAAKVDI4Yy22ZnINRNqosw0Bv7i1gyHUkFj7oSaWlu3ovC8GxNso5fluz3qLVhBVeT/Lz7ZTHyxL5dDalQWPVOsQWtRnuwXaFTj9jVVh8pma9JjZ4zYSj5ZOyma7uuolffh+IR5aW97cHuBUXKGKXlKjn+DiHWMcYJah4N0lYCMlJOXipGRr5qdgoSTrqWSq6WFl2ypoaUAAAIfkECQEAAQAsAAAAACgAKAAAApaEb6HLgd/iO7FNWtcFWe+ufODGjRfoiJ2akShbueb0wtI50zm02pbvwfWEMWBQ1zKGlLIhskiEPm9R6vRXxV4ZzWT2yHOGpWMyorblKlNp8HmHEb/lCXjcW7bmtXP8Xt229OVWR1fod2eWqNfHuMjXCPkIGNileOiImVmCOEmoSfn3yXlJWmoHGhqp6ilYuWYpmTqKUgAAIfkECQEAAQAsAAAAACgAKAAAApiEH6kb58biQ3FNWtMFWW3eNVcojuFGfqnZqSebuS06w5V80/X02pKe8zFwP6EFWOT1lDFk8rGERh1TTNOocQ61Hm4Xm2VexUHpzjymViHrFbiELsefVrn6XKfnt2Q9G/+Xdie499XHd2g4h7ioOGhXGJboGAnXSBnoBwKYyfioubZJ2Hn0RuRZaflZOil56Zp6iioKSXpUAAAh+QQJAQABACwAAAAAKAAoAAACkoQRqRvnxuI7kU1a1UU5bd5tnSeOZXhmn5lWK3qNTWvRdQxP8qvaC+/yaYQzXO7BMvaUEmJRd3TsiMAgswmNYrSgZdYrTX6tSHGZO73ezuAw2uxuQ+BbeZfMxsexY35+/Qe4J1inV0g4x3WHuMhIl2jXOKT2Q+VU5fgoSUI52VfZyfkJGkha6jmY+aaYdirq+lQAACH5BAkBAAEALAAAAAAoACgAAAKWBIKpYe0L3YNKToqswUlvznigd4wiR4KhZrKt9Upqip61i9E3vMvxRdHlbEFiEXfk9YARYxOZZD6VQ2pUunBmtRXo1Lf8hMVVcNl8JafV38aM2/Fu5V16Bn63r6xt97j09+MXSFi4BniGFae3hzbH9+hYBzkpuUh5aZmHuanZOZgIuvbGiNeomCnaxxap2upaCZsq+1kAACH5BAkBAAEALAAAAAAoACgAAAKXjI8By5zf4kOxTVrXNVlv1X0d8IGZGKLnNpYtm8Lr9cqVeuOSvfOW79D9aDHizNhDJidFZhNydEahOaDH6nomtJjp1tutKoNWkvA6JqfRVLHU/QUfau9l2x7G54d1fl995xcIGAdXqMfBNadoYrhH+Mg2KBlpVpbluCiXmMnZ2Sh4GBqJ+ckIOqqJ6LmKSllZmsoq6wpQAAAh+QQJAQABACwAAAAAKAAoAAAClYx/oLvoxuJDkU1a1YUZbJ59nSd2ZXhWqbRa2/gF8Gu2DY3iqs7yrq+xBYEkYvFSM8aSSObE+ZgRl1BHFZNr7pRCavZ5BW2142hY3AN/zWtsmf12p9XxxFl2lpLn1rseztfXZjdIWIf2s5dItwjYKBgo9yg5pHgzJXTEeGlZuenpyPmpGQoKOWkYmSpaSnqKileI2FAAACH5BAkBAAEALAAAAAAoACgAAAKVjB+gu+jG4kORTVrVhRlsnn2dJ3ZleFaptFrb+CXmO9OozeL5VfP99HvAWhpiUdcwkpBH3825AwYdU8xTqlLGhtCosArKMpvfa1mMRae9VvWZfeB2XfPkeLmm18lUcBj+p5dnN8jXZ3YIGEhYuOUn45aoCDkp16hl5IjYJvjWKcnoGQpqyPlpOhr3aElaqrq56Bq7VAAAOw==\");height:100%;filter:alpha(opacity=25);opacity:.25}.bk-ui-progressbar-indeterminate .bk-ui-progressbar-value{background-image:none}/*!\n",
        "                 * jQuery UI Resizable 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 */.bk-ui-resizable{position:relative}.bk-ui-resizable-handle{position:absolute;font-size:.1px;display:block;-ms-touch-action:none;touch-action:none}.bk-ui-resizable-disabled .bk-ui-resizable-handle,.bk-ui-resizable-autohide .bk-ui-resizable-handle{display:none}.bk-ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.bk-ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.bk-ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.bk-ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.bk-ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.bk-ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.bk-ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.bk-ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}/*!\n",
        "                 * jQuery UI Selectable 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 */.bk-ui-selectable{-ms-touch-action:none;touch-action:none}.bk-ui-selectable-helper{position:absolute;z-index:100;border:1px dotted #000}/*!\n",
        "                 * jQuery UI Selectmenu 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/selectmenu/#theming\n",
        "                 */.bk-ui-selectmenu-menu{padding:0;margin:0;position:absolute;top:0;left:0;display:none}.bk-ui-selectmenu-menu .bk-ui-menu{overflow:auto;overflow-x:hidden;padding-bottom:1px}.bk-ui-selectmenu-menu .bk-ui-menu .bk-ui-selectmenu-optgroup{font-size:1em;font-weight:700;line-height:1.5;padding:2px .4em;margin:.5em 0 0;height:auto;border:0}.bk-ui-selectmenu-open{display:block}.bk-ui-selectmenu-button{display:inline-block;overflow:hidden;position:relative;text-decoration:none;cursor:pointer}.bk-ui-selectmenu-button span.bk-ui-icon{right:.5em;left:auto;margin-top:-8px;position:absolute;top:50%}.bk-ui-selectmenu-button span.bk-ui-selectmenu-text{text-align:left;padding:.4em 2.1em .4em 1em;display:block;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}/*!\n",
        "                 * jQuery UI Sortable 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 */.bk-ui-sortable-handle{-ms-touch-action:none;touch-action:none}/*!\n",
        "                 * jQuery UI Slider 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/slider/#theming\n",
        "                 */.bk-ui-slider{position:relative;text-align:left}.bk-ui-slider .bk-ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default;-ms-touch-action:none;touch-action:none}.bk-ui-slider .bk-ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.bk-ui-slider.bk-ui-state-disabled .bk-ui-slider-handle,.bk-ui-slider.bk-ui-state-disabled .bk-ui-slider-range{filter:inherit}.bk-ui-slider-horizontal{height:.8em}.bk-ui-slider-horizontal .bk-ui-slider-handle{top:-.3em;margin-left:-.6em}.bk-ui-slider-horizontal .bk-ui-slider-range{top:0;height:100%}.bk-ui-slider-horizontal .bk-ui-slider-range-min{left:0}.bk-ui-slider-horizontal .bk-ui-slider-range-max{right:0}.bk-ui-slider-vertical{width:.8em;height:100px}.bk-ui-slider-vertical .bk-ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.bk-ui-slider-vertical .bk-ui-slider-range{left:0;width:100%}.bk-ui-slider-vertical .bk-ui-slider-range-min{bottom:0}.bk-ui-slider-vertical .bk-ui-slider-range-max{top:0}/*!\n",
        "                 * jQuery UI Spinner 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/spinner/#theming\n",
        "                 */.bk-ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.bk-ui-spinner-input{border:0;background:0 0;color:inherit;padding:0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:22px}.bk-ui-spinner-button{width:16px;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.bk-ui-spinner a.bk-ui-spinner-button{border-top:0;border-bottom:0;border-right:0}.bk-ui-spinner .bk-ui-icon{position:absolute;margin-top:-8px;top:50%;left:0}.bk-ui-spinner-up{top:0}.bk-ui-spinner-down{bottom:0}.bk-ui-spinner .bk-ui-icon-triangle-1-s{background-position:-65px -16px}/*!\n",
        "                 * jQuery UI Tabs 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/tabs/#theming\n",
        "                 */.bk-ui-tabs{position:relative;padding:.2em}.bk-ui-tabs .bk-ui-tabs-nav{margin:0;padding:.2em .2em 0}.bk-ui-tabs .bk-ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.bk-ui-tabs .bk-ui-tabs-nav .bk-ui-tabs-anchor{float:left;padding:.5em 1em;text-decoration:none}.bk-ui-tabs .bk-ui-tabs-nav li.bk-ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.bk-ui-tabs .bk-ui-tabs-nav li.bk-ui-tabs-active .bk-ui-tabs-anchor,.bk-ui-tabs .bk-ui-tabs-nav li.bk-ui-state-disabled .bk-ui-tabs-anchor,.bk-ui-tabs .bk-ui-tabs-nav li.bk-ui-tabs-loading .bk-ui-tabs-anchor{cursor:text}.bk-ui-tabs-collapsible .bk-ui-tabs-nav li.bk-ui-tabs-active .bk-ui-tabs-anchor{cursor:pointer}.bk-ui-tabs .bk-ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:0 0}/*!\n",
        "                 * jQuery UI Tooltip 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/tooltip/#theming\n",
        "                 */.bk-ui-tooltip{padding:8px;position:absolute;z-index:9999;max-width:300px;-webkit-box-shadow:0 0 5px #aaa;box-shadow:0 0 5px #aaa}body .bk-ui-tooltip{border-width:2px}/*!\n",
        "                 * jQuery UI CSS Framework 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/category/theming/\n",
        "                 *\n",
        "                 * To view and modify this theme, visit http://jqueryui.com/themeroller/\n",
        "                 */.bk-ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.bk-ui-widget .bk-ui-widget{font-size:1em}.bk-ui-widget input,.bk-ui-widget select,.bk-ui-widget textarea,.bk-ui-widget button{font-family:Verdana,Arial,sans-serif;font-size:1em}.bk-ui-widget-content{border:1px solid #aaa;background:#fff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x;color:#222}.bk-ui-widget-content a{color:#222}.bk-ui-widget-header{border:1px solid #aaa;background:#ccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x;color:#222;font-weight:700}.bk-ui-widget-header a{color:#222}.bk-ui-state-default,.bk-ui-widget-content .bk-ui-state-default,.bk-ui-widget-header .bk-ui-state-default{border:1px solid #d3d3d3;background:#e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;font-weight:400;color:#555}.bk-ui-state-default a,.bk-ui-state-default a:link,.bk-ui-state-default a:visited{color:#555;text-decoration:none}.bk-ui-state-hover,.bk-ui-widget-content .bk-ui-state-hover,.bk-ui-widget-header .bk-ui-state-hover,.bk-ui-state-focus,.bk-ui-widget-content .bk-ui-state-focus,.bk-ui-widget-header .bk-ui-state-focus{border:1px solid #999;background:#dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x;font-weight:400;color:#212121}.bk-ui-state-hover a,.bk-ui-state-hover a:hover,.bk-ui-state-hover a:link,.bk-ui-state-hover a:visited,.bk-ui-state-focus a,.bk-ui-state-focus a:hover,.bk-ui-state-focus a:link,.bk-ui-state-focus a:visited{color:#212121;text-decoration:none}.bk-ui-state-active,.bk-ui-widget-content .bk-ui-state-active,.bk-ui-widget-header .bk-ui-state-active{border:1px solid #aaa;background:#fff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;font-weight:400;color:#212121}.bk-ui-state-active a,.bk-ui-state-active a:link,.bk-ui-state-active a:visited{color:#212121;text-decoration:none}.bk-ui-state-highlight,.bk-ui-widget-content .bk-ui-state-highlight,.bk-ui-widget-header .bk-ui-state-highlight{border:1px solid #fcefa1;background:#fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x;color:#363636}.bk-ui-state-highlight a,.bk-ui-widget-content .bk-ui-state-highlight a,.bk-ui-widget-header .bk-ui-state-highlight a{color:#363636}.bk-ui-state-error,.bk-ui-widget-content .bk-ui-state-error,.bk-ui-widget-header .bk-ui-state-error{border:1px solid #cd0a0a;background:#fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x;color:#cd0a0a}.bk-ui-state-error a,.bk-ui-widget-content .bk-ui-state-error a,.bk-ui-widget-header .bk-ui-state-error a{color:#cd0a0a}.bk-ui-state-error-text,.bk-ui-widget-content .bk-ui-state-error-text,.bk-ui-widget-header .bk-ui-state-error-text{color:#cd0a0a}.bk-ui-priority-primary,.bk-ui-widget-content .bk-ui-priority-primary,.bk-ui-widget-header .bk-ui-priority-primary{font-weight:700}.bk-ui-priority-secondary,.bk-ui-widget-content .bk-ui-priority-secondary,.bk-ui-widget-header .bk-ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:400}.bk-ui-state-disabled,.bk-ui-widget-content .bk-ui-state-disabled,.bk-ui-widget-header .bk-ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.bk-ui-state-disabled .bk-ui-icon{filter:Alpha(Opacity=35)}.bk-ui-icon{width:16px;height:16px}.bk-ui-icon,.bk-ui-widget-content .bk-ui-icon{background-image:url(images/ui-icons_222222_256x240.png)}.bk-ui-widget-header .bk-ui-icon{background-image:url(images/ui-icons_222222_256x240.png)}.bk-ui-state-default .bk-ui-icon{background-image:url(images/ui-icons_888888_256x240.png)}.bk-ui-state-hover .bk-ui-icon,.bk-ui-state-focus .bk-ui-icon{background-image:url(images/ui-icons_454545_256x240.png)}.bk-ui-state-active .bk-ui-icon{background-image:url(images/ui-icons_454545_256x240.png)}.bk-ui-state-highlight .bk-ui-icon{background-image:url(images/ui-icons_2e83ff_256x240.png)}.bk-ui-state-error .bk-ui-icon,.bk-ui-state-error-text .bk-ui-icon{background-image:url(images/ui-icons_cd0a0a_256x240.png)}.bk-ui-icon-blank{background-position:16px 16px}.bk-ui-icon-carat-1-n{background-position:0 0}.bk-ui-icon-carat-1-ne{background-position:-16px 0}.bk-ui-icon-carat-1-e{background-position:-32px 0}.bk-ui-icon-carat-1-se{background-position:-48px 0}.bk-ui-icon-carat-1-s{background-position:-64px 0}.bk-ui-icon-carat-1-sw{background-position:-80px 0}.bk-ui-icon-carat-1-w{background-position:-96px 0}.bk-ui-icon-carat-1-nw{background-position:-112px 0}.bk-ui-icon-carat-2-n-s{background-position:-128px 0}.bk-ui-icon-carat-2-e-w{background-position:-144px 0}.bk-ui-icon-triangle-1-n{background-position:0 -16px}.bk-ui-icon-triangle-1-ne{background-position:-16px -16px}.bk-ui-icon-triangle-1-e{background-position:-32px -16px}.bk-ui-icon-triangle-1-se{background-position:-48px -16px}.bk-ui-icon-triangle-1-s{background-position:-64px -16px}.bk-ui-icon-triangle-1-sw{background-position:-80px -16px}.bk-ui-icon-triangle-1-w{background-position:-96px -16px}.bk-ui-icon-triangle-1-nw{background-position:-112px -16px}.bk-ui-icon-triangle-2-n-s{background-position:-128px -16px}.bk-ui-icon-triangle-2-e-w{background-position:-144px -16px}.bk-ui-icon-arrow-1-n{background-position:0 -32px}.bk-ui-icon-arrow-1-ne{background-position:-16px -32px}.bk-ui-icon-arrow-1-e{background-position:-32px -32px}.bk-ui-icon-arrow-1-se{background-position:-48px -32px}.bk-ui-icon-arrow-1-s{background-position:-64px -32px}.bk-ui-icon-arrow-1-sw{background-position:-80px -32px}.bk-ui-icon-arrow-1-w{background-position:-96px -32px}.bk-ui-icon-arrow-1-nw{background-position:-112px -32px}.bk-ui-icon-arrow-2-n-s{background-position:-128px -32px}.bk-ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.bk-ui-icon-arrow-2-e-w{background-position:-160px -32px}.bk-ui-icon-arrow-2-se-nw{background-position:-176px -32px}.bk-ui-icon-arrowstop-1-n{background-position:-192px -32px}.bk-ui-icon-arrowstop-1-e{background-position:-208px -32px}.bk-ui-icon-arrowstop-1-s{background-position:-224px -32px}.bk-ui-icon-arrowstop-1-w{background-position:-240px -32px}.bk-ui-icon-arrowthick-1-n{background-position:0 -48px}.bk-ui-icon-arrowthick-1-ne{background-position:-16px -48px}.bk-ui-icon-arrowthick-1-e{background-position:-32px -48px}.bk-ui-icon-arrowthick-1-se{background-position:-48px -48px}.bk-ui-icon-arrowthick-1-s{background-position:-64px -48px}.bk-ui-icon-arrowthick-1-sw{background-position:-80px -48px}.bk-ui-icon-arrowthick-1-w{background-position:-96px -48px}.bk-ui-icon-arrowthick-1-nw{background-position:-112px -48px}.bk-ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.bk-ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.bk-ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.bk-ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.bk-ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.bk-ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.bk-ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.bk-ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.bk-ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.bk-ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.bk-ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.bk-ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.bk-ui-icon-arrowreturn-1-w{background-position:-64px -64px}.bk-ui-icon-arrowreturn-1-n{background-position:-80px -64px}.bk-ui-icon-arrowreturn-1-e{background-position:-96px -64px}.bk-ui-icon-arrowreturn-1-s{background-position:-112px -64px}.bk-ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.bk-ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.bk-ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.bk-ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.bk-ui-icon-arrow-4{background-position:0 -80px}.bk-ui-icon-arrow-4-diag{background-position:-16px -80px}.bk-ui-icon-extlink{background-position:-32px -80px}.bk-ui-icon-newwin{background-position:-48px -80px}.bk-ui-icon-refresh{background-position:-64px -80px}.bk-ui-icon-shuffle{background-position:-80px -80px}.bk-ui-icon-transfer-e-w{background-position:-96px -80px}.bk-ui-icon-transferthick-e-w{background-position:-112px -80px}.bk-ui-icon-folder-collapsed{background-position:0 -96px}.bk-ui-icon-folder-open{background-position:-16px -96px}.bk-ui-icon-document{background-position:-32px -96px}.bk-ui-icon-document-b{background-position:-48px -96px}.bk-ui-icon-note{background-position:-64px -96px}.bk-ui-icon-mail-closed{background-position:-80px -96px}.bk-ui-icon-mail-open{background-position:-96px -96px}.bk-ui-icon-suitcase{background-position:-112px -96px}.bk-ui-icon-comment{background-position:-128px -96px}.bk-ui-icon-person{background-position:-144px -96px}.bk-ui-icon-print{background-position:-160px -96px}.bk-ui-icon-trash{background-position:-176px -96px}.bk-ui-icon-locked{background-position:-192px -96px}.bk-ui-icon-unlocked{background-position:-208px -96px}.bk-ui-icon-bookmark{background-position:-224px -96px}.bk-ui-icon-tag{background-position:-240px -96px}.bk-ui-icon-home{background-position:0 -112px}.bk-ui-icon-flag{background-position:-16px -112px}.bk-ui-icon-calendar{background-position:-32px -112px}.bk-ui-icon-cart{background-position:-48px -112px}.bk-ui-icon-pencil{background-position:-64px -112px}.bk-ui-icon-clock{background-position:-80px -112px}.bk-ui-icon-disk{background-position:-96px -112px}.bk-ui-icon-calculator{background-position:-112px -112px}.bk-ui-icon-zoomin{background-position:-128px -112px}.bk-ui-icon-zoomout{background-position:-144px -112px}.bk-ui-icon-search{background-position:-160px -112px}.bk-ui-icon-wrench{background-position:-176px -112px}.bk-ui-icon-gear{background-position:-192px -112px}.bk-ui-icon-heart{background-position:-208px -112px}.bk-ui-icon-star{background-position:-224px -112px}.bk-ui-icon-link{background-position:-240px -112px}.bk-ui-icon-cancel{background-position:0 -128px}.bk-ui-icon-plus{background-position:-16px -128px}.bk-ui-icon-plusthick{background-position:-32px -128px}.bk-ui-icon-minus{background-position:-48px -128px}.bk-ui-icon-minusthick{background-position:-64px -128px}.bk-ui-icon-close{background-position:-80px -128px}.bk-ui-icon-closethick{background-position:-96px -128px}.bk-ui-icon-key{background-position:-112px -128px}.bk-ui-icon-lightbulb{background-position:-128px -128px}.bk-ui-icon-scissors{background-position:-144px -128px}.bk-ui-icon-clipboard{background-position:-160px -128px}.bk-ui-icon-copy{background-position:-176px -128px}.bk-ui-icon-contact{background-position:-192px -128px}.bk-ui-icon-image{background-position:-208px -128px}.bk-ui-icon-video{background-position:-224px -128px}.bk-ui-icon-script{background-position:-240px -128px}.bk-ui-icon-alert{background-position:0 -144px}.bk-ui-icon-info{background-position:-16px -144px}.bk-ui-icon-notice{background-position:-32px -144px}.bk-ui-icon-help{background-position:-48px -144px}.bk-ui-icon-check{background-position:-64px -144px}.bk-ui-icon-bullet{background-position:-80px -144px}.bk-ui-icon-radio-on{background-position:-96px -144px}.bk-ui-icon-radio-off{background-position:-112px -144px}.bk-ui-icon-pin-w{background-position:-128px -144px}.bk-ui-icon-pin-s{background-position:-144px -144px}.bk-ui-icon-play{background-position:0 -160px}.bk-ui-icon-pause{background-position:-16px -160px}.bk-ui-icon-seek-next{background-position:-32px -160px}.bk-ui-icon-seek-prev{background-position:-48px -160px}.bk-ui-icon-seek-end{background-position:-64px -160px}.bk-ui-icon-seek-start{background-position:-80px -160px}.bk-ui-icon-seek-first{background-position:-80px -160px}.bk-ui-icon-stop{background-position:-96px -160px}.bk-ui-icon-eject{background-position:-112px -160px}.bk-ui-icon-volume-off{background-position:-128px -160px}.bk-ui-icon-volume-on{background-position:-144px -160px}.bk-ui-icon-power{background-position:0 -176px}.bk-ui-icon-signal-diag{background-position:-16px -176px}.bk-ui-icon-signal{background-position:-32px -176px}.bk-ui-icon-battery-0{background-position:-48px -176px}.bk-ui-icon-battery-1{background-position:-64px -176px}.bk-ui-icon-battery-2{background-position:-80px -176px}.bk-ui-icon-battery-3{background-position:-96px -176px}.bk-ui-icon-circle-plus{background-position:0 -192px}.bk-ui-icon-circle-minus{background-position:-16px -192px}.bk-ui-icon-circle-close{background-position:-32px -192px}.bk-ui-icon-circle-triangle-e{background-position:-48px -192px}.bk-ui-icon-circle-triangle-s{background-position:-64px -192px}.bk-ui-icon-circle-triangle-w{background-position:-80px -192px}.bk-ui-icon-circle-triangle-n{background-position:-96px -192px}.bk-ui-icon-circle-arrow-e{background-position:-112px -192px}.bk-ui-icon-circle-arrow-s{background-position:-128px -192px}.bk-ui-icon-circle-arrow-w{background-position:-144px -192px}.bk-ui-icon-circle-arrow-n{background-position:-160px -192px}.bk-ui-icon-circle-zoomin{background-position:-176px -192px}.bk-ui-icon-circle-zoomout{background-position:-192px -192px}.bk-ui-icon-circle-check{background-position:-208px -192px}.bk-ui-icon-circlesmall-plus{background-position:0 -208px}.bk-ui-icon-circlesmall-minus{background-position:-16px -208px}.bk-ui-icon-circlesmall-close{background-position:-32px -208px}.bk-ui-icon-squaresmall-plus{background-position:-48px -208px}.bk-ui-icon-squaresmall-minus{background-position:-64px -208px}.bk-ui-icon-squaresmall-close{background-position:-80px -208px}.bk-ui-icon-grip-dotted-vertical{background-position:0 -224px}.bk-ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.bk-ui-icon-grip-solid-vertical{background-position:-32px -224px}.bk-ui-icon-grip-solid-horizontal{background-position:-48px -224px}.bk-ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.bk-ui-icon-grip-diagonal-se{background-position:-80px -224px}.bk-ui-corner-all,.bk-ui-corner-top,.bk-ui-corner-left,.bk-ui-corner-tl{border-top-left-radius:4px}.bk-ui-corner-all,.bk-ui-corner-top,.bk-ui-corner-right,.bk-ui-corner-tr{border-top-right-radius:4px}.bk-ui-corner-all,.bk-ui-corner-bottom,.bk-ui-corner-left,.bk-ui-corner-bl{border-bottom-left-radius:4px}.bk-ui-corner-all,.bk-ui-corner-bottom,.bk-ui-corner-right,.bk-ui-corner-br{border-bottom-right-radius:4px}.bk-ui-widget-overlay{background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30)}.bk-ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30);border-radius:8px}.bk-slick-columnpicker{border:1px solid #718BB7;background:#f0f0f0;padding:6px;-moz-box-shadow:2px 2px 2px silver;-webkit-box-shadow:2px 2px 2px silver;box-shadow:2px 2px 2px silver;min-width:100px;cursor:default}.bk-slick-columnpicker li{list-style:none;margin:0;padding:0;background:0 0}.bk-slick-columnpicker input{margin:4px}.bk-slick-columnpicker li a{display:block;padding:4px;font-weight:700}.bk-slick-columnpicker li a:hover{background:#fff}.bk-slick-pager{width:100%;height:26px;border:1px solid gray;border-top:0;background:url(../images/header-columns-bg.gif) repeat-x center bottom;vertical-align:middle}.bk-slick-pager .bk-slick-pager-status{display:inline-block;padding:6px}.bk-slick-pager .bk-ui-icon-container{display:inline-block;margin:2px;border-color:gray}.bk-slick-pager .bk-slick-pager-nav{display:inline-block;float:left;padding:2px}.bk-slick-pager .bk-slick-pager-settings{display:block;float:right;padding:2px}.bk-slick-pager .bk-slick-pager-settings *{vertical-align:middle}.bk-slick-pager .bk-slick-pager-settings a{padding:2px;text-decoration:underline;cursor:pointer}.bk-slick-column-name,.bk-slick-sort-indicator{display:inline-block;float:left;margin-bottom:100px}.bk-slick-header-button{display:inline-block;float:right;vertical-align:top;margin:1px;margin-bottom:100px;height:15px;width:15px;background-repeat:no-repeat;background-position:center center;cursor:pointer}.bk-slick-header-button-hidden{width:0;-webkit-transition:.2s width;-ms-transition:.2s width;transition:.2s width}.bk-slick-header-column:hover>.bk-slick-header-button{width:15px}.bk-slick-header-menubutton{position:absolute;right:0;top:0;bottom:0;width:14px;background-repeat:no-repeat;background-position:left center;background-image:url(../images/down.gif);cursor:pointer;display:none;border-left:thin ridge silver}.bk-slick-header-column:hover>.bk-slick-header-menubutton,.bk-slick-header-column-active .bk-slick-header-menubutton{display:inline-block}.bk-slick-header-menu{position:absolute;display:inline-block;margin:0;padding:2px;cursor:default}.bk-slick-header-menuitem{list-style:none;margin:0;padding:0;cursor:pointer}.bk-slick-header-menuicon{display:inline-block;width:16px;height:16px;vertical-align:middle;margin-right:4px;background-repeat:no-repeat;background-position:center center}.bk-slick-header-menucontent{display:inline-block;vertical-align:middle}.bk-slick-header-menuitem-disabled{color:silver}.bk-slick-header-columns{background:url(images/header-columns-bg.gif) repeat-x center bottom;border-bottom:1px solid silver}.bk-slick-header-column{background:url(images/header-columns-bg.gif) repeat-x center bottom;border-right:1px solid silver}.bk-slick-header-column:hover,.bk-slick-header-column-active{background:#fff url(images/header-columns-over-bg.gif) repeat-x center bottom}.bk-slick-headerrow{background:#fafafa}.bk-slick-headerrow-column{background:#fafafa;border-bottom:0;height:100%}.bk-slick-row.bk-ui-state-active{background:#F5F7D7}.bk-slick-row{position:absolute;background:#fff;border:0;line-height:20px}.bk-slick-row.selected{z-index:10;background:#DFE8F6}.bk-slick-cell{padding-left:4px;padding-right:4px}.bk-slick-group{border-bottom:2px solid silver}.bk-slick-group-toggle{width:9px;height:9px;margin-right:5px}.bk-slick-group-toggle.expanded{background:url(images/collapse.gif) no-repeat center center}.bk-slick-group-toggle.collapsed{background:url(images/expand.gif) no-repeat center center}.bk-slick-group-totals{color:gray;background:#fff}.bk-slick-cell.selected{background-color:beige}.bk-slick-cell.active{border-color:gray;border-style:solid}.bk-slick-sortable-placeholder{background:silver!important}.bk-slick-row.odd{background:#fafafa}.bk-slick-row.bk-ui-state-active{background:#F5F7D7}.bk-slick-row.loading{opacity:.5;filter:alpha(opacity=50)}.bk-slick-cell.invalid{border-color:red;-moz-animation-duration:.2s;-webkit-animation-duration:.2s;-moz-animation-name:slickgrid-invalid-hilite;-webkit-animation-name:slickgrid-invalid-hilite}@-moz-keyframes slickgrid-invalid-hilite{from{box-shadow:0 0 6px red}to{box-shadow:none}}@-webkit-keyframes slickgrid-invalid-hilite{from{box-shadow:0 0 6px red}to{box-shadow:none}}.bk-slick-header.bk-ui-state-default,.bk-slick-headerrow.bk-ui-state-default{width:100%;overflow:hidden;border-left:0}.bk-slick-header-columns,.bk-slick-headerrow-columns{position:relative;white-space:nowrap;cursor:default;overflow:hidden}.bk-slick-header-column.bk-ui-state-default{position:relative;display:inline-block;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;height:16px;line-height:16px;margin:0;padding:4px;border-right:1px solid silver;border-left:0;border-top:0;border-bottom:0;float:left}.bk-slick-headerrow-column.bk-ui-state-default{padding:4px}.bk-slick-header-column-sorted{font-style:italic}.bk-slick-sort-indicator{display:inline-block;width:8px;height:5px;margin-left:4px;margin-top:6px;float:left}.bk-slick-sort-indicator-desc{background:url(images/sort-desc.gif)}.bk-slick-sort-indicator-asc{background:url(images/sort-asc.gif)}.bk-slick-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:col-resize;width:4px;right:0;top:0;height:100%}.bk-slick-sortable-placeholder{background:silver}.grid-canvas{position:relative;outline:0}.bk-slick-row.bk-ui-widget-content,.bk-slick-row.bk-ui-state-active{position:absolute;border:0;width:100%}.bk-slick-cell,.bk-slick-headerrow-column{position:absolute;border:1px solid transparent;border-right:1px dotted silver;border-bottom-color:silver;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;vertical-align:middle;z-index:1;padding:1px 2px 2px 1px;margin:0;white-space:nowrap;cursor:default}.bk-slick-group{}.bk-slick-group-toggle{display:inline-block}.bk-slick-cell.highlighted{background:#87cefa;background:rgba(0,0,255,.2);-webkit-transition:all .5s;-moz-transition:all .5s;-o-transition:all .5s;transition:all .5s}.bk-slick-cell.flashing{border:1px solid red!important}.bk-slick-cell.editable{z-index:11;overflow:visible;background:#fff;border-color:#000;border-style:solid}.bk-slick-cell:focus{outline:0}.bk-slick-reorder-proxy{display:inline-block;background:#00f;opacity:.15;filter:alpha(opacity=15);cursor:move}.bk-slick-reorder-guide{display:inline-block;height:2px;background:#00f;opacity:.7;filter:alpha(opacity=70)}.bk-slick-selection{z-index:10;position:absolute;border:2px dashed #000}.bk-ui-rangeSlider{height:22px}.bk-ui-rangeSlider .bk-ui-rangeSlider-innerBar{height:16px;margin:3px 6px;background:#DDD}.bk-ui-rangeSlider .bk-ui-rangeSlider-handle{width:6px;height:22px;background:#AAA;background:rgba(100,100,100,.3);cursor:col-resize}.bk-ui-rangeSlider .bk-ui-rangeSlider-bar{margin:1px 0;background:#CCC;background:rgba(100,100,150,.2);height:20px;cursor:move;cursor:grab;cursor:-moz-grab}.bk-ui-rangeSlider .bk-ui-rangeSlider-bar.bk-ui-draggable-dragging{cursor:-moz-grabbing;cursor:grabbing}.bk-ui-rangeSlider-arrow{height:16px;margin:2px 0;width:16px;background-repeat:no-repeat}.bk-ui-rangeSlider-arrow.bk-ui-rangeSlider-leftArrow{background-image:url(icons-classic/resultset_previous.png);background-position:center left}.bk-ui-rangeSlider-arrow.bk-ui-rangeSlider-rightArrow{background-image:url(icons-classic/resultset_next.png);background-position:center right}.bk-ui-rangeSlider-arrow-inner{display:none}.bk-ui-rangeSlider-container{height:22px}.bk-ui-rangeSlider-withArrows .bk-ui-rangeSlider-container{margin:0 11px}.bk-ui-rangeSlider-noArrow .bk-ui-rangeSlider-container{margin:0}.bk-ui-rangeSlider-label{margin:0 2px 2px;background-image:url(icons-classic/label.png);background-position:bottom center;background-repeat:no-repeat;white-space:nowrap;bottom:20px;padding:3px 6px 7px;cursor:col-resize}.bk-ui-rangeSlider-label-inner{display:none}input.bk-ui-editRangeSlider-inputValue{width:3em;vertical-align:middle;text-align:center}.bk-ui-dialog-titlebar{height:16px}.bk-ui-rangeSlider-arrow.bk-ui-rangeSlider-leftArrow{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAPpJREFUeNrE0zFqhVAUBFCL7ElEEBQsXmErWtnZWImF2Gih6FNEfKCoBGMMUQhEULKjrCF1JjsI+j8kxbSnuDOXA8DdE+5PgLIsM0rp100ApTRL0/Q7DENcBpIkqfq+x3Ec8DzvGhBF0VPTNNj3Hdu2wbbt80AQBK+MMez7jnmesa4rTNM8B/i+/1mWJbZtwziOYIxhmiZomnYOcBznI45jLMuCtm2R5zm6rgMh5BxgGMaDruvvrutiGAZkWYa6rqGq6rUjEkLebNtGVVUoigKyLF+vUVGUF8uykCQJJEnCTUMSRfHZMAyIooibp8zz/KMgCPi/Z/otPwMAtKTYr7dLeeEAAAAASUVORK5CYII=\")}.bk-ui-rangeSlider-arrow.bk-ui-rangeSlider-rightArrow{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAPlJREFUeNrE0ztqhlAUBOC/yLoUfKBga2WpKBYKgp21+ncRuYrPK0FtxBRCQCwsXEvWkDqTLagJpJj2K+aceQB4/CaPPwcopV9t2z5vA13XoWmab0LI8xZQliWO48AwDAjD8PUykCQJ9n3Htm3Isgye53WXgDiOsa4r5nnGsiyIogiapo2ngSAIsCwL2rYFpRTjOML3fSiK8nkKcF0X0zSBEII8z0EpheM4kGX54xSg6zr6vkeapqiqCrZtQxTFd5ZlX04BqqqirmsURQHLsiAIwnSpREVRQAiBaZrgOK6/fEZJkmAYBliWfbv1SDzPg2GY5v/GdDU/AwDyYNzeUSg0WgAAAABJRU5ErkJggg==\")}.bk-ui-rangeSlider-label{background-image:url(\"data:image/png;base64,[encoded data, 12460 characters]\")}.bk-slick-sort-indicator-desc{background-image:url(\"data:image/gif;base64,R0lGODlhDQAFAIcAAGGQzUD/QOPu+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAAEALAAAAAANAAUAAAgeAAUAGEgQgIAACBEKLHgwYcKFBh1KFNhQosOKEgMCADs=\")}.bk-slick-sort-indicator-asc{background-image:url(\"data:image/gif;base64,R0lGODlhDQAFAIcAAGGQzUD/QOPu+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAAEALAAAAAANAAUAAAgbAAMIDABgoEGDABIeRJhQ4cKGEA8KmEiRosGAADs=\")}.bk-slick-header-columns{background-image:url(\"data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=\")}.bk-slick-header-column{background-image:url(\"data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=\")}.bk-slick-header-column:hover,.bk-slick-header-column-active{background-image:url(\"data:image/gif;base64,R0lGODlhAgAWAIcAAKrM9tno++vz/QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABYAAAgUAAUIHEiwoIAACBMqXMhwIQAAAQEAOw==\")}.bk-slick-group-toggle.expanded{background-image:url(\"data:image/gif;base64,R0lGODlhCQAJAPcAAAFGeoCAgNXz/+v5/+v6/+z5/+36//L7//X8//j9/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAACQAJAAAIMwADCBxIUIDBgwIEChgwwECBAgQUFjBAkaJCABgxGlB4AGHCAAIQiBypEEECkScJqgwQEAA7\")}.bk-slick-group-toggle.collapsed{background-image:url(\"data:image/gif;base64,R0lGODlhCQAJAPcAAAFGeoCAgNXz/+v5/+v6/+z5/+36//L7//X8//j9/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAACQAJAAAIOAADCBxIUIDBgwIEChgwAECBAgQUFjAAQIABAwoBaNSIMYCAAwIqGlSIAEHFkiQTIBCgkqDLAAEBADs=\")}.bk-slick-header-menubutton{background-image:url(\"data:image/gif;base64,R0lGODlhDgAOAIABADtKYwAAACH5BAEAAAEALAAAAAAOAA4AAAISjI+py+0PHZgUsGobhTn6DxoFADs=\")}.bk-slick-pager{background-image:url(\"data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=\")}.bk-ui-widget-content{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAABkCAYAAAD0ZHJ6AAAAeUlEQVRoge3OMQHAIBAAsVL/nh8JDDfAkCjImpn5HvbfDpwIVoKVYCVYCVaClWAlWAlWgpVgJVgJVoKVYCVYCVaClWAlWAlWgpVgJVgJVoKVYCVYCVaClWAlWAlWgpVgJVgJVoKVYCVYCVaClWAlWAlWgpVgJVgJVhtqiwTEKTLXTgAAAABJRU5ErkJggg==\")}.bk-ui-widget-header{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABkCAYAAABHLFpgAAAALElEQVQYlWN49OjRfyYGBgaGIUT8//8fSqBx0Yh///4RL8vAwAAVQ2MNOwIAl6g6KkOJwk8AAAAASUVORK5CYII=\")}.bk-ui-state-default,.bk-ui-widget-content .bk-ui-state-default,.bk-ui-widget-header .bk-ui-state-default{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAANUlEQVQ4je3LMQoAIBADwb38/6t5wFXaWAiCtUiaYZvF9hBACOFbuntVVe11B0CSjjeE8BwThQIJ8dhEl0YAAAAASUVORK5CYII=\")}.bk-ui-state-hover,.bk-ui-widget-content .bk-ui-state-hover,.bk-ui-widget-header .bk-ui-state-hover,.bk-ui-state-focus,.bk-ui-widget-content .bk-ui-state-focus,.bk-ui-widget-header .bk-ui-state-focus{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAANklEQVQ4jWN48uTJfyYGBgaGUWKUGCWGLfHt2zcoi5GREYNgYmJCZiG42IiB98woMUqMEtgIAMdjCdyg+eEBAAAAAElFTkSuQmCC\")}.bk-ui-state-active,.bk-ui-widget-content .bk-ui-state-active,.bk-ui-widget-header .bk-ui-state-active{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAAMElEQVQ4je3LIQ4AIBTD0O3f/8wrFgmKhMy8pKJKwkhSKeVbbGuAPU9f4PIopTxgAeS0DRtI4yK0AAAAAElFTkSuQmCC\")}.bk-ui-state-highlight,.bk-ui-widget-content .bk-ui-state-highlight,.bk-ui-widget-header .bk-ui-state-highlight{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAAP0lEQVQ4je3PMQrAMABC0a/3v2zX0mCXNkOgc6C4PARd5DqPGKCU8luS8SbAQhiCQRgJE56kZTfbbP9RSvnkBsWcEAZRWcgqAAAAAElFTkSuQmCC\")}.bk-ui-state-error,.bk-ui-widget-content .bk-ui-state-error,.bk-ui-widget-header .bk-ui-state-error{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAAPklEQVQ4je3PMQqAMABD0Z/c/7aCIAXjJIhD10LJ8vgZw30eMUApZV/GhZNgSTjoLYElY/hNMJ/S6gullCkPiCIPCr4NiEwAAAAASUVORK5CYII=\")}.bk-ui-icon,.bk-ui-widget-content .bk-ui-icon,.bk-ui-widget-header .bk-ui-icon{background-image:url(\"data:image/png;base64,[encoded data, 5828 characters]\")}.bk-ui-state-default .bk-ui-icon{background-image:url(\"data:image/png;base64,[encoded data, 5828 characters]\")}.bk-ui-state-hover .bk-ui-icon,.bk-ui-state-focus .bk-ui-icon,.bk-ui-state-active .bk-ui-icon{background-image:url(\"data:image/png;base64,[encoded data, 5828 characters]\")}.bk-ui-state-highlight .bk-ui-icon{background-image:url(\"data:image/png;base64,[encoded data, 5828 characters]\")}.bk-ui-state-error .bk-ui-icon,.bk-ui-state-error-text .bk-ui-icon{background-image:url(\"data:image/png;base64,[encoded data, 5828 characters]\")}.bk-ui-widget-overlay,.bk-ui-widget-shadow{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAABkCAYAAAD0ZHJ6AAAAe0lEQVRoge3OMQHAIBAAMcC/kjdZJHTI0A4XBdkz86wfO18H3hRUBVVBVVAVVAVVQVVQFVQFVUFVUBVUBVVBVVAVVAVVQVVQFVQFVUFVUBVUBVVBVVAVVAVVQVVQFVQFVUFVUBVUBVVBVVAVVAVVQVVQFVQFVUFVUBVUF8O8A8WdY6opAAAAAElFTkSuQmCC\")}.tableelem{padding:2px 10px;border:2px #fff;background-color:#E0E0E0}.tableheader{background-color:silver}#notebook .bk-plot-wrapper table{border:0!important}#notebook .bk-plot-wrapper table tr{border:0!important}#notebook .bk-plot-wrapper table tr td{border:0!important;padding:0!important;margin:0!important}#notebook .bk-plot-wrapper table tr td.bk-plot-above{border-bottom:2px solid #efefef!important}#notebook .bk-plot-wrapper table tr td.bk-plot-below{border-top:2px solid #efefef!important}#notebook .bk-plot-wrapper table tr td.bk-plot-left{border-right:2px solid #efefef!important}#notebook .bk-plot-wrapper table tr td.bk-plot-right{border-left:2px solid #efefef!important}.bk-table table tr td{padding:2px}.bk-table form table tr td{padding:2px}.bk-table form table tr td input{padding:0}.jsp:after,.bk-plot:after,.bk-canvas-wrapper:after,.bk-sidebar:after{content:\" \";height:0;display:block;clear:both}.bk-canvas-wrapper .bk-resize-popup{position:absolute;right:40px;bottom:40px;width:40px;height:40px;padding:10px 0 0 10px;overflow:hidden;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAEnSURBVEiJzZXBioQwDIb/XQuF6U3wCRSEvv8zeFOoB2++QD14aqHSOntYtthxdHesDptTk4Z+hKR/PqqquuNi+7wa8DYIWTplWSJN0yDBGAMhBJxzhyFBJY8AACCErGKv2u4L1lp0XRdVBfBLTwghuN1uUYBNiDHGn4uiQJZl50GmaYJSCm3bou/700BBT4QQAL57IaUEAOR57kEAMAxDHMRaG1wuQc45aK1fBqwgz+wHpJSCUuoayBJ01P6/djHG/jR1hzWDMQbOuZedvak7XAljzAMe/xGlFEmSeP9wJVv/SGsNzjmcc2iaJg6yBbLWghASqHf0dEkpAwl6thpOGWGl1O46iIZQSsE5Dxp9OsQ5h3meV/FxHP05erdaa1HX9W7OW2TlC31ceRWbb5+AAAAAAElFTkSuQmCC);background-position:bottom right;background-repeat:no-repeat;cursor:se-resize}.bk-canvas-wrapper:hover .bk-resize-popup{display:block}.bk-sidebar.bk-logo{margin:5px auto}.bk-logo{display:block;background-repeat:no-repeat}.bk-logo-notebook{margin-right:10px}.bk-logo-small{width:26px;height:26px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAVkSURBVEiJlZZ9jFTVFcB/5743O9/srsuy7iLLhw3WooUFtUpbkab+UfsHxtAgtKVFq4QYRVJrJDTEpBsT0mojjSU2JNAGUhRb0CZNmhjb0jbGEldWKoXWCC4bhl32c3Z25s2bd+/pH+PgsFIWbvKSd2/Oub/zcc+5V7iWsW9VO0Z+DnwN2MG6w89Pp6KqAMhVQ168exnXNe3EN8up6jrgJaLEU6w/EE4H8v+fwBu9zDGO+Kws0QOHFnX1W/MynrQiAlVlAzxObHIu7ya/w7LSxJXs/IxHb/SyAtgGzAdiKV/sliNf6DheviFBewqsfipsLNiYY2BxD+XGfq6/bpJM5mOce401q9+r9+gS0B/e50ZV/gLcUFtL+UxseLOr72xD+yJaEhC5TyCVACe/o/8r8/BnfJnmLKRTNW8vABtZs/pQDWTqQZ5hXT0EwIMTuVKyl7hAzRkTfkQ4/F1OfyNPpm05HbMgk65BAFqBZ9j/Wuyi8/Wbjk0wZ2owY3Ayssnz+F41/bi3mJy5hpEnVjK7cRNtjYJnwLmpWWjHY8FlQScGieeL4Netpg3HiKcdngCum9h/v0nxB5ZW83Wy6XNE7nKQqo1CvDa55NR1RKazf9SRTVA1UiGwXh/JeBkJv8/aw78G4MCHJ2mZfQejhRSqs4xGHU7sHMS7FTE3o7IYISBVnKztLQDh3ozxlF2B0Q27MqXjDS1u6cKZUHFgHXfev4R3LmdybSzcc/aRsFjpCibLphJFzdYEn7fGztVQn5rYdufueo+etcKjSWfYNJY6tT1WONqcYOPMDHmn9F8JUo2vzcVT3q9izUlc5LBhEhc6wnLlp+07PziVe2LR3yTcm/k28BvAKNCgUioUzIYdt4zf1ZXlwY4WbrlrPkPTsW462LdF4AXxLgYKZxVn7Uci5j4J92ZOADfXK8WcnDmPPPCLpfnUHWWO3/8l8tN6BSx4/dzBWKmyunbERARFQTlqgLcRLinditF5s3A7nlvCP64Gsn357sTOxu8tn/vBu88GTeljuGo9qWqt9m43zrmtWO1BAU8++cD63BvuzTx3NZ7MT88w4wu++Mu7n//jtrwf/jjMpvPitF7kJybxUHHQDdmH3GAlpyMhOhFByUFFQdka7smunw50buhsKuE3ZOjoXLv+vh+t88fGXwnTSSfVTvHyyW91bjcAiaeDXntBHrfn/MGon3/b85Xfu+Hybkrll4Ry+3QgD1oiG83LJLKkZneu++rWF29LDI8FlVTiILAZ6jIztOK2Jv/60b8qdOKkF8sJjeS4+HpGGlwO1QGvKV50g0SNh05OAow0b1oVL/Yv3HHryqNJJ38WBARyA2cYakn37H+v+x4VJqCuM/gdIykgIdCE0RX4rJB4ndm+l4tGyyVtzG0E3hxpenSLavRCZMdfDbxYLukiFMWIobG5jfB83wWMTDD14lMIBexn4iKAMWhQabdu7BXeXjk8MqPzsIisUlcm1IFS0tklNXHnHMlYgta2zoCBOjtrP4HqcFKkn/qaMtXbNJooqC2P7/f+tOFVk/T30FBcDHGclgk0avIcbVPtyzSk++rnF/t0+4HTqmg3fNpyXBBRGS5gR/WY/86DkUmbfVWIIGIgmqRgEjd56O1T7tBh59y++oVLunfzb08fGVu74F6MrNVydKMdK2S0lG7z/7NymUSpLvyA2oYKaCVP4MU/h8pZoABEQA742TM9T/5zagauOIpoLMg+tgsvfLgmLmJAoTD5fmFYhx57femTfzdRxfjYytaeH35cr3/Nz62Rpke6gaeBGAiq0b8KwYeb55aPvHUlvWt/11VhDwPdQK910ebW/J5T0+nUQP8DlJ5h77VoIjIAAAAASUVORK5CYII=)}.bk-logo-medium{width:35px;height:35px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAYAAAAe2bNZAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK6wAACusBgosNWgAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAf9SURBVFiFvZh7cFTVHcc/59y7793sJiFAwkvAYDRqFWwdraLVlj61diRYsDjqCFbFKrYo0CltlSq1tLaC2GprGIriGwqjFu10OlrGv8RiK/IICYECSWBDkt3s695zTv9IAtlHeOn0O7Mzu797z+/3Ob/z+p0VfBq9doNFljuABwAXw2PcvGHt6bgwxhz7Ls4YZNVXxxANLENwE2D1W9PAGmAhszZ0/X9gll5yCbHoOirLzmaQs0F6F8QMZq1v/8xgNm7DYwwjgXJLYL4witQ16+sv/U9HdDmV4WrKw6B06cZC/RMrM4MZ7xz61DAbtzEXmAvUAX4pMOVecg9/MFFu3j3Gz7gQBLygS2RGumBkL0cubiFRsR3LzVBV1UMk3IrW73PT9C2lYOwhQB4ClhX1AuKpjLcV27oEjyUpNUJCg1CvcejykWTCXyQgzic2HIIBjg3pS6+uRLKAhumZvD4U+tq0jTrgkVKQQtLekfTtxIPAkhTNF6G7kZm7aPp6M9myKVQEoaYaIhEQYvD781DML/RfBGNZXAl4irJiwBa07e/y7cQnBaJghIX6ENl2GR/fGCBoz6cm5qeyEqQA5ZYA5x5eeiV0Qph4gjFAUSwAr6QllQgcxS/Jm25Cr2Tmpsk03XI9NfI31FTZBEOgVOk51adqDBNPCNPSRlkiDXbBEwOU2WxH+I7itQZ62g56OjM33suq1YsZHVtGZSUI2QdyYgkgOthQNIF7BIGDnRAJgJSgj69cUx1gB8PkOGwL4E1gPrM27gIg7NlGKLQApc7BmEnAxP5g/rw4YqBrCDB5xHkw5rdR/1qTrN/hKNo6YUwVDNpFsnjYS8RbidBPcPXFP6R6yfExuOXmN4A3jv1+8ZUwgY9D2OWjUZE6lO88jDwHI8ZixGiMKSeYTBamCoDk6kDAb6y1OcH1a6KpD/fZesoFw5FlIXAVCIiH4PxrV+p2npVDToTBmtjY8t1swh2V61E9KqWiyuPEjM8dbfxuvfa49Zayf9R136Wr8mBSf/T7bNteA8zwaGEUbFpckWwq95n59dUIywKl2fbOIS5e8bWSu0tJ1a5redAYfqkdjesodFajcgaVNWhXo1C9SrkN3Usmv3UMJrc6/DDwkwEntkEJLe67tSLhvyzK8rHDQWleve5CGk4VZEB1r+5bg2E2si+Y0QatDK6jUVkX5eg2YYlp++ZM+rfMNYamAj8Y7MAVWFqaR1f/t2xzU4IHjybBtthzuiAASqv7jTF7jOqDMAakFHgDNsFyP+FhwZHBmH9F7cutIYkQCylYYv1AZSqsn1/+bX51OMMjPSl2nAnM7hnjOx2v53YgNWAzHM9Q/9l0lQWPSCBSyokAtOBC1Rj+w/1Xs+STDp4/E5g7Rs2zm2+oeVd7PUuHKDf6A4r5EsPT5K3gfCnBXNUYnvGzb+KcCczYYWOnLpy4eOXuG2oec0PBN8XQQAnpvS35AvAykr56rWhPBiV4MvtceGLxk5Mr6A1O8IfK7rl7xJ0r9kyumuP4fa0lMqTBLJIAJqEf1J3qE92lMBndlyfRD2YBghHC4hlny7ASqCeWo5zaoDdIWfnIefNGTb9fC73QDfhyBUCNOxrGPSUBfPem9us253YTV+3mcBbdkUYfzmHiLqZbYdIGHHON2ZlemXouaJUOO6TqtdHEQuXYY8Yt+EbDgmlS6RdzkaDTv2P9A3gICiq93sWhb5mc5wVhuU3Y7m5hOc3So7qFT3SLgOXHb/cyOfMn7xROegoC/PTcn3v8gbKPgDopJFk3R/uBPWQiwQ+2/GJevRMObLUzqe/saJjQUQTTftEVMW9tWxPgAocwcj9abNcZe7s+6t2R2xXZG7zyYLp8Q1PiRBBHym5bYuXi8Qt+/LvGu9f/5YDAxABsaRNPH6Xr4D4Sk87a897SOy9v/fKwjoF2eQel95yDESGEF6gEMwKhLwKus3wOVjTtes7qzgLdXTMnNCNoEpbcrtNuq6N7Xh/+eqcbj94xQkp7mdKpW5XbtbR8Z26kgMCAf2UU5YEovRUVRHbu2b3vK1UdDFkDCyMRQxbpdv8nhKAGIa7QaQedzT07fFPny53R738JoVYBdVrnsNx9XZ9v33UeGO+AA2MMUkgqQ5UcdDLZSFeVgONnXeHqSAC5Ew1BXwko0D1Zct3dT1duOjS3MzZnEUJtBuoQAq3SGOLR4ekjn9NC5nVOaYXf9lETrUkmOJy3pOz8OKIb2A1cWhJCCEzOxU2mUPror+2/L3yyM3pkM7jTjr1nBOgkGeyQ7erxpdJsMAS9wb2F9rzMxNY1K2PMU0WtZV82VU8Wp6vbKJVo9Lx/+4cydORdxCCQ/kDGTZCWsRpLu7VD7bfKqL8V2orKTp/PtzaXy42jr6TwAuisi+7JolUG4wY+8vyrISCMtRrLKWpvjAOqx/QGhp0rjRo5xD3x98CWQuOQN8qumRMmI7jKZPUEpzNVZsj4Zbaq1to5tZZsKIydLWojhIXrJnES79EaOzv3du2NytKuxzJKAA6wF8xqEE8s2jo/1wd/khslQGxd81Zg62Bbp31XBH+iETt7Y3ELA0iU6iGDlQ5mexe0VEx4a3x8V1AaYwFJgTiwaOsDmeK2J8nMUOqsnB1A+dcA04ucCYt0urkjmflk9iT2v30q/gZn5rQPvor4n9Ou634PeBzoznes/iot/7WnClKoM/+zCIjH5kwT8ChQjTHPIPTjFV3PpU/Hx+DM/A9U3IXI4SPCYAAAAABJRU5ErkJggg==)}.bk-logo-large{width:75px;height:75px;background-image:url(data:image/png;base64,[encoded data, 6760 characters])}.bk-sidebar{box-sizing:border-box}.bk-button-bar .bk-bs-dropdown{padding:10px 10px 0 5px}.bk-button-bar .bk-bs-dropdown a{color:transparent;font-size:0;display:block;float:left;width:16px;height:16px;margin:10px 5px 5px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAHeSURBVDiNpZPPS1RRFMc/5z6FLLKlQQ1IQi0y0L/AsF+00rC6M3eQN61buDDatWoXuRBahs5zeM/uiCi0aTKE2ktSrttY0NoIFzpzWnTHxscQRF/4Ls453++5nHM5Qhcspv62GByqlwAjIp+0xXKlbDfyWukMqqkfAeZEGAe+Av2h9AM4p7CJMFsp2e22xxyZMz8hwpYIg8Dd2NkCsAasxc6eB0oCg6JsVTM/caxBkvphgXWgoeho7OxqqPcGEjv7StFRoCGwXk39MICpZT4CXgC7ik5VXHGvY6pTgQBUXHFP0SlUd0WYr2UrPaYJ1xHGgJmKK+7ndjQbSEeTfUQeAeNNWmOSpD5FuBY7eza/4b8hyfx3VBs9CBeBviTzS0AU6k9iZ7/kDBeApyFsAicQudz+Bf2X1zvxvyO8MSosAQNJ5u90EQ0lmR/qkr8PDKhIzUTwTuGDwvzLlXpfTjsXeISFev0k8FxhM8K8N9PONkV5KFDoPdDVBe/7O/Q/A3+b/fKZ6FBfAwVRZqbdvUMDEJftDqKTwK2oyXY19TZ4DgKppt6apvkIXEV0Mi7bHcgdU5L6ERWeCdwAvgGnQ6l9TBuiPI7Lf47pWIM2FjN/00AJuBJSn1uw/MDZt3ntLzC5tBIPCBGPAAAAAElFTkSuQmCC)}.bk-button-bar .bk-button-bar-list{margin:0;padding:0}.bk-button-bar-list>li{list-style-type:none;float:left;padding:0;margin:0;position:relative;display:block;overflow:visible;background-color:transparent}.bk-button-bar-list>li:last-child:after{content:\"|\";font-size:90%;color:#d3d3d3;display:inline-block;float:left;height:36px;line-height:36px;padding:0 3px}.bk-button-bar-list.bk-bs-dropdown:after{content:\"|\";font-size:90%;color:#d3d3d3;display:inline-block;float:left;height:36px;line-height:36px;padding:0 3px}.bk-button-bar-list[type=help] li:after{content:\"\"!important;display:none}.bk-button-bar-list>a:after{content:\"|\";font-size:90%;color:#d3d3d3;display:inline-block;float:left;height:36px;line-height:36px;padding:0 3px}.bk-button-bar .bk-button-bar-list .bk-bs-dropdown-menu{padding:10px 8px}.bk-button-bar .bk-button-bar-list .bk-bs-dropdown-menu li{float:none;clear:both;font-family:Helvetica,sans-serif;line-height:1.5em}.bk-button-bar .bk-button-bar-list .bk-bs-dropdown-menu li input{margin-right:8px}.bk-button-bar-list .bk-toolbar-button{width:30px;height:36px;padding:5px;border:0;border-radius:0!important;-moz-border-radius:0!important;-webkit-border-radius:0!important;background:transparent!important}.bk-button-bar-list .bk-toolbar-button .bk-btn-icon{height:16px;margin:0!important;border:0!important;background:transparent!important;display:block;position:relative;z-index:10}.bk-button-bar-list .bk-toolbar-button span.tip{display:none}.bk-button-bar-list .bk-toolbar-button span.tip:before{display:none;content:\" \";position:relative;width:100%;background-position:top left;background-repeat:no-repeat}.bk-button-bar-list li::hover .bk-toolbar-button{cursor:pointer;background:transparent!important}li:hover .bk-toolbar-button span.tip:before{display:inline-block}li:hover .bk-toolbar-button span.tip{z-index:100;font-size:100%;color:#fff;font-family:'Open Sans',sans-serif;white-space:nowrap;background-color:#818789;border-radius:3px!important;-moz-border-radius:3px!important;-webkit-border-radius:3px!important;display:inline-block;position:relative;top:25px;padding:3px 5px;transition:all .6s ease;-webkit-transition:all .6s ease;-moz-transition:all .6s ease;-o-transition:all .6s ease}li:hover .bk-toolbar-button span.tip>*{display:block;text-align:left}.bk-button-bar-list .bk-toolbar-button.active{background:#fff;-box-shadow:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;outline:0!important;border-bottom:2px solid #26aae1}.bk-plot-above.bk-toolbar-active{border-bottom:2px solid #e5e5e5}.bk-plot-below.bk-toolbar-active{border-top:2px solid #e5e5e5;padding-bottom:45px}.bk-plot-above.bk-toolbar-active,.bk-plot-below.bk-toolbar-active{height:36px}.bk-plot-above.bk-toolbar-active .bk-logo,.bk-plot-below.bk-toolbar-active .bk-logo{float:left}.bk-plot-above.bk-toolbar-active .bk-button-bar,.bk-plot-below.bk-toolbar-active .bk-button-bar{float:right;position:relative;top:5px}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-button-bar-list,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list{float:left}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button{float:left}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help{float:right}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help span.tip,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help span.tip{width:200px;white-space:normal}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help span.tip>*,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help span.tip>*{margin-left:0;margin-right:0}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button span.tip,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button span.tip{top:41px;left:0;z-index:100;position:absolute;width:auto;padding:0 10px 5px}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button span.tip:before,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button span.tip:before{top:-7px;left:-5px;width:100%;height:9px;padding:0 10px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAJCAYAAAAGuM1UAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo3NzIwRUFGMDYyMjE2ODExOTdBNUNBNjVEQTY5OTRDRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpDQjA4MDBGRDQ3NjExMUU0QjI1NEVEQTlCODRBRDIyNiIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpDQjA4MDBGQzQ3NjExMUU0QjI1NEVEQTlCODRBRDIyNiIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1LjEgTWFjaW50b3NoIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6N0Y0M0E0Nzk5NDIyNjgxMTk3QTVDQTY1REE2OTk0Q0UiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzcyMEVBRjA2MjIxNjgxMTk3QTVDQTY1REE2OTk0Q0UiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4te1g5AAAAk0lEQVR42mL8//8/AymApamjC5dcJRBPBOJvyIJM2FQCbS0GUm1APAddDkPDv3//3BgZGTuh3Eig5lKcGv78+aPKxMS0HMhkhokBNbcDDfHApoGHmZl5HZAWQrOUGWQIyDBkDYxAqxcBTdPBEQACQMM2AGk+Jqgn64CKA/EFJ1BeC2QoE9B9AUBOPTFxAFTnDxBgAI5eL2ABBdyaAAAAAElFTkSuQmCC);display:block!important}.bk-plot-left.bk-toolbar-active{border-right:2px solid #e5e5e5}.bk-plot-right.bk-toolbar-active{border-left:2px solid #e5e5e5}.bk-plot-left,.bk-plot-right{display:block;margin:45px 0 0}.bk-plot-left .bk-logo,.bk-plot-right .bk-logo{margin-bottom:20px}.bk-plot-left .bk-button-bar,.bk-plot-right .bk-button-bar{position:relative;left:3px}.bk-plot-left .bk-button-bar:before,.bk-plot-right .bk-button-bar:before,.bk-plot-left .bk-button-bar:after,.bk-plot-right .bk-button-bar:after{content:\" \";display:block;height:0;clear:both}.bk-plot-left .bk-button-bar .bk-button-bar-list li,.bk-plot-right .bk-button-bar .bk-button-bar-list li{clear:both}.bk-plot-left .bk-button-bar .bk-button-bar-list li:last-child:after,.bk-plot-right .bk-button-bar .bk-button-bar-list li:last-child:after{content:\"-\";float:none;clear:both;display:block;width:30px;height:8px;line-height:8px;padding:3px 0;text-align:center}.bk-plot-left .bk-button-bar .bk-button-bar-list li .bk-toolbar-button.active,.bk-plot-right .bk-button-bar .bk-button-bar-list li .bk-toolbar-button.active{border-bottom:0;border-right:2px solid #26aae1}.bk-plot-left .bk-button-bar .bk-button-bar-list li .bk-toolbar-button span.tip,.bk-plot-right .bk-button-bar .bk-button-bar-list li .bk-toolbar-button span.tip{top:4px;left:40px;padding:5px 10px}.bk-plot-left .bk-button-bar .bk-button-bar-list li .bk-toolbar-button span.tip:before,.bk-plot-right .bk-button-bar .bk-button-bar-list li .bk-toolbar-button span.tip:before{top:2px;left:-19px;width:9px;height:15px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAPCAMAAAABFhU/AAAAA3NCSVQICAjb4U/gAAAAY1BMVEX////////8/Pz5+fn39/f19fX09PTv8fHv7+/t7e7s7Ozp6enn6Onm5ubj4+Ph4eHf39/X2drW1tfMzMzAw8S+wMGusbKorK6orK2nq6ufo6WcoaGYnZ+RlpiJj5GGjI6Bh4n1ho2QAAAAIXRSTlMA//////////////////////////////////////////9G9E6kAAAACXBIWXMAAAsSAAALEgHS3X78AAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABR0RVh0Q3JlYXRpb24gVGltZQA5LzUvMTTY+fXxAAAAUklEQVQImTXN2xZAIABE0VQUIfdLwvz/V1rL1DztpzOi4EoIQoekNoIaH1AL8EvvoExEUkBWfWZZvyWVzq/vL6kbP9/sKdtPF8vKdMPBN1m5AR+0BAnD6uP50QAAAABJRU5ErkJggg==)}.bk-toolbar-button.help>span.tip{right:0;text-align:left}.bk-button-bar>.bk-toolbar-button.active{border-bottom:2px solid #26aae1}.bk-crossfilter-selector{list-style-type:none;-webkit-padding-start:0}.bk-crossfilter-selector li{display:inline;margin-bottom:10px;padding-left:10px;padding-right:10px}.bk-crossfilter-row{margin-left:-15px;margin-right:-15px;height:100%;width:100%;margin:0}.bk-crossfilter-panel-heading{padding-top:5px;padding-bottom:5px}.bk-crossfilter-panel-continuous-heading{background-color:#396285!important}.bk-crossfilter-panel-factor-heading{background-color:#CE603D!important}.aligntable{vertical-align:top}.bk-crossfilter-container{height:100%;width:100%;whitespace:nowrap;display:inline-block;overflow:auto}.bk-crossfilter-configuration{overflow:auto;float:left;padding-right:0!important;padding-left:15px!important;margin-left:0!important;margin-right:0!important}.bk-crossfilter-configuration .bk-bs-panel-body{padding:0!important}.bk-column-list{overflow-y:auto;height:100%;padding-right:0;padding-left:0}.bk-table{width:100%;margin-bottom:20px;border-top:0;margin-bottom:0;text-align:left}.bk-table>thead>tr>th,.bk-table>tbody>tr>th,.bk-table>tfoot>tr>th,.bk-table>thead>tr>td,.bk-table>tbody>tr>td,.bk-table>tfoot>tr>td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.bk-table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.bk-table>caption+thead>tr:first-child>th,.bk-table>colgroup+thead>tr:first-child>th,.bk-table>thead:first-child>tr:first-child>th,.bk-table>caption+thead>tr:first-child>td,.bk-table>colgroup+thead>tr:first-child>td,.bk-table>thead:first-child>tr:first-child>td{border-top:0}.bk-table>tbody+tbody{border-top:2px solid #ddd}.bk-table .bk-bs-table{background-color:#fff}.bk-table>thead>tr>th,.bk-table>tbody>tr>th,.bk-table>tfoot>tr>th,.bk-table>thead>tr>td,.bk-table>tbody>tr>td,.bk-table>tfoot>tr>td{padding:5px}.bk-table tr:nth-child(odd){background:#efefef}.bk-table tr td{padding:1px 5px!important;border:0!important}.bk-filters-facets{height:100%;padding-left:0;padding-right:0}.bk-filters{height:45%;overflow:hidden;position:relative}.bk-filters-selections{position:absolute;top:30px;left:0;right:0;bottom:0;overflow-y:auto;padding-top:0;padding-bottom:0;padding:5px!important}.bk-facet{height:14%;position:relative}.bk-facets-selections{position:absolute;top:30px;left:0;right:0;bottom:0}.bk-plot-selection{padding-right:0;padding-left:0}.bk-crossfilter-plot{float:left;display:inline-block}.bk-facet-label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em;background-color:#5bc0de;margin-left:5px;display:inline-block;cursor:pointer}.bk-facet-label[href]:hover,.bk-facet-label[href]:focus{color:#fff;text-decoration:none;cursor:pointer}.bk-facet-label:empty{display:none}.bk-bs-btn .bk-facet-label{position:relative;top:-1px}.bk-facet-label[href]:hover,.bk-facet-label[href]:focus{background-color:#31b0d5}.bk-filters-selections .bk-sidebar{-webkit-transform:scale(0.5,.5)!important;transform:scale(0.5,.5)!important}.bk-crossfilter .bk-widget-form{padding:5px}.bk-hbox{display:-webkit-box;-webkit-box-orient:horizontal;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:horizontal;-moz-box-align:stretch;display:box;box-orient:horizontal;box-align:stretch}.bk-vbox{display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;width:auto}.bk-widget-form{padding:30px;overflow:hidden}.bk-widget-form-group{margin-bottom:15px}.bk-widget-form-input{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-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-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.bk-widget-form-input:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.bk-widget-form-input::-moz-placeholder{color:#999;opacity:1}.bk-widget-form-input:-ms-input-placeholder{color:#999}.bk-widget-form-input::-webkit-input-placeholder{color:#999}.bk-widget-form-input[disabled],.bk-widget-form-input[readonly],fieldset[disabled] .bk-widget-form-input{cursor:not-allowed;background-color:#eee;opacity:1}textarea.bk-widget-form-input{height:auto}.bk-slider-horizontal{width:100%;height:50px;min-width:200px}.bk-slider-vertical{height:100%;width:50px;min-height:200px}.bk-button-bar{margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:2px;position:relative;display:inline-block;vertical-align:middle}.bk-button-bar>.bk-bs-btn{position:relative;float:left}.bk-button-bar>.bk-bs-btn:hover,.bk-button-bar>.bk-bs-btn:focus,.bk-button-bar>.bk-bs-btn:active,.bk-button-bar>.bk-bs-btn.bk-bs-active{z-index:2}.bk-button-bar>.bk-bs-btn:focus{outline:0}.bk-button-bar .bk-bs-btn+.bk-bs-btn,.bk-button-bar .bk-bs-btn+.bk-bs-btn-group,.bk-button-bar .bk-bs-btn-group+.bk-bs-btn,.bk-button-bar .bk-bs-btn-group+.bk-bs-btn-group{margin-left:-1px}.bk-toolbar-button{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px;color:#333;background-color:#fff;border-color:#ccc}.bk-toolbar-button:focus,.bk-toolbar-button:active:focus,.bk-toolbar-button.bk-bs-active:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.bk-toolbar-button:hover,.bk-toolbar-button:focus{color:#333;text-decoration:none}.bk-toolbar-button:active,.bk-toolbar-button.bk-bs-active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.bk-toolbar-button.bk-bs-disabled,.bk-toolbar-button[disabled],fieldset[disabled] .bk-toolbar-button{cursor:not-allowed;pointer-events:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.bk-toolbar-button:hover,.bk-toolbar-button:focus,.bk-toolbar-button:active,.bk-toolbar-button.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-toolbar-button{color:#333;background-color:#ebebeb;border-color:#adadad}.bk-toolbar-button:active,.bk-toolbar-button.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-toolbar-button{background-image:none}.bk-toolbar-button.bk-bs-disabled,.bk-toolbar-button[disabled],fieldset[disabled] .bk-toolbar-button,.bk-toolbar-button.bk-bs-disabled:hover,.bk-toolbar-button[disabled]:hover,fieldset[disabled] .bk-toolbar-button:hover,.bk-toolbar-button.bk-bs-disabled:focus,.bk-toolbar-button[disabled]:focus,fieldset[disabled] .bk-toolbar-button:focus,.bk-toolbar-button.bk-bs-disabled:active,.bk-toolbar-button[disabled]:active,fieldset[disabled] .bk-toolbar-button:active,.bk-toolbar-button.bk-bs-disabled.bk-bs-active,.bk-toolbar-button[disabled].bk-bs-active,fieldset[disabled] .bk-toolbar-button.bk-bs-active{background-color:#fff;border-color:#ccc}.bk-toolbar-button .bk-bs-badge{color:#fff;background-color:#333}.bk-canvas-wrapper{position:relative;font-size:12pt;float:left}.bk-canvas{clear:both;position:absolute;font-size:12pt}.bk-canvas-wrapper .bk-canvas-map{position:absolute!important;z-index:-5}.bk-tooltip.bk-left::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}.bk-tooltip.bk-right::after{position:absolute;top:40%;width:0;height:0;right:-9px;border-style:solid;border-width:7px 0 7px 10px;border-color:transparent transparent transparent #1e4B6c;content:\" \";display:block}.bk-tooltip{position:absolute;padding:5px;background-color:#1e4B6c;border-radius:10px;pointer-events:none}.bk-tooltip-row-label{color:#9ab9b1;font-family:Helvetica,sans-serif;text-align:right}.bk-tooltip-row-value{color:#e2ddbd;font-family:Helvetica,sans-serif}.bk-tooltip-color-block{width:12px;height:12px;margin-left:5px;margin-right:5px;outline:#ddd solid 1px;display:inline-block}.bk-canvas-map{position:absolute;border:0;z-index:-5}.shading{position:absolute;display:block;border:1px dashed green;z-index:100}.gridplot_container{position:relative}.gridplot_container .gp_plotwrapper{position:absolute}.table_wrap table{display:block;margin:5px;height:300px;overflow-y:scroll}.bk-table{overflow:auto}.bokehdelete{float:right}.plottitle{padding-left:50px;padding-bottom:10px}\n",
        "                /* END /Users/bryan/work/bokeh/bokeh/server/static/css/bokeh.min.css */\n",
        "        </style>\n",
        "        <script type=\"text/javascript\">\n",
        "            /* BEGIN /Users/bryan/work/bokeh/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",
        "                /*! jQuery v2.0.3 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license\n",
        "                //@ sourceMappingURL=jquery.min.map\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",
        "                | Copyright (c) 2014, Nucleic Development Team.\n",
        "                |\n",
        "                | Distributed under the terms of the Modified BSD License.\n",
        "                |\n",
        "                | The full license is in the file COPYING.txt, distributed with this software.\n",
        "                |----------------------------------------------------------------------------*/\n",
        "                \n",
        "                /*! Hammer.JS - v2.0.4 - 2014-09-28\n",
        "                 * http://hammerjs.github.io/\n",
        "                 *\n",
        "                 * Copyright (c) 2014 Jorik Tangelder;\n",
        "                 * Licensed under the MIT license */\n",
        "                \n",
        "                /*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh)\n",
        "                 * Licensed under the MIT License (LICENSE.txt).\n",
        "                 *\n",
        "                 * Version: 3.1.12\n",
        "                 *\n",
        "                 * Requires: jQuery 1.2.2+\n",
        "                 */\n",
        "                \n",
        "                /* ========================================================================\n",
        "                 * Bootstrap: dropdown.js v3.1.1\n",
        "                 * http://getbootstrap.com/javascript/#dropdowns\n",
        "                 * ========================================================================\n",
        "                 * Copyright 2011-2014 Twitter, Inc.\n",
        "                 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n",
        "                 * ======================================================================== */\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 v3.1.1\n",
        "                 * http://getbootstrap.com/javascript/#modals\n",
        "                 * ========================================================================\n",
        "                 * Copyright 2011-2014 Twitter, Inc.\n",
        "                 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n",
        "                 * ======================================================================== */\n",
        "                \n",
        "                /*! \n",
        "                 * jquery.event.drag - v 2.2\n",
        "                 * Copyright (c) 2010 Three Dub Media - http://threedubmedia.com\n",
        "                 * Open Source MIT License - http://threedubmedia.com/code/license\n",
        "                 */\n",
        "                \n",
        "                /*! \n",
        "                 * jquery.event.drop - v 2.2\n",
        "                 * Copyright (c) 2010 Three Dub Media - http://threedubmedia.com\n",
        "                 * Open Source MIT License - http://threedubmedia.com/code/license\n",
        "                 */\n",
        "                \n",
        "                /**\n",
        "                 * @license\n",
        "                 * (c) 2009-2013 Michael Leibman\n",
        "                 * michael{dot}leibman{at}gmail{dot}com\n",
        "                 * http://github.com/mleibman/slickgrid\n",
        "                 *\n",
        "                 * Distributed under MIT license.\n",
        "                 * All rights reserved.\n",
        "                 *\n",
        "                 * SlickGrid v2.2\n",
        "                 *\n",
        "                 * NOTES:\n",
        "                 *     Cell/row DOM manipulations are done directly bypassing jQuery's DOM manipulation methods.\n",
        "                 *     This increases the speed dramatically, but can only be done safely because there are no event handlers\n",
        "                 *     or data associated with any cell/row DOM nodes.  Cell editors must make sure they implement .destroy()\n",
        "                 *     and do proper cleanup.\n",
        "                 */\n",
        "                \n",
        "                /*!\n",
        "                 * jQuery UI Core 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/category/ui-core/\n",
        "                 */\n",
        "                \n",
        "                /*!\n",
        "                 * jQuery UI Widget 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/jQuery.widget/\n",
        "                 */\n",
        "                \n",
        "                /*!\n",
        "                 * jQuery UI Mouse 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/mouse/\n",
        "                 */\n",
        "                \n",
        "                /*!\n",
        "                 * jQuery UI Sortable 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/sortable/\n",
        "                 */\n",
        "                \n",
        "                /*!\n",
        "                 * jQuery UI Slider 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/slider/\n",
        "                 */\n",
        "                \n",
        "                /*!\n",
        "                 * jQuery UI Draggable 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/draggable/\n",
        "                 */\n",
        "                \n",
        "                /*!\n",
        "                 * jQuery UI Droppable 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/droppable/\n",
        "                 */\n",
        "                \n",
        "                /**\n",
        "                 * jQRangeSlider\n",
        "                 * A javascript slider selector that supports dates\n",
        "                 *\n",
        "                 * Copyright (C) Guillaume Gautreau 2012\n",
        "                 * Dual licensed under the MIT or GPL Version 2 licenses.\n",
        "                 *\n",
        "                 */\n",
        "                \n",
        "                /**\n",
        "                 * jQRangeSlider\n",
        "                 * A javascript slider selector that supports dates\n",
        "                 *\n",
        "                 * Copyright (C) Guillaume Gautreau 2012\n",
        "                 * Dual licensed under the MIT or GPL Version 2 licenses.\n",
        "                 *\n",
        "                 */\n",
        "                \n",
        "                /*!\n",
        "                 * jQuery UI Datepicker 1.11.2\n",
        "                 * http://jqueryui.com\n",
        "                 *\n",
        "                 * Copyright 2014 jQuery Foundation and other contributors\n",
        "                 * Released under the MIT license.\n",
        "                 * http://jquery.org/license\n",
        "                 *\n",
        "                 * http://api.jqueryui.com/datepicker/\n",
        "                 */\n",
        "                \n",
        "                /* ========================================================================\n",
        "                 * Bootstrap: tab.js v3.1.1\n",
        "                 * http://getbootstrap.com/javascript/#tabs\n",
        "                 * ========================================================================\n",
        "                 * Copyright 2011-2014 Twitter, Inc.\n",
        "                 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n",
        "                 * ======================================================================== */\n",
        "                \n",
        "                /* ========================================================================\n",
        "                 * Bootstrap: button.js v3.1.1\n",
        "                 * http://getbootstrap.com/javascript/#buttons\n",
        "                 * ========================================================================\n",
        "                 * Copyright 2011-2014 Twitter, Inc.\n",
        "                 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n",
        "                 * ======================================================================== */\n",
        "                \n",
        "                !function(t,e){t.Bokeh=e()}(this,function(){function JL(t){if(!t)return JL.__;var e=\"\";return(\".\"+t).split(\".\").reduce(function(t,n){return e=e?e+(\".\"+n):n,n=t[\"__\"+e],void 0===n&&(JL.Logger.prototype=t,n=new JL.Logger(e),t[\"__\"+e]=n),n},JL.__)}var requirejs,require,define;!function(t){function e(t,e){return m.call(t,e)}function n(t,e){var n,r,i,o,s,a,l,u,c,p,h,d=e&&e.split(\"/\"),f=_.map,g=f&&f[\"*\"]||{};if(t&&\".\"===t.charAt(0))if(e){for(d=d.slice(0,d.length-1),t=t.split(\"/\"),s=t.length-1,_.nodeIdCompat&&v.test(t[s])&&(t[s]=t[s].replace(v,\"\")),t=d.concat(t),c=0;c<t.length;c+=1)if(h=t[c],\".\"===h)t.splice(c,1),c-=1;else if(\"..\"===h){if(1===c&&(\"..\"===t[2]||\"..\"===t[0]))break;c>0&&(t.splice(c-1,2),c-=2)}t=t.join(\"/\")}else 0===t.indexOf(\"./\")&&(t=t.substring(2));if((d||g)&&f){for(n=t.split(\"/\"),c=n.length;c>0;c-=1){if(r=n.slice(0,c).join(\"/\"),d)for(p=d.length;p>0;p-=1)if(i=f[d.slice(0,p).join(\"/\")],i&&(i=i[r])){o=i,a=c;break}if(o)break;!l&&g&&g[r]&&(l=g[r],u=c)}!o&&l&&(o=l,a=u),o&&(n.splice(0,a,o),t=n.join(\"/\"))}return t}function r(e,n){return function(){return c.apply(t,y.call(arguments,0).concat([e,n]))}}function i(t){return function(e){return n(e,t)}}function o(t){return function(e){d[t]=e}}function s(n){if(e(f,n)){var r=f[n];delete f[n],g[n]=!0,u.apply(t,r)}if(!e(d,n)&&!e(g,n))throw new Error(\"No \"+n);return d[n]}function a(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 l(t){return function(){return _&&_.config&&_.config[t]||{}}}var u,c,p,h,d={},f={},_={},g={},m=Object.prototype.hasOwnProperty,y=[].slice,v=/\\.js$/;p=function(t,e){var r,o=a(t),l=o[0];return t=o[1],l&&(l=n(l,e),r=s(l)),l?t=r&&r.normalize?r.normalize(t,i(e)):n(t,e):(t=n(t,e),o=a(t),l=o[0],t=o[1],l&&(r=s(l))),{f:l?l+\"!\"+t:t,n:t,pr:l,p:r}},h={require:function(t){return r(t)},exports:function(t){var e=d[t];return\"undefined\"!=typeof e?e:d[t]={}},module:function(t){return{id:t,uri:\"\",exports:d[t],config:l(t)}}},u=function(n,i,a,l){var u,c,_,m,y,v,b=[],w=typeof a;if(l=l||n,\"undefined\"===w||\"function\"===w){for(i=!i.length&&a.length?[\"require\",\"exports\",\"module\"]:i,y=0;y<i.length;y+=1)if(m=p(i[y],l),c=m.f,\"require\"===c)b[y]=h.require(n);else if(\"exports\"===c)b[y]=h.exports(n),v=!0;else if(\"module\"===c)u=b[y]=h.module(n);else if(e(d,c)||e(f,c)||e(g,c))b[y]=s(c);else{if(!m.p)throw new Error(n+\" missing \"+c);m.p.load(m.n,r(l,!0),o(c),{}),b[y]=d[c]}_=a?a.apply(d[n],b):void 0,n&&(u&&u.exports!==t&&u.exports!==d[n]?d[n]=u.exports:_===t&&v||(d[n]=_))}else n&&(d[n]=a)},requirejs=require=c=function(e,n,r,i,o){if(\"string\"==typeof e)return h[e]?h[e](n):s(p(e,n).f);if(!e.splice){if(_=e,_.deps&&c(_.deps,_.callback),!n)return;n.splice?(e=n,n=r,r=null):e=t}return n=n||function(){},\"function\"==typeof r&&(r=i,i=o),i?u(t,e,n,r):setTimeout(function(){u(t,e,n,r)},4),c},c.config=function(t){return c(t)},requirejs._defined=d,define=function(t,n,r){n.splice||(r=n,n=[]),e(d,t)||e(f,t)||(f[t]=[t,n,r])},define.amd={jQuery:!0}}(),define(\"vendor/almond/almond\",function(){}),function(){var t=this,e=t._,n={},r=Array.prototype,i=Object.prototype,o=Function.prototype,s=r.push,a=r.slice,l=r.concat,u=i.toString,c=i.hasOwnProperty,p=r.forEach,h=r.map,d=r.reduce,f=r.reduceRight,_=r.filter,g=r.every,m=r.some,y=r.indexOf,v=r.lastIndexOf,b=Array.isArray,w=Object.keys,x=o.bind,k=function(t){return t instanceof k?t:this instanceof k?void(this._wrapped=t):new k(t)};\"undefined\"!=typeof exports?(\"undefined\"!=typeof module&&module.exports&&(exports=module.exports=k),exports._=k):t._=k,k.VERSION=\"1.5.2\";var C=k.each=k.forEach=function(t,e,r){if(null!=t)if(p&&t.forEach===p)t.forEach(e,r);else if(t.length===+t.length){for(var i=0,o=t.length;o>i;i++)if(e.call(r,t[i],i,t)===n)return}else for(var s=k.keys(t),i=0,o=s.length;o>i;i++)if(e.call(r,t[s[i]],s[i],t)===n)return};k.map=k.collect=function(t,e,n){var r=[];return null==t?r:h&&t.map===h?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\";k.reduce=k.foldl=k.inject=function(t,e,n,r){var i=arguments.length>2;if(null==t&&(t=[]),d&&t.reduce===d)return r&&(e=k.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},k.reduceRight=k.foldr=function(t,e,n,r){var i=arguments.length>2;if(null==t&&(t=[]),f&&t.reduceRight===f)return r&&(e=k.bind(e,r)),i?t.reduceRight(e,n):t.reduceRight(e);var o=t.length;if(o!==+o){var s=k.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},k.find=k.detect=function(t,e,n){var r;return A(t,function(t,i,o){return e.call(n,t,i,o)?(r=t,!0):void 0}),r},k.filter=k.select=function(t,e,n){var r=[];return null==t?r:_&&t.filter===_?t.filter(e,n):(C(t,function(t,i,o){e.call(n,t,i,o)&&r.push(t)}),r)},k.reject=function(t,e,n){return k.filter(t,function(t,r,i){return!e.call(n,t,r,i)},n)},k.every=k.all=function(t,e,r){e||(e=k.identity);var i=!0;return null==t?i:g&&t.every===g?t.every(e,r):(C(t,function(t,o,s){return(i=i&&e.call(r,t,o,s))?void 0:n}),!!i)};var A=k.some=k.any=function(t,e,r){e||(e=k.identity);var i=!1;return null==t?i:m&&t.some===m?t.some(e,r):(C(t,function(t,o,s){return i||(i=e.call(r,t,o,s))?n:void 0}),!!i)};k.contains=k.include=function(t,e){return null==t?!1:y&&t.indexOf===y?-1!=t.indexOf(e):A(t,function(t){return t===e})},k.invoke=function(t,e){var n=a.call(arguments,2),r=k.isFunction(e);return k.map(t,function(t){return(r?e:t[e]).apply(t,n)})},k.pluck=function(t,e){return k.map(t,function(t){return t[e]})},k.where=function(t,e,n){return k.isEmpty(e)?n?void 0:[]:k[n?\"find\":\"filter\"](t,function(t){for(var n in e)if(e[n]!==t[n])return!1;return!0})},k.findWhere=function(t,e){return k.where(t,e,!0)},k.max=function(t,e,n){if(!e&&k.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.max.apply(Math,t);if(!e&&k.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},k.min=function(t,e,n){if(!e&&k.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.min.apply(Math,t);if(!e&&k.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},k.shuffle=function(t){var e,n=0,r=[];return C(t,function(t){e=k.random(n++),r[n-1]=r[e],r[e]=t}),r},k.sample=function(t,e,n){return arguments.length<2||n?t[k.random(t.length-1)]:k.shuffle(t).slice(0,Math.max(0,e))};var S=function(t){return k.isFunction(t)?t:function(e){return e[t]}};k.sortBy=function(t,e,n){var r=S(e);return k.pluck(k.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 T=function(t){return function(e,n,r){var i={},o=null==n?k.identity:S(n);return C(e,function(n,s){var a=o.call(r,n,s,e);t(i,a,n)}),i}};k.groupBy=T(function(t,e,n){(k.has(t,e)?t[e]:t[e]=[]).push(n)}),k.indexBy=T(function(t,e,n){t[e]=n}),k.countBy=T(function(t,e){k.has(t,e)?t[e]++:t[e]=1}),k.sortedIndex=function(t,e,n,r){n=null==n?k.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},k.toArray=function(t){return t?k.isArray(t)?a.call(t):t.length===+t.length?k.map(t,k.identity):k.values(t):[]},k.size=function(t){return null==t?0:t.length===+t.length?t.length:k.keys(t).length},k.first=k.head=k.take=function(t,e,n){return null==t?void 0:null==e||n?t[0]:a.call(t,0,e)},k.initial=function(t,e,n){return a.call(t,0,t.length-(null==e||n?1:e))},k.last=function(t,e,n){return null==t?void 0:null==e||n?t[t.length-1]:a.call(t,Math.max(t.length-e,0))},k.rest=k.tail=k.drop=function(t,e,n){return a.call(t,null==e||n?1:e)},k.compact=function(t){return k.filter(t,k.identity)};var D=function(t,e,n){return e&&k.every(t,k.isArray)?l.apply(n,t):(C(t,function(t){k.isArray(t)||k.isArguments(t)?e?s.apply(n,t):D(t,e,n):n.push(t)}),n)};k.flatten=function(t,e){return D(t,e,[])},k.without=function(t){return k.difference(t,a.call(arguments,1))},k.uniq=k.unique=function(t,e,n,r){k.isFunction(e)&&(r=n,n=e,e=!1);var i=n?k.map(t,n,r):t,o=[],s=[];return C(i,function(n,r){(e?r&&s[s.length-1]===n:k.contains(s,n))||(s.push(n),o.push(t[r]))}),o},k.union=function(){return k.uniq(k.flatten(arguments,!0))},k.intersection=function(t){var e=a.call(arguments,1);return k.filter(k.uniq(t),function(t){return k.every(e,function(e){return k.indexOf(e,t)>=0})})},k.difference=function(t){var e=l.apply(r,a.call(arguments,1));return k.filter(t,function(t){return!k.contains(e,t)})},k.zip=function(){for(var t=k.max(k.pluck(arguments,\"length\").concat(0)),e=new Array(t),n=0;t>n;n++)e[n]=k.pluck(arguments,\"\"+n);return e},k.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},k.indexOf=function(t,e,n){if(null==t)return-1;var r=0,i=t.length;if(n){if(\"number\"!=typeof n)return r=k.sortedIndex(t,e),t[r]===e?r:-1;r=0>n?Math.max(0,i+n):n}if(y&&t.indexOf===y)return t.indexOf(e,n);for(;i>r;r++)if(t[r]===e)return r;return-1},k.lastIndexOf=function(t,e,n){if(null==t)return-1;var r=null!=n;if(v&&t.lastIndexOf===v)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},k.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 E=function(){};k.bind=function(t,e){var n,r;if(x&&t.bind===x)return x.apply(t,a.call(arguments,1));if(!k.isFunction(t))throw new TypeError;return n=a.call(arguments,2),r=function(){if(!(this instanceof r))return t.apply(e,n.concat(a.call(arguments)));E.prototype=t.prototype;var i=new E;E.prototype=null;var o=t.apply(i,n.concat(a.call(arguments)));return Object(o)===o?o:i}},k.partial=function(t){var e=a.call(arguments,1);return function(){return t.apply(this,e.concat(a.call(arguments)))}},k.bindAll=function(t){var e=a.call(arguments,1);if(0===e.length)throw new Error(\"bindAll must be passed function names\");return C(e,function(e){t[e]=k.bind(t[e],t)}),t},k.memoize=function(t,e){var n={};return e||(e=k.identity),function(){var r=e.apply(this,arguments);return k.has(n,r)?n[r]:n[r]=t.apply(this,arguments)}},k.delay=function(t,e){var n=a.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},k.defer=function(t){return k.delay.apply(k,[t,1].concat(a.call(arguments,1)))},k.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 c=e-(u-a);return r=this,i=arguments,0>=c?(clearTimeout(s),s=null,a=u,o=t.apply(r,i)):s||n.trailing===!1||(s=setTimeout(l,c)),o}},k.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}},k.once=function(t){var e,n=!1;return function(){return n?e:(n=!0,e=t.apply(this,arguments),t=null,e)}},k.wrap=function(t,e){return function(){var n=[t];return s.apply(n,arguments),e.apply(this,n)}},k.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]}},k.after=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}},k.keys=w||function(t){if(t!==Object(t))throw new TypeError(\"Invalid object\");var e=[];for(var n in t)k.has(t,n)&&e.push(n);return e},k.values=function(t){for(var e=k.keys(t),n=e.length,r=new Array(n),i=0;n>i;i++)r[i]=t[e[i]];return r},k.pairs=function(t){for(var e=k.keys(t),n=e.length,r=new Array(n),i=0;n>i;i++)r[i]=[e[i],t[e[i]]];return r},k.invert=function(t){for(var e={},n=k.keys(t),r=0,i=n.length;i>r;r++)e[t[n[r]]]=n[r];return e},k.functions=k.methods=function(t){var e=[];for(var n in t)k.isFunction(t[n])&&e.push(n);return e.sort()},k.extend=function(t){return C(a.call(arguments,1),function(e){if(e)for(var n in e)t[n]=e[n]}),t},k.pick=function(t){var e={},n=l.apply(r,a.call(arguments,1));return C(n,function(n){n in t&&(e[n]=t[n])}),e},k.omit=function(t){var e={},n=l.apply(r,a.call(arguments,1));for(var i in t)k.contains(n,i)||(e[i]=t[i]);return e},k.defaults=function(t){return C(a.call(arguments,1),function(e){if(e)for(var n in e)void 0===t[n]&&(t[n]=e[n])}),t},k.clone=function(t){return k.isObject(t)?k.isArray(t)?t.slice():k.extend({},t):t},k.tap=function(t,e){return e(t),t};var R=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 k&&(t=t._wrapped),e instanceof k&&(e=e._wrapped);var i=u.call(t);if(i!=u.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&&!(k.isFunction(s)&&s instanceof s&&k.isFunction(a)&&a instanceof a))return!1;n.push(t),r.push(e);var l=0,c=!0;if(\"[object Array]\"==i){if(l=t.length,c=l==e.length)for(;l--&&(c=R(t[l],e[l],n,r)););}else{for(var p in t)if(k.has(t,p)&&(l++,!(c=k.has(e,p)&&R(t[p],e[p],n,r))))break;if(c){for(p in e)if(k.has(e,p)&&!l--)break;c=!l}}return n.pop(),r.pop(),c};k.isEqual=function(t,e){return R(t,e,[],[])},k.isEmpty=function(t){if(null==t)return!0;if(k.isArray(t)||k.isString(t))return 0===t.length;for(var e in t)if(k.has(t,e))return!1;return!0},k.isElement=function(t){return!(!t||1!==t.nodeType)},k.isArray=b||function(t){return\"[object Array]\"==u.call(t)},k.isObject=function(t){return t===Object(t)},C([\"Arguments\",\"Function\",\"String\",\"Number\",\"Date\",\"RegExp\"],function(t){k[\"is\"+t]=function(e){return u.call(e)==\"[object \"+t+\"]\"}}),k.isArguments(arguments)||(k.isArguments=function(t){return!(!t||!k.has(t,\"callee\"))}),\"function\"!=typeof/./&&(k.isFunction=function(t){return\"function\"==typeof t}),k.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},k.isNaN=function(t){return k.isNumber(t)&&t!=+t},k.isBoolean=function(t){return t===!0||t===!1||\"[object Boolean]\"==u.call(t)},k.isNull=function(t){return null===t},k.isUndefined=function(t){return void 0===t},k.has=function(t,e){return c.call(t,e)},k.noConflict=function(){return t._=e,this},k.identity=function(t){return t},k.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},k.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))};var I={escape:{\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#x27;\"}};I.unescape=k.invert(I.escape);var P={escape:new RegExp(\"[\"+k.keys(I.escape).join(\"\")+\"]\",\"g\"),unescape:new RegExp(\"(\"+k.keys(I.unescape).join(\"|\")+\")\",\"g\")};k.each([\"escape\",\"unescape\"],function(t){k[t]=function(e){return null==e?\"\":(\"\"+e).replace(P[t],function(e){return I[t][e]})}}),k.result=function(t,e){if(null==t)return void 0;var n=t[e];return k.isFunction(n)?n.call(t):n},k.mixin=function(t){C(k.functions(t),function(e){var n=k[e]=t[e];k.prototype[e]=function(){var t=[this._wrapped];return s.apply(t,arguments),F.call(this,n.apply(k,t))}})};var N=0;k.uniqueId=function(t){var e=++N+\"\";return t?t+e:e},k.templateSettings={evaluate:/<%([\\s\\S]+?)%>/g,interpolate:/<%=([\\s\\S]+?)%>/g,escape:/<%-([\\s\\S]+?)%>/g};var z=/(.)^/,O={\"'\":\"'\",\"\\\\\":\"\\\\\",\"\\r\":\"r\",\"\\n\":\"n\",\"\t\":\"t\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},j=/\\\\|'|\\r|\\n|\\t|\\u2028|\\u2029/g;k.template=function(t,e,n){var r;n=k.defaults({},n,k.templateSettings);var i=new RegExp([(n.escape||z).source,(n.interpolate||z).source,(n.evaluate||z).source].join(\"|\")+\"|$\",\"g\"),o=0,s=\"__p+='\";t.replace(i,function(e,n,r,i,a){return s+=t.slice(o,a).replace(j,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,k);var l=function(t){return r.call(this,t,k)};return l.source=\"function(\"+(n.variable||\"obj\")+\"){\\n\"+s+\"}\",l},k.chain=function(t){return k(t).chain()};var F=function(t){return this._chain?k(t).chain():t};k.mixin(k),C([\"pop\",\"push\",\"reverse\",\"shift\",\"sort\",\"splice\",\"unshift\"],function(t){var e=r[t];k.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),\"shift\"!=t&&\"splice\"!=t||0!==n.length||delete n[0],F.call(this,n)}}),C([\"concat\",\"join\",\"slice\"],function(t){var e=r[t];k.prototype[t]=function(){return F.call(this,e.apply(this._wrapped,arguments))}}),k.extend(k.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}}),\"function\"==typeof define&&define.amd&&define(\"underscore\",[],function(){return k})}.call(this),function(){define(\"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(3&r[16]|8,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 n(t){var e=t.length,n=oe.type(t);return oe.isWindow(t)?!1:1===t.nodeType&&e?!0:\"array\"===n||\"function\"!==n&&(0===e||\"number\"==typeof e&&e>0&&e-1 in t)}function r(t){var e=fe[t]={};return oe.each(t.match(ae)||[],function(t,n){e[n]=!0}),e}function i(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=oe.expando+Math.random()}function o(t,n,r){var i;if(r===e&&1===t.nodeType)if(i=\"data-\"+n.replace(ye,\"-$1\").toLowerCase(),r=t.getAttribute(i),\"string\"==typeof r){try{r=\"true\"===r?!0:\"false\"===r?!1:\"null\"===r?null:+r+\"\"===r?+r:me.test(r)?JSON.parse(r):r}catch(o){}_e.set(t,n,r)}else r=e;return r}function s(){return!0}function a(){return!1}function l(){try{return Y.activeElement}catch(t){}}function u(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function c(t,e,n){if(oe.isFunction(e))return oe.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return oe.grep(t,function(t){return t===e!==n});if(\"string\"==typeof e){if(Te.test(e))return oe.filter(e,t,n);e=oe.filter(e,t)}return oe.grep(t,function(t){return ee.call(e,t)>=0!==n})}function p(t,e){return oe.nodeName(t,\"table\")&&oe.nodeName(1===e.nodeType?e:e.firstChild,\"tr\")?t.getElementsByTagName(\"tbody\")[0]||t.appendChild(t.ownerDocument.createElement(\"tbody\")):t}function h(t){return t.type=(null!==t.getAttribute(\"type\"))+\"/\"+t.type,t}function d(t){var e=Le.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++)ge.set(t[r],\"globalEval\",!e||ge.get(e[r],\"globalEval\"))}function _(t,e){var n,r,i,o,s,a,l,u;if(1===e.nodeType){if(ge.hasData(t)&&(o=ge.access(t),s=ge.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++)oe.event.add(e,i,u[i][n])}_e.hasData(t)&&(a=_e.access(t),l=oe.extend({},a),_e.set(e,l))}}function g(t,n){var r=t.getElementsByTagName?t.getElementsByTagName(n||\"*\"):t.querySelectorAll?t.querySelectorAll(n||\"*\"):[];return n===e||n&&oe.nodeName(t,n)?oe.merge([t],r):r}function m(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 y(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),r=e,i=Ke.length;i--;)if(e=Ke[i]+n,e in t)return e;return r}function v(t,e){return t=e||t,\"none\"===oe.css(t,\"display\")||!oe.contains(t.ownerDocument,t)}function b(e){return t.getComputedStyle(e,null)}function w(t,e){for(var n,r,i,o=[],s=0,a=t.length;a>s;s++)r=t[s],r.style&&(o[s]=ge.get(r,\"olddisplay\"),n=r.style.display,e?(o[s]||\"none\"!==n||(r.style.display=\"\"),\"\"===r.style.display&&v(r)&&(o[s]=ge.access(r,\"olddisplay\",M(r.nodeName)))):o[s]||(i=v(r),(n&&\"none\"!==n||!i)&&ge.set(r,\"olddisplay\",i?n:oe.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 x(t,e,n){var r=Ue.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||\"px\"):e}function k(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+=oe.css(t,n+Qe[o],!0,i)),r?(\"content\"===n&&(s-=oe.css(t,\"padding\"+Qe[o],!0,i)),\"margin\"!==n&&(s-=oe.css(t,\"border\"+Qe[o]+\"Width\",!0,i))):(s+=oe.css(t,\"padding\"+Qe[o],!0,i),\"padding\"!==n&&(s+=oe.css(t,\"border\"+Qe[o]+\"Width\",!0,i)));return s}function C(t,e,n){var r=!0,i=\"width\"===e?t.offsetWidth:t.offsetHeight,o=b(t),s=oe.support.boxSizing&&\"border-box\"===oe.css(t,\"boxSizing\",!1,o);if(0>=i||null==i){if(i=$e(t,e,o),(0>i||null==i)&&(i=t.style[e]),qe.test(i))return i;r=s&&(oe.support.boxSizingReliable||i===t.style[e]),i=parseFloat(i)||0}return i+k(t,e,n||(s?\"border\":\"content\"),r,o)+\"px\"}function M(t){var e=Y,n=Ze[t];return n||(n=A(t,e),\"none\"!==n&&n||(We=(We||oe(\"<iframe frameborder='0' width='0' height='0'/>\").css(\"cssText\",\"display:block !important\")).appendTo(e.documentElement),e=(We[0].contentWindow||We[0].contentDocument).document,e.write(\"<!doctype html><html><body>\"),e.close(),n=A(t,e),We.detach()),Ze[t]=n),n}function A(t,e){var n=oe(e.createElement(t)).appendTo(e.body),r=oe.css(n[0],\"display\");return n.remove(),r}function S(t,e,n,r){var i;if(oe.isArray(e))oe.each(e,function(e,i){n||en.test(t)?r(t,i):S(t+\"[\"+(\"object\"==typeof i?e:\"\")+\"]\",i,n,r)});else if(n||\"object\"!==oe.type(e))r(t,e);else for(i in e)S(t+\"[\"+i+\"]\",e[i],n,r)}function T(t){return function(e,n){\"string\"!=typeof e&&(n=e,e=\"*\");var r,i=0,o=e.toLowerCase().match(ae)||[];if(oe.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 D(t,n,r,i){function o(l){var u;return s[l]=!0,oe.each(t[l]||[],function(t,l){var c=l(n,r,i);return\"string\"!=typeof c||a||s[c]?a?!(u=c):e:(n.dataTypes.unshift(c),o(c),!1)}),u}var s={},a=t===vn;return o(n.dataTypes[0])||!s[\"*\"]&&o(\"*\")}function E(t,n){var r,i,o=oe.ajaxSettings.flatOptions||{};for(r in n)n[r]!==e&&((o[r]?t:i||(i={}))[r]=n[r]);return i&&oe.extend(!0,t,i),t}function R(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]):e}function I(t,e,n,r){var i,o,s,a,l,u={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if(\"*\"===o)o=l;else if(\"*\"!==l&&l!==o){if(s=u[l+\" \"+o]||u[\"* \"+o],!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],c.unshift(a[1]));break}if(s!==!0)if(s&&t[\"throws\"])e=s(e);else try{e=s(e)}catch(p){return{state:\"parsererror\",error:s?p:\"No conversion from \"+l+\" to \"+o}}}return{state:\"success\",data:e}}function P(){return setTimeout(function(){Tn=e}),Tn=oe.now()}function N(t,e,n){for(var r,i=(Nn[e]||[]).concat(Nn[\"*\"]),o=0,s=i.length;s>o;o++)if(r=i[o].call(n,e,t))return r}function z(t,e,n){var r,i,o=0,s=Pn.length,a=oe.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var e=Tn||P(),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:oe.extend({},e),opts:oe.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Tn||P(),duration:n.duration,tweens:[],createTween:function(e,n){var r=oe.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}}),c=u.props;for(O(c,u.opts.specialEasing);s>o;o++)if(r=Pn[o].call(u,t,c,u.opts))return r;return oe.map(c,N,u),oe.isFunction(u.opts.start)&&u.opts.start.call(t,u),oe.fx.timer(oe.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=oe.camelCase(n),i=e[r],o=t[n],oe.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),s=oe.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 j(t,n,r){var i,o,s,a,l,u,c=this,p={},h=t.style,d=t.nodeType&&v(t),f=ge.get(t,\"fxshow\");r.queue||(l=oe._queueHooks(t,\"fx\"),null==l.unqueued&&(l.unqueued=0,u=l.empty.fire,l.empty.fire=function(){l.unqueued||u()}),l.unqueued++,c.always(function(){c.always(function(){l.unqueued--,oe.queue(t,\"fx\").length||l.empty.fire()})})),1===t.nodeType&&(\"height\"in n||\"width\"in n)&&(r.overflow=[h.overflow,h.overflowX,h.overflowY],\"inline\"===oe.css(t,\"display\")&&\"none\"===oe.css(t,\"float\")&&(h.display=\"inline-block\")),r.overflow&&(h.overflow=\"hidden\",c.always(function(){h.overflow=r.overflow[0],h.overflowX=r.overflow[1],h.overflowY=r.overflow[2]}));for(i in n)if(o=n[i],En.exec(o)){if(delete n[i],s=s||\"toggle\"===o,o===(d?\"hide\":\"show\")){if(\"show\"!==o||!f||f[i]===e)continue;d=!0}p[i]=f&&f[i]||oe.style(t,i)}if(!oe.isEmptyObject(p)){f?\"hidden\"in f&&(d=f.hidden):f=ge.access(t,\"fxshow\",{}),s&&(f.hidden=!d),d?oe(t).show():c.done(function(){oe(t).hide()}),c.done(function(){var e;ge.remove(t,\"fxshow\");for(e in p)oe.style(t,e,p[e])});for(i in p)a=N(d?f[i]:0,i,c),i in f||(f[i]=a.start,d&&(a.end=a.start,a.start=\"width\"===i||\"height\"===i?1:0))}}function F(t,e,n,r,i){return new F.prototype.init(t,e,n,r,i)}function L(t,e){var n,r={height:t},i=0;for(e=e?1:0;4>i;i+=2-e)n=Qe[i],r[\"margin\"+n]=r[\"padding\"+n]=t;return e&&(r.opacity=r.width=t),r}function B(t){return oe.isWindow(t)?t:9===t.nodeType&&t.defaultView}var H,$,W=typeof e,V=t.location,Y=t.document,U=Y.documentElement,q=t.jQuery,G=t.$,Z={},J=[],X=\"2.0.3\",Q=J.concat,K=J.push,te=J.slice,ee=J.indexOf,ne=Z.toString,re=Z.hasOwnProperty,ie=X.trim,oe=function(t,e){return new oe.fn.init(t,e,H)},se=/[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/.source,ae=/\\S+/g,le=/^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]*))$/,ue=/^<(\\w+)\\s*\\/?>(?:<\\/\\1>|)$/,ce=/^-ms-/,pe=/-([\\da-z])/gi,he=function(t,e){return e.toUpperCase()},de=function(){Y.removeEventListener(\"DOMContentLoaded\",de,!1),t.removeEventListener(\"load\",de,!1),oe.ready()};oe.fn=oe.prototype={jquery:X,constructor:oe,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]:le.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 oe?n[0]:n,oe.merge(this,oe.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:Y,!0)),ue.test(i[1])&&oe.isPlainObject(n))for(i in n)oe.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}return o=Y.getElementById(i[2]),o&&o.parentNode&&(this.length=1,this[0]=o),this.context=Y,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):oe.isFunction(t)?r.ready(t):(t.selector!==e&&(this.selector=t.selector,this.context=t.context),oe.makeArray(t,this))},selector:\"\",length:0,toArray:function(){return te.call(this)},get:function(t){return null==t?this.toArray():0>t?this[this.length+t]:this[t]},pushStack:function(t){var e=oe.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return oe.each(this,t,e)},ready:function(t){return oe.ready.promise().done(t),this},slice:function(){return this.pushStack(te.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(oe.map(this,function(e,n){return t.call(e,n,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:K,sort:[].sort,splice:[].splice},oe.fn.init.prototype=oe.fn,oe.extend=oe.fn.extend=function(){var t,n,r,i,o,s,a=arguments[0]||{},l=1,u=arguments.length,c=!1;for(\"boolean\"==typeof a&&(c=a,a=arguments[1]||{},l=2),\"object\"==typeof a||oe.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&&(c&&i&&(oe.isPlainObject(i)||(o=oe.isArray(i)))?(o?(o=!1,s=r&&oe.isArray(r)?r:[]):s=r&&oe.isPlainObject(r)?r:{},a[n]=oe.extend(c,s,i)):i!==e&&(a[n]=i));return a},oe.extend({expando:\"jQuery\"+(X+Math.random()).replace(/\\D/g,\"\"),noConflict:function(e){return t.$===oe&&(t.$=G),e&&t.jQuery===oe&&(t.jQuery=q),oe},isReady:!1,readyWait:1,holdReady:function(t){t?oe.readyWait++:oe.ready(!0)},ready:function(t){(t===!0?--oe.readyWait:oe.isReady)||(oe.isReady=!0,t!==!0&&--oe.readyWait>0||($.resolveWith(Y,[oe]),oe.fn.trigger&&oe(Y).trigger(\"ready\").off(\"ready\")))},isFunction:function(t){return\"function\"===oe.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?t+\"\":\"object\"==typeof t||\"function\"==typeof t?Z[ne.call(t)]||\"object\":typeof t},isPlainObject:function(t){if(\"object\"!==oe.type(t)||t.nodeType||oe.isWindow(t))return!1;try{if(t.constructor&&!re.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 Error(t)},parseHTML:function(t,e,n){if(!t||\"string\"!=typeof t)return null;\"boolean\"==typeof e&&(n=e,e=!1),e=e||Y;var r=ue.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=oe.buildFragment([t],e,i),i&&oe(i).remove(),oe.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)&&oe.error(\"Invalid XML: \"+t),n},noop:function(){},globalEval:function(t){var e,n=eval;t=oe.trim(t),t&&(1===t.indexOf(\"use strict\")?(e=Y.createElement(\"script\"),e.text=t,Y.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(ce,\"ms-\").replace(pe,he)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,r){var i,o=0,s=t.length,a=n(t);if(r){if(a)for(;s>o&&(i=e.apply(t[o],r),i!==!1);o++);else for(o in t)if(i=e.apply(t[o],r),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?\"\":ie.call(t)},makeArray:function(t,e){var r=e||[];return null!=t&&(n(Object(t))?oe.merge(r,\"string\"==typeof t?[t]:t):K.call(r,t)),r},inArray:function(t,e,n){return null==e?-1:ee.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,r){var i,o=0,s=t.length,a=n(t),l=[];if(a)for(;s>o;o++)i=e(t[o],o,r),null!=i&&(l[l.length]=i);else for(o in t)i=e(t[o],o,r),null!=i&&(l[l.length]=i);return Q.apply([],l)},guid:1,proxy:function(t,n){var r,i,o;return\"string\"==typeof n&&(r=t[n],n=t,t=r),oe.isFunction(t)?(i=te.call(arguments,2),o=function(){return t.apply(n||this,i.concat(te.call(arguments)))},o.guid=t.guid=t.guid||oe.guid++,o):e\n",
        "                },access:function(t,n,r,i,o,s,a){var l=0,u=t.length,c=null==r;if(\"object\"===oe.type(r)){o=!0;for(l in r)oe.access(t,n,l,r[l],!0,s,a)}else if(i!==e&&(o=!0,oe.isFunction(i)||(a=!0),c&&(a?(n.call(t,i),n=null):(c=n,n=function(t,e,n){return c.call(oe(t),n)})),n))for(;u>l;l++)n(t[l],r,a?i:i.call(t[l],l,n(t[l],r)));return o?t:c?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}}),oe.ready.promise=function(e){return $||($=oe.Deferred(),\"complete\"===Y.readyState?setTimeout(oe.ready):(Y.addEventListener(\"DOMContentLoaded\",de,!1),t.addEventListener(\"load\",de,!1))),$.promise(e)},oe.each(\"Boolean Number String Function Array Date RegExp Object Error\".split(\" \"),function(t,e){Z[\"[object \"+e+\"]\"]=e.toLowerCase()}),H=oe(Y),function(t,e){function n(t,e,n,r){var i,o,s,a,l,u,c,p,f,_;if((e?e.ownerDocument||e:B)!==I&&R(e),e=e||I,n=n||[],!t||\"string\"!=typeof t)return n;if(1!==(a=e.nodeType)&&9!==a)return[];if(N&&!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))&&F(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&&(!z||!z.test(t))){if(p=c=L,f=e,_=9===a&&t,1===a&&\"object\"!==e.nodeName.toLowerCase()){for(u=h(t),(c=e.getAttribute(\"id\"))?p=c.replace(xe,\"\\\\$&\"):e.setAttribute(\"id\",p),p=\"[id='\"+p+\"'] \",l=u.length;l--;)u[l]=p+d(u[l]);f=de.test(t)&&e.parentNode||e,_=u.join(\",\")}if(_)try{return te.apply(n,f.querySelectorAll(_)),n}catch(g){}finally{c||e.removeAttribute(\"id\")}}}return w(t.replace(ce,\"$1\"),e,n,r)}function r(){function t(n,r){return e.push(n+=\" \")>M.cacheLength&&delete t[e.shift()],t[n]=r}var e=[];return t}function i(t){return t[L]=!0,t}function o(t){var e=I.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--;)M.attrHandle[n[r]]=e}function a(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||Z)-(~t.sourceIndex||Z);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 c(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 p(){}function h(t,e){var r,i,o,s,a,l,u,c=V[t+\" \"];if(c)return e?0:c.slice(0);for(a=t,l=[],u=M.preFilter;a;){(!r||(i=pe.exec(a)))&&(i&&(a=a.slice(i[0].length)||a),l.push(o=[])),r=!1,(i=he.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(ce,\" \")}),a=a.slice(r.length));for(s in M.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):V(t,l).slice(0)}function d(t){for(var e=0,n=t.length,r=\"\";n>e;e++)r+=t[e].value;return r}function f(t,e,n){var r=e.dir,i=n&&\"parentNode\"===r,o=$++;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,c=H+\" \"+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[L]||(e[L]={}),(l=u[r])&&l[0]===c){if((a=l[1])===!0||a===C)return a===!0}else if(l=u[r]=[c],l[1]=t(e,n,s)||C,l[1]===!0)return!0}}function _(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[L]&&(r=m(r)),o&&!o[L]&&(o=m(o,s)),i(function(i,s,a,l){var u,c,p,h=[],d=[],f=s.length,_=i||b(e||\"*\",a.nodeType?[a]:a,[]),m=!t||!i&&e?_:g(_,h,t,a,l),y=n?o||(i?t:f||r)?[]:s:m;if(n&&n(m,y,a,l),r)for(u=g(y,d),r(u,[],a,l),c=u.length;c--;)(p=u[c])&&(y[d[c]]=!(m[d[c]]=p));if(i){if(o||t){if(o){for(u=[],c=y.length;c--;)(p=y[c])&&u.push(m[c]=p);o(null,y=[],u,l)}for(c=y.length;c--;)(p=y[c])&&(u=o?ne.call(i,p):h[c])>-1&&(i[u]=!(s[u]=p))}}else y=g(y===s?y.splice(f,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=M.relative[t[0].type],s=o||M.relative[\" \"],a=o?1:0,l=f(function(t){return t===e},s,!0),u=f(function(t){return ne.call(e,t)>-1},s,!0),c=[function(t,n,r){return!o&&(r||n!==D)||((e=n).nodeType?l(t,n,r):u(t,n,r))}];i>a;a++)if(n=M.relative[t[a].type])c=[f(_(c),n)];else{if(n=M.filter[t[a].type].apply(null,t[a].matches),n[L]){for(r=++a;i>r&&!M.relative[t[r].type];r++);return m(a>1&&_(c),a>1&&d(t.slice(0,a-1).concat({value:\" \"===t[a-2].type?\"*\":\"\"})).replace(ce,\"$1\"),n,r>a&&y(t.slice(a,r)),i>r&&y(t=t.slice(r)),i>r&&d(t))}c.push(n)}return _(c)}function v(t,e){var r=0,o=e.length>0,s=t.length>0,a=function(i,a,l,u,c){var p,h,d,f=[],_=0,m=\"0\",y=i&&[],v=null!=c,b=D,w=i||s&&M.find.TAG(\"*\",c&&a.parentNode||a),x=H+=null==b?1:Math.random()||.1;for(v&&(D=a!==I&&a,C=r);null!=(p=w[m]);m++){if(s&&p){for(h=0;d=t[h++];)if(d(p,a,l)){u.push(p);break}v&&(H=x,C=++r)}o&&((p=!d&&p)&&_--,i&&y.push(p))}if(_+=m,o&&m!==_){for(h=0;d=e[h++];)d(y,f,a,l);if(i){if(_>0)for(;m--;)y[m]||f[m]||(f[m]=Q.call(u));f=g(f)}te.apply(u,f),v&&!i&&f.length>0&&_+e.length>1&&n.uniqueSort(u)}return v&&(H=x,D=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=h(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&&N&&M.relative[o[1].type]){if(e=(M.find.ID(s.matches[0].replace(ke,Ce),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],!M.relative[a=s.type]);)if((l=M.find[a])&&(r=l(s.matches[0].replace(ke,Ce),de.test(o[0].type)&&e.parentNode||e))){if(o.splice(i,1),t=r.length&&d(o),!t)return te.apply(n,r),n;break}}return T(t,u)(r,e,!N,n,de.test(t)),n}var x,k,C,M,A,S,T,D,E,R,I,P,N,z,O,j,F,L=\"sizzle\"+-new Date,B=t.document,H=0,$=0,W=r(),V=r(),Y=r(),U=!1,q=function(t,e){return t===e?(U=!0,0):0},G=typeof e,Z=1<<31,J={}.hasOwnProperty,X=[],Q=X.pop,K=X.push,te=X.push,ee=X.slice,ne=X.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]\",se=\"(?:\\\\\\\\.|[\\\\w-]|[^\\\\x00-\\\\xa0])+\",ae=se.replace(\"w\",\"w#\"),le=\"\\\\[\"+ie+\"*(\"+se+\")\"+ie+\"*(?:([*^$|!~]?=)\"+ie+\"*(?:(['\\\"])((?:\\\\\\\\.|[^\\\\\\\\])*?)\\\\3|(\"+ae+\")|)|)\"+ie+\"*\\\\]\",ue=\":(\"+se+\")(?:\\\\(((['\\\"])((?:\\\\\\\\.|[^\\\\\\\\])*?)\\\\3|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\"+le.replace(3,8)+\")*)|.*)\\\\)|)\",ce=RegExp(\"^\"+ie+\"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\"+ie+\"+$\",\"g\"),pe=RegExp(\"^\"+ie+\"*,\"+ie+\"*\"),he=RegExp(\"^\"+ie+\"*([>+~]|\"+ie+\")\"+ie+\"*\"),de=RegExp(ie+\"*[+~]\"),fe=RegExp(\"=\"+ie+\"*([^\\\\]'\\\"]*)\"+ie+\"*\\\\]\",\"g\"),_e=RegExp(ue),ge=RegExp(\"^\"+ae+\"$\"),me={ID:RegExp(\"^#(\"+se+\")\"),CLASS:RegExp(\"^\\\\.(\"+se+\")\"),TAG:RegExp(\"^(\"+se.replace(\"w\",\"w*\")+\")\"),ATTR:RegExp(\"^\"+le),PSEUDO:RegExp(\"^\"+ue),CHILD:RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+ie+\"*(even|odd|(([+-]|)(\\\\d*)n|)\"+ie+\"*(?:([+-]|)\"+ie+\"*(\\\\d+)|))\"+ie+\"*\\\\)|)\",\"i\"),bool:RegExp(\"^(?:\"+re+\")$\",\"i\"),needsContext: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=RegExp(\"\\\\\\\\([\\\\da-f]{1,6}\"+ie+\"?|(\"+ie+\")|.)\",\"ig\"),Ce=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(X=ee.call(B.childNodes),B.childNodes),X[B.childNodes.length].nodeType}catch(Me){te={apply:X.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}}}S=n.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?\"HTML\"!==e.nodeName:!1},k=n.support={},R=n.setDocument=function(t){var n=t?t.ownerDocument||t:B,r=n.defaultView;return n!==I&&9===n.nodeType&&n.documentElement?(I=n,P=n.documentElement,N=!S(n),r&&r.attachEvent&&r!==r.top&&r.attachEvent(\"onbeforeunload\",function(){R()}),k.attributes=o(function(t){return t.className=\"i\",!t.getAttribute(\"className\")}),k.getElementsByTagName=o(function(t){return t.appendChild(n.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 P.appendChild(t).id=L,!n.getElementsByName||!n.getElementsByName(L).length}),k.getById?(M.find.ID=function(t,e){if(typeof e.getElementById!==G&&N){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},M.filter.ID=function(t){var e=t.replace(ke,Ce);return function(t){return t.getAttribute(\"id\")===e}}):(delete M.find.ID,M.filter.ID=function(t){var e=t.replace(ke,Ce);return function(t){var n=typeof t.getAttributeNode!==G&&t.getAttributeNode(\"id\");return n&&n.value===e}}),M.find.TAG=k.getElementsByTagName?function(t,n){return typeof n.getElementsByTagName!==G?n.getElementsByTagName(t):e}: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},M.find.CLASS=k.getElementsByClassName&&function(t,n){return typeof n.getElementsByClassName!==G&&N?n.getElementsByClassName(t):e},O=[],z=[],(k.qsa=ye.test(n.querySelectorAll))&&(o(function(t){t.innerHTML=\"<select><option selected=''></option></select>\",t.querySelectorAll(\"[selected]\").length||z.push(\"\\\\[\"+ie+\"*(?:value|\"+re+\")\"),t.querySelectorAll(\":checked\").length||z.push(\":checked\")}),o(function(t){var e=n.createElement(\"input\");e.setAttribute(\"type\",\"hidden\"),t.appendChild(e).setAttribute(\"t\",\"\"),t.querySelectorAll(\"[t^='']\").length&&z.push(\"[*^$]=\"+ie+\"*(?:''|\\\"\\\")\"),t.querySelectorAll(\":enabled\").length||z.push(\":enabled\",\":disabled\"),t.querySelectorAll(\"*,:x\"),z.push(\",.*:\")})),(k.matchesSelector=ye.test(j=P.webkitMatchesSelector||P.mozMatchesSelector||P.oMatchesSelector||P.msMatchesSelector))&&o(function(t){k.disconnectedMatch=j.call(t,\"div\"),j.call(t,\"[s!='']:x\"),O.push(\"!=\",ue)}),z=z.length&&RegExp(z.join(\"|\")),O=O.length&&RegExp(O.join(\"|\")),F=ye.test(P.contains)||P.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},q=P.compareDocumentPosition?function(t,e){if(t===e)return U=!0,0;var r=e.compareDocumentPosition&&t.compareDocumentPosition&&t.compareDocumentPosition(e);return r?1&r||!k.sortDetached&&e.compareDocumentPosition(t)===r?t===n||F(B,t)?-1:e===n||F(B,e)?1:E?ne.call(E,t)-ne.call(E,e):0:4&r?-1:1:t.compareDocumentPosition?-1:1}:function(t,e){var r,i=0,o=t.parentNode,s=e.parentNode,l=[t],u=[e];if(t===e)return U=!0,0;if(!o||!s)return t===n?-1:e===n?1:o?-1:s?1:E?ne.call(E,t)-ne.call(E,e):0;if(o===s)return a(t,e);for(r=t;r=r.parentNode;)l.unshift(r);for(r=e;r=r.parentNode;)u.unshift(r);for(;l[i]===u[i];)i++;return i?a(l[i],u[i]):l[i]===B?-1:u[i]===B?1:0},n):I},n.matches=function(t,e){return n(t,null,null,e)},n.matchesSelector=function(t,e){if((t.ownerDocument||t)!==I&&R(t),e=e.replace(fe,\"='$1']\"),!(!k.matchesSelector||!N||O&&O.test(e)||z&&z.test(e)))try{var r=j.call(t,e);if(r||k.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(i){}return n(e,I,null,[t]).length>0},n.contains=function(t,e){return(t.ownerDocument||t)!==I&&R(t),F(t,e)},n.attr=function(t,n){(t.ownerDocument||t)!==I&&R(t);var r=M.attrHandle[n.toLowerCase()],i=r&&J.call(M.attrHandle,n.toLowerCase())?r(t,n,!N):e;return i===e?k.attributes||!N?t.getAttribute(n):(i=t.getAttributeNode(n))&&i.specified?i.value:null:i},n.error=function(t){throw Error(\"Syntax error, unrecognized expression: \"+t)},n.uniqueSort=function(t){var e,n=[],r=0,i=0;if(U=!k.detectDuplicates,E=!k.sortStable&&t.slice(0),t.sort(q),U){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return t},A=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+=A(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r];r++)n+=A(e);return n},M=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,Ce),t[3]=(t[4]||t[5]||\"\").replace(ke,Ce),\"~=\"===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&&_e.test(r)&&(n=h(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,Ce).toLowerCase();return\"*\"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=W[t+\" \"];return e||(e=RegExp(\"(^|\"+ie+\")\"+t+\"(\"+ie+\"|$)\"))&&W(t,function(t){return e.test(\"string\"==typeof t.className&&t.className||typeof t.getAttribute!==G&&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,c,p,h,d,f,_=o!==s?\"nextSibling\":\"previousSibling\",g=e.parentNode,m=a&&e.nodeName.toLowerCase(),y=!l&&!a;if(g){if(o){for(;_;){for(p=e;p=p[_];)if(a?p.nodeName.toLowerCase()===m:1===p.nodeType)return!1;f=_=\"only\"===t&&!f&&\"nextSibling\"}return!0}if(f=[s?g.firstChild:g.lastChild],s&&y){for(c=g[L]||(g[L]={}),u=c[t]||[],d=u[0]===H&&u[1],h=u[0]===H&&u[2],p=d&&g.childNodes[d];p=++d&&p&&p[_]||(h=d=0)||f.pop();)if(1===p.nodeType&&++h&&p===e){c[t]=[H,d,h];break}}else if(y&&(u=(e[L]||(e[L]={}))[t])&&u[0]===H)h=u[1];else for(;(p=++d&&p&&p[_]||(h=d=0)||f.pop())&&((a?p.nodeName.toLowerCase()!==m:1!==p.nodeType)||!++h||(y&&((p[L]||(p[L]={}))[t]=[H,h]),p!==e)););return h-=i,h===r||0===h%r&&h/r>=0}}},PSEUDO:function(t,e){var r,o=M.pseudos[t]||M.setFilters[t.toLowerCase()]||n.error(\"unsupported pseudo: \"+t);return o[L]?o(e):o.length>1?(r=[t,t,\"\",e],M.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=T(t.replace(ce,\"$1\"));return r[L]?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||A(e)).indexOf(t)>-1}}),lang:i(function(t){return ge.test(t||\"\")||n.error(\"unsupported lang: \"+t),t=t.replace(ke,Ce).toLowerCase(),function(e){var n;do if(n=N?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===P},focus:function(t){return t===I.activeElement&&(!I.hasFocus||I.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!M.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:c(function(){return[0]}),last:c(function(t,e){return[e-1]}),eq:c(function(t,e,n){return[0>n?n+e:n]}),even:c(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:c(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:c(function(t,e,n){for(var r=0>n?n+e:n;--r>=0;)t.push(r);return t}),gt:c(function(t,e,n){for(var r=0>n?n+e:n;e>++r;)t.push(r);return t})}},M.pseudos.nth=M.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})M.pseudos[x]=l(x);for(x in{submit:!0,reset:!0})M.pseudos[x]=u(x);p.prototype=M.filters=M.pseudos,M.setFilters=new p,T=n.compile=function(t,e){var n,r=[],i=[],o=Y[t+\" \"];if(!o){for(e||(e=h(t)),n=e.length;n--;)o=y(e[n]),o[L]?r.push(o):i.push(o);o=Y(t,v(i,r))}return o},k.sortStable=L.split(\"\").sort(q).join(\"\")===L,k.detectDuplicates=U,R(),k.sortDetached=o(function(t){return 1&t.compareDocumentPosition(I.createElement(\"div\"))}),o(function(t){return t.innerHTML=\"<a href='#'></a>\",\"#\"===t.firstChild.getAttribute(\"href\")})||s(\"type|href|height|width\",function(t,n,r){return r?e:t.getAttribute(n,\"type\"===n.toLowerCase()?1:2)}),k.attributes&&o(function(t){return t.innerHTML=\"<input/>\",t.firstChild.setAttribute(\"value\",\"\"),\"\"===t.firstChild.getAttribute(\"value\")})||s(\"value\",function(t,n,r){return r||\"input\"!==t.nodeName.toLowerCase()?e:t.defaultValue}),o(function(t){return null==t.getAttribute(\"disabled\")})||s(re,function(t,n,r){var i;return r?e:(i=t.getAttributeNode(n))&&i.specified?i.value:t[n]===!0?n.toLowerCase():null}),oe.find=n,oe.expr=n.selectors,oe.expr[\":\"]=oe.expr.pseudos,oe.unique=n.uniqueSort,oe.text=n.getText,oe.isXMLDoc=n.isXML,oe.contains=n.contains}(t);var fe={};oe.Callbacks=function(t){t=\"string\"==typeof t?fe[t]||r(t):oe.extend({},t);var n,i,o,s,a,l,u=[],c=!t.once&&[],p=function(e){for(n=t.memory&&e,i=!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&&(c?c.length&&p(c.shift()):n?u=[]:h.disable())},h={add:function(){if(u){var e=u.length;!function r(e){oe.each(e,function(e,n){var i=oe.type(n);\"function\"===i?t.unique&&h.has(n)||u.push(n):n&&n.length&&\"string\"!==i&&r(n)})}(arguments),o?a=u.length:n&&(s=e,p(n))}return this},remove:function(){return u&&oe.each(arguments,function(t,e){for(var n;(n=oe.inArray(e,u,n))>-1;)u.splice(n,1),o&&(a>=n&&a--,l>=n&&l--)}),this},has:function(t){return t?oe.inArray(t,u)>-1:!(!u||!u.length)},empty:function(){return u=[],a=0,this},disable:function(){return u=c=n=e,this},disabled:function(){return!u},lock:function(){return c=e,n||h.disable(),this},locked:function(){return!c},fireWith:function(t,e){return!u||i&&!c||(e=e||[],e=[t,e.slice?e.slice():e],o?c.push(e):p(e)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!i}};return h},oe.extend({Deferred:function(t){var e=[[\"resolve\",\"done\",oe.Callbacks(\"once memory\"),\"resolved\"],[\"reject\",\"fail\",oe.Callbacks(\"once memory\"),\"rejected\"],[\"notify\",\"progress\",oe.Callbacks(\"memory\")]],n=\"pending\",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return oe.Deferred(function(n){oe.each(e,function(e,o){var s=o[0],a=oe.isFunction(t[e])&&t[e];i[o[1]](function(){var t=a&&a.apply(this,arguments);t&&oe.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?oe.extend(t,r):r}},i={};return r.pipe=r.then,oe.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=te.call(arguments),s=o.length,a=1!==s||t&&oe.isFunction(t.promise)?s:0,l=1===a?t:oe.Deferred(),u=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?te.call(arguments):i,r===e?l.notifyWith(n,r):--a||l.resolveWith(n,r)}};if(s>1)for(e=Array(s),n=Array(s),r=Array(s);s>i;i++)o[i]&&oe.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()}}),oe.support=function(e){var n=Y.createElement(\"input\"),r=Y.createDocumentFragment(),i=Y.createElement(\"div\"),o=Y.createElement(\"select\"),s=o.appendChild(Y.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=Y.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,oe(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=Y.getElementsByTagName(\"body\")[0];s&&(n=Y.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%\",oe.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(Y.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 _e,ge,me=/(?:\\{[\\s\\S]*\\}|\\[[\\s\\S]*\\])$/,ye=/([A-Z])/g;i.uid=1,i.accepts=function(t){return t.nodeType?1===t.nodeType||9===t.nodeType:!0},i.prototype={key:function(t){if(!i.accepts(t))return 0;var e={},n=t[this.expando];if(!n){n=i.uid++;try{e[this.expando]={value:n},Object.defineProperties(t,e)}catch(r){e[this.expando]=n,oe.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(oe.isEmptyObject(o))oe.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,oe.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{oe.isArray(n)?i=n.concat(n.map(oe.camelCase)):(o=oe.camelCase(n),n in a?i=[n,o]:(i=o,i=i in a?[i]:i.match(ae)||[])),r=i.length;for(;r--;)delete a[i[r]]}},hasData:function(t){return!oe.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}},_e=new i,ge=new i,oe.extend({acceptData:i.accepts,hasData:function(t){return _e.hasData(t)||ge.hasData(t)},data:function(t,e,n){return _e.access(t,e,n)},removeData:function(t,e){_e.remove(t,e)},_data:function(t,e,n){return ge.access(t,e,n)},_removeData:function(t,e){ge.remove(t,e)}}),oe.fn.extend({data:function(t,n){var r,i,s=this[0],a=0,l=null;if(t===e){if(this.length&&(l=_e.get(s),1===s.nodeType&&!ge.get(s,\"hasDataAttrs\"))){for(r=s.attributes;r.length>a;a++)i=r[a].name,0===i.indexOf(\"data-\")&&(i=oe.camelCase(i.slice(5)),o(s,i,l[i]));ge.set(s,\"hasDataAttrs\",!0)}return l}return\"object\"==typeof t?this.each(function(){_e.set(this,t)}):oe.access(this,function(n){var r,i=oe.camelCase(t);if(s&&n===e){if(r=_e.get(s,t),r!==e)return r;if(r=_e.get(s,i),r!==e)return r;if(r=o(s,i,e),r!==e)return r}else this.each(function(){var r=_e.get(this,i);_e.set(this,i,n),-1!==t.indexOf(\"-\")&&r!==e&&_e.set(this,t,n)})},null,n,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){_e.remove(this,t)})}}),oe.extend({queue:function(t,n,r){var i;return t?(n=(n||\"fx\")+\"queue\",i=ge.get(t,n),r&&(!i||oe.isArray(r)?i=ge.access(t,n,oe.makeArray(r)):i.push(r)),i||[]):e},dequeue:function(t,e){e=e||\"fx\";var n=oe.queue(t,e),r=n.length,i=n.shift(),o=oe._queueHooks(t,e),s=function(){oe.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 ge.get(t,n)||ge.access(t,n,{empty:oe.Callbacks(\"once memory\").add(function(){ge.remove(t,[e+\"queue\",n])})})}}),oe.fn.extend({queue:function(t,n){var r=2;return\"string\"!=typeof t&&(n=t,t=\"fx\",r--),r>arguments.length?oe.queue(this[0],t):n===e?this:this.each(function(){var e=oe.queue(this,t,n);oe._queueHooks(this,t),\"fx\"===t&&\"inprogress\"!==e[0]&&oe.dequeue(this,t)})},dequeue:function(t){return this.each(function(){oe.dequeue(this,t)})},delay:function(t,e){return t=oe.fx?oe.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=oe.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=ge.get(s[a],t+\"queueHooks\"),r&&r.empty&&(i++,r.empty.add(l));return l(),o.promise(n)}});var ve,be,we=/[\\t\\r\\n\\f]/g,xe=/\\r/g,ke=/^(?:input|select|textarea|button)$/i;oe.fn.extend({attr:function(t,e){return oe.access(this,oe.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){oe.removeAttr(this,t)})},prop:function(t,e){return oe.access(this,oe.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[oe.propFix[t]||t]})},addClass:function(t){var e,n,r,i,o,s=0,a=this.length,l=\"string\"==typeof t&&t;if(oe.isFunction(t))return this.each(function(e){oe(this).addClass(t.call(this,e,this.className))});if(l)for(e=(t||\"\").match(ae)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(\" \"+n.className+\" \").replace(we,\" \"):\" \")){for(o=0;i=e[o++];)0>r.indexOf(\" \"+i+\" \")&&(r+=i+\" \");n.className=oe.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(oe.isFunction(t))return this.each(function(e){oe(this).removeClass(t.call(this,e,this.className))});if(l)for(e=(t||\"\").match(ae)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(\" \"+n.className+\" \").replace(we,\" \"):\"\")){for(o=0;i=e[o++];)for(;r.indexOf(\" \"+i+\" \")>=0;)r=r.replace(\" \"+i+\" \",\" \");n.className=t?oe.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):this.each(oe.isFunction(t)?function(n){oe(this).toggleClass(t.call(this,n,this.className,e),e)}:function(){if(\"string\"===n)for(var e,r=0,i=oe(this),o=t.match(ae)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else(n===W||\"boolean\"===n)&&(this.className&&ge.set(this,\"__className__\",this.className),this.className=this.className||t===!1?\"\":ge.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(we,\" \").indexOf(e)>=0)return!0;return!1},val:function(t){var n,r,i,o=this[0];return arguments.length?(i=oe.isFunction(t),this.each(function(r){var o;1===this.nodeType&&(o=i?t.call(this,r,oe(this).val()):t,null==o?o=\"\":\"number\"==typeof o?o+=\"\":oe.isArray(o)&&(o=oe.map(o,function(t){return null==t?\"\":t+\"\"})),n=oe.valHooks[this.type]||oe.valHooks[this.nodeName.toLowerCase()],n&&\"set\"in n&&n.set(this,o,\"value\")!==e||(this.value=o))})):o?(n=oe.valHooks[o.type]||oe.valHooks[o.nodeName.toLowerCase()],n&&\"get\"in n&&(r=n.get(o,\"value\"))!==e?r:(r=o.value,\"string\"==typeof r?r.replace(xe,\"\"):null==r?\"\":r)):void 0}}),oe.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||(oe.support.optDisabled?n.disabled:null!==n.getAttribute(\"disabled\"))||n.parentNode.disabled&&oe.nodeName(n.parentNode,\"optgroup\"))){if(e=oe(n).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var n,r,i=t.options,o=oe.makeArray(e),s=i.length;s--;)r=i[s],(r.selected=oe.inArray(oe(r).val(),o)>=0)&&(n=!0);return n||(t.selectedIndex=-1),o}}},attr:function(t,n,r){var i,o,s=t.nodeType;return t&&3!==s&&8!==s&&2!==s?typeof t.getAttribute===W?oe.prop(t,n,r):(1===s&&oe.isXMLDoc(t)||(n=n.toLowerCase(),i=oe.attrHooks[n]||(oe.expr.match.bool.test(n)?be:ve)),r===e?i&&\"get\"in i&&null!==(o=i.get(t,n))?o:(o=oe.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):(oe.removeAttr(t,n),e)):void 0},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(ae);if(o&&1===t.nodeType)for(;n=o[i++];)r=oe.propFix[n]||n,oe.expr.match.bool.test(n)&&(t[r]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!oe.support.radioValue&&\"radio\"===e&&oe.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;return t&&3!==a&&8!==a&&2!==a?(s=1!==a||!oe.isXMLDoc(t),s&&(n=oe.propFix[n]||n,o=oe.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]):void 0},propHooks:{tabIndex:{get:function(t){return t.hasAttribute(\"tabindex\")||ke.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),be={set:function(t,e,n){return e===!1?oe.removeAttr(t,n):t.setAttribute(n,n),n}},oe.each(oe.expr.match.bool.source.match(/\\w+/g),function(t,n){var r=oe.expr.attrHandle[n]||oe.find.attr;oe.expr.attrHandle[n]=function(t,n,i){var o=oe.expr.attrHandle[n],s=i?e:(oe.expr.attrHandle[n]=e)!=r(t,n,i)?n.toLowerCase():null;return oe.expr.attrHandle[n]=o,s}}),oe.support.optSelected||(oe.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),oe.each([\"tabIndex\",\"readOnly\",\"maxLength\",\"cellSpacing\",\"cellPadding\",\"rowSpan\",\"colSpan\",\"useMap\",\"frameBorder\",\"contentEditable\"],function(){oe.propFix[this.toLowerCase()]=this}),oe.each([\"radio\",\"checkbox\"],function(){oe.valHooks[this]={set:function(t,n){return oe.isArray(n)?t.checked=oe.inArray(oe(t).val(),n)>=0:e}},oe.support.checkOn||(oe.valHooks[this].get=function(t){return null===t.getAttribute(\"value\")?\"on\":t.value})});var Ce=/^key/,Me=/^(?:mouse|contextmenu)|click/,Ae=/^(?:focusinfocus|focusoutblur)$/,Se=/^([^.]*)(?:\\.(.+)|)$/;oe.event={global:{},add:function(t,n,r,i,o){var s,a,l,u,c,p,h,d,f,_,g,m=ge.get(t);\n",
        "                if(m){for(r.handler&&(s=r,r=s.handler,o=s.selector),r.guid||(r.guid=oe.guid++),(u=m.events)||(u=m.events={}),(a=m.handle)||(a=m.handle=function(t){return typeof oe===W||t&&oe.event.triggered===t.type?e:oe.event.dispatch.apply(a.elem,arguments)},a.elem=t),n=(n||\"\").match(ae)||[\"\"],c=n.length;c--;)l=Se.exec(n[c])||[],f=g=l[1],_=(l[2]||\"\").split(\".\").sort(),f&&(h=oe.event.special[f]||{},f=(o?h.delegateType:h.bindType)||f,h=oe.event.special[f]||{},p=oe.extend({type:f,origType:g,data:i,handler:r,guid:r.guid,selector:o,needsContext:o&&oe.expr.match.needsContext.test(o),namespace:_.join(\".\")},s),(d=u[f])||(d=u[f]=[],d.delegateCount=0,h.setup&&h.setup.call(t,i,_,a)!==!1||t.addEventListener&&t.addEventListener(f,a,!1)),h.add&&(h.add.call(t,p),p.handler.guid||(p.handler.guid=r.guid)),o?d.splice(d.delegateCount++,0,p):d.push(p),oe.event.global[f]=!0);t=null}},remove:function(t,e,n,r,i){var o,s,a,l,u,c,p,h,d,f,_,g=ge.hasData(t)&&ge.get(t);if(g&&(l=g.events)){for(e=(e||\"\").match(ae)||[\"\"],u=e.length;u--;)if(a=Se.exec(e[u])||[],d=_=a[1],f=(a[2]||\"\").split(\".\").sort(),d){for(p=oe.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,h=l[d]||[],a=a[2]&&RegExp(\"(^|\\\\.)\"+f.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"),s=o=h.length;o--;)c=h[o],!i&&_!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&(\"**\"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,p.remove&&p.remove.call(t,c));s&&!h.length&&(p.teardown&&p.teardown.call(t,f,g.handle)!==!1||oe.removeEvent(t,d,g.handle),delete l[d])}else for(d in l)oe.event.remove(t,d+e[u],n,r,!0);oe.isEmptyObject(l)&&(delete g.handle,ge.remove(t,\"events\"))}},trigger:function(n,r,i,o){var s,a,l,u,c,p,h,d=[i||Y],f=re.call(n,\"type\")?n.type:n,_=re.call(n,\"namespace\")?n.namespace.split(\".\"):[];if(a=l=i=i||Y,3!==i.nodeType&&8!==i.nodeType&&!Ae.test(f+oe.event.triggered)&&(f.indexOf(\".\")>=0&&(_=f.split(\".\"),f=_.shift(),_.sort()),c=0>f.indexOf(\":\")&&\"on\"+f,n=n[oe.expando]?n:new oe.Event(f,\"object\"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=_.join(\".\"),n.namespace_re=n.namespace?RegExp(\"(^|\\\\.)\"+_.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"):null,n.result=e,n.target||(n.target=i),r=null==r?[n]:oe.makeArray(r,[n]),h=oe.event.special[f]||{},o||!h.trigger||h.trigger.apply(i,r)!==!1)){if(!o&&!h.noBubble&&!oe.isWindow(i)){for(u=h.delegateType||f,Ae.test(u+f)||(a=a.parentNode);a;a=a.parentNode)d.push(a),l=a;l===(i.ownerDocument||Y)&&d.push(l.defaultView||l.parentWindow||t)}for(s=0;(a=d[s++])&&!n.isPropagationStopped();)n.type=s>1?u:h.bindType||f,p=(ge.get(a,\"events\")||{})[n.type]&&ge.get(a,\"handle\"),p&&p.apply(a,r),p=c&&a[c],p&&oe.acceptData(a)&&p.apply&&p.apply(a,r)===!1&&n.preventDefault();return n.type=f,o||n.isDefaultPrevented()||h._default&&h._default.apply(d.pop(),r)!==!1||!oe.acceptData(i)||c&&oe.isFunction(i[f])&&!oe.isWindow(i)&&(l=i[c],l&&(i[c]=null),oe.event.triggered=f,i[f](),oe.event.triggered=e,l&&(i[c]=l)),n.result}},dispatch:function(t){t=oe.event.fix(t);var n,r,i,o,s,a=[],l=te.call(arguments),u=(ge.get(this,\"events\")||{})[t.type]||[],c=oe.event.special[t.type]||{};if(l[0]=t,t.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,t)!==!1){for(a=oe.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=((oe.event.special[s.origType]||{}).handle||s.handler).apply(o.elem,l),i!==e&&(t.result=i)===!1&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.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?oe(o,this).index(u)>=0:oe.find(o,this,null,[u]).length),i[o]&&i.push(s);i.length&&a.push({elem:u,handlers:i})}return n.length>l&&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||Y,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[oe.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 oe.Event(o),e=r.length;e--;)n=r[e],t[n]=o[n];return t.target||(t.target=Y),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!==l()&&this.focus?(this.focus(),!1):e},delegateType:\"focusin\"},blur:{trigger:function(){return this===l()&&this.blur?(this.blur(),!1):e},delegateType:\"focusout\"},click:{trigger:function(){return\"checkbox\"===this.type&&this.click&&oe.nodeName(this,\"input\")?(this.click(),!1):e},_default:function(t){return oe.nodeName(t.target,\"a\")}},beforeunload:{postDispatch:function(t){t.result!==e&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=oe.extend(new oe.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?oe.event.trigger(i,null,e):oe.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},oe.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},oe.Event=function(t,n){return this instanceof oe.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.getPreventDefault&&t.getPreventDefault()?s:a):this.type=t,n&&oe.extend(this,n),this.timeStamp=t&&t.timeStamp||oe.now(),this[oe.expando]=!0,e):new oe.Event(t,n)},oe.Event.prototype={isDefaultPrevented:a,isPropagationStopped:a,isImmediatePropagationStopped:a,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=s,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=s,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=s,this.stopPropagation()}},oe.each({mouseenter:\"mouseover\",mouseleave:\"mouseout\"},function(t,e){oe.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return(!i||i!==r&&!oe.contains(r,i))&&(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),oe.support.focusinBubbles||oe.each({focus:\"focusin\",blur:\"focusout\"},function(t,e){var n=0,r=function(t){oe.event.simulate(e,t.target,oe.event.fix(t),!0)};oe.event.special[e]={setup:function(){0===n++&&Y.addEventListener(t,r,!0)},teardown:function(){0===--n&&Y.removeEventListener(t,r,!0)}}}),oe.fn.extend({on:function(t,n,r,i,o){var s,l;if(\"object\"==typeof t){\"string\"!=typeof n&&(r=r||n,n=e);for(l in t)this.on(l,n,r,t[l],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=a;else if(!i)return this;return 1===o&&(s=i,i=function(t){return oe().off(t),s.apply(this,arguments)},i.guid=s.guid||(s.guid=oe.guid++)),this.each(function(){oe.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,oe(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=a),this.each(function(){oe.event.remove(this,t,r,n)})},trigger:function(t,e){return this.each(function(){oe.event.trigger(t,e,this)})},triggerHandler:function(t,n){var r=this[0];return r?oe.event.trigger(t,n,r,!0):e}});var Te=/^.[^:#\\[\\.,]*$/,De=/^(?:parents|prev(?:Until|All))/,Ee=oe.expr.match.needsContext,Re={children:!0,contents:!0,next:!0,prev:!0};oe.fn.extend({find:function(t){var e,n=[],r=this,i=r.length;if(\"string\"!=typeof t)return this.pushStack(oe(t).filter(function(){for(e=0;i>e;e++)if(oe.contains(r[e],this))return!0}));for(e=0;i>e;e++)oe.find(t,r[e],n);return n=this.pushStack(i>1?oe.unique(n):n),n.selector=this.selector?this.selector+\" \"+t:t,n},has:function(t){var e=oe(t,this),n=e.length;return this.filter(function(){for(var t=0;n>t;t++)if(oe.contains(this,e[t]))return!0})},not:function(t){return this.pushStack(c(this,t||[],!0))},filter:function(t){return this.pushStack(c(this,t||[],!1))},is:function(t){return!!c(this,\"string\"==typeof t&&Ee.test(t)?oe(t):t||[],!1).length},closest:function(t,e){for(var n,r=0,i=this.length,o=[],s=Ee.test(t)||\"string\"!=typeof t?oe(t,e||this.context):0;i>r;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(11>n.nodeType&&(s?s.index(n)>-1:1===n.nodeType&&oe.find.matchesSelector(n,t))){n=o.push(n);break}return this.pushStack(o.length>1?oe.unique(o):o)},index:function(t){return t?\"string\"==typeof t?ee.call(oe(t),this[0]):ee.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?oe(t,e):oe.makeArray(t&&t.nodeType?[t]:t),r=oe.merge(this.get(),n);return this.pushStack(oe.unique(r))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),oe.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return oe.dir(t,\"parentNode\")},parentsUntil:function(t,e,n){return oe.dir(t,\"parentNode\",n)},next:function(t){return u(t,\"nextSibling\")},prev:function(t){return u(t,\"previousSibling\")},nextAll:function(t){return oe.dir(t,\"nextSibling\")},prevAll:function(t){return oe.dir(t,\"previousSibling\")},nextUntil:function(t,e,n){return oe.dir(t,\"nextSibling\",n)},prevUntil:function(t,e,n){return oe.dir(t,\"previousSibling\",n)},siblings:function(t){return oe.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return oe.sibling(t.firstChild)},contents:function(t){return t.contentDocument||oe.merge([],t.childNodes)}},function(t,e){oe.fn[t]=function(n,r){var i=oe.map(this,e,n);return\"Until\"!==t.slice(-5)&&(r=n),r&&\"string\"==typeof r&&(i=oe.filter(r,i)),this.length>1&&(Re[t]||oe.unique(i),De.test(t)&&i.reverse()),this.pushStack(i)}}),oe.extend({filter:function(t,e,n){var r=e[0];return n&&(t=\":not(\"+t+\")\"),1===e.length&&1===r.nodeType?oe.find.matchesSelector(r,t)?[r]:[]:oe.find.matches(t,oe.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&&oe(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 Ie=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:]+)[^>]*)\\/>/gi,Pe=/<([\\w:]+)/,Ne=/<|&#?\\w+;/,ze=/<(?:script|style|link)/i,Oe=/^(?:checkbox|radio)$/i,je=/checked\\s*(?:[^=]|=\\s*.checked.)/i,Fe=/^$|\\/(?:java|ecma)script/i,Le=/^true\\/(.*)/,Be=/^\\s*<!(?:\\[CDATA\\[|--)|(?:\\]\\]|--)>\\s*$/g,He={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,\"\",\"\"]};He.optgroup=He.option,He.tbody=He.tfoot=He.colgroup=He.caption=He.thead,He.th=He.td,oe.fn.extend({text:function(t){return oe.access(this,function(t){return t===e?oe.text(this):this.empty().append((this[0]&&this[0].ownerDocument||Y).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=p(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=p(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?oe.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||oe.cleanData(g(n)),n.parentNode&&(e&&oe.contains(n.ownerDocument,n)&&f(g(n,\"script\")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(oe.cleanData(g(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 oe.clone(this,t,e)})},html:function(t){return oe.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&&!ze.test(t)&&!He[(Pe.exec(t)||[\"\",\"\"])[1].toLowerCase()]){t=t.replace(Ie,\"<$1></$2>\");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(oe.cleanData(g(n,!1)),n.innerHTML=t);n=0}catch(o){}}n&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=oe.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),oe(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=Q.apply([],t);var r,i,o,s,a,l,u=0,c=this.length,p=this,f=c-1,_=t[0],m=oe.isFunction(_);if(m||!(1>=c||\"string\"!=typeof _||oe.support.checkClone)&&je.test(_))return this.each(function(r){var i=p.eq(r);m&&(t[0]=_.call(this,r,i.html())),i.domManip(t,e,n)});if(c&&(r=oe.buildFragment(t,this[0].ownerDocument,!1,!n&&this),i=r.firstChild,1===r.childNodes.length&&(r=i),i)){for(o=oe.map(g(r,\"script\"),h),s=o.length;c>u;u++)a=r,u!==f&&(a=oe.clone(a,!0,!0),s&&oe.merge(o,g(a,\"script\"))),e.call(this[u],a,u);if(s)for(l=o[o.length-1].ownerDocument,oe.map(o,d),u=0;s>u;u++)a=o[u],Fe.test(a.type||\"\")&&!ge.access(a,\"globalEval\")&&oe.contains(l,a)&&(a.src?oe._evalUrl(a.src):oe.globalEval(a.textContent.replace(Be,\"\")))}return this}}),oe.each({appendTo:\"append\",prependTo:\"prepend\",insertBefore:\"before\",insertAfter:\"after\",replaceAll:\"replaceWith\"},function(t,e){oe.fn[t]=function(t){for(var n,r=[],i=oe(t),o=i.length-1,s=0;o>=s;s++)n=s===o?this:this.clone(!0),oe(i[s])[e](n),K.apply(r,n.get());return this.pushStack(r)}}),oe.extend({clone:function(t,e,n){var r,i,o,s,a=t.cloneNode(!0),l=oe.contains(t.ownerDocument,t);if(!(oe.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||oe.isXMLDoc(t)))for(s=g(a),o=g(t),r=0,i=o.length;i>r;r++)m(o[r],s[r]);if(e)if(n)for(o=o||g(t),s=s||g(a),r=0,i=o.length;i>r;r++)_(o[r],s[r]);else _(t,a);return s=g(a,\"script\"),s.length>0&&f(s,!l&&g(t,\"script\")),a},buildFragment:function(t,e,n,r){for(var i,o,s,a,l,u,c=0,p=t.length,h=e.createDocumentFragment(),d=[];p>c;c++)if(i=t[c],i||0===i)if(\"object\"===oe.type(i))oe.merge(d,i.nodeType?[i]:i);else if(Ne.test(i)){for(o=o||h.appendChild(e.createElement(\"div\")),s=(Pe.exec(i)||[\"\",\"\"])[1].toLowerCase(),a=He[s]||He._default,o.innerHTML=a[1]+i.replace(Ie,\"<$1></$2>\")+a[2],u=a[0];u--;)o=o.lastChild;oe.merge(d,o.childNodes),o=h.firstChild,o.textContent=\"\"}else d.push(e.createTextNode(i));for(h.textContent=\"\",c=0;i=d[c++];)if((!r||-1===oe.inArray(i,r))&&(l=oe.contains(i.ownerDocument,i),o=g(h.appendChild(i),\"script\"),l&&f(o),n))for(u=0;i=o[u++];)Fe.test(i.type||\"\")&&n.push(i);return h},cleanData:function(t){for(var n,r,o,s,a,l,u=oe.event.special,c=0;(r=t[c])!==e;c++){if(i.accepts(r)&&(a=r[ge.expando],a&&(n=ge.cache[a]))){if(o=Object.keys(n.events||{}),o.length)for(l=0;(s=o[l])!==e;l++)u[s]?oe.event.remove(r,s):oe.removeEvent(r,s,n.handle);ge.cache[a]&&delete ge.cache[a]}delete _e.cache[r[_e.expando]]}},_evalUrl:function(t){return oe.ajax({url:t,type:\"GET\",dataType:\"script\",async:!1,global:!1,\"throws\":!0})}}),oe.fn.extend({wrapAll:function(t){var e;return oe.isFunction(t)?this.each(function(e){oe(this).wrapAll(t.call(this,e))}):(this[0]&&(e=oe(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 this.each(oe.isFunction(t)?function(e){oe(this).wrapInner(t.call(this,e))}:function(){var e=oe(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=oe.isFunction(t);return this.each(function(n){oe(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){oe.nodeName(this,\"body\")||oe(this).replaceWith(this.childNodes)}).end()}});var $e,We,Ve=/^(none|table(?!-c[ea]).+)/,Ye=/^margin/,Ue=RegExp(\"^(\"+se+\")(.*)$\",\"i\"),qe=RegExp(\"^(\"+se+\")(?!px)[a-z%]+$\",\"i\"),Ge=RegExp(\"^([+-])=(\"+se+\")\",\"i\"),Ze={BODY:\"block\"},Je={position:\"absolute\",visibility:\"hidden\",display:\"block\"},Xe={letterSpacing:0,fontWeight:400},Qe=[\"Top\",\"Right\",\"Bottom\",\"Left\"],Ke=[\"Webkit\",\"O\",\"Moz\",\"ms\"];oe.fn.extend({css:function(t,n){return oe.access(this,function(t,n,r){var i,o,s={},a=0;if(oe.isArray(n)){for(i=b(t),o=n.length;o>a;a++)s[n[a]]=oe.css(t,n[a],!1,i);return s}return r!==e?oe.style(t,n,r):oe.css(t,n)},t,n,arguments.length>1)},show:function(){return w(this,!0)},hide:function(){return w(this)},toggle:function(t){return\"boolean\"==typeof t?t?this.show():this.hide():this.each(function(){v(this)?oe(this).show():oe(this).hide()})}}),oe.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=$e(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=oe.camelCase(n),u=t.style;return n=oe.cssProps[l]||(oe.cssProps[l]=y(u,l)),a=oe.cssHooks[n]||oe.cssHooks[l],r===e?a&&\"get\"in a&&(o=a.get(t,!1,i))!==e?o:u[n]:(s=typeof r,\"string\"===s&&(o=Ge.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(oe.css(t,n)),s=\"number\"),null==r||\"number\"===s&&isNaN(r)||(\"number\"!==s||oe.cssNumber[l]||(r+=\"px\"),oe.support.clearCloneStyle||\"\"!==r||0!==n.indexOf(\"background\")||(u[n]=\"inherit\"),a&&\"set\"in a&&(r=a.set(t,r,i))===e||(u[n]=r)),e)}},css:function(t,n,r,i){var o,s,a,l=oe.camelCase(n);return n=oe.cssProps[l]||(oe.cssProps[l]=y(t.style,l)),a=oe.cssHooks[n]||oe.cssHooks[l],a&&\"get\"in a&&(o=a.get(t,!0,r)),o===e&&(o=$e(t,n,i)),\"normal\"===o&&n in Xe&&(o=Xe[n]),\"\"===r||r?(s=parseFloat(o),r===!0||oe.isNumeric(s)?s||0:o):o}}),$e=function(t,n,r){var i,o,s,a=r||b(t),l=a?a.getPropertyValue(n)||a[n]:e,u=t.style;return a&&(\"\"!==l||oe.contains(t.ownerDocument,t)||(l=oe.style(t,n)),qe.test(l)&&Ye.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},oe.each([\"height\",\"width\"],function(t,n){oe.cssHooks[n]={get:function(t,r,i){return r?0===t.offsetWidth&&Ve.test(oe.css(t,\"display\"))?oe.swap(t,Je,function(){return C(t,n,i)}):C(t,n,i):e},set:function(t,e,r){var i=r&&b(t);return x(t,e,r?k(t,n,r,oe.support.boxSizing&&\"border-box\"===oe.css(t,\"boxSizing\",!1,i),i):0)}}}),oe(function(){oe.support.reliableMarginRight||(oe.cssHooks.marginRight={get:function(t,n){return n?oe.swap(t,{display:\"inline-block\"},$e,[t,\"marginRight\"]):e}}),!oe.support.pixelPosition&&oe.fn.position&&oe.each([\"top\",\"left\"],function(t,n){oe.cssHooks[n]={get:function(t,r){return r?(r=$e(t,n),qe.test(r)?oe(t).position()[n]+\"px\":r):e}}})}),oe.expr&&oe.expr.filters&&(oe.expr.filters.hidden=function(t){return 0>=t.offsetWidth&&0>=t.offsetHeight},oe.expr.filters.visible=function(t){return!oe.expr.filters.hidden(t)}),oe.each({margin:\"\",padding:\"\",border:\"Width\"},function(t,e){oe.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o=\"string\"==typeof n?n.split(\" \"):[n];4>r;r++)i[t+Qe[r]+e]=o[r]||o[r-2]||o[0];return i}},Ye.test(t)||(oe.cssHooks[t+e].set=x)});var tn=/%20/g,en=/\\[\\]$/,nn=/\\r?\\n/g,rn=/^(?:submit|button|image|reset|file)$/i,on=/^(?:input|select|textarea|keygen)/i;oe.fn.extend({serialize:function(){return oe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=oe.prop(this,\"elements\");return t?oe.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!oe(this).is(\":disabled\")&&on.test(this.nodeName)&&!rn.test(t)&&(this.checked||!Oe.test(t))}).map(function(t,e){var n=oe(this).val();return null==n?null:oe.isArray(n)?oe.map(n,function(t){return{name:e.name,value:t.replace(nn,\"\\r\\n\")}}):{name:e.name,value:n.replace(nn,\"\\r\\n\")}}).get()}}),oe.param=function(t,n){var r,i=[],o=function(t,e){e=oe.isFunction(e)?e():null==e?\"\":e,i[i.length]=encodeURIComponent(t)+\"=\"+encodeURIComponent(e)};if(n===e&&(n=oe.ajaxSettings&&oe.ajaxSettings.traditional),oe.isArray(t)||t.jquery&&!oe.isPlainObject(t))oe.each(t,function(){o(this.name,this.value)});else for(r in t)S(r,t[r],n,o);return i.join(\"&\").replace(tn,\"+\")},oe.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){oe.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),oe.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 sn,an,ln=oe.now(),un=/\\?/,cn=/#.*$/,pn=/([?&])_=[^&]*/,hn=/^(.*?):[ \\t]*([^\\r\\n]*)$/gm,dn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,fn=/^(?:GET|HEAD)$/,_n=/^\\/\\//,gn=/^([\\w.+-]+:)(?:\\/\\/([^\\/?#:]*)(?::(\\d+)|)|)/,mn=oe.fn.load,yn={},vn={},bn=\"*/\".concat(\"*\");try{an=V.href}catch(wn){an=Y.createElement(\"a\"),an.href=\"\",an=an.href}sn=gn.exec(an.toLowerCase())||[],oe.fn.load=function(t,n,r){if(\"string\"!=typeof t&&mn)return mn.apply(this,arguments);var i,o,s,a=this,l=t.indexOf(\" \");return l>=0&&(i=t.slice(l),t=t.slice(0,l)),oe.isFunction(n)?(r=n,n=e):n&&\"object\"==typeof n&&(o=\"POST\"),a.length>0&&oe.ajax({url:t,type:o,dataType:\"html\",data:n}).done(function(t){s=arguments,a.html(i?oe(\"<div>\").append(oe.parseHTML(t)).find(i):t)}).complete(r&&function(t,e){a.each(r,s||[t.responseText,e,t])}),this},oe.each([\"ajaxStart\",\"ajaxStop\",\"ajaxComplete\",\"ajaxError\",\"ajaxSuccess\",\"ajaxSend\"],function(t,e){oe.fn[e]=function(t){return this.on(e,t)}}),oe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:an,type:\"GET\",isLocal:dn.test(sn[1]),global:!0,processData:!0,async:!0,contentType:\"application/x-www-form-urlencoded; charset=UTF-8\",accepts:{\"*\":bn,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\":oe.parseJSON,\"text xml\":oe.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?E(E(t,oe.ajaxSettings),e):E(oe.ajaxSettings,t)},ajaxPrefilter:T(yn),ajaxTransport:T(vn),ajax:function(t,n){function r(t,n,r,a){var u,p,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=R(h,x,r)),v=I(h,v,x,u),u?(h.ifModified&&(w=x.getResponseHeader(\"Last-Modified\"),w&&(oe.lastModified[o]=w),w=x.getResponseHeader(\"etag\"),w&&(oe.etag[o]=w)),204===t||\"HEAD\"===h.type?k=\"nocontent\":304===t?k=\"notmodified\":(k=v.state,p=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?_.resolveWith(d,[p,k,x]):_.rejectWith(d,[x,k,y]),x.statusCode(m),m=e,c&&f.trigger(u?\"ajaxSuccess\":\"ajaxError\",[x,h,u?p:y]),g.fireWith(d,[x,k]),c&&(f.trigger(\"ajaxComplete\",[x,h]),--oe.active||oe.event.trigger(\"ajaxStop\")))}\"object\"==typeof t&&(n=t,t=e),n=n||{};var i,o,s,a,l,u,c,p,h=oe.ajaxSetup({},n),d=h.context||h,f=h.context&&(d.nodeType||d.jquery)?oe(d):oe.event,_=oe.Deferred(),g=oe.Callbacks(\"once memory\"),m=h.statusCode||{},y={},v={},b=0,w=\"canceled\",x={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!a)for(a={};e=hn.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||(h.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(_.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,h.url=((t||h.url||an)+\"\").replace(cn,\"\").replace(_n,sn[1]+\"//\"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=oe.trim(h.dataType||\"*\").toLowerCase().match(ae)||[\"\"],null==h.crossDomain&&(u=gn.exec(h.url.toLowerCase()),h.crossDomain=!(!u||u[1]===sn[1]&&u[2]===sn[2]&&(u[3]||(\"http:\"===u[1]?\"80\":\"443\"))===(sn[3]||(\"http:\"===sn[1]?\"80\":\"443\")))),h.data&&h.processData&&\"string\"!=typeof h.data&&(h.data=oe.param(h.data,h.traditional)),D(yn,h,n,x),2===b)return x;c=h.global,c&&0===oe.active++&&oe.event.trigger(\"ajaxStart\"),h.type=h.type.toUpperCase(),h.hasContent=!fn.test(h.type),o=h.url,h.hasContent||(h.data&&(o=h.url+=(un.test(o)?\"&\":\"?\")+h.data,delete h.data),h.cache===!1&&(h.url=pn.test(o)?o.replace(pn,\"$1_=\"+ln++):o+(un.test(o)?\"&\":\"?\")+\"_=\"+ln++)),h.ifModified&&(oe.lastModified[o]&&x.setRequestHeader(\"If-Modified-Since\",oe.lastModified[o]),oe.etag[o]&&x.setRequestHeader(\"If-None-Match\",oe.etag[o])),(h.data&&h.hasContent&&h.contentType!==!1||n.contentType)&&x.setRequestHeader(\"Content-Type\",h.contentType),x.setRequestHeader(\"Accept\",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+(\"*\"!==h.dataTypes[0]?\", \"+bn+\"; q=0.01\":\"\"):h.accepts[\"*\"]);for(p in h.headers)x.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(h.beforeSend.call(d,x,h)===!1||2===b))return x.abort();w=\"abort\";for(p in{success:1,error:1,complete:1})x[p](h[p]);if(i=D(vn,h,n,x)){x.readyState=1,c&&f.trigger(\"ajaxSend\",[x,h]),h.async&&h.timeout>0&&(l=setTimeout(function(){x.abort(\"timeout\")},h.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 oe.get(t,e,n,\"json\")},getScript:function(t,n){return oe.get(t,e,n,\"script\")}}),oe.each([\"get\",\"post\"],function(t,n){oe[n]=function(t,r,i,o){return oe.isFunction(r)&&(o=o||i,i=r,r=e),oe.ajax({url:t,type:n,dataType:o,data:r,success:i})}}),oe.ajaxSetup({accepts:{script:\"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript\"},contents:{script:/(?:java|ecma)script/},converters:{\"text script\":function(t){return oe.globalEval(t),t}}}),oe.ajaxPrefilter(\"script\",function(t){t.cache===e&&(t.cache=!1),t.crossDomain&&(t.type=\"GET\")}),oe.ajaxTransport(\"script\",function(t){if(t.crossDomain){var e,n;return{send:function(r,i){e=oe(\"<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)}),Y.head.appendChild(e[0])},abort:function(){n&&n()}}}});var xn=[],kn=/(=)\\?(?=&|$)|\\?\\?/;oe.ajaxSetup({jsonp:\"callback\",jsonpCallback:function(){var t=xn.pop()||oe.expando+\"_\"+ln++;return this[t]=!0,t}}),oe.ajaxPrefilter(\"json jsonp\",function(n,r,i){var o,s,a,l=n.jsonp!==!1&&(kn.test(n.url)?\"url\":\"string\"==typeof n.data&&!(n.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&kn.test(n.data)&&\"data\");return l||\"jsonp\"===n.dataTypes[0]?(o=n.jsonpCallback=oe.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(kn,\"$1\"+o):n.jsonp!==!1&&(n.url+=(un.test(n.url)?\"&\":\"?\")+n.jsonp+\"=\"+o),n.converters[\"script json\"]=function(){return a||oe.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,xn.push(o)),a&&oe.isFunction(s)&&s(a[0]),a=s=e}),\"script\"):e}),oe.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Cn=oe.ajaxSettings.xhr(),Mn={0:200,1223:204},An=0,Sn={};t.ActiveXObject&&oe(t).on(\"unload\",function(){for(var t in Sn)Sn[t]();Sn=e}),oe.support.cors=!!Cn&&\"withCredentials\"in Cn,oe.support.ajax=Cn=!!Cn,oe.ajaxTransport(function(t){var n;return oe.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=An++]=n(\"abort\"),a.send(t.hasContent&&t.data||null)},abort:function(){n&&n()}}:e});var Tn,Dn,En=/^(?:toggle|show|hide)$/,Rn=RegExp(\"^(?:([+-])=|)(\"+se+\")([a-z%]*)$\",\"i\"),In=/queueHooks$/,Pn=[j],Nn={\"*\":[function(t,e){var n=this.createTween(t,e),r=n.cur(),i=Rn.exec(e),o=i&&i[3]||(oe.cssNumber[t]?\"\":\"px\"),s=(oe.cssNumber[t]||\"px\"!==o&&+r)&&Rn.exec(oe.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,oe.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}]};oe.Animation=oe.extend(z,{tweener:function(t,e){oe.isFunction(t)?(e=t,t=[\"*\"]):t=t.split(\" \");for(var n,r=0,i=t.length;i>r;r++)n=t[r],Nn[n]=Nn[n]||[],Nn[n].unshift(e)},prefilter:function(t,e){e?Pn.unshift(t):Pn.push(t)}}),oe.Tween=F,F.prototype={constructor:F,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||(oe.cssNumber[n]?\"\":\"px\")},cur:function(){var t=F.propHooks[this.prop];return t&&t.get?t.get(this):F.propHooks._default.get(this)},run:function(t){var e,n=F.propHooks[this.prop];return this.pos=e=this.options.duration?oe.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):F.propHooks._default.set(this),this}},F.prototype.init.prototype=F.prototype,F.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=oe.css(t.elem,t.prop,\"\"),e&&\"auto\"!==e?e:0):t.elem[t.prop]},set:function(t){oe.fx.step[t.prop]?oe.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[oe.cssProps[t.prop]]||oe.cssHooks[t.prop])?oe.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},F.propHooks.scrollTop=F.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},oe.each([\"toggle\",\"show\",\"hide\"],function(t,e){var n=oe.fn[e];oe.fn[e]=function(t,r,i){return null==t||\"boolean\"==typeof t?n.apply(this,arguments):this.animate(L(e,!0),t,r,i)}}),oe.fn.extend({fadeTo:function(t,e,n,r){return this.filter(v).css(\"opacity\",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=oe.isEmptyObject(t),o=oe.speed(e,n,r),s=function(){var e=z(this,oe.extend({},t),o);(i||ge.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;\n",
        "                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=oe.timers,s=ge.get(this);if(n)s[n]&&s[n].stop&&i(s[n]);else for(n in s)s[n]&&s[n].stop&&In.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)&&oe.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||\"fx\"),this.each(function(){var e,n=ge.get(this),r=n[t+\"queue\"],i=n[t+\"queueHooks\"],o=oe.timers,s=r?r.length:0;for(n.finish=!0,oe.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})}}),oe.each({slideDown:L(\"show\"),slideUp:L(\"hide\"),slideToggle:L(\"toggle\"),fadeIn:{opacity:\"show\"},fadeOut:{opacity:\"hide\"},fadeToggle:{opacity:\"toggle\"}},function(t,e){oe.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),oe.speed=function(t,e,n){var r=t&&\"object\"==typeof t?oe.extend({},t):{complete:n||!n&&e||oe.isFunction(t)&&t,duration:t,easing:n&&e||e&&!oe.isFunction(e)&&e};return r.duration=oe.fx.off?0:\"number\"==typeof r.duration?r.duration:r.duration in oe.fx.speeds?oe.fx.speeds[r.duration]:oe.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue=\"fx\"),r.old=r.complete,r.complete=function(){oe.isFunction(r.old)&&r.old.call(this),r.queue&&oe.dequeue(this,r.queue)},r},oe.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},oe.timers=[],oe.fx=F.prototype.init,oe.fx.tick=function(){var t,n=oe.timers,r=0;for(Tn=oe.now();n.length>r;r++)t=n[r],t()||n[r]!==t||n.splice(r--,1);n.length||oe.fx.stop(),Tn=e},oe.fx.timer=function(t){t()&&oe.timers.push(t)&&oe.fx.start()},oe.fx.interval=13,oe.fx.start=function(){Dn||(Dn=setInterval(oe.fx.tick,oe.fx.interval))},oe.fx.stop=function(){clearInterval(Dn),Dn=null},oe.fx.speeds={slow:600,fast:200,_default:400},oe.fx.step={},oe.expr&&oe.expr.filters&&(oe.expr.filters.animated=function(t){return oe.grep(oe.timers,function(e){return t===e.elem}).length}),oe.fn.offset=function(t){if(arguments.length)return t===e?this:this.each(function(e){oe.offset.setOffset(this,t,e)});var n,r,i=this[0],o={top:0,left:0},s=i&&i.ownerDocument;return s?(n=s.documentElement,oe.contains(n,i)?(typeof i.getBoundingClientRect!==W&&(o=i.getBoundingClientRect()),r=B(s),{top:o.top+r.pageYOffset-n.clientTop,left:o.left+r.pageXOffset-n.clientLeft}):o):void 0},oe.offset={setOffset:function(t,e,n){var r,i,o,s,a,l,u,c=oe.css(t,\"position\"),p=oe(t),h={};\"static\"===c&&(t.style.position=\"relative\"),a=p.offset(),o=oe.css(t,\"top\"),l=oe.css(t,\"left\"),u=(\"absolute\"===c||\"fixed\"===c)&&(o+l).indexOf(\"auto\")>-1,u?(r=p.position(),s=r.top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(l)||0),oe.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(h.top=e.top-a.top+s),null!=e.left&&(h.left=e.left-a.left+i),\"using\"in e?e.using.call(t,h):p.css(h)}},oe.fn.extend({position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return\"fixed\"===oe.css(n,\"position\")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),oe.nodeName(t[0],\"html\")||(r=t.offset()),r.top+=oe.css(t[0],\"borderTopWidth\",!0),r.left+=oe.css(t[0],\"borderLeftWidth\",!0)),{top:e.top-r.top-oe.css(n,\"marginTop\",!0),left:e.left-r.left-oe.css(n,\"marginLeft\",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||U;t&&!oe.nodeName(t,\"html\")&&\"static\"===oe.css(t,\"position\");)t=t.offsetParent;return t||U})}}),oe.each({scrollLeft:\"pageXOffset\",scrollTop:\"pageYOffset\"},function(n,r){var i=\"pageYOffset\"===r;oe.fn[n]=function(o){return oe.access(this,function(n,o,s){var a=B(n);return s===e?a?a[r]:n[o]:(a?a.scrollTo(i?t.pageXOffset:s,i?s:t.pageYOffset):n[o]=s,e)},n,o,arguments.length,null)}}),oe.each({Height:\"height\",Width:\"width\"},function(t,n){oe.each({padding:\"inner\"+t,content:n,\"\":\"outer\"+t},function(r,i){oe.fn[i]=function(i,o){var s=arguments.length&&(r||\"boolean\"!=typeof i),a=r||(i===!0||o===!0?\"margin\":\"border\");return oe.access(this,function(n,r,i){var o;return oe.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?oe.css(n,r,a):oe.style(n,r,i,a)},n,s?i:e,s,null)}})}),oe.fn.size=function(){return this.length},oe.fn.andSelf=oe.fn.addBack,\"object\"==typeof module&&module&&\"object\"==typeof module.exports?module.exports=oe:\"function\"==typeof define&&define.amd&&define(\"jquery\",[],function(){return oe}),\"object\"==typeof t&&\"object\"==typeof t.document&&(t.jQuery=t.$=oe)}(window),function(t,e){\"undefined\"!=typeof exports?e(t,exports,require(\"underscore\")):\"function\"==typeof define&&define.amd?define(\"backbone\",[\"underscore\",\"jquery\",\"exports\"],function(n,r,i){t.Backbone=e(t,i,n,r)}):t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}(this,function(t,e,n,r){{var i=t.Backbone,o=[],s=(o.push,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,c,p,h;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,c=a.length;c>l;l++)if(t=a[l],s=this._events[t]){if(this._events[t]=i=[],e||r)for(p=0,h=s.length;h>p;p++)o=s[p],(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&&c(n,e),r&&c(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},c=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)}},p={listenTo:\"on\",listenToOnce:\"once\"};n.each(p,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 h=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(h.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,c,p;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={}),p=this.attributes,c=this._previousAttributes,this.idAttribute in o&&(this.id=o[this.idAttribute]);for(i in o)e=o[i],n.isEqual(p[i],e)||a.push(i),n.isEqual(c[i],e)?delete this.changed[i]:this.changed[i]=e,s?delete p[i]:p[i]=e;if(!l){a.length&&(this._pending=!0);for(var h=0,d=a.length;d>h;h++)this.trigger(\"change:\"+a[h],this,p[a[h]],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),void e.trigger(\"sync\",e,n,t)):!1},j(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),void l.trigger(\"sync\",l,t,r))},j(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;j(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\")||O();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 d=[\"keys\",\"values\",\"pairs\",\"invert\",\"pick\",\"omit\"];n.each(d,function(t){h.prototype[t]=function(){var e=s.call(arguments);return e.unshift(this.attributes),n[t].apply(n,e)}});var f=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))},_={add:!0,remove:!0,merge:!0},g={add:!0,remove:!1};n.extend(f.prototype,a,{model:h,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,_),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,c,p=e.at,d=this.model,f=this.comparator&&null==p&&e.sort!==!1,g=n.isString(this.comparator)?this.comparator:null,m=[],y=[],v={},b=e.add,w=e.merge,x=e.remove,k=!f&&b&&x?[]:!1;for(i=0,o=t.length;o>i;i++){if(l=t[i],s=l instanceof h?a=l:l[d.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),f&&!c&&u.hasChanged(g)&&(c=!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(f&&(c=!0),this.length+=m.length,null!=p)for(i=0,o=m.length;o>i;i++)this.models.splice(p+i,0,m[i]);else{k&&(this.models.length=0);var C=k||m;for(i=0,o=C.length;o>i;i++)this.models.push(C[i])}if(c&&this.sort({silent:!0}),!e.silent){for(i=0,o=m.length;o>i;i++)(a=m[i]).trigger(\"add\",a,this,e);(c||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)},j(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 h)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){f.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){f.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\")||O()),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 C=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},M=/\\((.*?)\\)/g,A=/(\\(\\?)?:\\w+/g,S=/\\*\\w+/g,T=/[\\-{}\\[\\]+?.,\\\\\\^$|#\\s]/g;n.extend(C.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(T,\"\\\\$&\").replace(M,\"(?:$1)?\").replace(A,function(t,e){return e?t:\"([^/]+)\"}).replace(S,\"(.*?)\"),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 D=e.History=function(){this.handlers=[],n.bindAll(this,\"checkUrl\"),\"undefined\"!=typeof window&&(this.location=window.location,this.history=window.history)},E=/^[#\\/]|\\s+$/g,R=/^\\/+|\\/+$/g,I=/msie [\\w.]+/,P=/\\/$/,N=/[?#].*$/;D.started=!1,n.extend(D.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(P,\"\");t.indexOf(n)||(t=t.slice(n.length))}else t=this.getHash();return t.replace(E,\"\")},start:function(t){if(D.started)throw new Error(\"Backbone.history has already been started\");D.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=I.exec(navigator.userAgent.toLowerCase())&&(!i||7>=i);this.root=(\"/\"+this.root+\"/\").replace(R,\"/\"),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(E,\"\"),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),D.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),void this.loadUrl())},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(!D.started)return!1;e&&e!==!0||(e={trigger:!!e});var n=this.root+(t=this.getFragment(t||\"\"));if(t=t.replace(N,\"\"),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 D;var z=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};h.extend=f.extend=C.extend=v.extend=D.extend=z;var O=function(){throw new Error('A \"url\" property or function must be specified')},j=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(){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};define(\"common/collection\",[\"underscore\",\"backbone\"],function(t,n){var r,i;return r=function(t){function n(){return i=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(n.Collection)})}.call(this),function(t){define(\"kiwi\",[],function(){return function(){var e;!function(t){function e(t){return t instanceof Array?new l(t):t.__iter__()}function n(t){return t instanceof Array?new u(t):t.__reversed__()}function r(t){return t.__next__()}function i(t){if(t instanceof Array)return t.slice();for(var e,n=[],r=t.__iter__();void 0!==(e=r.__next__());)n.push(e);return n}function o(t,e){if(t instanceof Array){for(var n=0,r=t.length;r>n;++n)if(e(t[n])===!1)return}else for(var i,o=t.__iter__();void 0!==(i=o.__next__());)if(e(i)===!1)return}function s(t,e){var n=[];if(t instanceof Array)for(var r=0,i=t.length;i>r;++r)n.push(e(t[r]));else for(var o,s=t.__iter__();void 0!==(o=s.__next__());)n.push(e(o));return n}function a(t,e){var n,r=[];if(t instanceof Array)for(var i=0,o=t.length;o>i;++i)n=t[i],e(n)&&r.push(n);else for(var s=t.__iter__();void 0!==(n=s.__next__());)e(n)&&r.push(n);return r}var l=function(){function t(t,e){\"undefined\"==typeof e&&(e=0),this._array=t,this._index=Math.max(0,Math.min(e,t.length))}return t.prototype.__next__=function(){return this._array[this._index++]},t.prototype.__iter__=function(){return this},t}();t.ArrayIterator=l;var u=function(){function t(t,e){\"undefined\"==typeof e&&(e=t.length),this._array=t,this._index=Math.max(0,Math.min(e,t.length))}return t.prototype.__next__=function(){return this._array[--this._index]},t.prototype.__iter__=function(){return this},t}();t.ReverseArrayIterator=u,t.iter=e,t.reversed=n,t.next=r,t.asArray=i,t.forEach=o,t.map=s,t.filter=a}(e||(e={}));var e;!function(t){var e=function(){function t(t,e){this.first=t,this.second=e}return t.prototype.copy=function(){return new t(this.first,this.second)},t}();t.Pair=e}(e||(e={}));var e;!function(t){function e(t,e,n){for(var r,i,o=0,s=t.length;s>0;)r=s>>1,i=o+r,n(t[i],e)<0?(o=i+1,s-=r+1):s=r;return o}function n(t,n,r){var i=e(t,n,r);if(i===t.length)return-1;var o=t[i];return 0!==r(o,n)?-1:i}function r(t,n,r){var i=e(t,n,r);if(i===t.length)return void 0;var o=t[i];return 0!==r(o,n)?void 0:o}function i(e,n){var r=t.asArray(e),i=r.length;if(1>=i)return r;r.sort(n);for(var o=[r[0]],s=1,a=0;i>s;++s){var l=r[s];0!==n(o[a],l)&&(o.push(l),++a)}return o}function o(t,e,n){for(var r=0,i=0,o=t.length,s=e.length;o>r&&s>i;){var a=n(t[r],e[i]);if(0>a)++r;else{if(!(a>0))return!1;++i}}return!0}function s(t,e,n){var r=t.length,i=e.length;if(r>i)return!1;for(var o=0,s=0;r>o&&i>s;){var a=n(t[o],e[s]);if(0>a)return!1;a>0?++s:(++o,++s)}return r>o?!1:!0}function a(t,e,n){for(var r=0,i=0,o=t.length,s=e.length,a=[];o>r&&s>i;){var l=t[r],u=e[i],c=n(l,u);0>c?(a.push(l),++r):c>0?(a.push(u),++i):(a.push(l),++r,++i)}for(;o>r;)a.push(t[r]),++r;for(;s>i;)a.push(e[i]),++i;return a}function l(t,e,n){for(var r=0,i=0,o=t.length,s=e.length,a=[];o>r&&s>i;){var l=t[r],u=e[i],c=n(l,u);0>c?++r:c>0?++i:(a.push(l),++r,++i)}return a}function u(t,e,n){for(var r=0,i=0,o=t.length,s=e.length,a=[];o>r&&s>i;){var l=t[r],u=e[i],c=n(l,u);0>c?(a.push(l),++r):c>0?++i:(++r,++i)}for(;o>r;)a.push(t[r]),++r;return a}function c(t,e,n){for(var r=0,i=0,o=t.length,s=e.length,a=[];o>r&&s>i;){var l=t[r],u=e[i],c=n(l,u);0>c?(a.push(l),++r):c>0?(a.push(u),++i):(++r,++i)}for(;o>r;)a.push(t[r]),++r;for(;s>i;)a.push(e[i]),++i;return a}t.lowerBound=e,t.binarySearch=n,t.binaryFind=r,t.asSet=i,t.setIsDisjoint=o,t.setIsSubset=s,t.setUnion=a,t.setIntersection=l,t.setDifference=u,t.setSymmetricDifference=c}(e||(e={}));var e;!function(t){var e=function(){function e(){this._array=[]}return e.prototype.size=function(){return this._array.length},e.prototype.empty=function(){return 0===this._array.length},e.prototype.itemAt=function(t){return this._array[t]},e.prototype.takeAt=function(t){return this._array.splice(t,1)[0]},e.prototype.clear=function(){this._array=[]},e.prototype.swap=function(t){var e=this._array;this._array=t._array,t._array=e},e.prototype.__iter__=function(){return t.iter(this._array)},e.prototype.__reversed__=function(){return t.reversed(this._array)},e}();t.ArrayBase=e}(e||(e={}));var e,n=this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);n.prototype=e.prototype,t.prototype=new n};!function(t){function e(t){return function(e,n){return t(e.first,n)}}function r(t,e,n){for(var r=0,i=0,o=t.length,s=e.length,a=[];o>r&&s>i;){var l=t[r],u=e[i],c=n(l.first,u.first);0>c?(a.push(l.copy()),++r):c>0?(a.push(u.copy()),++i):(a.push(u.copy()),++r,++i)}for(;o>r;)a.push(t[r].copy()),++r;for(;s>i;)a.push(e[i].copy()),++i;return a}var i=function(i){function o(t){i.call(this),this._compare=t,this._wrapped=e(t)}return n(o,i),o.prototype.comparitor=function(){return this._compare},o.prototype.indexOf=function(e){return t.binarySearch(this._array,e,this._wrapped)},o.prototype.contains=function(e){return t.binarySearch(this._array,e,this._wrapped)>=0},o.prototype.find=function(e){return t.binaryFind(this._array,e,this._wrapped)},o.prototype.setDefault=function(e,n){var r=this._array,i=t.lowerBound(r,e,this._wrapped);if(i===r.length){var o=new t.Pair(e,n());return r.push(o),o}var s=r[i];if(0!==this._compare(s.first,e)){var o=new t.Pair(e,n());return r.splice(i,0,o),o}return s},o.prototype.insert=function(e,n){var r=this._array,i=t.lowerBound(r,e,this._wrapped);if(i===r.length){var o=new t.Pair(e,n);return r.push(o),o}var s=r[i];if(0!==this._compare(s.first,e)){var o=new t.Pair(e,n);return r.splice(i,0,o),o}return s.second=n,s},o.prototype.update=function(e){var n=this;if(e instanceof o){var i=e;this._array=r(this._array,i._array,this._compare)}else t.forEach(e,function(t){n.insert(t.first,t.second)})},o.prototype.erase=function(e){var n=this._array,r=t.binarySearch(n,e,this._wrapped);return 0>r?void 0:n.splice(r,1)[0]},o.prototype.copy=function(){for(var t=new o(this._compare),e=t._array,n=this._array,r=0,i=n.length;i>r;++r)e.push(n[r].copy());return t},o}(t.ArrayBase);t.AssociativeArray=i}(e||(e={}));var e;!function(t){function e(e,n){return e instanceof r?e._array:t.asSet(e,n)}var r=function(r){function i(t){r.call(this),this._compare=t}return n(i,r),i.prototype.comparitor=function(){return this._compare},i.prototype.indexOf=function(e){return t.binarySearch(this._array,e,this._compare)},i.prototype.contains=function(e){return t.binarySearch(this._array,e,this._compare)>=0},i.prototype.insert=function(e){var n=this._array,r=t.lowerBound(n,e,this._compare);return r===n.length?(n.push(e),!0):0!==this._compare(n[r],e)?(n.splice(r,0,e),!0):!1},i.prototype.erase=function(e){var n=this._array,r=t.binarySearch(n,e,this._compare);return 0>r?!1:(n.splice(r,1),!0)},i.prototype.copy=function(){var t=new i(this._compare);return t._array=this._array.slice(),t},i.prototype.isDisjoint=function(n){var r=this._compare,i=e(n,r);return t.setIsDisjoint(this._array,i,r)},i.prototype.isSubset=function(n){var r=this._compare,i=e(n,r);return t.setIsSubset(this._array,i,r)},i.prototype.isSuperset=function(n){var r=this._compare,i=e(n,r);return t.setIsSubset(i,this._array,r)},i.prototype.union=function(n){var r=this._compare,o=new i(r),s=e(n,r);return o._array=t.setUnion(this._array,s,r),o},i.prototype.intersection=function(n){var r=this._compare,o=new i(r),s=e(n,r);return o._array=t.setIntersection(this._array,s,r),o},i.prototype.difference=function(n){var r=this._compare,o=new i(r),s=e(n,r);return o._array=t.setDifference(this._array,s,r),o},i.prototype.symmetricDifference=function(n){var r=this._compare,o=new i(r),s=e(n,r);return o._array=t.setSymmetricDifference(this._array,s,r),o},i.prototype.unionUpdate=function(n){var r=this._compare,i=e(n,r);this._array=t.setUnion(this._array,i,r)},i.prototype.intersectionUpdate=function(n){var r=this._compare,i=e(n,r);this._array=t.setIntersection(this._array,i,r)},i.prototype.differenceUpdate=function(n){var r=this._compare,i=e(n,r);this._array=t.setDifference(this._array,i,r)},i.prototype.symmetricDifferenceUpdate=function(n){var r=this._compare,i=e(n,r);this._array=t.setSymmetricDifference(this._array,i,r)},i}(t.ArrayBase);t.UniqueArray=r}(e||(e={}));var r;!function(t){!function(t){t[t.Le=0]=\"Le\",t[t.Ge=1]=\"Ge\",t[t.Eq=2]=\"Eq\"\n",
        "                }(t.Operator||(t.Operator={}));var e=(t.Operator,function(){function e(e,r,i){\"undefined\"==typeof i&&(i=t.Strength.required),this._id=n++,this._operator=r,this._expression=e,this._strength=t.Strength.clip(i)}return e.Compare=function(t,e){return t.id()-e.id()},e.prototype.id=function(){return this._id},e.prototype.expression=function(){return this._expression},e.prototype.op=function(){return this._operator},e.prototype.strength=function(){return this._strength},e}());t.Constraint=e;var n=0}(r||(r={}));var r;!function(t){function n(t){return new e.AssociativeArray(t)}t.createMap=n}(r||(r={}));var r;!function(t){var e=function(){function t(t){\"undefined\"==typeof t&&(t=\"\"),this._value=0,this._context=null,this._id=n++,this._name=t}return t.Compare=function(t,e){return t.id()-e.id()},t.prototype.id=function(){return this._id},t.prototype.name=function(){return this._name},t.prototype.setName=function(t){this._name=t},t.prototype.context=function(){return this._context},t.prototype.setContext=function(t){this._context=t},t.prototype.value=function(){return this._value},t.prototype.setValue=function(t){this._value=t},t}();t.Variable=e;var n=0}(r||(r={}));var r;!function(t){function n(e){for(var n=0,r=function(){return 0},i=t.createMap(t.Variable.Compare),o=0,s=e.length;s>o;++o){var a=e[o];if(\"number\"==typeof a)n+=a;else if(a instanceof t.Variable)i.setDefault(a,r).second+=1;else{if(!(a instanceof Array))throw new Error(\"invalid Expression argument: \"+a);if(2!==a.length)throw new Error(\"array must have length 2\");var l=a[0],u=a[1];if(\"number\"!=typeof l)throw new Error(\"array item 0 must be a number\");if(!(u instanceof t.Variable))throw new Error(\"array item 1 must be a variable\");i.setDefault(u,r).second+=l}}return{terms:i,constant:n}}var r=function(){function t(){var t=n(arguments);this._terms=t.terms,this._constant=t.constant}return t.prototype.terms=function(){return this._terms},t.prototype.constant=function(){return this._constant},t.prototype.value=function(){var t=this._constant;return e.forEach(this._terms,function(e){t+=e.first.value()*e.second}),t},t}();t.Expression=r}(r||(r={}));var r;!function(t){!function(t){function e(t,e,n,r){\"undefined\"==typeof r&&(r=1);var i=0;return i+=1e6*Math.max(0,Math.min(1e3,t*r)),i+=1e3*Math.max(0,Math.min(1e3,e*r)),i+=Math.max(0,Math.min(1e3,n*r))}function n(e){return Math.max(0,Math.min(t.required,e))}t.create=e,t.required=e(1e3,1e3,1e3),t.strong=e(1,0,0),t.medium=e(0,1,0),t.weak=e(0,0,1),t.clip=n}(t.Strength||(t.Strength={}));t.Strength}(r||(r={}));var r;return function(t){function e(t){var e=1e-8;return 0>t?e>-t:e>t}function n(){return t.createMap(t.Constraint.Compare)}function r(){return t.createMap(l.Compare)}function i(){return t.createMap(t.Variable.Compare)}function o(){return t.createMap(t.Variable.Compare)}var s=function(){function s(){this._cnMap=n(),this._rowMap=r(),this._varMap=i(),this._editMap=o(),this._infeasibleRows=[],this._objective=new c,this._artificial=null,this._idTick=0}return s.prototype.addConstraint=function(t){var n=this._cnMap.find(t);if(void 0!==n)throw new Error(\"duplicate constraint\");var r=this._createRow(t),i=r.row,o=r.tag,s=this._chooseSubject(i,o);if(0===s.type()&&i.allDummies()){if(!e(i.constant()))throw new Error(\"unsatifiable constraint\");s=o.marker}if(0===s.type()){if(!this._addWithArtificialVariable(i))throw new Error(\"unsatisfiable constraint\")}else i.solveFor(s),this._substitute(s,i),this._rowMap.insert(s,i);this._cnMap.insert(t,o),this._optimize(this._objective)},s.prototype.removeConstraint=function(t){var e=this._cnMap.erase(t);if(void 0===e)throw new Error(\"unknown constraint\");this._removeConstraintEffects(t,e.second);var n=e.second.marker,r=this._rowMap.erase(n);if(void 0===r){var i=this._getMarkerLeavingSymbol(n);if(0===i.type())throw new Error(\"failed to find leaving row\");r=this._rowMap.erase(i),r.second.solveForEx(i,n),this._substitute(n,r.second)}this._optimize(this._objective)},s.prototype.hasConstraint=function(t){return this._cnMap.contains(t)},s.prototype.addEditVariable=function(e,n){var r=this._editMap.find(e);if(void 0!==r)throw new Error(\"duplicate edit variable\");if(n=t.Strength.clip(n),n===t.Strength.required)throw new Error(\"bad required strength\");var i=new t.Expression(e),o=new t.Constraint(i,2,n);this.addConstraint(o);var s=this._cnMap.find(o).second,a={tag:s,constraint:o,constant:0};this._editMap.insert(e,a)},s.prototype.removeEditVariable=function(t){var e=this._editMap.erase(t);if(void 0===e)throw new Error(\"unknown edit variable\");this.removeConstraint(e.second.constraint)},s.prototype.hasEditVariable=function(t){return this._editMap.contains(t)},s.prototype.suggestValue=function(t,e){var n=this._editMap.find(t);if(void 0===n)throw new Error(\"unknown edit variable\");var r=this._rowMap,i=n.second,o=e-i.constant;i.constant=e;var s=i.tag.marker,a=r.find(s);if(void 0!==a)return a.second.add(-o)<0&&this._infeasibleRows.push(s),void this._dualOptimize();var l=i.tag.other,a=r.find(l);if(void 0!==a)return a.second.add(o)<0&&this._infeasibleRows.push(l),void this._dualOptimize();for(var u=0,c=r.size();c>u;++u){var a=r.itemAt(u),p=a.second,h=p.coefficientFor(s);0!==h&&p.add(o*h)<0&&1!==a.first.type()&&this._infeasibleRows.push(a.first)}this._dualOptimize()},s.prototype.updateVariables=function(){for(var t=this._varMap,e=this._rowMap,n=0,r=t.size();r>n;++n){var i=t.itemAt(n),o=e.find(i.second);i.first.setValue(void 0!==o?o.second.constant():0)}},s.prototype._getVarSymbol=function(t){var e=this,n=function(){return e._makeSymbol(1)};return this._varMap.setDefault(t,n).second},s.prototype._createRow=function(n){for(var r=n.expression(),i=new c(r.constant()),o=r.terms(),s=0,a=o.size();a>s;++s){var l=o.itemAt(s);if(!e(l.second)){var p=this._getVarSymbol(l.first),h=this._rowMap.find(p);void 0!==h?i.insertRow(h.second,l.second):i.insertSymbol(p,l.second)}}var d=this._objective,f=n.strength(),_={marker:u,other:u};switch(n.op()){case 0:case 1:var g=0===n.op()?1:-1,m=this._makeSymbol(2);if(_.marker=m,i.insertSymbol(m,g),f<t.Strength.required){var y=this._makeSymbol(3);_.other=y,i.insertSymbol(y,-g),d.insertSymbol(y,f)}break;case 2:if(f<t.Strength.required){var v=this._makeSymbol(3),b=this._makeSymbol(3);_.marker=v,_.other=b,i.insertSymbol(v,-1),i.insertSymbol(b,1),d.insertSymbol(v,f),d.insertSymbol(b,f)}else{var w=this._makeSymbol(4);_.marker=w,i.insertSymbol(w)}}return i.constant()<0&&i.reverseSign(),{row:i,tag:_}},s.prototype._chooseSubject=function(t,e){for(var n=t.cells(),r=0,i=n.size();i>r;++r){var o=n.itemAt(r);if(1===o.first.type())return o.first}var s=e.marker.type();return(2===s||3===s)&&t.coefficientFor(e.marker)<0?e.marker:(s=e.other.type(),(2===s||3===s)&&t.coefficientFor(e.other)<0?e.other:u)},s.prototype._addWithArtificialVariable=function(t){var n=this._makeSymbol(2);this._rowMap.insert(n,t.copy()),this._artificial=t.copy(),this._optimize(this._artificial);var r=e(this._artificial.constant());this._artificial=null;var i=this._rowMap.erase(n);if(void 0!==i){var o=i.second;if(o.isConstant())return r;var s=this._anyPivotableSymbol(o);if(0===s.type())return!1;o.solveForEx(n,s),this._substitute(s,o),this._rowMap.insert(s,o)}for(var a=this._rowMap,l=0,u=a.size();u>l;++l)a.itemAt(l).second.removeSymbol(n);return this._objective.removeSymbol(n),r},s.prototype._substitute=function(t,e){for(var n=this._rowMap,r=0,i=n.size();i>r;++r){var o=n.itemAt(r);o.second.substitute(t,e),o.second.constant()<0&&1!==o.first.type()&&this._infeasibleRows.push(o.first)}this._objective.substitute(t,e),this._artificial&&this._artificial.substitute(t,e)},s.prototype._optimize=function(t){for(;;){var e=this._getEnteringSymbol(t);if(0===e.type())return;var n=this._getLeavingSymbol(e);if(0===n.type())throw new Error(\"the objective is unbounded\");var r=this._rowMap.erase(n).second;r.solveForEx(n,e),this._substitute(e,r),this._rowMap.insert(e,r)}},s.prototype._dualOptimize=function(){for(var t=this._rowMap,e=this._infeasibleRows;0!==e.length;){var n=e.pop(),r=t.find(n);if(void 0!==r&&r.second.constant()<0){var i=this._getDualEnteringSymbol(r.second);if(0===i.type())throw new Error(\"dual optimize failed\");var o=r.second;t.erase(n),o.solveForEx(n,i),this._substitute(i,o),t.insert(i,o)}}},s.prototype._getEnteringSymbol=function(t){for(var e=t.cells(),n=0,r=e.size();r>n;++n){var i=e.itemAt(n),o=i.first;if(i.second<0&&4!==o.type())return o}return u},s.prototype._getDualEnteringSymbol=function(t){for(var e=Number.MAX_VALUE,n=u,r=t.cells(),i=0,o=r.size();o>i;++i){var s=r.itemAt(i),a=s.first,l=s.second;if(l>0&&4!==a.type()){var c=this._objective.coefficientFor(a),p=c/l;e>p&&(e=p,n=a)}}return n},s.prototype._getLeavingSymbol=function(t){for(var e=Number.MAX_VALUE,n=u,r=this._rowMap,i=0,o=r.size();o>i;++i){var s=r.itemAt(i),a=s.first;if(1!==a.type()){var l=s.second,c=l.coefficientFor(t);if(0>c){var p=-l.constant()/c;e>p&&(e=p,n=a)}}}return n},s.prototype._getMarkerLeavingSymbol=function(t){for(var e=Number.MAX_VALUE,n=e,r=e,i=u,o=i,s=i,a=i,l=this._rowMap,c=0,p=l.size();p>c;++c){var h=l.itemAt(c),d=h.second,f=d.coefficientFor(t);if(0!==f){var _=h.first;if(1===_.type())a=_;else if(0>f){var g=-d.constant()/f;n>g&&(n=g,o=_)}else{var g=d.constant()/f;r>g&&(r=g,s=_)}}}return o!==i?o:s!==i?s:a},s.prototype._removeConstraintEffects=function(t,e){3===e.marker.type()&&this._removeMarkerEffects(e.marker,t.strength()),3===e.other.type()&&this._removeMarkerEffects(e.other,t.strength())},s.prototype._removeMarkerEffects=function(t,e){var n=this._rowMap.find(t);void 0!==n?this._objective.insertRow(n.second,-e):this._objective.insertSymbol(t,-e)},s.prototype._anyPivotableSymbol=function(t){for(var e=t.cells(),n=0,r=e.size();r>n;++n){var i=e.itemAt(n),o=i.first.type();if(2===o||3===o)return i.first}return u},s.prototype._makeSymbol=function(t){return new l(t,this._idTick++)},s}();t.Solver=s;var a;!function(t){t[t.Invalid=0]=\"Invalid\",t[t.External=1]=\"External\",t[t.Slack=2]=\"Slack\",t[t.Error=3]=\"Error\",t[t.Dummy=4]=\"Dummy\"}(a||(a={}));var l=function(){function t(t,e){this._id=e,this._type=t}return t.Compare=function(t,e){return t.id()-e.id()},t.prototype.id=function(){return this._id},t.prototype.type=function(){return this._type},t}(),u=new l(0,-1),c=function(){function n(e){\"undefined\"==typeof e&&(e=0),this._cellMap=t.createMap(l.Compare),this._constant=e}return n.prototype.cells=function(){return this._cellMap},n.prototype.constant=function(){return this._constant},n.prototype.isConstant=function(){return this._cellMap.empty()},n.prototype.allDummies=function(){for(var t=this._cellMap,e=0,n=t.size();n>e;++e){var r=t.itemAt(e);if(4!==r.first.type())return!1}return!0},n.prototype.copy=function(){var t=new n(this._constant);return t._cellMap=this._cellMap.copy(),t},n.prototype.add=function(t){return this._constant+=t},n.prototype.insertSymbol=function(t,n){\"undefined\"==typeof n&&(n=1);var r=this._cellMap.setDefault(t,function(){return 0});e(r.second+=n)&&this._cellMap.erase(t)},n.prototype.insertRow=function(t,e){\"undefined\"==typeof e&&(e=1),this._constant+=t._constant*e;for(var n=t._cellMap,r=0,i=n.size();i>r;++r){var o=n.itemAt(r);this.insertSymbol(o.first,o.second*e)}},n.prototype.removeSymbol=function(t){this._cellMap.erase(t)},n.prototype.reverseSign=function(){this._constant=-this._constant;for(var t=this._cellMap,e=0,n=t.size();n>e;++e){var r=t.itemAt(e);r.second=-r.second}},n.prototype.solveFor=function(t){var e=this._cellMap,n=e.erase(t),r=-1/n.second;this._constant*=r;for(var i=0,o=e.size();o>i;++i)e.itemAt(i).second*=r},n.prototype.solveForEx=function(t,e){this.insertSymbol(t,-1),this.solveFor(e)},n.prototype.coefficientFor=function(t){var e=this._cellMap.find(t);return void 0!==e?e.second:0},n.prototype.substitute=function(t,e){var n=this._cellMap.erase(t);void 0!==n&&this.insertRow(e,n.second)},n}()}(r||(r={})),t.kiwi=r}.apply(t,arguments)})}(this),define(\"common/canvas_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(){this.map&&r(e('\\n<div class=\"bk-canvas-map\"></div>\\n')),r(e('\\n<div class=\"bk-canvas-events\" />\\n<div class=\"bk-canvas-overlays\" />\\n<canvas class=\\'bk-canvas\\'></canvas>'))}.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};define(\"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\",this),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.render_end=function(){return\"pass\"},i}(r.View)})}.call(this);var __extends=this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);n.prototype=e.prototype,t.prototype=new n};!function(t){function e(t,e,n){void 0!==e[t]&&(null===e[t]?delete n[t]:n[t]=e[t])}function n(e){if(null!=t.enabled&&!t.enabled||null!=t.maxMessages&&1>t.maxMessages)return!1;try{if(e.userAgentRegex&&!RegExp(e.userAgentRegex).test(navigator.userAgent))return!1}catch(n){}try{if(e.ipRegex&&t.clientIP&&!RegExp(e.ipRegex).test(t.clientIP))return!1}catch(r){}return!0}function r(t,e){try{if(t.disallow&&RegExp(t.disallow).test(e))return!1}catch(n){}return!0}function i(t){switch(typeof t){case\"string\":return t;case\"number\":return t.toString();case\"boolean\":return t.toString();case\"undefined\":return\"undefined\";case\"function\":return t instanceof RegExp?t.toString():i(t());case\"object\":return t instanceof RegExp||t instanceof String||t instanceof Number||t instanceof Boolean?t.toString():JSON.stringify(t);default:return\"unknown\"}}t.enabled,t.maxMessages,t.defaultAjaxUrl,t.clientIP,t.requestId=\"\",t.setOptions=function(t){return e(\"enabled\",t,this),e(\"maxMessages\",t,this),e(\"defaultAjaxUrl\",t,this),e(\"clientIP\",t,this),e(\"requestId\",t,this),this},t.getAllLevel=function(){return-2147483648},t.getTraceLevel=function(){return 1e3},t.getDebugLevel=function(){return 2e3},t.getInfoLevel=function(){return 3e3},t.getWarnLevel=function(){return 4e3},t.getErrorLevel=function(){return 5e3},t.getFatalLevel=function(){return 6e3},t.getOffLevel=function(){return 2147483647};var o=function(){return function(t,e){this.inner=e,this.name=\"JL.Exception\",this.message=i(t)}}();t.Exception=o,o.prototype=Error();var s=function(){return function(t,e,n,r){this.l=t,this.m=e,this.n=n,this.t=r}}();t.LogItem=s,o=function(){function i(e,n){this.appenderName=e,this.sendLogItems=n,this.level=t.getTraceLevel(),this.sendWithBufferLevel=2147483647,this.storeInBufferLevel=-2147483648,this.bufferSize=0,this.batchSize=1,this.buffer=[],this.batchBuffer=[]}return i.prototype.setOptions=function(t){return e(\"level\",t,this),e(\"ipRegex\",t,this),e(\"userAgentRegex\",t,this),e(\"disallow\",t,this),e(\"sendWithBufferLevel\",t,this),e(\"storeInBufferLevel\",t,this),e(\"bufferSize\",t,this),e(\"batchSize\",t,this),this.bufferSize<this.buffer.length&&(this.buffer.length=this.bufferSize),this},i.prototype.log=function(t,e,i){!n(this)||!r(this,e)||t<this.storeInBufferLevel||(e=new s(t,e,i,(new Date).getTime()),t<this.level?0<this.bufferSize&&(this.buffer.push(e),this.buffer.length>this.bufferSize&&this.buffer.shift()):(t<this.sendWithBufferLevel||!this.buffer.length||(this.batchBuffer=this.batchBuffer.concat(this.buffer),this.buffer.length=0),this.batchBuffer.push(e),this.batchBuffer.length>=this.batchSize&&this.sendBatch()))},i.prototype.sendBatch=function(){0==this.batchBuffer.length||null!=t.maxMessages&&1>t.maxMessages||(null!=t.maxMessages&&(t.maxMessages-=this.batchBuffer.length),this.sendLogItems(this.batchBuffer),this.batchBuffer.length=0)},i}(),t.Appender=o;var a=function(n){function r(t){n.call(this,t,r.prototype.sendLogItemsAjax)}return __extends(r,n),r.prototype.setOptions=function(t){return e(\"url\",t,this),n.prototype.setOptions.call(this,t),this},r.prototype.sendLogItemsAjax=function(e){try{var n=\"/jsnlog.logger\";null!=t.defaultAjaxUrl&&(n=t.defaultAjaxUrl),this.url&&(n=this.url);var r=JSON.stringify({r:t.requestId,lg:e}),i=new XMLHttpRequest;i.open(\"POST\",n),i.setRequestHeader(\"Content-Type\",\"application/json\"),i.setRequestHeader(\"JSNLog-RequestId\",t.requestId),i.send(r)}catch(o){}},r}(o);t.AjaxAppender=a;var l=function(e){function n(t){e.call(this,t,n.prototype.sendLogItemsConsole)}return __extends(n,e),n.prototype.clog=function(t){console.log(t)},n.prototype.cerror=function(t){console.error?console.error(t):this.clog(t)},n.prototype.cwarn=function(t){console.warn?console.warn(t):this.clog(t)},n.prototype.cinfo=function(t){console.info?console.info(t):this.clog(t)},n.prototype.cdebug=function(t){console.debug?console.debug(t):this.cinfo(t)},n.prototype.sendLogItemsConsole=function(e){try{if(console){var n;for(n=0;n<e.length;++n){var r=e[n],i=r.n+\": \"+r.m;r.l<=t.getDebugLevel()?this.cdebug(i):r.l<=t.getInfoLevel()?this.cinfo(i):r.l<=t.getWarnLevel()?this.cwarn(i):this.cerror(i)}}}catch(o){}},n}(o);t.ConsoleAppender=l,o=function(){function t(t){this.loggerName=t,this.seenRegexes=[]}return t.prototype.setOptions=function(t){return e(\"level\",t,this),e(\"userAgentRegex\",t,this),e(\"disallow\",t,this),e(\"ipRegex\",t,this),e(\"appenders\",t,this),e(\"onceOnly\",t,this),this.seenRegexes=[],this},t.prototype.buildExceptionObject=function(t){var e={};return t.stack?e.stack=t.stack:e.e=t,t.message&&(e.message=t.message),t.name&&(e.name=t.name),t.data&&(e.data=t.data),t.inner&&(e.inner=this.buildExceptionObject(t.inner)),e},t.prototype.log=function(t,e,o){var s=0;if(!this.appenders)return this;if(t>=this.level&&n(this)&&(e=i(e),o&&(o=this.buildExceptionObject(o),o.logData=e,e=JSON.stringify(o)),r(this,e))){if(this.onceOnly)for(s=this.onceOnly.length-1;s>=0;){if(RegExp(this.onceOnly[s]).test(e)){if(this.seenRegexes[s])return this;this.seenRegexes[s]=!0}s--}for(s=this.appenders.length-1;s>=0;)this.appenders[s].log(t,e,this.loggerName),s--}return this},t.prototype.trace=function(t){return this.log(1e3,t)},t.prototype.debug=function(t){return this.log(2e3,t)},t.prototype.info=function(t){return this.log(3e3,t)},t.prototype.warn=function(t){return this.log(4e3,t)},t.prototype.error=function(t){return this.log(5e3,t)},t.prototype.fatal=function(t){return this.log(6e3,t)},t.prototype.fatalException=function(t,e){return this.log(6e3,t,e)},t}(),t.Logger=o,t.createAjaxAppender=function(t){return new a(t)},t.createConsoleAppender=function(t){return new l(t)},o=new a(\"\"),t.__=new t.Logger(\"\"),t.__.setOptions({level:t.getDebugLevel(),appenders:[o]})}(JL||(JL={}));var exports;\"undefined\"!=typeof exports&&(exports.JL=JL);var define;return\"function\"==typeof define&&define.amd&&define(\"jsnlog\",[],function(){return JL}),\"function\"==typeof __jsnlog_configure&&__jsnlog_configure(),function(){define(\"common/logging\",[\"jsnlog\"],function(t){var e,n;return e=t(\"Bokeh\"),e.setOptions({appenders:[t.createConsoleAppender(\"consoleAppender\")]}),n=function(n){var r;return r={trace:t.getTraceLevel(),debug:t.getDebugLevel(),info:t.getInfoLevel(),warn:t.getWarnLevel(),error:t.getErrorLevel(),fatal:t.getFatalLevel()},n in r?(console.log(\"Bokeh: setting log level to: '\"+n+\"'\"),e.setOptions({level:r[n]})):(console.log(\"Bokeh: Unrecognized logging level '\"+n+\"' passed to Bokeh.set_log_level, ignoring.\"),void console.log(\"Bokeh: Valid log levels are: \"+Object.keys(r)))},{logger:e,set_log_level:n}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=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};define(\"common/has_properties\",[\"underscore\",\"backbone\",\"require\",\"./base\",\"./logging\"],function(r,i,o,s,a){var l,u,c;return u=a.logger,c=function(t){var e;if(r.isObject(t)){if(e=r.keys(t).sort(),2===e.length)return\"id\"===e[0]&&\"type\"===e[1];if(3===e.length)return\"id\"===e[0]&&\"subtype\"===e[1]&&\"type\"===e[2]}return!1},l=function(i){function s(e,n){this.rpc=t(this.rpc,this),this.resolve_ref=t(this.resolve_ref,this),this.convert_to_ref=t(this.convert_to_ref,this);var i;i=e||{},n||(n={}),this.cid=r.uniqueId(\"c\"),this.attributes={},n.collection&&(this.collection=n.collection),n.parse&&(i=this.parse(i,n)||{}),i=r.defaults({},i,r.result(this,\"defaults\")),this.set(i,n),this.changed={},this._base=!1,this.properties={},this.property_cache={},r.has(i,this.idAttribute)||(this.id=r.uniqueId(this.type),this.attributes[this.idAttribute]=this.id),n.defer_initialization||this.initialize.apply(this,arguments)}return n(s,i),s.prototype.toString=function(){return\"\"+this.type+\"(\"+this.id+\")\"},s.prototype.destroy=function(t){return s.__super__.destroy.call(this,t),this.stopListening()},s.prototype.isNew=function(){return!1},s.prototype.attrs_and_props=function(){var t,e,n,i,o;for(t=r.clone(this.attributes),o=r.keys(this.properties),n=0,i=o.length;i>n;n++)e=o[n],t[e]=this.get(e);return t},s.prototype.set_obj=function(t,n,i){var o,s;r.isObject(t)||null===t?(o=t,i=n):(o={},o[t]=n);for(t in o)e.call(o,t)&&(s=o[t],o[t]=this.convert_to_ref(s));return this.set(o,i)},s.prototype.set=function(t,n,i){var o,a,l,u,c;r.isObject(t)||null===t?(o=t,i=n):(o={},o[t]=n),a=[];for(t in o)e.call(o,t)&&(l=o[t],r.has(this,\"properties\")&&r.has(this.properties,t)&&this.properties[t].setter&&(this.properties[t].setter.call(this,l,t),a.push(t)));if(!r.isEmpty(a))for(o=r.clone(o),u=0,c=a.length;c>u;u++)t=a[u],delete o[t];return r.isEmpty(o)?void 0:s.__super__.set.call(this,o,i)},s.prototype.convert_to_ref=function(t){return r.isArray(t)?r.map(t,this.convert_to_ref):t instanceof s?t.ref():void 0},s.prototype.add_dependencies=function(t,e,n){var i,o,s,a,l;for(r.isArray(n)||(n=[n]),o=this.properties[t],o.dependencies=o.dependencies.concat({obj:e,fields:n}),l=[],s=0,a=n.length;a>s;s++)i=n[s],l.push(this.listenTo(e,\"change:\"+i,o.callbacks.changedep));return l},s.prototype.register_setter=function(t,e){var n;return n=this.properties[t],n.setter=e},s.prototype.register_property=function(t,e,n){var i,o,s,a=this;return r.isUndefined(n)&&(n=!0),r.has(this.properties,t)&&this.remove_property(t),i=function(){return a.trigger(\"changedep:\"+t)},s=function(){var e,n,r;return e=!0,o.use_cache&&(r=a.get_cache(t),a.clear_cache(t),n=a.get(t),e=n!==r),e?(a.trigger(\"change:\"+t,a,a.get(t)),a.trigger(\"change\",a)):void 0},o={getter:e,dependencies:[],use_cache:n,setter:null,callbacks:{changedep:i,propchange:s}},this.properties[t]=o,this.listenTo(this,\"changedep:\"+t,o.callbacks.propchange),o},s.prototype.remove_property=function(t){var e,n,r,i,o,s,a,l,u,c;for(o=this.properties[t],n=o.dependencies,s=0,l=n.length;l>s;s++)for(e=n[s],i=e.obj,c=e.fields,a=0,u=c.length;u>a;a++)r=c[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},s.prototype.has_cache=function(t){return r.has(this.property_cache,t)},s.prototype.add_cache=function(t,e){return this.property_cache[t]=e},s.prototype.clear_cache=function(t){return delete this.property_cache[t]},s.prototype.get_cache=function(t){return this.property_cache[t]},s.prototype.get=function(t,e){var n;return null==e&&(e=!0),r.has(this.properties,t)?this._get_prop(t):(n=s.__super__.get.call(this,t),e?this.resolve_ref(n):n)},s.prototype._get_prop=function(t){var e,n,r;return r=this.properties[t],r.use_cache&&this.has_cache(t)?this.property_cache[t]:(n=r.getter,e=n.apply(this,[t]),this.properties[t].use_cache&&this.add_cache(t,e),e)},s.prototype.ref=function(){return{type:this.type,id:this.id}},s.prototype.resolve_ref=function(t){var e;return r.isUndefined(t)?t:r.isArray(t)?function(){var n,r,i;for(i=[],n=0,r=t.length;r>n;n++)e=t[n],i.push(this.resolve_ref(e));return i}.call(this):c(t)?t.type===this.type&&t.id===this.id?this:this.get_base().Collections(t.type).get(t.id):t},s.prototype.get_base=function(){return this._base||(this._base=o(\"./base\")),this._base},s.prototype.url=function(){var t,e;return t=this.get(\"doc\"),null==t&&u.error(\"unset 'doc' in \"+this),e=this.get_base().Config.prefix+\"bokeh/bb/\"+t+\"/\"+this.type+\"/\",this.isNew()?e:e+this.get(\"id\")+\"/\"},s.prototype.sync=function(t,e,n){return n.success(e.attributes,null,{})},s.prototype.defaults=function(){return{}},s.prototype.rpc=function(t,e,n){var r,i,o,s,a,l,u;if(s=this.get_base().Config.prefix,i=this.get(\"doc\"),null==i)throw new Error(\"Unset 'doc' in \"+this);return o=this.get(\"id\"),l=this.type,u=\"\"+s+\"bokeh/bb/rpc/\"+i+\"/\"+l+\"/\"+o+\"/\"+t+\"/\",r={args:e,kwargs:n},a=$.ajax({type:\"POST\",url:u,data:JSON.stringify(r),contentType:\"application/json\",xhrFields:{withCredentials:!0}})},s}(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};define(\"range/range1d\",[\"underscore\",\"common/collection\",\"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=\"Range1d\",r.prototype.initialize=function(t,e){return r.__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\"])},r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{start:0,end:1})},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),{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};define(\"common/layout_box\",[\"underscore\",\"./collection\",\"kiwi\",\"./has_properties\",\"range/range1d\"],function(t,n,r,i,o){var s,a,l,u,c,p,h,d,f,_;return d=r.Variable,l=r.Expression,s=r.Constraint,a=r.Operator.Eq,c=r.Operator.Le,u=r.Operator.Ge,p=function(n){function i(){return f=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.type=\"LayoutBox\",i.prototype.initialize=function(t,e){var n,c,p,h,f,_,g,m,y=this;for(i.__super__.initialize.call(this,t,e),this.solver=this.get(\"solver\"),this.var_constraints={},g=[\"top\",\"left\",\"width\",\"height\"],p=0,f=g.length;f>p;p++)c=g[p],n=\"_\"+c,this[n]=new d(c),this.register_property(c,this._get_var,!1),this.register_setter(c,this._set_var),this.solver.add_edit_variable(this[n],r.Strength.strong);for(m=[\"right\",\"bottom\"],h=0,_=m.length;_>h;h++)c=m[h],n=\"_\"+c,this[n]=new d(c),this.register_property(c,this._get_var,!1);return this.solver.add_constraint(new s(new l(this._top),u)),this.solver.add_constraint(new s(new l(this._bottom),u)),this.solver.add_constraint(new s(new l(this._left),u)),this.solver.add_constraint(new s(new l(this._right),u)),this.solver.add_constraint(new s(new l(this._width),u)),this.solver.add_constraint(new s(new l(this._height),u)),this.solver.add_constraint(new s(new l(this._left,this._width,[-1,this._right]),a)),this.solver.add_constraint(new s(new l(this._bottom,this._height,[-1,this._top]),a)),this._h_range=new o.Model({start:this.get(\"left\"),end:this.get(\"left\")+this.get(\"width\")}),this.register_property(\"h_range\",function(){return y._h_range.set(\"start\",y.get(\"left\")),y._h_range.set(\"end\",y.get(\"left\")+y.get(\"width\")),y._h_range},!1),this.add_dependencies(\"h_range\",this,[\"left\",\"width\"]),this._v_range=new o.Model({start:this.get(\"bottom\"),end:this.get(\"bottom\")+this.get(\"height\")}),this.register_property(\"v_range\",function(){return y._v_range.set(\"start\",y.get(\"bottom\")),y._v_range.set(\"end\",y.get(\"bottom\")+y.get(\"height\")),y._v_range},!1),this.add_dependencies(\"v_range\",this,[\"bottom\",\"height\"]),this._aspect_constraint=null,this.register_property(\"aspect\",function(){return y.get(\"width\")/y.get(\"height\")},!0),this.register_setter(\"aspect\",this._set_aspect),this.add_dependencies(\"aspect\",this,[\"width\",\"height\"])},i.prototype.contains=function(t,e){return t>=this.get(\"left\")&&t<=this.get(\"right\")&&e>=this.get(\"bottom\")&&e<=this.get(\"top\")},i.prototype._set_var=function(t,e){var n,r;return r=this[\"_\"+e],\"number\"==typeof t?this.solver.suggest_value(r,t):\"string\"!=typeof t?(n=new s(new l(r,[-1,t]),a),null==this.var_constraints[e]&&(this.var_constraints[e]=[]),this.var_constraints[e].push(n),this.solver.add_constraint(n)):void 0},i.prototype._get_var=function(t){return this[\"_\"+t].value()},i.prototype._set_aspect=function(t){var e;return null!=this._aspect_constraint?(this.solver.remove_constraint(this.aspect_constraint),e=new s(new l([t,this._height],[-1,this._width]),a),this._aspect_constraint=e,this.solver.add_constraint(e)):void 0},i.prototype.defaults=function(){return t.extend({},i.__super__.defaults.call(this),{top_strength:r.Strength.strong,bottom_strength:r.Strength.strong,left_strength:r.Strength.strong,right_strength:r.Strength.strong,width_strength:r.Strength.strong,height_strength:r.Strength.strong})},i}(i),h=function(t){function n(){return _=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=p,n}(n),{Model:p,Collection:new h}})}.call(this),function(){define(\"common/solver\",[\"backbone\",\"underscore\",\"kiwi\"],function(t,e,n){var r;return r=function(){function t(){this.solver=new n.Solver}return t.prototype.update_variables=function(t){return null==t&&(t=!0),this.solver.updateVariables(),t?this.trigger(\"layout_update\"):void 0},t.prototype.add_constraint=function(t){return this.solver.addConstraint(t)},t.prototype.remove_constraint=function(t){return this.solver.removeConstraint(t)},t.prototype.add_edit_variable=function(t,e){return null==e&&(e=n.Strength.strong),this.solver.addEditVariable(t,e)},t.prototype.suggest_value=function(t,e){return this.solver.suggestValue(t,e)},t}(),e.extend(r.prototype,t.Events),r})}.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};define(\"common/canvas\",[\"./collection\",\"kiwi\",\"./canvas_template\",\"./continuum_view\",\"./layout_box\",\"./logging\",\"./solver\"],function(t,n,r,i,o,s,a){var l,u,c,p,h,d,f,g,m,y;return d=n.Expression,p=n.Constraint,h=n.Operator.Eq,f=s.logger,u=function(t){function n(){return g=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.className=\"bk-canvas-wrapper\",n.prototype.template=r,n.prototype.initialize=function(t){var e,r,i;return n.__super__.initialize.call(this,t),r={map:this.mget(\"map\")},e=this.template(r),this.$el.html(e),this.canvas_wrapper=this.$el,this.canvas=this.$(\"canvas.bk-canvas\"),this.canvas_events=this.$(\"div.bk-canvas-events\"),this.canvas_overlay=this.$(\"div.bk-canvas-overlays\"),this.map_div=null!=(i=this.$(\"div.bk-canvas-map\"))?i:null,f.debug(\"CanvasView initialized\")},n.prototype.render=function(t){var e,n,r,i,o;return null==t&&(t=!1),this.model.new_bounds||t?(this.ctx=this.canvas[0].getContext(\"2d\"),this.mget(\"use_hidpi\")?(n=window.devicePixelRatio||1,e=this.ctx.webkitBackingStorePixelRatio||this.ctx.mozBackingStorePixelRatio||this.ctx.msBackingStorePixelRatio||this.ctx.oBackingStorePixelRatio||this.ctx.backingStorePixelRatio||1,i=n/e):i=1,o=this.mget(\"width\"),r=this.mget(\"height\"),this.$el.attr(\"style\",\"z-index: 50; width:\"+o+\"px; height:\"+r+\"px\"),this.canvas.attr(\"style\",\"width:\"+o+\"px;height:\"+r+\"px\"),this.canvas.attr(\"width\",o*i).attr(\"height\",r*i),this.$el.attr(\"width\",o).attr(\"height\",r),this.canvas_events.attr(\"style\",\"z-index:100; position:absolute; top:0; left:0; width:\"+o+\"px; height:\"+r+\"px;\"),this.canvas_overlay.attr(\"style\",\"z-index:75; position:absolute; top:0; left:0; width:\"+o+\"px; height:\"+r+\"px;\"),this.ctx.scale(i,i),this.ctx.translate(.5,.5),this._fixup_line_dash(this.ctx),this._fixup_line_dash_offset(this.ctx),this._fixup_image_smoothing(this.ctx),this._fixup_measure_text(this.ctx),this.model.new_bounds=!1):void 0\n",
        "                },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}(i),l=function(t){function n(){return m=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"Canvas\",n.prototype.default_view=u,n.prototype.initialize=function(t,e){var r;return r=new a,this.set(\"solver\",r),n.__super__.initialize.call(this,t,e),this.new_bounds=!0,r.add_constraint(new p(new d(this._left),h)),r.add_constraint(new p(new d(this._bottom),h)),this._set_dims([this.get(\"canvas_width\"),this.get(\"canvas_height\")]),f.debug(\"Canvas initialized\")},n.prototype.vx_to_sx=function(t){return t},n.prototype.vy_to_sy=function(t){return this.get(\"height\")-t},n.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},n.prototype.v_vy_to_sy=function(t){var e,n,r,i,o;for(e=this.get(\"height\"),n=i=0,o=t.length;o>i;n=++i)r=t[n],t[n]=e-r;return t},n.prototype.sx_to_vx=function(t){return t},n.prototype.sy_to_vy=function(t){return this.get(\"height\")-t},n.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},n.prototype.v_sy_to_vy=function(t){var e,n,r,i,o;for(e=this.get(\"height\"),n=i=0,o=t.length;o>i;n=++i)r=t[n],t[n]=e-r;return t},n.prototype._set_width=function(t,e){return null==e&&(e=!0),null!=this._width_constraint&&this.solver.remove_constraint(this._width_constraint),this._width_constraint=new p(new d(this._width,-t),h),this.solver.add_constraint(this._width_constraint),e&&this.solver.update_variables(),this.new_bounds=!0},n.prototype._set_height=function(t,e){return null==e&&(e=!0),null!=this._height_constraint&&this.solver.remove_constraint(this._height_constraint),this._height_constraint=new p(new d(this._height,-t),h),this.solver.add_constraint(this._height_constraint),e&&this.solver.update_variables(),this.new_bounds=!0},n.prototype._set_dims=function(t){return this._set_width(t[0],!1),this._set_height(t[1],!1),this.solver.update_variables()},n.prototype.defaults=function(){return _.extend({},n.__super__.defaults.call(this),{width:300,height:300,map:!1,mousedown_callbacks:[],mousemove_callbacks:[],use_hidpi:!0})},n}(o.Model),c=function(t){function n(){return y=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=l,n}(t),{Model:l,Collection:new c}})}.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};define(\"mapper/linear_mapper\",[\"common/collection\",\"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.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}(n),i=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(t),{Model:r,Collection:new 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};define(\"mapper/log_mapper\",[\"common/collection\",\"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.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,i,o,s,a,l;if(l=this.get(\"mapper_state\"),a=l[0],o=l[1],r=l[2],n=l[3],i=0,s=0,0===r)i=0;else try{if(i=(Math.log(t)-n)/r,isNaN(i))throw\"NaN\";if(isFinite(i)===!1)throw\"Infinite\"}catch(u){e=u,i=0}return s=i*a+o},n.prototype.v_map_to_target=function(t){var e,n,r,i,o,s,a,l,u,c,p,h,d,f,_,g,m,y;if(y=this.get(\"mapper_state\"),h=y[0],c=y[1],o=y[2],i=y[3],s=new Float64Array(t.length),p=new Float64Array(t.length),0===o)s=t.map(function(t){return 0*t});else try{for(l=t.map(function(t){return 0>=t}),u=t.map(function(t){return isNaN(t)}),a=function(){var e,r,i;for(i=[],n=e=0,r=t.length;r>=0?r>e:e>r;n=r>=0?++e:--e)i.push(l[n]|u[n]);return i}(),a=a.reduce(function(t,e){return t||e}),1===a&&(t[a]=1),s=t.map(function(t){return(Math.log(t)-i)/o}),r=f=0,g=s.length;g>f;r=++f){if(d=s[r],isNaN(s[r]))throw\"NaN\";if(isFinite(s[r])===!1)throw\"Infinite\"}}catch(v){e=v,s=t.map(function(t){return 0*t})}for(r=_=0,m=t.length;m>_;r=++_)d=t[r],p[r]=s[r]*h+c;return p},n.prototype.map_from_target=function(t){var e,n,r,i,o,s;return s=this.get(\"mapper_state\"),o=s[0],i=s[1],n=s[2],e=s[3],r=(t-i)/o,r=Math.exp(n*r+e)},n.prototype.v_map_from_target=function(t){var e,n,r,i,o,s;return s=this.get(\"mapper_state\"),o=s[0],i=s[1],n=s[2],e=s[3],r=t.map(function(t){return(t-i)/o}),r=r.map(function(t){return Math.exp(n*t+e)})},n.prototype._get_safe_scale=function(t,e){var n,r,i;return i=0>t?0:t,n=0>e?0:e,i===n&&(0===i?(i=1,n=10):(r=Math.log(i)/Math.log(10),i=Math.pow(10,Math.floor(r)),n=Math.ceil(r)!==Math.floor(r)?Math.pow(10,Math.ceil(r)):Math.pow(10,Math.ceil(r)+1))),[i,n]},n.prototype._mapper_state=function(){var t,e,n,r,i,o,s,a,l,u,c,p;return a=this.get(\"source_range\").get(\"start\"),s=this.get(\"source_range\").get(\"end\"),c=this.get(\"target_range\").get(\"start\"),u=this.get(\"target_range\").get(\"end\"),o=u-c,p=this._get_safe_scale(a,s),l=p[0],t=p[1],0===l?(n=Math.log(t),e=0):(n=Math.log(t)-Math.log(l),e=Math.log(l)),i=o,r=c,[i,r,n,e]},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),{Model:r,Collection:new 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};define(\"mapper/categorical_mapper\",[\"common/collection\",\"./linear_mapper\"],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.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,c;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?(c=a.split(\":\"),e=c[0],o=c[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}(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),{Model:r,Collection:new 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};define(\"mapper/grid_mapper\",[\"common/collection\",\"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.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}(n),i=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(t),{Model:r,Collection:new 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};define(\"common/cartesian_frame\",[\"underscore\",\"./collection\",\"./layout_box\",\"./logging\",\"mapper/linear_mapper\",\"mapper/log_mapper\",\"mapper/categorical_mapper\",\"mapper/grid_mapper\"],function(t,n,r,i,o,s,a,l){var u,c,p,h,d;return p=i.logger,u=function(n){function r(){return h=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"CartesianFrame\",r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.register_property(\"x_ranges\",function(){return this._get_ranges(\"x\")},!0),this.add_dependencies(\"x_ranges\",this,[\"x_range\",\"extra_x_ranges\"]),this.register_property(\"y_ranges\",function(){return this._get_ranges(\"y\")},!0),this.add_dependencies(\"y_ranges\",this,[\"y_range\",\"extra_y_ranges\"]),this.register_property(\"x_mappers\",function(){return this._get_mappers(\"x\",this.get(\"x_ranges\"),this.get(\"h_range\"))},!0),this.add_dependencies(\"x_ranges\",this,[\"x_ranges\",\"h_range\"]),this.register_property(\"y_mappers\",function(){return this._get_mappers(\"y\",this.get(\"y_ranges\"),this.get(\"v_range\"))},!0),this.add_dependencies(\"y_ranges\",this,[\"y_ranges\",\"v_range\"]),this.register_property(\"mapper\",function(){return new l.Model({domain_mapper:this.get(\"x_mapper\"),codomain_mapper:this.get(\"y_mapper\")})},!0),this.add_dependencies(\"mapper\",this,[\"x_mapper\",\"y_mapper\"]),this.listenTo(this.solver,\"layout_update\",this._update_mappers)},r.prototype.map_to_screen=function(e,n,r,i,o,s,a){var l,u,c,p;return null==s&&(s=\"default\"),null==a&&(a=\"default\"),\"screen\"===n?t.isArray(e)?c=e.slice(0):(c=new Float64Array(e.length),c.set(e)):c=this.get(\"x_mappers\")[s].v_map_to_target(e),\"screen\"===i?t.isArray(r)?p=r.slice(0):(p=new Float64Array(r.length),p.set(r)):p=this.get(\"y_mappers\")[a].v_map_to_target(r),l=o.v_vx_to_sx(c),u=o.v_vy_to_sy(p),[l,u]},r.prototype.map_from_screen=function(e,n,r,i){var o,s,a,l,u;return t.isArray(e)?o=e.slice(0):(o=new Float64Array(e.length),o.set(e)),t.isArray(n)?s=n.slice(0):(s=new Float64Array(n.length),s.set(n)),e=i.v_sx_to_vx(o),n=i.v_sy_to_vy(s),\"screen\"===r?(a=e,l=n):(u=this.mapper.v_map_from_target(e,n),a=u[0],l=u[1]),[a,l]},r.prototype._get_ranges=function(t){var e,n,r,i;if(i={},i[\"default\"]=this.get(\"\"+t+\"_range\"),e=this.get(\"extra_\"+t+\"_ranges\"),null!=e)for(n in e)r=e[n],i[n]=this.resolve_ref(r);return i},r.prototype._get_mappers=function(t,e,n){var r,i,l,u;i={};for(l in e){if(u=e[l],\"Range1d\"===u.type||\"DataRange1d\"===u.type)r=\"log\"===this.get(\"\"+t+\"_mapper_type\")?s.Model:o.Model;else{if(\"FactorRange\"!==u.type)return p.warn(\"unknown range type for range '\"+l+\"': \"+u),null;r=a.Model}i[l]=new r({source_range:u,target_range:n})}return i},r.prototype._update_mappers=function(){var t,e,n,r,i;n=this.get(\"x_mappers\");for(e in n)t=n[e],t.set(\"target_range\",this.get(\"h_range\"));r=this.get(\"y_mappers\"),i=[];for(e in r)t=r[e],i.push(t.set(\"target_range\",this.get(\"v_range\")));return i},r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{extra_x_ranges:{},extra_y_ranges:{}})},r}(r.Model),c=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=u,n}(n),{Model:u,Collection:new c}})}.call(this),function(){define(\"common/build_views\",[\"underscore\"],function(t){var e;return e=function(e,n,r,i){var o,s,a,l,u,c,p,h,d,f,_;for(null==i&&(i=[]),o=[],u=t.filter(n,function(n){return!t.has(e,n.id)}),s=h=0,f=u.length;f>h;s=++h)l=u[s],p=t.extend({},r,{model:l}),e[l.id]=s<i.length?new i[s](p):new l.default_view(p),o.push(e[l.id]);for(c=t.difference(t.keys(e),t.pluck(n,\"id\")),d=0,_=c.length;_>d;d++)a=c[d],e[a].remove(),delete e[a];return o}})}.call(this),!function(t,e,n,r){function i(t,e,n){return setTimeout(c(t,n),e)}function o(t,e,n){return Array.isArray(t)?(s(t,n[e],n),!0):!1}function s(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==r)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function a(t,e,n){for(var i=Object.keys(e),o=0;o<i.length;)(!n||n&&t[i[o]]===r)&&(t[i[o]]=e[i[o]]),o++;return t}function l(t,e){return a(t,e,!0)}function u(t,e,n){var r,i=e.prototype;r=t.prototype=Object.create(i),r.constructor=t,r._super=i,n&&a(r,n)}function c(t,e){return function(){return t.apply(e,arguments)}}function p(t,e){return typeof t==ce?t.apply(e?e[0]||r:r,e):t}function h(t,e){return t===r?e:t}function d(t,e,n){s(m(e),function(e){t.addEventListener(e,n,!1)})}function f(t,e,n){s(m(e),function(e){t.removeEventListener(e,n,!1)})}function _(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function g(t,e){return t.indexOf(e)>-1}function m(t){return t.trim().split(/\\s+/g)}function y(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function v(t){return Array.prototype.slice.call(t,0)}function b(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];y(i,s)<0&&r.push(t[o]),i[o]=s,o++}return n&&(r=e?r.sort(function(t,n){return t[e]>n[e]}):r.sort()),r}function w(t,e){for(var n,i,o=e[0].toUpperCase()+e.slice(1),s=0;s<le.length;){if(n=le[s],i=n?n+o:e,i in t)return i;s++}return r}function x(){return fe++}function k(t){var e=t.ownerDocument;return e.defaultView||e.parentWindow}function C(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){p(t.options.enable,[t])&&n.handler(e)},this.init()}function M(t){var e,n=t.options.inputClass;return new(e=n?n:me?L:ye?$:ge?V:F)(t,A)}function A(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=e&Ce&&r-i===0,s=e&(Ae|Se)&&r-i===0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,S(t,n),t.emit(\"hammer.input\",n),t.recognize(n),t.session.prevInput=n}function S(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=E(e)),i>1&&!n.firstMultiple?n.firstMultiple=E(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,a=s?s.center:o.center,l=e.center=R(r);e.timeStamp=de(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=z(a,l),e.distance=N(a,l),T(n,e),e.offsetDirection=P(e.deltaX,e.deltaY),e.scale=s?j(s.pointers,r):1,e.rotation=s?O(s.pointers,r):0,D(n,e);var u=t.element;_(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}function T(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};(e.eventType===Ce||o.eventType===Ae)&&(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}function D(t,e){var n,i,o,s,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(e.eventType!=Se&&(l>ke||a.velocity===r)){var u=a.deltaX-e.deltaX,c=a.deltaY-e.deltaY,p=I(l,u,c);i=p.x,o=p.y,n=he(p.x)>he(p.y)?p.x:p.y,s=P(u,c),t.lastInterval=e}else n=a.velocity,i=a.velocityX,o=a.velocityY,s=a.direction;e.velocity=n,e.velocityX=i,e.velocityY=o,e.direction=s}function E(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:pe(t.pointers[n].clientX),clientY:pe(t.pointers[n].clientY)},n++;return{timeStamp:de(),pointers:e,center:R(e),deltaX:t.deltaX,deltaY:t.deltaY}}function R(t){var e=t.length;if(1===e)return{x:pe(t[0].clientX),y:pe(t[0].clientY)};for(var n=0,r=0,i=0;e>i;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:pe(n/e),y:pe(r/e)}}function I(t,e,n){return{x:e/t||0,y:n/t||0}}function P(t,e){return t===e?Te:he(t)>=he(e)?t>0?De:Ee:e>0?Re:Ie}function N(t,e,n){n||(n=Oe);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function z(t,e,n){n||(n=Oe);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function O(t,e){return z(e[1],e[0],je)-z(t[1],t[0],je)}function j(t,e){return N(e[0],e[1],je)/N(t[0],t[1],je)}function F(){this.evEl=Le,this.evWin=Be,this.allow=!0,this.pressed=!1,C.apply(this,arguments)}function L(){this.evEl=We,this.evWin=Ve,C.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function B(){this.evTarget=Ue,this.evWin=qe,this.started=!1,C.apply(this,arguments)}function H(t,e){var n=v(t.touches),r=v(t.changedTouches);return e&(Ae|Se)&&(n=b(n.concat(r),\"identifier\",!0)),[n,r]}function $(){this.evTarget=Ze,this.targetIds={},C.apply(this,arguments)}function W(t,e){var n=v(t.touches),r=this.targetIds;if(e&(Ce|Me)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,s=v(t.changedTouches),a=[],l=this.target;if(o=n.filter(function(t){return _(t.target,l)}),e===Ce)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<s.length;)r[s[i].identifier]&&a.push(s[i]),e&(Ae|Se)&&delete r[s[i].identifier],i++;return a.length?[b(o.concat(a),\"identifier\",!0),a]:void 0}function V(){C.apply(this,arguments);var t=c(this.handler,this);this.touch=new $(this.manager,t),this.mouse=new F(this.manager,t)}function Y(t,e){this.manager=t,this.set(e)}function U(t){if(g(t,en))return en;var e=g(t,nn),n=g(t,rn);return e&&n?nn+\" \"+rn:e||n?e?nn:rn:g(t,tn)?tn:Ke}function q(t){this.id=x(),this.manager=null,this.options=l(t||{},this.defaults),this.options.enable=h(this.options.enable,!0),this.state=on,this.simultaneous={},this.requireFail=[]}function G(t){return t&cn?\"cancel\":t&ln?\"end\":t&an?\"move\":t&sn?\"start\":\"\"}function Z(t){return t==Ie?\"down\":t==Re?\"up\":t==De?\"left\":t==Ee?\"right\":\"\"}function J(t,e){var n=e.manager;return n?n.get(t):t}function X(){q.apply(this,arguments)}function Q(){X.apply(this,arguments),this.pX=null,this.pY=null}function K(){X.apply(this,arguments)}function te(){q.apply(this,arguments),this._timer=null,this._input=null}function ee(){X.apply(this,arguments)}function ne(){X.apply(this,arguments)}function re(){q.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ie(t,e){return e=e||{},e.recognizers=h(e.recognizers,ie.defaults.preset),new oe(t,e)}function oe(t,e){e=e||{},this.options=l(e,ie.defaults),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.element=t,this.input=M(this),this.touchAction=new Y(this,this.options.touchAction),se(this,!0),s(e.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function se(t,e){var n=t.element;s(t.options.cssProps,function(t,r){n.style[w(n.style,r)]=e?t:\"\"})}function ae(t,n){var r=e.createEvent(\"Event\");r.initEvent(t,!0,!0),r.gesture=n,n.target.dispatchEvent(r)}var le=[\"\",\"webkit\",\"moz\",\"MS\",\"ms\",\"o\"],ue=e.createElement(\"div\"),ce=\"function\",pe=Math.round,he=Math.abs,de=Date.now,fe=1,_e=/mobile|tablet|ip(ad|hone|od)|android/i,ge=\"ontouchstart\"in t,me=w(t,\"PointerEvent\")!==r,ye=ge&&_e.test(navigator.userAgent),ve=\"touch\",be=\"pen\",we=\"mouse\",xe=\"kinect\",ke=25,Ce=1,Me=2,Ae=4,Se=8,Te=1,De=2,Ee=4,Re=8,Ie=16,Pe=De|Ee,Ne=Re|Ie,ze=Pe|Ne,Oe=[\"x\",\"y\"],je=[\"clientX\",\"clientY\"];C.prototype={handler:function(){},init:function(){this.evEl&&d(this.element,this.evEl,this.domHandler),this.evTarget&&d(this.target,this.evTarget,this.domHandler),this.evWin&&d(k(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&f(this.element,this.evEl,this.domHandler),this.evTarget&&f(this.target,this.evTarget,this.domHandler),this.evWin&&f(k(this.element),this.evWin,this.domHandler)}};var Fe={mousedown:Ce,mousemove:Me,mouseup:Ae},Le=\"mousedown\",Be=\"mousemove mouseup\";u(F,C,{handler:function(t){var e=Fe[t.type];e&Ce&&0===t.button&&(this.pressed=!0),e&Me&&1!==t.which&&(e=Ae),this.pressed&&this.allow&&(e&Ae&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:we,srcEvent:t}))}});var He={pointerdown:Ce,pointermove:Me,pointerup:Ae,pointercancel:Se,pointerout:Se},$e={2:ve,3:be,4:we,5:xe},We=\"pointerdown\",Ve=\"pointermove pointerup pointercancel\";t.MSPointerEvent&&(We=\"MSPointerDown\",Ve=\"MSPointerMove MSPointerUp MSPointerCancel\"),u(L,C,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace(\"ms\",\"\"),i=He[r],o=$e[t.pointerType]||t.pointerType,s=o==ve,a=y(e,t.pointerId,\"pointerId\");i&Ce&&(0===t.button||s)?0>a&&(e.push(t),a=e.length-1):i&(Ae|Se)&&(n=!0),0>a||(e[a]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))}});var Ye={touchstart:Ce,touchmove:Me,touchend:Ae,touchcancel:Se},Ue=\"touchstart\",qe=\"touchstart touchmove touchend touchcancel\";u(B,C,{handler:function(t){var e=Ye[t.type];if(e===Ce&&(this.started=!0),this.started){var n=H.call(this,t,e);e&(Ae|Se)&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:ve,srcEvent:t})}}});var Ge={touchstart:Ce,touchmove:Me,touchend:Ae,touchcancel:Se},Ze=\"touchstart touchmove touchend touchcancel\";u($,C,{handler:function(t){var e=Ge[t.type],n=W.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:ve,srcEvent:t})}}),u(V,C,{handler:function(t,e,n){var r=n.pointerType==ve,i=n.pointerType==we;if(r)this.mouse.allow=!1;else if(i&&!this.mouse.allow)return;e&(Ae|Se)&&(this.mouse.allow=!0),this.callback(t,e,n)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Je=w(ue.style,\"touchAction\"),Xe=Je!==r,Qe=\"compute\",Ke=\"auto\",tn=\"manipulation\",en=\"none\",nn=\"pan-x\",rn=\"pan-y\";Y.prototype={set:function(t){t==Qe&&(t=this.compute()),Xe&&(this.manager.element.style[Je]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return s(this.manager.recognizers,function(e){p(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),U(t.join(\" \"))},preventDefaults:function(t){if(!Xe){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var r=this.actions,i=g(r,en),o=g(r,rn),s=g(r,nn);return i||o&&n&Pe||s&&n&Ne?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var on=1,sn=2,an=4,ln=8,un=ln,cn=16,pn=32;q.prototype={defaults:{},set:function(t){return a(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(o(t,\"recognizeWith\",this))return this;var e=this.simultaneous;return t=J(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return o(t,\"dropRecognizeWith\",this)?this:(t=J(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(o(t,\"requireFailure\",this))return this;var e=this.requireFail;return t=J(t,this),-1===y(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(o(t,\"dropRequireFailure\",this))return this;t=J(t,this);var e=y(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(n.options.event+(e?G(r):\"\"),t)}var n=this,r=this.state;ln>r&&e(!0),e(),r>=ln&&e(!0)},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=pn)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(pn|on)))return!1;t++}return!0},recognize:function(t){var e=a({},t);return p(this.options.enable,[this,e])?(this.state&(un|cn|pn)&&(this.state=on),this.state=this.process(e),void(this.state&(sn|an|ln|cn)&&this.tryEmit(e))):(this.reset(),void(this.state=pn))},process:function(){},getTouchAction:function(){},reset:function(){}},u(X,q,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=e&(sn|an),i=this.attrTest(t);return r&&(n&Se||!i)?e|cn:r||i?n&Ae?e|ln:e&sn?e|an:sn:pn}}),u(Q,X,{defaults:{event:\"pan\",threshold:10,pointers:1,direction:ze},getTouchAction:function(){var t=this.options.direction,e=[];return t&Pe&&e.push(rn),t&Ne&&e.push(nn),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,s=t.deltaY;return i&e.direction||(e.direction&Pe?(i=0===o?Te:0>o?De:Ee,n=o!=this.pX,r=Math.abs(t.deltaX)):(i=0===s?Te:0>s?Re:Ie,n=s!=this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return X.prototype.attrTest.call(this,t)&&(this.state&sn||!(this.state&sn)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Z(t.direction);e&&this.manager.emit(this.options.event+e,t),this._super.emit.call(this,t)}}),u(K,X,{defaults:{event:\"pinch\",threshold:0,pointers:2},getTouchAction:function(){return[en]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&sn)},emit:function(t){if(this._super.emit.call(this,t),1!==t.scale){var e=t.scale<1?\"in\":\"out\";this.manager.emit(this.options.event+e,t)}}}),u(te,q,{defaults:{event:\"press\",pointers:1,time:500,threshold:5},getTouchAction:function(){return[Ke]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,o=t.deltaTime>e.time;if(this._input=t,!r||!n||t.eventType&(Ae|Se)&&!o)this.reset();else if(t.eventType&Ce)this.reset(),this._timer=i(function(){this.state=un,this.tryEmit()},e.time,this);else if(t.eventType&Ae)return un;return pn},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===un&&(t&&t.eventType&Ae?this.manager.emit(this.options.event+\"up\",t):(this._input.timeStamp=de(),this.manager.emit(this.options.event,this._input)))}}),u(ee,X,{defaults:{event:\"rotate\",threshold:0,pointers:2},getTouchAction:function(){return[en]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&sn)}}),u(ne,X,{defaults:{event:\"swipe\",threshold:10,velocity:.65,direction:Pe|Ne,pointers:1},getTouchAction:function(){return Q.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Pe|Ne)?e=t.velocity:n&Pe?e=t.velocityX:n&Ne&&(e=t.velocityY),this._super.attrTest.call(this,t)&&n&t.direction&&t.distance>this.options.threshold&&he(e)>this.options.velocity&&t.eventType&Ae},emit:function(t){var e=Z(t.direction);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),u(re,q,{defaults:{event:\"tap\",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[tn]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,o=t.deltaTime<e.time;if(this.reset(),t.eventType&Ce&&0===this.count)return this.failTimeout();if(r&&o&&n){if(t.eventType!=Ae)return this.failTimeout();var s=this.pTime?t.timeStamp-this.pTime<e.interval:!0,a=!this.pCenter||N(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,a&&s?this.count+=1:this.count=1,this._input=t;var l=this.count%e.taps;if(0===l)return this.hasRequireFailures()?(this._timer=i(function(){this.state=un,this.tryEmit()},e.interval,this),sn):un}return pn},failTimeout:function(){return this._timer=i(function(){this.state=pn},this.options.interval,this),pn},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==un&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ie.VERSION=\"2.0.4\",ie.defaults={domEvents:!1,touchAction:Qe,enable:!0,inputTarget:null,inputClass:null,preset:[[ee,{enable:!1}],[K,{enable:!1},[\"rotate\"]],[ne,{direction:Pe}],[Q,{direction:Pe},[\"swipe\"]],[re],[re,{event:\"doubletap\",taps:2},[\"tap\"]],[te]],cssProps:{userSelect:\"none\",touchSelect:\"none\",touchCallout:\"none\",contentZooming:\"none\",userDrag:\"none\",tapHighlightColor:\"rgba(0,0,0,0)\"}};var hn=1,dn=2;oe.prototype={set:function(t){return a(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?dn:hn},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,r=this.recognizers,i=e.curRecognizer;(!i||i&&i.state&un)&&(i=e.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],e.stopped===dn||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&n.state&(sn|an|ln)&&(i=e.curRecognizer=n),o++}},get:function(t){if(t instanceof q)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(o(t,\"add\",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(o(t,\"remove\",this))return this;var e=this.recognizers;return t=this.get(t),e.splice(y(e,t),1),this.touchAction.update(),this},on:function(t,e){var n=this.handlers;return s(m(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this},off:function(t,e){var n=this.handlers;return s(m(t),function(t){e?n[t].splice(y(n[t],e),1):delete n[t]}),this},emit:function(t,e){this.options.domEvents&&ae(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&se(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null\n",
        "                }},a(ie,{INPUT_START:Ce,INPUT_MOVE:Me,INPUT_END:Ae,INPUT_CANCEL:Se,STATE_POSSIBLE:on,STATE_BEGAN:sn,STATE_CHANGED:an,STATE_ENDED:ln,STATE_RECOGNIZED:un,STATE_CANCELLED:cn,STATE_FAILED:pn,DIRECTION_NONE:Te,DIRECTION_LEFT:De,DIRECTION_RIGHT:Ee,DIRECTION_UP:Re,DIRECTION_DOWN:Ie,DIRECTION_HORIZONTAL:Pe,DIRECTION_VERTICAL:Ne,DIRECTION_ALL:ze,Manager:oe,Input:C,TouchAction:Y,TouchInput:$,MouseInput:F,PointerEventInput:L,TouchMouseInput:V,SingleTouchInput:B,Recognizer:q,AttrRecognizer:X,Tap:re,Pan:Q,Swipe:ne,Pinch:K,Rotate:ee,Press:te,on:d,off:f,each:s,merge:l,extend:a,inherit:u,bindFn:c,prefixed:w}),typeof define==ce&&define.amd?define(\"hammer\",[],function(){return ie}):\"undefined\"!=typeof module&&module.exports?module.exports=ie:t[n]=ie}(window,document,\"Hammer\"),!function(t){\"function\"==typeof define&&define.amd?define(\"jquery_mousewheel\",[\"jquery\"],t):\"object\"==typeof exports?module.exports=t:t(jQuery)}(function(t){function e(e){var s=e||window.event,a=l.call(arguments,1),u=0,p=0,h=0,d=0,f=0,_=0;if(e=t.event.fix(s),e.type=\"mousewheel\",\"detail\"in s&&(h=-1*s.detail),\"wheelDelta\"in s&&(h=s.wheelDelta),\"wheelDeltaY\"in s&&(h=s.wheelDeltaY),\"wheelDeltaX\"in s&&(p=-1*s.wheelDeltaX),\"axis\"in s&&s.axis===s.HORIZONTAL_AXIS&&(p=-1*h,h=0),u=0===h?p:h,\"deltaY\"in s&&(h=-1*s.deltaY,u=h),\"deltaX\"in s&&(p=s.deltaX,0===h&&(u=-1*p)),0!==h||0!==p){if(1===s.deltaMode){var g=t.data(this,\"mousewheel-line-height\");u*=g,h*=g,p*=g}else if(2===s.deltaMode){var m=t.data(this,\"mousewheel-page-height\");u*=m,h*=m,p*=m}if(d=Math.max(Math.abs(h),Math.abs(p)),(!o||o>d)&&(o=d,r(s,d)&&(o/=40)),r(s,d)&&(u/=40,p/=40,h/=40),u=Math[u>=1?\"floor\":\"ceil\"](u/o),p=Math[p>=1?\"floor\":\"ceil\"](p/o),h=Math[h>=1?\"floor\":\"ceil\"](h/o),c.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=e.clientX-y.left,_=e.clientY-y.top}return e.deltaX=p,e.deltaY=h,e.deltaFactor=o,e.offsetX=f,e.offsetY=_,e.deltaMode=0,a.unshift(e,u,p,h),i&&clearTimeout(i),i=setTimeout(n,200),(t.event.dispatch||t.event.handle).apply(this,a)}}function n(){o=null}function r(t,e){return c.settings.adjustOldDeltas&&\"mousewheel\"===t.type&&e%120===0}var i,o,s=[\"wheel\",\"mousewheel\",\"DOMMouseScroll\",\"MozMousePixelScroll\"],a=\"onwheel\"in document||document.documentMode>=9?[\"wheel\"]:[\"mousewheel\",\"DomMouseScroll\",\"MozMousePixelScroll\"],l=Array.prototype.slice;if(t.event.fixHooks)for(var u=s.length;u;)t.event.fixHooks[s[--u]]=t.event.mouseHooks;var c=t.event.special.mousewheel={version:\"3.1.12\",setup:function(){if(this.addEventListener)for(var n=a.length;n;)this.addEventListener(a[--n],e,!1);else this.onmousewheel=e;t.data(this,\"mousewheel-line-height\",c.getLineHeight(this)),t.data(this,\"mousewheel-page-height\",c.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var n=a.length;n;)this.removeEventListener(a[--n],e,!1);else this.onmousewheel=null;t.removeData(this,\"mousewheel-line-height\"),t.removeData(this,\"mousewheel-page-height\")},getLineHeight:function(e){var n=t(e),r=n[\"offsetParent\"in t.fn?\"offsetParent\":\"parent\"]();return r.length||(r=t(\"body\")),parseInt(r.css(\"fontSize\"),10)||parseInt(n.css(\"fontSize\"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};t.fn.extend({mousewheel:function(t){return t?this.bind(\"mousewheel\",t):this.trigger(\"mousewheel\")},unmousewheel:function(t){return this.unbind(\"mousewheel\",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};define(\"common/ui_events\",[\"backbone\",\"hammer\",\"jquery_mousewheel\",\"common/logging\"],function(t,n,r,i){var o,s,a;return s=i.logger,o=function(t){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype.initialize=function(t,e){var i,o=this;return r.__super__.initialize.call(this,t,e),i=this.get(\"hit_area\"),this.hammer=new n(i[0]),this.hammer.get(\"doubletap\").recognizeWith(\"tap\"),this.hammer.get(\"tap\").requireFailure(\"doubletap\"),this.hammer.get(\"doubletap\").dropRequireFailure(\"tap\"),this.hammer.on(\"doubletap\",function(t){return o._doubletap(t)}),this.hammer.on(\"tap\",function(t){return o._tap(t)}),this.hammer.on(\"press\",function(t){return o._press(t)}),this.hammer.get(\"pan\").set({direction:n.DIRECTION_ALL}),this.hammer.on(\"panstart\",function(t){return o._pan_start(t)}),this.hammer.on(\"pan\",function(t){return o._pan(t)}),this.hammer.on(\"panend\",function(t){return o._pan_end(t)}),this.hammer.get(\"pinch\").set({enable:!0}),this.hammer.on(\"pinchstart\",function(t){return o._pinch_start(t)}),this.hammer.on(\"pinch\",function(t){return o._pinch(t)}),this.hammer.on(\"pinchend\",function(t){return o._pinch_end(t)}),this.hammer.get(\"rotate\").set({enable:!0}),this.hammer.on(\"rotatestart\",function(t){return o._rotate_start(t)}),this.hammer.on(\"rotate\",function(t){return o._rotate(t)}),this.hammer.on(\"rotateend\",function(t){return o._rotate_end(t)}),i.mousemove(function(t){return o._mouse_move(t)}),i.mouseenter(function(t){return o._mouse_enter(t)}),i.mouseleave(function(t){return o._mouse_exit(t)}),i.mousewheel(function(t,e){return o._mouse_wheel(t,e)}),$(document).keydown(function(t){return o._key_down(t)}),$(document).keyup(function(t){return o._key_up(t)})},r.prototype.register_tool=function(t){var e,n,r;return e=t.mget(\"event_type\"),n=t.mget(\"id\"),r=t.model.type,null==e?void s.debug(\"Button tool: \"+r):(\"pan\"===e||\"pinch\"===e||\"rotate\"===e?(s.debug(\"Registering tool: \"+r+\" for event '\"+e+\"'\"),null!=t[\"_\"+e+\"_start\"]&&t.listenTo(this,\"\"+e+\":start:\"+n,t[\"_\"+e+\"_start\"]),t[\"_\"+e]&&t.listenTo(this,\"\"+e+\":\"+n,t[\"_\"+e]),t[\"_\"+e+\"_end\"]&&t.listenTo(this,\"\"+e+\":end:\"+n,t[\"_\"+e+\"_end\"])):\"move\"===e?(s.debug(\"Registering tool: \"+r+\" for event '\"+e+\"'\"),null!=t._move_enter&&t.listenTo(this,\"move:enter\",t._move_enter),t.listenTo(this,\"move\",t._move),null!=t._move_exit&&t.listenTo(this,\"move:exit\",t._move_exit)):(s.debug(\"Registering tool: \"+r+\" for event '\"+e+\"'\"),t.listenTo(this,\"\"+e+\":\"+n,t[\"_\"+e])),null!=t._keydown&&(s.debug(\"Registering tool: \"+r+\" for event 'keydown'\"),t.listenTo(this,\"keydown\",t._keydown)),null!=t._keyup&&(s.debug(\"Registering tool: \"+r+\" for event 'keyup'\"),t.listenTo(this,\"keyup\",t._keyup)),null!=t._doubletap?(s.debug(\"Registering tool: \"+r+\" for event 'doubletap'\"),t.listenTo(this,\"doubletap\",t._doubletap)):void 0)},r.prototype._trigger=function(t,e){var n,r,i,o;return o=this.get(\"tool_manager\"),r=t.split(\":\")[0],i=o.get(\"gestures\"),n=i[r].active,null!=n?this.trigger(\"\"+t+\":\"+n.id,e):void 0},r.prototype._bokify_hammer=function(t){var e,n,r,i,o;return\"mouse\"===t.pointerType?(n=$(t.target).offset(),e=null!=(i=n.left)?i:0,r=null!=(o=n.top)?o:0,t.bokeh={sx:t.srcEvent.pageX-e,sy:t.srcEvent.pageY-r}):t.bokeh={sx:t.center.x,sy:t.center.y}},r.prototype._bokify_jq=function(t){var e,n,r,i,o;return n=$(t.currentTarget).offset(),e=null!=(i=n.left)?i:0,r=null!=(o=n.top)?o:0,t.bokeh={sx:t.pageX-e,sy:t.pageY-r}},r.prototype._tap=function(t){return this._bokify_hammer(t),this._trigger(\"tap\",t)},r.prototype._doubletap=function(t){return this._bokify_hammer(t),this.trigger(\"doubletap\",t)},r.prototype._press=function(t){return this._bokify_hammer(t),this._trigger(\"press\",t)},r.prototype._pan_start=function(t){return this._bokify_hammer(t),t.bokeh.sx-=t.deltaX,t.bokeh.sy-=t.deltaY,this._trigger(\"pan:start\",t)},r.prototype._pan=function(t){return this._bokify_hammer(t),this._trigger(\"pan\",t)},r.prototype._pan_end=function(t){return this._bokify_hammer(t),this._trigger(\"pan:end\",t)},r.prototype._pinch_start=function(t){return this._bokify_hammer(t),this._trigger(\"pinch:start\",t)},r.prototype._pinch=function(t){return this._bokify_hammer(t),this._trigger(\"pinch\",t)},r.prototype._pinch_end=function(t){return this._bokify_hammer(t),this._trigger(\"pinch:end\",t)},r.prototype._rotate_start=function(t){return this._bokify_hammer(t),this._trigger(\"rotate:start\",t)},r.prototype._rotate=function(t){return this._bokify_hammer(t),this._trigger(\"rotate\",t)},r.prototype._rotate_end=function(t){return this._bokify_hammer(t),this._trigger(\"rotate:end\",t)},r.prototype._mouse_enter=function(t){return this._bokify_jq(t),this.trigger(\"move:enter\",t)},r.prototype._mouse_move=function(t){return this._bokify_jq(t),this.trigger(\"move\",t)},r.prototype._mouse_exit=function(t){return this._bokify_jq(t),this.trigger(\"move:exit\",t)},r.prototype._mouse_wheel=function(t,e){return this._bokify_jq(t),t.bokeh.delta=e,this._trigger(\"scroll\",t),t.preventDefault(),t.stopPropagation()},r.prototype._key_down=function(t){return this.trigger(\"keydown\",t)},r.prototype._key_up=function(t){return this.trigger(\"keyup\",t)},r}(t.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};define(\"common/has_parent\",[\"underscore\",\"./has_properties\"],function(t,n){var r,i;return r=function(r){function o(){return i=o.__super__.constructor.apply(this,arguments)}return e(o,r),o.prototype.initialize=function(t,e){return o.__super__.initialize.call(this,t,e),this._parent=n.prototype.get.apply(this,[\"parent\"])},o.prototype.get=function(e){var n;return this._display_defaults||(this._display_defaults=this.display_defaults()),\"parent\"===e?this._parent:(n=o.__super__.get.call(this,e),t.isUndefined(n)?this._parent&&t.indexOf(this._parent.parent_properties,e)>=0&&(n=this._parent.get(e),!t.isUndefined(n))?n:this._display_defaults[e]:n)},o.prototype.display_defaults=function(){return{}},o}(n)})}.call(this),function(){define(\"common/plot_utils\",[],function(){var t,e,n,r;return t=[\"image\",\"underlay\",\"glyph\",\"overlay\",\"annotation\",\"tool\"],r=function(t){return t()},e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||r,n=function(t,n){var r,i,o,s,a,l,u,c;return c=[null,null,null,null],i=c[0],r=c[1],u=c[2],l=c[3],a=0,s=!1,o=function(){return a=new Date,u=null,s=!1,l=t.apply(i,r)},function(){var t,c;return t=new Date,c=n-(t-a),i=this,r=arguments,0>=c&&!s?(clearTimeout(u),s=!0,e(o)):u||(u=setTimeout(function(){return e(o)},c)),l}},{LEVELS:t,throttle_animation:n}})}.call(this),define(\"bootstrap/dropdown\",[\"jquery\"],function(t){+function(t){function e(e){t(r).remove(),t(i).each(function(){var r=n(t(this)),i={relatedTarget:this};r.hasClass(\"bk-bs-open\")&&(r.trigger(e=t.Event(\"hide.bk-bs.dropdown\",i)),e.isDefaultPrevented()||r.removeClass(\"bk-bs-open\").trigger(\"hidden.bk-bs.dropdown\",i))})}function n(e){var n=e.attr(\"data-bk-bs-target\");n||(n=e.attr(\"href\"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\\s]*$)/,\"\"));var r=n&&t(n);return r&&r.length?r:e.parent()}var r=\".bk-bs-dropdown-backdrop\",i=\"[data-bk-bs-toggle=dropdown]\",o=function(e){t(e).on(\"click.bk-bs.dropdown\",this.toggle)};o.prototype.toggle=function(r){var i=t(this);if(!i.is(\".bk-bs-disabled, :disabled\")){var o=n(i),s=o.hasClass(\"bk-bs-open\");if(e(),!s){\"ontouchstart\"in document.documentElement&&!o.closest(\".bk-bs-navbar-nav\").length&&t('<div class=\"bk-bs-dropdown-backdrop\"/>').insertAfter(t(this)).on(\"click\",e);var a={relatedTarget:this};if(o.trigger(r=t.Event(\"show.bk-bs.dropdown\",a)),r.isDefaultPrevented())return;o.toggleClass(\"bk-bs-open\").trigger(\"shown.bk-bs.dropdown\",a),i.focus()}return!1}},o.prototype.keydown=function(e){if(/(38|40|27)/.test(e.keyCode)){var r=t(this);if(e.preventDefault(),e.stopPropagation(),!r.is(\".bk-bs-disabled, :disabled\")){var o=n(r),s=o.hasClass(\"bk-bs-open\");if(!s||s&&27==e.keyCode)return 27==e.which&&o.find(i).focus(),r.click();var a=\" li:not(.bk-bs-divider):visible a\",l=o.find(\"[role=menu]\"+a+\", [role=listbox]\"+a);if(l.length){var u=l.index(l.filter(\":focus\"));38==e.keyCode&&u>0&&u--,40==e.keyCode&&u<l.length-1&&u++,~u||(u=0),l.eq(u).focus()}}}};var s=t.fn.dropdown;t.fn.dropdown=function(e){return this.each(function(){var n=t(this),r=n.data(\"bk-bs.dropdown\");r||n.data(\"bk-bs.dropdown\",r=new o(this)),\"string\"==typeof e&&r[e].call(n)})},t.fn.dropdown.Constructor=o,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=s,this},t(document).on(\"click.bk-bs.dropdown.data-api\",e).on(\"click.bk-bs.dropdown.data-api\",\".bk-bs-dropdown form\",function(t){t.stopPropagation()}).on(\"click.bk-bs.dropdown.data-api\",i,o.prototype.toggle).on(\"keydown.bk-bs.dropdown.data-api\",i+\", [role=menu], [role=listbox]\",o.prototype.keydown)}(t)}),define(\"common/toolbar_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(){r(e('<a href=\\'http://bokeh.pydata.org/\\' target=\\'_blank\\' class=\\'bk-logo bk-logo-small\\'></a>\\n<div class=\\'bk-button-bar\\'>\\n  <ul class=\\'bk-button-bar-list\\' type=\"pan\" />\\n  <ul class=\\'bk-button-bar-list\\' type=\"scroll\" />\\n  <ul class=\\'bk-button-bar-list\\' type=\"pinch\" />\\n  <ul class=\\'bk-button-bar-list\\' type=\"tap\" />\\n  <ul class=\\'bk-button-bar-list\\' type=\"press\" />\\n  <ul class=\\'bk-button-bar-list\\' type=\"rotate\" />\\n  <ul class=\\'bk-button-bar-list\\' type=\"actions\" />\\n  <div class=\\'bk-button-bar-list bk-bs-dropdown\\' type=\"inspectors\" />\\n  <ul class=\\'bk-button-bar-list\\' type=\"help\">\\n    <li>\\n  \t  <button class=\"bk-toolbar-button help\" title=\"Help\">\\n\t    <img class=\"bk-btn-icon\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo3NzIwRUFGMDYyMjE2ODExOTdBNUNBNjVEQTY5OTRDRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozMjFERDhDRjIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozMjFERDhDRTIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1LjEgTWFjaW50b3NoIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OTdFQUZCRjQ4NjIxNjgxMTk3QTVDQTY1REE2OTk0Q0UiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzcyMEVBRjA2MjIxNjgxMTk3QTVDQTY1REE2OTk0Q0UiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6QBYrgAAABb0lEQVR42ozTwUeEQRjH8W3bKEs6JkpESqfVpS4RHaJL2b2sLepUh3To0KFVIjp0iegQUdG21WmVvUWsKBGRlIiU7Q+IVaT0ffi9eY33peFj7cw8zzvzzEzV7v5hxGltGEUvutR3hwvs4ck/OeoET6KACrJolaz6Cprz12L6rcEOajGEFyfxtRxhDX0Yx5e3ggV8IqlgW/4J3vCKddRrLKm5894KOjGCHiVrwDZ+sKKvpRQ0pzkzuETeEqSxpT1aa8ezCmbyuEW3b0sVxaQtQT+mfINXGPT9T+n3xqnLKTYsQQseI8FtWnstYdEZs9o0eqdQZxUNSWD9YwHj36i2UyijOWQFVvmPkOR2P8qW4AwDIQma0BEyZjGlqCo9gXjA1+0ePAQExxWTtwT3KOqG/bfZ3GOL9W7ikrIe6FSsvQdswcZymrvsf0xWpIzqYauZRcIXmFBfUUea8Qobc5a2qQtiz3nVec7nGHaf868AAwDKW1RIPmvhEQAAAABJRU5ErkJggg==\">\\n\t    <span class=\"tip\">\\n\t\t  <span>For Pan tool, left click and drag.<br/><br/>\\n\t\t  For Wheel Zoom, hold shift and scroll or select the Wheel Zoom tool and scroll.<br/><br/></span>\\n\t\t  <a href=\"http://bokeh.pydata.org\" target=\"_blank\">Learn More</a>\\n\t    </span>\\n\t  </button>\\n    </li>\\n  </ul>\\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}),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};define(\"common/plot_widget\",[\"./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.tagName=\"div\",n.prototype.initialize=function(t){return this.plot_model=t.plot_model,this.plot_view=t.plot_view},n.prototype.bind_bokeh_events=function(){},n.prototype.request_render=function(){return this.plot_view.request_render()},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};define(\"tool/tool\",[\"common/plot_widget\",\"common/has_properties\",\"common/logging\"],function(t,n,r){var i,o,s,a,l;return s=r.logger,o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.bind_bokeh_events=function(){var t=this;return this.listenTo(this.model,\"change:active\",function(){return t.mget(\"active\")?t.activate():t.deactivate()})},n.prototype.activate=function(){},n.prototype.deactivate=function(){},n}(t),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._check_dims=function(t,e){var n,r,i;return i=[!1,!1],r=i[0],n=i[1],0===t.length?s.warn(\"\"+e+\" given empty dimensions\"):1===t.length?\"width\"!==t[0]&&\"height\"!==t[0]&&s.warn(\"\"+e+\" given unrecognized dimensions: \"+t):2===t.length?(t.indexOf(\"width\")<0||t.indexOf(\"height\")<0)&&s.warn(\"\"+e+\" given unrecognized dimensions: \"+t):s.warn(\"\"+e+\" given more than two dimensions: \"+t),t.indexOf(\"width\")>=0&&(r=!0),t.indexOf(\"height\")>=0&&(n=!0),[r,n]},n.prototype._get_dim_tooltip=function(t,e){var n,r;return r=e[0],n=e[1],r&&!n?\"\"+t+\" (x-axis)\":n&&!r?\"\"+t+\" (y-axis)\":t},n.prototype._get_dim_limits=function(t,e,n,r){var i,o,s,a,l,u,c,p;return s=t[0],u=t[1],a=e[0],c=e[1],i=n.get(\"h_range\"),r.indexOf(\"width\")>=0?(l=[_.min([s,a]),_.max([s,a])],l=[_.max([l[0],i.get(\"min\")]),_.min([l[1],i.get(\"max\")])]):l=[i.get(\"min\"),i.get(\"max\")],o=n.get(\"v_range\"),r.indexOf(\"height\")>=0?(p=[_.min([u,c]),_.max([u,c])],p=[_.max([p[0],o.get(\"min\")]),_.min([p[1],o.get(\"max\")])]):p=[o.get(\"min\"),o.get(\"max\")],[l,p]},n.prototype.defaults=function(){return _.extend({},n.__super__.defaults.call(this),{tool_name:this.tool_name,level:\"overlay\"})},n}(n),{Model:i,View:o}})}.call(this),define(\"tool/button_tool_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(){r(e('<button type=\"button\" class=\"bk-toolbar-button hover\">\\n  <img class=\\'bk-btn-icon\\' src=')),r(this.icon),r(e(\" />\\n  <span class='tip'>\")),r(this.tooltip),r(e(\"</span>\\n</button>\\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};define(\"tool/button_tool\",[\"backbone\",\"./tool\",\"./button_tool_template\"],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.tagName=\"li\",n.prototype.template=r,n.prototype.events=function(){return\"ontouchstart\"in document?{\"touchstart .bk-toolbar-button\":\"_clicked\"}:{\"click .bk-toolbar-button\":\"_clicked\"}},n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.$el.html(this.template(this.model.attrs_and_props())),this.listenTo(this.model,\"change:active\",this.render),this.render()},n.prototype.render=function(){return this.model.get(\"active\")?this.$el.children(\"button\").addClass(\"active\"):this.$el.children(\"button\").removeClass(\"active\"),this},n.prototype._clicked=function(){},n}(t.View),s=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(n.View),i=function(t){function n(){return u=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(\"tooltip\",function(){return this.get(\"tool_name\")})},n.prototype.defaults=function(){return _.extend({},n.__super__.defaults.call(this),{active:!1,tool_name:this.tool_name,icon:this.icon})},n}(n.Model),{Model:i,View:s,ButtonView: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};define(\"tool/actions/action_tool\",[\"backbone\",\"tool/button_tool\"],function(t,n){var r,i,o,s,a,l;return i=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._clicked=function(){return this.model.trigger(\"do\")},n}(n.ButtonView),o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.listenTo(this.model,\"do\",this[\"do\"])},n}(n.View),r=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(n.Model),{Model:r,View:o,ButtonView: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};define(\"tool/gestures/gesture_tool\",[\"backbone\",\"tool/button_tool\"],function(t,n){var r,i,o,s,a,l;return i=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._clicked=function(){return this.model.set(\"active\",!0)},n}(n.ButtonView),o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(n.View),r=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.defaults=function(){return _.extend({},n.__super__.defaults.call(this),{event_type:this.event_type,default_order:this.default_order})},n}(n.Model),{Model:r,View:o,ButtonView:i}})}.call(this),define(\"tool/inspectors/inspect_tool_list_item_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(){r(e('<input type=\"checkbox\" ')),r(this.active?r(e(\"checked\")):void 0),r(e(\">\")),r(this.tool_name),r(e(\"</input>\\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};define(\"tool/inspectors/inspect_tool\",[\"backbone\",\"common/logging\",\"tool/tool\",\"./inspect_tool_list_item_template\"],function(t,n,r,i){var o,s,a,l,u,c,p;return l=n.logger,s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.className=\"bk-toolbar-inspector\",n.prototype.template=i,n.prototype.events={'click [type=\"checkbox\"]':\"_clicked\"},n.prototype.initialize=function(){return this.listenTo(this.model,\"change:active\",this.render),this.render()},n.prototype.render=function(){return this.$el.html(this.template(this.model.attrs_and_props())),this},n.prototype._clicked=function(){var t;return t=this.model.get(\"active\"),this.model.set(\"active\",!t)},n}(t.View),a=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(r.View),o=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.event_type=\"move\",n.prototype.bind_bokeh_events=function(){return n.__super__.bind_bokeh_events.call(this),this.listenTo(events,\"move\",this._inspect)},n.prototype.initialize=function(t,e){var r,i,o,s,a,u,c;for(n.__super__.initialize.call(this,t,e),i=this.get(\"names\"),s=this.get(\"renderers\"),0===s.length&&(r=this.get(\"plot\").get(\"renderers\"),s=function(){var t,e,n;for(n=[],t=0,e=r.length;e>t;t++)o=r[t],\"GlyphRenderer\"===o.type&&n.push(o);return n}()),i.length>0&&(s=function(){var t,e,n;for(n=[],t=0,e=s.length;e>t;t++)o=s[t],i.indexOf(o.get(\"name\"))>=0&&n.push(o);return n}()),this.set(\"renderers\",s),l.debug(\"setting \"+s.length+\" renderers for \"+this.type+\" \"+this.id),c=[],a=0,u=s.length;u>a;a++)o=s[a],c.push(l.debug(\"- \"+o.type+\" \"+o.id));return c},n.prototype._inspect=function(){},n.prototype._exit_inner=function(){},n.prototype._exit_outer=function(){},n.prototype.defaults=function(){return _.extend({},n.__super__.defaults.call(this),{renderers:[],names:[],inner_only:!0,active:!0,event_type:\"move\"})},n}(r.Model),{Model:o,View:a,ListItemView: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=function(t,e){return function(){return t.apply(e,arguments)}};define(\"common/tool_manager\",[\"underscore\",\"jquery\",\"bootstrap/dropdown\",\"backbone\",\"./logging\",\"./toolbar_template\",\"common/has_properties\",\"tool/actions/action_tool\",\"tool/gestures/gesture_tool\",\"tool/inspectors/inspect_tool\"],function(t,r,i,o,s,a,l,u,c,p){var h,d,f,_,g;return f=s.logger,d=function(n){function i(){return _=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.template=a,i.prototype.initialize=function(t){return i.__super__.initialize.call(this,t),this.listenTo(this.model,\"change\",this.render),this.render()},i.prototype.render=function(){var e,n,i,o,s,a;this.$el.html(this.template()),this.$el.addClass(\"bk-sidebar\"),this.$el.addClass(\"bk-toolbar-active\"),n=this.$(\".bk-button-bar-list\"),s=this.model.get(\"inspectors\"),n=this.$(\".bk-bs-dropdown[type='inspectors']\"),0===s.length?n.hide():(e=r('<a href=\"#\" data-bk-bs-toggle=\"dropdown\" class=\"bk-bs-dropdown-toggle\">inspect <span class=\"bk-bs-caret\"></a>'),e.appendTo(n),a=r('<ul class=\"bk-bs-dropdown-menu\" />'),t.each(s,function(t){var e;return e=r(\"<li />\"),e.append(new p.ListItemView({model:t}).el),e.appendTo(a)}),a.on(\"click\",function(t){return t.stopPropagation()}),a.appendTo(n),e.dropdown()),n=this.$(\".bk-button-bar-list[type='actions']\"),t.each(this.model.get(\"actions\"),function(t){return n.append(new u.ButtonView({model:t}).el)}),o=this.model.get(\"gestures\");for(i in o)n=this.$(\".bk-button-bar-list[type='\"+i+\"']\"),t.each(o[i].tools,function(t){return n.append(new c.ButtonView({model:t}).el)});return this},i}(o.View),h=function(r){function i(){return this._active_change=n(this._active_change,this),g=i.__super__.constructor.apply(this,arguments)}return e(i,r),i.prototype.initialize=function(t,e){return i.__super__.initialize.call(this,t,e),this._init_tools()},i.prototype._init_tools=function(){var e,n,r,i,o,s,a,l,h,d;for(r=this.get(\"gestures\"),h=this.get(\"tools\"),a=0,l=h.length;l>a;a++)if(o=h[a],o instanceof p.Model)i=this.get(\"inspectors\"),i.push(o),this.set(\"inspectors\",i);else if(o instanceof u.Model)e=this.get(\"actions\"),e.push(o),this.set(\"actions\",e);else if(o instanceof c.Model){if(n=o.get(\"event_type\"),!(n in r)){f.warn(\"ToolManager: unknown event type '\"+n+\"' for tool: \"+o.type+\" (\"+o.id+\")\");continue}r[n].tools.push(o),this.listenTo(o,\"change:active\",t.bind(this._active_change,o))}d=[];for(n in r)s=r[n].tools,0!==s.length&&(r[n].tools=t.sortBy(s,function(t){return t.get(\"default_order\")}),d.push(r[n].tools[0].set(\"active\",!0)));return d},i.prototype._active_change=function(t){var e,n,r,i;return n=t.get(\"event_type\"),(e=t.get(\"active\"))?(r=this.get(\"gestures\"),i=r[n].active,null!=i&&(f.debug(\"ToolManager: deactivating tool: \"+i.type+\" (\"+i.id+\") for event type '\"+n+\"'\"),i.set(\"active\",!1)),r[n].active=t,this.set(\"gestures\",r),f.debug(\"ToolManager: activating tool: \"+t.type+\" (\"+t.id+\") for event type '\"+n+\"'\"),null):null},i.prototype.defaults=function(){return{gestures:{pan:{tools:[],active:null},tap:{tools:[],active:null},doubletap:{tools:[],active:null},scroll:{tools:[],active:null},pinch:{tools:[],active:null},press:{tools:[],active:null},rotate:{tools:[],active:null}},actions:[],inspectors:[]}},i}(l),{Model:h,View:d}})}.call(this),define(\"common/plot_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(){r(e(\"<div class='bk-plot-wrapper'>\\n\t<table>\\n\t\t<tr>\\n\t\t\t<td></td>\\n\t\t\t<td class='bk-plot-above'></td>\\n\t\t\t<td></td>\\n\t\t</tr>\\n\t\t<tr>\\n\t\t\t<td class=\\\"bk-plot-left\\\"></td>\\n\t\t\t<td class='bk-plot-canvas-wrapper'></td>\\n\t\t\t<td class=\\\"bk-plot-right\\\"></td>\\n\t\t</tr>\\n\t\t<tr>\\n\t\t\t<td></td>\\n\t\t\t<td class='bk-plot-below'></td>\\n\t\t\t<td></td>\\n\t\t</tr>\\n\t</table>\\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}),function(){define(\"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\"}\n",
        "                })}.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,n=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};define(\"renderer/properties\",[\"underscore\",\"common/logging\",\"common/svg_colors\"],function(e,r,i){var o,s,a,l,u,c;return c=r.logger,l=function(){function n(){}return n.prototype.source_v_select=function(t,n){var r,i,o,s,a,l;if(i=this[t],null==i)throw new Error(\"requested vector selection of unknown property '\"+t+\"'\");if(null!=i.field&&i.field in n.get(\"data\"))return n.get_column(i.field);if(e.isObject(i)){for(o=null!=i.value?i.value:0/0,l=[],r=s=0,a=n.get_length();a>=0?a>s:s>a;r=a>=0?++s:--s)l.push(o);return l}throw new Error(\"requested vector selection of '\"+t+\"' failed for \"+i)},n.prototype._fix_singleton_array_value=function(t){var n;if(null!=t.value&&(n=t.value,e.isArray(n))){if(1===n.length)return e.extend({},t,{value:n[0]});throw new Error(\"expected an array of length 1, got \"+n)}return t},n.prototype.string=function(t,n){var r;return this[n]={},r=t.mget(n),null==r?this[n].value=null:e.isString(r)?this[n].value=r:e.isObject(r)?(r=this._fix_singleton_array_value(r),this[n]=e.extend(this[n],r)):c.warn(\"string property '\"+n+\"' given invalid value: \"+r)},n.prototype.boolean=function(t,n){var r;return this[n]={},r=t.mget(n),null==r?this[n].value=null:e.isBoolean(r)?this[n].value=r:e.isString(r)?this[n].field=r:e.isObject(r)?(r=this._fix_singleton_array_value(r),this[n]=e.extend(this[n],r)):c.warn(\"boolean property '\"+n+\"' given invalid value: \"+r)},n.prototype.number=function(t,n){var r,i,o;return this[n]={},r=null!=(o=t.mget(n+\"_units\"))?o:\"data\",this[n].units=r,i=t.mget(n),null==i?this[n].value=null:e.isNumber(i)?this[n].value=i:e.isString(i)?this[n].field=i:e.isObject(i)?(i=this._fix_singleton_array_value(i),this[n]=e.extend(this[n],i)):c.warn(\"number property '\"+n+\"' given invalid value: \"+i)},n.prototype.color=function(t,n){var r;return this[n]={},r=t.mget(n),null==r?this[n].value=null:e.isString(r)?null!=i[r]||\"#\"===r.substring(0,1)?this[n].value=r:this[n].field=r:e.isObject(r)?(r=this._fix_singleton_array_value(r),this[n]=e.extend(this[n],r)):c.warn(\"color property '\"+n+\"' given invalid value: \"+r)},n.prototype.array=function(t,n){var r,i,o;return this[n]={},r=null!=(o=t.mget(n+\"_units\"))?o:\"data\",this[n].units=r,i=t.mget(n),null==i?this[n].value=null:e.isString(i)?this[n].field=i:e.isArray(i)?this[n].value=i:e.isObject(i)?(i=this._fix_singleton_array_value(i),this[n]=e.extend(this[n],i)):c.warn(\"array property '\"+n+\"' given invalid value: \"+i)},n.prototype[\"enum\"]=function(n,r,i){var o,s;return this[r]={},o=i.split(\" \"),s=n.mget(r),null==s?this[r].value=null:e.isString(s)?t.call(o,s)>=0?this[r].value=s:this[r].field=s:e.isObject(s)?(s=this._fix_singleton_array_value(s),this[r]=e.extend(this[r],s)):(c.warn(\"enum property '\"+r+\"' given invalid value: \"+s),c.warn(\" - acceptable values:\"+o))},n.prototype.setattr=function(t,e,n){var r,i;return r=null,n.indexOf(\":\")>-1&&(i=n.split(\":\"),n=i[0],r=i[1]),\"string\"===n?this.string(t,e):\"boolean\"===n?this.boolean(t,e):\"number\"===n?this.number(t,e):\"color\"===n?this.color(t,e):\"array\"===n?this.array(t,e):\"enum\"===n&&r?this[\"enum\"](t,e,r):c.warn(\"Unknown type '\"+n+\"' for glyph property: \"+e)},n.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]:c.warn(\"selection for attribute '\"+t+\"' failed on object: \"+e):void c.warn(\"requested selection of unknown property '\"+t+\"' on object: \"+e)},n}(),a=function(t){function r(t,n){null==n&&(n=\"\"),this.line_color_name=\"\"+n+\"line_color\",this.line_width_name=\"\"+n+\"line_width\",this.line_alpha_name=\"\"+n+\"line_alpha\",this.line_join_name=\"\"+n+\"line_join\",this.line_cap_name=\"\"+n+\"line_cap\",this.line_dash_name=\"\"+n+\"line_dash\",this.line_dash_offset_name=\"\"+n+\"line_dash_offset\",this.color(t,this.line_color_name),this.number(t,this.line_width_name),this.number(t,this.line_alpha_name),this[\"enum\"](t,this.line_join_name,\"miter round bevel\"),this[\"enum\"](t,this.line_cap_name,\"butt round square\"),this.array(t,this.line_dash_name),this.number(t,this.line_dash_offset_name),this.do_stroke=!0,e.isUndefined(this[this.line_color_name].value)||e.isNull(this[this.line_color_name].value)&&(this.do_stroke=!1)}return n(r,t),r.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))},r.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)},r.prototype.clear_prop_cache=function(){return this.cache={}},r.prototype.set_vectorize=function(t,e){var n;return n=!1,null!=this.cache.strokeStyle[e]&&t.strokeStyle!==this.cache.strokeStyle[e]&&(t.strokeStyle=this.cache.strokeStyle[e],n=!0),null!=this.cache.globalAlpha[e]&&t.globalAlpha!==this.cache.globalAlpha[e]&&(t.globalAlpha=this.cache.globalAlpha[e],n=!0),null!=this.cache.lineWidth[e]&&t.lineWidth!==this.cache.lineWidth[e]&&(t.lineWidth=this.cache.lineWidth[e],n=!0),null!=this.cache.lineJoin[e]&&t.lineJoin!==this.cache.lineJoin[e]&&(t.lineJoin=this.cache.lineJoin[e],n=!0),null!=this.cache.lineCap[e]&&t.lineCap!==this.cache.lineCap[e]&&(t.lineCap=this.cache.lineCap[e],n=!0),null!=this.cache.setLineDash[e]&&t.getLineDash()!==this.cache.setLineDash[e]&&(t.setLineDash(this.cache.setLineDash[e]),n=!0),null!=this.cache.setLineDashOffset[e]&&t.getLineDashOffset()!==this.cache.setLineDashOffset[e]&&(t.setLineDashOffset(this.cache.setLineDashOffset[e]),n=!0),n},r}(l),o=function(t){function r(t,n){null==n&&(n=\"\"),this.fill_color_name=\"\"+n+\"fill_color\",this.fill_alpha_name=\"\"+n+\"fill_alpha\",this.color(t,this.fill_color_name),this.number(t,this.fill_alpha_name),this.do_fill=!0,e.isUndefined(this[this.fill_color_name].value)||e.isNull(this[this.fill_color_name].value)&&(this.do_fill=!1)}return n(r,t),r.prototype.set=function(t,e){return t.fillStyle=this.select(this.fill_color_name,e),t.globalAlpha=this.select(this.fill_alpha_name,e)},r.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)},r.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},r}(l),u=function(t){function e(t,e){null==e&&(e=\"\"),this.text_font_name=\"\"+e+\"text_font\",this.text_font_size_name=\"\"+e+\"text_font_size\",this.text_font_style_name=\"\"+e+\"text_font_style\",this.text_color_name=\"\"+e+\"text_color\",this.text_alpha_name=\"\"+e+\"text_alpha\",this.text_align_name=\"\"+e+\"text_align\",this.text_baseline_name=\"\"+e+\"text_baseline\",this.string(t,this.text_font_name),this.string(t,this.text_font_size_name),this[\"enum\"](t,this.text_font_style_name,\"normal italic bold\"),this.color(t,this.text_color_name),this.number(t,this.text_alpha_name),this[\"enum\"](t,this.text_align_name,\"left right center\"),this[\"enum\"](t,this.text_baseline_name,\"top middle bottom alphabetic hanging\")}return n(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}(l),s=function(t){function e(t,e){var n,r,i,o,s;for(i=0,o=e.length;o>i;i++)n=e[i],r=\"number\",n.indexOf(\":\")>-1&&(s=n.split(\":\"),n=s[0],r=s[1]),this.setattr(t,n,r)}return n(e,t),e}(l),{Glyph:s,Fill:o,Line:a,Text:u}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=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};define(\"common/plot\",[\"underscore\",\"backbone\",\"kiwi\",\"./build_views\",\"./canvas\",\"./cartesian_frame\",\"./continuum_view\",\"./collection\",\"./ui_events\",\"./has_parent\",\"./layout_box\",\"./logging\",\"./plot_utils\",\"./solver\",\"./tool_manager\",\"./plot_template\",\"renderer/properties\"],function(e,r,i,o,s,a,l,u,c,p,h,d,f,_,g,m,y){var v,b,w,x,k,C,M,A,S,T,D,E;return w=i.Expression,v=i.Constraint,b=i.Operator.Eq,k=i.Operator.Le,x=i.Operator.Ge,S=d.logger,M=function(r){function i(){return this.request_render=t(this.request_render,this),T=i.__super__.constructor.apply(this,arguments)}return n(i,r),i.prototype.className=\"bk-plot\",i.prototype.template=m,i.prototype.view_options=function(){return e.extend({plot_model:this.model,plot_view:this},this.options)},i.prototype.pause=function(){return this.is_paused=!0},i.prototype.unpause=function(){return this.is_paused=!1,this.request_render()},i.prototype.request_render=function(){this.is_paused||this.throttled_render(!0)},i.prototype.initialize=function(t){var e,n,r,o,s,a,l,u,p;for(i.__super__.initialize.call(this,t),this.pause(),this.model.initialize_layout(this.model.solver),this.frame=this.mget(\"frame\"),this.x_range=this.frame.get(\"x_ranges\")[\"default\"],this.y_range=this.frame.get(\"y_ranges\")[\"default\"],this.xmapper=this.frame.get(\"x_mappers\")[\"default\"],this.ymapper=this.frame.get(\"y_mappers\")[\"default\"],this.$el.html(this.template()),this.canvas=this.mget(\"canvas\"),this.canvas_view=new this.canvas.default_view({model:this.canvas}),this.$(\".bk-plot-canvas-wrapper\").append(this.canvas_view.el),this.canvas_view.render(),this.throttled_render=f.throttle_animation(this.render,15),this.outline_props=new y.Line(this,\"outline_\"),this.title_props=new y.Text(this,\"title_\"),this.renderers={},this.tools={},this.levels={},u=f.LEVELS,a=0,l=u.length;l>a;a++)n=u[a],this.levels[n]={};this.build_levels(),this.bind_bokeh_events(),this.model.add_constraints(this.canvas.solver),this.listenTo(this.canvas.solver,\"layout_update\",this.request_render),this.ui_event_bus=new c({tool_manager:this.mget(\"tool_manager\"),hit_area:this.canvas_view.$el}),p=this.tools;for(e in p)r=p[e],this.ui_event_bus.register_tool(r);return o=this.mget(\"toolbar_location\"),null!=o&&(s=\".bk-plot-\"+o,S.debug(\"attaching toolbar to \"+s+\" for plot \"+this.model.id),this.tm_view=new g.View({model:this.mget(\"tool_manager\"),el:this.$(s)})),this.unpause(),this.request_render(),S.debug(\"PlotView initialized\"),this},i.prototype.map_to_screen=function(t,e,n,r,i,o){return null==i&&(i=\"default\"),null==o&&(o=\"default\"),this.frame.map_to_screen(t,e,n,r,this.canvas,i,o)},i.prototype.map_from_screen=function(t,e,n){return this.frame.map_from_screen(t,e,n,this.canvas,name)},i.prototype.update_range=function(t){var e,n,r,i;null==t&&(t=this.initial_range_info),this.pause(),r=this.frame.get(\"x_ranges\");for(e in r)n=r[e],n.set(t.xrs[e]);i=this.frame.get(\"y_ranges\");for(e in i)n=i[e],n.set(t.yrs[e]);return this.unpause()},i.prototype.build_levels=function(){var t,n,r,i,s,a,l,u,c,p,h,d,f,_;for(r=e.keys(this.renderers),u=o(this.renderers,this.mget(\"renderers\"),this.view_options()),i=e.difference(r,e.pluck(this.mget(\"renderers\"),\"id\")),c=0,d=i.length;d>c;c++)t=i[c],delete this.levels.glyph[t];for(a=o(this.tools,this.mget(\"tools\"),this.view_options()),p=0,f=u.length;f>p;p++)l=u[p],n=l.mget(\"level\"),this.levels[n][l.model.id]=l,l.bind_bokeh_events();for(h=0,_=a.length;_>h;h++)s=a[h],n=s.mget(\"level\"),this.levels[n][s.model.id]=s,s.bind_bokeh_events();return this},i.prototype.bind_bokeh_events=function(){var t,e,n,r,i=this;n=this.mget(\"frame\").get(\"x_ranges\");for(t in n)e=n[t],this.listenTo(e,\"change\",this.request_render);r=this.mget(\"frame\").get(\"y_ranges\");for(t in r)e=r[t],this.listenTo(e,\"change\",this.request_render);return this.listenTo(this.model,\"change:renderers\",this.build_levels),this.listenTo(this.model,\"change:tool\",this.build_levels),this.listenTo(this.model,\"change\",this.request_render),this.listenTo(this.model,\"destroy\",function(){return i.remove()})},i.prototype.set_initial_range=function(){var t,n,r,i,o,s,a;t=!0,i={},s=this.frame.get(\"x_ranges\");for(n in s){if(r=s[n],null==r.get(\"start\")||null==r.get(\"end\")||e.isNaN(r.get(\"start\")+r.get(\"end\"))){t=!1;break}i[n]={start:r.get(\"start\"),end:r.get(\"end\")}}if(t){o={},a=this.frame.get(\"y_ranges\");for(n in a){if(r=a[n],null==r.get(\"start\")||null==r.get(\"end\")||e.isNaN(r.get(\"start\")+r.get(\"end\"))){t=!1;break}o[n]={start:r.get(\"start\"),end:r.get(\"end\")}}}return t?(this.initial_range_info={xrs:i,yrs:o},S.debug(\"initial ranges set\")):S.warn(\"could not set initial ranges\")},i.prototype.render=function(t){var e,n,r,o,s,a,l,u,c,p,h;null==t&&(t=!1),S.trace(\"Plot.render(force_canvas=\"+t+\")\"),i.__super__.render.call(this),this.canvas_view.render(t),null!=this.tm_view&&this.tm_view.render(),n=this.canvas_view.ctx,r=this.model.get(\"frame\"),e=this.model.get(\"canvas\"),h=this.renderers;for(s in h)p=h[s],null!=p.model.update_layout&&p.model.update_layout(p,this.canvas.solver);return c=this.mget(\"title\"),c&&(this.title_props.set(this.canvas_view.ctx,{}),u=n.measureText(this.mget(\"title\")).ascent+this.model.get(\"title_standoff\"),u!==this.model.title_panel.get(\"height\")&&this.model.title_panel.set(\"height\",u)),this.model.get(\"frame\").set(\"width\",e.get(\"width\")),this.model.get(\"frame\").set(\"height\",e.get(\"height\")),this.canvas.solver.update_variables(!1),this.model.get(\"frame\")._update_mappers(),null==this.initial_range_info&&this.set_initial_range(),o=[this.canvas.vx_to_sx(this.frame.get(\"left\")),this.canvas.vy_to_sy(this.frame.get(\"top\")),this.frame.get(\"width\"),this.frame.get(\"height\")],this._map_hook(n,o),this._paint_empty(n,o),this.outline_props.do_stroke&&(this.outline_props.set(n,{}),n.strokeRect.apply(n,o)),this._render_levels(n,[\"image\",\"underlay\",\"glyph\"],o),this._render_levels(n,[\"overlay\",\"tool\"]),c?(a=this.canvas.vx_to_sx(this.canvas.get(\"width\")/2),l=this.canvas.vy_to_sy(this.model.title_panel.get(\"bottom\")+this.model.get(\"title_standoff\")),this.title_props.set(n,{}),n.fillText(c,a,l)):void 0},i.prototype._render_levels=function(t,e,n){var r,i,o,s,a,l;for(t.save(),null!=n&&(t.beginPath(),t.rect.apply(t,n),t.clip(),t.beginPath()),a=0,l=e.length;l>a;a++){i=e[a],o=this.levels[i];for(r in o)s=o[r],s.render()}return t.restore()},i.prototype._map_hook=function(){},i.prototype._paint_empty=function(t,e){return t.fillStyle=this.mget(\"border_fill\"),t.fillRect(0,0,this.canvas_view.mget(\"canvas_width\"),this.canvas_view.mget(\"canvas_height\")),t.fillStyle=this.mget(\"background_fill\"),t.fillRect.apply(t,e)},i}(l),C=function(t){function r(){return D=r.__super__.constructor.apply(this,arguments)}return n(r,t),r.prototype.type=\"Plot\",r.prototype.default_view=M,r.prototype.initialize=function(t,e){var n,i,o,a,l,u;for(r.__super__.initialize.call(this,t,e),n=new s.Model({map:null!=(l=this.use_map)?l:!1,canvas_width:this.get(\"plot_width\"),canvas_height:this.get(\"plot_height\"),hidpi:this.get(\"hidpi\"),solver:new _}),this.set(\"canvas\",n),this.solver=n.get(\"solver\"),u=this.get(\"renderers\"),o=0,a=u.length;a>o;o++)i=u[o],i.set(\"parent\",this);return this.set(\"tool_manager\",new g.Model({tools:this.get(\"tools\"),toolbar_location:this.get(\"toolbar_location\")})),S.debug(\"Plot initialized\")},r.prototype.initialize_layout=function(t){var e,n,r;return e=this.get(\"canvas\"),r=new a.Model({x_range:this.get(\"x_range\"),extra_x_ranges:this.get(\"extra_x_ranges\"),x_mapper_type:this.get(\"x_mapper_type\"),y_range:this.get(\"y_range\"),extra_y_ranges:this.get(\"extra_y_ranges\"),y_mapper_type:this.get(\"y_mapper_type\"),solver:t}),this.set(\"frame\",r),this.title_panel=new h.Model({solver:t}),h.Collection.add(this.title_panel),this.title_panel._anchor=this.title_panel._bottom,n=this.get(\"above\"),n.push(this.title_panel),this.set(\"above\",n)},r.prototype.add_constraints=function(t){var e,n,r,o,s,a,l,u,c,p=this;return s=null!=(a=this.get(\"min_border_top\"))?a:this.get(\"min_border\"),n=null!=(l=this.get(\"min_border_bottom\"))?l:this.get(\"min_border\"),r=null!=(u=this.get(\"min_border_left\"))?u:this.get(\"min_border\"),o=null!=(c=this.get(\"min_border_right\"))?c:this.get(\"min_border\"),e=function(t,e,n,r,o){var s,a,l,u,c,d,f,_,g,m,y,k;for(u=p.get(\"canvas\"),d=p.get(\"frame\"),s=new h.Model({solver:t}),a=\"_\"+r[0],l=\"_\"+r[1],t.add_constraint(new v(new w(s[\"_\"+o],-e),x),i.Strength.strong),t.add_constraint(new v(new w(d[a],[-1,s[l]]),b)),t.add_constraint(new v(new w(s[a],[-1,u[a]]),b)),f=d,c=p.get(n),m=0,y=c.length;y>m;m++)g=c[m],(null!=(k=g.get(\"location\"))?k:!0)&&g.set(\"location\",n,{silent:!0}),null!=g.initialize_layout&&g.initialize_layout(t),t.add_constraint(new v(new w(f[a],[-1,g[l]]),b),i.Strength.strong),f=g;return _=new h.Model({solver:t}),t.add_constraint(new v(new w(f[a],[-1,_[l]]),b),i.Strength.strong),t.add_constraint(new v(new w(_[a],[-1,u[a]]),b),i.Strength.strong)},e(t,s,\"above\",[\"top\",\"bottom\"],\"height\",k),e(t,n,\"below\",[\"bottom\",\"top\"],\"height\",x),e(t,r,\"left\",[\"left\",\"right\"],\"width\",x),e(t,o,\"right\",[\"right\",\"left\"],\"width\",k)},r.prototype.add_renderers=function(t){var e;return e=this.get(\"renderers\"),e=e.concat(t),this.set(\"renderers\",e)},r.prototype.parent_properties=[\"background_fill\",\"border_fill\",\"min_border\",\"min_border_top\",\"min_border_bottom\",\"min_border_left\",\"min_border_right\"],r.prototype.defaults=function(){return e.extend({},r.__super__.defaults.call(this),{renderers:[],tools:[],h_symmetry:!0,v_symmetry:!1,x_mapper_type:\"auto\",y_mapper_type:\"auto\",plot_width:600,plot_height:600,title:\"Plot\",above:[],below:[],left:[],right:[],toolbar_location:\"above\"})},r.prototype.display_defaults=function(){return e.extend({},r.__super__.display_defaults.call(this),{hidpi:!0,background_fill:\"#fff\",border_fill:\"#fff\",min_border:40,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})},r}(p),A=function(t){function e(){return E=e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.model=C,e}(u),{Model:C,Collection:new A,View:M}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=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};define(\"common/gmap_plot\",[\"underscore\",\"./collection\",\"./solver\",\"./plot\"],function(e,r,i,o){var s,a,l,u,c,p;return a=function(r){function i(){return this.bounds_change=t(this.bounds_change,this),u=i.__super__.constructor.apply(this,arguments)}return n(i,r),i.prototype.initialize=function(t){return i.__super__.initialize.call(this,e.defaults(t,this.default_options)),this.zoom_count=null},i.prototype.update_range=function(t){var e,n,r,i,o,s,a;return null==t&&(t=this.initial_range_info),this.pause(),null!=t.sdx?this.map.panBy(t.sdx,t.sdy):(s=t.xrs[\"default\"],a=t.yrs[\"default\"],o=Math.min(s.start,s.end),r=Math.max(s.start,s.end),i=Math.min(a.start,a.end),n=Math.max(a.start,a.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()},i.prototype.bind_bokeh_events=function(){var t,n,r,o,s,a,l=this;return i.__super__.bind_bokeh_events.call(this),a=this.frame.get(\"width\"),n=this.frame.get(\"height\"),r=this.canvas.vx_to_sx(this.frame.get(\"left\")),s=this.canvas.vy_to_sy(this.frame.get(\"top\")),this.canvas_view.map_div.attr(\"style\",\"top: \"+s+\"px; left: \"+r+\"px; position: absolute\"),this.canvas_view.map_div.attr(\"style\",\"width:\"+a+\"px;\"),this.canvas_view.map_div.attr(\"style\",\"height:\"+n+\"px;\"),this.canvas_view.map_div.width(\"\"+a+\"px\").height(\"\"+n+\"px\"),this.initial_zoom=this.mget(\"map_options\").zoom,t=function(){var t,e,n,r;return n=window.google.maps,e={satellite:n.MapTypeId.SATELLITE,terrain:n.MapTypeId.TERRAIN,roadmap:n.MapTypeId.ROADMAP,hybrid:n.MapTypeId.HYBRID},r=l.mget(\"map_options\"),t={center:new n.LatLng(r.lat,r.lng),zoom:r.zoom,disableDefaultUI:!0,mapTypeId:e[r.map_type]},l.map=new n.Map(l.canvas_view.map_div[0],t),n.event.addListener(l.map,\"bounds_changed\",l.bounds_change)},null==window._bokeh_gmap_loads&&(window._bokeh_gmap_loads=[]),null!=window.google&&null!=window.google.maps?e.defer(t):null!=window._bokeh_gmap_callback?window._bokeh_gmap_loads.push(t):(window._bokeh_gmap_loads.push(t),window._bokeh_gmap_callback=function(){return e.each(window._bokeh_gmap_loads,e.defer)},o=document.createElement(\"script\"),o.type=\"text/javascript\",o.src=\"https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&callback=_bokeh_gmap_callback\",document.body.appendChild(o))},i.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(),silent:!0}),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\")}}),this.render()},i.prototype._map_hook=function(t,e){var n,r,i,o;return r=e[0],i=e[1],o=e[2],n=e[3],this.canvas_view.map_div.attr(\"style\",\"top: \"+i+\"px; left: \"+r+\"px;\"),this.canvas_view.map_div.width(\"\"+o+\"px\").height(\"\"+n+\"px\")},i.prototype._paint_empty=function(t,e){var n,r,i,o,s,a;return s=this.canvas.get(\"width\"),o=this.canvas.get(\"height\"),i=e[0],a=e[1],r=e[2],n=e[3],t.clearRect(0,0,s,o),t.beginPath(),t.moveTo(0,0),t.lineTo(0,o),t.lineTo(s,o),t.lineTo(s,0),t.lineTo(0,0),t.moveTo(i,a),t.lineTo(i+r,a),t.lineTo(i+r,a+n),t.lineTo(i,a+n),t.lineTo(i,a),t.closePath(),t.fillStyle=this.mget(\"border_fill\"),t.fill()},i}(o.View),s=function(t){function r(){return c=r.__super__.constructor.apply(this,arguments)}return n(r,t),r.prototype.type=\"GMapPlot\",r.prototype.default_view=a,r.prototype.initialize=function(t,e){return this.use_map=!0,r.__super__.initialize.call(this,t,e)},r.prototype.parent_properties=[\"border_fill\",\"min_border\",\"min_border_top\",\"min_border_bottom\",\"min_border_left\",\"min_border_right\"],r.prototype.defaults=function(){return e.extend({},r.__super__.defaults.call(this),{title:\"GMapPlot\"})},r.prototype.display_defaults=function(){return e.extend({},r.__super__.display_defaults.call(this),{border_fill:\"#fff\"})},r}(o.Model),l=function(t){function e(){return p=e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.model=s,e}(r),{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};define(\"common/geojs_plot\",[\"underscore\",\"./collection\",\"./solver\",\"./plot\"],function(t,n,r,i){var o,s,a,l,u,c;return s=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(e){return r.__super__.initialize.call(this,t.defaults(e,this.default_options)),this.zoom_count=null},r.prototype.bind_bokeh_events=function(){var t,e,n,i,o,s=this;return r.__super__.bind_bokeh_events.call(this),o=this.frame.get(\"width\"),e=this.frame.get(\"height\"),n=this.canvas.vx_to_sx(this.frame.get(\"left\")),i=this.canvas.vy_to_sy(this.frame.get(\"top\")),this.canvas_view.map_div.attr(\"style\",\"top: \"+i+\"px; left: \"+n+\"px; position: absolute\"),this.canvas_view.map_div.attr(\"style\",\"width:\"+o+\"px;\"),this.canvas_view.map_div.attr(\"style\",\"height:\"+e+\"px;\"),this.canvas_view.map_div.width(\"\"+o+\"px\").height(\"\"+e+\"px\"),this.initial_zoom=this.mget(\"map_options\").zoom,t=function(){var t,e;return e=s.mget(\"map_options\"),t={center:[e.lat,e.lng],zoom:e.zoom,node:s.canvas_view.map_div[0]},s.map=geo.map(t),s.map.createLayer(\"osm\")},$.getScript(\"http://opengeoscience.github.io/geojs/lib/gl-matrix.js\",function(){return $.getScript(\"http://opengeoscience.github.io/geojs/lib/d3.v3.min.js\",function(){return $.getScript(\"http://opengeoscience.github.io/geojs/lib/proj4.js\",function(){return $.getScript(\"http://opengeoscience.github.io/geojs/lib/vgl.js\",function(){return $.getScript(\"http://opengeoscience.github.io/geojs/lib/geo.js\",function(){return t()})})})})})},r.prototype._map_hook=function(t,e){var n,r,i,o;return r=e[0],i=e[1],o=e[2],n=e[3],this.canvas_view.map_div.attr(\"style\",\"top: \"+i+\"px; left: \"+r+\"px;\"),this.canvas_view.map_div.width(\"\"+o+\"px\").height(\"\"+n+\"px\")},r.prototype._paint_empty=function(t,e){var n,r,i,o,s,a;return s=this.canvas.get(\"width\"),o=this.canvas.get(\"height\"),i=e[0],a=e[1],r=e[2],n=e[3],t.clearRect(0,0,s,o),t.beginPath(),t.moveTo(0,0),t.lineTo(0,o),t.lineTo(s,o),t.lineTo(s,0),t.lineTo(0,0),t.moveTo(i,a),t.lineTo(i+r,a),t.lineTo(i+r,a+n),t.lineTo(i,a+n),t.lineTo(i,a),t.closePath(),t.fillStyle=this.mget(\"border_fill\"),t.fill()},r}(i.View),o=function(n){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"GeoJSPlot\",r.prototype.default_view=s,r.prototype.initialize=function(t,e){return this.use_map=!0,r.__super__.initialize.call(this,t,e)},r.prototype.parent_properties=[\"border_fill\",\"min_border\",\"min_border_top\",\"min_border_bottom\",\"min_border_left\",\"min_border_right\"],r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{title:\"GeoJSPlot\"})},r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),{border_fill:\"#fff\"})},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),{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=function(t,e){return function(){return t.apply(e,arguments)}};define(\"common/grid_plot\",[\"underscore\",\"backbone\",\"./build_views\",\"./continuum_view\",\"./collection\",\"./has_properties\",\"./logging\",\"./tool_manager\",\"./plot_template\",\"renderer/properties\"],function(t,r,i,o,s,a,l,u,c){var p,h,d,f,_,g,m,y,v,b,w,x,k;return g=l.logger,m=function(t){function n(){return y=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.attrs_and_props=function(){return this.attributes.tools[0].attrs_and_props()},n.prototype.get=function(t){return this.attributes.tools[0].get(t)},n.prototype.set=function(t,e){var r,i,o,s,a;for(n.__super__.set.call(this,t,e),s=this.attributes.tools,a=[],i=0,o=s.length;o>i;i++)r=s[i],a.push(r.set(t,e));return a},n}(r.Model),f=function(r){function i(){return this._active_change=n(this._active_change,this),v=i.__super__.constructor.apply(this,arguments)}return e(i,r),i.prototype._init_tools=function(){var e,n,r,i,o,s,a,l,u,c,p,h,d,f,_,g,y,v,b,w,x,k,C,M,A,S;for(o={},e={},r={},b=this.get(\"tool_managers\"),p=0,_=b.length;_>p;p++){a=b[p],w=a.get(\"gestures\");for(n in w){i=w[n],n in r||(r[n]={}),x=i.tools;for(h=0,g=x.length;g>h;h++)l=x[h],l.type in r[n]||(r[n][l.type]=[]),r[n][l.type].push(l)}for(k=a.get(\"inspectors\"),d=0,y=k.length;y>d;d++)l=k[d],l.type in o||(o[l.type]=[]),o[l.type].push(l);for(C=this.get(\"actions\"),f=0,v=C.length;v>f;f++)l=C[f],l.type in e||(e[l.type]=[]),e[l.type].push(l)}for(n in r){M=r[n];for(c in M)u=M[c],u.length===this.get(\"num_plots\")&&(s=new m({tools:u}),this.get(\"gestures\")[n].tools.push(s),this.listenTo(s,\"change:active\",t.bind(this._active_change,s)))}for(c in e)u=e[c],u.length===this.get(\"num_plots\")&&(s=new m({tools:u}),this.get(\"actions\").push(s));for(c in o)u=o[c],u.length===this.get(\"num_plots\")&&(s=new m({tools:u}),this.get(\"inspectors\").push(s));A=this.get(\"gestures\"),S=[];for(n in A)i=A[n],u=i.tools,0!==u.length&&(i.tools=t.sortBy(u,function(t){return t.get(\"default_order\")}),S.push(i.tools[0].set(\"active\",!0)));return S},i.prototype._active_change=function(t){var e,n,r,i;return n=t.get(\"event_type\"),(e=t.get(\"active\"))?(r=this.get(\"gestures\"),i=r[n].active,null!=i&&(g.debug(\"GridToolManager: deactivating tool: \"+i.type+\" (for event type '\"+n+\"'\"),i.set(\"active\",!1)),r[n].active=t,this.set(\"gestures\",r),g.debug(\"GridToolManager: activating tool: \"+t.type+\" (for event type '\"+n+\"'\"),null):null},i.prototype.defaults=function(){return t.extend({},i.__super__.defaults.call(this),{tool_manangers:[]})},i}(u.Model),_=function(r){function i(){return this.layout_widths=n(this.layout_widths,this),this.layout_heights=n(this.layout_heights,this),this.setup_layout_properties=n(this.setup_layout_properties,this),b=i.__super__.constructor.apply(this,arguments)}return e(i,r),i.prototype.setup_layout_properties=function(){var t,e,n,r,i,o;for(this.register_property(\"layout_heights\",this.layout_heights,!1),this.register_property(\"layout_widths\",this.layout_widths,!1),i=this.get(\"viewstates\"),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,\"height\"),i.push(this.add_dependencies(\"layout_widths\",e,\"width\"));return i}.call(this));return o},i.prototype.initialize=function(e,n){return i.__super__.initialize.call(this,e,n),this.setup_layout_properties(),this.listenTo(this,\"change:viewstates\",this.setup_layout_properties),this.register_property(\"height\",function(){return t.reduce(this.get(\"layout_heights\"),function(t,e){return t+e},0)},!1),this.add_dependencies(\"height\",this,\"layout_heights\"),this.register_property(\"width\",function(){return t.reduce(this.get(\"layout_widths\"),function(t,e){return t+e\n",
        "                },0)},!1),this.add_dependencies(\"width\",this,\"layout_widths\")},i.prototype.position_child_x=function(t){return t},i.prototype.position_child_y=function(t,e){return this.get(\"height\")-t-e},i.prototype.maxdim=function(e,n){return 0===n.length?0:t.max(t.map(n,function(t){return null!=t?t.get(e):0}))},i.prototype.layout_heights=function(){var t,e;return e=function(){var e,n,r,i;for(r=this.get(\"viewstates\"),i=[],e=0,n=r.length;n>e;e++)t=r[e],i.push(this.maxdim(\"height\",t));return i}.call(this)},i.prototype.layout_widths=function(){var e,n,r,i,o,s;return o=this.get(\"viewstates\")[0].length,r=function(){var e,n,r,a;for(r=t.range(o),a=[],e=0,n=r.length;n>e;e++)i=r[e],a.push(function(){var t,e,n,r;for(n=this.get(\"viewstates\"),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 t,n,i;for(i=[],t=0,n=r.length;n>t;t++)e=r[t],i.push(this.maxdim(\"width\",e));return i}.call(this)},i.prototype.defaults=function(){return t.extend({},i.__super__.defaults.call(this),{viewstates:[[]],border_space:0})},i}(a),h=function(n){function r(){return w=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.className=\"\",r.prototype.template=c,r.prototype.initialize=function(t){var e,n;return r.__super__.initialize.call(this,t),this.viewstate=new _,this.child_views={},this.build_children(),this.bind_bokeh_events(),this.$el.html(this.template()),e=this.mget(\"toolbar_location\"),null!=e&&(n=\".bk-plot-\"+e,g.debug(\"attaching toolbar to \"+n+\" for plot \"+this.model.id),this.tm_view=new u.View({model:this.mget(\"tool_manager\"),el:this.$(n)})),this.render(),this},r.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,\"change:children\",this.build_children),this.listenTo(this.model,\"change\",this.render),this.listenTo(this.viewstate,\"change\",this.render),this.listenTo(this.model,\"destroy\",this.remove)},r.prototype.build_children=function(){var t,e,n,r,o,s,a,l,u,c,p,h,d,f,_,g,m,y;for(t=[],_=this.mget(\"children\"),a=0,p=_.length;p>a;a++)for(n=_[a],l=0,h=n.length;h>l;l++)e=n[l],e.set(\"toolbar_location\",null),t.push(e);for(i(this.child_views,t,{}),r=[],g=this.mget(\"children\"),u=0,d=g.length;d>u;u++)n=g[u],o=function(){var t,e,r;for(r=[],t=0,e=n.length;e>t;t++)s=n[t],r.push(this.child_views[s.id].canvas);return r}.call(this),r.push(o);for(this.viewstate.set(\"viewstates\",r),m=this.mget(\"children\"),y=[],c=0,f=m.length;f>c;c++)n=m[c],y.push(function(){var t,r,i;for(i=[],r=0,t=n.length;t>r;r++)e=n[r],i.push(this.listenTo(e.solver,\"layout_update\",this.render));return i}.call(this));return y},r.prototype.render=function(){var e,n,i,o,s,a,l,c,p,h,d,f,_,g,m,y,v,b,w,x,k,C,M,A,S,T,D,E,R;for(r.__super__.render.call(this),E=t.values(this.child_views),C=0,S=E.length;S>C;C++)y=E[C],y.$el.detach();for(o=$(\"<div />\"),this.$(\".bk-plot-canvas-wrapper\").empty(),this.$(\".bk-plot-canvas-wrapper\").append(o),_=this.mget(\"toolbar_location\"),null!=_&&(g=\".bk-plot-\"+_,this.tm_view=new u.View({model:this.mget(\"tool_manager\"),el:this.$(g)}),this.tm_view.render()),f=this.viewstate.get(\"layout_heights\"),i=this.viewstate.get(\"layout_widths\"),x=[0],t.reduceRight(f.slice(1),function(t,e){var n;return n=t+e,x.push(n),n},0),x.reverse(),b=[0],t.reduce(i.slice(0),function(t,e){var n;return n=t+e,b.push(n),n},0),l=[],a=null,R=this.mget(\"children\"),h=M=0,T=R.length;T>M;h=++M)for(d=R[h],n=A=0,D=d.length;D>A;n=++A)p=d[n],y=this.child_views[p.id],k=this.viewstate.position_child_y(x[h],y.canvas.get(\"height\")),w=this.viewstate.position_child_x(b[n],y.canvas.get(\"width\")),c=$(\"<div class='gp_plotwrapper'></div>\"),c.attr(\"style\",\"position: absolute; left:\"+w+\"px; top:\"+k+\"px\"),c.append(y.$el),o.append(c);return e=function(t,e){return t+e},m=t.reduce(f,e,0),s=m,v=t.reduce(i,e,0),o.attr(\"style\",\"position:relative; height:\"+s+\"px;width:\"+v+\"px\")},r}(o),p=function(n){function r(){return x=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"GridPlot\",r.prototype.default_view=h,r.prototype.initialize=function(e,n){return r.__super__.initialize.call(this,e,n),this.register_property(\"tool_manager\",function(){var e;return new f({tool_managers:function(){var n,r,i,o;for(i=t.flatten(this.get(\"children\")),o=[],n=0,r=i.length;r>n;n++)e=i[n],o.push(e.get(\"tool_manager\"));return o}.call(this),toolbar_location:this.get(\"toolbar_location\"),num_plots:t.flatten(this.get(\"children\")).length})},!0)},r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{children:[[]],toolbar_location:\"left\"})},r}(a),d=function(t){function n(){return k=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=p,n}(s),{Model:p,Collection:new d,View:h}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=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};define(\"common/plot_context\",[\"underscore\",\"./collection\",\"./build_views\",\"./has_parent\",\"./continuum_view\"],function(r,i,o,s,a){var l,u,c,p,h,d;return u=function(i){function s(){return this.removeplot=t(this.removeplot,this),this.closeall=t(this.closeall,this),p=s.__super__.constructor.apply(this,arguments)}return n(s,i),s.prototype.initialize=function(t){return this.views={},this.child_models=[],s.__super__.initialize.call(this,t),this.render()},s.prototype.delegateEvents=function(){return this.listenTo(this.model,\"destroy\",this.remove),this.listenTo(this.model,\"change\",this.render),s.__super__.delegateEvents.call(this)},s.prototype.build_children=function(){var t;return t=o(this.views,this.mget(\"children\"),{}),window.pc_created_views=t,window.pc_views=this.views,null},s.prototype.size_textarea=function(t){var e;return e=$(t).height(0).prop(\"scrollHeight\"),$(t).height(e)},s.prototype.closeall=function(){return this.mset(\"children\",[]),this.model.save()},s.prototype.removeplot=function(t){var e,n,r,i,o;return n=parseInt($(t.currentTarget).parent().attr(\"data-plot_num\")),r=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},s.prototype.render=function(){var t,n,i,o,a,l,u,c,p,h,d,f,_,g=this;s.__super__.render.call(this),this.build_children(),f=this.views;for(n in f)e.call(f,n)&&(c=f[n],c.$el.detach());for(this.$el.html(\"\"),a=r.keys(this.views).length,u=[],l={},_=this.mget(\"children\"),t=h=0,d=_.length;d>h;t=++h)i=_[t],p=this.views[i.id],o=$(\"<div class='jsp' data-plot_num='\"+t+\"'></div>\"),this.$el.append(o),o.append(p.el);return r.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},s}(a),l=function(t){function e(){return h=e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.type=\"PlotContext\",e.prototype.default_view=u,e.prototype.url=function(){return e.__super__.url.call(this)},e.prototype.defaults=function(){return r.extend({},e.__super__.defaults.call(this),{children:[]})},e}(s),c=function(t){function e(){return d=e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.model=l,e}(i),{Model:l,Collection:new c,View:u}})}.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};define(\"common/selector\",[\"underscore\",\"./has_properties\",\"./logging\"],function(t,n,r){var i,o,s;return o=r.logger,i=function(n){function r(){return s=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"Selector\",r.prototype.update=function(e,n,r){return this.set(\"timestamp\",new Date),this.set(\"final\",n),r&&(e=t.union(this.get(\"indices\"),e)),this.set(\"indices\",e)},r.prototype.clear=function(){return this.set(\"timestamp\",new Date),this.set(\"final\",!0),this.set(\"indices\",[])},r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{indices:[]})},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};define(\"common/selection_manager\",[\"underscore\",\"./has_properties\",\"./logging\",\"./selector\"],function(t,n,r,i){var o,s,a;return s=r.logger,o=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"SelectionManager\",r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.selectors={}},r.prototype.set_selection=function(t){return this._save_indices(t),source.trigger(\"select\")},r.prototype.select=function(t,e,n,r,i){var o,a,l;return null==i&&(i=!1),l=this.get(\"source\"),l!==e.mget(\"data_source\")&&s.warn(\"select called with mis-matched data sources\"),o=e.hit_test(n),a=this._get_selector(t),a.update(o,r,i),this._save_indices(a.get(\"indices\")),l.trigger(\"select\"),l.trigger(\"select-\"+e.mget(\"id\"))},r.prototype.inspect=function(t,e,n,r){var i,o;return o=this.get(\"source\"),o!==e.mget(\"data_source\")&&s.warn(\"inspect called with mis-matched data sources\"),i=e.hit_test(n),null!=i?(o.trigger(\"inspect\",i,t,e,o,r),o.trigger(\"inspect\"+e.mget(\"id\"),i,t,e,o,r)):void 0},r.prototype.clear=function(t){var e;return null!=t&&(e=this._get_selector(t),e.clear()),this._save_indices([])},r.prototype._get_selector=function(e){return t.setdefault(this.selectors,e.model.id,new i),this.selectors[e.model.id]},r.prototype._save_indices=function(t){return this.get(\"source\").save({selected:t},{patch:!0})},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};define(\"common/tool_events\",[\"backbone\",\"common/has_properties\",\"common/logging\"],function(t,n,r){var i,o,s,a,l;return s=r.logger,i=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"ToolEvents\",n}(n),o=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(t.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};define(\"mapper/linear_color_mapper\",[\"underscore\",\"common/collection\",\"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.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.palette=this._build_palette(this.get(\"palette\")),this.little_endian=this._is_little_endian(),null!=this.get(\"reserve_color\")?(this.reserve_color=parseInt(this.get(\"reserve_color\").slice(1),16),this.reserve_val=this.get(\"reserve_val\")):void 0},r.prototype.v_map_screen=function(e){var n,r,i,o,s,a,l,u,c,p,h,d,f,_,g,m;if(r=new ArrayBuffer(4*e.length),i=new Uint32Array(r),l=null!=(f=this.get(\"low\"))?f:t.min(e),s=null!=(_=this.get(\"high\"))?_:t.max(e),n=this.palette.length-1,c=n/(s-l),u=-c*l,this.little_endian)for(a=h=0,g=e.length;g>=0?g>h:h>g;a=g>=0?++h:--h)o=e[a],o===this.reserve_val?p=this.reserve_color:(o>s&&(o=s),l>o&&(o=l),p=this.palette[Math.floor(o*c+u)]),i[a]=255<<24|(16711680&p)>>16|65280&p|(255&p)<<16;else for(a=d=0,m=e.length;m>=0?m>d:d>m;a=m>=0?++d:--d)o=e[a],o===this.reserve_val?p=this.reserve_color:(o>s&&(o=s),l>o&&(o=l),p=this.palette[Math.floor(o*c+u)]),i[a]=p<<8|255;return r},r.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},r.prototype._build_palette=function(e){var n,r,i,o;for(r=new Uint32Array(e.length+1),n=i=0,o=e.length;o>=0?o>i:i>o;n=o>=0?++i:--i)r[n]=t.isNumber(e[n])?e[n]:parseInt(e[n].slice(1),16);return r[r.length-1]=e[e.length-1],r},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),{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};define(\"range/factor_range\",[\"common/collection\",\"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 _.extend({},n.__super__.defaults.call(this),{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),{Model:r,Collection:new i}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=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};define(\"range/data_factor_range\",[\"underscore\",\"common/collection\",\"range/factor_range\"],function(e,r,i){var o,s,a,l;return o=function(r){function i(){return this._get_values=t(this._get_values,this),a=i.__super__.constructor.apply(this,arguments)}return n(i,r),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(\"data_source\").get_column(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.initialize=function(t,e){return i.__super__.initialize.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(\"data_source\"),[\"data_source\",\"columns\"])},i.prototype.defaults=function(){return e.extend({},i.__super__.defaults.call(this),{values:[],columns:[],data_source:null})},i}(i.Model),s=function(t){function e(){return l=e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.model=o,e}(r),{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};define(\"range/data_range1d\",[\"underscore\",\"common/collection\",\"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,c,p,h,d,f,_,g;for(r=[],d=this.get(\"sources\"),u=0,p=d.length;p>u;u++)for(s=d[u],a=this.resolve_ref(s.source),f=s.columns,c=0,h=f.length;h>c;c++)n=f[c],r.push(a.get_column(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)}),_=[t.min(r),t.max(r)],o=_[0],i=_[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.initialize=function(t,e){var n,i,o,s,a;for(this.register_property(\"minmax\",this._get_minmax,!0),this.add_dependencies(\"minmax\",this,[\"sources\"],[\"rangepadding\"]),a=this.get(\"sources\"),o=0,s=a.length;s>o;o++)n=a[o],i=this.resolve_ref(n.source),this.add_dependencies(\"minmax\",i,\"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__.initialize.call(this,t,e)},r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{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),{Model:i,Collection:new o}})}.call(this),function(){define(\"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};define(\"renderer/annotation/legend\",[\"underscore\",\"common/has_parent\",\"common/plot_widget\",\"common/collection\",\"common/textutils\",\"renderer/properties\"],function(t,n,r,i,o,s){var a,l,u,c,p,h;return l=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.label_props=new s.Text(this,\"label_\"),this.border_props=new s.Line(this,\"border_\"),this.need_calc_dims=!0,this.listenTo(this.plot_model.solver,\"layout_update\",function(){return this.need_calc_dims=!0})},r.prototype.calc_dims=function(){var e,n,r,i,s,a,l,u,c,p,h,d,f,_,g,m;return l=function(){var t,e,r,i,o;for(r=this.mget(\"legends\"),o=[],t=0,e=r.length;e>t;t++)i=r[t],a=i[0],n=i[1],o.push(a);return o}.call(this),i=this.mget(\"label_height\"),this.glyph_height=this.mget(\"glyph_height\"),s=this.mget(\"label_width\"),this.glyph_width=this.mget(\"glyph_width\"),c=this.mget(\"legend_spacing\"),this.label_height=t.max([o.getTextHeight(this.label_props.font(this)),i,this.glyph_height]),this.legend_height=this.label_height,this.legend_height=l.length*this.legend_height+(1+l.length)*c,e=this.plot_view.canvas_view.ctx,e.save(),this.label_props.set(e,this),d=t.map(l,function(t){return e.measureText(t).width}),e.restore(),h=t.max(d),this.label_width=t.max([h,s]),this.legend_width=this.label_width+this.glyph_width+3*c,p=this.mget(\"orientation\"),u=this.mget(\"legend_padding\"),r=this.plot_view.frame.get(\"h_range\"),f=this.plot_view.frame.get(\"v_range\"),\"top_right\"===p?(_=r.get(\"end\")-u-this.legend_width,g=f.get(\"end\")-u):\"top_left\"===p?(_=r.get(\"start\")+u,g=f.get(\"end\")-u):\"bottom_left\"===p?(_=r.get(\"start\")+u,g=f.get(\"start\")+u+this.legend_height):\"bottom_right\"===p?(_=r.get(\"end\")-u-this.legend_width,g=f.get(\"start\")+u+this.legend_height):\"absolute\"===p&&(m=this.absolute_coords,_=m[0],g=m[1]),_=this.plot_view.canvas.vx_to_sx(_),g=this.plot_view.canvas.vy_to_sy(g),this.box_coords=[_,g]},r.prototype.render=function(){var t,e,n,r,i,o,s,a,l,u,c,p,h,d,f,_,g,m,y,v,b,w;for(this.need_calc_dims&&(this.calc_dims(),this.need_calc_dims=!1),t=this.plot_view.canvas_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(),i=this.mget(\"legend_spacing\"),v=this.mget(\"legends\"),n=_=0,m=v.length;m>_;n=++_)for(b=v[n],r=b[0],e=b[1],d=n*this.label_height,f=(1+n)*i,c=this.box_coords[1]+this.label_height/2+d+f,a=this.box_coords[0]+i,l=this.box_coords[0]+2*i+this.label_width,u=l+this.glyph_width,p=this.box_coords[1]+d+f,h=p+this.glyph_height,this.label_props.set(t,this),t.fillText(r,a,c),w=this.model.resolve_ref(e),g=0,y=w.length;y>g;g++)o=w[g],s=this.plot_view.renderers[o.id],s.draw_legend(t,l,u,p,h);return t.restore()},r}(r),a=function(n){function r(){return p=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=l,r.prototype.type=\"Legend\",r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{legends:[]})},r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),{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})},r}(n),u=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(i),{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};define(\"renderer/annotation/span\",[\"underscore\",\"common/has_parent\",\"common/plot_widget\",\"common/collection\",\"common/logging\"],function(t,n,r,i,o){var s,a,l,u,c,p,h;return u=o.logger,a=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.$el.appendTo(this.plot_view.$el.find(\"div.bk-canvas-overlays\")),this.$el.css({position:\"absolute\"}),this.$el.hide()},n.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,\"change:location\",this._draw_span)},n.prototype.render=function(){return this._draw_span()},n.prototype._draw_span=function(){var t,e,n,r,i,o;return null==this.mget(\"location\")?void this.$el.hide():(e=this.plot_model.get(\"frame\"),t=this.plot_model.get(\"canvas\"),\"width\"===this.mget(\"dimension\")?(i=t.vy_to_sy(this.mget(\"location\")),r=t.vx_to_sx(e.get(\"left\")),o=\"\"+e.get(\"width\")+\"px\",n=\"1px\"):(i=t.vy_to_sy(e.get(\"top\")),r=t.vx_to_sx(this.mget(\"location\")),o=\"1px\",n=\"\"+e.get(\"height\")+\"px\"),this.$el.css({top:i,left:r,width:o,height:n,\"z-index\":1e3,\"background-color\":this.mget(\"color\")}),this.$el.show())},n}(r),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=\"Span\",r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{level:\"overlay\",dimension:\"width\",units:\"screen\",color:\"black\"})},r}(n),l=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(i),{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};define(\"renderer/annotation/tooltip\",[\"underscore\",\"common/has_parent\",\"common/plot_widget\",\"common/collection\",\"common/logging\"],function(t,n,r,i,o){var s,a,l,u,c,p,h;return u=o.logger,a=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.className=\"bk-tooltip\",r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.$el.appendTo(this.plot_view.$el.find(\"div.bk-canvas-overlays\")),this.$el.css({\"z-index\":1010}),this.$el.hide()},r.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,\"change:data\",this._draw_tips)},r.prototype.render=function(){return this._draw_tips()},r.prototype._draw_tips=function(){var e,n,r,i,o,s,a,l,c,p,h,d,f,_;if(this.$el.empty(),this.$el.hide(),!t.isEmpty(this.mget(\"data\"))){for(_=this.mget(\"data\"),d=0,f=_.length;f>d;d++)c=_[d],p=c[0],h=c[1],e=c[2],(!this.mget(\"inner_only\")||this.plot_view.frame.contains(p,h))&&(a=$(\"<div />\").appendTo(this.$el),a.append(e));if(o=this.plot_view.mget(\"canvas\").vx_to_sx(p),s=this.plot_view.mget(\"canvas\").vy_to_sy(h),i=this.mget(\"side\"),\"auto\"===i&&(r=this.plot_view.frame.get(\"width\"),i=p-this.plot_view.frame.get(\"left\")<r/2?\"right\":\"left\"),this.$el.removeClass(\"bk-right\"),this.$el.removeClass(\"bk-left\"),\"right\"===i)this.$el.addClass(\"bk-left\"),l=s-this.$el.height()/2,n=o+18;else{if(\"left\"!==i)return void u.warn(\"invalid tooltip side: '\"+i+\"'\");this.$el.addClass(\"bk-right\"),l=s-this.$el.height()/2,n=o-this.$el.width()-23}return this.$el.children().length>0?(this.$el.css({top:l,left:n}),this.$el.show()):void 0}},r}(r),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=\"Tooltip\",r.prototype.clear=function(){return this.set(\"data\",[])},r.prototype.add=function(t,e,n){var r;return r=this.get(\"data\"),r.push([t,e,n]),this.set(\"data\",r)},r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{level:\"overlay\",side:\"auto\",inner_only:!0})},r}(n),l=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(i),{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};define(\"renderer/glyph/glyph_renderer\",[\"underscore\",\"common/logging\",\"common/has_parent\",\"common/collection\",\"common/plot_widget\",\"range/factor_range\"],function(t,n,r,i,o,s){var a,l,u,c,p,h,d;return c=n.logger,l=function(n){function r(){return p=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(t){var e,n;return r.__super__.initialize.call(this,t),this.glyph=this.build_glyph(this.mget(\"glyph\")),n=this.mget(\"selection_glyph\"),null==n&&(n=this.mget(\"glyph\").clone(),n.set(this.model.selection_defaults,{silent:!0})),this.selection_glyph=this.build_glyph(n),e=this.mget(\"nonselection_glyph\"),null==e&&(e=this.mget(\"glyph\").clone(),e.set(this.model.nonselection_defaults,{silent:!0})),this.nonselection_glyph=this.build_glyph(e),this.need_set_data=!0,this.xmapper=this.plot_view.frame.get(\"x_mappers\")[this.mget(\"x_range_name\")],this.ymapper=this.plot_view.frame.get(\"y_mappers\")[this.mget(\"y_range_name\")],this.mget(\"server_data_source\")&&this.setup_server_data(),this.listenTo(this,\"change:server_data_source\",this.setup_server_data)},r.prototype.build_glyph=function(t){return new t.default_view({model:t,renderer:this})},r.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,\"change\",this.request_render),this.listenTo(this.mget(\"data_source\"),\"change\",this.set_data),this.listenTo(this.mget(\"data_source\"),\"select\",this.request_render)},r.prototype.have_selection_glyphs=function(){return!0},r.prototype.setup_server_data=function(){var e,n,r,i,o,s,a;if(i=this.mget(\"server_data_source\"),e=t.extend({},this.mget(\"data_source\").get(\"data\"),i.get(\"data\")),this.mget(\"data_source\").set(\"data\",e),this.set_data(!1),o=i.attributes.transform,r=o.resample,s=this.plot_view.frame.get(\"h_range\"),a=this.plot_view.frame.get(\"v_range\"),\"line1d\"===r){if(n=o.domain,\"x\"===n)return i.listen_for_line1d_updates(this.mget(\"data_source\"),s,a,this.plot_view.x_range,this.plot_view.y_range,s,this.glyph.y.field,this.glyph.x.field,[this.glyph.y.field],o);throw new Error(\"Domains other than 'x' not supported yet.\")}return\"heatmap\"===r?i.listen_for_heatmap_updates(this.mget(\"data_source\"),s,a,this.plot_view.x_range,this.plot_view.y_range,o):\"abstract rendering\"===r?i.listen_for_ar_updates(this.plot_view,this.mget(\"data_source\"),s,a,this.plot_view.x_range,this.plot_view.y_range,o):c.warn(\"unknown resample op: '\"+r+\"'\")},r.prototype.set_data=function(t){var e,n,r;return null==t&&(t=!0),n=this.mget(\"data_source\"),r=Date.now(),this.all_indices=this.glyph.set_data(n),this.selection_glyph.set_data(n),this.nonselection_glyph.set_data(n),e=Date.now()-r,c.debug(\"\"+this.glyph.model.type+\" glyph (\"+this.glyph.model.id+\"): set_data finished in \"+e+\"ms\"),this.have_new_data=!0,t?this.request_render():void 0},r.prototype.render=function(){var t,e,n,r,i,o,a,l,u,p,h,d,f,_,g,m,y=this;if(this.need_set_data&&(this.set_data(!1),this.need_set_data=!1),this.glyph._map_data(),this.selection_glyph._map_data(),this.nonselection_glyph._map_data(),o=null==this._mask_data||this.plot_view.x_range instanceof s.Model||this.plot_view.y_range instanceof s.Model?this.all_indices:this._mask_data(),t=this.plot_view.canvas_view.ctx,t.save(),e=function(t,e,n){return y.have_new_data&&n.update_data(y.mget(\"data_source\")),n.render(t,e)},h=this.mget(\"data_source\").get(\"selected\"),u=null!=h&&h.length>0?h:[],d=Date.now(),u&&u.length&&this.have_selection_glyphs()){for(p=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),f=0,g=u.length;g>f;f++)i=u[f],p[i]=!0;for(l=new Array,a=new Array,_=0,m=o.length;m>_;_++)r=o[_],p[r]?l.push(r):a.push(r);e(t,l,this.selection_glyph),e(t,a,this.nonselection_glyph)}else e(t,o,this.glyph);return n=Date.now()-d,c.trace(\"\"+this.glyph.model.type+\" glyph (\"+this.glyph.model.id+\"): do_render calls finished in \"+n+\"ms\"),this.have_new_data=!1,t.restore()},r.prototype.xrange=function(){return this.plot_view.x_range},r.prototype.yrange=function(){return this.plot_view.y_range},r.prototype.map_to_screen=function(t,e,n,r){return this.plot_view.map_to_screen(t,e,n,r,this.mget(\"x_range_name\"),this.mget(\"y_range_name\"))},r.prototype.draw_legend=function(t,e,n,r,i){return this.glyph.draw_legend(t,e,n,r,i)},r.prototype.hit_test=function(t){return this.glyph.hit_test(t)},r}(o),a=function(n){function r(){return h=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=l,r.prototype.type=\"GlyphRenderer\",r.prototype.selection_defaults={},r.prototype.nonselection_defaults={fill_alpha:.1,line_alpha:.1},r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{x_range_name:\"default\",y_range_name:\"default\",data_source:null})},r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),{level:\"glyph\"})},r}(r),u=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(i),{Model:a,View:l,Collection:new u}})}.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),void this.clear()):new t(e,n)}function e(t,e){t.bbox=n(t,0,t.children.length,e)}function n(t,e,n,o){for(var s,a=r(),l=e;n>l;l++)s=t.children[l],i(a,t.leaf?o(s):s.bbox);return a}function r(){return[1/0,1/0,-1/0,-1/0]}function i(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}function o(t,e){return t.bbox[0]-e.bbox[0]}function s(t,e){return t.bbox[1]-e.bbox[1]}function a(t){return(t[2]-t[0])*(t[3]-t[1])\n",
        "                }function l(t){return t[2]-t[0]+(t[3]-t[1])}function u(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]))}function c(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)}function p(t,e){return t[0]<=e[0]&&t[1]<=e[1]&&e[2]<=t[2]&&e[3]<=t[3]}function h(t,e){return e[0]<=t[2]&&e[1]<=t[3]&&e[2]>=t[0]&&e[3]>=t[1]}function d(t,e,n,r,i){for(var o;;){if(o=Math.floor((e+n)/2),o=f(t,e,n,o,i),r===o)break;o>r?n=o-1:e=o+1}f(t,e,n,r,i)}function f(t,e,n,r,i){var o=e,s=t[r];_(t,r,n);for(var a=e;n>a;a++)i(t[a],s)<0&&(_(t,o,a),o++);return _(t,n,o),o}function _(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}t.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,n=[],r=this.toBBox;if(!h(t,e.bbox))return n;for(var i,o,s,a,l=[];e;){for(i=0,o=e.children.length;o>i;i++)s=e.children[i],a=e.leaf?r(s):s.bbox,h(t,a)&&(e.leaf?n.push(s):p(t,a)?this._all(s,n):l.push(s));e=l.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,t.length-1,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:[],height:1,bbox:r(),leaf:!0},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||!p(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,n,r,i,o){var s,a=r-n+1,l=this._maxEntries;if(l>=a)return s={children:t.slice(n,r+1),height:1,bbox:null,leaf:!0},e(s,this.toBBox),s;i||(o=Math.ceil(Math.log(a)/Math.log(l)),l=Math.ceil(a/Math.pow(l,o-1))),s={children:[],height:o,bbox:null};var u,c,p,h,f=Math.ceil(a/l),_=f*Math.ceil(Math.sqrt(l));for(u=n;r>=u;u+=_)for(r>=u+_&&d(t,u,r,u+_,this.compareMinX),p=Math.min(u+_-1,r),c=u;p>=c;c+=f)p>=c+f&&d(t,c,p,c+f,this.compareMinY),h=this._build(t,c,Math.min(c+f-1,p),i+1,o-1),s.children.push(h);return e(s,this.toBBox),s},_chooseSubtree:function(t,e,n,r){for(var i,o,s,l,c,p,h,d;;){if(r.push(e),e.leaf||r.length-1===n)break;for(h=d=1/0,i=0,o=e.children.length;o>i;i++)s=e.children[i],c=a(s.bbox),p=u(t,s.bbox)-c,d>p?(d=p,h=h>c?c:h,l=s):p===d&&h>c&&(h=c,l=s);e=l}return e},_insert:function(t,e,n){var r=this.toBBox,o=n?t.bbox:r(t),s=[],a=this._chooseSubtree(o,this.data,e,s);for(a.children.push(t),i(a.bbox,o);e>=0&&s[e].children.length>this._maxEntries;)this._split(s,e),e--;this._adjustParentBBoxes(o,s,e)},_split:function(t,n){var r=t[n],i=r.children.length,o=this._minEntries;this._chooseSplitAxis(r,o,i);var s={children:r.children.splice(this._chooseSplitIndex(r,o,i)),height:r.height};r.leaf&&(s.leaf=!0),e(r,this.toBBox),e(s,this.toBBox),n?t[n-1].children.push(s):this._splitRoot(r,s)},_splitRoot:function(t,n){this.data={children:[t,n],height:t.height+1},e(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,r){var i,o,s,l,u,p,h,d;for(p=h=1/0,i=e;r-e>=i;i++)o=n(t,0,i,this.toBBox),s=n(t,i,r,this.toBBox),l=c(o,s),u=a(o)+a(s),p>l?(p=l,d=i,h=h>u?u:h):l===p&&h>u&&(h=u,d=i);return d},_chooseSplitAxis:function(t,e,n){var r=t.leaf?this.compareMinX:o,i=t.leaf?this.compareMinY:s,a=this._allDistMargin(t,e,n,r),l=this._allDistMargin(t,e,n,i);l>a&&t.children.sort(r)},_allDistMargin:function(t,e,r,o){t.children.sort(o);var s,a,u=this.toBBox,c=n(t,0,e,u),p=n(t,r-e,r,u),h=l(c)+l(p);for(s=e;r-e>s;s++)a=t.children[s],i(c,t.leaf?u(a):a.bbox),h+=l(c);for(s=r-e-1;s>=e;s--)a=t.children[s],i(p,t.leaf?u(a):a.bbox),h+=l(p);return h},_adjustParentBBoxes:function(t,e,n){for(var r=n;r>=0;r--)i(e[r].bbox,t)},_condense:function(t){for(var n,r=t.length-1;r>=0;r--)0===t[r].children.length?r>0?(n=t[r-1].children,n.splice(n.indexOf(t[r]),1)):this.clear():e(t[r],this.toBBox)},_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 define&&define.amd?define(\"rbush\",[],function(){return t}):\"undefined\"!=typeof module?module.exports=t:\"undefined\"!=typeof self?self.rbush=t:window.rbush=t}(),function(){define(\"common/mathutils\",[],function(){var t,e,n;return n=function(t){for(;0>t;)t+=2*Math.PI;for(;t>2*Math.PI;)t-=2*Math.PI;return t},e=function(t,e){return Math.abs(n(t-e))},t=function(t,r,i,o){var s;return t=n(t),s=e(r,i),\"anticlock\"===o?e(r,t)<=s&&e(t,i)<=s:!(e(r,t)<=s&&e(t,i)<=s)},{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},n=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};define(\"renderer/glyph/glyph\",[\"underscore\",\"common/logging\",\"common/has_parent\",\"common/collection\",\"common/continuum_view\",\"renderer/properties\"],function(t,r,i,o,s,a){var l,u,c,p,h,d,f;return p=r.logger,u=function(r){function i(){return h=i.__super__.constructor.apply(this,arguments)}return e(i,r),i.prototype.initialize=function(t){return i.__super__.initialize.call(this,t),this.renderer=t.renderer,this.glyph=new a.Glyph(this,this._fields),this.props={},n.call(this._properties,\"line\")>=0&&(this.props.line=new a.Line(this)),n.call(this._properties,\"fill\")>=0&&(this.props.fill=new a.Fill(this)),n.call(this._properties,\"text\")>=0?this.props.text=new a.Text(this):void 0},i.prototype.render=function(t,e){return this._render(t,e)},i.prototype._map_data=function(){return null},i.prototype.update_data=function(t){return null!=this.props.fill&&this.props.fill.do_fill&&this.props.fill.set_prop_cache(t),null!=this.props.line&&this.props.line.do_stroke&&this.props.line.set_prop_cache(t),null!=this.props.text?this.props.text.set_prop_cache(t):void 0},i.prototype.set_data=function(t){var e,n,r,i,o,s,a,l,u,c,p,h,d;for(c=this._fields,a=0,u=c.length;u>a;a++){if(n=c[a],n.indexOf(\":\")>-1&&(p=n.split(\":\"),n=p[0],i=p[1]),this[n]=this.glyph.source_v_select(n,t),\"direction\"===n){for(o=new Uint8Array(this.direction.length),r=l=0,h=this.direction.length;h>=0?h>l:l>h;r=h>=0?++l:--l)e=this.direction[r],\"clock\"===e?o[r]=!1:\"anticlock\"===e?o[r]=!0:o=0/0;this.direction=o}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++)s=r[t],i.push(-s);return i}.call(this))}return this._set_data(),function(){d=[];for(var t=0,e=this[n].length;e>=0?e>t:t>e;e>=0?t++:t--)d.push(t);return d}.apply(this)},i.prototype._set_data=function(){return null},i.prototype.distance_vector=function(t,e,n,r){var i,o,s,a,l,u,c,p,h,d,f,_,g,m,y=this;return null==r&&(r=!1),p=this.glyph[t].units,_=this.glyph[e].units,\"x\"===t?l=this.renderer.xmapper:\"y\"===t&&(l=this.renderer.ymapper),d=this.renderer.mget(\"data_source\"),a=function(t){return y.glyph.source_v_select(t,d)},f=a(e),\"screen\"===_?f:(\"center\"===n?(o=function(){var t,e,n;for(n=[],t=0,e=f.length;e>t;t++)i=f[t],n.push(i/2);return n}(),h=a(t),\"screen\"===p&&(h=l.v_map_from_target(h)),\"string\"==typeof h[0]&&(h=l.v_map_to_target(h)),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}(),c=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=a(t),\"screen\"===p&&(u=l.v_map_from_target(u)),c=function(){var t,e,n;for(n=[],s=t=0,e=u.length;e>=0?e>t:t>e;s=e>=0?++t:--t)n.push(u[s]+f[s]);return n}()),g=l.v_map_to_target(u),m=l.v_map_to_target(c),r?function(){var t,e,n;for(n=[],s=t=0,e=g.length;e>=0?e>t:t>e;s=e>=0?++t:--t)n.push(Math.ceil(Math.abs(m[s]-g[s])));return n}():function(){var t,e,n;for(n=[],s=t=0,e=g.length;e>=0?e>t:t>e;s=e>=0?++t:--t)n.push(Math.abs(m[s]-g[s]));return n}())},i.prototype.hit_test=function(t){var e,n;return e=null,\"point\"===t.type?null!=this._hit_point?e=this._hit_point(t):null==this._point_hit_warned&&(n=this.model.type,p.warn(\"'point' selection not available on \"+n+\" renderer\"),this._point_hit_warned=!0):\"rect\"===t.type?null!=this._hit_rect?e=this._hit_rect(t):null==this._rect_hit_warned&&(n=this.model.type,p.warn(\"'rect' selection not available on \"+n+\" renderer\"),this._rect_hit_warned=!0):\"poly\"===t.type?null!=this._hit_poly?e=this._hit_poly(t):null==this._poly_hit_warned&&(n=this.model.type,p.warn(\"'poly' selection not available on \"+n+\" renderer\"),this._poly_hit_warned=!0):p.error(\"unrecognized selection geometry type '\"+t.type+\"'\"),e},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;return o=null!=(s=this.get_reference_point())?s:0,t.save(),t.beginPath(),t.moveTo(e,(r+i)/2),t.lineTo(n,(r+i)/2),this.props.line.do_stroke&&(this.props.line.set_vectorize(t,o),t.stroke()),t.restore()},i.prototype._generic_area_legend=function(t,e,n,r,i){var o,s,a,l,u,c,p,h,d,f,_;return u=null!=(_=this.get_reference_point())?_:0,l=[u],f=Math.abs(n-e),s=.1*f,a=Math.abs(i-r),o=.1*a,c=e+s,p=n-s,h=r+o,d=i-o,this.props.fill.do_fill&&(this.props.fill.set_vectorize(t,u),t.fillRect(c,h,p-c,d-h)),this.props.line.do_stroke?(t.beginPath(),t.rect(c,h,p-c,d-h),this.props.line.set_vectorize(t,u),t.stroke()):void 0},i}(s),l=function(n){function r(){return d=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.fill_defaults={fill_color:\"gray\",fill_alpha:1},r.prototype.line_defaults={line_color:\"black\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0},r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{size_units:\"screen\",radius_units:\"data\",length_units:\"screen\",angle_units:\"deg\",start_angle_units:\"deg\",end_angle_units:\"deg\"})},r}(i),c=function(t){function n(){return f=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(o),{Model:l,View:u,Collection:c}})}.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};define(\"renderer/glyph/annular_wedge\",[\"underscore\",\"rbush\",\"common/mathutils\",\"renderer/properties\",\"./glyph\"],function(t,n,r,i,o){var s,a,l,u,c,p;return a=function(i){function o(){return u=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,r,i,o;for(this.max_radius=t.max(this.outer_radius),this.index=n(),r=[],e=i=0,o=this.x.length;o>=0?o>i:i>o;e=o>=0?++i:--i)isNaN(this.x[e]+this.y[e])||r.push([this.x[e],this.y[e],this.x[e],this.y[e],{i:e}]);return this.index.load(r)},o.prototype._map_data=function(){var t,e,n,r,i;for(n=this.renderer.map_to_screen(this.x,this.glyph.x.units,this.y,this.glyph.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){var s,a,l,u;for(null==n&&(n=this.sx),null==r&&(r=this.sy),null==i&&(i=this.inner_radius),null==o&&(o=this.outer_radius),u=[],a=0,l=e.length;l>a;a++)s=e[a],isNaN(n[s]+r[s]+i[s]+o[s]+this.start_angle[s]+this.angle[s])||(t.translate(n[s],r[s]),t.rotate(this.start_angle[s]),t.moveTo(o[s],0),t.beginPath(),t.arc(0,0,o[s],0,this.angle[s],this.direction[s]),t.rotate(this.angle[s]),t.lineTo(i[s],0),t.arc(0,0,i[s],0,-this.angle[s],!this.direction[s]),t.closePath(),t.rotate(-this.angle[s]-this.start_angle[s]),t.translate(-n[s],-r[s]),this.props.fill.do_fill&&(this.props.fill.set_vectorize(t,s),t.fill()),this.props.line.do_stroke?(this.props.line.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,c,p,h,d,f,_,g,m,y,v,b,w,x,k,C,M,A,S,T,D,E,R,I,P,N,z,O,j,F,L,B,H,$,W,V,Y;if(B=[e.vx,e.vy],y=B[0],w=B[1],C=this.renderer.xmapper.map_from_target(y),S=this.renderer.ymapper.map_from_target(w),\"screen\"===this.outer_radius_units?(v=y-this.max_radius,b=y+this.max_radius,H=this.renderer.xmapper.v_map_from_target([v,b]),M=H[0],A=H[1],x=w-this.max_radius,k=w+this.max_radius,$=this.renderer.ymapper.v_map_from_target([x,k]),T=$[0],D=$[1]):(M=C-this.max_radius,A=C+this.max_radius,T=S-this.max_radius,D=S+this.max_radius),i=function(){var t,e,n,r;for(n=this.index.search([M,T,A,D]),r=[],t=0,e=n.length;e>t;t++)c=n[t],r.push(c[4].i);return r}.call(this),o=[],\"screen\"===this.outer_radius_units)for(h=this.renderer.plot_view.canvas.vx_to_sx(y),_=this.renderer.plot_view.canvas.vy_to_sy(w),E=0,N=i.length;N>E;E++)u=i[E],p=Math.pow(this.outer_radius[u],2),a=Math.pow(this.sx[u]-h,2)+Math.pow(this.sy[u]-_,2),p>=a&&o.push([u,a]);else for(R=0,z=i.length;z>R;R++)u=i[R],p=Math.pow(this.outer_radius[u],2),d=this.renderer.xmapper.map_to_target(C),f=this.renderer.xmapper.map_to_target(this.x[u]),g=this.renderer.ymapper.map_to_target(S),m=this.renderer.ymapper.map_to_target(this.y[u]),a=Math.pow(d-f,2)+Math.pow(g-m,2),p>=a&&o.push([u,a]);if(s=[],\"screen\"===this.inner_radius_units)for(h=this.renderer.plot_view.canvas.vx_to_sx(y),_=this.renderer.plot_view.canvas.vy_to_sy(w),I=0,O=o.length;O>I;I++)W=o[I],u=W[0],a=W[1],p=Math.pow(this.inner_radius[u],2),a>=p&&s.push([u,a]);else for(P=0,j=o.length;j>P;P++)V=o[P],u=V[0],a=V[1],p=Math.pow(this.inner_radius[u],2),d=this.renderer.xmapper.map_to_target(C),f=this.renderer.xmapper.map_to_target(this.x[u]),g=this.renderer.ymapper.map_to_target(S),m=this.renderer.ymapper.map_to_target(this.y[u]),a>=p&&s.push([u,a]);for(l=[],L=0,F=s.length;F>L;L++)Y=s[L],u=Y[0],a=Y[1],h=this.renderer.plot_view.canvas.vx_to_sx(y),_=this.renderer.plot_view.canvas.vy_to_sy(w),n=Math.atan2(_-this.sy[u],h-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,c,p,h;return u=null!=(h=this.get_reference_point())?h:0,o=[u],c={},c[u]=(e+n)/2,p={},p[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,c,p,s,a)},o}(o.View),s=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=a,r.prototype.type=\"AnnularWedge\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults,this.fill_defaults,{direction:\"anticlock\"})},r}(o.Model),l=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(o.Collection),{Model:s,View:a,Collection:new 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};define(\"renderer/glyph/annulus\",[\"underscore\",\"rbush\",\"renderer/properties\",\"./glyph\"],function(t,n,r,i){var o,s,a,l,u,c;return s=function(r){function i(){return l=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,r,i,o;for(this.max_radius=t.max(this.outer_radius),this.index=n(),r=[],e=i=0,o=this.x.length;o>=0?o>i:i>o;e=o>=0?++i:--i)isNaN(this.x[e]+this.y[e])||r.push([this.x[e],this.y[e],this.x[e],this.y[e],{i:e}]);return this.index.load(r)},i.prototype._map_data=function(){var t;return t=this.renderer.map_to_screen(this.x,this.glyph.x.units,this.y,this.glyph.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){var s,a,l,u;for(null==n&&(n=this.sx),null==r&&(r=this.sy),null==i&&(i=this.inner_radius),null==o&&(o=this.outer_radius),u=[],a=0,l=e.length;l>a;a++)s=e[a],isNaN(n[s]+r[s]+i[s]+o[s])||(t.beginPath(),t.arc(n[s],r[s],i[s],0,2*Math.PI*2,!1),t.moveTo(n[s]+o[s],r[s]),t.arc(n[s],r[s],o[s],0,2*Math.PI*2,!0),this.props.fill.do_fill&&(this.props.fill.set_vectorize(t,s),t.fill()),this.props.line.do_stroke?(this.props.line.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,c,p,h,d,f,_,g,m,y,v,b,w,x,k,C,M,A,S,T,D,E,R,I,P,N,z,O,j,F,L;if(z=[e.vx,e.vy],_=z[0],y=z[1],w=this.renderer.xmapper.map_from_target(_),C=this.renderer.ymapper.map_from_target(y),\"screen\"===this.outer_radius_units?(g=_-this.max_radius,m=_+this.max_radius,O=this.renderer.xmapper.v_map_from_target([g,m]),x=O[0],k=O[1],v=y-this.max_radius,b=y+this.max_radius,j=this.renderer.ymapper.v_map_from_target([v,b]),M=j[0],A=j[1]):(x=w-this.max_radius,k=w+this.max_radius,M=C-this.max_radius,A=C+this.max_radius),n=function(){var t,e,n,r;for(n=this.index.search([x,M,k,A]),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.renderer.plot_view.canvas.vx_to_sx(_),h=this.renderer.plot_view.canvas.vy_to_sy(y),S=0,R=n.length;R>S;S++)s=n[S],l=Math.pow(this.outer_radius[s],2),i=Math.pow(this.sx[s]-u,2)+Math.pow(this.sy[s]-h,2),l>=i&&r.push([s,i]);else for(T=0,I=n.length;I>T;T++)s=n[T],l=Math.pow(this.outer_radius[s],2),c=this.renderer.xmapper.map_to_target(w),p=this.renderer.xmapper.map_to_target(this.x[s]),d=this.renderer.ymapper.map_to_target(C),f=this.renderer.ymapper.map_to_target(this.y[s]),i=Math.pow(c-p,2)+Math.pow(d-f,2),l>=i&&r.push([s,i]);if(o=[],\"screen\"===this.inner_radius_units)for(u=this.renderer.plot_view.canvas.vx_to_sx(_),h=this.renderer.plot_view.canvas.vy_to_sy(y),D=0,P=r.length;P>D;D++)F=r[D],s=F[0],i=F[1],l=Math.pow(this.inner_radius[s],2),i>=l&&o.push([s,i]);else for(E=0,N=r.length;N>E;E++)L=r[E],s=L[0],i=L[1],l=Math.pow(this.inner_radius[s],2),c=this.renderer.xmapper.map_to_target(w),p=this.renderer.xmapper.map_to_target(this.x[s]),d=this.renderer.ymapper.map_to_target(C),f=this.renderer.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,c,p,h;return u=null!=(h=this.get_reference_point())?h:0,o=[u],c={},c[u]=(e+n)/2,p={},p[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,c,p,s,a)},i}(i.View),o=function(n){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type=\"Annulus\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults,this.fill_defaults)},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}(i.Collection),{Model:o,View:s,Collection:new 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};define(\"renderer/glyph/arc\",[\"underscore\",\"renderer/properties\",\"./glyph\"],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._fields=[\"x\",\"y\",\"radius\",\"start_angle\",\"end_angle\",\"direction:string\"],n.prototype._properties=[\"line\"],n.prototype._map_data=function(){var t;return t=this.renderer.map_to_screen(this.x,this.glyph.x.units,this.y,this.glyph.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){var o,s,a,l;if(null==n&&(n=this.sx),null==r&&(r=this.sy),null==i&&(i=this.radius),this.props.line.do_stroke){for(l=[],s=0,a=e.length;a>s;s++)o=e[s],isNaN(n[o]+r[o]+i[o]+this.start_angle[o]+this.end_angle[o]+this.direction[o])||(t.beginPath(),t.arc(n[o],r[o],i[o],this.start_angle[o],this.end_angle[o],this.direction[o]),this.props.line.set_vectorize(t,o),l.push(t.stroke()));return l}},n.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l,u,c;return a=null!=(c=this.get_reference_point())?c: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,l,u,s)},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=\"Arc\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults,{direction:\"anticlock\"})},r}(r.Model),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(r.Collection),{Model:i,View: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};define(\"renderer/glyph/bezier\",[\"underscore\",\"renderer/properties\",\"./glyph\"],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._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.renderer.map_to_screen(this.x0,this.glyph.x0.units,this.y0,this.glyph.y0.units),this.sx0=t[0],this.sy0=t[1],e=this.renderer.map_to_screen(this.x1,this.glyph.x1.units,this.y1,this.glyph.y1.units),this.sx1=e[0],this.sy1=e[1],n=this.renderer.map_to_screen(this.cx0,this.glyph.cx0.units,this.cy0,this.glyph.cy0.units),this.scx0=n[0],this.scy0=n[1],r=this.renderer.map_to_screen(this.cx1,this.glyph.cx1.units,this.cy1,this.glyph.cy1.units),this.scx1=r[0],this.scy1=r[1],r},n.prototype._render=function(t,e){var n,r,i,o;if(this.props.line.do_stroke){for(o=[],r=0,i=e.length;i>r;r++)n=e[r],isNaN(this.sx0[n]+this.sy0[n]+this.sx1[n]+this.sy1[n]+this.scx0[n]+this.scy0[n]+this.scx1[n]+this.scy1[n])||(t.beginPath(),t.moveTo(this.sx0[n],this.sy0[n]),t.bezierCurveTo(this.scx0[n],this.scy0[n],this.scx1[n],this.scy1[n],this.sx1[n],this.sy1[n]),this.props.line.set_vectorize(t,n),o.push(t.stroke()));return o}},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 l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Bezier\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults)},r}(r.Model),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(r.Collection),{Model:i,View: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};define(\"renderer/glyph/circle\",[\"underscore\",\"rbush\",\"renderer/properties\",\"./glyph\"],function(t,n,r,i){var o,s,a,l,u,c,p;return l=function(t,e,n,r){var i,o,s,a,l,u,c,p;for(o=!1,s=n[n.length-1],l=r[r.length-1],i=c=0,p=n.length;p>=0?p>c:c>p;i=p>=0?++c:--c)a=n[i],u=r[i],e>l!=e>u&&t>s+(e-l)/(u-l)*(a-s)&&(o=!o),s=a,l=u;return o},s=function(r){function i(){return u=i.__super__.constructor.apply(this,arguments)}return e(i,r),i.prototype._properties=[\"line\",\"fill\"],i.prototype.initialize=function(t){return this._fields=null!=this.mget(\"radius\")?[\"x\",\"y\",\"radius\"]:[\"x\",\"y\",\"size\"],i.__super__.initialize.call(this,t)},i.prototype._set_data=function(){var e,r,i,o;for(this.max_radius=this.size?t.max(this.size)/2:t.max(this.radius),this.index=n(),r=[],e=i=0,o=this.x.length;o>=0?o>i:i>o;e=o>=0?++i:--i)isNaN(this.x[e]+this.y[e])||r.push([this.x[e],this.y[e],this.x[e],this.y[e],{i:e}]);return this.index.load(r)},i.prototype._map_data=function(){var t,e;return e=this.renderer.map_to_screen(this.x,this.glyph.x.units,this.y,this.glyph.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.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,c,p,h,d,f;return t=this.renderer.plot_view.frame.get(\"h_range\"),o=this.renderer.plot_view.frame.get(\"v_range\"),\"screen\"===this.radius_units?(e=t.get(\"start\")-this.max_radius,n=t.get(\"end\")-this.max_radius,p=this.renderer.xmapper.v_map_from_target([e,n]),a=p[0],l=p[1],r=o.get(\"start\")-this.max_radius,i=o.get(\"end\")-this.max_radius,h=this.renderer.ymapper.v_map_from_target([r,i]),u=h[0],c=h[1]):(e=t.get(\"start\"),n=t.get(\"end\"),d=this.renderer.xmapper.v_map_from_target([e,n]),a=d[0],l=d[1],a-=this.max_radius,l+=this.max_radius,r=o.get(\"start\"),i=o.get(\"end\"),f=this.renderer.ymapper.v_map_from_target([r,i]),u=f[0],c=f[1],u-=this.max_radius,c+=this.max_radius),function(){var t,e,n,r;for(n=this.index.search([a,u,l,c]),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){var o,s,a,l;for(null==n&&(n=this.sx),null==r&&(r=this.sy),null==i&&(i=this.radius),l=[],s=0,a=e.length;a>s;s++)o=e[s],isNaN(n[o]+r[o]+i[o])||(t.beginPath(),t.arc(n[o],r[o],i[o],0,2*Math.PI,!1),this.props.fill.do_fill&&(this.props.fill.set_vectorize(t,o),t.fill()),this.props.line.do_stroke?(this.props.line.set_vectorize(t,o),l.push(t.stroke())):l.push(void 0));return l},i.prototype._hit_point=function(e){var n,r,i,o,s,a,l,u,c,p,h,d,f,_,g,m,y,v,b,w,x,k,C,M,A,S,T,D,E,R,I;if(E=[e.vx,e.vy],f=E[0],m=E[1],b=this.renderer.xmapper.map_from_target(f),k=this.renderer.ymapper.map_from_target(m),\"screen\"===this.radius_units?(_=f-this.max_radius,g=f+this.max_radius,R=this.renderer.xmapper.v_map_from_target([_,g]),w=R[0],x=R[1],y=m-this.max_radius,v=m+this.max_radius,I=this.renderer.ymapper.v_map_from_target([y,v]),C=I[0],M=I[1]):(w=b-this.max_radius,x=b+this.max_radius,C=k-this.max_radius,M=k+this.max_radius),n=function(){var t,e,n,r;for(n=this.index.search([w,C,x,M]),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.renderer.plot_view.canvas.vx_to_sx(f),p=this.renderer.plot_view.canvas.vy_to_sy(m),A=0,T=n.length;T>A;A++)o=n[A],a=Math.pow(this.radius[o],2),r=Math.pow(this.sx[o]-l,2)+Math.pow(this.sy[o]-p,2),a>=r&&i.push([o,r]);else for(S=0,D=n.length;D>S;S++)o=n[S],a=Math.pow(this.radius[o],2),u=this.renderer.xmapper.map_to_target(b),c=this.renderer.xmapper.map_to_target(this.x[o]),h=this.renderer.ymapper.map_to_target(k),d=this.renderer.ymapper.map_to_target(this.y[o]),r=Math.pow(u-c,2)+Math.pow(h-d,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.renderer.xmapper.v_map_from_target([t.vx0,t.vx1]),n=s[0],r=s[1],a=this.renderer.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._hit_poly=function(e){var n,r,i,o,s,a,u,c,p,h,d,f;for(h=[t.clone(e.vx),t.clone(e.vy)],u=h[0],c=h[1],s=this.renderer.plot_view.canvas.v_vx_to_sx(u),a=this.renderer.plot_view.canvas.v_vy_to_sy(c),n=function(){f=[];for(var t=0,e=this.sx.length;e>=0?e>t:t>e;e>=0?t++:t--)f.push(t);return f}.apply(this),r=[],i=p=0,d=n.length;d>=0?d>p:p>d;i=d>=0?++p:--p)o=n[i],l(this.sx[i],this.sy[i],s,a)&&r.push(o);return r},i.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l,u,c;return a=null!=(c=this.get_reference_point())?c:0,o=[a],l={},l[a]=(e+n)/2,u={},u[a]=(r+i)/2,s={},s[a]=.2*Math.min(Math.abs(n-e),Math.abs(i-r)),this._render(t,o,l,u,s)},i}(i.View),o=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type=\"Circle\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults,this.fill_defaults,{size:4})},r}(i.Model),a=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(i.Collection),{Model:o,View:s,Collection:new a}})}.call(this),define(\"gear_utils\",[],function(){var t,e,n;return function(){t=function(t,e,n,r,i,o){function s(t,e){var n,r=50,i=0;for(n=1;r>=n;n++)i+=e(Math.cos(g*(n-.5)/r))*Math.cos(g*t*(n-.5)/r);return 2*i/r}function a(t,e){var n,r,i,o,a=[],l=[],u=[[],[]];for(n=0;t+1>n;n++)u[0][n]=0,u[1][n]=0;for(u[0][0]=1,u[1][1]=1,i=1;t+1>i;i++){for(u[i+1]=[0],r=0;r<u[i].length-1;r++)u[i+1][r+1]=2*u[i][r];for(r=0;r<u[i-1].length;r++)u[i+1][r]-=u[i-1][r]}for(i=0;t>=i;i++)l[i]=s(i,e),a[i]=0;for(i=0;t>=i;i++)for(o=0;t>=o;o++)a[o]+=l[i]*u[i][o];return a[0]-=s(0,e)/2,a}function l(t){var e=2*t-1,n=e*(h-d)/2+(d+h)/2;return v*(Math.cos(n)+n*Math.sin(n))}function u(t){var e=2*t-1,n=e*(h-d)/2+(d+h)/2;return v*(Math.sin(n)-n*Math.cos(n))}function c(t,e){var n,r=1;for(n=t-e+1;t>=n;n++)r*=n;for(n=1;e>=n;n++)r/=n;return r}function p(t,e){var n,r,i=a(w,e);for(n=0,r=0;t>=r;r++)n+=c(t,r)*i[r]/c(w,r);return n}var h,d,f,_,g=Math.PI,m=t*e/2,y=n||20,v=m*Math.cos(y*g/180),b=m+t,w=r||3,x=Math.sqrt(b*b-v*v)/v,k=o||1,C=.01,M=[];for(void 0!==i&&k>i&&(C=i),h=Math.sqrt(k)*x,d=Math.sqrt(C)*x,f=0;w>=f;f++)_={},_.x=p(f,l),_.y=p(f,u),M.push(_);return M},e=function(e,n,r){function i(t,e){return Math.sqrt(e*e-t*t)/t-Math.acos(t/e)}function o(t,e){var n=Math.sin(e),r=Math.cos(e);return{x:t.x*r-t.y*n,y:t.x*n+t.y*r}}function s(t,e){return{x:t*Math.cos(e),y:t*Math.sin(e)}}var a,l,u,c,p,h,d,f,_,g,m,y,v,b,w,x,k=e,C=n,M=r||20,A=k,S=1.25*k,T=S-A,D=C*k/2,E=D*Math.cos(M*Math.PI/180),R=D+A,I=D-S,P=1.5*T,N=2*Math.PI/C,z=i(E,D),O=z,j=Math.atan(P/(P+I));for(a=Math.sqrt((I+P)*(I+P)-P*P),a>E&&(a=I+T),a>E&&(O-=i(E,a)),l=1,u=.01,a>E&&(u=(a*a-E*E)/(R*R-E*E)),c=u+(l-u)/4,p=t(k,C,M,3,u,c),h=t(k,C,M,3,c,l),d=p.concat(h.slice(1)),f=[],w=0;w<d.length;w++)b=o(d[w],-z-N/4),d[w]=b,f[w]={x:b.x,y:-b.y};return _=s(a,-N/4-O),g={x:_.x,y:-_.y},y=s(I,N/4+O+j),v=s(I,3*N/4-O-j),m=o(_,N),x=[],x.push(\"M\",_.x,_.y),E>a&&x.push(\"L\",d[0].x,d[0].y),x.push(\"C\",d[1].x,d[1].y,d[2].x,d[2].y,d[3].x,d[3].y,d[4].x,d[4].y,d[5].x,d[5].y,d[6].x,d[6].y),x.push(\"A\",R,R,0,0,0,f[6].x,f[6].y),x.push(\"C\",f[5].x,f[5].y,f[4].x,f[4].y,f[3].x,f[3].y,f[2].x,f[2].y,f[1].x,f[1].y,f[0].x,f[0].y),E>a&&x.push(\"L\",g.x,g.y),v.y>y.y&&(x.push(\"A\",P,P,0,0,1,y.x,y.y),x.push(\"A\",I,I,0,0,0,v.x,v.y)),x.push(\"A\",P,P,0,0,1,m.x,m.y),x},n=function(e,n,r){function i(t,e){return Math.sqrt(e*e-t*t)/t-Math.acos(t/e)}function o(t,e){var n=Math.sin(e),r=Math.cos(e);return{x:t.x*r-t.y*n,y:t.x*n+t.y*r}}function s(t,e){return{x:t*Math.cos(e),y:t*Math.sin(e)}\n",
        "                }var a,l,u,c,p,h,d,f,_,g,m,y,v,b,w,x,k,C,M,A,S,T=e,D=n,E=r||20,R=.6*T,I=1.25*T,P=D*T/2,N=P*Math.cos(E*Math.PI/180),z=P-R,O=P+I,j=.25*T,F=O-j,L=1.5*j;for(a=2*Math.PI/D,l=i(N,P),u=l,z>N&&(u-=i(N,z)),c=i(N,F)-l,p=1.414*j/F,h=1,d=.01,z>N&&(d=(z*z-N*N)/(F*F-N*N)),f=d+(h-d)/4,_=t(T,D,E,3,d,f),g=t(T,D,E,3,f,h),y=_.concat(g.slice(1)),m=[],b=0;b<y.length;b++)v=o(y[b],a/4-l),y[b]=v,m[b]={x:v.x,y:-v.y};return x={x:m[6].x,y:m[6].y},C=s(z,-a/4+u),M={x:C.x,y:-C.y},A=s(O,a/4+c+p),S=s(O,3*a/4-c-p),k=o(x,a),w=[],w.push(\"M\",m[6].x,m[6].y),w.push(\"C\",m[5].x,m[5].y,m[4].x,m[4].y,m[3].x,m[3].y,m[2].x,m[2].y,m[1].x,m[1].y,m[0].x,m[0].y),N>z&&w.push(\"L\",C.x,C.y),w.push(\"A\",z,z,0,0,0,M.x,M.y),N>z&&w.push(\"L\",y[0].x,y[0].y),w.push(\"C\",y[1].x,y[1].y,y[2].x,y[2].y,y[3].x,y[3].y,y[4].x,y[4].y,y[5].x,y[5].y,y[6].x,y[6].y),A.y<S.y&&(w.push(\"A\",L,L,0,0,0,A.x,A.y),w.push(\"A\",O,O,0,0,0,S.x,S.y)),w.push(\"A\",L,L,0,0,0,k.x,k.y),w}}(),{create_gear_tooth:e,create_internal_gear_tooth:n}}),function(){define(\"util/bezier\",[],function(){var t,e;return e=function(t,e,n,r,i,o,s,a){var l,u,c,p,h,d,f,_,g,m,y,v;return l=a*i,u=-s*o,c=s*i,p=a*o,d=.5*(r-n),h=8/3*Math.sin(.5*d)*Math.sin(.5*d)/Math.sin(d),f=t+Math.cos(n)-h*Math.sin(n),m=e+Math.sin(n)+h*Math.cos(n),g=t+Math.cos(r),v=e+Math.sin(r),_=g+h*Math.sin(r),y=v-h*Math.cos(r),[l*f+u*m,c*f+p*m,l*_+u*y,c*_+p*y,l*g+u*v,c*g+p*v]},t=function(t,n,r,i,o,s,a,l,u){var c,p,h,d,f,_,g,m,y,v,b,w,x,k,C,M,A,S,T,D,E,R,I,P,N,z,O,j,F;return S=o*(Math.PI/180),A=Math.sin(S),f=Math.cos(S),w=Math.abs(r),x=Math.abs(i),y=f*(t-l)*.5+A*(n-u)*.5,v=f*(n-u)*.5-A*(t-l)*.5,m=y*y/(w*w)+v*v/(x*x),m>1&&(m=Math.sqrt(m),w*=m,x*=m),c=f/w,p=A/w,h=-A/x,d=f/x,P=c*t+p*n,O=h*t+d*n,N=c*l+p*u,j=h*l+d*u,_=(N-P)*(N-P)+(j-O)*(j-O),M=1/_-.25,0>M&&(M=0),C=Math.sqrt(M),a===s&&(C=-C),z=.5*(P+N)-C*(j-O),F=.5*(O+j)+C*(N-P),T=Math.atan2(O-F,P-z),D=Math.atan2(j-F,N-z),I=D-T,0>I&&1===a?I+=2*Math.PI:I>0&&0===a&&(I-=2*Math.PI),k=Math.ceil(Math.abs(I/(.5*Math.PI+.001))),b=function(){var t,n;for(n=[],g=t=0;k>=0?k>t:t>k;g=k>=0?++t:--t)E=T+g*I/k,R=T+(g+1)*I/k,n.push(e(z,F,E,R,w,x,A,f));return n}()},{arc_to_bezier: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};define(\"renderer/glyph/gear\",[\"underscore\",\"gear_utils\",\"renderer/properties\",\"util/bezier\",\"./glyph\"],function(t,n,r,i,o){var s,a,l,u,c,p;return a=function(r){function o(){return u=o.__super__.constructor.apply(this,arguments)}return e(o,r),o.prototype._fields=[\"x\",\"y\",\"angle\",\"module\",\"teeth\",\"pressure_angle\",\"shaft_size\",\"internal:boolean\"],o.prototype._properties=[\"line\",\"fill\"],o.prototype._map_data=function(){var t;return t=this.renderer.map_to_screen(this.x,this.glyph.x.units,this.y,this.glyph.y.units),this.sx=t[0],this.sy=t[1],this.smodule=this.distance_vector(\"x\",\"module\",\"edge\")},o.prototype._render=function(t,e){var r,i,o,s,a,l,u,c,p,h,d,f,_,g,m,y,v,b,w,x,k,C,M,A,S;for(k=0,M=e.length;M>k;k++)if(s=e[k],A=[this.sx[s],this.sy[s],this.angle[s],this.smodule[s],this.teeth[s],this.pressure_angle[s],this.shaft_size[s],this.internal[s]],y=A[0],v=A[1],i=A[2],u=A[3],b=A[4],p=A[5],m=A[6],a=A[7],!isNaN(y+v+i+u+b+p+m+a)){for(c=u*b/2,o=a?n.create_internal_gear_tooth:n.create_gear_tooth,_=o(u,b,p),S=_.slice(0,3),r=S[0],w=S[1],x=S[2],f=_.slice(3),t.save(),t.translate(y,v),t.rotate(i),t.beginPath(),d=2*Math.PI/b,t.moveTo(w,x),l=C=0;b>=0?b>C:C>b;l=b>=0?++C:--C)this._render_seq(t,f),t.rotate(d);t.closePath(),a?(h=c+2.75*u,t.moveTo(h,0),t.arc(0,0,h,0,2*Math.PI,!0)):m>0&&(g=c*m,t.moveTo(g,0),t.arc(0,0,g,0,2*Math.PI,!0)),this.props.fill.do_fill&&(this.props.fill.set_vectorize(t,s),t.fill()),this.props.line.do_stroke&&(this.props.line.set_vectorize(t,s),t.stroke()),t.restore()}},o.prototype._render_seq=function(e,n){var r,o,s,a,l,u,c,p,h,d,f,_,g,m,y,v,b,w,x,k,C,M,A,S,T,D,E,R,I;for(u=0;u<n.length;)switch(t.isString(n[u])&&(r=n[u],u+=1),r){case\"M\":x=n.slice(u,u+2),m=x[0],v=x[1],e.moveTo(m,v),M=[m,v],p=M[0],h=M[1],u+=2;break;case\"L\":A=n.slice(u,u+2),m=A[0],v=A[1],e.lineTo(m,v),S=[m,v],p=S[0],h=S[1],u+=2;break;case\"C\":T=n.slice(u,u+6),o=T[0],a=T[1],s=T[2],l=T[3],m=T[4],v=T[5],e.bezierCurveTo(o,a,s,l,m,v),D=[m,v],p=D[0],h=D[1],u+=6;break;case\"Q\":E=n.slice(u,u+4),o=E[0],a=E[1],m=E[2],v=E[3],e.quadraticCurveTo(o,a,m,v),R=[m,v],p=R[0],h=R[1],u+=4;break;case\"A\":for(I=n.slice(u,u+7),d=I[0],f=I[1],y=I[2],c=I[3],g=I[4],m=I[5],v=I[6],_=i.arc_to_bezier(p,h,d,f,-y,c,1-g,m,v),b=0,w=_.length;w>b;b++)k=_[b],o=k[0],a=k[1],s=k[2],l=k[3],m=k[4],v=k[5],e.bezierCurveTo(o,a,s,l,m,v);C=[m,v],p=C[0],h=C[1],u+=7;break;default:throw new Error(\"unexpected command: \"+r)}},o.prototype.draw_legend=function(t,e,n,r,i){return this._generic_line_legend(t,e,n,r,i)},o}(o.View),s=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=a,r.prototype.type=\"Gear\",r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{x:void 0,y:void 0,angle:0,module:void 0,teeth:void 0,pressure_angle:20,shaft_size:.3,internal:!1})},r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults,this.fill_defaults)},r}(o.Model),l=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(o.Collection),{Model:s,View:a,Collection:new 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};define(\"renderer/glyph/image\",[\"underscore\",\"renderer/properties\",\"mapper/linear_color_mapper\",\"./glyph\"],function(t,n,r,i){var o,s,a,l,u,c;return s=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype._properties=[],r.prototype.initialize=function(t){return this._fields=null!=this.mget(\"rows\")?[\"image:array\",\"rows\",\"cols\",\"x\",\"y\",\"dw\",\"dh\",\"palette:string\"]:[\"image:array\",\"x\",\"y\",\"dw\",\"dh\",\"palette:string\"],r.__super__.initialize.call(this,t)},r.prototype._set_data=function(){var e,n,r,i,o,s,a,l,u,c,p;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)),p=[],s=u=0,c=this.image.length;c>=0?c>u:u>c;s=c>=0?++u:--u)null!=this.rows?(this.height[s]=this.rows[s],this.width[s]=this.cols[s]):(this.height[s]=this.image[s].length,this.width[s]=this.image[s][0].length),r=document.createElement(\"canvas\"),r.width=this.width[s],r.height=this.height[s],o=r.getContext(\"2d\"),a=o.getImageData(0,0,this.width[s],this.height[s]),i=this.mget(\"color_mapper\"),l=null!=this.rows?this.image[s]:t.flatten(this.image[s]),e=i.v_map_screen(l),n=new Uint8ClampedArray(e),a.data.set(n),o.putImageData(a,0,0),p.push(this.image_data[s]=r);return p},r.prototype._map_data=function(){var t;return t=this.renderer.map_to_screen(this.x,this.glyph.x.units,this.y,this.glyph.y.units),this.sx=t[0],this.sy=t[1],this.sw=this.distance_vector(\"x\",\"dw\",\"edge\",this.mget(\"dilate\")),this.sh=this.distance_vector(\"y\",\"dh\",\"edge\",this.mget(\"dilate\"))},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],null!=this.image_data[n]&&(isNaN(this.sx[n]+this.sy[n]+this.sw[n]+this.sh[n])||(i=this.sy[n],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}(i.View),o=function(n){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type=\"Image\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),{level:\"underlay\",dilate:!1})},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}(i.Collection),{Model:o,View:s,Collection:new 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};define(\"renderer/glyph/image_rgba\",[\"underscore\",\"renderer/properties\",\"./glyph\"],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._properties=[],r.prototype.initialize=function(t){return this._fields=null!=this.mget(\"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,c,p,h,d,f;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)),f=[],a=c=0,h=this.image.length;h>=0?h>c:c>h;a=h>=0?++c:--c){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=p=0,d=s.length;d>=0?d>p:p>d;u=d>=0?++p:--p)i[u]=s[u];n=new Uint8ClampedArray(e),l.data.set(n)}o.putImageData(l,0,0),f.push(this.image_data[a]=r)}return f},r.prototype._map_data=function(){var t;return t=this.renderer.map_to_screen(this.x,this.glyph.x.units,this.y,this.glyph.y.units),this.sx=t[0],this.sy=t[1],this.sw=this.distance_vector(\"x\",\"dw\",\"edge\",this.mget(\"dilate\")),this.sh=this.distance_vector(\"y\",\"dh\",\"edge\",this.mget(\"dilate\"))},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],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=\"ImageRGBA\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),{level:\"underlay\",dilate:!1})},r}(r.Model),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(r.Collection),{Model:i,View: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};define(\"renderer/glyph/image_url\",[\"underscore\",\"renderer/properties\",\"./glyph\"],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._fields=[\"url:string\",\"x\",\"y\",\"w\",\"h\",\"angle\"],n.prototype._properties=[],n.prototype._set_data=function(){var t;return this.image=function(){var e,n,r,i;for(r=this.url,i=[],e=0,n=r.length;n>e;e++)t=r[e],i.push(null);return i}.call(this),this.need_load=function(){var e,n,r,i;for(r=this.url,i=[],e=0,n=r.length;n>e;e++)t=r[e],i.push(!0);return i}.call(this),this.loaded=function(){var e,n,r,i;for(r=this.url,i=[],e=0,n=r.length;n>e;e++)t=r[e],i.push(!1);return i}.call(this)},n.prototype._map_data=function(){var t;return t=this.renderer.map_to_screen(this.x,this.glyph.x.units,this.y,this.glyph.y.units),this.sx=t[0],this.sy=t[1],this.sw=this.distance_vector(\"x\",\"w\",\"edge\",this.mget(\"dilate\")),this.sh=this.distance_vector(\"y\",\"h\",\"edge\",this.mget(\"dilate\"))},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(){var r;return a.loaded[n]=!0,a.image[n]=e,t.save(),t.beginPath(),r=a.renderer.plot_view.frame,t.rect(r.get(\"left\")+1,r.get(\"bottom\")+1,r.get(\"width\")-2,r.get(\"height\")-2),t.clip(),a._render_image(t,n,e),t.restore()}}(r,n),r.src=this.url[n],s.push(this.need_load[n]=!1)):s.push(this.loaded[n]?this._render_image(t,n,this.image[n]):void 0));return s},n.prototype._final_sx_sy=function(){var t,e=this;switch(t=this.mget(\"anchor\")||\"top_left\"){case\"top_left\":return function(t){return[e.sx[t],e.sy[t]]};case\"top_center\":return function(t){return[e.sx[t]-e.sw[t]/2,e.sy[t]]};case\"top_right\":return function(t){return[e.sx[t]-e.sw[t],e.sy[t]]};case\"right_center\":return function(t){return[e.sx[t]-e.sw[t],e.sy[t]-e.sh[t]/2]};case\"bottom_right\":return function(t){return[e.sx[t]-e.sw[t],e.sy[t]-e.sh[t]]};case\"bottom_center\":return function(t){return[e.sx[t]-e.sw[t]/2,e.sy[t]-e.sh[t]]};case\"bottom_left\":return function(t){return[e.sx[t],e.sy[t]-e.sh[t]]};case\"left_center\":return function(t){return[e.sx[t],e.sy[t]-e.sh[t]/2]};case\"center\":return function(t){return[e.sx[t]-e.sw[t]/2,e.sy[t]-e.sh[t]/2]}}},n.prototype._render_image=function(t,e,n){var r,i,o;return isNaN(this.sw[e])&&(this.sw[e]=n.width),isNaN(this.sh[e])&&(this.sh[e]=n.height),o=this._final_sx_sy()(e),r=o[0],i=o[1],this.angle[e]?(t.translate(r,i),t.rotate(this.angle[e]),t.drawImage(n,0,0,this.sw[e],this.sh[e]),t.rotate(-this.angle[e]),t.translate(-r,-i)):t.drawImage(n,r,i,this.sw[e],this.sh[e])},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=\"ImageURL\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),{level:\"underlay\"})},r}(r.Model),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(r.Collection),{Model:i,View: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};define(\"renderer/glyph/line\",[\"underscore\",\"renderer/properties\",\"./glyph\"],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._fields=[\"x\",\"y\"],n.prototype._properties=[\"line\"],n.prototype._map_data=function(){var t;return t=this.renderer.map_to_screen(this.x,this.glyph.x.units,this.y,this.glyph.y.units),this.sx=t[0],this.sy=t[1],t},n.prototype._render=function(t,e){var n,r,i,o;for(n=!1,this.props.line.set(t,this.props),i=0,o=e.length;o>i;i++)r=e[i],isNaN(this.sx[r]+this.sy[r])&&n?(t.stroke(),t.beginPath(),n=!1):n?t.lineTo(this.sx[r],this.sy[r]):(t.beginPath(),t.moveTo(this.sx[r],this.sy[r]),n=!0);return n?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 l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Line\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults)},r}(r.Model),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(r.Collection),{Model:i,View: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};define(\"renderer/glyph/multi_line\",[\"underscore\",\"renderer/properties\",\"./glyph\"],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._fields=[\"xs\",\"ys\"],n.prototype._properties=[\"line\"],n.prototype._render=function(t,e){var n,r,i,o,s,a,l,u,c,p,h,d;for(d=[],l=0,c=e.length;c>l;l++){for(n=e[l],s=this.xs[n],a=this.ys[n],p=this.renderer.map_to_screen(this.xs[n],this.glyph.xs.units,this.ys[n],this.glyph.ys.units),i=p[0],o=p[1],this.props.line.set_vectorize(t,n),r=u=0,h=i.length;h>=0?h>u:u>h;r=h>=0?++u:--u)0!==r?isNaN(i[r])||isNaN(o[r])?(t.stroke(),t.beginPath()):t.lineTo(i[r],o[r]):(t.beginPath(),t.moveTo(i[r],o[r]));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 l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"MultiLine\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults)},r}(r.Model),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(r.Collection),{Model:i,View: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};define(\"renderer/glyph/oval\",[\"underscore\",\"renderer/properties\",\"./glyph\"],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._fields=[\"x\",\"y\",\"width\",\"height\",\"angle\"],n.prototype._properties=[\"line\",\"fill\"],n.prototype._map_data=function(){var t;return t=this.renderer.map_to_screen(this.x,this.glyph.x.units,this.y,this.glyph.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){var s,a,l,u;for(null==n&&(n=this.sx),null==r&&(r=this.sy),null==i&&(i=this.sw),null==o&&(o=this.sh),u=[],a=0,l=e.length;l>a;a++)s=e[a],isNaN(n[s]+r[s]+i[s]+o[s]+this.angle[s])||(t.translate(n[s],r[s]),t.rotate(this.angle[s]),t.beginPath(),t.moveTo(0,-o[s]/2),t.bezierCurveTo(i[s]/2,-o[s]/2,i[s]/2,o[s]/2,0,o[s]/2),t.bezierCurveTo(-i[s]/2,o[s]/2,-i[s]/2,-o[s]/2,0,-o[s]/2),t.closePath(),this.props.fill.do_fill&&(this.props.fill.set_vectorize(t,s),t.fill()),this.props.line.do_stroke&&(this.props.line.set_vectorize(t,s),t.stroke()),t.rotate(-this.angle[s]),u.push(t.translate(-n[s],-r[s])));return u},n.prototype.draw_legend=function(t,e,n,r,i){var o,s,a,l,u,c,p,h,d;return a=null!=(d=this.get_reference_point())?d:0,s=[a],p={},p[a]=(e+n)/2,h={},h[a]=(r+i)/2,l=this.sw[a]/this.sh[a],o=.8*Math.min(Math.abs(n-e),Math.abs(i-r)),c={},u={},l>1?(c[a]=o,u[a]=o/l):(c[a]=o*l,u[a]=o),this._render(t,s,p,h,c,u)},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=\"Oval\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults,this.fill_defaults,{angle:0})},r}(r.Model),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(r.Collection),{Model:i,View: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};define(\"renderer/glyph/patch\",[\"underscore\",\"renderer/properties\",\"./glyph\"],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._fields=[\"x\",\"y\"],n.prototype._properties=[\"line\",\"fill\"],n.prototype._map_data=function(){var t;return t=this.renderer.map_to_screen(this.x,this.glyph.x.units,this.y,this.glyph.y.units),this.sx=t[0],this.sy=t[1],t},n.prototype._render=function(t,e){var n,r,i,o,s;if(this.props.fill.do_fill){for(this.props.fill.set(t,this.props),r=0,o=e.length;o>r;r++)n=e[r],0!==n?isNaN(this.sx[n]+this.sy[n])?(t.closePath(),t.fill(),t.beginPath()):t.lineTo(this.sx[n],this.sy[n]):(t.beginPath(),t.moveTo(this.sx[n],this.sy[n]));t.closePath(),t.fill()}if(this.props.line.do_stroke){for(this.props.line.set(t,this.props),i=0,s=e.length;s>i;i++)n=e[i],0!==n?isNaN(this.sx[n]+this.sy[n])?(t.closePath(),t.stroke(),t.beginPath()):t.lineTo(this.sx[n],this.sy[n]):(t.beginPath(),t.moveTo(this.sx[n],this.sy[n]));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 l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Patch\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults,this.fill_defaults)},r}(r.Model),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(r.Collection),{Model:i,View: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};define(\"renderer/glyph/patches\",[\"underscore\",\"rbush\",\"renderer/properties\",\"./glyph\"],function(t,n,r,i){var o,s,a,l,u,c,p;return l=function(t,e,n,r){var i,o,s,a,l,u,c,p;for(o=!1,s=n[n.length-1],l=r[r.length-1],i=c=0,p=n.length;p>=0?p>c:c>p;i=p>=0?++c:--c)a=n[i],u=r[i],e>l!=e>u&&t>s+(e-l)/(u-l)*(a-s)&&(o=!o),s=a,l=u;return o},s=function(r){function i(){return u=i.__super__.constructor.apply(this,arguments)}return e(i,r),i.prototype._fields=[\"xs\",\"ys\"],i.prototype._properties=[\"line\",\"fill\"],i.prototype._set_data=function(){var e,r,i,o,s,a,l,u;for(this.max_size=t.max(this.size),this.index=n(),r=[],e=l=0,u=this.xs.length;u>=0?u>l:l>u;e=u>=0?++l:--l)o=function(){var n,r,o,s;for(o=this.xs[e],s=[],n=0,r=o.length;r>n;n++)i=o[n],t.isNaN(i)||s.push(i);return s}.call(this),a=function(){var n,r,i,o;for(i=this.ys[e],o=[],n=0,r=i.length;r>n;n++)s=i[n],t.isNaN(s)||o.push(s);return o}.call(this),0!==o.length&&r.push([t.min(o),t.min(a),t.max(o),t.max(a),{i:e}]);return this.index.load(r)},i.prototype._map_data=function(){var t,e,n,r,i,o,s;for(this.sxs=[],this.sys=[],s=[],t=r=0,i=this.xs.length;i>=0?i>r:r>i;t=i>=0?++r:--r)o=this.renderer.map_to_screen(this.xs[t],this.glyph.xs.units,this.ys[t],this.glyph.ys.units),e=o[0],n=o[1],this.sxs.push(e),s.push(this.sys.push(n));return s},i.prototype._mask_data=function(){var t,e,n,r,i,o,s,a,l;return\"screen\"===this.glyph.xs.units||\"screen\"===this.glyph.ys.units?this.all_indices:(r=this.renderer.plot_view.x_range,a=[r.get(\"start\"),r.get(\"end\")],e=a[0],n=a[1],s=this.renderer.plot_view.y_range,l=[s.get(\"start\"),s.get(\"end\")],i=l[0],o=l[1],function(){var r,s,a,l;for(a=this.index.search([e,i,n,o]),l=[],r=0,s=a.length;s>r;r++)t=a[r],l.push(t[4].i);return l}.call(this))},i.prototype._render=function(t,e){var n,r,i,o,s,a,l,u,c,p,h,d;for(d=[],s=0,u=e.length;u>s;s++){if(n=e[s],c=[this.sxs[n],this.sys[n]],i=c[0],o=c[1],this.props.fill.do_fill){for(this.props.fill.set_vectorize(t,n),r=a=0,p=i.length;p>=0?p>a:a>p;r=p>=0?++a:--a)0!==r?isNaN(i[r]+o[r])?(t.closePath(),t.fill(),t.beginPath()):t.lineTo(i[r],o[r]):(t.beginPath(),t.moveTo(i[r],o[r]));t.closePath(),t.fill()}if(this.props.line.do_stroke){for(this.props.line.set_vectorize(t,n),r=l=0,h=i.length;h>=0?h>l:l>h;r=h>=0?++l:--l)0!==r?isNaN(i[r]+o[r])?(t.closePath(),t.stroke(),t.beginPath()):t.lineTo(i[r],o[r]):(t.beginPath(),t.moveTo(i[r],o[r]));t.closePath(),d.push(t.stroke())}else d.push(void 0)}return d},i.prototype._hit_point=function(t){var e,n,r,i,o,s,a,u,c,p,h,d,f;for(d=[t.vx,t.vy],a=d[0],u=d[1],o=this.renderer.plot_view.canvas.vx_to_sx(a),s=this.renderer.plot_view.canvas.vy_to_sy(u),c=this.renderer.xmapper.map_from_target(a),p=this.renderer.ymapper.map_from_target(u),e=function(){var t,e,n,r;for(n=this.index.search([c,p,c,p]),r=[],t=0,e=n.length;e>t;t++)c=n[t],r.push(c[4].i);return r}.call(this),n=[],r=h=0,f=e.length;f>=0?f>h:h>f;r=f>=0?++h:--h)i=e[r],l(o,s,this.sxs[i],this.sys[i])&&n.push(i);return n},i.prototype.draw_legend=function(t,e,n,r,i){return this._generic_area_legend(t,e,n,r,i)},i}(i.View),o=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type=\"Patches\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults,this.fill_defaults)},r}(i.Model),a=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(i.Collection),{Model:o,View:s,Collection:new 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};define(\"renderer/glyph/quad\",[\"underscore\",\"rbush\",\"renderer/properties\",\"./glyph\"],function(t,n,r,i){var o,s,a,l,u,c;return s=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"right\",\"left\",\"bottom\",\"top\"],n.prototype._properties=[\"line\",\"fill\"],n.prototype._map_data=function(){var t,e;return t=this.renderer.map_to_screen(this.left,this.glyph.left.units,this.top,this.glyph.top.units),this.sx0=t[0],this.sy0=t[1],e=this.renderer.map_to_screen(this.right,this.glyph.right.units,this.bottom,this.glyph.bottom.units),this.sx1=e[0],this.sy1=e[1],e},n.prototype._render=function(t,e,n,r,i,o){var s,a,l,u;for(null==n&&(n=this.sx0),null==r&&(r=this.sx1),null==i&&(i=this.sy0),null==o&&(o=this.sy1),u=[],a=0,l=e.length;l>a;a++)s=e[a],isNaN(n[s]+i[s]+r[s]+o[s])||(this.props.fill.do_fill&&(this.props.fill.set_vectorize(t,s),t.fillRect(n[s],i[s],r[s]-n[s],o[s]-i[s])),this.props.line.do_stroke?(t.beginPath(),t.rect(n[s],i[s],r[s]-n[s],o[s]-i[s]),this.props.line.set_vectorize(t,s),u.push(t.stroke())):u.push(void 0));return u},n.prototype._hit_point=function(t){var e,n,r,i,o,s,a,l,u;for(l=[t.vx,t.vy],o=l[0],s=l[1],r=this.renderer.plot_view.canvas.vx_to_sx(o),i=this.renderer.plot_view.canvas.vy_to_sy(s),e=[],n=a=0,u=this.sx0.length;u>=0?u>a:a>u;n=u>=0?++a:--a)r>=this.sx0[n]&&r<=this.sx1[n]&&i>=this.sy0[n]&&i<this.sy1[n]&&e.push(n);return e},n.prototype.draw_legend=function(t,e,n,r,i){return this._generic_area_legend(t,e,n,r,i)},n}(i.View),o=function(n){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type=\"Quad\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults,this.fill_defaults)},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}(i.Collection),{Model:o,View:s,Collection:new 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};define(\"renderer/glyph/quadratic\",[\"underscore\",\"renderer/properties\",\"./glyph\"],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._fields=[\"x0\",\"y0\",\"x1\",\"y1\",\"cx\",\"cy\"],n.prototype._properties=[\"line\"],n.prototype._map_data=function(){var t,e,n;return t=this.renderer.map_to_screen(this.x0,this.glyph.x0.units,this.y0,this.glyph.y0.units),this.sx0=t[0],this.sy0=t[1],e=this.renderer.map_to_screen(this.x1,this.glyph.x1.units,this.y1,this.glyph.y1.units),this.sx1=e[0],this.sy1=e[1],n=this.renderer.map_to_screen(this.cx,this.glyph.cx.units,this.cy,this.glyph.cy.units),this.scx=n[0],this.scy=n[1],n},n.prototype._render=function(t,e){var n,r,i,o;if(this.props.line.do_stroke){for(o=[],r=0,i=e.length;i>r;r++)n=e[r],isNaN(this.sx0[n]+this.sy0[n]+this.sx1[n]+this.sy1[n]+this.scx[n]+this.scy[n])||(t.beginPath(),t.moveTo(this.sx0[n],this.sy0[n]),t.quadraticCurveTo(this.scx[n],this.scy[n],this.sx1[n],this.sy1[n]),this.props.line.set_vectorize(t,n),o.push(t.stroke()));return o}},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 l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Quadratic\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults)},r}(r.Model),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(r.Collection),{Model:i,View: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};define(\"renderer/glyph/ray\",[\"underscore\",\"renderer/properties\",\"./glyph\"],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._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.renderer.map_to_screen(this.x,this.glyph.x.units,this.y,this.glyph.y.units),this.sx=o[0],this.sy=o[1],this.length=this.distance_vector(\"x\",\"length\",\"edge\"),r=this.renderer.plot_view.frame.get(\"width\"),t=this.renderer.plot_view.frame.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)a.push(0===this.length[e]?this.length[e]=n:void 0);return a},n.prototype._render=function(t,e){var n,r,i,o;if(this.props.line.do_stroke){for(o=[],r=0,i=e.length;i>r;r++)n=e[r],isNaN(this.sx[n]+this.sy[n]+this.angle[n]+this.length[n])||(t.translate(this.sx[n],this.sy[n]),t.rotate(this.angle[n]),t.beginPath(),t.moveTo(0,0),t.lineTo(this.length[n],0),this.props.line.set_vectorize(t,n),t.stroke(),t.rotate(-this.angle[n]),o.push(t.translate(-this.sx[n],-this.sy[n])));return o}},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 l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Ray\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults)},r}(r.Model),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(r.Collection),{Model:i,View: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};define(\"renderer/glyph/rect\",[\"underscore\",\"rbush\",\"renderer/properties\",\"./glyph\"],function(t,n,r,i){var o,s,a,l,u,c;return s=function(r){function i(){return l=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.renderer.map_to_screen(this.x,this.glyph.x.units,this.y,this.glyph.y.units),n=o[0],r=o[1],this.sw=this.distance_vector(\"x\",\"width\",\"center\",this.mget(\"dilate\")),this.sh=this.distance_vector(\"y\",\"height\",\"center\",this.mget(\"dilate\")),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];\n",
        "                return this.max_width=t.max(this.width),this.max_height=t.max(this.height)},i.prototype._set_data=function(){var t,e,r,i;for(this.index=n(),e=[],t=r=0,i=this.x.length;i>=0?i>r:r>i;t=i>=0?++r:--r)isNaN(this.x[t]+this.y[t])||e.push([this.x[t],this.y[t],this.x[t],this.y[t],{i:t}]);return this.index.load(e)},i.prototype._render=function(t,e,n,r,i,o){var s,a,l,u,c;if(null==n&&(n=this.sx),null==r&&(r=this.sy),null==i&&(i=this.sw),null==o&&(o=this.sh),this.props.fill.do_fill)for(a=0,u=e.length;u>a;a++)s=e[a],isNaN(n[s]+r[s]+i[s]+o[s]+this.angle[s])||(this.props.fill.set_vectorize(t,s),this.angle[s]?(t.translate(n[s],r[s]),t.rotate(this.angle[s]),t.fillRect(-i[s]/2,-o[s]/2,i[s],o[s]),t.rotate(-this.angle[s]),t.translate(-n[s],-r[s])):t.fillRect(n[s]-i[s]/2,r[s]-o[s]/2,i[s],o[s]));if(this.props.line.do_stroke){for(t.beginPath(),l=0,c=e.length;c>l;l++)s=e[l],isNaN(n[s]+r[s]+i[s]+o[s]+this.angle[s])||0!==i[s]&&0!==o[s]&&(this.angle[s]?(t.translate(n[s],r[s]),t.rotate(this.angle[s]),t.rect(-i[s]/2,-o[s]/2,i[s],o[s]),t.rotate(-this.angle[s]),t.translate(-n[s],-r[s])):t.rect(n[s]-i[s]/2,r[s]-o[s]/2,i[s],o[s]),this.props.line.set_vectorize(t,s),t.stroke(),t.beginPath());return t.stroke()}},i.prototype._hit_rect=function(t){var e,n,r,i,o,s,a;return s=this.renderer.xmapper.v_map_from_target([t.vx0,t.vx1]),n=s[0],r=s[1],a=this.renderer.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._hit_point=function(t){var e,n,r,i,o,s,a,l,u,c,p,h,d,f,_,g,m,y,v,b,w,x,k,C,M,A,S,T,D,E,R,I,P,N;for(I=[t.vx,t.vy],_=I[0],y=I[1],x=this.renderer.xmapper.map_from_target(_),A=this.renderer.ymapper.map_from_target(y),M=\"string\"==typeof x,D=\"string\"==typeof A,M||D?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||M?(l=this.max_width,M&&(l=this.renderer.xmapper.map_to_target(l)),g=_-2*l,m=_+2*l,P=this.renderer.xmapper.v_map_from_target([g,m]),k=P[0],C=P[1]):(k=x-2*this.max_width,C=x+2*this.max_width),\"screen\"===this.height_units||D?(a=this.max_height,D&&(a=this.renderer.ymapper.map_to_target(a)),v=y-2*a,b=y+2*a,N=this.renderer.ymapper.v_map_from_target([v,b]),S=N[0],T=N[1]):(S=A-2*this.max_height,T=A+2*this.max_height),n=function(){var t,e,n,r;for(n=this.index.search([k,S,C,T]),r=[],t=0,e=n.length;e>t;t++)u=n[t],r.push(u[4].i);return r}.call(this)),o=[],E=0,R=n.length;R>E;E++)s=n[E],d=this.renderer.plot_view.canvas.vx_to_sx(\"screen\"===this.width_units||M?_:this.renderer.xmapper.map_to_target(x)),f=this.renderer.plot_view.canvas.vy_to_sy(\"screen\"===this.height_units||D?y:this.renderer.ymapper.map_to_target(A)),this.angle[s]&&(r=Math.sqrt(Math.pow(d-this.sx[s],2)+Math.pow(f-this.sy[s],2)),h=Math.sin(-this.angle[s]),e=Math.cos(-this.angle[s]),c=e*(d-this.sx[s])-h*(f-this.sy[s])+this.sx[s],p=h*(d-this.sx[s])+e*(f-this.sy[s])+this.sy[s],d=c,f=p),w=Math.abs(this.sx[s]-d)<=this.sw[s]/2,i=Math.abs(this.sy[s]-f)<=this.sh[s]/2,i&&w&&o.push(s);return o},i.prototype.draw_legend=function(t,e,n,r,i){return this._generic_area_legend(t,e,n,r,i)},i}(i.View),o=function(n){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type=\"Rect\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults,this.fill_defaults,{angle:0,dilate:!1})},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}(i.Collection),{Model:o,View:s,Collection:new 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};define(\"renderer/glyph/segment\",[\"underscore\",\"renderer/properties\",\"./glyph\"],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._fields=[\"x0\",\"y0\",\"x1\",\"y1\"],n.prototype._properties=[\"line\"],n.prototype._map_data=function(){var t,e;return t=this.renderer.map_to_screen(this.x0,this.glyph.x0.units,this.y0,this.glyph.y0.units),this.sx0=t[0],this.sy0=t[1],e=this.renderer.map_to_screen(this.x1,this.glyph.x1.units,this.y1,this.glyph.y1.units),this.sx1=e[0],this.sy1=e[1],e},n.prototype._render=function(t,e){var n,r,i,o;if(this.props.line.do_stroke){for(o=[],r=0,i=e.length;i>r;r++)n=e[r],isNaN(this.sx0[n]+this.sy0[n]+this.sx1[n]+this.sy1[n])||(t.beginPath(),t.moveTo(this.sx0[n],this.sy0[n]),t.lineTo(this.sx1[n],this.sy1[n]),this.props.line.set_vectorize(t,n),o.push(t.stroke()));return o}},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 l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=o,r.prototype.type=\"Segment\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults)},r}(r.Model),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(r.Collection),{Model:i,View: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};define(\"renderer/glyph/text\",[\"underscore\",\"./glyph\"],function(t,n){var r,i,o,s,a,l;return i=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.renderer.map_to_screen(this.x,this.glyph.x.units,this.y,this.glyph.y.units),this.sx=t[0],this.sy=t[1],t},n.prototype._render=function(t,e){var n,r,i,o;for(o=[],r=0,i=e.length;i>r;r++)n=e[r],isNaN(this.sx[n]+this.sy[n]+this.angle[n])||(t.translate(this.sx[n],this.sy[n]),t.rotate(this.angle[n]),this.props.text.set_vectorize(t,n),t.fillText(this.text[n],0,0),t.rotate(-this.angle[n]),o.push(t.translate(-this.sx[n],-this.sy[n])));return o},n.prototype.draw_legend=function(t,e,n,r,i){var o,s,a;return t.save(),s=this.get_reference_point(),o=null!=s?s:this.props,a=this.props.text,a.set(t,o),t.font=a.font(12),t.textAlign=\"right\",t.textBaseline=\"middle\",t.fillText(\"txt\",n,(r+i)/2),t.restore()},n}(n.View),r=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=i,r.prototype.type=\"Text\",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}(n.Model),o=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,View: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};define(\"renderer/glyph/wedge\",[\"underscore\",\"rbush\",\"common/mathutils\",\"renderer/properties\",\"./glyph\"],function(t,n,r,i,o){var s,a,l,u,c,p;return a=function(i){function o(){return u=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,r,i,o;for(this.max_radius=t.max(this.radius),this.index=n(),r=[],e=i=0,o=this.x.length;o>=0?o>i:i>o;e=o>=0?++i:--i)isNaN(this.x[e]+this.y[e])||r.push([this.x[e],this.y[e],this.x[e],this.y[e],{i:e}]);return this.index.load(r)},o.prototype._map_data=function(){var t;return t=this.renderer.map_to_screen(this.x,this.glyph.x.units,this.y,this.glyph.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){var o,s,a,l;for(null==n&&(n=this.sx),null==r&&(r=this.sy),null==i&&(i=this.radius),l=[],s=0,a=e.length;a>s;s++)o=e[s],isNaN(n[o]+r[o]+i[o]+this.start_angle[o]+this.end_angle[o]+this.direction[o])||(t.beginPath(),t.arc(n[o],r[o],i[o],this.start_angle[o],this.end_angle[o],this.direction[o]),t.lineTo(n[o],r[o]),t.closePath(),this.props.fill.do_fill&&(this.props.fill.set_vectorize(t,o),t.fill()),this.props.line.do_stroke?(this.props.line.set_vectorize(t,o),l.push(t.stroke())):l.push(void 0));return l},o.prototype._hit_point=function(e){var n,i,o,s,a,l,u,c,p,h,d,f,_,g,m,y,v,b,w,x,k,C,M,A,S,T,D,E,R,I,P,N,z,O,j,F;if(z=[e.vx,e.vy],m=z[0],b=z[1],k=this.renderer.xmapper.map_from_target(m),A=this.renderer.ymapper.map_from_target(b),\"screen\"===this.radius_units?(y=m-this.max_radius,v=m+this.max_radius,O=this.renderer.xmapper.v_map_from_target([y,v]),C=O[0],M=O[1],w=b-this.max_radius,x=b+this.max_radius,j=this.renderer.ymapper.v_map_from_target([w,x]),S=j[0],T=j[1]):(C=k-this.max_radius,M=k+this.max_radius,S=A-this.max_radius,T=A+this.max_radius),i=function(){var t,e,n,r;for(n=this.index.search([C,S,M,T]),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(p=this.renderer.plot_view.canvas.vx_to_sx(m),f=this.renderer.plot_view.canvas.vy_to_sy(b),D=0,I=i.length;I>D;D++)l=i[D],c=Math.pow(this.radius[l],2),s=Math.pow(this.sx[l]-p,2)+Math.pow(this.sy[l]-f,2),c>=s&&o.push([l,s]);else for(E=0,P=i.length;P>E;E++)l=i[E],c=Math.pow(this.radius[l],2),h=this.renderer.xmapper.map_to_target(k),d=this.renderer.xmapper.map_to_target(this.x[l]),_=this.renderer.ymapper.map_to_target(A),g=this.renderer.ymapper.map_to_target(this.y[l]),s=Math.pow(h-d,2)+Math.pow(_-g,2),c>=s&&o.push([l,s]);for(a=[],R=0,N=o.length;N>R;R++)F=o[R],l=F[0],s=F[1],p=this.renderer.plot_view.canvas.vx_to_sx(m),f=this.renderer.plot_view.canvas.vy_to_sy(b),n=Math.atan2(f-this.sy[l],p-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,c;return a=null!=(c=this.get_reference_point())?c: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,l,u,s)},o}(o.View),s=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=a,r.prototype.type=\"Wedge\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults,this.fill_defaults,{direction:\"anticlock\"})},r}(o.Model),l=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(o.Collection),{Model:s,View:a,Collection:new 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};define(\"renderer/glyph/marker/marker\",[\"underscore\",\"rbush\",\"../glyph\"],function(t,n,r){var i,o,s,a,l,u,c;return a=function(t,e,n,r){var i,o,s,a,l,u,c,p;for(o=!1,s=n[n.length-1],l=r[r.length-1],i=c=0,p=n.length;p>=0?p>c:c>p;i=p>=0?++c:--c)a=n[i],u=r[i],e>l!=e>u&&t>s+(e-l)/(u-l)*(a-s)&&(o=!o),s=a,l=u;return o},o=function(r){function i(){return l=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,c;return s=null!=(c=this.get_reference_point())?c:0,o=[s],l={},l[s]=(e+n)/2,u={},u[s]=(r+i)/2,a={},a[s]=.4*Math.min(Math.abs(n-e),Math.abs(i-r)),this._render(t,o,this.props,l,u,a)},i.prototype._set_data=function(){var e,r,i,o;for(this.max_size=t.max(this.size),this.index=n(),r=[],e=i=0,o=this.x.length;o>=0?o>i:i>o;e=o>=0?++i:--i)isNaN(this.x[e]+this.y[e])||r.push([this.x[e],this.y[e],this.x[e],this.y[e],{i:e}]);return this.index.load(r)},i.prototype._map_data=function(){var t;return t=this.renderer.map_to_screen(this.x,this.glyph.x.units,this.y,this.glyph.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,c,p,h;return t=this.renderer.plot_view.frame.get(\"h_range\"),n=t.get(\"start\")-this.max_size,r=t.get(\"end\")+this.max_size,p=this.renderer.xmapper.v_map_from_target([n,r]),a=p[0],l=p[1],e=this.renderer.plot_view.frame.get(\"v_range\"),i=e.get(\"start\")-this.max_size,o=e.get(\"end\")+this.max_size,h=this.renderer.ymapper.v_map_from_target([i,o]),u=h[0],c=h[1],function(){var t,e,n,r;for(n=this.index.search([a,u,l,c]),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,c,p,h,d,f,_,g,m,y,v,b,w,x,k,C;for(x=[e.vx,e.vy],u=x[0],h=x[1],a=this.renderer.plot_view.canvas.vx_to_sx(u),l=this.renderer.plot_view.canvas.vy_to_sy(h),c=u-this.max_size,p=u+this.max_size,k=this.renderer.xmapper.v_map_from_target([c,p]),g=k[0],m=k[1],d=h-this.max_size,f=h+this.max_size,C=this.renderer.ymapper.v_map_from_target([d,f]),y=C[0],v=C[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++)_=n[t],r.push(_[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.renderer.xmapper.v_map_from_target([t.vx0,t.vx1]),n=s[0],r=s[1],a=this.renderer.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._hit_poly=function(t){var e,n,r,i,o,s,l,u,c,p,h,d;for(p=[t.vx,t.vy],l=p[0],u=p[1],o=this.renderer.plot_view.canvas.v_vx_to_sx(l),s=this.renderer.plot_view.canvas.v_vy_to_sy(u),e=function(){d=[];for(var t=0,e=this.sx.length;e>=0?e>t:t>e;e>=0?t++:t--)d.push(t);return d}.apply(this),n=[],r=c=0,h=e.length;h>=0?h>c:c>h;r=h>=0?++c:--c)i=e[r],a(this.sx[r],this.sy[r],o,s)&&n.push(i);return n},i}(r.View),i=function(n){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),{size:4})},r}(r.Model),s=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(r.Collection),{Model:i,View:o,Collection: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};define(\"renderer/glyph/marker/asterisk\",[\"underscore\",\"./marker\"],function(t,n){var r,i,o,s,a,l;return i=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){var o,s,a,l,u,c;for(null==n&&(n=this.sx),null==r&&(r=this.sy),null==i&&(i=this.size),c=[],l=0,u=e.length;u>l;l++)o=e[l],isNaN(n[o]+r[o]+i[o])||(s=i[o]/2,a=.65*s,t.beginPath(),t.moveTo(n[o],r[o]+s),t.lineTo(n[o],r[o]-s),t.moveTo(n[o]-s,r[o]),t.lineTo(n[o]+s,r[o]),t.moveTo(n[o]-a,r[o]+a),t.lineTo(n[o]+a,r[o]-a),t.moveTo(n[o]-a,r[o]-a),t.lineTo(n[o]+a,r[o]+a),this.props.line.do_stroke?(this.props.line.set_vectorize(t,o),c.push(t.stroke())):c.push(void 0));return c},n}(n.View),r=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=i,r.prototype.type=\"Asterisk\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults)},r}(n.Model),o=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,View: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};define(\"renderer/glyph/marker/circle_cross\",[\"underscore\",\"./marker\"],function(t,n){var r,i,o,s,a,l;return i=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){var o,s,a,l,u;for(null==n&&(n=this.sx),null==r&&(r=this.sy),null==i&&(i=this.size),u=[],a=0,l=e.length;l>a;a++)o=e[a],isNaN(n[o]+r[o]+i[o])||(t.beginPath(),s=i[o]/2,t.arc(n[o],r[o],s,0,2*Math.PI,!1),this.props.fill.do_fill&&(this.props.fill.set_vectorize(t,o),t.fill()),this.props.line.do_stroke?(this.props.line.set_vectorize(t,o),t.moveTo(n[o],r[o]+s),t.lineTo(n[o],r[o]-s),t.moveTo(n[o]-s,r[o]),t.lineTo(n[o]+s,r[o]),u.push(t.stroke())):u.push(void 0));return u},n}(n.View),r=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=i,r.prototype.type=\"CircleCross\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults,this.fill_defaults)},r}(n.Model),o=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,View: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};define(\"renderer/glyph/marker/circle_x\",[\"underscore\",\"./marker\"],function(t,n){var r,i,o,s,a,l;return i=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){var o,s,a,l,u;for(null==n&&(n=this.sx),null==r&&(r=this.sy),null==i&&(i=this.size),u=[],a=0,l=e.length;l>a;a++)o=e[a],isNaN(n[o]+r[o]+i[o])||(t.beginPath(),s=i[o]/2,t.arc(n[o],r[o],s,0,2*Math.PI,!1),this.props.fill.do_fill&&(this.props.fill.set_vectorize(t,o),t.fill()),this.props.line.do_stroke?(this.props.line.set_vectorize(t,o),t.moveTo(n[o]-s,r[o]+s),t.lineTo(n[o]+s,r[o]-s),t.moveTo(n[o]-s,r[o]-s),t.lineTo(n[o]+s,r[o]+s),u.push(t.stroke())):u.push(void 0));return u},n}(n.View),r=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=i,r.prototype.type=\"CircleX\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults,this.fill_defaults)},r}(n.Model),o=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,View: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};define(\"renderer/glyph/marker/cross\",[\"underscore\",\"./marker\"],function(t,n){var r,i,o,s,a,l;return i=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){var o,s,a,l,u;for(null==n&&(n=this.sx),null==r&&(r=this.sy),null==i&&(i=this.size),u=[],a=0,l=e.length;l>a;a++)o=e[a],isNaN(n[o]+r[o]+i[o])||(s=i[o]/2,t.beginPath(),t.moveTo(n[o],r[o]+s),t.lineTo(n[o],r[o]-s),t.moveTo(n[o]-s,r[o]),t.lineTo(n[o]+s,r[o]),this.props.line.do_stroke?(this.props.line.set_vectorize(t,o),u.push(t.stroke())):u.push(void 0));return u},n}(n.View),r=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=i,r.prototype.type=\"Cross\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults)},r}(n.Model),o=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,View: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};define(\"renderer/glyph/marker/diamond\",[\"underscore\",\"./marker\"],function(t,n){var r,i,o,s,a,l;return i=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){var o,s,a,l,u;for(null==n&&(n=this.sx),null==r&&(r=this.sy),null==i&&(i=this.size),u=[],a=0,l=e.length;l>a;a++)o=e[a],isNaN(n[o]+r[o]+i[o])||(s=i[o]/2,t.beginPath(),t.moveTo(n[o],r[o]+s),t.lineTo(n[o]+s,r[o]),t.lineTo(n[o],r[o]-s),t.lineTo(n[o]-s,r[o]),t.closePath(),this.props.fill.do_fill&&(this.props.fill.set_vectorize(t,o),t.fill()),this.props.line.do_stroke?(this.props.line.set_vectorize(t,o),u.push(t.stroke())):u.push(void 0));return u},n}(n.View),r=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=i,r.prototype.type=\"Diamond\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults,this.fill_defaults)},r}(n.Model),o=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,View: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};define(\"renderer/glyph/marker/diamond_cross\",[\"underscore\",\"./marker\"],function(t,n){var r,i,o,s,a,l;return i=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){var o,s,a,l,u;for(null==n&&(n=this.sx),null==r&&(r=this.sy),null==i&&(i=this.size),u=[],a=0,l=e.length;l>a;a++)o=e[a],isNaN(n[o]+r[o]+i[o])||(s=i[o]/2,t.beginPath(),t.moveTo(n[o],r[o]+s),t.lineTo(n[o]+s,r[o]),t.lineTo(n[o],r[o]-s),t.lineTo(n[o]-s,r[o]),t.closePath(),this.props.fill.do_fill&&(this.props.fill.set_vectorize(t,o),t.fill()),this.props.line.do_stroke?(this.props.line.set_vectorize(t,o),t.moveTo(n[o],r[o]+s),t.lineTo(n[o],r[o]-s),t.moveTo(n[o]-s,r[o]),t.lineTo(n[o]+s,r[o]),u.push(t.stroke())):u.push(void 0));return u},n}(n.View),r=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=i,r.prototype.type=\"DiamondCross\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults,this.fill_defaults)},r}(n.Model),o=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,View: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};define(\"renderer/glyph/marker/inverted_triangle\",[\"underscore\",\"./marker\"],function(t,n){var r,i,o,s,a,l;return i=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){var o,s,a,l,u,c,p;for(null==n&&(n=this.sx),null==r&&(r=this.sy),null==i&&(i=this.size),p=[],u=0,c=e.length;c>u;u++)a=e[u],isNaN(n[a]+r[a]+i[a])||(o=i[a]*Math.sqrt(3)/6,l=i[a]/2,s=i[a]*Math.sqrt(3)/2,t.beginPath(),t.moveTo(n[a]-l,r[a]-o),t.lineTo(n[a]+l,r[a]-o),t.lineTo(n[a],r[a]-o+s),t.closePath(),this.props.fill.do_fill&&(this.props.fill.set_vectorize(t,a),t.fill()),this.props.line.do_stroke?(this.props.line.set_vectorize(t,a),p.push(t.stroke())):p.push(void 0));return p},n}(n.View),r=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=i,r.prototype.type=\"InvertedTriangle\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults,this.fill_defaults)},r}(n.Model),o=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,View: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};define(\"renderer/glyph/marker/square\",[\"underscore\",\"./marker\"],function(t,n){var r,i,o,s,a,l;return i=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){var o,s,a,l;for(null==n&&(n=this.sx),null==r&&(r=this.sy),null==i&&(i=this.size),l=[],s=0,a=e.length;a>s;s++)o=e[s],isNaN(n[o]+r[o]+i[o])||(t.translate(n[o],r[o]),t.beginPath(),t.rect(-i[o]/2,-i[o]/2,i[o],i[o]),this.props.fill.do_fill&&(this.props.fill.set_vectorize(t,o),t.fill()),this.props.line.do_stroke&&(this.props.line.set_vectorize(t,o),t.stroke()),l.push(t.translate(-n[o],-r[o])));return l},n}(n.View),r=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=i,r.prototype.type=\"Square\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults,this.fill_defaults)},r}(n.Model),o=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,View: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};define(\"renderer/glyph/marker/square_cross\",[\"underscore\",\"./marker\"],function(t,n){var r,i,o,s,a,l;return i=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){var o,s,a,l,u;for(null==n&&(n=this.sx),null==r&&(r=this.sy),null==i&&(i=this.size),u=[],a=0,l=e.length;l>a;a++)o=e[a],isNaN(n[o]+r[o]+i[o])||(t.translate(n[o],r[o]),t.beginPath(),t.rect(-i[o]/2,-i[o]/2,i[o],i[o]),this.props.fill.do_fill&&(this.props.fill.set_vectorize(t,o),t.fill()),this.props.line.do_stroke&&(this.props.line.set_vectorize(t,o),s=i[o]/2,t.moveTo(0,+s),t.lineTo(0,-s),t.moveTo(-s,0),t.lineTo(+s,0),t.stroke()),u.push(t.translate(-n[o],-r[o])));return u},n}(n.View),r=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=i,r.prototype.type=\"SquareCross\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults,this.fill_defaults)},r}(n.Model),o=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,View: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};define(\"renderer/glyph/marker/square_x\",[\"underscore\",\"./marker\"],function(t,n){var r,i,o,s,a,l;return i=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){var o,s,a,l,u;for(null==n&&(n=this.sx),null==r&&(r=this.sy),null==i&&(i=this.size),u=[],a=0,l=e.length;l>a;a++)o=e[a],isNaN(n[o]+r[o]+i[o])||(t.translate(n[o],r[o]),t.beginPath(),t.rect(-i[o]/2,-i[o]/2,i[o],i[o]),this.props.fill.do_fill&&(this.props.fill.set_vectorize(t,o),t.fill()),this.props.line.do_stroke&&(this.props.line.set_vectorize(t,o),t.stroke(),s=i[o]/2,t.moveTo(-s,+s),t.lineTo(+s,-s),t.moveTo(-s,-s),t.lineTo(+s,+s),t.stroke()),u.push(t.translate(-n[o],-r[o])));return u},n}(n.View),r=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=i,r.prototype.type=\"SquareX\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults,this.fill_defaults)},r}(n.Model),o=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,View: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};define(\"renderer/glyph/marker/triangle\",[\"underscore\",\"./marker\"],function(t,n){var r,i,o,s,a,l;return i=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){var o,s,a,l,u,c,p;for(null==n&&(n=this.sx),null==r&&(r=this.sy),null==i&&(i=this.size),p=[],u=0,c=e.length;c>u;u++)a=e[u],isNaN(n[a]+r[a]+i[a])||(o=i[a]*Math.sqrt(3)/6,l=i[a]/2,s=i[a]*Math.sqrt(3)/2,t.beginPath(),t.moveTo(n[a]-l,r[a]+o),t.lineTo(n[a]+l,r[a]+o),t.lineTo(n[a],r[a]+o-s),t.closePath(),this.props.fill.do_fill&&(this.props.fill.set_vectorize(t,a),t.fill()),this.props.line.do_stroke?(this.props.line.set_vectorize(t,a),p.push(t.stroke())):p.push(void 0));return p},n}(n.View),r=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=i,r.prototype.type=\"Triangle\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults,this.fill_defaults)},r}(n.Model),o=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,View: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};define(\"renderer/glyph/marker/x\",[\"underscore\",\"./marker\"],function(t,n){var r,i,o,s,a,l;return i=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){var o,s,a,l,u;for(null==n&&(n=this.sx),null==r&&(r=this.sy),null==i&&(i=this.size),u=[],a=0,l=e.length;l>a;a++)o=e[a],isNaN(n[o]+r[o]+i[o])||(s=i[o]/2,t.beginPath(),t.moveTo(n[o]-s,r[o]+s),t.lineTo(n[o]+s,r[o]-s),t.moveTo(n[o]-s,r[o]-s),t.lineTo(n[o]+s,r[o]+s),this.props.line.do_stroke?(this.props.line.set_vectorize(t,o),u.push(t.stroke())):u.push(void 0));return u},n}(n.View),r=function(n){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=i,r.prototype.type=\"X\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),this.line_defaults)},r}(n.Model),o=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,View: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",
        "                };define(\"renderer/guide/axis\",[\"underscore\",\"kiwi\",\"common/has_parent\",\"common/layout_box\",\"common/logging\",\"common/plot_widget\",\"renderer/properties\"],function(t,n,r,i,o,s,a){var l,u,c,p,h,d,f,_,g,m,y,v,b,w,x,k,C,M;return g=o.logger,m=Math.PI/2,l=\"alphabetic\",f=\"middle\",h=\"hanging\",d=\"left\",_=\"right\",p=\"center\",w={above:{parallel:0,normal:-m,horizontal:0,vertical:-m},below:{parallel:0,normal:m,horizontal:0,vertical:m},left:{parallel:-m,normal:0,horizontal:0,vertical:-m},right:{parallel:m,normal:0,horizontal:0,vertical:m}},k={above:{parallel:l,normal:f,horizontal:l,vertical:f},below:{parallel:h,normal:f,horizontal:h,vertical:f},left:{parallel:l,normal:f,horizontal:f,vertical:l},right:{parallel:l,normal:f,horizontal:f,vertical:l}},y={above:{parallel:p,normal:d,horizontal:p,vertical:d},below:{parallel:p,normal:d,horizontal:p,vertical:_},left:{parallel:p,normal:_,horizontal:_,vertical:p},right:{parallel:p,normal:d,horizontal:d,vertical:p}},v={above:_,below:d,left:_,right:d},b={above:d,below:_,left:_,right:d},x=function(e,n,r){var i,o;return t.isString(r)?(o=k[n][r],i=y[n][r]):0===r?(o=k[n][r],i=y[n][r]):0>r?(o=\"middle\",i=v[n]):r>0&&(o=\"middle\",i=b[n]),e.textBaseline=o,e.textAlign=i},c=function(n){function r(){return C=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.rule_props=new a.Line(this,\"axis_\"),this.major_tick_props=new a.Line(this,\"major_tick_\"),this.minor_tick_props=new a.Line(this,\"minor_tick_\"),this.major_label_props=new a.Text(this,\"major_label_\"),this.axis_label_props=new a.Text(this,\"axis_label_\"),this.x_range_name=this.mget(\"x_range_name\"),this.y_range_name=this.mget(\"y_range_name\")},r.prototype.render=function(){var t;return t=this.plot_view.canvas_view.ctx,t.save(),this._draw_rule(t),this._draw_major_ticks(t),this._draw_minor_ticks(t),this._draw_major_labels(t),this._draw_axis_label(t),t.restore()},r.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,\"change\",this.plot_view.request_render)},r.prototype._draw_rule=function(t){var e,n,r,i,o,s,a,l,u,c,p,h,d,f,_,g;if(this.rule_props.do_stroke){for(h=e=this.mget(\"rule_coords\"),a=h[0],u=h[1],d=this.plot_view.map_to_screen(a,\"data\",u,\"data\",this.x_range_name,this.y_range_name),o=d[0],s=d[1],f=this.mget(\"normals\"),r=f[0],i=f[1],_=this.mget(\"offsets\"),l=_[0],c=_[1],this.rule_props.set(t,this),t.beginPath(),t.moveTo(Math.round(o[0]+r*l),Math.round(s[0]+i*c)),n=p=1,g=o.length;g>=1?g>p:p>g;n=g>=1?++p:--p)t.lineTo(Math.round(o[n]+r*l),Math.round(s[n]+i*c));return t.stroke()}},r.prototype._draw_major_ticks=function(t){var e,n,r,i,o,s,a,l,u,c,p,h,d,f,_,g,m,y,v;if(this.major_tick_props.do_stroke){for(e=this.mget(\"tick_coords\"),f=e.major,u=f[0],p=f[1],_=this.plot_view.map_to_screen(u,\"data\",p,\"data\",this.x_range_name,this.y_range_name),o=_[0],s=_[1],g=this.mget(\"normals\"),r=g[0],i=g[1],m=this.mget(\"offsets\"),c=m[0],h=m[1],a=this.mget(\"major_tick_in\"),l=this.mget(\"major_tick_out\"),this.major_tick_props.set(t,this),v=[],n=d=0,y=o.length;y>=0?y>d:d>y;n=y>=0?++d:--d)t.beginPath(),t.moveTo(Math.round(o[n]+r*l+r*c),Math.round(s[n]+i*l+i*h)),t.lineTo(Math.round(o[n]-r*a+r*c),Math.round(s[n]-i*a+i*h)),v.push(t.stroke());return v}},r.prototype._draw_minor_ticks=function(t){var e,n,r,i,o,s,a,l,u,c,p,h,d,f,_,g,m,y,v;if(this.minor_tick_props.do_stroke){for(e=this.mget(\"tick_coords\"),f=e.minor,u=f[0],p=f[1],_=this.plot_view.map_to_screen(u,\"data\",p,\"data\",this.x_range_name,this.y_range_name),o=_[0],s=_[1],g=this.mget(\"normals\"),r=g[0],i=g[1],m=this.mget(\"offsets\"),c=m[0],h=m[1],a=this.mget(\"minor_tick_in\"),l=this.mget(\"minor_tick_out\"),this.minor_tick_props.set(t,this),v=[],n=d=0,y=o.length;y>=0?y>d:d>y;n=y>=0?++d:--d)t.beginPath(),t.moveTo(Math.round(o[n]+r*l+r*c),Math.round(s[n]+i*l+i*h)),t.lineTo(Math.round(o[n]-r*a+r*c),Math.round(s[n]-i*a+i*h)),v.push(t.stroke());return v}},r.prototype._draw_major_labels=function(e){var n,r,i,o,s,a,l,u,c,p,h,d,f,_,g,m,y,v,b,k,C,M,A;for(r=this.mget(\"tick_coords\"),v=r.major,f=v[0],g=v[1],b=this.plot_view.map_to_screen(f,\"data\",g,\"data\",this.x_range_name,this.y_range_name),h=b[0],d=b[1],k=this.mget(\"normals\"),a=k[0],l=k[1],C=this.mget(\"offsets\"),_=C[0],m=C[1],i=this.mget(\"dimension\"),c=this.mget(\"location\"),u=this.mget(\"major_label_orientation\"),n=t.isString(u)?w[c][u]:-u,p=this.model._tick_extent(this)+this.mget(\"major_label_standoff\"),s=this.mget(\"formatter\").format(r.major[i]),this.major_label_props.set(e,this),x(e,c,u),A=[],o=y=0,M=h.length;M>=0?M>y:y>M;o=M>=0?++y:--y)n?(e.translate(h[o]+a*p+a*_,d[o]+l*p+l*m),e.rotate(n),e.fillText(s[o],0,0),e.rotate(-n),A.push(e.translate(-h[o]-a*p+a*_,-d[o]-l*p+l*m))):A.push(e.fillText(s[o],Math.round(h[o]+a*p+a*_),Math.round(d[o]+l*p+l*m)));return A},r.prototype._draw_axis_label=function(t){var e,n,r,i,o,s,a,l,u,c,p,h,d,f,_,g,m;return n=this.mget(\"axis_label\"),null!=n?(f=this.mget(\"rule_coords\"),c=f[0],h=f[1],_=this.plot_view.map_to_screen(c,\"data\",h,\"data\",this.x_range_name,this.y_range_name),l=_[0],u=_[1],g=this.mget(\"normals\"),r=g[0],i=g[1],m=this.mget(\"offsets\"),p=m[0],d=m[1],s=this.mget(\"location\"),o=\"parallel\",e=w[s][o],a=this.model._tick_extent(this)+this.model._tick_label_extent(this)+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),x(t,s,o),e?(t.translate(l+r*a+r*p,u+i*a+i*d),t.rotate(e),t.fillText(n,0,0),t.rotate(-e),t.translate(-l-r*a+r*p,-u-i*a+i*d)):t.fillText(n,l+r*a+r*p,u+i*a+i*d)):void 0},r}(s),u=function(r){function o(){return M=o.__super__.constructor.apply(this,arguments)}return e(o,r),o.prototype.default_view=c,o.prototype.type=\"Axis\",o.prototype.initialize=function(t,e){return o.__super__.initialize.call(this,t,e),this.register_property(\"computed_bounds\",this._computed_bounds,!1),this.add_dependencies(\"computed_bounds\",this,[\"bounds\"]),this.add_dependencies(\"computed_bounds\",this.get(\"plot\"),[\"x_range\",\"y_range\"]),this.register_property(\"rule_coords\",this._rule_coords,!1),this.add_dependencies(\"rule_coords\",this,[\"computed_bounds\",\"side\"]),this.register_property(\"tick_coords\",this._tick_coords,!1),this.add_dependencies(\"tick_coords\",this,[\"computed_bounds\",\"location\"]),this.register_property(\"ranges\",this._ranges,!0),this.register_property(\"normals\",function(){return this._normals},!0),this.register_property(\"dimension\",function(){return this._dim},!0),this.register_property(\"offsets\",this._offsets,!0)},o.prototype.initialize_layout=function(t){var e,n;return e=new i.Model({solver:t}),this.panel=e,this._top=e._top,this._bottom=e._bottom,this._left=e._left,this._right=e._right,this._width=e._width,this._height=e._height,n=this.get(\"location\"),\"above\"===n?(this._dim=0,this._normals=[0,-1],this._size=e._height,this._anchor=e._bottom):\"below\"===n?(this._dim=0,this._normals=[0,1],this._size=e._height,this._anchor=e._top):\"left\"===n?(this._dim=1,this._normals=[-1,0],this._size=e._width,this._anchor=e._right):\"right\"===n?(this._dim=1,this._normals=[1,0],this._size=e._width,this._anchor=e._left):g.error(\"unrecognized side: '\"+n+\"'\")},o.prototype.update_layout=function(t,e){var r;return r=this._tick_extent(t)+this._tick_label_extent(t)+this._axis_label_extent(t),null==this._last_size&&(this._last_size=-1),r!==this._last_size?(this._last_size=r,null!=this._size_constraint&&e.remove_constraint(this._size_constraint),this._size_constraint=new n.Constraint(new n.Expression(this._size,-r),n.Operator.Eq),e.add_constraint(this._size_constraint)):void 0},o.prototype._offsets=function(){var t,e,n,r,i;return e=this.get(\"location\"),i=[0,0],n=i[0],r=i[1],t=this.get(\"plot\").get(\"frame\"),\"below\"===e?r=Math.abs(this.panel.get(\"top\")-t.get(\"bottom\")):\"above\"===e?r=Math.abs(this.panel.get(\"bottom\")-t.get(\"top\")):\"right\"===e?n=Math.abs(this.panel.get(\"left\")-t.get(\"right\")):\"left\"===e&&(n=Math.abs(this.panel.get(\"right\")-t.get(\"left\"))),[n,r]},o.prototype._ranges=function(){var t,e,n,r;return e=this.get(\"dimension\"),n=(e+1)%2,t=this.get(\"plot\").get(\"frame\"),r=[t.get(\"x_ranges\")[this.get(\"x_range_name\")],t.get(\"y_ranges\")[this.get(\"y_range_name\")]],[r[e],r[n]]},o.prototype._computed_bounds=function(){var e,n,r,i,o,s,a,l;return a=this.get(\"ranges\"),r=a[0],e=a[1],s=null!=(l=this.get(\"bounds\"))?l:\"auto\",i=[r.get(\"min\"),r.get(\"max\")],\"auto\"===s?i:t.isArray(s)?(Math.abs(s[0]-s[1])>Math.abs(i[0]-i[1])?(o=Math.max(Math.min(s[0],s[1]),i[0]),n=Math.min(Math.max(s[0],s[1]),i[1])):(o=Math.min(s[0],s[1]),n=Math.max(s[0],s[1])),[o,n]):(g.error(\"user bounds '\"+s+\"' not understood\"),null)},o.prototype._rule_coords=function(){var t,e,n,r,i,o,s,a,l,u,c,p;return r=this.get(\"dimension\"),i=(r+1)%2,c=this.get(\"ranges\"),s=c[0],e=c[1],p=this.get(\"computed_bounds\"),a=p[0],n=p[1],l=new Array(2),u=new Array(2),t=[l,u],o=this._get_loc(e),t[r][0]=Math.max(a,s.get(\"min\")),t[r][1]=Math.min(n,s.get(\"max\")),t[r][0]>t[r][1]&&(t[r][0]=t[r][1]=0/0),t[i][0]=o,t[i][1]=o,t},o.prototype._tick_coords=function(){var t,e,n,r,i,o,s,a,l,u,c,p,h,d,f,_,g,m,y,v,b,w,x,k,C,M,A,S;if(r=this.get(\"dimension\"),o=(r+1)%2,x=this.get(\"ranges\"),h=x[0],e=x[1],k=this.get(\"computed_bounds\"),_=k[0],n=k[1],g=this.get(\"ticker\").get_ticks(_,n,h,{}),a=g.major,p=g.minor,s=this._get_loc(e),m=[],y=[],t=[m,y],u=[],c=[],l=[u,c],\"FactorRange\"===h.type)for(i=v=0,C=a.length;C>=0?C>v:v>C;i=C>=0?++v:--v)t[r].push(a[i]),t[o].push(s);else{for(M=[h.get(\"min\"),h.get(\"max\")],f=M[0],d=M[1],i=b=0,A=a.length;A>=0?A>b:b>A;i=A>=0?++b:--b)a[i]<f||a[i]>d||(t[r].push(a[i]),t[o].push(s));for(i=w=0,S=p.length;S>=0?S>w:w>S;i=S>=0?++w:--w)p[i]<f||p[i]>d||(l[r].push(p[i]),l[o].push(s))}return{major:t,minor:l}},o.prototype._get_loc=function(t){var e,n,r,i;return n=t.get(\"start\"),e=t.get(\"end\"),i=this.get(\"location\"),\"left\"===i||\"below\"===i?r=\"start\":(\"right\"===i||\"above\"===i)&&(r=\"end\"),t.get(r)},o.prototype._tick_extent=function(){return this.get(\"major_tick_out\")},o.prototype._tick_label_extent=function(e){var n,r,i,o,s,a,l,u,c,p,h,d,f,_,g,m,y,v,b;for(a=0,s=this.get(\"dimension\"),o=e.plot_view.canvas_view.ctx,i=this.get(\"tick_coords\").major,_=this.get(\"location\"),d=this.get(\"major_label_orientation\"),h=this.get(\"formatter\").format(i[s]),e.major_label_props.set(o,e),t.isString(d)?(c=1,n=w[_][d]):(c=2,n=-d),n=Math.abs(n),r=Math.cos(n),f=Math.sin(n),\"above\"===_||\"below\"===_?(y=f,u=r):(y=r,u=f),p=v=0,b=h.length;b>=0?b>v:v>b;p=b>=0?++v:--v)null!=h[p]&&(m=1.1*o.measureText(h[p]).width,l=.9*o.measureText(h[p]).ascent,g=m*y+l/c*u,g>a&&(a=g));return a>0&&(a+=this.get(\"major_label_standoff\")),a},o.prototype._axis_label_extent=function(t){var e,n,r,i,o,s,a,l,u;return i=0,l=this.get(\"location\"),s=\"parallel\",r=t.plot_view.canvas_view.ctx,t.axis_label_props.set(r,t),e=Math.abs(w[l][s]),n=Math.cos(e),a=Math.sin(e),this.get(\"axis_label\")&&(i+=this.get(\"axis_label_standoff\"),t.axis_label_props.set(r,t),u=1.1*r.measureText(this.get(\"axis_label\")).width,o=.9*r.measureText(this.get(\"axis_label\")).ascent,i+=\"above\"===l||\"below\"===l?u*a+o*n:u*n+o*a),i},o.prototype.defaults=function(){return t.extend({},o.__super__.defaults.call(this),{x_range_name:\"default\",y_range_name:\"default\"})},o.prototype.display_defaults=function(){return t.extend({},o.__super__.display_defaults.call(this),{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,minor_tick_in:0,minor_tick_out:4,minor_tick_line_color:\"black\",minor_tick_line_width:1,minor_tick_line_alpha:1,minor_tick_line_join:\"miter\",minor_tick_line_cap:\"butt\",minor_tick_line_dash:[],minor_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\"})},o}(r),{Model:u,View:c}})}.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};define(\"ticking/categorical_ticker\",[\"common/collection\",\"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=\"CategoricalTicker\",n.prototype.get_ticks=function(t,e,n,r){var i;return i=r.desired_n_ticks,{major:n.get(\"factors\"),minor:[]}},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),{Model:r,Collection:new 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};define(\"ticking/categorical_tick_formatter\",[\"common/collection\",\"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=\"CategoricalTickFormatter\",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e)},n.prototype.format=function(t){return t},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),{Model:r,Collection:new 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};define(\"renderer/guide/categorical_axis\",[\"common/collection\",\"./axis\",\"common/logging\",\"range/factor_range\",\"ticking/categorical_ticker\",\"ticking/categorical_tick_formatter\"],function(t,n,r,i,o,s){var a,l,u,c,p,h,d;return c=r.logger,u=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(n.View),l=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=u,n.prototype.type=\"CategoricalAxis\",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),null==this.get(\"ticker\")&&this.set_obj(\"ticker\",o.Collection.create()),null==this.get(\"formatter\")?this.set_obj(\"formatter\",s.Collection.create()):void 0},n.prototype._bounds=function(){var t,e,n,r,i;return t=this.get(\"dimension\"),n=[this.get(\"plot\").get(\"x_range\"),this.get(\"plot\").get(\"y_range\")],r=null!=(i=this.get(\"bounds\"))?i:\"auto\",\"auto\"!==r&&c.warn(\"Categorical Axes only support user_bounds='auto', ignoring\"),e=[n[t].get(\"min\"),n[t].get(\"max\")]},n}(n.Model),a=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=l,n}(t),{Model:l,Collection:new a,View:u}})}.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};define(\"ticking/abstract_ticker\",[\"underscore\",\"common/collection\",\"common/has_properties\"],function(t,n,r){var i,o,s,a,l,u;return a=function(t){var e,n,r,i,o;return null===t?\"null\":null==t?\"undefined\":t.constructor===Array?(n=function(){var n,r,i;for(i=[],n=0,r=t.length;r>n;n++)e=t[n],i.push(a(e));return i}().join(\", \"),\"[\"+n+\"]\"):t.constructor===Object?(o=function(){var e;e=[];for(r in t)e.push(\"\"+r+\": \"+a(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=6,i=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"AbstractTicker\",r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e)},r.prototype.get_ticks=function(t,e,n,r){var i;return i=r.desired_n_ticks,null==i&&(i=s),this.get_ticks_no_defaults(t,e,i)},r.prototype.get_ticks_no_defaults=function(e,n,r){var i,o,s,a,l,u,c,p,h,d,f,_,g,m,y,v,b,w,x;if(l=this.get_interval(e,n,r),d=Math.floor(e/l),i=Math.ceil(n/l),s=t.isNaN(d)||t.isNaN(i)?[]:t.range(d,i+1),_=function(){var t,e,n;for(n=[],t=0,e=s.length;e>t;t++)o=s[t],n.push(o*l);return n}(),h=this.get(\"num_minor_ticks\"),p=[],h>1){for(u=l/h,c=function(){var t,e;for(e=[],a=t=1;h>=1?h>=t:t>=h;a=h>=1?++t:--t)e.push(a*u);return e}(),m=0,b=c.length;b>m;m++)g=c[m],p.push(_[0]-g);for(y=0,w=_.length;w>y;y++)for(f=_[y],v=0,x=c.length;x>v;v++)g=c[v],p.push(f+g)}return{major:_,minor:p}},r.prototype.get_interval=void 0,r.prototype.get_min_interval=function(){return this.get(\"min_interval\")},r.prototype.get_max_interval=function(){return this.get(\"max_interval\")},r.prototype.toString=function(){var t,e,n,r;return t=typeof this,r=this.get(\"toString_properties\"),n=function(){var t,n,i;for(i=[],t=0,n=r.length;n>t;t++)e=r[t],i.push(\"\"+e+\"=\"+a(this[e]));return i}.call(this).join(\", \"),\"\"+t+\"(\"+n+\")\"},r.prototype.get_ideal_interval=function(t,e,n){var r;return r=e-t,r/n},r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{toString_properties:[],num_minor_ticks:5})},r}(r),o=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{Model:i,Collection:new o}})}.call(this),function(){define(\"ticking/util\",[\"underscore\"],function(t){var e,n,r,i,o,s,a,l,u,c,p;return r=1,s=1e3,i=60*s,n=60*i,e=24*n,o=30*e,a=365*e,l=function(e){var n;return n=t.min(t.range(e.length),function(t){return e[t]})},u=function(t){return new Date(t.getTime())},c=function(t){return t=u(t),t.setUTCDate(1),t.setUTCHours(0),t.setUTCMinutes(0),t.setUTCSeconds(0),t.setUTCMilliseconds(0),t},p=function(t){return t=c(t),t.setUTCMonth(0),t},{argmin:l,copy_date:u,last_month_no_later_than:c,last_year_no_later_than:p,ONE_MILLI:r,ONE_SECOND:s,ONE_MINUTE:i,ONE_HOUR:n,ONE_DAY:e,ONE_MONTH:o,ONE_YEAR: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};define(\"ticking/adaptive_ticker\",[\"underscore\",\"common/collection\",\"ticking/abstract_ticker\",\"ticking/util\"],function(t,n,r,i){var o,s,a,l,u,c,p;return a=i.argmin,l=function(t,e,n){return Math.max(e,Math.min(n,t))},u=function(t,e){return null==e&&(e=Math.E),Math.log(t)/Math.log(e)},o=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"AdaptiveTicker\",r.prototype.initialize=function(e,n){var i,o;return r.__super__.initialize.call(this,e,n),i=t.last(this.get(\"mantissas\"))/this.get(\"base\"),o=t.first(this.get(\"mantissas\"))*this.get(\"base\"),this.extended_mantissas=t.flatten([i,this.get(\"mantissas\"),o]),this.base_factor=0===this.get(\"min_interval\")?1:this.get(\"min_interval\")},r.prototype.get_interval=function(t,e,n){var r,i,o,s,c,p,h,d,f;return o=e-t,c=this.get_ideal_interval(t,e,n),f=Math.floor(u(c/this.base_factor,this.get(\"base\"))),p=Math.pow(this.get(\"base\"),f)*this.base_factor,h=c/p,i=this.extended_mantissas,s=i.map(function(t){return Math.abs(n-o/(t*p))}),r=i[a(s)],d=r*p,l(d,this.get(\"min_interval\"),this.get(\"max_interval\"))},r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{toString_properties:[\"mantissas\",\"base\",\"min_magnitude\",\"max_magnitude\"],base:10,mantissas:[2,5,10],min_interval:0,max_interval:1/0})},r}(r.Model),s=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n),{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};define(\"ticking/composite_ticker\",[\"underscore\",\"common/collection\",\"ticking/abstract_ticker\",\"ticking/util\"],function(t,n,r,i){var o,s,a,l,u;return a=i.argmin,o=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"CompositeTicker\",r.prototype.initialize=function(e,n){var i;return r.__super__.initialize.call(this,e,n),i=this.get(\"tickers\"),this.register_property(\"min_intervals\",function(){return t.invoke(i,\"get_min_interval\")},!0),this.add_dependencies(\"min_intervals\",this,[\"tickers\"]),this.register_property(\"max_intervals\",function(){return t.invoke(i,\"get_max_interval\")},!0),this.add_dependencies(\"max_intervals\",this,[\"tickers\"]),this.register_property(\"min_interval\",function(){return t.first(this.get(\"min_intervals\"))},!0),this.add_dependencies(\"min_interval\",this,[\"min_intervals\"]),this.register_property(\"max_interval\",function(){return t.first(this.get(\"max_intervals\"))},!0),this.add_dependencies(\"max_interval\",this,[\"max_interval\"])},r.prototype.get_best_ticker=function(e,n,r){var i,o,s,l,u,c,p,h;return l=n-e,c=this.get_ideal_interval(e,n,r),h=[t.sortedIndex(this.get(\"min_intervals\"),c)-1,t.sortedIndex(this.get(\"max_intervals\"),c)],p=[this.get(\"min_intervals\")[h[0]],this.get(\"max_intervals\")[h[1]]],u=p.map(function(t){return Math.abs(r-l/t)}),i=a(u),1/0===i?this.get(\"tickers\")[0]:(s=h[i],o=this.get(\"tickers\")[s])},r.prototype.get_interval=function(t,e,n){var r;return r=this.get_best_ticker(t,e,n),r.get_interval(t,e,n)},r.prototype.get_ticks_no_defaults=function(t,e,n){var r,i;return r=this.get_best_ticker(t,e,n),i=r.get_ticks_no_defaults(t,e,n)},r}(r.Model),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n),{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};define(\"ticking/single_interval_ticker\",[\"underscore\",\"common/collection\",\"ticking/abstract_ticker\"],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=\"SingleIntervalTicker\",r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.register_property(\"min_interval\",function(){return this.get(\"interval\")},!0),this.add_dependencies(\"min_interval\",this,[\"interval\"]),this.register_property(\"max_interval\",function(){return this.get(\"interval\")},!0),this.add_dependencies(\"max_interval\",this,[\"interval\"])},r.prototype.get_interval=function(){return this.get(\"interval\")},r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{toString_properties:[\"interval\"]})},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),{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};define(\"ticking/days_ticker\",[\"underscore\",\"common/collection\",\"ticking/single_interval_ticker\",\"ticking/util\"],function(t,n,r,i){var o,s,a,l,u,c,p,h;return l=i.copy_date,c=i.last_month_no_later_than,a=i.ONE_DAY,u=function(t,e){var n,r,i,o,s;for(s=c(new Date(t)),i=c(new Date(e)),o=l(i),i.setUTCMonth(i.getUTCMonth()+1),r=[],n=s;;)if(r.push(l(n)),n.setUTCMonth(n.getUTCMonth()+1),n>i)break;return r},o=function(n){function r(){return p=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"DaysTicker\",r.prototype.initialize=function(t,e){var n,i;return t.num_minor_ticks=0,r.__super__.initialize.call(this,t,e),n=this.get(\"days\"),i=n.length>1?(n[1]-n[0])*a:31*a,this.set(\"interval\",i)},r.prototype.get_ticks_no_defaults=function(e,n){var r,i,o,s,a,c,p,h;return p=u(e,n),s=this.get(\"days\"),a=function(t,e){var n,r,i,o,a,u;for(n=[],a=0,u=s.length;u>a;a++)r=s[a],i=l(t),i.setUTCDate(r),o=new Date(i.getTime()+e/2),o.getUTCMonth()===t.getUTCMonth()&&n.push(i);return n},c=this.get(\"interval\"),o=t.flatten(function(){var t,e,n;for(n=[],t=0,e=p.length;e>t;t++)i=p[t],n.push(a(i,c));return n}()),r=t.invoke(o,\"getTime\"),h=t.filter(r,function(t){return t>=e&&n>=t}),{major:h,minor:[]}},r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{toString_properties:[\"days\"]})},r}(r.Model),s=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n),{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};define(\"ticking/months_ticker\",[\"underscore\",\"common/collection\",\"ticking/single_interval_ticker\",\"ticking/util\"],function(t,n,r,i){var o,s,a,l,u,c,p,h;return l=i.copy_date,c=i.last_year_no_later_than,a=i.ONE_MONTH,u=function(t,e){var n,r,i,o;for(o=c(new Date(t)),i=c(new Date(e)),i.setUTCFullYear(i.getUTCFullYear()+1),r=[],n=o;;)if(r.push(l(n)),n.setUTCFullYear(n.getUTCFullYear()+1),n>i)break;return r},o=function(n){function r(){return p=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"MonthsTicker\",r.prototype.initialize=function(t,e){var n,i;return r.__super__.initialize.call(this,t,e),i=this.get(\"months\"),n=i.length>1?(i[1]-i[0])*a:12*a,this.set(\"interval\",n)},r.prototype.get_ticks_no_defaults=function(e,n){var r,i,o,s,a,c,p;return p=u(e,n),s=this.get(\"months\"),a=function(t){return s.map(function(e){var n;return n=l(t),n.setUTCMonth(e),n})},o=t.flatten(function(){var t,e,n;for(n=[],t=0,e=p.length;e>t;t++)i=p[t],n.push(a(i));return n}()),r=t.invoke(o,\"getTime\"),c=t.filter(r,function(t){return t>=e&&n>=t}),{major:c,minor:[]}},r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{toString_properties:[\"months\"]})},r}(r.Model),s=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n),{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};define(\"ticking/basic_ticker\",[\"common/collection\",\"ticking/adaptive_ticker\"],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=\"BasicTicker\",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e)},n.prototype.defaults=function(){return _.extend({},n.__super__.defaults.call(this),{mantissas:[1,2,5]})},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),{Model:r,Collection:new 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};define(\"ticking/years_ticker\",[\"underscore\",\"common/collection\",\"ticking/basic_ticker\",\"ticking/single_interval_ticker\",\"ticking/util\"],function(t,n,r,i,o){var s,a,l,u,c,p;return u=o.last_year_no_later_than,s=o.ONE_YEAR,a=function(n){function i(){return c=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.type=\"YearsTicker\",i.prototype.initialize=function(t,e){return i.__super__.initialize.call(this,t,e),this.set(\"interval\",s),this.basic_ticker=new r.Model({num_minor_ticks:0})},i.prototype.get_ticks_no_defaults=function(e,n,r){var i,o,s,a,l,c;return s=u(new Date(e)).getUTCFullYear(),o=u(new Date(n)).getUTCFullYear(),c=this.basic_ticker.get_ticks_no_defaults(s,o,r).major,i=function(){var t,e,n;for(n=[],t=0,e=c.length;e>t;t++)l=c[t],n.push(Date.UTC(l,0,1));return n}(),a=t.filter(i,function(t){return t>=e&&n>=t}),{major:a,minor:[]}},i.prototype.defaults=function(){return t.extend({},i.__super__.defaults.call(this),{toString_properties:[\"years\"]})},i}(i.Model),l=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(n),{Model:a,Collection:new 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};define(\"ticking/datetime_ticker\",[\"underscore\",\"common/collection\",\"ticking/adaptive_ticker\",\"ticking/composite_ticker\",\"ticking/days_ticker\",\"ticking/months_ticker\",\"ticking/years_ticker\",\"ticking/util\"],function(t,n,r,i,o,s,a,l){var u,c,p,h,d,f,_,g,m;return h=l.ONE_MILLI,_=l.ONE_SECOND,d=l.ONE_MINUTE,p=l.ONE_HOUR,f=l.ONE_MONTH,u=function(n){function i(){return g=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.type=\"DatetimeTicker\",i.prototype.defaults=function(){return t.extend({},i.__super__.defaults.call(this),{num_minor_ticks:0,tickers:[new r.Model({mantissas:[1,2,5],base:10,min_interval:0,max_interval:500*h,num_minor_ticks:0}),new r.Model({mantissas:[1,2,5,10,15,20,30],base:60,min_interval:_,max_interval:30*d,num_minor_ticks:0}),new r.Model({mantissas:[1,2,4,6,8,12],base:24,min_interval:p,max_interval:12*p,num_minor_ticks:0}),new o.Model({days:t.range(1,32)}),new o.Model({days:t.range(1,31,3)}),new o.Model({days:[1,8,15,22]}),new o.Model({days:[1,15]}),new s.Model({months:t.range(0,12,1)}),new s.Model({months:t.range(0,12,2)}),new s.Model({months:t.range(0,12,4)}),new s.Model({months:t.range(0,12,6)}),new a.Model({})]})},i}(i.Model),c=function(t){function n(){return m=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=u,n}(n),{Model:u,Collection:new c}})}.call(this),function(t){define(\"sprintf\",[],function(){return function(){return 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,c,p,h=1,d=t.length,f=\"\",_=[];for(s=0;d>s;s++)if(f=e(t[s]),\"string\"===f)_.push(t[s]);else if(\"array\"===f){if(l=t[s],l[2])for(o=i[h],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[h++];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);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,c=l[4]?\"0\"==l[4]?\"0\":l[4].charAt(1):\" \",p=l[6]-String(o).length,u=l[6]?n(c,p):\"\",_.push(l[5]?o+u:u+o)}return _.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]);\n",
        "                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),t.sprintf=sprintf}.apply(t,arguments)})}(this),!function(t){\"object\"==typeof module&&module.exports?module.exports=t():\"function\"==typeof define?define(\"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,c,p=e[e.zone],h=[],d=new Date(r).getUTCFullYear(),f=1;for(i=1,o=p.length;o>i&&!(p[i][n]<=r);i++);if(s=p[i],s.rules){for(u=e[s.rules],c=d+1;c>=d-f;--c)for(i=0,o=u.length;o>i;i++)u[i].from<=c&&c<=u[i].to?h.push(t(s,u[i],c)):u[i].to<c&&1==f&&(f=c-u[i].to);for(h.sort(function(t,e){return t.sort-e.sort}),i=0,o=h.length;o>i;i++)r>=h[i][n]&&h[i][h[i].clock]>s[h[i].clock]&&(a=h[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*p[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),p=[];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=c.exec(a))?p.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=p.length;o>e;e++)l=i(u,l,p[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,c=\"0\";if(o=u[i]){for(t=String(o.call(u,s,l,e,n.length)),\"_\"==(e||o.style)&&(c=\" \"),a=\"-\"==e?0:o.pad||0;t.length<a;)t=c+t;for(a=\"-\"==e?0:r||o.pad;t.length<a;)t=c+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 t.getTime()%1e3*1e6},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\",c=new RegExp(\"^\\\\s*([+-])(\\\\d+)\\\\s+(\"+u+\")s?\\\\s*$\",\"i\"),p=[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(){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};define(\"ticking/datetime_tick_formatter\",[\"underscore\",\"common/collection\",\"sprintf\",\"timezone\",\"common/has_properties\",\"common/logging\"],function(t,n,r,i,o,s){var a,l,u,c,p,h,d,f,_,g,m;return u=s.logger,m=function(t){return r(\"%3dus\",Math.floor(t%1*1e3))},h=function(t){var e,n;return e=Math.floor(t/1e3%1*1e3),n=Math.floor(t%1*1e3),r(\"%3d.%3dms\",e,n)},g=function(t){var e,n;return e=new Date(t),n=e.getFullYear(),e.getMonth()>=7&&(n+=1),r(\"'%02d\",n%100)},p=function(t){var e,n;return e=new Date(t),n=e.getFullYear(),e.getMonth()>=7&&(n+=1),r(\"%d\",n)},c=function(t){return i(t,\"%Y %m %d %H %M %S\").split(/\\s+/).map(function(t){return parseInt(t,10)})},_=function(e,n){return t.isFunction(n)?n(e):i(e,n)},a=function(n){function r(){return d=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"DatetimeTickFormatter\",r.prototype.format_order=[\"microseconds\",\"milliseconds\",\"seconds\",\"minsec\",\"minutes\",\"hourmin\",\"hours\",\"days\",\"months\",\"years\"],r.prototype._formats={microseconds:[m,h],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\",g,p]},r.prototype.strip_leading_zeros=!0,r.prototype.initialize=function(e,n){var o,s,a,l,u,c,p,h;r.__super__.initialize.call(this,e,n),o=t.extend({},this._formats,this.get(\"formats\")),u=i(new Date),this.formats={},h=[];for(s in o)l=o[s],c=function(){var t,e,n;for(n=[],t=0,e=l.length;e>t;t++)a=l[t],n.push(_(u,a).length);return n}(),p=t.sortBy(t.zip(c,l),function(t){var e,n;return n=t[0],e=t[1],n}),h.push(this.formats[s]=t.zip.apply(t,p));return h},r.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\"},r.prototype.format=function(e,n,r,i,o){var s,a,l,p,h,d,f,g,m,y,v,b,w,x,k,C,M,A,S,T,D,E,R,I,P,N,z,O;if(null==n&&(n=null),null==r&&(r=null),null==i&&(i=.3),null==o&&(o=null),0===e.length)return[];if(k=Math.abs(e[e.length-1]-e[0])/1e3,v=o?o.resolution:k/(e.length-1),b=this._get_resolution_str(v,k),N=this.formats[b],T=N[0],p=N[1],l=p[0],r){for(h=[],f=D=0,z=T.length;z>=0?z>D:D>z;f=z>=0?++D:--D)T[f]*e.length<i*r&&h.push(this.formats[f]);h.length>0&&(l=t.last(h))}for(g=[],w=this.format_order.indexOf(b),A={},O=this.format_order,E=0,I=O.length;I>E;E++)a=O[E],A[a]=0;for(A.seconds=5,A.minsec=4,A.minutes=4,A.hourmin=3,A.hours=3,R=0,P=e.length;P>R;R++){M=e[R];try{S=c(M),x=_(M,l)}catch(j){s=j,u.warn(\"unable to format tick for timestamp value \"+M),u.warn(\" - \"+s),g.push(\"ERR\");continue}for(d=!1,y=w;0===S[A[this.format_order[y]]]&&(y+=1,y!==this.format_order.length);){if((\"minsec\"===b||\"hourmin\"===b)&&!d){if(\"minsec\"===b&&0===S[4]&&0!==S[5]||\"hourmin\"===b&&0===S[3]&&0!==S[4]){m=this.formats[this.format_order[w-1]][1][0],x=_(M,m);break}d=!0}m=this.formats[this.format_order[y]][1][0],x=_(M,m)}this.strip_leading_zeros?(C=x.replace(/^0+/g,\"\"),C===x||\"\"!==C&&isFinite(C[0])||(C=\"0\"+C),g.push(C)):g.push(x)}return g},r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{formats:{}})},r}(o),l=function(t){function n(){return f=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(n),{Model:a,Collection:new 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};define(\"renderer/guide/datetime_axis\",[\"common/collection\",\"./axis\",\"ticking/datetime_ticker\",\"ticking/datetime_tick_formatter\"],function(t,n,r,i){var o,s,a,l,u,c;return a=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(n.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=\"DatetimeAxis\",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),null==this.get(\"ticker\")&&this.set_obj(\"ticker\",r.Collection.create()),null==this.get(\"formatter\")?this.set_obj(\"formatter\",i.Collection.create()):void 0},n}(n.Model),o=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(t),{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};define(\"renderer/guide/grid\",[\"underscore\",\"common/has_parent\",\"common/collection\",\"renderer/properties\",\"common/plot_widget\"],function(t,n,r,i,o){var s,a,l,u,c,p;return a=function(t){function n(){return u=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.grid_props=new i.Line(this,\"grid_\"),this.x_range_name=this.mget(\"x_range_name\"),this.y_range_name=this.mget(\"y_range_name\")},n.prototype.render=function(){var t;return t=this.plot_view.canvas_view.ctx,t.save(),this._draw_grids(t),t.restore()},n.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,\"change\",this.request_render)},n.prototype._draw_grids=function(t){var e,n,r,i,o,s,a,l,u,c,p;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(c=this.plot_view.map_to_screen(i[e],\"data\",o[e],\"data\",this.x_range_name,this.y_range_name),n=c[0],r=c[1],t.beginPath(),t.moveTo(Math.round(n[0]),Math.round(r[0])),e=a=1,p=n.length;p>=1?p>a:a>p;e=p>=1?++a:--a)t.lineTo(Math.round(n[e]),Math.round(r[e]));t.stroke()}},n}(o),s=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=a,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(\"grid_coords\",this._grid_coords,!1),this.add_dependencies(\"grid_coords\",this,[\"computed_bounds\",\"dimension\",\"ticker\"]),this.register_property(\"ranges\",this._ranges,!0)},r.prototype._ranges=function(){var t,e,n,r;return e=this.get(\"dimension\"),n=(e+1)%2,t=this.get(\"plot\").get(\"frame\"),r=[t.get(\"x_ranges\")[this.get(\"x_range_name\")],t.get(\"y_ranges\")[this.get(\"y_range_name\")]],[r[e],r[n]]},r.prototype._bounds=function(){var e,n,r,i,o,s,a,l;return a=this.get(\"ranges\"),r=a[0],e=a[1],s=null!=(l=this.get(\"bounds\"))?l:\"auto\",i=[r.get(\"min\"),r.get(\"max\")],t.isArray(s)?(o=Math.min(s[0],s[1]),n=Math.max(s[0],s[1]),o<i[0]?o=i[0]:o>i[1]&&(o=null),n>i[1]?n=i[1]:n<i[0]&&(n=null)):(o=i[0],n=i[1]),[o,n]},r.prototype._grid_coords=function(){var t,e,n,r,i,o,s,a,l,u,c,p,h,d,f,_,g,m,y,v,b,w,x,k;for(l=this.get(\"dimension\"),c=(l+1)%2,w=this.get(\"ranges\"),_=w[0],i=w[1],x=this.get(\"computed_bounds\"),g=x[0],a=x[1],y=Math.min(g,a),a=Math.max(g,a),g=y,m=this.get(\"ticker\").get_ticks(g,a,_,{}).major,d=_.get(\"min\"),h=_.get(\"max\"),n=i.get(\"min\"),e=i.get(\"max\"),r=[[],[]],u=v=0,k=m.length;k>=0?k>v:v>k;u=k>=0?++v:--v)if(m[u]!==d&&m[u]!==h){for(o=[],s=[],t=2,f=b=0;t>=0?t>b:b>t;f=t>=0?++b:--b)p=n+(e-n)/(t-1)*f,o.push(m[u]),s.push(p);r[l].push(o),r[c].push(s)}return r},r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{x_range_name:\"default\",y_range_name:\"default\"})},r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),{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}(n),l=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(r),{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};define(\"ticking/basic_tick_formatter\",[\"underscore\",\"common/collection\",\"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=\"BasicTickFormatter\",r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.register_property(\"scientific_limit_low\",function(){return Math.pow(10,this.get(\"power_limit_low\"))},!0),this.add_dependencies(\"scientific_limit_low\",this,[\"power_limit_low\"]),this.register_property(\"scientific_limit_high\",function(){return Math.pow(10,this.get(\"power_limit_high\"))},!0),this.add_dependencies(\"scientific_limit_high\",this,[\"power_limit_high\"]),this.last_precision=3},r.prototype.format=function(e){var n,r,i,o,s,a,l,u,c,p,h,d,f,_,g,m,y,v,b,w,x;if(0===e.length)return[];if(c=0,e.length>=2&&(c=Math.abs(e[1]-e[0])/1e4),o=!1,this.get(\"use_scientific\"))for(p=0,_=e.length;_>p;p++)if(a=e[p],l=Math.abs(a),l>c&&(l>=this.get(\"scientific_limit_high\")||l<=this.get(\"scientific_limit_low\"))){o=!0;break}if(s=this.get(\"precision\"),null==s||t.isNumber(s)){if(i=new Array(e.length),o)for(n=h=0,y=e.length;y>=0?y>h:h>y;n=y>=0?++h:--h)i[n]=e[n].toExponential(s||void 0);else for(n=d=0,v=e.length;v>=0?v>d:d>v;n=v>=0?++d:--d)i[n]=e[n].toFixed(s||void 0).replace(/(\\.[0-9]*?)0+$/,\"$1\").replace(/\\.$/,\"\");return i}if(\"auto\"===s)for(i=new Array(e.length),u=f=b=this.last_precision;15>=b?15>=f:f>=15;u=15>=b?++f:--f){if(r=!0,o){for(n=g=0,w=e.length;w>=0?w>g:g>w;n=w>=0?++g:--g)if(i[n]=e[n].toExponential(u),n>0&&i[n]===i[n-1]){r=!1;break}if(r)break}else{for(n=m=0,x=e.length;x>=0?x>m:m>x;n=x>=0?++m:--m)if(i[n]=e[n].toFixed(u).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=u,i}return i},r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{precision:\"auto\",use_scientific:!0,power_limit_high:5,power_limit_low:-3})},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),{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};define(\"renderer/guide/linear_axis\",[\"underscore\",\"common/collection\",\"./axis\",\"ticking/basic_ticker\",\"ticking/basic_tick_formatter\"],function(t,n,r,i,o){var s,a,l,u,c,p;return l=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(r.View),a=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=l,n.prototype.type=\"LinearAxis\",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),null==this.get(\"ticker\")&&this.set_obj(\"ticker\",i.Collection.create()),null==this.get(\"formatter\")?this.set_obj(\"formatter\",o.Collection.create()):void 0},n}(r.Model),s=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(n),{Model:a,Collection:new s,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};define(\"ticking/log_ticker\",[\"common/collection\",\"ticking/adaptive_ticker\"],function(t,n){var r,i,o,s,a;return o=function(t,e,n){var r,i;if(\"undefined\"==typeof e&&(e=t,t=0),\"undefined\"==typeof n&&(n=1),n>0&&t>=e||0>n&&e>=t)return[];for(i=[],r=t;n>0?e>r:r>e;)i.push(r),r+=n;return i},r=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"LogTicker\",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e)},n.prototype.get_ticks_no_defaults=function(t,e,n){var r,i,s,a,l,u,c,p,h,d,f,g,m,y,v,b,w,x,k,C,M,A,S,T,D,E,R,I,P,N,z;if(m=this.get(\"num_minor_ticks\"),g=[],0>=t&&(t=1),t>e&&(z=[e,t],t=z[0],e=z[1]),h=Math.log(t)/Math.log(10),c=Math.log(e)/Math.log(10),p=c-h,2>p){if(u=this.get_interval(t,e,n),y=Math.floor(t/u),r=Math.ceil(e/u),a=_.isNaN(y)||_.isNaN(r)?[]:_.range(y,r+1),w=function(){var t,e,n;for(n=[],t=0,e=a.length;e>t;t++)s=a[t],0!==s&&n.push(s*u);return n}(),m>1){for(d=u/m,f=function(){var t,e;for(e=[],l=t=1;m>=1?m>=t:t>=m;l=m>=1?++t:--t)e.push(l*d);return e}(),k=0,S=f.length;S>k;k++)x=f[k],g.push(w[0]-x);for(C=0,T=w.length;T>C;C++)for(b=w[C],M=0,D=f.length;D>M;M++)x=f[M],g.push(b+x)}}else if(v=Math.ceil(h),i=Math.floor(c),u=Math.ceil((i-v)/9),w=o(v,i,u),(i-v)%u===0&&(w=w.concat([i])),w=w.map(function(t){return Math.pow(10,t)}),m>1){for(d=Math.pow(10,u)/m,f=function(){var t,e;for(e=[],l=t=1;m>=1?m>=t:t>=m;l=m>=1?++t:--t)e.push(l*d);return e}(),A=0,E=f.length;E>A;A++)x=f[A],g.push(w[0]/x);for(P=0,R=w.length;R>P;P++)for(b=w[P],N=0,I=f.length;I>N;N++)x=f[N],g.push(b*x)}return{major:w,minor:g}},n.prototype.defaults=function(){return _.extend({},n.__super__.defaults.call(this),{mantissas:[1,5]})},n}(n.Model),i=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(t),{Model:r,Collection:new 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};define(\"ticking/log_tick_formatter\",[\"underscore\",\"common/collection\",\"common/has_properties\",\"ticking/basic_tick_formatter\"],function(t,n,r,i){var o,s,a,l;return o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"LogTickFormatter\",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),this.basic_formatter=new i.Model},n.prototype.format=function(t){var e,n,r,i,o;if(0===t.length)return[];for(r=!1,n=new Array(t.length),e=i=0,o=t.length;o>=0?o>i:i>o;e=o>=0?++i:--i)if(n[e]=\"10^\"+Math.round(Math.log(t[e])/Math.log(10)),e>0&&n[e]===n[e-1]){r=!0;break}return r&&(n=this.basic_formatter.format(t)),n},n}(r),s=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n),{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};define(\"renderer/guide/log_axis\",[\"underscore\",\"common/collection\",\"./axis\",\"ticking/log_ticker\",\"ticking/log_tick_formatter\"],function(t,n,r,i,o){var s,a,l,u,c,p;return l=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(r.View),a=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=l,n.prototype.type=\"LogAxis\",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),null==this.get(\"ticker\")&&this.set_obj(\"ticker\",i.Collection.create()),null==this.get(\"formatter\")?this.set_obj(\"formatter\",o.Collection.create()):void 0},n}(r.Model),s=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(n),{Model:a,Collection:new s,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};define(\"renderer/overlay/box_selection\",[\"underscore\",\"common/has_parent\",\"common/collection\",\"common/plot_widget\"],function(t,n,r,i){var o,s,a,l,u,c;return s=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.$el.appendTo(this.plot_view.$el.find(\"div.bk-canvas-overlays\")),this.$el.addClass(\"shading\"),this.$el.hide()},r.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,\"change:data\",this._draw_box)},r.prototype.render=function(){return this._draw_box(),this},r.prototype._draw_box=function(){var e,n,r,i,o,s,a,l,u;return n=this.mget(\"data\"),t.isEmpty(n)?void this.$el.hide():(l=n.vxlim,u=n.vylim,e=this.plot_view.canvas,s=Math.min(e.vx_to_sx(l[0]),e.vx_to_sx(l[1])),a=Math.min(e.vy_to_sy(u[0]),e.vy_to_sy(u[1])),o=Math.abs(l[1]-l[0]),r=Math.abs(u[1]-u[0]),i=\"left:\"+s+\"px; width:\"+o+\"px; top:\"+a+\"px; height:\"+r+\"px\",this.$el.attr(\"style\",i),this.$el.show())},r}(i),o=function(n){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type=\"BoxSelection\",r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{level:\"overlay\",data:{}})},r}(n),a=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(r),{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};define(\"renderer/overlay/poly_selection\",[\"underscore\",\"common/has_parent\",\"common/collection\",\"common/plot_widget\",\"renderer/properties\"],function(t,n,r,i,o){var s,a,l,u,c,p;return 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),this.props={line:new o.Line(this),fill:new o.Fill(this)}},r.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,\"change:data\",this.plot_view.request_render)},r.prototype.render=function(e){var n,r,i,o,s,a,l;if(r=t.clone(this.mget(\"data\")),t.isEmpty(r)||null==r)return null;for(n=this.plot_view.canvas,e=this.plot_view.canvas_view.ctx,i=a=0,l=r.vx.length;l>=0?l>a:a>l;i=l>=0?++a:--a)o=n.vx_to_sx(r.vx[i]),s=n.vy_to_sy(r.vy[i]),0===i?(e.beginPath(),e.moveTo(o,s)):e.lineTo(o,s);return this.mget(\"auto_close\")&&e.closePath(),this.props.line.do_stroke&&(this.props.line.set(e),e.stroke()),this.props.fill.do_fill&&this.mget(\"auto_close\")?(this.props.fill.set(e),e.fill()):void 0},r}(i),s=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=a,r.prototype.type=\"PolySelection\",r.prototype.display_defaults=function(){return t.extend({},r.__super__.display_defaults.call(this),{fill_color:null,fill_alpha:.2,line_color:\"grey\",line_width:2,line_alpha:.8,line_join:\"miter\",line_cap:\"butt\",line_dash:[4],line_dash_offset:0})},r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{level:\"overlay\",auto_close:!0,data:{}})},r}(n),l=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(r),{Model:s,Collection:new l,View:a}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=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};define(\"source/column_data_source\",[\"underscore\",\"common/collection\",\"common/has_properties\",\"common/selection_manager\"],function(e,r,i,o){var s,a,l,u;return s=function(r){function i(){return this.defaults=t(this.defaults,this),l=i.__super__.constructor.apply(this,arguments)}return n(i,r),i.prototype.type=\"ColumnDataSource\",i.prototype.get_column=function(t){var e;return null!=(e=this.get(\"data\")[t])?e:null},i.prototype.get_length=function(){var t;return t=this.get(\"data\"),0===e.keys(t).length?0:t[e.keys(t)[0]].length},i.prototype.columns=function(){return e.keys(this.get(\"data\"))},i.prototype.datapoints=function(){var t,n,r,i,o,s,a,l,u,c;if(t=this.get(\"data\"),r=e.keys(t),0===r.length)return[];for(s=[],i=a=0,c=t[r[0]].length;c>=0?c>a:a>c;i=c>=0?++a:--a){for(o={},l=0,u=r.length;u>l;l++)n=r[l],o[n]=t[n][i];s.push(o)}return s},i.prototype.defaults=function(){return e.extend({},i.__super__.defaults.call(this),{data:{},selection_manager:new o({source:this})})},i}(i),a=function(t){function e(){return u=e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.model=s,e}(r),{Model:s,Collection:new a}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=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};define(\"source/server_data_source\",[\"underscore\",\"common/collection\",\"common/has_properties\",\"common/logging\",\"range/range1d\",\"range/data_range1d\"],function(e,r,i,o,s){var a,l,u,c,p,h;return c=o.logger,u=function(t){var e,n,r,i;return e=!1,i=null,r=!1,n=function(){return e?r?c.debug(\"already bound, ignoring\"):(c.debug(\"busy, so doing it later\"),r=!0,i.done(function(){return r=!1,n()})):(c.debug(\"executing\"),e=!0,i=t(),i.done(function(){return c.debug(\"done, setting to false\"),e=!1,i=null}))}},a=function(r){function i(){return this.heatmap_update=t(this.heatmap_update,this),this.line1d_update=t(this.line1d_update,this),this.initialize=t(this.initialize,this),p=i.__super__.constructor.apply(this,arguments)}return n(i,r),i.prototype.type=\"ServerDataSource\",i.prototype.initialize=function(t,e){return i.__super__.initialize.call(this,t,e),this.callbacks={}},i.prototype.stoplistening_for_updates=function(t){var e,n,r,i,o;if(this.callbacks[t.get(\"id\")]){for(i=this.callbacks[t.get(\"id\")],o=[],n=0,r=i.length;r>n;n++)e=i[n],o.push(this.stopListening.apply(this,e));return o}},i.prototype.update_url=function(){var t,e,n;return t=this.get(\"owner_username\"),e=this.get_base().Config.prefix,n=\"\"+e+\"bokeh/data/\"+t+\"/\"+this.get(\"doc\")+\"/\"+this.get(\"id\")},i.prototype.listen_for_line1d_updates=function(t,n,r,i,o,s,a,l,u,c){var p,h,d;return h={screen_x:n,screen_y:r},this.stoplistening_for_updates(t),this.line1d_update(t,h,i,o,s,a,l,u,c),d=e.throttle(this.line1d_update,300),p=function(){return d(t,h,i,o,s,a,l,u,c)},this.listenTo(s,\"change\",p),this.listenTo(i,\"change\",p),this.callbacks[t.get(\"id\")]=[[s,\"change\",p],[i,\"change\",p]]},i.prototype.line1d_update=function(t,n,r,i,o,s,a,l,u){var c,p,h,d;return p=(o.get(\"end\")-o.get(\"start\"))/2,p=Math.floor(p),c=[r.get(\"start\"),r.get(\"end\")],d=[i.get(\"start\"),i.get(\"end\")],n.screen_x.get(\"start\")===n.screen_x.get(\"end\")||n.screen_y.get(\"start\")===n.screen_y.get(\"end\")||c[0]>c[1]||d[0]>d[1]?$.ajax():((e.any(e.map(c,function(t){return e.isNaN(t)}))||e.every(e.map(c,function(t){return e.isEqual(0,t)})))&&(c=\"auto\"),(e.any(e.map(d,function(t){return e.isNaN(t)}))||e.every(e.map(d,function(t){return e.isEqual(0,t)})))&&(d=\"auto\"),h=[s,a,l,c,d,p,u],$.ajax({dataType:\"json\",url:this.update_url(),xhrField:{withCredentials:!0},success:function(e){return\"auto\"===c&&r.set({start:e.domain_limit[0],end:e.domain_limit[1]}),\"auto\"===d&&i.set({start:e.range_limit[0],end:e.range_limit[1]}),t.set(\"data\",e.data)},data:{resample_parameters:JSON.stringify(h),plot_state:JSON.stringify(n)}}))},i.prototype.listen_for_ar_updates=function(t,e,n,r,i,o,s){var a,l,c,p,h,d,f=this;for(c={data_x:i,data_y:o,screen_x:n,screen_y:r},this.stoplistening_for_updates(e),a=u(function(){return f.ar_update(t,e,c,s)}),a(),this.callbacks[e.get(\"id\")]=[],d=[i,o,n,r],p=0,h=d.length;h>p;p++)l=d[p],this.listenTo(l,\"change\",a),this.callbacks[e.get(\"id\")].push([l,\"change\",a]);return this.listenTo(this,\"change:index_slice\",a),this.callbacks[e.get(\"id\")].push([this,\"change:index_slice\",a]),this.listenTo(this,\"change:data_slice\",a),this.callbacks[e.get(\"id\")].push([this,\"change:data_slice\",a]),null},i.prototype.ar_update=function(t,n,r,i){var o,a,l,u,p,h,d;if(o=\"not auto\",p=n.get(\"data\").render_state,p||(p={}),r.screen_x.get(\"start\")===r.screen_x.get(\"end\")||r.screen_y.get(\"start\")===r.screen_y.get(\"end\"))return c.debug(\"skipping due to under-defined view state\"),$.ajax();(t.x_range.get(\"start\")===t.x_range.get(\"end\")||e.isNaN(t.x_range.get(\"start\"))||e.isNaN(t.x_range.get(\"end\"))||t.y_range.get(\"start\")===t.y_range.get(\"end\")||e.isNaN(t.y_range.get(\"start\"))||e.isNaN(t.y_range.get(\"end\")))&&(o=\"auto\"),d={};\n",
        "                for(l in r)a=r[l],u=new s.Model,u.set(\"start\",a.get(\"start\")),u.set(\"end\",a.get(\"end\")),d[l]=u;return c.debug(\"Sent render State\",p),h=$.ajax({dataType:\"json\",url:this.update_url(),xhrField:{withCredentials:!0},success:function(i){var s;return\"NO UPDATE\"===i.render_state?void c.info(\"No update\"):(\"auto\"===o&&(r.data_x.set({start:i.x_range.start,end:i.x_range.end}),r.data_y.set({start:i.y_range.start,end:i.y_range.end})),c.debug(\"New render State:\",i.render_state),s=e.clone(n.get(\"data\")),e.extend(s,i),n.set(\"data\",s),t.request_render())},data:{resample_parameters:JSON.stringify([i]),plot_state:JSON.stringify(d),render_state:JSON.stringify(p)}})},i.prototype.listen_for_heatmap_updates=function(t,e,n,r,i,o){var s,a,l,c,p,h,d=this;for(l={data_x:r,data_y:i,screen_x:e,screen_y:n},this.stoplistening_for_updates(t),s=u(function(){return d.heatmap_update(t,l,o)}),s(),this.callbacks[t.get(\"id\")]=[],h=[r,i,e,n],c=0,p=h.length;p>c;c++)a=h[c],this.listenTo(a,\"change\",s),this.callbacks[t.get(\"id\")].push([a,\"change\",s]);return this.listenTo(this,\"change:index_slice\",s),this.callbacks[t.get(\"id\")].push([this,\"change:index_slice\",s]),this.listenTo(this,\"change:data_slice\",s),this.callbacks[t.get(\"id\")].push([this,\"change:data_slice\",s]),null},i.prototype.heatmap_update=function(t,n,r){var i,o,s,a,l,u,p;return a=this.get(\"data\").global_x_range,l=this.get(\"data\").global_y_range,o=this.get(\"data\").global_offset_x[0],s=this.get(\"data\").global_offset_y[0],u=this.get(\"index_slice\"),i=this.get(\"data_slice\"),n.screen_x.get(\"start\")===n.screen_x.get(\"end\")||n.screen_y.get(\"start\")===n.screen_y.get(\"end\")?(c.debug(\"skipping due to under-defined view state\"),$.ajax()):(p=[a,l,o,s,u,i,this.get(\"transpose\"),r],$.ajax({dataType:\"json\",url:this.update_url(),xhrField:{withCredentials:!0},success:function(n){var r;return r=e.clone(t.get(\"data\")),e.extend(r,n),t.set(\"data\",r)},data:{resample_parameters:JSON.stringify(p),plot_state:JSON.stringify(n)}}))},i}(i),l=function(t){function e(){return h=e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.model=a,e}(r),{Model:a,Collection:new l}})}.call(this),define(\"bootstrap/modal\",[\"jquery\"],function(t){+function(t){var e=function(e,n){this.options=n,this.$element=t(e),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.find(\".bk-bs-modal-content\").load(this.options.remote,t.proxy(function(){this.$element.trigger(\"loaded.bk-bs.modal\")},this))};e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this[this.isShown?\"hide\":\"show\"](t)},e.prototype.show=function(e){var n=this,r=t.Event(\"show.bk-bs.modal\",{relatedTarget:e});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on(\"click.dismiss.bk-bs.modal\",'[data-bk-bs-dismiss=\"modal\"]',t.proxy(this.hide,this)),this.backdrop(function(){var r=t.support.transition&&n.$element.hasClass(\"bk-bs-fade\");n.$element.parent().length||n.$element.appendTo(document.body),n.$element.show().scrollTop(0),r&&n.$element[0].offsetWidth,n.$element.addClass(\"bk-bs-in\").attr(\"aria-hidden\",!1),n.enforceFocus();var i=t.Event(\"shown.bk-bs.modal\",{relatedTarget:e});r?n.$element.find(\".bk-bs-modal-dialog\").one(t.support.transition.end,function(){n.$element.focus().trigger(i)}).emulateTransitionEnd(300):n.$element.focus().trigger(i)}))},e.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event(\"hide.bk-bs.modal\"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),t(document).off(\"focusin.bk-bs.modal\"),this.$element.removeClass(\"bk-bs-in\").attr(\"aria-hidden\",!0).off(\"click.dismiss.bk-bs.modal\"),t.support.transition&&this.$element.hasClass(\"bk-bs-fade\")?this.$element.one(t.support.transition.end,t.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},e.prototype.enforceFocus=function(){t(document).off(\"focusin.bk-bs.modal\").on(\"focusin.bk-bs.modal\",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.focus()},this))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on(\"keyup.dismiss.bk-bs.modal\",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off(\"keyup.dismiss.bk-bs.modal\")},e.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.removeBackdrop(),t.$element.trigger(\"hidden.bk-bs.modal\")})},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(e){var n=this.$element.hasClass(\"bk-bs-fade\")?\"bk-bs-fade\":\"\";if(this.isShown&&this.options.backdrop){var r=t.support.transition&&n;if(this.$backdrop=t('<div class=\"bk-bs-modal-backdrop '+n+'\" />').appendTo(document.body),this.$element.on(\"click.dismiss.bk-bs.modal\",t.proxy(function(t){t.target===t.currentTarget&&(\"static\"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass(\"bk-bs-in\"),!e)return;r?this.$backdrop.one(t.support.transition.end,e).emulateTransitionEnd(150):e()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass(\"bk-bs-in\"),t.support.transition&&this.$element.hasClass(\"bk-bs-fade\")?this.$backdrop.one(t.support.transition.end,e).emulateTransitionEnd(150):e()):e&&e()};var n=t.fn.modal;t.fn.modal=function(n,r){return this.each(function(){var i=t(this),o=i.data(\"bk-bs.modal\"),s=t.extend({},e.DEFAULTS,i.data(),\"object\"==typeof n&&n);o||i.data(\"bk-bs.modal\",o=new e(this,s)),\"string\"==typeof n?o[n](r):s.show&&o.show(r)})},t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=n,this},t(document).on(\"click.bk-bs.modal.data-api\",'[data-bk-bs-toggle=\"modal\"]',function(e){var n=t(this),r=n.attr(\"href\"),i=t(n.attr(\"data-bk-bs-target\")||r&&r.replace(/.*(?=#[^\\s]+$)/,\"\")),o=i.data(\"bk-bs.modal\")?\"toggle\":t.extend({remote:!/#/.test(r)&&r},i.data(),n.data());n.is(\"a\")&&e.preventDefault(),i.modal(o,this).one(\"hide\",function(){n.is(\":visible\")&&n.focus()})}),t(document).on(\"show.bk-bs.modal\",\".bk-bs-modal\",function(){t(document.body).addClass(\"bk-bs-modal-open\")}).on(\"hidden.bk-bs.modal\",\".bk-bs-modal\",function(){t(document.body).removeClass(\"bk-bs-modal-open\")})}(t)}),define(\"tool/actions/preview_save_tool_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(){r(e('<div class=\"bk-bs-modal-dialog\">\\n  <div class=\"bk-bs-modal-content\">\\n    <div class=\"bk-bs-modal-header\">\\n      <button type=\"button\" class=\"bk-bs-close\" data-bk-bs-dismiss=\"modal\">&times;</button>\\n      <h4 class=\"bk-bs-modal-title\">Image Preview (right click -> \\'Save As\\' to save PNG)</h4>\\n    </div>\\n    <div class=\"bk-bs-modal-body\">\\n      <img style=\"max-height: 300px; max-width: 400px\">\\n    </div>\\n    <div class=\"bk-bs-modal-footer\">\\n      <button type=\"button\" class=\"bk-bs-btn bk-bs-btn-primary\" data-bk-bs-dismiss=\"modal\">Close</button>\\n    </div>\\n  </div>\\n</div>'))}.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};define(\"tool/actions/preview_save_tool\",[\"underscore\",\"jquery\",\"bootstrap/modal\",\"common/collection\",\"./action_tool\",\"./preview_save_tool_template\"],function(t,n,r,i,o,s){var a,l,u,c,p,h;return l=function(t){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype.className=\"bk-bs-modal\",r.prototype.template=s,r.prototype.initialize=function(t){var e=this;return r.__super__.initialize.call(this,t),this.$el.html(this.template()),this.$el.attr(\"tabindex\",\"-1\"),n(\"body\").append(this.$el),this.$el.on(\"hidden\",function(){return e.$el.modal(\"hide\")}),this.$el.modal({show:!1})},r.prototype[\"do\"]=function(){var t;return t=this.plot_view.canvas_view.canvas[0],this.$(\".bk-bs-modal-body img\").attr(\"src\",t.toDataURL()),this.$el.modal(\"show\")},r}(o.View),a=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=l,n.prototype.type=\"PreviewSaveTool\",n.prototype.tool_name=\"Preview/Save\",n.prototype.icon=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozMjFERDhENjIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozMjFERDhENzIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjMyMUREOEQ0MjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjMyMUREOEQ1MjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+h5hT8AAAAKBJREFUeNpiWbhs5QcGBgZ+hgECTAwDDGAO+AjEjGj4Lw5xUrAAkl3ocr8IhQAzjT3PRu0o+I+EHw65NDDqgJHrABYC8t9JMIuRmiHACS2IKC0LOKH0X1JDAOTzs0BsBs3XlIKz5KSBRCA+RQXLjwNxNDlp4BoQm9Mo7fGPZsNRB4w6YNQBI94BfwfaAV9G08CoA9DbA/xUavkMvRAACDAAaPgYViexODkAAAAASUVORK5CYII=\",n}(o.Model),u=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(i),{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};define(\"tool/actions/reset_tool\",[\"underscore\",\"common/collection\",\"./action_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[\"do\"]=function(){return this.plot_view.update_range()},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=\"ResetTool\",n.prototype.tool_name=\"Reset\",n.prototype.icon=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAgCAYAAABgrToAAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCRTI5MDhFMDIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoyOUMzNDE3NDIwQkIxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkJFMjkwOERFMjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkJFMjkwOERGMjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+kFHGtQAAAm1JREFUeNrMmE9ExFEQx3+7ZYmlLrEsUUTHaEV0iESJVqduXaJr1xKlFB1bdYqoQ9GlFBFdikgpIhLd0rLqUsQqrW2G7+YZr+2993vaHT6H3583M795897M+0U2t3cCR6kh+kA3rtvx7IYoEGfEMSi4GIk4OJgg5ogRot5wzBvBhmaJnI2xqMW7dcQC8UCMWzgX4N1xjF2ALq8OctROiGkiHrhLHDpOoNOLg5xXF0Sn5lmWWCUGiBRRC1K4t4p3pLCuKyVnnXMwAUVJcT+HfFo3SH5ePGPI24TmA1Pl8rJcBGPEvsa5I6KVWDNcmQW824qxqiRhI+bi4IxmWjOYuneH/HvH2Ixmumd8bjNhhad8lxgSzrfp8jUa/L/wlI8KZ3h1T4bdB30Kb9zz4t6YbgurlIMBdoBHUQiGTBx8JYoKPqVe0ftFNInnW8J20SSCjRWM8k8E1S+TNfbZYyQ59yJEg0kjw1QyB42k1iI6ReXLfEWSK8iHJnJVsYqN8jtammuFc/FOr3juU7Ia+39uM7fiuq8aVrEqp+J6BPWzahw8IPLKdTPKUNU4yJ3Fhqb1inu0y7qeRNVYsWkWFkXPl0QZ8iVbohFmW0s2DmY1jSUX8mUPzi1rmoLML2eXsvsgR/FO3JtAix53nNZ96FDlDrasW35eKGniRRPJeywck9VdOjTdayL3Ahv5MC1/xy+Hp1Iq7BGHMHatjOEqMUgMlxmbVsaEOpMk4GSnp0VyCedyLtuMTlhRD1ZaPoRjeejoMf1HE7VUPkW04Jz7Ztm9rGHslM1Hhjl2xlCn+4muQP/77RyHdf799uli5FuAAQC+l5Sj5nEBdwAAAABJRU5ErkJggg==\",n}(r.Model),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{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};define(\"tool/gestures/select_tool\",[\"common/logging\",\"./gesture_tool\"],function(t,n){var r,i,o,s,a;return o=t.logger,i=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._keyup=function(t){var e,n,r,i,o,s,a;if(27===t.keyCode){for(s=this.mget(\"renderers\"),a=[],i=0,o=s.length;o>i;i++)n=s[i],e=n.get(\"data_source\"),r=e.get(\"selection_manager\"),a.push(r.clear());return a}},n.prototype._save_geometry=function(t,e,n){var r,i,s,a,l,u,c,p;if(r=_.clone(t),l=this.plot_view.frame.get(\"x_mappers\")[\"default\"],u=this.plot_view.frame.get(\"y_mappers\")[\"default\"],\"point\"===r.type)r.x=l.map_from_target(r.vx),r.y=u.map_from_target(r.vy);else if(\"rect\"===r.type)r.x0=l.map_from_target(r.vx0),r.y0=u.map_from_target(r.vy0),r.x1=l.map_from_target(r.vx1),r.y1=u.map_from_target(r.vy1);else if(\"poly\"===r.type)for(r.x=new Array(r.vx.length),r.y=new Array(r.vy.length),s=c=0,p=r.vx.length;p>=0?p>c:c>p;s=p>=0?++c:--c)r.x[s]=l.map_from_target(r.vx[s]),r.y[s]=u.map_from_target(r.vy[s]);else o.debug(\"Unrecognized selection geometry type: '\"+r.type+\"'\");return e&&(a=this.plot_model.get(\"tool_events\"),n?(i=a.get(\"geometries\"),i.push(r)):i=[r],a.set(\"geometries\",i),a.save()),null},n}(n.View),r=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t,e){var r,i,s,a,l,u;for(n.__super__.initialize.call(this,t,e),i=this.get(\"names\"),a=this.get(\"renderers\"),0===a.length&&(r=this.get(\"plot\").get(\"renderers\"),a=function(){var t,e,n;for(n=[],t=0,e=r.length;e>t;t++)s=r[t],\"GlyphRenderer\"===s.type&&n.push(s);return n}()),i.length>0&&(a=function(){var t,e,n;for(n=[],t=0,e=a.length;e>t;t++)s=a[t],i.indexOf(s.get(\"name\"))>=0&&n.push(s);return n}()),this.set(\"renderers\",a),o.debug(\"setting \"+a.length+\" renderers for \"+this.type+\" \"+this.id),l=0,u=a.length;u>l;l++)s=a[l],o.debug(\"- \"+s.type+\" \"+s.id);return null},n.prototype.defaults=function(){return _.extend({},n.__super__.defaults.call(this),{renderers:[],names:[],multi_select_modifier:\"shift\"})},n}(n.Model),{Model:r,View: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};define(\"tool/gestures/box_select_tool\",[\"underscore\",\"common/collection\",\"renderer/overlay/box_selection\",\"tool/gestures/select_tool\"],function(t,n,r,i){var o,s,a,l,u,c;return s=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._pan_start=function(t){var e;return e=this.plot_view.canvas,this._baseboint=[e.sx_to_vx(t.bokeh.sx),e.sy_to_vy(t.bokeh.sy)],null},n.prototype._pan=function(t){var e,n,r,i,o,s,a,l,u;return n=this.plot_view.canvas,r=[n.sx_to_vx(t.bokeh.sx),n.sy_to_vy(t.bokeh.sy)],o=this.plot_model.get(\"frame\"),i=this.mget(\"dimensions\"),l=this.model._get_dim_limits(this._baseboint,r,o,i),s=l[0],a=l[1],this.mget(\"overlay\").set(\"data\",{vxlim:s,vylim:a}),this.mget(\"select_every_mousemove\")&&(e=null!=(u=t.srcEvent.shiftKey)?u:!1,this._select(s,a,!1,e)),null},n.prototype._pan_end=function(t){var e,n,r,i,o,s,a,l,u;return n=this.plot_view.canvas,r=[n.sx_to_vx(t.bokeh.sx),n.sy_to_vy(t.bokeh.sy)],o=this.plot_model.get(\"frame\"),i=this.mget(\"dimensions\"),l=this.model._get_dim_limits(this._baseboint,r,o,i),s=l[0],a=l[1],e=null!=(u=t.srcEvent.shiftKey)?u:!1,this._select(s,a,!0,e),this.mget(\"overlay\").set(\"data\",{}),this._baseboint=null,null},n.prototype._select=function(t,e,n,r){var i,o,s,a,l,u,c,p,h,d,f;for(l=t[0],u=t[1],c=e[0],p=e[1],null==r&&(r=!1),o={type:\"rect\",vx0:l,vx1:u,vy0:c,vy1:p},f=this.mget(\"renderers\"),h=0,d=f.length;d>h;h++)s=f[h],i=s.get(\"data_source\"),a=i.get(\"selection_manager\"),a.select(this,this.plot_view.renderers[s.id],o,n,r);return this._save_geometry(o,n,r),null},n}(i.View),o=function(n){function i(){return u=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=s,i.prototype.type=\"BoxSelectTool\",i.prototype.tool_name=\"Box Select\",i.prototype.icon=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBODVDNDBCRjIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBODVDNDBDMDIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkE4NUM0MEJEMjBCMzExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkE4NUM0MEJFMjBCMzExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+hdQ7dQAAAJdJREFUeNpiXLhs5X8GBPgIxAJQNjZxfiD+wIAKGCkUZ0SWZGIYZIAF3YVoPkEHH6kojhUMyhD6jydEaAlgaWnwh9BAgf9DKpfxDxYHjeay0Vw2bHMZw2guG81lwyXKRnMZWlt98JdDTFAX/x9NQwPkIH6kGMAVEyjyo7lstC4jouc69Moh9L42rlyBTZyYXDS00xBAgAEAqsguPe03+cYAAAAASUVORK5CYII=\",i.prototype.event_type=\"pan\",i.prototype.default_order=30,i.prototype.initialize=function(t,e){var n;return i.__super__.initialize.call(this,t,e),this.register_property(\"tooltip\",function(){return this._get_dim_tooltip(this.get(\"tool_name\"),this._check_dims(this.get(\"dimensions\"),\"box select tool\"))},!1),this.add_dependencies(\"tooltip\",this,[\"dimensions\"]),this.set(\"overlay\",new r.Model),n=this.get(\"plot\").get(\"renderers\"),n.push(this.get(\"overlay\")),this.get(\"plot\").set(\"renderers\",n)},i.prototype.defaults=function(){return t.extend({},i.__super__.defaults.call(this),{dimensions:[\"width\",\"height\"],select_every_mousemove:!1})},i}(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),{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};define(\"tool/gestures/box_zoom_tool\",[\"underscore\",\"common/collection\",\"renderer/overlay/box_selection\",\"tool/gestures/gesture_tool\"],function(t,n,r,i){var o,s,a,l,u,c;return s=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._pan_start=function(t){var e;return e=this.plot_view.canvas,this._baseboint=[e.sx_to_vx(t.bokeh.sx),e.sy_to_vy(t.bokeh.sy)],null},n.prototype._pan=function(t){var e,n,r,i,o,s,a;return e=this.plot_view.canvas,n=[e.sx_to_vx(t.bokeh.sx),e.sy_to_vy(t.bokeh.sy)],i=this.plot_model.get(\"frame\"),r=this.mget(\"dimensions\"),a=this.model._get_dim_limits(this._baseboint,n,i,r),o=a[0],s=a[1],this.mget(\"overlay\").set(\"data\",{vxlim:o,vylim:s}),null},n.prototype._pan_end=function(t){var e,n,r,i,o,s,a;return e=this.plot_view.canvas,n=[e.sx_to_vx(t.bokeh.sx),e.sy_to_vy(t.bokeh.sy)],i=this.plot_model.get(\"frame\"),r=this.mget(\"dimensions\"),a=this.model._get_dim_limits(this._baseboint,n,i,r),o=a[0],s=a[1],this._update(o,s),this.mget(\"overlay\").set(\"data\",{}),this._baseboint=null,null},n.prototype._update=function(t,e){var n,r,i,o,s,a,l,u,c,p,h;s={},u=this.plot_view.frame.get(\"x_mappers\");for(i in u)r=u[i],c=r.v_map_from_target(t),o=c[0],n=c[1],s[i]={start:o,end:n};a={},p=this.plot_view.frame.get(\"y_mappers\");for(i in p)r=p[i],h=r.v_map_from_target(e),o=h[0],n=h[1],a[i]={start:o,end:n};return l={xrs:s,yrs:a},this.plot_view.update_range(l)},n}(i.View),o=function(n){function i(){return u=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=s,i.prototype.type=\"BoxZoomTool\",i.prototype.tool_name=\"Box Zoom\",i.prototype.icon=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozMjFERDhEMjIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozMjFERDhEMzIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjMyMUREOEQwMjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjMyMUREOEQxMjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+a2Q0KAAAAmVJREFUeNq8V19EpFEUvzOtmKfpJSJKDL2WiLJExKaUEq0eeikiaolZLT2lVUpPydqHqIlIo1ilFOmphxj1miKWWHppnobIt7+zeyZ3jjvz/bnf9OPHd8/9d77z3XN+94ts7ew6SqksWKX+w1GFiLjYdVSAfeAQ2Ag2sf0GvAXT4C/wle1x3lt9UOGBNk6BrYa+FuYIeAWOsmNviGqe6W+q081OmAGvizgh0cpjZ3RjGBFZBpMG+xn4wM8NYJfWFwNXwXrwS96RiIUTwwYn6AxMgb+FvQ5c4zOUxzR4Ce5GLZyo5LfSsQP2G5xQbKO+bWFfoLWinA1OAEcoM2rFRpMe5sloJWgtm4j0iPZcPhVdkOWxBWvZONIi2uc+5sqxbTaO1Ij2o4+5T6JdGy1SF4Kg2mLsi01E/oh2l4+5HTKaNlmTEe0ka40XyNqTsYnIkWiTwC16rMRNci0bR0hJ7w1veizqy9uB5D4ZDZKBtI3WvLCCJoT9E3jHny4j1DdmWOcbrWWjNYuGoqaL2kdmKayTztio7yzTJprz4A/9PuI3a8YMh5IKVC9fetxAY5rB79pNzXdESMJ/GrSjm8/DCTjAgpjQZCDDh5I+w4HuQBBHOsE9USty4KB2KF85m9J+v5XX9KXr3T7fQZS26WefYlcU+ayJlxhDIT40jBnn21hQOPrfgFtEqAhdGETqK7gZ4h/Av4g4Jf5TUoYquQSuqJDhFpEJca3b4EoYOtyyhrSkHTzlcj4R4t4FZ9NL+j6yMzlT/ocZES9aky3D3r6y5t2gaw3xWXgs7XFhdyzsgSpr2fFXgAEAmp2J9DuX/WgAAAAASUVORK5CYII=\",i.prototype.event_type=\"pan\",i.prototype.default_order=20,i.prototype.initialize=function(t,e){var n;return i.__super__.initialize.call(this,t,e),this.register_property(\"tooltip\",function(){return this._get_dim_tooltip(this.get(\"tool_name\"),this._check_dims(this.get(\"dimensions\"),\"box zoom tool\"))},!1),this.add_dependencies(\"tooltip\",this,[\"dimensions\"]),this.set(\"overlay\",new r.Model),n=this.get(\"plot\").get(\"renderers\"),n.push(this.get(\"overlay\")),this.get(\"plot\").set(\"renderers\",n)},i.prototype.defaults=function(){return t.extend({},i.__super__.defaults.call(this),{dimensions:[\"width\",\"height\"]})},i}(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),{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};define(\"tool/gestures/lasso_select_tool\",[\"underscore\",\"common/collection\",\"renderer/overlay/poly_selection\",\"tool/gestures/select_tool\"],function(t,n,r,i){var o,s,a,l,u,c;return s=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.listenTo(this.model,\"change:active\",this._active_change),this.data=null},r.prototype._active_change=function(){return this.mget(\"active\")?void 0:this._clear_overlay()},r.prototype._keyup=function(t){return 13===t.keyCode?this._clear_overlay():void 0},r.prototype._pan_start=function(t){var e,n,r;return e=this.plot_view.canvas,n=e.sx_to_vx(t.bokeh.sx),r=e.sy_to_vy(t.bokeh.sy),this.data={vx:[n],vy:[r]},null},r.prototype._pan=function(e){var n,r,i,o,s,a,l;return r=this.plot_view.canvas,s=r.sx_to_vx(e.bokeh.sx),a=r.sy_to_vy(e.bokeh.sy),this.data.vx.push(s),this.data.vy.push(a),o=this.mget(\"overlay\"),i={},i.vx=t.clone(this.data.vx),i.vy=t.clone(this.data.vy),o.set(\"data\",i),n=null!=(l=e.srcEvent.shiftKey)?l:!1,this._select(this.data.vx,this.data.vy,n)},r.prototype._pan_end=function(){return this._clear_overlay()},r.prototype._clear_overlay=function(){return this.mget(\"overlay\").set(\"data\",null)},r.prototype._select=function(t,e,n){var r,i,o,s,a,l,u;for(i={type:\"poly\",vx:t,vy:e},u=this.mget(\"renderers\"),a=0,l=u.length;l>a;a++)o=u[a],r=o.get(\"data_source\"),s=r.get(\"selection_manager\"),s.select(this,this.plot_view.renderers[o.id],i,!0,n);return this._save_geometry(i,!0,n),null},r}(i.View),o=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=s,n.prototype.type=\"LassoSelectTool\",n.prototype.tool_name=\"Lasso Select\",n.prototype.icon=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAQCAYAAAAbBi9cAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAGlSURBVDiNldNNiM1hFMfxz/3PHQqxoCgWYmNDk0jyUqwsuP/719xnPVkQStl4mYWpsVXKQkYpL1m4qWmyYElZkDLKyiSbkdKYNBovo8m1uM+d/nPd/2TO6nn5nW+/c57zlCwQ9eGRBPuwF7uxAUswjme4V6tWxqFUAFiLXlSxDaswiz9RkqAL79Ffq1YeldoAXTiNs9iIn3iN0Zj0OULWYycORU1fKQdZh5s4ggncxX28DVk6W+D8MG5hrJQr5Ql68AADIUvfFTZvPuw5VpZjOVcjZCBk6eD/ACJkF7ZgMMEJVHB7kZDNeIhXGEpwEg3cWASkFy9i3vFatTJTxvJ4sAcvo3ANpkOW/sold+MgTsUKRlGbm6P68Mh59GvOSR2/cVTzqYfifisOYDtm4vmlkKVTjUZDC5TgIi5gBX7gG7qxVHNuluEjHuN6yNI3LadzoJz1HejDMXzP3X2Njp+GLJ1o79c/oBzwGgK+YHV0cyVk6eV27YKgCNuEKZzBubjeH7J0rAiUdAKFLP0QsnQSdzCp+Wl7Omlb0RGUi0+YRlmz+YXxF2YZkqkolYwKAAAAAElFTkSuQmCC\",n.prototype.event_type=\"pan\",n.prototype.default_order=12,n.prototype.initialize=function(t,e){var i;return n.__super__.initialize.call(this,t,e),this.set(\"overlay\",new r.Model),i=this.get(\"plot\").get(\"renderers\"),i.push(this.get(\"overlay\")),this.get(\"plot\").set(\"renderers\",i)},n}(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),{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};define(\"tool/gestures/pan_tool\",[\"underscore\",\"common/collection\",\"common/logging\",\"tool/gestures/gesture_tool\"],function(t,n,r,i){var o,s,a,l,u,c,p;return l=r.logger,s=function(n){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype._pan_start=function(t){var e,n,r,i,o,s;return this.last_dx=0,this.last_dy=0,e=this.plot_view.canvas,n=this.plot_view.frame,o=e.sx_to_vx(t.bokeh.sx),s=e.sy_to_vy(t.bokeh.sy),!n.contains(o,s)&&(r=n.get(\"h_range\"),i=n.get(\"v_range\"),(o<r.get(\"start\")||o>r.get(\"end\"))&&(this.v_axis_only=!0),s<i.get(\"start\")||s>i.get(\"end\"))?this.h_axis_only=!0:void 0},r.prototype._pan=function(t){return this._update(t.deltaX,-t.deltaY)},r.prototype._pan_end=function(){return this.h_axis_only=!1,this.v_axis_only=!1},r.prototype._update=function(e,n){var r,i,o,s,a,l,u,c,p,h,d,f,_,g,m,y,v,b,w,x,k,C,M,A,S,T,D;o=this.plot_view.frame,u=e-this.last_dx,c=n-this.last_dy,s=t.clone(o.get(\"h_range\")),y=s.get(\"start\")-u,m=s.get(\"end\")-u,k=t.clone(o.get(\"v_range\")),x=k.get(\"start\")-c,w=k.get(\"end\")-c,r=this.mget(\"dimensions\"),r.indexOf(\"width\")>-1&&!this.v_axis_only?(_=y,g=m,h=-u):(_=s.get(\"start\"),g=s.get(\"end\"),h=0),r.indexOf(\"height\")>-1&&!this.h_axis_only?(v=x,b=w,d=c):(v=k.get(\"start\"),b=k.get(\"end\"),d=0),this.last_dx=e,this.last_dy=n,C={},A=o.get(\"x_mappers\");for(l in A)a=A[l],S=a.v_map_from_target([_,g]),f=S[0],i=S[1],C[l]={start:f,end:i};M={},T=o.get(\"y_mappers\");for(l in T)a=T[l],D=a.v_map_from_target([v,b]),f=D[0],i=D[1],M[l]={start:f,end:i};return p={xrs:C,yrs:M,sdx:h,sdy:d},this.plot_view.update_range(p),null},r}(i.View),o=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type=\"PanTool\",r.prototype.tool_name=\"Pan\",r.prototype.icon=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCRTI5MDhEODIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCRTI5MDhEOTIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkJFMjkwOEQ2MjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkJFMjkwOEQ3MjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+OXzPwwAAAKNJREFUeNrsVsEKgCAM3cyj0f8fuwT9XdEHrLyVIOKYY4kPPDim0+fenF+3HZi4nhFec+Rs4oCPAALwjDVUsKMWA6DNAFX6YXcMYIERdRWIYBzAZbKYGsSKex6mVUAK8Za0TphgoFTbpSvlx3/I0EQOILO2i/ibegLk/mgVONM4JvuBVizgkGH3XTGrR/xlV0ycbO8qCeMN54wdtVQwSTFwCzAATqEZUn8W8W4AAAAASUVORK5CYII=\",r.prototype.event_type=\"pan\",r.prototype.default_order=10,r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.register_property(\"tooltip\",function(){return this._get_dim_tooltip(\"Pan\",this._check_dims(this.get(\"dimensions\"),\"pan tool\"))},!1),this.add_dependencies(\"tooltip\",this,[\"dimensions\"])},r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{dimensions:[\"width\",\"height\"]})},r}(i.Model),a=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n),{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};define(\"tool/gestures/resize_tool\",[\"underscore\",\"common/collection\",\"tool/gestures/gesture_tool\"],function(t,n,r){var i,o,s,a,l,u;\n",
        "                return o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.className=\"bk-resize-popup pull-right\",n.prototype.initialize=function(t){var e;return n.__super__.initialize.call(this,t),e=this.plot_view.$el.find(\"div.bk-canvas-wrapper\"),this.$el.appendTo(e),this.$el.hide(),null},n.prototype.activate=function(){return this.$el.show(),null},n.prototype.deactivate=function(){return this.$el.hide(),null},n.prototype._pan_start=function(){var t;return t=this.plot_view.canvas,this.ch=t.get(\"height\"),this.cw=t.get(\"width\"),null},n.prototype._pan=function(t){return this._update(t.deltaX,t.deltaY),null},n.prototype._update=function(t,e){var n;return this.plot_view.pause(),n=this.plot_view.canvas,n._set_dims([this.cw+t,this.ch+e]),this.plot_view.request_render(),this.plot_view.unpause(),null},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=\"ResizeTool\",n.prototype.tool_name=\"Resize\",n.prototype.icon=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBODVDNDBCQjIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBODVDNDBCQzIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjMyMUREOEQ4MjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkE4NUM0MEJBMjBCMzExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+nIbQ0AAAAIJJREFUeNpiXLhs5X8G7ICRgTYAq31MDIMEwBzyERoCyJhWAN2ej4MqRFiIjUMahczgSyMsNE4PxACBQZlrcAFsuYkcLECpQwZNiIw6ZNQhow4ZdcioQ0YdMuoQerRZkQE/vdqwgypqQD7+MIBuANn9f1CnEcbRXIMjd4zM0QCAAAMAbdAPQaze1JcAAAAASUVORK5CYII=\",n.prototype.event_type=\"pan\",n.prototype.default_order=40,n}(r.Model),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{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};define(\"tool/gestures/tap_tool\",[\"underscore\",\"common/collection\",\"tool/gestures/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._tap=function(t){var e,n,r,i,o;return n=this.plot_view.canvas,r=n.sx_to_vx(t.bokeh.sx),i=n.sy_to_vy(t.bokeh.sy),e=null!=(o=t.srcEvent.shiftKey)?o:!1,this._select(r,i,e)},n.prototype._select=function(t,e,n){var r,i,o,s,a,l,u;for(i={type:\"point\",vx:t,vy:e},u=this.mget(\"renderers\"),a=0,l=u.length;l>a;a++)o=u[a],r=o.get(\"data_source\"),s=r.get(\"selection_manager\"),s.select(this,this.plot_view.renderers[o.id],i,!0,n);return this._save_geometry(i,!0,n),null},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=\"TapTool\",n.prototype.tool_name=\"Tap\",n.prototype.icon=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAHWSURBVDiNbdJfaI9RGAfwz/7JNlLGjdxLyDU2u0EIx6uc7UIpF5pIU1OSGzfkUhvSiuSCvZbXGxeT0IxcSYlIiVxSJmqZzbj4nbafcer0nM75Ps/5Pt/vU2PWyouyAbsRsTJdv0SOGzELE9X4mlnJ7TiOtentV3qqS/EJTsUsDP9TIC/KvTiHZgyhwHP8Tkx2Ygd+4EDMwpXpAnlRtuJu+vFozMLF2a0lXAfOowkbYxYe1+RF2Yhb2IT9MQv9eVHOxTGsSwxGcCZm4WdelLuSHg8QatGZeh5KyQtxB/NwCIfRgtt5US6IWbiJgZTTWZ/UrsG1xLQHL2IWeqrYd+dF2YdunMRVBMRaLMckXiVwK3r/I0E/tqXzW0xgdX0VYCrFOjO2Va+PuJTO4/iE8Xq8RhuWqdj2FAdxpDo7ZmEUF/KiXIwxrMJUvYqibSrTdx2nUeZFeRaX8SFm4Suk5PcYiVnYAtU2bkBHzMJgXpTNOIHtqfdeLMUS3Mcz7GFmkNbjHr6jK2ZhsJp+XpQt6ec6jKIB86cLJNA+9GFOamsAb1Qc+qJic2PSagzv/iqQirQn6mvS1SQ+Y0WawkXJjUcxC5uhdpbSw9iKLjzEt7QnE6QpxWmb/wA4250STmTc7QAAAABJRU5ErkJggg==\",n.prototype.event_type=\"tap\",n.prototype.default_order=10,n}(r.Model),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{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};define(\"tool/gestures/wheel_zoom_tool\",[\"underscore\",\"common/collection\",\"common/logging\",\"tool/gestures/gesture_tool\"],function(t,n,r,i){var o,s,a,l,u,c,p;return l=r.logger,s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._pinch=function(t){var e;return e=t.scale>=1?20*(t.scale-1):-20/t.scale,t.bokeh.delta=e,this._scroll(t)},n.prototype._scroll=function(t){var e,n,r,i,o,s,a,l,u,c,p,h,d,f,_,g,m,y,v,b,w,x,k,C,M,A,S,T,D,E,R;o=this.plot_model.get(\"frame\"),a=o.get(\"h_range\"),m=o.get(\"v_range\"),y=this.plot_view.canvas.sx_to_vx(t.bokeh.sx),w=this.plot_view.canvas.sy_to_vy(t.bokeh.sy),(y<a.get(\"start\")||y>a.get(\"end\"))&&(g=!0),(w<m.get(\"start\")||w>m.get(\"end\"))&&(s=!0),u=navigator.userAgent.toLowerCase().indexOf(\"firefox\")>-1?20:1,e=null!=(null!=(S=t.originalEvent)?S.deltaY:void 0)?-t.originalEvent.deltaY*u:t.bokeh.delta,i=this.mget(\"speed\")*e,i>.9?i=.9:-.9>i&&(i=-.9),b=a.get(\"start\"),v=a.get(\"end\"),k=m.get(\"start\"),x=m.get(\"end\"),n=this.mget(\"dimensions\"),n.indexOf(\"width\")>-1&&!g?(h=b-(b-y)*i,d=v-(v-y)*i):(h=b,d=v),n.indexOf(\"height\")>-1&&!s?(f=k-(k-w)*i,_=x-(x-w)*i):(f=k,_=x),C={},T=o.get(\"x_mappers\");for(c in T)l=T[c],D=l.v_map_from_target([h,d]),p=D[0],r=D[1],C[c]={start:p,end:r};M={},E=o.get(\"y_mappers\");for(c in E)l=E[c],R=l.v_map_from_target([f,_]),p=R[0],r=R[1],M[c]={start:p,end:r};return A={xrs:C,yrs:M,factor:i},this.plot_view.update_range(A),null},n}(i.View),o=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=s,r.prototype.type=\"WheelZoomTool\",r.prototype.tool_name=\"Wheel Zoom\",r.prototype.icon=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAgCAYAAABpRpp6AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCRTI5MDhEQzIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCRTI5MDhERDIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkJFMjkwOERBMjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkJFMjkwOERCMjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+sFLapAAAA8xJREFUeNq8WH9k1VEU/+67ecTYxKM8xlJiifKIMUqUKMvy1CqbEmUxJZbSlGXTLBuJpYi18dpqStOzacT+WcTXpkiRUjziETEeY9bnzHm5O53vj/te7fDx3r3fc+/9fM/3nHPPvWWP0mOOIlVAC3AQqOc2SRZ4A9Cg58CSNrj1+FEnSIYfPynHTyOQArYCO/jRPPAJGAcmMM9f87vKfG3AF+AucMAgS5LgRZ4CH/mFrARkieAs8Aw4ASSBckaS++jZLOv6El4HjAKDwPoIa28GXgLdFmQv4WcO2BVBnXTmeIxK+D5wzLGXa8D1CGT78NPPhjFlGnjAmBbPSLefx65IBf+eZZ81hfznIfsr+W0eaACa2G3MhbuAt8CUD1kyRIfongDa4affhW4Nu2Oj0d2Bfg+6Y2UIukr2x4ShkAMOMQlNyLcmgVqj7z2wk17UDDosFOOYMOdPQ+dkyBcZFkb8DGxz2ckTwrKHA8g6HMn7gQWjbzsHqZSUmJ8sej6Cq7WzrhkzKVeYnmSEXSBM6I17RZ+WNWRfJ6z7K2xy1umUc7lGDizIkDL+AsNRXs6U3YpOUrRfWwS01K2noIuLzg+iTcFSiFLKlQPi8+aNAIwri24QlstaEM6JdoIsHBOdiyJl9RntfiXazUljEdJb3IKw1F10Q/Krtin0KaSD5Ido77MYK10sG0S4ByjzwW2LRT3pYlxLRBFpGM91/r9kRJuC/FbEnVEmhEwQYRqw7IMuC8LjnAKllSeBhEI0Qc8U636luWinWxYPqoFCnuxmX16VR9ldCvINqOH/NK5alpe8NY8qL5Nnl/GMFJhU6g2SZtqaw1xCkrss2pGEFhLp0CxuGow83+BDdoDn+FP8hJFeYusNlODL9LI/ubKLRRxDKfamuaNWRBx4o9TI49NDD9yjSdn9NKFa5jTGrdrIKpw1FJCtU8h6Rp/HwbVyBNOOSGtKGHJKtGdAao/NBO4aWrecS9mwQiuU8KLoi1nOEfepQ6TsFXVxnnO0NWFZEdVZjK8RaSgXoHtGbihwh4ViCM+LvhaL8VJ3xscdqnwOCk4xhDNKYNRHPOZfCakbzGOS+SWyloX8KsIj4lNScLwIuTsgsq+ASnFkmor4JdJayopKeEHZGOJ8OzMoatIkF0XvxIm5cGhcUtyhVqlrh4rNNoU8fI+jOCUs3cYIk14L63py9yo2D7fyBZ+t3AGuWgTmiFOCuCIvHuHFo6QbCpxm4GLIxZ+880j/K8Lm593EVZqnXF9N8UXIFt7zgwoeunDZCJzju44M+nKlEP4twAAD1RclkNDukAAAAABJRU5ErkJggg==\",r.prototype.event_type=\"ontouchstart\"in document?\"pinch\":\"scroll\",r.prototype.default_order=10,r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.register_property(\"tooltip\",function(){return this._get_dim_tooltip(this.get(\"tool_name\"),this._check_dims(this.get(\"dimensions\"),\"wheel zoom tool\"))},!1),this.add_dependencies(\"tooltip\",this,[\"dimensions\"])},r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{dimensions:[\"width\",\"height\"],speed:1/600})},r}(i.Model),a=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n),{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};define(\"tool/inspectors/crosshair_tool\",[\"underscore\",\"common/collection\",\"renderer/annotation/span\",\"./inspect_tool\"],function(t,n,r,i){var o,s,a,l,u,c;return s=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._move=function(t){var e,n,r,i,o,s,a,l,u,c;if(this.mget(\"active\")){for(r=this.plot_model.get(\"frame\"),e=this.plot_model.get(\"canvas\"),o=e.sx_to_vx(t.bokeh.sx),s=e.sy_to_vy(t.bokeh.sy),u=this.mget(\"dimensions\"),c=[],a=0,l=u.length;l>a;a++)n=u[a],i=this.mget(\"spans\")[n],c.push(r.contains(o,s)?\"width\"===n?i.set(\"location\",s):i.set(\"location\",o):i.unset(\"location\"));return c}},n.prototype._move_exit=function(){var t,e,n,r,i,o;for(i=this.mget(\"dimensions\"),o=[],n=0,r=i.length;r>n;n++)t=i[n],e=this.mget(\"spans\")[t],o.push(e.unset(\"location\"));return o},n}(i.View),o=function(n){function i(){return u=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=s,i.prototype.type=\"CrosshairTool\",i.prototype.tool_name=\"Crosshair\",i.prototype.initialize=function(t,e){var n;return i.__super__.initialize.call(this,t,e),this.register_property(\"tooltip\",function(){return this._get_dim_tooltip(\"Crosshair\",this._check_dims(this.get(\"dimensions\"),\"crosshair tool\"))},!1),this.add_dependencies(\"tooltip\",this,[\"dimensions\"]),this.set(\"spans\",{width:new r.Model({dimension:\"width\"}),height:new r.Model({dimension:\"height\"})}),n=this.get(\"plot\").get(\"renderers\"),n.push(this.get(\"spans\").width),n.push(this.get(\"spans\").height),this.get(\"plot\").set(\"renderers\",n)},i.prototype.defaults=function(){return t.extend({},i.__super__.defaults.call(this),{dimensions:[\"width\",\"height\"]})},i}(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),{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};define(\"tool/inspectors/hover_tool\",[\"underscore\",\"sprintf\",\"common/collection\",\"renderer/annotation/tooltip\",\"./inspect_tool\"],function(t,n,r,i,o){var s,a,l,u,c,p,h,d;return u=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))},c=function(t){return\"string\"==typeof t?t:Math.floor(t)===t?n(\"%d\",t):Math.abs(t)>.1&&Math.abs(t)<1e3?n(\"%0.3f\",t):n(\"%0.3e\",t)},a=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.bind_bokeh_events=function(){var t,e,n,r;for(r=this.mget(\"renderers\"),e=0,n=r.length;n>e;e++)t=r[e],this.listenTo(t.get(\"data_source\"),\"inspect\",this._update);return this.plot_view.canvas_view.canvas_wrapper.css(\"cursor\",\"crosshair\")},n.prototype._move=function(t){var e,n,r;if(this.mget(\"active\"))return e=this.plot_view.canvas,n=e.sx_to_vx(t.bokeh.sx),r=e.sy_to_vy(t.bokeh.sy),this.plot_view.frame.contains(n,r)?this._inspect(n,r):void this.mget(\"tooltip\").clear()},n.prototype._move_exit=function(){return this.mget(\"tooltip\").clear()},n.prototype._inspect=function(t,e){var n,r,i,o,s,a,l;for(n={type:\"point\",vx:t,vy:e},a=this.mget(\"renderers\"),l=[],o=0,s=a.length;s>o;o++)r=a[o],i=r.get(\"data_source\").get(\"selection_manager\"),l.push(i.inspect(this,this.plot_view.renderers[r.id],n,{geometry:n}));return l},n.prototype._update=function(t,e,n,r,i){var o,s,a,l,p,h,d,f,_,g,m,y,v,b,w,x,k,C,M,A,S,T,D,E,R,I,P,N,z,O,j,F,L,B,H,W;if(f=i.geometry,this.mget(\"tooltip\").clear(),0!==t.length){for(R=f.vx,I=f.vy,o=this.plot_model.get(\"canvas\"),d=this.plot_model.get(\"frame\"),M=o.vx_to_sx(R),A=o.vy_to_sy(I),N=d.get(\"x_mappers\")[n.mget(\"x_range_name\")],O=d.get(\"y_mappers\")[n.mget(\"y_range_name\")],P=N.map_from_target(R),z=O.map_from_target(I),j=0,F=t.length;F>j;j++){g=t[j],this.mget(\"snap_to_data\")?(w=o.sx_to_vx(n.glyph.sx[g]),x=o.sy_to_vy(n.glyph.sy[g])):(L=[R,I],w=L[0],x=L[1]),S=$(\"<table></table>\"),B=this.mget(\"tooltips\");for(m in B){if(E=B[m],b=$(\"<tr></tr>\"),b.append($(\"<td class='bk-tooltip-row-label'>\"+m+\": </td>\")),T=$(\"<td class='bk-tooltip-row-value'></td>\"),E.indexOf(\"$color\")>=0){if(H=E.match(/\\$color(\\[.*\\])?:(\\w*)/),y=H[0],v=H[1],s=H[2],l=r.get_column(s),null==l){k=$(\"<span>\"+s+\" unknown</span>\"),T.append(k);continue}if(_=(null!=v?v.indexOf(\"hex\"):void 0)>=0,C=(null!=v?v.indexOf(\"swatch\"):void 0)>=0,a=l[g],null==a){k=$(\"<span>(null)</span>\"),T.append(k);continue}_&&(a=u(a)),k=$(\"<span>\"+a+\"</span>\"),T.append(k),C&&(k=$(\"<span class='bk-tooltip-color-block'> </span>\"),k.css({backgroundColor:a})),T.append(k)}else{for(E=E.replace(\"$index\",\"\"+g),E=E.replace(\"$x\",\"\"+c(P)),E=E.replace(\"$y\",\"\"+c(z)),E=E.replace(\"$vx\",\"\"+R),E=E.replace(\"$vy\",\"\"+I),E=E.replace(\"$sx\",\"\"+M),E=E.replace(\"$sy\",\"\"+A);E.indexOf(\"@\")>=0;){if(W=E.match(/(@)(\\w*)/),y=W[0],D=W[1],p=W[2],l=r.get_column(p),null==l){E=E.replace(p,\"\"+p+\" unknown\");break}l=r.get_column(p),h=l[g],E=\"number\"==typeof h?E.replace(y,\"\"+c(h)):E.replace(y,\"\"+h)}k=$(\"<span>\"+E+\"</span>\"),T.append(k)}b.append(T),S.append(b)}this.mget(\"tooltip\").add(w,x,S)}return null}},n}(o.View),s=function(n){function r(){return h=r.__super__.constructor.apply(this,arguments)}var o;return e(r,n),r.prototype.default_view=a,r.prototype.type=\"HoverTool\",r.prototype.tool_name=\"Hover Tool\",o=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA8ElEQVQ4T42T0Q2CMBCGaQjPxgmMG/jelIQN3ECZQEfADRwBJzBuQCC81wlkBHxvqP8lmhTsUfpSWvp/vfvvKiJn1HVdpml6dPdC38I90DSNxVobYzKMPiSm/z5AZK3t4zjOpJQ6BPECfiKAcqRUzkFmASQEhHzJOUgQ8BWyviwFsL4sBnC+LAE84YMWQnSAVCixdkvMAiB6Q7TCfJtrLq4PHkmSnHHbi0LHvOYa6w/g3kitjSgOYFyUUoWvlCPA9C1gvQfgDmiHNLZBgO8A3geZt+G6chQBA7hi/0QVQBrZ9EwQ0LbtbhgGghQAVFPAB25HmRH8b2/nAAAAAElFTkSuQmCC\",r.prototype.initialize=function(t,e){var n;return r.__super__.initialize.call(this,t,e),this.set(\"tooltip\",new i.Model),n=this.get(\"plot\").get(\"renderers\"),n.push(this.get(\"tooltip\")),this.get(\"plot\").set(\"renderers\",n)},r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{snap_to_data:!0,tooltips:{index:\"$index\",\"data (x, y)\":\"($x, $y)\",\"canvas (x, y)\":\"($sx, $sy)\"}})},r}(o.Model),l=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(r),{Model:s,Collection:new l,View:a}})}.call(this),define(\"slick_grid/slick.core\",[\"jquery\"],function(){function t(){var t=!1,e=!1;this.stopPropagation=function(){t=!0},this.isPropagationStopped=function(){return t},this.stopImmediatePropagation=function(){e=!0},this.isImmediatePropagationStopped=function(){return e}}function e(){var e=[];this.subscribe=function(t){e.push(t)},this.unsubscribe=function(t){for(var n=e.length-1;n>=0;n--)e[n]===t&&e.splice(n,1)},this.notify=function(n,r,i){r=r||new t,i=i||this;for(var o,s=0;s<e.length&&!r.isPropagationStopped()&&!r.isImmediatePropagationStopped();s++)o=e[s].call(i,r,n);return o}}function n(){var t=[];this.subscribe=function(e,n){return t.push({event:e,handler:n}),e.subscribe(n),this},this.unsubscribe=function(e,n){for(var r=t.length;r--;)if(t[r].event===e&&t[r].handler===n)return t.splice(r,1),void e.unsubscribe(n);return this},this.unsubscribeAll=function(){for(var e=t.length;e--;)t[e].event.unsubscribe(t[e].handler);return t=[],this}}function r(t,e,n,r){void 0===n&&void 0===r&&(n=t,r=e),this.fromRow=Math.min(t,n),this.fromCell=Math.min(e,r),this.toRow=Math.max(t,n),this.toCell=Math.max(e,r),this.isSingleRow=function(){return this.fromRow==this.toRow},this.isSingleCell=function(){return this.fromRow==this.toRow&&this.fromCell==this.toCell},this.contains=function(t,e){return t>=this.fromRow&&t<=this.toRow&&e>=this.fromCell&&e<=this.toCell},this.toString=function(){return this.isSingleCell()?\"(\"+this.fromRow+\":\"+this.fromCell+\")\":\"(\"+this.fromRow+\":\"+this.fromCell+\" - \"+this.toRow+\":\"+this.toCell+\")\"}}function i(){this.__nonDataRow=!0}function o(){this.__group=!0,this.level=0,this.count=0,this.value=null,this.title=null,this.collapsed=!1,this.totals=null,this.rows=[],this.groups=null,this.groupingKey=null}function s(){this.__groupTotals=!0,this.group=null,this.initialized=!1}function a(){var t=null;this.isActive=function(e){return e?t===e:null!==t},this.activate=function(e){if(e!==t){if(null!==t)throw\"SlickGrid.EditorLock.activate: an editController is still active, can't activate another editController\";if(!e.commitCurrentEdit)throw\"SlickGrid.EditorLock.activate: editController must implement .commitCurrentEdit()\";if(!e.cancelCurrentEdit)throw\"SlickGrid.EditorLock.activate: editController must implement .cancelCurrentEdit()\";t=e}},this.deactivate=function(e){if(t!==e)throw\"SlickGrid.EditorLock.deactivate: specified editController is not the currently active one\";t=null},this.commitCurrentEdit=function(){return t?t.commitCurrentEdit():!0},this.cancelCurrentEdit=function(){return t?t.cancelCurrentEdit():!0}}var l={Event:e,EventData:t,EventHandler:n,Range:r,NonDataRow:i,Group:o,GroupTotals:s,EditorLock:a,GlobalEditorLock:new a};return o.prototype=new i,o.prototype.equals=function(t){return this.value===t.value&&this.count===t.count&&this.collapsed===t.collapsed&&this.title===t.title},s.prototype=new i,l}),function(t){define(\"jquery_event_drag\",[\"jquery\"],function(){return function(){return function(t){t.fn.drag=function(e,n,r){var i=\"string\"==typeof e?e:\"\",o=t.isFunction(e)?e:t.isFunction(n)?n:null;return 0!==i.indexOf(\"drag\")&&(i=\"drag\"+i),r=(e==o?n:r)||{},o?this.bind(i,r,o):this.trigger(i)};var e=t.event,n=e.special,r=n.drag={defaults:{which:1,distance:0,not:\":input\",handle:null,relative:!1,drop:!0,click:!1},datakey:\"dragdata\",noBubble:!0,add:function(e){var n=t.data(this,r.datakey),i=e.data||{};n.related+=1,t.each(r.defaults,function(t){void 0!==i[t]&&(n[t]=i[t])})},remove:function(){t.data(this,r.datakey).related-=1},setup:function(){if(!t.data(this,r.datakey)){var n=t.extend({related:0},r.defaults);t.data(this,r.datakey,n),e.add(this,\"touchstart mousedown\",r.init,n),this.attachEvent&&this.attachEvent(\"ondragstart\",r.dontstart)}},teardown:function(){var n=t.data(this,r.datakey)||{};n.related||(t.removeData(this,r.datakey),e.remove(this,\"touchstart mousedown\",r.init),r.textselect(!0),this.detachEvent&&this.detachEvent(\"ondragstart\",r.dontstart))},init:function(i){if(!r.touched){var o,s=i.data;if(!(0!=i.which&&s.which>0&&i.which!=s.which||t(i.target).is(s.not)||s.handle&&!t(i.target).closest(s.handle,i.currentTarget).length||(r.touched=\"touchstart\"==i.type?this:null,s.propagates=1,s.mousedown=this,s.interactions=[r.interaction(this,s)],s.target=i.target,s.pageX=i.pageX,s.pageY=i.pageY,s.dragging=null,o=r.hijack(i,\"draginit\",s),!s.propagates)))return o=r.flatten(o),o&&o.length&&(s.interactions=[],t.each(o,function(){s.interactions.push(r.interaction(this,s))})),s.propagates=s.interactions.length,s.drop!==!1&&n.drop&&n.drop.handler(i,s),r.textselect(!1),r.touched?e.add(r.touched,\"touchmove touchend\",r.handler,s):e.add(document,\"mousemove mouseup\",r.handler,s),!r.touched||s.live?!1:void 0}},interaction:function(e,n){var i=t(e)[n.relative?\"position\":\"offset\"]()||{top:0,left:0};return{drag:e,callback:new r.callback,droppable:[],offset:i}},handler:function(i){var o=i.data;switch(i.type){case!o.dragging&&\"touchmove\":i.preventDefault();case!o.dragging&&\"mousemove\":if(Math.pow(i.pageX-o.pageX,2)+Math.pow(i.pageY-o.pageY,2)<Math.pow(o.distance,2))break;i.target=o.target,r.hijack(i,\"dragstart\",o),o.propagates&&(o.dragging=!0);case\"touchmove\":i.preventDefault();case\"mousemove\":if(o.dragging){if(r.hijack(i,\"drag\",o),o.propagates){o.drop!==!1&&n.drop&&n.drop.handler(i,o);break}i.type=\"mouseup\"}case\"touchend\":case\"mouseup\":default:r.touched?e.remove(r.touched,\"touchmove touchend\",r.handler):e.remove(document,\"mousemove mouseup\",r.handler),o.dragging&&(o.drop!==!1&&n.drop&&n.drop.handler(i,o),r.hijack(i,\"dragend\",o)),r.textselect(!0),o.click===!1&&o.dragging&&t.data(o.mousedown,\"suppress.click\",(new Date).getTime()+5),o.dragging=r.touched=!1}},hijack:function(n,i,o,s,a){if(o){var l,u,c,p={event:n.originalEvent,type:n.type},h=i.indexOf(\"drop\")?\"drag\":\"drop\",d=s||0,f=isNaN(s)?o.interactions.length:s;n.type=i,n.originalEvent=null,o.results=[];do if(u=o.interactions[d]){if(\"dragend\"!==i&&u.cancelled)continue;c=r.properties(n,o,u),u.results=[],t(a||u[h]||o.droppable).each(function(s,a){return c.target=a,n.isPropagationStopped=function(){return!1},l=a?e.dispatch.call(a,n,c):null,l===!1?(\"drag\"==h&&(u.cancelled=!0,o.propagates-=1),\"drop\"==i&&(u[h][s]=null)):\"dropinit\"==i&&u.droppable.push(r.element(l)||a),\"dragstart\"==i&&(u.proxy=t(r.element(l)||u.drag)[0]),u.results.push(l),delete n.result,\"dropinit\"!==i?l:void 0}),o.results[d]=r.flatten(u.results),\"dropinit\"==i&&(u.droppable=r.flatten(u.droppable)),\"dragstart\"!=i||u.cancelled||c.update()}while(++d<f);return n.type=p.type,n.originalEvent=p.event,r.flatten(o.results)}},properties:function(t,e,n){var i=n.callback;return i.drag=n.drag,i.proxy=n.proxy||n.drag,i.startX=e.pageX,i.startY=e.pageY,i.deltaX=t.pageX-e.pageX,i.deltaY=t.pageY-e.pageY,i.originalX=n.offset.left,i.originalY=n.offset.top,i.offsetX=i.originalX+i.deltaX,i.offsetY=i.originalY+i.deltaY,i.drop=r.flatten((n.drop||[]).slice()),i.available=r.flatten((n.droppable||[]).slice()),i},element:function(t){return t&&(t.jquery||1==t.nodeType)?t:void 0},flatten:function(e){return t.map(e,function(e){return e&&e.jquery?t.makeArray(e):e&&e.length?r.flatten(e):e})},textselect:function(e){t(document)[e?\"unbind\":\"bind\"](\"selectstart\",r.dontstart).css(\"MozUserSelect\",e?\"\":\"none\"),document.unselectable=e?\"off\":\"on\"},dontstart:function(){return!1},callback:function(){}};r.callback.prototype={update:function(){n.drop&&this.available.length&&t.each(this.available,function(t){n.drop.locate(this,t)})}};var i=e.dispatch;e.dispatch=function(e){return t.data(this,\"suppress.\"+e.type)-(new Date).getTime()>0?void t.removeData(this,\"suppress.\"+e.type):i.apply(this,arguments)};var o=e.fixHooks.touchstart=e.fixHooks.touchmove=e.fixHooks.touchend=e.fixHooks.touchcancel={props:\"clientX clientY pageX pageY screenX screenY\".split(\" \"),filter:function(e,n){if(n){var r=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0]||null;r&&t.each(o.props,function(t,n){e[n]=r[n]})}return e}};n.draginit=n.dragstart=n.dragend=r}(jQuery),$.fn.drag}.apply(t,arguments)})}(this),function(t){define(\"jquery_event_drop\",[\"jquery\"],function(){return function(){return function(t){t.fn.drop=function(e,n,r){var i=\"string\"==typeof e?e:\"\",o=t.isFunction(e)?e:t.isFunction(n)?n:null;return 0!==i.indexOf(\"drop\")&&(i=\"drop\"+i),r=(e==o?n:r)||{},o?this.bind(i,r,o):this.trigger(i)},t.drop=function(e){e=e||{},r.multi=e.multi===!0?1/0:e.multi===!1?1:isNaN(e.multi)?r.multi:e.multi,r.delay=e.delay||r.delay,r.tolerance=t.isFunction(e.tolerance)?e.tolerance:null===e.tolerance?null:r.tolerance,r.mode=e.mode||r.mode||\"intersect\"};var e=t.event,n=e.special,r=t.event.special.drop={multi:1,delay:20,mode:\"overlap\",targets:[],datakey:\"dropdata\",noBubble:!0,add:function(){var e=t.data(this,r.datakey);e.related+=1},remove:function(){t.data(this,r.datakey).related-=1},setup:function(){if(!t.data(this,r.datakey)){var e={related:0,active:[],anyactive:0,winner:0,location:{}};t.data(this,r.datakey,e),r.targets.push(this)}},teardown:function(){var e=t.data(this,r.datakey)||{};if(!e.related){t.removeData(this,r.datakey);var n=this;r.targets=t.grep(r.targets,function(t){return t!==n})}},handler:function(e,i){var o;if(i)switch(e.type){case\"mousedown\":case\"touchstart\":o=t(r.targets),\"string\"==typeof i.drop&&(o=o.filter(i.drop)),o.each(function(){var e=t.data(this,r.datakey);e.active=[],e.anyactive=0,e.winner=0}),i.droppable=o,n.drag.hijack(e,\"dropinit\",i);break;case\"mousemove\":case\"touchmove\":r.event=e,r.timer||r.tolerate(i);break;case\"mouseup\":case\"touchend\":r.timer=clearTimeout(r.timer),i.propagates&&(n.drag.hijack(e,\"drop\",i),n.drag.hijack(e,\"dropend\",i))}},locate:function(e,n){var i=t.data(e,r.datakey),o=t(e),s=o.offset()||{},a=o.outerHeight(),l=o.outerWidth(),u={elem:e,width:l,height:a,top:s.top,left:s.left,right:s.left+l,bottom:s.top+a};return i&&(i.location=u,i.index=n,i.elem=e),u},contains:function(t,e){return(e[0]||e.left)>=t.left&&(e[0]||e.right)<=t.right&&(e[1]||e.top)>=t.top&&(e[1]||e.bottom)<=t.bottom},modes:{intersect:function(t,e,n){return this.contains(n,[t.pageX,t.pageY])?1e9:this.modes.overlap.apply(this,arguments)},overlap:function(t,e,n){return Math.max(0,Math.min(n.bottom,e.bottom)-Math.max(n.top,e.top))*Math.max(0,Math.min(n.right,e.right)-Math.max(n.left,e.left))},fit:function(t,e,n){return this.contains(n,e)?1:0},middle:function(t,e,n){return this.contains(n,[e.left+.5*e.width,e.top+.5*e.height])?1:0}},sort:function(t,e){return e.winner-t.winner||t.index-e.index},tolerate:function(e){var i,o,s,a,l,u,c,p,h=0,d=e.interactions.length,f=[r.event.pageX,r.event.pageY],_=r.tolerance||r.modes[r.mode];do if(p=e.interactions[h]){if(!p)return;p.drop=[],l=[],u=p.droppable.length,_&&(s=r.locate(p.proxy)),i=0;do if(c=p.droppable[i]){if(a=t.data(c,r.datakey),o=a.location,!o)continue;a.winner=_?_.call(r,r.event,s,o):r.contains(o,f)?1:0,l.push(a)}while(++i<u);l.sort(r.sort),i=0;do(a=l[i])&&(a.winner&&p.drop.length<r.multi?(a.active[h]||a.anyactive||(n.drag.hijack(r.event,\"dropstart\",e,h,a.elem)[0]!==!1?(a.active[h]=1,a.anyactive+=1):a.winner=0),a.winner&&p.drop.push(a.elem)):a.active[h]&&1==a.anyactive&&(n.drag.hijack(r.event,\"dropend\",e,h,a.elem),a.active[h]=0,a.anyactive-=1));while(++i<u)}while(++h<d);r.last&&f[0]==r.last.pageX&&f[1]==r.last.pageY?delete r.timer:r.timer=setTimeout(function(){r.tolerate(e)},r.delay),r.last=r.event}};n.dropinit=n.dropstart=n.dropend=r}(jQuery),$.fn.drop}.apply(t,arguments)})}(this),define(\"slick_grid/slick.grid\",[\"jquery\",\"./slick.core\",\"jquery_event_drag\",\"jquery_event_drop\"],function($,Slick,$1,$2){function SlickGrid(container,data,columns,options){function init(){if($container=$(container),$container.length<1)throw new Error(\"SlickGrid requires a valid container, \"+container+\" does not exist in the DOM.\");maxSupportedCssHeight=maxSupportedCssHeight||getMaxSupportedCssHeight(),scrollbarDimensions=scrollbarDimensions||measureScrollbar(),options=$.extend({},defaults,options),validateAndEnforceOptions(),columnDefaults.width=options.defaultColumnWidth,columnsById={};for(var t=0;t<columns.length;t++){var e=columns[t]=$.extend({},columnDefaults,columns[t]);columnsById[e.id]=t,e.minWidth&&e.width<e.minWidth&&(e.width=e.minWidth),e.maxWidth&&e.width>e.maxWidth&&(e.width=e.maxWidth)}if(options.enableColumnReorder&&!$.fn.sortable)throw new Error(\"SlickGrid's 'enableColumnReorder = true' option requires jquery-ui.sortable module to be loaded\");editController={commitCurrentEdit:commitCurrentEdit,cancelCurrentEdit:cancelCurrentEdit},$container.empty().css(\"overflow\",\"hidden\").css(\"outline\",0).addClass(uid).addClass(\"bk-ui-widget\"),/relative|absolute|fixed/.test($container.css(\"position\"))||$container.css(\"position\",\"relative\"),$focusSink=$(\"<div tabIndex='0' hideFocus style='position:fixed;width:0;height:0;top:0;left:0;outline:0;'></div>\").appendTo($container),$headerScroller=$(\"<div class='bk-slick-header bk-ui-state-default' style='overflow:hidden;position:relative;' />\").appendTo($container),$headers=$(\"<div class='bk-slick-header-columns' style='left:-1000px' />\").appendTo($headerScroller),$headers.width(getHeadersWidth()),$headerRowScroller=$(\"<div class='bk-slick-headerrow bk-ui-state-default' style='overflow:hidden;position:relative;' />\").appendTo($container),$headerRow=$(\"<div class='bk-slick-headerrow-columns' />\").appendTo($headerRowScroller),$headerRowSpacer=$(\"<div style='display:block;height:1px;position:absolute;top:0;left:0;'></div>\").css(\"width\",getCanvasWidth()+scrollbarDimensions.width+\"px\").appendTo($headerRowScroller),$topPanelScroller=$(\"<div class='bk-slick-top-panel-scroller bk-ui-state-default' style='overflow:hidden;position:relative;' />\").appendTo($container),$topPanel=$(\"<div class='bk-slick-top-panel' style='width:10000px' />\").appendTo($topPanelScroller),options.showTopPanel||$topPanelScroller.hide(),options.showHeaderRow||$headerRowScroller.hide(),$viewport=$(\"<div class='bk-slick-viewport' style='width:100%;overflow:auto;outline:0;position:relative;;'>\").appendTo($container),$viewport.css(\"overflow-y\",options.autoHeight?\"hidden\":\"auto\"),$canvas=$(\"<div class='grid-canvas' />\").appendTo($viewport),$focusSink2=$focusSink.clone().appendTo($container),options.explicitInitialization||finishInitialization()}function finishInitialization(){initialized||(initialized=!0,viewportW=parseFloat($.css($container[0],\"width\",!0)),measureCellPaddingAndBorder(),disableSelection($headers),options.enableTextSelectionOnCells||$viewport.bind(\"selectstart.ui\",function(t){return $(t.target).is(\"input,textarea\")}),updateColumnCaches(),createColumnHeaders(),setupColumnSort(),createCssRules(),resizeCanvas(),bindAncestorScrollEvents(),$container.bind(\"resize.bk-slickgrid\",resizeCanvas),$viewport.bind(\"scroll\",handleScroll),$headerScroller.bind(\"contextmenu\",handleHeaderContextMenu).bind(\"click\",handleHeaderClick).delegate(\".bk-slick-header-column\",\"mouseenter\",handleHeaderMouseEnter).delegate(\".bk-slick-header-column\",\"mouseleave\",handleHeaderMouseLeave),$headerRowScroller.bind(\"scroll\",handleHeaderRowScroll),$focusSink.add($focusSink2).bind(\"keydown\",handleKeyDown),$canvas.bind(\"keydown\",handleKeyDown).bind(\"click\",handleClick).bind(\"dblclick\",handleDblClick).bind(\"contextmenu\",handleContextMenu).bind(\"draginit\",handleDragInit).bind(\"dragstart\",{distance:3},handleDragStart).bind(\"drag\",handleDrag).bind(\"dragend\",handleDragEnd).delegate(\".bk-slick-cell\",\"mouseenter\",handleMouseEnter).delegate(\".bk-slick-cell\",\"mouseleave\",handleMouseLeave),navigator.userAgent.toLowerCase().match(/webkit/)&&navigator.userAgent.toLowerCase().match(/macintosh/)&&$canvas.bind(\"mousewheel\",handleMouseWheel))\n",
        "                }function registerPlugin(t){plugins.unshift(t),t.init(self)}function unregisterPlugin(t){for(var e=plugins.length;e>=0;e--)if(plugins[e]===t){plugins[e].destroy&&plugins[e].destroy(),plugins.splice(e,1);break}}function setSelectionModel(t){selectionModel&&(selectionModel.onSelectedRangesChanged.unsubscribe(handleSelectedRangesChanged),selectionModel.destroy&&selectionModel.destroy()),selectionModel=t,selectionModel&&(selectionModel.init(self),selectionModel.onSelectedRangesChanged.subscribe(handleSelectedRangesChanged))}function getSelectionModel(){return selectionModel}function getCanvasNode(){return $canvas[0]}function measureScrollbar(){var t=$(\"<div style='position:absolute; top:-10000px; left:-10000px; width:100px; height:100px; overflow:scroll;'></div>\").appendTo(\"body\"),e={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),e}function getHeadersWidth(){for(var t=0,e=0,n=columns.length;n>e;e++){var r=columns[e].width;t+=r}return t+=scrollbarDimensions.width,Math.max(t,viewportW)+1e3}function getCanvasWidth(){for(var t=viewportHasVScroll?viewportW-scrollbarDimensions.width:viewportW,e=0,n=columns.length;n--;)e+=columns[n].width;return options.fullWidthRows?Math.max(e,t):e}function updateCanvasWidth(t){var e=canvasWidth;canvasWidth=getCanvasWidth(),canvasWidth!=e&&($canvas.width(canvasWidth),$headerRow.width(canvasWidth),$headers.width(getHeadersWidth()),viewportHasHScroll=canvasWidth>viewportW-scrollbarDimensions.width),$headerRowSpacer.width(canvasWidth+(viewportHasVScroll?scrollbarDimensions.width:0)),(canvasWidth!=e||t)&&applyColumnWidths()}function disableSelection(t){t&&t.jquery&&t.attr(\"unselectable\",\"on\").css(\"MozUserSelect\",\"none\").bind(\"selectstart.ui\",function(){return!1})}function getMaxSupportedCssHeight(){for(var t=1e6,e=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,n=$(\"<div style='display:none' />\").appendTo(document.body);;){var r=2*t;if(n.css(\"height\",r),r>e||n.height()!==r)break;t=r}return n.remove(),t}function bindAncestorScrollEvents(){for(var t=$canvas[0];(t=t.parentNode)!=document.body&&null!=t;)if(t==$viewport[0]||t.scrollWidth!=t.clientWidth||t.scrollHeight!=t.clientHeight){var e=$(t);$boundAncestors=$boundAncestors?$boundAncestors.add(e):e,e.bind(\"scroll.\"+uid,handleActiveCellPositionChange)}}function unbindAncestorScrollEvents(){$boundAncestors&&($boundAncestors.unbind(\"scroll.\"+uid),$boundAncestors=null)}function updateColumnHeader(t,e,n){if(initialized){var r=getColumnIndex(t);if(null!=r){var i=columns[r],o=$headers.children().eq(r);o&&(void 0!==e&&(columns[r].name=e),void 0!==n&&(columns[r].toolTip=n),trigger(self.onBeforeHeaderCellDestroy,{node:o[0],column:i}),o.attr(\"title\",n||\"\").children().eq(0).html(e),trigger(self.onHeaderCellRendered,{node:o[0],column:i}))}}}function getHeaderRow(){return $headerRow[0]}function getHeaderRowColumn(t){var e=getColumnIndex(t),n=$headerRow.children().eq(e);return n&&n[0]}function createColumnHeaders(){function t(){$(this).addClass(\"bk-ui-state-hover\")}function e(){$(this).removeClass(\"bk-ui-state-hover\")}$headers.find(\".bk-slick-header-column\").each(function(){var t=$(this).data(\"column\");t&&trigger(self.onBeforeHeaderCellDestroy,{node:this,column:t})}),$headers.empty(),$headers.width(getHeadersWidth()),$headerRow.find(\".bk-slick-headerrow-column\").each(function(){var t=$(this).data(\"column\");t&&trigger(self.onBeforeHeaderRowCellDestroy,{node:this,column:t})}),$headerRow.empty();for(var n=0;n<columns.length;n++){var r=columns[n],i=$(\"<div class='bk-ui-state-default bk-slick-header-column' />\").html(\"<span class='bk-slick-column-name'>\"+r.name+\"</span>\").width(r.width-headerColumnWidthDiff).attr(\"id\",\"\"+uid+r.id).attr(\"title\",r.toolTip||\"\").data(\"column\",r).addClass(r.headerCssClass||\"\").appendTo($headers);if((options.enableColumnReorder||r.sortable)&&i.on(\"mouseenter\",t).on(\"mouseleave\",e),r.sortable&&(i.addClass(\"bk-slick-header-sortable\"),i.append(\"<span class='bk-slick-sort-indicator' />\")),trigger(self.onHeaderCellRendered,{node:i[0],column:r}),options.showHeaderRow){var o=$(\"<div class='bk-ui-state-default bk-slick-headerrow-column l\"+n+\" r\"+n+\"'></div>\").data(\"column\",r).appendTo($headerRow);trigger(self.onHeaderRowCellRendered,{node:o[0],column:r})}}setSortColumns(sortColumns),setupColumnResize(),options.enableColumnReorder&&setupColumnReorder()}function setupColumnSort(){$headers.click(function(t){if(t.metaKey=t.metaKey||t.ctrlKey,!$(t.target).hasClass(\"bk-slick-resizable-handle\")){var e=$(t.target).closest(\".bk-slick-header-column\");if(e.length){var n=e.data(\"column\");if(n.sortable){if(!getEditorLock().commitCurrentEdit())return;for(var r=null,i=0;i<sortColumns.length;i++)if(sortColumns[i].columnId==n.id){r=sortColumns[i],r.sortAsc=!r.sortAsc;break}t.metaKey&&options.multiColumnSort?r&&sortColumns.splice(i,1):((t.shiftKey||t.metaKey)&&options.multiColumnSort||(sortColumns=[]),r?0==sortColumns.length&&sortColumns.push(r):(r={columnId:n.id,sortAsc:n.defaultSortAsc},sortColumns.push(r))),setSortColumns(sortColumns),options.multiColumnSort?trigger(self.onSort,{multiColumnSort:!0,sortCols:$.map(sortColumns,function(t){return{sortCol:columns[getColumnIndex(t.columnId)],sortAsc:t.sortAsc}})},t):trigger(self.onSort,{multiColumnSort:!1,sortCol:n,sortAsc:r.sortAsc},t)}}}})}function setupColumnReorder(){$headers.filter(\":ui-sortable\").sortable(\"destroy\"),$headers.sortable({containment:\"parent\",distance:3,axis:\"x\",cursor:\"default\",tolerance:\"intersection\",helper:\"clone\",placeholder:\"bk-slick-sortable-placeholder bk-ui-state-default bk-slick-header-column\",start:function(t,e){e.placeholder.width(e.helper.outerWidth()-headerColumnWidthDiff),$(e.helper).addClass(\"bk-slick-header-column-active\")},beforeStop:function(t,e){$(e.helper).removeClass(\"bk-slick-header-column-active\")},stop:function(t){if(!getEditorLock().commitCurrentEdit())return void $(this).sortable(\"cancel\");for(var e=$headers.sortable(\"toArray\"),n=[],r=0;r<e.length;r++)n.push(columns[getColumnIndex(e[r].replace(uid,\"\"))]);setColumns(n),trigger(self.onColumnsReordered,{}),t.stopPropagation(),setupColumnResize()}})}function setupColumnResize(){var t,e,n,r,i,o,s,a,l;i=$headers.children(),i.find(\".bk-slick-resizable-handle\").remove(),i.each(function(t){columns[t].resizable&&(void 0===a&&(a=t),l=t)}),void 0!==a&&i.each(function(u,c){a>u||options.forceFitColumns&&u>=l||(t=$(c),$(\"<div class='bk-slick-resizable-handle' />\").appendTo(c).bind(\"dragstart\",function(t){if(!getEditorLock().commitCurrentEdit())return!1;r=t.pageX,$(this).parent().addClass(\"bk-slick-header-column-active\");var a=null,l=null;if(i.each(function(t,e){columns[t].previousWidth=$(e).outerWidth()}),options.forceFitColumns)for(a=0,l=0,e=u+1;e<i.length;e++)n=columns[e],n.resizable&&(null!==l&&(n.maxWidth?l+=n.maxWidth-n.previousWidth:l=null),a+=n.previousWidth-Math.max(n.minWidth||0,absoluteColumnMinWidth));var c=0,p=0;for(e=0;u>=e;e++)n=columns[e],n.resizable&&(null!==p&&(n.maxWidth?p+=n.maxWidth-n.previousWidth:p=null),c+=n.previousWidth-Math.max(n.minWidth||0,absoluteColumnMinWidth));null===a&&(a=1e5),null===c&&(c=1e5),null===l&&(l=1e5),null===p&&(p=1e5),s=r+Math.min(a,p),o=r-Math.min(c,l)}).bind(\"drag\",function(t){var a,l,c=Math.min(s,Math.max(o,t.pageX))-r;if(0>c){for(l=c,e=u;e>=0;e--)n=columns[e],n.resizable&&(a=Math.max(n.minWidth||0,absoluteColumnMinWidth),l&&n.previousWidth+l<a?(l+=n.previousWidth-a,n.width=a):(n.width=n.previousWidth+l,l=0));if(options.forceFitColumns)for(l=-c,e=u+1;e<i.length;e++)n=columns[e],n.resizable&&(l&&n.maxWidth&&n.maxWidth-n.previousWidth<l?(l-=n.maxWidth-n.previousWidth,n.width=n.maxWidth):(n.width=n.previousWidth+l,l=0))}else{for(l=c,e=u;e>=0;e--)n=columns[e],n.resizable&&(l&&n.maxWidth&&n.maxWidth-n.previousWidth<l?(l-=n.maxWidth-n.previousWidth,n.width=n.maxWidth):(n.width=n.previousWidth+l,l=0));if(options.forceFitColumns)for(l=-c,e=u+1;e<i.length;e++)n=columns[e],n.resizable&&(a=Math.max(n.minWidth||0,absoluteColumnMinWidth),l&&n.previousWidth+l<a?(l+=n.previousWidth-a,n.width=a):(n.width=n.previousWidth+l,l=0))}applyColumnHeaderWidths(),options.syncColumnCellResize&&applyColumnWidths()}).bind(\"dragend\",function(){var t;for($(this).parent().removeClass(\"bk-slick-header-column-active\"),e=0;e<i.length;e++)n=columns[e],t=$(i[e]).outerWidth(),n.previousWidth!==t&&n.rerenderOnResize&&invalidateAllRows();updateCanvasWidth(!0),render(),trigger(self.onColumnsResized,{})}))})}function getVBoxDelta(t){var e=[\"borderTopWidth\",\"borderBottomWidth\",\"paddingTop\",\"paddingBottom\"],n=0;return $.each(e,function(e,r){n+=parseFloat(t.css(r))||0}),n}function measureCellPaddingAndBorder(){var t,e=[\"borderLeftWidth\",\"borderRightWidth\",\"paddingLeft\",\"paddingRight\"],n=[\"borderTopWidth\",\"borderBottomWidth\",\"paddingTop\",\"paddingBottom\"];t=$(\"<div class='bk-ui-state-default bk-slick-header-column' style='visibility:hidden'>-</div>\").appendTo($headers),headerColumnWidthDiff=headerColumnHeightDiff=0,\"border-box\"!=t.css(\"box-sizing\")&&\"border-box\"!=t.css(\"-moz-box-sizing\")&&\"border-box\"!=t.css(\"-webkit-box-sizing\")&&($.each(e,function(e,n){headerColumnWidthDiff+=parseFloat(t.css(n))||0}),$.each(n,function(e,n){headerColumnHeightDiff+=parseFloat(t.css(n))||0})),t.remove();var r=$(\"<div class='bk-slick-row' />\").appendTo($canvas);t=$(\"<div class='bk-slick-cell' id='' style='visibility:hidden'>-</div>\").appendTo(r),cellWidthDiff=cellHeightDiff=0,\"border-box\"!=t.css(\"box-sizing\")&&\"border-box\"!=t.css(\"-moz-box-sizing\")&&\"border-box\"!=t.css(\"-webkit-box-sizing\")&&($.each(e,function(e,n){cellWidthDiff+=parseFloat(t.css(n))||0}),$.each(n,function(e,n){cellHeightDiff+=parseFloat(t.css(n))||0})),r.remove(),absoluteColumnMinWidth=Math.max(headerColumnWidthDiff,cellWidthDiff)}function createCssRules(){$style=$(\"<style type='text/css' rel='stylesheet' />\").appendTo($(\"head\"));for(var t=options.rowHeight-cellHeightDiff,e=[\".\"+uid+\" .bk-slick-header-column { left: 1000px; }\",\".\"+uid+\" .bk-slick-top-panel { height:\"+options.topPanelHeight+\"px; }\",\".\"+uid+\" .bk-slick-headerrow-columns { height:\"+options.headerRowHeight+\"px; }\",\".\"+uid+\" .bk-slick-cell { height:\"+t+\"px; }\",\".\"+uid+\" .bk-slick-row { height:\"+options.rowHeight+\"px; }\"],n=0;n<columns.length;n++)e.push(\".\"+uid+\" .l\"+n+\" { }\"),e.push(\".\"+uid+\" .r\"+n+\" { }\");$style[0].styleSheet?$style[0].styleSheet.cssText=e.join(\" \"):$style[0].appendChild(document.createTextNode(e.join(\" \")))}function getColumnCssRules(t){if(!stylesheet){for(var e=document.styleSheets,n=0;n<e.length;n++)if((e[n].ownerNode||e[n].owningElement)==$style[0]){stylesheet=e[n];break}if(!stylesheet)throw new Error(\"Cannot find stylesheet.\");columnCssRulesL=[],columnCssRulesR=[];for(var r,i,o=stylesheet.cssRules||stylesheet.rules,n=0;n<o.length;n++){var s=o[n].selectorText;(r=/\\.l\\d+/.exec(s))?(i=parseInt(r[0].substr(2,r[0].length-2),10),columnCssRulesL[i]=o[n]):(r=/\\.r\\d+/.exec(s))&&(i=parseInt(r[0].substr(2,r[0].length-2),10),columnCssRulesR[i]=o[n])}}return{left:columnCssRulesL[t],right:columnCssRulesR[t]}}function removeCssRules(){$style.remove(),stylesheet=null}function destroy(){getEditorLock().cancelCurrentEdit(),trigger(self.onBeforeDestroy,{});for(var t=plugins.length;t--;)unregisterPlugin(plugins[t]);options.enableColumnReorder&&$headers.filter(\":ui-sortable\").sortable(\"destroy\"),unbindAncestorScrollEvents(),$container.unbind(\".bk-slickgrid\"),removeCssRules(),$canvas.unbind(\"draginit dragstart dragend drag\"),$container.empty().removeClass(uid)}function trigger(t,e,n){return n=n||new Slick.EventData,e=e||{},e.grid=self,t.notify(e,n,self)}function getEditorLock(){return options.editorLock}function getEditController(){return editController}function getColumnIndex(t){return columnsById[t]}function autosizeColumns(){var t,e,n,r=[],i=0,o=0,s=viewportHasVScroll?viewportW-scrollbarDimensions.width:viewportW;for(t=0;t<columns.length;t++)e=columns[t],r.push(e.width),o+=e.width,e.resizable&&(i+=e.width-Math.max(e.minWidth,absoluteColumnMinWidth));for(n=o;o>s&&i;){var a=(o-s)/i;for(t=0;t<columns.length&&o>s;t++){e=columns[t];var l=r[t];if(!(!e.resizable||l<=e.minWidth||absoluteColumnMinWidth>=l)){var u=Math.max(e.minWidth,absoluteColumnMinWidth),c=Math.floor(a*(l-u))||1;c=Math.min(c,l-u),o-=c,i-=c,r[t]-=c}}if(o>=n)break;n=o}for(n=o;s>o;){var p=s/o;for(t=0;t<columns.length&&s>o;t++){e=columns[t];var h,d=r[t];h=!e.resizable||e.maxWidth<=d?0:Math.min(Math.floor(p*d)-d,e.maxWidth-d||1e6)||1,o+=h,r[t]+=h}if(n>=o)break;n=o}var f=!1;for(t=0;t<columns.length;t++)columns[t].rerenderOnResize&&columns[t].width!=r[t]&&(f=!0),columns[t].width=r[t];applyColumnHeaderWidths(),updateCanvasWidth(!0),f&&(invalidateAllRows(),render())}function applyColumnHeaderWidths(){if(initialized){for(var t,e=0,n=$headers.children(),r=n.length;r>e;e++)t=$(n[e]),t.width()!==columns[e].width-headerColumnWidthDiff&&t.width(columns[e].width-headerColumnWidthDiff);updateColumnCaches()}}function applyColumnWidths(){for(var t,e,n=0,r=0;r<columns.length;r++)t=columns[r].width,e=getColumnCssRules(r),e.left.style.left=n+\"px\",e.right.style.right=canvasWidth-n-t+\"px\",n+=columns[r].width}function setSortColumn(t,e){setSortColumns([{columnId:t,sortAsc:e}])}function setSortColumns(t){sortColumns=t;var e=$headers.children();e.removeClass(\"bk-slick-header-column-sorted\").find(\".bk-slick-sort-indicator\").removeClass(\"bk-slick-sort-indicator-asc bk-slick-sort-indicator-desc\"),$.each(sortColumns,function(t,n){null==n.sortAsc&&(n.sortAsc=!0);var r=getColumnIndex(n.columnId);null!=r&&e.eq(r).addClass(\"bk-slick-header-column-sorted\").find(\".bk-slick-sort-indicator\").addClass(n.sortAsc?\"bk-slick-sort-indicator-asc\":\"bk-slick-sort-indicator-desc\")})}function getSortColumns(){return sortColumns}function handleSelectedRangesChanged(t,e){selectedRows=[];for(var n={},r=0;r<e.length;r++)for(var i=e[r].fromRow;i<=e[r].toRow;i++){n[i]||(selectedRows.push(i),n[i]={});for(var o=e[r].fromCell;o<=e[r].toCell;o++)canCellBeSelected(i,o)&&(n[i][columns[o].id]=options.selectedCellCssClass)}setCellCssStyles(options.selectedCellCssClass,n),trigger(self.onSelectedRowsChanged,{rows:getSelectedRows()},t)}function getColumns(){return columns}function updateColumnCaches(){columnPosLeft=[],columnPosRight=[];for(var t=0,e=0,n=columns.length;n>e;e++)columnPosLeft[e]=t,columnPosRight[e]=t+columns[e].width,t+=columns[e].width}function setColumns(t){columns=t,columnsById={};for(var e=0;e<columns.length;e++){var n=columns[e]=$.extend({},columnDefaults,columns[e]);columnsById[n.id]=e,n.minWidth&&n.width<n.minWidth&&(n.width=n.minWidth),n.maxWidth&&n.width>n.maxWidth&&(n.width=n.maxWidth)}updateColumnCaches(),initialized&&(invalidateAllRows(),createColumnHeaders(),removeCssRules(),createCssRules(),resizeCanvas(),applyColumnWidths(),handleScroll())}function getOptions(){return options}function setOptions(t){getEditorLock().commitCurrentEdit()&&(makeActiveCellNormal(),options.enableAddRow!==t.enableAddRow&&invalidateRow(getDataLength()),options=$.extend(options,t),validateAndEnforceOptions(),$viewport.css(\"overflow-y\",options.autoHeight?\"hidden\":\"auto\"),render())}function validateAndEnforceOptions(){options.autoHeight&&(options.leaveSpaceForNewRows=!1)}function setData(t,e){data=t,invalidateAllRows(),updateRowCount(),e&&scrollTo(0)}function getData(){return data}function getDataLength(){return data.getLength?data.getLength():data.length}function getDataLengthIncludingAddNew(){return getDataLength()+(options.enableAddRow?1:0)}function getDataItem(t){return data.getItem?data.getItem(t):data[t]}function getTopPanel(){return $topPanel[0]}function setTopPanelVisibility(t){options.showTopPanel!=t&&(options.showTopPanel=t,t?$topPanelScroller.slideDown(\"fast\",resizeCanvas):$topPanelScroller.slideUp(\"fast\",resizeCanvas))}function setHeaderRowVisibility(t){options.showHeaderRow!=t&&(options.showHeaderRow=t,t?$headerRowScroller.slideDown(\"fast\",resizeCanvas):$headerRowScroller.slideUp(\"fast\",resizeCanvas))}function getContainerNode(){return $container.get(0)}function getRowTop(t){return options.rowHeight*t-offset}function getRowFromPosition(t){return Math.floor((t+offset)/options.rowHeight)}function scrollTo(t){t=Math.max(t,0),t=Math.min(t,th-viewportH+(viewportHasHScroll?scrollbarDimensions.height:0));var e=offset;page=Math.min(n-1,Math.floor(t/ph)),offset=Math.round(page*cj);var r=t-offset;if(offset!=e){var i=getVisibleRange(r);cleanupRows(i),updateRowPositions()}prevScrollTop!=r&&(vScrollDir=r+offset>prevScrollTop+e?1:-1,$viewport[0].scrollTop=lastRenderedScrollTop=scrollTop=prevScrollTop=r,trigger(self.onViewportChanged,{}))}function defaultFormatter(t,e,n){return null==n?\"\":(n+\"\").replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\")}function getFormatter(t,e){var n=data.getItemMetadata&&data.getItemMetadata(t),r=n&&n.columns&&(n.columns[e.id]||n.columns[getColumnIndex(e.id)]);return r&&r.formatter||n&&n.formatter||e.formatter||options.formatterFactory&&options.formatterFactory.getFormatter(e)||options.defaultFormatter}function getEditor(t,e){var n=columns[e],r=data.getItemMetadata&&data.getItemMetadata(t),i=r&&r.columns;return i&&i[n.id]&&void 0!==i[n.id].editor?i[n.id].editor:i&&i[e]&&void 0!==i[e].editor?i[e].editor:n.editor||options.editorFactory&&options.editorFactory.getEditor(n)}function getDataItemValueForColumn(t,e){return options.dataItemColumnValueExtractor?options.dataItemColumnValueExtractor(t,e):t[e.field]}function appendRowHtml(t,e,n,r){var i=getDataItem(e),o=r>e&&!i,s=\"bk-slick-row\"+(o?\" loading\":\"\")+(e===activeRow?\" active\":\"\")+(e%2==1?\" odd\":\" even\");i||(s+=\" \"+options.addNewRowCssClass);var a=data.getItemMetadata&&data.getItemMetadata(e);a&&a.cssClasses&&(s+=\" \"+a.cssClasses),t.push(\"<div class='bk-ui-widget-content \"+s+\"' style='top:\"+getRowTop(e)+\"px'>\");for(var l,u,c=0,p=columns.length;p>c;c++){if(u=columns[c],l=1,a&&a.columns){var h=a.columns[u.id]||a.columns[c];l=h&&h.colspan||1,\"*\"===l&&(l=p-c)}if(columnPosRight[Math.min(p-1,c+l-1)]>n.leftPx){if(columnPosLeft[c]>n.rightPx)break;appendCellHtml(t,e,c,l,i)}l>1&&(c+=l-1)}t.push(\"</div>\")}function appendCellHtml(t,e,n,r,i){var o=columns[n],s=\"bk-slick-cell l\"+n+\" r\"+Math.min(columns.length-1,n+r-1)+(o.cssClass?\" \"+o.cssClass:\"\");e===activeRow&&n===activeCell&&(s+=\" active\");for(var a in cellCssClasses)cellCssClasses[a][e]&&cellCssClasses[a][e][o.id]&&(s+=\" \"+cellCssClasses[a][e][o.id]);if(t.push(\"<div class='\"+s+\"'>\"),i){var l=getDataItemValueForColumn(i,o);t.push(getFormatter(e,o)(e,n,l,o,i))}t.push(\"</div>\"),rowsCache[e].cellRenderQueue.push(n),rowsCache[e].cellColSpans[n]=r}function cleanupRows(t){for(var e in rowsCache)(e=parseInt(e,10))!==activeRow&&(e<t.top||e>t.bottom)&&removeRowFromCache(e)}function invalidate(){updateRowCount(),invalidateAllRows(),render()}function invalidateAllRows(){currentEditor&&makeActiveCellNormal();for(var t in rowsCache)removeRowFromCache(t)}function removeRowFromCache(t){var e=rowsCache[t];e&&(rowNodeFromLastMouseWheelEvent==e.rowNode?(e.rowNode.style.display=\"none\",zombieRowNodeFromLastMouseWheelEvent=rowNodeFromLastMouseWheelEvent):$canvas[0].removeChild(e.rowNode),delete rowsCache[t],delete postProcessedRows[t],renderedRows--,counter_rows_removed++)}function invalidateRows(t){var e,n;if(t&&t.length)for(vScrollDir=0,e=0,n=t.length;n>e;e++)currentEditor&&activeRow===t[e]&&makeActiveCellNormal(),rowsCache[t[e]]&&removeRowFromCache(t[e])}function invalidateRow(t){invalidateRows([t])}function updateCell(t,e){var n=getCellNode(t,e);if(n){var r=columns[e],i=getDataItem(t);currentEditor&&activeRow===t&&activeCell===e?currentEditor.loadValue(i):(n.innerHTML=i?getFormatter(t,r)(t,e,getDataItemValueForColumn(i,r),r,i):\"\",invalidatePostProcessingResults(t))}}function updateRow(t){var e=rowsCache[t];if(e){ensureCellNodesInRowsCache(t);var n=getDataItem(t);for(var r in e.cellNodesByColumnIdx)if(e.cellNodesByColumnIdx.hasOwnProperty(r)){r=0|r;var i=columns[r],o=e.cellNodesByColumnIdx[r];t===activeRow&&r===activeCell&&currentEditor?currentEditor.loadValue(n):o.innerHTML=n?getFormatter(t,i)(t,r,getDataItemValueForColumn(n,i),i,n):\"\"}invalidatePostProcessingResults(t)}}function getViewportHeight(){return parseFloat($.css($container[0],\"height\",!0))-parseFloat($.css($container[0],\"paddingTop\",!0))-parseFloat($.css($container[0],\"paddingBottom\",!0))-parseFloat($.css($headerScroller[0],\"height\"))-getVBoxDelta($headerScroller)-(options.showTopPanel?options.topPanelHeight+getVBoxDelta($topPanelScroller):0)-(options.showHeaderRow?options.headerRowHeight+getVBoxDelta($headerRowScroller):0)}function resizeCanvas(){initialized&&(viewportH=options.autoHeight?options.rowHeight*getDataLengthIncludingAddNew():getViewportHeight(),numVisibleRows=Math.ceil(viewportH/options.rowHeight),viewportW=parseFloat($.css($container[0],\"width\",!0)),options.autoHeight||$viewport.height(viewportH),options.forceFitColumns&&autosizeColumns(),updateRowCount(),handleScroll(),lastRenderedScrollLeft=-1,render())}function updateRowCount(){if(initialized){var t=getDataLengthIncludingAddNew(),e=t+(options.leaveSpaceForNewRows?numVisibleRows-1:0),r=viewportHasVScroll;viewportHasVScroll=!options.autoHeight&&e*options.rowHeight>viewportH,makeActiveCellNormal();var i=t-1;for(var o in rowsCache)o>=i&&removeRowFromCache(o);activeCellNode&&activeRow>i&&resetActiveCell();var s=h;th=Math.max(options.rowHeight*e,viewportH-scrollbarDimensions.height),maxSupportedCssHeight>th?(h=ph=th,n=1,cj=0):(h=maxSupportedCssHeight,ph=h/100,n=Math.floor(th/ph),cj=(th-h)/(n-1)),h!==s&&($canvas.css(\"height\",h),scrollTop=$viewport[0].scrollTop);var a=th-viewportH>=scrollTop+offset;0==th||0==scrollTop?page=offset=0:scrollTo(a?scrollTop+offset:th-viewportH),h!=s&&options.autoHeight&&resizeCanvas(),options.forceFitColumns&&r!=viewportHasVScroll&&autosizeColumns(),updateCanvasWidth(!1)}}function getVisibleRange(t,e){return null==t&&(t=scrollTop),null==e&&(e=scrollLeft),{top:getRowFromPosition(t),bottom:getRowFromPosition(t+viewportH)+1,leftPx:e,rightPx:e+viewportW}}function getRenderedRange(t,e){var n=getVisibleRange(t,e),r=Math.round(viewportH/options.rowHeight),i=3;return-1==vScrollDir?(n.top-=r,n.bottom+=i):1==vScrollDir?(n.top-=i,n.bottom+=r):(n.top-=i,n.bottom+=i),n.top=Math.max(0,n.top),n.bottom=Math.min(getDataLengthIncludingAddNew()-1,n.bottom),n.leftPx-=viewportW,n.rightPx+=viewportW,n.leftPx=Math.max(0,n.leftPx),n.rightPx=Math.min(canvasWidth,n.rightPx),n}function ensureCellNodesInRowsCache(t){var e=rowsCache[t];if(e&&e.cellRenderQueue.length)for(var n=e.rowNode.lastChild;e.cellRenderQueue.length;){var r=e.cellRenderQueue.pop();e.cellNodesByColumnIdx[r]=n,n=n.previousSibling}}function cleanUpCells(t,e){var n=0,r=rowsCache[e],i=[];for(var o in r.cellNodesByColumnIdx)if(r.cellNodesByColumnIdx.hasOwnProperty(o)){o=0|o;var s=r.cellColSpans[o];(columnPosLeft[o]>t.rightPx||columnPosRight[Math.min(columns.length-1,o+s-1)]<t.leftPx)&&(e!=activeRow||o!=activeCell)&&i.push(o)}for(var a;null!=(a=i.pop());)r.rowNode.removeChild(r.cellNodesByColumnIdx[a]),delete r.cellColSpans[a],delete r.cellNodesByColumnIdx[a],postProcessedRows[e]&&delete postProcessedRows[e][a],n++}function cleanUpAndRenderCells(t){for(var e,n,r,i=[],o=[],s=0,a=t.top,l=t.bottom;l>=a;a++)if(e=rowsCache[a]){ensureCellNodesInRowsCache(a),cleanUpCells(t,a),n=0;var u=data.getItemMetadata&&data.getItemMetadata(a);u=u&&u.columns;for(var c=getDataItem(a),p=0,h=columns.length;h>p&&!(columnPosLeft[p]>t.rightPx);p++)if(null==(r=e.cellColSpans[p])){if(r=1,u){var d=u[columns[p].id]||u[p];r=d&&d.colspan||1,\"*\"===r&&(r=h-p)}columnPosRight[Math.min(h-1,p+r-1)]>t.leftPx&&(appendCellHtml(i,a,p,r,c),n++),p+=r>1?r-1:0}else p+=r>1?r-1:0;n&&(s+=n,o.push(a))}if(i.length){var f=document.createElement(\"div\");f.innerHTML=i.join(\"\");for(var _,g;null!=(_=o.pop());){e=rowsCache[_];for(var m;null!=(m=e.cellRenderQueue.pop());)g=f.lastChild,e.rowNode.appendChild(g),e.cellNodesByColumnIdx[m]=g}}}function renderRows(t){for(var e=$canvas[0],n=[],r=[],i=!1,o=getDataLength(),s=t.top,a=t.bottom;a>=s;s++)rowsCache[s]||(renderedRows++,r.push(s),rowsCache[s]={rowNode:null,cellColSpans:[],cellNodesByColumnIdx:[],cellRenderQueue:[]},appendRowHtml(n,s,t,o),activeCellNode&&activeRow===s&&(i=!0),counter_rows_rendered++);if(r.length){var l=document.createElement(\"div\");l.innerHTML=n.join(\"\");for(var s=0,a=r.length;a>s;s++)rowsCache[r[s]].rowNode=e.appendChild(l.firstChild);i&&(activeCellNode=getCellNode(activeRow,activeCell))}}function startPostProcessing(){options.enableAsyncPostRender&&(clearTimeout(h_postrender),h_postrender=setTimeout(asyncPostProcessRows,options.asyncPostRenderDelay))}function invalidatePostProcessingResults(t){delete postProcessedRows[t],postProcessFromRow=Math.min(postProcessFromRow,t),postProcessToRow=Math.max(postProcessToRow,t),startPostProcessing()}function updateRowPositions(){for(var t in rowsCache)rowsCache[t].rowNode.style.top=getRowTop(t)+\"px\"}function render(){if(initialized){var t=getVisibleRange(),e=getRenderedRange();cleanupRows(e),lastRenderedScrollLeft!=scrollLeft&&cleanUpAndRenderCells(e),renderRows(e),postProcessFromRow=t.top,postProcessToRow=Math.min(getDataLengthIncludingAddNew()-1,t.bottom),startPostProcessing(),lastRenderedScrollTop=scrollTop,lastRenderedScrollLeft=scrollLeft,h_render=null}}function handleHeaderRowScroll(){var t=$headerRowScroller[0].scrollLeft;t!=$viewport[0].scrollLeft&&($viewport[0].scrollLeft=t)}function handleScroll(){scrollTop=$viewport[0].scrollTop,scrollLeft=$viewport[0].scrollLeft;var t=Math.abs(scrollTop-prevScrollTop),e=Math.abs(scrollLeft-prevScrollLeft);if(e&&(prevScrollLeft=scrollLeft,$headerScroller[0].scrollLeft=scrollLeft,$topPanelScroller[0].scrollLeft=scrollLeft,$headerRowScroller[0].scrollLeft=scrollLeft),t)if(vScrollDir=scrollTop>prevScrollTop?1:-1,prevScrollTop=scrollTop,viewportH>t)scrollTo(scrollTop+offset);else{var r=offset;page=h==viewportH?0:Math.min(n-1,Math.floor(scrollTop*((th-viewportH)/(h-viewportH))*(1/ph))),offset=Math.round(page*cj),r!=offset&&invalidateAllRows()}(e||t)&&(h_render&&clearTimeout(h_render),(Math.abs(lastRenderedScrollTop-scrollTop)>20||Math.abs(lastRenderedScrollLeft-scrollLeft)>20)&&(options.forceSyncScrolling||Math.abs(lastRenderedScrollTop-scrollTop)<viewportH&&Math.abs(lastRenderedScrollLeft-scrollLeft)<viewportW?render():h_render=setTimeout(render,50),trigger(self.onViewportChanged,{}))),trigger(self.onScroll,{scrollLeft:scrollLeft,scrollTop:scrollTop})}function asyncPostProcessRows(){for(var t=getDataLength();postProcessToRow>=postProcessFromRow;){var e=vScrollDir>=0?postProcessFromRow++:postProcessToRow--,n=rowsCache[e];if(n&&!(e>=t)){postProcessedRows[e]||(postProcessedRows[e]={}),ensureCellNodesInRowsCache(e);for(var r in n.cellNodesByColumnIdx)if(n.cellNodesByColumnIdx.hasOwnProperty(r)){r=0|r;var i=columns[r];if(i.asyncPostRender&&!postProcessedRows[e][r]){var o=n.cellNodesByColumnIdx[r];o&&i.asyncPostRender(o,e,getDataItem(e),i),postProcessedRows[e][r]=!0}}return void(h_postrender=setTimeout(asyncPostProcessRows,options.asyncPostRenderDelay))}}}function updateCellCssStylesOnRenderedRows(t,e){var n,r,i,o;for(var s in rowsCache){if(o=e&&e[s],i=t&&t[s],o)for(r in o)i&&o[r]==i[r]||(n=getCellNode(s,getColumnIndex(r)),n&&$(n).removeClass(o[r]));if(i)for(r in i)o&&o[r]==i[r]||(n=getCellNode(s,getColumnIndex(r)),n&&$(n).addClass(i[r]))}}function addCellCssStyles(t,e){if(cellCssClasses[t])throw\"addCellCssStyles: cell CSS hash with key '\"+t+\"' already exists.\";cellCssClasses[t]=e,updateCellCssStylesOnRenderedRows(e,null),trigger(self.onCellCssStylesChanged,{key:t,hash:e})}function removeCellCssStyles(t){cellCssClasses[t]&&(updateCellCssStylesOnRenderedRows(null,cellCssClasses[t]),delete cellCssClasses[t],trigger(self.onCellCssStylesChanged,{key:t,hash:null}))}function setCellCssStyles(t,e){var n=cellCssClasses[t];cellCssClasses[t]=e,updateCellCssStylesOnRenderedRows(e,n),trigger(self.onCellCssStylesChanged,{key:t,hash:e})}function getCellCssStyles(t){return cellCssClasses[t]}function flashCell(t,e,n){function r(t){t&&setTimeout(function(){i.queue(function(){i.toggleClass(options.cellFlashingCssClass).dequeue(),r(t-1)})},n)}if(n=n||100,rowsCache[t]){var i=$(getCellNode(t,e));r(4)}}function handleMouseWheel(t){var e=$(t.target).closest(\".bk-slick-row\")[0];e!=rowNodeFromLastMouseWheelEvent&&(zombieRowNodeFromLastMouseWheelEvent&&zombieRowNodeFromLastMouseWheelEvent!=e&&($canvas[0].removeChild(zombieRowNodeFromLastMouseWheelEvent),zombieRowNodeFromLastMouseWheelEvent=null),rowNodeFromLastMouseWheelEvent=e)}function handleDragInit(t,e){var n=getCellFromEvent(t);if(!n||!cellExists(n.row,n.cell))return!1;var r=trigger(self.onDragInit,e,t);return t.isImmediatePropagationStopped()?r:!1}function handleDragStart(t,e){var n=getCellFromEvent(t);if(!n||!cellExists(n.row,n.cell))return!1;var r=trigger(self.onDragStart,e,t);return t.isImmediatePropagationStopped()?r:!1}function handleDrag(t,e){return trigger(self.onDrag,e,t)}function handleDragEnd(t,e){trigger(self.onDragEnd,e,t)}function handleKeyDown(t){trigger(self.onKeyDown,{row:activeRow,cell:activeCell},t);var e=t.isImmediatePropagationStopped();if(!e)if(t.shiftKey||t.altKey||t.ctrlKey)9!=t.which||!t.shiftKey||t.ctrlKey||t.altKey||(e=navigatePrev());else if(27==t.which){if(!getEditorLock().isActive())return;cancelEditAndSetFocus()}else 34==t.which?(navigatePageDown(),e=!0):33==t.which?(navigatePageUp(),e=!0):37==t.which?e=navigateLeft():39==t.which?e=navigateRight():38==t.which?e=navigateUp():40==t.which?e=navigateDown():9==t.which?e=navigateNext():13==t.which&&(options.editable&&(currentEditor?activeRow===getDataLength()?navigateDown():commitEditAndSetFocus():getEditorLock().commitCurrentEdit()&&makeActiveCellEditable()),e=!0);if(e){t.stopPropagation(),t.preventDefault();try{t.originalEvent.keyCode=0}catch(n){}}}function handleClick(t){currentEditor||(t.target!=document.activeElement||$(t.target).hasClass(\"bk-slick-cell\"))&&setFocus();var e=getCellFromEvent(t);!e||null!==currentEditor&&activeRow==e.row&&activeCell==e.cell||(trigger(self.onClick,{row:e.row,cell:e.cell},t),t.isImmediatePropagationStopped()||activeCell==e.cell&&activeRow==e.row||!canCellBeActive(e.row,e.cell)||(!getEditorLock().isActive()||getEditorLock().commitCurrentEdit())&&(scrollRowIntoView(e.row,!1),setActiveCellInternal(getCellNode(e.row,e.cell))))}function handleContextMenu(t){var e=$(t.target).closest(\".bk-slick-cell\",$canvas);0!==e.length&&(activeCellNode!==e[0]||null===currentEditor)&&trigger(self.onContextMenu,{},t)}function handleDblClick(t){var e=getCellFromEvent(t);!e||null!==currentEditor&&activeRow==e.row&&activeCell==e.cell||(trigger(self.onDblClick,{row:e.row,cell:e.cell},t),t.isImmediatePropagationStopped()||options.editable&&gotoCell(e.row,e.cell,!0))}function handleHeaderMouseEnter(t){trigger(self.onHeaderMouseEnter,{column:$(this).data(\"column\")},t)}function handleHeaderMouseLeave(t){trigger(self.onHeaderMouseLeave,{column:$(this).data(\"column\")},t)}function handleHeaderContextMenu(t){var e=$(t.target).closest(\".bk-slick-header-column\",\".bk-slick-header-columns\"),n=e&&e.data(\"column\");trigger(self.onHeaderContextMenu,{column:n},t)}function handleHeaderClick(t){var e=$(t.target).closest(\".bk-slick-header-column\",\".bk-slick-header-columns\"),n=e&&e.data(\"column\");n&&trigger(self.onHeaderClick,{column:n},t)}function handleMouseEnter(t){trigger(self.onMouseEnter,{},t)}function handleMouseLeave(t){trigger(self.onMouseLeave,{},t)}function cellExists(t,e){return!(0>t||t>=getDataLength()||0>e||e>=columns.length)}function getCellFromPoint(t,e){for(var n=getRowFromPosition(e),r=0,i=0,o=0;o<columns.length&&t>i;o++)i+=columns[o].width,r++;return 0>r&&(r=0),{row:n,cell:r-1}}function getCellFromNode(t){var e=/l\\d+/.exec(t.className);if(!e)throw\"getCellFromNode: cannot get cell - \"+t.className;return parseInt(e[0].substr(1,e[0].length-1),10)}function getRowFromNode(t){for(var e in rowsCache)if(rowsCache[e].rowNode===t)return 0|e;return null}function getCellFromEvent(t){var e=$(t.target).closest(\".bk-slick-cell\",$canvas);if(!e.length)return null;var n=getRowFromNode(e[0].parentNode),r=getCellFromNode(e[0]);return null==n||null==r?null:{row:n,cell:r}}function getCellNodeBox(t,e){if(!cellExists(t,e))return null;\n",
        "                for(var n=getRowTop(t),r=n+options.rowHeight-1,i=0,o=0;e>o;o++)i+=columns[o].width;var s=i+columns[e].width;return{top:n,left:i,bottom:r,right:s}}function resetActiveCell(){setActiveCellInternal(null,!1)}function setFocus(){-1==tabbingDirection?$focusSink[0].focus():$focusSink2[0].focus()}function scrollCellIntoView(t,e,n){scrollRowIntoView(t,n);var r=getColspan(t,e),i=columnPosLeft[e],o=columnPosRight[e+(r>1?r-1:0)],s=scrollLeft+viewportW;scrollLeft>i?($viewport.scrollLeft(i),handleScroll(),render()):o>s&&($viewport.scrollLeft(Math.min(i,o-$viewport[0].clientWidth)),handleScroll(),render())}function setActiveCellInternal(t,e){null!==activeCellNode&&(makeActiveCellNormal(),$(activeCellNode).removeClass(\"active\"),rowsCache[activeRow]&&$(rowsCache[activeRow].rowNode).removeClass(\"active\"));var n=activeCellNode!==t;activeCellNode=t,null!=activeCellNode?(activeRow=getRowFromNode(activeCellNode.parentNode),activeCell=activePosX=getCellFromNode(activeCellNode),null==e&&(e=activeRow==getDataLength()||options.autoEdit),$(activeCellNode).addClass(\"active\"),$(rowsCache[activeRow].rowNode).addClass(\"active\"),options.editable&&e&&isCellPotentiallyEditable(activeRow,activeCell)&&(clearTimeout(h_editorLoader),options.asyncEditorLoading?h_editorLoader=setTimeout(function(){makeActiveCellEditable()},options.asyncEditorLoadDelay):makeActiveCellEditable())):activeRow=activeCell=null,n&&trigger(self.onActiveCellChanged,getActiveCell())}function clearTextSelection(){if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(t){}else if(window.getSelection){var e=window.getSelection();e&&e.removeAllRanges&&e.removeAllRanges()}}function isCellPotentiallyEditable(t,e){var n=getDataLength();return n>t&&!getDataItem(t)?!1:columns[e].cannotTriggerInsert&&t>=n?!1:getEditor(t,e)?!0:!1}function makeActiveCellNormal(){if(currentEditor){if(trigger(self.onBeforeCellEditorDestroy,{editor:currentEditor}),currentEditor.destroy(),currentEditor=null,activeCellNode){var t=getDataItem(activeRow);if($(activeCellNode).removeClass(\"editable invalid\"),t){var e=columns[activeCell],n=getFormatter(activeRow,e);activeCellNode.innerHTML=n(activeRow,activeCell,getDataItemValueForColumn(t,e),e,t),invalidatePostProcessingResults(activeRow)}}navigator.userAgent.toLowerCase().match(/msie/)&&clearTextSelection(),getEditorLock().deactivate(editController)}}function makeActiveCellEditable(t){if(activeCellNode){if(!options.editable)throw\"Grid : makeActiveCellEditable : should never get called when options.editable is false\";if(clearTimeout(h_editorLoader),isCellPotentiallyEditable(activeRow,activeCell)){var e=columns[activeCell],n=getDataItem(activeRow);if(trigger(self.onBeforeEditCell,{row:activeRow,cell:activeCell,item:n,column:e})===!1)return void setFocus();getEditorLock().activate(editController),$(activeCellNode).addClass(\"editable\"),t||(activeCellNode.innerHTML=\"\"),currentEditor=new(t||getEditor(activeRow,activeCell))({grid:self,gridPosition:absBox($container[0]),position:absBox(activeCellNode),container:activeCellNode,column:e,item:n||{},commitChanges:commitEditAndSetFocus,cancelChanges:cancelEditAndSetFocus}),n&&currentEditor.loadValue(n),serializedEditorValue=currentEditor.serializeValue(),currentEditor.position&&handleActiveCellPositionChange()}}}function commitEditAndSetFocus(){getEditorLock().commitCurrentEdit()&&(setFocus(),options.autoEdit&&navigateDown())}function cancelEditAndSetFocus(){getEditorLock().cancelCurrentEdit()&&setFocus()}function absBox(t){var e={top:t.offsetTop,left:t.offsetLeft,bottom:0,right:0,width:$(t).outerWidth(),height:$(t).outerHeight(),visible:!0};e.bottom=e.top+e.height,e.right=e.left+e.width;for(var n=t.offsetParent;(t=t.parentNode)!=document.body;)e.visible&&t.scrollHeight!=t.offsetHeight&&\"visible\"!=$(t).css(\"overflowY\")&&(e.visible=e.bottom>t.scrollTop&&e.top<t.scrollTop+t.clientHeight),e.visible&&t.scrollWidth!=t.offsetWidth&&\"visible\"!=$(t).css(\"overflowX\")&&(e.visible=e.right>t.scrollLeft&&e.left<t.scrollLeft+t.clientWidth),e.left-=t.scrollLeft,e.top-=t.scrollTop,t===n&&(e.left+=t.offsetLeft,e.top+=t.offsetTop,n=t.offsetParent),e.bottom=e.top+e.height,e.right=e.left+e.width;return e}function getActiveCellPosition(){return absBox(activeCellNode)}function getGridPosition(){return absBox($container[0])}function handleActiveCellPositionChange(){if(activeCellNode&&(trigger(self.onActiveCellPositionChanged,{}),currentEditor)){var t=getActiveCellPosition();currentEditor.show&&currentEditor.hide&&(t.visible?currentEditor.show():currentEditor.hide()),currentEditor.position&&currentEditor.position(t)}}function getCellEditor(){return currentEditor}function getActiveCell(){return activeCellNode?{row:activeRow,cell:activeCell}:null}function getActiveCellNode(){return activeCellNode}function scrollRowIntoView(t,e){var n=t*options.rowHeight,r=(t+1)*options.rowHeight-viewportH+(viewportHasHScroll?scrollbarDimensions.height:0);(t+1)*options.rowHeight>scrollTop+viewportH+offset?(scrollTo(e?n:r),render()):t*options.rowHeight<scrollTop+offset&&(scrollTo(e?r:n),render())}function scrollRowToTop(t){scrollTo(t*options.rowHeight),render()}function scrollPage(t){var e=t*numVisibleRows;if(scrollTo((getRowFromPosition(scrollTop)+e)*options.rowHeight),render(),options.enableCellNavigation&&null!=activeRow){var n=activeRow+e,r=getDataLengthIncludingAddNew();n>=r&&(n=r-1),0>n&&(n=0);for(var i=0,o=null,s=activePosX;activePosX>=i;)canCellBeActive(n,i)&&(o=i),i+=getColspan(n,i);null!==o?(setActiveCellInternal(getCellNode(n,o)),activePosX=s):resetActiveCell()}}function navigatePageDown(){scrollPage(1)}function navigatePageUp(){scrollPage(-1)}function getColspan(t,e){var n=data.getItemMetadata&&data.getItemMetadata(t);if(!n||!n.columns)return 1;var r=n.columns[columns[e].id]||n.columns[e],i=r&&r.colspan;return i=\"*\"===i?columns.length-e:i||1}function findFirstFocusableCell(t){for(var e=0;e<columns.length;){if(canCellBeActive(t,e))return e;e+=getColspan(t,e)}return null}function findLastFocusableCell(t){for(var e=0,n=null;e<columns.length;)canCellBeActive(t,e)&&(n=e),e+=getColspan(t,e);return n}function gotoRight(t,e){if(e>=columns.length)return null;do e+=getColspan(t,e);while(e<columns.length&&!canCellBeActive(t,e));return e<columns.length?{row:t,cell:e,posX:e}:null}function gotoLeft(t,e){if(0>=e)return null;var n=findFirstFocusableCell(t);if(null===n||n>=e)return null;for(var r,i={row:t,cell:n,posX:n};;){if(r=gotoRight(i.row,i.cell,i.posX),!r)return null;if(r.cell>=e)return i;i=r}}function gotoDown(t,e,n){for(var r,i=getDataLengthIncludingAddNew();;){if(++t>=i)return null;for(r=e=0;n>=e;)r=e,e+=getColspan(t,e);if(canCellBeActive(t,r))return{row:t,cell:r,posX:n}}}function gotoUp(t,e,n){for(var r;;){if(--t<0)return null;for(r=e=0;n>=e;)r=e,e+=getColspan(t,e);if(canCellBeActive(t,r))return{row:t,cell:r,posX:n}}}function gotoNext(t,e,n){if(null==t&&null==e&&(t=e=n=0,canCellBeActive(t,e)))return{row:t,cell:e,posX:e};var r=gotoRight(t,e,n);if(r)return r;for(var i=null,o=getDataLengthIncludingAddNew();++t<o;)if(i=findFirstFocusableCell(t),null!==i)return{row:t,cell:i,posX:i};return null}function gotoPrev(t,e,n){if(null==t&&null==e&&(t=getDataLengthIncludingAddNew()-1,e=n=columns.length-1,canCellBeActive(t,e)))return{row:t,cell:e,posX:e};for(var r,i;!r&&!(r=gotoLeft(t,e,n));){if(--t<0)return null;e=0,i=findLastFocusableCell(t),null!==i&&(r={row:t,cell:i,posX:i})}return r}function navigateRight(){return navigate(\"right\")}function navigateLeft(){return navigate(\"left\")}function navigateDown(){return navigate(\"down\")}function navigateUp(){return navigate(\"up\")}function navigateNext(){return navigate(\"next\")}function navigatePrev(){return navigate(\"prev\")}function navigate(t){if(!options.enableCellNavigation)return!1;if(!activeCellNode&&\"prev\"!=t&&\"next\"!=t)return!1;if(!getEditorLock().commitCurrentEdit())return!0;setFocus();var e={up:-1,down:1,left:-1,right:1,prev:-1,next:1};tabbingDirection=e[t];var n={up:gotoUp,down:gotoDown,left:gotoLeft,right:gotoRight,prev:gotoPrev,next:gotoNext},r=n[t],i=r(activeRow,activeCell,activePosX);if(i){var o=i.row==getDataLength();return scrollCellIntoView(i.row,i.cell,!o),setActiveCellInternal(getCellNode(i.row,i.cell)),activePosX=i.posX,!0}return setActiveCellInternal(getCellNode(activeRow,activeCell)),!1}function getCellNode(t,e){return rowsCache[t]?(ensureCellNodesInRowsCache(t),rowsCache[t].cellNodesByColumnIdx[e]):null}function setActiveCell(t,e){initialized&&(t>getDataLength()||0>t||e>=columns.length||0>e||options.enableCellNavigation&&(scrollCellIntoView(t,e,!1),setActiveCellInternal(getCellNode(t,e),!1)))}function canCellBeActive(t,e){if(!options.enableCellNavigation||t>=getDataLengthIncludingAddNew()||0>t||e>=columns.length||0>e)return!1;var n=data.getItemMetadata&&data.getItemMetadata(t);if(n&&\"boolean\"==typeof n.focusable)return n.focusable;var r=n&&n.columns;return r&&r[columns[e].id]&&\"boolean\"==typeof r[columns[e].id].focusable?r[columns[e].id].focusable:r&&r[e]&&\"boolean\"==typeof r[e].focusable?r[e].focusable:columns[e].focusable}function canCellBeSelected(t,e){if(t>=getDataLength()||0>t||e>=columns.length||0>e)return!1;var n=data.getItemMetadata&&data.getItemMetadata(t);if(n&&\"boolean\"==typeof n.selectable)return n.selectable;var r=n&&n.columns&&(n.columns[columns[e].id]||n.columns[e]);return r&&\"boolean\"==typeof r.selectable?r.selectable:columns[e].selectable}function gotoCell(t,e,n){if(initialized&&canCellBeActive(t,e)&&getEditorLock().commitCurrentEdit()){scrollCellIntoView(t,e,!1);var r=getCellNode(t,e);setActiveCellInternal(r,n||t===getDataLength()||options.autoEdit),currentEditor||setFocus()}}function commitCurrentEdit(){var t=getDataItem(activeRow),e=columns[activeCell];if(currentEditor){if(currentEditor.isValueChanged()){var n=currentEditor.validate();if(n.valid){if(activeRow<getDataLength()){var r={row:activeRow,cell:activeCell,editor:currentEditor,serializedValue:currentEditor.serializeValue(),prevSerializedValue:serializedEditorValue,execute:function(){this.editor.applyValue(t,this.serializedValue),updateRow(this.row),trigger(self.onCellChange,{row:activeRow,cell:activeCell,item:t})},undo:function(){this.editor.applyValue(t,this.prevSerializedValue),updateRow(this.row),trigger(self.onCellChange,{row:activeRow,cell:activeCell,item:t})}};options.editCommandHandler?(makeActiveCellNormal(),options.editCommandHandler(t,e,r)):(r.execute(),makeActiveCellNormal())}else{var i={};currentEditor.applyValue(i,currentEditor.serializeValue()),makeActiveCellNormal(),trigger(self.onAddNewRow,{item:i,column:e})}return!getEditorLock().isActive()}return $(activeCellNode).removeClass(\"invalid\"),$(activeCellNode).width(),$(activeCellNode).addClass(\"invalid\"),trigger(self.onValidationError,{editor:currentEditor,cellNode:activeCellNode,validationResults:n,row:activeRow,cell:activeCell,column:e}),currentEditor.focus(),!1}makeActiveCellNormal()}return!0}function cancelCurrentEdit(){return makeActiveCellNormal(),!0}function rowsToRanges(t){for(var e=[],n=columns.length-1,r=0;r<t.length;r++)e.push(new Slick.Range(t[r],0,t[r],n));return e}function getSelectedRows(){if(!selectionModel)throw\"Selection model is not set\";return selectedRows}function setSelectedRows(t){if(!selectionModel)throw\"Selection model is not set\";selectionModel.setSelectedRanges(rowsToRanges(t))}var defaults={explicitInitialization:!1,rowHeight:25,defaultColumnWidth:80,enableAddRow:!1,leaveSpaceForNewRows:!1,editable:!1,autoEdit:!0,enableCellNavigation:!0,enableColumnReorder:!0,asyncEditorLoading:!1,asyncEditorLoadDelay:100,forceFitColumns:!1,enableAsyncPostRender:!1,asyncPostRenderDelay:50,autoHeight:!1,editorLock:Slick.GlobalEditorLock,showHeaderRow:!1,headerRowHeight:25,showTopPanel:!1,topPanelHeight:25,formatterFactory:null,editorFactory:null,cellFlashingCssClass:\"flashing\",selectedCellCssClass:\"selected\",multiSelect:!0,enableTextSelectionOnCells:!1,dataItemColumnValueExtractor:null,fullWidthRows:!1,multiColumnSort:!1,defaultFormatter:defaultFormatter,forceSyncScrolling:!1,addNewRowCssClass:\"new-row\"},columnDefaults={name:\"\",resizable:!0,sortable:!1,minWidth:30,rerenderOnResize:!1,headerCssClass:null,defaultSortAsc:!0,focusable:!0,selectable:!0},th,h,ph,n,cj,page=0,offset=0,vScrollDir=1,initialized=!1,$container,uid=\"slickgrid_\"+Math.round(1e6*Math.random()),self=this,$focusSink,$focusSink2,$headerScroller,$headers,$headerRow,$headerRowScroller,$headerRowSpacer,$topPanelScroller,$topPanel,$viewport,$canvas,$style,$boundAncestors,stylesheet,columnCssRulesL,columnCssRulesR,viewportH,viewportW,canvasWidth,viewportHasHScroll,viewportHasVScroll,headerColumnWidthDiff=0,headerColumnHeightDiff=0,cellWidthDiff=0,cellHeightDiff=0,absoluteColumnMinWidth,tabbingDirection=1,activePosX,activeRow,activeCell,activeCellNode=null,currentEditor=null,serializedEditorValue,editController,rowsCache={},renderedRows=0,numVisibleRows,prevScrollTop=0,scrollTop=0,lastRenderedScrollTop=0,lastRenderedScrollLeft=0,prevScrollLeft=0,scrollLeft=0,selectionModel,selectedRows=[],plugins=[],cellCssClasses={},columnsById={},sortColumns=[],columnPosLeft=[],columnPosRight=[],h_editorLoader=null,h_render=null,h_postrender=null,postProcessedRows={},postProcessToRow=null,postProcessFromRow=null,counter_rows_rendered=0,counter_rows_removed=0,rowNodeFromLastMouseWheelEvent,zombieRowNodeFromLastMouseWheelEvent;this.debug=function(){var t=\"\";t+=\"\\ncounter_rows_rendered:  \"+counter_rows_rendered,t+=\"\\ncounter_rows_removed:  \"+counter_rows_removed,t+=\"\\nrenderedRows:  \"+renderedRows,t+=\"\\nnumVisibleRows:  \"+numVisibleRows,t+=\"\\nmaxSupportedCssHeight:  \"+maxSupportedCssHeight,t+=\"\\nn(umber of pages):  \"+n,t+=\"\\n(current) page:  \"+page,t+=\"\\npage height (ph):  \"+ph,t+=\"\\nvScrollDir:  \"+vScrollDir,alert(t)},this.eval=function(expr){return eval(expr)},$.extend(this,{slickGridVersion:\"2.1\",onScroll:new Slick.Event,onSort:new Slick.Event,onHeaderMouseEnter:new Slick.Event,onHeaderMouseLeave:new Slick.Event,onHeaderContextMenu:new Slick.Event,onHeaderClick:new Slick.Event,onHeaderCellRendered:new Slick.Event,onBeforeHeaderCellDestroy:new Slick.Event,onHeaderRowCellRendered:new Slick.Event,onBeforeHeaderRowCellDestroy:new Slick.Event,onMouseEnter:new Slick.Event,onMouseLeave:new Slick.Event,onClick:new Slick.Event,onDblClick:new Slick.Event,onContextMenu:new Slick.Event,onKeyDown:new Slick.Event,onAddNewRow:new Slick.Event,onValidationError:new Slick.Event,onViewportChanged:new Slick.Event,onColumnsReordered:new Slick.Event,onColumnsResized:new Slick.Event,onCellChange:new Slick.Event,onBeforeEditCell:new Slick.Event,onBeforeCellEditorDestroy:new Slick.Event,onBeforeDestroy:new Slick.Event,onActiveCellChanged:new Slick.Event,onActiveCellPositionChanged:new Slick.Event,onDragInit:new Slick.Event,onDragStart:new Slick.Event,onDrag:new Slick.Event,onDragEnd:new Slick.Event,onSelectedRowsChanged:new Slick.Event,onCellCssStylesChanged:new Slick.Event,registerPlugin:registerPlugin,unregisterPlugin:unregisterPlugin,getColumns:getColumns,setColumns:setColumns,getColumnIndex:getColumnIndex,updateColumnHeader:updateColumnHeader,setSortColumn:setSortColumn,setSortColumns:setSortColumns,getSortColumns:getSortColumns,autosizeColumns:autosizeColumns,getOptions:getOptions,setOptions:setOptions,getData:getData,getDataLength:getDataLength,getDataItem:getDataItem,setData:setData,getSelectionModel:getSelectionModel,setSelectionModel:setSelectionModel,getSelectedRows:getSelectedRows,setSelectedRows:setSelectedRows,getContainerNode:getContainerNode,render:render,invalidate:invalidate,invalidateRow:invalidateRow,invalidateRows:invalidateRows,invalidateAllRows:invalidateAllRows,updateCell:updateCell,updateRow:updateRow,getViewport:getVisibleRange,getRenderedRange:getRenderedRange,resizeCanvas:resizeCanvas,updateRowCount:updateRowCount,scrollRowIntoView:scrollRowIntoView,scrollRowToTop:scrollRowToTop,scrollCellIntoView:scrollCellIntoView,getCanvasNode:getCanvasNode,focus:setFocus,getCellFromPoint:getCellFromPoint,getCellFromEvent:getCellFromEvent,getActiveCell:getActiveCell,setActiveCell:setActiveCell,getActiveCellNode:getActiveCellNode,getActiveCellPosition:getActiveCellPosition,resetActiveCell:resetActiveCell,editActiveCell:makeActiveCellEditable,getCellEditor:getCellEditor,getCellNode:getCellNode,getCellNodeBox:getCellNodeBox,canCellBeSelected:canCellBeSelected,canCellBeActive:canCellBeActive,navigatePrev:navigatePrev,navigateNext:navigateNext,navigateUp:navigateUp,navigateDown:navigateDown,navigateLeft:navigateLeft,navigateRight:navigateRight,navigatePageUp:navigatePageUp,navigatePageDown:navigatePageDown,gotoCell:gotoCell,getTopPanel:getTopPanel,setTopPanelVisibility:setTopPanelVisibility,setHeaderRowVisibility:setHeaderRowVisibility,getHeaderRow:getHeaderRow,getHeaderRowColumn:getHeaderRowColumn,getGridPosition:getGridPosition,flashCell:flashCell,addCellCssStyles:addCellCssStyles,setCellCssStyles:setCellCssStyles,removeCellCssStyles:removeCellCssStyles,getCellCssStyles:getCellCssStyles,init:finishInitialization,destroy:destroy,getEditorLock:getEditorLock,getEditController:getEditController}),init()}var scrollbarDimensions,maxSupportedCssHeight;return SlickGrid}),define(\"slick_grid/plugins/slick.rowselectionmodel\",[\"jquery\",\"../slick.core\"],function(t,e){function n(n){function r(e){y=t.extend(!0,{},x,n),g=e,w.subscribe(g.onActiveCellChanged,o(d)),w.subscribe(g.onKeyDown,o(f)),w.subscribe(g.onClick,o(_))}function i(){w.unsubscribeAll()}function o(t){return function(){m||(m=!0,t.apply(this,arguments),m=!1)}}function s(t){for(var e=[],n=0;n<t.length;n++)for(var r=t[n].fromRow;r<=t[n].toRow;r++)e.push(r);return e}function a(t){for(var n=[],r=g.getColumns().length-1,i=0;i<t.length;i++)n.push(new e.Range(t[i],0,t[i],r));return n}function l(t,e){var n,r=[];for(n=t;e>=n;n++)r.push(n);for(n=e;t>n;n++)r.push(n);return r}function u(){return s(v)}function c(t){p(a(t))}function p(t){v=t,b.onSelectedRangesChanged.notify(v)}function h(){return v}function d(t,n){y.selectActiveRow&&null!=n.row&&p([new e.Range(n.row,0,n.row,g.getColumns().length-1)])}function f(t){var e=g.getActiveCell();if(e&&t.shiftKey&&!t.ctrlKey&&!t.altKey&&!t.metaKey&&(38==t.which||40==t.which)){var n=u();n.sort(function(t,e){return t-e}),n.length||(n=[e.row]);var r,i=n[0],o=n[n.length-1];r=40==t.which?e.row<o||i==o?++o:++i:e.row<o?--o:--i,r>=0&&r<g.getDataLength()&&(g.scrollRowIntoView(r),v=a(l(i,o)),p(v)),t.preventDefault(),t.stopPropagation()}}function _(e){var n=g.getCellFromEvent(e);if(!n||!g.canCellBeActive(n.row,n.cell))return!1;if(!g.getOptions().multiSelect||!e.ctrlKey&&!e.shiftKey&&!e.metaKey)return!1;var r=s(v),i=t.inArray(n.row,r);if(-1===i&&(e.ctrlKey||e.metaKey))r.push(n.row),g.setActiveCell(n.row,n.cell);else if(-1!==i&&(e.ctrlKey||e.metaKey))r=t.grep(r,function(t){return t!==n.row}),g.setActiveCell(n.row,n.cell);else if(r.length&&e.shiftKey){var o=r.pop(),l=Math.min(n.row,o),u=Math.max(n.row,o);r=[];for(var c=l;u>=c;c++)c!==o&&r.push(c);r.push(o),g.setActiveCell(n.row,n.cell)}return v=a(r),p(v),e.stopImmediatePropagation(),!0}var g,m,y,v=[],b=this,w=new e.EventHandler,x={selectActiveRow:!0};t.extend(this,{getSelectedRows:u,setSelectedRows:c,getSelectedRanges:h,setSelectedRanges:p,init:r,destroy:i,onSelectedRangesChanged:new e.Event})}return n}),function(t){\"function\"==typeof define&&define.amd?define(\"jquery_ui/core\",[\"jquery\"],t):t(jQuery)}(function(t){function e(e,r){var i,o,s,a=e.nodeName.toLowerCase();return\"area\"===a?(i=e.parentNode,o=i.name,e.href&&o&&\"map\"===i.nodeName.toLowerCase()?(s=t(\"img[usemap='#\"+o+\"']\")[0],!!s&&n(s)):!1):(/input|select|textarea|button|object/.test(a)?!e.disabled:\"a\"===a?e.href||r:r)&&n(e)}function n(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return\"hidden\"===t.css(this,\"visibility\")}).length}t.ui=t.ui||{},t.extend(t.ui,{version:\"1.11.2\",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({scrollParent:function(e){var n=this.css(\"position\"),r=\"absolute\"===n,i=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var e=t(this);return r&&\"static\"===e.css(\"position\")?!1:i.test(e.css(\"overflow\")+e.css(\"overflow-y\")+e.css(\"overflow-x\"))}).eq(0);return\"fixed\"!==n&&o.length?o:t(this[0].ownerDocument||document)},uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id=\"bk-ui-id-\"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^bk-ui-id-\\d+$/.test(this.id)&&t(this).removeAttr(\"id\")})}}),t.extend(t.expr[\":\"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(n){return!!t.data(n,e)}}):function(e,n,r){return!!t.data(e,r[3])},focusable:function(n){return e(n,!isNaN(t.attr(n,\"tabindex\")))},tabbable:function(n){var r=t.attr(n,\"tabindex\"),i=isNaN(r);return(i||r>=0)&&e(n,!i)}}),t(\"<a>\").outerWidth(1).jquery||t.each([\"Width\",\"Height\"],function(e,n){function r(e,n,r,o){return t.each(i,function(){n-=parseFloat(t.css(e,\"padding\"+this))||0,r&&(n-=parseFloat(t.css(e,\"border\"+this+\"Width\"))||0),o&&(n-=parseFloat(t.css(e,\"margin\"+this))||0)}),n}var i=\"Width\"===n?[\"Left\",\"Right\"]:[\"Top\",\"Bottom\"],o=n.toLowerCase(),s={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn[\"inner\"+n]=function(e){return void 0===e?s[\"inner\"+n].call(this):this.each(function(){t(this).css(o,r(this,e)+\"px\")})},t.fn[\"outer\"+n]=function(e,i){return\"number\"!=typeof e?s[\"outer\"+n].call(this,e):this.each(function(){t(this).css(o,r(this,e,!0,i)+\"px\")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t(\"<a>\").data(\"a-b\",\"a\").removeData(\"a-b\").data(\"a-b\")&&(t.fn.removeData=function(e){return function(n){return arguments.length?e.call(this,t.camelCase(n)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\\w.]+/.exec(navigator.userAgent.toLowerCase()),t.fn.extend({focus:function(e){return function(n,r){return\"number\"==typeof n?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),r&&r.call(e)},n)}):e.apply(this,arguments)}}(t.fn.focus),disableSelection:function(){var t=\"onselectstart\"in document.createElement(\"div\")?\"selectstart\":\"mousedown\";return function(){return this.bind(t+\".bk-ui-disableSelection\",function(t){t.preventDefault()})}}(),enableSelection:function(){return this.unbind(\".bk-ui-disableSelection\")},zIndex:function(e){if(void 0!==e)return this.css(\"zIndex\",e);if(this.length)for(var n,r,i=t(this[0]);i.length&&i[0]!==document;){if(n=i.css(\"position\"),(\"absolute\"===n||\"relative\"===n||\"fixed\"===n)&&(r=parseInt(i.css(\"zIndex\"),10),!isNaN(r)&&0!==r))return r;i=i.parent()}return 0}}),t.ui.plugin={add:function(e,n,r){var i,o=t.ui[e].prototype;for(i in r)o.plugins[i]=o.plugins[i]||[],o.plugins[i].push([n,r[i]])},call:function(t,e,n,r){var i,o=t.plugins[e];if(o&&(r||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(i=0;i<o.length;i++)t.options[o[i][0]]&&o[i][1].apply(t.element,n)}}}),function(t){\"function\"==typeof define&&define.amd?define(\"jquery_ui/widget\",[\"jquery\"],t):t(jQuery)}(function(t){var e=0,n=Array.prototype.slice;return t.cleanData=function(e){return function(n){var r,i,o;for(o=0;null!=(i=n[o]);o++)try{r=t._data(i,\"events\"),r&&r.remove&&t(i).triggerHandler(\"remove\")}catch(s){}e(n)}}(t.cleanData),t.widget=function(e,n,r){var i,o,s,a,l={},u=e.split(\".\")[0];return e=e.split(\".\")[1],i=u+\"-\"+e,r||(r=n,n=t.Widget),t.expr[\":\"][i.toLowerCase()]=function(e){return!!t.data(e,i)},t[u]=t[u]||{},o=t[u][e],s=t[u][e]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new s(t,e)},t.extend(s,o,{version:r.version,_proto:t.extend({},r),_childConstructors:[]}),a=new n,a.options=t.widget.extend({},a.options),t.each(r,function(e,r){return t.isFunction(r)?void(l[e]=function(){var t=function(){return n.prototype[e].apply(this,arguments)},i=function(t){return n.prototype[e].apply(this,t)};return function(){var e,n=this._super,o=this._superApply;return this._super=t,this._superApply=i,e=r.apply(this,arguments),this._super=n,this._superApply=o,e}}()):void(l[e]=r)}),s.prototype=t.widget.extend(a,{widgetEventPrefix:o?a.widgetEventPrefix||e:e},l,{constructor:s,namespace:u,widgetName:e,widgetFullName:i}),o?(t.each(o._childConstructors,function(e,n){var r=n.prototype;t.widget(r.namespace+\".\"+r.widgetName,s,n._proto)}),delete o._childConstructors):n._childConstructors.push(s),t.widget.bridge(e,s),s},t.widget.extend=function(e){for(var r,i,o=n.call(arguments,1),s=0,a=o.length;a>s;s++)for(r in o[s])i=o[s][r],o[s].hasOwnProperty(r)&&void 0!==i&&(e[r]=t.isPlainObject(i)?t.isPlainObject(e[r])?t.widget.extend({},e[r],i):t.widget.extend({},i):i);return e},t.widget.bridge=function(e,r){var i=r.prototype.widgetFullName||e;t.fn[e]=function(o){var s=\"string\"==typeof o,a=n.call(arguments,1),l=this;return o=!s&&a.length?t.widget.extend.apply(null,[o].concat(a)):o,this.each(s?function(){var n,r=t.data(this,i);return\"instance\"===o?(l=r,!1):r?t.isFunction(r[o])&&\"_\"!==o.charAt(0)?(n=r[o].apply(r,a),n!==r&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0):t.error(\"no such method '\"+o+\"' for \"+e+\" widget instance\"):t.error(\"cannot call methods on \"+e+\" prior to initialization; attempted to call method '\"+o+\"'\")}:function(){var e=t.data(this,i);e?(e.option(o||{}),e._init&&e._init()):t.data(this,i,new r(o,this))}),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:\"widget\",widgetEventPrefix:\"\",defaultElement:\"<div>\",options:{disabled:!1,create:null},_createWidget:function(n,r){r=t(r||this.defaultElement||this)[0],this.element=t(r),this.uuid=e++,this.eventNamespace=\".\"+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),r!==this&&(t.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===r&&this.destroy()}}),this.document=t(r.style?r.ownerDocument:r.document||r),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),n),this._create(),this._trigger(\"create\",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr(\"aria-disabled\").removeClass(this.widgetFullName+\"-disabled bk-ui-state-disabled\"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass(\"bk-ui-state-hover\"),this.focusable.removeClass(\"bk-ui-state-focus\")},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var r,i,o,s=e;if(0===arguments.length)return t.widget.extend({},this.options);if(\"string\"==typeof e)if(s={},r=e.split(\".\"),e=r.shift(),r.length){for(i=s[e]=t.widget.extend({},this.options[e]),o=0;o<r.length-1;o++)i[r[o]]=i[r[o]]||{},i=i[r[o]];if(e=r.pop(),1===arguments.length)return void 0===i[e]?null:i[e];i[e]=n}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];s[e]=n}return this._setOptions(s),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,\"disabled\"===t&&(this.widget().toggleClass(this.widgetFullName+\"-disabled\",!!e),e&&(this.hoverable.removeClass(\"bk-ui-state-hover\"),this.focusable.removeClass(\"bk-ui-state-focus\"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(e,n,r){var i,o=this;\"boolean\"!=typeof e&&(r=n,n=e,e=!1),r?(n=i=t(n),this.bindings=this.bindings.add(n)):(r=n,n=this.element,i=this.widget()),t.each(r,function(r,s){function a(){return e||o.options.disabled!==!0&&!t(this).hasClass(\"bk-ui-state-disabled\")?(\"string\"==typeof s?o[s]:s).apply(o,arguments):void 0}\"string\"!=typeof s&&(a.guid=s.guid=s.guid||a.guid||t.guid++);var l=r.match(/^([\\w:-]*)\\s*(.*)$/),u=l[1]+o.eventNamespace,c=l[2];c?i.delegate(c,u,a):n.bind(u,a)})},_off:function(e,n){n=(n||\"\").split(\" \").join(this.eventNamespace+\" \")+this.eventNamespace,e.unbind(n).undelegate(n),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function n(){return(\"string\"==typeof t?r[t]:t).apply(r,arguments)}var r=this;return setTimeout(n,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass(\"bk-ui-state-hover\")},mouseleave:function(e){t(e.currentTarget).removeClass(\"bk-ui-state-hover\")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass(\"bk-ui-state-focus\")},focusout:function(e){t(e.currentTarget).removeClass(\"bk-ui-state-focus\")}})},_trigger:function(e,n,r){var i,o,s=this.options[e];if(r=r||{},n=t.Event(n),n.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(i in o)i in n||(n[i]=o[i]);return this.element.trigger(n,r),!(t.isFunction(s)&&s.apply(this.element[0],[n].concat(r))===!1||n.isDefaultPrevented())}},t.each({show:\"fadeIn\",hide:\"fadeOut\"},function(e,n){t.Widget.prototype[\"_\"+e]=function(r,i,o){\"string\"==typeof i&&(i={effect:i});var s,a=i?i===!0||\"number\"==typeof i?n:i.effect||n:e;i=i||{},\"number\"==typeof i&&(i={duration:i}),s=!t.isEmptyObject(i),i.complete=o,i.delay&&r.delay(i.delay),s&&t.effects&&t.effects.effect[a]?r[e](i):a!==e&&r[a]?r[a](i.duration,i.easing,o):r.queue(function(n){t(this)[e](),o&&o.call(r[0]),n()})}}),t.widget}),function(t){\"function\"==typeof define&&define.amd?define(\"jquery_ui/mouse\",[\"jquery\",\"./widget\"],t):t(jQuery)}(function(t){var e=!1;return t(document).mouseup(function(){e=!1}),t.widget(\"ui.mouse\",{version:\"1.11.2\",options:{cancel:\"input,textarea,button,select,option\",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind(\"mousedown.\"+this.widgetName,function(t){return e._mouseDown(t)}).bind(\"click.\"+this.widgetName,function(n){return!0===t.data(n.target,e.widgetName+\".preventClickEvent\")?(t.removeData(n.target,e.widgetName+\".preventClickEvent\"),n.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind(\".\"+this.widgetName),this._mouseMoveDelegate&&this.document.unbind(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).unbind(\"mouseup.\"+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!e){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var r=this,i=1===n.which,o=\"string\"==typeof this.options.cancel&&n.target.nodeName?t(n.target).closest(this.options.cancel).length:!1;return i&&!o&&this._mouseCapture(n)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){r.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=this._mouseStart(n)!==!1,!this._mouseStarted)?(n.preventDefault(),!0):(!0===t.data(n.target,this.widgetName+\".preventClickEvent\")&&t.removeData(n.target,this.widgetName+\".preventClickEvent\"),this._mouseMoveDelegate=function(t){return r._mouseMove(t)},this._mouseUpDelegate=function(t){return r._mouseUp(t)},this.document.bind(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).bind(\"mouseup.\"+this.widgetName,this._mouseUpDelegate),n.preventDefault(),e=!0,!0)):!0}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)\n",
        "                },_mouseUp:function(n){return this.document.unbind(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).unbind(\"mouseup.\"+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,n.target===this._mouseDownEvent.target&&t.data(n.target,this.widgetName+\".preventClickEvent\",!0),this._mouseStop(n)),e=!1,!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}),function(t){\"function\"==typeof define&&define.amd?define(\"jquery_ui/sortable\",[\"jquery\",\"./core\",\"./mouse\",\"./widget\"],t):t(jQuery)}(function(t){return t.widget(\"ui.sortable\",t.ui.mouse,{version:\"1.11.2\",widgetEventPrefix:\"sort\",ready:!1,options:{appendTo:\"parent\",axis:!1,connectWith:!1,containment:!1,cursor:\"auto\",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:\"original\",items:\"> *\",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:\"default\",tolerance:\"intersect\",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,n){return t>=e&&e+n>t},_isFloating:function(t){return/left|right/.test(t.css(\"float\"))||/inline|table-cell/.test(t.css(\"display\"))},_create:function(){var t=this.options;this.containerCache={},this.element.addClass(\"bk-ui-sortable\"),this.refresh(),this.floating=this.items.length?\"x\"===t.axis||this._isFloating(this.items[0].item):!1,this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),\"handle\"===t&&this._setHandleClassName()},_setHandleClassName:function(){this.element.find(\".bk-ui-sortable-handle\").removeClass(\"bk-ui-sortable-handle\"),t.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass(\"bk-ui-sortable-handle\")})},_destroy:function(){this.element.removeClass(\"bk-ui-sortable bk-ui-sortable-disabled\").find(\".bk-ui-sortable-handle\").removeClass(\"bk-ui-sortable-handle\"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+\"-item\");return this},_mouseCapture:function(e,n){var r=null,i=!1,o=this;return this.reverting?!1:this.options.disabled||\"static\"===this.options.type?!1:(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,o.widgetName+\"-item\")===o?(r=t(this),!1):void 0}),t.data(e.target,o.widgetName+\"-item\")===o&&(r=t(e.target)),r&&(!this.options.handle||n||(t(this.options.handle,r).find(\"*\").addBack().each(function(){this===e.target&&(i=!0)}),i))?(this.currentItem=r,this._removeCurrentsFromItems(),!0):!1)},_mouseStart:function(e,n,r){var i,o,s=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css(\"position\",\"absolute\"),this.cssPosition=this.helper.css(\"position\"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),s.containment&&this._setContainment(),s.cursor&&\"auto\"!==s.cursor&&(o=this.document.find(\"body\"),this.storedCursor=o.css(\"cursor\"),o.css(\"cursor\",s.cursor),this.storedStylesheet=t(\"<style>*{ cursor: \"+s.cursor+\" !important; }</style>\").appendTo(o)),s.opacity&&(this.helper.css(\"opacity\")&&(this._storedOpacity=this.helper.css(\"opacity\")),this.helper.css(\"opacity\",s.opacity)),s.zIndex&&(this.helper.css(\"zIndex\")&&(this._storedZIndex=this.helper.css(\"zIndex\")),this.helper.css(\"zIndex\",s.zIndex)),this.scrollParent[0]!==document&&\"HTML\"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger(\"start\",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!r)for(i=this.containers.length-1;i>=0;i--)this.containers[i]._trigger(\"activate\",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass(\"bk-ui-sortable-helper\"),this._mouseDrag(e),!0},_mouseDrag:function(e){var n,r,i,o,s=this.options,a=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo(\"absolute\"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&\"HTML\"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<s.scrollSensitivity?this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+s.scrollSpeed:e.pageY-this.overflowOffset.top<s.scrollSensitivity&&(this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-s.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<s.scrollSensitivity?this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+s.scrollSpeed:e.pageX-this.overflowOffset.left<s.scrollSensitivity&&(this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-s.scrollSpeed)):(e.pageY-t(document).scrollTop()<s.scrollSensitivity?a=t(document).scrollTop(t(document).scrollTop()-s.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<s.scrollSensitivity&&(a=t(document).scrollTop(t(document).scrollTop()+s.scrollSpeed)),e.pageX-t(document).scrollLeft()<s.scrollSensitivity?a=t(document).scrollLeft(t(document).scrollLeft()-s.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<s.scrollSensitivity&&(a=t(document).scrollLeft(t(document).scrollLeft()+s.scrollSpeed))),a!==!1&&t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo(\"absolute\"),this.options.axis&&\"y\"===this.options.axis||(this.helper[0].style.left=this.position.left+\"px\"),this.options.axis&&\"x\"===this.options.axis||(this.helper[0].style.top=this.position.top+\"px\"),n=this.items.length-1;n>=0;n--)if(r=this.items[n],i=r.item[0],o=this._intersectsWithPointer(r),o&&r.instance===this.currentContainer&&i!==this.currentItem[0]&&this.placeholder[1===o?\"next\":\"prev\"]()[0]!==i&&!t.contains(this.placeholder[0],i)&&(\"semi-dynamic\"===this.options.type?!t.contains(this.element[0],i):!0)){if(this.direction=1===o?\"down\":\"up\",\"pointer\"!==this.options.tolerance&&!this._intersectsWithSides(r))break;this._rearrange(e,r),this._trigger(\"change\",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger(\"sort\",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,n){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var r=this,i=this.placeholder.offset(),o=this.options.axis,s={};o&&\"x\"!==o||(s.left=i.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),o&&\"y\"!==o||(s.top=i.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(s,parseInt(this.options.revert,10)||500,function(){r._clear(e)})}else this._clear(e,n);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),\"original\"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass(\"bk-ui-sortable-helper\"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger(\"deactivate\",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger(\"out\",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),\"original\"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var n=this._getItemsAsjQuery(e&&e.connected),r=[];return e=e||{},t(n).each(function(){var n=(t(e.item||this).attr(e.attribute||\"id\")||\"\").match(e.expression||/(.+)[\\-=_](.+)/);n&&r.push((e.key||n[1]+\"[]\")+\"=\"+(e.key&&e.expression?n[1]:n[2]))}),!r.length&&e.key&&r.push(e.key+\"=\"),r.join(\"&\")},toArray:function(e){var n=this._getItemsAsjQuery(e&&e.connected),r=[];return e=e||{},n.each(function(){r.push(t(e.item||this).attr(e.attribute||\"id\")||\"\")}),r},_intersectsWith:function(t){var e=this.positionAbs.left,n=e+this.helperProportions.width,r=this.positionAbs.top,i=r+this.helperProportions.height,o=t.left,s=o+t.width,a=t.top,l=a+t.height,u=this.offset.click.top,c=this.offset.click.left,p=\"x\"===this.options.axis||r+u>a&&l>r+u,h=\"y\"===this.options.axis||e+c>o&&s>e+c,d=p&&h;return\"pointer\"===this.options.tolerance||this.options.forcePointerForContainers||\"pointer\"!==this.options.tolerance&&this.helperProportions[this.floating?\"width\":\"height\"]>t[this.floating?\"width\":\"height\"]?d:o<e+this.helperProportions.width/2&&n-this.helperProportions.width/2<s&&a<r+this.helperProportions.height/2&&i-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e=\"x\"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),n=\"y\"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),r=e&&n,i=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return r?this.floating?o&&\"right\"===o||\"down\"===i?2:1:i&&(\"down\"===i?2:1):!1},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),r=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection();return this.floating&&i?\"right\"===i&&n||\"left\"===i&&!n:r&&(\"down\"===r&&e||\"up\"===r&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?\"down\":\"up\")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?\"right\":\"left\")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function n(){a.push(this)}var r,i,o,s,a=[],l=[],u=this._connectWith();if(u&&e)for(r=u.length-1;r>=0;r--)for(o=t(u[r]),i=o.length-1;i>=0;i--)s=t.data(o[i],this.widgetFullName),s&&s!==this&&!s.options.disabled&&l.push([t.isFunction(s.options.items)?s.options.items.call(s.element):t(s.options.items,s.element).not(\".bk-ui-sortable-helper\").not(\".bk-ui-sortable-placeholder\"),s]);for(l.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(\".bk-ui-sortable-helper\").not(\".bk-ui-sortable-placeholder\"),this]),r=l.length-1;r>=0;r--)l[r][0].each(n);return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(\":data(\"+this.widgetName+\"-item)\");this.items=t.grep(this.items,function(t){for(var n=0;n<e.length;n++)if(e[n]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var n,r,i,o,s,a,l,u,c=this.items,p=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(n=h.length-1;n>=0;n--)for(i=t(h[n]),r=i.length-1;r>=0;r--)o=t.data(i[r],this.widgetFullName),o&&o!==this&&!o.options.disabled&&(p.push([t.isFunction(o.options.items)?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(n=p.length-1;n>=0;n--)for(s=p[n][1],a=p[n][0],r=0,u=a.length;u>r;r++)l=t(a[r]),l.data(this.widgetName+\"-item\",s),c.push({item:l,instance:s,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var n,r,i,o;for(n=this.items.length-1;n>=0;n--)r=this.items[n],r.instance!==this.currentContainer&&this.currentContainer&&r.item[0]!==this.currentItem[0]||(i=this.options.toleranceElement?t(this.options.toleranceElement,r.item):r.item,e||(r.width=i.outerWidth(),r.height=i.outerHeight()),o=i.offset(),r.left=o.left,r.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(n=this.containers.length-1;n>=0;n--)o=this.containers[n].element.offset(),this.containers[n].containerCache.left=o.left,this.containers[n].containerCache.top=o.top,this.containers[n].containerCache.width=this.containers[n].element.outerWidth(),this.containers[n].containerCache.height=this.containers[n].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var n,r=e.options;r.placeholder&&r.placeholder.constructor!==String||(n=r.placeholder,r.placeholder={element:function(){var r=e.currentItem[0].nodeName.toLowerCase(),i=t(\"<\"+r+\">\",e.document[0]).addClass(n||e.currentItem[0].className+\" bk-ui-sortable-placeholder\").removeClass(\"bk-ui-sortable-helper\");return\"tr\"===r?e.currentItem.children().each(function(){t(\"<td>&#160;</td>\",e.document[0]).attr(\"colspan\",t(this).attr(\"colspan\")||1).appendTo(i)}):\"img\"===r&&i.attr(\"src\",e.currentItem.attr(\"src\")),n||i.css(\"visibility\",\"hidden\"),i},update:function(t,i){(!n||r.forcePlaceholderSize)&&(i.height()||i.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css(\"paddingTop\")||0,10)-parseInt(e.currentItem.css(\"paddingBottom\")||0,10)),i.width()||i.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css(\"paddingLeft\")||0,10)-parseInt(e.currentItem.css(\"paddingRight\")||0,10)))}}),e.placeholder=t(r.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),r.placeholder.update(e,e.placeholder)},_contactContainers:function(e){var n,r,i,o,s,a,l,u,c,p,h=null,d=null;for(n=this.containers.length-1;n>=0;n--)if(!t.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(h&&t.contains(this.containers[n].element[0],h.element[0]))continue;h=this.containers[n],d=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger(\"out\",e,this._uiHash(this)),this.containers[n].containerCache.over=0);if(h)if(1===this.containers.length)this.containers[d].containerCache.over||(this.containers[d]._trigger(\"over\",e,this._uiHash(this)),this.containers[d].containerCache.over=1);else{for(i=1e4,o=null,c=h.floating||this._isFloating(this.currentItem),s=c?\"left\":\"top\",a=c?\"width\":\"height\",p=c?\"clientX\":\"clientY\",r=this.items.length-1;r>=0;r--)t.contains(this.containers[d].element[0],this.items[r].item[0])&&this.items[r].item[0]!==this.currentItem[0]&&(l=this.items[r].item.offset()[s],u=!1,e[p]-l>this.items[r][a]/2&&(u=!0),Math.abs(e[p]-l)<i&&(i=Math.abs(e[p]-l),o=this.items[r],this.direction=u?\"up\":\"down\"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[d])return void(this.currentContainer.containerCache.over||(this.containers[d]._trigger(\"over\",e,this._uiHash()),this.currentContainer.containerCache.over=1));o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[d].element,!0),this._trigger(\"change\",e,this._uiHash()),this.containers[d]._trigger(\"change\",e,this._uiHash(this)),this.currentContainer=this.containers[d],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[d]._trigger(\"over\",e,this._uiHash(this)),this.containers[d].containerCache.over=1}},_createHelper:function(e){var n=this.options,r=t.isFunction(n.helper)?t(n.helper.apply(this.element[0],[e,this.currentItem])):\"clone\"===n.helper?this.currentItem.clone():this.currentItem;return r.parents(\"body\").length||t(\"parent\"!==n.appendTo?n.appendTo:this.currentItem[0].parentNode)[0].appendChild(r[0]),r[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css(\"position\"),top:this.currentItem.css(\"top\"),left:this.currentItem.css(\"left\")}),(!r[0].style.width||n.forceHelperSize)&&r.width(this.currentItem.width()),(!r[0].style.height||n.forceHelperSize)&&r.height(this.currentItem.height()),r},_adjustOffsetFromHelper:function(e){\"string\"==typeof e&&(e=e.split(\" \")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),\"left\"in e&&(this.offset.click.left=e.left+this.margins.left),\"right\"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),\"top\"in e&&(this.offset.click.top=e.top+this.margins.top),\"bottom\"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return\"absolute\"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&\"html\"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css(\"borderTopWidth\"),10)||0),left:e.left+(parseInt(this.offsetParent.css(\"borderLeftWidth\"),10)||0)}},_getRelativeOffset:function(){if(\"relative\"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css(\"top\"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css(\"left\"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css(\"marginLeft\"),10)||0,top:parseInt(this.currentItem.css(\"marginTop\"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,r,i=this.options;\"parent\"===i.containment&&(i.containment=this.helper[0].parentNode),(\"document\"===i.containment||\"window\"===i.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t(\"document\"===i.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t(\"document\"===i.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(e=t(i.containment)[0],n=t(i.containment).offset(),r=\"hidden\"!==t(e).css(\"overflow\"),this.containment=[n.left+(parseInt(t(e).css(\"borderLeftWidth\"),10)||0)+(parseInt(t(e).css(\"paddingLeft\"),10)||0)-this.margins.left,n.top+(parseInt(t(e).css(\"borderTopWidth\"),10)||0)+(parseInt(t(e).css(\"paddingTop\"),10)||0)-this.margins.top,n.left+(r?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css(\"borderLeftWidth\"),10)||0)-(parseInt(t(e).css(\"paddingRight\"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(r?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css(\"borderTopWidth\"),10)||0)-(parseInt(t(e).css(\"paddingBottom\"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,n){n||(n=this.position);var r=\"absolute\"===e?1:-1,i=\"absolute\"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(i[0].tagName);return{top:n.top+this.offset.relative.top*r+this.offset.parent.top*r-(\"fixed\"===this.cssPosition?-this.scrollParent.scrollTop():o?0:i.scrollTop())*r,left:n.left+this.offset.relative.left*r+this.offset.parent.left*r-(\"fixed\"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:i.scrollLeft())*r}},_generatePosition:function(e){var n,r,i=this.options,o=e.pageX,s=e.pageY,a=\"absolute\"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return\"relative\"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(s=this.containment[3]+this.offset.click.top)),i.grid&&(n=this.originalPageY+Math.round((s-this.originalPageY)/i.grid[1])*i.grid[1],s=this.containment?n-this.offset.click.top>=this.containment[1]&&n-this.offset.click.top<=this.containment[3]?n:n-this.offset.click.top>=this.containment[1]?n-i.grid[1]:n+i.grid[1]:n,r=this.originalPageX+Math.round((o-this.originalPageX)/i.grid[0])*i.grid[0],o=this.containment?r-this.offset.click.left>=this.containment[0]&&r-this.offset.click.left<=this.containment[2]?r:r-this.offset.click.left>=this.containment[0]?r-i.grid[0]:r+i.grid[0]:r)),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(\"fixed\"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(\"fixed\"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(t,e,n,r){n?n[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],\"down\"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var i=this.counter;this._delay(function(){i===this.counter&&this.refreshPositions(!r)})},_clear:function(t,e){function n(t,e,n){return function(r){n._trigger(t,r,e._uiHash(e))}}this.reverting=!1;var r,i=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(r in this._storedCSS)(\"auto\"===this._storedCSS[r]||\"static\"===this._storedCSS[r])&&(this._storedCSS[r]=\"\");this.currentItem.css(this._storedCSS).removeClass(\"bk-ui-sortable-helper\")}else this.currentItem.show();for(this.fromOutside&&!e&&i.push(function(t){this._trigger(\"receive\",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(\".bk-ui-sortable-helper\")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||i.push(function(t){this._trigger(\"update\",t,this._uiHash())}),this!==this.currentContainer&&(e||(i.push(function(t){this._trigger(\"remove\",t,this._uiHash())}),i.push(function(t){return function(e){t._trigger(\"receive\",e,this._uiHash(this))}}.call(this,this.currentContainer)),i.push(function(t){return function(e){t._trigger(\"update\",e,this._uiHash(this))}}.call(this,this.currentContainer)))),r=this.containers.length-1;r>=0;r--)e||i.push(n(\"deactivate\",this,this.containers[r])),this.containers[r].containerCache.over&&(i.push(n(\"out\",this,this.containers[r])),this.containers[r].containerCache.over=0);if(this.storedCursor&&(this.document.find(\"body\").css(\"cursor\",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css(\"opacity\",this._storedOpacity),this._storedZIndex&&this.helper.css(\"zIndex\",\"auto\"===this._storedZIndex?\"\":this._storedZIndex),this.dragging=!1,e||this._trigger(\"beforeStop\",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(r=0;r<i.length;r++)i[r].call(this,t);this._trigger(\"stop\",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var n=e||this;return{helper:n.helper,placeholder:n.placeholder||t([]),position:n.position,originalPosition:n.originalPosition,offset:n.positionAbs,item:n.currentItem,sender:e?e.element:null}}})}),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};define(\"widget/data_table\",[\"underscore\",\"jquery\",\"common/continuum_view\",\"common/has_properties\",\"common/collection\",\"slick_grid/slick.grid\",\"slick_grid/plugins/slick.rowselectionmodel\",\"jquery_ui/sortable\"],function(t,n,r,i,o,s,a){var l,u,c,p,h,d,f;return l=function(){function e(e){this.source=e,this.data=this.source.get(\"data\"),this.fields=t.keys(this.data)}return e.prototype.getLength=function(){return this.source.get_length()},e.prototype.getItem=function(t){var e,n,r,i,o;for(n={},o=this.fields,r=0,i=o.length;i>r;r++)e=o[r],n[e]=this.data[e][t];return n},e.prototype.getItemMetadata=function(){return null},e}(),c=function(n){function r(){return h=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(t){var e,n=this;return r.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",function(){return n.render()}),e=this.mget(\"source\"),this.listenTo(e,\"change:data\",function(){return n.updateGrid()}),this.listenTo(e,\"change:selected\",function(){return n.updateSelection()})},r.prototype.updateGrid=function(){return this.data=new l(this.mget(\"source\")),this.grid.setData(this.data),this.grid.render()},r.prototype.updateSelection=function(){var t;return t=this.mget(\"source\").get(\"selected\"),this.grid.setSelectedRows(t)},r.prototype.render=function(){var e,n,r,i=this;return n=function(){var n,r,i,o;for(i=this.mget(\"columns\"),o=[],n=0,r=i.length;r>n;n++)e=i[n],o.push({id:t.uniqueId(),field:e.get(\"field\"),name:e.get(\"title\"),width:e.get(\"width\")||300});return o}.call(this),r={enableCellNavigation:!0,enableColumnReorder:!0,forceFitColumns:!0},this.$el.css({width:\"\"+this.mget(\"width\")+\"px\",height:\"\"+this.mget(\"height\")+\"px\"}),this.data=new l(this.mget(\"source\")),this.grid=new s(this.el,this.data,n,r),this.grid.setSelectionModel(new a),this.grid.onSelectedRowsChanged.subscribe(function(t,e){return i.mget(\"source\").set(\"selected\",e.rows)})},r}(r),u=function(n){function r(){return d=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"DataTable\",r.prototype.default_view=c,r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{})},r}(i),p=function(t){function n(){return f=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=u,n}(o),{Model:u,Collection:new p,View:c}})}.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};define(\"widget/table_column\",[\"common/has_properties\",\"common/collection\"],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=\"TableColumn\",n.prototype.default_view=null,n}(t),i=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n),{Model:r,Collection:new 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};define(\"widget/paragraph\",[\"common/has_parent\",\"common/continuum_view\",\"common/collection\"],function(t,n,r){var i,o,s,a,l,u,c;return o=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.tagName=\"p\",n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",this.render)},n.prototype.render=function(){return this.mget(\"height\")&&this.$el.height(this.mget(\"height\")),this.mget(\"width\")&&this.$el.width(this.mget(\"width\")),this.$el.text(this.mget(\"text\"))},n}(n),i=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"Paragraph\",n.prototype.default_view=o,n.prototype.defaults=function(){return _.extend({},n.__super__.defaults.call(this),{text:\"\"})},n}(t),s=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(r),a=new s,{Model:i,Collection:a,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};define(\"widget/hbox\",[\"common/has_parent\",\"common/continuum_view\",\"common/build_views\",\"common/collection\"],function(n,r,i,o){var s,a,l,u,c,p,h;return a=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.tag=\"div\",r.prototype.attributes={\"class\":\"bk-hbox\"},r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.views={},this.render(),this.listenTo(this.model,\"change\",this.render)},r.prototype.render=function(){var e,n,r,o,s,a,l,u,c,p;n=this.mget(\"children\"),i(this.views,n),c=this.views;for(o in c)t.call(c,o)&&(s=c[o],s.$el.detach());for(this.$el.empty(),a=this.mget(\"width\"),null!=a&&this.$el.css({width:a+\"px\"}),r=this.mget(\"height\"),null!=r&&this.$el.css({height:r+\"px\"}),p=[],l=0,u=n.length;u>l;l++)e=n[l],p.push(this.$el.append(this.views[e.id].$el));return p},r}(r),s=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"HBox\",n.prototype.default_view=a,n.prototype.defaults=function(){return _.extend({},n.__super__.defaults.call(this),{children:[]})},n}(n),l=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(o),u=new l,{Model:s,Collection:u,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};define(\"widget/vbox\",[\"common/has_parent\",\"common/continuum_view\",\"common/build_views\",\"common/collection\"],function(n,r,i,o){var s,a,l,u,c,p,h;return a=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.tag=\"div\",r.prototype.attributes={\"class\":\"bk-vbox\"},r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.views={},this.render(),this.listenTo(this.model,\"change\",this.render)},r.prototype.render=function(){var e,n,r,o,s,a,l,u,c,p;n=this.mget(\"children\"),i(this.views,n),c=this.views;for(o in c)t.call(c,o)&&(s=c[o],s.$el.detach());for(this.$el.empty(),a=this.mget(\"width\"),null!=a&&this.$el.css({width:a+\"px\"}),r=this.mget(\"height\"),null!=r&&this.$el.css({height:r+\"px\"}),p=[],l=0,u=n.length;u>l;l++)e=n[l],p.push(this.$el.append(this.views[e.id].$el));return p\n",
        "                },r}(r),s=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"VBox\",n.prototype.default_view=a,n.prototype.defaults=function(){return _.extend({},n.__super__.defaults.call(this),{children:[]})},n}(n),l=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(o),u=new l,{Model:s,Collection:u,View:a}})}.call(this),define(\"widget/textinputtemplate\",[],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('<label for=\"')),r(this.id),r(e('\"> ')),r(this.title),r(e(' </label>\\n<input class=\"bk-widget-form-input\" type=\"text\" id=\"')),r(this.id),r(e('\" name=\"')),r(this.name),r(e('\" value=\"')),r(this.value),r(e('\"/>\\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};define(\"widget/textinput\",[\"common/collection\",\"common/build_views\",\"common/continuum_view\",\"common/has_parent\",\"common/logging\",\"./textinputtemplate\"],function(t,n,r,i,o,s){var a,l,u,c,p,h,d;return c=o.logger,l=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.tagName=\"div\",n.prototype.attributes={\"class\":\"bk-widget-form-group\"},n.prototype.template=s,n.prototype.events={\"change input\":\"change_input\"},n.prototype.change_input=function(){var t;return t=this.$(\"input\").val(),c.debug(\"textinput: value = \"+t),this.mset(\"value\",t),this.model.save()},n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",this.render)},n.prototype.render=function(){return this.$el.html(this.template(this.model.attributes)),this},n}(r),a=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"TextInput\",n.prototype.default_view=l,n.prototype.defaults=function(){return _.extend({},n.__super__.defaults.call(this),{name:\"\",value:\"\",title:\"\"})},n}(i),u=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(t),{Model:a,Collection:new u}})}.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};define(\"widget/vboxform\",[\"common/has_parent\",\"common/continuum_view\",\"common/build_views\",\"common/collection\"],function(n,r,i,o){var s,a,l,u,c,p,h;return a=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.tagName=\"form\",r.prototype.attributes={\"class\":\"bk-widget-form\",role:\"form\"},r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.views={},this.render()},r.prototype.render=function(){var e,n,r,o,s,a,l,u;n=this.mget(\"children\"),i(this.views,n),l=this.views;for(r in l)t.call(l,r)&&(o=l[r],o.$el.detach());for(this.$el.empty(),u=[],s=0,a=n.length;a>s;s++)e=n[s],this.$el.append(\"<br/\"),u.push(this.$el.append(this.views[e.id].$el));return u},r}(r),s=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"VBoxForm\",n.prototype.default_view=a,n.prototype.defaults=function(){return _.extend({},n.__super__.defaults.call(this),{children:[]})},n}(n),l=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(o),u=new l,{Model:s,Collection:u,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};define(\"widget/pretext\",[\"common/collection\",\"./paragraph\"],function(t,n){var r,i,o,s,a,l,u;return i=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.tagName=\"pre\",n.prototype.attributes={style:\"overflow:scroll\"},n}(n.View),r=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"PreText\",n.prototype.default_view=i,n.prototype.defaults=function(){return _.extend({},n.__super__.defaults.call(this),{text:\"\",height:400,width:400})},n}(n.Model),o=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(t),s=new o,{Model:r,Collection:s,View:i}})}.call(this),define(\"widget/selecttemplate\",[],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;for(r(e('<label for=\"')),r(this.id),r(e('\"> ')),r(this.title),r(e(' </label>\\n<select class=\"bk-widget-form-input\" id=\"')),r(this.id),r(e('\" name=\"')),r(this.name),r(e('\">\\n  ')),o=this.options,n=0,i=o.length;i>n;n++)t=o[n],r(e(\"\\n    \")),_.isString(t)?(r(e(\"\\n      <option \")),r(t===this.value?r(e('selected=\"selected\"')):void 0),r(e(' value=\"')),r(t),r(e('\">')),r(t),r(e(\"</option>\\n    \"))):(r(e(\"\\n      <option \")),r(t.value===this.value?r(e('selected=\"selected\"')):void 0),r(e(' value=\"')),r(t.value),r(e('\">')),r(t.name),r(e(\"</option>\\n    \"))),r(e(\"\\n  \"));r(e(\"\\n</select>\\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};define(\"widget/selectbox\",[\"common/collection\",\"underscore\",\"common/continuum_view\",\"common/has_parent\",\"common/logging\",\"./selecttemplate\"],function(t,n,r,i,o,s){var a,l,u,c,p,h,d;return c=o.logger,l=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.tagName=\"div\",n.prototype.template=s,n.prototype.events={\"change select\":\"change_input\"},n.prototype.change_input=function(){var t;return t=this.$(\"select\").val(),c.debug(\"selectbox: value = \"+t),this.mset(\"value\",t),this.model.save()},n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",this.render)},n.prototype.render=function(){var t;return this.$el.empty(),t=this.template(this.model.attributes),this.$el.html(t),this},n}(r),a=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"Select\",n.prototype.default_view=l,n.prototype.defaults=function(){return _.extend({},n.__super__.defaults.call(this),{title:\"\",value:\"\",options:[]})},n}(i),u=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(t),{Model:a,Collection:new u,View:l}})}.call(this),define(\"widget/slidertemplate\",[],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('<label for=\"')),r(this.id),r(e('\"> ')),r(this.title),r(e(': </label>\\n<input type=\"text\" id=\"')),r(this.id),r(e('\" readonly style=\"border:0; color:#f6931f; font-weight:bold;\">\\n<div class=\"bk-slider-')),r(this.orientation),r(e('\">\\n  <div class=\"slider \" id=\"')),r(this.id),r(e('\">\\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}),function(t){\"function\"==typeof define&&define.amd?define(\"jquery_ui/slider\",[\"jquery\",\"./core\",\"./mouse\",\"./widget\"],t):t(jQuery)}(function(t){return t.widget(\"ui.slider\",t.ui.mouse,{version:\"1.11.2\",widgetEventPrefix:\"slide\",options:{animate:!1,distance:0,max:100,min:0,orientation:\"horizontal\",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this.element.addClass(\"bk-ui-slider bk-ui-slider-\"+this.orientation+\" bk-ui-widget bk-ui-widget-content bk-ui-corner-all\"),this._refresh(),this._setOption(\"disabled\",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,n,r=this.options,i=this.element.find(\".bk-ui-slider-handle\").addClass(\"bk-ui-state-default bk-ui-corner-all\"),o=\"<span class='bk-ui-slider-handle bk-ui-state-default bk-ui-corner-all' tabindex='0'></span>\",s=[];for(n=r.values&&r.values.length||1,i.length>n&&(i.slice(n).remove(),i=i.slice(0,n)),e=i.length;n>e;e++)s.push(o);this.handles=i.add(t(s.join(\"\")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data(\"bk-ui-slider-handle-index\",e)})},_createRange:function(){var e=this.options,n=\"\";e.range?(e.range===!0&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass(\"bk-ui-slider-range-min bk-ui-slider-range-max\").css({left:\"\",bottom:\"\"}):(this.range=t(\"<div></div>\").appendTo(this.element),n=\"bk-ui-slider-range bk-ui-widget-header bk-ui-corner-all\"),this.range.addClass(n+(\"min\"===e.range||\"max\"===e.range?\" bk-ui-slider-range-\"+e.range:\"\"))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this.element.removeClass(\"bk-ui-slider bk-ui-slider-horizontal bk-ui-slider-vertical bk-ui-widget bk-ui-widget-content bk-ui-corner-all\"),this._mouseDestroy()},_mouseCapture:function(e){var n,r,i,o,s,a,l,u,c=this,p=this.options;return p.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:e.pageX,y:e.pageY},r=this._normValueFromMouse(n),i=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var n=Math.abs(r-c.values(e));(i>n||i===n&&(e===c._lastChangedValue||c.values(e)===p.min))&&(i=n,o=t(this),s=e)}),a=this._start(e,s),a===!1?!1:(this._mouseSliding=!0,this._handleIndex=s,o.addClass(\"bk-ui-state-active\").focus(),l=o.offset(),u=!t(e.target).parents().addBack().is(\".bk-ui-slider-handle\"),this._clickOffset=u?{left:0,top:0}:{left:e.pageX-l.left-o.width()/2,top:e.pageY-l.top-o.height()/2-(parseInt(o.css(\"borderTopWidth\"),10)||0)-(parseInt(o.css(\"borderBottomWidth\"),10)||0)+(parseInt(o.css(\"marginTop\"),10)||0)},this.handles.hasClass(\"bk-ui-state-hover\")||this._slide(e,s,r),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,n),!1},_mouseStop:function(t){return this.handles.removeClass(\"bk-ui-state-active\"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation=\"vertical\"===this.options.orientation?\"vertical\":\"horizontal\"},_normValueFromMouse:function(t){var e,n,r,i,o;return\"horizontal\"===this.orientation?(e=this.elementSize.width,n=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,n=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),r=n/e,r>1&&(r=1),0>r&&(r=0),\"vertical\"===this.orientation&&(r=1-r),i=this._valueMax()-this._valueMin(),o=this._valueMin()+r*i,this._trimAlignValue(o)},_start:function(t,e){var n={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(n.value=this.values(e),n.values=this.values()),this._trigger(\"start\",t,n)},_slide:function(t,e,n){var r,i,o;this.options.values&&this.options.values.length?(r=this.values(e?0:1),2===this.options.values.length&&this.options.range===!0&&(0===e&&n>r||1===e&&r>n)&&(n=r),n!==this.values(e)&&(i=this.values(),i[e]=n,o=this._trigger(\"slide\",t,{handle:this.handles[e],value:n,values:i}),r=this.values(e?0:1),o!==!1&&this.values(e,n))):n!==this.value()&&(o=this._trigger(\"slide\",t,{handle:this.handles[e],value:n}),o!==!1&&this.value(n))},_stop:function(t,e){var n={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(n.value=this.values(e),n.values=this.values()),this._trigger(\"stop\",t,n)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var n={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(n.value=this.values(e),n.values=this.values()),this._lastChangedValue=e,this._trigger(\"change\",t,n)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,n){var r,i,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(r=this.options.values,i=arguments[0],o=0;o<r.length;o+=1)r[o]=this._trimAlignValue(i[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,n){var r,i=0;switch(\"range\"===e&&this.options.range===!0&&(\"min\"===n?(this.options.value=this._values(0),this.options.values=null):\"max\"===n&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(i=this.options.values.length),\"disabled\"===e&&this.element.toggleClass(\"bk-ui-state-disabled\",!!n),this._super(e,n),e){case\"orientation\":this._detectOrientation(),this.element.removeClass(\"bk-ui-slider-horizontal bk-ui-slider-vertical\").addClass(\"bk-ui-slider-\"+this.orientation),this._refreshValue(),this.handles.css(\"horizontal\"===n?\"bottom\":\"left\",\"\");break;case\"value\":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case\"values\":for(this._animateOff=!0,this._refreshValue(),r=0;i>r;r+=1)this._change(null,r);this._animateOff=!1;break;case\"step\":case\"min\":case\"max\":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case\"range\":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,n,r;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this.options.values&&this.options.values.length){for(n=this.options.values.slice(),r=0;r<n.length;r+=1)n[r]=this._trimAlignValue(n[r]);return n}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,n=(t-this._valueMin())%e,r=t-n;return 2*Math.abs(n)>=e&&(r+=n>0?e:-e),parseFloat(r.toFixed(5))},_calculateNewMax:function(){var t=(this.options.max-this._valueMin())%this.options.step;this.max=this.options.max-t},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshValue:function(){var e,n,r,i,o,s=this.options.range,a=this.options,l=this,u=this._animateOff?!1:a.animate,c={};this.options.values&&this.options.values.length?this.handles.each(function(r){n=(l.values(r)-l._valueMin())/(l._valueMax()-l._valueMin())*100,c[\"horizontal\"===l.orientation?\"left\":\"bottom\"]=n+\"%\",t(this).stop(1,1)[u?\"animate\":\"css\"](c,a.animate),l.options.range===!0&&(\"horizontal\"===l.orientation?(0===r&&l.range.stop(1,1)[u?\"animate\":\"css\"]({left:n+\"%\"},a.animate),1===r&&l.range[u?\"animate\":\"css\"]({width:n-e+\"%\"},{queue:!1,duration:a.animate})):(0===r&&l.range.stop(1,1)[u?\"animate\":\"css\"]({bottom:n+\"%\"},a.animate),1===r&&l.range[u?\"animate\":\"css\"]({height:n-e+\"%\"},{queue:!1,duration:a.animate}))),e=n}):(r=this.value(),i=this._valueMin(),o=this._valueMax(),n=o!==i?(r-i)/(o-i)*100:0,c[\"horizontal\"===this.orientation?\"left\":\"bottom\"]=n+\"%\",this.handle.stop(1,1)[u?\"animate\":\"css\"](c,a.animate),\"min\"===s&&\"horizontal\"===this.orientation&&this.range.stop(1,1)[u?\"animate\":\"css\"]({width:n+\"%\"},a.animate),\"max\"===s&&\"horizontal\"===this.orientation&&this.range[u?\"animate\":\"css\"]({width:100-n+\"%\"},{queue:!1,duration:a.animate}),\"min\"===s&&\"vertical\"===this.orientation&&this.range.stop(1,1)[u?\"animate\":\"css\"]({height:n+\"%\"},a.animate),\"max\"===s&&\"vertical\"===this.orientation&&this.range[u?\"animate\":\"css\"]({height:100-n+\"%\"},{queue:!1,duration:a.animate}))},_handleEvents:{keydown:function(e){var n,r,i,o,s=t(e.target).data(\"bk-ui-slider-handle-index\");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,t(e.target).addClass(\"bk-ui-state-active\"),n=this._start(e,s),n===!1))return}switch(o=this.options.step,r=i=this.options.values&&this.options.values.length?this.values(s):this.value(),e.keyCode){case t.ui.keyCode.HOME:i=this._valueMin();break;case t.ui.keyCode.END:i=this._valueMax();break;case t.ui.keyCode.PAGE_UP:i=this._trimAlignValue(r+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(r-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(r===this._valueMax())return;i=this._trimAlignValue(r+o);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(r===this._valueMin())return;i=this._trimAlignValue(r-o)}this._slide(e,s,i)},keyup:function(e){var n=t(e.target).data(\"bk-ui-slider-handle-index\");this._keySliding&&(this._keySliding=!1,this._stop(e,n),this._change(e,n),t(e.target).removeClass(\"bk-ui-state-active\"))}}})}),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=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};define(\"widget/slider\",[\"common/collection\",\"underscore\",\"common/continuum_view\",\"common/has_parent\",\"common/logging\",\"./slidertemplate\",\"jquery_ui/slider\"],function(e,r,i,o,s,a){var l,u,c,p,h,d,f;return p=s.logger,u=function(e){function i(){return this.slide=t(this.slide,this),h=i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.tagName=\"div\",i.prototype.template=a,i.prototype.initialize=function(t){return i.__super__.initialize.call(this,t),this.render()},i.prototype.render=function(){var t,e,n,i;return this.$el.empty(),t=this.template(this.model.attributes),this.$el.html(t),e=this.mget(\"end\"),n=this.mget(\"start\"),i=this.mget(\"step\")||(e-n)/50,p.debug(\"slider render: min, max, step = (\"+n+\", \"+e+\", \"+i+\")\"),this.$(\".slider\").slider({orientation:this.mget(\"orientation\"),animate:\"fast\",slide:r.throttle(this.slide,200),value:this.mget(\"value\"),min:n,max:e,step:i}),this.$(\"#\"+this.mget(\"id\")).val(this.$(\".slider\").slider(\"value\"))},i.prototype.slide=function(t,e){var n;return n=e.value,p.debug(\"slide value = \"+n),this.$(\"#\"+this.mget(\"id\")).val(e.value),this.mset(\"value\",n),this.model.save()},i}(i),l=function(t){function e(){return d=e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.type=\"Slider\",e.prototype.default_view=u,e.prototype.defaults=function(){return r.extend({},e.__super__.defaults.call(this),{title:\"\",value:.5,start:0,end:1,step:0,orientation:\"horizontal\"})},e}(o),c=function(t){function e(){return f=e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.model=l,e}(e),{Model:l,Collection:new c,View:u}})}.call(this),function(t){\"function\"==typeof define&&define.amd?define(\"jquery_ui/draggable\",[\"jquery\",\"./core\",\"./mouse\",\"./widget\"],t):t(jQuery)}(function(t){return t.widget(\"ui.draggable\",t.ui.mouse,{version:\"1.11.2\",widgetEventPrefix:\"drag\",options:{addClasses:!0,appendTo:\"parent\",axis:!1,connectToSortable:!1,containment:!1,cursor:\"auto\",cursorAt:!1,grid:!1,handle:!1,helper:\"original\",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:\"default\",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:\"both\",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){\"original\"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this.element.addClass(\"bk-ui-draggable\"),this.options.disabled&&this.element.addClass(\"bk-ui-draggable-disabled\"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),\"handle\"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(\".bk-ui-draggable-dragging\")?void(this.destroyOnClear=!0):(this.element.removeClass(\"bk-ui-draggable bk-ui-draggable-dragging bk-ui-draggable-disabled\"),this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(e){var n=this.options;return this._blurActiveElement(e),this.helper||n.disabled||t(e.target).closest(\".bk-ui-resizable-handle\").length>0?!1:(this.handle=this._getHandle(e),this.handle?(this._blockFrames(n.iframeFix===!0?\"iframe\":n.iframeFix),!0):!1)},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t(\"<div>\").css(\"position\",\"absolute\").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var n=this.document[0];if(this.handleElement.is(e.target))try{n.activeElement&&\"body\"!==n.activeElement.nodeName.toLowerCase()&&t(n.activeElement).blur()}catch(r){}},_mouseStart:function(e){var n=this.options;return this.helper=this._createHelper(e),this.helper.addClass(\"bk-ui-draggable-dragging\"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css(\"position\"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return\"fixed\"===t(this).css(\"position\")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),this._trigger(\"start\",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._normalizeRightBottom(),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo(\"absolute\"),!n){var r=this._uiHash();if(this._trigger(\"drag\",e,r)===!1)return this._mouseUp({}),!1;this.position=r.position}return this.helper[0].style.left=this.position.left+\"px\",this.helper[0].style.top=this.position.top+\"px\",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var n=this,r=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(r=t.ui.ddmanager.drop(this,e)),this.dropped&&(r=this.dropped,this.dropped=!1),\"invalid\"===this.options.revert&&!r||\"valid\"===this.options.revert&&r||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,r)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){n._trigger(\"stop\",e)!==!1&&n._clear()}):this._trigger(\"stop\",e)!==!1&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.focus(),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(\".bk-ui-draggable-dragging\")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this.handleElement.addClass(\"bk-ui-draggable-handle\")},_removeHandleClassName:function(){this.handleElement.removeClass(\"bk-ui-draggable-handle\")},_createHelper:function(e){var n=this.options,r=t.isFunction(n.helper),i=r?t(n.helper.apply(this.element[0],[e])):\"clone\"===n.helper?this.element.clone().removeAttr(\"id\"):this.element;return i.parents(\"body\").length||i.appendTo(\"parent\"===n.appendTo?this.element[0].parentNode:n.appendTo),r&&i[0]===this.element[0]&&this._setPositionRelative(),i[0]===this.element[0]||/(fixed|absolute)/.test(i.css(\"position\"))||i.css(\"position\",\"absolute\"),i},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css(\"position\"))||(this.element[0].style.position=\"relative\")},_adjustOffsetFromHelper:function(e){\"string\"==typeof e&&(e=e.split(\" \")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),\"left\"in e&&(this.offset.click.left=e.left+this.margins.left),\"right\"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),\"top\"in e&&(this.offset.click.top=e.top+this.margins.top),\"bottom\"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),n=this.document[0];return\"absolute\"===this.cssPosition&&this.scrollParent[0]!==n&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css(\"borderTopWidth\"),10)||0),left:e.left+(parseInt(this.offsetParent.css(\"borderLeftWidth\"),10)||0)}},_getRelativeOffset:function(){if(\"relative\"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css(\"top\"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css(\"left\"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css(\"marginLeft\"),10)||0,top:parseInt(this.element.css(\"marginTop\"),10)||0,right:parseInt(this.element.css(\"marginRight\"),10)||0,bottom:parseInt(this.element.css(\"marginBottom\"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,r,i=this.options,o=this.document[0];return this.relativeContainer=null,i.containment?\"window\"===i.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):\"document\"===i.containment?void(this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):i.containment.constructor===Array?void(this.containment=i.containment):(\"parent\"===i.containment&&(i.containment=this.helper[0].parentNode),n=t(i.containment),r=n[0],void(r&&(e=/(scroll|auto)/.test(n.css(\"overflow\")),this.containment=[(parseInt(n.css(\"borderLeftWidth\"),10)||0)+(parseInt(n.css(\"paddingLeft\"),10)||0),(parseInt(n.css(\"borderTopWidth\"),10)||0)+(parseInt(n.css(\"paddingTop\"),10)||0),(e?Math.max(r.scrollWidth,r.offsetWidth):r.offsetWidth)-(parseInt(n.css(\"borderRightWidth\"),10)||0)-(parseInt(n.css(\"paddingRight\"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(r.scrollHeight,r.offsetHeight):r.offsetHeight)-(parseInt(n.css(\"borderBottomWidth\"),10)||0)-(parseInt(n.css(\"paddingBottom\"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n))):void(this.containment=null)},_convertPositionTo:function(t,e){e||(e=this.position);var n=\"absolute\"===t?1:-1,r=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*n+this.offset.parent.top*n-(\"fixed\"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top)*n,left:e.left+this.offset.relative.left*n+this.offset.parent.left*n-(\"fixed\"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)*n}},_generatePosition:function(t,e){var n,r,i,o,s=this.options,a=this._isRootNode(this.scrollParent[0]),l=t.pageX,u=t.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(r=this.relativeContainer.offset(),n=[this.containment[0]+r.left,this.containment[1]+r.top,this.containment[2]+r.left,this.containment[3]+r.top]):n=this.containment,t.pageX-this.offset.click.left<n[0]&&(l=n[0]+this.offset.click.left),t.pageY-this.offset.click.top<n[1]&&(u=n[1]+this.offset.click.top),t.pageX-this.offset.click.left>n[2]&&(l=n[2]+this.offset.click.left),t.pageY-this.offset.click.top>n[3]&&(u=n[3]+this.offset.click.top)),s.grid&&(i=s.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,u=n?i-this.offset.click.top>=n[1]||i-this.offset.click.top>n[3]?i:i-this.offset.click.top>=n[1]?i-s.grid[1]:i+s.grid[1]:i,o=s.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,l=n?o-this.offset.click.left>=n[0]||o-this.offset.click.left>n[2]?o:o-this.offset.click.left>=n[0]?o-s.grid[0]:o+s.grid[0]:o),\"y\"===s.axis&&(l=this.originalPageX),\"x\"===s.axis&&(u=this.originalPageY)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(\"fixed\"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(\"fixed\"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass(\"bk-ui-draggable-dragging\"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_normalizeRightBottom:function(){\"y\"!==this.options.axis&&\"auto\"!==this.helper.css(\"right\")&&(this.helper.width(this.helper.width()),this.helper.css(\"right\",\"auto\")),\"x\"!==this.options.axis&&\"auto\"!==this.helper.css(\"bottom\")&&(this.helper.height(this.helper.height()),this.helper.css(\"bottom\",\"auto\"))\n",
        "                },_trigger:function(e,n,r){return r=r||this._uiHash(),t.ui.plugin.call(this,e,[n,r,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo(\"absolute\"),r.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,n,r)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add(\"draggable\",\"connectToSortable\",{start:function(e,n,r){var i=t.extend({},n,{item:r.element});r.sortables=[],t(r.options.connectToSortable).each(function(){var n=t(this).sortable(\"instance\");n&&!n.options.disabled&&(r.sortables.push(n),n.refreshPositions(),n._trigger(\"activate\",e,i))})},stop:function(e,n,r){var i=t.extend({},n,{item:r.element});r.cancelHelperRemoval=!1,t.each(r.sortables,function(){var t=this;t.isOver?(t.isOver=0,r.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css(\"position\"),top:t.placeholder.css(\"top\"),left:t.placeholder.css(\"left\")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger(\"deactivate\",e,i))})},drag:function(e,n,r){t.each(r.sortables,function(){var i=!1,o=this;o.positionAbs=r.positionAbs,o.helperProportions=r.helperProportions,o.offset.click=r.offset.click,o._intersectsWith(o.containerCache)&&(i=!0,t.each(r.sortables,function(){return this.positionAbs=r.positionAbs,this.helperProportions=r.helperProportions,this.offset.click=r.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&t.contains(o.element[0],this.element[0])&&(i=!1),i})),i?(o.isOver||(o.isOver=1,o.currentItem=n.helper.appendTo(o.element).data(\"bk-ui-sortable-item\",!0),o.options._helper=o.options.helper,o.options.helper=function(){return n.helper[0]},e.target=o.currentItem[0],o._mouseCapture(e,!0),o._mouseStart(e,!0,!0),o.offset.click.top=r.offset.click.top,o.offset.click.left=r.offset.click.left,o.offset.parent.left-=r.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=r.offset.parent.top-o.offset.parent.top,r._trigger(\"toSortable\",e),r.dropped=o.element,t.each(r.sortables,function(){this.refreshPositions()}),r.currentItem=r.element,o.fromOutside=r),o.currentItem&&(o._mouseDrag(e),n.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger(\"out\",e,o._uiHash(o)),o._mouseStop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),r._refreshOffsets(e),n.position=r._generatePosition(e,!0),r._trigger(\"fromSortable\",e),r.dropped=!1,t.each(r.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add(\"draggable\",\"cursor\",{start:function(e,n,r){var i=t(\"body\"),o=r.options;i.css(\"cursor\")&&(o._cursor=i.css(\"cursor\")),i.css(\"cursor\",o.cursor)},stop:function(e,n,r){var i=r.options;i._cursor&&t(\"body\").css(\"cursor\",i._cursor)}}),t.ui.plugin.add(\"draggable\",\"opacity\",{start:function(e,n,r){var i=t(n.helper),o=r.options;i.css(\"opacity\")&&(o._opacity=i.css(\"opacity\")),i.css(\"opacity\",o.opacity)},stop:function(e,n,r){var i=r.options;i._opacity&&t(n.helper).css(\"opacity\",i._opacity)}}),t.ui.plugin.add(\"draggable\",\"scroll\",{start:function(t,e,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&\"HTML\"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(e,n,r){var i=r.options,o=!1,s=r.scrollParentNotHidden[0],a=r.document[0];s!==a&&\"HTML\"!==s.tagName?(i.axis&&\"x\"===i.axis||(r.overflowOffset.top+s.offsetHeight-e.pageY<i.scrollSensitivity?s.scrollTop=o=s.scrollTop+i.scrollSpeed:e.pageY-r.overflowOffset.top<i.scrollSensitivity&&(s.scrollTop=o=s.scrollTop-i.scrollSpeed)),i.axis&&\"y\"===i.axis||(r.overflowOffset.left+s.offsetWidth-e.pageX<i.scrollSensitivity?s.scrollLeft=o=s.scrollLeft+i.scrollSpeed:e.pageX-r.overflowOffset.left<i.scrollSensitivity&&(s.scrollLeft=o=s.scrollLeft-i.scrollSpeed))):(i.axis&&\"x\"===i.axis||(e.pageY-t(a).scrollTop()<i.scrollSensitivity?o=t(a).scrollTop(t(a).scrollTop()-i.scrollSpeed):t(window).height()-(e.pageY-t(a).scrollTop())<i.scrollSensitivity&&(o=t(a).scrollTop(t(a).scrollTop()+i.scrollSpeed))),i.axis&&\"y\"===i.axis||(e.pageX-t(a).scrollLeft()<i.scrollSensitivity?o=t(a).scrollLeft(t(a).scrollLeft()-i.scrollSpeed):t(window).width()-(e.pageX-t(a).scrollLeft())<i.scrollSensitivity&&(o=t(a).scrollLeft(t(a).scrollLeft()+i.scrollSpeed)))),o!==!1&&t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(r,e)}}),t.ui.plugin.add(\"draggable\",\"snap\",{start:function(e,n,r){var i=r.options;r.snapElements=[],t(i.snap.constructor!==String?i.snap.items||\":data(bk-ui-draggable)\":i.snap).each(function(){var e=t(this),n=e.offset();this!==r.element[0]&&r.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:n.top,left:n.left})})},drag:function(e,n,r){var i,o,s,a,l,u,c,p,h,d,f=r.options,_=f.snapTolerance,g=n.offset.left,m=g+r.helperProportions.width,y=n.offset.top,v=y+r.helperProportions.height;for(h=r.snapElements.length-1;h>=0;h--)l=r.snapElements[h].left-r.margins.left,u=l+r.snapElements[h].width,c=r.snapElements[h].top-r.margins.top,p=c+r.snapElements[h].height,l-_>m||g>u+_||c-_>v||y>p+_||!t.contains(r.snapElements[h].item.ownerDocument,r.snapElements[h].item)?(r.snapElements[h].snapping&&r.options.snap.release&&r.options.snap.release.call(r.element,e,t.extend(r._uiHash(),{snapItem:r.snapElements[h].item})),r.snapElements[h].snapping=!1):(\"inner\"!==f.snapMode&&(i=Math.abs(c-v)<=_,o=Math.abs(p-y)<=_,s=Math.abs(l-m)<=_,a=Math.abs(u-g)<=_,i&&(n.position.top=r._convertPositionTo(\"relative\",{top:c-r.helperProportions.height,left:0}).top),o&&(n.position.top=r._convertPositionTo(\"relative\",{top:p,left:0}).top),s&&(n.position.left=r._convertPositionTo(\"relative\",{top:0,left:l-r.helperProportions.width}).left),a&&(n.position.left=r._convertPositionTo(\"relative\",{top:0,left:u}).left)),d=i||o||s||a,\"outer\"!==f.snapMode&&(i=Math.abs(c-y)<=_,o=Math.abs(p-v)<=_,s=Math.abs(l-g)<=_,a=Math.abs(u-m)<=_,i&&(n.position.top=r._convertPositionTo(\"relative\",{top:c,left:0}).top),o&&(n.position.top=r._convertPositionTo(\"relative\",{top:p-r.helperProportions.height,left:0}).top),s&&(n.position.left=r._convertPositionTo(\"relative\",{top:0,left:l}).left),a&&(n.position.left=r._convertPositionTo(\"relative\",{top:0,left:u-r.helperProportions.width}).left)),!r.snapElements[h].snapping&&(i||o||s||a||d)&&r.options.snap.snap&&r.options.snap.snap.call(r.element,e,t.extend(r._uiHash(),{snapItem:r.snapElements[h].item})),r.snapElements[h].snapping=i||o||s||a||d)}}),t.ui.plugin.add(\"draggable\",\"stack\",{start:function(e,n,r){var i,o=r.options,s=t.makeArray(t(o.stack)).sort(function(e,n){return(parseInt(t(e).css(\"zIndex\"),10)||0)-(parseInt(t(n).css(\"zIndex\"),10)||0)});s.length&&(i=parseInt(t(s[0]).css(\"zIndex\"),10)||0,t(s).each(function(e){t(this).css(\"zIndex\",i+e)}),this.css(\"zIndex\",i+s.length))}}),t.ui.plugin.add(\"draggable\",\"zIndex\",{start:function(e,n,r){var i=t(n.helper),o=r.options;i.css(\"zIndex\")&&(o._zIndex=i.css(\"zIndex\")),i.css(\"zIndex\",o.zIndex)},stop:function(e,n,r){var i=r.options;i._zIndex&&t(n.helper).css(\"zIndex\",i._zIndex)}}),t.ui.draggable}),function(t){\"function\"==typeof define&&define.amd?define(\"jquery_ui/droppable\",[\"jquery\",\"./core\",\"./widget\",\"./mouse\",\"./draggable\"],t):t(jQuery)}(function(t){return t.widget(\"ui.droppable\",{version:\"1.11.2\",widgetEventPrefix:\"drop\",options:{accept:\"*\",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:\"default\",tolerance:\"intersect\",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,n=this.options,r=n.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(r)?r:function(t){return t.is(r)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e?e:e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(n.scope),n.addClasses&&this.element.addClass(\"bk-ui-droppable\")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e),this.element.removeClass(\"bk-ui-droppable bk-ui-droppable-disabled\")},_setOption:function(e,n){if(\"accept\"===e)this.accept=t.isFunction(n)?n:function(t){return t.is(n)};else if(\"scope\"===e){var r=t.ui.ddmanager.droppables[this.options.scope];this._splice(r),this._addToManager(n)}this._super(e,n)},_activate:function(e){var n=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),n&&this._trigger(\"activate\",e,this.ui(n))},_deactivate:function(e){var n=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),n&&this._trigger(\"deactivate\",e,this.ui(n))},_over:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger(\"over\",e,this.ui(n)))},_out:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger(\"out\",e,this.ui(n)))},_drop:function(e,n){var r=n||t.ui.ddmanager.current,i=!1;return r&&(r.currentItem||r.element)[0]!==this.element[0]?(this.element.find(\":data(bk-ui-droppable)\").not(\".bk-ui-draggable-dragging\").each(function(){var n=t(this).droppable(\"instance\");return n.options.greedy&&!n.options.disabled&&n.options.scope===r.options.scope&&n.accept.call(n.element[0],r.currentItem||r.element)&&t.ui.intersect(r,t.extend(n,{offset:n.element.offset()}),n.options.tolerance,e)?(i=!0,!1):void 0}),i?!1:this.accept.call(this.element[0],r.currentItem||r.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger(\"drop\",e,this.ui(r)),this.element):!1):!1},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.ui.intersect=function(){function t(t,e,n){return t>=e&&e+n>t}return function(e,n,r,i){if(!n.offset)return!1;var o=(e.positionAbs||e.position.absolute).left+e.margins.left,s=(e.positionAbs||e.position.absolute).top+e.margins.top,a=o+e.helperProportions.width,l=s+e.helperProportions.height,u=n.offset.left,c=n.offset.top,p=u+n.proportions().width,h=c+n.proportions().height;switch(r){case\"fit\":return o>=u&&p>=a&&s>=c&&h>=l;case\"intersect\":return u<o+e.helperProportions.width/2&&a-e.helperProportions.width/2<p&&c<s+e.helperProportions.height/2&&l-e.helperProportions.height/2<h;case\"pointer\":return t(i.pageY,c,n.proportions().height)&&t(i.pageX,u,n.proportions().width);case\"touch\":return(s>=c&&h>=s||l>=c&&h>=l||c>s&&l>h)&&(o>=u&&p>=o||a>=u&&p>=a||u>o&&a>p);default:return!1}}}(),t.ui.ddmanager={current:null,droppables:{\"default\":[]},prepareOffsets:function(e,n){var r,i,o=t.ui.ddmanager.droppables[e.options.scope]||[],s=n?n.type:null,a=(e.currentItem||e.element).find(\":data(bk-ui-droppable)\").addBack();t:for(r=0;r<o.length;r++)if(!(o[r].options.disabled||e&&!o[r].accept.call(o[r].element[0],e.currentItem||e.element))){for(i=0;i<a.length;i++)if(a[i]===o[r].element[0]){o[r].proportions().height=0;continue t}o[r].visible=\"none\"!==o[r].element.css(\"display\"),o[r].visible&&(\"mousedown\"===s&&o[r]._activate.call(o[r],n),o[r].offset=o[r].element.offset(),o[r].proportions({width:o[r].element[0].offsetWidth,height:o[r].element[0].offsetHeight}))}},drop:function(e,n){var r=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance,n)&&(r=this._drop.call(this,n)||r),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,n)))}),r},dragStart:function(e,n){e.element.parentsUntil(\"body\").bind(\"scroll.droppable\",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)})},drag:function(e,n){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,n),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var r,i,o,s=t.ui.intersect(e,this,this.options.tolerance,n),a=!s&&this.isover?\"isout\":s&&!this.isover?\"isover\":null;a&&(this.options.greedy&&(i=this.options.scope,o=this.element.parents(\":data(bk-ui-droppable)\").filter(function(){return t(this).droppable(\"instance\").options.scope===i}),o.length&&(r=t(o[0]).droppable(\"instance\"),r.greedyChild=\"isover\"===a)),r&&\"isover\"===a&&(r.isover=!1,r.isout=!0,r._out.call(r,n)),this[a]=!0,this[\"isout\"===a?\"isover\":\"isout\"]=!1,this[\"isover\"===a?\"_over\":\"_out\"].call(this,n),r&&\"isout\"===a&&(r.isout=!1,r.isover=!0,r._over.call(r,n)))}})},dragStop:function(e,n){e.element.parentsUntil(\"body\").unbind(\"scroll.droppable\"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)}},t.ui.droppable}),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};define(\"common/close_wrapper\",[\"underscore\",\"./continuum_view\"],function(t,n){var r,i;return r=function(t){function n(){return i=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.attributes={\"class\":\"bk-closewrapper\"},n.prototype.delegateEvents=function(t){return n.__super__.delegateEvents.call(this,t)},n.prototype.events={\"click .bk-close\":\"close\"},n.prototype.close=function(){return this.view.remove(),this.remove()},n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.view=t.view,this.render()},n.prototype.render=function(){return this.view.$el.detach(),this.$el.empty(),this.$el.html(\"<a href='#' class='bk-close'>[x]</a>\"),this.$el.append(this.view.$el)},n}(n),{View:r}})}.call(this),define(\"widget/crossfilter_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(){r(e('<div class=\"bk-crossfilter-container\">\\n\\n  <table>\\n\\n    <tr>\\n\\n      <td class=\"aligntable\">\\n\\n        <div class=\"bk-crossfilter-configuration bk-bs-container\">\\n\\n          <div class=\"bk-crossfilter-row\">\\n\\n            <div class=\"col-md-5 bk-column-list\" />\\n\\n            <div class=\"col-md-7 bk-filters-facets\">\\n\\n              <div class=\"bk-bs-panel bk-bs-panel-primary bk-filters\">\\n                <div class=\"bk-bs-panel-heading bk-crossfilter-panel-heading\"> Filter </div>\\n                <div class=\"bk-bs-panel-body bk-filters-selections\" />\\n              </div>\\n\\n              <div class=\"bk-bs-panel bk-bs-panel-primary bk-facet bk-facet-x\">\\n                <div class=\"bk-bs-panel-heading bk-crossfilter-panel-heading\"> Facet X </div>\\n                <div class=\"bk-facets-selections \" />\\n              </div>\\n\\n              <div class=\"bk-bs-panel bk-bs-panel-primary bk-facet bk-facet-y\">\\n                <div class=\"bk-bs-panel-heading bk-crossfilter-panel-heading\"> Facet Y </div>\\n                <div class=\"bk-facets-selections \" />\\n              </div>\\n\\n              <div class=\"bk-bs-panel bk-bs-panel-primary bk-facet bk-facet-tab\">\\n                <div class=\"bk-bs-panel-heading bk-crossfilter-panel-heading\"> Facet Tab (Coming Soon) </div>\\n                <div class=\"bk-facets-selections \" />\\n              </div>\\n\\n            </div>\\n\\n          </div>\\n\\n        </div>\\n\\n      </td>\\n\\n      <td class=\"aligntable\">\\n\\n        <div class=\"bk-plot-selection\">\\n\\n          <form class=\"bk-widget-form\">\\n            <ul class=\"bk-crossfilter-selector\">\\n              <li class=\"bk-plot-selector col-md-3\"> </li>\\n              <li class=\"bk-x-selector col-md-3\"> </li>\\n              <li class=\"bk-y-selector col-md-3\"> </li>\\n              <li class=\"bk-agg-selector col-md-3\"> </li>\\n            </ul>\\n          </form>\\n\\n        </div>\\n\\n        <div class=\"bk-crossfilter-plot\" />\\n      </td>\\n\\n    </tr>\\n\\n  </table>\\n\\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}),define(\"widget/crossfilter_column_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;for(r(\"Continuous\"===this.label?e('\\n<div class=\"bk-bs-panel-heading bk-crossfilter-panel-heading bk-crossfilter-panel-continuous-heading\">\\n'):e('\\n<div class=\"bk-bs-panel-heading bk-crossfilter-panel-heading bk-crossfilter-panel-factor-heading\">\\n')),r(e(\"\\n  \")),r(this.name),r(e(' <span style=\"font-size:x-small;\">(')),r(this.label),r(e(')</span>\\n</div>\\n\\n\\n<div class=\"bk-bs-panel-body\">\\n\\n  <table class=\"bk-table\">\\n\\n    <tbody>\\n\\n      ')),o=this.fields,n=0,i=o.length;i>n;n++)t=o[n],r(e(\"\\n      <tr> <td> \")),r(t),r(e(\"  </td> <td> \")),r(this[t]),r(e(\"  </td> </tr>\\n      \"));r(e(\"\\n\\n    </tbody>\\n\\n  </table>\\n\\n</div>\"))}.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}),define(\"widget/crossfilter_facet_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(){r(this.name),r(e(\" &nbsp; [x]\"))}.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=function(t,e){return function(){return t.apply(e,arguments)}};define(\"widget/crossfilter\",[\"common/collection\",\"underscore\",\"jquery_ui/draggable\",\"jquery_ui/droppable\",\"common/has_parent\",\"common/has_properties\",\"common/continuum_view\",\"common/close_wrapper\",\"common/build_views\",\"./crossfilter_template\",\"./crossfilter_column_template\",\"./crossfilter_facet_template\"],function(r,i,o,s,a,l,u,c,p,h,d,f){var _,g,m,y,v,b,w,x,k,C,M,A,S,T,D,E,R,I,P,N,z,O,j,F,L,B,H,$,W,V,Y,U,q;return w=function(t){function n(){return I=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.tag=\"div\",n.prototype.attributes={\"class\":\"bk-crossfilter\"},n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.views={},this.listenTo(this.model,\"change:plot\",this.render_plot),this.render(),this.render_plot(),this},n.prototype.render_plot=function(){var t;return null!=this.plot_view&&this.plot_view.remove(),t=this.mget(\"plot\"),this.plot_view=new t.default_view({model:t}),this.$el.find(\".bk-crossfilter-plot\").empty(),this.$el.find(\".bk-crossfilter-plot\").append(this.plot_view.$el)},n.prototype.render=function(){var t;return null!=this.columnview&&this.columnview.$el.detach(),this.$el.empty(),t=h(),this.$el.html(t),this.filterview=new S({el:this.$(\".bk-filters\"),collection:this.model.columns,model:this.model}),this.facetsview=new A({el:this.$el,model:this.model}),this.plotattributeview=new T({el:this.$el,model:this.model}),this.columnview=new m({collection:this.model.columns}),this.$(\".bk-column-list\").append(this.columnview.el),this.$(\".bk-crossfilter-configuration\").height(this.mget(\"height\")),this.$(\".bk-crossfilter-configuration\").width(400),this},n}(u),b=function(t){function r(){return this._set_columns=n(this._set_columns,this),P=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype.default_view=w,r.prototype.type=\"CrossFilter\",r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.columns=new _,this._set_columns(),this.listenTo(this,\"change:columns\",this._set_columns)},r.prototype._set_columns=function(){return this.columns.reset(this.get(\"columns\"))},r.prototype.defaults=function(){return i.extend({},r.__super__.defaults.call(this),{height:700,width:1300})},r}(a),x=function(t){function n(){return B=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=b,n}(r),T=function(t){function n(){return H=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.listenTo(this.model,\"change:plot_selector\",i.bind(this.render_selector,\"plot\")),this.listenTo(this.model,\"change:x_selector\",i.bind(this.render_selector,\"x\")),this.listenTo(this.model,\"change:y_selector\",i.bind(this.render_selector,\"y\")),this.listenTo(this.model,\"change:agg_selector\",i.bind(this.render_selector,\"agg\")),this.render_selector(\"plot\"),this.render_selector(\"x\"),this.render_selector(\"y\"),this.render_selector(\"agg\")},n.prototype.render_selector=function(t){var e,n;return n=this.$(\".bk-\"+t+\"-selector\").empty(),e=this.mget(\"\"+t+\"_selector\"),this.plot_selector_view=new e.default_view({model:e}),n.append(this.plot_selector_view.$el)},n}(u),m=function(t){function n(){return $=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.views={},this.listenTo(this.collection,\"all\",this.render),this.render(),this},n.prototype.render=function(){var t=this;return i.map(this.views,function(t){return t.$el.detach()}),p(this.views,this.collection.models),i.map(this.collection.models,function(e){return t.$el.append(t.views[e.id].$el)}),this},n}(u),M=function(t){function n(){return W=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.events={click:\"remove\"},n.prototype.tagName=\"span\",n.prototype.attributes={\"class\":\"bk-facet-label\"},n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.name=t.name,this.render()},n.prototype.render=function(){return this.$el.html(f({name:this.name}))},n}(u),A=function(t){function r(){return this.drop_tab=n(this.drop_tab,this),this.drop_y=n(this.drop_y,this),this.drop_x=n(this.drop_x,this),this.drop=n(this.drop,this),this.add_facet=n(this.add_facet,this),this.remove_facet=n(this.remove_facet,this),V=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.render_init(),this.render_all_facets(),this.listenTo(this.model,\"change:facet_x\",this.render_all_facets),this.listenTo(this.model,\"change:facet_y\",this.render_all_facets),this.listenTo(this.model,\"change:facet_tab\",this.render_all_facets)},r.prototype.render_init=function(){return this.facet_x_node=this.$(\".bk-facet-x\"),this.facet_y_node=this.$(\".bk-facet-y\"),this.facet_tab_node=this.$(\".bk-facet-tab\"),this.facet_x_node.droppable({drop:this.drop_x,tolerance:\"pointer\",hoverClass:\"bk-droppable-hover\"}),this.facet_y_node.droppable({drop:this.drop_y,tolerance:\"pointer\",hoverClass:\"bk-droppable-hover\"}),this.facet_tab_node.droppable({drop:this.drop_tab,tolerance:\"pointer\",hoverClass:\"bk-droppable-hover\"})},r.prototype.render_all_facets=function(){this.render_facets(this.facet_x_node,\"facet_x\",this.model.get(\"facet_x\")),this.render_facets(this.facet_y_node,\"facet_y\",this.model.get(\"facet_y\")),this.render_facets(this.facet_tab_node,\"facet_tab\",this.model.get(\"facet_tab\"))},r.prototype.render_facets=function(t,e,n){var r,i,o,s,a;for(t=t.find(\".bk-facets-selections\"),t.empty(),a=[],o=0,s=n.length;s>o;o++)r=n[o],i=new M({name:r}),this.listenTo(i,\"remove\",function(){var t;return this.remove_facet(r,t=!0)}),a.push(t.append(i.$el));return a},r.prototype.remove_facet=function(t,e){var n,r,o,s,a,l;for(null==e&&(e=!0),l=[\"facet_x\",\"facet_y\",\"facet_tab\"],s=0,a=l.length;a>s;s++)r=l[s],n=i.clone(this.model.get(r)),n=function(){var e,r,i;for(i=[],e=0,r=n.length;r>e;e++)o=n[e],o!==t&&i.push(o);return i}(),this.model.set(r,n);return e?this.model.save():void 0},r.prototype.add_facet=function(t,e){var n,r;return this.remove_facet(e,r=!1),n=i.clone(this.model.get(t)),n.indexOf(e)<0&&(n.push(e),this.model.set(t,n)),this.model.save()},r.prototype.drop=function(t,e,n){var r,i;return r=n.helper.data(\"model\"),i=r.get(\"name\"),this.add_facet(t,i)},r.prototype.drop_x=function(t,e){return this.drop(\"facet_x\",t,e)},r.prototype.drop_y=function(t,e){return this.drop(\"facet_y\",t,e)},r.prototype.drop_tab=function(t,e){return this.drop(\"facet_tab\",t,e)},r}(u),S=function(r){function o(){return this.drop=n(this.drop,this),Y=o.__super__.constructor.apply(this,arguments)}return e(o,r),o.prototype.initialize=function(t){return o.__super__.initialize.call(this,t),this.views={},this.render(),this.render_columns_selectors,this.listenTo(this.model,\"change:filter_widgets\",this.render_column_selectors)},o.prototype.drop=function(t,e){var n,r;return n=e.helper.data(\"model\"),r=i.clone(this.model.get(\"filtering_columns\")),r.push(n.get(\"name\")),this.model.set(\"filtering_columns\",r),this.model.save()},o.prototype.render=function(){return this.$el.droppable({drop:this.drop,tolerance:\"pointer\",hoverClass:\"bk-droppable-hover\"})},o.prototype.render_column_selectors=function(){var e,n,r,o,s,a,l,u,h=this;i.map(this.views,function(t){return t.$el.detach()}),this.$el.find(\".bk-filters-selections\").empty(),n={},u=this.mget(\"filter_widgets\");for(s in u)t.call(u,s)&&(l=u[s],n[s]=this.model.resolve_ref(l));return o=this.mget(\"filtering_columns\"),r=function(){var t,r,i;for(i=[],t=0,r=o.length;r>t;t++)e=o[t],null!=n[e]&&i.push(n[e]);return i}(),a=p(this.views,r),i.map(a,function(t){return h.listenTo(t,\"remove\",h.child_remove)}),i.map(r,function(t){var e;return e=new c.View({view:h.views[t.id]}),h.$el.find(\".bk-filters-selections\").append(e.$el)})},o.prototype.child_remove=function(e){var n,r,o,s,a,l;l=this.mget(\"filter_widgets\");for(n in l)if(t.call(l,n)&&(a=l[n],r=this.model.resolve_ref(a),r===e.model)){s=n;break}return o=i.filter(this.mget(\"filtering_columns\"),function(t){return t!==s}),this.mset(\"filtering_columns\",o),this.model.save()},o}(u),g=function(t){function n(){return U=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.template=d,n.prototype.attributes={\"class\":\"bk-crossfilter-column-entry bk-bs-panel bk-bs-panel-primary\"},n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.render()},n.prototype.render=function(){var t=this;return this.$el.html(this.template(this.model.attributes)),this.$el.draggable({appendTo:\"body\",containment:\"document\",helper:\"clone\",start:function(e,n){return n.helper.data(\"model\",t.model)}}),this},n}(u),E=function(t){function n(){return q=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(g),D=function(t){function n(){return N=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=E,n.prototype.defaults=function(){return i.extend({},n.__super__.defaults.call(this),{type:\"TimeColumn\",label:\"Time\",name:\"\",fields:[\"count\",\"unique\",\"first\",\"last\"],count:0,unique:0,first:0,last:0})},n}(l),C=function(t){function n(){return z=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(g),k=function(t){function n(){return O=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=C,n.prototype.defaults=function(){return i.extend({},n.__super__.defaults.call(this),{type:\"DiscreteColumn\",label:\"Factor\",name:\"\",fields:[\"count\",\"unique\",\"top\",\"freq\"],count:0,unique:0,top:0,freq:0})},n}(l),v=function(t){function n(){return j=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(g),y=function(t){function n(){return F=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=v,n.prototype.defaults=function(){return i.extend({},n.__super__.defaults.call(this),{type:\"ContinuousColumn\",label:\"Continuous\",name:\"\",fields:[\"count\",\"mean\",\"std\",\"min\",\"max\"],count:0,mean:0,std:0,min:0,max:0})},n}(l),R={DiscreteColumn:k,TimeColumn:D,ContinuousColumn:y},_=function(t){function n(){return L=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=function(t){return t.type in R?new R[t.type](t):(console.log(\"Unknown column type: '\"+t.type+\"'\"),null)},n}(r),{Model:b,Collection:new x,View:w}})}.call(this),define(\"widget/multiselecttemplate\",[],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;for(r(e('<label for=\"')),r(this.id),r(e('\"> ')),r(this.title),r(e(' </label>\\n<select multiple class=\"bk-widget-form-input\" id=\"')),r(this.id),r(e('\" name=\"')),r(this.name),r(e('\">\\n  ')),o=this.options,n=0,i=o.length;i>n;n++)t=o[n],r(e(\"\\n  \")),t.value===this.value?(r(e('\\n  <option selected=\"selected\" value=\"')),r(t.value),r(e('\">')),r(t.name),r(e(\"</option>\\n  \"))):(r(e('\\n  <option value=\"')),r(t.value),r(e('\">')),r(t.name),r(e(\"</option> \\n  \"))),r(e(\"\\n\\n  \"));r(e(\"\\n</select>\\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};define(\"widget/multiselect\",[\"common/has_parent\",\"common/continuum_view\",\"common/collection\",\"underscore\",\"./multiselecttemplate\"],function(t,n,r,i,o){var s,a,l,u,c,p,h;return a=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.events={\"change select\":\"change_input\"},n.prototype.change_input=function(){return this.mset(\"value\",this.$(\"select\").val(),{silent:!0}),this.model.save()},n.prototype.tagName=\"div\",n.prototype.template=o,n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change:value\",this.render_selection),this.listenTo(this.model,\"change:options\",this.render),this.listenTo(this.model,\"change:name\",this.render),this.listenTo(this.model,\"change:title\",this.render)},n.prototype.render=function(){var t;return this.$el.empty(),t=this.template(this.model.attributes),this.$el.html(t),this.render_selection(),this},n.prototype.render_selection=function(){var t;return t={},i.map(this.mget(\"value\"),function(e){return t[e]=!0}),this.$(\"option\").each(function(e){return e=$(e),t[e.attr(\"value\")]?e.attr(\"selected\",\"selected\"):void 0})},n}(n),s=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"MultiSelect\",n.prototype.default_view=a,n.prototype.defaults=function(){return i.extend({},n.__super__.defaults.call(this),{title:\"\",value:[],options:[]})},n}(t),l=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(r),u=new l,{Model:s,Collection:u,View:a}})}.call(this),define(\"jqrangeslider/jQRangeSlider\",[\"jquery\",\"jquery_ui/core\",\"jquery_ui/widget\",\"jquery_ui/mouse\",\"jquery_mousewheel\"],function(t){return t.widget(\"ui.rangeSlider\",{options:{bounds:{min:0,max:100},defaultValues:{min:20,max:50},wheelMode:null,wheelSpeed:4,arrows:!0,valueLabels:\"show\",formatter:null,durationIn:0,durationOut:400,delayOut:200,range:{min:!1,max:!1},step:!1,scales:!1,enabled:!0,symmetricPositionning:!1},_values:null,_valuesChanged:!1,_initialized:!1,bar:null,leftHandle:null,rightHandle:null,innerBar:null,container:null,arrows:null,labels:null,changing:{min:!1,max:!1},changed:{min:!1,max:!1},ruler:null,_create:function(){this._setDefaultValues(),this.labels={left:null,right:null,leftDisplayed:!0,rightDisplayed:!0},this.arrows={left:null,right:null},this.changing={min:!1,max:!1},this.changed={min:!1,max:!1},this._createElements(),this._bindResize(),setTimeout(t.proxy(this.resize,this),1),setTimeout(t.proxy(this._initValues,this),1)\n",
        "                },_setDefaultValues:function(){this._values={min:this.options.defaultValues.min,max:this.options.defaultValues.max}},_bindResize:function(){var e=this;this._resizeProxy=function(t){e.resize(t)},t(window).resize(this._resizeProxy)},_initWidth:function(){this.container.css(\"width\",this.element.width()-this.container.outerWidth(!0)+this.container.width()),this.innerBar.css(\"width\",this.container.width()-this.innerBar.outerWidth(!0)+this.innerBar.width())},_initValues:function(){this._initialized=!0,this.values(this._values.min,this._values.max)},_setOption:function(t,e){this._setWheelOption(t,e),this._setArrowsOption(t,e),this._setLabelsOption(t,e),this._setLabelsDurations(t,e),this._setFormatterOption(t,e),this._setBoundsOption(t,e),this._setRangeOption(t,e),this._setStepOption(t,e),this._setScalesOption(t,e),this._setEnabledOption(t,e),this._setPositionningOption(t,e)},_validProperty:function(t,e,n){return null===t||\"undefined\"==typeof t[e]?n:t[e]},_setStepOption:function(t,e){\"step\"===t&&(this.options.step=e,this._leftHandle(\"option\",\"step\",e),this._rightHandle(\"option\",\"step\",e),this._changed(!0))},_setScalesOption:function(t,e){\"scales\"===t&&(e===!1||null===e?(this.options.scales=!1,this._destroyRuler()):e instanceof Array&&(this.options.scales=e,this._updateRuler()))},_setRangeOption:function(t,e){\"range\"===t&&(this._bar(\"option\",\"range\",e),this.options.range=this._bar(\"option\",\"range\"),this._changed(!0))},_setBoundsOption:function(t,e){\"bounds\"===t&&\"undefined\"!=typeof e.min&&\"undefined\"!=typeof e.max&&this.bounds(e.min,e.max)},_setWheelOption:function(t,e){(\"wheelMode\"===t||\"wheelSpeed\"===t)&&(this._bar(\"option\",t,e),this.options[t]=this._bar(\"option\",t))},_setLabelsOption:function(t,e){if(\"valueLabels\"===t){if(\"hide\"!==e&&\"show\"!==e&&\"change\"!==e)return;this.options.valueLabels=e,\"hide\"!==e?(this._createLabels(),this._leftLabel(\"update\"),this._rightLabel(\"update\")):this._destroyLabels()}},_setFormatterOption:function(t,e){\"formatter\"===t&&null!==e&&\"function\"==typeof e&&\"hide\"!==this.options.valueLabels&&(this._leftLabel(\"option\",\"formatter\",e),this.options.formatter=this._rightLabel(\"option\",\"formatter\",e))},_setArrowsOption:function(t,e){\"arrows\"!==t||e!==!0&&e!==!1||e===this.options.arrows||(e===!0?(this.element.removeClass(\"bk-ui-rangeSlider-noArrow\").addClass(\"bk-ui-rangeSlider-withArrows\"),this.arrows.left.css(\"display\",\"block\"),this.arrows.right.css(\"display\",\"block\"),this.options.arrows=!0):e===!1&&(this.element.addClass(\"bk-ui-rangeSlider-noArrow\").removeClass(\"bk-ui-rangeSlider-withArrows\"),this.arrows.left.css(\"display\",\"none\"),this.arrows.right.css(\"display\",\"none\"),this.options.arrows=!1),this._initWidth())},_setLabelsDurations:function(t,e){if(\"durationIn\"===t||\"durationOut\"===t||\"delayOut\"===t){if(parseInt(e,10)!==e)return;null!==this.labels.left&&this._leftLabel(\"option\",t,e),null!==this.labels.right&&this._rightLabel(\"option\",t,e),this.options[t]=e}},_setEnabledOption:function(t,e){\"enabled\"===t&&this.toggle(e)},_setPositionningOption:function(t,e){\"symmetricPositionning\"===t&&(this._rightHandle(\"option\",t,e),this.options[t]=this._leftHandle(\"option\",t,e))},_createElements:function(){\"absolute\"!==this.element.css(\"position\")&&this.element.css(\"position\",\"relative\"),this.element.addClass(\"bk-ui-rangeSlider\"),this.container=t(\"<div class='bk-ui-rangeSlider-container' />\").css(\"position\",\"absolute\").appendTo(this.element),this.innerBar=t(\"<div class='bk-ui-rangeSlider-innerBar' />\").css(\"position\",\"absolute\").css(\"top\",0).css(\"left\",0),this._createHandles(),this._createBar(),this.container.prepend(this.innerBar),this._createArrows(),\"hide\"!==this.options.valueLabels?this._createLabels():this._destroyLabels(),this._updateRuler(),this.options.enabled||this._toggle(this.options.enabled)},_createHandle:function(e){return t(\"<div />\")[this._handleType()](e).bind(\"sliderDrag\",t.proxy(this._changing,this)).bind(\"stop\",t.proxy(this._changed,this))},_createHandles:function(){this.leftHandle=this._createHandle({isLeft:!0,bounds:this.options.bounds,value:this._values.min,step:this.options.step,symmetricPositionning:this.options.symmetricPositionning}).appendTo(this.container),this.rightHandle=this._createHandle({isLeft:!1,bounds:this.options.bounds,value:this._values.max,step:this.options.step,symmetricPositionning:this.options.symmetricPositionning}).appendTo(this.container)},_createBar:function(){this.bar=t(\"<div />\").prependTo(this.container).bind(\"sliderDrag scroll zoom\",t.proxy(this._changing,this)).bind(\"stop\",t.proxy(this._changed,this)),this._bar({leftHandle:this.leftHandle,rightHandle:this.rightHandle,values:{min:this._values.min,max:this._values.max},type:this._handleType(),range:this.options.range,wheelMode:this.options.wheelMode,wheelSpeed:this.options.wheelSpeed}),this.options.range=this._bar(\"option\",\"range\"),this.options.wheelMode=this._bar(\"option\",\"wheelMode\"),this.options.wheelSpeed=this._bar(\"option\",\"wheelSpeed\")},_createArrows:function(){this.arrows.left=this._createArrow(\"left\"),this.arrows.right=this._createArrow(\"right\"),this.options.arrows?this.element.addClass(\"bk-ui-rangeSlider-withArrows\"):(this.arrows.left.css(\"display\",\"none\"),this.arrows.right.css(\"display\",\"none\"),this.element.addClass(\"bk-ui-rangeSlider-noArrow\"))},_createArrow:function(e){var n,r=t(\"<div class='bk-ui-rangeSlider-arrow' />\").append(\"<div class='bk-ui-rangeSlider-arrow-inner' />\").addClass(\"bk-ui-rangeSlider-\"+e+\"Arrow\").css(\"position\",\"absolute\").css(e,0).appendTo(this.element);return n=\"right\"===e?t.proxy(this._scrollRightClick,this):t.proxy(this._scrollLeftClick,this),r.bind(\"mousedown touchstart\",n),r},_proxy:function(t,e,n){var r=Array.prototype.slice.call(n);return t&&t[e]?t[e].apply(t,r):null},_handleType:function(){return\"rangeSliderHandle\"},_barType:function(){return\"rangeSliderBar\"},_bar:function(){return this._proxy(this.bar,this._barType(),arguments)},_labelType:function(){return\"rangeSliderLabel\"},_leftLabel:function(){return this._proxy(this.labels.left,this._labelType(),arguments)},_rightLabel:function(){return this._proxy(this.labels.right,this._labelType(),arguments)},_leftHandle:function(){return this._proxy(this.leftHandle,this._handleType(),arguments)},_rightHandle:function(){return this._proxy(this.rightHandle,this._handleType(),arguments)},_getValue:function(t,e){return e===this.rightHandle&&(t-=e.outerWidth()),t*(this.options.bounds.max-this.options.bounds.min)/(this.container.innerWidth()-e.outerWidth(!0))+this.options.bounds.min},_trigger:function(t){var e=this;setTimeout(function(){e.element.trigger(t,{label:e.element,values:e.values()})},1)},_changing:function(){this._updateValues()&&(this._trigger(\"valuesChanging\"),this._valuesChanged=!0)},_deactivateLabels:function(){\"change\"===this.options.valueLabels&&(this._leftLabel(\"option\",\"show\",\"hide\"),this._rightLabel(\"option\",\"show\",\"hide\"))},_reactivateLabels:function(){\"change\"===this.options.valueLabels&&(this._leftLabel(\"option\",\"show\",\"change\"),this._rightLabel(\"option\",\"show\",\"change\"))},_changed:function(t){t===!0&&this._deactivateLabels(),(this._updateValues()||this._valuesChanged)&&(this._trigger(\"valuesChanged\"),t!==!0&&this._trigger(\"userValuesChanged\"),this._valuesChanged=!1),t===!0&&this._reactivateLabels()},_updateValues:function(){var t=this._leftHandle(\"value\"),e=this._rightHandle(\"value\"),n=this._min(t,e),r=this._max(t,e),i=n!==this._values.min||r!==this._values.max;return this._values.min=this._min(t,e),this._values.max=this._max(t,e),i},_min:function(t,e){return Math.min(t,e)},_max:function(t,e){return Math.max(t,e)},_createLabel:function(e,n){var r;return null===e?(r=this._getLabelConstructorParameters(e,n),e=t(\"<div />\").appendTo(this.element)[this._labelType()](r)):(r=this._getLabelRefreshParameters(e,n),e[this._labelType()](r)),e},_getLabelConstructorParameters:function(t,e){return{handle:e,handleType:this._handleType(),formatter:this._getFormatter(),show:this.options.valueLabels,durationIn:this.options.durationIn,durationOut:this.options.durationOut,delayOut:this.options.delayOut}},_getLabelRefreshParameters:function(){return{formatter:this._getFormatter(),show:this.options.valueLabels,durationIn:this.options.durationIn,durationOut:this.options.durationOut,delayOut:this.options.delayOut}},_getFormatter:function(){return this.options.formatter===!1||null===this.options.formatter?this._defaultFormatter:this.options.formatter},_defaultFormatter:function(t){return Math.round(t)},_destroyLabel:function(t){return null!==t&&(t[this._labelType()](\"destroy\"),t.remove(),t=null),t},_createLabels:function(){this.labels.left=this._createLabel(this.labels.left,this.leftHandle),this.labels.right=this._createLabel(this.labels.right,this.rightHandle),this._leftLabel(\"pair\",this.labels.right)},_destroyLabels:function(){this.labels.left=this._destroyLabel(this.labels.left),this.labels.right=this._destroyLabel(this.labels.right)},_stepRatio:function(){return this._leftHandle(\"stepRatio\")},_scrollRightClick:function(t){return this.options.enabled?(t.preventDefault(),this._bar(\"startScroll\"),this._bindStopScroll(),void this._continueScrolling(\"scrollRight\",4*this._stepRatio(),1)):!1},_continueScrolling:function(t,e,n,r){if(!this.options.enabled)return!1;this._bar(t,n),r=r||5,r--;var i=this,o=16,s=Math.max(1,4/this._stepRatio());this._scrollTimeout=setTimeout(function(){0===r&&(e>o?e=Math.max(o,e/1.5):n=Math.min(s,2*n),r=5),i._continueScrolling(t,e,n,r)},e)},_scrollLeftClick:function(t){return this.options.enabled?(t.preventDefault(),this._bar(\"startScroll\"),this._bindStopScroll(),void this._continueScrolling(\"scrollLeft\",4*this._stepRatio(),1)):!1},_bindStopScroll:function(){var e=this;this._stopScrollHandle=function(t){t.preventDefault(),e._stopScroll()},t(document).bind(\"mouseup touchend\",this._stopScrollHandle)},_stopScroll:function(){t(document).unbind(\"mouseup touchend\",this._stopScrollHandle),this._stopScrollHandle=null,this._bar(\"stopScroll\"),clearTimeout(this._scrollTimeout)},_createRuler:function(){this.ruler=t(\"<div class='bk-ui-rangeSlider-ruler' />\").appendTo(this.innerBar)},_setRulerParameters:function(){this.ruler.ruler({min:this.options.bounds.min,max:this.options.bounds.max,scales:this.options.scales})},_destroyRuler:function(){null!==this.ruler&&t.fn.ruler&&(this.ruler.ruler(\"destroy\"),this.ruler.remove(),this.ruler=null)},_updateRuler:function(){this._destroyRuler(),this.options.scales!==!1&&t.fn.ruler&&(this._createRuler(),this._setRulerParameters())},values:function(t,e){var n;if(\"undefined\"!=typeof t&&\"undefined\"!=typeof e){if(!this._initialized)return this._values.min=t,this._values.max=e,this._values;this._deactivateLabels(),n=this._bar(\"values\",t,e),this._changed(!0),this._reactivateLabels()}else n=this._bar(\"values\",t,e);return n},min:function(t){return this._values.min=this.values(t,this._values.max).min,this._values.min},max:function(t){return this._values.max=this.values(this._values.min,t).max,this._values.max},bounds:function(t,e){return this._isValidValue(t)&&this._isValidValue(e)&&e>t&&(this._setBounds(t,e),this._updateRuler(),this._changed(!0)),this.options.bounds},_isValidValue:function(t){return\"undefined\"!=typeof t&&parseFloat(t)===t},_setBounds:function(t,e){this.options.bounds={min:t,max:e},this._leftHandle(\"option\",\"bounds\",this.options.bounds),this._rightHandle(\"option\",\"bounds\",this.options.bounds),this._bar(\"option\",\"bounds\",this.options.bounds)},zoomIn:function(t){this._bar(\"zoomIn\",t)},zoomOut:function(t){this._bar(\"zoomOut\",t)},scrollLeft:function(t){this._bar(\"startScroll\"),this._bar(\"scrollLeft\",t),this._bar(\"stopScroll\")},scrollRight:function(t){this._bar(\"startScroll\"),this._bar(\"scrollRight\",t),this._bar(\"stopScroll\")},resize:function(){this._initWidth(),this._leftHandle(\"update\"),this._rightHandle(\"update\"),this._bar(\"update\")},enable:function(){this.toggle(!0)},disable:function(){this.toggle(!1)},toggle:function(t){void 0===t&&(t=!this.options.enabled),this.options.enabled!==t&&this._toggle(t)},_toggle:function(t){this.options.enabled=t,this.element.toggleClass(\"bk-ui-rangeSlider-disabled\",!t);var e=t?\"enable\":\"disable\";this._bar(e),this._leftHandle(e),this._rightHandle(e),this._leftLabel(e),this._rightLabel(e)},destroy:function(){this.element.removeClass(\"bk-ui-rangeSlider-withArrows bk-ui-rangeSlider-noArrow bk-ui-rangeSlider-disabled\"),this._destroyWidgets(),this._destroyElements(),this.element.removeClass(\"bk-ui-rangeSlider\"),this.options=null,t(window).unbind(\"resize\",this._resizeProxy),this._resizeProxy=null,this._bindResize=null,t.Widget.prototype.destroy.apply(this,arguments)},_destroyWidget:function(t){this[\"_\"+t](\"destroy\"),this[t].remove(),this[t]=null},_destroyWidgets:function(){this._destroyWidget(\"bar\"),this._destroyWidget(\"leftHandle\"),this._destroyWidget(\"rightHandle\"),this._destroyRuler(),this._destroyLabels()},_destroyElements:function(){this.container.remove(),this.container=null,this.innerBar.remove(),this.innerBar=null,this.arrows.left.remove(),this.arrows.right.remove(),this.arrows=null}})}),define(\"jqrangeslider/jQDateRangeSlider\",[\"jquery\",\"./jQRangeSlider\"],function(t){return t.widget(\"ui.dateRangeSlider\",t.ui.rangeSlider,{options:{bounds:{min:new Date(2010,0,1).valueOf(),max:new Date(2012,0,1).valueOf()},defaultValues:{min:new Date(2010,1,11).valueOf(),max:new Date(2011,1,11).valueOf()}},_create:function(){t.ui.rangeSlider.prototype._create.apply(this),this.element.addClass(\"bk-ui-dateRangeSlider\")},destroy:function(){this.element.removeClass(\"bk-ui-dateRangeSlider\"),t.ui.rangeSlider.prototype.destroy.apply(this)},_setDefaultValues:function(){this._values={min:this.options.defaultValues.min.valueOf(),max:this.options.defaultValues.max.valueOf()}},_setRulerParameters:function(){this.ruler.ruler({min:new Date(this.options.bounds.min),max:new Date(this.options.bounds.max),scales:this.options.scales})},_setOption:function(e,n){(\"defaultValues\"===e||\"bounds\"===e)&&\"undefined\"!=typeof n&&null!==n&&this._isValidDate(n.min)&&this._isValidDate(n.max)?t.ui.rangeSlider.prototype._setOption.apply(this,[e,{min:n.min.valueOf(),max:n.max.valueOf()}]):t.ui.rangeSlider.prototype._setOption.apply(this,this._toArray(arguments))},_handleType:function(){return\"dateRangeSliderHandle\"},option:function(e){if(\"bounds\"===e||\"defaultValues\"===e){var n=t.ui.rangeSlider.prototype.option.apply(this,arguments);return{min:new Date(n.min),max:new Date(n.max)}}return t.ui.rangeSlider.prototype.option.apply(this,this._toArray(arguments))},_defaultFormatter:function(t){var e=t.getMonth()+1,n=t.getDate();return\"\"+t.getFullYear()+\"-\"+(10>e?\"0\"+e:e)+\"-\"+(10>n?\"0\"+n:n)},_getFormatter:function(){var t=this.options.formatter;return(this.options.formatter===!1||null===this.options.formatter)&&(t=this._defaultFormatter),function(t){return function(e){return t(new Date(e))}}(t)},values:function(e,n){var r=null;return r=this._isValidDate(e)&&this._isValidDate(n)?t.ui.rangeSlider.prototype.values.apply(this,[e.valueOf(),n.valueOf()]):t.ui.rangeSlider.prototype.values.apply(this,this._toArray(arguments)),{min:new Date(r.min),max:new Date(r.max)}},min:function(e){return new Date(this._isValidDate(e)?t.ui.rangeSlider.prototype.min.apply(this,[e.valueOf()]):t.ui.rangeSlider.prototype.min.apply(this))},max:function(e){return new Date(this._isValidDate(e)?t.ui.rangeSlider.prototype.max.apply(this,[e.valueOf()]):t.ui.rangeSlider.prototype.max.apply(this))},bounds:function(e,n){var r;return r=this._isValidDate(e)&&this._isValidDate(n)?t.ui.rangeSlider.prototype.bounds.apply(this,[e.valueOf(),n.valueOf()]):t.ui.rangeSlider.prototype.bounds.apply(this,this._toArray(arguments)),{min:new Date(r.min),max:new Date(r.max)}},_isValidDate:function(t){return\"undefined\"!=typeof t&&t instanceof Date},_toArray:function(t){return Array.prototype.slice.call(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};define(\"widget/date_range_slider\",[\"underscore\",\"jquery\",\"jqrangeslider/jQDateRangeSlider\",\"common/collection\",\"common/continuum_view\",\"common/has_properties\"],function(t,n,r,i,o,s){var a,l,u,c,p,h;return l=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(t){var e=this;return r.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",function(){return e.render})},r.prototype.render=function(){var e,n,r,i,o,s,a,l,u,c=this;return this.$el.empty(),a=this.mget(\"value\"),s=a[0],o=a[1],l=this.mget(\"range\"),i=l[0],r=l[1],u=this.mget(\"bounds\"),n=u[0],e=u[1],this.$el.dateRangeSlider({defaultValues:{min:new Date(s),max:new Date(o)},bounds:{min:new Date(n),max:new Date(e)},range:{min:t.isObject(i)?i:!1,max:t.isObject(r)?r:!1},step:this.mget(\"step\")||{},enabled:this.mget(\"enabled\"),arrows:this.mget(\"arrows\"),valueLabels:this.mget(\"value_labels\"),wheelMode:this.mget(\"wheel_mode\")}),this.$el.on(\"userValuesChanged\",function(t,e){return c.mset(\"value\",[e.values.min,e.values.max]),c.model.save()})},r}(o),a=function(n){function r(){return p=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"DateRangeSlider\",r.prototype.default_view=l,r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{})},r}(s),u=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(i),{Model:a,Collection:new u,View:l}})}.call(this),function(t){\"function\"==typeof define&&define.amd?define(\"jquery_ui/datepicker\",[\"jquery\",\"./core\"],t):t(jQuery)}(function(t){function e(t){for(var e,n;t.length&&t[0]!==document;){if(e=t.css(\"position\"),(\"absolute\"===e||\"relative\"===e||\"fixed\"===e)&&(n=parseInt(t.css(\"zIndex\"),10),!isNaN(n)&&0!==n))return n;t=t.parent()}return 0}function n(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId=\"bk-ui-datepicker-div\",this._inlineClass=\"bk-ui-datepicker-inline\",this._appendClass=\"bk-ui-datepicker-append\",this._triggerClass=\"bk-ui-datepicker-trigger\",this._dialogClass=\"bk-ui-datepicker-dialog\",this._disableClass=\"bk-ui-datepicker-disabled\",this._unselectableClass=\"bk-ui-datepicker-unselectable\",this._currentClass=\"bk-ui-datepicker-current-day\",this._dayOverClass=\"bk-ui-datepicker-days-cell-over\",this.regional=[],this.regional[\"\"]={closeText:\"Done\",prevText:\"Prev\",nextText:\"Next\",currentText:\"Today\",monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],weekHeader:\"Wk\",dateFormat:\"mm/dd/yy\",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:\"\"},this._defaults={showOn:\"focus\",showAnim:\"fadeIn\",showOptions:{},defaultDate:null,appendText:\"\",buttonText:\"...\",buttonImage:\"\",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:\"c-10:c+10\",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:\"+10\",minDate:null,maxDate:null,duration:\"fast\",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:\"\",altFormat:\"\",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[\"\"]),this.regional.en=t.extend(!0,{},this.regional[\"\"]),this.regional[\"en-US\"]=t.extend(!0,{},this.regional.en),this.dpDiv=r(t(\"<div id='\"+this._mainDivId+\"' class='bk-ui-datepicker bk-ui-widget bk-ui-widget-content bk-ui-helper-clearfix bk-ui-corner-all'></div>\"))}function r(e){var n=\"button, .bk-ui-datepicker-prev, .bk-ui-datepicker-next, .bk-ui-datepicker-calendar td a\";return e.delegate(n,\"mouseout\",function(){t(this).removeClass(\"bk-ui-state-hover\"),-1!==this.className.indexOf(\"bk-ui-datepicker-prev\")&&t(this).removeClass(\"bk-ui-datepicker-prev-hover\"),-1!==this.className.indexOf(\"bk-ui-datepicker-next\")&&t(this).removeClass(\"bk-ui-datepicker-next-hover\")}).delegate(n,\"mouseover\",i)}function i(){t.datepicker._isDisabledDatepicker(s.inline?s.dpDiv.parent()[0]:s.input[0])||(t(this).parents(\".bk-ui-datepicker-calendar\").find(\"a\").removeClass(\"bk-ui-state-hover\"),t(this).addClass(\"bk-ui-state-hover\"),-1!==this.className.indexOf(\"bk-ui-datepicker-prev\")&&t(this).addClass(\"bk-ui-datepicker-prev-hover\"),-1!==this.className.indexOf(\"bk-ui-datepicker-next\")&&t(this).addClass(\"bk-ui-datepicker-next-hover\"))}function o(e,n){t.extend(e,n);for(var r in n)null==n[r]&&(e[r]=n[r]);return e}t.extend(t.ui,{datepicker:{version:\"1.11.2\"}});var s;return t.extend(n.prototype,{markerClassName:\"hasDatepicker\",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return o(this._defaults,t||{}),this},_attachDatepicker:function(e,n){var r,i,o;r=e.nodeName.toLowerCase(),i=\"div\"===r||\"span\"===r,e.id||(this.uuid+=1,e.id=\"dp\"+this.uuid),o=this._newInst(t(e),i),o.settings=t.extend({},n||{}),\"input\"===r?this._connectDatepicker(e,o):i&&this._inlineDatepicker(e,o)},_newInst:function(e,n){var i=e[0].id.replace(/([^A-Za-z0-9_\\-])/g,\"\\\\\\\\$1\");return{id:i,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:n,dpDiv:n?r(t(\"<div class='\"+this._inlineClass+\" bk-ui-datepicker bk-ui-widget bk-ui-widget-content bk-ui-helper-clearfix bk-ui-corner-all'></div>\")):this.dpDiv}},_connectDatepicker:function(e,n){var r=t(e);n.append=t([]),n.trigger=t([]),r.hasClass(this.markerClassName)||(this._attachments(r,n),r.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(n),t.data(e,\"datepicker\",n),n.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,n){var r,i,o,s=this._get(n,\"appendText\"),a=this._get(n,\"isRTL\");n.append&&n.append.remove(),s&&(n.append=t(\"<span class='\"+this._appendClass+\"'>\"+s+\"</span>\"),e[a?\"before\":\"after\"](n.append)),e.unbind(\"focus\",this._showDatepicker),n.trigger&&n.trigger.remove(),r=this._get(n,\"showOn\"),(\"focus\"===r||\"both\"===r)&&e.focus(this._showDatepicker),(\"button\"===r||\"both\"===r)&&(i=this._get(n,\"buttonText\"),o=this._get(n,\"buttonImage\"),n.trigger=t(this._get(n,\"buttonImageOnly\")?t(\"<img/>\").addClass(this._triggerClass).attr({src:o,alt:i,title:i}):t(\"<button type='button'></button>\").addClass(this._triggerClass).html(o?t(\"<img/>\").attr({src:o,alt:i,title:i}):i)),e[a?\"before\":\"after\"](n.trigger),n.trigger.click(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,\"autoSize\")&&!t.inline){var e,n,r,i,o=new Date(2009,11,20),s=this._get(t,\"dateFormat\");s.match(/[DM]/)&&(e=function(t){for(n=0,r=0,i=0;i<t.length;i++)t[i].length>n&&(n=t[i].length,r=i);return r},o.setMonth(e(this._get(t,s.match(/MM/)?\"monthNames\":\"monthNamesShort\"))),o.setDate(e(this._get(t,s.match(/DD/)?\"dayNames\":\"dayNamesShort\"))+20-o.getDay())),t.input.attr(\"size\",this._formatDate(t,o).length)}},_inlineDatepicker:function(e,n){var r=t(e);r.hasClass(this.markerClassName)||(r.addClass(this.markerClassName).append(n.dpDiv),t.data(e,\"datepicker\",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(e),n.dpDiv.css(\"display\",\"block\"))},_dialogDatepicker:function(e,n,r,i,s){var a,l,u,c,p,h=this._dialogInst;return h||(this.uuid+=1,a=\"dp\"+this.uuid,this._dialogInput=t(\"<input type='text' id='\"+a+\"' style='position: absolute; top: -100px; width: 0px;'/>\"),this._dialogInput.keydown(this._doKeyDown),t(\"body\").append(this._dialogInput),h=this._dialogInst=this._newInst(this._dialogInput,!1),h.settings={},t.data(this._dialogInput[0],\"datepicker\",h)),o(h.settings,i||{}),n=n&&n.constructor===Date?this._formatDate(h,n):n,this._dialogInput.val(n),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(l=document.documentElement.clientWidth,u=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,p=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+c,u/2-150+p]),this._dialogInput.css(\"left\",this._pos[0]+20+\"px\").css(\"top\",this._pos[1]+\"px\"),h.settings.onSelect=r,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],\"datepicker\",h),this},_destroyDatepicker:function(e){var n,r=t(e),i=t.data(e,\"datepicker\");r.hasClass(this.markerClassName)&&(n=e.nodeName.toLowerCase(),t.removeData(e,\"datepicker\"),\"input\"===n?(i.append.remove(),i.trigger.remove(),r.removeClass(this.markerClassName).unbind(\"focus\",this._showDatepicker).unbind(\"keydown\",this._doKeyDown).unbind(\"keypress\",this._doKeyPress).unbind(\"keyup\",this._doKeyUp)):(\"div\"===n||\"span\"===n)&&r.removeClass(this.markerClassName).empty())},_enableDatepicker:function(e){var n,r,i=t(e),o=t.data(e,\"datepicker\");i.hasClass(this.markerClassName)&&(n=e.nodeName.toLowerCase(),\"input\"===n?(e.disabled=!1,o.trigger.filter(\"button\").each(function(){this.disabled=!1}).end().filter(\"img\").css({opacity:\"1.0\",cursor:\"\"})):(\"div\"===n||\"span\"===n)&&(r=i.children(\".\"+this._inlineClass),r.children().removeClass(\"bk-ui-state-disabled\"),r.find(\"select.bk-ui-datepicker-month, select.bk-ui-datepicker-year\").prop(\"disabled\",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var n,r,i=t(e),o=t.data(e,\"datepicker\");i.hasClass(this.markerClassName)&&(n=e.nodeName.toLowerCase(),\"input\"===n?(e.disabled=!0,o.trigger.filter(\"button\").each(function(){this.disabled=!0}).end().filter(\"img\").css({opacity:\"0.5\",cursor:\"default\"})):(\"div\"===n||\"span\"===n)&&(r=i.children(\".\"+this._inlineClass),r.children().addClass(\"bk-ui-state-disabled\"),r.find(\"select.bk-ui-datepicker-month, select.bk-ui-datepicker-year\").prop(\"disabled\",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,\"datepicker\")}catch(n){throw\"Missing instance data for this datepicker\"}},_optionDatepicker:function(e,n,r){var i,s,a,l,u=this._getInst(e);return 2===arguments.length&&\"string\"==typeof n?\"defaults\"===n?t.extend({},t.datepicker._defaults):u?\"all\"===n?t.extend({},u.settings):this._get(u,n):null:(i=n||{},\"string\"==typeof n&&(i={},i[n]=r),void(u&&(this._curInst===u&&this._hideDatepicker(),s=this._getDateDatepicker(e,!0),a=this._getMinMaxDate(u,\"min\"),l=this._getMinMaxDate(u,\"max\"),o(u.settings,i),null!==a&&void 0!==i.dateFormat&&void 0===i.minDate&&(u.settings.minDate=this._formatDate(u,a)),null!==l&&void 0!==i.dateFormat&&void 0===i.maxDate&&(u.settings.maxDate=this._formatDate(u,l)),\"disabled\"in i&&(i.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),u),this._autoSize(u),this._setDate(u,s),this._updateAlternate(u),this._updateDatepicker(u))))},_changeDatepicker:function(t,e,n){this._optionDatepicker(t,e,n)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var n=this._getInst(t);n&&(this._setDate(n,e),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(t,e){var n=this._getInst(t);return n&&!n.inline&&this._setDateFromField(n,e),n?this._getDate(n):null},_doKeyDown:function(e){var n,r,i,o=t.datepicker._getInst(e.target),s=!0,a=o.dpDiv.is(\".bk-ui-datepicker-rtl\");if(o._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),s=!1;break;case 13:return i=t(\"td.\"+t.datepicker._dayOverClass+\":not(.\"+t.datepicker._currentClass+\")\",o.dpDiv),i[0]&&t.datepicker._selectDay(e.target,o.selectedMonth,o.selectedYear,i[0]),n=t.datepicker._get(o,\"onSelect\"),n?(r=t.datepicker._formatDate(o),n.apply(o.input?o.input[0]:null,[r,o])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,\"stepBigMonths\"):-t.datepicker._get(o,\"stepMonths\"),\"M\");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,\"stepBigMonths\"):+t.datepicker._get(o,\"stepMonths\"),\"M\");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),s=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),s=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,a?1:-1,\"D\"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,\"stepBigMonths\"):-t.datepicker._get(o,\"stepMonths\"),\"M\");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,\"D\"),s=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,a?-1:1,\"D\"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,\"stepBigMonths\"):+t.datepicker._get(o,\"stepMonths\"),\"M\");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,\"D\"),s=e.ctrlKey||e.metaKey;break;default:s=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):s=!1;s&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var n,r,i=t.datepicker._getInst(e.target);return t.datepicker._get(i,\"constrainInput\")?(n=t.datepicker._possibleChars(t.datepicker._get(i,\"dateFormat\")),r=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||\" \">r||!n||n.indexOf(r)>-1):void 0},_doKeyUp:function(e){var n,r=t.datepicker._getInst(e.target);if(r.input.val()!==r.lastVal)try{n=t.datepicker.parseDate(t.datepicker._get(r,\"dateFormat\"),r.input?r.input.val():null,t.datepicker._getFormatConfig(r)),n&&(t.datepicker._setDateFromField(r),t.datepicker._updateAlternate(r),t.datepicker._updateDatepicker(r))}catch(i){}return!0},_showDatepicker:function(n){if(n=n.target||n,\"input\"!==n.nodeName.toLowerCase()&&(n=t(\"input\",n.parentNode)[0]),!t.datepicker._isDisabledDatepicker(n)&&t.datepicker._lastInput!==n){var r,i,s,a,l,u,c;r=t.datepicker._getInst(n),t.datepicker._curInst&&t.datepicker._curInst!==r&&(t.datepicker._curInst.dpDiv.stop(!0,!0),r&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),i=t.datepicker._get(r,\"beforeShow\"),s=i?i.apply(n,[n,r]):{},s!==!1&&(o(r.settings,s),r.lastVal=null,t.datepicker._lastInput=n,t.datepicker._setDateFromField(r),t.datepicker._inDialog&&(n.value=\"\"),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(n),t.datepicker._pos[1]+=n.offsetHeight),a=!1,t(n).parents().each(function(){return a|=\"fixed\"===t(this).css(\"position\"),!a}),l={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,r.dpDiv.empty(),r.dpDiv.css({position:\"absolute\",display:\"block\",top:\"-1000px\"}),t.datepicker._updateDatepicker(r),l=t.datepicker._checkOffset(r,l,a),r.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?\"static\":a?\"fixed\":\"absolute\",display:\"none\",left:l.left+\"px\",top:l.top+\"px\"}),r.inline||(u=t.datepicker._get(r,\"showAnim\"),c=t.datepicker._get(r,\"duration\"),r.dpDiv.css(\"z-index\",e(t(n))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[u]?r.dpDiv.show(u,t.datepicker._get(r,\"showOptions\"),c):r.dpDiv[u||\"show\"](u?c:null),t.datepicker._shouldFocusInput(r)&&r.input.focus(),t.datepicker._curInst=r))\n",
        "                }},_updateDatepicker:function(e){this.maxRows=4,s=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var n,r=this._getNumberOfMonths(e),o=r[1],a=17,l=e.dpDiv.find(\".\"+this._dayOverClass+\" a\");l.length>0&&i.apply(l.get(0)),e.dpDiv.removeClass(\"bk-ui-datepicker-multi-2 bk-ui-datepicker-multi-3 bk-ui-datepicker-multi-4\").width(\"\"),o>1&&e.dpDiv.addClass(\"bk-ui-datepicker-multi-\"+o).css(\"width\",a*o+\"em\"),e.dpDiv[(1!==r[0]||1!==r[1]?\"add\":\"remove\")+\"Class\"](\"bk-ui-datepicker-multi\"),e.dpDiv[(this._get(e,\"isRTL\")?\"add\":\"remove\")+\"Class\"](\"bk-ui-datepicker-rtl\"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.focus(),e.yearshtml&&(n=e.yearshtml,setTimeout(function(){n===e.yearshtml&&e.yearshtml&&e.dpDiv.find(\"select.bk-ui-datepicker-year:first\").replaceWith(e.yearshtml),n=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(\":visible\")&&!t.input.is(\":disabled\")&&!t.input.is(\":focus\")},_checkOffset:function(e,n,r){var i=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),s=e.input?e.input.outerWidth():0,a=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(r?0:t(document).scrollLeft()),u=document.documentElement.clientHeight+(r?0:t(document).scrollTop());return n.left-=this._get(e,\"isRTL\")?i-s:0,n.left-=r&&n.left===e.input.offset().left?t(document).scrollLeft():0,n.top-=r&&n.top===e.input.offset().top+a?t(document).scrollTop():0,n.left-=Math.min(n.left,n.left+i>l&&l>i?Math.abs(n.left+i-l):0),n.top-=Math.min(n.top,n.top+o>u&&u>o?Math.abs(o+a):0),n},_findPos:function(e){for(var n,r=this._getInst(e),i=this._get(r,\"isRTL\");e&&(\"hidden\"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[i?\"previousSibling\":\"nextSibling\"];return n=t(e).offset(),[n.left,n.top]},_hideDatepicker:function(e){var n,r,i,o,s=this._curInst;!s||e&&s!==t.data(e,\"datepicker\")||this._datepickerShowing&&(n=this._get(s,\"showAnim\"),r=this._get(s,\"duration\"),i=function(){t.datepicker._tidyDialog(s)},t.effects&&(t.effects.effect[n]||t.effects[n])?s.dpDiv.hide(n,t.datepicker._get(s,\"showOptions\"),r,i):s.dpDiv[\"slideDown\"===n?\"slideUp\":\"fadeIn\"===n?\"fadeOut\":\"hide\"](n?r:null,i),n||i(),this._datepickerShowing=!1,o=this._get(s,\"onClose\"),o&&o.apply(s.input?s.input[0]:null,[s.input?s.input.val():\"\",s]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:\"absolute\",left:\"0\",top:\"-100px\"}),t.blockUI&&(t.unblockUI(),t(\"body\").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(\".bk-ui-datepicker-calendar\")},_checkExternalClick:function(e){if(t.datepicker._curInst){var n=t(e.target),r=t.datepicker._getInst(n[0]);(n[0].id!==t.datepicker._mainDivId&&0===n.parents(\"#\"+t.datepicker._mainDivId).length&&!n.hasClass(t.datepicker.markerClassName)&&!n.closest(\".\"+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||n.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==r)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,n,r){var i=t(e),o=this._getInst(i[0]);this._isDisabledDatepicker(i[0])||(this._adjustInstDate(o,n+(\"M\"===r?this._get(o,\"showCurrentAtPos\"):0),r),this._updateDatepicker(o))},_gotoToday:function(e){var n,r=t(e),i=this._getInst(r[0]);this._get(i,\"gotoCurrent\")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(n=new Date,i.selectedDay=n.getDate(),i.drawMonth=i.selectedMonth=n.getMonth(),i.drawYear=i.selectedYear=n.getFullYear()),this._notifyChange(i),this._adjustDate(r)},_selectMonthYear:function(e,n,r){var i=t(e),o=this._getInst(i[0]);o[\"selected\"+(\"M\"===r?\"Month\":\"Year\")]=o[\"draw\"+(\"M\"===r?\"Month\":\"Year\")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(i)},_selectDay:function(e,n,r,i){var o,s=t(e);t(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||(o=this._getInst(s[0]),o.selectedDay=o.currentDay=t(\"a\",i).html(),o.selectedMonth=o.currentMonth=n,o.selectedYear=o.currentYear=r,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(e){var n=t(e);this._selectDate(n,\"\")},_selectDate:function(e,n){var r,i=t(e),o=this._getInst(i[0]);n=null!=n?n:this._formatDate(o),o.input&&o.input.val(n),this._updateAlternate(o),r=this._get(o,\"onSelect\"),r?r.apply(o.input?o.input[0]:null,[n,o]):o.input&&o.input.trigger(\"change\"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],\"object\"!=typeof o.input[0]&&o.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var n,r,i,o=this._get(e,\"altField\");o&&(n=this._get(e,\"altFormat\")||this._get(e,\"dateFormat\"),r=this._getDate(e),i=this.formatDate(n,r,this._getFormatConfig(e)),t(o).each(function(){t(this).val(i)}))},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,\"\"]},iso8601Week:function(t){var e,n=new Date(t.getTime());return n.setDate(n.getDate()+4-(n.getDay()||7)),e=n.getTime(),n.setMonth(0),n.setDate(1),Math.floor(Math.round((e-n)/864e5)/7)+1},parseDate:function(e,n,r){if(null==e||null==n)throw\"Invalid arguments\";if(n=\"object\"==typeof n?n.toString():n+\"\",\"\"===n)return null;var i,o,s,a,l=0,u=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,c=\"string\"!=typeof u?u:(new Date).getFullYear()%100+parseInt(u,10),p=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,h=(r?r.dayNames:null)||this._defaults.dayNames,d=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,f=(r?r.monthNames:null)||this._defaults.monthNames,_=-1,g=-1,m=-1,y=-1,v=!1,b=function(t){var n=i+1<e.length&&e.charAt(i+1)===t;return n&&i++,n},w=function(t){var e=b(t),r=\"@\"===t?14:\"!\"===t?20:\"y\"===t&&e?4:\"o\"===t?3:2,i=\"y\"===t?r:1,o=new RegExp(\"^\\\\d{\"+i+\",\"+r+\"}\"),s=n.substring(l).match(o);if(!s)throw\"Missing number at position \"+l;return l+=s[0].length,parseInt(s[0],10)},x=function(e,r,i){var o=-1,s=t.map(b(e)?i:r,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(s,function(t,e){var r=e[1];return n.substr(l,r.length).toLowerCase()===r.toLowerCase()?(o=e[0],l+=r.length,!1):void 0}),-1!==o)return o+1;throw\"Unknown name at position \"+l},k=function(){if(n.charAt(l)!==e.charAt(i))throw\"Unexpected literal at position \"+l;l++};for(i=0;i<e.length;i++)if(v)\"'\"!==e.charAt(i)||b(\"'\")?k():v=!1;else switch(e.charAt(i)){case\"d\":m=w(\"d\");break;case\"D\":x(\"D\",p,h);break;case\"o\":y=w(\"o\");break;case\"m\":g=w(\"m\");break;case\"M\":g=x(\"M\",d,f);break;case\"y\":_=w(\"y\");break;case\"@\":a=new Date(w(\"@\")),_=a.getFullYear(),g=a.getMonth()+1,m=a.getDate();break;case\"!\":a=new Date((w(\"!\")-this._ticksTo1970)/1e4),_=a.getFullYear(),g=a.getMonth()+1,m=a.getDate();break;case\"'\":b(\"'\")?k():v=!0;break;default:k()}if(l<n.length&&(s=n.substr(l),!/^\\s+/.test(s)))throw\"Extra/unparsed characters found in date: \"+s;if(-1===_?_=(new Date).getFullYear():100>_&&(_+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c>=_?0:-100)),y>-1)for(g=1,m=y;;){if(o=this._getDaysInMonth(_,g-1),o>=m)break;g++,m-=o}if(a=this._daylightSavingAdjust(new Date(_,g-1,m)),a.getFullYear()!==_||a.getMonth()+1!==g||a.getDate()!==m)throw\"Invalid date\";return a},ATOM:\"yy-mm-dd\",COOKIE:\"D, dd M yy\",ISO_8601:\"yy-mm-dd\",RFC_822:\"D, d M y\",RFC_850:\"DD, dd-M-y\",RFC_1036:\"D, d M y\",RFC_1123:\"D, d M yy\",RFC_2822:\"D, d M yy\",RSS:\"D, d M y\",TICKS:\"!\",TIMESTAMP:\"@\",W3C:\"yy-mm-dd\",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,n){if(!e)return\"\";var r,i=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,o=(n?n.dayNames:null)||this._defaults.dayNames,s=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,a=(n?n.monthNames:null)||this._defaults.monthNames,l=function(e){var n=r+1<t.length&&t.charAt(r+1)===e;return n&&r++,n},u=function(t,e,n){var r=\"\"+e;if(l(t))for(;r.length<n;)r=\"0\"+r;return r},c=function(t,e,n,r){return l(t)?r[e]:n[e]},p=\"\",h=!1;if(e)for(r=0;r<t.length;r++)if(h)\"'\"!==t.charAt(r)||l(\"'\")?p+=t.charAt(r):h=!1;else switch(t.charAt(r)){case\"d\":p+=u(\"d\",e.getDate(),2);break;case\"D\":p+=c(\"D\",e.getDay(),i,o);break;case\"o\":p+=u(\"o\",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case\"m\":p+=u(\"m\",e.getMonth()+1,2);break;case\"M\":p+=c(\"M\",e.getMonth(),s,a);break;case\"y\":p+=l(\"y\")?e.getFullYear():(e.getYear()%100<10?\"0\":\"\")+e.getYear()%100;break;case\"@\":p+=e.getTime();break;case\"!\":p+=1e4*e.getTime()+this._ticksTo1970;break;case\"'\":l(\"'\")?p+=\"'\":h=!0;break;default:p+=t.charAt(r)}return p},_possibleChars:function(t){var e,n=\"\",r=!1,i=function(n){var r=e+1<t.length&&t.charAt(e+1)===n;return r&&e++,r};for(e=0;e<t.length;e++)if(r)\"'\"!==t.charAt(e)||i(\"'\")?n+=t.charAt(e):r=!1;else switch(t.charAt(e)){case\"d\":case\"m\":case\"y\":case\"@\":n+=\"0123456789\";break;case\"D\":case\"M\":return null;case\"'\":i(\"'\")?n+=\"'\":r=!0;break;default:n+=t.charAt(e)}return n},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var n=this._get(t,\"dateFormat\"),r=t.lastVal=t.input?t.input.val():null,i=this._getDefaultDate(t),o=i,s=this._getFormatConfig(t);try{o=this.parseDate(n,r,s)||i}catch(a){r=e?\"\":r}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=r?o.getDate():0,t.currentMonth=r?o.getMonth():0,t.currentYear=r?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,\"defaultDate\"),new Date))},_determineDate:function(e,n,r){var i=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},o=function(n){try{return t.datepicker.parseDate(t.datepicker._get(e,\"dateFormat\"),n,t.datepicker._getFormatConfig(e))}catch(r){}for(var i=(n.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,o=i.getFullYear(),s=i.getMonth(),a=i.getDate(),l=/([+\\-]?[0-9]+)\\s*(d|D|w|W|m|M|y|Y)?/g,u=l.exec(n);u;){switch(u[2]||\"d\"){case\"d\":case\"D\":a+=parseInt(u[1],10);break;case\"w\":case\"W\":a+=7*parseInt(u[1],10);break;case\"m\":case\"M\":s+=parseInt(u[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(o,s));break;case\"y\":case\"Y\":o+=parseInt(u[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(o,s))}u=l.exec(n)}return new Date(o,s,a)},s=null==n||\"\"===n?r:\"string\"==typeof n?o(n):\"number\"==typeof n?isNaN(n)?r:i(n):new Date(n.getTime());return s=s&&\"Invalid Date\"===s.toString()?r:s,s&&(s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0)),this._daylightSavingAdjust(s)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,n){var r=!e,i=t.selectedMonth,o=t.selectedYear,s=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=s.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=s.getMonth(),t.drawYear=t.selectedYear=t.currentYear=s.getFullYear(),i===t.selectedMonth&&o===t.selectedYear||n||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(r?\"\":this._formatDate(t))},_getDate:function(t){var e=!t.currentYear||t.input&&\"\"===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_attachHandlers:function(e){var n=this._get(e,\"stepMonths\"),r=\"#\"+e.id.replace(/\\\\\\\\/g,\"\\\\\");e.dpDiv.find(\"[data-handler]\").map(function(){var e={prev:function(){t.datepicker._adjustDate(r,-n,\"M\")},next:function(){t.datepicker._adjustDate(r,+n,\"M\")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(r)},selectDay:function(){return t.datepicker._selectDay(r,+this.getAttribute(\"data-month\"),+this.getAttribute(\"data-year\"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(r,this,\"M\"),!1},selectYear:function(){return t.datepicker._selectMonthYear(r,this,\"Y\"),!1}};t(this).bind(this.getAttribute(\"data-event\"),e[this.getAttribute(\"data-handler\")])})},_generateHTML:function(t){var e,n,r,i,o,s,a,l,u,c,p,h,d,f,_,g,m,y,v,b,w,x,k,C,M,A,S,T,D,E,R,I,P,N,z,O,j,F,L,B=new Date,H=this._daylightSavingAdjust(new Date(B.getFullYear(),B.getMonth(),B.getDate())),$=this._get(t,\"isRTL\"),W=this._get(t,\"showButtonPanel\"),V=this._get(t,\"hideIfNoPrevNext\"),Y=this._get(t,\"navigationAsDateFormat\"),U=this._getNumberOfMonths(t),q=this._get(t,\"showCurrentAtPos\"),G=this._get(t,\"stepMonths\"),Z=1!==U[0]||1!==U[1],J=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),X=this._getMinMaxDate(t,\"min\"),Q=this._getMinMaxDate(t,\"max\"),K=t.drawMonth-q,te=t.drawYear;if(0>K&&(K+=12,te--),Q)for(e=this._daylightSavingAdjust(new Date(Q.getFullYear(),Q.getMonth()-U[0]*U[1]+1,Q.getDate())),e=X&&X>e?X:e;this._daylightSavingAdjust(new Date(te,K,1))>e;)K--,0>K&&(K=11,te--);for(t.drawMonth=K,t.drawYear=te,n=this._get(t,\"prevText\"),n=Y?this.formatDate(n,this._daylightSavingAdjust(new Date(te,K-G,1)),this._getFormatConfig(t)):n,r=this._canAdjustMonth(t,-1,te,K)?\"<a class='bk-ui-datepicker-prev bk-ui-corner-all' data-handler='prev' data-event='click' title='\"+n+\"'><span class='bk-ui-icon bk-ui-icon-circle-triangle-\"+($?\"e\":\"w\")+\"'>\"+n+\"</span></a>\":V?\"\":\"<a class='bk-ui-datepicker-prev bk-ui-corner-all bk-ui-state-disabled' title='\"+n+\"'><span class='bk-ui-icon bk-ui-icon-circle-triangle-\"+($?\"e\":\"w\")+\"'>\"+n+\"</span></a>\",i=this._get(t,\"nextText\"),i=Y?this.formatDate(i,this._daylightSavingAdjust(new Date(te,K+G,1)),this._getFormatConfig(t)):i,o=this._canAdjustMonth(t,1,te,K)?\"<a class='bk-ui-datepicker-next bk-ui-corner-all' data-handler='next' data-event='click' title='\"+i+\"'><span class='bk-ui-icon bk-ui-icon-circle-triangle-\"+($?\"w\":\"e\")+\"'>\"+i+\"</span></a>\":V?\"\":\"<a class='bk-ui-datepicker-next bk-ui-corner-all bk-ui-state-disabled' title='\"+i+\"'><span class='bk-ui-icon bk-ui-icon-circle-triangle-\"+($?\"w\":\"e\")+\"'>\"+i+\"</span></a>\",s=this._get(t,\"currentText\"),a=this._get(t,\"gotoCurrent\")&&t.currentDay?J:H,s=Y?this.formatDate(s,a,this._getFormatConfig(t)):s,l=t.inline?\"\":\"<button type='button' class='bk-ui-datepicker-close bk-ui-state-default bk-ui-priority-primary bk-ui-corner-all' data-handler='hide' data-event='click'>\"+this._get(t,\"closeText\")+\"</button>\",u=W?\"<div class='bk-ui-datepicker-buttonpane bk-ui-widget-content'>\"+($?l:\"\")+(this._isInRange(t,a)?\"<button type='button' class='bk-ui-datepicker-current bk-ui-state-default bk-ui-priority-secondary bk-ui-corner-all' data-handler='today' data-event='click'>\"+s+\"</button>\":\"\")+($?\"\":l)+\"</div>\":\"\",c=parseInt(this._get(t,\"firstDay\"),10),c=isNaN(c)?0:c,p=this._get(t,\"showWeek\"),h=this._get(t,\"dayNames\"),d=this._get(t,\"dayNamesMin\"),f=this._get(t,\"monthNames\"),_=this._get(t,\"monthNamesShort\"),g=this._get(t,\"beforeShowDay\"),m=this._get(t,\"showOtherMonths\"),y=this._get(t,\"selectOtherMonths\"),v=this._getDefaultDate(t),b=\"\",x=0;x<U[0];x++){for(k=\"\",this.maxRows=4,C=0;C<U[1];C++){if(M=this._daylightSavingAdjust(new Date(te,K,t.selectedDay)),A=\" bk-ui-corner-all\",S=\"\",Z){if(S+=\"<div class='bk-ui-datepicker-group\",U[1]>1)switch(C){case 0:S+=\" bk-ui-datepicker-group-first\",A=\" bk-ui-corner-\"+($?\"right\":\"left\");break;case U[1]-1:S+=\" bk-ui-datepicker-group-last\",A=\" bk-ui-corner-\"+($?\"left\":\"right\");break;default:S+=\" bk-ui-datepicker-group-middle\",A=\"\"}S+=\"'>\"}for(S+=\"<div class='bk-ui-datepicker-header bk-ui-widget-header bk-ui-helper-clearfix\"+A+\"'>\"+(/all|left/.test(A)&&0===x?$?o:r:\"\")+(/all|right/.test(A)&&0===x?$?r:o:\"\")+this._generateMonthYearHeader(t,K,te,X,Q,x>0||C>0,f,_)+\"</div><table class='bk-ui-datepicker-calendar'><thead><tr>\",T=p?\"<th class='bk-ui-datepicker-week-col'>\"+this._get(t,\"weekHeader\")+\"</th>\":\"\",w=0;7>w;w++)D=(w+c)%7,T+=\"<th scope='col'\"+((w+c+6)%7>=5?\" class='bk-ui-datepicker-week-end'\":\"\")+\"><span title='\"+h[D]+\"'>\"+d[D]+\"</span></th>\";for(S+=T+\"</tr></thead><tbody>\",E=this._getDaysInMonth(te,K),te===t.selectedYear&&K===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,E)),R=(this._getFirstDayOfMonth(te,K)-c+7)%7,I=Math.ceil((R+E)/7),P=Z&&this.maxRows>I?this.maxRows:I,this.maxRows=P,N=this._daylightSavingAdjust(new Date(te,K,1-R)),z=0;P>z;z++){for(S+=\"<tr>\",O=p?\"<td class='bk-ui-datepicker-week-col'>\"+this._get(t,\"calculateWeek\")(N)+\"</td>\":\"\",w=0;7>w;w++)j=g?g.apply(t.input?t.input[0]:null,[N]):[!0,\"\"],F=N.getMonth()!==K,L=F&&!y||!j[0]||X&&X>N||Q&&N>Q,O+=\"<td class='\"+((w+c+6)%7>=5?\" bk-ui-datepicker-week-end\":\"\")+(F?\" bk-ui-datepicker-other-month\":\"\")+(N.getTime()===M.getTime()&&K===t.selectedMonth&&t._keyEvent||v.getTime()===N.getTime()&&v.getTime()===M.getTime()?\" \"+this._dayOverClass:\"\")+(L?\" \"+this._unselectableClass+\" bk-ui-state-disabled\":\"\")+(F&&!m?\"\":\" \"+j[1]+(N.getTime()===J.getTime()?\" \"+this._currentClass:\"\")+(N.getTime()===H.getTime()?\" bk-ui-datepicker-today\":\"\"))+\"'\"+(F&&!m||!j[2]?\"\":\" title='\"+j[2].replace(/'/g,\"&#39;\")+\"'\")+(L?\"\":\" data-handler='selectDay' data-event='click' data-month='\"+N.getMonth()+\"' data-year='\"+N.getFullYear()+\"'\")+\">\"+(F&&!m?\"&#xa0;\":L?\"<span class='bk-ui-state-default'>\"+N.getDate()+\"</span>\":\"<a class='bk-ui-state-default\"+(N.getTime()===H.getTime()?\" bk-ui-state-highlight\":\"\")+(N.getTime()===J.getTime()?\" bk-ui-state-active\":\"\")+(F?\" bk-ui-priority-secondary\":\"\")+\"' href='#'>\"+N.getDate()+\"</a>\")+\"</td>\",N.setDate(N.getDate()+1),N=this._daylightSavingAdjust(N);S+=O+\"</tr>\"}K++,K>11&&(K=0,te++),S+=\"</tbody></table>\"+(Z?\"</div>\"+(U[0]>0&&C===U[1]-1?\"<div class='bk-ui-datepicker-row-break'></div>\":\"\"):\"\"),k+=S}b+=k}return b+=u,t._keyEvent=!1,b},_generateMonthYearHeader:function(t,e,n,r,i,o,s,a){var l,u,c,p,h,d,f,_,g=this._get(t,\"changeMonth\"),m=this._get(t,\"changeYear\"),y=this._get(t,\"showMonthAfterYear\"),v=\"<div class='bk-ui-datepicker-title'>\",b=\"\";if(o||!g)b+=\"<span class='bk-ui-datepicker-month'>\"+s[e]+\"</span>\";else{for(l=r&&r.getFullYear()===n,u=i&&i.getFullYear()===n,b+=\"<select class='bk-ui-datepicker-month' data-handler='selectMonth' data-event='change'>\",c=0;12>c;c++)(!l||c>=r.getMonth())&&(!u||c<=i.getMonth())&&(b+=\"<option value='\"+c+\"'\"+(c===e?\" selected='selected'\":\"\")+\">\"+a[c]+\"</option>\");b+=\"</select>\"}if(y||(v+=b+(!o&&g&&m?\"\":\"&#xa0;\")),!t.yearshtml)if(t.yearshtml=\"\",o||!m)v+=\"<span class='bk-ui-datepicker-year'>\"+n+\"</span>\";else{for(p=this._get(t,\"yearRange\").split(\":\"),h=(new Date).getFullYear(),d=function(t){var e=t.match(/c[+\\-].*/)?n+parseInt(t.substring(1),10):t.match(/[+\\-].*/)?h+parseInt(t,10):parseInt(t,10);return isNaN(e)?h:e},f=d(p[0]),_=Math.max(f,d(p[1]||\"\")),f=r?Math.max(f,r.getFullYear()):f,_=i?Math.min(_,i.getFullYear()):_,t.yearshtml+=\"<select class='bk-ui-datepicker-year' data-handler='selectYear' data-event='change'>\";_>=f;f++)t.yearshtml+=\"<option value='\"+f+\"'\"+(f===n?\" selected='selected'\":\"\")+\">\"+f+\"</option>\";t.yearshtml+=\"</select>\",v+=t.yearshtml,t.yearshtml=null}return v+=this._get(t,\"yearSuffix\"),y&&(v+=(!o&&g&&m?\"\":\"&#xa0;\")+b),v+=\"</div>\"},_adjustInstDate:function(t,e,n){var r=t.drawYear+(\"Y\"===n?e:0),i=t.drawMonth+(\"M\"===n?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(r,i))+(\"D\"===n?e:0),s=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(r,i,o)));t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),(\"M\"===n||\"Y\"===n)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var n=this._getMinMaxDate(t,\"min\"),r=this._getMinMaxDate(t,\"max\"),i=n&&n>e?n:e;return r&&i>r?r:i},_notifyChange:function(t){var e=this._get(t,\"onChangeMonthYear\");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,\"numberOfMonths\");return null==e?[1,1]:\"number\"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+\"Date\"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,n,r){var i=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(n,r+(0>e?e:i[0]*i[1]),1));return 0>e&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var n,r,i=this._getMinMaxDate(t,\"min\"),o=this._getMinMaxDate(t,\"max\"),s=null,a=null,l=this._get(t,\"yearRange\");return l&&(n=l.split(\":\"),r=(new Date).getFullYear(),s=parseInt(n[0],10),a=parseInt(n[1],10),n[0].match(/[+\\-].*/)&&(s+=r),n[1].match(/[+\\-].*/)&&(a+=r)),(!i||e.getTime()>=i.getTime())&&(!o||e.getTime()<=o.getTime())&&(!s||e.getFullYear()>=s)&&(!a||e.getFullYear()<=a)},_getFormatConfig:function(t){var e=this._get(t,\"shortYearCutoff\");return e=\"string\"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,\"dayNamesShort\"),dayNames:this._get(t,\"dayNames\"),monthNamesShort:this._get(t,\"monthNamesShort\"),monthNames:this._get(t,\"monthNames\")}},_formatDate:function(t,e,n,r){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var i=e?\"object\"==typeof e?e:this._daylightSavingAdjust(new Date(r,n,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,\"dateFormat\"),i,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).mousedown(t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t(\"#\"+t.datepicker._mainDivId).length&&t(\"body\").append(t.datepicker.dpDiv);var n=Array.prototype.slice.call(arguments,1);return\"string\"!=typeof e||\"isDisabled\"!==e&&\"getDate\"!==e&&\"widget\"!==e?\"option\"===e&&2===arguments.length&&\"string\"==typeof arguments[1]?t.datepicker[\"_\"+e+\"Datepicker\"].apply(t.datepicker,[this[0]].concat(n)):this.each(function(){\"string\"==typeof e?t.datepicker[\"_\"+e+\"Datepicker\"].apply(t.datepicker,[this].concat(n)):t.datepicker._attachDatepicker(this,e)}):t.datepicker[\"_\"+e+\"Datepicker\"].apply(t.datepicker,[this[0]].concat(n))},t.datepicker=new n,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version=\"1.11.2\",t.datepicker}),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=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};define(\"widget/date_picker\",[\"underscore\",\"jquery\",\"jquery_ui/datepicker\",\"common/collection\",\"common/continuum_view\",\"common/has_properties\"],function(e,r,i,o,s,a){var l,u,c,p,h,d;return u=function(e){function i(){return this.onSelect=t(this.onSelect,this),p=i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.initialize=function(t){return i.__super__.initialize.call(this,t),this.render()},i.prototype.render=function(){var t,e;return this.$el.empty(),e=r(\"<label>\").text(this.mget(\"title\")),t=r(\"<div>\").datepicker({defaultDate:new Date(this.mget(\"value\")),minDate:null!=this.mget(\"min_date\")?new Date(this.mget(\"min_date\")):null,maxDate:null!=this.mget(\"max_date\")?new Date(this.mget(\"max_date\")):null,onSelect:this.onSelect}),this.$el.append([e,t])},i.prototype.onSelect=function(t){return this.mset(\"value\",new Date(t)),this.model.save()},i}(s),l=function(t){function r(){return h=r.__super__.constructor.apply(this,arguments)}return n(r,t),r.prototype.type=\"DatePicker\",r.prototype.default_view=u,r.prototype.defaults=function(){return e.extend({},r.__super__.defaults.call(this),{value:Date.now()})},r}(a),c=function(t){function e(){return d=e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.model=l,e}(o),{Model:l,Collection:new c,View:u}})}.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};define(\"widget/panel\",[\"underscore\",\"jquery\",\"common/collection\",\"common/continuum_view\",\"common/has_properties\"],function(t,n,r,i,o){var s,a,l,u,c,p;return 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),this.render()},n.prototype.render=function(){return this.$el.empty()},n}(i),s=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"Panel\",r.prototype.default_view=a,r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{title:\"\",child:null,closable:!1})},r}(o),l=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(r),{Model:s,Collection:new l,View:a}})}.call(this),define(\"bootstrap/tab\",[\"jquery\"],function(t){+function(t){var e=function(e){this.element=t(e)};e.prototype.show=function(){var e=this.element,n=e.closest(\"ul:not(.bk-bs-dropdown-menu)\"),r=e.data(\"bk-bs-target\");if(r||(r=e.attr(\"href\"),r=r&&r.replace(/.*(?=#[^\\s]*$)/,\"\")),!e.parent(\"li\").hasClass(\"bk-bs-active\")){var i=n.find(\".bk-bs-active:last a\")[0],o=t.Event(\"show.bk-bs.tab\",{relatedTarget:i});if(e.trigger(o),!o.isDefaultPrevented()){var s=t(r);this.activate(e.parent(\"li\"),n),this.activate(s,s.parent(),function(){e.trigger({type:\"shown.bk-bs.tab\",relatedTarget:i})})}}},e.prototype.activate=function(e,n,r){function i(){o.removeClass(\"bk-bs-active\").find(\"> .bk-bs-dropdown-menu > .bk-bs-active\").removeClass(\"bk-bs-active\"),e.addClass(\"bk-bs-active\"),s?(e[0].offsetWidth,e.addClass(\"bk-bs-in\")):e.removeClass(\"bk-bs-fade\"),e.parent(\".bk-bs-dropdown-menu\")&&e.closest(\"li.bk-bs-dropdown\").addClass(\"bk-bs-active\"),r&&r()}var o=n.find(\"> .bk-bs-active\"),s=r&&t.support.transition&&o.hasClass(\"bk-bs-fade\");s?o.one(t.support.transition.end,i).emulateTransitionEnd(150):i(),o.removeClass(\"bk-bs-in\")};var n=t.fn.tab;t.fn.tab=function(n){return this.each(function(){var r=t(this),i=r.data(\"bk-bs.tab\");i||r.data(\"bk-bs.tab\",i=new e(this)),\"string\"==typeof n&&i[n]()})},t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=n,this},t(document).on(\"click.bk-bs.tab.data-api\",'[data-bk-bs-toggle=\"tab\"], [data-bk-bs-toggle=\"pill\"]',function(e){e.preventDefault(),t(this).tab(\"show\")})}(t)}),define(\"widget/tabs_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;for(r(e('<ul class=\"bk-bs-nav bk-bs-nav-tabs\">\\n  ')),l=this.tabs,t=i=0,s=l.length;s>i;t=++i)n=l[t],r(e('\\n    <li class=\"')),r(this.active(t)),r(e('\">\\n      <a href=\"#tab-')),r(n.get(\"id\")),r(e('\">')),r(n.get(\"title\")),r(e(\"</a>\\n    </li>\\n  \"));for(r(e('\\n</ul>\\n<div class=\"bk-bs-tab-content\">\\n  ')),u=this.tabs,t=o=0,a=u.length;a>o;t=++o)n=u[t],r(e('\\n    <div class=\"bk-bs-tab-pane ')),r(this.active(t)),r(e('\" id=\"tab-')),r(n.get(\"id\")),r(e('\"></div>\\n  '));r(e(\"\\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}),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};define(\"widget/tabs\",[\"underscore\",\"jquery\",\"bootstrap/tab\",\"common/collection\",\"common/continuum_view\",\"common/has_properties\",\"common/build_views\",\"./tabs_template\"],function(n,r,i,o,s,a,l,u){var c,p,h,d,f,_;return p=function(i){function o(){return d=o.__super__.constructor.apply(this,arguments)}return e(o,i),o.prototype.initialize=function(t){return o.__super__.initialize.call(this,t),this.views={},this.render()},o.prototype.render=function(){var e,i,o,s,a,c,p,h,d,f,_,g,m,y,v;m=this.views;for(c in m)t.call(m,c)&&(f=m[c],f.$el.detach());for(this.$el.empty(),d=this.mget(\"tabs\"),i=this.mget(\"active\"),s=function(){var t,e,n;for(n=[],t=0,e=d.length;e>t;t++)h=d[t],n.push(h.get(\"child\"));return n}(),l(this.views,s),a=r(u({tabs:d,active:function(t){return t===i?\"bk-bs-active\":\"\"}})),a.find(\"> li > a\").click(function(t){return t.preventDefault(),r(this).tab(\"show\")}),e=a.children(\".bk-bs-tab-pane\"),y=n.zip(s,e),_=0,g=y.length;g>_;_++)v=y[_],o=v[0],p=v[1],r(p).html(this.views[o.id].$el);return this.$el.append(a),this.$el.tabs},o}(s),c=function(t){function r(){return f=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype.type=\"Tabs\",r.prototype.default_view=p,r.prototype.defaults=function(){return n.extend({},r.__super__.defaults.call(this),{tabs:[],active:0})},r}(a),h=function(t){function n(){return _=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=c,n}(o),{Model:c,Collection:new h,View:p}})}.call(this),define(\"widget/dialog_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;for(r(e('<div class=\"bk-bs-modal\" tabindex=\"-1\">\\n  <div class=\"bk-bs-modal-dialog\">\\n    <div class=\"bk-bs-modal-content\">\\n      <div class=\"bk-bs-modal-header\">\\n        ')),this.closable&&r(e('\\n          <button type=\"button\" class=\"bk-bs-close\" data-bk-bs-dismiss=\"modal\">&times;</button>\\n        ')),r(e('\\n        <h4 class=\"bk-bs-modal-title\">')),r(this.title),r(e('</h4>\\n      </div>\\n      <div class=\"bk-bs-modal-body\">\\n        ')),r(this.content),r(e('\\n      </div>\\n      <div class=\"bk-bs-modal-footer\">\\n        ')),s=this.buttons,n=i=0,o=s.length;o>i;n=++i)t=s[n],r(e(\"\\n          \")),0===n?(r(e('\\n            <button type=\"button\" class=\"bk-bs-btn bk-bs-btn-primary\" data-bk-bs-dismiss=\"modal\">')),r(t),r(e(\"</button>\\n          \"))):(r(e('\\n            <button type=\"button\" class=\"bk-bs-btn bk-bs-btn-default\">')),r(t),r(e(\"</button>\\n          \"))),r(e(\"\\n        \"));r(e(\"\\n      </div>\\n    </div>\\n  </div>\\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}),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=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};define(\"widget/dialog\",[\"underscore\",\"common/collection\",\"jquery\",\"bootstrap/modal\",\"common/has_properties\",\"common/continuum_view\",\"./dialog_template\"],function(e,r,i,o,s,a,l){var u,c,p,h,d,f;return c=function(e){function r(){return this.changeContent=t(this.changeContent,this),this.changeVisibility=t(this.changeVisibility,this),this.onHide=t(this.onHide,this),h=r.__super__.constructor.apply(this,arguments)}return n(r,e),r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"destroy\",this.remove),this.listenTo(this.model,\"change:visible\",this.changeVisibility),this.listenTo(this.model,\"change:content\",this.changeContent)},r.prototype.render=function(){return this.$modal=i(l(this.model.attributes)),this.$modal.modal({show:this.mget(\"visible\")}),this.$modal.on(\"hidden.bk-bs.modal\",this.onHide),this.$el.html(this.$modal)},r.prototype.onHide=function(){return this.mset(\"visible\",!1,{silent:!0})},r.prototype.changeVisibility=function(){return this.$modal.modal(this.mget(\"visible\")?\"show\":\"hide\")},r.prototype.changeContent=function(){return this.$modal.find(\".bk-bs-modal-body\").text(this.mget(\"content\"))},r}(a),u=function(t){function r(){return d=r.__super__.constructor.apply(this,arguments)}return n(r,t),r.prototype.type=\"Dialog\",r.prototype.default_view=c,r.prototype.defaults=function(){return e.extend({},r.__super__.defaults.call(this),{visible:!1,closable:!0,title:\"\",content:\"\",buttons:[]})\n",
        "                },r}(s),p=function(t){function e(){return f=e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.model=u,e}(r),{Model:u,Collection:new p,View:c}})}.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};define(\"widget/icon\",[\"underscore\",\"common/collection\",\"common/continuum_view\",\"common/has_parent\",\"common/logging\"],function(t,n,r,i,o){var s,a,l,u,c,p,h;return u=o.logger,a=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.tagName=\"i\",n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",this.render)},n.prototype.render=function(){var t,e;return this.$el.empty(),this.$el.addClass(\"bk-fa\"),this.$el.addClass(\"bk-fa-\"+this.mget(\"name\")),e=this.mget(\"size\"),null!=e&&this.$el.css({\"font-size\":e+\"em\"}),t=this.mget(\"flip\"),null!=t&&this.$el.addClass(\"bk-fa-flip-\"+t),this.mget(\"spin\")&&this.$el.addClass(\"bk-fa-spin\"),this},n}(r),s=function(n){function r(){return p=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"Icon\",r.prototype.default_view=a,r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{name:\"\",size:null,flip:null,spin:!1})},r}(i),l=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(n),{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};define(\"widget/button\",[\"underscore\",\"common/collection\",\"common/continuum_view\",\"common/has_parent\",\"common/build_views\",\"common/logging\"],function(n,r,i,o,s,a){var l,u,c,p,h,d,f;return p=a.logger,u=function(n){function r(){return h=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.tagName=\"button\",r.prototype.events={click:\"change_input\"},r.prototype.change_input=function(){return this.mset(\"clicks\",this.mget(\"clicks\")+1),this.model.save()},r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.views={},this.render(),this.listenTo(this.model,\"change\",this.render)},r.prototype.render=function(){var e,n,r,i,o;if(e=this.mget(\"icon\"),null!=e){s(this.views,[e]),o=this.views;for(n in o)t.call(o,n)&&(i=o[n],i.$el.detach())}return this.$el.empty(),this.$el.addClass(\"bk-bs-btn\"),this.$el.addClass(\"bk-bs-btn-\"+this.mget(\"type\")),this.mget(\"disabled\")&&this.$el.attr(\"disabled\",\"disabled\"),r=this.mget(\"label\"),null!=e&&(this.$el.append(this.views[e.id].$el),r=\" \"+r),this.$el.append(document.createTextNode(r)),this},r}(i),l=function(t){function r(){return d=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype.type=\"Button\",r.prototype.default_view=u,r.prototype.defaults=function(){return n.extend({},r.__super__.defaults.call(this),{clicks:0,label:\"Button\",icon:null,type:\"default\",disabled:!1})},r}(o),c=function(t){function n(){return f=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=l,n}(r),{Model:l,Collection:new c,View:u}})}.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};define(\"widget/toggle\",[\"underscore\",\"common/collection\",\"common/continuum_view\",\"common/has_parent\",\"common/logging\"],function(n,r,i,o,s){var a,l,u,c,p,h,d;return c=s.logger,l=function(n){function r(){return p=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.tagName=\"button\",r.prototype.events={click:\"change_input\"},r.prototype.change_input=function(){return this.mset(\"active\",this.$el.hasClass(\"bk-bs-active\")),this.model.save()},r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",this.render)},r.prototype.render=function(){var e,n,r,i,o;if(e=this.mget(\"icon\"),null!=e){build_views(this.views,[e]),o=this.views;for(n in o)t.call(o,n)&&(i=o[n],i.$el.detach())}return this.$el.empty(),this.$el.addClass(\"bk-bs-btn\"),this.$el.addClass(\"bk-bs-btn-\"+this.mget(\"type\")),this.mget(\"disabled\")&&this.$el.attr(\"disabled\",\"disabled\"),r=this.mget(\"label\"),null!=e&&(this.$el.append(this.views[e.id].$el),r=\" \"+r),this.$el.append(document.createTextNode(r)),this.mget(\"active\")&&this.$el.addClass(\"bk-bs-active\"),this.$el.attr(\"data-bk-bs-toggle\",\"button\"),this},r}(i),a=function(t){function r(){return h=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype.type=\"Toggle\",r.prototype.default_view=l,r.prototype.defaults=function(){return n.extend({},r.__super__.defaults.call(this),{active:!1,label:\"Toggle\",icon:null,type:\"default\",disabled:!1})},r}(o),u=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(r),{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};define(\"widget/dropdown\",[\"underscore\",\"common/collection\",\"common/continuum_view\",\"common/has_parent\",\"common/logging\"],function(t,n,r,i,o){var s,a,l,u,c,p,h;return u=o.logger,a=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.tagName=\"div\",n.prototype.change_input=function(t){return this.mset(\"action\",t),this.model.save()},n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",this.render)},n.prototype.render=function(){var t,e,n,r,i,o,s,a,l,u,c,p,h,d,f=this;for(this.$el.empty(),c=null!=this.mget(\"default_action\"),e=$(\"<button></button>\"),e.addClass(\"bk-bs-btn\"),e.addClass(\"bk-bs-btn-\"+this.mget(\"type\")),e.text(this.mget(\"label\")),n=$('<span class=\"bk-bs-caret\"></span>'),c?(e.click(function(){return f.change_input(f.mget(\"default_action\"))}),s=$(\"<button></button>\"),s.addClass(\"bk-bs-btn\"),s.addClass(\"bk-bs-btn-\"+this.mget(\"type\")),s.addClass(\"bk-bs-dropdown-toggle\"),s.attr(\"data-bk-bs-toggle\",\"dropdown\"),s.append(n)):(e.addClass(\"bk-bs-dropdown-toggle\"),e.attr(\"data-bk-bs-toggle\",\"dropdown\"),e.append(document.createTextNode(\" \")),e.append(n),s=$(\"\")),o=$('<ul class=\"bk-bs-dropdown-menu\"></ul>'),r=$('<li class=\"bk-bs-divider\"></li>'),d=this.mget(\"menu\"),p=0,h=d.length;h>p;p++)l=d[p],i=null!=l?(u=l[0],a=l[1],l,t=$(\"<a></a>\").text(u),t.click(function(){return f.change_input(a)}),$(\"<li></li>\").append(t)):r,o.append(i);return this.$el.addClass(\"bk-bs-btn-group\"),this.$el.append([e,s,o]),this},n}(r),s=function(n){function r(){return p=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"Dropdown\",r.prototype.default_view=a,r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{action:null,default_action:null,label:\"Dropdown\",icon:null,type:\"default\",menu:[],disabled:!1})},r}(i),l=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(n),{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=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};define(\"widget/checkbox_group\",[\"underscore\",\"common/collection\",\"common/continuum_view\",\"common/has_parent\",\"common/logging\"],function(t,r,i,o,s){var a,l,u,c,p,h,d;return c=s.logger,l=function(t){function r(){return p=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype.tagName=\"div\",r.prototype.events={\"change input\":\"change_input\"},r.prototype.change_input=function(){var t,e,n;return t=function(){var t,r,i,o;for(i=this.$(\"input\"),o=[],n=t=0,r=i.length;r>t;n=++t)e=i[n],e.checked&&o.push(n);return o}.call(this),this.mset(\"active\",t),this.model.save()},r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",this.render)},r.prototype.render=function(){var t,e,r,i,o,s,a,l,u;for(this.$el.empty(),i=this.mget(\"active\"),u=this.mget(\"labels\"),o=a=0,l=u.length;l>a;o=++a)s=u[o],e=$('<input type=\"checkbox\">').attr({value:\"\"+o}),this.mget(\"disabled\")&&e.prop(\"disabled\",!0),n.call(i,o)>=0&&e.prop(\"checked\",!0),r=$(\"<label></label>\").text(s).prepend(e),this.mget(\"inline\")?(r.addClass(\"bk-bs-checkbox-inline\"),this.$el.append(r)):(t=$('<div class=\"bk-bs-checkbox\"></div>').append(r),this.$el.append(t));return this},r}(i),a=function(n){function r(){return h=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"CheckboxGroup\",r.prototype.default_view=l,r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{active:[],labels:[],inline:!1,disabled:!1})},r}(o),u=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(r),{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};define(\"widget/radio_group\",[\"underscore\",\"common/collection\",\"common/continuum_view\",\"common/has_parent\",\"common/logging\"],function(t,n,r,i,o){var s,a,l,u,c,p,h;return u=o.logger,a=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.tagName=\"div\",r.prototype.events={\"change input\":\"change_input\"},r.prototype.change_input=function(){var t,e,n;return t=function(){var t,r,i,o;for(i=this.$(\"input\"),o=[],e=t=0,r=i.length;r>t;e=++t)n=i[e],n.checked&&o.push(e);return o}.call(this),this.mset(\"active\",t[0]),this.model.save()},r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",this.render)},r.prototype.render=function(){var e,n,r,i,o,s,a,l,u,c;for(this.$el.empty(),a=t.uniqueId(\"RadioGroup\"),i=this.mget(\"active\"),c=this.mget(\"labels\"),o=l=0,u=c.length;u>l;o=++l)s=c[o],n=$('<input type=\"radio\">').attr({name:a,value:\"\"+o}),this.mget(\"disabled\")&&n.prop(\"disabled\",!0),o===i&&n.prop(\"checked\",!0),r=$(\"<label></label>\").text(s).prepend(n),this.mget(\"inline\")?(r.addClass(\"bk-bs-radio-inline\"),this.$el.append(r)):(e=$('<div class=\"bk-bs-radio\"></div>').append(r),this.$el.append(e));return this},r}(r),s=function(n){function r(){return p=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"RadioGroup\",r.prototype.default_view=a,r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{active:null,labels:[],inline:!1,disabled:!1})},r}(i),l=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(n),{Model:s,Collection:new l,View:a}})}.call(this),define(\"bootstrap/button\",[\"jquery\"],function(t){+function(t){var e=function(n,r){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,r),this.isLoading=!1};e.DEFAULTS={loadingText:\"loading...\"},e.prototype.setState=function(e){var n=\"bk-bs-disabled\",r=this.$element,i=r.is(\"input\")?\"val\":\"html\",o=r.data();e+=\"Text\",o.resetText||r.data(\"resetText\",r[i]()),r[i](o[e]||this.options[e]),setTimeout(t.proxy(function(){\"loadingText\"==e?(this.isLoading=!0,r.addClass(n).attr(n,n)):this.isLoading&&(this.isLoading=!1,r.removeClass(n).removeAttr(n))},this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-bk-bs-toggle=\"buttons\"]');if(e.length){var n=this.$element.find(\"input\");\"radio\"==n.prop(\"type\")&&(n.prop(\"checked\")&&this.$element.hasClass(\"bk-bs-active\")?t=!1:e.find(\".bk-bs-active\").removeClass(\"bk-bs-active\")),t&&n.prop(\"checked\",!this.$element.hasClass(\"bk-bs-active\")).trigger(\"change\")}t&&this.$element.toggleClass(\"bk-bs-active\")};var n=t.fn.button;t.fn.button=function(n){return this.each(function(){var r=t(this),i=r.data(\"bk-bs.button\"),o=\"object\"==typeof n&&n;i||r.data(\"bk-bs.button\",i=new e(this,o)),\"toggle\"==n?i.toggle():n&&i.setState(n)})},t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on(\"click.bk-bs.button.data-api\",\"[data-bk-bs-toggle^=button]\",function(e){var n=t(e.target);n.hasClass(\"bk-bs-btn\")||(n=n.closest(\".bk-bs-btn\")),n.button(\"toggle\"),e.preventDefault()})}(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=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};define(\"widget/checkbox_button_group\",[\"underscore\",\"common/collection\",\"jquery\",\"bootstrap/button\",\"common/continuum_view\",\"common/has_parent\",\"common/logging\"],function(t,r,i,o,s,a,l){var u,c,p,h,d,f,_;return h=l.logger,c=function(t){function r(){return d=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype.tagName=\"div\",r.prototype.events={\"change input\":\"change_input\"},r.prototype.change_input=function(){var t,e,n;return t=function(){var t,r,i,o;for(i=this.$(\"input\"),o=[],n=t=0,r=i.length;r>t;n=++t)e=i[n],e.checked&&o.push(n);return o}.call(this),this.mset(\"active\",t),this.model.save()},r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",this.render)},r.prototype.render=function(){return this.$el.empty(),this},r.prototype.render=function(){var t,e,r,o,s,a,l,u;for(this.$el.empty(),this.$el.addClass(\"bk-bs-btn-group\"),this.$el.attr(\"data-bk-bs-toggle\",\"buttons\"),r=this.mget(\"active\"),u=this.mget(\"labels\"),o=a=0,l=u.length;l>a;o=++a)s=u[o],t=i('<input type=\"checkbox\">').attr({value:\"\"+o}),n.call(r,o)>=0&&t.prop(\"checked\",!0),e=i('<label class=\"bk-bs-btn\"></label>'),e.text(s).prepend(t),e.addClass(\"bk-bs-btn-\"+this.mget(\"type\")),n.call(r,o)>=0&&e.addClass(\"bk-bs-active\"),this.$el.append(e);return this},r}(s),u=function(n){function r(){return f=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"CheckboxButtonGroup\",r.prototype.default_view=c,r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{active:[],labels:[],type:\"default\",disabled:!1})},r}(a),p=function(t){function n(){return _=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=u,n}(r),{Model:u,Collection:new p,View:c}})}.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};define(\"widget/radio_button_group\",[\"underscore\",\"common/collection\",\"jquery\",\"bootstrap/button\",\"common/continuum_view\",\"common/has_parent\",\"common/logging\",\"bootstrap/button\"],function(t,n,r,i,o,s,a){var l,u,c,p,h,d,f;return p=a.logger,u=function(n){function i(){return h=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.tagName=\"div\",i.prototype.events={\"change input\":\"change_input\"},i.prototype.change_input=function(){var t,e,n;return t=function(){var t,r,i,o;for(i=this.$(\"input\"),o=[],e=t=0,r=i.length;r>t;e=++t)n=i[e],n.checked&&o.push(e);return o}.call(this),this.mset(\"active\",t[0]),this.model.save()},i.prototype.initialize=function(t){return i.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",this.render)},i.prototype.render=function(){var e,n,i,o,s,a,l,u,c;for(this.$el.empty(),this.$el.addClass(\"bk-bs-btn-group\"),this.$el.attr(\"data-bk-bs-toggle\",\"buttons\"),a=t.uniqueId(\"RadioButtonGroup\"),i=this.mget(\"active\"),c=this.mget(\"labels\"),o=l=0,u=c.length;u>l;o=++l)s=c[o],e=r('<input type=\"radio\">').attr({name:a,value:\"\"+o}),o===i&&e.prop(\"checked\",!0),n=r('<label class=\"bk-bs-btn\"></label>'),n.text(s).prepend(e),n.addClass(\"bk-bs-btn-\"+this.mget(\"type\")),o===i&&n.addClass(\"bk-bs-active\"),this.$el.append(n);return this},i}(o),l=function(n){function r(){return d=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"RadioButtonGroup\",r.prototype.default_view=u,r.prototype.defaults=function(){return t.extend({},r.__super__.defaults.call(this),{active:null,labels:[],type:\"default\",disabled:!1})},r}(s),c=function(t){function n(){return f=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=l,n}(n),{Model:l,Collection:new c,View:u}})}.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};define(\"transforms/autoencode\",[\"common/continuum_view\",\"common/collection\",\"common/has_parent\"],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.attributes={\"class\":\"AutoEncodeView\"},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),\"pass\"},n.prototype.render_init=function(){return this.$el.html(\"\")},n}(t),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"AutoEncode\",n.prototype.default_view=o,n}(r),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{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};define(\"transforms/binarysegment\",[\"common/continuum_view\",\"common/collection\",\"common/has_parent\"],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.attributes={\"class\":\"BinarySegmentView\"},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),\"pass\"},n.prototype.render_init=function(){return this.$el.html(\"\")},n}(t),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"BinarySegment\",n.prototype.default_view=o,n}(r),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{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};define(\"transforms/const\",[\"common/continuum_view\",\"common/collection\",\"common/has_parent\"],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.attributes={\"class\":\"ConstView\"},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),\"pass\"},n.prototype.render_init=function(){return this.$el.html(\"\")},n}(t),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"Const\",n.prototype.default_view=o,n}(r),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{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};define(\"transforms/contour\",[\"common/continuum_view\",\"common/collection\",\"common/has_parent\"],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.attributes={\"class\":\"ContourView\"},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),\"pass\"},n.prototype.render_init=function(){return this.$el.html(\"\")},n}(t),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"Contour\",n.prototype.default_view=o,n}(r),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{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};define(\"transforms/count\",[\"common/continuum_view\",\"common/collection\",\"common/has_parent\"],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.attributes={\"class\":\"CountView\"},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),\"pass\"},n.prototype.render_init=function(){return this.$el.html(\"\")},n}(t),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"Count\",n.prototype.default_view=o,n}(r),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{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};define(\"transforms/countcategories\",[\"common/continuum_view\",\"common/collection\",\"common/has_parent\"],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.attributes={\"class\":\"CountCategoriesView\"},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),\"pass\"},n.prototype.render_init=function(){return this.$el.html(\"\")},n}(t),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"CountCategories\",n.prototype.default_view=o,n}(r),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{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};define(\"transforms/encode\",[\"common/continuum_view\",\"common/collection\",\"common/has_parent\"],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.attributes={\"class\":\"EncodeView\"},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),\"pass\"},n.prototype.render_init=function(){return this.$el.html(\"\")},n}(t),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"Encode\",n.prototype.default_view=o,n}(r),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{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};define(\"transforms/cuberoot\",[\"common/continuum_view\",\"common/collection\",\"common/has_parent\"],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.attributes={\"class\":\"CuberootView\"},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),\"pass\"},n.prototype.render_init=function(){return this.$el.html(\"\")},n}(t),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"Cuberoot\",n.prototype.default_view=o,n}(r),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{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};define(\"transforms/hdalpha\",[\"common/continuum_view\",\"common/collection\",\"common/has_parent\"],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.attributes={\"class\":\"HDAlphaView\"},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),\"pass\"},n.prototype.render_init=function(){return this.$el.html(\"\")},n}(t),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"HDAlpha\",n.prototype.default_view=o,n}(r),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{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};define(\"transforms/id\",[\"common/continuum_view\",\"common/collection\",\"common/has_parent\"],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.attributes={\"class\":\"IdView\"},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),\"pass\"},n.prototype.render_init=function(){return this.$el.html(\"\")},n}(t),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"Id\",n.prototype.default_view=o,n}(r),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{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};define(\"transforms/interpolate\",[\"common/continuum_view\",\"common/collection\",\"common/has_parent\"],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.attributes={\"class\":\"InterpolateView\"},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),\"pass\"},n.prototype.render_init=function(){return this.$el.html(\"\")},n}(t),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"Interpolate\",n.prototype.default_view=o,n}(r),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{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};define(\"transforms/interpolatecolor\",[\"common/continuum_view\",\"common/collection\",\"common/has_parent\"],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.attributes={\"class\":\"InterpolateColorView\"},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),\"pass\"},n.prototype.render_init=function(){return this.$el.html(\"\")},n}(t),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"InterpolateColor\",n.prototype.default_view=o,n}(r),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{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};define(\"transforms/log\",[\"common/continuum_view\",\"common/collection\",\"common/has_parent\"],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.attributes={\"class\":\"LogView\"},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),\"pass\"},n.prototype.render_init=function(){return this.$el.html(\"\")},n}(t),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"Log\",n.prototype.default_view=o,n}(r),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{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};define(\"transforms/nonzero\",[\"common/continuum_view\",\"common/collection\",\"common/has_parent\"],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.attributes={\"class\":\"NonZeroView\"},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),\"pass\"},n.prototype.render_init=function(){return this.$el.html(\"\")},n}(t),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"NonZero\",n.prototype.default_view=o,n}(r),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{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};define(\"transforms/ratio\",[\"common/continuum_view\",\"common/collection\",\"common/has_parent\"],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)\n",
        "                }return e(n,t),n.prototype.attributes={\"class\":\"RatioView\"},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),\"pass\"},n.prototype.render_init=function(){return this.$el.html(\"\")},n}(t),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"Ratio\",n.prototype.default_view=o,n}(r),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{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};define(\"transforms/seq\",[\"common/continuum_view\",\"common/collection\",\"common/has_parent\"],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.attributes={\"class\":\"SeqView\"},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),\"pass\"},n.prototype.render_init=function(){return this.$el.html(\"\")},n}(t),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"Seq\",n.prototype.default_view=o,n}(r),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{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};define(\"transforms/spread\",[\"common/continuum_view\",\"common/collection\",\"common/has_parent\"],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.attributes={\"class\":\"SpreadView\"},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),\"pass\"},n.prototype.render_init=function(){return this.$el.html(\"\")},n}(t),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"Spread\",n.prototype.default_view=o,n}(r),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{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};define(\"transforms/tocounts\",[\"common/continuum_view\",\"common/collection\",\"common/has_parent\"],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.attributes={\"class\":\"ToCountsView\"},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),\"pass\"},n.prototype.render_init=function(){return this.$el.html(\"\")},n}(t),i=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"ToCounts\",n.prototype.default_view=o,n}(r),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(n),{Model:i,Collection:new s}})}.call(this),function(){define(\"common/base\",[\"underscore\",\"require\",\"common/custom\",\"common/canvas\",\"common/cartesian_frame\",\"common/gmap_plot\",\"common/geojs_plot\",\"common/grid_plot\",\"common/layout_box\",\"common/plot\",\"common/plot_context\",\"common/selection_manager\",\"common/selector\",\"common/tool_events\",\"mapper/categorical_mapper\",\"mapper/linear_mapper\",\"mapper/log_mapper\",\"mapper/grid_mapper\",\"mapper/linear_color_mapper\",\"range/data_factor_range\",\"range/data_range1d\",\"range/factor_range\",\"range/range1d\",\"renderer/annotation/legend\",\"renderer/annotation/span\",\"renderer/annotation/tooltip\",\"renderer/glyph/glyph_renderer\",\"renderer/glyph/annular_wedge\",\"renderer/glyph/annulus\",\"renderer/glyph/arc\",\"renderer/glyph/bezier\",\"renderer/glyph/circle\",\"renderer/glyph/gear\",\"renderer/glyph/image\",\"renderer/glyph/image_rgba\",\"renderer/glyph/image_url\",\"renderer/glyph/line\",\"renderer/glyph/multi_line\",\"renderer/glyph/oval\",\"renderer/glyph/patch\",\"renderer/glyph/patches\",\"renderer/glyph/quad\",\"renderer/glyph/quadratic\",\"renderer/glyph/ray\",\"renderer/glyph/rect\",\"renderer/glyph/segment\",\"renderer/glyph/text\",\"renderer/glyph/wedge\",\"renderer/glyph/marker/asterisk\",\"renderer/glyph/marker/circle_cross\",\"renderer/glyph/marker/circle_x\",\"renderer/glyph/marker/cross\",\"renderer/glyph/marker/diamond\",\"renderer/glyph/marker/diamond_cross\",\"renderer/glyph/marker/inverted_triangle\",\"renderer/glyph/marker/square\",\"renderer/glyph/marker/square_cross\",\"renderer/glyph/marker/square_x\",\"renderer/glyph/marker/triangle\",\"renderer/glyph/marker/x\",\"renderer/guide/categorical_axis\",\"renderer/guide/datetime_axis\",\"renderer/guide/grid\",\"renderer/guide/linear_axis\",\"renderer/guide/log_axis\",\"renderer/overlay/box_selection\",\"renderer/overlay/poly_selection\",\"source/column_data_source\",\"source/server_data_source\",\"ticking/abstract_ticker\",\"ticking/adaptive_ticker\",\"ticking/basic_tick_formatter\",\"ticking/basic_ticker\",\"ticking/log_ticker\",\"ticking/log_tick_formatter\",\"ticking/categorical_tick_formatter\",\"ticking/categorical_ticker\",\"ticking/composite_ticker\",\"ticking/datetime_tick_formatter\",\"ticking/datetime_ticker\",\"ticking/days_ticker\",\"ticking/months_ticker\",\"ticking/single_interval_ticker\",\"ticking/years_ticker\",\"tool/button_tool\",\"tool/actions/action_tool\",\"tool/actions/preview_save_tool\",\"tool/actions/reset_tool\",\"tool/gestures/box_select_tool\",\"tool/gestures/box_zoom_tool\",\"tool/gestures/gesture_tool\",\"tool/gestures/lasso_select_tool\",\"tool/gestures/pan_tool\",\"tool/gestures/resize_tool\",\"tool/gestures/select_tool\",\"tool/gestures/tap_tool\",\"tool/gestures/wheel_zoom_tool\",\"tool/inspectors/crosshair_tool\",\"tool/inspectors/hover_tool\",\"tool/inspectors/inspect_tool\",\"widget/data_table\",\"widget/table_column\",\"widget/paragraph\",\"widget/hbox\",\"widget/vbox\",\"widget/textinput\",\"widget/vboxform\",\"widget/pretext\",\"widget/selectbox\",\"widget/slider\",\"widget/crossfilter\",\"widget/multiselect\",\"widget/date_range_slider\",\"widget/date_picker\",\"widget/panel\",\"widget/tabs\",\"widget/dialog\",\"widget/icon\",\"widget/button\",\"widget/toggle\",\"widget/dropdown\",\"widget/checkbox_group\",\"widget/radio_group\",\"widget/checkbox_button_group\",\"widget/radio_button_group\",\"transforms/autoencode\",\"transforms/binarysegment\",\"transforms/const\",\"transforms/contour\",\"transforms/count\",\"transforms/countcategories\",\"transforms/encode\",\"transforms/cuberoot\",\"transforms/hdalpha\",\"transforms/id\",\"transforms/interpolate\",\"transforms/interpolatecolor\",\"transforms/log\",\"transforms/nonzero\",\"transforms/ratio\",\"transforms/seq\",\"transforms/spread\",\"transforms/tocounts\"],function(t,e){var n,r,i,o,s,a,l;return e(\"common/custom\").monkey_patch(),r={},l=window.location.href,r.prefix=l.indexOf(\"/bokeh\")>0?l.slice(0,l.indexOf(\"/bokeh\"))+\"/\":\"/\",console.log(\"Bokeh: setting prefix to\",r.prefix),s={Plot:\"common/plot\",GMapPlot:\"common/gmap_plot\",GeoJSPlot:\"common/geojs_plot\",GridPlot:\"common/grid_plot\",PlotContext:\"common/plot_context\",PlotList:\"common/plot_context\",Canvas:\"common/canvas\",LayoutBox:\"common/layout_box\",CartesianFrame:\"common/cartesian_frame\",SelectionManager:\"common/selection_manager\",Selector:\"common/selector\",ToolEvents:\"common/tool_events\",LinearColorMapper:\"mapper/linear_color_mapper\",DataFactorRange:\"range/data_factor_range\",DataRange1d:\"range/data_range1d\",FactorRange:\"range/factor_range\",Range1d:\"range/range1d\",Legend:\"renderer/annotation/legend\",Span:\"renderer/annotation/span\",Tooltip:\"renderer/annotation/tooltip\",GlyphRenderer:\"renderer/glyph/glyph_renderer\",AnnularWedge:\"renderer/glyph/annular_wedge\",Annulus:\"renderer/glyph/annulus\",Arc:\"renderer/glyph/arc\",Bezier:\"renderer/glyph/bezier\",Circle:\"renderer/glyph/circle\",Gear:\"renderer/glyph/gear\",Image:\"renderer/glyph/image\",ImageRGBA:\"renderer/glyph/image_rgba\",ImageURL:\"renderer/glyph/image_url\",Line:\"renderer/glyph/line\",MultiLine:\"renderer/glyph/multi_line\",Oval:\"renderer/glyph/oval\",Patch:\"renderer/glyph/patch\",Patches:\"renderer/glyph/patches\",Quad:\"renderer/glyph/quad\",Quadratic:\"renderer/glyph/quadratic\",Ray:\"renderer/glyph/ray\",Rect:\"renderer/glyph/rect\",Segment:\"renderer/glyph/segment\",Text:\"renderer/glyph/text\",Wedge:\"renderer/glyph/wedge\",Asterisk:\"renderer/glyph/marker/asterisk\",CircleCross:\"renderer/glyph/marker/circle_cross\",CircleX:\"renderer/glyph/marker/circle_x\",Cross:\"renderer/glyph/marker/cross\",Diamond:\"renderer/glyph/marker/diamond\",DiamondCross:\"renderer/glyph/marker/diamond_cross\",InvertedTriangle:\"renderer/glyph/marker/inverted_triangle\",Square:\"renderer/glyph/marker/square\",SquareCross:\"renderer/glyph/marker/square_cross\",SquareX:\"renderer/glyph/marker/square_x\",Triangle:\"renderer/glyph/marker/triangle\",X:\"renderer/glyph/marker/x\",LinearAxis:\"renderer/guide/linear_axis\",LogAxis:\"renderer/guide/log_axis\",CategoricalAxis:\"renderer/guide/categorical_axis\",DatetimeAxis:\"renderer/guide/datetime_axis\",Grid:\"renderer/guide/grid\",BoxSelection:\"renderer/overlay/box_selection\",PolySelection:\"renderer/overlay/poly_selection\",ColumnDataSource:\"source/column_data_source\",ServerDataSource:\"source/server_data_source\",AbstractTicker:\"ticking/abstract_ticker\",AdaptiveTicker:\"ticking/adaptive_ticker\",BasicTicker:\"ticking/basic_ticker\",BasicTickFormatter:\"ticking/basic_tick_formatter\",LogTicker:\"ticking/log_ticker\",LogTickFormatter:\"ticking/log_tick_formatter\",CategoricalTicker:\"ticking/categorical_ticker\",CategoricalTickFormatter:\"ticking/categorical_tick_formatter\",CompositeTicker:\"ticking/composite_ticker\",DatetimeTicker:\"ticking/datetime_ticker\",DatetimeTickFormatter:\"ticking/datetime_tick_formatter\",DaysTicker:\"ticking/days_ticker\",MonthsTicker:\"ticking/months_ticker\",SingleIntervalTicker:\"ticking/single_interval_ticker\",YearsTicker:\"ticking/years_ticker\",ButtonTool:\"tool/button_tool\",ActionTool:\"tool/actions/action_tool\",PreviewSaveTool:\"tool/actions/preview_save_tool\",ResetTool:\"tool/actions/reset_tool\",BoxSelectTool:\"tool/gestures/box_select_tool\",BoxZoomTool:\"tool/gestures/box_zoom_tool\",GestureTool:\"tool/gestures/gesture_tool\",LassoSelectTool:\"tool/gestures/lasso_select_tool\",PanTool:\"tool/gestures/pan_tool\",PolySelectTool:\"tool/gestures/poly_select_tool\",SelectTool:\"tool/gestures/select_tool\",ResizeTool:\"tool/gestures/resize_tool\",TapTool:\"tool/gestures/tap_tool\",WheelZoomTool:\"tool/gestures/wheel_zoom_tool\",CrosshairTool:\"tool/inspectors/crosshair_tool\",HoverTool:\"tool/inspectors/hover_tool\",InspectTool:\"tool/inspectors/inspect_tool\",DataTable:\"widget/data_table\",TableColumn:\"widget/table_column\",Paragraph:\"widget/paragraph\",HBox:\"widget/hbox\",VBox:\"widget/vbox\",VBoxForm:\"widget/vboxform\",TextInput:\"widget/textinput\",PreText:\"widget/pretext\",Select:\"widget/selectbox\",Slider:\"widget/slider\",CrossFilter:\"widget/crossfilter\",MultiSelect:\"widget/multiselect\",DateRangeSlider:\"widget/date_range_slider\",DatePicker:\"widget/date_picker\",Panel:\"widget/panel\",Tabs:\"widget/tabs\",Dialog:\"widget/dialog\",Icon:\"widget/icon\",Button:\"widget/button\",Toggle:\"widget/toggle\",Dropdown:\"widget/dropdown\",CheckboxGroup:\"widget/checkbox_group\",RadioGroup:\"widget/radio_group\",CheckboxButtonGroup:\"widget/checkbox_button_group\",RadioButtonGroup:\"widget/radio_button_group\",AutoEncode:\"transforms/autoencode\",BinarySegment:\"transforms/binarysegment\",Const:\"transforms/const\",Contour:\"transforms/contour\",Count:\"transforms/count\",CountCategories:\"transforms/countcategories\",Cuberoot:\"transforms/cuberoot\",HDAlpha:\"transforms/hdalpha\",Encode:\"transforms/encode\",Id:\"transforms/id\",Interpolate:\"transforms/interpolate\",InterpolateColor:\"transforms/interpolatecolor\",Log:\"transforms/log\",NonZero:\"transforms/nonzero\",Ratio:\"transforms/ratio\",Seq:\"transforms/seq\",Spread:\"transforms/spread\",ToCounts:\"transforms/tocounts\"},a={},i={},n=function(t){var n,r;if(i[t])return i[t];if(!s[t])throw\"./base: Unknown Collection \"+t;if(r=s[t],null==a[r]){if(n=e(r),null==n)throw Error(\"improperly implemented collection: \"+r);a[r]=n}return a[r].Collection},n.register=function(t,e){return i[t]=e},o={},{collection_overrides:i,mod_cache:a,locations:s,index:o,Collections:n,Config:r}})}.call(this),function(){define(\"common/plotting\",[\"underscore\",\"jquery\",\"./logging\",\"./plot\",\"range/data_range1d\",\"range/factor_range\",\"range/range1d\",\"renderer/annotation/legend\",\"renderer/glyph/glyph_renderer\",\"renderer/guide/categorical_axis\",\"renderer/guide/linear_axis\",\"renderer/guide/grid\",\"renderer/overlay/box_selection\",\"source/column_data_source\",\"tool/gestures/box_select_tool\",\"tool/gestures/box_zoom_tool\",\"tool/inspectors/hover_tool\",\"tool/gestures/pan_tool\",\"tool/actions/preview_save_tool\",\"tool/gestures/resize_tool\",\"tool/gestures/wheel_zoom_tool\",\"tool/actions/reset_tool\",\"renderer/guide/datetime_axis\"],function(t,e,n,r,i,o,s,a,l,u,c,p,h,d,f,_,g,m,y,v,b,w,x){var k,C,M,A,S,T,D,E,R,I;return E=n.logger,D=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],r.push(n instanceof d.Model?n:d.Collection.create({data:n}));return r},T=function(t,e,n){var r;return\"auto\"===t?i.Collection.create({sources:function(){var t,i,o;for(o=[],t=0,i=e.length;i>t;t++)r=e[t],o.push({source:r,columns:n});return o}()}):t instanceof s.Model||t instanceof o.Model?t:\"string\"==typeof t[0]?o.Collection.create({factors:t}):s.Collection.create({start:t[0],end:t[1]})},S=function(e,n,r,i){var o,s,a,u,c,p,h,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++)h=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++)h=n[t],r.push(i);return r}()),_=t.zip(n,i,r),d=0,f=_.length;f>d;d++)p=_[d],c=p[0],a=p[1],u=p[2],o=l.Collection.create({data_source:u,glyph:c,nonselection_glyph:a}),s.push(o);return s},k=function(e,n,r,i,o){var s,a,l,p,h,d,f,_,g,m,y,v,b,w,k,C,M,A,S,T,D,E,R;if(g=[],n){if(n===!0&&(n=[\"below\",\"above\"]),t.isArray(n)||(n=[n]),\"datetime\"===n[0])l=x.Collection.create({axis_label:\"x\",location:\"below\",plot:e}),g.push(l);else if(\"FactorRange\"===i.type)for(v=0,C=n.length;C>v;v++)d=n[v],l=u.Collection.create({axis_label:\"x\",location:d,plot:e}),g.push(l);else for(b=0,M=n.length;M>b;b++)d=n[b],l=c.Collection.create({axis_label:\"x\",location:d,plot:e}),g.push(l);for(w=0,A=g.length;A>w;w++)_=g[w],\"below\"===_.get(\"location\")?(p=e.get(\"below\"),p.push(_),e.set(\"below\",p)):\"above\"===_.get(\"location\")&&(a=e.get(\"above\"),a.push(_),e.set(\"above\",a))}if(y=[],r){if(r===!0&&(r=[\"left\",\"right\"]),t.isArray(r)||(r=[r]),\"datetime\"===r[0])l=x.Collection.create({axis_label:\"y\",location:\"left\",plot:e}),y.push(l);else if(\"FactorRange\"===o.type)for(k=0,S=r.length;S>k;k++)d=r[k],l=u.Collection.create({axis_label:\"y\",location:d,plot:e}),y.push(l);else for(E=0,T=r.length;T>E;E++)d=r[E],l=c.Collection.create({axis_label:\"y\",location:d,plot:e}),y.push(l);for(R=0,D=y.length;D>R;R++)m=y[R],\"left\"===m.get(\"location\")?(h=e.get(\"left\"),h.push(m),e.set(\"left\",h)):\"right\"===m.get(\"location\")&&(f=e.get(\"right\"),f.push(m),e.set(\"right\",f))}return e.add_renderers(function(){var t,e,n;for(n=[],e=0,t=g.length;t>e;e++)s=g[e],n.push(s);return n}()),e.add_renderers(function(){var t,e,n;for(n=[],e=0,t=y.length;t>e;e++)s=y[e],n.push(s);return n}()),[g,y]},C=function(t,e,n,r,i){var o,s,a;return a=[],e&&r.length>0&&(s=p.Collection.create({dimension:0,plot:t,ticker:r[0].get(\"ticker\")}),a.push(s)),n&&i.length>0?(s=p.Collection.create({dimension:1,plot:t,ticker:i[0].get(\"ticker\")}),a.push(s),t.add_renderers(function(){var t,e,n;for(n=[],t=0,e=a.length;e>t;t++)o=a[t],n.push(o);return n}())):void 0},A=function(t,e,n,r,i){var o,s,a,l,u,c,p,d,x,k,C,M;if(e!==!1)return e===!0&&(e=\"pan,wheel_zoom,select,resize,preview,reset,box_zoom\"),o=[],e.indexOf(\"pan\")>-1&&(c=m.Collection.create({dataranges:[r,i],dimensions:[\"width\",\"height\"]}),o.push(c)),e.indexOf(\"wheel_zoom\")>-1&&(M=b.Collection.create({dataranges:[r,i],dimensions:[\"width\",\"height\"]}),o.push(M)),e.indexOf(\"hover\")>-1&&(u=g.Collection.create({plot:t}),o.push(u)),e.indexOf(\"select\")>-1&&(C=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);return r}()}),k=h.Collection.create({tool:C}),o.push(C),t.add_renderers([k])),e.indexOf(\"resize\")>-1&&(x=v.Collection.create(),o.push(x)),e.indexOf(\"preview\")>-1&&(p=y.Collection.create(),o.push(p)),e.indexOf(\"reset\")>-1&&(d=w.Collection.create(),o.push(d)),e.indexOf(\"box_zoom\")>-1&&(a=_.Collection.create(),s=h.Collection.create({tool:a}),o.push(a),t.add_renderers([s])),t.set_obj(\"tools\",o)},M=function(t,e,n){var r,i,o,s;return e?(s=function(){var t,o,s;for(s=[],i=t=0,o=n.length;o>t;i=++t)r=n[i],s.push([e+String(i),[r]]);return s}(),o=a.Collection.create({plot:t,orientation:\"top_right\",legends:s}),t.add_renderers([o])):void 0},R=function(t,e,n){var i,o,s,a,l,u,c,p,h,d,f,_,g,m,y,v,b,w;return l=n.nonselected,p=n.title,i=n.dims,g=n.xrange,b=n.yrange,d=n.xaxes,m=n.yaxes,_=n.xgrid,v=n.ygrid,f=n.xdr,y=n.ydr,h=n.tools,a=n.legend,null==l&&(l=null),null==p&&(p=\"\"),null==i&&(i=[400,400]),null==g&&(g=\"auto\"),null==b&&(b=\"auto\"),null==d&&(d=!0),null==m&&(m=!0),null==_&&(_=!0),null==v&&(v=!0),null==h&&(h=!0),null==a&&(a=!1),c=D(e),f=T(g,c,[\"x\"]),y=T(b,c,[\"y\"]),u=r.Collection.create({x_range:f,y_range:y,plot_width:i[0],plot_height:i[1],title:p}),s=S(u,t,c,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);return n}()),w=k(u,d,m,f,y),d=w[0],m=w[1],C(u,_,v,d,m),A(u,h,s,f,y),M(u,a,s),u},I=function(n,r){var i,o;return null==r&&(r=!1),i=e('<div class=\"plotdiv\"></div>'),r=e(r?r:\"body\"),r.append(i),o=function(){var t;return t=new n.default_view({model:n}),window.pview=t,i.append(t.$el),E.info(\"added plot: \"+n.get(\"title\"))},t.defer(o)},{make_plot:R,create_glyphs:S,show:I}})}.call(this),function(){define(\"common/load_models\",[\"require\",\"./base\",\"./logging\"],function(t,e,n){var r,i;return i=n.logger,r=function(e){var n,r,o,s,a,l,u,c,p,h,d,f,_,g,m,y,v;for(l=[],u=[],n=t(\"./base\").Collections,i.debug(\"load_models: start\"),c=0,f=e.length;f>c;c++)a=e[c],o=n(a.type),r=a.attributes,o&&o.get(r.id)?u.push([o,r]):l.push([o,r]);for(p=0,_=l.length;_>p;p++)s=l[p],o=s[0],r=s[1],o&&o.add(r,{silent:!0,defer_initialization:!0});for(i.debug(\"load_models: starting deferred initializations\"),h=0,g=l.length;g>h;h++)s=l[h],o=s[0],r=s[1],o&&o.get(r.id).initialize(r);for(i.debug(\"load_models: finished deferred initializations\"),d=0,m=l.length;m>d;d++)s=l[d],o=s[0],r=s[1],o&&(a=o.get(r.id),a.trigger(\"add\",a,o,{}));for(v=0,y=u.length;y>v;v++)s=u[v],o=s[0],r=s[1],o&&o.get(r.id).set(r);return i.debug(\"load_models: finish\"),null}})}.call(this),function(){define(\"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,c;if(o=n(\"./base\").Config,s=r[0].get(\"doc\"),null==s)throw new Error(\"Unset 'doc' in \"+r[0]);return 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\",c=e.ajax({type:\"POST\",url:u,contentType:\"application/json\",data:a,header:{client:\"javascript\"}}),c.done(function(t){return i(t.modelspecs)}),c}})}.call(this),function(){define(\"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(){define(\"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]}}\n",
        "                })}.call(this),function(){define(\"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=function(t,e){return function(){return t.apply(e,arguments)}};define(\"common/socket\",[\"backbone\",\"underscore\",\"common/base\",\"common/load_models\",\"common/logging\"],function(e,n,r,i,o){var s,a,l,u;return s=r.Config,l=o.logger,a=function(){function r(e){this.onmessage=t(this.onmessage,this);var n,r=this;this.auth={},this.ws_conn_string=e,this._connected=$.Deferred(),this.connected=this._connected.promise();try{this.s=window.MozWebSocket?new MozWebSocket(e):new WebSocket(e)}catch(i){n=i,l.error(\"websocket creation failed for connection string: \"+e),l.error(\" - \"+n)}this.s.onopen=function(){return r._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}(),u=function(t,e,n){return t.subscribe(e,n),t.on(\"msg:\"+e,function(t){var e,n,r,o,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++)o=u[a],n=resolve_ref(o.type,o.id),n&&n.destroy({local:!0});else\"status\"===r.msgtype&&\"subscribesuccess\"===r.status[0]?(e=r.status[2],s.clientid=e,$.ajaxSetup({headers:{\"Continuum-Clientid\":e}})):log.warn(\"unknown msgtype '\"+r.msgtype+\"' for message: \"+r);return null})},{WebSocketWrapper:a,submodels:u}})}.call(this),function(){define(\"server/serverutils\",[\"common/base\",\"common/socket\",\"common/load_models\",\"common/logging\",\"backbone\",\"common/has_properties\"],function(t,e,n,r,i,o){var s,a,l,u,c,p,h,d;return p=r.logger,s={},a={},c={},l=e.WebSocketWrapper,h=e.submodels,s._doc_loaded=$.Deferred(),s._doc_requested=$.Deferred(),a.doc_loaded=s._doc_loaded.promise(),a.doc_requested=s._doc_requested.promise(),a.doc_promises={},c.wswrapper=null,c.plotcontext=null,c.plotcontextview=null,c.Promises=a,d={load_one_object_chain:function(t,e){var r;return o.prototype.sync=i.sync,r=d.make_websocket(),r=r.then(function(){var n,i;return n=require(\"common/base\").Config,i=\"\"+n.prefix+\"bokeh/objinfo/\"+t+\"/\"+e,p.debug(\"load one object chain: \"+i),r=$.get(i)}),r.done(function(e){var r,i;return r=e.all_models,n(r),i=e.apikey,h(c.wswrapper,\"bokehplot:\"+t,i)}),r},load_user:function(){var t;return t=$.get(\"/bokeh/userinfo/\",{})},load_doc_by_title:function(t){var e,r;return e=require(\"common/base\").Config,r=$.get(e.prefix+\"bokeh/doc\",{title:t}).done(function(t){var e,r,i;return e=t.all_models,n(e),r=t.apikey,i=t.docid,h(c.wswrapper,\"bokehplot:\"+i,r)})},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 e;return e=d.make_websocket(),e=e.then(function(){var e;return e=require(\"common/base\").Config,$.get(e.prefix+(\"bokeh/bokehinfo/\"+t+\"/\"),{})}),e.done(function(e){var r,i;return r=e.all_models,n(r),i=e.apikey,h(c.wswrapper,\"bokehplot:\"+t,i)}),e},make_websocket:function(){var t,e;return null!=c.wswrapper?c._wswrapper_deferred:(t=require(\"common/base\").Config,c._wswrapper_deferred=$.get(t.prefix+\"bokeh/wsurl/\"),e=c._wswrapper_deferred,e.done(function(e){var n;return t=require(\"common/base\").Config,u(e,null),n=new l(t.ws_conn_string),c.wswrapper=n}),e)},render_plots:function(t,e,n){var r,i,o,s;return null==e&&(e=null),null==n&&(n={}),r=require(\"common/base\").Collections,o=r(t.type).get(t.id),e||(e=o.default_view),i=_.extend(n,{model:o}),s=new e(i),o=o,s=s,s.render(),c.plotcontext=o,c.plotcontextview=s},bokeh_connection:function(t,e,r){return _.isUndefined(r)&&(r=\"https\"),\"pending\"===a.doc_requested.state()?(s._doc_requested.resolve(),$.get(\"\"+r+\"://\"+t+\"/bokeh/publicbokehinfo/\"+e,{},function(t){return p.debug(\"instantiate_doc_single \"+e),t=JSON.parse(t),n(t.all_models),s._doc_loaded.resolve(t)})):void 0}},u=function(t,e){var n;return n=require(\"common/base\").Config,t&&(n.ws_conn_string=t,p.debug(\"setting ws_conn_string to: \"+n.ws_conn_string)),e&&(n.prefix=e,p.debug(\"setting prefix to \"+n.prefix)),null},c.utility=d,c.configure_server=u,c})}.call(this),define(\"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}),define(\"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 instructions 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}),define(\"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=\"panel panel-default\">\\n  <div class=\"panel-heading\">\\n    <h4 class=\"panel-title\">\\n      <a class=\"bokehdoclabel\" href=\"#')),r(this.bodyid),r(e('\" data-toggle=\"collapse\">\\n        Document: ')),r(this.model.get(\"title\")),r(e(' <span class=\"bokehdelete glyphicon glyphicon-trash\"></i>\\n      </a>\\n    </h4>\\n  </div>\\n  <div id=\"')),r(this.bodyid),r(e('\" class=\"panel-collapse collapse\">\\n    <div class=\"panel-body plots\"></div>\\n  </div>\\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}),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};define(\"server/usercontext/usercontext\",[\"underscore\",\"jquery\",\"common/base\",\"../serverutils\",\"common/continuum_view\",\"common/collection\",\"./userdocstemplate\",\"./documentationtemplate\",\"./wrappertemplate\",\"common/has_parent\",\"common/build_views\",\"common/load_models\"],function(t,n,r,i,o,s,a,l,u,c,p){var h,d,f,_,g,m,y,v,b,w;return g={},m=i.utility,d=function(n){function r(){return y=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.template=u,r.prototype.attributes={\"class\":\"panel-group\"},r.prototype.events={\"click .bokehdoclabel\":\"loaddoc\",\"click .bokehdelete\":\"deldoc\"},r.prototype.deldoc=function(t){return t.preventDefault(),this.model.destroy(),!1},r.prototype.loaddoc=function(){return this.model.load()},r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.render_init()},r.prototype.delegateEvents=function(t){return r.__super__.delegateEvents.call(this,t),this.listenTo(this.model,\"loaded\",this.render)},r.prototype.render_init=function(){var e;return e=this.template({model:this.model,bodyid:t.uniqueId()}),this.$el.html(e)},r.prototype.render=function(){var t;return t=this.model.get(\"plot_context\"),this.plot_context_view=new t.default_view({model:t}),this.$el.find(\".plots\").append(this.plot_context_view.el),!0},r}(o),_=function(n){function r(){return v=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(t){return this.docs=t.docs,this.collection=t.collection,this.views={},r.__super__.initialize.call(this,t),this.render()},r.prototype.attributes={\"class\":\"usercontext\"},r.prototype.events={\"click .bokehrefresh\":function(){return this.collection.fetch({update:!0})}},r.prototype.delegateEvents=function(t){var e=this;return r.__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(\"plot_context\"),\"change\",function(){return e.trigger(\"show\")})})}),this.listenTo(this.collection,\"remove\",function(t){return e.stopListening(t)})},r.prototype.render_docs=function(){return this.$el.html(l()),this.$el.append(this.docs)},r.prototype.render=function(){var e,n,r,i,o;if(0===this.collection.models.length&&this.docs)return this.render_docs();for(e=a(),t.map(t.values(this.views),function(t){return t.$el.detach()}),r=this.collection.models.slice().reverse(),p(this.views,r,{}),this.$el.html(e),i=0,o=r.length;o>i;i++)n=r[i],this.$el.find(\".accordion\").append(this.views[n.id].el);return this},r}(o),h=function(r){function i(){return b=i.__super__.constructor.apply(this,arguments)}return e(i,r),i.prototype.default_view=d,i.prototype.idAttribute=\"docid\",i.prototype.defaults=function(){return t.extend({},i.__super__.defaults.call(this),{docid:null,title:null,plot_context:null,apikey:null})},i.prototype.sync=function(){},i.prototype.destroy=function(t){return i.__super__.destroy.call(this,t),n.ajax({url:\"/bokeh/doc/\"+this.get(\"docid\")+\"/\",type:\"delete\"})},i.prototype.load=function(t){var e,n,r,i=this;if(!this.loaded)return t?(r=this.get(\"title\"),n=m.load_doc_by_title(r)):(e=this.get(\"docid\"),n=m.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})},i}(c),f=function(i){function o(){return w=o.__super__.constructor.apply(this,arguments)}return e(o,i),o.prototype.model=h,o.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})},o.prototype.fetch=function(e){var i,o,s,a=this;return t.isUndefined(e)&&(e={}),s=r.Config.prefix+\"bokeh/userinfo/\",i=o=n.get(s,{}),i.done(function(t){var n;return n=t.docs,e.update?a.set(n,e):a.reset(n,e)}),i},o}(s),g.UserDocs=f,g.UserDocsView=_,g.Doc=h,g.DocView=d,g})}.call(this),function(){define(\"server/embed\",[\"jquery\",\"./serverutils\",\"./usercontext/usercontext\",\"common/base\",\"common/has_properties\",\"common/load_models\",\"common/logging\"],function(t,e,n,r,i,o,s){var a,l,u,c,p,h,d,f,g,m,y;return u=r.index,h=s.logger,d=function(){var e,n;return e=require(\"common/base\").Config,n=\"\"+e.prefix+\"bokeh/ping\",t.get(n).success(function(){return h.info(\"reloading\"),window.location.reload()}).fail(_.delay(function(){return d()},1e3)),null},c=function(e){var n;return n=t(\"<link href='\"+e+\"' rel='stylesheet' type='text/css'>\"),t(\"body\").append(n)},l=function(e,n,i,s){var a,l;return n in u||(o(s),u[n]=l),a=r.Collections(i).get(n),l=new a.default_view({model:a}),_.delay(function(){return t(e).replaceWith(l.$el)})},a=function(n,i,o){var s;return s=e.utility.load_one_object_chain(i,o),s.done(function(i){var s,a,l;return s=r.Collections(i.type).get(o),a=new s.default_view({model:s}),_.delay(function(){return t(n).replaceWith(a.$el)}),o in u||(u[o]=a),l=e.wswrapper,l.subscribe(\"debug:debug\",\"\"),l.on(\"msg:debug:debug\",function(t){return\"reload\"===t?d():void 0})})},p=function(e,n){var i,o,s;if(s=t(\"#\"+e),0===s.length)throw\"Error injecting plot: could not find script tag with id: \"+e;if(s.length>1)throw\"Error injecting plot: found too many script tags with id: \"+e;if(!document.body.contains(s[0]))throw\"Error injecting plot: autoload script tag may only be under <body>\";if(o=s.data(),Bokeh.set_log_level(o.bokehLoglevel),h.info(\"Injecting plot for script tag with id: #\"+e),r.Config.prefix=o.bokehRootUrl,i=t(\"<div>\",{\"class\":\"bokeh-container\"}),i.insertBefore(s),\"static\"===o.bokehData)return h.info(\"  - using static data\"),l(i,o.bokehModelid,o.bokehModeltype,n);if(\"server\"===o.bokehData)return h.info(\"  - using server data\"),a(i,o.bokehDocid,o.bokehModelid);throw\"Unknown bokehData value for inject_plot: \"+o.bokehData},f=function(r){return i.prototype.sync=Backbone.sync,t(function(){var t;return t=e.utility.make_websocket(),t.then(function(){var t,i,o;return o=e.wswrapper,i=new n.UserDocs,i.subscribe(o,\"defaultuser\"),t=i.fetch(),t.done(function(){return null!=r?y(i,r):m(i)}),h.info(\"subscribing to debug\"),o.subscribe(\"debug:debug\",\"\"),o.on(\"msg:debug:debug\",function(t){return\"reload\"===t?d():void 0})})})},m=function(t){var e;return e=new n.UserDocsView({collection:t}),g(e.el)},y=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(\"plot_context\"),e=new t.default_view({model:t}),g(e.el)}),n.load()):(r=\"Document '\"+e+\"' wasn't found on this server.\",g(r),h.error(r))},g=function(e){return t(\"#PlotPane\").append(e)},{inject_css:c,inject_plot:p,add_plot_server:a,add_plot_static:l,server_page:f}})}.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};define(\"tool/gestures/poly_select_tool\",[\"underscore\",\"common/collection\",\"renderer/overlay/poly_selection\",\"tool/gestures/select_tool\"],function(t,n,r,i){var o,s,a,l,u,c;return s=function(n){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.listenTo(this.model,\"change:active\",this._active_change),this.data=null},r.prototype._active_change=function(){return this.mget(\"active\")?void 0:this._clear_data()},r.prototype._keyup=function(t){return 13===t.keyCode?this._clear_data():void 0},r.prototype._doubletap=function(){return this._clear_data()},r.prototype._clear_data=function(){return this.data=null,this.mget(\"overlay\").set(\"data\",null)},r.prototype._tap=function(e){var n,r,i,o,s,a,l;return r=this.plot_view.canvas,s=r.sx_to_vx(e.bokeh.sx),a=r.sy_to_vy(e.bokeh.sy),null==this.data?(this.data={vx:[s],vy:[a]},null):(this.data.vx.push(s),this.data.vy.push(a),o=this.mget(\"overlay\"),i={},i.vx=t.clone(this.data.vx),i.vy=t.clone(this.data.vy),o.set(\"data\",i),n=null!=(l=e.srcEvent.shiftKey)?l:!1,this._select(this.data.vx,this.data.vy,n))},r.prototype._select=function(t,e,n){var r,i,o,s,a,l,u;for(i={type:\"poly\",vx:t,vy:e},u=this.mget(\"renderers\"),a=0,l=u.length;l>a;a++)o=u[a],r=o.get(\"data_source\"),s=r.get(\"selection_manager\"),s.select(this,this.plot_view.renderers[o.id],i,!0,n);return this._save_geometry(i,!0,n),null},r}(i.View),o=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=s,n.prototype.type=\"PolySelectTool\",n.prototype.tool_name=\"Poly Select\",n.prototype.icon=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAQCAYAAAAbBi9cAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAGdSURBVDiNjdO/axRBGMbxT8IiwSBBi4AiBBVRJE3UIqIIilrYLGuxMYo/AimsrNTCWkH/AbFR78Dc5dZiWW3SKQaVaKWlIFEiithooaiIZ7EbPM7b3D0wzLzzvvOdZ5iZviTNmnKN4gE2YSteYjW24A2+Yh/ux1G4uVij2cyXB0V8AYuYwBq8x5Ei/wEH8LNoHRVgWxyFr4v4RUvuScv4ESRpFhTQ/9SPmSTNdpbt1KZhXCsD7cZQj6AB7OqUCDCCTz2C3mF/maNnGOsRtB53y0BD/t1eN32T32pH0HY870ZI0mwMFZwvA73F+AqA4STNduCS3PlSpdbY0F4XFKAfJZA9mMO9OAonl+crtcZcpdaYP3ti4mqro0Py79AKOJqk2TwGMRVH4XTbHqtwpVJrVKv1ZGDZ0SIO4mGSZqNYh2m8wtM4Cr93MPur6E9jY7WenAvkz38pSbO9eIzrcRQe63TUFg3iDz7iIj73Yxa3i4LxOAovr0S4MzPbhzoOYy1GzkzGXwLcxC0sxFH4u4sTUyePN3EDKrXGAk4h/QvU5XGB9rRYawAAAABJRU5ErkJggg==\",n.prototype.event_type=\"tap\",n.prototype.default_order=11,n.prototype.initialize=function(t,e){var i;return n.__super__.initialize.call(this,t,e),this.set(\"overlay\",new r.Model),i=this.get(\"plot\").get(\"renderers\"),i.push(this.get(\"overlay\")),this.get(\"plot\").set(\"renderers\",i)},n}(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),{Model:o,Collection:new a,View:s}})}.call(this),function(){define(\"main\",[\"require\",\"exports\",\"module\",\"common/base\",\"common/logging\",\"underscore\",\"jquery\",\"backbone\",\"common/base\",\"common/base\",\"common/cartesian_frame\",\"common/canvas\",\"common/gmap_plot\",\"common/geojs_plot\",\"common/grid_plot\",\"common/has_parent\",\"common/has_properties\",\"common/layout_box\",\"common/plot\",\"common/plotting\",\"common/selection_manager\",\"common/selector\",\"common/tool_events\",\"common/build_views\",\"common/bulk_save\",\"common/continuum_view\",\"common/load_models\",\"common/plot_context\",\"common/plot_widget\",\"common/random\",\"common/svg_colors\",\"mapper/linear_mapper\",\"mapper/log_mapper\",\"mapper/categorical_mapper\",\"mapper/grid_mapper\",\"mapper/linear_color_mapper\",\"palettes/palettes\",\"renderer/annotation/legend\",\"renderer/annotation/span\",\"renderer/annotation/tooltip\",\"renderer/guide/categorical_axis\",\"renderer/guide/datetime_axis\",\"renderer/guide/grid\",\"renderer/guide/linear_axis\",\"renderer/guide/log_axis\",\"renderer/overlay/box_selection\",\"renderer/overlay/poly_selection\",\"renderer/properties\",\"server/embed\",\"server/serverutils\",\"source/column_data_source\",\"ticking/abstract_ticker\",\"ticking/adaptive_ticker\",\"ticking/basic_ticker\",\"ticking/basic_tick_formatter\",\"ticking/log_ticker\",\"ticking/log_tick_formatter\",\"ticking/categorical_ticker\",\"ticking/categorical_tick_formatter\",\"ticking/composite_ticker\",\"ticking/datetime_ticker\",\"ticking/datetime_tick_formatter\",\"ticking/days_ticker\",\"ticking/months_ticker\",\"ticking/single_interval_ticker\",\"ticking/years_ticker\",\"tool/actions/action_tool\",\"tool/actions/preview_save_tool\",\"tool/actions/reset_tool\",\"tool/gestures/box_select_tool\",\"tool/gestures/box_zoom_tool\",\"tool/gestures/lasso_select_tool\",\"tool/gestures/pan_tool\",\"tool/gestures/poly_select_tool\",\"tool/gestures/resize_tool\",\"tool/gestures/select_tool\",\"tool/gestures/tap_tool\",\"tool/gestures/wheel_zoom_tool\",\"tool/inspectors/inspect_tool\",\"tool/inspectors/hover_tool\",\"tool/inspectors/crosshair_tool\",\"widget/hbox\",\"widget/vbox\",\"widget/textinput\",\"widget/crossfilter\"],function(t,e){var n,r,i;return n={},n.require=t,n.version=\"0.6.1\",n.index=t(\"common/base\").index,r=t(\"common/logging\"),n.logger=r.logger,n.set_log_level=r.set_log_level,window.Float64Array||(n.logger.warn(\"Float64Array is not supported. Using generic Array instead.\"),window.Float64Array=Array),n._=t(\"underscore\"),n.$=t(\"jquery\"),n.Backbone=t(\"backbone\"),i=window.$,window.jQuery.noConflict(),\"undefined\"==typeof $&&(window.$=i),n.Collections=t(\"common/base\").Collections,n.Config=t(\"common/base\").Config,n.CartesianFrame=t(\"common/cartesian_frame\"),n.Canvas=t(\"common/canvas\"),n.GMapPlot=t(\"common/gmap_plot\"),n.GeoJSPlot=t(\"common/geojs_plot\"),n.GridPlot=t(\"common/grid_plot\"),n.HasParent=t(\"common/has_parent\"),n.HasProperties=t(\"common/has_properties\"),n.LayoutBox=t(\"common/layout_box\"),n.Plot=t(\"common/plot\"),n.Plotting=t(\"common/plotting\"),n.SelectionManager=t(\"common/selection_manager\"),n.Selector=t(\"common/selector\"),n.ToolEvents=t(\"common/tool_events\"),n.build_views=t(\"common/build_views\"),n.bulk_save=t(\"common/bulk_save\"),n.ContinuumView=t(\"common/continuum_view\"),n.load_models=t(\"common/load_models\"),n.PlotContext=t(\"common/plot_context\"),n.PlotWidget=t(\"common/plot_widget\"),n.Random=t(\"common/random\"),n.SVGColors=t(\"common/svg_colors\"),n.LinearMapper=t(\"mapper/linear_mapper\"),n.LogMapper=t(\"mapper/log_mapper\"),n.CategoricalMapper=t(\"mapper/categorical_mapper\"),n.GridMapper=t(\"mapper/grid_mapper\"),n.LinearColorMapper=t(\"mapper/linear_color_mapper\"),n.Palettes=t(\"palettes/palettes\"),n.Legend=t(\"renderer/annotation/legend\"),n.Span=t(\"renderer/annotation/span\"),n.Tooltip=t(\"renderer/annotation/tooltip\"),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.LogAxis=t(\"renderer/guide/log_axis\"),n.BoxSelection=t(\"renderer/overlay/box_selection\"),n.PolySelection=t(\"renderer/overlay/poly_selection\"),n.Properties=t(\"renderer/properties\"),n.embed=t(\"server/embed\"),n.serverutils=t(\"server/serverutils\"),n.ColumnDataSource=t(\"source/column_data_source\"),n.AbstractTicker=t(\"ticking/abstract_ticker\"),n.AdaptiveTicker=t(\"ticking/adaptive_ticker\"),n.BasicTicker=t(\"ticking/basic_ticker\"),n.BasicTickFormatter=t(\"ticking/basic_tick_formatter\"),n.LogTicker=t(\"ticking/log_ticker\"),n.LogTickFormatter=t(\"ticking/log_tick_formatter\"),n.CategoricalTicker=t(\"ticking/categorical_ticker\"),n.CategoricalTickFormatter=t(\"ticking/categorical_tick_formatter\"),n.CompositeTicker=t(\"ticking/composite_ticker\"),n.DatetimeTicker=t(\"ticking/datetime_ticker\"),n.DatetimeTickFormatter=t(\"ticking/datetime_tick_formatter\"),n.DaysTicker=t(\"ticking/days_ticker\"),n.MonthsTicker=t(\"ticking/months_ticker\"),n.SingleIntervalTicker=t(\"ticking/single_interval_ticker\"),n.YearsTicker=t(\"ticking/years_ticker\"),n.ActionTool=t(\"tool/actions/action_tool\"),n.PreviewSaveTool=t(\"tool/actions/preview_save_tool\"),n.ResetTool=t(\"tool/actions/reset_tool\"),n.BoxSelectTool=t(\"tool/gestures/box_select_tool\"),n.BoxZoomTool=t(\"tool/gestures/box_zoom_tool\"),n.LassoSelectTool=t(\"tool/gestures/lasso_select_tool\"),n.PanTool=t(\"tool/gestures/pan_tool\"),n.PolySelectTool=t(\"tool/gestures/poly_select_tool\"),n.ResizeTool=t(\"tool/gestures/resize_tool\"),n.SelectTool=t(\"tool/gestures/select_tool\"),n.TapTool=t(\"tool/gestures/tap_tool\"),n.WheelZoomTool=t(\"tool/gestures/wheel_zoom_tool\"),n.InspectTool=t(\"tool/inspectors/inspect_tool\"),n.HoverTool=t(\"tool/inspectors/hover_tool\"),n.CrosshairTool=t(\"tool/inspectors/crosshair_tool\"),n.HBox=t(\"widget/hbox\"),n.VBox=t(\"widget/vbox\"),n.TextInput=t(\"widget/textinput\"),n.CrossFilter=t(\"widget/crossfilter\"),e.Bokeh=n,n})}.call(this),require(\"main\")});\n",
        "                /* END /Users/bryan/work/bokeh/bokeh/server/static/js/bokeh.min.js */\n",
        "        </script>\n",
        "        <script type=\"text/javascript\">\n",
        "            Bokeh.set_log_level(\"info\");\n",
        "        </script>\n",
        "    <div>\n",
        "        <a href=\"http://bokeh.pydata.org\" target=\"_blank\" class=\"bk-logo bk-logo-small bk-logo-notebook\"></a>\n",
        "        <span>BokehJS successfully loaded.</span>\n",
        "    </div>\n",
        "    <p style=\"background-color: #f2d7dc;\">Warning: BokehJS previously loaded</p>"
       ],
       "metadata": {},
       "output_type": "display_data"
      }
     ],
     "prompt_number": 11
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "p1 = figure(x_axis_type = \"datetime\")\n",
      "\n",
      "p1.line(dates, acme, color='#1F78B4', legend='ACME')\n",
      "p1.line(dates, choam, color='#FB9A99', legend='CHOAM')\n",
      "\n",
      "p1.title = \"Stock Returns\"\n",
      "p1.grid.grid_line_alpha=0.3\n",
      "\n",
      "show(p1)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "html": [
        "<script type=\"text/javascript\">\n",
        "        $(function() {\n",
        "            var modelid = \"d38d7a9f-e9ee-4e98-b5f8-72271d1a2e3d\";\n",
        "            var modeltype = \"Plot\";\n",
        "            var elementid = \"f6ca08aa-4b0c-415f-a0f8-da678a4634eb\";\n",
        "            Bokeh.logger.info(\"Realizing plot:\")\n",
        "            Bokeh.logger.info(\" - modeltype: Plot\");\n",
        "            Bokeh.logger.info(\" - modelid: d38d7a9f-e9ee-4e98-b5f8-72271d1a2e3d\");\n",
        "            Bokeh.logger.info(\" - elementid: f6ca08aa-4b0c-415f-a0f8-da678a4634eb\");\n",
        "            var all_models = [{\"attributes\": {\"sources\": [{\"source\": {\"type\": \"ColumnDataSource\", \"id\": \"ec1bcb30-925a-484d-ba57-97b537e559a7\"}, \"columns\": [\"y\"]}, {\"source\": {\"type\": \"ColumnDataSource\", \"id\": \"925ce63c-7be9-4e35-8eb8-4b175f4bc145\"}, \"columns\": [\"y\"]}], \"tags\": [], \"doc\": null, \"id\": \"15e0b48b-b653-4de2-8101-c941c1683361\"}, \"type\": \"DataRange1d\", \"id\": \"15e0b48b-b653-4de2-8101-c941c1683361\"}, {\"attributes\": {\"tags\": [], \"doc\": null, \"formats\": {}, \"id\": \"e6f13657-758e-4462-981a-51edf2622bb6\"}, \"type\": \"DatetimeTickFormatter\", \"id\": \"e6f13657-758e-4462-981a-51edf2622bb6\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"d38d7a9f-e9ee-4e98-b5f8-72271d1a2e3d\"}, \"grid_line_alpha\": {\"units\": \"data\", \"value\": 0.3}, \"tags\": [], \"doc\": null, \"id\": \"38d12e7a-e47e-45d1-b955-fcfda0aa5993\", \"ticker\": {\"type\": \"DatetimeTicker\", \"id\": \"d13a954b-0188-438c-a69d-cdb2936ab379\"}, \"dimension\": 0}, \"type\": \"Grid\", \"id\": \"38d12e7a-e47e-45d1-b955-fcfda0aa5993\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"d38d7a9f-e9ee-4e98-b5f8-72271d1a2e3d\"}, \"tags\": [], \"doc\": null, \"formatter\": {\"type\": \"BasicTickFormatter\", \"id\": \"d06f334c-6a51-4919-8445-9a392cd69992\"}, \"ticker\": {\"type\": \"BasicTicker\", \"id\": \"b6b02f9a-e24b-4ea0-abb7-ed1681fbbb01\"}, \"id\": \"3c370782-2a3b-48a7-888f-076b212ab8fa\"}, \"type\": \"LinearAxis\", \"id\": \"3c370782-2a3b-48a7-888f-076b212ab8fa\"}, {\"attributes\": {\"tags\": [], \"doc\": null, \"id\": \"b6b02f9a-e24b-4ea0-abb7-ed1681fbbb01\", \"num_minor_ticks\": 5}, \"type\": \"BasicTicker\", \"id\": \"b6b02f9a-e24b-4ea0-abb7-ed1681fbbb01\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"d38d7a9f-e9ee-4e98-b5f8-72271d1a2e3d\"}, \"grid_line_alpha\": {\"units\": \"data\", \"value\": 0.3}, \"tags\": [], \"doc\": null, \"id\": \"263d1ec8-05ab-4f3d-9a43-23950adec71d\", \"ticker\": {\"type\": \"BasicTicker\", \"id\": \"b6b02f9a-e24b-4ea0-abb7-ed1681fbbb01\"}, \"dimension\": 1}, \"type\": \"Grid\", \"id\": \"263d1ec8-05ab-4f3d-9a43-23950adec71d\"}, {\"attributes\": {\"doc\": null, \"id\": \"d06f334c-6a51-4919-8445-9a392cd69992\", \"tags\": []}, \"type\": \"BasicTickFormatter\", \"id\": \"d06f334c-6a51-4919-8445-9a392cd69992\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"d38d7a9f-e9ee-4e98-b5f8-72271d1a2e3d\"}, \"dimensions\": [\"width\", \"height\"], \"tags\": [], \"doc\": null, \"id\": \"d7da8bed-a635-494d-a7f9-a355a5cd340d\"}, \"type\": \"PanTool\", \"id\": \"d7da8bed-a635-494d-a7f9-a355a5cd340d\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"d38d7a9f-e9ee-4e98-b5f8-72271d1a2e3d\"}, \"dimensions\": [\"width\", \"height\"], \"tags\": [], \"doc\": null, \"id\": \"ef6103d6-7afa-4d6c-9e82-74f7d4dd20d5\"}, \"type\": \"WheelZoomTool\", \"id\": \"ef6103d6-7afa-4d6c-9e82-74f7d4dd20d5\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"d38d7a9f-e9ee-4e98-b5f8-72271d1a2e3d\"}, \"tags\": [], \"doc\": null, \"id\": \"111ba2b7-5de4-402f-967a-5cdbb94a34af\"}, \"type\": \"BoxZoomTool\", \"id\": \"111ba2b7-5de4-402f-967a-5cdbb94a34af\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"d38d7a9f-e9ee-4e98-b5f8-72271d1a2e3d\"}, \"tags\": [], \"doc\": null, \"id\": \"4f41cb9c-f033-40a1-a61e-8016c1cb51e1\"}, \"type\": \"PreviewSaveTool\", \"id\": \"4f41cb9c-f033-40a1-a61e-8016c1cb51e1\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"d38d7a9f-e9ee-4e98-b5f8-72271d1a2e3d\"}, \"tags\": [], \"doc\": null, \"id\": \"e587d1b8-736f-4f72-9dff-26f951bc3371\"}, \"type\": \"ResetTool\", \"id\": \"e587d1b8-736f-4f72-9dff-26f951bc3371\"}, {\"attributes\": {\"sources\": [{\"source\": {\"type\": \"ColumnDataSource\", \"id\": \"ec1bcb30-925a-484d-ba57-97b537e559a7\"}, \"columns\": [\"x\"]}, {\"source\": {\"type\": \"ColumnDataSource\", \"id\": \"925ce63c-7be9-4e35-8eb8-4b175f4bc145\"}, \"columns\": [\"x\"]}], \"tags\": [], \"doc\": null, \"id\": \"1162ad11-567d-495f-8d4b-b808cf4d9046\"}, \"type\": \"DataRange1d\", \"id\": \"1162ad11-567d-495f-8d4b-b808cf4d9046\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"d38d7a9f-e9ee-4e98-b5f8-72271d1a2e3d\"}, \"legends\": [[\"ACME\", [{\"type\": \"GlyphRenderer\", \"id\": \"0a5306c8-0a4e-4b7f-b332-a2c63dcb4105\"}]], [\"CHOAM\", [{\"type\": \"GlyphRenderer\", \"id\": \"82c1eb66-50b0-4fa3-954e-ee01d6a52ec5\"}]]], \"tags\": [], \"doc\": null, \"id\": \"789b6901-350a-4cc1-b508-fadc1f54e45c\"}, \"type\": \"Legend\", \"id\": \"789b6901-350a-4cc1-b508-fadc1f54e45c\"}, {\"attributes\": {\"column_names\": [\"x\", \"y\"], \"tags\": [], \"doc\": null, \"selected\": [], \"discrete_ranges\": {}, \"cont_ranges\": {}, \"data\": {\"y\": [1.065706333419417, 1.0527080362469554, 1.0692971348285119, 1.0897003043827325, 1.0855367335446544, 1.043180889089207, 0.9517514137479623, 0.9201326312745444, 0.9539770074521637, 0.8805697859007907, 0.854275198031711, 0.8571972723578513, 0.8563257711606914, 0.7998347261272366, 0.7797303086306492, 0.7614488385784038, 0.7657351504487757, 0.7349016173654853, 0.7286142014607756, 0.7189472079158049, 0.7664245529721179, 0.8059897313864001, 0.8123523420575847, 0.7898516096261997, 0.8113638568294097, 0.7924721032436728, 0.788153463055136, 0.8107210113004242, 0.7990090554529321, 0.7682550903556958, 0.7914505414174744, 0.7824286805933324, 0.7653136326293833, 0.8331092345245558, 0.8213012701964809, 0.8408207626031107, 0.7941423917050181, 0.781525862937153, 0.7456105198812839, 0.7249808230373386, 0.751960477387602, 0.7158691246391484, 0.7344595791936797, 0.8153702153434209, 0.810244751519691, 0.8607082277317576, 0.8415991095583572, 0.8422844254846765, 0.8102821551245921, 0.8215890923039867, 0.8396301350878818, 0.8221320556872841, 0.8211539223555355, 0.9162825148755391, 0.9332822197704671, 0.9736710446322008, 0.9734593055525508, 0.9975436559614218, 1.0206136716372898, 0.9812272652769282, 0.9782362580610787, 0.9811527159607584, 0.9695970258730857, 0.97274754253861, 0.9293262055270388, 0.8507731256747252, 0.8514245651402951, 0.853733556825805, 0.9618035662694265, 0.9659605127581407, 0.9713880273081056, 0.9055459340535434, 0.9286600201850721, 0.9347183467427405, 0.9002278051884478, 0.8840365513834982, 0.8516760462178056, 0.8651638804544769, 0.8612716951701911, 0.8928274425569397, 0.8469920781096605, 0.8611566141613439, 0.8620947997242165, 0.8231830124614904, 0.790294112237504, 0.8284538045968776, 0.8413389911098096, 0.8394455327659861, 0.8262715059419606, 0.7857829668112113, 0.8192644038827536, 0.828950315327818, 0.8204104667243888, 0.8010308222594081, 0.7761278397564607, 0.8168046539167981, 0.8111376922966376, 0.7853197616909761, 0.8015200525405732, 0.7724644550845291, 0.7884671622883757, 0.7626368866929656, 0.8330252049158171, 0.7706980417874593, 0.7699842857871689, 0.7804562691767066, 0.7752074746915193, 0.7845848512386688, 0.8036024318025878, 0.7735437971947512, 0.7365891290864417, 0.7197636246306254, 0.6810705351229006, 0.7155984229530308, 0.7320320175717714, 0.7307862497361075, 0.7321481582307541, 0.7197912029622033, 0.7007431406928248, 0.687484997696471, 0.6897246886665575, 0.7245582641478817, 0.7186377253457418, 0.7250502895123977, 0.6872551576775648, 0.6441010459953597, 0.6700959060669307, 0.6363734848613469, 0.6223350391096311, 0.5950327310909559, 0.5863080515376814, 0.5786555945328481, 0.6137231801566922, 0.6097397091212998, 0.6217963525963784, 0.612148465179309, 0.5953514096037615, 0.6109971400356916, 0.5610277830474908, 0.5610314512130189, 0.5684385013082159, 0.559225225131472, 0.5707142090726708, 0.5549889080887921, 0.5436691008090986, 0.5291772822953482, 0.5708647132890191, 0.5628940843265643, 0.5149971140373263, 0.5102539964029945, 0.505224267877755, 0.5185984087584806, 0.50286653253131, 0.5012593198800002, 0.4716311928952841, 0.4813151787943424, 0.47519605813805, 0.4730897027953649, 0.48537746163789436, 0.47659341442351016, 0.4713101356235469, 0.4963840050080772, 0.4878553589325649, 0.5110912860321499, 0.5109321588601311, 0.493201050582182, 0.5161343051846866, 0.5341304685834685, 0.5069543028790104, 0.5199387731060816, 0.5059293960337129, 0.49421277359338867, 0.5090167269764954, 0.5195650911607197, 0.5362624966795247, 0.5093455533465377, 0.49762836168209723, 0.5394142971973308, 0.5127023345302615, 0.49580834388417055, 0.4932341442058352, 0.5048994461313893, 0.4841085560314188, 0.45679982647436457, 0.4579030280076891, 0.45386170159334277, 0.45926140801182963, 0.48149825489006337, 0.49376723207577766, 0.46741037219366316, 0.45651866484029735, 0.4576323531841946, 0.4552130733557777, 0.4596902249790375, 0.4663581130297966, 0.4812907473886939, 0.46975102842075106, 0.45694378218519827, 0.45727905277677244, 0.44916774419001926, 0.4328142870164135, 0.43141749607471214, 0.4262299091400769, 0.43088582104160517, 0.44602687702948884, 0.42073231672868044, 0.42776387777756886, 0.4302426338446129, 0.4087379963888059, 0.38627582670554683, 0.37425968238953494, 0.3790469679459804, 0.3817543116620884, 0.37176718568607225, 0.34936329170335856, 0.34734959697758916, 0.3525185949873785, 0.34595428748724005, 0.3504647909200966, 0.35037062991817797, 0.35743921148809643, 0.3394956729843259, 0.3441285535569279, 0.3309497274062746, 0.3355519101411147, 0.3422962931861484, 0.3416369268361025, 0.35344195857264543, 0.35662980162986174, 0.3866829603330303, 0.3811814045671133, 0.38830873131123245, 0.40710884694720356, 0.42607552032033547, 0.43328753547977483, 0.42805181652221397, 0.4363378893728573, 0.4566019671066476, 0.4453361293447253, 0.4684017059846613, 0.4759185504262807, 0.452541909606845, 0.4301225195994588, 0.4455835577403928, 0.4715132677475743, 0.4665226402123418, 0.4599518579351143, 0.4718890878613274, 0.4607368347090481, 0.4679940020285778, 0.4909927391810268, 0.5037128780168451, 0.4804368320376812, 0.4799378463628322, 0.4798899057225248, 0.5208536088146892, 0.5117183070677094, 0.5116783688785136, 0.49923232641642185, 0.45333878726835575, 0.44967879805326755, 0.453916273672439, 0.4635016588566785, 0.476096348628921, 0.49181562024749637, 0.5217379756751819, 0.5296958383863603, 0.5545632230305623, 0.5533022997372409, 0.517996396026069, 0.5012406327787665, 0.5186124713723937, 0.5146270935998596, 0.48997433241506505, 0.5251944071235198, 0.5184618808197093, 0.5081700650259984, 0.5087003167438404, 0.4885508406216481, 0.5165145628271269, 0.535256997731584, 0.5600104478405535, 0.5679656351113024, 0.5656357537639877, 0.5778138170702423, 0.5857516505921121, 0.567767491951107, 0.5461859228940794, 0.6036744231391773, 0.6069320335753197, 0.6618703033429479, 0.6437339314354247, 0.6613018219026652, 0.6901077562470697, 0.7304757344938316, 0.7299055661181245, 0.737693544914906, 0.7464559200777903, 0.7457018092805385, 0.7257561113056588], \"x\": [1416173195173.301, 1416259884136.5117, 1416346573099.7224, 1416433262062.933, 1416519951026.1438, 1416606639989.3545, 1416693328952.5652, 1416780017915.7761, 1416866706878.9866, 1416953395842.1975, 1417040084805.408, 1417126773768.619, 1417213462731.8293, 1417300151695.0403, 1417386840658.2507, 1417473529621.4617, 1417560218584.672, 1417646907547.883, 1417733596511.0935, 1417820285474.3044, 1417906974437.5151, 1417993663400.7258, 1418080352363.9365, 1418167041327.1472, 1418253730290.358, 1418340419253.5686, 1418427108216.7793, 1418513797179.99, 1418600486143.2007, 1418687175106.4114, 1418773864069.622, 1418860553032.8328, 1418947241996.0435, 1419033930959.2542, 1419120619922.4648, 1419207308885.6758, 1419293997848.8862, 1419380686812.0972, 1419467375775.3076, 1419554064738.5186, 1419640753701.729, 1419727442664.94, 1419814131628.1504, 1419900820591.3613, 1419987509554.5718, 1420074198517.7827, 1420160887480.9932, 1420247576444.204, 1420334265407.4148, 1420420954370.6255, 1420507643333.8362, 1420594332297.0469, 1420681021260.2576, 1420767710223.4683, 1420854399186.679, 1420941088149.8896, 1421027777113.1003, 1421114466076.311, 1421201155039.5217, 1421287844002.7324, 1421374532965.943, 1421461221929.1538, 1421547910892.3645, 1421634599855.5754, 1421721288818.786, 1421807977781.9968, 1421894666745.2073, 1421981355708.4182, 1422068044671.6287, 1422154733634.8396, 1422241422598.05, 1422328111561.261, 1422414800524.4714, 1422501489487.6824, 1422588178450.8928, 1422674867414.1038, 1422761556377.3142, 1422848245340.5251, 1422934934303.7358, 1423021623266.9465, 1423108312230.1572, 1423195001193.368, 1423281690156.5786, 1423368379119.7893, 1423455068083.0, 1423541757046.2107, 1423628446009.4214, 1423715134972.632, 1423801823935.8428, 1423888512899.0535, 1423975201862.2642, 1424061890825.475, 1424148579788.6855, 1424235268751.8965, 1424321957715.107, 1424408646678.3179, 1424495335641.5283, 1424582024604.7393, 1424668713567.9497, 1424755402531.1606, 1424842091494.371, 1424928780457.582, 1425015469420.7925, 1425102158384.0034, 1425188847347.2139, 1425275536310.4248, 1425362225273.6355, 1425448914236.8462, 1425535603200.057, 1425622292163.2676, 1425708981126.4783, 1425795670089.689, 1425882359052.8997, 1425969048016.1104, 1426055736979.321, 1426142425942.5317, 1426229114905.7424, 1426315803868.9531, 1426402492832.1638, 1426489181795.3745, 1426575870758.5852, 1426662559721.7961, 1426749248685.0066, 1426835937648.2175, 1426922626611.428, 1427009315574.639, 1427096004537.8494, 1427182693501.0603, 1427269382464.2708, 1427356071427.4817, 1427442760390.6921, 1427529449353.903, 1427616138317.1135, 1427702827280.3245, 1427789516243.5352, 1427876205206.7458, 1427962894169.9565, 1428049583133.1672, 1428136272096.378, 1428222961059.5886, 1428309650022.7993, 1428396338986.01, 1428483027949.2207, 1428569716912.4314, 1428656405875.642, 1428743094838.8528, 1428829783802.0635, 1428916472765.2742, 1429003161728.4849, 1429089850691.6958, 1429176539654.9062, 1429263228618.1172, 1429349917581.3276, 1429436606544.5386, 1429523295507.749, 1429609984470.96, 1429696673434.1704, 1429783362397.3813, 1429870051360.5918, 1429956740323.8027, 1430043429287.0132, 1430130118250.224, 1430216807213.4348, 1430303496176.6455, 1430390185139.8562, 1430476874103.067, 1430563563066.2776, 1430650252029.4883, 1430736940992.699, 1430823629955.9097, 1430910318919.1204, 1430997007882.331, 1431083696845.5417, 1431170385808.7524, 1431257074771.9631, 1431343763735.1738, 1431430452698.3845, 1431517141661.5955, 1431603830624.806, 1431690519588.0168, 1431777208551.2273, 1431863897514.4382, 1431950586477.6487, 1432037275440.8596, 1432123964404.07, 1432210653367.281, 1432297342330.4915, 1432384031293.7024, 1432470720256.9128, 1432557409220.1238, 1432644098183.3345, 1432730787146.5452, 1432817476109.7559, 1432904165072.9666, 1432990854036.1772, 1433077542999.388, 1433164231962.5986, 1433250920925.8093, 1433337609889.02, 1433424298852.2307, 1433510987815.4414, 1433597676778.652, 1433684365741.8628, 1433771054705.0735, 1433857743668.2842, 1433944432631.495, 1434031121594.7056, 1434117810557.9165, 1434204499521.127, 1434291188484.338, 1434377877447.5483, 1434464566410.7593, 1434551255373.9697, 1434637944337.1807, 1434724633300.391, 1434811322263.602, 1434898011226.8125, 1434984700190.0234, 1435071389153.234, 1435158078116.4448, 1435244767079.6555, 1435331456042.8662, 1435418145006.077, 1435504833969.2876, 1435591522932.4983, 1435678211895.709, 1435764900858.9197, 1435851589822.1304, 1435938278785.341, 1436024967748.5518, 1436111656711.7625, 1436198345674.9731, 1436285034638.1838, 1436371723601.3945, 1436458412564.6052, 1436545101527.8162, 1436631790491.0266, 1436718479454.2375, 1436805168417.448, 1436891857380.659, 1436978546343.8694, 1437065235307.0803, 1437151924270.2908, 1437238613233.5017, 1437325302196.7122, 1437411991159.923, 1437498680123.1335, 1437585369086.3445, 1437672058049.5552, 1437758747012.7659, 1437845435975.9766, 1437932124939.1873, 1438018813902.398, 1438105502865.6086, 1438192191828.8193, 1438278880792.03, 1438365569755.2407, 1438452258718.4514, 1438538947681.662, 1438625636644.8728, 1438712325608.0835, 1438799014571.2942, 1438885703534.505, 1438972392497.7158, 1439059081460.9263, 1439145770424.1372, 1439232459387.3477, 1439319148350.5586, 1439405837313.769, 1439492526276.98, 1439579215240.1904, 1439665904203.4014, 1439752593166.6118, 1439839282129.8228, 1439925971093.0332, 1440012660056.2441, 1440099349019.4548, 1440186037982.6655, 1440272726945.8762, 1440359415909.087, 1440446104872.2976, 1440532793835.5083, 1440619482798.719, 1440706171761.9297, 1440792860725.1404, 1440879549688.351, 1440966238651.5618, 1441052927614.7725, 1441139616577.9832, 1441226305541.1938, 1441312994504.4045, 1441399683467.6155, 1441486372430.826, 1441573061394.0369, 1441659750357.2473, 1441746439320.4583, 1441833128283.6687, 1441919817246.8796, 1442006506210.09, 1442093195173.301]}, \"id\": \"925ce63c-7be9-4e35-8eb8-4b175f4bc145\"}, \"type\": \"ColumnDataSource\", \"id\": \"925ce63c-7be9-4e35-8eb8-4b175f4bc145\"}, {\"attributes\": {\"line_color\": {\"value\": \"#1F78B4\"}, \"line_alpha\": {\"units\": \"data\", \"value\": 1.0}, \"tags\": [], \"doc\": null, \"y\": {\"units\": \"data\", \"field\": \"y\"}, \"x\": {\"units\": \"data\", \"field\": \"x\"}, \"id\": \"ec28c204-d210-453a-89fa-55be225226da\"}, \"type\": \"Line\", \"id\": \"ec28c204-d210-453a-89fa-55be225226da\"}, {\"attributes\": {\"line_color\": {\"value\": \"#1f77b4\"}, \"angle_units\": \"deg\", \"visible\": null, \"end_angle_units\": \"deg\", \"size_units\": \"screen\", \"line_join\": \"miter\", \"id\": \"0ae50eb1-cee1-4438-a417-4bda84093f63\", \"line_alpha\": {\"units\": \"data\", \"value\": 0.1}, \"radius_units\": \"data\", \"valign\": null, \"length_units\": \"screen\", \"tags\": [], \"start_angle_units\": \"deg\", \"line_cap\": \"butt\", \"line_dash\": [], \"line_width\": {\"units\": \"data\", \"field\": \"line_width\"}, \"name\": null, \"doc\": null, \"halign\": null, \"y\": {\"units\": \"data\", \"field\": \"y\"}, \"x\": {\"units\": \"data\", \"field\": \"x\"}, \"margin\": null, \"line_dash_offset\": 0}, \"type\": \"Line\", \"id\": \"0ae50eb1-cee1-4438-a417-4bda84093f63\"}, {\"attributes\": {\"nonselection_glyph\": {\"type\": \"Line\", \"id\": \"0ae50eb1-cee1-4438-a417-4bda84093f63\"}, \"data_source\": {\"type\": \"ColumnDataSource\", \"id\": \"ec1bcb30-925a-484d-ba57-97b537e559a7\"}, \"name\": null, \"server_data_source\": null, \"tags\": [], \"doc\": null, \"selection_glyph\": null, \"id\": \"0a5306c8-0a4e-4b7f-b332-a2c63dcb4105\", \"glyph\": {\"type\": \"Line\", \"id\": \"ec28c204-d210-453a-89fa-55be225226da\"}}, \"type\": \"GlyphRenderer\", \"id\": \"0a5306c8-0a4e-4b7f-b332-a2c63dcb4105\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"d38d7a9f-e9ee-4e98-b5f8-72271d1a2e3d\"}, \"tags\": [], \"doc\": null, \"id\": \"56414355-9f30-4baa-983c-72b5409f63b3\"}, \"type\": \"ResizeTool\", \"id\": \"56414355-9f30-4baa-983c-72b5409f63b3\"}, {\"attributes\": {\"line_color\": {\"value\": \"#FB9A99\"}, \"line_alpha\": {\"units\": \"data\", \"value\": 1.0}, \"tags\": [], \"doc\": null, \"y\": {\"units\": \"data\", \"field\": \"y\"}, \"x\": {\"units\": \"data\", \"field\": \"x\"}, \"id\": \"441ec901-1b63-42a5-85d7-4bf7da0e412c\"}, \"type\": \"Line\", \"id\": \"441ec901-1b63-42a5-85d7-4bf7da0e412c\"}, {\"attributes\": {\"line_color\": {\"value\": \"#1f77b4\"}, \"angle_units\": \"deg\", \"visible\": null, \"end_angle_units\": \"deg\", \"size_units\": \"screen\", \"line_join\": \"miter\", \"id\": \"78c38286-2605-4a2d-9bfa-2e2db2d1d650\", \"line_alpha\": {\"units\": \"data\", \"value\": 0.1}, \"radius_units\": \"data\", \"valign\": null, \"length_units\": \"screen\", \"tags\": [], \"start_angle_units\": \"deg\", \"line_cap\": \"butt\", \"line_dash\": [], \"line_width\": {\"units\": \"data\", \"field\": \"line_width\"}, \"name\": null, \"doc\": null, \"halign\": null, \"y\": {\"units\": \"data\", \"field\": \"y\"}, \"x\": {\"units\": \"data\", \"field\": \"x\"}, \"margin\": null, \"line_dash_offset\": 0}, \"type\": \"Line\", \"id\": \"78c38286-2605-4a2d-9bfa-2e2db2d1d650\"}, {\"attributes\": {\"nonselection_glyph\": {\"type\": \"Line\", \"id\": \"78c38286-2605-4a2d-9bfa-2e2db2d1d650\"}, \"data_source\": {\"type\": \"ColumnDataSource\", \"id\": \"925ce63c-7be9-4e35-8eb8-4b175f4bc145\"}, \"name\": null, \"server_data_source\": null, \"tags\": [], \"doc\": null, \"selection_glyph\": null, \"id\": \"82c1eb66-50b0-4fa3-954e-ee01d6a52ec5\", \"glyph\": {\"type\": \"Line\", \"id\": \"441ec901-1b63-42a5-85d7-4bf7da0e412c\"}}, \"type\": \"GlyphRenderer\", \"id\": \"82c1eb66-50b0-4fa3-954e-ee01d6a52ec5\"}, {\"attributes\": {\"column_names\": [\"x\", \"y\"], \"tags\": [], \"doc\": null, \"selected\": [], \"discrete_ranges\": {}, \"cont_ranges\": {}, \"data\": {\"y\": [1.0584501972127902, 1.1002459232521784, 1.1440555588687495, 1.1848921155184688, 1.25708945079266, 1.2155496119138014, 1.1949848110520664, 1.15260566265293, 1.1872808615546597, 1.1732666860824794, 1.0883817802746383, 1.0240371744726593, 1.013604764170652, 0.9286276043702645, 0.9542205606702866, 0.9215716090112172, 0.910258677089805, 0.8694609451819661, 0.8422073498201104, 0.87359674945593, 0.9684925331788677, 0.9393529710206989, 0.9295839548239346, 0.966815509770307, 0.9582427778650752, 0.9044346970843151, 0.942411067706923, 0.8811691936560642, 0.8836567521958283, 0.876679908678979, 0.9335222004119799, 0.895029713334711, 0.9273131106360468, 0.9396080782753807, 0.9206462438703845, 0.8575212936148529, 0.849023887112551, 0.8152211116680711, 0.7821291821862402, 0.7685512354033723, 0.7744620376824989, 0.813618987934461, 0.8613969166841673, 0.8542746114359906, 0.8684550521189685, 0.8243575620069329, 0.8008748223304673, 0.8178933730468373, 0.855347612860413, 0.8437961186347385, 0.8507066854034411, 0.8288529650011858, 0.7801138722646267, 0.7810014444716664, 0.7792355139852006, 0.7998488567116021, 0.8063483030168968, 0.8482780469702813, 0.8631463691522571, 0.8360428005259549, 0.7849522876360803, 0.7647658993042544, 0.7785881952498868, 0.7935336818523726, 0.8024432192158789, 0.7811116231554921, 0.8491595001240154, 0.8269389177195287, 0.7929410767931876, 0.7789902755515083, 0.7813853628926437, 0.7676317626274809, 0.7410253754737461, 0.7991074258042622, 0.7714169623581127, 0.7940473520204968, 0.8493727674984889, 0.8492378335165881, 0.8457318944710313, 0.9102975676017783, 0.8938486119086458, 0.9205984323381455, 0.8840522253711857, 0.8676798118300644, 0.9054341575975785, 0.838084787442867, 0.8503878520472719, 0.8388241773448505, 0.8661480852089348, 0.8563509168389446, 0.8402677631946659, 0.8513051052661639, 0.8087312216770989, 0.8073311630223405, 0.7922527122515355, 0.7959805470993186, 0.8319181971242705, 0.7743962896509159, 0.7752677834119689, 0.8318127858289802, 0.8191777424340703, 0.8263737376610533, 0.8288459000363986, 0.7763303798953638, 0.789807555122268, 0.7618337268683927, 0.8115204262960608, 0.8046963468180993, 0.8125602000072794, 0.8457303900381314, 0.8597390074647401, 0.8344386552850491, 0.7792725448156359, 0.75284133533041, 0.7618909345290548, 0.7843138132337771, 0.7924662700555064, 0.781228041217498, 0.8049917582160657, 0.7722400763910022, 0.783851958736126, 0.7672840152749998, 0.7709896730820073, 0.7541070237087043, 0.7616540372910724, 0.7751491297613088, 0.7557418908202882, 0.7577966570602669, 0.7425440833345683, 0.7550371562566766, 0.7084004272852311, 0.6832322026242414, 0.664044316507094, 0.6518302609339663, 0.6478491614614662, 0.7233305914051081, 0.7823924973369609, 0.7537844516844667, 0.7737566561279752, 0.7468605663631883, 0.7489775627701707, 0.7090126446869183, 0.7407106768019467, 0.7624933116167927, 0.7665666187187645, 0.7121529877720986, 0.7241603395599192, 0.7164980294667853, 0.6921285075216712, 0.6699758440163515, 0.6486093475683157, 0.6426453075237893, 0.6513196915241448, 0.6414572853834816, 0.6592666604938558, 0.6946255818923203, 0.7025249284834897, 0.7165978626508344, 0.760112154495879, 0.7509266383296532, 0.758125709964818, 0.7801997426934622, 0.8257718125009649, 0.869014565345569, 0.8858714288044599, 0.8445183180556036, 0.7423197561901682, 0.7500349602328414, 0.8098510836961316, 0.7937094329030188, 0.7806347798731421, 0.786820772002029, 0.7805496002835939, 0.8003512095127069, 0.818326166836276, 0.7300619195344177, 0.7052694950165489, 0.6765794231535754, 0.6564976132421688, 0.6962988249211949, 0.6946400966433078, 0.6789641291008124, 0.7110255069681446, 0.7291427519646194, 0.6876500060868153, 0.6392433017797603, 0.6603915653556263, 0.6695995013309262, 0.6381574224697886, 0.654325374869716, 0.6600514082176183, 0.6516434617165999, 0.6687383796468125, 0.6668952899576435, 0.6386961601027282, 0.6038787065633684, 0.6406698819810318, 0.6481552403350846, 0.6273498068949092, 0.6779355146583929, 0.6860328963259312, 0.690225555354272, 0.7052629030792688, 0.7005845301010809, 0.6523318053694496, 0.632697487056591, 0.5928732426916465, 0.5881824289608254, 0.5603734254865332, 0.5395491656842509, 0.509895623008035, 0.5500800402017514, 0.5498529012819914, 0.5564794310872019, 0.5290877169892202, 0.5069301235696452, 0.5321376580378548, 0.5000788287733671, 0.4980757835033357, 0.4931723872546168, 0.44957871736115945, 0.45119113100374264, 0.46016314580828904, 0.46860298548199963, 0.46160705924071904, 0.47254648215192957, 0.47231808226219407, 0.4824962932439917, 0.4618726792752461, 0.4994718414868415, 0.49991869317766613, 0.4832074433298289, 0.47703301168099743, 0.4944305322874996, 0.505462789420627, 0.5044060220417433, 0.5144696267223312, 0.5021061249977609, 0.5327867660926631, 0.5066126951400631, 0.5013280790832277, 0.5021982840562339, 0.47464862784149364, 0.4919202063926842, 0.45877316545088104, 0.4611434060755579, 0.5050941705530555, 0.5139686203835251, 0.5177251072174478, 0.514986470918041, 0.5027397126358301, 0.4972040747693058, 0.5017507268344169, 0.4901977369473316, 0.5064299022394204, 0.5020981581720417, 0.48635974692598244, 0.47577062009805426, 0.4700859584554976, 0.4837856152956221, 0.49292500929595434, 0.4903539409066945, 0.5029816456739942, 0.4899534004352089, 0.49898494744547844, 0.5123794022744885, 0.5069695559865757, 0.5249345154591727, 0.5144961900665543, 0.520947999291146, 0.5077098440234141, 0.5107393168990921, 0.49865745611655593, 0.5045535199917703, 0.5178117141967775, 0.5368678233359349, 0.5494549275093701, 0.5253782266990413, 0.5216404145944625, 0.5551109215372485, 0.5944476290333854, 0.5952672360964527, 0.5888021513945096, 0.5978914277533182, 0.6047412531098249, 0.6529122311296369, 0.6926268575540704, 0.6516980542001182, 0.6676918939444857, 0.705945605870889, 0.6888231122111835, 0.6998184067541346, 0.7202351247152383, 0.7531744065299802, 0.7456418489926195, 0.7908303663266764, 0.8082349576849948, 0.8539044118714126, 0.8503815598863294, 0.8167003556117733], \"x\": [1416173195173.301, 1416259884136.5117, 1416346573099.7224, 1416433262062.933, 1416519951026.1438, 1416606639989.3545, 1416693328952.5652, 1416780017915.7761, 1416866706878.9866, 1416953395842.1975, 1417040084805.408, 1417126773768.619, 1417213462731.8293, 1417300151695.0403, 1417386840658.2507, 1417473529621.4617, 1417560218584.672, 1417646907547.883, 1417733596511.0935, 1417820285474.3044, 1417906974437.5151, 1417993663400.7258, 1418080352363.9365, 1418167041327.1472, 1418253730290.358, 1418340419253.5686, 1418427108216.7793, 1418513797179.99, 1418600486143.2007, 1418687175106.4114, 1418773864069.622, 1418860553032.8328, 1418947241996.0435, 1419033930959.2542, 1419120619922.4648, 1419207308885.6758, 1419293997848.8862, 1419380686812.0972, 1419467375775.3076, 1419554064738.5186, 1419640753701.729, 1419727442664.94, 1419814131628.1504, 1419900820591.3613, 1419987509554.5718, 1420074198517.7827, 1420160887480.9932, 1420247576444.204, 1420334265407.4148, 1420420954370.6255, 1420507643333.8362, 1420594332297.0469, 1420681021260.2576, 1420767710223.4683, 1420854399186.679, 1420941088149.8896, 1421027777113.1003, 1421114466076.311, 1421201155039.5217, 1421287844002.7324, 1421374532965.943, 1421461221929.1538, 1421547910892.3645, 1421634599855.5754, 1421721288818.786, 1421807977781.9968, 1421894666745.2073, 1421981355708.4182, 1422068044671.6287, 1422154733634.8396, 1422241422598.05, 1422328111561.261, 1422414800524.4714, 1422501489487.6824, 1422588178450.8928, 1422674867414.1038, 1422761556377.3142, 1422848245340.5251, 1422934934303.7358, 1423021623266.9465, 1423108312230.1572, 1423195001193.368, 1423281690156.5786, 1423368379119.7893, 1423455068083.0, 1423541757046.2107, 1423628446009.4214, 1423715134972.632, 1423801823935.8428, 1423888512899.0535, 1423975201862.2642, 1424061890825.475, 1424148579788.6855, 1424235268751.8965, 1424321957715.107, 1424408646678.3179, 1424495335641.5283, 1424582024604.7393, 1424668713567.9497, 1424755402531.1606, 1424842091494.371, 1424928780457.582, 1425015469420.7925, 1425102158384.0034, 1425188847347.2139, 1425275536310.4248, 1425362225273.6355, 1425448914236.8462, 1425535603200.057, 1425622292163.2676, 1425708981126.4783, 1425795670089.689, 1425882359052.8997, 1425969048016.1104, 1426055736979.321, 1426142425942.5317, 1426229114905.7424, 1426315803868.9531, 1426402492832.1638, 1426489181795.3745, 1426575870758.5852, 1426662559721.7961, 1426749248685.0066, 1426835937648.2175, 1426922626611.428, 1427009315574.639, 1427096004537.8494, 1427182693501.0603, 1427269382464.2708, 1427356071427.4817, 1427442760390.6921, 1427529449353.903, 1427616138317.1135, 1427702827280.3245, 1427789516243.5352, 1427876205206.7458, 1427962894169.9565, 1428049583133.1672, 1428136272096.378, 1428222961059.5886, 1428309650022.7993, 1428396338986.01, 1428483027949.2207, 1428569716912.4314, 1428656405875.642, 1428743094838.8528, 1428829783802.0635, 1428916472765.2742, 1429003161728.4849, 1429089850691.6958, 1429176539654.9062, 1429263228618.1172, 1429349917581.3276, 1429436606544.5386, 1429523295507.749, 1429609984470.96, 1429696673434.1704, 1429783362397.3813, 1429870051360.5918, 1429956740323.8027, 1430043429287.0132, 1430130118250.224, 1430216807213.4348, 1430303496176.6455, 1430390185139.8562, 1430476874103.067, 1430563563066.2776, 1430650252029.4883, 1430736940992.699, 1430823629955.9097, 1430910318919.1204, 1430997007882.331, 1431083696845.5417, 1431170385808.7524, 1431257074771.9631, 1431343763735.1738, 1431430452698.3845, 1431517141661.5955, 1431603830624.806, 1431690519588.0168, 1431777208551.2273, 1431863897514.4382, 1431950586477.6487, 1432037275440.8596, 1432123964404.07, 1432210653367.281, 1432297342330.4915, 1432384031293.7024, 1432470720256.9128, 1432557409220.1238, 1432644098183.3345, 1432730787146.5452, 1432817476109.7559, 1432904165072.9666, 1432990854036.1772, 1433077542999.388, 1433164231962.5986, 1433250920925.8093, 1433337609889.02, 1433424298852.2307, 1433510987815.4414, 1433597676778.652, 1433684365741.8628, 1433771054705.0735, 1433857743668.2842, 1433944432631.495, 1434031121594.7056, 1434117810557.9165, 1434204499521.127, 1434291188484.338, 1434377877447.5483, 1434464566410.7593, 1434551255373.9697, 1434637944337.1807, 1434724633300.391, 1434811322263.602, 1434898011226.8125, 1434984700190.0234, 1435071389153.234, 1435158078116.4448, 1435244767079.6555, 1435331456042.8662, 1435418145006.077, 1435504833969.2876, 1435591522932.4983, 1435678211895.709, 1435764900858.9197, 1435851589822.1304, 1435938278785.341, 1436024967748.5518, 1436111656711.7625, 1436198345674.9731, 1436285034638.1838, 1436371723601.3945, 1436458412564.6052, 1436545101527.8162, 1436631790491.0266, 1436718479454.2375, 1436805168417.448, 1436891857380.659, 1436978546343.8694, 1437065235307.0803, 1437151924270.2908, 1437238613233.5017, 1437325302196.7122, 1437411991159.923, 1437498680123.1335, 1437585369086.3445, 1437672058049.5552, 1437758747012.7659, 1437845435975.9766, 1437932124939.1873, 1438018813902.398, 1438105502865.6086, 1438192191828.8193, 1438278880792.03, 1438365569755.2407, 1438452258718.4514, 1438538947681.662, 1438625636644.8728, 1438712325608.0835, 1438799014571.2942, 1438885703534.505, 1438972392497.7158, 1439059081460.9263, 1439145770424.1372, 1439232459387.3477, 1439319148350.5586, 1439405837313.769, 1439492526276.98, 1439579215240.1904, 1439665904203.4014, 1439752593166.6118, 1439839282129.8228, 1439925971093.0332, 1440012660056.2441, 1440099349019.4548, 1440186037982.6655, 1440272726945.8762, 1440359415909.087, 1440446104872.2976, 1440532793835.5083, 1440619482798.719, 1440706171761.9297, 1440792860725.1404, 1440879549688.351, 1440966238651.5618, 1441052927614.7725, 1441139616577.9832, 1441226305541.1938, 1441312994504.4045, 1441399683467.6155, 1441486372430.826, 1441573061394.0369, 1441659750357.2473, 1441746439320.4583, 1441833128283.6687, 1441919817246.8796, 1442006506210.09, 1442093195173.301]}, \"id\": \"ec1bcb30-925a-484d-ba57-97b537e559a7\"}, \"type\": \"ColumnDataSource\", \"id\": \"ec1bcb30-925a-484d-ba57-97b537e559a7\"}, {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"d38d7a9f-e9ee-4e98-b5f8-72271d1a2e3d\", \"attributes\": {\"x_range\": {\"type\": \"DataRange1d\", \"id\": \"1162ad11-567d-495f-8d4b-b808cf4d9046\"}, \"right\": [], \"tags\": [], \"tools\": [{\"type\": \"PanTool\", \"id\": \"d7da8bed-a635-494d-a7f9-a355a5cd340d\"}, {\"type\": \"WheelZoomTool\", \"id\": \"ef6103d6-7afa-4d6c-9e82-74f7d4dd20d5\"}, {\"type\": \"BoxZoomTool\", \"id\": \"111ba2b7-5de4-402f-967a-5cdbb94a34af\"}, {\"type\": \"PreviewSaveTool\", \"id\": \"4f41cb9c-f033-40a1-a61e-8016c1cb51e1\"}, {\"type\": \"ResizeTool\", \"id\": \"56414355-9f30-4baa-983c-72b5409f63b3\"}, {\"type\": \"ResetTool\", \"id\": \"e587d1b8-736f-4f72-9dff-26f951bc3371\"}], \"title\": \"Stock Returns\", \"extra_y_ranges\": {}, \"renderers\": [{\"type\": \"DatetimeAxis\", \"id\": \"ee651535-3068-4c47-ad3e-26a2a93723c4\"}, {\"type\": \"Grid\", \"id\": \"38d12e7a-e47e-45d1-b955-fcfda0aa5993\"}, {\"type\": \"LinearAxis\", \"id\": \"3c370782-2a3b-48a7-888f-076b212ab8fa\"}, {\"type\": \"Grid\", \"id\": \"263d1ec8-05ab-4f3d-9a43-23950adec71d\"}, {\"type\": \"Legend\", \"id\": \"789b6901-350a-4cc1-b508-fadc1f54e45c\"}, {\"type\": \"GlyphRenderer\", \"id\": \"0a5306c8-0a4e-4b7f-b332-a2c63dcb4105\"}, {\"type\": \"GlyphRenderer\", \"id\": \"82c1eb66-50b0-4fa3-954e-ee01d6a52ec5\"}], \"extra_x_ranges\": {}, \"below\": [{\"type\": \"DatetimeAxis\", \"id\": \"ee651535-3068-4c47-ad3e-26a2a93723c4\"}], \"tool_events\": {\"type\": \"ToolEvents\", \"id\": \"1d4a1752-d3e3-4202-ada4-b969823ebb35\"}, \"above\": [], \"doc\": null, \"y_range\": {\"type\": \"DataRange1d\", \"id\": \"15e0b48b-b653-4de2-8101-c941c1683361\"}, \"id\": \"d38d7a9f-e9ee-4e98-b5f8-72271d1a2e3d\", \"left\": [{\"type\": \"LinearAxis\", \"id\": \"3c370782-2a3b-48a7-888f-076b212ab8fa\"}]}}, {\"attributes\": {\"geometries\": [], \"tags\": [], \"doc\": null, \"id\": \"1d4a1752-d3e3-4202-ada4-b969823ebb35\"}, \"type\": \"ToolEvents\", \"id\": \"1d4a1752-d3e3-4202-ada4-b969823ebb35\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"d38d7a9f-e9ee-4e98-b5f8-72271d1a2e3d\"}, \"tags\": [], \"doc\": null, \"formatter\": {\"type\": \"DatetimeTickFormatter\", \"id\": \"e6f13657-758e-4462-981a-51edf2622bb6\"}, \"ticker\": {\"type\": \"DatetimeTicker\", \"id\": \"d13a954b-0188-438c-a69d-cdb2936ab379\"}, \"id\": \"ee651535-3068-4c47-ad3e-26a2a93723c4\"}, \"type\": \"DatetimeAxis\", \"id\": \"ee651535-3068-4c47-ad3e-26a2a93723c4\"}, {\"attributes\": {\"tags\": [], \"doc\": null, \"id\": \"d13a954b-0188-438c-a69d-cdb2936ab379\", \"num_minor_ticks\": 5}, \"type\": \"DatetimeTicker\", \"id\": \"d13a954b-0188-438c-a69d-cdb2936ab379\"}];\n",
        "            Bokeh.load_models(all_models);\n",
        "            var model = Bokeh.Collections(modeltype).get(modelid);\n",
        "            var view = new model.default_view({model: model, el: '#f6ca08aa-4b0c-415f-a0f8-da678a4634eb'});\n",
        "            Bokeh.index[modelid] = view\n",
        "        });\n",
        "    </script>\n",
        "<div class=\"plotdiv\" id=\"f6ca08aa-4b0c-415f-a0f8-da678a4634eb\"></div>\n",
        "\n"
       ],
       "metadata": {},
       "output_type": "display_data"
      }
     ],
     "prompt_number": 12
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "p2 = figure()\n",
      "\n",
      "p2.scatter(acme, choam, color='#A6CEE3', legend='close')\n",
      "\n",
      "p2.title = \"ACME / CHOAM Correlations\"\n",
      "p2.grid.grid_line_alpha=0.3\n",
      "\n",
      "show(p2)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "html": [
        "<script type=\"text/javascript\">\n",
        "        $(function() {\n",
        "            var modelid = \"8c90c027-20f4-468f-8c0c-ac3ce7d9aa59\";\n",
        "            var modeltype = \"Plot\";\n",
        "            var elementid = \"fe6ee10d-106a-40b9-9a3a-facf26541c3f\";\n",
        "            Bokeh.logger.info(\"Realizing plot:\")\n",
        "            Bokeh.logger.info(\" - modeltype: Plot\");\n",
        "            Bokeh.logger.info(\" - modelid: 8c90c027-20f4-468f-8c0c-ac3ce7d9aa59\");\n",
        "            Bokeh.logger.info(\" - elementid: fe6ee10d-106a-40b9-9a3a-facf26541c3f\");\n",
        "            var all_models = [{\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"8c90c027-20f4-468f-8c0c-ac3ce7d9aa59\"}, \"tags\": [], \"doc\": null, \"id\": \"382580c1-d14b-4ab3-bdcc-4065c14d202d\"}, \"type\": \"ResizeTool\", \"id\": \"382580c1-d14b-4ab3-bdcc-4065c14d202d\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"8c90c027-20f4-468f-8c0c-ac3ce7d9aa59\"}, \"tags\": [], \"doc\": null, \"id\": \"8fee0698-7644-4778-8fe5-a7d967941b0d\"}, \"type\": \"ResetTool\", \"id\": \"8fee0698-7644-4778-8fe5-a7d967941b0d\"}, {\"attributes\": {\"line_color\": {\"value\": \"#A6CEE3\"}, \"line_alpha\": {\"units\": \"data\", \"value\": 1.0}, \"fill_color\": {\"value\": \"#A6CEE3\"}, \"tags\": [], \"doc\": null, \"fill_alpha\": {\"units\": \"data\", \"value\": 1.0}, \"y\": {\"units\": \"data\", \"field\": \"y\"}, \"x\": {\"units\": \"data\", \"field\": \"x\"}, \"id\": \"a599bd88-d7b5-4e91-bfe5-c3b33dc69ff4\"}, \"type\": \"Circle\", \"id\": \"a599bd88-d7b5-4e91-bfe5-c3b33dc69ff4\"}, {\"attributes\": {\"line_color\": {\"value\": \"#1f77b4\"}, \"angle_units\": \"deg\", \"fill_color\": {\"value\": \"#1f77b4\"}, \"visible\": null, \"radius\": null, \"size_units\": \"screen\", \"line_join\": \"miter\", \"id\": \"ec86903f-0436-48e5-9eae-ba6071a56504\", \"size\": {\"units\": \"screen\", \"value\": 4}, \"line_alpha\": {\"units\": \"data\", \"value\": 0.1}, \"radius_units\": \"data\", \"x\": {\"units\": \"data\", \"field\": \"x\"}, \"valign\": null, \"length_units\": \"screen\", \"tags\": [], \"start_angle_units\": \"deg\", \"line_cap\": \"butt\", \"line_dash\": [], \"line_width\": {\"units\": \"data\", \"field\": \"line_width\"}, \"name\": null, \"doc\": null, \"fill_alpha\": {\"units\": \"data\", \"value\": 0.1}, \"halign\": null, \"y\": {\"units\": \"data\", \"field\": \"y\"}, \"end_angle_units\": \"deg\", \"margin\": null, \"line_dash_offset\": 0}, \"type\": \"Circle\", \"id\": \"ec86903f-0436-48e5-9eae-ba6071a56504\"}, {\"attributes\": {\"nonselection_glyph\": {\"type\": \"Circle\", \"id\": \"ec86903f-0436-48e5-9eae-ba6071a56504\"}, \"data_source\": {\"type\": \"ColumnDataSource\", \"id\": \"8f38cc53-5eac-49d7-9340-675f7e802d06\"}, \"name\": null, \"server_data_source\": null, \"tags\": [], \"doc\": null, \"selection_glyph\": null, \"id\": \"9789bed6-3d8e-486d-8d1a-df36298e26c4\", \"glyph\": {\"type\": \"Circle\", \"id\": \"a599bd88-d7b5-4e91-bfe5-c3b33dc69ff4\"}}, \"type\": \"GlyphRenderer\", \"id\": \"9789bed6-3d8e-486d-8d1a-df36298e26c4\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"8c90c027-20f4-468f-8c0c-ac3ce7d9aa59\"}, \"legends\": [[\"close\", [{\"type\": \"GlyphRenderer\", \"id\": \"9789bed6-3d8e-486d-8d1a-df36298e26c4\"}]]], \"tags\": [], \"doc\": null, \"id\": \"3223815b-ef53-4e93-b1db-fce824fcb305\"}, \"type\": \"Legend\", \"id\": \"3223815b-ef53-4e93-b1db-fce824fcb305\"}, {\"attributes\": {\"doc\": null, \"id\": \"085224da-092c-4bce-a778-66775e9a978b\", \"tags\": []}, \"type\": \"BasicTickFormatter\", \"id\": \"085224da-092c-4bce-a778-66775e9a978b\"}, {\"attributes\": {\"doc\": null, \"id\": \"85e0e53f-8835-4f83-9082-c9ec6fdf7845\", \"tags\": []}, \"type\": \"BasicTickFormatter\", \"id\": \"85e0e53f-8835-4f83-9082-c9ec6fdf7845\"}, {\"attributes\": {\"tags\": [], \"doc\": null, \"id\": \"94c58f64-8cfd-4806-b0a9-e6198c64ade6\", \"num_minor_ticks\": 5}, \"type\": \"BasicTicker\", \"id\": \"94c58f64-8cfd-4806-b0a9-e6198c64ade6\"}, {\"attributes\": {\"column_names\": [\"_autoindex\", \"Series 1\", \"x\", \"y\"], \"tags\": [], \"doc\": null, \"selected\": [], \"discrete_ranges\": {}, \"cont_ranges\": {}, \"data\": {\"y\": [1.065706333419417, 1.0527080362469554, 1.0692971348285119, 1.0897003043827325, 1.0855367335446544, 1.043180889089207, 0.9517514137479623, 0.9201326312745444, 0.9539770074521637, 0.8805697859007907, 0.854275198031711, 0.8571972723578513, 0.8563257711606914, 0.7998347261272366, 0.7797303086306492, 0.7614488385784038, 0.7657351504487757, 0.7349016173654853, 0.7286142014607756, 0.7189472079158049, 0.7664245529721179, 0.8059897313864001, 0.8123523420575847, 0.7898516096261997, 0.8113638568294097, 0.7924721032436728, 0.788153463055136, 0.8107210113004242, 0.7990090554529321, 0.7682550903556958, 0.7914505414174744, 0.7824286805933324, 0.7653136326293833, 0.8331092345245558, 0.8213012701964809, 0.8408207626031107, 0.7941423917050181, 0.781525862937153, 0.7456105198812839, 0.7249808230373386, 0.751960477387602, 0.7158691246391484, 0.7344595791936797, 0.8153702153434209, 0.810244751519691, 0.8607082277317576, 0.8415991095583572, 0.8422844254846765, 0.8102821551245921, 0.8215890923039867, 0.8396301350878818, 0.8221320556872841, 0.8211539223555355, 0.9162825148755391, 0.9332822197704671, 0.9736710446322008, 0.9734593055525508, 0.9975436559614218, 1.0206136716372898, 0.9812272652769282, 0.9782362580610787, 0.9811527159607584, 0.9695970258730857, 0.97274754253861, 0.9293262055270388, 0.8507731256747252, 0.8514245651402951, 0.853733556825805, 0.9618035662694265, 0.9659605127581407, 0.9713880273081056, 0.9055459340535434, 0.9286600201850721, 0.9347183467427405, 0.9002278051884478, 0.8840365513834982, 0.8516760462178056, 0.8651638804544769, 0.8612716951701911, 0.8928274425569397, 0.8469920781096605, 0.8611566141613439, 0.8620947997242165, 0.8231830124614904, 0.790294112237504, 0.8284538045968776, 0.8413389911098096, 0.8394455327659861, 0.8262715059419606, 0.7857829668112113, 0.8192644038827536, 0.828950315327818, 0.8204104667243888, 0.8010308222594081, 0.7761278397564607, 0.8168046539167981, 0.8111376922966376, 0.7853197616909761, 0.8015200525405732, 0.7724644550845291, 0.7884671622883757, 0.7626368866929656, 0.8330252049158171, 0.7706980417874593, 0.7699842857871689, 0.7804562691767066, 0.7752074746915193, 0.7845848512386688, 0.8036024318025878, 0.7735437971947512, 0.7365891290864417, 0.7197636246306254, 0.6810705351229006, 0.7155984229530308, 0.7320320175717714, 0.7307862497361075, 0.7321481582307541, 0.7197912029622033, 0.7007431406928248, 0.687484997696471, 0.6897246886665575, 0.7245582641478817, 0.7186377253457418, 0.7250502895123977, 0.6872551576775648, 0.6441010459953597, 0.6700959060669307, 0.6363734848613469, 0.6223350391096311, 0.5950327310909559, 0.5863080515376814, 0.5786555945328481, 0.6137231801566922, 0.6097397091212998, 0.6217963525963784, 0.612148465179309, 0.5953514096037615, 0.6109971400356916, 0.5610277830474908, 0.5610314512130189, 0.5684385013082159, 0.559225225131472, 0.5707142090726708, 0.5549889080887921, 0.5436691008090986, 0.5291772822953482, 0.5708647132890191, 0.5628940843265643, 0.5149971140373263, 0.5102539964029945, 0.505224267877755, 0.5185984087584806, 0.50286653253131, 0.5012593198800002, 0.4716311928952841, 0.4813151787943424, 0.47519605813805, 0.4730897027953649, 0.48537746163789436, 0.47659341442351016, 0.4713101356235469, 0.4963840050080772, 0.4878553589325649, 0.5110912860321499, 0.5109321588601311, 0.493201050582182, 0.5161343051846866, 0.5341304685834685, 0.5069543028790104, 0.5199387731060816, 0.5059293960337129, 0.49421277359338867, 0.5090167269764954, 0.5195650911607197, 0.5362624966795247, 0.5093455533465377, 0.49762836168209723, 0.5394142971973308, 0.5127023345302615, 0.49580834388417055, 0.4932341442058352, 0.5048994461313893, 0.4841085560314188, 0.45679982647436457, 0.4579030280076891, 0.45386170159334277, 0.45926140801182963, 0.48149825489006337, 0.49376723207577766, 0.46741037219366316, 0.45651866484029735, 0.4576323531841946, 0.4552130733557777, 0.4596902249790375, 0.4663581130297966, 0.4812907473886939, 0.46975102842075106, 0.45694378218519827, 0.45727905277677244, 0.44916774419001926, 0.4328142870164135, 0.43141749607471214, 0.4262299091400769, 0.43088582104160517, 0.44602687702948884, 0.42073231672868044, 0.42776387777756886, 0.4302426338446129, 0.4087379963888059, 0.38627582670554683, 0.37425968238953494, 0.3790469679459804, 0.3817543116620884, 0.37176718568607225, 0.34936329170335856, 0.34734959697758916, 0.3525185949873785, 0.34595428748724005, 0.3504647909200966, 0.35037062991817797, 0.35743921148809643, 0.3394956729843259, 0.3441285535569279, 0.3309497274062746, 0.3355519101411147, 0.3422962931861484, 0.3416369268361025, 0.35344195857264543, 0.35662980162986174, 0.3866829603330303, 0.3811814045671133, 0.38830873131123245, 0.40710884694720356, 0.42607552032033547, 0.43328753547977483, 0.42805181652221397, 0.4363378893728573, 0.4566019671066476, 0.4453361293447253, 0.4684017059846613, 0.4759185504262807, 0.452541909606845, 0.4301225195994588, 0.4455835577403928, 0.4715132677475743, 0.4665226402123418, 0.4599518579351143, 0.4718890878613274, 0.4607368347090481, 0.4679940020285778, 0.4909927391810268, 0.5037128780168451, 0.4804368320376812, 0.4799378463628322, 0.4798899057225248, 0.5208536088146892, 0.5117183070677094, 0.5116783688785136, 0.49923232641642185, 0.45333878726835575, 0.44967879805326755, 0.453916273672439, 0.4635016588566785, 0.476096348628921, 0.49181562024749637, 0.5217379756751819, 0.5296958383863603, 0.5545632230305623, 0.5533022997372409, 0.517996396026069, 0.5012406327787665, 0.5186124713723937, 0.5146270935998596, 0.48997433241506505, 0.5251944071235198, 0.5184618808197093, 0.5081700650259984, 0.5087003167438404, 0.4885508406216481, 0.5165145628271269, 0.535256997731584, 0.5600104478405535, 0.5679656351113024, 0.5656357537639877, 0.5778138170702423, 0.5857516505921121, 0.567767491951107, 0.5461859228940794, 0.6036744231391773, 0.6069320335753197, 0.6618703033429479, 0.6437339314354247, 0.6613018219026652, 0.6901077562470697, 0.7304757344938316, 0.7299055661181245, 0.737693544914906, 0.7464559200777903, 0.7457018092805385, 0.7257561113056588], \"x\": [1.0584501972127902, 1.1002459232521784, 1.1440555588687495, 1.1848921155184688, 1.25708945079266, 1.2155496119138014, 1.1949848110520664, 1.15260566265293, 1.1872808615546597, 1.1732666860824794, 1.0883817802746383, 1.0240371744726593, 1.013604764170652, 0.9286276043702645, 0.9542205606702866, 0.9215716090112172, 0.910258677089805, 0.8694609451819661, 0.8422073498201104, 0.87359674945593, 0.9684925331788677, 0.9393529710206989, 0.9295839548239346, 0.966815509770307, 0.9582427778650752, 0.9044346970843151, 0.942411067706923, 0.8811691936560642, 0.8836567521958283, 0.876679908678979, 0.9335222004119799, 0.895029713334711, 0.9273131106360468, 0.9396080782753807, 0.9206462438703845, 0.8575212936148529, 0.849023887112551, 0.8152211116680711, 0.7821291821862402, 0.7685512354033723, 0.7744620376824989, 0.813618987934461, 0.8613969166841673, 0.8542746114359906, 0.8684550521189685, 0.8243575620069329, 0.8008748223304673, 0.8178933730468373, 0.855347612860413, 0.8437961186347385, 0.8507066854034411, 0.8288529650011858, 0.7801138722646267, 0.7810014444716664, 0.7792355139852006, 0.7998488567116021, 0.8063483030168968, 0.8482780469702813, 0.8631463691522571, 0.8360428005259549, 0.7849522876360803, 0.7647658993042544, 0.7785881952498868, 0.7935336818523726, 0.8024432192158789, 0.7811116231554921, 0.8491595001240154, 0.8269389177195287, 0.7929410767931876, 0.7789902755515083, 0.7813853628926437, 0.7676317626274809, 0.7410253754737461, 0.7991074258042622, 0.7714169623581127, 0.7940473520204968, 0.8493727674984889, 0.8492378335165881, 0.8457318944710313, 0.9102975676017783, 0.8938486119086458, 0.9205984323381455, 0.8840522253711857, 0.8676798118300644, 0.9054341575975785, 0.838084787442867, 0.8503878520472719, 0.8388241773448505, 0.8661480852089348, 0.8563509168389446, 0.8402677631946659, 0.8513051052661639, 0.8087312216770989, 0.8073311630223405, 0.7922527122515355, 0.7959805470993186, 0.8319181971242705, 0.7743962896509159, 0.7752677834119689, 0.8318127858289802, 0.8191777424340703, 0.8263737376610533, 0.8288459000363986, 0.7763303798953638, 0.789807555122268, 0.7618337268683927, 0.8115204262960608, 0.8046963468180993, 0.8125602000072794, 0.8457303900381314, 0.8597390074647401, 0.8344386552850491, 0.7792725448156359, 0.75284133533041, 0.7618909345290548, 0.7843138132337771, 0.7924662700555064, 0.781228041217498, 0.8049917582160657, 0.7722400763910022, 0.783851958736126, 0.7672840152749998, 0.7709896730820073, 0.7541070237087043, 0.7616540372910724, 0.7751491297613088, 0.7557418908202882, 0.7577966570602669, 0.7425440833345683, 0.7550371562566766, 0.7084004272852311, 0.6832322026242414, 0.664044316507094, 0.6518302609339663, 0.6478491614614662, 0.7233305914051081, 0.7823924973369609, 0.7537844516844667, 0.7737566561279752, 0.7468605663631883, 0.7489775627701707, 0.7090126446869183, 0.7407106768019467, 0.7624933116167927, 0.7665666187187645, 0.7121529877720986, 0.7241603395599192, 0.7164980294667853, 0.6921285075216712, 0.6699758440163515, 0.6486093475683157, 0.6426453075237893, 0.6513196915241448, 0.6414572853834816, 0.6592666604938558, 0.6946255818923203, 0.7025249284834897, 0.7165978626508344, 0.760112154495879, 0.7509266383296532, 0.758125709964818, 0.7801997426934622, 0.8257718125009649, 0.869014565345569, 0.8858714288044599, 0.8445183180556036, 0.7423197561901682, 0.7500349602328414, 0.8098510836961316, 0.7937094329030188, 0.7806347798731421, 0.786820772002029, 0.7805496002835939, 0.8003512095127069, 0.818326166836276, 0.7300619195344177, 0.7052694950165489, 0.6765794231535754, 0.6564976132421688, 0.6962988249211949, 0.6946400966433078, 0.6789641291008124, 0.7110255069681446, 0.7291427519646194, 0.6876500060868153, 0.6392433017797603, 0.6603915653556263, 0.6695995013309262, 0.6381574224697886, 0.654325374869716, 0.6600514082176183, 0.6516434617165999, 0.6687383796468125, 0.6668952899576435, 0.6386961601027282, 0.6038787065633684, 0.6406698819810318, 0.6481552403350846, 0.6273498068949092, 0.6779355146583929, 0.6860328963259312, 0.690225555354272, 0.7052629030792688, 0.7005845301010809, 0.6523318053694496, 0.632697487056591, 0.5928732426916465, 0.5881824289608254, 0.5603734254865332, 0.5395491656842509, 0.509895623008035, 0.5500800402017514, 0.5498529012819914, 0.5564794310872019, 0.5290877169892202, 0.5069301235696452, 0.5321376580378548, 0.5000788287733671, 0.4980757835033357, 0.4931723872546168, 0.44957871736115945, 0.45119113100374264, 0.46016314580828904, 0.46860298548199963, 0.46160705924071904, 0.47254648215192957, 0.47231808226219407, 0.4824962932439917, 0.4618726792752461, 0.4994718414868415, 0.49991869317766613, 0.4832074433298289, 0.47703301168099743, 0.4944305322874996, 0.505462789420627, 0.5044060220417433, 0.5144696267223312, 0.5021061249977609, 0.5327867660926631, 0.5066126951400631, 0.5013280790832277, 0.5021982840562339, 0.47464862784149364, 0.4919202063926842, 0.45877316545088104, 0.4611434060755579, 0.5050941705530555, 0.5139686203835251, 0.5177251072174478, 0.514986470918041, 0.5027397126358301, 0.4972040747693058, 0.5017507268344169, 0.4901977369473316, 0.5064299022394204, 0.5020981581720417, 0.48635974692598244, 0.47577062009805426, 0.4700859584554976, 0.4837856152956221, 0.49292500929595434, 0.4903539409066945, 0.5029816456739942, 0.4899534004352089, 0.49898494744547844, 0.5123794022744885, 0.5069695559865757, 0.5249345154591727, 0.5144961900665543, 0.520947999291146, 0.5077098440234141, 0.5107393168990921, 0.49865745611655593, 0.5045535199917703, 0.5178117141967775, 0.5368678233359349, 0.5494549275093701, 0.5253782266990413, 0.5216404145944625, 0.5551109215372485, 0.5944476290333854, 0.5952672360964527, 0.5888021513945096, 0.5978914277533182, 0.6047412531098249, 0.6529122311296369, 0.6926268575540704, 0.6516980542001182, 0.6676918939444857, 0.705945605870889, 0.6888231122111835, 0.6998184067541346, 0.7202351247152383, 0.7531744065299802, 0.7456418489926195, 0.7908303663266764, 0.8082349576849948, 0.8539044118714126, 0.8503815598863294, 0.8167003556117733], \"_autoindex\": [1.0584501972127902, 1.1002459232521784, 1.1440555588687495, 1.1848921155184688, 1.25708945079266, 1.2155496119138014, 1.1949848110520664, 1.15260566265293, 1.1872808615546597, 1.1732666860824794, 1.0883817802746383, 1.0240371744726593, 1.013604764170652, 0.9286276043702645, 0.9542205606702866, 0.9215716090112172, 0.910258677089805, 0.8694609451819661, 0.8422073498201104, 0.87359674945593, 0.9684925331788677, 0.9393529710206989, 0.9295839548239346, 0.966815509770307, 0.9582427778650752, 0.9044346970843151, 0.942411067706923, 0.8811691936560642, 0.8836567521958283, 0.876679908678979, 0.9335222004119799, 0.895029713334711, 0.9273131106360468, 0.9396080782753807, 0.9206462438703845, 0.8575212936148529, 0.849023887112551, 0.8152211116680711, 0.7821291821862402, 0.7685512354033723, 0.7744620376824989, 0.813618987934461, 0.8613969166841673, 0.8542746114359906, 0.8684550521189685, 0.8243575620069329, 0.8008748223304673, 0.8178933730468373, 0.855347612860413, 0.8437961186347385, 0.8507066854034411, 0.8288529650011858, 0.7801138722646267, 0.7810014444716664, 0.7792355139852006, 0.7998488567116021, 0.8063483030168968, 0.8482780469702813, 0.8631463691522571, 0.8360428005259549, 0.7849522876360803, 0.7647658993042544, 0.7785881952498868, 0.7935336818523726, 0.8024432192158789, 0.7811116231554921, 0.8491595001240154, 0.8269389177195287, 0.7929410767931876, 0.7789902755515083, 0.7813853628926437, 0.7676317626274809, 0.7410253754737461, 0.7991074258042622, 0.7714169623581127, 0.7940473520204968, 0.8493727674984889, 0.8492378335165881, 0.8457318944710313, 0.9102975676017783, 0.8938486119086458, 0.9205984323381455, 0.8840522253711857, 0.8676798118300644, 0.9054341575975785, 0.838084787442867, 0.8503878520472719, 0.8388241773448505, 0.8661480852089348, 0.8563509168389446, 0.8402677631946659, 0.8513051052661639, 0.8087312216770989, 0.8073311630223405, 0.7922527122515355, 0.7959805470993186, 0.8319181971242705, 0.7743962896509159, 0.7752677834119689, 0.8318127858289802, 0.8191777424340703, 0.8263737376610533, 0.8288459000363986, 0.7763303798953638, 0.789807555122268, 0.7618337268683927, 0.8115204262960608, 0.8046963468180993, 0.8125602000072794, 0.8457303900381314, 0.8597390074647401, 0.8344386552850491, 0.7792725448156359, 0.75284133533041, 0.7618909345290548, 0.7843138132337771, 0.7924662700555064, 0.781228041217498, 0.8049917582160657, 0.7722400763910022, 0.783851958736126, 0.7672840152749998, 0.7709896730820073, 0.7541070237087043, 0.7616540372910724, 0.7751491297613088, 0.7557418908202882, 0.7577966570602669, 0.7425440833345683, 0.7550371562566766, 0.7084004272852311, 0.6832322026242414, 0.664044316507094, 0.6518302609339663, 0.6478491614614662, 0.7233305914051081, 0.7823924973369609, 0.7537844516844667, 0.7737566561279752, 0.7468605663631883, 0.7489775627701707, 0.7090126446869183, 0.7407106768019467, 0.7624933116167927, 0.7665666187187645, 0.7121529877720986, 0.7241603395599192, 0.7164980294667853, 0.6921285075216712, 0.6699758440163515, 0.6486093475683157, 0.6426453075237893, 0.6513196915241448, 0.6414572853834816, 0.6592666604938558, 0.6946255818923203, 0.7025249284834897, 0.7165978626508344, 0.760112154495879, 0.7509266383296532, 0.758125709964818, 0.7801997426934622, 0.8257718125009649, 0.869014565345569, 0.8858714288044599, 0.8445183180556036, 0.7423197561901682, 0.7500349602328414, 0.8098510836961316, 0.7937094329030188, 0.7806347798731421, 0.786820772002029, 0.7805496002835939, 0.8003512095127069, 0.818326166836276, 0.7300619195344177, 0.7052694950165489, 0.6765794231535754, 0.6564976132421688, 0.6962988249211949, 0.6946400966433078, 0.6789641291008124, 0.7110255069681446, 0.7291427519646194, 0.6876500060868153, 0.6392433017797603, 0.6603915653556263, 0.6695995013309262, 0.6381574224697886, 0.654325374869716, 0.6600514082176183, 0.6516434617165999, 0.6687383796468125, 0.6668952899576435, 0.6386961601027282, 0.6038787065633684, 0.6406698819810318, 0.6481552403350846, 0.6273498068949092, 0.6779355146583929, 0.6860328963259312, 0.690225555354272, 0.7052629030792688, 0.7005845301010809, 0.6523318053694496, 0.632697487056591, 0.5928732426916465, 0.5881824289608254, 0.5603734254865332, 0.5395491656842509, 0.509895623008035, 0.5500800402017514, 0.5498529012819914, 0.5564794310872019, 0.5290877169892202, 0.5069301235696452, 0.5321376580378548, 0.5000788287733671, 0.4980757835033357, 0.4931723872546168, 0.44957871736115945, 0.45119113100374264, 0.46016314580828904, 0.46860298548199963, 0.46160705924071904, 0.47254648215192957, 0.47231808226219407, 0.4824962932439917, 0.4618726792752461, 0.4994718414868415, 0.49991869317766613, 0.4832074433298289, 0.47703301168099743, 0.4944305322874996, 0.505462789420627, 0.5044060220417433, 0.5144696267223312, 0.5021061249977609, 0.5327867660926631, 0.5066126951400631, 0.5013280790832277, 0.5021982840562339, 0.47464862784149364, 0.4919202063926842, 0.45877316545088104, 0.4611434060755579, 0.5050941705530555, 0.5139686203835251, 0.5177251072174478, 0.514986470918041, 0.5027397126358301, 0.4972040747693058, 0.5017507268344169, 0.4901977369473316, 0.5064299022394204, 0.5020981581720417, 0.48635974692598244, 0.47577062009805426, 0.4700859584554976, 0.4837856152956221, 0.49292500929595434, 0.4903539409066945, 0.5029816456739942, 0.4899534004352089, 0.49898494744547844, 0.5123794022744885, 0.5069695559865757, 0.5249345154591727, 0.5144961900665543, 0.520947999291146, 0.5077098440234141, 0.5107393168990921, 0.49865745611655593, 0.5045535199917703, 0.5178117141967775, 0.5368678233359349, 0.5494549275093701, 0.5253782266990413, 0.5216404145944625, 0.5551109215372485, 0.5944476290333854, 0.5952672360964527, 0.5888021513945096, 0.5978914277533182, 0.6047412531098249, 0.6529122311296369, 0.6926268575540704, 0.6516980542001182, 0.6676918939444857, 0.705945605870889, 0.6888231122111835, 0.6998184067541346, 0.7202351247152383, 0.7531744065299802, 0.7456418489926195, 0.7908303663266764, 0.8082349576849948, 0.8539044118714126, 0.8503815598863294, 0.8167003556117733], \"Series 1\": [1.065706333419417, 1.0527080362469554, 1.0692971348285119, 1.0897003043827325, 1.0855367335446544, 1.043180889089207, 0.9517514137479623, 0.9201326312745444, 0.9539770074521637, 0.8805697859007907, 0.854275198031711, 0.8571972723578513, 0.8563257711606914, 0.7998347261272366, 0.7797303086306492, 0.7614488385784038, 0.7657351504487757, 0.7349016173654853, 0.7286142014607756, 0.7189472079158049, 0.7664245529721179, 0.8059897313864001, 0.8123523420575847, 0.7898516096261997, 0.8113638568294097, 0.7924721032436728, 0.788153463055136, 0.8107210113004242, 0.7990090554529321, 0.7682550903556958, 0.7914505414174744, 0.7824286805933324, 0.7653136326293833, 0.8331092345245558, 0.8213012701964809, 0.8408207626031107, 0.7941423917050181, 0.781525862937153, 0.7456105198812839, 0.7249808230373386, 0.751960477387602, 0.7158691246391484, 0.7344595791936797, 0.8153702153434209, 0.810244751519691, 0.8607082277317576, 0.8415991095583572, 0.8422844254846765, 0.8102821551245921, 0.8215890923039867, 0.8396301350878818, 0.8221320556872841, 0.8211539223555355, 0.9162825148755391, 0.9332822197704671, 0.9736710446322008, 0.9734593055525508, 0.9975436559614218, 1.0206136716372898, 0.9812272652769282, 0.9782362580610787, 0.9811527159607584, 0.9695970258730857, 0.97274754253861, 0.9293262055270388, 0.8507731256747252, 0.8514245651402951, 0.853733556825805, 0.9618035662694265, 0.9659605127581407, 0.9713880273081056, 0.9055459340535434, 0.9286600201850721, 0.9347183467427405, 0.9002278051884478, 0.8840365513834982, 0.8516760462178056, 0.8651638804544769, 0.8612716951701911, 0.8928274425569397, 0.8469920781096605, 0.8611566141613439, 0.8620947997242165, 0.8231830124614904, 0.790294112237504, 0.8284538045968776, 0.8413389911098096, 0.8394455327659861, 0.8262715059419606, 0.7857829668112113, 0.8192644038827536, 0.828950315327818, 0.8204104667243888, 0.8010308222594081, 0.7761278397564607, 0.8168046539167981, 0.8111376922966376, 0.7853197616909761, 0.8015200525405732, 0.7724644550845291, 0.7884671622883757, 0.7626368866929656, 0.8330252049158171, 0.7706980417874593, 0.7699842857871689, 0.7804562691767066, 0.7752074746915193, 0.7845848512386688, 0.8036024318025878, 0.7735437971947512, 0.7365891290864417, 0.7197636246306254, 0.6810705351229006, 0.7155984229530308, 0.7320320175717714, 0.7307862497361075, 0.7321481582307541, 0.7197912029622033, 0.7007431406928248, 0.687484997696471, 0.6897246886665575, 0.7245582641478817, 0.7186377253457418, 0.7250502895123977, 0.6872551576775648, 0.6441010459953597, 0.6700959060669307, 0.6363734848613469, 0.6223350391096311, 0.5950327310909559, 0.5863080515376814, 0.5786555945328481, 0.6137231801566922, 0.6097397091212998, 0.6217963525963784, 0.612148465179309, 0.5953514096037615, 0.6109971400356916, 0.5610277830474908, 0.5610314512130189, 0.5684385013082159, 0.559225225131472, 0.5707142090726708, 0.5549889080887921, 0.5436691008090986, 0.5291772822953482, 0.5708647132890191, 0.5628940843265643, 0.5149971140373263, 0.5102539964029945, 0.505224267877755, 0.5185984087584806, 0.50286653253131, 0.5012593198800002, 0.4716311928952841, 0.4813151787943424, 0.47519605813805, 0.4730897027953649, 0.48537746163789436, 0.47659341442351016, 0.4713101356235469, 0.4963840050080772, 0.4878553589325649, 0.5110912860321499, 0.5109321588601311, 0.493201050582182, 0.5161343051846866, 0.5341304685834685, 0.5069543028790104, 0.5199387731060816, 0.5059293960337129, 0.49421277359338867, 0.5090167269764954, 0.5195650911607197, 0.5362624966795247, 0.5093455533465377, 0.49762836168209723, 0.5394142971973308, 0.5127023345302615, 0.49580834388417055, 0.4932341442058352, 0.5048994461313893, 0.4841085560314188, 0.45679982647436457, 0.4579030280076891, 0.45386170159334277, 0.45926140801182963, 0.48149825489006337, 0.49376723207577766, 0.46741037219366316, 0.45651866484029735, 0.4576323531841946, 0.4552130733557777, 0.4596902249790375, 0.4663581130297966, 0.4812907473886939, 0.46975102842075106, 0.45694378218519827, 0.45727905277677244, 0.44916774419001926, 0.4328142870164135, 0.43141749607471214, 0.4262299091400769, 0.43088582104160517, 0.44602687702948884, 0.42073231672868044, 0.42776387777756886, 0.4302426338446129, 0.4087379963888059, 0.38627582670554683, 0.37425968238953494, 0.3790469679459804, 0.3817543116620884, 0.37176718568607225, 0.34936329170335856, 0.34734959697758916, 0.3525185949873785, 0.34595428748724005, 0.3504647909200966, 0.35037062991817797, 0.35743921148809643, 0.3394956729843259, 0.3441285535569279, 0.3309497274062746, 0.3355519101411147, 0.3422962931861484, 0.3416369268361025, 0.35344195857264543, 0.35662980162986174, 0.3866829603330303, 0.3811814045671133, 0.38830873131123245, 0.40710884694720356, 0.42607552032033547, 0.43328753547977483, 0.42805181652221397, 0.4363378893728573, 0.4566019671066476, 0.4453361293447253, 0.4684017059846613, 0.4759185504262807, 0.452541909606845, 0.4301225195994588, 0.4455835577403928, 0.4715132677475743, 0.4665226402123418, 0.4599518579351143, 0.4718890878613274, 0.4607368347090481, 0.4679940020285778, 0.4909927391810268, 0.5037128780168451, 0.4804368320376812, 0.4799378463628322, 0.4798899057225248, 0.5208536088146892, 0.5117183070677094, 0.5116783688785136, 0.49923232641642185, 0.45333878726835575, 0.44967879805326755, 0.453916273672439, 0.4635016588566785, 0.476096348628921, 0.49181562024749637, 0.5217379756751819, 0.5296958383863603, 0.5545632230305623, 0.5533022997372409, 0.517996396026069, 0.5012406327787665, 0.5186124713723937, 0.5146270935998596, 0.48997433241506505, 0.5251944071235198, 0.5184618808197093, 0.5081700650259984, 0.5087003167438404, 0.4885508406216481, 0.5165145628271269, 0.535256997731584, 0.5600104478405535, 0.5679656351113024, 0.5656357537639877, 0.5778138170702423, 0.5857516505921121, 0.567767491951107, 0.5461859228940794, 0.6036744231391773, 0.6069320335753197, 0.6618703033429479, 0.6437339314354247, 0.6613018219026652, 0.6901077562470697, 0.7304757344938316, 0.7299055661181245, 0.737693544914906, 0.7464559200777903, 0.7457018092805385, 0.7257561113056588]}, \"id\": \"8f38cc53-5eac-49d7-9340-675f7e802d06\"}, \"type\": \"ColumnDataSource\", \"id\": \"8f38cc53-5eac-49d7-9340-675f7e802d06\"}, {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"8c90c027-20f4-468f-8c0c-ac3ce7d9aa59\", \"attributes\": {\"x_range\": {\"type\": \"DataRange1d\", \"id\": \"a30620d8-7621-42d5-b11d-7c29769b57d5\"}, \"right\": [], \"tags\": [], \"tools\": [{\"type\": \"PanTool\", \"id\": \"d0ba746b-5bec-4175-88bd-dce21775a877\"}, {\"type\": \"WheelZoomTool\", \"id\": \"54c58232-2506-4403-9b46-4e0127f06159\"}, {\"type\": \"BoxZoomTool\", \"id\": \"0b44da6e-addc-453f-b9cc-b0819bfcd732\"}, {\"type\": \"PreviewSaveTool\", \"id\": \"ccfe20d2-5912-4144-85e1-738b44ab819a\"}, {\"type\": \"ResizeTool\", \"id\": \"382580c1-d14b-4ab3-bdcc-4065c14d202d\"}, {\"type\": \"ResetTool\", \"id\": \"8fee0698-7644-4778-8fe5-a7d967941b0d\"}], \"title\": \"ACME / CHOAM Correlations\", \"extra_y_ranges\": {}, \"renderers\": [{\"type\": \"LinearAxis\", \"id\": \"b2ebb3c2-3bb7-4e6c-b793-7d6c45ef9663\"}, {\"type\": \"Grid\", \"id\": \"8418e159-0561-40c4-b767-c5b4542f496f\"}, {\"type\": \"LinearAxis\", \"id\": \"9875f7ae-bb39-444a-9788-c49e9a26965d\"}, {\"type\": \"Grid\", \"id\": \"b869e9f7-b958-4dd5-abcf-d1fce324e65e\"}, {\"type\": \"Legend\", \"id\": \"3223815b-ef53-4e93-b1db-fce824fcb305\"}, {\"type\": \"GlyphRenderer\", \"id\": \"9789bed6-3d8e-486d-8d1a-df36298e26c4\"}], \"extra_x_ranges\": {}, \"below\": [{\"type\": \"LinearAxis\", \"id\": \"b2ebb3c2-3bb7-4e6c-b793-7d6c45ef9663\"}], \"tool_events\": {\"type\": \"ToolEvents\", \"id\": \"93bdccf2-9fe6-456b-82a4-8526ff3ba9e3\"}, \"above\": [], \"doc\": null, \"y_range\": {\"type\": \"DataRange1d\", \"id\": \"1bd02b53-9e65-42c5-8ec6-366183598c03\"}, \"id\": \"8c90c027-20f4-468f-8c0c-ac3ce7d9aa59\", \"left\": [{\"type\": \"LinearAxis\", \"id\": \"9875f7ae-bb39-444a-9788-c49e9a26965d\"}]}}, {\"attributes\": {\"geometries\": [], \"tags\": [], \"doc\": null, \"id\": \"93bdccf2-9fe6-456b-82a4-8526ff3ba9e3\"}, \"type\": \"ToolEvents\", \"id\": \"93bdccf2-9fe6-456b-82a4-8526ff3ba9e3\"}, {\"attributes\": {\"sources\": [{\"source\": {\"type\": \"ColumnDataSource\", \"id\": \"8f38cc53-5eac-49d7-9340-675f7e802d06\"}, \"columns\": [\"y\"]}], \"tags\": [], \"doc\": null, \"id\": \"1bd02b53-9e65-42c5-8ec6-366183598c03\"}, \"type\": \"DataRange1d\", \"id\": \"1bd02b53-9e65-42c5-8ec6-366183598c03\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"8c90c027-20f4-468f-8c0c-ac3ce7d9aa59\"}, \"tags\": [], \"doc\": null, \"formatter\": {\"type\": \"BasicTickFormatter\", \"id\": \"085224da-092c-4bce-a778-66775e9a978b\"}, \"ticker\": {\"type\": \"BasicTicker\", \"id\": \"94c58f64-8cfd-4806-b0a9-e6198c64ade6\"}, \"id\": \"b2ebb3c2-3bb7-4e6c-b793-7d6c45ef9663\"}, \"type\": \"LinearAxis\", \"id\": \"b2ebb3c2-3bb7-4e6c-b793-7d6c45ef9663\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"8c90c027-20f4-468f-8c0c-ac3ce7d9aa59\"}, \"grid_line_alpha\": {\"units\": \"data\", \"value\": 0.3}, \"tags\": [], \"doc\": null, \"id\": \"8418e159-0561-40c4-b767-c5b4542f496f\", \"ticker\": {\"type\": \"BasicTicker\", \"id\": \"94c58f64-8cfd-4806-b0a9-e6198c64ade6\"}, \"dimension\": 0}, \"type\": \"Grid\", \"id\": \"8418e159-0561-40c4-b767-c5b4542f496f\"}, {\"attributes\": {\"sources\": [{\"source\": {\"type\": \"ColumnDataSource\", \"id\": \"8f38cc53-5eac-49d7-9340-675f7e802d06\"}, \"columns\": [\"x\"]}], \"tags\": [], \"doc\": null, \"id\": \"a30620d8-7621-42d5-b11d-7c29769b57d5\"}, \"type\": \"DataRange1d\", \"id\": \"a30620d8-7621-42d5-b11d-7c29769b57d5\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"8c90c027-20f4-468f-8c0c-ac3ce7d9aa59\"}, \"dimensions\": [\"width\", \"height\"], \"tags\": [], \"doc\": null, \"id\": \"d0ba746b-5bec-4175-88bd-dce21775a877\"}, \"type\": \"PanTool\", \"id\": \"d0ba746b-5bec-4175-88bd-dce21775a877\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"8c90c027-20f4-468f-8c0c-ac3ce7d9aa59\"}, \"tags\": [], \"doc\": null, \"formatter\": {\"type\": \"BasicTickFormatter\", \"id\": \"85e0e53f-8835-4f83-9082-c9ec6fdf7845\"}, \"ticker\": {\"type\": \"BasicTicker\", \"id\": \"edc7a71d-b2c1-44c2-a0b5-7da84ce7750b\"}, \"id\": \"9875f7ae-bb39-444a-9788-c49e9a26965d\"}, \"type\": \"LinearAxis\", \"id\": \"9875f7ae-bb39-444a-9788-c49e9a26965d\"}, {\"attributes\": {\"tags\": [], \"doc\": null, \"id\": \"edc7a71d-b2c1-44c2-a0b5-7da84ce7750b\", \"num_minor_ticks\": 5}, \"type\": \"BasicTicker\", \"id\": \"edc7a71d-b2c1-44c2-a0b5-7da84ce7750b\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"8c90c027-20f4-468f-8c0c-ac3ce7d9aa59\"}, \"dimensions\": [\"width\", \"height\"], \"tags\": [], \"doc\": null, \"id\": \"54c58232-2506-4403-9b46-4e0127f06159\"}, \"type\": \"WheelZoomTool\", \"id\": \"54c58232-2506-4403-9b46-4e0127f06159\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"8c90c027-20f4-468f-8c0c-ac3ce7d9aa59\"}, \"grid_line_alpha\": {\"units\": \"data\", \"value\": 0.3}, \"tags\": [], \"doc\": null, \"id\": \"b869e9f7-b958-4dd5-abcf-d1fce324e65e\", \"ticker\": {\"type\": \"BasicTicker\", \"id\": \"edc7a71d-b2c1-44c2-a0b5-7da84ce7750b\"}, \"dimension\": 1}, \"type\": \"Grid\", \"id\": \"b869e9f7-b958-4dd5-abcf-d1fce324e65e\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"8c90c027-20f4-468f-8c0c-ac3ce7d9aa59\"}, \"tags\": [], \"doc\": null, \"id\": \"0b44da6e-addc-453f-b9cc-b0819bfcd732\"}, \"type\": \"BoxZoomTool\", \"id\": \"0b44da6e-addc-453f-b9cc-b0819bfcd732\"}, {\"attributes\": {\"plot\": {\"subtype\": \"Figure\", \"type\": \"Plot\", \"id\": \"8c90c027-20f4-468f-8c0c-ac3ce7d9aa59\"}, \"tags\": [], \"doc\": null, \"id\": \"ccfe20d2-5912-4144-85e1-738b44ab819a\"}, \"type\": \"PreviewSaveTool\", \"id\": \"ccfe20d2-5912-4144-85e1-738b44ab819a\"}];\n",
        "            Bokeh.load_models(all_models);\n",
        "            var model = Bokeh.Collections(modeltype).get(modelid);\n",
        "            var view = new model.default_view({model: model, el: '#fe6ee10d-106a-40b9-9a3a-facf26541c3f'});\n",
        "            Bokeh.index[modelid] = view\n",
        "        });\n",
        "    </script>\n",
        "<div class=\"plotdiv\" id=\"fe6ee10d-106a-40b9-9a3a-facf26541c3f\"></div>\n",
        "\n"
       ],
       "metadata": {},
       "output_type": "display_data"
      }
     ],
     "prompt_number": 13
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [],
     "language": "python",
     "metadata": {},
     "outputs": [],
     "prompt_number": 13
    }
   ],
   "metadata": {}
  }
 ]
}
