{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "    \n",
       "        <style>\n",
       "            /* BEGIN /home/bird/Dev/bokeh/bokeh/bokeh/server/static/css/bokeh.min.css */\n",
       "                .bk-bs-container,.bk-bs-container-fluid{margin-left:auto;padding-left:15px;padding-right:15px;margin-right:auto}.bk-bs-btn,.bk-toolbar-button{-ms-user-select:none;user-select:none}.bk-bs-btn,.bk-bs-btn-danger.bk-bs-active,.bk-bs-btn-danger:active,.bk-bs-btn-default.bk-bs-active,.bk-bs-btn-default:active,.bk-bs-btn-info.bk-bs-active,.bk-bs-btn-info:active,.bk-bs-btn-success.bk-bs-active,.bk-bs-btn-success:active,.bk-bs-btn-warning.bk-bs-active,.bk-bs-btn-warning:active,.bk-bs-btn.bk-bs-active,.bk-bs-btn:active,.bk-bs-dropdown-menu>.bk-bs-disabled>a:focus,.bk-bs-dropdown-menu>.bk-bs-disabled>a:hover,.bk-bs-form-control,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-danger,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-default,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-info,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-success,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-warning{background-image:none}.bk-bs-btn-group-vertical>.bk-bs-btn-group:after,.bk-bs-btn-toolbar:after,.bk-bs-clearfix:after,.bk-bs-container-fluid:after,.bk-bs-container:after,.bk-bs-form-horizontal .bk-bs-form-group:after,.bk-bs-modal-footer:after,.bk-bs-nav:after,.bk-bs-panel-body:after,.bk-bs-row:after,.bk-crossfilter-row:after,.bk-ui-helper-clearfix:after{clear:both}.bk-bs-input-group-addon:first-child,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr>td:last-child,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr>th:last-child,.bk-bs-panel>.bk-bs-table-bordered>tfoot>tr>td:last-child,.bk-bs-panel>.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-bordered>thead>tr>th:last-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>td:last-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>th:last-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr>td:last-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr>th:last-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr>td:last-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr>th:last-child{border-right:0}.bk-bs-input-group-addon:last-child,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr>td:first-child,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr>th:first-child,.bk-bs-panel>.bk-bs-table-bordered>tfoot>tr>td:first-child,.bk-bs-panel>.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-bordered>thead>tr>th:first-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>td:first-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>th:first-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr>td:first-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr>th:first-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr>td:first-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr>th:first-child{border-left:0}.bk-ui-draggable-handle,.bk-ui-resizable-handle,.bk-ui-slider .bk-ui-slider-handle,.bk-ui-sortable-handle{-ms-touch-action:none;touch-action:none}.bk-tooltip.bk-left::before,.bk-tooltip.bk-right::after{height:0;width:0;top:50%;border-width:7px 0 7px 0;border-style:solid}.bk-bs-btn,.bk-toolbar-button{-webkit-user-select:none;-moz-user-select:none}@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-row{margin-left:-15px;margin-right:-15px}.bk-bs-col-lg-1,.bk-bs-col-lg-10,.bk-bs-col-lg-11,.bk-bs-col-lg-12,.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-md-1,.bk-bs-col-md-10,.bk-bs-col-md-11,.bk-bs-col-md-12,.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-sm-1,.bk-bs-col-sm-10,.bk-bs-col-sm-11,.bk-bs-col-sm-12,.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-xs-1,.bk-bs-col-xs-10,.bk-bs-col-xs-11,.bk-bs-col-xs-12,.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{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.bk-bs-col-xs-1,.bk-bs-col-xs-10,.bk-bs-col-xs-11,.bk-bs-col-xs-12,.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{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-10,.bk-bs-col-sm-11,.bk-bs-col-sm-12,.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{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-10,.bk-bs-col-md-11,.bk-bs-col-md-12,.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{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-10,.bk-bs-col-lg-11,.bk-bs-col-lg-12,.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{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>tbody>tr>td,.bk-bs-table>tbody>tr>th,.bk-bs-table>tfoot>tr>td,.bk-bs-table>tfoot>tr>th,.bk-bs-table>thead>tr>td,.bk-bs-table>thead>tr>th{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>td,.bk-bs-table>caption+thead>tr:first-child>th,.bk-bs-table>colgroup+thead>tr:first-child>td,.bk-bs-table>colgroup+thead>tr:first-child>th,.bk-bs-table>thead:first-child>tr:first-child>td,.bk-bs-table>thead:first-child>tr:first-child>th{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>tbody>tr>td,.bk-bs-table-condensed>tbody>tr>th,.bk-bs-table-condensed>tfoot>tr>td,.bk-bs-table-condensed>tfoot>tr>th,.bk-bs-table-condensed>thead>tr>td,.bk-bs-table-condensed>thead>tr>th{padding:5px}fieldset,legend{border:0;padding:0}.bk-bs-table-bordered,.bk-bs-table-bordered>tbody>tr>td,.bk-bs-table-bordered>tbody>tr>th,.bk-bs-table-bordered>tfoot>tr>td,.bk-bs-table-bordered>tfoot>tr>th,.bk-bs-table-bordered>thead>tr>td,.bk-bs-table-bordered>thead>tr>th{border:1px solid #ddd}.bk-bs-table-bordered>thead>tr>td,.bk-bs-table-bordered>thead>tr>th{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,.bk-bs-table>tbody>tr.active>td,.bk-bs-table>tbody>tr.active>th,.bk-bs-table>tbody>tr>td.active,.bk-bs-table>tbody>tr>th.active,.bk-bs-table>tfoot>tr.active>td,.bk-bs-table>tfoot>tr.active>th,.bk-bs-table>tfoot>tr>td.active,.bk-bs-table>tfoot>tr>th.active,.bk-bs-table>thead>tr.active>td,.bk-bs-table>thead>tr.active>th,.bk-bs-table>thead>tr>td.active,.bk-bs-table>thead>tr>th.active{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-hover>tbody>tr.active:hover>td,.bk-bs-table-hover>tbody>tr.active:hover>th,.bk-bs-table-hover>tbody>tr>td.active:hover,.bk-bs-table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.bk-bs-table>tbody>tr.success>td,.bk-bs-table>tbody>tr.success>th,.bk-bs-table>tbody>tr>td.success,.bk-bs-table>tbody>tr>th.success,.bk-bs-table>tfoot>tr.success>td,.bk-bs-table>tfoot>tr.success>th,.bk-bs-table>tfoot>tr>td.success,.bk-bs-table>tfoot>tr>th.success,.bk-bs-table>thead>tr.success>td,.bk-bs-table>thead>tr.success>th,.bk-bs-table>thead>tr>td.success,.bk-bs-table>thead>tr>th.success{background-color:#dff0d8}.bk-bs-table-hover>tbody>tr.success:hover>td,.bk-bs-table-hover>tbody>tr.success:hover>th,.bk-bs-table-hover>tbody>tr>td.success:hover,.bk-bs-table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.bk-bs-table>tbody>tr.info>td,.bk-bs-table>tbody>tr.info>th,.bk-bs-table>tbody>tr>td.info,.bk-bs-table>tbody>tr>th.info,.bk-bs-table>tfoot>tr.info>td,.bk-bs-table>tfoot>tr.info>th,.bk-bs-table>tfoot>tr>td.info,.bk-bs-table>tfoot>tr>th.info,.bk-bs-table>thead>tr.info>td,.bk-bs-table>thead>tr.info>th,.bk-bs-table>thead>tr>td.info,.bk-bs-table>thead>tr>th.info{background-color:#d9edf7}.bk-bs-table-hover>tbody>tr.info:hover>td,.bk-bs-table-hover>tbody>tr.info:hover>th,.bk-bs-table-hover>tbody>tr>td.info:hover,.bk-bs-table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.bk-bs-table>tbody>tr.warning>td,.bk-bs-table>tbody>tr.warning>th,.bk-bs-table>tbody>tr>td.warning,.bk-bs-table>tbody>tr>th.warning,.bk-bs-table>tfoot>tr.warning>td,.bk-bs-table>tfoot>tr.warning>th,.bk-bs-table>tfoot>tr>td.warning,.bk-bs-table>tfoot>tr>th.warning,.bk-bs-table>thead>tr.warning>td,.bk-bs-table>thead>tr.warning>th,.bk-bs-table>thead>tr>td.warning,.bk-bs-table>thead>tr>th.warning{background-color:#fcf8e3}.bk-bs-table-hover>tbody>tr.warning:hover>td,.bk-bs-table-hover>tbody>tr.warning:hover>th,.bk-bs-table-hover>tbody>tr>td.warning:hover,.bk-bs-table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.bk-bs-table>tbody>tr.danger>td,.bk-bs-table>tbody>tr.danger>th,.bk-bs-table>tbody>tr>td.danger,.bk-bs-table>tbody>tr>th.danger,.bk-bs-table>tfoot>tr.danger>td,.bk-bs-table>tfoot>tr.danger>th,.bk-bs-table>tfoot>tr>td.danger,.bk-bs-table>tfoot>tr>th.danger,.bk-bs-table>thead>tr.danger>td,.bk-bs-table>thead>tr.danger>th,.bk-bs-table>thead>tr>td.danger,.bk-bs-table>thead>tr>th.danger{background-color:#f2dede}.bk-bs-table-hover>tbody>tr.danger:hover>td,.bk-bs-table-hover>tbody>tr.danger:hover>th,.bk-bs-table-hover>tbody>tr>td.danger:hover,.bk-bs-table-hover>tbody>tr>th.danger:hover{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>tbody>tr>td,.bk-bs-table-responsive>.bk-bs-table>tbody>tr>th,.bk-bs-table-responsive>.bk-bs-table>tfoot>tr>td,.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>thead>tr>th{white-space:nowrap}.bk-bs-table-responsive>.bk-bs-table-bordered{border:0}.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>td: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>td: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>thead>tr>th:first-child{border-left:0}.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>td: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>td: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>thead>tr>th:last-child{border-right:0}.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr:last-child>td,.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>td,.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{margin:0;min-width:0}legend{display:block;width:100%;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border-bottom:1px solid #e5e5e5}.bk-bs-form-control,output{line-height:1.42857143;font-size:14px}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;-webkit-appearance:none}input[type=radio],input[type=checkbox]{margin:4px 0 0;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=radio]:focus,input[type=checkbox]:focus,input[type=file]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;color:#555}.bk-bs-form-control{display:block;width:100%;height:34px;padding:6px 12px;color:#555;background-color:#fff;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-has-success .bk-bs-checkbox,.bk-bs-has-success .bk-bs-checkbox-inline,.bk-bs-has-success .bk-bs-control-label,.bk-bs-has-success .bk-bs-form-control-feedback,.bk-bs-has-success .bk-bs-help-block,.bk-bs-has-success .bk-bs-radio,.bk-bs-has-success .bk-bs-radio-inline{color:#3c763d}.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=date]{line-height:34px}.bk-bs-form-group{margin-bottom:15px}.bk-bs-checkbox,.bk-bs-radio{display:block;min-height:20px;margin-top:10px;margin-bottom:10px;padding-left:20px}.bk-bs-checkbox label,.bk-bs-radio label{display:inline;font-weight:400;cursor:pointer}.bk-bs-checkbox input[type=checkbox],.bk-bs-checkbox-inline input[type=checkbox],.bk-bs-radio input[type=radio],.bk-bs-radio-inline input[type=radio]{float:left;margin-left:-20px}.bk-bs-checkbox+.bk-bs-checkbox,.bk-bs-radio+.bk-bs-radio{margin-top:-5px}.bk-bs-checkbox-inline,.bk-bs-radio-inline{display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:400;cursor:pointer}.bk-bs-checkbox-inline+.bk-bs-checkbox-inline,.bk-bs-radio-inline+.bk-bs-radio-inline{margin-top:0;margin-left:10px}.bk-bs-checkbox-inline[disabled],.bk-bs-checkbox[disabled],.bk-bs-radio-inline[disabled],.bk-bs-radio[disabled],fieldset[disabled] .bk-bs-checkbox,fieldset[disabled] .bk-bs-checkbox-inline,fieldset[disabled] .bk-bs-radio,fieldset[disabled] .bk-bs-radio-inline,fieldset[disabled] input[type=radio],fieldset[disabled] input[type=checkbox],input[type=radio][disabled],input[type=checkbox][disabled]{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}select[multiple].bk-bs-input-sm,textarea.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}select[multiple].bk-bs-input-lg,textarea.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-dropdown-header,.bk-bs-dropdown-menu>li>a{display:block;padding:3px 20px;line-height:1.42857143}.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-warning .bk-bs-checkbox,.bk-bs-has-warning .bk-bs-checkbox-inline,.bk-bs-has-warning .bk-bs-control-label,.bk-bs-has-warning .bk-bs-form-control-feedback,.bk-bs-has-warning .bk-bs-help-block,.bk-bs-has-warning .bk-bs-radio,.bk-bs-has-warning .bk-bs-radio-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-error .bk-bs-checkbox,.bk-bs-has-error .bk-bs-checkbox-inline,.bk-bs-has-error .bk-bs-control-label,.bk-bs-has-error .bk-bs-form-control-feedback,.bk-bs-has-error .bk-bs-help-block,.bk-bs-has-error .bk-bs-radio,.bk-bs-has-error .bk-bs-radio-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-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-control-label,.bk-bs-form-inline .bk-bs-form-group{margin-bottom:0;vertical-align:middle}.bk-bs-form-inline .bk-bs-form-group{display:inline-block}.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-checkbox,.bk-bs-form-inline .bk-bs-radio{display:inline-block;margin-top:0;margin-bottom:0;padding-left:0;vertical-align:middle}.bk-bs-form-inline .bk-bs-checkbox input[type=checkbox],.bk-bs-form-inline .bk-bs-radio input[type=radio]{float:none;margin-left:0}.bk-bs-form-inline .bk-bs-has-feedback .bk-bs-form-control-feedback{top:0}}.bk-bs-btn-group>.bk-bs-btn-group,.bk-bs-btn-toolbar .bk-bs-btn-group,.bk-bs-btn-toolbar .bk-bs-input-group,.bk-bs-dropdown-menu{float:left}.bk-bs-form-horizontal .bk-bs-checkbox,.bk-bs-form-horizontal .bk-bs-checkbox-inline,.bk-bs-form-horizontal .bk-bs-control-label,.bk-bs-form-horizontal .bk-bs-radio,.bk-bs-form-horizontal .bk-bs-radio-inline{margin-top:0;margin-bottom:0;padding-top:7px}.bk-bs-form-horizontal .bk-bs-checkbox,.bk-bs-form-horizontal .bk-bs-radio{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-dropdown-menu-right,.bk-bs-dropdown-menu.bk-bs-pull-right{left:auto;right:0}.bk-bs-btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px}.bk-bs-btn.bk-bs-active:focus,.bk-bs-btn:active:focus,.bk-bs-btn:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.bk-bs-btn:focus,.bk-bs-btn:hover{color:#333;text-decoration:none}.bk-bs-btn.bk-bs-active,.bk-bs-btn:active{outline:0;-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.bk-bs-active,.bk-bs-btn-default:active,.bk-bs-btn-default:focus,.bk-bs-btn-default:hover,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-default{color:#333;background-color:#ebebeb;border-color:#adadad}.bk-bs-btn-default.bk-bs-disabled,.bk-bs-btn-default.bk-bs-disabled.bk-bs-active,.bk-bs-btn-default.bk-bs-disabled:active,.bk-bs-btn-default.bk-bs-disabled:focus,.bk-bs-btn-default.bk-bs-disabled:hover,.bk-bs-btn-default[disabled],.bk-bs-btn-default[disabled].bk-bs-active,.bk-bs-btn-default[disabled]:active,.bk-bs-btn-default[disabled]:focus,.bk-bs-btn-default[disabled]:hover,fieldset[disabled] .bk-bs-btn-default,fieldset[disabled] .bk-bs-btn-default.bk-bs-active,fieldset[disabled] .bk-bs-btn-default:active,fieldset[disabled] .bk-bs-btn-default:focus,fieldset[disabled] .bk-bs-btn-default:hover{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.bk-bs-active,.bk-bs-btn-primary:active,.bk-bs-btn-primary:focus,.bk-bs-btn-primary:hover,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-primary{color:#fff;background-color:#3276b1;border-color:#285e8e}.bk-bs-btn-primary.bk-bs-active,.bk-bs-btn-primary: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.bk-bs-disabled.bk-bs-active,.bk-bs-btn-primary.bk-bs-disabled:active,.bk-bs-btn-primary.bk-bs-disabled:focus,.bk-bs-btn-primary.bk-bs-disabled:hover,.bk-bs-btn-primary[disabled],.bk-bs-btn-primary[disabled].bk-bs-active,.bk-bs-btn-primary[disabled]:active,.bk-bs-btn-primary[disabled]:focus,.bk-bs-btn-primary[disabled]:hover,fieldset[disabled] .bk-bs-btn-primary,fieldset[disabled] .bk-bs-btn-primary.bk-bs-active,fieldset[disabled] .bk-bs-btn-primary:active,fieldset[disabled] .bk-bs-btn-primary:focus,fieldset[disabled] .bk-bs-btn-primary:hover{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.bk-bs-active,.bk-bs-btn-success:active,.bk-bs-btn-success:focus,.bk-bs-btn-success:hover,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-success{color:#fff;background-color:#47a447;border-color:#398439}.bk-bs-btn-success.bk-bs-disabled,.bk-bs-btn-success.bk-bs-disabled.bk-bs-active,.bk-bs-btn-success.bk-bs-disabled:active,.bk-bs-btn-success.bk-bs-disabled:focus,.bk-bs-btn-success.bk-bs-disabled:hover,.bk-bs-btn-success[disabled],.bk-bs-btn-success[disabled].bk-bs-active,.bk-bs-btn-success[disabled]:active,.bk-bs-btn-success[disabled]:focus,.bk-bs-btn-success[disabled]:hover,fieldset[disabled] .bk-bs-btn-success,fieldset[disabled] .bk-bs-btn-success.bk-bs-active,fieldset[disabled] .bk-bs-btn-success:active,fieldset[disabled] .bk-bs-btn-success:focus,fieldset[disabled] .bk-bs-btn-success:hover{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.bk-bs-active,.bk-bs-btn-info:active,.bk-bs-btn-info:focus,.bk-bs-btn-info:hover,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-info{color:#fff;background-color:#39b3d7;border-color:#269abc}.bk-bs-btn-info.bk-bs-disabled,.bk-bs-btn-info.bk-bs-disabled.bk-bs-active,.bk-bs-btn-info.bk-bs-disabled:active,.bk-bs-btn-info.bk-bs-disabled:focus,.bk-bs-btn-info.bk-bs-disabled:hover,.bk-bs-btn-info[disabled],.bk-bs-btn-info[disabled].bk-bs-active,.bk-bs-btn-info[disabled]:active,.bk-bs-btn-info[disabled]:focus,.bk-bs-btn-info[disabled]:hover,fieldset[disabled] .bk-bs-btn-info,fieldset[disabled] .bk-bs-btn-info.bk-bs-active,fieldset[disabled] .bk-bs-btn-info:active,fieldset[disabled] .bk-bs-btn-info:focus,fieldset[disabled] .bk-bs-btn-info:hover{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.bk-bs-active,.bk-bs-btn-warning:active,.bk-bs-btn-warning:focus,.bk-bs-btn-warning:hover,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-warning{color:#fff;background-color:#ed9c28;border-color:#d58512}.bk-bs-btn-warning.bk-bs-disabled,.bk-bs-btn-warning.bk-bs-disabled.bk-bs-active,.bk-bs-btn-warning.bk-bs-disabled:active,.bk-bs-btn-warning.bk-bs-disabled:focus,.bk-bs-btn-warning.bk-bs-disabled:hover,.bk-bs-btn-warning[disabled],.bk-bs-btn-warning[disabled].bk-bs-active,.bk-bs-btn-warning[disabled]:active,.bk-bs-btn-warning[disabled]:focus,.bk-bs-btn-warning[disabled]:hover,fieldset[disabled] .bk-bs-btn-warning,fieldset[disabled] .bk-bs-btn-warning.bk-bs-active,fieldset[disabled] .bk-bs-btn-warning:active,fieldset[disabled] .bk-bs-btn-warning:focus,fieldset[disabled] .bk-bs-btn-warning:hover{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.bk-bs-active,.bk-bs-btn-danger:active,.bk-bs-btn-danger:focus,.bk-bs-btn-danger:hover,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-danger{color:#fff;background-color:#d2322d;border-color:#ac2925}.bk-bs-btn-danger.bk-bs-disabled,.bk-bs-btn-danger.bk-bs-disabled.bk-bs-active,.bk-bs-btn-danger.bk-bs-disabled:active,.bk-bs-btn-danger.bk-bs-disabled:focus,.bk-bs-btn-danger.bk-bs-disabled:hover,.bk-bs-btn-danger[disabled],.bk-bs-btn-danger[disabled].bk-bs-active,.bk-bs-btn-danger[disabled]:active,.bk-bs-btn-danger[disabled]:focus,.bk-bs-btn-danger[disabled]:hover,fieldset[disabled] .bk-bs-btn-danger,fieldset[disabled] .bk-bs-btn-danger.bk-bs-active,fieldset[disabled] .bk-bs-btn-danger:active,fieldset[disabled] .bk-bs-btn-danger:focus,fieldset[disabled] .bk-bs-btn-danger:hover{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:active,.bk-bs-btn-link:focus,.bk-bs-btn-link:hover{border-color:transparent}.bk-bs-btn-link:focus,.bk-bs-btn-link:hover{color:#2a6496;text-decoration:underline;background-color:transparent}.bk-bs-btn-link[disabled]:focus,.bk-bs-btn-link[disabled]:hover,fieldset[disabled] .bk-bs-btn-link:focus,fieldset[disabled] .bk-bs-btn-link:hover{color:#999;text-decoration:none}.bk-bs-btn-group-lg>.bk-bs-btn,.bk-bs-btn-lg{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.bk-bs-btn-group-sm>.bk-bs-btn,.bk-bs-btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.bk-bs-btn-group-xs>.bk-bs-btn,.bk-bs-btn-xs{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{margin-left:2px}.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;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-btn-group-vertical>.bk-bs-btn:not(:first-child):not(:last-child),.bk-bs-btn-group>.bk-bs-btn-group:not(:first-child):not(:last-child)>.bk-bs-btn,.bk-bs-btn-group>.bk-bs-btn:not(:first-child):not(:last-child):not(.bk-bs-dropdown-toggle){border-radius:0}.bk-bs-dropdown-menu .bk-bs-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.bk-bs-dropdown-menu>li>a{clear:both;font-weight:400;color:#333;white-space:nowrap}.bk-bs-dropdown-menu>li>a:focus,.bk-bs-dropdown-menu>li>a:hover{text-decoration:none;color:#262626;background-color:#f5f5f5}.bk-bs-dropdown-menu>.bk-bs-active>a,.bk-bs-dropdown-menu>.bk-bs-active>a:focus,.bk-bs-dropdown-menu>.bk-bs-active>a:hover{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:focus,.bk-bs-dropdown-menu>.bk-bs-disabled>a:hover{color:#999}.bk-bs-dropdown-menu>.bk-bs-disabled>a:focus,.bk-bs-dropdown-menu>.bk-bs-disabled>a:hover{text-decoration:none;background-color:transparent;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-left{left:0;right:auto}.bk-bs-dropdown-header{font-size:12px;color:#999}.bk-bs-dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990}.bk-bs-btn-group-vertical>.bk-bs-btn.bk-bs-active,.bk-bs-btn-group-vertical>.bk-bs-btn:active,.bk-bs-btn-group-vertical>.bk-bs-btn:focus,.bk-bs-btn-group-vertical>.bk-bs-btn:hover,.bk-bs-btn-group>.bk-bs-btn.bk-bs-active,.bk-bs-btn-group>.bk-bs-btn:active,.bk-bs-btn-group>.bk-bs-btn:focus,.bk-bs-btn-group>.bk-bs-btn:hover,.bk-bs-input-group-btn>.bk-bs-btn:active,.bk-bs-input-group-btn>.bk-bs-btn:focus,.bk-bs-input-group-btn>.bk-bs-btn:hover{z-index:2}.bk-bs-nav-justified>.bk-bs-dropdown .bk-bs-dropdown-menu,.bk-bs-nav-tabs.bk-bs-nav-justified>.bk-bs-dropdown .bk-bs-dropdown-menu{left:auto;top:auto}.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}.bk-bs-btn-group,.bk-bs-btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.bk-bs-btn-group-vertical>.bk-bs-btn,.bk-bs-btn-group>.bk-bs-btn{position:relative;float:left}.bk-bs-btn-group-vertical>.bk-bs-btn:focus,.bk-bs-btn-group>.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,.bk-bs-btn-toolbar>.bk-bs-btn-group,.bk-bs-btn-toolbar>.bk-bs-input-group{margin-left:5px}.bk-bs-btn .bk-bs-caret,.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: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-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-input-group-btn:last-child>.bk-bs-btn,.bk-bs-input-group-btn:last-child>.bk-bs-btn-group,.bk-bs-input-group-btn>.bk-bs-btn+.bk-bs-btn{margin-left:-1px}.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}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,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{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}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,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{height:auto}.bk-bs-input-group .bk-bs-form-control,.bk-bs-input-group-addon,.bk-bs-input-group-btn{display:table-cell}.bk-bs-input-group .bk-bs-form-control:not(:first-child):not(:last-child),.bk-bs-input-group-addon:not(:first-child):not(:last-child),.bk-bs-input-group-btn: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-close,.bk-bs-label{line-height:1;font-weight:700}.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-group:not(:last-child)>.bk-bs-btn,.bk-bs-input-group-btn:last-child>.bk-bs-btn:not(:last-child):not(.bk-bs-dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.bk-bs-input-group .bk-bs-form-control:last-child,.bk-bs-input-group-addon:last-child,.bk-bs-input-group-btn:first-child>.bk-bs-btn-group:not(:first-child)>.bk-bs-btn,.bk-bs-input-group-btn:first-child>.bk-bs-btn:not(:first-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{border-bottom-left-radius:0;border-top-left-radius: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:first-child>.bk-bs-btn,.bk-bs-input-group-btn:first-child>.bk-bs-btn-group{margin-right:-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:focus,.bk-bs-nav>li>a:hover{text-decoration:none;background-color:#eee}.bk-bs-nav>li.bk-bs-disabled>a{color:#999}.bk-bs-nav>li.bk-bs-disabled>a:focus,.bk-bs-nav>li.bk-bs-disabled>a:hover{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:focus,.bk-bs-nav .bk-bs-open>a:hover{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-justified>.bk-bs-active>a,.bk-bs-nav-tabs-justified>.bk-bs-active>a:focus,.bk-bs-nav-tabs-justified>.bk-bs-active>a:hover,.bk-bs-nav-tabs.bk-bs-nav-justified>.bk-bs-active>a,.bk-bs-nav-tabs.bk-bs-nav-justified>.bk-bs-active>a:focus,.bk-bs-nav-tabs.bk-bs-nav-justified>.bk-bs-active>a:hover{border:1px solid #ddd}.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:focus,.bk-bs-nav-tabs>li.bk-bs-active>a:hover{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;margin-right:0;border-radius:4px}@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-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;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:focus,.bk-bs-nav-tabs.bk-bs-nav-justified>.bk-bs-active>a:hover{border-bottom-color:#fff}}.bk-bs-nav-pills>li{float:left}.bk-bs-nav-justified>li,.bk-bs-nav-stacked>li{float:none}.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:focus,.bk-bs-nav-pills>li.bk-bs-active>a:hover{color:#fff;background-color:#428bca}.bk-bs-nav-stacked>li+li{margin-top:2px;margin-left:0}.bk-bs-nav-justified{width:100%}.bk-bs-nav-justified>li>a{text-align:center;margin-bottom:5px}.bk-bs-nav-tabs-justified{border-bottom:0}.bk-bs-nav-tabs-justified>li>a{margin-right:0;border-radius:4px}@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>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:focus,.bk-bs-nav-tabs-justified>.bk-bs-active>a:hover{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%;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.bk-bs-label:empty,.bk-bs-modal{display:none}.bk-bs-label[href]:focus,.bk-bs-label[href]:hover{color:#fff;text-decoration:none;cursor:pointer}.bk-bs-panel-heading>.bk-bs-dropdown .bk-bs-dropdown-toggle,.bk-bs-panel-title>a{color:inherit}.bk-bs-btn .bk-bs-label{position:relative;top:-1px}.bk-bs-label-default{background-color:#999}.bk-bs-label-default[href]:focus,.bk-bs-label-default[href]:hover{background-color:grey}.bk-bs-label-primary{background-color:#428bca}.bk-bs-label-primary[href]:focus,.bk-bs-label-primary[href]:hover{background-color:#3071a9}.bk-bs-label-success{background-color:#5cb85c}.bk-bs-label-success[href]:focus,.bk-bs-label-success[href]:hover{background-color:#449d44}.bk-bs-label-info{background-color:#5bc0de}.bk-bs-label-info[href]:focus,.bk-bs-label-info[href]:hover{background-color:#31b0d5}.bk-bs-label-warning{background-color:#f0ad4e}.bk-bs-label-warning[href]:focus,.bk-bs-label-warning[href]:hover{background-color:#ec971f}.bk-bs-label-danger{background-color:#d9534f}.bk-bs-label-danger[href]:focus,.bk-bs-label-danger[href]:hover{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-title,.bk-bs-panel>.bk-bs-list-group,.bk-bs-panel>.bk-bs-table,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table{margin-bottom:0}.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-group .bk-bs-panel-heading,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr:first-child>td,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr:first-child>th,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr:last-child>td,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr:last-child>th,.bk-bs-panel>.bk-bs-table-bordered>tfoot>tr:last-child>td,.bk-bs-panel>.bk-bs-table-bordered>tfoot>tr:last-child>th,.bk-bs-panel>.bk-bs-table-bordered>thead>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>tbody>tr:first-child>td,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr:first-child>th,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr:last-child>td,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr:last-child>th,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr:last-child>td,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr:last-child>th,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr:first-child>td,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr:first-child>th{border-bottom:0}.bk-bs-panel-title{margin-top:0;font-size:16px;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 .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-responsive:first-child>.bk-bs-table:first-child,.bk-bs-panel>.bk-bs-table:first-child{border-top-right-radius:3px;border-top-left-radius:3px}.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-responsive:first-child>.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>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 th: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:first-child>tbody:first-child>tr:first-child th:first-child,.bk-bs-panel>.bk-bs-table:first-child>thead: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{border-top-left-radius:3px}.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-responsive:first-child>.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>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 th: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:first-child>tbody:first-child>tr:first-child th:last-child,.bk-bs-panel>.bk-bs-table:first-child>thead: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{border-top-right-radius:3px}.bk-bs-panel>.bk-bs-table-responsive:last-child>.bk-bs-table:last-child,.bk-bs-panel>.bk-bs-table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.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-responsive:last-child>.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>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 th:first-child,.bk-bs-panel>.bk-bs-table:last-child>tbody: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:last-child>tfoot:last-child>tr:last-child td:first-child,.bk-bs-panel>.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-responsive:last-child>.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 th: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-responsive:last-child>.bk-bs-table:last-child>tfoot:last-child>tr:last-child th:last-child,.bk-bs-panel>.bk-bs-table:last-child>tbody: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:last-child>tfoot:last-child>tr:last-child td:last-child,.bk-bs-panel>.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 td,.bk-bs-panel>.bk-bs-table>tbody:first-child>tr:first-child th{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-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+.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;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.bk-bs-close:focus,.bk-bs-close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.bk-bs-close{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance:none}.bk-bs-modal-open{overflow:hidden}.bk-bs-modal{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.43px}.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-btn-group-vertical>.bk-bs-btn-group:after,.bk-bs-btn-group-vertical>.bk-bs-btn-group:before,.bk-bs-btn-toolbar:after,.bk-bs-btn-toolbar:before,.bk-bs-clearfix:after,.bk-bs-clearfix:before,.bk-bs-container-fluid:after,.bk-bs-container-fluid:before,.bk-bs-container:after,.bk-bs-container:before,.bk-bs-form-horizontal .bk-bs-form-group:after,.bk-bs-form-horizontal .bk-bs-form-group:before,.bk-bs-modal-footer:after,.bk-bs-modal-footer:before,.bk-bs-nav:after,.bk-bs-nav:before,.bk-bs-panel-body:after,.bk-bs-panel-body:before,.bk-bs-row:after,.bk-bs-row:before,.bk-crossfilter-row:after,.bk-crossfilter-row:before{content:\" \";display:table}.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-fa,.bk-fa-stack{display:inline-block}.bk-bs-affix{position:fixed}@font-face{font-family:FontAwesome;src:url(data:font/eot;base64,[encoded data, 74676 characters])format('embedded-opentype'),url(data:application/x-font-woff;base64,[encoded data, 87272 characters])format('woff'),url(data:font/ttf;base64,[encoded data, 149548 characters])format('truetype');font-weight:400;font-style:normal}.bk-fa{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-stack,.bk-ui-button,.bk-ui-spinner,.bk-ui-spinner-input{vertical-align:middle}.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(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}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-flip-horizontal,:root .bk-fa-flip-vertical,:root .bk-fa-rotate-180,:root .bk-fa-rotate-270,:root .bk-fa-rotate-90{filter:none}.bk-fa-stack{position:relative;width:2em;height:2em;line-height:2em}.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-close:before,.bk-fa-remove: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-cog:before,.bk-fa-gear: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-repeat:before,.bk-fa-rotate-right: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-image:before,.bk-fa-photo: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-exclamation-triangle:before,.bk-fa-warning: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-cogs:before,.bk-fa-gears: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-floppy-o:before,.bk-fa-save:before{content:\"\\f0c7\"}.bk-fa-square:before{content:\"\\f0c8\"}.bk-fa-bars:before,.bk-fa-navicon:before,.bk-fa-reorder: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-sort:before,.bk-fa-unsorted:before{content:\"\\f0dc\"}.bk-fa-sort-desc:before,.bk-fa-sort-down:before{content:\"\\f0dd\"}.bk-fa-sort-asc:before,.bk-fa-sort-up: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-gavel:before,.bk-fa-legal: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-bolt:before,.bk-fa-flash:before{content:\"\\f0e7\"}.bk-fa-sitemap:before{content:\"\\f0e8\"}.bk-fa-umbrella:before{content:\"\\f0e9\"}.bk-fa-clipboard:before,.bk-fa-paste: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-chain-broken:before,.bk-fa-unlink: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-caret-square-o-down:before,.bk-fa-toggle-down:before{content:\"\\f150\"}.bk-fa-caret-square-o-up:before,.bk-fa-toggle-up:before{content:\"\\f151\"}.bk-fa-caret-square-o-right:before,.bk-fa-toggle-right:before{content:\"\\f152\"}.bk-fa-eur:before,.bk-fa-euro:before{content:\"\\f153\"}.bk-fa-gbp:before{content:\"\\f154\"}.bk-fa-dollar:before,.bk-fa-usd:before{content:\"\\f155\"}.bk-fa-inr:before,.bk-fa-rupee:before{content:\"\\f156\"}.bk-fa-cny:before,.bk-fa-jpy:before,.bk-fa-rmb:before,.bk-fa-yen:before{content:\"\\f157\"}.bk-fa-rouble:before,.bk-fa-rub:before,.bk-fa-ruble:before{content:\"\\f158\"}.bk-fa-krw:before,.bk-fa-won: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-caret-square-o-left:before,.bk-fa-toggle-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-try:before,.bk-fa-turkish-lira: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-bank:before,.bk-fa-institution:before,.bk-fa-university:before{content:\"\\f19c\"}.bk-fa-graduation-cap:before,.bk-fa-mortar-board: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-image-o:before,.bk-fa-file-photo-o:before,.bk-fa-file-picture-o:before{content:\"\\f1c5\"}.bk-fa-file-archive-o:before,.bk-fa-file-zip-o:before{content:\"\\f1c6\"}.bk-fa-file-audio-o:before,.bk-fa-file-sound-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-ring:before,.bk-fa-life-saver:before,.bk-fa-support:before{content:\"\\f1cd\"}.bk-fa-circle-o-notch:before{content:\"\\f1ce\"}.bk-fa-ra:before,.bk-fa-rebel:before{content:\"\\f1d0\"}.bk-fa-empire:before,.bk-fa-ge: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-paper-plane:before,.bk-fa-send:before{content:\"\\f1d8\"}.bk-fa-paper-plane-o:before,.bk-fa-send-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-futbol-o:before,.bk-fa-soccer-ball-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-ils:before,.bk-fa-shekel:before,.bk-fa-sheqel: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:after,.bk-ui-helper-clearfix:before{content:\"\";display:table;border-collapse:collapse}.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 0;padding:.5em .5em .5em .7em;min-height:0;font-size:100%}.bk-ui-accordion .bk-ui-accordion-icons,.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;text-align:center;overflow:visible}.bk-ui-button,.bk-ui-button:active,.bk-ui-button:hover,.bk-ui-button:link,.bk-ui-button:visited{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-icons-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{position:absolute;top:50%;margin-top:-8px}.bk-ui-button-icon-only .bk-ui-icon{left:50%;margin-left:-8px}.bk-ui-button-icons-only .bk-ui-button-icon-primary,.bk-ui-button-text-icon-primary .bk-ui-button-icon-primary,.bk-ui-button-text-icons .bk-ui-button-icon-primary{left:.5em}.bk-ui-button-icons-only .bk-ui-button-icon-secondary,.bk-ui-button-text-icon-secondary .bk-ui-button-icon-secondary,.bk-ui-button-text-icons .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}button.bk-ui-button::-moz-focus-inner,input.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-next,.bk-ui-datepicker .bk-ui-datepicker-prev{position:absolute;top:2px;width:1.8em;height:1.8em}.bk-ui-datepicker .bk-ui-datepicker-next-hover,.bk-ui-datepicker .bk-ui-datepicker-prev-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-next span,.bk-ui-datepicker .bk-ui-datepicker-prev 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 a,.bk-ui-datepicker td span{display:block;padding:.2em;text-align:right;text-decoration:none}.bk-ui-datepicker .bk-ui-datepicker-buttonpane{background-image:none;margin:.7em 0 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 .6em;width:auto;overflow:visible}.bk-ui-datepicker .bk-ui-datepicker-buttonpane button.bk-ui-datepicker-current,.bk-ui-datepicker-multi .bk-ui-datepicker-group,.bk-ui-datepicker-rtl .bk-ui-datepicker-buttonpane button{float:left}.bk-ui-datepicker.bk-ui-datepicker-multi{width:auto}.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.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 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",
       "                 *//*!\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 0}.bk-ui-menu .bk-ui-state-active,.bk-ui-menu .bk-ui-state-focus{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}.bk-ui-resizable-autohide .bk-ui-resizable-handle,.bk-ui-resizable-disabled .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-slider-vertical .bk-ui-slider-range-min,.bk-ui-spinner-down{bottom:0}.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 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",
       "                 *//*!\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}.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-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}.bk-ui-spinner-input{border:none;background:0 0;color:inherit;padding:0;margin:.2em 0;margin-left:.4em;margin-right:22px}.bk-ui-widget-content a,.bk-ui-widget-header,.bk-ui-widget-header a{color:#222}.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:none;border-bottom:none;border-right:none}.bk-ui-spinner .bk-ui-icon{position:absolute;margin-top:-8px;top:50%;left:0}.bk-ui-spinner-up{top: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-state-disabled .bk-ui-tabs-anchor,.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-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 button,.bk-ui-widget input,.bk-ui-widget select,.bk-ui-widget textarea{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-header{border:1px solid #aaa;background:#ccc;url(images/ui-bg_highlight-soft_75_cccccc_1x100.png):50%;:50%;:repeat-x;font-weight:700}.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-focus,.bk-ui-state-hover,.bk-ui-widget-content .bk-ui-state-focus,.bk-ui-widget-content .bk-ui-state-hover,.bk-ui-widget-header .bk-ui-state-focus,.bk-ui-widget-header .bk-ui-state-hover{border:1px solid #999;background:#dadada;url(images/ui-bg_glass_75_dadada_1x400.png):50%;:50%;:repeat-x;font-weight:400;color:#212121}.bk-ui-state-focus a,.bk-ui-state-focus a:hover,.bk-ui-state-focus a:link,.bk-ui-state-focus a:visited,.bk-ui-state-hover a,.bk-ui-state-hover a:hover,.bk-ui-state-hover a:link,.bk-ui-state-hover 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-state-error-text,.bk-ui-widget-content .bk-ui-state-error a,.bk-ui-widget-content .bk-ui-state-error-text,.bk-ui-widget-header .bk-ui-state-error a,.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-widget-overlay,.bk-ui-widget-shadow{background:#aaa;filter:Alpha(Opacity=30);opacity:.3}.bk-ui-state-disabled .bk-ui-icon{filter:Alpha(Opacity=35)}.bk-ui-icon{width:16px;height:16px}.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-first,.bk-ui-icon-seek-start{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-left,.bk-ui-corner-tl,.bk-ui-corner-top{border-top-left-radius:4px}.bk-ui-corner-all,.bk-ui-corner-right,.bk-ui-corner-top,.bk-ui-corner-tr{border-top-right-radius:4px}.bk-ui-corner-all,.bk-ui-corner-bl,.bk-ui-corner-bottom,.bk-ui-corner-left{border-bottom-left-radius:4px}.bk-ui-corner-all,.bk-ui-corner-bottom,.bk-ui-corner-br,.bk-ui-corner-right{border-bottom-right-radius:4px}.bk-ui-widget-overlay{url(images/ui-bg_flat_0_aaaaaa_40x100.png):50%;:50%;:repeat-x}.bk-ui-widget-shadow{margin:-8px;:0 0 -8px;padding:8px;url(images/ui-bg_flat_0_aaaaaa_40x100.png):50%;:50%;:repeat-x;border-radius:8px}.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{width:8px;height:5px;margin-left:4px;margin-top:6px}.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%}.grid-canvas{position:relative;outline:0}.bk-slick-row.bk-ui-state-active,.bk-slick-row.bk-ui-widget-content{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-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-header-column,.bk-slick-header-columns{background:url(images/header-columns-bg.gif)repeat-x center bottom}.bk-slick-selection{z-index:10;position:absolute;border:2px dashed #000}.bk-slick-header-columns{border-bottom:1px solid silver}.bk-slick-header-column{border-right:1px solid silver}.bk-slick-header-column-active,.bk-slick-header-column:hover{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{position:absolute;background:#fff;border:0;line-height:20px}.bk-slick-row.selected{z-index:10;background:#DFE8F6}.bk-slick-group{border-bottom:2px solid silver}.bk-slick-group-toggle{display:inline-block;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:dashed}.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-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-bs-caret,.bk-button-bar,.bk-slick-header-menucontent,.bk-slick-header-menuicon,.bk-slick-pager,.bk-slick-pager .bk-slick-pager-settings *,.bk-toolbar-button{vertical-align:middle}.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;cursor:pointer;display:none;border-left:thin ridge silver}.bk-slick-header-column-active .bk-slick-header-menubutton,.bk-slick-header-column:hover>.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;margin-right:4px;background-repeat:no-repeat;background-position:center center}.bk-slick-header-menucontent{display:inline-block}.bk-slick-header-menuitem-disabled{color:silver}.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}.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-ui-rangeSlider-arrow-inner,.bk-ui-rangeSlider-label-inner{display:none}.bk-slick-pager .bk-slick-pager-settings a{padding:2px;text-decoration:underline;cursor:pointer}.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-position:center left;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-position:center right;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-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-position:bottom center;background-repeat:no-repeat;white-space:nowrap;bottom:20px;padding:3px 6px 7px;cursor:col-resize;background-image:url(data:image/png;base64,[encoded data, 12460 characters])}input.bk-ui-editRangeSlider-inputValue{width:3em;vertical-align:middle;text-align:center}.bk-ui-dialog-titlebar{height:16px}.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-column,.bk-slick-header-columns{background-image:url(data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=)}.bk-slick-header-column-active,.bk-slick-header-column:hover{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-focus,.bk-ui-state-hover,.bk-ui-widget-content .bk-ui-state-focus,.bk-ui-widget-content .bk-ui-state-hover,.bk-ui-widget-header .bk-ui-state-focus,.bk-ui-widget-header .bk-ui-state-hover{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-active .bk-ui-icon,.bk-ui-state-focus .bk-ui-icon,.bk-ui-state-hover .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,#notebook .bk-plot-wrapper table tr{border:none!important}#notebook .bk-plot-wrapper table tr td{border:none!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 form table tr td,.bk-table table tr td{padding:2px}.bk-table form table tr td input{padding:0}.bk-box:after,.bk-canvas-wrapper:after,.bk-plot:after,.bk-sidebar:after,.jsp:after{content:\" \";height:0;display:block;clear:both}.bk-canvas-wrapper .bk-resize-popup{position:absolute;left:0;top:0;width:40px;height:40px;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{position:relative;display:block;background-repeat:no-repeat}.bk-logo.grey{filter:url(\"data:image/svg+xml;utf8,<svg xmlns=\\'http://www.w3.org/2000/svg\\'><filter id=\\'grayscale\\'><feColorMatrix type=\\'matrix\\' values=\\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\\'/></filter></svg>#grayscale\");filter:gray;-webkit-filter:grayscale(100%)}.bk-logo-notebook{margin-right:10px}.bk-logo-small{width:20px;height:20px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAOkSURBVDiNjZRtaJVlGMd/1/08zzln5zjP1LWcU9N0NkN8m2CYjpgQYQXqSs0I84OLIC0hkEKoPtiH3gmKoiJDU7QpLgoLjLIQCpEsNJ1vqUOdO7ppbuec5+V+rj4ctwzd8IIbbi6u+8f1539dt3A78eXC7QizUF7gyV1fD1Yqg4JWz84yffhm0qkFqBogB9rM8tZdtwVsPUhWhGcFJngGeWrPzHm5oaMmkfEg1usvLFyc8jLRqDOMru7AyC8saQr7GG7f5fvDeH7Ej8CM66nIF+8yngt6HWaKh7k49Soy9nXurCi1o3qUbS3zWfrYeQDTB/Qj6kX6Ybhw4B+bOYoLKCC9H3Nu/leUTZ1JdRWkkn2ldcCamzrcf47KKXdAJllSlxAOkRgyHsGC/zRday5Qld9DyoM4/q/rUoy/CXh3jzOu3bHUVZeU+DEn8FInkPBFlu3+nW3Nw0mk6vCDiWg8CeJaxEwuHS3+z5RgY+YBR6V1Z1nxSOfoaPa4LASWxxdNp+VWTk7+4vzaou8v8PN+xo+KY2xsw6une2frhw05CTYOmQvsEhjhWjn0bmXPjpE1+kplmmkP3suftwTubK9Vq22qKmrBhpY4jvd5afdRA3wGjFAgcnTK2s4hY0/GPNIb0nErGMCRxWOOX64Z8RAC4oCXdklmEvcL8o0BfkNK4lUg9HTl+oPlQxdNo3Mg4Nv175e/1LDGzZen30MEjRUtmXSfiTVu1kK8W4txyV6BMKlbgk3lMwYCiusNy9fVfvvwMxv8Ynl6vxoByANLTWplvuj/nF9m2+PDtt1eiHPBr1oIfhCChQMBw6Aw0UulqTKZdfVvfG7VcfIqLG9bcldL/+pdWTLxLUy8Qq38heUIjh4XlzZxzQm19lLFlr8vdQ97rjZVOLf8nclzckbcD4wxXMidpX30sFd37Fv/GtwwhzhxGVAprjbg0gCAEeIgwCZyTV2Z1REEW8O4py0wsjeloKoMr6iCY6dP92H6Vw/oTyICIthibxjm/DfN9lVz8IqtqKYLUXfoKVMVQVVJOElGjrnnUt9T9wbgp8AyYKaGlqingHZU/uG2NTZSVqwHQTWkx9hxjkpWDaCg6Ckj5qebgBVbT3V3NNXMSiWSDdGV3hrtzla7J+duwPOToIg42ChPQOQjspnSlp1V+Gjdged7+8UN5CRAV7a5EdFNwCjEaBR27b3W890TE7g24NAP/mMDXRWrGoFPQI9ls/MWO2dWFAar/xcOIImbbpA3zgAAAABJRU5ErkJggg==)}.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:13px;height:13px;margin:5px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAGdSURBVCiRXZJPSxtRFMV/dyYTunBREASRIkKwddPSjYIL+x2K9plR+owR7K7L7vsZutIkZqhO8jZ+h25aQilUkbaUgv2zEOpGpAsZnbld+BJC7ubAvYd77uEeYaTaB25bhJqi44Kcq9LYWDOt/lxVkQG542ZFaQP3gB6wBLwDFoGfKtQ2qua7qhIAJB1XEeUE9CtSPLCxWQbObGxWEL0P+k2Uk3barQBImrrgWvmE8NnGpgaQpO4OcArM2Nhc+d4e8DCUcL6UwZYIk0WYzw9Zy4CnHm+9hNcvJI/+3GhuJUndR+A3yCpoCGQ2NkWfnKQuAMqo5Ih2gakScBeYBj32vE3gw5DqAtBCFGAcuCwBF8CRIFX1SiNf6AGPQXLwSgq7Aq+zMGPLrPdNB16h50+92uvul4MiWlJ4FZShAZxFebQztL0MHHoEICiiBvCrRJiI31wBvii8zQt9WV9f/Zek7sjG5lFzvzsWBvJGYA2Ye1599mOQiKTjZlVpCcwA74En/UQonIqwaX0ihJFKUlcH6sAE8Bdo2tg0B/9S5T8JNaZ11wlT0wAAAABJRU5ErkJggg==)}.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.bk-bs-dropdown:after,.bk-button-bar-list>li:last-child:after{content:\"|\";font-size:90%;color:#d3d3d3;display:inline-block;float:left;height:28px;line-height:28px;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:28px;line-height:28px;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:28px;padding:5px;border:none;border-radius:0!important;-moz-border-radius:0!important;-webkit-border-radius:0!important;background:0 0!important}.bk-button-bar-list .bk-toolbar-button .bk-btn-icon{height:16px;margin:0!important;border:none!important;background:0 0!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-bs-caret,.bk-button-bar-list li:hover .bk-toolbar-button span.tip:before,.bk-crossfilter-container,.bk-crossfilter-plot,.bk-facet-label{display:inline-block}.bk-button-bar-list li::hover .bk-toolbar-button{cursor:pointer;background:0 0!important}.bk-button-bar-list 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}.bk-button-bar-list li:hover .bk-toolbar-button span.tip>*{display:block;text-align:left}.bk-button-bar-list li:hover .bk-toolbar-button span.tip span{width:200px;white-space:normal}.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-button-bar>.bk-toolbar-button.active{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:30px}.bk-plot-above.bk-toolbar-active .bk-logo,.bk-plot-below.bk-toolbar-active .bk-logo{float:left;top:5px;margin:5px 0}.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-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button{float:left}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown{margin-right:20px}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:before,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:before{right:-6px}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:after,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:after{right:-12px;position:absolute}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-button-bar-list .bk-bs-dropdown-menu:after,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list .bk-bs-dropdown-menu:after{content:\"\"}.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{right:0;text-align:left;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 10px}.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-toolbar-active,.bk-plot-right.bk-toolbar-active{display:block;margin:45px 0 0 0}.bk-plot-left.bk-toolbar-active .bk-logo,.bk-plot-right.bk-toolbar-active .bk-logo{left:6px;margin-bottom:20px}.bk-plot-left.bk-toolbar-active .bk-button-bar,.bk-plot-right.bk-toolbar-active .bk-button-bar{position:relative;left:3px}.bk-plot-left.bk-toolbar-active .bk-button-bar:after,.bk-plot-left.bk-toolbar-active .bk-button-bar:before,.bk-plot-right.bk-toolbar-active .bk-button-bar:after,.bk-plot-right.bk-toolbar-active .bk-button-bar:before{content:\" \";display:block;height:0;clear:both}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list:after,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list:after{content:\" \";height:0;display:block;clear:both}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:after,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:after{content:\" \\2014\";float:none;clear:both;display:block;width:30px;height:8px;line-height:8px;padding:3px 0;text-align:center}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li{clear:both}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li:last-child:after,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li:last-child:after{content:\" \\2014\";float:none;clear:both;display:block;width:30px;height:8px;line-height:8px;padding:3px 0;text-align:center}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li .bk-toolbar-button.active,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li .bk-toolbar-button.active{border-bottom:none;border-right:2px solid #26aae1}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li .bk-toolbar-button.help span.tip:before,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li .bk-toolbar-button.help span.tip:before{left:-57%}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li .bk-toolbar-button span.tip,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li .bk-toolbar-button span.tip{position:absolute;top:4px;left:40px;padding:5px 10px 5px 10px}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li .bk-toolbar-button span.tip:before,.bk-plot-right.bk-toolbar-active .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-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-bs-caret{color:#d3d3d3;width:0;height:0;position:relative;left:11px;top:3px;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.bk-cell-index,.bk-cell-select,.bk-cell-special-defaults{background:#f5f5f5;border-right-color:silver;border-right-style:solid}.bk-crossfilter-row{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;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%;border-top:none;margin-bottom:0;text-align:left}.bk-table>tbody>tr>td,.bk-table>tbody>tr>th,.bk-table>tfoot>tr>td,.bk-table>tfoot>tr>th,.bk-table>thead>tr>td,.bk-table>thead>tr>th{line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd;padding:5px}.bk-table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.bk-table>caption+thead>tr:first-child>td,.bk-table>caption+thead>tr:first-child>th,.bk-table>colgroup+thead>tr:first-child>td,.bk-table>colgroup+thead>tr:first-child>th,.bk-table>thead:first-child>tr:first-child>td,.bk-table>thead:first-child>tr:first-child>th{border-top:0}.bk-table>tbody+tbody{border-top:2px solid #ddd}.bk-table .bk-bs-table{background-color:#fff}.bk-table tr:nth-child(odd){background:#efefef}.bk-table tr td{padding:1px 5px!important;border:none!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: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}.bk-facet-label{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;cursor:pointer}.bk-cell-editor-completion,.bk-data-table{font-size:11px}.bk-facet-label[href]:focus,.bk-facet-label[href]:hover{color:#fff;text-decoration:none;cursor:pointer;background-color:#31b0d5}.bk-facet-label:empty{display:none}.bk-bs-btn .bk-facet-label{position:relative;top:-1px}.bk-filters-selections .bk-sidebar{-webkit-transform:scale(.5,.5)!important;transform:scale(.5,.5)!important}.bk-crossfilter .bk-widget-form{padding:5px}.bk-data-table input[type=checkbox]{margin-left:4px;margin-right:4px}.bk-data-table *,.bk-data-table :after,.bk-data-table :before{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.bk-cell-index{text-align:right;color:gray}.bk-slick-row.selected .bk-cell-index{background-color:transparent}.bk-slick-cell{padding-left:4px;padding-right:4px}.bk-slick-cell.editable{padding-left:0;padding-right:0}.bk-cell-editor .bk-ui-spinner,.bk-cell-editor input,.bk-cell-editor select{width:100%;height:100%;border:0;margin:0;padding:0;outline:0;background:0 0;vertical-align:baseline}.bk-bs-open .bk-bs-dropdown-toggle.bk-toolbar-button,.bk-toolbar-button,.bk-toolbar-button.bk-bs-active,.bk-toolbar-button:active,.bk-widget-form-input{background-image:none}.bk-cell-editor input{padding-left:4px;padding-right:4px}.bk-hbox{-webkit-box-orient:horizontal;-webkit-box-align:stretch;-moz-box-orient:horizontal;-moz-box-align:stretch;box-orient:horizontal;box-align:stretch;display:flex;display:-webkit-flex;flex-direction:row;flex-wrap:nowrap}.bk-vbox{-webkit-box-orient:vertical;-webkit-box-align:stretch;-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 30px 30px 30px;overflow:hidden}.bk-widget-form-group{margin-bottom:15px}.bk-button-bar,.bk-toolbar-button{display:inline-block;margin-bottom:0}.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;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;padding-top:0;padding-bottom:2px;position:relative}.bk-button-bar>.bk-bs-btn{position:relative;float:left}.bk-button-bar>.bk-bs-btn.bk-bs-active,.bk-button-bar>.bk-bs-btn:active,.bk-button-bar>.bk-bs-btn:focus,.bk-button-bar>.bk-bs-btn:hover{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{font-weight:400;text-align:center;cursor:pointer;border:1px solid transparent;white-space:nowrap;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px;color:#333;background-color:#fff;border-color:#ccc}.bk-tooltip.bk-left::before,.bk-tooltip.bk-right::after{border-color:transparent;display:block;margin:-7px 0 0 0}.bk-toolbar-button.bk-bs-active:focus,.bk-toolbar-button:active:focus,.bk-toolbar-button:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.bk-toolbar-button:focus,.bk-toolbar-button:hover{text-decoration:none}.bk-toolbar-button.bk-bs-active,.bk-toolbar-button:active{outline:0;-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-bs-open .bk-bs-dropdown-toggle.bk-toolbar-button,.bk-toolbar-button.bk-bs-active,.bk-toolbar-button:active,.bk-toolbar-button:focus,.bk-toolbar-button:hover{color:#333;background-color:#ebebeb;border-color:#adadad}.bk-toolbar-button.bk-bs-disabled,.bk-toolbar-button.bk-bs-disabled.bk-bs-active,.bk-toolbar-button.bk-bs-disabled:active,.bk-toolbar-button.bk-bs-disabled:focus,.bk-toolbar-button.bk-bs-disabled:hover,.bk-toolbar-button[disabled],.bk-toolbar-button[disabled].bk-bs-active,.bk-toolbar-button[disabled]:active,.bk-toolbar-button[disabled]:focus,.bk-toolbar-button[disabled]:hover,fieldset[disabled] .bk-toolbar-button,fieldset[disabled] .bk-toolbar-button.bk-bs-active,fieldset[disabled] .bk-toolbar-button:active,fieldset[disabled] .bk-toolbar-button:focus,fieldset[disabled] .bk-toolbar-button:hover{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{position:absolute;padding:5px;border:1px solid #1e4b6c;background-color:#1e4b6c;border-radius:5px;pointer-events:none}.bk-tooltip.bk-left::before{position:absolute;content:\" \";left:-10px;border-right-width:10px;border-right-color:#1e4b6c}.bk-tooltip.bk-right::after{position:absolute;content:\" \";right:-10px;border-left-width:10px;border-left-color:#1e4b6c}.bk-tooltip.bk-tooltip-custom.bk-left::before{border-right-color:#000}.bk-tooltip.bk-tooltip-custom.bk-right::after{border-left-color:#000}.bk-tooltip.bk-tooltip-custom{border-color:#000;background-color:#fff}.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",
       "                /*# sourceMappingURL=bokeh.min.css.map */\n",
       "                /* END /home/bird/Dev/bokeh/bokeh/bokeh/server/static/css/bokeh.min.css */\n",
       "        </style>\n",
       "        <script type=\"text/javascript\">\n",
       "            /* BEGIN /home/bird/Dev/bokeh/bokeh/bokeh/server/static/js/bokeh.min.js */\n",
       "                !function(){var define=void 0;!function t(e,i,n){function r(s,a){if(!i[s]){if(!e[s]){var l=\"function\"==typeof require&&require;if(!a&&l)return l(s,!0);if(o)return o(s,!0);var u=new Error(\"Cannot find module '\"+s+\"'\");throw u.code=\"MODULE_NOT_FOUND\",u}var c=i[s]={exports:{}};e[s][0].call(c.exports,function(t){var i=e[s][1][t];return r(i?i:t)},c,c.exports,t,e,i,n)}return i[s].exports}for(var o=\"function\"==typeof require&&require,s=0;s<n.length;s++)r(n[s]);return r}({1:[function(t,e,i){!function(e,n){if(\"function\"==typeof define&&define.amd)define([\"underscore\",\"jquery\",\"exports\"],function(t,i,r){e.Backbone=n(e,r,t,i)});else if(\"undefined\"!=typeof i){var r=t(\"underscore\");n(e,i,r)}else e.Backbone=n(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}(this,function(t,e,i,n){{var r=t.Backbone,o=[],s=(o.push,o.slice);o.splice}e.VERSION=\"1.1.2\",e.$=n,e.noConflict=function(){return t.Backbone=r,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=e.Events={on:function(t,e,i){if(!u(this,\"on\",t,[e,i])||!e)return this;this._events||(this._events={});var n=this._events[t]||(this._events[t]=[]);return n.push({callback:e,context:i,ctx:i||this}),this},once:function(t,e,n){if(!u(this,\"once\",t,[e,n])||!e)return this;var r=this,o=i.once(function(){r.off(t,o),e.apply(this,arguments)});return o._callback=e,this.on(t,o,n)},off:function(t,e,n){var r,o,s,a,l,c,h,p;if(!this._events||!u(this,\"off\",t,[e,n]))return this;if(!t&&!e&&!n)return this._events=void 0,this;for(a=t?[t]:i.keys(this._events),l=0,c=a.length;c>l;l++)if(t=a[l],s=this._events[t]){if(this._events[t]=r=[],e||n)for(h=0,p=s.length;p>h;h++)o=s[h],(e&&e!==o.callback&&e!==o.callback._callback||n&&n!==o.context)&&r.push(o);r.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 i=this._events[t],n=this._events.all;return i&&c(i,e),n&&c(n,arguments),this},stopListening:function(t,e,n){var r=this._listeningTo;if(!r)return this;var o=!e&&!n;n||\"object\"!=typeof e||(n=this),t&&((r={})[t._listenId]=t);for(var s in r)t=r[s],t.off(e,n,this),(o||i.isEmpty(t._events))&&delete this._listeningTo[s];return this}},l=/\\s+/,u=function(t,e,i,n){if(!i)return!0;if(\"object\"==typeof i){for(var r in i)t[e].apply(t,[r,i[r]].concat(n));return!1}if(l.test(i)){for(var o=i.split(l),s=0,a=o.length;a>s;s++)t[e].apply(t,[o[s]].concat(n));return!1}return!0},c=function(t,e){var i,n=-1,r=t.length,o=e[0],s=e[1],a=e[2];switch(e.length){case 0:for(;++n<r;)(i=t[n]).callback.call(i.ctx);return;case 1:for(;++n<r;)(i=t[n]).callback.call(i.ctx,o);return;case 2:for(;++n<r;)(i=t[n]).callback.call(i.ctx,o,s);return;case 3:for(;++n<r;)(i=t[n]).callback.call(i.ctx,o,s,a);return;default:for(;++n<r;)(i=t[n]).callback.apply(i.ctx,e);return}},h={listenTo:\"on\",listenToOnce:\"once\"};i.each(h,function(t,e){a[e]=function(e,n,r){var o=this._listeningTo||(this._listeningTo={}),s=e._listenId||(e._listenId=i.uniqueId(\"l\"));return o[s]=e,r||\"object\"!=typeof n||(r=this),e[t](n,r,this),this}}),a.bind=a.on,a.unbind=a.off,i.extend(e,a);var p=e.Model=function(t,e){var n=t||{};e||(e={}),this.cid=i.uniqueId(\"c\"),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(n=this.parse(n,e)||{}),n=i.defaults({},n,i.result(this,\"defaults\")),this.set(n,e),this.changed={},this.initialize.apply(this,arguments)};i.extend(p.prototype,a,{changed:null,validationError:null,idAttribute:\"id\",initialize:function(){},toJSON:function(t){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return i.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,n){var r,o,s,a,l,u,c,h;if(null==t)return this;if(\"object\"==typeof t?(o=t,n=e):(o={})[t]=e,n||(n={}),!this._validate(o,n))return!1;s=n.unset,l=n.silent,a=[],u=this._changing,this._changing=!0,u||(this._previousAttributes=i.clone(this.attributes),this.changed={}),h=this.attributes,c=this._previousAttributes,this.idAttribute in o&&(this.id=o[this.idAttribute]);for(r in o)e=o[r],i.isEqual(h[r],e)||a.push(r),i.isEqual(c[r],e)?delete this.changed[r]:this.changed[r]=e,s?delete h[r]:h[r]=e;if(!l){a.length&&(this._pending=n);for(var p=0,d=a.length;d>p;p++)this.trigger(\"change:\"+a[p],this,h[a[p]],n)}if(u)return this;if(!l)for(;this._pending;)n=this._pending,this._pending=!1,this.trigger(\"change\",this,n);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,i.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var n in this.attributes)e[n]=void 0;return this.set(e,i.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!i.isEmpty(this.changed):i.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?i.clone(this.changed):!1;var e,n=!1,r=this._changing?this._previousAttributes:this.attributes;for(var o in t)i.isEqual(r[o],e=t[o])||((n||(n={}))[o]=e);return n},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(t){t=t?i.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=this,n=t.success;return t.success=function(i){return e.set(e.parse(i,t),t)?(n&&n(e,i,t),void e.trigger(\"sync\",e,i,t)):!1},j(this,t),this.sync(\"read\",this,t)},save:function(t,e,n){var r,o,s,a=this.attributes;if(null==t||\"object\"==typeof t?(r=t,n=e):(r={})[t]=e,n=i.extend({validate:!0},n),r&&!n.wait){if(!this.set(r,n))return!1}else if(!this._validate(r,n))return!1;r&&n.wait&&(this.attributes=i.extend({},a,r)),void 0===n.parse&&(n.parse=!0);var l=this,u=n.success;return n.success=function(t){l.attributes=a;var e=l.parse(t,n);return n.wait&&(e=i.extend(r||{},e)),i.isObject(e)&&!l.set(e,n)?!1:(u&&u(l,t,n),void l.trigger(\"sync\",l,t,n))},j(this,n),o=this.isNew()?\"create\":n.patch?\"patch\":\"update\",\"patch\"===o&&(n.attrs=r),s=this.sync(o,this,n),r&&n.wait&&(this.attributes=a),s},destroy:function(t){t=t?i.clone(t):{};var e=this,n=t.success,r=function(){e.trigger(\"destroy\",e,e.collection,t)};if(t.success=function(i){(t.wait||e.isNew())&&r(),n&&n(e,i,t),e.isNew()||e.trigger(\"sync\",e,i,t)},this.isNew())return t.success(),!1;j(this,t);var o=this.sync(\"delete\",this,t);return t.wait||r(),o},url:function(){var t=i.result(this,\"urlRoot\")||i.result(this.collection,\"url\")||O();return this.isNew()?t:t.replace(/([^\\/])$/,\"$1/\")+encodeURIComponent(this.id)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},i.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=i.extend({},this.attributes,t);var n=this.validationError=this.validate(t,e)||null;return n?(this.trigger(\"invalid\",this,n,i.extend(e,{validationError:n})),!1):!0}});var d=[\"keys\",\"values\",\"pairs\",\"invert\",\"pick\",\"omit\"];i.each(d,function(t){p.prototype[t]=function(){var e=s.call(arguments);return e.unshift(this.attributes),i[t].apply(i,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,i.extend({silent:!0},e))},g={add:!0,remove:!0,merge:!0},m={add:!0,remove:!1};i.extend(f.prototype,a,{model:p,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,i.extend({merge:!1},e,m))},remove:function(t,e){var n=!i.isArray(t);t=n?[t]:i.clone(t),e||(e={});var r,o,s,a;for(r=0,o=t.length;o>r;r++)a=t[r]=this.get(t[r]),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,e));return n?t[0]:t},set:function(t,e){e=i.defaults({},e,g),e.parse&&(t=this.parse(t,e));var n=!i.isArray(t);t=n?t?[t]:[]:i.clone(t);var r,o,s,a,l,u,c,h=e.at,d=this.model,f=this.comparator&&null==h&&e.sort!==!1,m=i.isString(this.comparator)?this.comparator:null,_=[],v=[],y={},b=e.add,w=e.merge,x=e.remove,k=!f&&b&&x?[]:!1;for(r=0,o=t.length;o>r;r++){if(l=t[r]||{},s=l instanceof p?a=l:l[d.prototype.idAttribute||\"id\"],u=this.get(s))x&&(y[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(m)&&(c=!0)),t[r]=u;else if(b){if(a=t[r]=this._prepareModel(l,e),!a)continue;_.push(a),this._addReference(a,e)}a=u||a,!k||!a.isNew()&&y[a.id]||k.push(a),y[a.id]=!0}if(x){for(r=0,o=this.length;o>r;++r)y[(a=this.models[r]).cid]||v.push(a);v.length&&this.remove(v,e)}if(_.length||k&&k.length)if(f&&(c=!0),this.length+=_.length,null!=h)for(r=0,o=_.length;o>r;r++)this.models.splice(h+r,0,_[r]);else{k&&(this.models.length=0);var C=k||_;for(r=0,o=C.length;o>r;r++)this.models.push(C[r])}if(c&&this.sort({silent:!0}),!e.silent){for(r=0,o=_.length;o>r;r++)(a=_[r]).trigger(\"add\",a,this,e);(c||k&&k.length)&&this.trigger(\"sort\",this,e)}return n?t[0]:t},reset:function(t,e){e||(e={});for(var n=0,r=this.models.length;r>n;n++)this._removeReference(this.models[n],e);return e.previousModels=this.models,this._reset(),t=this.add(t,i.extend({silent:!0},e)),e.silent||this.trigger(\"reset\",this,e),t},push:function(t,e){return this.add(t,i.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,i.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]||this._byId[t.id]||this._byId[t.cid]},at:function(t){return this.models[t]},where:function(t,e){return i.isEmpty(t)?e?void 0:[]:this[e?\"find\":\"filter\"](function(e){for(var i in t)if(t[i]!==e.get(i))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={}),i.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(i.bind(this.comparator,this)),t.silent||this.trigger(\"sort\",this,t),this},pluck:function(t){return i.invoke(this.models,\"get\",t)},fetch:function(t){t=t?i.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=t.success,n=this;return t.success=function(i){var r=t.reset?\"reset\":\"set\";n[r](i,t),e&&e(n,i,t),n.trigger(\"sync\",n,i,t)},j(this,t),this.sync(\"read\",this,t)},create:function(t,e){if(e=e?i.clone(e):{},!(t=this._prepareModel(t,e)))return!1;e.wait||this.add(t,e);var n=this,r=e.success;return e.success=function(t,i){e.wait&&n.add(t,e),r&&r(t,i,e)},t.save(null,e),t},parse:function(t,e){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 p)return t;e=e?i.clone(e):{},e.collection=this;var n=new this.model(t,e);return n.validationError?(this.trigger(\"invalid\",this,n.validationError,e),!1):n},_addReference:function(t,e){this._byId[t.cid]=t,null!=t.id&&(this._byId[t.id]=t),t.collection||(t.collection=this),t.on(\"all\",this._onModelEvent,this)},_removeReference:function(t,e){this===t.collection&&delete t.collection,t.off(\"all\",this._onModelEvent,this)},_onModelEvent:function(t,e,i,n){(\"add\"!==t&&\"remove\"!==t||i===this)&&(\"destroy\"===t&&this.remove(e,n),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 _=[\"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\",\"sample\"];i.each(_,function(t){f.prototype[t]=function(){var e=s.call(arguments);return e.unshift(this.models),i[t].apply(i,e)}});var v=[\"groupBy\",\"countBy\",\"sortBy\",\"indexBy\"];i.each(v,function(t){f.prototype[t]=function(e,n){var r=i.isFunction(e)?e:function(t){return t.get(e)};return i[t](this.models,r,n)}});var y=e.View=function(t){this.cid=i.uniqueId(\"view\"),t||(t={}),i.extend(this,i.pick(t,w)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},b=/^(\\S+)\\s*(.*)$/,w=[\"model\",\"collection\",\"el\",\"id\",\"attributes\",\"className\",\"tagName\",\"events\"];i.extend(y.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,i){return this.$el&&this.undelegateEvents(),this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0],i!==!1&&this.delegateEvents(),this},delegateEvents:function(t){if(!t&&!(t=i.result(this,\"events\")))return this;this.undelegateEvents();for(var e in t){var n=t[e];if(i.isFunction(n)||(n=this[t[e]]),n){var r=e.match(b),o=r[1],s=r[2];n=i.bind(n,this),o+=\".delegateEvents\"+this.cid,\"\"===s?this.$el.on(o,n):this.$el.on(o,s,n)}}return this},undelegateEvents:function(){return this.$el.off(\".delegateEvents\"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(i.result(this,\"el\"),!1);else{var t=i.extend({},i.result(this,\"attributes\"));this.id&&(t.id=i.result(this,\"id\")),this.className&&(t[\"class\"]=i.result(this,\"className\"));var n=e.$(\"<\"+i.result(this,\"tagName\")+\">\").attr(t);this.setElement(n,!1)}}}),e.sync=function(t,n,r){var o=k[t];i.defaults(r||(r={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var s={type:o,dataType:\"json\"};if(r.url||(s.url=i.result(n,\"url\")||O()),null!=r.data||!n||\"create\"!==t&&\"update\"!==t&&\"patch\"!==t||(s.contentType=\"application/json\",s.data=JSON.stringify(r.attrs||n.toJSON(r))),r.emulateJSON&&(s.contentType=\"application/x-www-form-urlencoded\",s.data=s.data?{model:s.data}:{}),r.emulateHTTP&&(\"PUT\"===o||\"DELETE\"===o||\"PATCH\"===o)){s.type=\"POST\",r.emulateJSON&&(s.data._method=o);var a=r.beforeSend;r.beforeSend=function(t){return t.setRequestHeader(\"X-HTTP-Method-Override\",o),a?a.apply(this,arguments):void 0}}\"GET\"===s.type||r.emulateJSON||(s.processData=!1),\"PATCH\"===s.type&&x&&(s.xhr=function(){return new ActiveXObject(\"Microsoft.XMLHTTP\")});var l=r.xhr=e.ajax(i.extend(s,r));return n.trigger(\"request\",n,l,r),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,D=/(\\(\\?)?:\\w+/g,T=/\\*\\w+/g,S=/[\\-{}\\[\\]+?.,\\\\\\^$|#\\s]/g;i.extend(C.prototype,a,{initialize:function(){},route:function(t,n,r){i.isRegExp(t)||(t=this._routeToRegExp(t)),i.isFunction(n)&&(r=n,n=\"\"),r||(r=this[n]);var o=this;return e.history.route(t,function(i){var s=o._extractParameters(t,i);o.execute(r,s),o.trigger.apply(o,[\"route:\"+n].concat(s)),o.trigger(\"route\",n,s),e.history.trigger(\"route\",o,n,s)}),this},execute:function(t,e){t&&t.apply(this,e)},navigate:function(t,i){return e.history.navigate(t,i),this},_bindRoutes:function(){if(this.routes){this.routes=i.result(this,\"routes\");for(var t,e=i.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(S,\"\\\\$&\").replace(M,\"(?:$1)?\").replace(D,function(t,e){return e?t:\"([^/?]+)\"}).replace(T,\"([^?]*?)\"),new RegExp(\"^\"+t+\"(?:\\\\?([\\\\s\\\\S]*))?$\")},_extractParameters:function(t,e){var n=t.exec(e).slice(1);return i.map(n,function(t,e){return e===n.length-1?t||null:t?decodeURIComponent(t):null})}});var A=e.History=function(){this.handlers=[],i.bindAll(this,\"checkUrl\"),\"undefined\"!=typeof window&&(this.location=window.location,this.history=window.history)},P=/^[#\\/]|\\s+$/g,I=/^\\/+|\\/+$/g,E=/msie [\\w.]+/,R=/\\/$/,N=/#.*$/;A.started=!1,i.extend(A.prototype,a,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\\/]$/,\"$&/\")===this.root},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=decodeURI(this.location.pathname+this.location.search);var i=this.root.replace(R,\"\");t.indexOf(i)||(t=t.slice(i.length))}else t=this.getHash();return t.replace(P,\"\")},start:function(t){if(A.started)throw new Error(\"Backbone.history has already been started\");A.started=!0,this.options=i.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 n=this.getFragment(),r=document.documentMode,o=E.exec(navigator.userAgent.toLowerCase())&&(!r||7>=r);if(this.root=(\"/\"+this.root+\"/\").replace(I,\"/\"),o&&this._wantsHashChange){var s=e.$('<iframe src=\"javascript:0\" tabindex=\"-1\">');this.iframe=s.hide().appendTo(\"body\")[0].contentWindow,this.navigate(n)}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=n;var a=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+\"#\"+this.fragment),!0;this._hasPushState&&this.atRoot()&&a.hash&&(this.fragment=this.getHash().replace(P,\"\"),this.history.replaceState({},document.title,this.root+this.fragment))}return this.options.silent?void 0:this.loadUrl()},stop:function(){e.$(window).off(\"popstate\",this.checkUrl).off(\"hashchange\",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),A.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();return e===this.fragment&&this.iframe&&(e=this.getFragment(this.getHash(this.iframe))),e===this.fragment?!1:(this.iframe&&this.navigate(e),void this.loadUrl())},loadUrl:function(t){return t=this.fragment=this.getFragment(t),i.any(this.handlers,function(e){return e.route.test(t)?(e.callback(t),!0):void 0})},navigate:function(t,e){if(!A.started)return!1;e&&e!==!0||(e={trigger:!!e});var i=this.root+(t=this.getFragment(t||\"\"));if(t=t.replace(N,\"\"),this.fragment!==t){if(this.fragment=t,\"\"===t&&\"/\"!==i&&(i=i.slice(0,-1)),this._hasPushState)this.history[e.replace?\"replaceState\":\"pushState\"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);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,i){if(i){var n=t.href.replace(/(javascript:|#).*$/,\"\");t.replace(n+\"#\"+e)}else t.hash=\"#\"+e}}),e.history=new A;var z=function(t,e){var n,r=this;n=t&&i.has(t,\"constructor\")?t.constructor:function(){return r.apply(this,arguments)},i.extend(n,r,e);var o=function(){this.constructor=n};return o.prototype=r.prototype,n.prototype=new o,t&&i.extend(n.prototype,t),n.__super__=r.prototype,n};p.extend=f.extend=C.extend=y.extend=A.extend=z;var O=function(){throw new Error('A \"url\" property or function must be specified')},j=function(t,e){var i=e.error;e.error=function(n){i&&i(t,n,e),t.trigger(\"error\",t,n,e)}};return e})},{underscore:22}],2:[function(t,e,i){!function(t,i,n,r){\"use strict\";function o(t,e,i){return setTimeout(h(t,i),e)}function s(t,e,i){return Array.isArray(t)?(a(t,i[e],i),!0):!1}function a(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==r)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function l(t,e,i){for(var n=Object.keys(e),o=0;o<n.length;)(!i||i&&t[n[o]]===r)&&(t[n[o]]=e[n[o]]),o++;return t}function u(t,e){return l(t,e,!0)}function c(t,e,i){var n,r=e.prototype;n=t.prototype=Object.create(r),n.constructor=t,n._super=r,i&&l(n,i)}function h(t,e){return function(){return t.apply(e,arguments)}}function p(t,e){return typeof t==ht?t.apply(e?e[0]||r:r,e):t}function d(t,e){return t===r?e:t}function f(t,e,i){a(v(e),function(e){t.addEventListener(e,i,!1)})}function g(t,e,i){a(v(e),function(e){t.removeEventListener(e,i,!1)})}function m(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function _(t,e){return t.indexOf(e)>-1}function v(t){return t.trim().split(/\\s+/g)}function y(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function b(t){return Array.prototype.slice.call(t,0)}function w(t,e,i){for(var n=[],r=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];y(r,s)<0&&n.push(t[o]),r[o]=s,o++}return i&&(n=e?n.sort(function(t,i){return t[e]>i[e]}):n.sort()),n}function x(t,e){for(var i,n,o=e[0].toUpperCase()+e.slice(1),s=0;s<ut.length;){if(i=ut[s],n=i?i+o:e,n in t)return n;s++}return r}function k(){return gt++}function C(t){var e=t.ownerDocument;return e.defaultView||e.parentWindow}function M(t,e){var i=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])&&i.handler(e)},this.init()}function D(t){var e,i=t.options.inputClass;return new(e=i?i:vt?L:yt?Y:_t?V:H)(t,T)}function T(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,o=e&Mt&&n-r===0,s=e&(Tt|St)&&n-r===0;i.isFirst=!!o,i.isFinal=!!s,o&&(t.session={}),i.eventType=e,S(t,i),t.emit(\"hammer.input\",i),t.recognize(i),t.session.prevInput=i}function S(t,e){var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=I(e)),r>1&&!i.firstMultiple?i.firstMultiple=I(e):1===r&&(i.firstMultiple=!1);var o=i.firstInput,s=i.firstMultiple,a=s?s.center:o.center,l=e.center=E(n);e.timeStamp=ft(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=O(a,l),e.distance=z(a,l),A(i,e),e.offsetDirection=N(e.deltaX,e.deltaY),e.scale=s?F(s.pointers,n):1,e.rotation=s?j(s.pointers,n):0,P(i,e);var u=t.element;m(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}function A(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};(e.eventType===Mt||o.eventType===Tt)&&(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}function P(t,e){var i,n,o,s,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(e.eventType!=St&&(l>Ct||a.velocity===r)){var u=a.deltaX-e.deltaX,c=a.deltaY-e.deltaY,h=R(l,u,c);n=h.x,o=h.y,i=dt(h.x)>dt(h.y)?h.x:h.y,s=N(u,c),t.lastInterval=e}else i=a.velocity,n=a.velocityX,o=a.velocityY,s=a.direction;e.velocity=i,e.velocityX=n,e.velocityY=o,e.direction=s}function I(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:pt(t.pointers[i].clientX),clientY:pt(t.pointers[i].clientY)},i++;return{timeStamp:ft(),pointers:e,center:E(e),deltaX:t.deltaX,deltaY:t.deltaY}}function E(t){var e=t.length;if(1===e)return{x:pt(t[0].clientX),y:pt(t[0].clientY)};for(var i=0,n=0,r=0;e>r;)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:pt(i/e),y:pt(n/e)}}function R(t,e,i){return{x:e/t||0,y:i/t||0}}function N(t,e){return t===e?At:dt(t)>=dt(e)?t>0?Pt:It:e>0?Et:Rt}function z(t,e,i){i||(i=jt);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function O(t,e,i){i||(i=jt);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}function j(t,e){return O(e[1],e[0],Ft)-O(t[1],t[0],Ft)}function F(t,e){return z(e[0],e[1],Ft)/z(t[0],t[1],Ft)}function H(){this.evEl=Lt,this.evWin=Wt,this.allow=!0,this.pressed=!1,M.apply(this,arguments)}function L(){this.evEl=$t,this.evWin=Vt,M.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function W(){this.evTarget=qt,this.evWin=Gt,this.started=!1,M.apply(this,arguments)}function B(t,e){var i=b(t.touches),n=b(t.changedTouches);return e&(Tt|St)&&(i=w(i.concat(n),\"identifier\",!0)),[i,n]}function Y(){this.evTarget=Zt,this.targetIds={},M.apply(this,arguments)}function $(t,e){var i=b(t.touches),n=this.targetIds;if(e&(Mt|Dt)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var r,o,s=b(t.changedTouches),a=[],l=this.target;if(o=i.filter(function(t){return m(t.target,l)}),e===Mt)for(r=0;r<o.length;)n[o[r].identifier]=!0,r++;for(r=0;r<s.length;)n[s[r].identifier]&&a.push(s[r]),e&(Tt|St)&&delete n[s[r].identifier],r++;return a.length?[w(o.concat(a),\"identifier\",!0),a]:void 0}function V(){M.apply(this,arguments);var t=h(this.handler,this);this.touch=new Y(this.manager,t),this.mouse=new H(this.manager,t)}function U(t,e){this.manager=t,this.set(e)}function q(t){if(_(t,ie))return ie;var e=_(t,ne),i=_(t,re);return e&&i?ne+\" \"+re:e||i?e?ne:re:_(t,ee)?ee:te}function G(t){this.id=k(),this.manager=null,this.options=u(t||{},this.defaults),this.options.enable=d(this.options.enable,!0),this.state=oe,this.simultaneous={},this.requireFail=[]}function X(t){return t&ce?\"cancel\":t&le?\"end\":t&ae?\"move\":t&se?\"start\":\"\"}function Z(t){return t==Rt?\"down\":t==Et?\"up\":t==Pt?\"left\":t==It?\"right\":\"\"}function J(t,e){var i=e.manager;return i?i.get(t):t}function K(){G.apply(this,arguments)}function Q(){K.apply(this,arguments),this.pX=null,this.pY=null}function tt(){K.apply(this,arguments)}function et(){G.apply(this,arguments),this._timer=null,this._input=null}function it(){K.apply(this,arguments)}function nt(){K.apply(this,arguments)}function rt(){G.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ot(t,e){return e=e||{},e.recognizers=d(e.recognizers,ot.defaults.preset),new st(t,e)}function st(t,e){e=e||{},this.options=u(e,ot.defaults),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.element=t,this.input=D(this),this.touchAction=new U(this,this.options.touchAction),at(this,!0),a(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 at(t,e){var i=t.element;a(t.options.cssProps,function(t,n){i.style[x(i.style,n)]=e?t:\"\"})}function lt(t,e){var n=i.createEvent(\"Event\");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var ut=[\"\",\"webkit\",\"moz\",\"MS\",\"ms\",\"o\"],ct=i.createElement(\"div\"),ht=\"function\",pt=Math.round,dt=Math.abs,ft=Date.now,gt=1,mt=/mobile|tablet|ip(ad|hone|od)|android/i,_t=\"ontouchstart\"in t,vt=x(t,\"PointerEvent\")!==r,yt=_t&&mt.test(navigator.userAgent),bt=\"touch\",wt=\"pen\",xt=\"mouse\",kt=\"kinect\",Ct=25,Mt=1,Dt=2,Tt=4,St=8,At=1,Pt=2,It=4,Et=8,Rt=16,Nt=Pt|It,zt=Et|Rt,Ot=Nt|zt,jt=[\"x\",\"y\"],Ft=[\"clientX\",\"clientY\"];M.prototype={handler:function(){},init:function(){this.evEl&&f(this.element,this.evEl,this.domHandler),this.evTarget&&f(this.target,this.evTarget,this.domHandler),this.evWin&&f(C(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&g(this.element,this.evEl,this.domHandler),this.evTarget&&g(this.target,this.evTarget,this.domHandler),this.evWin&&g(C(this.element),this.evWin,this.domHandler)}};var Ht={mousedown:Mt,mousemove:Dt,mouseup:Tt},Lt=\"mousedown\",Wt=\"mousemove mouseup\";c(H,M,{handler:function(t){var e=Ht[t.type];e&Mt&&0===t.button&&(this.pressed=!0),e&Dt&&1!==t.which&&(e=Tt),this.pressed&&this.allow&&(e&Tt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:xt,srcEvent:t}))}});var Bt={pointerdown:Mt,pointermove:Dt,pointerup:Tt,pointercancel:St,pointerout:St},Yt={2:bt,3:wt,4:xt,5:kt},$t=\"pointerdown\",Vt=\"pointermove pointerup pointercancel\";t.MSPointerEvent&&($t=\"MSPointerDown\",Vt=\"MSPointerMove MSPointerUp MSPointerCancel\"),c(L,M,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace(\"ms\",\"\"),r=Bt[n],o=Yt[t.pointerType]||t.pointerType,s=o==bt,a=y(e,t.pointerId,\"pointerId\");r&Mt&&(0===t.button||s)?0>a&&(e.push(t),a=e.length-1):r&(Tt|St)&&(i=!0),0>a||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),i&&e.splice(a,1))}});var Ut={touchstart:Mt,touchmove:Dt,touchend:Tt,touchcancel:St},qt=\"touchstart\",Gt=\"touchstart touchmove touchend touchcancel\";c(W,M,{handler:function(t){var e=Ut[t.type];if(e===Mt&&(this.started=!0),this.started){var i=B.call(this,t,e);e&(Tt|St)&&i[0].length-i[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:bt,srcEvent:t})}}});var Xt={touchstart:Mt,touchmove:Dt,touchend:Tt,touchcancel:St},Zt=\"touchstart touchmove touchend touchcancel\";c(Y,M,{handler:function(t){var e=Xt[t.type],i=$.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:bt,srcEvent:t})}}),c(V,M,{handler:function(t,e,i){var n=i.pointerType==bt,r=i.pointerType==xt;if(n)this.mouse.allow=!1;else if(r&&!this.mouse.allow)return;e&(Tt|St)&&(this.mouse.allow=!0),this.callback(t,e,i)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Jt=x(ct.style,\"touchAction\"),Kt=Jt!==r,Qt=\"compute\",te=\"auto\",ee=\"manipulation\",ie=\"none\",ne=\"pan-x\",re=\"pan-y\";U.prototype={set:function(t){t==Qt&&(t=this.compute()),Kt&&(this.manager.element.style[Jt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return a(this.manager.recognizers,function(e){p(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),q(t.join(\" \"))},preventDefaults:function(t){if(!Kt){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var n=this.actions,r=_(n,ie),o=_(n,re),s=_(n,ne);return r||o&&i&Nt||s&&i&zt?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var oe=1,se=2,ae=4,le=8,ue=le,ce=16,he=32;G.prototype={defaults:{},set:function(t){return l(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(s(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 s(t,\"dropRecognizeWith\",this)?this:(t=J(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(s(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(s(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){i.manager.emit(i.options.event+(e?X(n):\"\"),t)}var i=this,n=this.state;le>n&&e(!0),e(),n>=le&&e(!0)},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=he)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(he|oe)))return!1;t++}return!0},recognize:function(t){var e=l({},t);return p(this.options.enable,[this,e])?(this.state&(ue|ce|he)&&(this.state=oe),this.state=this.process(e),void(this.state&(se|ae|le|ce)&&this.tryEmit(e))):(this.reset(),void(this.state=he))},process:function(t){},getTouchAction:function(){},reset:function(){}},c(K,G,{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,i=t.eventType,n=e&(se|ae),r=this.attrTest(t);return n&&(i&St||!r)?e|ce:n||r?i&Tt?e|le:e&se?e|ae:se:he}}),c(Q,K,{defaults:{event:\"pan\",threshold:10,pointers:1,direction:Ot},getTouchAction:function(){var t=this.options.direction,e=[];return t&Nt&&e.push(re),t&zt&&e.push(ne),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(e.direction&Nt?(r=0===o?At:0>o?Pt:It,\n",
       "                i=o!=this.pX,n=Math.abs(t.deltaX)):(r=0===s?At:0>s?Et:Rt,i=s!=this.pY,n=Math.abs(t.deltaY))),t.direction=r,i&&n>e.threshold&&r&e.direction},attrTest:function(t){return K.prototype.attrTest.call(this,t)&&(this.state&se||!(this.state&se)&&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)}}),c(tt,K,{defaults:{event:\"pinch\",threshold:0,pointers:2},getTouchAction:function(){return[ie]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&se)},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)}}}),c(et,G,{defaults:{event:\"press\",pointers:1,time:500,threshold:5},getTouchAction:function(){return[te]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!n||!i||t.eventType&(Tt|St)&&!r)this.reset();else if(t.eventType&Mt)this.reset(),this._timer=o(function(){this.state=ue,this.tryEmit()},e.time,this);else if(t.eventType&Tt)return ue;return he},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ue&&(t&&t.eventType&Tt?this.manager.emit(this.options.event+\"up\",t):(this._input.timeStamp=ft(),this.manager.emit(this.options.event,this._input)))}}),c(it,K,{defaults:{event:\"rotate\",threshold:0,pointers:2},getTouchAction:function(){return[ie]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&se)}}),c(nt,K,{defaults:{event:\"swipe\",threshold:10,velocity:.65,direction:Nt|zt,pointers:1},getTouchAction:function(){return Q.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(Nt|zt)?e=t.velocity:i&Nt?e=t.velocityX:i&zt&&(e=t.velocityY),this._super.attrTest.call(this,t)&&i&t.direction&&t.distance>this.options.threshold&&dt(e)>this.options.velocity&&t.eventType&Tt},emit:function(t){var e=Z(t.direction);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),c(rt,G,{defaults:{event:\"tap\",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[ee]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&Mt&&0===this.count)return this.failTimeout();if(n&&r&&i){if(t.eventType!=Tt)return this.failTimeout();var s=this.pTime?t.timeStamp-this.pTime<e.interval:!0,a=!this.pCenter||z(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=o(function(){this.state=ue,this.tryEmit()},e.interval,this),se):ue}return he},failTimeout:function(){return this._timer=o(function(){this.state=he},this.options.interval,this),he},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ue&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ot.VERSION=\"2.0.4\",ot.defaults={domEvents:!1,touchAction:Qt,enable:!0,inputTarget:null,inputClass:null,preset:[[it,{enable:!1}],[tt,{enable:!1},[\"rotate\"]],[nt,{direction:Nt}],[Q,{direction:Nt},[\"swipe\"]],[rt],[rt,{event:\"doubletap\",taps:2},[\"tap\"]],[et]],cssProps:{userSelect:\"none\",touchSelect:\"none\",touchCallout:\"none\",contentZooming:\"none\",userDrag:\"none\",tapHighlightColor:\"rgba(0,0,0,0)\"}};var pe=1,de=2;st.prototype={set:function(t){return l(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?de:pe},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var i,n=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&ue)&&(r=e.curRecognizer=null);for(var o=0;o<n.length;)i=n[o],e.stopped===de||r&&i!=r&&!i.canRecognizeWith(r)?i.reset():i.recognize(t),!r&&i.state&(se|ae|le)&&(r=e.curRecognizer=i),o++}},get:function(t){if(t instanceof G)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(s(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(s(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 i=this.handlers;return a(v(t),function(t){i[t]=i[t]||[],i[t].push(e)}),this},off:function(t,e){var i=this.handlers;return a(v(t),function(t){e?i[t].splice(y(i[t],e),1):delete i[t]}),this},emit:function(t,e){this.options.domEvents&&lt(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n<i.length;)i[n](e),n++}},destroy:function(){this.element&&at(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(ot,{INPUT_START:Mt,INPUT_MOVE:Dt,INPUT_END:Tt,INPUT_CANCEL:St,STATE_POSSIBLE:oe,STATE_BEGAN:se,STATE_CHANGED:ae,STATE_ENDED:le,STATE_RECOGNIZED:ue,STATE_CANCELLED:ce,STATE_FAILED:he,DIRECTION_NONE:At,DIRECTION_LEFT:Pt,DIRECTION_RIGHT:It,DIRECTION_UP:Et,DIRECTION_DOWN:Rt,DIRECTION_HORIZONTAL:Nt,DIRECTION_VERTICAL:zt,DIRECTION_ALL:Ot,Manager:st,Input:M,TouchAction:U,TouchInput:Y,MouseInput:H,PointerEventInput:L,TouchMouseInput:V,SingleTouchInput:W,Recognizer:G,AttrRecognizer:K,Tap:rt,Pan:Q,Swipe:nt,Pinch:tt,Rotate:it,Press:et,on:f,off:g,each:a,merge:u,extend:l,inherit:c,bindFn:h,prefixed:x}),typeof define==ht&&define.amd?define(function(){return ot}):\"undefined\"!=typeof e&&e.exports?e.exports=ot:t[n]=ot}(window,document,\"Hammer\")},{}],3:[function(t,e,i){!function(t){\"function\"==typeof define&&define.amd?define([\"jquery\"],t):\"object\"==typeof i?e.exports=t:t(jQuery)}(function(t){function e(e){var s=e||window.event,a=l.call(arguments,1),u=0,h=0,p=0,d=0,f=0,g=0;if(e=t.event.fix(s),e.type=\"mousewheel\",\"detail\"in s&&(p=-1*s.detail),\"wheelDelta\"in s&&(p=s.wheelDelta),\"wheelDeltaY\"in s&&(p=s.wheelDeltaY),\"wheelDeltaX\"in s&&(h=-1*s.wheelDeltaX),\"axis\"in s&&s.axis===s.HORIZONTAL_AXIS&&(h=-1*p,p=0),u=0===p?h:p,\"deltaY\"in s&&(p=-1*s.deltaY,u=p),\"deltaX\"in s&&(h=s.deltaX,0===p&&(u=-1*h)),0!==p||0!==h){if(1===s.deltaMode){var m=t.data(this,\"mousewheel-line-height\");u*=m,p*=m,h*=m}else if(2===s.deltaMode){var _=t.data(this,\"mousewheel-page-height\");u*=_,p*=_,h*=_}if(d=Math.max(Math.abs(p),Math.abs(h)),(!o||o>d)&&(o=d,n(s,d)&&(o/=40)),n(s,d)&&(u/=40,h/=40,p/=40),u=Math[u>=1?\"floor\":\"ceil\"](u/o),h=Math[h>=1?\"floor\":\"ceil\"](h/o),p=Math[p>=1?\"floor\":\"ceil\"](p/o),c.settings.normalizeOffset&&this.getBoundingClientRect){var v=this.getBoundingClientRect();f=e.clientX-v.left,g=e.clientY-v.top}return e.deltaX=h,e.deltaY=p,e.deltaFactor=o,e.offsetX=f,e.offsetY=g,e.deltaMode=0,a.unshift(e,u,h,p),r&&clearTimeout(r),r=setTimeout(i,200),(t.event.dispatch||t.event.handle).apply(this,a)}}function i(){o=null}function n(t,e){return c.settings.adjustOldDeltas&&\"mousewheel\"===t.type&&e%120===0}var r,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 i=a.length;i;)this.addEventListener(a[--i],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 i=a.length;i;)this.removeEventListener(a[--i],e,!1);else this.onmousewheel=null;t.removeData(this,\"mousewheel-line-height\"),t.removeData(this,\"mousewheel-page-height\")},getLineHeight:function(e){var i=t(e),n=i[\"offsetParent\"in t.fn?\"offsetParent\":\"parent\"]();return n.length||(n=t(\"body\")),parseInt(n.css(\"fontSize\"),10)||parseInt(i.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)}})})},{}],4:[function(t,e,i){var n=t(\"jquery\");t(\"./core\"),t(\"./widget\"),t(\"./position\"),t(\"./menu\"),function(t,e){t.widget(\"ui.autocomplete\",{version:\"1.10.4\",defaultElement:\"<input>\",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:\"left top\",at:\"left bottom\",collision:\"none\"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,n,r=this.element[0].nodeName.toLowerCase(),o=\"textarea\"===r,s=\"input\"===r;this.isMultiLine=o?!0:s?!1:this.element.prop(\"isContentEditable\"),this.valueMethod=this.element[o||s?\"val\":\"text\"],this.isNewMenu=!0,this.element.addClass(\"ui-autocomplete-input\").attr(\"autocomplete\",\"off\"),this._on(this.element,{keydown:function(r){if(this.element.prop(\"readOnly\"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var o=t.ui.keyCode;switch(r.keyCode){case o.PAGE_UP:e=!0,this._move(\"previousPage\",r);break;case o.PAGE_DOWN:e=!0,this._move(\"nextPage\",r);break;case o.UP:e=!0,this._keyEvent(\"previous\",r);break;case o.DOWN:e=!0,this._keyEvent(\"next\",r);break;case o.ENTER:case o.NUMPAD_ENTER:this.menu.active&&(e=!0,r.preventDefault(),this.menu.select(r));break;case o.TAB:this.menu.active&&this.menu.select(r);break;case o.ESCAPE:this.menu.element.is(\":visible\")&&(this._value(this.term),this.close(r),r.preventDefault());break;default:i=!0,this._searchTimeout(r)}},keypress:function(n){if(e)return e=!1,void((!this.isMultiLine||this.menu.element.is(\":visible\"))&&n.preventDefault());if(!i){var r=t.ui.keyCode;switch(n.keyCode){case r.PAGE_UP:this._move(\"previousPage\",n);break;case r.PAGE_DOWN:this._move(\"nextPage\",n);break;case r.UP:this._keyEvent(\"previous\",n);break;case r.DOWN:this._keyEvent(\"next\",n)}}},input:function(t){return n?(n=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t(\"<ul>\").addClass(\"ui-autocomplete ui-front\").appendTo(this._appendTo()).menu({role:null}).hide().data(\"ui-menu\"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];t(e.target).closest(\".ui-menu-item\").length||this._delay(function(){var e=this;this.document.one(\"mousedown\",function(n){n.target===e.element[0]||n.target===i||t.contains(i,n.target)||e.close()})})},menufocus:function(e,i){if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one(\"mousemove\",function(){t(e.target).trigger(e.originalEvent)});var n=i.item.data(\"ui-autocomplete-item\");!1!==this._trigger(\"focus\",e,{item:n})?e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value):this.liveRegion.text(n.value)},menuselect:function(t,e){var i=e.item.data(\"ui-autocomplete-item\"),n=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=i})),!1!==this._trigger(\"select\",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=t(\"<span>\",{role:\"status\",\"aria-live\":\"polite\"}).addClass(\"ui-helper-hidden-accessible\").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr(\"autocomplete\")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass(\"ui-autocomplete-input\").removeAttr(\"autocomplete\"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),\"source\"===t&&this._initSource(),\"appendTo\"===t&&this.menu.element.appendTo(this._appendTo()),\"disabled\"===t&&e&&this.xhr&&this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e||(e=this.element.closest(\".ui-front\")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,n=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):\"string\"==typeof this.options.source?(i=this.options.source,this.source=function(e,r){n.xhr&&n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:\"json\",success:function(t){r(t)},error:function(){r([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):this._trigger(\"search\",e)!==!1?this._search(t):void 0},_search:function(t){this.pending++,this.element.addClass(\"ui-autocomplete-loading\"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this.element.removeClass(\"ui-autocomplete-loading\")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger(\"response\",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger(\"open\")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this.menu.element.is(\":visible\")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger(\"close\",t))},_change:function(t){this.previous!==this._value()&&this._trigger(\"change\",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return\"string\"==typeof e?{label:e,value:e}:t.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width(\"\").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this;t.each(i,function(t,i){n._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data(\"ui-autocomplete-item\",e)},_renderItem:function(e,i){return t(\"<li>\").append(t(\"<a>\").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(\":visible\")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(\":visible\"))&&(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g,\"\\\\$&\")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),\"i\");return t.grep(e,function(t){return n.test(t.label||t.value||t)})}}),t.widget(\"ui.autocomplete\",t.ui.autocomplete,{options:{messages:{noResults:\"No search results.\",results:function(t){return t+(t>1?\" results are\":\" result is\")+\" available, use up and down arrow keys to navigate.\"}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.text(e))}})}(n)},{\"./core\":6,\"./menu\":11,\"./position\":13,\"./widget\":16,jquery:17}],5:[function(t,e,i){var n=t(\"jquery\");t(\"./core\"),t(\"./widget\"),function(t,e){var i,n=\"ui-button ui-widget ui-state-default ui-corner-all\",r=\"ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only\",o=function(){var e=t(this);setTimeout(function(){e.find(\":ui-button\").button(\"refresh\")},1)},s=function(e){var i=e.name,n=e.form,r=t([]);return i&&(i=i.replace(/'/g,\"\\\\'\"),r=n?t(n).find(\"[name='\"+i+\"']\"):t(\"[name='\"+i+\"']\",e.ownerDocument).filter(function(){return!this.form})),r};t.widget(\"ui.button\",{version:\"1.10.4\",defaultElement:\"<button>\",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest(\"form\").unbind(\"reset\"+this.eventNamespace).bind(\"reset\"+this.eventNamespace,o),\"boolean\"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop(\"disabled\"):this.element.prop(\"disabled\",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr(\"title\");var e=this,r=this.options,a=\"checkbox\"===this.type||\"radio\"===this.type,l=a?\"\":\"ui-state-active\";null===r.label&&(r.label=\"input\"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(n).attr(\"role\",\"button\").bind(\"mouseenter\"+this.eventNamespace,function(){r.disabled||this===i&&t(this).addClass(\"ui-state-active\")}).bind(\"mouseleave\"+this.eventNamespace,function(){r.disabled||t(this).removeClass(l)}).bind(\"click\"+this.eventNamespace,function(t){r.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}),this._on({focus:function(){this.buttonElement.addClass(\"ui-state-focus\")},blur:function(){this.buttonElement.removeClass(\"ui-state-focus\")}}),a&&this.element.bind(\"change\"+this.eventNamespace,function(){e.refresh()}),\"checkbox\"===this.type?this.buttonElement.bind(\"click\"+this.eventNamespace,function(){return r.disabled?!1:void 0}):\"radio\"===this.type?this.buttonElement.bind(\"click\"+this.eventNamespace,function(){if(r.disabled)return!1;t(this).addClass(\"ui-state-active\"),e.buttonElement.attr(\"aria-pressed\",\"true\");var i=e.element[0];s(i).not(i).map(function(){return t(this).button(\"widget\")[0]}).removeClass(\"ui-state-active\").attr(\"aria-pressed\",\"false\")}):(this.buttonElement.bind(\"mousedown\"+this.eventNamespace,function(){return r.disabled?!1:(t(this).addClass(\"ui-state-active\"),i=this,void e.document.one(\"mouseup\",function(){i=null}))}).bind(\"mouseup\"+this.eventNamespace,function(){return r.disabled?!1:void t(this).removeClass(\"ui-state-active\")}).bind(\"keydown\"+this.eventNamespace,function(e){return r.disabled?!1:void((e.keyCode===t.ui.keyCode.SPACE||e.keyCode===t.ui.keyCode.ENTER)&&t(this).addClass(\"ui-state-active\"))}).bind(\"keyup\"+this.eventNamespace+\" blur\"+this.eventNamespace,function(){t(this).removeClass(\"ui-state-active\")}),this.buttonElement.is(\"a\")&&this.buttonElement.keyup(function(e){e.keyCode===t.ui.keyCode.SPACE&&t(this).click()})),this._setOption(\"disabled\",r.disabled),this._resetButton()},_determineButtonType:function(){var t,e,i;this.type=this.element.is(\"[type=checkbox]\")?\"checkbox\":this.element.is(\"[type=radio]\")?\"radio\":this.element.is(\"input\")?\"input\":\"button\",\"checkbox\"===this.type||\"radio\"===this.type?(t=this.element.parents().last(),e=\"label[for='\"+this.element.attr(\"id\")+\"']\",this.buttonElement=t.find(e),this.buttonElement.length||(t=t.length?t.siblings():this.element.siblings(),this.buttonElement=t.filter(e),this.buttonElement.length||(this.buttonElement=t.find(e))),this.element.addClass(\"ui-helper-hidden-accessible\"),i=this.element.is(\":checked\"),i&&this.buttonElement.addClass(\"ui-state-active\"),this.buttonElement.prop(\"aria-pressed\",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass(\"ui-helper-hidden-accessible\"),this.buttonElement.removeClass(n+\" ui-state-active \"+r).removeAttr(\"role\").removeAttr(\"aria-pressed\").html(this.buttonElement.find(\".ui-button-text\").html()),this.hasTitle||this.buttonElement.removeAttr(\"title\")},_setOption:function(t,e){return this._super(t,e),\"disabled\"===t?(this.element.prop(\"disabled\",!!e),void(e&&this.buttonElement.removeClass(\"ui-state-focus\"))):void this._resetButton()},refresh:function(){var e=this.element.is(\"input, button\")?this.element.is(\":disabled\"):this.element.hasClass(\"ui-button-disabled\");e!==this.options.disabled&&this._setOption(\"disabled\",e),\"radio\"===this.type?s(this.element[0]).each(function(){t(this).is(\":checked\")?t(this).button(\"widget\").addClass(\"ui-state-active\").attr(\"aria-pressed\",\"true\"):t(this).button(\"widget\").removeClass(\"ui-state-active\").attr(\"aria-pressed\",\"false\")}):\"checkbox\"===this.type&&(this.element.is(\":checked\")?this.buttonElement.addClass(\"ui-state-active\").attr(\"aria-pressed\",\"true\"):this.buttonElement.removeClass(\"ui-state-active\").attr(\"aria-pressed\",\"false\"))},_resetButton:function(){if(\"input\"===this.type)return void(this.options.label&&this.element.val(this.options.label));var e=this.buttonElement.removeClass(r),i=t(\"<span></span>\",this.document[0]).addClass(\"ui-button-text\").html(this.options.label).appendTo(e.empty()).text(),n=this.options.icons,o=n.primary&&n.secondary,s=[];n.primary||n.secondary?(this.options.text&&s.push(\"ui-button-text-icon\"+(o?\"s\":n.primary?\"-primary\":\"-secondary\")),n.primary&&e.prepend(\"<span class='ui-button-icon-primary ui-icon \"+n.primary+\"'></span>\"),n.secondary&&e.append(\"<span class='ui-button-icon-secondary ui-icon \"+n.secondary+\"'></span>\"),this.options.text||(s.push(o?\"ui-button-icons-only\":\"ui-button-icon-only\"),this.hasTitle||e.attr(\"title\",t.trim(i)))):s.push(\"ui-button-text-only\"),e.addClass(s.join(\" \"))}}),t.widget(\"ui.buttonset\",{version:\"1.10.4\",options:{items:\"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)\"},_create:function(){this.element.addClass(\"ui-buttonset\")},_init:function(){this.refresh()},_setOption:function(t,e){\"disabled\"===t&&this.buttons.button(\"option\",t,e),this._super(t,e)},refresh:function(){var e=\"rtl\"===this.element.css(\"direction\");this.buttons=this.element.find(this.options.items).filter(\":ui-button\").button(\"refresh\").end().not(\":ui-button\").button().end().map(function(){return t(this).button(\"widget\")[0]}).removeClass(\"ui-corner-all ui-corner-left ui-corner-right\").filter(\":first\").addClass(e?\"ui-corner-right\":\"ui-corner-left\").end().filter(\":last\").addClass(e?\"ui-corner-left\":\"ui-corner-right\").end().end()},_destroy:function(){this.element.removeClass(\"ui-buttonset\"),this.buttons.map(function(){return t(this).button(\"widget\")[0]}).removeClass(\"ui-corner-left ui-corner-right\").end().button(\"destroy\")}})}(n)},{\"./core\":6,\"./widget\":16,jquery:17}],6:[function(t,e,i){var n=t(\"jquery\");!function(t,e){function i(e,i){var r,o,s,a=e.nodeName.toLowerCase();return\"area\"===a?(r=e.parentNode,o=r.name,e.href&&o&&\"map\"===r.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||i:i)&&n(e)}function n(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return\"hidden\"===t.css(this,\"visibility\")}).length}var r=0,o=/^ui-id-\\d+$/;t.ui=t.ui||{},t.extend(t.ui,{version:\"1.10.4\",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({focus:function(e){return function(i,n){return\"number\"==typeof i?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),n&&n.call(e)},i)}):e.apply(this,arguments)}}(t.fn.focus),scrollParent:function(){var e;return e=t.ui.ie&&/(static|relative)/.test(this.css(\"position\"))||/absolute/.test(this.css(\"position\"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.css(this,\"position\"))&&/(auto|scroll)/.test(t.css(this,\"overflow\")+t.css(this,\"overflow-y\")+t.css(this,\"overflow-x\"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.css(this,\"overflow\")+t.css(this,\"overflow-y\")+t.css(this,\"overflow-x\"))}).eq(0),/fixed/.test(this.css(\"position\"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css(\"zIndex\",i);if(this.length)for(var n,r,o=t(this[0]);o.length&&o[0]!==document;){if(n=o.css(\"position\"),(\"absolute\"===n||\"relative\"===n||\"fixed\"===n)&&(r=parseInt(o.css(\"zIndex\"),10),!isNaN(r)&&0!==r))return r;o=o.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id=\"ui-id-\"+ ++r)})},removeUniqueId:function(){return this.each(function(){o.test(this.id)&&t(this).removeAttr(\"id\")})}}),t.extend(t.expr[\":\"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,\"tabindex\")))},tabbable:function(e){var n=t.attr(e,\"tabindex\"),r=isNaN(n);return(r||n>=0)&&i(e,!r)}}),t(\"<a>\").outerWidth(1).jquery||t.each([\"Width\",\"Height\"],function(i,n){function r(e,i,n,r){return t.each(o,function(){i-=parseFloat(t.css(e,\"padding\"+this))||0,n&&(i-=parseFloat(t.css(e,\"border\"+this+\"Width\"))||0),r&&(i-=parseFloat(t.css(e,\"margin\"+this))||0)}),i}var o=\"Width\"===n?[\"Left\",\"Right\"]:[\"Top\",\"Bottom\"],s=n.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn[\"inner\"+n]=function(i){return i===e?a[\"inner\"+n].call(this):this.each(function(){t(this).css(s,r(this,i)+\"px\")})},t.fn[\"outer\"+n]=function(e,i){return\"number\"!=typeof e?a[\"outer\"+n].call(this,e):this.each(function(){t(this).css(s,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(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\\w.]+/.exec(navigator.userAgent.toLowerCase()),t.support.selectstart=\"onselectstart\"in document.createElement(\"div\"),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?\"selectstart\":\"mousedown\")+\".ui-disableSelection\",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(\".ui-disableSelection\")}}),t.extend(t.ui,{plugin:{add:function(e,i,n){var r,o=t.ui[e].prototype;for(r in n)o.plugins[r]=o.plugins[r]||[],o.plugins[r].push([i,n[r]])},call:function(t,e,i){var n,r=t.plugins[e];if(r&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(n=0;n<r.length;n++)t.options[r[n][0]]&&r[n][1].apply(t.element,i)}},hasScroll:function(e,i){if(\"hidden\"===t(e).css(\"overflow\"))return!1;var n=i&&\"left\"===i?\"scrollLeft\":\"scrollTop\",r=!1;return e[n]>0?!0:(e[n]=1,r=e[n]>0,e[n]=0,r)}})}(n)},{jquery:17}],7:[function(t,e,i){var n=t(\"jquery\");t(\"./core\"),function(t,e){function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId=\"ui-datepicker-div\",this._inlineClass=\"ui-datepicker-inline\",this._appendClass=\"ui-datepicker-append\",this._triggerClass=\"ui-datepicker-trigger\",this._dialogClass=\"ui-datepicker-dialog\",this._disableClass=\"ui-datepicker-disabled\",this._unselectableClass=\"ui-datepicker-unselectable\",this._currentClass=\"ui-datepicker-current-day\",this._dayOverClass=\"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.dpDiv=n(t(\"<div id='\"+this._mainDivId+\"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>\"))}function n(e){var i=\"button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a\";return e.delegate(i,\"mouseout\",function(){t(this).removeClass(\"ui-state-hover\"),-1!==this.className.indexOf(\"ui-datepicker-prev\")&&t(this).removeClass(\"ui-datepicker-prev-hover\"),-1!==this.className.indexOf(\"ui-datepicker-next\")&&t(this).removeClass(\"ui-datepicker-next-hover\")}).delegate(i,\"mouseover\",function(){t.datepicker._isDisabledDatepicker(o.inline?e.parent()[0]:o.input[0])||(t(this).parents(\".ui-datepicker-calendar\").find(\"a\").removeClass(\"ui-state-hover\"),t(this).addClass(\"ui-state-hover\"),-1!==this.className.indexOf(\"ui-datepicker-prev\")&&t(this).addClass(\"ui-datepicker-prev-hover\"),-1!==this.className.indexOf(\"ui-datepicker-next\")&&t(this).addClass(\"ui-datepicker-next-hover\"))})}function r(e,i){t.extend(e,i);for(var n in i)null==i[n]&&(e[n]=i[n]);return e}t.extend(t.ui,{datepicker:{version:\"1.10.4\"}});var o,s=\"datepicker\";t.extend(i.prototype,{markerClassName:\"hasDatepicker\",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return r(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,r,o;n=e.nodeName.toLowerCase(),r=\"div\"===n||\"span\"===n,e.id||(this.uuid+=1,e.id=\"dp\"+this.uuid),o=this._newInst(t(e),r),o.settings=t.extend({},i||{}),\"input\"===n?this._connectDatepicker(e,o):r&&this._inlineDatepicker(e,o)},_newInst:function(e,i){var r=e[0].id.replace(/([^A-Za-z0-9_\\-])/g,\"\\\\\\\\$1\");return{id:r,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?n(t(\"<div class='\"+this._inlineClass+\" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>\")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),t.data(e,s,i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var n,r,o,s=this._get(i,\"appendText\"),a=this._get(i,\"isRTL\");i.append&&i.append.remove(),s&&(i.append=t(\"<span class='\"+this._appendClass+\"'>\"+s+\"</span>\"),e[a?\"before\":\"after\"](i.append)),e.unbind(\"focus\",this._showDatepicker),i.trigger&&i.trigger.remove(),n=this._get(i,\"showOn\"),(\"focus\"===n||\"both\"===n)&&e.focus(this._showDatepicker),(\"button\"===n||\"both\"===n)&&(r=this._get(i,\"buttonText\"),o=this._get(i,\"buttonImage\"),i.trigger=t(this._get(i,\"buttonImageOnly\")?t(\"<img/>\").addClass(this._triggerClass).attr({src:o,alt:r,title:r}):t(\"<button type='button'></button>\").addClass(this._triggerClass).html(o?t(\"<img/>\").attr({src:o,alt:r,title:r}):r)),\n",
       "                e[a?\"before\":\"after\"](i.trigger),i.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,i,n,r,o=new Date(2009,11,20),s=this._get(t,\"dateFormat\");s.match(/[DM]/)&&(e=function(t){for(i=0,n=0,r=0;r<t.length;r++)t[r].length>i&&(i=t[r].length,n=r);return n},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,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,s,i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css(\"display\",\"block\"))},_dialogDatepicker:function(e,i,n,o,a){var l,u,c,h,p,d=this._dialogInst;return d||(this.uuid+=1,l=\"dp\"+this.uuid,this._dialogInput=t(\"<input type='text' id='\"+l+\"' style='position: absolute; top: -100px; width: 0px;'/>\"),this._dialogInput.keydown(this._doKeyDown),t(\"body\").append(this._dialogInput),d=this._dialogInst=this._newInst(this._dialogInput,!1),d.settings={},t.data(this._dialogInput[0],s,d)),r(d.settings,o||{}),i=i&&i.constructor===Date?this._formatDate(d,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(u=document.documentElement.clientWidth,c=document.documentElement.clientHeight,h=document.documentElement.scrollLeft||document.body.scrollLeft,p=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[u/2-100+h,c/2-150+p]),this._dialogInput.css(\"left\",this._pos[0]+20+\"px\").css(\"top\",this._pos[1]+\"px\"),d.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],s,d),this},_destroyDatepicker:function(e){var i,n=t(e),r=t.data(e,s);n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,s),\"input\"===i?(r.append.remove(),r.trigger.remove(),n.removeClass(this.markerClassName).unbind(\"focus\",this._showDatepicker).unbind(\"keydown\",this._doKeyDown).unbind(\"keypress\",this._doKeyPress).unbind(\"keyup\",this._doKeyUp)):(\"div\"===i||\"span\"===i)&&n.removeClass(this.markerClassName).empty())},_enableDatepicker:function(e){var i,n,r=t(e),o=t.data(e,s);r.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),\"input\"===i?(e.disabled=!1,o.trigger.filter(\"button\").each(function(){this.disabled=!1}).end().filter(\"img\").css({opacity:\"1.0\",cursor:\"\"})):(\"div\"===i||\"span\"===i)&&(n=r.children(\".\"+this._inlineClass),n.children().removeClass(\"ui-state-disabled\"),n.find(\"select.ui-datepicker-month, select.ui-datepicker-year\").prop(\"disabled\",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,n,r=t(e),o=t.data(e,s);r.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),\"input\"===i?(e.disabled=!0,o.trigger.filter(\"button\").each(function(){this.disabled=!0}).end().filter(\"img\").css({opacity:\"0.5\",cursor:\"default\"})):(\"div\"===i||\"span\"===i)&&(n=r.children(\".\"+this._inlineClass),n.children().addClass(\"ui-state-disabled\"),n.find(\"select.ui-datepicker-month, select.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,s)}catch(i){throw\"Missing instance data for this datepicker\"}},_optionDatepicker:function(i,n,o){var s,a,l,u,c=this._getInst(i);return 2===arguments.length&&\"string\"==typeof n?\"defaults\"===n?t.extend({},t.datepicker._defaults):c?\"all\"===n?t.extend({},c.settings):this._get(c,n):null:(s=n||{},\"string\"==typeof n&&(s={},s[n]=o),void(c&&(this._curInst===c&&this._hideDatepicker(),a=this._getDateDatepicker(i,!0),l=this._getMinMaxDate(c,\"min\"),u=this._getMinMaxDate(c,\"max\"),r(c.settings,s),null!==l&&s.dateFormat!==e&&s.minDate===e&&(c.settings.minDate=this._formatDate(c,l)),null!==u&&s.dateFormat!==e&&s.maxDate===e&&(c.settings.maxDate=this._formatDate(c,u)),\"disabled\"in s&&(s.disabled?this._disableDatepicker(i):this._enableDatepicker(i)),this._attachments(t(i),c),this._autoSize(c),this._setDate(c,a),this._updateAlternate(c),this._updateDatepicker(c))))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,n,r,o=t.datepicker._getInst(e.target),s=!0,a=o.dpDiv.is(\".ui-datepicker-rtl\");if(o._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),s=!1;break;case 13:return r=t(\"td.\"+t.datepicker._dayOverClass+\":not(.\"+t.datepicker._currentClass+\")\",o.dpDiv),r[0]&&t.datepicker._selectDay(e.target,o.selectedMonth,o.selectedYear,r[0]),i=t.datepicker._get(o,\"onSelect\"),i?(n=t.datepicker._formatDate(o),i.apply(o.input?o.input[0]:null,[n,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 i,n,r=t.datepicker._getInst(e.target);return t.datepicker._get(r,\"constrainInput\")?(i=t.datepicker._possibleChars(t.datepicker._get(r,\"dateFormat\")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||\" \">n||!i||i.indexOf(n)>-1):void 0},_doKeyUp:function(e){var i,n=t.datepicker._getInst(e.target);if(n.input.val()!==n.lastVal)try{i=t.datepicker.parseDate(t.datepicker._get(n,\"dateFormat\"),n.input?n.input.val():null,t.datepicker._getFormatConfig(n)),i&&(t.datepicker._setDateFromField(n),t.datepicker._updateAlternate(n),t.datepicker._updateDatepicker(n))}catch(r){}return!0},_showDatepicker:function(e){if(e=e.target||e,\"input\"!==e.nodeName.toLowerCase()&&(e=t(\"input\",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var i,n,o,s,a,l,u;i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),n=t.datepicker._get(i,\"beforeShow\"),o=n?n.apply(e,[e,i]):{},o!==!1&&(r(i.settings,o),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=\"\"),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),s=!1,t(e).parents().each(function(){return s|=\"fixed\"===t(this).css(\"position\"),!s}),a={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:\"absolute\",display:\"block\",top:\"-1000px\"}),t.datepicker._updateDatepicker(i),a=t.datepicker._checkOffset(i,a,s),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?\"static\":s?\"fixed\":\"absolute\",display:\"none\",left:a.left+\"px\",top:a.top+\"px\"}),i.inline||(l=t.datepicker._get(i,\"showAnim\"),u=t.datepicker._get(i,\"duration\"),i.dpDiv.zIndex(t(e).zIndex()+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[l]?i.dpDiv.show(l,t.datepicker._get(i,\"showOptions\"),u):i.dpDiv[l||\"show\"](l?u:null),t.datepicker._shouldFocusInput(i)&&i.input.focus(),t.datepicker._curInst=i))}},_updateDatepicker:function(e){this.maxRows=4,o=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e),e.dpDiv.find(\".\"+this._dayOverClass+\" a\").mouseover();var i,n=this._getNumberOfMonths(e),r=n[1],s=17;e.dpDiv.removeClass(\"ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4\").width(\"\"),r>1&&e.dpDiv.addClass(\"ui-datepicker-multi-\"+r).css(\"width\",s*r+\"em\"),e.dpDiv[(1!==n[0]||1!==n[1]?\"add\":\"remove\")+\"Class\"](\"ui-datepicker-multi\"),e.dpDiv[(this._get(e,\"isRTL\")?\"add\":\"remove\")+\"Class\"](\"ui-datepicker-rtl\"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.focus(),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find(\"select.ui-datepicker-year:first\").replaceWith(e.yearshtml),i=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,i,n){var r=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+(n?0:t(document).scrollLeft()),u=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,\"isRTL\")?r-s:0,i.left-=n&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&&i.top===e.input.offset().top+a?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+r>l&&l>r?Math.abs(i.left+r-l):0),i.top-=Math.min(i.top,i.top+o>u&&u>o?Math.abs(o+a):0),i},_findPos:function(e){for(var i,n=this._getInst(e),r=this._get(n,\"isRTL\");e&&(\"hidden\"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[r?\"previousSibling\":\"nextSibling\"];return i=t(e).offset(),[i.left,i.top]},_hideDatepicker:function(e){var i,n,r,o,a=this._curInst;!a||e&&a!==t.data(e,s)||this._datepickerShowing&&(i=this._get(a,\"showAnim\"),n=this._get(a,\"duration\"),r=function(){t.datepicker._tidyDialog(a)},t.effects&&(t.effects.effect[i]||t.effects[i])?a.dpDiv.hide(i,t.datepicker._get(a,\"showOptions\"),n,r):a.dpDiv[\"slideDown\"===i?\"slideUp\":\"fadeIn\"===i?\"fadeOut\":\"hide\"](i?n:null,r),i||r(),this._datepickerShowing=!1,o=this._get(a,\"onClose\"),o&&o.apply(a.input?a.input[0]:null,[a.input?a.input.val():\"\",a]),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(\".ui-datepicker-calendar\")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id!==t.datepicker._mainDivId&&0===i.parents(\"#\"+t.datepicker._mainDivId).length&&!i.hasClass(t.datepicker.markerClassName)&&!i.closest(\".\"+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||i.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==n)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var r=t(e),o=this._getInst(r[0]);this._isDisabledDatepicker(r[0])||(this._adjustInstDate(o,i+(\"M\"===n?this._get(o,\"showCurrentAtPos\"):0),n),this._updateDatepicker(o))},_gotoToday:function(e){var i,n=t(e),r=this._getInst(n[0]);this._get(r,\"gotoCurrent\")&&r.currentDay?(r.selectedDay=r.currentDay,r.drawMonth=r.selectedMonth=r.currentMonth,r.drawYear=r.selectedYear=r.currentYear):(i=new Date,r.selectedDay=i.getDate(),r.drawMonth=r.selectedMonth=i.getMonth(),r.drawYear=r.selectedYear=i.getFullYear()),this._notifyChange(r),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var r=t(e),o=this._getInst(r[0]);o[\"selected\"+(\"M\"===n?\"Month\":\"Year\")]=o[\"draw\"+(\"M\"===n?\"Month\":\"Year\")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(r)},_selectDay:function(e,i,n,r){var o,s=t(e);t(r).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||(o=this._getInst(s[0]),o.selectedDay=o.currentDay=t(\"a\",r).html(),o.selectedMonth=o.currentMonth=i,o.selectedYear=o.currentYear=n,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,\"\")},_selectDate:function(e,i){var n,r=t(e),o=this._getInst(r[0]);i=null!=i?i:this._formatDate(o),o.input&&o.input.val(i),this._updateAlternate(o),n=this._get(o,\"onSelect\"),n?n.apply(o.input?o.input[0]:null,[i,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 i,n,r,o=this._get(e,\"altField\");o&&(i=this._get(e,\"altFormat\")||this._get(e,\"dateFormat\"),n=this._getDate(e),r=this.formatDate(i,n,this._getFormatConfig(e)),t(o).each(function(){t(this).val(r)}))},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,\"\"]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw\"Invalid arguments\";if(i=\"object\"==typeof i?i.toString():i+\"\",\"\"===i)return null;var r,o,s,a,l=0,u=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,c=\"string\"!=typeof u?u:(new Date).getFullYear()%100+parseInt(u,10),h=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,p=(n?n.dayNames:null)||this._defaults.dayNames,d=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,_=-1,v=-1,y=!1,b=function(t){var i=r+1<e.length&&e.charAt(r+1)===t;return i&&r++,i},w=function(t){var e=b(t),n=\"@\"===t?14:\"!\"===t?20:\"y\"===t&&e?4:\"o\"===t?3:2,r=new RegExp(\"^\\\\d{1,\"+n+\"}\"),o=i.substring(l).match(r);if(!o)throw\"Missing number at position \"+l;return l+=o[0].length,parseInt(o[0],10)},x=function(e,n,r){var o=-1,s=t.map(b(e)?r:n,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 n=e[1];return i.substr(l,n.length).toLowerCase()===n.toLowerCase()?(o=e[0],l+=n.length,!1):void 0}),-1!==o)return o+1;throw\"Unknown name at position \"+l},k=function(){if(i.charAt(l)!==e.charAt(r))throw\"Unexpected literal at position \"+l;l++};for(r=0;r<e.length;r++)if(y)\"'\"!==e.charAt(r)||b(\"'\")?k():y=!1;else switch(e.charAt(r)){case\"d\":_=w(\"d\");break;case\"D\":x(\"D\",h,p);break;case\"o\":v=w(\"o\");break;case\"m\":m=w(\"m\");break;case\"M\":m=x(\"M\",d,f);break;case\"y\":g=w(\"y\");break;case\"@\":a=new Date(w(\"@\")),g=a.getFullYear(),m=a.getMonth()+1,_=a.getDate();break;case\"!\":a=new Date((w(\"!\")-this._ticksTo1970)/1e4),g=a.getFullYear(),m=a.getMonth()+1,_=a.getDate();break;case\"'\":b(\"'\")?k():y=!0;break;default:k()}if(l<i.length&&(s=i.substr(l),!/^\\s+/.test(s)))throw\"Extra/unparsed characters found in date: \"+s;if(-1===g?g=(new Date).getFullYear():100>g&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c>=g?0:-100)),v>-1)for(m=1,_=v;;){if(o=this._getDaysInMonth(g,m-1),o>=_)break;m++,_-=o}if(a=this._daylightSavingAdjust(new Date(g,m-1,_)),a.getFullYear()!==g||a.getMonth()+1!==m||a.getDate()!==_)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,i){if(!e)return\"\";var n,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,s=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=n+1<t.length&&t.charAt(n+1)===e;return i&&n++,i},u=function(t,e,i){var n=\"\"+e;if(l(t))for(;n.length<i;)n=\"0\"+n;return n},c=function(t,e,i,n){return l(t)?n[e]:i[e]},h=\"\",p=!1;if(e)for(n=0;n<t.length;n++)if(p)\"'\"!==t.charAt(n)||l(\"'\")?h+=t.charAt(n):p=!1;else switch(t.charAt(n)){case\"d\":h+=u(\"d\",e.getDate(),2);break;case\"D\":h+=c(\"D\",e.getDay(),r,o);break;case\"o\":h+=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\":h+=u(\"m\",e.getMonth()+1,2);break;case\"M\":h+=c(\"M\",e.getMonth(),s,a);break;case\"y\":h+=l(\"y\")?e.getFullYear():(e.getYear()%100<10?\"0\":\"\")+e.getYear()%100;break;case\"@\":h+=e.getTime();break;case\"!\":h+=1e4*e.getTime()+this._ticksTo1970;break;case\"'\":l(\"'\")?h+=\"'\":p=!0;break;default:h+=t.charAt(n)}return h},_possibleChars:function(t){var e,i=\"\",n=!1,r=function(i){var n=e+1<t.length&&t.charAt(e+1)===i;return n&&e++,n};for(e=0;e<t.length;e++)if(n)\"'\"!==t.charAt(e)||r(\"'\")?i+=t.charAt(e):n=!1;else switch(t.charAt(e)){case\"d\":case\"m\":case\"y\":case\"@\":i+=\"0123456789\";break;case\"D\":case\"M\":return null;case\"'\":r(\"'\")?i+=\"'\":n=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,i){return t.settings[i]!==e?t.settings[i]:this._defaults[i]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,\"dateFormat\"),n=t.lastVal=t.input?t.input.val():null,r=this._getDefaultDate(t),o=r,s=this._getFormatConfig(t);try{o=this.parseDate(i,n,s)||r}catch(a){n=e?\"\":n}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=n?o.getDate():0,t.currentMonth=n?o.getMonth():0,t.currentYear=n?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,i,n){var r=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},o=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,\"dateFormat\"),i,t.datepicker._getFormatConfig(e))}catch(n){}for(var r=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,o=r.getFullYear(),s=r.getMonth(),a=r.getDate(),l=/([+\\-]?[0-9]+)\\s*(d|D|w|W|m|M|y|Y)?/g,u=l.exec(i);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(i)}return new Date(o,s,a)},s=null==i||\"\"===i?n:\"string\"==typeof i?o(i):\"number\"==typeof i?isNaN(i)?n:r(i):new Date(i.getTime());return s=s&&\"Invalid Date\"===s.toString()?n: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,i){var n=!e,r=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(),r===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?\"\":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 i=this._get(e,\"stepMonths\"),n=\"#\"+e.id.replace(/\\\\\\\\/g,\"\\\\\");e.dpDiv.find(\"[data-handler]\").map(function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,\"M\")},next:function(){t.datepicker._adjustDate(n,+i,\"M\")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute(\"data-month\"),+this.getAttribute(\"data-year\"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,\"M\"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,\"Y\"),!1}};t(this).bind(this.getAttribute(\"data-event\"),e[this.getAttribute(\"data-handler\")])})},_generateHTML:function(t){var e,i,n,r,o,s,a,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D,T,S,A,P,I,E,R,N,z,O,j,F,H,L=new Date,W=this._daylightSavingAdjust(new Date(L.getFullYear(),L.getMonth(),L.getDate())),B=this._get(t,\"isRTL\"),Y=this._get(t,\"showButtonPanel\"),$=this._get(t,\"hideIfNoPrevNext\"),V=this._get(t,\"navigationAsDateFormat\"),U=this._getNumberOfMonths(t),q=this._get(t,\"showCurrentAtPos\"),G=this._get(t,\"stepMonths\"),X=1!==U[0]||1!==U[1],Z=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),J=this._getMinMaxDate(t,\"min\"),K=this._getMinMaxDate(t,\"max\"),Q=t.drawMonth-q,tt=t.drawYear;if(0>Q&&(Q+=12,tt--),K)for(e=this._daylightSavingAdjust(new Date(K.getFullYear(),K.getMonth()-U[0]*U[1]+1,K.getDate())),e=J&&J>e?J:e;this._daylightSavingAdjust(new Date(tt,Q,1))>e;)Q--,0>Q&&(Q=11,tt--);for(t.drawMonth=Q,t.drawYear=tt,i=this._get(t,\"prevText\"),i=V?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,Q-G,1)),this._getFormatConfig(t)):i,n=this._canAdjustMonth(t,-1,tt,Q)?\"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='\"+i+\"'><span class='ui-icon ui-icon-circle-triangle-\"+(B?\"e\":\"w\")+\"'>\"+i+\"</span></a>\":$?\"\":\"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='\"+i+\"'><span class='ui-icon ui-icon-circle-triangle-\"+(B?\"e\":\"w\")+\"'>\"+i+\"</span></a>\",r=this._get(t,\"nextText\"),r=V?this.formatDate(r,this._daylightSavingAdjust(new Date(tt,Q+G,1)),this._getFormatConfig(t)):r,o=this._canAdjustMonth(t,1,tt,Q)?\"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='\"+r+\"'><span class='ui-icon ui-icon-circle-triangle-\"+(B?\"w\":\"e\")+\"'>\"+r+\"</span></a>\":$?\"\":\"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='\"+r+\"'><span class='ui-icon ui-icon-circle-triangle-\"+(B?\"w\":\"e\")+\"'>\"+r+\"</span></a>\",s=this._get(t,\"currentText\"),a=this._get(t,\"gotoCurrent\")&&t.currentDay?Z:W,s=V?this.formatDate(s,a,this._getFormatConfig(t)):s,l=t.inline?\"\":\"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>\"+this._get(t,\"closeText\")+\"</button>\",u=Y?\"<div class='ui-datepicker-buttonpane ui-widget-content'>\"+(B?l:\"\")+(this._isInRange(t,a)?\"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>\"+s+\"</button>\":\"\")+(B?\"\":l)+\"</div>\":\"\",c=parseInt(this._get(t,\"firstDay\"),10),c=isNaN(c)?0:c,h=this._get(t,\"showWeek\"),p=this._get(t,\"dayNames\"),d=this._get(t,\"dayNamesMin\"),f=this._get(t,\"monthNames\"),g=this._get(t,\"monthNamesShort\"),m=this._get(t,\"beforeShowDay\"),_=this._get(t,\"showOtherMonths\"),v=this._get(t,\"selectOtherMonths\"),y=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(tt,Q,t.selectedDay)),D=\" ui-corner-all\",T=\"\",X){if(T+=\"<div class='ui-datepicker-group\",U[1]>1)switch(C){case 0:T+=\" ui-datepicker-group-first\",D=\" ui-corner-\"+(B?\"right\":\"left\");break;case U[1]-1:T+=\" ui-datepicker-group-last\",D=\" ui-corner-\"+(B?\"left\":\"right\");break;default:T+=\" ui-datepicker-group-middle\",D=\"\"}T+=\"'>\"}for(T+=\"<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix\"+D+\"'>\"+(/all|left/.test(D)&&0===x?B?o:n:\"\")+(/all|right/.test(D)&&0===x?B?n:o:\"\")+this._generateMonthYearHeader(t,Q,tt,J,K,x>0||C>0,f,g)+\"</div><table class='ui-datepicker-calendar'><thead><tr>\",S=h?\"<th class='ui-datepicker-week-col'>\"+this._get(t,\"weekHeader\")+\"</th>\":\"\",w=0;7>w;w++)A=(w+c)%7,S+=\"<th\"+((w+c+6)%7>=5?\" class='ui-datepicker-week-end'\":\"\")+\"><span title='\"+p[A]+\"'>\"+d[A]+\"</span></th>\";for(T+=S+\"</tr></thead><tbody>\",P=this._getDaysInMonth(tt,Q),tt===t.selectedYear&&Q===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,P)),I=(this._getFirstDayOfMonth(tt,Q)-c+7)%7,E=Math.ceil((I+P)/7),R=X&&this.maxRows>E?this.maxRows:E,this.maxRows=R,N=this._daylightSavingAdjust(new Date(tt,Q,1-I)),z=0;R>z;z++){for(T+=\"<tr>\",O=h?\"<td class='ui-datepicker-week-col'>\"+this._get(t,\"calculateWeek\")(N)+\"</td>\":\"\",w=0;7>w;w++)j=m?m.apply(t.input?t.input[0]:null,[N]):[!0,\"\"],F=N.getMonth()!==Q,H=F&&!v||!j[0]||J&&J>N||K&&N>K,O+=\"<td class='\"+((w+c+6)%7>=5?\" ui-datepicker-week-end\":\"\")+(F?\" ui-datepicker-other-month\":\"\")+(N.getTime()===M.getTime()&&Q===t.selectedMonth&&t._keyEvent||y.getTime()===N.getTime()&&y.getTime()===M.getTime()?\" \"+this._dayOverClass:\"\")+(H?\" \"+this._unselectableClass+\" ui-state-disabled\":\"\")+(F&&!_?\"\":\" \"+j[1]+(N.getTime()===Z.getTime()?\" \"+this._currentClass:\"\")+(N.getTime()===W.getTime()?\" ui-datepicker-today\":\"\"))+\"'\"+(F&&!_||!j[2]?\"\":\" title='\"+j[2].replace(/'/g,\"&#39;\")+\"'\")+(H?\"\":\" data-handler='selectDay' data-event='click' data-month='\"+N.getMonth()+\"' data-year='\"+N.getFullYear()+\"'\")+\">\"+(F&&!_?\"&#xa0;\":H?\"<span class='ui-state-default'>\"+N.getDate()+\"</span>\":\"<a class='ui-state-default\"+(N.getTime()===W.getTime()?\" ui-state-highlight\":\"\")+(N.getTime()===Z.getTime()?\" ui-state-active\":\"\")+(F?\" ui-priority-secondary\":\"\")+\"' href='#'>\"+N.getDate()+\"</a>\")+\"</td>\",N.setDate(N.getDate()+1),N=this._daylightSavingAdjust(N);T+=O+\"</tr>\"}Q++,Q>11&&(Q=0,tt++),T+=\"</tbody></table>\"+(X?\"</div>\"+(U[0]>0&&C===U[1]-1?\"<div class='ui-datepicker-row-break'></div>\":\"\"):\"\"),k+=T}b+=k}return b+=u,t._keyEvent=!1,b},_generateMonthYearHeader:function(t,e,i,n,r,o,s,a){var l,u,c,h,p,d,f,g,m=this._get(t,\"changeMonth\"),_=this._get(t,\"changeYear\"),v=this._get(t,\"showMonthAfterYear\"),y=\"<div class='ui-datepicker-title'>\",b=\"\";if(o||!m)b+=\"<span class='ui-datepicker-month'>\"+s[e]+\"</span>\";else{for(l=n&&n.getFullYear()===i,u=r&&r.getFullYear()===i,b+=\"<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>\",c=0;12>c;c++)(!l||c>=n.getMonth())&&(!u||c<=r.getMonth())&&(b+=\"<option value='\"+c+\"'\"+(c===e?\" selected='selected'\":\"\")+\">\"+a[c]+\"</option>\");b+=\"</select>\"}if(v||(y+=b+(!o&&m&&_?\"\":\"&#xa0;\")),!t.yearshtml)if(t.yearshtml=\"\",o||!_)y+=\"<span class='ui-datepicker-year'>\"+i+\"</span>\";else{for(h=this._get(t,\"yearRange\").split(\":\"),p=(new Date).getFullYear(),d=function(t){var e=t.match(/c[+\\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\\-].*/)?p+parseInt(t,10):parseInt(t,10);return isNaN(e)?p:e},f=d(h[0]),g=Math.max(f,d(h[1]||\"\")),f=n?Math.max(f,n.getFullYear()):f,g=r?Math.min(g,r.getFullYear()):g,t.yearshtml+=\"<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>\";g>=f;f++)t.yearshtml+=\"<option value='\"+f+\"'\"+(f===i?\" selected='selected'\":\"\")+\">\"+f+\"</option>\";t.yearshtml+=\"</select>\",y+=t.yearshtml,t.yearshtml=null}return y+=this._get(t,\"yearSuffix\"),v&&(y+=(!o&&m&&_?\"\":\"&#xa0;\")+b),y+=\"</div>\"},_adjustInstDate:function(t,e,i){var n=t.drawYear+(\"Y\"===i?e:0),r=t.drawMonth+(\"M\"===i?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(n,r))+(\"D\"===i?e:0),s=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,r,o)));t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),(\"M\"===i||\"Y\"===i)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,\"min\"),n=this._getMinMaxDate(t,\"max\"),r=i&&i>e?i:e;return n&&r>n?n:r},_notifyChange:function(t){var e=this._get(t,\"onChangeMonthYear\");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,\"numberOfMonths\");return null==e?[1,1]:\"number\"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+\"Date\"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var r=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(i,n+(0>e?e:r[0]*r[1]),1));return 0>e&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var i,n,r=this._getMinMaxDate(t,\"min\"),o=this._getMinMaxDate(t,\"max\"),s=null,a=null,l=this._get(t,\"yearRange\");return l&&(i=l.split(\":\"),n=(new Date).getFullYear(),s=parseInt(i[0],10),a=parseInt(i[1],10),i[0].match(/[+\\-].*/)&&(s+=n),i[1].match(/[+\\-].*/)&&(a+=n)),(!r||e.getTime()>=r.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,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var r=e?\"object\"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,\"dateFormat\"),r,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).mousedown(t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t(\"#\"+t.datepicker._mainDivId).length&&t(\"body\").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return\"string\"!=typeof e||\"isDisabled\"!==e&&\"getDate\"!==e&&\"widget\"!==e?\"option\"===e&&2===arguments.length&&\"string\"==typeof arguments[1]?t.datepicker[\"_\"+e+\"Datepicker\"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){\"string\"==typeof e?t.datepicker[\"_\"+e+\"Datepicker\"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker[\"_\"+e+\"Datepicker\"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new i,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version=\"1.10.4\"}(n)},{\"./core\":6,jquery:17}],8:[function(t,e,i){var n=t(\"jquery\");t(\"./core\"),t(\"./mouse\"),t(\"./widget\"),function(t,e){t.widget(\"ui.draggable\",t.ui.mouse,{version:\"1.10.4\",widgetEventPrefix:\"drag\",options:{addClasses:!0,appendTo:\"parent\",axis:!1,connectToSortable:!1,containment:!1,cursor:\"auto\",cursorAt:!1,grid:!1,handle:!1,helper:\"original\",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:\"default\",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:\"both\",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){\"original\"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css(\"position\"))||(this.element[0].style.position=\"relative\"),this.options.addClasses&&this.element.addClass(\"ui-draggable\"),this.options.disabled&&this.element.addClass(\"ui-draggable-disabled\"),this._mouseInit()},_destroy:function(){this.element.removeClass(\"ui-draggable ui-draggable-dragging ui-draggable-disabled\"),\n",
       "                this._mouseDestroy()},_mouseCapture:function(e){var i=this.options;return this.helper||i.disabled||t(e.target).closest(\".ui-resizable-handle\").length>0?!1:(this.handle=this._getHandle(e),this.handle?(t(i.iframeFix===!0?\"iframe\":i.iframeFix).each(function(){t(\"<div class='ui-draggable-iframeFix' style='background: #fff;'></div>\").css({width:this.offsetWidth+\"px\",height:this.offsetHeight+\"px\",position:\"absolute\",opacity:\"0.001\",zIndex:1e3}).css(t(this).offset()).appendTo(\"body\")}),!0):!1)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass(\"ui-draggable-dragging\"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css(\"position\"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css(\"position\"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger(\"start\",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,i){if(\"fixed\"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo(\"absolute\"),!i){var n=this._uiHash();if(this._trigger(\"drag\",e,n)===!1)return this._mouseUp({}),!1;this.position=n.position}return this.options.axis&&\"y\"===this.options.axis||(this.helper[0].style.left=this.position.left+\"px\"),this.options.axis&&\"x\"===this.options.axis||(this.helper[0].style.top=this.position.top+\"px\"),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),\"original\"!==this.options.helper||t.contains(this.element[0].ownerDocument,this.element[0])?(\"invalid\"===this.options.revert&&!n||\"valid\"===this.options.revert&&n||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger(\"stop\",e)!==!1&&i._clear()}):this._trigger(\"stop\",e)!==!1&&this._clear(),!1):!1},_mouseUp:function(e){return t(\"div.ui-draggable-iframeFix\").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(\".ui-draggable-dragging\")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):\"clone\"===i.helper?this.element.clone().removeAttr(\"id\"):this.element;return n.parents(\"body\").length||n.appendTo(\"parent\"===i.appendTo?this.element[0].parentNode:i.appendTo),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css(\"position\"))||n.css(\"position\",\"absolute\"),n},_adjustOffsetFromHelper:function(e){\"string\"==typeof e&&(e=e.split(\" \")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),\"left\"in e&&(this.offset.click.left=e.left+this.margins.left),\"right\"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),\"top\"in e&&(this.offset.click.top=e.top+this.margins.top),\"bottom\"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){var e=this.offsetParent.offset();return\"absolute\"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&\"html\"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css(\"borderTopWidth\"),10)||0),left:e.left+(parseInt(this.offsetParent.css(\"borderLeftWidth\"),10)||0)}},_getRelativeOffset:function(){if(\"relative\"===this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css(\"top\"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css(\"left\"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css(\"marginLeft\"),10)||0,top:parseInt(this.element.css(\"marginTop\"),10)||0,right:parseInt(this.element.css(\"marginRight\"),10)||0,bottom:parseInt(this.element.css(\"marginBottom\"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options;return r.containment?\"window\"===r.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):\"document\"===r.containment?void(this.containment=[0,0,t(document).width()-this.helperProportions.width-this.margins.left,(t(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):r.containment.constructor===Array?void(this.containment=r.containment):(\"parent\"===r.containment&&(r.containment=this.helper[0].parentNode),i=t(r.containment),n=i[0],void(n&&(e=\"hidden\"!==i.css(\"overflow\"),this.containment=[(parseInt(i.css(\"borderLeftWidth\"),10)||0)+(parseInt(i.css(\"paddingLeft\"),10)||0),(parseInt(i.css(\"borderTopWidth\"),10)||0)+(parseInt(i.css(\"paddingTop\"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css(\"borderRightWidth\"),10)||0)-(parseInt(i.css(\"paddingRight\"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css(\"borderBottomWidth\"),10)||0)-(parseInt(i.css(\"paddingBottom\"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i))):void(this.containment=null)},_convertPositionTo:function(e,i){i||(i=this.position);var n=\"absolute\"===e?1:-1,r=\"absolute\"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:r.scrollTop(),left:r.scrollLeft()}),{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-(\"fixed\"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-(\"fixed\"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*n}},_generatePosition:function(e){var i,n,r,o,s=this.options,a=\"absolute\"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=e.pageX,u=e.pageY;return this.offset.scroll||(this.offset.scroll={top:a.scrollTop(),left:a.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(n=this.relative_container.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,e.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(u=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(u=i[3]+this.offset.click.top)),s.grid&&(r=s.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,u=i?r-this.offset.click.top>=i[1]||r-this.offset.click.top>i[3]?r:r-this.offset.click.top>=i[1]?r-s.grid[1]:r+s.grid[1]:r,o=s.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,l=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-s.grid[0]:o+s.grid[0]:o)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(\"fixed\"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(\"fixed\"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass(\"ui-draggable-dragging\"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n]),\"drag\"===e&&(this.positionAbs=this._convertPositionTo(\"absolute\")),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add(\"draggable\",\"connectToSortable\",{start:function(e,i){var n=t(this).data(\"ui-draggable\"),r=n.options,o=t.extend({},i,{item:n.element});n.sortables=[],t(r.connectToSortable).each(function(){var i=t.data(this,\"ui-sortable\");i&&!i.options.disabled&&(n.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger(\"activate\",e,o))})},stop:function(e,i){var n=t(this).data(\"ui-draggable\"),r=t.extend({},i,{item:n.element});t.each(n.sortables,function(){this.instance.isOver?(this.instance.isOver=0,n.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,\"original\"===n.options.helper&&this.instance.currentItem.css({top:\"auto\",left:\"auto\"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger(\"deactivate\",e,r))})},drag:function(e,i){var n=t(this).data(\"ui-draggable\"),r=this;t.each(n.sortables,function(){var o=!1,s=this;this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(o=!0,t.each(n.sortables,function(){return this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this!==s&&this.instance._intersectsWith(this.instance.containerCache)&&t.contains(s.instance.element[0],this.instance.element[0])&&(o=!1),o})),o?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(r).clone().removeAttr(\"id\").appendTo(this.instance.element).data(\"ui-sortable-item\",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=n.offset.click.top,this.instance.offset.click.left=n.offset.click.left,this.instance.offset.parent.left-=n.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=n.offset.parent.top-this.instance.offset.parent.top,n._trigger(\"toSortable\",e),n.dropped=this.instance.element,n.currentItem=n.element,this.instance.fromOutside=n),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger(\"out\",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),n._trigger(\"fromSortable\",e),n.dropped=!1)})}}),t.ui.plugin.add(\"draggable\",\"cursor\",{start:function(){var e=t(\"body\"),i=t(this).data(\"ui-draggable\").options;e.css(\"cursor\")&&(i._cursor=e.css(\"cursor\")),e.css(\"cursor\",i.cursor)},stop:function(){var e=t(this).data(\"ui-draggable\").options;e._cursor&&t(\"body\").css(\"cursor\",e._cursor)}}),t.ui.plugin.add(\"draggable\",\"opacity\",{start:function(e,i){var n=t(i.helper),r=t(this).data(\"ui-draggable\").options;n.css(\"opacity\")&&(r._opacity=n.css(\"opacity\")),n.css(\"opacity\",r.opacity)},stop:function(e,i){var n=t(this).data(\"ui-draggable\").options;n._opacity&&t(i.helper).css(\"opacity\",n._opacity)}}),t.ui.plugin.add(\"draggable\",\"scroll\",{start:function(){var e=t(this).data(\"ui-draggable\");e.scrollParent[0]!==document&&\"HTML\"!==e.scrollParent[0].tagName&&(e.overflowOffset=e.scrollParent.offset())},drag:function(e){var i=t(this).data(\"ui-draggable\"),n=i.options,r=!1;i.scrollParent[0]!==document&&\"HTML\"!==i.scrollParent[0].tagName?(n.axis&&\"x\"===n.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-e.pageY<n.scrollSensitivity?i.scrollParent[0].scrollTop=r=i.scrollParent[0].scrollTop+n.scrollSpeed:e.pageY-i.overflowOffset.top<n.scrollSensitivity&&(i.scrollParent[0].scrollTop=r=i.scrollParent[0].scrollTop-n.scrollSpeed)),n.axis&&\"y\"===n.axis||(i.overflowOffset.left+i.scrollParent[0].offsetWidth-e.pageX<n.scrollSensitivity?i.scrollParent[0].scrollLeft=r=i.scrollParent[0].scrollLeft+n.scrollSpeed:e.pageX-i.overflowOffset.left<n.scrollSensitivity&&(i.scrollParent[0].scrollLeft=r=i.scrollParent[0].scrollLeft-n.scrollSpeed))):(n.axis&&\"x\"===n.axis||(e.pageY-t(document).scrollTop()<n.scrollSensitivity?r=t(document).scrollTop(t(document).scrollTop()-n.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<n.scrollSensitivity&&(r=t(document).scrollTop(t(document).scrollTop()+n.scrollSpeed))),n.axis&&\"y\"===n.axis||(e.pageX-t(document).scrollLeft()<n.scrollSensitivity?r=t(document).scrollLeft(t(document).scrollLeft()-n.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<n.scrollSensitivity&&(r=t(document).scrollLeft(t(document).scrollLeft()+n.scrollSpeed)))),r!==!1&&t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add(\"draggable\",\"snap\",{start:function(){var e=t(this).data(\"ui-draggable\"),i=e.options;e.snapElements=[],t(i.snap.constructor!==String?i.snap.items||\":data(ui-draggable)\":i.snap).each(function(){var i=t(this),n=i.offset();this!==e.element[0]&&e.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:n.top,left:n.left})})},drag:function(e,i){var n,r,o,s,a,l,u,c,h,p,d=t(this).data(\"ui-draggable\"),f=d.options,g=f.snapTolerance,m=i.offset.left,_=m+d.helperProportions.width,v=i.offset.top,y=v+d.helperProportions.height;for(h=d.snapElements.length-1;h>=0;h--)a=d.snapElements[h].left,l=a+d.snapElements[h].width,u=d.snapElements[h].top,c=u+d.snapElements[h].height,a-g>_||m>l+g||u-g>y||v>c+g||!t.contains(d.snapElements[h].item.ownerDocument,d.snapElements[h].item)?(d.snapElements[h].snapping&&d.options.snap.release&&d.options.snap.release.call(d.element,e,t.extend(d._uiHash(),{snapItem:d.snapElements[h].item})),d.snapElements[h].snapping=!1):(\"inner\"!==f.snapMode&&(n=Math.abs(u-y)<=g,r=Math.abs(c-v)<=g,o=Math.abs(a-_)<=g,s=Math.abs(l-m)<=g,n&&(i.position.top=d._convertPositionTo(\"relative\",{top:u-d.helperProportions.height,left:0}).top-d.margins.top),r&&(i.position.top=d._convertPositionTo(\"relative\",{top:c,left:0}).top-d.margins.top),o&&(i.position.left=d._convertPositionTo(\"relative\",{top:0,left:a-d.helperProportions.width}).left-d.margins.left),s&&(i.position.left=d._convertPositionTo(\"relative\",{top:0,left:l}).left-d.margins.left)),p=n||r||o||s,\"outer\"!==f.snapMode&&(n=Math.abs(u-v)<=g,r=Math.abs(c-y)<=g,o=Math.abs(a-m)<=g,s=Math.abs(l-_)<=g,n&&(i.position.top=d._convertPositionTo(\"relative\",{top:u,left:0}).top-d.margins.top),r&&(i.position.top=d._convertPositionTo(\"relative\",{top:c-d.helperProportions.height,left:0}).top-d.margins.top),o&&(i.position.left=d._convertPositionTo(\"relative\",{top:0,left:a}).left-d.margins.left),s&&(i.position.left=d._convertPositionTo(\"relative\",{top:0,left:l-d.helperProportions.width}).left-d.margins.left)),!d.snapElements[h].snapping&&(n||r||o||s||p)&&d.options.snap.snap&&d.options.snap.snap.call(d.element,e,t.extend(d._uiHash(),{snapItem:d.snapElements[h].item})),d.snapElements[h].snapping=n||r||o||s||p)}}),t.ui.plugin.add(\"draggable\",\"stack\",{start:function(){var e,i=this.data(\"ui-draggable\").options,n=t.makeArray(t(i.stack)).sort(function(e,i){return(parseInt(t(e).css(\"zIndex\"),10)||0)-(parseInt(t(i).css(\"zIndex\"),10)||0)});n.length&&(e=parseInt(t(n[0]).css(\"zIndex\"),10)||0,t(n).each(function(i){t(this).css(\"zIndex\",e+i)}),this.css(\"zIndex\",e+n.length))}}),t.ui.plugin.add(\"draggable\",\"zIndex\",{start:function(e,i){var n=t(i.helper),r=t(this).data(\"ui-draggable\").options;n.css(\"zIndex\")&&(r._zIndex=n.css(\"zIndex\")),n.css(\"zIndex\",r.zIndex)},stop:function(e,i){var n=t(this).data(\"ui-draggable\").options;n._zIndex&&t(i.helper).css(\"zIndex\",n._zIndex)}})}(n)},{\"./core\":6,\"./mouse\":12,\"./widget\":16,jquery:17}],9:[function(t,e,i){var n=t(\"jquery\");t(\"./core\"),t(\"./widget\"),t(\"./mouse\"),t(\"./draggable\"),function(t,e){function i(t,e,i){return t>e&&e+i>t}t.widget(\"ui.droppable\",{version:\"1.10.4\",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,i=this.options,n=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(n)?n:function(t){return t.is(n)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e?e:e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},t.ui.ddmanager.droppables[i.scope]=t.ui.ddmanager.droppables[i.scope]||[],t.ui.ddmanager.droppables[i.scope].push(this),i.addClasses&&this.element.addClass(\"ui-droppable\")},_destroy:function(){for(var e=0,i=t.ui.ddmanager.droppables[this.options.scope];e<i.length;e++)i[e]===this&&i.splice(e,1);this.element.removeClass(\"ui-droppable ui-droppable-disabled\")},_setOption:function(e,i){\"accept\"===e&&(this.accept=t.isFunction(i)?i:function(t){return t.is(i)}),t.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger(\"activate\",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger(\"deactivate\",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger(\"over\",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger(\"out\",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current,r=!1;return n&&(n.currentItem||n.element)[0]!==this.element[0]?(this.element.find(\":data(ui-droppable)\").not(\".ui-draggable-dragging\").each(function(){var e=t.data(this,\"ui-droppable\");return e.options.greedy&&!e.options.disabled&&e.options.scope===n.options.scope&&e.accept.call(e.element[0],n.currentItem||n.element)&&t.ui.intersect(n,t.extend(e,{offset:e.element.offset()}),e.options.tolerance)?(r=!0,!1):void 0}),r?!1:this.accept.call(this.element[0],n.currentItem||n.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(n)),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(t,e,n){if(!e.offset)return!1;var r,o,s=(t.positionAbs||t.position.absolute).left,a=(t.positionAbs||t.position.absolute).top,l=s+t.helperProportions.width,u=a+t.helperProportions.height,c=e.offset.left,h=e.offset.top,p=c+e.proportions().width,d=h+e.proportions().height;switch(n){case\"fit\":return s>=c&&p>=l&&a>=h&&d>=u;case\"intersect\":return c<s+t.helperProportions.width/2&&l-t.helperProportions.width/2<p&&h<a+t.helperProportions.height/2&&u-t.helperProportions.height/2<d;case\"pointer\":return r=(t.positionAbs||t.position.absolute).left+(t.clickOffset||t.offset.click).left,o=(t.positionAbs||t.position.absolute).top+(t.clickOffset||t.offset.click).top,i(o,h,e.proportions().height)&&i(r,c,e.proportions().width);case\"touch\":return(a>=h&&d>=a||u>=h&&d>=u||h>a&&u>d)&&(s>=c&&p>=s||l>=c&&p>=l||c>s&&l>p);default:return!1}},t.ui.ddmanager={current:null,droppables:{\"default\":[]},prepareOffsets:function(e,i){var n,r,o=t.ui.ddmanager.droppables[e.options.scope]||[],s=i?i.type:null,a=(e.currentItem||e.element).find(\":data(ui-droppable)\").addBack();t:for(n=0;n<o.length;n++)if(!(o[n].options.disabled||e&&!o[n].accept.call(o[n].element[0],e.currentItem||e.element))){for(r=0;r<a.length;r++)if(a[r]===o[n].element[0]){o[n].proportions().height=0;continue t}o[n].visible=\"none\"!==o[n].element.css(\"display\"),o[n].visible&&(\"mousedown\"===s&&o[n]._activate.call(o[n],i),o[n].offset=o[n].element.offset(),o[n].proportions({width:o[n].element[0].offsetWidth,height:o[n].element[0].offsetHeight}))}},drop:function(e,i){var n=!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=this._drop.call(this,i)||n),!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,i)))}),n},dragStart:function(e,i){e.element.parentsUntil(\"body\").bind(\"scroll.droppable\",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n,r,o,s=t.ui.intersect(e,this,this.options.tolerance),a=!s&&this.isover?\"isout\":s&&!this.isover?\"isover\":null;a&&(this.options.greedy&&(r=this.options.scope,o=this.element.parents(\":data(ui-droppable)\").filter(function(){return t.data(this,\"ui-droppable\").options.scope===r}),o.length&&(n=t.data(o[0],\"ui-droppable\"),n.greedyChild=\"isover\"===a)),n&&\"isover\"===a&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[a]=!0,this[\"isout\"===a?\"isover\":\"isout\"]=!1,this[\"isover\"===a?\"_over\":\"_out\"].call(this,i),n&&\"isout\"===a&&(n.isout=!1,n.isover=!0,n._over.call(n,i)))}})},dragStop:function(e,i){e.element.parentsUntil(\"body\").unbind(\"scroll.droppable\"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}}}(n)},{\"./core\":6,\"./draggable\":8,\"./mouse\":12,\"./widget\":16,jquery:17}],10:[function(t,e,i){var n=t(\"jquery\");!function(t,e){function i(e,i){var r,o,s,a=e.nodeName.toLowerCase();return\"area\"===a?(r=e.parentNode,o=r.name,e.href&&o&&\"map\"===r.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||i:i)&&n(e)}function n(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return\"hidden\"===t.css(this,\"visibility\")}).length}var r=0,o=/^ui-id-\\d+$/;t.ui=t.ui||{},t.extend(t.ui,{version:\"1.10.3\",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({focus:function(e){return function(i,n){return\"number\"==typeof i?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),n&&n.call(e)},i)}):e.apply(this,arguments)}}(t.fn.focus),scrollParent:function(){var e;return e=t.ui.ie&&/(static|relative)/.test(this.css(\"position\"))||/absolute/.test(this.css(\"position\"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.css(this,\"position\"))&&/(auto|scroll)/.test(t.css(this,\"overflow\")+t.css(this,\"overflow-y\")+t.css(this,\"overflow-x\"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.css(this,\"overflow\")+t.css(this,\"overflow-y\")+t.css(this,\"overflow-x\"))}).eq(0),/fixed/.test(this.css(\"position\"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css(\"zIndex\",i);if(this.length)for(var n,r,o=t(this[0]);o.length&&o[0]!==document;){if(n=o.css(\"position\"),(\"absolute\"===n||\"relative\"===n||\"fixed\"===n)&&(r=parseInt(o.css(\"zIndex\"),10),!isNaN(r)&&0!==r))return r;o=o.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id=\"ui-id-\"+ ++r)})},removeUniqueId:function(){return this.each(function(){o.test(this.id)&&t(this).removeAttr(\"id\")})}}),t.extend(t.expr[\":\"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,\"tabindex\")))},tabbable:function(e){var n=t.attr(e,\"tabindex\"),r=isNaN(n);return(r||n>=0)&&i(e,!r)}}),t(\"<a>\").outerWidth(1).jquery||t.each([\"Width\",\"Height\"],function(i,n){function r(e,i,n,r){return t.each(o,function(){i-=parseFloat(t.css(e,\"padding\"+this))||0,n&&(i-=parseFloat(t.css(e,\"border\"+this+\"Width\"))||0),r&&(i-=parseFloat(t.css(e,\"margin\"+this))||0)}),i}var o=\"Width\"===n?[\"Left\",\"Right\"]:[\"Top\",\"Bottom\"],s=n.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn[\"inner\"+n]=function(i){return i===e?a[\"inner\"+n].call(this):this.each(function(){t(this).css(s,r(this,i)+\"px\")})},t.fn[\"outer\"+n]=function(e,i){return\"number\"!=typeof e?a[\"outer\"+n].call(this,e):this.each(function(){t(this).css(s,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(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\\w.]+/.exec(navigator.userAgent.toLowerCase()),t.support.selectstart=\"onselectstart\"in document.createElement(\"div\"),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?\"selectstart\":\"mousedown\")+\".ui-disableSelection\",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(\".ui-disableSelection\")}}),t.extend(t.ui,{plugin:{add:function(e,i,n){var r,o=t.ui[e].prototype;for(r in n)o.plugins[r]=o.plugins[r]||[],o.plugins[r].push([i,n[r]])},call:function(t,e,i){var n,r=t.plugins[e];if(r&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(n=0;n<r.length;n++)t.options[r[n][0]]&&r[n][1].apply(t.element,i)}},hasScroll:function(e,i){if(\"hidden\"===t(e).css(\"overflow\"))return!1;var n=i&&\"left\"===i?\"scrollLeft\":\"scrollTop\",r=!1;return e[n]>0?!0:(e[n]=1,r=e[n]>0,e[n]=0,r)}})}(n),function(t,e){var i=0,n=Array.prototype.slice,r=t.cleanData;t.cleanData=function(e){for(var i,n=0;null!=(i=e[n]);n++)try{t(i).triggerHandler(\"remove\")}catch(o){}r(e)},t.widget=function(e,i,n){var r,o,s,a,l={},u=e.split(\".\")[0];e=e.split(\".\")[1],r=u+\"-\"+e,n||(n=i,i=t.Widget),t.expr[\":\"][r.toLowerCase()]=function(e){return!!t.data(e,r)},t[u]=t[u]||{},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:n.version,_proto:t.extend({},n),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(n,function(e,n){return t.isFunction(n)?void(l[e]=function(){var t=function(){return i.prototype[e].apply(this,arguments)},r=function(t){return i.prototype[e].apply(this,t)};return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=r,e=n.apply(this,arguments),this._super=i,this._superApply=o,e}}()):void(l[e]=n)}),s.prototype=t.widget.extend(a,{widgetEventPrefix:o?a.widgetEventPrefix:e},l,{constructor:s,namespace:u,widgetName:e,widgetFullName:r}),o?(t.each(o._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+\".\"+n.widgetName,s,i._proto)}),delete o._childConstructors):i._childConstructors.push(s),t.widget.bridge(e,s)},t.widget.extend=function(i){for(var r,o,s=n.call(arguments,1),a=0,l=s.length;l>a;a++)for(r in s[a])o=s[a][r],s[a].hasOwnProperty(r)&&o!==e&&(i[r]=t.isPlainObject(o)?t.isPlainObject(i[r])?t.widget.extend({},i[r],o):t.widget.extend({},o):o);return i},t.widget.bridge=function(i,r){var o=r.prototype.widgetFullName||i;t.fn[i]=function(s){var a=\"string\"==typeof s,l=n.call(arguments,1),u=this;return s=!a&&l.length?t.widget.extend.apply(null,[s].concat(l)):s,this.each(a?function(){var n,r=t.data(this,o);return r?t.isFunction(r[s])&&\"_\"!==s.charAt(0)?(n=r[s].apply(r,l),n!==r&&n!==e?(u=n&&n.jquery?u.pushStack(n.get()):n,!1):void 0):t.error(\"no such method '\"+s+\"' for \"+i+\" widget instance\"):t.error(\"cannot call methods on \"+i+\" prior to initialization; attempted to call method '\"+s+\"'\")}:function(){var e=t.data(this,o);e?e.option(s||{})._init():t.data(this,o,new r(s,this))}),u}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:\"widget\",widgetEventPrefix:\"\",defaultElement:\"<div>\",options:{disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=i++,this.eventNamespace=\".\"+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger(\"create\",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr(\"aria-disabled\").removeClass(this.widgetFullName+\"-disabled ui-state-disabled\"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass(\"ui-state-hover\"),this.focusable.removeClass(\"ui-state-focus\")},_destroy:t.noop,widget:function(){return this.element},option:function(i,n){var r,o,s,a=i;if(0===arguments.length)return t.widget.extend({},this.options);if(\"string\"==typeof i)if(a={},r=i.split(\".\"),i=r.shift(),r.length){for(o=a[i]=t.widget.extend({},this.options[i]),s=0;s<r.length-1;s++)o[r[s]]=o[r[s]]||{},o=o[r[s]];if(i=r.pop(),n===e)return o[i]===e?null:o[i];o[i]=n}else{if(n===e)return this.options[i]===e?null:this.options[i];a[i]=n}return this._setOptions(a),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 ui-state-disabled\",!!e).attr(\"aria-disabled\",e),this.hoverable.removeClass(\"ui-state-hover\"),\n",
       "                this.focusable.removeClass(\"ui-state-focus\")),this},enable:function(){return this._setOption(\"disabled\",!1)},disable:function(){return this._setOption(\"disabled\",!0)},_on:function(e,i,n){var r,o=this;\"boolean\"!=typeof e&&(n=i,i=e,e=!1),n?(i=r=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,r=this.widget()),t.each(n,function(n,s){function a(){return e||o.options.disabled!==!0&&!t(this).hasClass(\"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=n.match(/^(\\w+)\\s*(.*)$/),u=l[1]+o.eventNamespace,c=l[2];c?r.delegate(c,u,a):i.bind(u,a)})},_off:function(t,e){e=(e||\"\").split(\" \").join(this.eventNamespace+\" \")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){function i(){return(\"string\"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass(\"ui-state-hover\")},mouseleave:function(e){t(e.currentTarget).removeClass(\"ui-state-hover\")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass(\"ui-state-focus\")},focusout:function(e){t(e.currentTarget).removeClass(\"ui-state-focus\")}})},_trigger:function(e,i,n){var r,o,s=this.options[e];if(n=n||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(r in o)r in i||(i[r]=o[r]);return this.element.trigger(i,n),!(t.isFunction(s)&&s.apply(this.element[0],[i].concat(n))===!1||i.isDefaultPrevented())}},t.each({show:\"fadeIn\",hide:\"fadeOut\"},function(e,i){t.Widget.prototype[\"_\"+e]=function(n,r,o){\"string\"==typeof r&&(r={effect:r});var s,a=r?r===!0||\"number\"==typeof r?i:r.effect||i:e;r=r||{},\"number\"==typeof r&&(r={duration:r}),s=!t.isEmptyObject(r),r.complete=o,r.delay&&n.delay(r.delay),s&&t.effects&&t.effects.effect[a]?n[e](r):a!==e&&n[a]?n[a](r.duration,r.easing,o):n.queue(function(i){t(this)[e](),o&&o.call(n[0]),i()})}})}(n),function(t,e){var i=!1;t(document).mouseup(function(){i=!1}),t.widget(\"ui.mouse\",{version:\"1.10.3\",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(i){return!0===t.data(i.target,e.widgetName+\".preventClickEvent\")?(t.removeData(i.target,e.widgetName+\".preventClickEvent\"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind(\".\"+this.widgetName),this._mouseMoveDelegate&&t(document).unbind(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).unbind(\"mouseup.\"+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!i){this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var n=this,r=1===e.which,o=\"string\"==typeof this.options.cancel&&e.target.nodeName?t(e.target).closest(this.options.cancel).length:!1;return r&&!o&&this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+\".preventClickEvent\")&&t.removeData(e.target,this.widgetName+\".preventClickEvent\"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},t(document).bind(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).bind(\"mouseup.\"+this.widgetName,this._mouseUpDelegate),e.preventDefault(),i=!0,!0)):!0}},_mouseMove:function(e){return t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button?this._mouseUp(e):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)},_mouseUp:function(e){return t(document).unbind(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).unbind(\"mouseup.\"+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+\".preventClickEvent\",!0),this._mouseStop(e)),!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}})}(n),function(t,e){t.widget(\"ui.draggable\",t.ui.mouse,{version:\"1.10.3\",widgetEventPrefix:\"drag\",options:{addClasses:!0,appendTo:\"parent\",axis:!1,connectToSortable:!1,containment:!1,cursor:\"auto\",cursorAt:!1,grid:!1,handle:!1,helper:\"original\",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:\"default\",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:\"both\",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){\"original\"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css(\"position\"))||(this.element[0].style.position=\"relative\"),this.options.addClasses&&this.element.addClass(\"ui-draggable\"),this.options.disabled&&this.element.addClass(\"ui-draggable-disabled\"),this._mouseInit()},_destroy:function(){this.element.removeClass(\"ui-draggable ui-draggable-dragging ui-draggable-disabled\"),this._mouseDestroy()},_mouseCapture:function(e){var i=this.options;return this.helper||i.disabled||t(e.target).closest(\".ui-resizable-handle\").length>0?!1:(this.handle=this._getHandle(e),this.handle?(t(i.iframeFix===!0?\"iframe\":i.iframeFix).each(function(){t(\"<div class='ui-draggable-iframeFix' style='background: #fff;'></div>\").css({width:this.offsetWidth+\"px\",height:this.offsetHeight+\"px\",position:\"absolute\",opacity:\"0.001\",zIndex:1e3}).css(t(this).offset()).appendTo(\"body\")}),!0):!1)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass(\"ui-draggable-dragging\"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css(\"position\"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css(\"position\"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger(\"start\",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,i){if(\"fixed\"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo(\"absolute\"),!i){var n=this._uiHash();if(this._trigger(\"drag\",e,n)===!1)return this._mouseUp({}),!1;this.position=n.position}return this.options.axis&&\"y\"===this.options.axis||(this.helper[0].style.left=this.position.left+\"px\"),this.options.axis&&\"x\"===this.options.axis||(this.helper[0].style.top=this.position.top+\"px\"),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),\"original\"!==this.options.helper||t.contains(this.element[0].ownerDocument,this.element[0])?(\"invalid\"===this.options.revert&&!n||\"valid\"===this.options.revert&&n||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger(\"stop\",e)!==!1&&i._clear()}):this._trigger(\"stop\",e)!==!1&&this._clear(),!1):!1},_mouseUp:function(e){return t(\"div.ui-draggable-iframeFix\").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(\".ui-draggable-dragging\")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):\"clone\"===i.helper?this.element.clone().removeAttr(\"id\"):this.element;return n.parents(\"body\").length||n.appendTo(\"parent\"===i.appendTo?this.element[0].parentNode:i.appendTo),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css(\"position\"))||n.css(\"position\",\"absolute\"),n},_adjustOffsetFromHelper:function(e){\"string\"==typeof e&&(e=e.split(\" \")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),\"left\"in e&&(this.offset.click.left=e.left+this.margins.left),\"right\"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),\"top\"in e&&(this.offset.click.top=e.top+this.margins.top),\"bottom\"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){var e=this.offsetParent.offset();return\"absolute\"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&\"html\"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css(\"borderTopWidth\"),10)||0),left:e.left+(parseInt(this.offsetParent.css(\"borderLeftWidth\"),10)||0)}},_getRelativeOffset:function(){if(\"relative\"===this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css(\"top\"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css(\"left\"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css(\"marginLeft\"),10)||0,top:parseInt(this.element.css(\"marginTop\"),10)||0,right:parseInt(this.element.css(\"marginRight\"),10)||0,bottom:parseInt(this.element.css(\"marginBottom\"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options;return r.containment?\"window\"===r.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):\"document\"===r.containment?void(this.containment=[0,0,t(document).width()-this.helperProportions.width-this.margins.left,(t(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):r.containment.constructor===Array?void(this.containment=r.containment):(\"parent\"===r.containment&&(r.containment=this.helper[0].parentNode),i=t(r.containment),n=i[0],void(n&&(e=\"hidden\"!==i.css(\"overflow\"),this.containment=[(parseInt(i.css(\"borderLeftWidth\"),10)||0)+(parseInt(i.css(\"paddingLeft\"),10)||0),(parseInt(i.css(\"borderTopWidth\"),10)||0)+(parseInt(i.css(\"paddingTop\"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css(\"borderRightWidth\"),10)||0)-(parseInt(i.css(\"paddingRight\"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css(\"borderBottomWidth\"),10)||0)-(parseInt(i.css(\"paddingBottom\"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i))):void(this.containment=null)},_convertPositionTo:function(e,i){i||(i=this.position);var n=\"absolute\"===e?1:-1,r=\"absolute\"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:r.scrollTop(),left:r.scrollLeft()}),{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-(\"fixed\"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-(\"fixed\"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*n}},_generatePosition:function(e){var i,n,r,o,s=this.options,a=\"absolute\"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=e.pageX,u=e.pageY;return this.offset.scroll||(this.offset.scroll={top:a.scrollTop(),left:a.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(n=this.relative_container.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,e.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(u=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(u=i[3]+this.offset.click.top)),s.grid&&(r=s.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,u=i?r-this.offset.click.top>=i[1]||r-this.offset.click.top>i[3]?r:r-this.offset.click.top>=i[1]?r-s.grid[1]:r+s.grid[1]:r,o=s.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,l=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-s.grid[0]:o+s.grid[0]:o)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(\"fixed\"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(\"fixed\"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass(\"ui-draggable-dragging\"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n]),\"drag\"===e&&(this.positionAbs=this._convertPositionTo(\"absolute\")),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add(\"draggable\",\"connectToSortable\",{start:function(e,i){var n=t(this).data(\"ui-draggable\"),r=n.options,o=t.extend({},i,{item:n.element});n.sortables=[],t(r.connectToSortable).each(function(){var i=t.data(this,\"ui-sortable\");i&&!i.options.disabled&&(n.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger(\"activate\",e,o))})},stop:function(e,i){var n=t(this).data(\"ui-draggable\"),r=t.extend({},i,{item:n.element});t.each(n.sortables,function(){this.instance.isOver?(this.instance.isOver=0,n.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,\"original\"===n.options.helper&&this.instance.currentItem.css({top:\"auto\",left:\"auto\"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger(\"deactivate\",e,r))})},drag:function(e,i){var n=t(this).data(\"ui-draggable\"),r=this;t.each(n.sortables,function(){var o=!1,s=this;this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(o=!0,t.each(n.sortables,function(){return this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this!==s&&this.instance._intersectsWith(this.instance.containerCache)&&t.contains(s.instance.element[0],this.instance.element[0])&&(o=!1),o})),o?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(r).clone().removeAttr(\"id\").appendTo(this.instance.element).data(\"ui-sortable-item\",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=n.offset.click.top,this.instance.offset.click.left=n.offset.click.left,this.instance.offset.parent.left-=n.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=n.offset.parent.top-this.instance.offset.parent.top,n._trigger(\"toSortable\",e),n.dropped=this.instance.element,n.currentItem=n.element,this.instance.fromOutside=n),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger(\"out\",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),n._trigger(\"fromSortable\",e),n.dropped=!1)})}}),t.ui.plugin.add(\"draggable\",\"cursor\",{start:function(){var e=t(\"body\"),i=t(this).data(\"ui-draggable\").options;e.css(\"cursor\")&&(i._cursor=e.css(\"cursor\")),e.css(\"cursor\",i.cursor)},stop:function(){var e=t(this).data(\"ui-draggable\").options;e._cursor&&t(\"body\").css(\"cursor\",e._cursor)}}),t.ui.plugin.add(\"draggable\",\"opacity\",{start:function(e,i){var n=t(i.helper),r=t(this).data(\"ui-draggable\").options;n.css(\"opacity\")&&(r._opacity=n.css(\"opacity\")),n.css(\"opacity\",r.opacity)},stop:function(e,i){var n=t(this).data(\"ui-draggable\").options;n._opacity&&t(i.helper).css(\"opacity\",n._opacity)}}),t.ui.plugin.add(\"draggable\",\"scroll\",{start:function(){var e=t(this).data(\"ui-draggable\");e.scrollParent[0]!==document&&\"HTML\"!==e.scrollParent[0].tagName&&(e.overflowOffset=e.scrollParent.offset())},drag:function(e){var i=t(this).data(\"ui-draggable\"),n=i.options,r=!1;i.scrollParent[0]!==document&&\"HTML\"!==i.scrollParent[0].tagName?(n.axis&&\"x\"===n.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-e.pageY<n.scrollSensitivity?i.scrollParent[0].scrollTop=r=i.scrollParent[0].scrollTop+n.scrollSpeed:e.pageY-i.overflowOffset.top<n.scrollSensitivity&&(i.scrollParent[0].scrollTop=r=i.scrollParent[0].scrollTop-n.scrollSpeed)),n.axis&&\"y\"===n.axis||(i.overflowOffset.left+i.scrollParent[0].offsetWidth-e.pageX<n.scrollSensitivity?i.scrollParent[0].scrollLeft=r=i.scrollParent[0].scrollLeft+n.scrollSpeed:e.pageX-i.overflowOffset.left<n.scrollSensitivity&&(i.scrollParent[0].scrollLeft=r=i.scrollParent[0].scrollLeft-n.scrollSpeed))):(n.axis&&\"x\"===n.axis||(e.pageY-t(document).scrollTop()<n.scrollSensitivity?r=t(document).scrollTop(t(document).scrollTop()-n.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<n.scrollSensitivity&&(r=t(document).scrollTop(t(document).scrollTop()+n.scrollSpeed))),n.axis&&\"y\"===n.axis||(e.pageX-t(document).scrollLeft()<n.scrollSensitivity?r=t(document).scrollLeft(t(document).scrollLeft()-n.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<n.scrollSensitivity&&(r=t(document).scrollLeft(t(document).scrollLeft()+n.scrollSpeed)))),r!==!1&&t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add(\"draggable\",\"snap\",{start:function(){var e=t(this).data(\"ui-draggable\"),i=e.options;e.snapElements=[],t(i.snap.constructor!==String?i.snap.items||\":data(ui-draggable)\":i.snap).each(function(){var i=t(this),n=i.offset();this!==e.element[0]&&e.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:n.top,left:n.left})})},drag:function(e,i){var n,r,o,s,a,l,u,c,h,p,d=t(this).data(\"ui-draggable\"),f=d.options,g=f.snapTolerance,m=i.offset.left,_=m+d.helperProportions.width,v=i.offset.top,y=v+d.helperProportions.height;for(h=d.snapElements.length-1;h>=0;h--)a=d.snapElements[h].left,l=a+d.snapElements[h].width,u=d.snapElements[h].top,c=u+d.snapElements[h].height,a-g>_||m>l+g||u-g>y||v>c+g||!t.contains(d.snapElements[h].item.ownerDocument,d.snapElements[h].item)?(d.snapElements[h].snapping&&d.options.snap.release&&d.options.snap.release.call(d.element,e,t.extend(d._uiHash(),{snapItem:d.snapElements[h].item})),d.snapElements[h].snapping=!1):(\"inner\"!==f.snapMode&&(n=Math.abs(u-y)<=g,r=Math.abs(c-v)<=g,o=Math.abs(a-_)<=g,s=Math.abs(l-m)<=g,n&&(i.position.top=d._convertPositionTo(\"relative\",{top:u-d.helperProportions.height,left:0}).top-d.margins.top),r&&(i.position.top=d._convertPositionTo(\"relative\",{top:c,left:0}).top-d.margins.top),o&&(i.position.left=d._convertPositionTo(\"relative\",{top:0,left:a-d.helperProportions.width}).left-d.margins.left),s&&(i.position.left=d._convertPositionTo(\"relative\",{top:0,left:l}).left-d.margins.left)),p=n||r||o||s,\"outer\"!==f.snapMode&&(n=Math.abs(u-v)<=g,r=Math.abs(c-y)<=g,o=Math.abs(a-m)<=g,s=Math.abs(l-_)<=g,n&&(i.position.top=d._convertPositionTo(\"relative\",{top:u,left:0}).top-d.margins.top),r&&(i.position.top=d._convertPositionTo(\"relative\",{top:c-d.helperProportions.height,left:0}).top-d.margins.top),o&&(i.position.left=d._convertPositionTo(\"relative\",{top:0,left:a}).left-d.margins.left),s&&(i.position.left=d._convertPositionTo(\"relative\",{top:0,left:l-d.helperProportions.width}).left-d.margins.left)),!d.snapElements[h].snapping&&(n||r||o||s||p)&&d.options.snap.snap&&d.options.snap.snap.call(d.element,e,t.extend(d._uiHash(),{snapItem:d.snapElements[h].item})),d.snapElements[h].snapping=n||r||o||s||p)}}),t.ui.plugin.add(\"draggable\",\"stack\",{start:function(){var e,i=this.data(\"ui-draggable\").options,n=t.makeArray(t(i.stack)).sort(function(e,i){return(parseInt(t(e).css(\"zIndex\"),10)||0)-(parseInt(t(i).css(\"zIndex\"),10)||0)});n.length&&(e=parseInt(t(n[0]).css(\"zIndex\"),10)||0,t(n).each(function(i){t(this).css(\"zIndex\",e+i)}),this.css(\"zIndex\",e+n.length))}}),t.ui.plugin.add(\"draggable\",\"zIndex\",{start:function(e,i){var n=t(i.helper),r=t(this).data(\"ui-draggable\").options;n.css(\"zIndex\")&&(r._zIndex=n.css(\"zIndex\")),n.css(\"zIndex\",r.zIndex)},stop:function(e,i){var n=t(this).data(\"ui-draggable\").options;n._zIndex&&t(i.helper).css(\"zIndex\",n._zIndex)}})}(n),function(t,e){function i(t,e,i){return t>e&&e+i>t}t.widget(\"ui.droppable\",{version:\"1.10.3\",widgetEventPrefix:\"drop\",options:{accept:\"*\",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:\"default\",tolerance:\"intersect\",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(i)?i:function(t){return t.is(i)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},t.ui.ddmanager.droppables[e.scope]=t.ui.ddmanager.droppables[e.scope]||[],t.ui.ddmanager.droppables[e.scope].push(this),e.addClasses&&this.element.addClass(\"ui-droppable\")},_destroy:function(){for(var e=0,i=t.ui.ddmanager.droppables[this.options.scope];e<i.length;e++)i[e]===this&&i.splice(e,1);this.element.removeClass(\"ui-droppable ui-droppable-disabled\")},_setOption:function(e,i){\"accept\"===e&&(this.accept=t.isFunction(i)?i:function(t){return t.is(i)}),t.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger(\"activate\",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger(\"deactivate\",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger(\"over\",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger(\"out\",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current,r=!1;return n&&(n.currentItem||n.element)[0]!==this.element[0]?(this.element.find(\":data(ui-droppable)\").not(\".ui-draggable-dragging\").each(function(){var e=t.data(this,\"ui-droppable\");return e.options.greedy&&!e.options.disabled&&e.options.scope===n.options.scope&&e.accept.call(e.element[0],n.currentItem||n.element)&&t.ui.intersect(n,t.extend(e,{offset:e.element.offset()}),e.options.tolerance)?(r=!0,!1):void 0}),r?!1:this.accept.call(this.element[0],n.currentItem||n.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(n)),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(t,e,n){if(!e.offset)return!1;var r,o,s=(t.positionAbs||t.position.absolute).left,a=s+t.helperProportions.width,l=(t.positionAbs||t.position.absolute).top,u=l+t.helperProportions.height,c=e.offset.left,h=c+e.proportions.width,p=e.offset.top,d=p+e.proportions.height;switch(n){case\"fit\":return s>=c&&h>=a&&l>=p&&d>=u;case\"intersect\":return c<s+t.helperProportions.width/2&&a-t.helperProportions.width/2<h&&p<l+t.helperProportions.height/2&&u-t.helperProportions.height/2<d;case\"pointer\":return r=(t.positionAbs||t.position.absolute).left+(t.clickOffset||t.offset.click).left,o=(t.positionAbs||t.position.absolute).top+(t.clickOffset||t.offset.click).top,i(o,p,e.proportions.height)&&i(r,c,e.proportions.width);case\"touch\":return(l>=p&&d>=l||u>=p&&d>=u||p>l&&u>d)&&(s>=c&&h>=s||a>=c&&h>=a||c>s&&a>h);default:return!1}},t.ui.ddmanager={current:null,droppables:{\"default\":[]},prepareOffsets:function(e,i){var n,r,o=t.ui.ddmanager.droppables[e.options.scope]||[],s=i?i.type:null,a=(e.currentItem||e.element).find(\":data(ui-droppable)\").addBack();t:for(n=0;n<o.length;n++)if(!(o[n].options.disabled||e&&!o[n].accept.call(o[n].element[0],e.currentItem||e.element))){for(r=0;r<a.length;r++)if(a[r]===o[n].element[0]){o[n].proportions.height=0;continue t}o[n].visible=\"none\"!==o[n].element.css(\"display\"),o[n].visible&&(\"mousedown\"===s&&o[n]._activate.call(o[n],i),o[n].offset=o[n].element.offset(),o[n].proportions={width:o[n].element[0].offsetWidth,height:o[n].element[0].offsetHeight})}},drop:function(e,i){var n=!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=this._drop.call(this,i)||n),!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,i)))}),n},dragStart:function(e,i){e.element.parentsUntil(\"body\").bind(\"scroll.droppable\",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n,r,o,s=t.ui.intersect(e,this,this.options.tolerance),a=!s&&this.isover?\"isout\":s&&!this.isover?\"isover\":null;a&&(this.options.greedy&&(r=this.options.scope,o=this.element.parents(\":data(ui-droppable)\").filter(function(){return t.data(this,\"ui-droppable\").options.scope===r}),o.length&&(n=t.data(o[0],\"ui-droppable\"),n.greedyChild=\"isover\"===a)),n&&\"isover\"===a&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[a]=!0,this[\"isout\"===a?\"isover\":\"isout\"]=!1,this[\"isover\"===a?\"_over\":\"_out\"].call(this,i),n&&\"isout\"===a&&(n.isout=!1,n.isover=!0,n._over.call(n,i)))}})},dragStop:function(e,i){e.element.parentsUntil(\"body\").unbind(\"scroll.droppable\"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}}}(n),function(t,e){function i(t){return parseInt(t,10)||0}function n(t){return!isNaN(parseInt(t,10))}t.widget(\"ui.resizable\",t.ui.mouse,{version:\"1.10.3\",widgetEventPrefix:\"resize\",options:{alsoResize:!1,animate:!1,animateDuration:\"slow\",animateEasing:\"swing\",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:\"e,s,se\",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var e,i,n,r,o,s=this,a=this.options;if(this.element.addClass(\"ui-resizable\"),t.extend(this,{_aspectRatio:!!a.aspectRatio,aspectRatio:a.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:a.helper||a.ghost||a.animate?a.helper||\"ui-resizable-helper\":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(t(\"<div class='ui-wrapper' style='overflow: hidden;'></div>\").css({position:this.element.css(\"position\"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css(\"top\"),left:this.element.css(\"left\")})),this.element=this.element.parent().data(\"ui-resizable\",this.element.data(\"ui-resizable\")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css(\"marginLeft\"),marginTop:this.originalElement.css(\"marginTop\"),marginRight:this.originalElement.css(\"marginRight\"),marginBottom:this.originalElement.css(\"marginBottom\")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css(\"resize\"),this.originalElement.css(\"resize\",\"none\"),this._proportionallyResizeElements.push(this.originalElement.css({position:\"static\",zoom:1,display:\"block\"})),this.originalElement.css({margin:this.originalElement.css(\"margin\")}),this._proportionallyResize()),this.handles=a.handles||(t(\".ui-resizable-handle\",this.element).length?{n:\".ui-resizable-n\",e:\".ui-resizable-e\",s:\".ui-resizable-s\",w:\".ui-resizable-w\",se:\".ui-resizable-se\",sw:\".ui-resizable-sw\",ne:\".ui-resizable-ne\",nw:\".ui-resizable-nw\"}:\"e,s,se\"),this.handles.constructor===String)for(\"all\"===this.handles&&(this.handles=\"n,e,s,w,se,sw,ne,nw\"),e=this.handles.split(\",\"),this.handles={},i=0;i<e.length;i++)n=t.trim(e[i]),o=\"ui-resizable-\"+n,r=t(\"<div class='ui-resizable-handle \"+o+\"'></div>\"),r.css({zIndex:a.zIndex}),\"se\"===n&&r.addClass(\"ui-icon ui-icon-gripsmall-diagonal-se\"),this.handles[n]=\".ui-resizable-\"+n,this.element.append(r);this._renderAxis=function(e){var i,n,r,o;e=e||this.element;for(i in this.handles)this.handles[i].constructor===String&&(this.handles[i]=t(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(n=t(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),r=[\"padding\",/ne|nw|n/.test(i)?\"Top\":/se|sw|s/.test(i)?\"Bottom\":/^e$/.test(i)?\"Right\":\"Left\"].join(\"\"),e.css(r,o),this._proportionallyResize()),t(this.handles[i]).length},this._renderAxis(this.element),this._handles=t(\".ui-resizable-handle\",this.element).disableSelection(),\n",
       "                this._handles.mouseover(function(){s.resizing||(this.className&&(r=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),s.axis=r&&r[1]?r[1]:\"se\")}),a.autoHide&&(this._handles.hide(),t(this.element).addClass(\"ui-resizable-autohide\").mouseenter(function(){a.disabled||(t(this).removeClass(\"ui-resizable-autohide\"),s._handles.show())}).mouseleave(function(){a.disabled||s.resizing||(t(this).addClass(\"ui-resizable-autohide\"),s._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeClass(\"ui-resizable ui-resizable-disabled ui-resizable-resizing\").removeData(\"resizable\").removeData(\"ui-resizable\").unbind(\".resizable\").find(\".ui-resizable-handle\").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css(\"position\"),width:e.outerWidth(),height:e.outerHeight(),top:e.css(\"top\"),left:e.css(\"left\")}).insertAfter(e),e.remove()),this.originalElement.css(\"resize\",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(e){var i,n,r=!1;for(i in this.handles)n=t(this.handles[i])[0],(n===e.target||t.contains(n,e.target))&&(r=!0);return!this.options.disabled&&r},_mouseStart:function(e){var n,r,o,s=this.options,a=this.element.position(),l=this.element;return this.resizing=!0,/absolute/.test(l.css(\"position\"))?l.css({position:\"absolute\",top:l.css(\"top\"),left:l.css(\"left\")}):l.is(\".ui-draggable\")&&l.css({position:\"absolute\",top:a.top,left:a.left}),this._renderProxy(),n=i(this.helper.css(\"left\")),r=i(this.helper.css(\"top\")),s.containment&&(n+=t(s.containment).scrollLeft()||0,r+=t(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:r},this.size=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalSize=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalPosition={left:n,top:r},this.sizeDiff={width:l.outerWidth()-l.width(),height:l.outerHeight()-l.height()},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio=\"number\"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,o=t(\".ui-resizable-\"+this.axis).css(\"cursor\"),t(\"body\").css(\"cursor\",\"auto\"===o?this.axis+\"-resize\":o),l.addClass(\"ui-resizable-resizing\"),this._propagate(\"start\",e),!0},_mouseDrag:function(e){var i,n=this.helper,r={},o=this.originalMousePosition,s=this.axis,a=this.position.top,l=this.position.left,u=this.size.width,c=this.size.height,h=e.pageX-o.left||0,p=e.pageY-o.top||0,d=this._change[s];return d?(i=d.apply(this,[e,h,p]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate(\"resize\",e),this.position.top!==a&&(r.top=this.position.top+\"px\"),this.position.left!==l&&(r.left=this.position.left+\"px\"),this.size.width!==u&&(r.width=this.size.width+\"px\"),this.size.height!==c&&(r.height=this.size.height+\"px\"),n.css(r),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(r)||this._trigger(\"resize\",e,this.ui()),!1):!1},_mouseStop:function(e){this.resizing=!1;var i,n,r,o,s,a,l,u=this.options,c=this;return this._helper&&(i=this._proportionallyResizeElements,n=i.length&&/textarea/i.test(i[0].nodeName),r=n&&t.ui.hasScroll(i[0],\"left\")?0:c.sizeDiff.height,o=n?0:c.sizeDiff.width,s={width:c.helper.width()-o,height:c.helper.height()-r},a=parseInt(c.element.css(\"left\"),10)+(c.position.left-c.originalPosition.left)||null,l=parseInt(c.element.css(\"top\"),10)+(c.position.top-c.originalPosition.top)||null,u.animate||this.element.css(t.extend(s,{top:l,left:a})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!u.animate&&this._proportionallyResize()),t(\"body\").css(\"cursor\",\"auto\"),this.element.removeClass(\"ui-resizable-resizing\"),this._propagate(\"stop\",e),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(t){var e,i,r,o,s,a=this.options;s={minWidth:n(a.minWidth)?a.minWidth:0,maxWidth:n(a.maxWidth)?a.maxWidth:1/0,minHeight:n(a.minHeight)?a.minHeight:0,maxHeight:n(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||t)&&(e=s.minHeight*this.aspectRatio,r=s.minWidth/this.aspectRatio,i=s.maxHeight*this.aspectRatio,o=s.maxWidth/this.aspectRatio,e>s.minWidth&&(s.minWidth=e),r>s.minHeight&&(s.minHeight=r),i<s.maxWidth&&(s.maxWidth=i),o<s.maxHeight&&(s.maxHeight=o)),this._vBoundaries=s},_updateCache:function(t){this.offset=this.helper.offset(),n(t.left)&&(this.position.left=t.left),n(t.top)&&(this.position.top=t.top),n(t.height)&&(this.size.height=t.height),n(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,r=this.axis;return n(t.height)?t.width=t.height*this.aspectRatio:n(t.width)&&(t.height=t.width/this.aspectRatio),\"sw\"===r&&(t.left=e.left+(i.width-t.width),t.top=null),\"nw\"===r&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,r=n(t.width)&&e.maxWidth&&e.maxWidth<t.width,o=n(t.height)&&e.maxHeight&&e.maxHeight<t.height,s=n(t.width)&&e.minWidth&&e.minWidth>t.width,a=n(t.height)&&e.minHeight&&e.minHeight>t.height,l=this.originalPosition.left+this.originalSize.width,u=this.position.top+this.size.height,c=/sw|nw|w/.test(i),h=/nw|ne|n/.test(i);return s&&(t.width=e.minWidth),a&&(t.height=e.minHeight),r&&(t.width=e.maxWidth),o&&(t.height=e.maxHeight),s&&c&&(t.left=l-e.minWidth),r&&c&&(t.left=l-e.maxWidth),a&&h&&(t.top=u-e.minHeight),o&&h&&(t.top=u-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var t,e,i,n,r,o=this.helper||this.element;for(t=0;t<this._proportionallyResizeElements.length;t++){if(r=this._proportionallyResizeElements[t],!this.borderDif)for(this.borderDif=[],i=[r.css(\"borderTopWidth\"),r.css(\"borderRightWidth\"),r.css(\"borderBottomWidth\"),r.css(\"borderLeftWidth\")],n=[r.css(\"paddingTop\"),r.css(\"paddingRight\"),r.css(\"paddingBottom\"),r.css(\"paddingLeft\")],e=0;e<i.length;e++)this.borderDif[e]=(parseInt(i[e],10)||0)+(parseInt(n[e],10)||0);r.css({height:o.height()-this.borderDif[0]-this.borderDif[2]||0,width:o.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t(\"<div style='overflow:hidden;'></div>\"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:\"absolute\",left:this.elementOffset.left+\"px\",top:this.elementOffset.top+\"px\",zIndex:++i.zIndex}),this.helper.appendTo(\"body\").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize,n=this.originalPosition;return{left:n.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize,r=this.originalPosition;return{top:r.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),\"resize\"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add(\"resizable\",\"animate\",{stop:function(e){var i=t(this).data(\"ui-resizable\"),n=i.options,r=i._proportionallyResizeElements,o=r.length&&/textarea/i.test(r[0].nodeName),s=o&&t.ui.hasScroll(r[0],\"left\")?0:i.sizeDiff.height,a=o?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-s},u=parseInt(i.element.css(\"left\"),10)+(i.position.left-i.originalPosition.left)||null,c=parseInt(i.element.css(\"top\"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,c&&u?{top:c,left:u}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseInt(i.element.css(\"width\"),10),height:parseInt(i.element.css(\"height\"),10),top:parseInt(i.element.css(\"top\"),10),left:parseInt(i.element.css(\"left\"),10)};r&&r.length&&t(r[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate(\"resize\",e)}})}}),t.ui.plugin.add(\"resizable\",\"containment\",{start:function(){var e,n,r,o,s,a,l,u=t(this).data(\"ui-resizable\"),c=u.options,h=u.element,p=c.containment,d=p instanceof t?p.get(0):/parent/.test(p)?h.parent().get(0):p;d&&(u.containerElement=t(d),/document/.test(p)||p===document?(u.containerOffset={left:0,top:0},u.containerPosition={left:0,top:0},u.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(d),n=[],t([\"Top\",\"Right\",\"Left\",\"Bottom\"]).each(function(t,r){n[t]=i(e.css(\"padding\"+r))}),u.containerOffset=e.offset(),u.containerPosition=e.position(),u.containerSize={height:e.innerHeight()-n[3],width:e.innerWidth()-n[1]},r=u.containerOffset,o=u.containerSize.height,s=u.containerSize.width,a=t.ui.hasScroll(d,\"left\")?d.scrollWidth:s,l=t.ui.hasScroll(d)?d.scrollHeight:o,u.parentData={element:d,left:r.left,top:r.top,width:a,height:l}))},resize:function(e){var i,n,r,o,s=t(this).data(\"ui-resizable\"),a=s.options,l=s.containerOffset,u=s.position,c=s._aspectRatio||e.shiftKey,h={top:0,left:0},p=s.containerElement;p[0]!==document&&/static/.test(p.css(\"position\"))&&(h=l),u.left<(s._helper?l.left:0)&&(s.size.width=s.size.width+(s._helper?s.position.left-l.left:s.position.left-h.left),c&&(s.size.height=s.size.width/s.aspectRatio),s.position.left=a.helper?l.left:0),u.top<(s._helper?l.top:0)&&(s.size.height=s.size.height+(s._helper?s.position.top-l.top:s.position.top),c&&(s.size.width=s.size.height*s.aspectRatio),s.position.top=s._helper?l.top:0),s.offset.left=s.parentData.left+s.position.left,s.offset.top=s.parentData.top+s.position.top,i=Math.abs((s._helper?s.offset.left-h.left:s.offset.left-h.left)+s.sizeDiff.width),n=Math.abs((s._helper?s.offset.top-h.top:s.offset.top-l.top)+s.sizeDiff.height),r=s.containerElement.get(0)===s.element.parent().get(0),o=/relative|absolute/.test(s.containerElement.css(\"position\")),r&&o&&(i-=s.parentData.left),i+s.size.width>=s.parentData.width&&(s.size.width=s.parentData.width-i,c&&(s.size.height=s.size.width/s.aspectRatio)),n+s.size.height>=s.parentData.height&&(s.size.height=s.parentData.height-n,c&&(s.size.width=s.size.height*s.aspectRatio))},stop:function(){var e=t(this).data(\"ui-resizable\"),i=e.options,n=e.containerOffset,r=e.containerPosition,o=e.containerElement,s=t(e.helper),a=s.offset(),l=s.outerWidth()-e.sizeDiff.width,u=s.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css(\"position\"))&&t(this).css({left:a.left-r.left-n.left,width:l,height:u}),e._helper&&!i.animate&&/static/.test(o.css(\"position\"))&&t(this).css({left:a.left-r.left-n.left,width:l,height:u})}}),t.ui.plugin.add(\"resizable\",\"alsoResize\",{start:function(){var e=t(this).data(\"ui-resizable\"),i=e.options,n=function(e){t(e).each(function(){var e=t(this);e.data(\"ui-resizable-alsoresize\",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css(\"left\"),10),top:parseInt(e.css(\"top\"),10)})})};\"object\"!=typeof i.alsoResize||i.alsoResize.parentNode?n(i.alsoResize):i.alsoResize.length?(i.alsoResize=i.alsoResize[0],n(i.alsoResize)):t.each(i.alsoResize,function(t){n(t)})},resize:function(e,i){var n=t(this).data(\"ui-resizable\"),r=n.options,o=n.originalSize,s=n.originalPosition,a={height:n.size.height-o.height||0,width:n.size.width-o.width||0,top:n.position.top-s.top||0,left:n.position.left-s.left||0},l=function(e,n){t(e).each(function(){var e=t(this),r=t(this).data(\"ui-resizable-alsoresize\"),o={},s=n&&n.length?n:e.parents(i.originalElement[0]).length?[\"width\",\"height\"]:[\"width\",\"height\",\"top\",\"left\"];t.each(s,function(t,e){var i=(r[e]||0)+(a[e]||0);i&&i>=0&&(o[e]=i||null)}),e.css(o)})};\"object\"!=typeof r.alsoResize||r.alsoResize.nodeType?l(r.alsoResize):t.each(r.alsoResize,function(t,e){l(t,e)})},stop:function(){t(this).removeData(\"resizable-alsoresize\")}}),t.ui.plugin.add(\"resizable\",\"ghost\",{start:function(){var e=t(this).data(\"ui-resizable\"),i=e.options,n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:\"block\",position:\"relative\",height:n.height,width:n.width,margin:0,left:0,top:0}).addClass(\"ui-resizable-ghost\").addClass(\"string\"==typeof i.ghost?i.ghost:\"\"),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).data(\"ui-resizable\");e.ghost&&e.ghost.css({position:\"relative\",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).data(\"ui-resizable\");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add(\"resizable\",\"grid\",{resize:function(){var e=t(this).data(\"ui-resizable\"),i=e.options,n=e.size,r=e.originalSize,o=e.originalPosition,s=e.axis,a=\"number\"==typeof i.grid?[i.grid,i.grid]:i.grid,l=a[0]||1,u=a[1]||1,c=Math.round((n.width-r.width)/l)*l,h=Math.round((n.height-r.height)/u)*u,p=r.width+c,d=r.height+h,f=i.maxWidth&&i.maxWidth<p,g=i.maxHeight&&i.maxHeight<d,m=i.minWidth&&i.minWidth>p,_=i.minHeight&&i.minHeight>d;i.grid=a,m&&(p+=l),_&&(d+=u),f&&(p-=l),g&&(d-=u),/^(se|s|e)$/.test(s)?(e.size.width=p,e.size.height=d):/^(ne)$/.test(s)?(e.size.width=p,e.size.height=d,e.position.top=o.top-h):/^(sw)$/.test(s)?(e.size.width=p,e.size.height=d,e.position.left=o.left-c):(e.size.width=p,e.size.height=d,e.position.top=o.top-h,e.position.left=o.left-c)}})}(n),function(t,e){t.widget(\"ui.selectable\",t.ui.mouse,{version:\"1.10.3\",options:{appendTo:\"body\",autoRefresh:!0,distance:0,filter:\"*\",tolerance:\"touch\",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e,i=this;this.element.addClass(\"ui-selectable\"),this.dragged=!1,this.refresh=function(){e=t(i.options.filter,i.element[0]),e.addClass(\"ui-selectee\"),e.each(function(){var e=t(this),i=e.offset();t.data(this,\"selectable-item\",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass(\"ui-selected\"),selecting:e.hasClass(\"ui-selecting\"),unselecting:e.hasClass(\"ui-unselecting\")})})},this.refresh(),this.selectees=e.addClass(\"ui-selectee\"),this._mouseInit(),this.helper=t(\"<div class='ui-selectable-helper'></div>\")},_destroy:function(){this.selectees.removeClass(\"ui-selectee\").removeData(\"selectable-item\"),this.element.removeClass(\"ui-selectable ui-selectable-disabled\"),this._mouseDestroy()},_mouseStart:function(e){var i=this,n=this.options;this.opos=[e.pageX,e.pageY],this.options.disabled||(this.selectees=t(n.filter,this.element[0]),this._trigger(\"start\",e),t(n.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(\".ui-selected\").each(function(){var n=t.data(this,\"selectable-item\");n.startselected=!0,e.metaKey||e.ctrlKey||(n.$element.removeClass(\"ui-selected\"),n.selected=!1,n.$element.addClass(\"ui-unselecting\"),n.unselecting=!0,i._trigger(\"unselecting\",e,{unselecting:n.element}))}),t(e.target).parents().addBack().each(function(){var n,r=t.data(this,\"selectable-item\");return r?(n=!e.metaKey&&!e.ctrlKey||!r.$element.hasClass(\"ui-selected\"),r.$element.removeClass(n?\"ui-unselecting\":\"ui-selected\").addClass(n?\"ui-selecting\":\"ui-unselecting\"),r.unselecting=!n,r.selecting=n,r.selected=n,n?i._trigger(\"selecting\",e,{selecting:r.element}):i._trigger(\"unselecting\",e,{unselecting:r.element}),!1):void 0}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,n=this,r=this.options,o=this.opos[0],s=this.opos[1],a=e.pageX,l=e.pageY;return o>a&&(i=a,a=o,o=i),s>l&&(i=l,l=s,s=i),this.helper.css({left:o,top:s,width:a-o,height:l-s}),this.selectees.each(function(){var i=t.data(this,\"selectable-item\"),u=!1;i&&i.element!==n.element[0]&&(\"touch\"===r.tolerance?u=!(i.left>a||i.right<o||i.top>l||i.bottom<s):\"fit\"===r.tolerance&&(u=i.left>o&&i.right<a&&i.top>s&&i.bottom<l),u?(i.selected&&(i.$element.removeClass(\"ui-selected\"),i.selected=!1),i.unselecting&&(i.$element.removeClass(\"ui-unselecting\"),i.unselecting=!1),i.selecting||(i.$element.addClass(\"ui-selecting\"),i.selecting=!0,n._trigger(\"selecting\",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(i.$element.removeClass(\"ui-selecting\"),i.selecting=!1,i.$element.addClass(\"ui-selected\"),i.selected=!0):(i.$element.removeClass(\"ui-selecting\"),i.selecting=!1,i.startselected&&(i.$element.addClass(\"ui-unselecting\"),i.unselecting=!0),n._trigger(\"unselecting\",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(i.$element.removeClass(\"ui-selected\"),i.selected=!1,i.$element.addClass(\"ui-unselecting\"),i.unselecting=!0,n._trigger(\"unselecting\",e,{unselecting:i.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(\".ui-unselecting\",this.element[0]).each(function(){var n=t.data(this,\"selectable-item\");n.$element.removeClass(\"ui-unselecting\"),n.unselecting=!1,n.startselected=!1,i._trigger(\"unselected\",e,{unselected:n.element})}),t(\".ui-selecting\",this.element[0]).each(function(){var n=t.data(this,\"selectable-item\");n.$element.removeClass(\"ui-selecting\").addClass(\"ui-selected\"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger(\"selected\",e,{selected:n.element})}),this._trigger(\"stop\",e),this.helper.remove(),!1}})}(n),function(t,e){function i(t,e,i){return t>e&&e+i>t}function n(t){return/left|right/.test(t.css(\"float\"))||/inline|table-cell/.test(t.css(\"display\"))}t.widget(\"ui.sortable\",t.ui.mouse,{version:\"1.10.3\",widgetEventPrefix:\"sort\",ready:!1,options:{appendTo:\"parent\",axis:!1,connectWith:!1,containment:!1,cursor:\"auto\",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:\"original\",items:\"> *\",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:\"default\",tolerance:\"intersect\",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var t=this.options;this.containerCache={},this.element.addClass(\"ui-sortable\"),this.refresh(),this.floating=this.items.length?\"x\"===t.axis||n(this.items[0].item):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass(\"ui-sortable ui-sortable-disabled\"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+\"-item\");return this},_setOption:function(e,i){\"disabled\"===e?(this.options[e]=i,this.widget().toggleClass(\"ui-sortable-disabled\",!!i)):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){var n=null,r=!1,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?(n=t(this),!1):void 0}),t.data(e.target,o.widgetName+\"-item\")===o&&(n=t(e.target)),n&&(!this.options.handle||i||(t(this.options.handle,n).find(\"*\").addBack().each(function(){this===e.target&&(r=!0)}),r))?(this.currentItem=n,this._removeCurrentsFromItems(),!0):!1)},_mouseStart:function(e,i,n){var r,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(),!n)for(r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger(\"activate\",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass(\"ui-sortable-helper\"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,r,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\"),i=this.items.length-1;i>=0;i--)if(n=this.items[i],r=n.item[0],o=this._intersectsWithPointer(n),o&&n.instance===this.currentContainer&&r!==this.currentItem[0]&&this.placeholder[1===o?\"next\":\"prev\"]()[0]!==r&&!t.contains(this.placeholder[0],r)&&(\"semi-dynamic\"===this.options.type?!t.contains(this.element[0],r):!0)){if(this.direction=1===o?\"down\":\"up\",\"pointer\"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger(\"change\",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger(\"sort\",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,r=this.placeholder.offset(),o=this.options.axis,s={};o&&\"x\"!==o||(s.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),o&&\"y\"!==o||(s.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(s,parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),\"original\"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass(\"ui-sortable-helper\"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger(\"deactivate\",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger(\"out\",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),\"original\"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||\"id\")||\"\").match(e.expression||/(.+)[\\-=_](.+)/);i&&n.push((e.key||i[1]+\"[]\")+\"=\"+(e.key&&e.expression?i[1]:i[2]))}),!n.length&&e.key&&n.push(e.key+\"=\"),n.join(\"&\")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each(function(){n.push(t(e.item||this).attr(e.attribute||\"id\")||\"\")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,r=n+this.helperProportions.height,o=t.left,s=o+t.width,a=t.top,l=a+t.height,u=this.offset.click.top,c=this.offset.click.left,h=\"x\"===this.options.axis||n+u>a&&l>n+u,p=\"y\"===this.options.axis||e+c>o&&s>e+c,d=h&&p;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&&i-this.helperProportions.width/2<s&&a<n+this.helperProportions.height/2&&r-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e=\"x\"===this.options.axis||i(this.positionAbs.top+this.offset.click.top,t.top,t.height),n=\"y\"===this.options.axis||i(this.positionAbs.left+this.offset.click.left,t.left,t.width),r=e&&n,o=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return r?this.floating?s&&\"right\"===s||\"down\"===o?2:1:o&&(\"down\"===o?2:1):!1},_intersectsWithSides:function(t){var e=i(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=i(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),r=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return this.floating&&o?\"right\"===o&&n||\"left\"===o&&!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.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,r,o,s=[],a=[],l=this._connectWith();if(l&&e)for(i=l.length-1;i>=0;i--)for(r=t(l[i]),n=r.length-1;n>=0;n--)o=t.data(r[n],this.widgetFullName),o&&o!==this&&!o.options.disabled&&a.push([t.isFunction(o.options.items)?o.options.items.call(o.element):t(o.options.items,o.element).not(\".ui-sortable-helper\").not(\".ui-sortable-placeholder\"),o]);for(a.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(\".ui-sortable-helper\").not(\".ui-sortable-placeholder\"),this]),i=a.length-1;i>=0;i--)a[i][0].each(function(){s.push(this)});return t(s)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(\":data(\"+this.widgetName+\"-item)\");this.items=t.grep(this.items,function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,r,o,s,a,l,u,c=this.items,h=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],p=this._connectWith();if(p&&this.ready)for(i=p.length-1;i>=0;i--)for(r=t(p[i]),n=r.length-1;n>=0;n--)o=t.data(r[n],this.widgetFullName),o&&o!==this&&!o.options.disabled&&(h.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(i=h.length-1;i>=0;i--)for(s=h[i][1],a=h[i][0],n=0,u=a.length;u>n;n++)l=t(a[n]),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 i,n,r,o;for(i=this.items.length-1;i>=0;i--)n=this.items[i],n.instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=r.outerWidth(),n.height=r.outerHeight()),o=r.offset(),n.left=o.left,n.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)o=this.containers[i].element.offset(),this.containers[i].containerCache.left=o.left,this.containers[i].containerCache.top=o.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var i,n=e.options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),r=t(\"<\"+n+\">\",e.document[0]).addClass(i||e.currentItem[0].className+\" ui-sortable-placeholder\").removeClass(\"ui-sortable-helper\");return\"tr\"===n?e.currentItem.children().each(function(){t(\"<td>&#160;</td>\",e.document[0]).attr(\"colspan\",t(this).attr(\"colspan\")||1).appendTo(r)}):\"img\"===n&&r.attr(\"src\",e.currentItem.attr(\"src\")),i||r.css(\"visibility\",\"hidden\"),r},update:function(t,r){(!i||n.forcePlaceholderSize)&&(r.height()||r.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css(\"paddingTop\")||0,10)-parseInt(e.currentItem.css(\"paddingBottom\")||0,10)),r.width()||r.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css(\"paddingLeft\")||0,10)-parseInt(e.currentItem.css(\"paddingRight\")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_contactContainers:function(e){var r,o,s,a,l,u,c,h,p,d,f=null,g=null;for(r=this.containers.length-1;r>=0;r--)if(!t.contains(this.currentItem[0],this.containers[r].element[0]))if(this._intersectsWith(this.containers[r].containerCache)){if(f&&t.contains(this.containers[r].element[0],f.element[0]))continue;f=this.containers[r],g=r}else this.containers[r].containerCache.over&&(this.containers[r]._trigger(\"out\",e,this._uiHash(this)),\n",
       "                this.containers[r].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[g].containerCache.over||(this.containers[g]._trigger(\"over\",e,this._uiHash(this)),this.containers[g].containerCache.over=1);else{for(s=1e4,a=null,d=f.floating||n(this.currentItem),l=d?\"left\":\"top\",u=d?\"width\":\"height\",c=this.positionAbs[l]+this.offset.click[l],o=this.items.length-1;o>=0;o--)t.contains(this.containers[g].element[0],this.items[o].item[0])&&this.items[o].item[0]!==this.currentItem[0]&&(!d||i(this.positionAbs.top+this.offset.click.top,this.items[o].top,this.items[o].height))&&(h=this.items[o].item.offset()[l],p=!1,Math.abs(h-c)>Math.abs(h+this.items[o][u]-c)&&(p=!0,h+=this.items[o][u]),Math.abs(h-c)<s&&(s=Math.abs(h-c),a=this.items[o],this.direction=p?\"up\":\"down\"));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[g])return;a?this._rearrange(e,a,null,!0):this._rearrange(e,null,this.containers[g].element,!0),this._trigger(\"change\",e,this._uiHash()),this.containers[g]._trigger(\"change\",e,this._uiHash(this)),this.currentContainer=this.containers[g],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[g]._trigger(\"over\",e,this._uiHash(this)),this.containers[g].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):\"clone\"===i.helper?this.currentItem.clone():this.currentItem;return n.parents(\"body\").length||t(\"parent\"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[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\")}),(!n[0].style.width||i.forceHelperSize)&&n.width(this.currentItem.width()),(!n[0].style.height||i.forceHelperSize)&&n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){\"string\"==typeof e&&(e=e.split(\" \")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),\"left\"in e&&(this.offset.click.left=e.left+this.margins.left),\"right\"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),\"top\"in e&&(this.offset.click.top=e.top+this.margins.top),\"bottom\"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){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,i,n,r=this.options;\"parent\"===r.containment&&(r.containment=this.helper[0].parentNode),(\"document\"===r.containment||\"window\"===r.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t(\"document\"===r.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t(\"document\"===r.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(r.containment)||(e=t(r.containment)[0],i=t(r.containment).offset(),n=\"hidden\"!==t(e).css(\"overflow\"),this.containment=[i.left+(parseInt(t(e).css(\"borderLeftWidth\"),10)||0)+(parseInt(t(e).css(\"paddingLeft\"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css(\"borderTopWidth\"),10)||0)+(parseInt(t(e).css(\"paddingTop\"),10)||0)-this.margins.top,i.left+(n?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,i.top+(n?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,i){i||(i=this.position);var n=\"absolute\"===e?1:-1,r=\"absolute\"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(r[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-(\"fixed\"===this.cssPosition?-this.scrollParent.scrollTop():o?0:r.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-(\"fixed\"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:r.scrollLeft())*n}},_generatePosition:function(e){var i,n,r=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)),r.grid&&(i=this.originalPageY+Math.round((s-this.originalPageY)/r.grid[1])*r.grid[1],s=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-r.grid[1]:i+r.grid[1]:i,n=this.originalPageX+Math.round((o-this.originalPageX)/r.grid[0])*r.grid[0],o=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-r.grid[0]:n+r.grid[0]:n)),{top: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,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],\"down\"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay(function(){r===this.counter&&this.refreshPositions(!n)})},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)(\"auto\"===this._storedCSS[i]||\"static\"===this._storedCSS[i])&&(this._storedCSS[i]=\"\");this.currentItem.css(this._storedCSS).removeClass(\"ui-sortable-helper\")}else this.currentItem.show();for(this.fromOutside&&!e&&n.push(function(t){this._trigger(\"receive\",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(\".ui-sortable-helper\")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger(\"update\",t,this._uiHash())}),this!==this.currentContainer&&(e||(n.push(function(t){this._trigger(\"remove\",t,this._uiHash())}),n.push(function(t){return function(e){t._trigger(\"receive\",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger(\"update\",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||n.push(function(t){return function(e){t._trigger(\"deactivate\",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(function(t){return function(e){t._trigger(\"out\",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find(\"body\").css(\"cursor\",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css(\"opacity\",this._storedOpacity),this._storedZIndex&&this.helper.css(\"zIndex\",\"auto\"===this._storedZIndex?\"\":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!e){for(this._trigger(\"beforeStop\",t,this._uiHash()),i=0;i<n.length;i++)n[i].call(this,t);this._trigger(\"stop\",t,this._uiHash())}return this.fromOutside=!1,!1}if(e||this._trigger(\"beforeStop\",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!e){for(i=0;i<n.length;i++)n[i].call(this,t);this._trigger(\"stop\",t,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})}(n),function(t,e){var i=\"ui-effects-\";t.effects={effect:{}},function(t,e){function i(t,e,i){var n=h[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:0>t?0:n.max<t?n.max:t)}function n(e){var i=u(),n=i._rgba=[];return e=e.toLowerCase(),f(l,function(t,r){var o,s=r.re.exec(e),a=s&&r.parse(s),l=r.space||\"rgba\";return a?(o=i[l](a),i[c[l].cache]=o[c[l].cache],n=i._rgba=o._rgba,!1):void 0}),n.length?(\"0,0,0,0\"===n.join()&&t.extend(n,o.transparent),i):o[e]}function r(t,e,i){return i=(i+1)%1,1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}var o,s=\"backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor\",a=/^([\\-+])=\\s*(\\d+\\.?\\d*)/,l=[{re:/rgba?\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*(?:,\\s*(\\d?(?:\\.\\d+)?)\\s*)?\\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\\(\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*(?:,\\s*(\\d?(?:\\.\\d+)?)\\s*)?\\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\\(\\s*(\\d+(?:\\.\\d+)?)\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*(?:,\\s*(\\d?(?:\\.\\d+)?)\\s*)?\\)/,space:\"hsla\",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],u=t.Color=function(e,i,n,r){return new t.Color.fn.parse(e,i,n,r)},c={rgba:{props:{red:{idx:0,type:\"byte\"},green:{idx:1,type:\"byte\"},blue:{idx:2,type:\"byte\"}}},hsla:{props:{hue:{idx:0,type:\"degrees\"},saturation:{idx:1,type:\"percent\"},lightness:{idx:2,type:\"percent\"}}}},h={\"byte\":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},p=u.support={},d=t(\"<p>\")[0],f=t.each;d.style.cssText=\"background-color:rgba(1,1,1,.5)\",p.rgba=d.style.backgroundColor.indexOf(\"rgba\")>-1,f(c,function(t,e){e.cache=\"_\"+t,e.props.alpha={idx:3,type:\"percent\",def:1}}),u.fn=t.extend(u.prototype,{parse:function(r,s,a,l){if(r===e)return this._rgba=[null,null,null,null],this;(r.jquery||r.nodeType)&&(r=t(r).css(s),s=e);var h=this,p=t.type(r),d=this._rgba=[];return s!==e&&(r=[r,s,a,l],p=\"array\"),\"string\"===p?this.parse(n(r)||o._default):\"array\"===p?(f(c.rgba.props,function(t,e){d[e.idx]=i(r[e.idx],e)}),this):\"object\"===p?(r instanceof u?f(c,function(t,e){r[e.cache]&&(h[e.cache]=r[e.cache].slice())}):f(c,function(e,n){var o=n.cache;f(n.props,function(t,e){if(!h[o]&&n.to){if(\"alpha\"===t||null==r[t])return;h[o]=n.to(h._rgba)}h[o][e.idx]=i(r[t],e,!0)}),h[o]&&t.inArray(null,h[o].slice(0,3))<0&&(h[o][3]=1,n.from&&(h._rgba=n.from(h[o])))}),this):void 0},is:function(t){var e=u(t),i=!0,n=this;return f(c,function(t,r){var o,s=e[r.cache];return s&&(o=n[r.cache]||r.to&&r.to(n._rgba)||[],f(r.props,function(t,e){return null!=s[e.idx]?i=s[e.idx]===o[e.idx]:void 0})),i}),i},_space:function(){var t=[],e=this;return f(c,function(i,n){e[n.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var n=u(t),r=n._space(),o=c[r],s=0===this.alpha()?u(\"transparent\"):this,a=s[o.cache]||o.to(s._rgba),l=a.slice();return n=n[o.cache],f(o.props,function(t,r){var o=r.idx,s=a[o],u=n[o],c=h[r.type]||{};null!==u&&(null===s?l[o]=u:(c.mod&&(u-s>c.mod/2?s+=c.mod:s-u>c.mod/2&&(s-=c.mod)),l[o]=i((u-s)*e+s,r)))}),this[r](l)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),r=u(e)._rgba;return u(t.map(i,function(t,e){return(1-n)*r[e]+n*t}))},toRgbaString:function(){var e=\"rgba(\",i=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),e=\"rgb(\"),e+i.join()+\")\"},toHslaString:function(){var e=\"hsla(\",i=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+\"%\"),t});return 1===i[3]&&(i.pop(),e=\"hsl(\"),e+i.join()+\")\"},toHexString:function(e){var i=this._rgba.slice(),n=i.pop();return e&&i.push(~~(255*n)),\"#\"+t.map(i,function(t){return t=(t||0).toString(16),1===t.length?\"0\"+t:t}).join(\"\")},toString:function(){return 0===this._rgba[3]?\"transparent\":this.toRgbaString()}}),u.fn.parse.prototype=u.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,n=t[0]/255,r=t[1]/255,o=t[2]/255,s=t[3],a=Math.max(n,r,o),l=Math.min(n,r,o),u=a-l,c=a+l,h=.5*c;return e=l===a?0:n===a?60*(r-o)/u+360:r===a?60*(o-n)/u+120:60*(n-r)/u+240,i=0===u?0:.5>=h?u/c:u/(2-c),[Math.round(e)%360,i,h,null==s?1:s]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],n=t[2],o=t[3],s=.5>=n?n*(1+i):n+i-n*i,a=2*n-s;return[Math.round(255*r(a,s,e+1/3)),Math.round(255*r(a,s,e)),Math.round(255*r(a,s,e-1/3)),o]},f(c,function(n,r){var o=r.props,s=r.cache,l=r.to,c=r.from;u.fn[n]=function(n){if(l&&!this[s]&&(this[s]=l(this._rgba)),n===e)return this[s].slice();var r,a=t.type(n),h=\"array\"===a||\"object\"===a?n:arguments,p=this[s].slice();return f(o,function(t,e){var n=h[\"object\"===a?t:e.idx];null==n&&(n=p[e.idx]),p[e.idx]=i(n,e)}),c?(r=u(c(p)),r[s]=p,r):u(p)},f(o,function(e,i){u.fn[e]||(u.fn[e]=function(r){var o,s=t.type(r),l=\"alpha\"===e?this._hsla?\"hsla\":\"rgba\":n,u=this[l](),c=u[i.idx];return\"undefined\"===s?c:(\"function\"===s&&(r=r.call(this,c),s=t.type(r)),null==r&&i.empty?this:(\"string\"===s&&(o=a.exec(r),o&&(r=c+parseFloat(o[2])*(\"+\"===o[1]?1:-1))),u[i.idx]=r,this[l](u)))})})}),u.hook=function(e){var i=e.split(\" \");f(i,function(e,i){t.cssHooks[i]={set:function(e,r){var o,s,a=\"\";if(\"transparent\"!==r&&(\"string\"!==t.type(r)||(o=n(r)))){if(r=u(o||r),!p.rgba&&1!==r._rgba[3]){for(s=\"backgroundColor\"===i?e.parentNode:e;(\"\"===a||\"transparent\"===a)&&s&&s.style;)try{a=t.css(s,\"backgroundColor\"),s=s.parentNode}catch(l){}r=r.blend(a&&\"transparent\"!==a?a:\"_default\")}r=r.toRgbaString()}try{e.style[i]=r}catch(l){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=u(e.elem,i),e.end=u(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},u.hook(s),t.cssHooks.borderColor={expand:function(t){var e={};return f([\"Top\",\"Right\",\"Bottom\",\"Left\"],function(i,n){e[\"border\"+n+\"Color\"]=t}),e}},o=t.Color.names={aqua:\"#00ffff\",black:\"#000000\",blue:\"#0000ff\",fuchsia:\"#ff00ff\",gray:\"#808080\",green:\"#008000\",lime:\"#00ff00\",maroon:\"#800000\",navy:\"#000080\",olive:\"#808000\",purple:\"#800080\",red:\"#ff0000\",silver:\"#c0c0c0\",teal:\"#008080\",white:\"#ffffff\",yellow:\"#ffff00\",transparent:[null,null,null,0],_default:\"#ffffff\"}}(n),function(){function i(e){var i,n,r=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(r&&r.length&&r[0]&&r[r[0]])for(n=r.length;n--;)i=r[n],\"string\"==typeof r[i]&&(o[t.camelCase(i)]=r[i]);else for(i in r)\"string\"==typeof r[i]&&(o[i]=r[i]);return o}function r(e,i){var n,r,o={};for(n in i)r=i[n],e[n]!==r&&(s[n]||(t.fx.step[n]||!isNaN(parseFloat(r)))&&(o[n]=r));return o}var o=[\"add\",\"remove\",\"toggle\"],s={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each([\"borderLeftStyle\",\"borderRightStyle\",\"borderBottomStyle\",\"borderTopStyle\"],function(e,i){t.fx.step[i]=function(t){(\"none\"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(n.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(e,n,s,a){var l=t.speed(n,s,a);return this.queue(function(){var n,s=t(this),a=s.attr(\"class\")||\"\",u=l.children?s.find(\"*\").addBack():s;u=u.map(function(){var e=t(this);return{el:e,start:i(this)}}),n=function(){t.each(o,function(t,i){e[i]&&s[i+\"Class\"](e[i])})},n(),u=u.map(function(){return this.end=i(this.el[0]),this.diff=r(this.start,this.end),this}),s.attr(\"class\",a),u=u.map(function(){var e=this,i=t.Deferred(),n=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,n),i.promise()}),t.when.apply(t,u.get()).done(function(){n(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,\"\")})}),l.complete.call(s[0])})})},t.fn.extend({addClass:function(e){return function(i,n,r,o){return n?t.effects.animateClass.call(this,{add:i},n,r,o):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,n,r,o){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},n,r,o):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(i){return function(n,r,o,s,a){return\"boolean\"==typeof r||r===e?o?t.effects.animateClass.call(this,r?{add:n}:{remove:n},o,s,a):i.apply(this,arguments):t.effects.animateClass.call(this,{toggle:n},r,o,s)}}(t.fn.toggleClass),switchClass:function(e,i,n,r,o){return t.effects.animateClass.call(this,{add:i,remove:e},n,r,o)}})}(),function(){function n(e,i,n,r){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(r=i,n=null,i={}),(\"number\"==typeof i||t.fx.speeds[i])&&(r=n,n=i,i={}),t.isFunction(n)&&(r=n,n=null),i&&t.extend(e,i),n=n||i.duration,e.duration=t.fx.off?0:\"number\"==typeof n?n:n in t.fx.speeds?t.fx.speeds[n]:t.fx.speeds._default,e.complete=r||i.complete,e}function r(e){return!e||\"number\"==typeof e||t.fx.speeds[e]?!0:\"string\"!=typeof e||t.effects.effect[e]?t.isFunction(e)?!0:\"object\"!=typeof e||e.effect?!1:!0:!0}t.extend(t.effects,{version:\"1.10.3\",save:function(t,e){for(var n=0;n<e.length;n++)null!==e[n]&&t.data(i+e[n],t[0].style[e[n]])},restore:function(t,n){var r,o;for(o=0;o<n.length;o++)null!==n[o]&&(r=t.data(i+n[o]),r===e&&(r=\"\"),t.css(n[o],r))},setMode:function(t,e){return\"toggle\"===e&&(e=t.is(\":hidden\")?\"show\":\"hide\"),e},getBaseline:function(t,e){var i,n;switch(t[0]){case\"top\":i=0;break;case\"middle\":i=.5;break;case\"bottom\":i=1;break;default:i=t[0]/e.height}switch(t[1]){case\"left\":n=0;break;case\"center\":n=.5;break;case\"right\":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createWrapper:function(e){if(e.parent().is(\".ui-effects-wrapper\"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),\"float\":e.css(\"float\")},n=t(\"<div></div>\").addClass(\"ui-effects-wrapper\").css({fontSize:\"100%\",background:\"transparent\",border:\"none\",margin:0,padding:0}),r={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(s){o=document.body}return e.wrap(n),(e[0]===o||t.contains(e[0],o))&&t(o).focus(),n=e.parent(),\"static\"===e.css(\"position\")?(n.css({position:\"relative\"}),e.css({position:\"relative\"})):(t.extend(i,{position:e.css(\"position\"),zIndex:e.css(\"z-index\")}),t.each([\"top\",\"left\",\"bottom\",\"right\"],function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&&(i[n]=\"auto\")}),e.css({position:\"relative\",top:0,left:0,right:\"auto\",bottom:\"auto\"})),e.css(r),n.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(\".ui-effects-wrapper\")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).focus()),e},setTransition:function(e,i,n,r){return r=r||{},t.each(i,function(t,i){var o=e.cssUnit(i);o[0]>0&&(r[i]=o[0]*n+o[1])}),r}}),t.fn.extend({effect:function(){function e(e){function n(){t.isFunction(o)&&o.call(r[0]),t.isFunction(e)&&e()}var r=t(this),o=i.complete,a=i.mode;(r.is(\":hidden\")?\"hide\"===a:\"show\"===a)?(r[a](),n()):s.call(r[0],i,n)}var i=n.apply(this,arguments),r=i.mode,o=i.queue,s=t.effects.effect[i.effect];return t.fx.off||!s?r?this[r](i.duration,i.complete):this.each(function(){i.complete&&i.complete.call(this)}):o===!1?this.each(e):this.queue(o||\"fx\",e)},show:function(t){return function(e){if(r(e))return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode=\"show\",this.effect.call(this,i)}}(t.fn.show),hide:function(t){return function(e){if(r(e))return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode=\"hide\",this.effect.call(this,i)}}(t.fn.hide),toggle:function(t){return function(e){if(r(e)||\"boolean\"==typeof e)return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode=\"toggle\",this.effect.call(this,i)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),n=[];return t.each([\"em\",\"px\",\"%\",\"pt\"],function(t,e){i.indexOf(e)>0&&(n=[parseFloat(i),e])}),n}})}(),function(){var e={};t.each([\"Quad\",\"Cubic\",\"Quart\",\"Quint\",\"Expo\"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing[\"easeIn\"+e]=i,t.easing[\"easeOut\"+e]=function(t){return 1-i(1-t)},t.easing[\"easeInOut\"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}})}()}(n),function(t,e){var i=0,n={},r={};n.height=n.paddingTop=n.paddingBottom=n.borderTopWidth=n.borderBottomWidth=\"hide\",r.height=r.paddingTop=r.paddingBottom=r.borderTopWidth=r.borderBottomWidth=\"show\",t.widget(\"ui.accordion\",{version:\"1.10.3\",options:{active:0,animate:{},collapsible:!1,event:\"click\",header:\"> li > :first-child,> :not(li):even\",heightStyle:\"auto\",icons:{activeHeader:\"ui-icon-triangle-1-s\",header:\"ui-icon-triangle-1-e\"},activate:null,beforeActivate:null},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this.element.addClass(\"ui-accordion ui-widget ui-helper-reset\").attr(\"role\",\"tablist\"),e.collapsible||e.active!==!1&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t(),content:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&&(t(\"<span>\").addClass(\"ui-accordion-header-icon ui-icon \"+e.header).prependTo(this.headers),this.active.children(\".ui-accordion-header-icon\").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass(\"ui-accordion-icons\"))},_destroyIcons:function(){this.headers.removeClass(\"ui-accordion-icons\").children(\".ui-accordion-header-icon\").remove()},_destroy:function(){var t;this.element.removeClass(\"ui-accordion ui-widget ui-helper-reset\").removeAttr(\"role\"),this.headers.removeClass(\"ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top\").removeAttr(\"role\").removeAttr(\"aria-selected\").removeAttr(\"aria-controls\").removeAttr(\"tabIndex\").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute(\"id\")}),this._destroyIcons(),t=this.headers.next().css(\"display\",\"\").removeAttr(\"role\").removeAttr(\"aria-expanded\").removeAttr(\"aria-hidden\").removeAttr(\"aria-labelledby\").removeClass(\"ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled\").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute(\"id\")}),\"content\"!==this.options.heightStyle&&t.css(\"height\",\"\")},_setOption:function(t,e){return\"active\"===t?void this._activate(e):(\"event\"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),\"collapsible\"!==t||e||this.options.active!==!1||this._activate(0),\"icons\"===t&&(this._destroyIcons(),e&&this._createIcons()),void(\"disabled\"===t&&this.headers.add(this.headers.next()).toggleClass(\"ui-state-disabled\",!!e)))},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,n=this.headers.length,r=this.headers.index(e.target),o=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:o=this.headers[(r+1)%n];break;case i.LEFT:case i.UP:o=this.headers[(r-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:o=this.headers[0];break;case i.END:o=this.headers[n-1]}o&&(t(e.target).attr(\"tabIndex\",-1),t(o).attr(\"tabIndex\",0),o.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),e.active===!1&&e.collapsible===!0||!this.headers.length?(e.active=!1,this.active=t()):e.active===!1?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(\".ui-state-disabled\").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass(\"ui-accordion-header ui-helper-reset ui-state-default ui-corner-all\"),this.headers.next().addClass(\"ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom\").filter(\":not(.ui-accordion-content-active)\").hide()},_refresh:function(){var e,n=this.options,r=n.heightStyle,o=this.element.parent(),s=this.accordionId=\"ui-accordion-\"+(this.element.attr(\"id\")||++i);this.active=this._findActive(n.active).addClass(\"ui-accordion-header-active ui-state-active ui-corner-top\").removeClass(\"ui-corner-all\"),this.active.next().addClass(\"ui-accordion-content-active\").show(),this.headers.attr(\"role\",\"tab\").each(function(e){var i=t(this),n=i.attr(\"id\"),r=i.next(),o=r.attr(\"id\");n||(n=s+\"-header-\"+e,i.attr(\"id\",n)),o||(o=s+\"-panel-\"+e,r.attr(\"id\",o)),i.attr(\"aria-controls\",o),r.attr(\"aria-labelledby\",n)}).next().attr(\"role\",\"tabpanel\"),this.headers.not(this.active).attr({\"aria-selected\":\"false\",tabIndex:-1}).next().attr({\"aria-expanded\":\"false\",\"aria-hidden\":\"true\"}).hide(),this.active.length?this.active.attr({\"aria-selected\":\"true\",tabIndex:0}).next().attr({\"aria-expanded\":\"true\",\"aria-hidden\":\"false\"}):this.headers.eq(0).attr(\"tabIndex\",0),this._createIcons(),this._setupEvents(n.event),\"fill\"===r?(e=o.height(),this.element.siblings(\":visible\").each(function(){var i=t(this),n=i.css(\"position\");\"absolute\"!==n&&\"fixed\"!==n&&(e-=i.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css(\"overflow\",\"auto\")):\"auto\"===r&&(e=0,this.headers.next().each(function(){e=Math.max(e,t(this).css(\"height\",\"\").height())}).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return\"number\"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:\"_keydown\"};e&&t.each(e.split(\" \"),function(t,e){i[e]=\"_eventHandler\"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:\"_panelKeyDown\"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i=this.options,n=this.active,r=t(e.currentTarget),o=r[0]===n[0],s=o&&i.collapsible,a=s?t():r.next(),l=n.next(),u={oldHeader:n,oldPanel:l,newHeader:s?t():r,newPanel:a};e.preventDefault(),o&&!i.collapsible||this._trigger(\"beforeActivate\",e,u)===!1||(i.active=s?!1:this.headers.index(r),this.active=o?t():r,this._toggle(u),n.removeClass(\"ui-accordion-header-active ui-state-active\"),i.icons&&n.children(\".ui-accordion-header-icon\").removeClass(i.icons.activeHeader).addClass(i.icons.header),o||(r.removeClass(\"ui-corner-all\").addClass(\"ui-accordion-header-active ui-state-active ui-corner-top\"),i.icons&&r.children(\".ui-accordion-header-icon\").removeClass(i.icons.header).addClass(i.icons.activeHeader),r.next().addClass(\"ui-accordion-content-active\")))},_toggle:function(e){var i=e.newPanel,n=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=n,this.options.animate?this._animate(i,n,e):(n.hide(),i.show(),this._toggleComplete(e)),n.attr({\"aria-expanded\":\"false\",\"aria-hidden\":\"true\"}),n.prev().attr(\"aria-selected\",\"false\"),i.length&&n.length?n.prev().attr(\"tabIndex\",-1):i.length&&this.headers.filter(function(){return 0===t(this).attr(\"tabIndex\")}).attr(\"tabIndex\",-1),i.attr({\"aria-expanded\":\"true\",\"aria-hidden\":\"false\"}).prev().attr({\"aria-selected\":\"true\",tabIndex:0})},_animate:function(t,e,i){var o,s,a,l=this,u=0,c=t.length&&(!e.length||t.index()<e.index()),h=this.options.animate||{},p=c&&h.down||h,d=function(){l._toggleComplete(i)};return\"number\"==typeof p&&(a=p),\"string\"==typeof p&&(s=p),s=s||p.easing||h.easing,a=a||p.duration||h.duration,e.length?t.length?(o=t.show().outerHeight(),e.animate(n,{duration:a,easing:s,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(r,{duration:a,easing:s,complete:d,step:function(t,i){i.now=Math.round(t),\"height\"!==i.prop?u+=i.now:\"content\"!==l.options.heightStyle&&(i.now=Math.round(o-e.outerHeight()-u),u=0)}})):e.animate(n,a,s,d):t.animate(r,a,s,d)},_toggleComplete:function(t){var e=t.oldPanel;e.removeClass(\"ui-accordion-content-active\").prev().removeClass(\"ui-corner-top\").addClass(\"ui-corner-all\"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger(\"activate\",null,t)}})}(n),function(t,e){var i=0;t.widget(\"ui.autocomplete\",{version:\"1.10.3\",defaultElement:\"<input>\",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:\"left top\",at:\"left bottom\",collision:\"none\"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var e,i,n,r=this.element[0].nodeName.toLowerCase(),o=\"textarea\"===r,s=\"input\"===r;this.isMultiLine=o?!0:s?!1:this.element.prop(\"isContentEditable\"),this.valueMethod=this.element[o||s?\"val\":\"text\"],this.isNewMenu=!0,this.element.addClass(\"ui-autocomplete-input\").attr(\"autocomplete\",\"off\"),this._on(this.element,{keydown:function(r){if(this.element.prop(\"readOnly\"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var o=t.ui.keyCode;switch(r.keyCode){case o.PAGE_UP:e=!0,this._move(\"previousPage\",r);break;case o.PAGE_DOWN:e=!0,this._move(\"nextPage\",r);break;case o.UP:e=!0,this._keyEvent(\"previous\",r);break;case o.DOWN:\n",
       "                e=!0,this._keyEvent(\"next\",r);break;case o.ENTER:case o.NUMPAD_ENTER:this.menu.active&&(e=!0,r.preventDefault(),this.menu.select(r));break;case o.TAB:this.menu.active&&this.menu.select(r);break;case o.ESCAPE:this.menu.element.is(\":visible\")&&(this._value(this.term),this.close(r),r.preventDefault());break;default:i=!0,this._searchTimeout(r)}},keypress:function(n){if(e)return e=!1,void((!this.isMultiLine||this.menu.element.is(\":visible\"))&&n.preventDefault());if(!i){var r=t.ui.keyCode;switch(n.keyCode){case r.PAGE_UP:this._move(\"previousPage\",n);break;case r.PAGE_DOWN:this._move(\"nextPage\",n);break;case r.UP:this._keyEvent(\"previous\",n);break;case r.DOWN:this._keyEvent(\"next\",n)}}},input:function(t){return n?(n=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t(\"<ul>\").addClass(\"ui-autocomplete ui-front\").appendTo(this._appendTo()).menu({role:null}).hide().data(\"ui-menu\"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];t(e.target).closest(\".ui-menu-item\").length||this._delay(function(){var e=this;this.document.one(\"mousedown\",function(n){n.target===e.element[0]||n.target===i||t.contains(i,n.target)||e.close()})})},menufocus:function(e,i){if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one(\"mousemove\",function(){t(e.target).trigger(e.originalEvent)});var n=i.item.data(\"ui-autocomplete-item\");!1!==this._trigger(\"focus\",e,{item:n})?e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value):this.liveRegion.text(n.value)},menuselect:function(t,e){var i=e.item.data(\"ui-autocomplete-item\"),n=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=i})),!1!==this._trigger(\"select\",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=t(\"<span>\",{role:\"status\",\"aria-live\":\"polite\"}).addClass(\"ui-helper-hidden-accessible\").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr(\"autocomplete\")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass(\"ui-autocomplete-input\").removeAttr(\"autocomplete\"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),\"source\"===t&&this._initSource(),\"appendTo\"===t&&this.menu.element.appendTo(this._appendTo()),\"disabled\"===t&&e&&this.xhr&&this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e||(e=this.element.closest(\".ui-front\")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,n=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):\"string\"==typeof this.options.source?(i=this.options.source,this.source=function(e,r){n.xhr&&n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:\"json\",success:function(t){r(t)},error:function(){r([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):this._trigger(\"search\",e)!==!1?this._search(t):void 0},_search:function(t){this.pending++,this.element.addClass(\"ui-autocomplete-loading\"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var t=this,e=++i;return function(n){e===i&&t.__response(n),t.pending--,t.pending||t.element.removeClass(\"ui-autocomplete-loading\")}},__response:function(t){t&&(t=this._normalize(t)),this._trigger(\"response\",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger(\"open\")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this.menu.element.is(\":visible\")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger(\"close\",t))},_change:function(t){this.previous!==this._value()&&this._trigger(\"change\",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return\"string\"==typeof e?{label:e,value:e}:t.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width(\"\").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this;t.each(i,function(t,i){n._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data(\"ui-autocomplete-item\",e)},_renderItem:function(e,i){return t(\"<li>\").append(t(\"<a>\").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(\":visible\")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(\":visible\"))&&(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g,\"\\\\$&\")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),\"i\");return t.grep(e,function(t){return n.test(t.label||t.value||t)})}}),t.widget(\"ui.autocomplete\",t.ui.autocomplete,{options:{messages:{noResults:\"No search results.\",results:function(t){return t+(t>1?\" results are\":\" result is\")+\" available, use up and down arrow keys to navigate.\"}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.text(e))}})}(n),function(t,e){var i,n,r,o,s=\"ui-button ui-widget ui-state-default ui-corner-all\",a=\"ui-state-hover ui-state-active \",l=\"ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only\",u=function(){var e=t(this);setTimeout(function(){e.find(\":ui-button\").button(\"refresh\")},1)},c=function(e){var i=e.name,n=e.form,r=t([]);return i&&(i=i.replace(/'/g,\"\\\\'\"),r=n?t(n).find(\"[name='\"+i+\"']\"):t(\"[name='\"+i+\"']\",e.ownerDocument).filter(function(){return!this.form})),r};t.widget(\"ui.button\",{version:\"1.10.3\",defaultElement:\"<button>\",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest(\"form\").unbind(\"reset\"+this.eventNamespace).bind(\"reset\"+this.eventNamespace,u),\"boolean\"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop(\"disabled\"):this.element.prop(\"disabled\",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr(\"title\");var e=this,a=this.options,l=\"checkbox\"===this.type||\"radio\"===this.type,h=l?\"\":\"ui-state-active\",p=\"ui-state-focus\";null===a.label&&(a.label=\"input\"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(s).attr(\"role\",\"button\").bind(\"mouseenter\"+this.eventNamespace,function(){a.disabled||this===i&&t(this).addClass(\"ui-state-active\")}).bind(\"mouseleave\"+this.eventNamespace,function(){a.disabled||t(this).removeClass(h)}).bind(\"click\"+this.eventNamespace,function(t){a.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}),this.element.bind(\"focus\"+this.eventNamespace,function(){e.buttonElement.addClass(p)}).bind(\"blur\"+this.eventNamespace,function(){e.buttonElement.removeClass(p)}),l&&(this.element.bind(\"change\"+this.eventNamespace,function(){o||e.refresh()}),this.buttonElement.bind(\"mousedown\"+this.eventNamespace,function(t){a.disabled||(o=!1,n=t.pageX,r=t.pageY)}).bind(\"mouseup\"+this.eventNamespace,function(t){a.disabled||(n!==t.pageX||r!==t.pageY)&&(o=!0)})),\"checkbox\"===this.type?this.buttonElement.bind(\"click\"+this.eventNamespace,function(){return a.disabled||o?!1:void 0}):\"radio\"===this.type?this.buttonElement.bind(\"click\"+this.eventNamespace,function(){if(a.disabled||o)return!1;t(this).addClass(\"ui-state-active\"),e.buttonElement.attr(\"aria-pressed\",\"true\");var i=e.element[0];c(i).not(i).map(function(){return t(this).button(\"widget\")[0]}).removeClass(\"ui-state-active\").attr(\"aria-pressed\",\"false\")}):(this.buttonElement.bind(\"mousedown\"+this.eventNamespace,function(){return a.disabled?!1:(t(this).addClass(\"ui-state-active\"),i=this,void e.document.one(\"mouseup\",function(){i=null}))}).bind(\"mouseup\"+this.eventNamespace,function(){return a.disabled?!1:void t(this).removeClass(\"ui-state-active\")}).bind(\"keydown\"+this.eventNamespace,function(e){return a.disabled?!1:void((e.keyCode===t.ui.keyCode.SPACE||e.keyCode===t.ui.keyCode.ENTER)&&t(this).addClass(\"ui-state-active\"))}).bind(\"keyup\"+this.eventNamespace+\" blur\"+this.eventNamespace,function(){t(this).removeClass(\"ui-state-active\")}),this.buttonElement.is(\"a\")&&this.buttonElement.keyup(function(e){e.keyCode===t.ui.keyCode.SPACE&&t(this).click()})),this._setOption(\"disabled\",a.disabled),this._resetButton()},_determineButtonType:function(){var t,e,i;this.type=this.element.is(\"[type=checkbox]\")?\"checkbox\":this.element.is(\"[type=radio]\")?\"radio\":this.element.is(\"input\")?\"input\":\"button\",\"checkbox\"===this.type||\"radio\"===this.type?(t=this.element.parents().last(),e=\"label[for='\"+this.element.attr(\"id\")+\"']\",this.buttonElement=t.find(e),this.buttonElement.length||(t=t.length?t.siblings():this.element.siblings(),this.buttonElement=t.filter(e),this.buttonElement.length||(this.buttonElement=t.find(e))),this.element.addClass(\"ui-helper-hidden-accessible\"),i=this.element.is(\":checked\"),i&&this.buttonElement.addClass(\"ui-state-active\"),this.buttonElement.prop(\"aria-pressed\",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass(\"ui-helper-hidden-accessible\"),this.buttonElement.removeClass(s+\" \"+a+\" \"+l).removeAttr(\"role\").removeAttr(\"aria-pressed\").html(this.buttonElement.find(\".ui-button-text\").html()),this.hasTitle||this.buttonElement.removeAttr(\"title\")},_setOption:function(t,e){return this._super(t,e),\"disabled\"===t?void(e?this.element.prop(\"disabled\",!0):this.element.prop(\"disabled\",!1)):void this._resetButton()},refresh:function(){var e=this.element.is(\"input, button\")?this.element.is(\":disabled\"):this.element.hasClass(\"ui-button-disabled\");e!==this.options.disabled&&this._setOption(\"disabled\",e),\"radio\"===this.type?c(this.element[0]).each(function(){t(this).is(\":checked\")?t(this).button(\"widget\").addClass(\"ui-state-active\").attr(\"aria-pressed\",\"true\"):t(this).button(\"widget\").removeClass(\"ui-state-active\").attr(\"aria-pressed\",\"false\")}):\"checkbox\"===this.type&&(this.element.is(\":checked\")?this.buttonElement.addClass(\"ui-state-active\").attr(\"aria-pressed\",\"true\"):this.buttonElement.removeClass(\"ui-state-active\").attr(\"aria-pressed\",\"false\"))},_resetButton:function(){if(\"input\"===this.type)return void(this.options.label&&this.element.val(this.options.label));var e=this.buttonElement.removeClass(l),i=t(\"<span></span>\",this.document[0]).addClass(\"ui-button-text\").html(this.options.label).appendTo(e.empty()).text(),n=this.options.icons,r=n.primary&&n.secondary,o=[];n.primary||n.secondary?(this.options.text&&o.push(\"ui-button-text-icon\"+(r?\"s\":n.primary?\"-primary\":\"-secondary\")),n.primary&&e.prepend(\"<span class='ui-button-icon-primary ui-icon \"+n.primary+\"'></span>\"),n.secondary&&e.append(\"<span class='ui-button-icon-secondary ui-icon \"+n.secondary+\"'></span>\"),this.options.text||(o.push(r?\"ui-button-icons-only\":\"ui-button-icon-only\"),this.hasTitle||e.attr(\"title\",t.trim(i)))):o.push(\"ui-button-text-only\"),e.addClass(o.join(\" \"))}}),t.widget(\"ui.buttonset\",{version:\"1.10.3\",options:{items:\"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)\"},_create:function(){this.element.addClass(\"ui-buttonset\")},_init:function(){this.refresh()},_setOption:function(t,e){\"disabled\"===t&&this.buttons.button(\"option\",t,e),this._super(t,e)},refresh:function(){var e=\"rtl\"===this.element.css(\"direction\");this.buttons=this.element.find(this.options.items).filter(\":ui-button\").button(\"refresh\").end().not(\":ui-button\").button().end().map(function(){return t(this).button(\"widget\")[0]}).removeClass(\"ui-corner-all ui-corner-left ui-corner-right\").filter(\":first\").addClass(e?\"ui-corner-right\":\"ui-corner-left\").end().filter(\":last\").addClass(e?\"ui-corner-left\":\"ui-corner-right\").end().end()},_destroy:function(){this.element.removeClass(\"ui-buttonset\"),this.buttons.map(function(){return t(this).button(\"widget\")[0]}).removeClass(\"ui-corner-left ui-corner-right\").end().button(\"destroy\")}})}(n),function(t,e){function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId=\"ui-datepicker-div\",this._inlineClass=\"ui-datepicker-inline\",this._appendClass=\"ui-datepicker-append\",this._triggerClass=\"ui-datepicker-trigger\",this._dialogClass=\"ui-datepicker-dialog\",this._disableClass=\"ui-datepicker-disabled\",this._unselectableClass=\"ui-datepicker-unselectable\",this._currentClass=\"ui-datepicker-current-day\",this._dayOverClass=\"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.dpDiv=n(t(\"<div id='\"+this._mainDivId+\"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>\"))}function n(e){var i=\"button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a\";return e.delegate(i,\"mouseout\",function(){t(this).removeClass(\"ui-state-hover\"),-1!==this.className.indexOf(\"ui-datepicker-prev\")&&t(this).removeClass(\"ui-datepicker-prev-hover\"),-1!==this.className.indexOf(\"ui-datepicker-next\")&&t(this).removeClass(\"ui-datepicker-next-hover\")}).delegate(i,\"mouseover\",function(){t.datepicker._isDisabledDatepicker(o.inline?e.parent()[0]:o.input[0])||(t(this).parents(\".ui-datepicker-calendar\").find(\"a\").removeClass(\"ui-state-hover\"),t(this).addClass(\"ui-state-hover\"),-1!==this.className.indexOf(\"ui-datepicker-prev\")&&t(this).addClass(\"ui-datepicker-prev-hover\"),-1!==this.className.indexOf(\"ui-datepicker-next\")&&t(this).addClass(\"ui-datepicker-next-hover\"))})}function r(e,i){t.extend(e,i);for(var n in i)null==i[n]&&(e[n]=i[n]);return e}t.extend(t.ui,{datepicker:{version:\"1.10.3\"}});var o,s=\"datepicker\";t.extend(i.prototype,{markerClassName:\"hasDatepicker\",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return r(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,r,o;n=e.nodeName.toLowerCase(),r=\"div\"===n||\"span\"===n,e.id||(this.uuid+=1,e.id=\"dp\"+this.uuid),o=this._newInst(t(e),r),o.settings=t.extend({},i||{}),\"input\"===n?this._connectDatepicker(e,o):r&&this._inlineDatepicker(e,o)},_newInst:function(e,i){var r=e[0].id.replace(/([^A-Za-z0-9_\\-])/g,\"\\\\\\\\$1\");return{id:r,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?n(t(\"<div class='\"+this._inlineClass+\" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>\")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),t.data(e,s,i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var n,r,o,s=this._get(i,\"appendText\"),a=this._get(i,\"isRTL\");i.append&&i.append.remove(),s&&(i.append=t(\"<span class='\"+this._appendClass+\"'>\"+s+\"</span>\"),e[a?\"before\":\"after\"](i.append)),e.unbind(\"focus\",this._showDatepicker),i.trigger&&i.trigger.remove(),n=this._get(i,\"showOn\"),(\"focus\"===n||\"both\"===n)&&e.focus(this._showDatepicker),(\"button\"===n||\"both\"===n)&&(r=this._get(i,\"buttonText\"),o=this._get(i,\"buttonImage\"),i.trigger=t(this._get(i,\"buttonImageOnly\")?t(\"<img/>\").addClass(this._triggerClass).attr({src:o,alt:r,title:r}):t(\"<button type='button'></button>\").addClass(this._triggerClass).html(o?t(\"<img/>\").attr({src:o,alt:r,title:r}):r)),e[a?\"before\":\"after\"](i.trigger),i.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,i,n,r,o=new Date(2009,11,20),s=this._get(t,\"dateFormat\");s.match(/[DM]/)&&(e=function(t){for(i=0,n=0,r=0;r<t.length;r++)t[r].length>i&&(i=t[r].length,n=r);return n},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,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,s,i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css(\"display\",\"block\"))},_dialogDatepicker:function(e,i,n,o,a){var l,u,c,h,p,d=this._dialogInst;return d||(this.uuid+=1,l=\"dp\"+this.uuid,this._dialogInput=t(\"<input type='text' id='\"+l+\"' style='position: absolute; top: -100px; width: 0px;'/>\"),this._dialogInput.keydown(this._doKeyDown),t(\"body\").append(this._dialogInput),d=this._dialogInst=this._newInst(this._dialogInput,!1),d.settings={},t.data(this._dialogInput[0],s,d)),r(d.settings,o||{}),i=i&&i.constructor===Date?this._formatDate(d,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(u=document.documentElement.clientWidth,c=document.documentElement.clientHeight,h=document.documentElement.scrollLeft||document.body.scrollLeft,p=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[u/2-100+h,c/2-150+p]),this._dialogInput.css(\"left\",this._pos[0]+20+\"px\").css(\"top\",this._pos[1]+\"px\"),d.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],s,d),this},_destroyDatepicker:function(e){var i,n=t(e),r=t.data(e,s);n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,s),\"input\"===i?(r.append.remove(),r.trigger.remove(),n.removeClass(this.markerClassName).unbind(\"focus\",this._showDatepicker).unbind(\"keydown\",this._doKeyDown).unbind(\"keypress\",this._doKeyPress).unbind(\"keyup\",this._doKeyUp)):(\"div\"===i||\"span\"===i)&&n.removeClass(this.markerClassName).empty())},_enableDatepicker:function(e){var i,n,r=t(e),o=t.data(e,s);r.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),\"input\"===i?(e.disabled=!1,o.trigger.filter(\"button\").each(function(){this.disabled=!1}).end().filter(\"img\").css({opacity:\"1.0\",cursor:\"\"})):(\"div\"===i||\"span\"===i)&&(n=r.children(\".\"+this._inlineClass),n.children().removeClass(\"ui-state-disabled\"),n.find(\"select.ui-datepicker-month, select.ui-datepicker-year\").prop(\"disabled\",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,n,r=t(e),o=t.data(e,s);r.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),\"input\"===i?(e.disabled=!0,o.trigger.filter(\"button\").each(function(){this.disabled=!0}).end().filter(\"img\").css({opacity:\"0.5\",cursor:\"default\"})):(\"div\"===i||\"span\"===i)&&(n=r.children(\".\"+this._inlineClass),n.children().addClass(\"ui-state-disabled\"),n.find(\"select.ui-datepicker-month, select.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,s)}catch(i){throw\"Missing instance data for this datepicker\"}},_optionDatepicker:function(i,n,o){var s,a,l,u,c=this._getInst(i);return 2===arguments.length&&\"string\"==typeof n?\"defaults\"===n?t.extend({},t.datepicker._defaults):c?\"all\"===n?t.extend({},c.settings):this._get(c,n):null:(s=n||{},\"string\"==typeof n&&(s={},s[n]=o),void(c&&(this._curInst===c&&this._hideDatepicker(),a=this._getDateDatepicker(i,!0),l=this._getMinMaxDate(c,\"min\"),u=this._getMinMaxDate(c,\"max\"),r(c.settings,s),null!==l&&s.dateFormat!==e&&s.minDate===e&&(c.settings.minDate=this._formatDate(c,l)),null!==u&&s.dateFormat!==e&&s.maxDate===e&&(c.settings.maxDate=this._formatDate(c,u)),\"disabled\"in s&&(s.disabled?this._disableDatepicker(i):this._enableDatepicker(i)),this._attachments(t(i),c),this._autoSize(c),this._setDate(c,a),this._updateAlternate(c),this._updateDatepicker(c))))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,n,r,o=t.datepicker._getInst(e.target),s=!0,a=o.dpDiv.is(\".ui-datepicker-rtl\");if(o._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),s=!1;break;case 13:return r=t(\"td.\"+t.datepicker._dayOverClass+\":not(.\"+t.datepicker._currentClass+\")\",o.dpDiv),r[0]&&t.datepicker._selectDay(e.target,o.selectedMonth,o.selectedYear,r[0]),i=t.datepicker._get(o,\"onSelect\"),i?(n=t.datepicker._formatDate(o),i.apply(o.input?o.input[0]:null,[n,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 i,n,r=t.datepicker._getInst(e.target);return t.datepicker._get(r,\"constrainInput\")?(i=t.datepicker._possibleChars(t.datepicker._get(r,\"dateFormat\")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||\" \">n||!i||i.indexOf(n)>-1):void 0},_doKeyUp:function(e){var i,n=t.datepicker._getInst(e.target);if(n.input.val()!==n.lastVal)try{i=t.datepicker.parseDate(t.datepicker._get(n,\"dateFormat\"),n.input?n.input.val():null,t.datepicker._getFormatConfig(n)),i&&(t.datepicker._setDateFromField(n),t.datepicker._updateAlternate(n),t.datepicker._updateDatepicker(n))}catch(r){}return!0},_showDatepicker:function(e){if(e=e.target||e,\"input\"!==e.nodeName.toLowerCase()&&(e=t(\"input\",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var i,n,o,s,a,l,u;i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),n=t.datepicker._get(i,\"beforeShow\"),o=n?n.apply(e,[e,i]):{},o!==!1&&(r(i.settings,o),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=\"\"),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),s=!1,t(e).parents().each(function(){return s|=\"fixed\"===t(this).css(\"position\"),!s}),a={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:\"absolute\",display:\"block\",top:\"-1000px\"}),t.datepicker._updateDatepicker(i),a=t.datepicker._checkOffset(i,a,s),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?\"static\":s?\"fixed\":\"absolute\",display:\"none\",left:a.left+\"px\",top:a.top+\"px\"}),i.inline||(l=t.datepicker._get(i,\"showAnim\"),u=t.datepicker._get(i,\"duration\"),i.dpDiv.zIndex(t(e).zIndex()+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[l]?i.dpDiv.show(l,t.datepicker._get(i,\"showOptions\"),u):i.dpDiv[l||\"show\"](l?u:null),t.datepicker._shouldFocusInput(i)&&i.input.focus(),t.datepicker._curInst=i))}},_updateDatepicker:function(e){this.maxRows=4,o=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e),e.dpDiv.find(\".\"+this._dayOverClass+\" a\").mouseover();var i,n=this._getNumberOfMonths(e),r=n[1],s=17;e.dpDiv.removeClass(\"ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4\").width(\"\"),r>1&&e.dpDiv.addClass(\"ui-datepicker-multi-\"+r).css(\"width\",s*r+\"em\"),e.dpDiv[(1!==n[0]||1!==n[1]?\"add\":\"remove\")+\"Class\"](\"ui-datepicker-multi\"),e.dpDiv[(this._get(e,\"isRTL\")?\"add\":\"remove\")+\"Class\"](\"ui-datepicker-rtl\"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.focus(),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find(\"select.ui-datepicker-year:first\").replaceWith(e.yearshtml),i=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,i,n){var r=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+(n?0:t(document).scrollLeft()),u=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,\"isRTL\")?r-s:0,i.left-=n&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&&i.top===e.input.offset().top+a?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+r>l&&l>r?Math.abs(i.left+r-l):0),i.top-=Math.min(i.top,i.top+o>u&&u>o?Math.abs(o+a):0),i},_findPos:function(e){for(var i,n=this._getInst(e),r=this._get(n,\"isRTL\");e&&(\"hidden\"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[r?\"previousSibling\":\"nextSibling\"];return i=t(e).offset(),[i.left,i.top]},_hideDatepicker:function(e){var i,n,r,o,a=this._curInst;!a||e&&a!==t.data(e,s)||this._datepickerShowing&&(i=this._get(a,\"showAnim\"),n=this._get(a,\"duration\"),r=function(){t.datepicker._tidyDialog(a)},t.effects&&(t.effects.effect[i]||t.effects[i])?a.dpDiv.hide(i,t.datepicker._get(a,\"showOptions\"),n,r):a.dpDiv[\"slideDown\"===i?\"slideUp\":\"fadeIn\"===i?\"fadeOut\":\"hide\"](i?n:null,r),i||r(),this._datepickerShowing=!1,o=this._get(a,\"onClose\"),o&&o.apply(a.input?a.input[0]:null,[a.input?a.input.val():\"\",a]),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(\".ui-datepicker-calendar\")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id!==t.datepicker._mainDivId&&0===i.parents(\"#\"+t.datepicker._mainDivId).length&&!i.hasClass(t.datepicker.markerClassName)&&!i.closest(\".\"+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||i.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==n)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var r=t(e),o=this._getInst(r[0]);this._isDisabledDatepicker(r[0])||(this._adjustInstDate(o,i+(\"M\"===n?this._get(o,\"showCurrentAtPos\"):0),n),this._updateDatepicker(o))},_gotoToday:function(e){var i,n=t(e),r=this._getInst(n[0]);this._get(r,\"gotoCurrent\")&&r.currentDay?(r.selectedDay=r.currentDay,r.drawMonth=r.selectedMonth=r.currentMonth,r.drawYear=r.selectedYear=r.currentYear):(i=new Date,r.selectedDay=i.getDate(),r.drawMonth=r.selectedMonth=i.getMonth(),r.drawYear=r.selectedYear=i.getFullYear()),this._notifyChange(r),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var r=t(e),o=this._getInst(r[0]);o[\"selected\"+(\"M\"===n?\"Month\":\"Year\")]=o[\"draw\"+(\"M\"===n?\"Month\":\"Year\")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(r)},_selectDay:function(e,i,n,r){var o,s=t(e);t(r).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||(o=this._getInst(s[0]),o.selectedDay=o.currentDay=t(\"a\",r).html(),o.selectedMonth=o.currentMonth=i,o.selectedYear=o.currentYear=n,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,\"\")},_selectDate:function(e,i){var n,r=t(e),o=this._getInst(r[0]);i=null!=i?i:this._formatDate(o),o.input&&o.input.val(i),this._updateAlternate(o),n=this._get(o,\"onSelect\"),n?n.apply(o.input?o.input[0]:null,[i,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)},\n",
       "                _updateAlternate:function(e){var i,n,r,o=this._get(e,\"altField\");o&&(i=this._get(e,\"altFormat\")||this._get(e,\"dateFormat\"),n=this._getDate(e),r=this.formatDate(i,n,this._getFormatConfig(e)),t(o).each(function(){t(this).val(r)}))},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,\"\"]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw\"Invalid arguments\";if(i=\"object\"==typeof i?i.toString():i+\"\",\"\"===i)return null;var r,o,s,a,l=0,u=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,c=\"string\"!=typeof u?u:(new Date).getFullYear()%100+parseInt(u,10),h=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,p=(n?n.dayNames:null)||this._defaults.dayNames,d=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,_=-1,v=-1,y=!1,b=function(t){var i=r+1<e.length&&e.charAt(r+1)===t;return i&&r++,i},w=function(t){var e=b(t),n=\"@\"===t?14:\"!\"===t?20:\"y\"===t&&e?4:\"o\"===t?3:2,r=new RegExp(\"^\\\\d{1,\"+n+\"}\"),o=i.substring(l).match(r);if(!o)throw\"Missing number at position \"+l;return l+=o[0].length,parseInt(o[0],10)},x=function(e,n,r){var o=-1,s=t.map(b(e)?r:n,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 n=e[1];return i.substr(l,n.length).toLowerCase()===n.toLowerCase()?(o=e[0],l+=n.length,!1):void 0}),-1!==o)return o+1;throw\"Unknown name at position \"+l},k=function(){if(i.charAt(l)!==e.charAt(r))throw\"Unexpected literal at position \"+l;l++};for(r=0;r<e.length;r++)if(y)\"'\"!==e.charAt(r)||b(\"'\")?k():y=!1;else switch(e.charAt(r)){case\"d\":_=w(\"d\");break;case\"D\":x(\"D\",h,p);break;case\"o\":v=w(\"o\");break;case\"m\":m=w(\"m\");break;case\"M\":m=x(\"M\",d,f);break;case\"y\":g=w(\"y\");break;case\"@\":a=new Date(w(\"@\")),g=a.getFullYear(),m=a.getMonth()+1,_=a.getDate();break;case\"!\":a=new Date((w(\"!\")-this._ticksTo1970)/1e4),g=a.getFullYear(),m=a.getMonth()+1,_=a.getDate();break;case\"'\":b(\"'\")?k():y=!0;break;default:k()}if(l<i.length&&(s=i.substr(l),!/^\\s+/.test(s)))throw\"Extra/unparsed characters found in date: \"+s;if(-1===g?g=(new Date).getFullYear():100>g&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c>=g?0:-100)),v>-1)for(m=1,_=v;;){if(o=this._getDaysInMonth(g,m-1),o>=_)break;m++,_-=o}if(a=this._daylightSavingAdjust(new Date(g,m-1,_)),a.getFullYear()!==g||a.getMonth()+1!==m||a.getDate()!==_)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,i){if(!e)return\"\";var n,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,s=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=n+1<t.length&&t.charAt(n+1)===e;return i&&n++,i},u=function(t,e,i){var n=\"\"+e;if(l(t))for(;n.length<i;)n=\"0\"+n;return n},c=function(t,e,i,n){return l(t)?n[e]:i[e]},h=\"\",p=!1;if(e)for(n=0;n<t.length;n++)if(p)\"'\"!==t.charAt(n)||l(\"'\")?h+=t.charAt(n):p=!1;else switch(t.charAt(n)){case\"d\":h+=u(\"d\",e.getDate(),2);break;case\"D\":h+=c(\"D\",e.getDay(),r,o);break;case\"o\":h+=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\":h+=u(\"m\",e.getMonth()+1,2);break;case\"M\":h+=c(\"M\",e.getMonth(),s,a);break;case\"y\":h+=l(\"y\")?e.getFullYear():(e.getYear()%100<10?\"0\":\"\")+e.getYear()%100;break;case\"@\":h+=e.getTime();break;case\"!\":h+=1e4*e.getTime()+this._ticksTo1970;break;case\"'\":l(\"'\")?h+=\"'\":p=!0;break;default:h+=t.charAt(n)}return h},_possibleChars:function(t){var e,i=\"\",n=!1,r=function(i){var n=e+1<t.length&&t.charAt(e+1)===i;return n&&e++,n};for(e=0;e<t.length;e++)if(n)\"'\"!==t.charAt(e)||r(\"'\")?i+=t.charAt(e):n=!1;else switch(t.charAt(e)){case\"d\":case\"m\":case\"y\":case\"@\":i+=\"0123456789\";break;case\"D\":case\"M\":return null;case\"'\":r(\"'\")?i+=\"'\":n=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,i){return t.settings[i]!==e?t.settings[i]:this._defaults[i]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,\"dateFormat\"),n=t.lastVal=t.input?t.input.val():null,r=this._getDefaultDate(t),o=r,s=this._getFormatConfig(t);try{o=this.parseDate(i,n,s)||r}catch(a){n=e?\"\":n}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=n?o.getDate():0,t.currentMonth=n?o.getMonth():0,t.currentYear=n?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,i,n){var r=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},o=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,\"dateFormat\"),i,t.datepicker._getFormatConfig(e))}catch(n){}for(var r=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,o=r.getFullYear(),s=r.getMonth(),a=r.getDate(),l=/([+\\-]?[0-9]+)\\s*(d|D|w|W|m|M|y|Y)?/g,u=l.exec(i);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(i)}return new Date(o,s,a)},s=null==i||\"\"===i?n:\"string\"==typeof i?o(i):\"number\"==typeof i?isNaN(i)?n:r(i):new Date(i.getTime());return s=s&&\"Invalid Date\"===s.toString()?n: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,i){var n=!e,r=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(),r===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?\"\":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 i=this._get(e,\"stepMonths\"),n=\"#\"+e.id.replace(/\\\\\\\\/g,\"\\\\\");e.dpDiv.find(\"[data-handler]\").map(function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,\"M\")},next:function(){t.datepicker._adjustDate(n,+i,\"M\")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute(\"data-month\"),+this.getAttribute(\"data-year\"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,\"M\"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,\"Y\"),!1}};t(this).bind(this.getAttribute(\"data-event\"),e[this.getAttribute(\"data-handler\")])})},_generateHTML:function(t){var e,i,n,r,o,s,a,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D,T,S,A,P,I,E,R,N,z,O,j,F,H,L=new Date,W=this._daylightSavingAdjust(new Date(L.getFullYear(),L.getMonth(),L.getDate())),B=this._get(t,\"isRTL\"),Y=this._get(t,\"showButtonPanel\"),$=this._get(t,\"hideIfNoPrevNext\"),V=this._get(t,\"navigationAsDateFormat\"),U=this._getNumberOfMonths(t),q=this._get(t,\"showCurrentAtPos\"),G=this._get(t,\"stepMonths\"),X=1!==U[0]||1!==U[1],Z=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),J=this._getMinMaxDate(t,\"min\"),K=this._getMinMaxDate(t,\"max\"),Q=t.drawMonth-q,tt=t.drawYear;if(0>Q&&(Q+=12,tt--),K)for(e=this._daylightSavingAdjust(new Date(K.getFullYear(),K.getMonth()-U[0]*U[1]+1,K.getDate())),e=J&&J>e?J:e;this._daylightSavingAdjust(new Date(tt,Q,1))>e;)Q--,0>Q&&(Q=11,tt--);for(t.drawMonth=Q,t.drawYear=tt,i=this._get(t,\"prevText\"),i=V?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,Q-G,1)),this._getFormatConfig(t)):i,n=this._canAdjustMonth(t,-1,tt,Q)?\"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='\"+i+\"'><span class='ui-icon ui-icon-circle-triangle-\"+(B?\"e\":\"w\")+\"'>\"+i+\"</span></a>\":$?\"\":\"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='\"+i+\"'><span class='ui-icon ui-icon-circle-triangle-\"+(B?\"e\":\"w\")+\"'>\"+i+\"</span></a>\",r=this._get(t,\"nextText\"),r=V?this.formatDate(r,this._daylightSavingAdjust(new Date(tt,Q+G,1)),this._getFormatConfig(t)):r,o=this._canAdjustMonth(t,1,tt,Q)?\"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='\"+r+\"'><span class='ui-icon ui-icon-circle-triangle-\"+(B?\"w\":\"e\")+\"'>\"+r+\"</span></a>\":$?\"\":\"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='\"+r+\"'><span class='ui-icon ui-icon-circle-triangle-\"+(B?\"w\":\"e\")+\"'>\"+r+\"</span></a>\",s=this._get(t,\"currentText\"),a=this._get(t,\"gotoCurrent\")&&t.currentDay?Z:W,s=V?this.formatDate(s,a,this._getFormatConfig(t)):s,l=t.inline?\"\":\"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>\"+this._get(t,\"closeText\")+\"</button>\",u=Y?\"<div class='ui-datepicker-buttonpane ui-widget-content'>\"+(B?l:\"\")+(this._isInRange(t,a)?\"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>\"+s+\"</button>\":\"\")+(B?\"\":l)+\"</div>\":\"\",c=parseInt(this._get(t,\"firstDay\"),10),c=isNaN(c)?0:c,h=this._get(t,\"showWeek\"),p=this._get(t,\"dayNames\"),d=this._get(t,\"dayNamesMin\"),f=this._get(t,\"monthNames\"),g=this._get(t,\"monthNamesShort\"),m=this._get(t,\"beforeShowDay\"),_=this._get(t,\"showOtherMonths\"),v=this._get(t,\"selectOtherMonths\"),y=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(tt,Q,t.selectedDay)),D=\" ui-corner-all\",T=\"\",X){if(T+=\"<div class='ui-datepicker-group\",U[1]>1)switch(C){case 0:T+=\" ui-datepicker-group-first\",D=\" ui-corner-\"+(B?\"right\":\"left\");break;case U[1]-1:T+=\" ui-datepicker-group-last\",D=\" ui-corner-\"+(B?\"left\":\"right\");break;default:T+=\" ui-datepicker-group-middle\",D=\"\"}T+=\"'>\"}for(T+=\"<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix\"+D+\"'>\"+(/all|left/.test(D)&&0===x?B?o:n:\"\")+(/all|right/.test(D)&&0===x?B?n:o:\"\")+this._generateMonthYearHeader(t,Q,tt,J,K,x>0||C>0,f,g)+\"</div><table class='ui-datepicker-calendar'><thead><tr>\",S=h?\"<th class='ui-datepicker-week-col'>\"+this._get(t,\"weekHeader\")+\"</th>\":\"\",w=0;7>w;w++)A=(w+c)%7,S+=\"<th\"+((w+c+6)%7>=5?\" class='ui-datepicker-week-end'\":\"\")+\"><span title='\"+p[A]+\"'>\"+d[A]+\"</span></th>\";for(T+=S+\"</tr></thead><tbody>\",P=this._getDaysInMonth(tt,Q),tt===t.selectedYear&&Q===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,P)),I=(this._getFirstDayOfMonth(tt,Q)-c+7)%7,E=Math.ceil((I+P)/7),R=X&&this.maxRows>E?this.maxRows:E,this.maxRows=R,N=this._daylightSavingAdjust(new Date(tt,Q,1-I)),z=0;R>z;z++){for(T+=\"<tr>\",O=h?\"<td class='ui-datepicker-week-col'>\"+this._get(t,\"calculateWeek\")(N)+\"</td>\":\"\",w=0;7>w;w++)j=m?m.apply(t.input?t.input[0]:null,[N]):[!0,\"\"],F=N.getMonth()!==Q,H=F&&!v||!j[0]||J&&J>N||K&&N>K,O+=\"<td class='\"+((w+c+6)%7>=5?\" ui-datepicker-week-end\":\"\")+(F?\" ui-datepicker-other-month\":\"\")+(N.getTime()===M.getTime()&&Q===t.selectedMonth&&t._keyEvent||y.getTime()===N.getTime()&&y.getTime()===M.getTime()?\" \"+this._dayOverClass:\"\")+(H?\" \"+this._unselectableClass+\" ui-state-disabled\":\"\")+(F&&!_?\"\":\" \"+j[1]+(N.getTime()===Z.getTime()?\" \"+this._currentClass:\"\")+(N.getTime()===W.getTime()?\" ui-datepicker-today\":\"\"))+\"'\"+(F&&!_||!j[2]?\"\":\" title='\"+j[2].replace(/'/g,\"&#39;\")+\"'\")+(H?\"\":\" data-handler='selectDay' data-event='click' data-month='\"+N.getMonth()+\"' data-year='\"+N.getFullYear()+\"'\")+\">\"+(F&&!_?\"&#xa0;\":H?\"<span class='ui-state-default'>\"+N.getDate()+\"</span>\":\"<a class='ui-state-default\"+(N.getTime()===W.getTime()?\" ui-state-highlight\":\"\")+(N.getTime()===Z.getTime()?\" ui-state-active\":\"\")+(F?\" ui-priority-secondary\":\"\")+\"' href='#'>\"+N.getDate()+\"</a>\")+\"</td>\",N.setDate(N.getDate()+1),N=this._daylightSavingAdjust(N);T+=O+\"</tr>\"}Q++,Q>11&&(Q=0,tt++),T+=\"</tbody></table>\"+(X?\"</div>\"+(U[0]>0&&C===U[1]-1?\"<div class='ui-datepicker-row-break'></div>\":\"\"):\"\"),k+=T}b+=k}return b+=u,t._keyEvent=!1,b},_generateMonthYearHeader:function(t,e,i,n,r,o,s,a){var l,u,c,h,p,d,f,g,m=this._get(t,\"changeMonth\"),_=this._get(t,\"changeYear\"),v=this._get(t,\"showMonthAfterYear\"),y=\"<div class='ui-datepicker-title'>\",b=\"\";if(o||!m)b+=\"<span class='ui-datepicker-month'>\"+s[e]+\"</span>\";else{for(l=n&&n.getFullYear()===i,u=r&&r.getFullYear()===i,b+=\"<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>\",c=0;12>c;c++)(!l||c>=n.getMonth())&&(!u||c<=r.getMonth())&&(b+=\"<option value='\"+c+\"'\"+(c===e?\" selected='selected'\":\"\")+\">\"+a[c]+\"</option>\");b+=\"</select>\"}if(v||(y+=b+(!o&&m&&_?\"\":\"&#xa0;\")),!t.yearshtml)if(t.yearshtml=\"\",o||!_)y+=\"<span class='ui-datepicker-year'>\"+i+\"</span>\";else{for(h=this._get(t,\"yearRange\").split(\":\"),p=(new Date).getFullYear(),d=function(t){var e=t.match(/c[+\\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\\-].*/)?p+parseInt(t,10):parseInt(t,10);return isNaN(e)?p:e},f=d(h[0]),g=Math.max(f,d(h[1]||\"\")),f=n?Math.max(f,n.getFullYear()):f,g=r?Math.min(g,r.getFullYear()):g,t.yearshtml+=\"<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>\";g>=f;f++)t.yearshtml+=\"<option value='\"+f+\"'\"+(f===i?\" selected='selected'\":\"\")+\">\"+f+\"</option>\";t.yearshtml+=\"</select>\",y+=t.yearshtml,t.yearshtml=null}return y+=this._get(t,\"yearSuffix\"),v&&(y+=(!o&&m&&_?\"\":\"&#xa0;\")+b),y+=\"</div>\"},_adjustInstDate:function(t,e,i){var n=t.drawYear+(\"Y\"===i?e:0),r=t.drawMonth+(\"M\"===i?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(n,r))+(\"D\"===i?e:0),s=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,r,o)));t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),(\"M\"===i||\"Y\"===i)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,\"min\"),n=this._getMinMaxDate(t,\"max\"),r=i&&i>e?i:e;return n&&r>n?n:r},_notifyChange:function(t){var e=this._get(t,\"onChangeMonthYear\");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,\"numberOfMonths\");return null==e?[1,1]:\"number\"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+\"Date\"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var r=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(i,n+(0>e?e:r[0]*r[1]),1));return 0>e&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var i,n,r=this._getMinMaxDate(t,\"min\"),o=this._getMinMaxDate(t,\"max\"),s=null,a=null,l=this._get(t,\"yearRange\");return l&&(i=l.split(\":\"),n=(new Date).getFullYear(),s=parseInt(i[0],10),a=parseInt(i[1],10),i[0].match(/[+\\-].*/)&&(s+=n),i[1].match(/[+\\-].*/)&&(a+=n)),(!r||e.getTime()>=r.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,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var r=e?\"object\"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,\"dateFormat\"),r,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).mousedown(t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t(\"#\"+t.datepicker._mainDivId).length&&t(\"body\").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return\"string\"!=typeof e||\"isDisabled\"!==e&&\"getDate\"!==e&&\"widget\"!==e?\"option\"===e&&2===arguments.length&&\"string\"==typeof arguments[1]?t.datepicker[\"_\"+e+\"Datepicker\"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){\"string\"==typeof e?t.datepicker[\"_\"+e+\"Datepicker\"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker[\"_\"+e+\"Datepicker\"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new i,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version=\"1.10.3\"}(n),function(t,e){var i={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},n={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};t.widget(\"ui.dialog\",{version:\"1.10.3\",options:{appendTo:\"body\",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:\"close\",dialogClass:\"\",draggable:!0,hide:null,height:\"auto\",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:\"center\",at:\"center\",of:window,collision:\"fit\",using:function(e){var i=t(this).css(e).offset().top;0>i&&t(this).css(\"top\",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr(\"title\"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr(\"title\").addClass(\"ui-dialog-content ui-widget-content\").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||\"body\").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass(\"ui-dialog-content ui-widget-content\").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr(\"title\",this.originalTitle),t=e.parent.children().eq(e.index),t.length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isOpen&&this._trigger(\"beforeClose\",e)!==!1&&(this._isOpen=!1,this._destroyOverlay(),this.opener.filter(\":focusable\").focus().length||t(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){i._trigger(\"close\",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!!this.uiDialog.nextAll(\":visible\").insertBefore(this.uiDialog).length;return i&&!e&&this._trigger(\"focus\",t),i},open:function(){var e=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=t(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger(\"focus\")}),void this._trigger(\"open\"))},_focusTabbable:function(){var t=this.element.find(\"[autofocus]\");t.length||(t=this.element.find(\":tabbable\")),t.length||(t=this.uiDialogButtonPane.find(\":tabbable\")),t.length||(t=this.uiDialogTitlebarClose.filter(\":tabbable\")),t.length||(t=this.uiDialog),t.eq(0).focus()},_keepFocus:function(e){function i(){var e=this.document[0].activeElement,i=this.uiDialog[0]===e||t.contains(this.uiDialog[0],e);i||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t(\"<div>\").addClass(\"ui-dialog ui-widget ui-widget-content ui-corner-all ui-front \"+this.options.dialogClass).hide().attr({tabIndex:-1,role:\"dialog\"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===t.ui.keyCode.TAB){var i=this.uiDialog.find(\":tabbable\"),n=i.filter(\":first\"),r=i.filter(\":last\");e.target!==r[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==n[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(r.focus(1),e.preventDefault()):(n.focus(1),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find(\"[aria-describedby]\").length||this.uiDialog.attr({\"aria-describedby\":this.element.uniqueId().attr(\"id\")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t(\"<div>\").addClass(\"ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix\").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(\".ui-dialog-titlebar-close\")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=t(\"<button></button>\").button({label:this.options.closeText,icons:{primary:\"ui-icon-closethick\"},text:!1}).addClass(\"ui-dialog-titlebar-close\").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t(\"<span>\").uniqueId().addClass(\"ui-dialog-title\").prependTo(this.uiDialogTitlebar),this._title(e),this.uiDialog.attr({\"aria-labelledby\":e.attr(\"id\")})},_title:function(t){this.options.title||t.html(\"&#160;\"),t.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=t(\"<div>\").addClass(\"ui-dialog-buttonpane ui-widget-content ui-helper-clearfix\"),this.uiButtonSet=t(\"<div>\").addClass(\"ui-dialog-buttonset\").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?void this.uiDialog.removeClass(\"ui-dialog-buttons\"):(t.each(i,function(i,n){var r,o;n=t.isFunction(n)?{click:n,text:i}:n,n=t.extend({type:\"button\"},n),r=n.click,n.click=function(){r.apply(e.element[0],arguments)},o={icons:n.icons,text:n.showText},delete n.icons,delete n.showText,t(\"<button></button>\",n).button(o).appendTo(e.uiButtonSet)}),this.uiDialog.addClass(\"ui-dialog-buttons\"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,n=this.options;this.uiDialog.draggable({cancel:\".ui-dialog-content, .ui-dialog-titlebar-close\",handle:\".ui-dialog-titlebar\",containment:\"document\",start:function(n,r){t(this).addClass(\"ui-dialog-dragging\"),i._blockFrames(),i._trigger(\"dragStart\",n,e(r))},drag:function(t,n){i._trigger(\"drag\",t,e(n))},stop:function(r,o){n.position=[o.position.left-i.document.scrollLeft(),o.position.top-i.document.scrollTop()],t(this).removeClass(\"ui-dialog-dragging\"),i._unblockFrames(),i._trigger(\"dragStop\",r,e(o))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var i=this,n=this.options,r=n.resizable,o=this.uiDialog.css(\"position\"),s=\"string\"==typeof r?r:\"n,e,s,w,se,sw,ne,nw\";this.uiDialog.resizable({cancel:\".ui-dialog-content\",containment:\"document\",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:s,start:function(n,r){t(this).addClass(\"ui-dialog-resizing\"),i._blockFrames(),i._trigger(\"resizeStart\",n,e(r))},resize:function(t,n){i._trigger(\"resize\",t,e(n))},stop:function(r,o){n.height=t(this).height(),n.width=t(this).width(),t(this).removeClass(\"ui-dialog-resizing\"),i._unblockFrames(),i._trigger(\"resizeStop\",r,e(o))}}).css(\"position\",o)},_minHeight:function(){var t=this.options;return\"auto\"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(\":visible\");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var r=this,o=!1,s={};t.each(e,function(t,e){r._setOption(t,e),t in i&&(o=!0),t in n&&(s[t]=e)}),o&&(this._size(),this._position()),this.uiDialog.is(\":data(ui-resizable)\")&&this.uiDialog.resizable(\"option\",s)},_setOption:function(t,e){var i,n,r=this.uiDialog;\"dialogClass\"===t&&r.removeClass(this.options.dialogClass).addClass(e),\"disabled\"!==t&&(this._super(t,e),\"appendTo\"===t&&this.uiDialog.appendTo(this._appendTo()),\"buttons\"===t&&this._createButtons(),\"closeText\"===t&&this.uiDialogTitlebarClose.button({label:\"\"+e}),\"draggable\"===t&&(i=r.is(\":data(ui-draggable)\"),i&&!e&&r.draggable(\"destroy\"),!i&&e&&this._makeDraggable()),\"position\"===t&&this._position(),\"resizable\"===t&&(n=r.is(\":data(ui-resizable)\"),n&&!e&&r.resizable(\"destroy\"),n&&\"string\"==typeof e&&r.resizable(\"option\",\"handles\",e),n||e===!1||this._makeResizable()),\"title\"===t&&this._title(this.uiDialogTitlebar.find(\".ui-dialog-title\")))},_size:function(){var t,e,i,n=this.options;this.element.show().css({width:\"auto\",minHeight:0,maxHeight:\"none\",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),t=this.uiDialog.css({height:\"auto\",width:n.width}).outerHeight(),e=Math.max(0,n.minHeight-t),i=\"number\"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):\"none\",\"auto\"===n.height?this.element.css({minHeight:e,maxHeight:i,height:\"auto\"}):this.element.height(Math.max(0,n.height-t)),this.uiDialog.is(\":data(ui-resizable)\")&&this.uiDialog.resizable(\"option\",\"minHeight\",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find(\"iframe\").map(function(){var e=t(this);return t(\"<div>\").css({position:\"absolute\",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return t(e.target).closest(\".ui-dialog\").length?!0:!!t(e.target).closest(\".ui-datepicker\").length},_createOverlay:function(){if(this.options.modal){var e=this,i=this.widgetFullName;t.ui.dialog.overlayInstances||this._delay(function(){t.ui.dialog.overlayInstances&&this.document.bind(\"focusin.dialog\",function(n){e._allowInteraction(n)||(n.preventDefault(),t(\".ui-dialog:visible:last .ui-dialog-content\").data(i)._focusTabbable())})}),this.overlay=t(\"<div>\").addClass(\"ui-widget-overlay ui-front\").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:\"_keepFocus\"}),t.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(t.ui.dialog.overlayInstances--,t.ui.dialog.overlayInstances||this.document.unbind(\"focusin.dialog\"),this.overlay.remove(),this.overlay=null)}}),t.ui.dialog.overlayInstances=0,t.uiBackCompat!==!1&&t.widget(\"ui.dialog\",t.ui.dialog,{_position:function(){var e,i=this.options.position,n=[],r=[0,0];i?((\"string\"==typeof i||\"object\"==typeof i&&\"0\"in i)&&(n=i.split?i.split(\" \"):[i[0],i[1]],1===n.length&&(n[1]=n[0]),t.each([\"left\",\"top\"],function(t,e){+n[t]===n[t]&&(r[t]=n[t],n[t]=e)}),i={my:n[0]+(r[0]<0?r[0]:\"+\"+r[0])+\" \"+n[1]+(r[1]<0?r[1]:\"+\"+r[1]),at:n.join(\" \")}),i=t.extend({},t.ui.dialog.prototype.options.position,i)):i=t.ui.dialog.prototype.options.position,e=this.uiDialog.is(\":visible\"),e||this.uiDialog.show(),this.uiDialog.position(i),e||this.uiDialog.hide()}})}(n),function(t,e){var i=/up|down|vertical/,n=/up|left|vertical|horizontal/;t.effects.effect.blind=function(e,r){var o,s,a,l=t(this),u=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"height\",\"width\"],c=t.effects.setMode(l,e.mode||\"hide\"),h=e.direction||\"up\",p=i.test(h),d=p?\"height\":\"width\",f=p?\"top\":\"left\",g=n.test(h),m={},_=\"show\"===c;l.parent().is(\".ui-effects-wrapper\")?t.effects.save(l.parent(),u):t.effects.save(l,u),l.show(),o=t.effects.createWrapper(l).css({overflow:\"hidden\"}),s=o[d](),a=parseFloat(o.css(f))||0,m[d]=_?s:0,g||(l.css(p?\"bottom\":\"right\",0).css(p?\"top\":\"left\",\"auto\").css({position:\"absolute\"}),m[f]=_?a:s+a),_&&(o.css(d,0),g||o.css(f,a+s)),o.animate(m,{duration:e.duration,easing:e.easing,queue:!1,complete:function(){\"hide\"===c&&l.hide(),t.effects.restore(l,u),t.effects.removeWrapper(l),r()}})}}(n),function(t,e){t.effects.effect.bounce=function(e,i){var n,r,o,s=t(this),a=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"height\",\"width\"],l=t.effects.setMode(s,e.mode||\"effect\"),u=\"hide\"===l,c=\"show\"===l,h=e.direction||\"up\",p=e.distance,d=e.times||5,f=2*d+(c||u?1:0),g=e.duration/f,m=e.easing,_=\"up\"===h||\"down\"===h?\"top\":\"left\",v=\"up\"===h||\"left\"===h,y=s.queue(),b=y.length;for((c||u)&&a.push(\"opacity\"),t.effects.save(s,a),s.show(),t.effects.createWrapper(s),p||(p=s[\"top\"===_?\"outerHeight\":\"outerWidth\"]()/3),c&&(o={opacity:1},o[_]=0,s.css(\"opacity\",0).css(_,v?2*-p:2*p).animate(o,g,m)),u&&(p/=Math.pow(2,d-1)),o={},o[_]=0,n=0;d>n;n++)r={},r[_]=(v?\"-=\":\"+=\")+p,s.animate(r,g,m).animate(o,g,m),p=u?2*p:p/2;u&&(r={opacity:0},r[_]=(v?\"-=\":\"+=\")+p,s.animate(r,g,m)),s.queue(function(){u&&s.hide(),t.effects.restore(s,a),t.effects.removeWrapper(s),i()}),b>1&&y.splice.apply(y,[1,0].concat(y.splice(b,f+1))),s.dequeue()}}(n),function(t,e){t.effects.effect.clip=function(e,i){var n,r,o,s=t(this),a=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"height\",\"width\"],l=t.effects.setMode(s,e.mode||\"hide\"),u=\"show\"===l,c=e.direction||\"vertical\",h=\"vertical\"===c,p=h?\"height\":\"width\",d=h?\"top\":\"left\",f={};t.effects.save(s,a),s.show(),n=t.effects.createWrapper(s).css({overflow:\"hidden\"}),r=\"IMG\"===s[0].tagName?n:s,o=r[p](),u&&(r.css(p,0),r.css(d,o/2)),f[p]=u?o:0,f[d]=u?0:o/2,r.animate(f,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){u||s.hide(),t.effects.restore(s,a),t.effects.removeWrapper(s),i()}})}}(n),function(t,e){t.effects.effect.drop=function(e,i){var n,r=t(this),o=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"opacity\",\"height\",\"width\"],s=t.effects.setMode(r,e.mode||\"hide\"),a=\"show\"===s,l=e.direction||\"left\",u=\"up\"===l||\"down\"===l?\"top\":\"left\",c=\"up\"===l||\"left\"===l?\"pos\":\"neg\",h={opacity:a?1:0};t.effects.save(r,o),r.show(),t.effects.createWrapper(r),n=e.distance||r[\"top\"===u?\"outerHeight\":\"outerWidth\"](!0)/2,a&&r.css(\"opacity\",0).css(u,\"pos\"===c?-n:n),h[u]=(a?\"pos\"===c?\"+=\":\"-=\":\"pos\"===c?\"-=\":\"+=\")+n,r.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){\"hide\"===s&&r.hide(),t.effects.restore(r,o),t.effects.removeWrapper(r),i()}})}}(n),function(t,e){t.effects.effect.explode=function(e,i){function n(){y.push(this),y.length===h*p&&r()}function r(){d.css({visibility:\"visible\"}),t(y).remove(),g||d.hide(),i()}var o,s,a,l,u,c,h=e.pieces?Math.round(Math.sqrt(e.pieces)):3,p=h,d=t(this),f=t.effects.setMode(d,e.mode||\"hide\"),g=\"show\"===f,m=d.show().css(\"visibility\",\"hidden\").offset(),_=Math.ceil(d.outerWidth()/p),v=Math.ceil(d.outerHeight()/h),y=[];for(o=0;h>o;o++)for(l=m.top+o*v,c=o-(h-1)/2,s=0;p>s;s++)a=m.left+s*_,u=s-(p-1)/2,d.clone().appendTo(\"body\").wrap(\"<div></div>\").css({position:\"absolute\",visibility:\"visible\",left:-s*_,top:-o*v}).parent().addClass(\"ui-effects-explode\").css({position:\"absolute\",overflow:\"hidden\",width:_,height:v,left:a+(g?u*_:0),top:l+(g?c*v:0),opacity:g?0:1\n",
       "                }).animate({left:a+(g?0:u*_),top:l+(g?0:c*v),opacity:g?1:0},e.duration||500,e.easing,n)}}(n),function(t,e){t.effects.effect.fade=function(e,i){var n=t(this),r=t.effects.setMode(n,e.mode||\"toggle\");n.animate({opacity:r},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}}(n),function(t,e){t.effects.effect.fold=function(e,i){var n,r,o=t(this),s=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"height\",\"width\"],a=t.effects.setMode(o,e.mode||\"hide\"),l=\"show\"===a,u=\"hide\"===a,c=e.size||15,h=/([0-9]+)%/.exec(c),p=!!e.horizFirst,d=l!==p,f=d?[\"width\",\"height\"]:[\"height\",\"width\"],g=e.duration/2,m={},_={};t.effects.save(o,s),o.show(),n=t.effects.createWrapper(o).css({overflow:\"hidden\"}),r=d?[n.width(),n.height()]:[n.height(),n.width()],h&&(c=parseInt(h[1],10)/100*r[u?0:1]),l&&n.css(p?{height:0,width:c}:{height:c,width:0}),m[f[0]]=l?r[0]:c,_[f[1]]=l?r[1]:0,n.animate(m,g,e.easing).animate(_,g,e.easing,function(){u&&o.hide(),t.effects.restore(o,s),t.effects.removeWrapper(o),i()})}}(n),function(t,e){t.effects.effect.highlight=function(e,i){var n=t(this),r=[\"backgroundImage\",\"backgroundColor\",\"opacity\"],o=t.effects.setMode(n,e.mode||\"show\"),s={backgroundColor:n.css(\"backgroundColor\")};\"hide\"===o&&(s.opacity=0),t.effects.save(n,r),n.show().css({backgroundImage:\"none\",backgroundColor:e.color||\"#ffff99\"}).animate(s,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){\"hide\"===o&&n.hide(),t.effects.restore(n,r),i()}})}}(n),function(t,e){t.effects.effect.pulsate=function(e,i){var n,r=t(this),o=t.effects.setMode(r,e.mode||\"show\"),s=\"show\"===o,a=\"hide\"===o,l=s||\"hide\"===o,u=2*(e.times||5)+(l?1:0),c=e.duration/u,h=0,p=r.queue(),d=p.length;for((s||!r.is(\":visible\"))&&(r.css(\"opacity\",0).show(),h=1),n=1;u>n;n++)r.animate({opacity:h},c,e.easing),h=1-h;r.animate({opacity:h},c,e.easing),r.queue(function(){a&&r.hide(),i()}),d>1&&p.splice.apply(p,[1,0].concat(p.splice(d,u+1))),r.dequeue()}}(n),function(t,e){t.effects.effect.puff=function(e,i){var n=t(this),r=t.effects.setMode(n,e.mode||\"hide\"),o=\"hide\"===r,s=parseInt(e.percent,10)||150,a=s/100,l={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};t.extend(e,{effect:\"scale\",queue:!1,fade:!0,mode:r,complete:i,percent:o?s:100,from:o?l:{height:l.height*a,width:l.width*a,outerHeight:l.outerHeight*a,outerWidth:l.outerWidth*a}}),n.effect(e)},t.effects.effect.scale=function(e,i){var n=t(this),r=t.extend(!0,{},e),o=t.effects.setMode(n,e.mode||\"effect\"),s=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:\"hide\"===o?0:100),a=e.direction||\"both\",l=e.origin,u={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()},c={y:\"horizontal\"!==a?s/100:1,x:\"vertical\"!==a?s/100:1};r.effect=\"size\",r.queue=!1,r.complete=i,\"effect\"!==o&&(r.origin=l||[\"middle\",\"center\"],r.restore=!0),r.from=e.from||(\"show\"===o?{height:0,width:0,outerHeight:0,outerWidth:0}:u),r.to={height:u.height*c.y,width:u.width*c.x,outerHeight:u.outerHeight*c.y,outerWidth:u.outerWidth*c.x},r.fade&&(\"show\"===o&&(r.from.opacity=0,r.to.opacity=1),\"hide\"===o&&(r.from.opacity=1,r.to.opacity=0)),n.effect(r)},t.effects.effect.size=function(e,i){var n,r,o,s=t(this),a=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"width\",\"height\",\"overflow\",\"opacity\"],l=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"overflow\",\"opacity\"],u=[\"width\",\"height\",\"overflow\"],c=[\"fontSize\"],h=[\"borderTopWidth\",\"borderBottomWidth\",\"paddingTop\",\"paddingBottom\"],p=[\"borderLeftWidth\",\"borderRightWidth\",\"paddingLeft\",\"paddingRight\"],d=t.effects.setMode(s,e.mode||\"effect\"),f=e.restore||\"effect\"!==d,g=e.scale||\"both\",m=e.origin||[\"middle\",\"center\"],_=s.css(\"position\"),v=f?a:l,y={height:0,width:0,outerHeight:0,outerWidth:0};\"show\"===d&&s.show(),n={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()},\"toggle\"===e.mode&&\"show\"===d?(s.from=e.to||y,s.to=e.from||n):(s.from=e.from||(\"show\"===d?y:n),s.to=e.to||(\"hide\"===d?y:n)),o={from:{y:s.from.height/n.height,x:s.from.width/n.width},to:{y:s.to.height/n.height,x:s.to.width/n.width}},(\"box\"===g||\"both\"===g)&&(o.from.y!==o.to.y&&(v=v.concat(h),s.from=t.effects.setTransition(s,h,o.from.y,s.from),s.to=t.effects.setTransition(s,h,o.to.y,s.to)),o.from.x!==o.to.x&&(v=v.concat(p),s.from=t.effects.setTransition(s,p,o.from.x,s.from),s.to=t.effects.setTransition(s,p,o.to.x,s.to))),(\"content\"===g||\"both\"===g)&&o.from.y!==o.to.y&&(v=v.concat(c).concat(u),s.from=t.effects.setTransition(s,c,o.from.y,s.from),s.to=t.effects.setTransition(s,c,o.to.y,s.to)),t.effects.save(s,v),s.show(),t.effects.createWrapper(s),s.css(\"overflow\",\"hidden\").css(s.from),m&&(r=t.effects.getBaseline(m,n),s.from.top=(n.outerHeight-s.outerHeight())*r.y,s.from.left=(n.outerWidth-s.outerWidth())*r.x,s.to.top=(n.outerHeight-s.to.outerHeight)*r.y,s.to.left=(n.outerWidth-s.to.outerWidth)*r.x),s.css(s.from),(\"content\"===g||\"both\"===g)&&(h=h.concat([\"marginTop\",\"marginBottom\"]).concat(c),p=p.concat([\"marginLeft\",\"marginRight\"]),u=a.concat(h).concat(p),s.find(\"*[width]\").each(function(){var i=t(this),n={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};f&&t.effects.save(i,u),i.from={height:n.height*o.from.y,width:n.width*o.from.x,outerHeight:n.outerHeight*o.from.y,outerWidth:n.outerWidth*o.from.x},i.to={height:n.height*o.to.y,width:n.width*o.to.x,outerHeight:n.height*o.to.y,outerWidth:n.width*o.to.x},o.from.y!==o.to.y&&(i.from=t.effects.setTransition(i,h,o.from.y,i.from),i.to=t.effects.setTransition(i,h,o.to.y,i.to)),o.from.x!==o.to.x&&(i.from=t.effects.setTransition(i,p,o.from.x,i.from),i.to=t.effects.setTransition(i,p,o.to.x,i.to)),i.css(i.from),i.animate(i.to,e.duration,e.easing,function(){f&&t.effects.restore(i,u)})})),s.animate(s.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===s.to.opacity&&s.css(\"opacity\",s.from.opacity),\"hide\"===d&&s.hide(),t.effects.restore(s,v),f||(\"static\"===_?s.css({position:\"relative\",top:s.to.top,left:s.to.left}):t.each([\"top\",\"left\"],function(t,e){s.css(e,function(e,i){var n=parseInt(i,10),r=t?s.to.left:s.to.top;return\"auto\"===i?r+\"px\":n+r+\"px\"})})),t.effects.removeWrapper(s),i()}})}}(n),function(t,e){t.effects.effect.shake=function(e,i){var n,r=t(this),o=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"height\",\"width\"],s=t.effects.setMode(r,e.mode||\"effect\"),a=e.direction||\"left\",l=e.distance||20,u=e.times||3,c=2*u+1,h=Math.round(e.duration/c),p=\"up\"===a||\"down\"===a?\"top\":\"left\",d=\"up\"===a||\"left\"===a,f={},g={},m={},_=r.queue(),v=_.length;for(t.effects.save(r,o),r.show(),t.effects.createWrapper(r),f[p]=(d?\"-=\":\"+=\")+l,g[p]=(d?\"+=\":\"-=\")+2*l,m[p]=(d?\"-=\":\"+=\")+2*l,r.animate(f,h,e.easing),n=1;u>n;n++)r.animate(g,h,e.easing).animate(m,h,e.easing);r.animate(g,h,e.easing).animate(f,h/2,e.easing).queue(function(){\"hide\"===s&&r.hide(),t.effects.restore(r,o),t.effects.removeWrapper(r),i()}),v>1&&_.splice.apply(_,[1,0].concat(_.splice(v,c+1))),r.dequeue()}}(n),function(t,e){t.effects.effect.slide=function(e,i){var n,r=t(this),o=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"width\",\"height\"],s=t.effects.setMode(r,e.mode||\"show\"),a=\"show\"===s,l=e.direction||\"left\",u=\"up\"===l||\"down\"===l?\"top\":\"left\",c=\"up\"===l||\"left\"===l,h={};t.effects.save(r,o),r.show(),n=e.distance||r[\"top\"===u?\"outerHeight\":\"outerWidth\"](!0),t.effects.createWrapper(r).css({overflow:\"hidden\"}),a&&r.css(u,c?isNaN(n)?\"-\"+n:-n:n),h[u]=(a?c?\"+=\":\"-=\":c?\"-=\":\"+=\")+n,r.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){\"hide\"===s&&r.hide(),t.effects.restore(r,o),t.effects.removeWrapper(r),i()}})}}(n),function(t,e){t.effects.effect.transfer=function(e,i){var n=t(this),r=t(e.to),o=\"fixed\"===r.css(\"position\"),s=t(\"body\"),a=o?s.scrollTop():0,l=o?s.scrollLeft():0,u=r.offset(),c={top:u.top-a,left:u.left-l,height:r.innerHeight(),width:r.innerWidth()},h=n.offset(),p=t(\"<div class='ui-effects-transfer'></div>\").appendTo(document.body).addClass(e.className).css({top:h.top-a,left:h.left-l,height:n.innerHeight(),width:n.innerWidth(),position:o?\"fixed\":\"absolute\"}).animate(c,e.duration,e.easing,function(){p.remove(),i()})}}(n),function(t,e){t.widget(\"ui.menu\",{version:\"1.10.3\",defaultElement:\"<ul>\",delay:300,options:{icons:{submenu:\"ui-icon-carat-1-e\"},menus:\"ul\",position:{my:\"left top\",at:\"right top\"},role:\"menu\",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass(\"ui-menu ui-widget ui-widget-content ui-corner-all\").toggleClass(\"ui-menu-icons\",!!this.element.find(\".ui-icon\").length).attr({role:this.options.role,tabIndex:0}).bind(\"click\"+this.eventNamespace,t.proxy(function(t){this.options.disabled&&t.preventDefault()},this)),this.options.disabled&&this.element.addClass(\"ui-state-disabled\").attr(\"aria-disabled\",\"true\"),this._on({\"mousedown .ui-menu-item > a\":function(t){t.preventDefault()},\"click .ui-state-disabled > a\":function(t){t.preventDefault()},\"click .ui-menu-item:has(a)\":function(e){var i=t(e.target).closest(\".ui-menu-item\");!this.mouseHandled&&i.not(\".ui-state-disabled\").length&&(this.mouseHandled=!0,this.select(e),i.has(\".ui-menu\").length?this.expand(e):this.element.is(\":focus\")||(this.element.trigger(\"focus\",[!0]),this.active&&1===this.active.parents(\".ui-menu\").length&&clearTimeout(this.timer)))},\"mouseenter .ui-menu-item\":function(e){var i=t(e.currentTarget);i.siblings().children(\".ui-state-active\").removeClass(\"ui-state-active\"),this.focus(e,i)},mouseleave:\"collapseAll\",\"mouseleave .ui-menu\":\"collapseAll\",focus:function(t,e){var i=this.active||this.element.children(\".ui-menu-item\").eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:\"_keydown\"}),this.refresh(),this._on(this.document,{click:function(e){t(e.target).closest(\".ui-menu\").length||this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr(\"aria-activedescendant\").find(\".ui-menu\").addBack().removeClass(\"ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons\").removeAttr(\"role\").removeAttr(\"tabIndex\").removeAttr(\"aria-labelledby\").removeAttr(\"aria-expanded\").removeAttr(\"aria-hidden\").removeAttr(\"aria-disabled\").removeUniqueId().show(),this.element.find(\".ui-menu-item\").removeClass(\"ui-menu-item\").removeAttr(\"role\").removeAttr(\"aria-disabled\").children(\"a\").removeUniqueId().removeClass(\"ui-corner-all ui-state-hover\").removeAttr(\"tabIndex\").removeAttr(\"role\").removeAttr(\"aria-haspopup\").children().each(function(){var e=t(this);e.data(\"ui-menu-submenu-carat\")&&e.remove()}),this.element.find(\".ui-menu-divider\").removeClass(\"ui-menu-divider ui-widget-content\")},_keydown:function(e){function i(t){return t.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g,\"\\\\$&\")}var n,r,o,s,a,l=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move(\"first\",\"first\",e);break;case t.ui.keyCode.END:this._move(\"last\",\"last\",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(\".ui-state-disabled\")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:l=!1,r=this.previousFilter||\"\",o=String.fromCharCode(e.keyCode),s=!1,clearTimeout(this.filterTimer),o===r?s=!0:o=r+o,a=new RegExp(\"^\"+i(o),\"i\"),n=this.activeMenu.children(\".ui-menu-item\").filter(function(){return a.test(t(this).children(\"a\").text())}),n=s&&-1!==n.index(this.active.next())?this.active.nextAll(\".ui-menu-item\"):n,n.length||(o=String.fromCharCode(e.keyCode),a=new RegExp(\"^\"+i(o),\"i\"),n=this.activeMenu.children(\".ui-menu-item\").filter(function(){return a.test(t(this).children(\"a\").text())})),n.length?(this.focus(e,n),n.length>1?(this.previousFilter=o,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}l&&e.preventDefault()},_activate:function(t){this.active.is(\".ui-state-disabled\")||(this.active.children(\"a[aria-haspopup='true']\").length?this.expand(t):this.select(t))},refresh:function(){var e,i=this.options.icons.submenu,n=this.element.find(this.options.menus);n.filter(\":not(.ui-menu)\").addClass(\"ui-menu ui-widget ui-widget-content ui-corner-all\").hide().attr({role:this.options.role,\"aria-hidden\":\"true\",\"aria-expanded\":\"false\"}).each(function(){var e=t(this),n=e.prev(\"a\"),r=t(\"<span>\").addClass(\"ui-menu-icon ui-icon \"+i).data(\"ui-menu-submenu-carat\",!0);n.attr(\"aria-haspopup\",\"true\").prepend(r),e.attr(\"aria-labelledby\",n.attr(\"id\"))}),e=n.add(this.element),e.children(\":not(.ui-menu-item):has(a)\").addClass(\"ui-menu-item\").attr(\"role\",\"presentation\").children(\"a\").uniqueId().addClass(\"ui-corner-all\").attr({tabIndex:-1,role:this._itemRole()}),e.children(\":not(.ui-menu-item)\").each(function(){var e=t(this);/[^\\-\\u2014\\u2013\\s]/.test(e.text())||e.addClass(\"ui-widget-content ui-menu-divider\")}),e.children(\".ui-state-disabled\").attr(\"aria-disabled\",\"true\"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:\"menuitem\",listbox:\"option\"}[this.options.role]},_setOption:function(t,e){\"icons\"===t&&this.element.find(\".ui-menu-icon\").removeClass(this.options.icons.submenu).addClass(e.submenu),this._super(t,e)},focus:function(t,e){var i,n;this.blur(t,t&&\"focus\"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children(\"a\").addClass(\"ui-state-focus\"),this.options.role&&this.element.attr(\"aria-activedescendant\",n.attr(\"id\")),this.active.parent().closest(\".ui-menu-item\").children(\"a:first\").addClass(\"ui-state-active\"),t&&\"keydown\"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(\".ui-menu\"),i.length&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger(\"focus\",t,{item:e})},_scrollIntoView:function(e){var i,n,r,o,s,a;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],\"borderTopWidth\"))||0,n=parseFloat(t.css(this.activeMenu[0],\"paddingTop\"))||0,r=e.offset().top-this.activeMenu.offset().top-i-n,o=this.activeMenu.scrollTop(),s=this.activeMenu.height(),a=e.height(),0>r?this.activeMenu.scrollTop(o+r):r+a>s&&this.activeMenu.scrollTop(o+r-s+a))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.children(\"a\").removeClass(\"ui-state-focus\"),this.active=null,this._trigger(\"blur\",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),\"true\"===t.attr(\"aria-hidden\")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(\".ui-menu\").not(e.parents(\".ui-menu\")).hide().attr(\"aria-hidden\",\"true\"),e.show().removeAttr(\"aria-hidden\").attr(\"aria-expanded\",\"true\").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var n=i?this.element:t(e&&e.target).closest(this.element.find(\".ui-menu\"));n.length||(n=this.element),this._close(n),this.blur(e),this.activeMenu=n},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(\".ui-menu\").hide().attr(\"aria-hidden\",\"true\").attr(\"aria-expanded\",\"false\").end().find(\"a.ui-state-active\").removeClass(\"ui-state-active\")},collapse:function(t){var e=this.active&&this.active.parent().closest(\".ui-menu-item\",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(\".ui-menu \").children(\".ui-menu-item\").first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move(\"next\",\"first\",t)},previous:function(t){this._move(\"prev\",\"last\",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(\".ui-menu-item\").length},isLastItem:function(){return this.active&&!this.active.nextAll(\".ui-menu-item\").length},_move:function(t,e,i){var n;this.active&&(n=\"first\"===t||\"last\"===t?this.active[\"first\"===t?\"prevAll\":\"nextAll\"](\".ui-menu-item\").eq(-1):this.active[t+\"All\"](\".ui-menu-item\").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.children(\".ui-menu-item\")[e]()),this.focus(i,n)},nextPage:function(e){var i,n,r;return this.active?void(this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,r=this.element.height(),this.active.nextAll(\".ui-menu-item\").each(function(){return i=t(this),i.offset().top-n-r<0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(\".ui-menu-item\")[this.active?\"last\":\"first\"]()))):void this.next(e)},previousPage:function(e){var i,n,r;return this.active?void(this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,r=this.element.height(),this.active.prevAll(\".ui-menu-item\").each(function(){return i=t(this),i.offset().top-n+r>0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(\".ui-menu-item\").first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop(\"scrollHeight\")},select:function(e){this.active=this.active||t(e.target).closest(\".ui-menu-item\");var i={item:this.active};this.active.has(\".ui-menu\").length||this.collapseAll(e,!0),this._trigger(\"select\",e,i)}})}(n),function(t,e){function i(t,e,i){return[parseFloat(t[0])*(d.test(t[0])?e/100:1),parseFloat(t[1])*(d.test(t[1])?i/100:1)]}function n(e,i){return parseInt(t.css(e,i),10)||0}function r(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var o,s=Math.max,a=Math.abs,l=Math.round,u=/left|center|right/,c=/top|center|bottom/,h=/[\\+\\-]\\d+(\\.[\\d]+)?%?/,p=/^\\w+/,d=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(o!==e)return o;var i,n,r=t(\"<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>\"),s=r.children()[0];return t(\"body\").append(r),i=s.offsetWidth,r.css(\"overflow\",\"scroll\"),n=s.offsetWidth,i===n&&(n=r[0].clientWidth),r.remove(),o=i-n},getScrollInfo:function(e){var i=e.isWindow?\"\":e.element.css(\"overflow-x\"),n=e.isWindow?\"\":e.element.css(\"overflow-y\"),r=\"scroll\"===i||\"auto\"===i&&e.width<e.element[0].scrollWidth,o=\"scroll\"===n||\"auto\"===n&&e.height<e.element[0].scrollHeight;return{width:o?t.position.scrollbarWidth():0,height:r?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]);return{element:i,isWindow:n,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:n?i.width():i.outerWidth(),height:n?i.height():i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return f.apply(this,arguments);e=t.extend({},e);var o,d,g,m,_,v,y=t(e.of),b=t.position.getWithinInfo(e.within),w=t.position.getScrollInfo(b),x=(e.collision||\"flip\").split(\" \"),k={};return v=r(y),y[0].preventDefault&&(e.at=\"left top\"),d=v.width,g=v.height,m=v.offset,_=t.extend({},m),t.each([\"my\",\"at\"],function(){var t,i,n=(e[this]||\"\").split(\" \");1===n.length&&(n=u.test(n[0])?n.concat([\"center\"]):c.test(n[0])?[\"center\"].concat(n):[\"center\",\"center\"]),n[0]=u.test(n[0])?n[0]:\"center\",n[1]=c.test(n[1])?n[1]:\"center\",t=h.exec(n[0]),i=h.exec(n[1]),k[this]=[t?t[0]:0,i?i[0]:0],e[this]=[p.exec(n[0])[0],p.exec(n[1])[0]]}),1===x.length&&(x[1]=x[0]),\"right\"===e.at[0]?_.left+=d:\"center\"===e.at[0]&&(_.left+=d/2),\"bottom\"===e.at[1]?_.top+=g:\"center\"===e.at[1]&&(_.top+=g/2),o=i(k.at,d,g),_.left+=o[0],_.top+=o[1],this.each(function(){var r,u,c=t(this),h=c.outerWidth(),p=c.outerHeight(),f=n(this,\"marginLeft\"),v=n(this,\"marginTop\"),C=h+f+n(this,\"marginRight\")+w.width,M=p+v+n(this,\"marginBottom\")+w.height,D=t.extend({},_),T=i(k.my,c.outerWidth(),c.outerHeight());\"right\"===e.my[0]?D.left-=h:\"center\"===e.my[0]&&(D.left-=h/2),\"bottom\"===e.my[1]?D.top-=p:\"center\"===e.my[1]&&(D.top-=p/2),D.left+=T[0],D.top+=T[1],t.support.offsetFractions||(D.left=l(D.left),D.top=l(D.top)),r={marginLeft:f,marginTop:v},t.each([\"left\",\"top\"],function(i,n){t.ui.position[x[i]]&&t.ui.position[x[i]][n](D,{targetWidth:d,targetHeight:g,elemWidth:h,elemHeight:p,collisionPosition:r,collisionWidth:C,collisionHeight:M,offset:[o[0]+T[0],o[1]+T[1]],my:e.my,at:e.at,within:b,elem:c})}),e.using&&(u=function(t){var i=m.left-D.left,n=i+d-h,r=m.top-D.top,o=r+g-p,l={target:{element:y,left:m.left,top:m.top,width:d,height:g},element:{element:c,left:D.left,top:D.top,width:h,height:p},horizontal:0>n?\"left\":i>0?\"right\":\"center\",vertical:0>o?\"top\":r>0?\"bottom\":\"middle\"};h>d&&a(i+n)<d&&(l.horizontal=\"center\"),p>g&&a(r+o)<g&&(l.vertical=\"middle\"),l.important=s(a(i),a(n))>s(a(r),a(o))?\"horizontal\":\"vertical\",e.using.call(this,t,l)}),c.offset(t.extend(D,{using:u}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollLeft:n.offset.left,o=n.width,a=t.left-e.collisionPosition.marginLeft,l=r-a,u=a+e.collisionWidth-o-r;e.collisionWidth>o?l>0&&0>=u?(i=t.left+l+e.collisionWidth-o-r,t.left+=l-i):t.left=u>0&&0>=l?r:l>u?r+o-e.collisionWidth:r:l>0?t.left+=l:u>0?t.left-=u:t.left=s(t.left-a,t.left)},top:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,a=t.top-e.collisionPosition.marginTop,l=r-a,u=a+e.collisionHeight-o-r;e.collisionHeight>o?l>0&&0>=u?(i=t.top+l+e.collisionHeight-o-r,t.top+=l-i):t.top=u>0&&0>=l?r:l>u?r+o-e.collisionHeight:r:l>0?t.top+=l:u>0?t.top-=u:t.top=s(t.top-a,t.top)}},flip:{left:function(t,e){var i,n,r=e.within,o=r.offset.left+r.scrollLeft,s=r.width,l=r.isWindow?r.scrollLeft:r.offset.left,u=t.left-e.collisionPosition.marginLeft,c=u-l,h=u+e.collisionWidth-s-l,p=\"left\"===e.my[0]?-e.elemWidth:\"right\"===e.my[0]?e.elemWidth:0,d=\"left\"===e.at[0]?e.targetWidth:\"right\"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+p+d+f+e.collisionWidth-s-o,(0>i||i<a(c))&&(t.left+=p+d+f)):h>0&&(n=t.left-e.collisionPosition.marginLeft+p+d+f-l,(n>0||a(n)<h)&&(t.left+=p+d+f))},top:function(t,e){var i,n,r=e.within,o=r.offset.top+r.scrollTop,s=r.height,l=r.isWindow?r.scrollTop:r.offset.top,u=t.top-e.collisionPosition.marginTop,c=u-l,h=u+e.collisionHeight-s-l,p=\"top\"===e.my[1],d=p?-e.elemHeight:\"bottom\"===e.my[1]?e.elemHeight:0,f=\"top\"===e.at[1]?e.targetHeight:\"bottom\"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0>c?(n=t.top+d+f+g+e.collisionHeight-s-o,t.top+d+f+g>c&&(0>n||n<a(c))&&(t.top+=d+f+g)):h>0&&(i=t.top-e.collisionPosition.marginTop+d+f+g-l,t.top+d+f+g>h&&(i>0||a(i)<h)&&(t.top+=d+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,n,r,o,s=document.getElementsByTagName(\"body\")[0],a=document.createElement(\"div\");e=document.createElement(s?\"div\":\"body\"),n={visibility:\"hidden\",width:0,height:0,border:0,margin:0,background:\"none\"},s&&t.extend(n,{position:\"absolute\",left:\"-1000px\",top:\"-1000px\"});for(o in n)e.style[o]=n[o];e.appendChild(a),i=s||document.documentElement,i.insertBefore(e,i.firstChild),a.style.cssText=\"position: absolute; left: 10.7432222px;\",r=t(a).offset().left,t.support.offsetFractions=r>10&&11>r,e.innerHTML=\"\",i.removeChild(e)}()}(n),function(t,e){t.widget(\"ui.progressbar\",{version:\"1.10.3\",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass(\"ui-progressbar ui-widget ui-widget-content ui-corner-all\").attr({role:\"progressbar\",\"aria-valuemin\":this.min}),this.valueDiv=t(\"<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>\").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass(\"ui-progressbar ui-widget ui-widget-content ui-corner-all\").removeAttr(\"role\").removeAttr(\"aria-valuemin\").removeAttr(\"aria-valuemax\").removeAttr(\"aria-valuenow\"),this.valueDiv.remove()},value:function(t){return t===e?this.options.value:(this.options.value=this._constrainedValue(t),void this._refreshValue())},_constrainedValue:function(t){return t===e&&(t=this.options.value),this.indeterminate=t===!1,\"number\"!=typeof t&&(t=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){\"max\"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).toggleClass(\"ui-corner-right\",e===this.options.max).width(i.toFixed(0)+\"%\"),this.element.toggleClass(\"ui-progressbar-indeterminate\",this.indeterminate),this.indeterminate?(this.element.removeAttr(\"aria-valuenow\"),this.overlayDiv||(this.overlayDiv=t(\"<div class='ui-progressbar-overlay'></div>\").appendTo(this.valueDiv))):(this.element.attr({\"aria-valuemax\":this.options.max,\"aria-valuenow\":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger(\"change\")),e===this.options.max&&this._trigger(\"complete\")}})}(n),function(t,e){var i=5;t.widget(\"ui.slider\",t.ui.mouse,{version:\"1.10.3\",widgetEventPrefix:\"slide\",options:{animate:!1,distance:0,max:100,min:0,orientation:\"horizontal\",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass(\"ui-slider ui-slider-\"+this.orientation+\" ui-widget ui-widget-content ui-corner-all\"),this._refresh(),this._setOption(\"disabled\",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,n=this.options,r=this.element.find(\".ui-slider-handle\").addClass(\"ui-state-default ui-corner-all\"),o=\"<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>\",s=[];for(i=n.values&&n.values.length||1,r.length>i&&(r.slice(i).remove(),r=r.slice(0,i)),e=r.length;i>e;e++)s.push(o);this.handles=r.add(t(s.join(\"\")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data(\"ui-slider-handle-index\",e)})},_createRange:function(){var e=this.options,i=\"\";e.range?(e.range===!0&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass(\"ui-slider-range-min ui-slider-range-max\").css({left:\"\",bottom:\"\"}):(this.range=t(\"<div></div>\").appendTo(this.element),i=\"ui-slider-range ui-widget-header ui-corner-all\"),this.range.addClass(i+(\"min\"===e.range||\"max\"===e.range?\" ui-slider-range-\"+e.range:\"\"))):this.range=t([])},_setupEvents:function(){var t=this.handles.add(this.range).filter(\"a\");this._off(t),this._on(t,this._handleEvents),this._hoverable(t),this._focusable(t)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass(\"ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all\"),this._mouseDestroy()},_mouseCapture:function(e){var i,n,r,o,s,a,l,u,c=this,h=this.options;return h.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(i),r=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(n-c.values(e));(r>i||r===i&&(e===c._lastChangedValue||c.values(e)===h.min))&&(r=i,o=t(this),s=e)}),a=this._start(e,s),a===!1?!1:(this._mouseSliding=!0,this._handleIndex=s,o.addClass(\"ui-state-active\").focus(),l=o.offset(),u=!t(e.target).parents().addBack().is(\".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(\"ui-state-hover\")||this._slide(e,s,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this.handles.removeClass(\"ui-state-active\"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation=\"vertical\"===this.options.orientation?\"vertical\":\"horizontal\"},_normValueFromMouse:function(t){var e,i,n,r,o;return\"horizontal\"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),n=i/e,n>1&&(n=1),0>n&&(n=0),\"vertical\"===this.orientation&&(n=1-n),r=this._valueMax()-this._valueMin(),o=this._valueMin()+n*r,this._trimAlignValue(o)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger(\"start\",t,i)},_slide:function(t,e,i){var n,r,o;this.options.values&&this.options.values.length?(n=this.values(e?0:1),2===this.options.values.length&&this.options.range===!0&&(0===e&&i>n||1===e&&n>i)&&(i=n),i!==this.values(e)&&(r=this.values(),r[e]=i,o=this._trigger(\"slide\",t,{handle:this.handles[e],value:i,values:r}),n=this.values(e?0:1),o!==!1&&this.values(e,i,!0))):i!==this.value()&&(o=this._trigger(\"slide\",t,{handle:this.handles[e],value:i}),o!==!1&&this.value(i))},_stop:function(t,e){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger(\"stop\",t,i)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._lastChangedValue=e,this._trigger(\"change\",t,i)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var n,r,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(n=this.options.values,r=arguments[0],o=0;o<n.length;o+=1)n[o]=this._trimAlignValue(r[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,i){var n,r=0;switch(\"range\"===e&&this.options.range===!0&&(\"min\"===i?(this.options.value=this._values(0),this.options.values=null):\"max\"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(r=this.options.values.length),t.Widget.prototype._setOption.apply(this,arguments),e){case\"orientation\":this._detectOrientation(),this.element.removeClass(\"ui-slider-horizontal ui-slider-vertical\").addClass(\"ui-slider-\"+this.orientation),this._refreshValue();break;case\"value\":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case\"values\":for(this._animateOff=!0,this._refreshValue(),n=0;r>n;n+=1)this._change(null,n);this._animateOff=!1;break;case\"min\":case\"max\":this._animateOff=!0,\n",
       "                this._refreshValue(),this._animateOff=!1;break;case\"range\":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,n;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this.options.values&&this.options.values.length){for(i=this.options.values.slice(),n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(i[n]);return i}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,i=(t-this._valueMin())%e,n=t-i;return 2*Math.abs(i)>=e&&(n+=i>0?e:-e),parseFloat(n.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,i,n,r,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(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,c[\"horizontal\"===l.orientation?\"left\":\"bottom\"]=i+\"%\",t(this).stop(1,1)[u?\"animate\":\"css\"](c,a.animate),l.options.range===!0&&(\"horizontal\"===l.orientation?(0===n&&l.range.stop(1,1)[u?\"animate\":\"css\"]({left:i+\"%\"},a.animate),1===n&&l.range[u?\"animate\":\"css\"]({width:i-e+\"%\"},{queue:!1,duration:a.animate})):(0===n&&l.range.stop(1,1)[u?\"animate\":\"css\"]({bottom:i+\"%\"},a.animate),1===n&&l.range[u?\"animate\":\"css\"]({height:i-e+\"%\"},{queue:!1,duration:a.animate}))),e=i}):(n=this.value(),r=this._valueMin(),o=this._valueMax(),i=o!==r?(n-r)/(o-r)*100:0,c[\"horizontal\"===this.orientation?\"left\":\"bottom\"]=i+\"%\",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:i+\"%\"},a.animate),\"max\"===s&&\"horizontal\"===this.orientation&&this.range[u?\"animate\":\"css\"]({width:100-i+\"%\"},{queue:!1,duration:a.animate}),\"min\"===s&&\"vertical\"===this.orientation&&this.range.stop(1,1)[u?\"animate\":\"css\"]({height:i+\"%\"},a.animate),\"max\"===s&&\"vertical\"===this.orientation&&this.range[u?\"animate\":\"css\"]({height:100-i+\"%\"},{queue:!1,duration:a.animate}))},_handleEvents:{keydown:function(e){var n,r,o,s,a=t(e.target).data(\"ui-slider-handle-index\");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,t(e.target).addClass(\"ui-state-active\"),n=this._start(e,a),n===!1))return}switch(s=this.options.step,r=o=this.options.values&&this.options.values.length?this.values(a):this.value(),e.keyCode){case t.ui.keyCode.HOME:o=this._valueMin();break;case t.ui.keyCode.END:o=this._valueMax();break;case t.ui.keyCode.PAGE_UP:o=this._trimAlignValue(r+(this._valueMax()-this._valueMin())/i);break;case t.ui.keyCode.PAGE_DOWN:o=this._trimAlignValue(r-(this._valueMax()-this._valueMin())/i);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(r===this._valueMax())return;o=this._trimAlignValue(r+s);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(r===this._valueMin())return;o=this._trimAlignValue(r-s)}this._slide(e,a,o)},click:function(t){t.preventDefault()},keyup:function(e){var i=t(e.target).data(\"ui-slider-handle-index\");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),t(e.target).removeClass(\"ui-state-active\"))}}})}(n),function(t){function e(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger(\"change\")}}t.widget(\"ui.spinner\",{version:\"1.10.3\",defaultElement:\"<input>\",widgetEventPrefix:\"spin\",options:{culture:null,icons:{down:\"ui-icon-triangle-1-s\",up:\"ui-icon-triangle-1-n\"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption(\"max\",this.options.max),this._setOption(\"min\",this.options.min),this._setOption(\"step\",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr(\"autocomplete\")}})},_getCreateOptions:function(){var e={},i=this.element;return t.each([\"min\",\"max\",\"step\"],function(t,n){var r=i.attr(n);void 0!==r&&r.length&&(e[n]=r)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:\"_stop\",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger(\"change\",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},\"mousedown .ui-spinner-button\":function(e){function i(){var t=this.element[0]===this.document[0].activeElement;t||(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(e)!==!1&&this._repeat(null,t(e.currentTarget).hasClass(\"ui-spinner-up\")?1:-1,e)},\"mouseup .ui-spinner-button\":\"_stop\",\"mouseenter .ui-spinner-button\":function(e){return t(e.currentTarget).hasClass(\"ui-state-active\")?this._start(e)===!1?!1:void this._repeat(null,t(e.currentTarget).hasClass(\"ui-spinner-up\")?1:-1,e):void 0},\"mouseleave .ui-spinner-button\":\"_stop\"},_draw:function(){var t=this.uiSpinner=this.element.addClass(\"ui-spinner-input\").attr(\"autocomplete\",\"off\").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr(\"role\",\"spinbutton\"),this.buttons=t.find(\".ui-spinner-button\").attr(\"tabIndex\",-1).button().removeClass(\"ui-corner-all\"),this.buttons.height()>Math.ceil(.5*t.height())&&t.height()>0&&t.height(t.height()),this.options.disabled&&this.disable()},_keydown:function(e){var i=this.options,n=t.ui.keyCode;switch(e.keyCode){case n.UP:return this._repeat(null,1,e),!0;case n.DOWN:return this._repeat(null,-1,e),!0;case n.PAGE_UP:return this._repeat(null,i.page,e),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_uiSpinnerHtml:function(){return\"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>\"},_buttonHtml:function(){return\"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon \"+this.options.icons.up+\"'>&#9650;</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon \"+this.options.icons.down+\"'>&#9660;</span></a>\"},_start:function(t){return this.spinning||this._trigger(\"start\",t)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&this._trigger(\"spin\",e,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(\".\");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,n=this.options;return e=null!==n.min?n.min:0,i=t-e,i=Math.round(i/n.step)*n.step,t=e+i,t=parseFloat(t.toFixed(this._precision())),null!==n.max&&t>n.max?n.max:null!==n.min&&t<n.min?n.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger(\"stop\",t))},_setOption:function(t,e){if(\"culture\"===t||\"numberFormat\"===t){var i=this._parse(this.element.val());return this.options[t]=e,void this.element.val(this._format(i))}(\"max\"===t||\"min\"===t||\"step\"===t)&&\"string\"==typeof e&&(e=this._parse(e)),\"icons\"===t&&(this.buttons.first().find(\".ui-icon\").removeClass(this.options.icons.up).addClass(e.up),this.buttons.last().find(\".ui-icon\").removeClass(this.options.icons.down).addClass(e.down)),this._super(t,e),\"disabled\"===t&&(e?(this.element.prop(\"disabled\",!0),this.buttons.button(\"disable\")):(this.element.prop(\"disabled\",!1),this.buttons.button(\"enable\")))},_setOptions:e(function(t){this._super(t),this._value(this.element.val())}),_parse:function(t){return\"string\"==typeof t&&\"\"!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),\"\"===t||isNaN(t)?null:t},_format:function(t){return\"\"===t?\"\":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({\"aria-valuemin\":this.options.min,\"aria-valuemax\":this.options.max,\"aria-valuenow\":this._parse(this.element.val())})},_value:function(t,e){var i;\"\"!==t&&(i=this._parse(t),null!==i&&(e||(i=this._adjustValue(i)),t=this._format(i))),this.element.val(t),this._refresh()},_destroy:function(){this.element.removeClass(\"ui-spinner-input\").prop(\"disabled\",!1).removeAttr(\"autocomplete\").removeAttr(\"role\").removeAttr(\"aria-valuemin\").removeAttr(\"aria-valuemax\").removeAttr(\"aria-valuenow\"),this.uiSpinner.replaceWith(this.element)},stepUp:e(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:e(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:e(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:e(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?void e(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}})}(n),function(t,e){function i(){return++r}function n(t){return t.hash.length>1&&decodeURIComponent(t.href.replace(o,\"\"))===decodeURIComponent(location.href.replace(o,\"\"))}var r=0,o=/#.*$/;t.widget(\"ui.tabs\",{version:\"1.10.3\",delay:300,options:{active:null,collapsible:!1,event:\"click\",heightStyle:\"content\",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var e=this,i=this.options;this.running=!1,this.element.addClass(\"ui-tabs ui-widget ui-widget-content ui-corner-all\").toggleClass(\"ui-tabs-collapsible\",i.collapsible).delegate(\".ui-tabs-nav > li\",\"mousedown\"+this.eventNamespace,function(e){t(this).is(\".ui-state-disabled\")&&e.preventDefault()}).delegate(\".ui-tabs-anchor\",\"focus\"+this.eventNamespace,function(){t(this).closest(\"li\").is(\".ui-state-disabled\")&&this.blur()}),this._processTabs(),i.active=this._initialActive(),t.isArray(i.disabled)&&(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(\".ui-state-disabled\"),function(t){return e.tabs.index(t)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(i.active):t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var e=this.options.active,i=this.options.collapsible,n=location.hash.substring(1);return null===e&&(n&&this.tabs.each(function(i,r){return t(r).attr(\"aria-controls\")===n?(e=i,!1):void 0}),null===e&&(e=this.tabs.index(this.tabs.filter(\".ui-tabs-active\"))),(null===e||-1===e)&&(e=this.tabs.length?0:!1)),e!==!1&&(e=this.tabs.index(this.tabs.eq(e)),-1===e&&(e=i?!1:0)),!i&&e===!1&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var i=t(this.document[0].activeElement).closest(\"li\"),n=this.tabs.index(i),r=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:n++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:r=!1,n--;break;case t.ui.keyCode.END:n=this.anchors.length-1;break;case t.ui.keyCode.HOME:n=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n===this.options.active?!1:n);default:return}e.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,r),e.ctrlKey||(i.attr(\"aria-selected\",\"false\"),this.tabs.eq(n).attr(\"aria-selected\",\"true\"),this.activating=this._delay(function(){this.option(\"active\",n)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.focus())},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,i){function n(){return e>r&&(e=0),0>e&&(e=r),e}for(var r=this.tabs.length-1;-1!==t.inArray(n(),this.options.disabled);)e=i?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).focus(),t},_setOption:function(t,e){return\"active\"===t?void this._activate(e):\"disabled\"===t?void this._setupDisabled(e):(this._super(t,e),\"collapsible\"===t&&(this.element.toggleClass(\"ui-tabs-collapsible\",e),e||this.options.active!==!1||this._activate(0)),\"event\"===t&&this._setupEvents(e),void(\"heightStyle\"===t&&this._setupHeightStyle(e)))},_tabId:function(t){return t.attr(\"aria-controls\")||\"ui-tabs-\"+i()},_sanitizeSelector:function(t){return t?t.replace(/[!\"$%&'()*+,.\\/:;<=>?@\\[\\]\\^`{|}~]/g,\"\\\\$&\"):\"\"},refresh:function(){var e=this.options,i=this.tablist.children(\":has(a[href])\");e.disabled=t.map(i.filter(\".ui-state-disabled\"),function(t){return i.index(t)}),this._processTabs(),e.active!==!1&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({\"aria-selected\":\"false\",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({\"aria-expanded\":\"false\",\"aria-hidden\":\"true\"}),this.active.length?(this.active.addClass(\"ui-tabs-active ui-state-active\").attr({\"aria-selected\":\"true\",tabIndex:0}),this._getPanelForTab(this.active).show().attr({\"aria-expanded\":\"true\",\"aria-hidden\":\"false\"})):this.tabs.eq(0).attr(\"tabIndex\",0)},_processTabs:function(){var e=this;this.tablist=this._getList().addClass(\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\").attr(\"role\",\"tablist\"),this.tabs=this.tablist.find(\"> li:has(a[href])\").addClass(\"ui-state-default ui-corner-top\").attr({role:\"tab\",tabIndex:-1}),this.anchors=this.tabs.map(function(){return t(\"a\",this)[0]}).addClass(\"ui-tabs-anchor\").attr({role:\"presentation\",tabIndex:-1}),this.panels=t(),this.anchors.each(function(i,r){var o,s,a,l=t(r).uniqueId().attr(\"id\"),u=t(r).closest(\"li\"),c=u.attr(\"aria-controls\");n(r)?(o=r.hash,s=e.element.find(e._sanitizeSelector(o))):(a=e._tabId(u),o=\"#\"+a,s=e.element.find(o),s.length||(s=e._createPanel(a),s.insertAfter(e.panels[i-1]||e.tablist)),s.attr(\"aria-live\",\"polite\")),s.length&&(e.panels=e.panels.add(s)),c&&u.data(\"ui-tabs-aria-controls\",c),u.attr({\"aria-controls\":o.substring(1),\"aria-labelledby\":l}),s.attr(\"aria-labelledby\",l)}),this.panels.addClass(\"ui-tabs-panel ui-widget-content ui-corner-bottom\").attr(\"role\",\"tabpanel\")},_getList:function(){return this.element.find(\"ol,ul\").eq(0)},_createPanel:function(e){return t(\"<div>\").attr(\"id\",e).addClass(\"ui-tabs-panel ui-widget-content ui-corner-bottom\").data(\"ui-tabs-destroy\",!0)},_setupDisabled:function(e){t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1);for(var i,n=0;i=this.tabs[n];n++)e===!0||-1!==t.inArray(n,e)?t(i).addClass(\"ui-state-disabled\").attr(\"aria-disabled\",\"true\"):t(i).removeClass(\"ui-state-disabled\").removeAttr(\"aria-disabled\");this.options.disabled=e},_setupEvents:function(e){var i={click:function(t){t.preventDefault()}};e&&t.each(e.split(\" \"),function(t,e){i[e]=\"_eventHandler\"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,i),this._on(this.tabs,{keydown:\"_tabKeydown\"}),this._on(this.panels,{keydown:\"_panelKeydown\"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,n=this.element.parent();\"fill\"===e?(i=n.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(\":visible\").each(function(){var e=t(this),n=e.css(\"position\");\"absolute\"!==n&&\"fixed\"!==n&&(i-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css(\"overflow\",\"auto\")):\"auto\"===e&&(i=0,this.panels.each(function(){i=Math.max(i,t(this).height(\"\").height())}).height(i))},_eventHandler:function(e){var i=this.options,n=this.active,r=t(e.currentTarget),o=r.closest(\"li\"),s=o[0]===n[0],a=s&&i.collapsible,l=a?t():this._getPanelForTab(o),u=n.length?this._getPanelForTab(n):t(),c={oldTab:n,oldPanel:u,newTab:a?t():o,newPanel:l};e.preventDefault(),o.hasClass(\"ui-state-disabled\")||o.hasClass(\"ui-tabs-loading\")||this.running||s&&!i.collapsible||this._trigger(\"beforeActivate\",e,c)===!1||(i.active=a?!1:this.tabs.index(o),this.active=s?t():o,this.xhr&&this.xhr.abort(),u.length||l.length||t.error(\"jQuery UI Tabs: Mismatching fragment identifier.\"),l.length&&this.load(this.tabs.index(o),e),this._toggle(e,c))},_toggle:function(e,i){function n(){o.running=!1,o._trigger(\"activate\",e,i)}function r(){i.newTab.closest(\"li\").addClass(\"ui-tabs-active ui-state-active\"),s.length&&o.options.show?o._show(s,o.options.show,n):(s.show(),n())}var o=this,s=i.newPanel,a=i.oldPanel;this.running=!0,a.length&&this.options.hide?this._hide(a,this.options.hide,function(){i.oldTab.closest(\"li\").removeClass(\"ui-tabs-active ui-state-active\"),r()}):(i.oldTab.closest(\"li\").removeClass(\"ui-tabs-active ui-state-active\"),a.hide(),r()),a.attr({\"aria-expanded\":\"false\",\"aria-hidden\":\"true\"}),i.oldTab.attr(\"aria-selected\",\"false\"),s.length&&a.length?i.oldTab.attr(\"tabIndex\",-1):s.length&&this.tabs.filter(function(){return 0===t(this).attr(\"tabIndex\")}).attr(\"tabIndex\",-1),s.attr({\"aria-expanded\":\"true\",\"aria-hidden\":\"false\"}),i.newTab.attr({\"aria-selected\":\"true\",tabIndex:0})},_activate:function(e){var i,n=this._findActive(e);n[0]!==this.active[0]&&(n.length||(n=this.active),i=n.find(\".ui-tabs-anchor\")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return e===!1?t():this.tabs.eq(e)},_getIndex:function(t){return\"string\"==typeof t&&(t=this.anchors.index(this.anchors.filter(\"[href$='\"+t+\"']\"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass(\"ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible\"),this.tablist.removeClass(\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\").removeAttr(\"role\"),this.anchors.removeClass(\"ui-tabs-anchor\").removeAttr(\"role\").removeAttr(\"tabIndex\").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,\"ui-tabs-destroy\")?t(this).remove():t(this).removeClass(\"ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel\").removeAttr(\"tabIndex\").removeAttr(\"aria-live\").removeAttr(\"aria-busy\").removeAttr(\"aria-selected\").removeAttr(\"aria-labelledby\").removeAttr(\"aria-hidden\").removeAttr(\"aria-expanded\").removeAttr(\"role\")}),this.tabs.each(function(){var e=t(this),i=e.data(\"ui-tabs-aria-controls\");i?e.attr(\"aria-controls\",i).removeData(\"ui-tabs-aria-controls\"):e.removeAttr(\"aria-controls\")}),this.panels.show(),\"content\"!==this.options.heightStyle&&this.panels.css(\"height\",\"\")},enable:function(i){var n=this.options.disabled;n!==!1&&(i===e?n=!1:(i=this._getIndex(i),n=t.isArray(n)?t.map(n,function(t){return t!==i?t:null}):t.map(this.tabs,function(t,e){return e!==i?e:null})),this._setupDisabled(n))},disable:function(i){var n=this.options.disabled;if(n!==!0){if(i===e)n=!0;else{if(i=this._getIndex(i),-1!==t.inArray(i,n))return;n=t.isArray(n)?t.merge([i],n).sort():[i]}this._setupDisabled(n)}},load:function(e,i){e=this._getIndex(e);var r=this,o=this.tabs.eq(e),s=o.find(\".ui-tabs-anchor\"),a=this._getPanelForTab(o),l={tab:o,panel:a};n(s[0])||(this.xhr=t.ajax(this._ajaxSettings(s,i,l)),this.xhr&&\"canceled\"!==this.xhr.statusText&&(o.addClass(\"ui-tabs-loading\"),a.attr(\"aria-busy\",\"true\"),this.xhr.success(function(t){setTimeout(function(){a.html(t),r._trigger(\"load\",i,l)},1)}).complete(function(t,e){setTimeout(function(){\"abort\"===e&&r.panels.stop(!1,!0),o.removeClass(\"ui-tabs-loading\"),a.removeAttr(\"aria-busy\"),t===r.xhr&&delete r.xhr},1)})))},_ajaxSettings:function(e,i,n){var r=this;return{url:e.attr(\"href\"),beforeSend:function(e,o){return r._trigger(\"beforeLoad\",i,t.extend({jqXHR:e,ajaxSettings:o},n))}}},_getPanelForTab:function(e){var i=t(e).attr(\"aria-controls\");return this.element.find(this._sanitizeSelector(\"#\"+i))}})}(n),function(t){function e(e,i){var n=(e.attr(\"aria-describedby\")||\"\").split(/\\s+/);n.push(i),e.data(\"ui-tooltip-id\",i).attr(\"aria-describedby\",t.trim(n.join(\" \")))}function i(e){var i=e.data(\"ui-tooltip-id\"),n=(e.attr(\"aria-describedby\")||\"\").split(/\\s+/),r=t.inArray(i,n);-1!==r&&n.splice(r,1),e.removeData(\"ui-tooltip-id\"),n=t.trim(n.join(\" \")),n?e.attr(\"aria-describedby\",n):e.removeAttr(\"aria-describedby\")}var n=0;t.widget(\"ui.tooltip\",{version:\"1.10.3\",options:{content:function(){var e=t(this).attr(\"title\")||\"\";return t(\"<a>\").text(e).html()},hide:!0,items:\"[title]:not([disabled])\",position:{my:\"left top+15\",at:\"left bottom\",collision:\"flipfit flip\"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:\"open\",focusin:\"open\"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(e,i){var n=this;return\"disabled\"===e?(this[i?\"_disable\":\"_enable\"](),void(this.options[e]=i)):(this._super(e,i),void(\"content\"===e&&t.each(this.tooltips,function(t,e){n._updateContent(e)})))},_disable:function(){var e=this;t.each(this.tooltips,function(i,n){var r=t.Event(\"blur\");r.target=r.currentTarget=n[0],e.close(r,!0)}),this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.is(\"[title]\")&&e.data(\"ui-tooltip-title\",e.attr(\"title\")).attr(\"title\",\"\")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.data(\"ui-tooltip-title\")&&e.attr(\"title\",e.data(\"ui-tooltip-title\"))})},open:function(e){var i=this,n=t(e?e.target:this.element).closest(this.options.items);n.length&&!n.data(\"ui-tooltip-id\")&&(n.attr(\"title\")&&n.data(\"ui-tooltip-title\",n.attr(\"title\")),n.data(\"ui-tooltip-open\",!0),e&&\"mouseover\"===e.type&&n.parents().each(function(){var e,n=t(this);n.data(\"ui-tooltip-open\")&&(e=t.Event(\"blur\"),e.target=e.currentTarget=this,i.close(e,!0)),n.attr(\"title\")&&(n.uniqueId(),i.parents[this.id]={element:this,title:n.attr(\"title\")},n.attr(\"title\",\"\"))}),this._updateContent(n,e))},_updateContent:function(t,e){var i,n=this.options.content,r=this,o=e?e.type:null;return\"string\"==typeof n?this._open(e,t,n):(i=n.call(t[0],function(i){t.data(\"ui-tooltip-open\")&&r._delay(function(){e&&(e.type=o),this._open(e,t,i)})}),void(i&&this._open(e,t,i)))},_open:function(i,n,r){function o(t){u.of=t,s.is(\":hidden\")||s.position(u)}var s,a,l,u=t.extend({},this.options.position);if(r){if(s=this._find(n),s.length)return void s.find(\".ui-tooltip-content\").html(r);n.is(\"[title]\")&&(i&&\"mouseover\"===i.type?n.attr(\"title\",\"\"):n.removeAttr(\"title\")),s=this._tooltip(n),e(n,s.attr(\"id\")),s.find(\".ui-tooltip-content\").html(r),this.options.track&&i&&/^mouse/.test(i.type)?(this._on(this.document,{mousemove:o}),o(i)):s.position(t.extend({of:n},this.options.position)),s.hide(),this._show(s,this.options.show),this.options.show&&this.options.show.delay&&(l=this.delayedShow=setInterval(function(){s.is(\":visible\")&&(o(u.of),clearInterval(l))},t.fx.interval)),this._trigger(\"open\",i,{tooltip:s}),a={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var i=t.Event(e);i.currentTarget=n[0],this.close(i,!0)}},remove:function(){this._removeTooltip(s)}},i&&\"mouseover\"!==i.type||(a.mouseleave=\"close\"),i&&\"focusin\"!==i.type||(a.focusout=\"close\"),this._on(!0,n,a)}},close:function(e){var n=this,r=t(e?e.currentTarget:this.element),o=this._find(r);this.closing||(clearInterval(this.delayedShow),r.data(\"ui-tooltip-title\")&&r.attr(\"title\",r.data(\"ui-tooltip-title\")),i(r),o.stop(!0),this._hide(o,this.options.hide,function(){n._removeTooltip(t(this))}),r.removeData(\"ui-tooltip-open\"),this._off(r,\"mouseleave focusout keyup\"),r[0]!==this.element[0]&&this._off(r,\"remove\"),this._off(this.document,\"mousemove\"),e&&\"mouseleave\"===e.type&&t.each(this.parents,function(e,i){t(i.element).attr(\"title\",i.title),delete n.parents[e]}),this.closing=!0,this._trigger(\"close\",e,{tooltip:o}),this.closing=!1)},_tooltip:function(e){var i=\"ui-tooltip-\"+n++,r=t(\"<div>\").attr({id:i,role:\"tooltip\"}).addClass(\"ui-tooltip ui-widget ui-corner-all ui-widget-content \"+(this.options.tooltipClass||\"\"));return t(\"<div>\").addClass(\"ui-tooltip-content\").appendTo(r),r.appendTo(this.document[0].body),this.tooltips[i]=e,r},_find:function(e){var i=e.data(\"ui-tooltip-id\");return i?t(\"#\"+i):t()},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr(\"id\")]},_destroy:function(){var e=this;t.each(this.tooltips,function(i,n){var r=t.Event(\"blur\");r.target=r.currentTarget=n[0],e.close(r,!0),t(\"#\"+i).remove(),n.data(\"ui-tooltip-title\")&&(n.attr(\"title\",n.data(\"ui-tooltip-title\")),n.removeData(\"ui-tooltip-title\"))})}})}(n)},{jquery:17}],11:[function(t,e,i){var n=t(\"jquery\");t(\"./core\"),t(\"./widget\"),t(\"./position\"),function(t,e){t.widget(\"ui.menu\",{version:\"1.10.4\",defaultElement:\"<ul>\",delay:300,options:{icons:{submenu:\"ui-icon-carat-1-e\"},menus:\"ul\",position:{my:\"left top\",at:\"right top\"},role:\"menu\",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass(\"ui-menu ui-widget ui-widget-content ui-corner-all\").toggleClass(\"ui-menu-icons\",!!this.element.find(\".ui-icon\").length).attr({role:this.options.role,tabIndex:0}).bind(\"click\"+this.eventNamespace,t.proxy(function(t){this.options.disabled&&t.preventDefault()},this)),this.options.disabled&&this.element.addClass(\"ui-state-disabled\").attr(\"aria-disabled\",\"true\"),this._on({\"mousedown .ui-menu-item > a\":function(t){t.preventDefault()},\"click .ui-state-disabled > a\":function(t){t.preventDefault()},\"click .ui-menu-item:has(a)\":function(e){var i=t(e.target).closest(\".ui-menu-item\");!this.mouseHandled&&i.not(\".ui-state-disabled\").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(\".ui-menu\").length?this.expand(e):!this.element.is(\":focus\")&&t(this.document[0].activeElement).closest(\".ui-menu\").length&&(this.element.trigger(\"focus\",[!0]),this.active&&1===this.active.parents(\".ui-menu\").length&&clearTimeout(this.timer)))},\"mouseenter .ui-menu-item\":function(e){var i=t(e.currentTarget);i.siblings().children(\".ui-state-active\").removeClass(\"ui-state-active\"),this.focus(e,i)},mouseleave:\"collapseAll\",\"mouseleave .ui-menu\":\"collapseAll\",focus:function(t,e){var i=this.active||this.element.children(\".ui-menu-item\").eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:\"_keydown\"}),this.refresh(),this._on(this.document,{click:function(e){t(e.target).closest(\".ui-menu\").length||this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr(\"aria-activedescendant\").find(\".ui-menu\").addBack().removeClass(\"ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons\").removeAttr(\"role\").removeAttr(\"tabIndex\").removeAttr(\"aria-labelledby\").removeAttr(\"aria-expanded\").removeAttr(\"aria-hidden\").removeAttr(\"aria-disabled\").removeUniqueId().show(),this.element.find(\".ui-menu-item\").removeClass(\"ui-menu-item\").removeAttr(\"role\").removeAttr(\"aria-disabled\").children(\"a\").removeUniqueId().removeClass(\"ui-corner-all ui-state-hover\").removeAttr(\"tabIndex\").removeAttr(\"role\").removeAttr(\"aria-haspopup\").children().each(function(){var e=t(this);e.data(\"ui-menu-submenu-carat\")&&e.remove()}),this.element.find(\".ui-menu-divider\").removeClass(\"ui-menu-divider ui-widget-content\")},_keydown:function(e){function i(t){return t.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g,\"\\\\$&\")}var n,r,o,s,a,l=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move(\"first\",\"first\",e);break;case t.ui.keyCode.END:this._move(\"last\",\"last\",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(\".ui-state-disabled\")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:l=!1,r=this.previousFilter||\"\",o=String.fromCharCode(e.keyCode),s=!1,clearTimeout(this.filterTimer),o===r?s=!0:o=r+o,a=new RegExp(\"^\"+i(o),\"i\"),n=this.activeMenu.children(\".ui-menu-item\").filter(function(){return a.test(t(this).children(\"a\").text())}),n=s&&-1!==n.index(this.active.next())?this.active.nextAll(\".ui-menu-item\"):n,n.length||(o=String.fromCharCode(e.keyCode),a=new RegExp(\"^\"+i(o),\"i\"),n=this.activeMenu.children(\".ui-menu-item\").filter(function(){return a.test(t(this).children(\"a\").text())})),n.length?(this.focus(e,n),n.length>1?(this.previousFilter=o,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}l&&e.preventDefault()},_activate:function(t){this.active.is(\".ui-state-disabled\")||(this.active.children(\"a[aria-haspopup='true']\").length?this.expand(t):this.select(t))},refresh:function(){var e,i=this.options.icons.submenu,n=this.element.find(this.options.menus);this.element.toggleClass(\"ui-menu-icons\",!!this.element.find(\".ui-icon\").length),n.filter(\":not(.ui-menu)\").addClass(\"ui-menu ui-widget ui-widget-content ui-corner-all\").hide().attr({role:this.options.role,\"aria-hidden\":\"true\",\"aria-expanded\":\"false\"}).each(function(){var e=t(this),n=e.prev(\"a\"),r=t(\"<span>\").addClass(\"ui-menu-icon ui-icon \"+i).data(\"ui-menu-submenu-carat\",!0);n.attr(\"aria-haspopup\",\"true\").prepend(r),e.attr(\"aria-labelledby\",n.attr(\"id\"))}),e=n.add(this.element),e.children(\":not(.ui-menu-item):has(a)\").addClass(\"ui-menu-item\").attr(\"role\",\"presentation\").children(\"a\").uniqueId().addClass(\"ui-corner-all\").attr({tabIndex:-1,role:this._itemRole()}),e.children(\":not(.ui-menu-item)\").each(function(){var e=t(this);/[^\\-\\u2014\\u2013\\s]/.test(e.text())||e.addClass(\"ui-widget-content ui-menu-divider\")}),e.children(\".ui-state-disabled\").attr(\"aria-disabled\",\"true\"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:\"menuitem\",listbox:\"option\"}[this.options.role]},_setOption:function(t,e){\"icons\"===t&&this.element.find(\".ui-menu-icon\").removeClass(this.options.icons.submenu).addClass(e.submenu),this._super(t,e)},focus:function(t,e){var i,n;this.blur(t,t&&\"focus\"===t.type),\n",
       "                this._scrollIntoView(e),this.active=e.first(),n=this.active.children(\"a\").addClass(\"ui-state-focus\"),this.options.role&&this.element.attr(\"aria-activedescendant\",n.attr(\"id\")),this.active.parent().closest(\".ui-menu-item\").children(\"a:first\").addClass(\"ui-state-active\"),t&&\"keydown\"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(\".ui-menu\"),i.length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger(\"focus\",t,{item:e})},_scrollIntoView:function(e){var i,n,r,o,s,a;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],\"borderTopWidth\"))||0,n=parseFloat(t.css(this.activeMenu[0],\"paddingTop\"))||0,r=e.offset().top-this.activeMenu.offset().top-i-n,o=this.activeMenu.scrollTop(),s=this.activeMenu.height(),a=e.height(),0>r?this.activeMenu.scrollTop(o+r):r+a>s&&this.activeMenu.scrollTop(o+r-s+a))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.children(\"a\").removeClass(\"ui-state-focus\"),this.active=null,this._trigger(\"blur\",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),\"true\"===t.attr(\"aria-hidden\")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(\".ui-menu\").not(e.parents(\".ui-menu\")).hide().attr(\"aria-hidden\",\"true\"),e.show().removeAttr(\"aria-hidden\").attr(\"aria-expanded\",\"true\").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var n=i?this.element:t(e&&e.target).closest(this.element.find(\".ui-menu\"));n.length||(n=this.element),this._close(n),this.blur(e),this.activeMenu=n},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(\".ui-menu\").hide().attr(\"aria-hidden\",\"true\").attr(\"aria-expanded\",\"false\").end().find(\"a.ui-state-active\").removeClass(\"ui-state-active\")},collapse:function(t){var e=this.active&&this.active.parent().closest(\".ui-menu-item\",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(\".ui-menu \").children(\".ui-menu-item\").first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move(\"next\",\"first\",t)},previous:function(t){this._move(\"prev\",\"last\",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(\".ui-menu-item\").length},isLastItem:function(){return this.active&&!this.active.nextAll(\".ui-menu-item\").length},_move:function(t,e,i){var n;this.active&&(n=\"first\"===t||\"last\"===t?this.active[\"first\"===t?\"prevAll\":\"nextAll\"](\".ui-menu-item\").eq(-1):this.active[t+\"All\"](\".ui-menu-item\").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.children(\".ui-menu-item\")[e]()),this.focus(i,n)},nextPage:function(e){var i,n,r;return this.active?void(this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,r=this.element.height(),this.active.nextAll(\".ui-menu-item\").each(function(){return i=t(this),i.offset().top-n-r<0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(\".ui-menu-item\")[this.active?\"last\":\"first\"]()))):void this.next(e)},previousPage:function(e){var i,n,r;return this.active?void(this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,r=this.element.height(),this.active.prevAll(\".ui-menu-item\").each(function(){return i=t(this),i.offset().top-n+r>0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(\".ui-menu-item\").first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop(\"scrollHeight\")},select:function(e){this.active=this.active||t(e.target).closest(\".ui-menu-item\");var i={item:this.active};this.active.has(\".ui-menu\").length||this.collapseAll(e,!0),this._trigger(\"select\",e,i)}})}(n)},{\"./core\":6,\"./position\":13,\"./widget\":16,jquery:17}],12:[function(t,e,i){var n=t(\"jquery\");t(\"./widget\"),function(t,e){var i=!1;t(document).mouseup(function(){i=!1}),t.widget(\"ui.mouse\",{version:\"1.10.4\",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(i){return!0===t.data(i.target,e.widgetName+\".preventClickEvent\")?(t.removeData(i.target,e.widgetName+\".preventClickEvent\"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind(\".\"+this.widgetName),this._mouseMoveDelegate&&t(document).unbind(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).unbind(\"mouseup.\"+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!i){this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var n=this,r=1===e.which,o=\"string\"==typeof this.options.cancel&&e.target.nodeName?t(e.target).closest(this.options.cancel).length:!1;return r&&!o&&this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+\".preventClickEvent\")&&t.removeData(e.target,this.widgetName+\".preventClickEvent\"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},t(document).bind(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).bind(\"mouseup.\"+this.widgetName,this._mouseUpDelegate),e.preventDefault(),i=!0,!0)):!0}},_mouseMove:function(e){return t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button?this._mouseUp(e):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)},_mouseUp:function(e){return t(document).unbind(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).unbind(\"mouseup.\"+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+\".preventClickEvent\",!0),this._mouseStop(e)),!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}})}(n)},{\"./widget\":16,jquery:17}],13:[function(t,e,i){var n=t(\"jquery\");!function(t,e){function i(t,e,i){return[parseFloat(t[0])*(d.test(t[0])?e/100:1),parseFloat(t[1])*(d.test(t[1])?i/100:1)]}function n(e,i){return parseInt(t.css(e,i),10)||0}function r(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var o,s=Math.max,a=Math.abs,l=Math.round,u=/left|center|right/,c=/top|center|bottom/,h=/[\\+\\-]\\d+(\\.[\\d]+)?%?/,p=/^\\w+/,d=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(o!==e)return o;var i,n,r=t(\"<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>\"),s=r.children()[0];return t(\"body\").append(r),i=s.offsetWidth,r.css(\"overflow\",\"scroll\"),n=s.offsetWidth,i===n&&(n=r[0].clientWidth),r.remove(),o=i-n},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?\"\":e.element.css(\"overflow-x\"),n=e.isWindow||e.isDocument?\"\":e.element.css(\"overflow-y\"),r=\"scroll\"===i||\"auto\"===i&&e.width<e.element[0].scrollWidth,o=\"scroll\"===n||\"auto\"===n&&e.height<e.element[0].scrollHeight;return{width:o?t.position.scrollbarWidth():0,height:r?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]),r=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:n,isDocument:r,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:n?i.width():i.outerWidth(),height:n?i.height():i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return f.apply(this,arguments);e=t.extend({},e);var o,d,g,m,_,v,y=t(e.of),b=t.position.getWithinInfo(e.within),w=t.position.getScrollInfo(b),x=(e.collision||\"flip\").split(\" \"),k={};return v=r(y),y[0].preventDefault&&(e.at=\"left top\"),d=v.width,g=v.height,m=v.offset,_=t.extend({},m),t.each([\"my\",\"at\"],function(){var t,i,n=(e[this]||\"\").split(\" \");1===n.length&&(n=u.test(n[0])?n.concat([\"center\"]):c.test(n[0])?[\"center\"].concat(n):[\"center\",\"center\"]),n[0]=u.test(n[0])?n[0]:\"center\",n[1]=c.test(n[1])?n[1]:\"center\",t=h.exec(n[0]),i=h.exec(n[1]),k[this]=[t?t[0]:0,i?i[0]:0],e[this]=[p.exec(n[0])[0],p.exec(n[1])[0]]}),1===x.length&&(x[1]=x[0]),\"right\"===e.at[0]?_.left+=d:\"center\"===e.at[0]&&(_.left+=d/2),\"bottom\"===e.at[1]?_.top+=g:\"center\"===e.at[1]&&(_.top+=g/2),o=i(k.at,d,g),_.left+=o[0],_.top+=o[1],this.each(function(){var r,u,c=t(this),h=c.outerWidth(),p=c.outerHeight(),f=n(this,\"marginLeft\"),v=n(this,\"marginTop\"),C=h+f+n(this,\"marginRight\")+w.width,M=p+v+n(this,\"marginBottom\")+w.height,D=t.extend({},_),T=i(k.my,c.outerWidth(),c.outerHeight());\"right\"===e.my[0]?D.left-=h:\"center\"===e.my[0]&&(D.left-=h/2),\"bottom\"===e.my[1]?D.top-=p:\"center\"===e.my[1]&&(D.top-=p/2),D.left+=T[0],D.top+=T[1],t.support.offsetFractions||(D.left=l(D.left),D.top=l(D.top)),r={marginLeft:f,marginTop:v},t.each([\"left\",\"top\"],function(i,n){t.ui.position[x[i]]&&t.ui.position[x[i]][n](D,{targetWidth:d,targetHeight:g,elemWidth:h,elemHeight:p,collisionPosition:r,collisionWidth:C,collisionHeight:M,offset:[o[0]+T[0],o[1]+T[1]],my:e.my,at:e.at,within:b,elem:c})}),e.using&&(u=function(t){var i=m.left-D.left,n=i+d-h,r=m.top-D.top,o=r+g-p,l={target:{element:y,left:m.left,top:m.top,width:d,height:g},element:{element:c,left:D.left,top:D.top,width:h,height:p},horizontal:0>n?\"left\":i>0?\"right\":\"center\",vertical:0>o?\"top\":r>0?\"bottom\":\"middle\"};h>d&&a(i+n)<d&&(l.horizontal=\"center\"),p>g&&a(r+o)<g&&(l.vertical=\"middle\"),l.important=s(a(i),a(n))>s(a(r),a(o))?\"horizontal\":\"vertical\",e.using.call(this,t,l)}),c.offset(t.extend(D,{using:u}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollLeft:n.offset.left,o=n.width,a=t.left-e.collisionPosition.marginLeft,l=r-a,u=a+e.collisionWidth-o-r;e.collisionWidth>o?l>0&&0>=u?(i=t.left+l+e.collisionWidth-o-r,t.left+=l-i):t.left=u>0&&0>=l?r:l>u?r+o-e.collisionWidth:r:l>0?t.left+=l:u>0?t.left-=u:t.left=s(t.left-a,t.left)},top:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,a=t.top-e.collisionPosition.marginTop,l=r-a,u=a+e.collisionHeight-o-r;e.collisionHeight>o?l>0&&0>=u?(i=t.top+l+e.collisionHeight-o-r,t.top+=l-i):t.top=u>0&&0>=l?r:l>u?r+o-e.collisionHeight:r:l>0?t.top+=l:u>0?t.top-=u:t.top=s(t.top-a,t.top)}},flip:{left:function(t,e){var i,n,r=e.within,o=r.offset.left+r.scrollLeft,s=r.width,l=r.isWindow?r.scrollLeft:r.offset.left,u=t.left-e.collisionPosition.marginLeft,c=u-l,h=u+e.collisionWidth-s-l,p=\"left\"===e.my[0]?-e.elemWidth:\"right\"===e.my[0]?e.elemWidth:0,d=\"left\"===e.at[0]?e.targetWidth:\"right\"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+p+d+f+e.collisionWidth-s-o,(0>i||i<a(c))&&(t.left+=p+d+f)):h>0&&(n=t.left-e.collisionPosition.marginLeft+p+d+f-l,(n>0||a(n)<h)&&(t.left+=p+d+f))},top:function(t,e){var i,n,r=e.within,o=r.offset.top+r.scrollTop,s=r.height,l=r.isWindow?r.scrollTop:r.offset.top,u=t.top-e.collisionPosition.marginTop,c=u-l,h=u+e.collisionHeight-s-l,p=\"top\"===e.my[1],d=p?-e.elemHeight:\"bottom\"===e.my[1]?e.elemHeight:0,f=\"top\"===e.at[1]?e.targetHeight:\"bottom\"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0>c?(n=t.top+d+f+g+e.collisionHeight-s-o,t.top+d+f+g>c&&(0>n||n<a(c))&&(t.top+=d+f+g)):h>0&&(i=t.top-e.collisionPosition.marginTop+d+f+g-l,t.top+d+f+g>h&&(i>0||a(i)<h)&&(t.top+=d+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,n,r,o,s=document.getElementsByTagName(\"body\")[0],a=document.createElement(\"div\");e=document.createElement(s?\"div\":\"body\"),n={visibility:\"hidden\",width:0,height:0,border:0,margin:0,background:\"none\"},s&&t.extend(n,{position:\"absolute\",left:\"-1000px\",top:\"-1000px\"});for(o in n)e.style[o]=n[o];e.appendChild(a),i=s||document.documentElement,i.insertBefore(e,i.firstChild),a.style.cssText=\"position: absolute; left: 10.7432222px;\",r=t(a).offset().left,t.support.offsetFractions=r>10&&11>r,e.innerHTML=\"\",i.removeChild(e)}()}(n)},{jquery:17}],14:[function(t,e,i){var n=t(\"jquery\");t(\"./core\"),t(\"./mouse\"),t(\"./widget\"),function(t,e){function i(t,e,i){return t>e&&e+i>t}function n(t){return/left|right/.test(t.css(\"float\"))||/inline|table-cell/.test(t.css(\"display\"))}t.widget(\"ui.sortable\",t.ui.mouse,{version:\"1.10.4\",widgetEventPrefix:\"sort\",ready:!1,options:{appendTo:\"parent\",axis:!1,connectWith:!1,containment:!1,cursor:\"auto\",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:\"original\",items:\"> *\",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:\"default\",tolerance:\"intersect\",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var t=this.options;this.containerCache={},this.element.addClass(\"ui-sortable\"),this.refresh(),this.floating=this.items.length?\"x\"===t.axis||n(this.items[0].item):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass(\"ui-sortable ui-sortable-disabled\"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+\"-item\");return this},_setOption:function(e,i){\"disabled\"===e?(this.options[e]=i,this.widget().toggleClass(\"ui-sortable-disabled\",!!i)):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){var n=null,r=!1,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?(n=t(this),!1):void 0}),t.data(e.target,o.widgetName+\"-item\")===o&&(n=t(e.target)),n&&(!this.options.handle||i||(t(this.options.handle,n).find(\"*\").addBack().each(function(){this===e.target&&(r=!0)}),r))?(this.currentItem=n,this._removeCurrentsFromItems(),!0):!1)},_mouseStart:function(e,i,n){var r,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(),!n)for(r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger(\"activate\",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass(\"ui-sortable-helper\"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,r,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\"),i=this.items.length-1;i>=0;i--)if(n=this.items[i],r=n.item[0],o=this._intersectsWithPointer(n),o&&n.instance===this.currentContainer&&r!==this.currentItem[0]&&this.placeholder[1===o?\"next\":\"prev\"]()[0]!==r&&!t.contains(this.placeholder[0],r)&&(\"semi-dynamic\"===this.options.type?!t.contains(this.element[0],r):!0)){if(this.direction=1===o?\"down\":\"up\",\"pointer\"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger(\"change\",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger(\"sort\",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,r=this.placeholder.offset(),o=this.options.axis,s={};o&&\"x\"!==o||(s.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),o&&\"y\"!==o||(s.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(s,parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),\"original\"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass(\"ui-sortable-helper\"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger(\"deactivate\",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger(\"out\",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),\"original\"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||\"id\")||\"\").match(e.expression||/(.+)[\\-=_](.+)/);i&&n.push((e.key||i[1]+\"[]\")+\"=\"+(e.key&&e.expression?i[1]:i[2]))}),!n.length&&e.key&&n.push(e.key+\"=\"),n.join(\"&\")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each(function(){n.push(t(e.item||this).attr(e.attribute||\"id\")||\"\")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,r=n+this.helperProportions.height,o=t.left,s=o+t.width,a=t.top,l=a+t.height,u=this.offset.click.top,c=this.offset.click.left,h=\"x\"===this.options.axis||n+u>a&&l>n+u,p=\"y\"===this.options.axis||e+c>o&&s>e+c,d=h&&p;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&&i-this.helperProportions.width/2<s&&a<n+this.helperProportions.height/2&&r-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e=\"x\"===this.options.axis||i(this.positionAbs.top+this.offset.click.top,t.top,t.height),n=\"y\"===this.options.axis||i(this.positionAbs.left+this.offset.click.left,t.left,t.width),r=e&&n,o=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return r?this.floating?s&&\"right\"===s||\"down\"===o?2:1:o&&(\"down\"===o?2:1):!1},_intersectsWithSides:function(t){var e=i(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=i(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),r=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return this.floating&&o?\"right\"===o&&n||\"left\"===o&&!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.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function i(){a.push(this)}var n,r,o,s,a=[],l=[],u=this._connectWith();if(u&&e)for(n=u.length-1;n>=0;n--)for(o=t(u[n]),r=o.length-1;r>=0;r--)s=t.data(o[r],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(\".ui-sortable-helper\").not(\".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(\".ui-sortable-helper\").not(\".ui-sortable-placeholder\"),this]),n=l.length-1;n>=0;n--)l[n][0].each(i);return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(\":data(\"+this.widgetName+\"-item)\");this.items=t.grep(this.items,function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,r,o,s,a,l,u,c=this.items,h=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],p=this._connectWith();if(p&&this.ready)for(i=p.length-1;i>=0;i--)for(r=t(p[i]),n=r.length-1;n>=0;n--)o=t.data(r[n],this.widgetFullName),o&&o!==this&&!o.options.disabled&&(h.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(i=h.length-1;i>=0;i--)for(s=h[i][1],a=h[i][0],n=0,u=a.length;u>n;n++)l=t(a[n]),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 i,n,r,o;for(i=this.items.length-1;i>=0;i--)n=this.items[i],n.instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=r.outerWidth(),n.height=r.outerHeight()),o=r.offset(),n.left=o.left,n.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)o=this.containers[i].element.offset(),this.containers[i].containerCache.left=o.left,this.containers[i].containerCache.top=o.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var i,n=e.options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),r=t(\"<\"+n+\">\",e.document[0]).addClass(i||e.currentItem[0].className+\" ui-sortable-placeholder\").removeClass(\"ui-sortable-helper\");return\"tr\"===n?e.currentItem.children().each(function(){t(\"<td>&#160;</td>\",e.document[0]).attr(\"colspan\",t(this).attr(\"colspan\")||1).appendTo(r)}):\"img\"===n&&r.attr(\"src\",e.currentItem.attr(\"src\")),i||r.css(\"visibility\",\"hidden\"),r},update:function(t,r){(!i||n.forcePlaceholderSize)&&(r.height()||r.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css(\"paddingTop\")||0,10)-parseInt(e.currentItem.css(\"paddingBottom\")||0,10)),r.width()||r.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css(\"paddingLeft\")||0,10)-parseInt(e.currentItem.css(\"paddingRight\")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_contactContainers:function(e){var r,o,s,a,l,u,c,h,p,d,f=null,g=null;for(r=this.containers.length-1;r>=0;r--)if(!t.contains(this.currentItem[0],this.containers[r].element[0]))if(this._intersectsWith(this.containers[r].containerCache)){if(f&&t.contains(this.containers[r].element[0],f.element[0]))continue;f=this.containers[r],g=r}else this.containers[r].containerCache.over&&(this.containers[r]._trigger(\"out\",e,this._uiHash(this)),this.containers[r].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[g].containerCache.over||(this.containers[g]._trigger(\"over\",e,this._uiHash(this)),this.containers[g].containerCache.over=1);else{for(s=1e4,a=null,d=f.floating||n(this.currentItem),l=d?\"left\":\"top\",u=d?\"width\":\"height\",c=this.positionAbs[l]+this.offset.click[l],o=this.items.length-1;o>=0;o--)t.contains(this.containers[g].element[0],this.items[o].item[0])&&this.items[o].item[0]!==this.currentItem[0]&&(!d||i(this.positionAbs.top+this.offset.click.top,this.items[o].top,this.items[o].height))&&(h=this.items[o].item.offset()[l],p=!1,Math.abs(h-c)>Math.abs(h+this.items[o][u]-c)&&(p=!0,h+=this.items[o][u]),Math.abs(h-c)<s&&(s=Math.abs(h-c),a=this.items[o],this.direction=p?\"up\":\"down\"));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[g])return;a?this._rearrange(e,a,null,!0):this._rearrange(e,null,this.containers[g].element,!0),this._trigger(\"change\",e,this._uiHash()),this.containers[g]._trigger(\"change\",e,this._uiHash(this)),this.currentContainer=this.containers[g],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[g]._trigger(\"over\",e,this._uiHash(this)),this.containers[g].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):\"clone\"===i.helper?this.currentItem.clone():this.currentItem;return n.parents(\"body\").length||t(\"parent\"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[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\")}),(!n[0].style.width||i.forceHelperSize)&&n.width(this.currentItem.width()),(!n[0].style.height||i.forceHelperSize)&&n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){\"string\"==typeof e&&(e=e.split(\" \")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),\"left\"in e&&(this.offset.click.left=e.left+this.margins.left),\"right\"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),\"top\"in e&&(this.offset.click.top=e.top+this.margins.top),\"bottom\"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){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,i,n,r=this.options;\"parent\"===r.containment&&(r.containment=this.helper[0].parentNode),(\"document\"===r.containment||\"window\"===r.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t(\"document\"===r.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t(\"document\"===r.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(r.containment)||(e=t(r.containment)[0],i=t(r.containment).offset(),n=\"hidden\"!==t(e).css(\"overflow\"),this.containment=[i.left+(parseInt(t(e).css(\"borderLeftWidth\"),10)||0)+(parseInt(t(e).css(\"paddingLeft\"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css(\"borderTopWidth\"),10)||0)+(parseInt(t(e).css(\"paddingTop\"),10)||0)-this.margins.top,i.left+(n?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,i.top+(n?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,i){i||(i=this.position);var n=\"absolute\"===e?1:-1,r=\"absolute\"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(r[0].tagName);\n",
       "                \n",
       "                return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-(\"fixed\"===this.cssPosition?-this.scrollParent.scrollTop():o?0:r.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-(\"fixed\"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:r.scrollLeft())*n}},_generatePosition:function(e){var i,n,r=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)),r.grid&&(i=this.originalPageY+Math.round((s-this.originalPageY)/r.grid[1])*r.grid[1],s=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-r.grid[1]:i+r.grid[1]:i,n=this.originalPageX+Math.round((o-this.originalPageX)/r.grid[0])*r.grid[0],o=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-r.grid[0]:n+r.grid[0]:n)),{top: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,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],\"down\"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay(function(){r===this.counter&&this.refreshPositions(!n)})},_clear:function(t,e){function i(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}this.reverting=!1;var n,r=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)(\"auto\"===this._storedCSS[n]||\"static\"===this._storedCSS[n])&&(this._storedCSS[n]=\"\");this.currentItem.css(this._storedCSS).removeClass(\"ui-sortable-helper\")}else this.currentItem.show();for(this.fromOutside&&!e&&r.push(function(t){this._trigger(\"receive\",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(\".ui-sortable-helper\")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||r.push(function(t){this._trigger(\"update\",t,this._uiHash())}),this!==this.currentContainer&&(e||(r.push(function(t){this._trigger(\"remove\",t,this._uiHash())}),r.push(function(t){return function(e){t._trigger(\"receive\",e,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(t){return function(e){t._trigger(\"update\",e,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)e||r.push(i(\"deactivate\",this,this.containers[n])),this.containers[n].containerCache.over&&(r.push(i(\"out\",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find(\"body\").css(\"cursor\",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css(\"opacity\",this._storedOpacity),this._storedZIndex&&this.helper.css(\"zIndex\",\"auto\"===this._storedZIndex?\"\":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!e){for(this._trigger(\"beforeStop\",t,this._uiHash()),n=0;n<r.length;n++)r[n].call(this,t);this._trigger(\"stop\",t,this._uiHash())}return this.fromOutside=!1,!1}if(e||this._trigger(\"beforeStop\",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!e){for(n=0;n<r.length;n++)r[n].call(this,t);this._trigger(\"stop\",t,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})}(n)},{\"./core\":6,\"./mouse\":12,\"./widget\":16,jquery:17}],15:[function(t,e,i){var n=t(\"jquery\");t(\"./core\"),t(\"./widget\"),t(\"./button\"),function(t){function e(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger(\"change\")}}t.widget(\"ui.spinner\",{version:\"1.10.4\",defaultElement:\"<input>\",widgetEventPrefix:\"spin\",options:{culture:null,icons:{down:\"ui-icon-triangle-1-s\",up:\"ui-icon-triangle-1-n\"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption(\"max\",this.options.max),this._setOption(\"min\",this.options.min),this._setOption(\"step\",this.options.step),\"\"!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr(\"autocomplete\")}})},_getCreateOptions:function(){var e={},i=this.element;return t.each([\"min\",\"max\",\"step\"],function(t,n){var r=i.attr(n);void 0!==r&&r.length&&(e[n]=r)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:\"_stop\",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger(\"change\",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},\"mousedown .ui-spinner-button\":function(e){function i(){var t=this.element[0]===this.document[0].activeElement;t||(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(e)!==!1&&this._repeat(null,t(e.currentTarget).hasClass(\"ui-spinner-up\")?1:-1,e)},\"mouseup .ui-spinner-button\":\"_stop\",\"mouseenter .ui-spinner-button\":function(e){return t(e.currentTarget).hasClass(\"ui-state-active\")?this._start(e)===!1?!1:void this._repeat(null,t(e.currentTarget).hasClass(\"ui-spinner-up\")?1:-1,e):void 0},\"mouseleave .ui-spinner-button\":\"_stop\"},_draw:function(){var t=this.uiSpinner=this.element.addClass(\"ui-spinner-input\").attr(\"autocomplete\",\"off\").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr(\"role\",\"spinbutton\"),this.buttons=t.find(\".ui-spinner-button\").attr(\"tabIndex\",-1).button().removeClass(\"ui-corner-all\"),this.buttons.height()>Math.ceil(.5*t.height())&&t.height()>0&&t.height(t.height()),this.options.disabled&&this.disable()},_keydown:function(e){var i=this.options,n=t.ui.keyCode;switch(e.keyCode){case n.UP:return this._repeat(null,1,e),!0;case n.DOWN:return this._repeat(null,-1,e),!0;case n.PAGE_UP:return this._repeat(null,i.page,e),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_uiSpinnerHtml:function(){return\"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>\"},_buttonHtml:function(){return\"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon \"+this.options.icons.up+\"'>&#9650;</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon \"+this.options.icons.down+\"'>&#9660;</span></a>\"},_start:function(t){return this.spinning||this._trigger(\"start\",t)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&this._trigger(\"spin\",e,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(\".\");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,n=this.options;return e=null!==n.min?n.min:0,i=t-e,i=Math.round(i/n.step)*n.step,t=e+i,t=parseFloat(t.toFixed(this._precision())),null!==n.max&&t>n.max?n.max:null!==n.min&&t<n.min?n.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger(\"stop\",t))},_setOption:function(t,e){if(\"culture\"===t||\"numberFormat\"===t){var i=this._parse(this.element.val());return this.options[t]=e,void this.element.val(this._format(i))}(\"max\"===t||\"min\"===t||\"step\"===t)&&\"string\"==typeof e&&(e=this._parse(e)),\"icons\"===t&&(this.buttons.first().find(\".ui-icon\").removeClass(this.options.icons.up).addClass(e.up),this.buttons.last().find(\".ui-icon\").removeClass(this.options.icons.down).addClass(e.down)),this._super(t,e),\"disabled\"===t&&(e?(this.element.prop(\"disabled\",!0),this.buttons.button(\"disable\")):(this.element.prop(\"disabled\",!1),this.buttons.button(\"enable\")))},_setOptions:e(function(t){this._super(t),this._value(this.element.val())}),_parse:function(t){return\"string\"==typeof t&&\"\"!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),\"\"===t||isNaN(t)?null:t},_format:function(t){return\"\"===t?\"\":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({\"aria-valuemin\":this.options.min,\"aria-valuemax\":this.options.max,\"aria-valuenow\":this._parse(this.element.val())})},_value:function(t,e){var i;\"\"!==t&&(i=this._parse(t),null!==i&&(e||(i=this._adjustValue(i)),t=this._format(i))),this.element.val(t),this._refresh()},_destroy:function(){this.element.removeClass(\"ui-spinner-input\").prop(\"disabled\",!1).removeAttr(\"autocomplete\").removeAttr(\"role\").removeAttr(\"aria-valuemin\").removeAttr(\"aria-valuemax\").removeAttr(\"aria-valuenow\"),this.uiSpinner.replaceWith(this.element)},stepUp:e(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:e(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:e(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:e(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?void e(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}})}(n)},{\"./button\":5,\"./core\":6,\"./widget\":16,jquery:17}],16:[function(t,e,i){var n=t(\"jquery\");!function(t,e){var i=0,n=Array.prototype.slice,r=t.cleanData;t.cleanData=function(e){for(var i,n=0;null!=(i=e[n]);n++)try{t(i).triggerHandler(\"remove\")}catch(o){}r(e)},t.widget=function(e,i,n){var r,o,s,a,l={},u=e.split(\".\")[0];e=e.split(\".\")[1],r=u+\"-\"+e,n||(n=i,i=t.Widget),t.expr[\":\"][r.toLowerCase()]=function(e){return!!t.data(e,r)},t[u]=t[u]||{},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:n.version,_proto:t.extend({},n),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(n,function(e,n){return t.isFunction(n)?void(l[e]=function(){var t=function(){return i.prototype[e].apply(this,arguments)},r=function(t){return i.prototype[e].apply(this,t)};return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=r,e=n.apply(this,arguments),this._super=i,this._superApply=o,e}}()):void(l[e]=n)}),s.prototype=t.widget.extend(a,{widgetEventPrefix:o?a.widgetEventPrefix||e:e},l,{constructor:s,namespace:u,widgetName:e,widgetFullName:r}),o?(t.each(o._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+\".\"+n.widgetName,s,i._proto)}),delete o._childConstructors):i._childConstructors.push(s),t.widget.bridge(e,s)},t.widget.extend=function(i){for(var r,o,s=n.call(arguments,1),a=0,l=s.length;l>a;a++)for(r in s[a])o=s[a][r],s[a].hasOwnProperty(r)&&o!==e&&(i[r]=t.isPlainObject(o)?t.isPlainObject(i[r])?t.widget.extend({},i[r],o):t.widget.extend({},o):o);return i},t.widget.bridge=function(i,r){var o=r.prototype.widgetFullName||i;t.fn[i]=function(s){var a=\"string\"==typeof s,l=n.call(arguments,1),u=this;return s=!a&&l.length?t.widget.extend.apply(null,[s].concat(l)):s,this.each(a?function(){var n,r=t.data(this,o);return r?t.isFunction(r[s])&&\"_\"!==s.charAt(0)?(n=r[s].apply(r,l),n!==r&&n!==e?(u=n&&n.jquery?u.pushStack(n.get()):n,!1):void 0):t.error(\"no such method '\"+s+\"' for \"+i+\" widget instance\"):t.error(\"cannot call methods on \"+i+\" prior to initialization; attempted to call method '\"+s+\"'\")}:function(){var e=t.data(this,o);e?e.option(s||{})._init():t.data(this,o,new r(s,this))}),u}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:\"widget\",widgetEventPrefix:\"\",defaultElement:\"<div>\",options:{disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=i++,this.eventNamespace=\".\"+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger(\"create\",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr(\"aria-disabled\").removeClass(this.widgetFullName+\"-disabled ui-state-disabled\"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass(\"ui-state-hover\"),this.focusable.removeClass(\"ui-state-focus\")},_destroy:t.noop,widget:function(){return this.element},option:function(i,n){var r,o,s,a=i;if(0===arguments.length)return t.widget.extend({},this.options);if(\"string\"==typeof i)if(a={},r=i.split(\".\"),i=r.shift(),r.length){for(o=a[i]=t.widget.extend({},this.options[i]),s=0;s<r.length-1;s++)o[r[s]]=o[r[s]]||{},o=o[r[s]];if(i=r.pop(),1===arguments.length)return o[i]===e?null:o[i];o[i]=n}else{if(1===arguments.length)return this.options[i]===e?null:this.options[i];a[i]=n}return this._setOptions(a),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 ui-state-disabled\",!!e).attr(\"aria-disabled\",e),this.hoverable.removeClass(\"ui-state-hover\"),this.focusable.removeClass(\"ui-state-focus\")),this},enable:function(){return this._setOption(\"disabled\",!1)},disable:function(){return this._setOption(\"disabled\",!0)},_on:function(e,i,n){var r,o=this;\"boolean\"!=typeof e&&(n=i,i=e,e=!1),n?(i=r=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,r=this.widget()),t.each(n,function(n,s){function a(){return e||o.options.disabled!==!0&&!t(this).hasClass(\"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=n.match(/^(\\w+)\\s*(.*)$/),u=l[1]+o.eventNamespace,c=l[2];c?r.delegate(c,u,a):i.bind(u,a)})},_off:function(t,e){e=(e||\"\").split(\" \").join(this.eventNamespace+\" \")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){function i(){return(\"string\"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass(\"ui-state-hover\")},mouseleave:function(e){t(e.currentTarget).removeClass(\"ui-state-hover\")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass(\"ui-state-focus\")},focusout:function(e){t(e.currentTarget).removeClass(\"ui-state-focus\")}})},_trigger:function(e,i,n){var r,o,s=this.options[e];if(n=n||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(r in o)r in i||(i[r]=o[r]);return this.element.trigger(i,n),!(t.isFunction(s)&&s.apply(this.element[0],[i].concat(n))===!1||i.isDefaultPrevented())}},t.each({show:\"fadeIn\",hide:\"fadeOut\"},function(e,i){t.Widget.prototype[\"_\"+e]=function(n,r,o){\"string\"==typeof r&&(r={effect:r});var s,a=r?r===!0||\"number\"==typeof r?i:r.effect||i:e;r=r||{},\"number\"==typeof r&&(r={duration:r}),s=!t.isEmptyObject(r),r.complete=o,r.delay&&n.delay(r.delay),s&&t.effects&&t.effects.effect[a]?n[e](r):a!==e&&n[a]?n[a](r.duration,r.easing,o):n.queue(function(i){t(this)[e](),o&&o.call(n[0]),i()})}})}(n)},{jquery:17}],17:[function(t,e,i){!function(t,i){\"object\"==typeof e&&\"object\"==typeof e.exports?e.exports=t.document?i(t,!0):function(t){if(!t.document)throw new Error(\"jQuery requires a window with a document\");return i(t)}:i(t)}(\"undefined\"!=typeof window?window:this,function(t,e){function i(t){var e=t.length,i=Q.type(t);return\"function\"===i||Q.isWindow(t)?!1:1===t.nodeType&&e?!0:\"array\"===i||0===e||\"number\"==typeof e&&e>0&&e-1 in t}function n(t,e,i){if(Q.isFunction(e))return Q.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return Q.grep(t,function(t){return t===e!==i});if(\"string\"==typeof e){if(at.test(e))return Q.filter(e,t,i);e=Q.filter(e,t)}return Q.grep(t,function(t){return U.call(e,t)>=0!==i})}function r(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function o(t){var e=ft[t]={};return Q.each(t.match(dt)||[],function(t,i){e[i]=!0}),e}function s(){J.removeEventListener(\"DOMContentLoaded\",s,!1),t.removeEventListener(\"load\",s,!1),Q.ready()}function a(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=Q.expando+a.uid++}function l(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n=\"data-\"+e.replace(bt,\"-$1\").toLowerCase(),i=t.getAttribute(n),\"string\"==typeof i){try{i=\"true\"===i?!0:\"false\"===i?!1:\"null\"===i?null:+i+\"\"===i?+i:yt.test(i)?Q.parseJSON(i):i}catch(r){}vt.set(t,e,i)}else i=void 0;return i}function u(){return!0}function c(){return!1}function h(){try{return J.activeElement}catch(t){}}function p(t,e){return Q.nodeName(t,\"table\")&&Q.nodeName(11!==e.nodeType?e:e.firstChild,\"tr\")?t.getElementsByTagName(\"tbody\")[0]||t.appendChild(t.ownerDocument.createElement(\"tbody\")):t}function d(t){return t.type=(null!==t.getAttribute(\"type\"))+\"/\"+t.type,t}function f(t){var e=Ot.exec(t.type);return e?t.type=e[1]:t.removeAttribute(\"type\"),t}function g(t,e){for(var i=0,n=t.length;n>i;i++)_t.set(t[i],\"globalEval\",!e||_t.get(e[i],\"globalEval\"))}function m(t,e){var i,n,r,o,s,a,l,u;if(1===e.nodeType){if(_t.hasData(t)&&(o=_t.access(t),s=_t.set(e,o),u=o.events)){delete s.handle,s.events={};for(r in u)for(i=0,n=u[r].length;n>i;i++)Q.event.add(e,r,u[r][i])}vt.hasData(t)&&(a=vt.access(t),l=Q.extend({},a),vt.set(e,l))}}function _(t,e){var i=t.getElementsByTagName?t.getElementsByTagName(e||\"*\"):t.querySelectorAll?t.querySelectorAll(e||\"*\"):[];return void 0===e||e&&Q.nodeName(t,e)?Q.merge([t],i):i}function v(t,e){var i=e.nodeName.toLowerCase();\"input\"===i&&Ct.test(t.type)?e.checked=t.checked:(\"input\"===i||\"textarea\"===i)&&(e.defaultValue=t.defaultValue)}function y(e,i){var n,r=Q(i.createElement(e)).appendTo(i.body),o=t.getDefaultComputedStyle&&(n=t.getDefaultComputedStyle(r[0]))?n.display:Q.css(r[0],\"display\");return r.detach(),o}function b(t){var e=J,i=Lt[t];return i||(i=y(t,e),\"none\"!==i&&i||(Ht=(Ht||Q(\"<iframe frameborder='0' width='0' height='0'/>\")).appendTo(e.documentElement),e=Ht[0].contentDocument,e.write(),e.close(),i=y(t,e),Ht.detach()),Lt[t]=i),i}function w(t,e,i){var n,r,o,s,a=t.style;return i=i||Yt(t),i&&(s=i.getPropertyValue(e)||i[e]),i&&(\"\"!==s||Q.contains(t.ownerDocument,t)||(s=Q.style(t,e)),Bt.test(s)&&Wt.test(e)&&(n=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=i.width,a.width=n,a.minWidth=r,a.maxWidth=o)),void 0!==s?s+\"\":s}function x(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function k(t,e){if(e in t)return e;for(var i=e[0].toUpperCase()+e.slice(1),n=e,r=Xt.length;r--;)if(e=Xt[r]+i,e in t)return e;return n}function C(t,e,i){var n=Vt.exec(e);return n?Math.max(0,n[1]-(i||0))+(n[2]||\"px\"):e}function M(t,e,i,n,r){for(var o=i===(n?\"border\":\"content\")?4:\"width\"===e?1:0,s=0;4>o;o+=2)\"margin\"===i&&(s+=Q.css(t,i+xt[o],!0,r)),n?(\"content\"===i&&(s-=Q.css(t,\"padding\"+xt[o],!0,r)),\"margin\"!==i&&(s-=Q.css(t,\"border\"+xt[o]+\"Width\",!0,r))):(s+=Q.css(t,\"padding\"+xt[o],!0,r),\"padding\"!==i&&(s+=Q.css(t,\"border\"+xt[o]+\"Width\",!0,r)));return s}function D(t,e,i){var n=!0,r=\"width\"===e?t.offsetWidth:t.offsetHeight,o=Yt(t),s=\"border-box\"===Q.css(t,\"boxSizing\",!1,o);if(0>=r||null==r){if(r=w(t,e,o),(0>r||null==r)&&(r=t.style[e]),Bt.test(r))return r;n=s&&(Z.boxSizingReliable()||r===t.style[e]),r=parseFloat(r)||0}return r+M(t,e,i||(s?\"border\":\"content\"),n,o)+\"px\"}function T(t,e){for(var i,n,r,o=[],s=0,a=t.length;a>s;s++)n=t[s],n.style&&(o[s]=_t.get(n,\"olddisplay\"),i=n.style.display,e?(o[s]||\"none\"!==i||(n.style.display=\"\"),\"\"===n.style.display&&kt(n)&&(o[s]=_t.access(n,\"olddisplay\",b(n.nodeName)))):(r=kt(n),\"none\"===i&&r||_t.set(n,\"olddisplay\",r?i:Q.css(n,\"display\"))));for(s=0;a>s;s++)n=t[s],n.style&&(e&&\"none\"!==n.style.display&&\"\"!==n.style.display||(n.style.display=e?o[s]||\"\":\"none\"));return t}function S(t,e,i,n,r){return new S.prototype.init(t,e,i,n,r)}function A(){return setTimeout(function(){Zt=void 0}),Zt=Q.now()}function P(t,e){var i,n=0,r={height:t};for(e=e?1:0;4>n;n+=2-e)i=xt[n],r[\"margin\"+i]=r[\"padding\"+i]=t;return e&&(r.opacity=r.width=t),r}function I(t,e,i){for(var n,r=(ie[e]||[]).concat(ie[\"*\"]),o=0,s=r.length;s>o;o++)if(n=r[o].call(i,e,t))return n}function E(t,e,i){var n,r,o,s,a,l,u,c,h=this,p={},d=t.style,f=t.nodeType&&kt(t),g=_t.get(t,\"fxshow\");i.queue||(a=Q._queueHooks(t,\"fx\"),null==a.unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,Q.queue(t,\"fx\").length||a.empty.fire()})})),1===t.nodeType&&(\"height\"in e||\"width\"in e)&&(i.overflow=[d.overflow,d.overflowX,d.overflowY],u=Q.css(t,\"display\"),c=\"none\"===u?_t.get(t,\"olddisplay\")||b(t.nodeName):u,\"inline\"===c&&\"none\"===Q.css(t,\"float\")&&(d.display=\"inline-block\")),i.overflow&&(d.overflow=\"hidden\",h.always(function(){d.overflow=i.overflow[0],d.overflowX=i.overflow[1],d.overflowY=i.overflow[2]}));for(n in e)if(r=e[n],Kt.exec(r)){if(delete e[n],o=o||\"toggle\"===r,r===(f?\"hide\":\"show\")){if(\"show\"!==r||!g||void 0===g[n])continue;f=!0}p[n]=g&&g[n]||Q.style(t,n)}else u=void 0;if(Q.isEmptyObject(p))\"inline\"===(\"none\"===u?b(t.nodeName):u)&&(d.display=u);else{g?\"hidden\"in g&&(f=g.hidden):g=_t.access(t,\"fxshow\",{}),o&&(g.hidden=!f),f?Q(t).show():h.done(function(){Q(t).hide()}),h.done(function(){var e;_t.remove(t,\"fxshow\");for(e in p)Q.style(t,e,p[e])});for(n in p)s=I(f?g[n]:0,n,h),n in g||(g[n]=s.start,f&&(s.end=s.start,s.start=\"width\"===n||\"height\"===n?1:0))}}function R(t,e){var i,n,r,o,s;for(i in t)if(n=Q.camelCase(i),r=e[n],o=t[i],Q.isArray(o)&&(r=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),s=Q.cssHooks[n],s&&\"expand\"in s){o=s.expand(o),delete t[n];for(i in o)i in t||(t[i]=o[i],e[i]=r)}else e[n]=r}function N(t,e,i){var n,r,o=0,s=ee.length,a=Q.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=Zt||A(),i=Math.max(0,u.startTime+u.duration-e),n=i/u.duration||0,o=1-n,s=0,l=u.tweens.length;l>s;s++)u.tweens[s].run(o);return a.notifyWith(t,[u,o,i]),1>o&&l?i:(a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:Q.extend({},e),opts:Q.extend(!0,{specialEasing:{}},i),originalProperties:e,originalOptions:i,startTime:Zt||A(),duration:i.duration,tweens:[],createTween:function(e,i){var n=Q.Tween(t,u.opts,e,i,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var i=0,n=e?u.tweens.length:0;if(r)return this;for(r=!0;n>i;i++)u.tweens[i].run(1);return e?a.resolveWith(t,[u,e]):a.rejectWith(t,[u,e]),this}}),c=u.props;for(R(c,u.opts.specialEasing);s>o;o++)if(n=ee[o].call(u,t,c,u.opts))return n;return Q.map(c,I,u),Q.isFunction(u.opts.start)&&u.opts.start.call(t,u),Q.fx.timer(Q.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 z(t){return function(e,i){\"string\"!=typeof e&&(i=e,e=\"*\");var n,r=0,o=e.toLowerCase().match(dt)||[];if(Q.isFunction(i))for(;n=o[r++];)\"+\"===n[0]?(n=n.slice(1)||\"*\",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function O(t,e,i,n){function r(a){var l;return o[a]=!0,Q.each(t[a]||[],function(t,a){var u=a(e,i,n);return\"string\"!=typeof u||s||o[u]?s?!(l=u):void 0:(e.dataTypes.unshift(u),r(u),!1)}),l}var o={},s=t===ye;return r(e.dataTypes[0])||!o[\"*\"]&&r(\"*\")}function j(t,e){var i,n,r=Q.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&Q.extend(!0,t,n),t}function F(t,e,i){for(var n,r,o,s,a=t.contents,l=t.dataTypes;\"*\"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader(\"Content-Type\"));if(n)for(r in a)if(a[r]&&a[r].test(n)){l.unshift(r);break}if(l[0]in i)o=l[0];else{for(r in i){if(!l[0]||t.converters[r+\" \"+l[0]]){o=r;break}s||(s=r)}o=o||s}return o?(o!==l[0]&&l.unshift(o),i[o]):void 0}function H(t,e,i,n){var r,o,s,a,l,u={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&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(r in u)if(a=r.split(\" \"),a[1]===o&&(s=u[l+\" \"+a[0]]||u[\"* \"+a[0]])){s===!0?s=u[r]:u[r]!==!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(h){return{state:\"parsererror\",error:s?h:\"No conversion from \"+l+\" to \"+o}}}return{state:\"success\",data:e}}function L(t,e,i,n){var r;if(Q.isArray(e))Q.each(e,function(e,r){i||Ce.test(t)?n(t,r):L(t+\"[\"+(\"object\"==typeof r?e:\"\")+\"]\",r,i,n)});else if(i||\"object\"!==Q.type(e))n(t,e);else for(r in e)L(t+\"[\"+r+\"]\",e[r],i,n)}function W(t){return Q.isWindow(t)?t:9===t.nodeType&&t.defaultView}var B=[],Y=B.slice,$=B.concat,V=B.push,U=B.indexOf,q={},G=q.toString,X=q.hasOwnProperty,Z={},J=t.document,K=\"2.1.3\",Q=function(t,e){return new Q.fn.init(t,e)},tt=/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,et=/^-ms-/,it=/-([\\da-z])/gi,nt=function(t,e){return e.toUpperCase()};Q.fn=Q.prototype={jquery:K,constructor:Q,selector:\"\",length:0,toArray:function(){return Y.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:Y.call(this)},pushStack:function(t){var e=Q.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return Q.each(this,t,e)},map:function(t){return this.pushStack(Q.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(Y.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(0>t?e:0);return this.pushStack(i>=0&&e>i?[this[i]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:V,sort:B.sort,splice:B.splice},Q.extend=Q.fn.extend=function(){var t,e,i,n,r,o,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for(\"boolean\"==typeof s&&(u=s,s=arguments[a]||{},a++),\"object\"==typeof s||Q.isFunction(s)||(s={}),a===l&&(s=this,a--);l>a;a++)if(null!=(t=arguments[a]))for(e in t)i=s[e],n=t[e],s!==n&&(u&&n&&(Q.isPlainObject(n)||(r=Q.isArray(n)))?(r?(r=!1,o=i&&Q.isArray(i)?i:[]):o=i&&Q.isPlainObject(i)?i:{},s[e]=Q.extend(u,o,n)):void 0!==n&&(s[e]=n));return s},Q.extend({expando:\"jQuery\"+(K+Math.random()).replace(/\\D/g,\"\"),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return\"function\"===Q.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!Q.isArray(t)&&t-parseFloat(t)+1>=0},isPlainObject:function(t){return\"object\"!==Q.type(t)||t.nodeType||Q.isWindow(t)?!1:t.constructor&&!X.call(t.constructor.prototype,\"isPrototypeOf\")?!1:!0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+\"\":\"object\"==typeof t||\"function\"==typeof t?q[G.call(t)]||\"object\":typeof t},globalEval:function(t){var e,i=eval;t=Q.trim(t),t&&(1===t.indexOf(\"use strict\")?(e=J.createElement(\"script\"),e.text=t,J.head.appendChild(e).parentNode.removeChild(e)):i(t))},camelCase:function(t){return t.replace(et,\"ms-\").replace(it,nt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var r,o=0,s=t.length,a=i(t);if(n){if(a)for(;s>o&&(r=e.apply(t[o],n),r!==!1);o++);else for(o in t)if(r=e.apply(t[o],n),r===!1)break}else if(a)for(;s>o&&(r=e.call(t[o],o,t[o]),r!==!1);o++);else for(o in t)if(r=e.call(t[o],o,t[o]),r===!1)break;return t},trim:function(t){return null==t?\"\":(t+\"\").replace(tt,\"\")},makeArray:function(t,e){var n=e||[];return null!=t&&(i(Object(t))?Q.merge(n,\"string\"==typeof t?[t]:t):V.call(n,t)),n},inArray:function(t,e,i){return null==e?-1:U.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,r=t.length;i>n;n++)t[r++]=e[n];return t.length=r,t},grep:function(t,e,i){for(var n,r=[],o=0,s=t.length,a=!i;s>o;o++)n=!e(t[o],o),n!==a&&r.push(t[o]);return r},map:function(t,e,n){var r,o=0,s=t.length,a=i(t),l=[];if(a)for(;s>o;o++)r=e(t[o],o,n),null!=r&&l.push(r);else for(o in t)r=e(t[o],o,n),null!=r&&l.push(r);return $.apply([],l)},guid:1,proxy:function(t,e){var i,n,r;return\"string\"==typeof e&&(i=t[e],e=t,t=i),Q.isFunction(t)?(n=Y.call(arguments,2),r=function(){return t.apply(e||this,n.concat(Y.call(arguments)))},r.guid=t.guid=t.guid||Q.guid++,r):void 0},now:Date.now,support:Z}),Q.each(\"Boolean Number String Function Array Date RegExp Object Error\".split(\" \"),function(t,e){q[\"[object \"+e+\"]\"]=e.toLowerCase()});var rt=function(t){function e(t,e,i,n){var r,o,s,a,l,u,h,d,f,g;if((e?e.ownerDocument||e:L)!==E&&I(e),e=e||E,i=i||[],a=e.nodeType,\"string\"!=typeof t||!t||1!==a&&9!==a&&11!==a)return i;if(!n&&N){if(11!==a&&(r=vt.exec(t)))if(s=r[1]){if(9===a){if(o=e.getElementById(s),!o||!o.parentNode)return i;if(o.id===s)return i.push(o),i}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(s))&&F(e,o)&&o.id===s)return i.push(o),i}else{if(r[2])return K.apply(i,e.getElementsByTagName(t)),i;if((s=r[3])&&w.getElementsByClassName)return K.apply(i,e.getElementsByClassName(s)),i}if(w.qsa&&(!z||!z.test(t))){if(d=h=H,f=e,g=1!==a&&t,1===a&&\"object\"!==e.nodeName.toLowerCase()){for(u=M(t),(h=e.getAttribute(\"id\"))?d=h.replace(bt,\"\\\\$&\"):e.setAttribute(\"id\",d),\n",
       "                d=\"[id='\"+d+\"'] \",l=u.length;l--;)u[l]=d+p(u[l]);f=yt.test(t)&&c(e.parentNode)||e,g=u.join(\",\")}if(g)try{return K.apply(i,f.querySelectorAll(g)),i}catch(m){}finally{h||e.removeAttribute(\"id\")}}}return T(t.replace(lt,\"$1\"),e,i,n)}function i(){function t(i,n){return e.push(i+\" \")>x.cacheLength&&delete t[e.shift()],t[i+\" \"]=n}var e=[];return t}function n(t){return t[H]=!0,t}function r(t){var e=E.createElement(\"div\");try{return!!t(e)}catch(i){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var i=t.split(\"|\"),n=t.length;n--;)x.attrHandle[i[n]]=e}function s(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||q)-(~t.sourceIndex||q);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function a(t){return function(e){var i=e.nodeName.toLowerCase();return\"input\"===i&&e.type===t}}function l(t){return function(e){var i=e.nodeName.toLowerCase();return(\"input\"===i||\"button\"===i)&&e.type===t}}function u(t){return n(function(e){return e=+e,n(function(i,n){for(var r,o=t([],i.length,e),s=o.length;s--;)i[r=o[s]]&&(i[r]=!(n[r]=i[r]))})})}function c(t){return t&&\"undefined\"!=typeof t.getElementsByTagName&&t}function h(){}function p(t){for(var e=0,i=t.length,n=\"\";i>e;e++)n+=t[e].value;return n}function d(t,e,i){var n=e.dir,r=i&&\"parentNode\"===n,o=B++;return e.first?function(e,i,o){for(;e=e[n];)if(1===e.nodeType||r)return t(e,i,o)}:function(e,i,s){var a,l,u=[W,o];if(s){for(;e=e[n];)if((1===e.nodeType||r)&&t(e,i,s))return!0}else for(;e=e[n];)if(1===e.nodeType||r){if(l=e[H]||(e[H]={}),(a=l[n])&&a[0]===W&&a[1]===o)return u[2]=a[2];if(l[n]=u,u[2]=t(e,i,s))return!0}}}function f(t){return t.length>1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function g(t,i,n){for(var r=0,o=i.length;o>r;r++)e(t,i[r],n);return n}function m(t,e,i,n,r){for(var o,s=[],a=0,l=t.length,u=null!=e;l>a;a++)(o=t[a])&&(!i||i(o,n,r))&&(s.push(o),u&&e.push(a));return s}function _(t,e,i,r,o,s){return r&&!r[H]&&(r=_(r)),o&&!o[H]&&(o=_(o,s)),n(function(n,s,a,l){var u,c,h,p=[],d=[],f=s.length,_=n||g(e||\"*\",a.nodeType?[a]:a,[]),v=!t||!n&&e?_:m(_,p,t,a,l),y=i?o||(n?t:f||r)?[]:s:v;if(i&&i(v,y,a,l),r)for(u=m(y,d),r(u,[],a,l),c=u.length;c--;)(h=u[c])&&(y[d[c]]=!(v[d[c]]=h));if(n){if(o||t){if(o){for(u=[],c=y.length;c--;)(h=y[c])&&u.push(v[c]=h);o(null,y=[],u,l)}for(c=y.length;c--;)(h=y[c])&&(u=o?tt(n,h):p[c])>-1&&(n[u]=!(s[u]=h))}}else y=m(y===s?y.splice(f,y.length):y),o?o(null,s,y,l):K.apply(s,y)})}function v(t){for(var e,i,n,r=t.length,o=x.relative[t[0].type],s=o||x.relative[\" \"],a=o?1:0,l=d(function(t){return t===e},s,!0),u=d(function(t){return tt(e,t)>-1},s,!0),c=[function(t,i,n){var r=!o&&(n||i!==S)||((e=i).nodeType?l(t,i,n):u(t,i,n));return e=null,r}];r>a;a++)if(i=x.relative[t[a].type])c=[d(f(c),i)];else{if(i=x.filter[t[a].type].apply(null,t[a].matches),i[H]){for(n=++a;r>n&&!x.relative[t[n].type];n++);return _(a>1&&f(c),a>1&&p(t.slice(0,a-1).concat({value:\" \"===t[a-2].type?\"*\":\"\"})).replace(lt,\"$1\"),i,n>a&&v(t.slice(a,n)),r>n&&v(t=t.slice(n)),r>n&&p(t))}c.push(i)}return f(c)}function y(t,i){var r=i.length>0,o=t.length>0,s=function(n,s,a,l,u){var c,h,p,d=0,f=\"0\",g=n&&[],_=[],v=S,y=n||o&&x.find.TAG(\"*\",u),b=W+=null==v?1:Math.random()||.1,w=y.length;for(u&&(S=s!==E&&s);f!==w&&null!=(c=y[f]);f++){if(o&&c){for(h=0;p=t[h++];)if(p(c,s,a)){l.push(c);break}u&&(W=b)}r&&((c=!p&&c)&&d--,n&&g.push(c))}if(d+=f,r&&f!==d){for(h=0;p=i[h++];)p(g,_,s,a);if(n){if(d>0)for(;f--;)g[f]||_[f]||(_[f]=Z.call(l));_=m(_)}K.apply(l,_),u&&!n&&_.length>0&&d+i.length>1&&e.uniqueSort(l)}return u&&(W=b,S=v),g};return r?n(s):s}var b,w,x,k,C,M,D,T,S,A,P,I,E,R,N,z,O,j,F,H=\"sizzle\"+1*new Date,L=t.document,W=0,B=0,Y=i(),$=i(),V=i(),U=function(t,e){return t===e&&(P=!0),0},q=1<<31,G={}.hasOwnProperty,X=[],Z=X.pop,J=X.push,K=X.push,Q=X.slice,tt=function(t,e){for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i;return-1},et=\"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\",it=\"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",nt=\"(?:\\\\\\\\.|[\\\\w-]|[^\\\\x00-\\\\xa0])+\",rt=nt.replace(\"w\",\"w#\"),ot=\"\\\\[\"+it+\"*(\"+nt+\")(?:\"+it+\"*([*^$|!~]?=)\"+it+\"*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\"+rt+\"))|)\"+it+\"*\\\\]\",st=\":(\"+nt+\")(?:\\\\((('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\"+ot+\")*)|.*)\\\\)|)\",at=new RegExp(it+\"+\",\"g\"),lt=new RegExp(\"^\"+it+\"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\"+it+\"+$\",\"g\"),ut=new RegExp(\"^\"+it+\"*,\"+it+\"*\"),ct=new RegExp(\"^\"+it+\"*([>+~]|\"+it+\")\"+it+\"*\"),ht=new RegExp(\"=\"+it+\"*([^\\\\]'\\\"]*?)\"+it+\"*\\\\]\",\"g\"),pt=new RegExp(st),dt=new RegExp(\"^\"+rt+\"$\"),ft={ID:new RegExp(\"^#(\"+nt+\")\"),CLASS:new RegExp(\"^\\\\.(\"+nt+\")\"),TAG:new RegExp(\"^(\"+nt.replace(\"w\",\"w*\")+\")\"),ATTR:new RegExp(\"^\"+ot),PSEUDO:new RegExp(\"^\"+st),CHILD:new RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+it+\"*(even|odd|(([+-]|)(\\\\d*)n|)\"+it+\"*(?:([+-]|)\"+it+\"*(\\\\d+)|))\"+it+\"*\\\\)|)\",\"i\"),bool:new RegExp(\"^(?:\"+et+\")$\",\"i\"),needsContext:new RegExp(\"^\"+it+\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\"+it+\"*((?:-\\\\d)?\\\\d*)\"+it+\"*\\\\)|)(?=[^-]|$)\",\"i\")},gt=/^(?:input|select|textarea|button)$/i,mt=/^h\\d$/i,_t=/^[^{]+\\{\\s*\\[native \\w/,vt=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,yt=/[+~]/,bt=/'|\\\\/g,wt=new RegExp(\"\\\\\\\\([\\\\da-f]{1,6}\"+it+\"?|(\"+it+\")|.)\",\"ig\"),xt=function(t,e,i){var n=\"0x\"+e-65536;return n!==n||i?e:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},kt=function(){I()};try{K.apply(X=Q.call(L.childNodes),L.childNodes),X[L.childNodes.length].nodeType}catch(Ct){K={apply:X.length?function(t,e){J.apply(t,Q.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}w=e.support={},C=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?\"HTML\"!==e.nodeName:!1},I=e.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:L;return n!==E&&9===n.nodeType&&n.documentElement?(E=n,R=n.documentElement,i=n.defaultView,i&&i!==i.top&&(i.addEventListener?i.addEventListener(\"unload\",kt,!1):i.attachEvent&&i.attachEvent(\"onunload\",kt)),N=!C(n),w.attributes=r(function(t){return t.className=\"i\",!t.getAttribute(\"className\")}),w.getElementsByTagName=r(function(t){return t.appendChild(n.createComment(\"\")),!t.getElementsByTagName(\"*\").length}),w.getElementsByClassName=_t.test(n.getElementsByClassName),w.getById=r(function(t){return R.appendChild(t).id=H,!n.getElementsByName||!n.getElementsByName(H).length}),w.getById?(x.find.ID=function(t,e){if(\"undefined\"!=typeof e.getElementById&&N){var i=e.getElementById(t);return i&&i.parentNode?[i]:[]}},x.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){return t.getAttribute(\"id\")===e}}):(delete x.find.ID,x.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){var i=\"undefined\"!=typeof t.getAttributeNode&&t.getAttributeNode(\"id\");return i&&i.value===e}}),x.find.TAG=w.getElementsByTagName?function(t,e){return\"undefined\"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):w.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],r=0,o=e.getElementsByTagName(t);if(\"*\"===t){for(;i=o[r++];)1===i.nodeType&&n.push(i);return n}return o},x.find.CLASS=w.getElementsByClassName&&function(t,e){return N?e.getElementsByClassName(t):void 0},O=[],z=[],(w.qsa=_t.test(n.querySelectorAll))&&(r(function(t){R.appendChild(t).innerHTML=\"<a id='\"+H+\"'></a><select id='\"+H+\"-\\f]' msallowcapture=''><option selected=''></option></select>\",t.querySelectorAll(\"[msallowcapture^='']\").length&&z.push(\"[*^$]=\"+it+\"*(?:''|\\\"\\\")\"),t.querySelectorAll(\"[selected]\").length||z.push(\"\\\\[\"+it+\"*(?:value|\"+et+\")\"),t.querySelectorAll(\"[id~=\"+H+\"-]\").length||z.push(\"~=\"),t.querySelectorAll(\":checked\").length||z.push(\":checked\"),t.querySelectorAll(\"a#\"+H+\"+*\").length||z.push(\".#.+[+~]\")}),r(function(t){var e=n.createElement(\"input\");e.setAttribute(\"type\",\"hidden\"),t.appendChild(e).setAttribute(\"name\",\"D\"),t.querySelectorAll(\"[name=d]\").length&&z.push(\"name\"+it+\"*[*^$|!~]?=\"),t.querySelectorAll(\":enabled\").length||z.push(\":enabled\",\":disabled\"),t.querySelectorAll(\"*,:x\"),z.push(\",.*:\")})),(w.matchesSelector=_t.test(j=R.matches||R.webkitMatchesSelector||R.mozMatchesSelector||R.oMatchesSelector||R.msMatchesSelector))&&r(function(t){w.disconnectedMatch=j.call(t,\"div\"),j.call(t,\"[s!='']:x\"),O.push(\"!=\",st)}),z=z.length&&new RegExp(z.join(\"|\")),O=O.length&&new RegExp(O.join(\"|\")),e=_t.test(R.compareDocumentPosition),F=e||_t.test(R.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},U=e?function(t,e){if(t===e)return P=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i?i:(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!w.sortDetached&&e.compareDocumentPosition(t)===i?t===n||t.ownerDocument===L&&F(L,t)?-1:e===n||e.ownerDocument===L&&F(L,e)?1:A?tt(A,t)-tt(A,e):0:4&i?-1:1)}:function(t,e){if(t===e)return P=!0,0;var i,r=0,o=t.parentNode,a=e.parentNode,l=[t],u=[e];if(!o||!a)return t===n?-1:e===n?1:o?-1:a?1:A?tt(A,t)-tt(A,e):0;if(o===a)return s(t,e);for(i=t;i=i.parentNode;)l.unshift(i);for(i=e;i=i.parentNode;)u.unshift(i);for(;l[r]===u[r];)r++;return r?s(l[r],u[r]):l[r]===L?-1:u[r]===L?1:0},n):E},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==E&&I(t),i=i.replace(ht,\"='$1']\"),!(!w.matchesSelector||!N||O&&O.test(i)||z&&z.test(i)))try{var n=j.call(t,i);if(n||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(r){}return e(i,E,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==E&&I(t),F(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==E&&I(t);var i=x.attrHandle[e.toLowerCase()],n=i&&G.call(x.attrHandle,e.toLowerCase())?i(t,e,!N):void 0;return void 0!==n?n:w.attributes||!N?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.error=function(t){throw new Error(\"Syntax error, unrecognized expression: \"+t)},e.uniqueSort=function(t){var e,i=[],n=0,r=0;if(P=!w.detectDuplicates,A=!w.sortStable&&t.slice(0),t.sort(U),P){for(;e=t[r++];)e===t[r]&&(n=i.push(r));for(;n--;)t.splice(i[n],1)}return A=null,t},k=e.getText=function(t){var e,i=\"\",n=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if(\"string\"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=k(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[n++];)i+=k(e);return i},x=e.selectors={cacheLength:50,createPseudo:n,match:ft,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(wt,xt),t[3]=(t[3]||t[4]||t[5]||\"\").replace(wt,xt),\"~=\"===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]||e.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]&&e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||\"\":i&&pt.test(i)&&(e=M(i,!0))&&(e=i.indexOf(\")\",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(wt,xt).toLowerCase();return\"*\"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=Y[t+\" \"];return e||(e=new RegExp(\"(^|\"+it+\")\"+t+\"(\"+it+\"|$)\"))&&Y(t,function(t){return e.test(\"string\"==typeof t.className&&t.className||\"undefined\"!=typeof t.getAttribute&&t.getAttribute(\"class\")||\"\")})},ATTR:function(t,i,n){return function(r){var o=e.attr(r,t);return null==o?\"!=\"===i:i?(o+=\"\",\"=\"===i?o===n:\"!=\"===i?o!==n:\"^=\"===i?n&&0===o.indexOf(n):\"*=\"===i?n&&o.indexOf(n)>-1:\"$=\"===i?n&&o.slice(-n.length)===n:\"~=\"===i?(\" \"+o.replace(at,\" \")+\" \").indexOf(n)>-1:\"|=\"===i?o===n||o.slice(0,n.length+1)===n+\"-\":!1):!0}},CHILD:function(t,e,i,n,r){var o=\"nth\"!==t.slice(0,3),s=\"last\"!==t.slice(-4),a=\"of-type\"===e;return 1===n&&0===r?function(t){return!!t.parentNode}:function(e,i,l){var u,c,h,p,d,f,g=o!==s?\"nextSibling\":\"previousSibling\",m=e.parentNode,_=a&&e.nodeName.toLowerCase(),v=!l&&!a;if(m){if(o){for(;g;){for(h=e;h=h[g];)if(a?h.nodeName.toLowerCase()===_:1===h.nodeType)return!1;f=g=\"only\"===t&&!f&&\"nextSibling\"}return!0}if(f=[s?m.firstChild:m.lastChild],s&&v){for(c=m[H]||(m[H]={}),u=c[t]||[],d=u[0]===W&&u[1],p=u[0]===W&&u[2],h=d&&m.childNodes[d];h=++d&&h&&h[g]||(p=d=0)||f.pop();)if(1===h.nodeType&&++p&&h===e){c[t]=[W,d,p];break}}else if(v&&(u=(e[H]||(e[H]={}))[t])&&u[0]===W)p=u[1];else for(;(h=++d&&h&&h[g]||(p=d=0)||f.pop())&&((a?h.nodeName.toLowerCase()!==_:1!==h.nodeType)||!++p||(v&&((h[H]||(h[H]={}))[t]=[W,p]),h!==e)););return p-=r,p===n||p%n===0&&p/n>=0}}},PSEUDO:function(t,i){var r,o=x.pseudos[t]||x.setFilters[t.toLowerCase()]||e.error(\"unsupported pseudo: \"+t);return o[H]?o(i):o.length>1?(r=[t,t,\"\",i],x.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,r=o(t,i),s=r.length;s--;)n=tt(t,r[s]),t[n]=!(e[n]=r[s])}):function(t){return o(t,0,r)}):o}},pseudos:{not:n(function(t){var e=[],i=[],r=D(t.replace(lt,\"$1\"));return r[H]?n(function(t,e,i,n){for(var o,s=r(t,null,n,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,n,o){return e[0]=t,r(e,null,o,i),e[0]=null,!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length>0}}),contains:n(function(t){return t=t.replace(wt,xt),function(e){return(e.textContent||e.innerText||k(e)).indexOf(t)>-1}}),lang:n(function(t){return dt.test(t||\"\")||e.error(\"unsupported lang: \"+t),t=t.replace(wt,xt).toLowerCase(),function(e){var i;do if(i=N?e.lang:e.getAttribute(\"xml:lang\")||e.getAttribute(\"lang\"))return i=i.toLowerCase(),i===t||0===i.indexOf(t+\"-\");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===R},focus:function(t){return t===E.activeElement&&(!E.hasFocus||E.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.nodeType<6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return gt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return\"input\"===e&&\"button\"===t.type||\"button\"===e},text:function(t){var e;return\"input\"===t.nodeName.toLowerCase()&&\"text\"===t.type&&(null==(e=t.getAttribute(\"type\"))||\"text\"===e.toLowerCase())},first:u(function(){return[0]}),last:u(function(t,e){return[e-1]}),eq:u(function(t,e,i){return[0>i?i+e:i]}),even:u(function(t,e){for(var i=0;e>i;i+=2)t.push(i);return t}),odd:u(function(t,e){for(var i=1;e>i;i+=2)t.push(i);return t}),lt:u(function(t,e,i){for(var n=0>i?i+e:i;--n>=0;)t.push(n);return t}),gt:u(function(t,e,i){for(var n=0>i?i+e:i;++n<e;)t.push(n);return t})}},x.pseudos.nth=x.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[b]=a(b);for(b in{submit:!0,reset:!0})x.pseudos[b]=l(b);return h.prototype=x.filters=x.pseudos,x.setFilters=new h,M=e.tokenize=function(t,i){var n,r,o,s,a,l,u,c=$[t+\" \"];if(c)return i?0:c.slice(0);for(a=t,l=[],u=x.preFilter;a;){(!n||(r=ut.exec(a)))&&(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),n=!1,(r=ct.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(lt,\" \")}),a=a.slice(n.length));for(s in x.filter)!(r=ft[s].exec(a))||u[s]&&!(r=u[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return i?a.length:a?e.error(t):$(t,l).slice(0)},D=e.compile=function(t,e){var i,n=[],r=[],o=V[t+\" \"];if(!o){for(e||(e=M(t)),i=e.length;i--;)o=v(e[i]),o[H]?n.push(o):r.push(o);o=V(t,y(r,n)),o.selector=t}return o},T=e.select=function(t,e,i,n){var r,o,s,a,l,u=\"function\"==typeof t&&t,h=!n&&M(t=u.selector||t);if(i=i||[],1===h.length){if(o=h[0]=h[0].slice(0),o.length>2&&\"ID\"===(s=o[0]).type&&w.getById&&9===e.nodeType&&N&&x.relative[o[1].type]){if(e=(x.find.ID(s.matches[0].replace(wt,xt),e)||[])[0],!e)return i;u&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=ft.needsContext.test(t)?0:o.length;r--&&(s=o[r],!x.relative[a=s.type]);)if((l=x.find[a])&&(n=l(s.matches[0].replace(wt,xt),yt.test(o[0].type)&&c(e.parentNode)||e))){if(o.splice(r,1),t=n.length&&p(o),!t)return K.apply(i,n),i;break}}return(u||D(t,h))(n,e,!N,i,yt.test(t)&&c(e.parentNode)||e),i},w.sortStable=H.split(\"\").sort(U).join(\"\")===H,w.detectDuplicates=!!P,I(),w.sortDetached=r(function(t){return 1&t.compareDocumentPosition(E.createElement(\"div\"))}),r(function(t){return t.innerHTML=\"<a href='#'></a>\",\"#\"===t.firstChild.getAttribute(\"href\")})||o(\"type|href|height|width\",function(t,e,i){return i?void 0:t.getAttribute(e,\"type\"===e.toLowerCase()?1:2)}),w.attributes&&r(function(t){return t.innerHTML=\"<input/>\",t.firstChild.setAttribute(\"value\",\"\"),\"\"===t.firstChild.getAttribute(\"value\")})||o(\"value\",function(t,e,i){return i||\"input\"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),r(function(t){return null==t.getAttribute(\"disabled\")})||o(et,function(t,e,i){var n;return i?void 0:t[e]===!0?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),e}(t);Q.find=rt,Q.expr=rt.selectors,Q.expr[\":\"]=Q.expr.pseudos,Q.unique=rt.uniqueSort,Q.text=rt.getText,Q.isXMLDoc=rt.isXML,Q.contains=rt.contains;var ot=Q.expr.match.needsContext,st=/^<(\\w+)\\s*\\/?>(?:<\\/\\1>|)$/,at=/^.[^:#\\[\\.,]*$/;Q.filter=function(t,e,i){var n=e[0];return i&&(t=\":not(\"+t+\")\"),1===e.length&&1===n.nodeType?Q.find.matchesSelector(n,t)?[n]:[]:Q.find.matches(t,Q.grep(e,function(t){return 1===t.nodeType}))},Q.fn.extend({find:function(t){var e,i=this.length,n=[],r=this;if(\"string\"!=typeof t)return this.pushStack(Q(t).filter(function(){for(e=0;i>e;e++)if(Q.contains(r[e],this))return!0}));for(e=0;i>e;e++)Q.find(t,r[e],n);return n=this.pushStack(i>1?Q.unique(n):n),n.selector=this.selector?this.selector+\" \"+t:t,n},filter:function(t){return this.pushStack(n(this,t||[],!1))},not:function(t){return this.pushStack(n(this,t||[],!0))},is:function(t){return!!n(this,\"string\"==typeof t&&ot.test(t)?Q(t):t||[],!1).length}});var lt,ut=/^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]*))$/,ct=Q.fn.init=function(t,e){var i,n;if(!t)return this;if(\"string\"==typeof t){if(i=\"<\"===t[0]&&\">\"===t[t.length-1]&&t.length>=3?[null,t,null]:ut.exec(t),!i||!i[1]&&e)return!e||e.jquery?(e||lt).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof Q?e[0]:e,Q.merge(this,Q.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:J,!0)),st.test(i[1])&&Q.isPlainObject(e))for(i in e)Q.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return n=J.getElementById(i[2]),n&&n.parentNode&&(this.length=1,this[0]=n),this.context=J,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):Q.isFunction(t)?\"undefined\"!=typeof lt.ready?lt.ready(t):t(Q):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),Q.makeArray(t,this))};ct.prototype=Q.fn,lt=Q(J);var ht=/^(?:parents|prev(?:Until|All))/,pt={children:!0,contents:!0,next:!0,prev:!0};Q.extend({dir:function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&Q(t).is(i))break;n.push(t)}return n},sibling:function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}}),Q.fn.extend({has:function(t){var e=Q(t,this),i=e.length;return this.filter(function(){for(var t=0;i>t;t++)if(Q.contains(this,e[t]))return!0})},closest:function(t,e){for(var i,n=0,r=this.length,o=[],s=ot.test(t)||\"string\"!=typeof t?Q(t,e||this.context):0;r>n;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(s?s.index(i)>-1:1===i.nodeType&&Q.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?Q.unique(o):o)},index:function(t){return t?\"string\"==typeof t?U.call(Q(t),this[0]):U.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(Q.unique(Q.merge(this.get(),Q(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),Q.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return Q.dir(t,\"parentNode\")},parentsUntil:function(t,e,i){return Q.dir(t,\"parentNode\",i)},next:function(t){return r(t,\"nextSibling\")},prev:function(t){return r(t,\"previousSibling\")},nextAll:function(t){return Q.dir(t,\"nextSibling\")},prevAll:function(t){return Q.dir(t,\"previousSibling\")},nextUntil:function(t,e,i){return Q.dir(t,\"nextSibling\",i)},prevUntil:function(t,e,i){return Q.dir(t,\"previousSibling\",i)},siblings:function(t){return Q.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return Q.sibling(t.firstChild)},contents:function(t){return t.contentDocument||Q.merge([],t.childNodes)}},function(t,e){Q.fn[t]=function(i,n){var r=Q.map(this,e,i);return\"Until\"!==t.slice(-5)&&(n=i),n&&\"string\"==typeof n&&(r=Q.filter(n,r)),this.length>1&&(pt[t]||Q.unique(r),ht.test(t)&&r.reverse()),this.pushStack(r)}});var dt=/\\S+/g,ft={};Q.Callbacks=function(t){t=\"string\"==typeof t?ft[t]||o(t):Q.extend({},t);var e,i,n,r,s,a,l=[],u=!t.once&&[],c=function(o){for(e=t.memory&&o,i=!0,a=r||0,r=0,s=l.length,n=!0;l&&s>a;a++)if(l[a].apply(o[0],o[1])===!1&&t.stopOnFalse){e=!1;break}n=!1,l&&(u?u.length&&c(u.shift()):e?l=[]:h.disable())},h={add:function(){if(l){var i=l.length;!function o(e){Q.each(e,function(e,i){var n=Q.type(i);\"function\"===n?t.unique&&h.has(i)||l.push(i):i&&i.length&&\"string\"!==n&&o(i)})}(arguments),n?s=l.length:e&&(r=i,c(e))}return this},remove:function(){return l&&Q.each(arguments,function(t,e){for(var i;(i=Q.inArray(e,l,i))>-1;)l.splice(i,1),n&&(s>=i&&s--,a>=i&&a--)}),this},has:function(t){return t?Q.inArray(t,l)>-1:!(!l||!l.length)},empty:function(){return l=[],s=0,this},disable:function(){return l=u=e=void 0,this},disabled:function(){return!l},lock:function(){return u=void 0,e||h.disable(),this},locked:function(){return!u},fireWith:function(t,e){return!l||i&&!u||(e=e||[],e=[t,e.slice?e.slice():e],n?u.push(e):c(e)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!i}};return h},Q.extend({Deferred:function(t){var e=[[\"resolve\",\"done\",Q.Callbacks(\"once memory\"),\"resolved\"],[\"reject\",\"fail\",Q.Callbacks(\"once memory\"),\"rejected\"],[\"notify\",\"progress\",Q.Callbacks(\"memory\")]],i=\"pending\",n={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return Q.Deferred(function(i){Q.each(e,function(e,o){var s=Q.isFunction(t[e])&&t[e];r[o[1]](function(){var t=s&&s.apply(this,arguments);t&&Q.isFunction(t.promise)?t.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[o[0]+\"With\"](this===n?i.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?Q.extend(t,n):n}},r={};return n.pipe=n.then,Q.each(e,function(t,o){var s=o[2],a=o[3];n[o[1]]=s.add,a&&s.add(function(){i=a},e[1^t][2].disable,e[2][2].lock),r[o[0]]=function(){return r[o[0]+\"With\"](this===r?n:this,arguments),this},r[o[0]+\"With\"]=s.fireWith}),n.promise(r),t&&t.call(r,r),r},when:function(t){var e,i,n,r=0,o=Y.call(arguments),s=o.length,a=1!==s||t&&Q.isFunction(t.promise)?s:0,l=1===a?t:Q.Deferred(),u=function(t,i,n){return function(r){i[t]=this,n[t]=arguments.length>1?Y.call(arguments):r,n===e?l.notifyWith(i,n):--a||l.resolveWith(i,n)}};if(s>1)for(e=new Array(s),i=new Array(s),n=new Array(s);s>r;r++)o[r]&&Q.isFunction(o[r].promise)?o[r].promise().done(u(r,n,o)).fail(l.reject).progress(u(r,i,e)):--a;return a||l.resolveWith(n,o),l.promise()}});var gt;Q.fn.ready=function(t){return Q.ready.promise().done(t),this},Q.extend({isReady:!1,readyWait:1,holdReady:function(t){t?Q.readyWait++:Q.ready(!0)},ready:function(t){(t===!0?--Q.readyWait:Q.isReady)||(Q.isReady=!0,t!==!0&&--Q.readyWait>0||(gt.resolveWith(J,[Q]),Q.fn.triggerHandler&&(Q(J).triggerHandler(\"ready\"),Q(J).off(\"ready\"))))}}),Q.ready.promise=function(e){return gt||(gt=Q.Deferred(),\"complete\"===J.readyState?setTimeout(Q.ready):(J.addEventListener(\"DOMContentLoaded\",s,!1),t.addEventListener(\"load\",s,!1))),gt.promise(e)},Q.ready.promise();var mt=Q.access=function(t,e,i,n,r,o,s){var a=0,l=t.length,u=null==i;if(\"object\"===Q.type(i)){r=!0;for(a in i)Q.access(t,e,a,i[a],!0,o,s)}else if(void 0!==n&&(r=!0,Q.isFunction(n)||(s=!0),u&&(s?(e.call(t,n),e=null):(u=e,e=function(t,e,i){return u.call(Q(t),i)})),e))for(;l>a;a++)e(t[a],i,s?n:n.call(t[a],a,e(t[a],i)));return r?t:u?e.call(t):l?e(t[0],i):o};Q.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},a.uid=1,a.accepts=Q.acceptData,a.prototype={key:function(t){if(!a.accepts(t))return 0;var e={},i=t[this.expando];if(!i){i=a.uid++;try{e[this.expando]={value:i},Object.defineProperties(t,e)}catch(n){e[this.expando]=i,Q.extend(t,e)}}return this.cache[i]||(this.cache[i]={}),i},set:function(t,e,i){var n,r=this.key(t),o=this.cache[r];if(\"string\"==typeof e)o[e]=i;else if(Q.isEmptyObject(o))Q.extend(this.cache[r],e);else for(n in e)o[n]=e[n];return o},get:function(t,e){var i=this.cache[this.key(t)];return void 0===e?i:i[e]},access:function(t,e,i){var n;return void 0===e||e&&\"string\"==typeof e&&void 0===i?(n=this.get(t,e),void 0!==n?n:this.get(t,Q.camelCase(e))):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n,r,o=this.key(t),s=this.cache[o];if(void 0===e)this.cache[o]={};else{Q.isArray(e)?n=e.concat(e.map(Q.camelCase)):(r=Q.camelCase(e),e in s?n=[e,r]:(n=r,n=n in s?[n]:n.match(dt)||[])),i=n.length;for(;i--;)delete s[n[i]]}},hasData:function(t){return!Q.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}};var _t=new a,vt=new a,yt=/^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,bt=/([A-Z])/g;Q.extend({hasData:function(t){return vt.hasData(t)||_t.hasData(t)},data:function(t,e,i){return vt.access(t,e,i)},removeData:function(t,e){vt.remove(t,e)},_data:function(t,e,i){return _t.access(t,e,i)},_removeData:function(t,e){_t.remove(t,e)}}),Q.fn.extend({data:function(t,e){var i,n,r,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(r=vt.get(o),1===o.nodeType&&!_t.get(o,\"hasDataAttrs\"))){for(i=s.length;i--;)s[i]&&(n=s[i].name,0===n.indexOf(\"data-\")&&(n=Q.camelCase(n.slice(5)),l(o,n,r[n])));_t.set(o,\"hasDataAttrs\",!0)}return r}return\"object\"==typeof t?this.each(function(){vt.set(this,t)}):mt(this,function(e){var i,n=Q.camelCase(t);if(o&&void 0===e){if(i=vt.get(o,t),void 0!==i)return i;if(i=vt.get(o,n),void 0!==i)return i;if(i=l(o,n,void 0),void 0!==i)return i}else this.each(function(){var i=vt.get(this,n);vt.set(this,n,e),-1!==t.indexOf(\"-\")&&void 0!==i&&vt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){vt.remove(this,t)})}}),Q.extend({queue:function(t,e,i){var n;return t?(e=(e||\"fx\")+\"queue\",n=_t.get(t,e),i&&(!n||Q.isArray(i)?n=_t.access(t,e,Q.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(t,e){e=e||\"fx\";var i=Q.queue(t,e),n=i.length,r=i.shift(),o=Q._queueHooks(t,e),s=function(){Q.dequeue(t,e)};\"inprogress\"===r&&(r=i.shift(),n--),r&&(\"fx\"===e&&i.unshift(\"inprogress\"),delete o.stop,r.call(t,s,o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+\"queueHooks\";return _t.get(t,i)||_t.access(t,i,{empty:Q.Callbacks(\"once memory\").add(function(){_t.remove(t,[e+\"queue\",i])})})}}),Q.fn.extend({queue:function(t,e){var i=2;return\"string\"!=typeof t&&(e=t,t=\"fx\",i--),arguments.length<i?Q.queue(this[0],t):void 0===e?this:this.each(function(){var i=Q.queue(this,t,e);Q._queueHooks(this,t),\"fx\"===t&&\"inprogress\"!==i[0]&&Q.dequeue(this,t)})},dequeue:function(t){return this.each(function(){Q.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||\"fx\",[])},promise:function(t,e){var i,n=1,r=Q.Deferred(),o=this,s=this.length,a=function(){--n||r.resolveWith(o,[o])};for(\"string\"!=typeof t&&(e=t,t=void 0),t=t||\"fx\";s--;)i=_t.get(o[s],t+\"queueHooks\"),i&&i.empty&&(n++,i.empty.add(a));return a(),r.promise(e)}});var wt=/[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/.source,xt=[\"Top\",\"Right\",\"Bottom\",\"Left\"],kt=function(t,e){return t=e||t,\"none\"===Q.css(t,\"display\")||!Q.contains(t.ownerDocument,t)},Ct=/^(?:checkbox|radio)$/i;!function(){var t=J.createDocumentFragment(),e=t.appendChild(J.createElement(\"div\")),i=J.createElement(\"input\");i.setAttribute(\"type\",\"radio\"),i.setAttribute(\"checked\",\"checked\"),i.setAttribute(\"name\",\"t\"),e.appendChild(i),Z.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML=\"<textarea>x</textarea>\",Z.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Mt=\"undefined\";Z.focusinBubbles=\"onfocusin\"in t;var Dt=/^key/,Tt=/^(?:mouse|pointer|contextmenu)|click/,St=/^(?:focusinfocus|focusoutblur)$/,At=/^([^.]*)(?:\\.(.+)|)$/;Q.event={global:{},add:function(t,e,i,n,r){var o,s,a,l,u,c,h,p,d,f,g,m=_t.get(t);if(m)for(i.handler&&(o=i,i=o.handler,r=o.selector),i.guid||(i.guid=Q.guid++),(l=m.events)||(l=m.events={}),(s=m.handle)||(s=m.handle=function(e){return typeof Q!==Mt&&Q.event.triggered!==e.type?Q.event.dispatch.apply(t,arguments):void 0}),e=(e||\"\").match(dt)||[\"\"],u=e.length;u--;)a=At.exec(e[u])||[],d=g=a[1],f=(a[2]||\"\").split(\".\").sort(),d&&(h=Q.event.special[d]||{},d=(r?h.delegateType:h.bindType)||d,h=Q.event.special[d]||{},c=Q.extend({type:d,origType:g,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&Q.expr.match.needsContext.test(r),namespace:f.join(\".\")},o),(p=l[d])||(p=l[d]=[],p.delegateCount=0,h.setup&&h.setup.call(t,n,f,s)!==!1||t.addEventListener&&t.addEventListener(d,s,!1)),h.add&&(h.add.call(t,c),c.handler.guid||(c.handler.guid=i.guid)),r?p.splice(p.delegateCount++,0,c):p.push(c),Q.event.global[d]=!0)},remove:function(t,e,i,n,r){var o,s,a,l,u,c,h,p,d,f,g,m=_t.hasData(t)&&_t.get(t);if(m&&(l=m.events)){for(e=(e||\"\").match(dt)||[\"\"],u=e.length;u--;)if(a=At.exec(e[u])||[],d=g=a[1],f=(a[2]||\"\").split(\".\").sort(),d){for(h=Q.event.special[d]||{},d=(n?h.delegateType:h.bindType)||d,p=l[d]||[],a=a[2]&&new RegExp(\"(^|\\\\.)\"+f.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"),s=o=p.length;o--;)c=p[o],!r&&g!==c.origType||i&&i.guid!==c.guid||a&&!a.test(c.namespace)||n&&n!==c.selector&&(\"**\"!==n||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,h.remove&&h.remove.call(t,c));s&&!p.length&&(h.teardown&&h.teardown.call(t,f,m.handle)!==!1||Q.removeEvent(t,d,m.handle),delete l[d])}else for(d in l)Q.event.remove(t,d+e[u],i,n,!0);Q.isEmptyObject(l)&&(delete m.handle,_t.remove(t,\"events\"))}},trigger:function(e,i,n,r){var o,s,a,l,u,c,h,p=[n||J],d=X.call(e,\"type\")?e.type:e,f=X.call(e,\"namespace\")?e.namespace.split(\".\"):[];if(s=a=n=n||J,3!==n.nodeType&&8!==n.nodeType&&!St.test(d+Q.event.triggered)&&(d.indexOf(\".\")>=0&&(f=d.split(\".\"),d=f.shift(),f.sort()),u=d.indexOf(\":\")<0&&\"on\"+d,e=e[Q.expando]?e:new Q.Event(d,\"object\"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=f.join(\".\"),e.namespace_re=e.namespace?new RegExp(\"(^|\\\\.)\"+f.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:Q.makeArray(i,[e]),h=Q.event.special[d]||{},r||!h.trigger||h.trigger.apply(n,i)!==!1)){if(!r&&!h.noBubble&&!Q.isWindow(n)){for(l=h.delegateType||d,St.test(l+d)||(s=s.parentNode);s;s=s.parentNode)p.push(s),a=s;a===(n.ownerDocument||J)&&p.push(a.defaultView||a.parentWindow||t)}for(o=0;(s=p[o++])&&!e.isPropagationStopped();)e.type=o>1?l:h.bindType||d,c=(_t.get(s,\"events\")||{})[e.type]&&_t.get(s,\"handle\"),c&&c.apply(s,i),c=u&&s[u],c&&c.apply&&Q.acceptData(s)&&(e.result=c.apply(s,i),e.result===!1&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||h._default&&h._default.apply(p.pop(),i)!==!1||!Q.acceptData(n)||u&&Q.isFunction(n[d])&&!Q.isWindow(n)&&(a=n[u],a&&(n[u]=null),Q.event.triggered=d,n[d](),\n",
       "                Q.event.triggered=void 0,a&&(n[u]=a)),e.result}},dispatch:function(t){t=Q.event.fix(t);var e,i,n,r,o,s=[],a=Y.call(arguments),l=(_t.get(this,\"events\")||{})[t.type]||[],u=Q.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,t)!==!1){for(s=Q.event.handlers.call(this,t,l),e=0;(r=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,i=0;(o=r.handlers[i++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(o.namespace))&&(t.handleObj=o,t.data=o.data,n=((Q.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a),void 0!==n&&(t.result=n)===!1&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,r,o,s=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&(!t.button||\"click\"!==t.type))for(;l!==this;l=l.parentNode||this)if(l.disabled!==!0||\"click\"!==t.type){for(n=[],i=0;a>i;i++)o=e[i],r=o.selector+\" \",void 0===n[r]&&(n[r]=o.needsContext?Q(r,this).index(l)>=0:Q.find(r,this,null,[l]).length),n[r]&&n.push(o);n.length&&s.push({elem:l,handlers:n})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},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,e){var i,n,r,o=e.button;return null==t.pageX&&null!=e.clientX&&(i=t.target.ownerDocument||J,n=i.documentElement,r=i.body,t.pageX=e.clientX+(n&&n.scrollLeft||r&&r.scrollLeft||0)-(n&&n.clientLeft||r&&r.clientLeft||0),t.pageY=e.clientY+(n&&n.scrollTop||r&&r.scrollTop||0)-(n&&n.clientTop||r&&r.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[Q.expando])return t;var e,i,n,r=t.type,o=t,s=this.fixHooks[r];for(s||(this.fixHooks[r]=s=Tt.test(r)?this.mouseHooks:Dt.test(r)?this.keyHooks:{}),n=s.props?this.props.concat(s.props):this.props,t=new Q.Event(o),e=n.length;e--;)i=n[e],t[i]=o[i];return t.target||(t.target=J),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!==h()&&this.focus?(this.focus(),!1):void 0},delegateType:\"focusin\"},blur:{trigger:function(){return this===h()&&this.blur?(this.blur(),!1):void 0},delegateType:\"focusout\"},click:{trigger:function(){return\"checkbox\"===this.type&&this.click&&Q.nodeName(this,\"input\")?(this.click(),!1):void 0},_default:function(t){return Q.nodeName(t.target,\"a\")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,i,n){var r=Q.extend(new Q.Event,i,{type:t,isSimulated:!0,originalEvent:{}});n?Q.event.trigger(r,null,e):Q.event.dispatch.call(e,r),r.isDefaultPrevented()&&i.preventDefault()}},Q.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i,!1)},Q.Event=function(t,e){return this instanceof Q.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?u:c):this.type=t,e&&Q.extend(this,e),this.timeStamp=t&&t.timeStamp||Q.now(),void(this[Q.expando]=!0)):new Q.Event(t,e)},Q.Event.prototype={isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=u,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=u,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=u,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},Q.each({mouseenter:\"mouseover\",mouseleave:\"mouseout\",pointerenter:\"pointerover\",pointerleave:\"pointerout\"},function(t,e){Q.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,r=t.relatedTarget,o=t.handleObj;return(!r||r!==n&&!Q.contains(n,r))&&(t.type=o.origType,i=o.handler.apply(this,arguments),t.type=e),i}}}),Z.focusinBubbles||Q.each({focus:\"focusin\",blur:\"focusout\"},function(t,e){var i=function(t){Q.event.simulate(e,t.target,Q.event.fix(t),!0)};Q.event.special[e]={setup:function(){var n=this.ownerDocument||this,r=_t.access(n,e);r||n.addEventListener(t,i,!0),_t.access(n,e,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this,r=_t.access(n,e)-1;r?_t.access(n,e,r):(n.removeEventListener(t,i,!0),_t.remove(n,e))}}}),Q.fn.extend({on:function(t,e,i,n,r){var o,s;if(\"object\"==typeof t){\"string\"!=typeof e&&(i=i||e,e=void 0);for(s in t)this.on(s,e,i,t[s],r);return this}if(null==i&&null==n?(n=e,i=e=void 0):null==n&&(\"string\"==typeof e?(n=i,i=void 0):(n=i,i=e,e=void 0)),n===!1)n=c;else if(!n)return this;return 1===r&&(o=n,n=function(t){return Q().off(t),o.apply(this,arguments)},n.guid=o.guid||(o.guid=Q.guid++)),this.each(function(){Q.event.add(this,t,n,i,e)})},one:function(t,e,i,n){return this.on(t,e,i,n,1)},off:function(t,e,i){var n,r;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,Q(t.delegateTarget).off(n.namespace?n.origType+\".\"+n.namespace:n.origType,n.selector,n.handler),this;if(\"object\"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return(e===!1||\"function\"==typeof e)&&(i=e,e=void 0),i===!1&&(i=c),this.each(function(){Q.event.remove(this,t,i,e)})},trigger:function(t,e){return this.each(function(){Q.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];return i?Q.event.trigger(t,e,i,!0):void 0}});var Pt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:]+)[^>]*)\\/>/gi,It=/<([\\w:]+)/,Et=/<|&#?\\w+;/,Rt=/<(?:script|style|link)/i,Nt=/checked\\s*(?:[^=]|=\\s*.checked.)/i,zt=/^$|\\/(?:java|ecma)script/i,Ot=/^true\\/(.*)/,jt=/^\\s*<!(?:\\[CDATA\\[|--)|(?:\\]\\]|--)>\\s*$/g,Ft={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,\"\",\"\"]};Ft.optgroup=Ft.option,Ft.tbody=Ft.tfoot=Ft.colgroup=Ft.caption=Ft.thead,Ft.th=Ft.td,Q.extend({clone:function(t,e,i){var n,r,o,s,a=t.cloneNode(!0),l=Q.contains(t.ownerDocument,t);if(!(Z.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||Q.isXMLDoc(t)))for(s=_(a),o=_(t),n=0,r=o.length;r>n;n++)v(o[n],s[n]);if(e)if(i)for(o=o||_(t),s=s||_(a),n=0,r=o.length;r>n;n++)m(o[n],s[n]);else m(t,a);return s=_(a,\"script\"),s.length>0&&g(s,!l&&_(t,\"script\")),a},buildFragment:function(t,e,i,n){for(var r,o,s,a,l,u,c=e.createDocumentFragment(),h=[],p=0,d=t.length;d>p;p++)if(r=t[p],r||0===r)if(\"object\"===Q.type(r))Q.merge(h,r.nodeType?[r]:r);else if(Et.test(r)){for(o=o||c.appendChild(e.createElement(\"div\")),s=(It.exec(r)||[\"\",\"\"])[1].toLowerCase(),a=Ft[s]||Ft._default,o.innerHTML=a[1]+r.replace(Pt,\"<$1></$2>\")+a[2],u=a[0];u--;)o=o.lastChild;Q.merge(h,o.childNodes),o=c.firstChild,o.textContent=\"\"}else h.push(e.createTextNode(r));for(c.textContent=\"\",p=0;r=h[p++];)if((!n||-1===Q.inArray(r,n))&&(l=Q.contains(r.ownerDocument,r),o=_(c.appendChild(r),\"script\"),l&&g(o),i))for(u=0;r=o[u++];)zt.test(r.type||\"\")&&i.push(r);return c},cleanData:function(t){for(var e,i,n,r,o=Q.event.special,s=0;void 0!==(i=t[s]);s++){if(Q.acceptData(i)&&(r=i[_t.expando],r&&(e=_t.cache[r]))){if(e.events)for(n in e.events)o[n]?Q.event.remove(i,n):Q.removeEvent(i,n,e.handle);_t.cache[r]&&delete _t.cache[r]}delete vt.cache[i[vt.expando]]}}}),Q.fn.extend({text:function(t){return mt(this,function(t){return void 0===t?Q.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=t)})},null,t,arguments.length)},append:function(){return 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 i,n=t?Q.filter(t,this):this,r=0;null!=(i=n[r]);r++)e||1!==i.nodeType||Q.cleanData(_(i)),i.parentNode&&(e&&Q.contains(i.ownerDocument,i)&&g(_(i,\"script\")),i.parentNode.removeChild(i));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(Q.cleanData(_(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 Q.clone(this,t,e)})},html:function(t){return mt(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if(\"string\"==typeof t&&!Rt.test(t)&&!Ft[(It.exec(t)||[\"\",\"\"])[1].toLowerCase()]){t=t.replace(Pt,\"<$1></$2>\");try{for(;n>i;i++)e=this[i]||{},1===e.nodeType&&(Q.cleanData(_(e,!1)),e.innerHTML=t);e=0}catch(r){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,Q.cleanData(_(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=$.apply([],t);var i,n,r,o,s,a,l=0,u=this.length,c=this,h=u-1,p=t[0],g=Q.isFunction(p);if(g||u>1&&\"string\"==typeof p&&!Z.checkClone&&Nt.test(p))return this.each(function(i){var n=c.eq(i);g&&(t[0]=p.call(this,i,n.html())),n.domManip(t,e)});if(u&&(i=Q.buildFragment(t,this[0].ownerDocument,!1,this),n=i.firstChild,1===i.childNodes.length&&(i=n),n)){for(r=Q.map(_(i,\"script\"),d),o=r.length;u>l;l++)s=i,l!==h&&(s=Q.clone(s,!0,!0),o&&Q.merge(r,_(s,\"script\"))),e.call(this[l],s,l);if(o)for(a=r[r.length-1].ownerDocument,Q.map(r,f),l=0;o>l;l++)s=r[l],zt.test(s.type||\"\")&&!_t.access(s,\"globalEval\")&&Q.contains(a,s)&&(s.src?Q._evalUrl&&Q._evalUrl(s.src):Q.globalEval(s.textContent.replace(jt,\"\")))}return this}}),Q.each({appendTo:\"append\",prependTo:\"prepend\",insertBefore:\"before\",insertAfter:\"after\",replaceAll:\"replaceWith\"},function(t,e){Q.fn[t]=function(t){for(var i,n=[],r=Q(t),o=r.length-1,s=0;o>=s;s++)i=s===o?this:this.clone(!0),Q(r[s])[e](i),V.apply(n,i.get());return this.pushStack(n)}});var Ht,Lt={},Wt=/^margin/,Bt=new RegExp(\"^(\"+wt+\")(?!px)[a-z%]+$\",\"i\"),Yt=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):t.getComputedStyle(e,null)};!function(){function e(){s.style.cssText=\"-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute\",s.innerHTML=\"\",r.appendChild(o);var e=t.getComputedStyle(s,null);i=\"1%\"!==e.top,n=\"4px\"===e.width,r.removeChild(o)}var i,n,r=J.documentElement,o=J.createElement(\"div\"),s=J.createElement(\"div\");s.style&&(s.style.backgroundClip=\"content-box\",s.cloneNode(!0).style.backgroundClip=\"\",Z.clearCloneStyle=\"content-box\"===s.style.backgroundClip,o.style.cssText=\"border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute\",o.appendChild(s),t.getComputedStyle&&Q.extend(Z,{pixelPosition:function(){return e(),i},boxSizingReliable:function(){return null==n&&e(),n},reliableMarginRight:function(){var e,i=s.appendChild(J.createElement(\"div\"));return i.style.cssText=s.style.cssText=\"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0\",i.style.marginRight=i.style.width=\"0\",s.style.width=\"1px\",r.appendChild(o),e=!parseFloat(t.getComputedStyle(i,null).marginRight),r.removeChild(o),s.removeChild(i),e}}))}(),Q.swap=function(t,e,i,n){var r,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];r=i.apply(t,n||[]);for(o in e)t.style[o]=s[o];return r};var $t=/^(none|table(?!-c[ea]).+)/,Vt=new RegExp(\"^(\"+wt+\")(.*)$\",\"i\"),Ut=new RegExp(\"^([+-])=(\"+wt+\")\",\"i\"),qt={position:\"absolute\",visibility:\"hidden\",display:\"block\"},Gt={letterSpacing:\"0\",fontWeight:\"400\"},Xt=[\"Webkit\",\"O\",\"Moz\",\"ms\"];Q.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=w(t,\"opacity\");return\"\"===i?\"1\":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{\"float\":\"cssFloat\"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=Q.camelCase(e),l=t.style;return e=Q.cssProps[a]||(Q.cssProps[a]=k(l,a)),s=Q.cssHooks[e]||Q.cssHooks[a],void 0===i?s&&\"get\"in s&&void 0!==(r=s.get(t,!1,n))?r:l[e]:(o=typeof i,\"string\"===o&&(r=Ut.exec(i))&&(i=(r[1]+1)*r[2]+parseFloat(Q.css(t,e)),o=\"number\"),null!=i&&i===i&&(\"number\"!==o||Q.cssNumber[a]||(i+=\"px\"),Z.clearCloneStyle||\"\"!==i||0!==e.indexOf(\"background\")||(l[e]=\"inherit\"),s&&\"set\"in s&&void 0===(i=s.set(t,i,n))||(l[e]=i)),void 0)}},css:function(t,e,i,n){var r,o,s,a=Q.camelCase(e);return e=Q.cssProps[a]||(Q.cssProps[a]=k(t.style,a)),s=Q.cssHooks[e]||Q.cssHooks[a],s&&\"get\"in s&&(r=s.get(t,!0,i)),void 0===r&&(r=w(t,e,n)),\"normal\"===r&&e in Gt&&(r=Gt[e]),\"\"===i||i?(o=parseFloat(r),i===!0||Q.isNumeric(o)?o||0:r):r}}),Q.each([\"height\",\"width\"],function(t,e){Q.cssHooks[e]={get:function(t,i,n){return i?$t.test(Q.css(t,\"display\"))&&0===t.offsetWidth?Q.swap(t,qt,function(){return D(t,e,n)}):D(t,e,n):void 0},set:function(t,i,n){var r=n&&Yt(t);return C(t,i,n?M(t,e,n,\"border-box\"===Q.css(t,\"boxSizing\",!1,r),r):0)}}}),Q.cssHooks.marginRight=x(Z.reliableMarginRight,function(t,e){return e?Q.swap(t,{display:\"inline-block\"},w,[t,\"marginRight\"]):void 0}),Q.each({margin:\"\",padding:\"\",border:\"Width\"},function(t,e){Q.cssHooks[t+e]={expand:function(i){for(var n=0,r={},o=\"string\"==typeof i?i.split(\" \"):[i];4>n;n++)r[t+xt[n]+e]=o[n]||o[n-2]||o[0];return r}},Wt.test(t)||(Q.cssHooks[t+e].set=C)}),Q.fn.extend({css:function(t,e){return mt(this,function(t,e,i){var n,r,o={},s=0;if(Q.isArray(e)){for(n=Yt(t),r=e.length;r>s;s++)o[e[s]]=Q.css(t,e[s],!1,n);return o}return void 0!==i?Q.style(t,e,i):Q.css(t,e)},t,e,arguments.length>1)},show:function(){return T(this,!0)},hide:function(){return T(this)},toggle:function(t){return\"boolean\"==typeof t?t?this.show():this.hide():this.each(function(){kt(this)?Q(this).show():Q(this).hide()})}}),Q.Tween=S,S.prototype={constructor:S,init:function(t,e,i,n,r,o){this.elem=t,this.prop=i,this.easing=r||\"swing\",this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(Q.cssNumber[i]?\"\":\"px\")},cur:function(){var t=S.propHooks[this.prop];return t&&t.get?t.get(this):S.propHooks._default.get(this)},run:function(t){var e,i=S.propHooks[this.prop];return this.pos=e=this.options.duration?Q.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),i&&i.set?i.set(this):S.propHooks._default.set(this),this}},S.prototype.init.prototype=S.prototype,S.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=Q.css(t.elem,t.prop,\"\"),e&&\"auto\"!==e?e:0):t.elem[t.prop]},set:function(t){Q.fx.step[t.prop]?Q.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[Q.cssProps[t.prop]]||Q.cssHooks[t.prop])?Q.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},S.propHooks.scrollTop=S.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},Q.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},Q.fx=S.prototype.init,Q.fx.step={};var Zt,Jt,Kt=/^(?:toggle|show|hide)$/,Qt=new RegExp(\"^(?:([+-])=|)(\"+wt+\")([a-z%]*)$\",\"i\"),te=/queueHooks$/,ee=[E],ie={\"*\":[function(t,e){var i=this.createTween(t,e),n=i.cur(),r=Qt.exec(e),o=r&&r[3]||(Q.cssNumber[t]?\"\":\"px\"),s=(Q.cssNumber[t]||\"px\"!==o&&+n)&&Qt.exec(Q.css(i.elem,t)),a=1,l=20;if(s&&s[3]!==o){o=o||s[3],r=r||[],s=+n||1;do a=a||\".5\",s/=a,Q.style(i.elem,t,s+o);while(a!==(a=i.cur()/n)&&1!==a&&--l)}return r&&(s=i.start=+s||+n||0,i.unit=o,i.end=r[1]?s+(r[1]+1)*r[2]:+r[2]),i}]};Q.Animation=Q.extend(N,{tweener:function(t,e){Q.isFunction(t)?(e=t,t=[\"*\"]):t=t.split(\" \");for(var i,n=0,r=t.length;r>n;n++)i=t[n],ie[i]=ie[i]||[],ie[i].unshift(e)},prefilter:function(t,e){e?ee.unshift(t):ee.push(t)}}),Q.speed=function(t,e,i){var n=t&&\"object\"==typeof t?Q.extend({},t):{complete:i||!i&&e||Q.isFunction(t)&&t,duration:t,easing:i&&e||e&&!Q.isFunction(e)&&e};return n.duration=Q.fx.off?0:\"number\"==typeof n.duration?n.duration:n.duration in Q.fx.speeds?Q.fx.speeds[n.duration]:Q.fx.speeds._default,(null==n.queue||n.queue===!0)&&(n.queue=\"fx\"),n.old=n.complete,n.complete=function(){Q.isFunction(n.old)&&n.old.call(this),n.queue&&Q.dequeue(this,n.queue)},n},Q.fn.extend({fadeTo:function(t,e,i,n){return this.filter(kt).css(\"opacity\",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var r=Q.isEmptyObject(t),o=Q.speed(e,i,n),s=function(){var e=N(this,Q.extend({},t),o);(r||_t.get(this,\"finish\"))&&e.stop(!0)};return s.finish=s,r||o.queue===!1?this.each(s):this.queue(o.queue,s)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return\"string\"!=typeof t&&(i=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||\"fx\",[]),this.each(function(){var e=!0,r=null!=t&&t+\"queueHooks\",o=Q.timers,s=_t.get(this);if(r)s[r]&&s[r].stop&&n(s[r]);else for(r in s)s[r]&&s[r].stop&&te.test(r)&&n(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(i),e=!1,o.splice(r,1));(e||!i)&&Q.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||\"fx\"),this.each(function(){var e,i=_t.get(this),n=i[t+\"queue\"],r=i[t+\"queueHooks\"],o=Q.timers,s=n?n.length:0;for(i.finish=!0,Q.queue(this,t,[]),r&&r.stop&&r.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++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),Q.each([\"toggle\",\"show\",\"hide\"],function(t,e){var i=Q.fn[e];Q.fn[e]=function(t,n,r){return null==t||\"boolean\"==typeof t?i.apply(this,arguments):this.animate(P(e,!0),t,n,r)}}),Q.each({slideDown:P(\"show\"),slideUp:P(\"hide\"),slideToggle:P(\"toggle\"),fadeIn:{opacity:\"show\"},fadeOut:{opacity:\"hide\"},fadeToggle:{opacity:\"toggle\"}},function(t,e){Q.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),Q.timers=[],Q.fx.tick=function(){var t,e=0,i=Q.timers;for(Zt=Q.now();e<i.length;e++)t=i[e],t()||i[e]!==t||i.splice(e--,1);i.length||Q.fx.stop(),Zt=void 0},Q.fx.timer=function(t){Q.timers.push(t),t()?Q.fx.start():Q.timers.pop()},Q.fx.interval=13,Q.fx.start=function(){Jt||(Jt=setInterval(Q.fx.tick,Q.fx.interval))},Q.fx.stop=function(){clearInterval(Jt),Jt=null},Q.fx.speeds={slow:600,fast:200,_default:400},Q.fn.delay=function(t,e){return t=Q.fx?Q.fx.speeds[t]||t:t,e=e||\"fx\",this.queue(e,function(e,i){var n=setTimeout(e,t);i.stop=function(){clearTimeout(n)}})},function(){var t=J.createElement(\"input\"),e=J.createElement(\"select\"),i=e.appendChild(J.createElement(\"option\"));t.type=\"checkbox\",Z.checkOn=\"\"!==t.value,Z.optSelected=i.selected,e.disabled=!0,Z.optDisabled=!i.disabled,t=J.createElement(\"input\"),t.value=\"t\",t.type=\"radio\",Z.radioValue=\"t\"===t.value}();var ne,re,oe=Q.expr.attrHandle;Q.fn.extend({attr:function(t,e){return mt(this,Q.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){Q.removeAttr(this,t)})}}),Q.extend({attr:function(t,e,i){var n,r,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===Mt?Q.prop(t,e,i):(1===o&&Q.isXMLDoc(t)||(e=e.toLowerCase(),n=Q.attrHooks[e]||(Q.expr.match.bool.test(e)?re:ne)),void 0===i?n&&\"get\"in n&&null!==(r=n.get(t,e))?r:(r=Q.find.attr(t,e),null==r?void 0:r):null!==i?n&&\"set\"in n&&void 0!==(r=n.set(t,i,e))?r:(t.setAttribute(e,i+\"\"),i):void Q.removeAttr(t,e))},removeAttr:function(t,e){var i,n,r=0,o=e&&e.match(dt);if(o&&1===t.nodeType)for(;i=o[r++];)n=Q.propFix[i]||i,Q.expr.match.bool.test(i)&&(t[n]=!1),t.removeAttribute(i)},attrHooks:{type:{set:function(t,e){if(!Z.radioValue&&\"radio\"===e&&Q.nodeName(t,\"input\")){var i=t.value;return t.setAttribute(\"type\",e),i&&(t.value=i),e}}}}}),re={set:function(t,e,i){return e===!1?Q.removeAttr(t,i):t.setAttribute(i,i),i}},Q.each(Q.expr.match.bool.source.match(/\\w+/g),function(t,e){var i=oe[e]||Q.find.attr;oe[e]=function(t,e,n){var r,o;return n||(o=oe[e],oe[e]=r,r=null!=i(t,e,n)?e.toLowerCase():null,oe[e]=o),r}});var se=/^(?:input|select|textarea|button)$/i;Q.fn.extend({prop:function(t,e){return mt(this,Q.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[Q.propFix[t]||t]})}}),Q.extend({propFix:{\"for\":\"htmlFor\",\"class\":\"className\"},prop:function(t,e,i){var n,r,o,s=t.nodeType;if(t&&3!==s&&8!==s&&2!==s)return o=1!==s||!Q.isXMLDoc(t),o&&(e=Q.propFix[e]||e,r=Q.propHooks[e]),void 0!==i?r&&\"set\"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&\"get\"in r&&null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute(\"tabindex\")||se.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),Z.optSelected||(Q.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),Q.each([\"tabIndex\",\"readOnly\",\"maxLength\",\"cellSpacing\",\"cellPadding\",\"rowSpan\",\"colSpan\",\"useMap\",\"frameBorder\",\"contentEditable\"],function(){Q.propFix[this.toLowerCase()]=this});var ae=/[\\t\\r\\n\\f]/g;Q.fn.extend({addClass:function(t){var e,i,n,r,o,s,a=\"string\"==typeof t&&t,l=0,u=this.length;if(Q.isFunction(t))return this.each(function(e){Q(this).addClass(t.call(this,e,this.className))});if(a)for(e=(t||\"\").match(dt)||[];u>l;l++)if(i=this[l],n=1===i.nodeType&&(i.className?(\" \"+i.className+\" \").replace(ae,\" \"):\" \")){for(o=0;r=e[o++];)n.indexOf(\" \"+r+\" \")<0&&(n+=r+\" \");s=Q.trim(n),i.className!==s&&(i.className=s)}return this},removeClass:function(t){var e,i,n,r,o,s,a=0===arguments.length||\"string\"==typeof t&&t,l=0,u=this.length;if(Q.isFunction(t))return this.each(function(e){Q(this).removeClass(t.call(this,e,this.className))});if(a)for(e=(t||\"\").match(dt)||[];u>l;l++)if(i=this[l],n=1===i.nodeType&&(i.className?(\" \"+i.className+\" \").replace(ae,\" \"):\"\")){for(o=0;r=e[o++];)for(;n.indexOf(\" \"+r+\" \")>=0;)n=n.replace(\" \"+r+\" \",\" \");s=t?Q.trim(n):\"\",i.className!==s&&(i.className=s)}return this},toggleClass:function(t,e){var i=typeof t;return\"boolean\"==typeof e&&\"string\"===i?e?this.addClass(t):this.removeClass(t):this.each(Q.isFunction(t)?function(i){Q(this).toggleClass(t.call(this,i,this.className,e),e)}:function(){if(\"string\"===i)for(var e,n=0,r=Q(this),o=t.match(dt)||[];e=o[n++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else(i===Mt||\"boolean\"===i)&&(this.className&&_t.set(this,\"__className__\",this.className),this.className=this.className||t===!1?\"\":_t.get(this,\"__className__\")||\"\")})},hasClass:function(t){for(var e=\" \"+t+\" \",i=0,n=this.length;n>i;i++)if(1===this[i].nodeType&&(\" \"+this[i].className+\" \").replace(ae,\" \").indexOf(e)>=0)return!0;return!1}});var le=/\\r/g;Q.fn.extend({val:function(t){var e,i,n,r=this[0];{if(arguments.length)return n=Q.isFunction(t),this.each(function(i){var r;1===this.nodeType&&(r=n?t.call(this,i,Q(this).val()):t,null==r?r=\"\":\"number\"==typeof r?r+=\"\":Q.isArray(r)&&(r=Q.map(r,function(t){return null==t?\"\":t+\"\"})),e=Q.valHooks[this.type]||Q.valHooks[this.nodeName.toLowerCase()],e&&\"set\"in e&&void 0!==e.set(this,r,\"value\")||(this.value=r))});if(r)return e=Q.valHooks[r.type]||Q.valHooks[r.nodeName.toLowerCase()],e&&\"get\"in e&&void 0!==(i=e.get(r,\"value\"))?i:(i=r.value,\"string\"==typeof i?i.replace(le,\"\"):null==i?\"\":i)}}}),Q.extend({valHooks:{option:{get:function(t){var e=Q.find.attr(t,\"value\");return null!=e?e:Q.trim(Q.text(t))}},select:{get:function(t){for(var e,i,n=t.options,r=t.selectedIndex,o=\"select-one\"===t.type||0>r,s=o?null:[],a=o?r+1:n.length,l=0>r?a:o?r:0;a>l;l++)if(i=n[l],!(!i.selected&&l!==r||(Z.optDisabled?i.disabled:null!==i.getAttribute(\"disabled\"))||i.parentNode.disabled&&Q.nodeName(i.parentNode,\"optgroup\"))){if(e=Q(i).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var i,n,r=t.options,o=Q.makeArray(e),s=r.length;s--;)n=r[s],(n.selected=Q.inArray(n.value,o)>=0)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),Q.each([\"radio\",\"checkbox\"],function(){Q.valHooks[this]={set:function(t,e){return Q.isArray(e)?t.checked=Q.inArray(Q(t).val(),e)>=0:void 0}},Z.checkOn||(Q.valHooks[this].get=function(t){return null===t.getAttribute(\"value\")?\"on\":t.value})}),Q.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){Q.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),Q.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,\"**\"):this.off(e,t||\"**\",i)}});var ue=Q.now(),ce=/\\?/;Q.parseJSON=function(t){return JSON.parse(t+\"\")},Q.parseXML=function(t){var e,i;if(!t||\"string\"!=typeof t)return null;try{i=new DOMParser,e=i.parseFromString(t,\"text/xml\")}catch(n){e=void 0}return(!e||e.getElementsByTagName(\"parsererror\").length)&&Q.error(\"Invalid XML: \"+t),e};var he=/#.*$/,pe=/([?&])_=[^&]*/,de=/^(.*?):[ \\t]*([^\\r\\n]*)$/gm,fe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ge=/^(?:GET|HEAD)$/,me=/^\\/\\//,_e=/^([\\w.+-]+:)(?:\\/\\/(?:[^\\/?#]*@|)([^\\/?#:]*)(?::(\\d+)|)|)/,ve={},ye={},be=\"*/\".concat(\"*\"),we=t.location.href,xe=_e.exec(we.toLowerCase())||[];Q.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we,type:\"GET\",isLocal:fe.test(xe[1]),global:!0,processData:!0,async:!0,contentType:\"application/x-www-form-urlencoded; charset=UTF-8\",accepts:{\"*\":be,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\":Q.parseJSON,\"text xml\":Q.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?j(j(t,Q.ajaxSettings),e):j(Q.ajaxSettings,t)},ajaxPrefilter:z(ve),ajaxTransport:z(ye),ajax:function(t,e){function i(t,e,i,s){var l,c,_,v,b,x=e;2!==y&&(y=2,a&&clearTimeout(a),n=void 0,o=s||\"\",w.readyState=t>0?4:0,l=t>=200&&300>t||304===t,i&&(v=F(h,w,i)),v=H(h,v,w,l),l?(h.ifModified&&(b=w.getResponseHeader(\"Last-Modified\"),b&&(Q.lastModified[r]=b),b=w.getResponseHeader(\"etag\"),b&&(Q.etag[r]=b)),204===t||\"HEAD\"===h.type?x=\"nocontent\":304===t?x=\"notmodified\":(x=v.state,c=v.data,_=v.error,l=!_)):(_=x,(t||!x)&&(x=\"error\",0>t&&(t=0))),w.status=t,w.statusText=(e||x)+\"\",l?f.resolveWith(p,[c,x,w]):f.rejectWith(p,[w,x,_]),w.statusCode(m),m=void 0,u&&d.trigger(l?\"ajaxSuccess\":\"ajaxError\",[w,h,l?c:_]),g.fireWith(p,[w,x]),u&&(d.trigger(\"ajaxComplete\",[w,h]),--Q.active||Q.event.trigger(\"ajaxStop\")))}\"object\"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,o,s,a,l,u,c,h=Q.ajaxSetup({},e),p=h.context||h,d=h.context&&(p.nodeType||p.jquery)?Q(p):Q.event,f=Q.Deferred(),g=Q.Callbacks(\"once memory\"),m=h.statusCode||{},_={},v={},y=0,b=\"canceled\",w={readyState:0,getResponseHeader:function(t){var e;if(2===y){if(!s)for(s={};e=de.exec(o);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===y?o:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return y||(t=v[i]=v[i]||t,_[t]=e),this},overrideMimeType:function(t){return y||(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>y)for(e in t)m[e]=[m[e],t[e]];else w.always(t[w.status]);return this},abort:function(t){var e=t||b;return n&&n.abort(e),i(0,e),this}};if(f.promise(w).complete=g.add,w.success=w.done,w.error=w.fail,h.url=((t||h.url||we)+\"\").replace(he,\"\").replace(me,xe[1]+\"//\"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=Q.trim(h.dataType||\"*\").toLowerCase().match(dt)||[\"\"],null==h.crossDomain&&(l=_e.exec(h.url.toLowerCase()),h.crossDomain=!(!l||l[1]===xe[1]&&l[2]===xe[2]&&(l[3]||(\"http:\"===l[1]?\"80\":\"443\"))===(xe[3]||(\"http:\"===xe[1]?\"80\":\"443\")))),h.data&&h.processData&&\"string\"!=typeof h.data&&(h.data=Q.param(h.data,h.traditional)),O(ve,h,e,w),2===y)return w;u=Q.event&&h.global,u&&0===Q.active++&&Q.event.trigger(\"ajaxStart\"),h.type=h.type.toUpperCase(),h.hasContent=!ge.test(h.type),r=h.url,h.hasContent||(h.data&&(r=h.url+=(ce.test(r)?\"&\":\"?\")+h.data,delete h.data),h.cache===!1&&(h.url=pe.test(r)?r.replace(pe,\"$1_=\"+ue++):r+(ce.test(r)?\"&\":\"?\")+\"_=\"+ue++)),h.ifModified&&(Q.lastModified[r]&&w.setRequestHeader(\"If-Modified-Since\",Q.lastModified[r]),Q.etag[r]&&w.setRequestHeader(\"If-None-Match\",Q.etag[r])),(h.data&&h.hasContent&&h.contentType!==!1||e.contentType)&&w.setRequestHeader(\"Content-Type\",h.contentType),w.setRequestHeader(\"Accept\",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+(\"*\"!==h.dataTypes[0]?\", \"+be+\"; q=0.01\":\"\"):h.accepts[\"*\"]);for(c in h.headers)w.setRequestHeader(c,h.headers[c]);if(h.beforeSend&&(h.beforeSend.call(p,w,h)===!1||2===y))return w.abort();b=\"abort\";for(c in{success:1,error:1,complete:1})w[c](h[c]);if(n=O(ye,h,e,w)){w.readyState=1,u&&d.trigger(\"ajaxSend\",[w,h]),h.async&&h.timeout>0&&(a=setTimeout(function(){w.abort(\"timeout\")},h.timeout));try{y=1,n.send(_,i)}catch(x){if(!(2>y))throw x;i(-1,x)}}else i(-1,\"No Transport\");return w},getJSON:function(t,e,i){return Q.get(t,e,i,\"json\")},getScript:function(t,e){return Q.get(t,void 0,e,\"script\")}}),Q.each([\"get\",\"post\"],function(t,e){Q[e]=function(t,i,n,r){return Q.isFunction(i)&&(r=r||n,n=i,i=void 0),Q.ajax({url:t,type:e,dataType:r,data:i,success:n})}}),Q._evalUrl=function(t){return Q.ajax({url:t,type:\"GET\",dataType:\"script\",async:!1,global:!1,\"throws\":!0})},Q.fn.extend({wrapAll:function(t){var e;return Q.isFunction(t)?this.each(function(e){Q(this).wrapAll(t.call(this,e))}):(this[0]&&(e=Q(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(Q.isFunction(t)?function(e){Q(this).wrapInner(t.call(this,e))}:function(){var e=Q(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=Q.isFunction(t);return this.each(function(i){Q(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){Q.nodeName(this,\"body\")||Q(this).replaceWith(this.childNodes)}).end()}}),Q.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},Q.expr.filters.visible=function(t){return!Q.expr.filters.hidden(t)};var ke=/%20/g,Ce=/\\[\\]$/,Me=/\\r?\\n/g,De=/^(?:submit|button|image|reset|file)$/i,Te=/^(?:input|select|textarea|keygen)/i;Q.param=function(t,e){var i,n=[],r=function(t,e){e=Q.isFunction(e)?e():null==e?\"\":e,n[n.length]=encodeURIComponent(t)+\"=\"+encodeURIComponent(e)};if(void 0===e&&(e=Q.ajaxSettings&&Q.ajaxSettings.traditional),Q.isArray(t)||t.jquery&&!Q.isPlainObject(t))Q.each(t,function(){r(this.name,this.value)});else for(i in t)L(i,t[i],e,r);return n.join(\"&\").replace(ke,\"+\")},Q.fn.extend({serialize:function(){return Q.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=Q.prop(this,\"elements\");return t?Q.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!Q(this).is(\":disabled\")&&Te.test(this.nodeName)&&!De.test(t)&&(this.checked||!Ct.test(t))}).map(function(t,e){var i=Q(this).val();return null==i?null:Q.isArray(i)?Q.map(i,function(t){return{name:e.name,value:t.replace(Me,\"\\r\\n\")\n",
       "                }}):{name:e.name,value:i.replace(Me,\"\\r\\n\")}}).get()}}),Q.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Se=0,Ae={},Pe={0:200,1223:204},Ie=Q.ajaxSettings.xhr();t.attachEvent&&t.attachEvent(\"onunload\",function(){for(var t in Ae)Ae[t]()}),Z.cors=!!Ie&&\"withCredentials\"in Ie,Z.ajax=Ie=!!Ie,Q.ajaxTransport(function(t){var e;return Z.cors||Ie&&!t.crossDomain?{send:function(i,n){var r,o=t.xhr(),s=++Se;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)o[r]=t.xhrFields[r];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||i[\"X-Requested-With\"]||(i[\"X-Requested-With\"]=\"XMLHttpRequest\");for(r in i)o.setRequestHeader(r,i[r]);e=function(t){return function(){e&&(delete Ae[s],e=o.onload=o.onerror=null,\"abort\"===t?o.abort():\"error\"===t?n(o.status,o.statusText):n(Pe[o.status]||o.status,o.statusText,\"string\"==typeof o.responseText?{text:o.responseText}:void 0,o.getAllResponseHeaders()))}},o.onload=e(),o.onerror=e(\"error\"),e=Ae[s]=e(\"abort\");try{o.send(t.hasContent&&t.data||null)}catch(a){if(e)throw a}},abort:function(){e&&e()}}:void 0}),Q.ajaxSetup({accepts:{script:\"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript\"},contents:{script:/(?:java|ecma)script/},converters:{\"text script\":function(t){return Q.globalEval(t),t}}}),Q.ajaxPrefilter(\"script\",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type=\"GET\")}),Q.ajaxTransport(\"script\",function(t){if(t.crossDomain){var e,i;return{send:function(n,r){e=Q(\"<script>\").prop({async:!0,charset:t.scriptCharset,src:t.url}).on(\"load error\",i=function(t){e.remove(),i=null,t&&r(\"error\"===t.type?404:200,t.type)}),J.head.appendChild(e[0])},abort:function(){i&&i()}}}});var Ee=[],Re=/(=)\\?(?=&|$)|\\?\\?/;Q.ajaxSetup({jsonp:\"callback\",jsonpCallback:function(){var t=Ee.pop()||Q.expando+\"_\"+ue++;return this[t]=!0,t}}),Q.ajaxPrefilter(\"json jsonp\",function(e,i,n){var r,o,s,a=e.jsonp!==!1&&(Re.test(e.url)?\"url\":\"string\"==typeof e.data&&!(e.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&Re.test(e.data)&&\"data\");return a||\"jsonp\"===e.dataTypes[0]?(r=e.jsonpCallback=Q.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Re,\"$1\"+r):e.jsonp!==!1&&(e.url+=(ce.test(e.url)?\"&\":\"?\")+e.jsonp+\"=\"+r),e.converters[\"script json\"]=function(){return s||Q.error(r+\" was not called\"),s[0]},e.dataTypes[0]=\"json\",o=t[r],t[r]=function(){s=arguments},n.always(function(){t[r]=o,e[r]&&(e.jsonpCallback=i.jsonpCallback,Ee.push(r)),s&&Q.isFunction(o)&&o(s[0]),s=o=void 0}),\"script\"):void 0}),Q.parseHTML=function(t,e,i){if(!t||\"string\"!=typeof t)return null;\"boolean\"==typeof e&&(i=e,e=!1),e=e||J;var n=st.exec(t),r=!i&&[];return n?[e.createElement(n[1])]:(n=Q.buildFragment([t],e,r),r&&r.length&&Q(r).remove(),Q.merge([],n.childNodes))};var Ne=Q.fn.load;Q.fn.load=function(t,e,i){if(\"string\"!=typeof t&&Ne)return Ne.apply(this,arguments);var n,r,o,s=this,a=t.indexOf(\" \");return a>=0&&(n=Q.trim(t.slice(a)),t=t.slice(0,a)),Q.isFunction(e)?(i=e,e=void 0):e&&\"object\"==typeof e&&(r=\"POST\"),s.length>0&&Q.ajax({url:t,type:r,dataType:\"html\",data:e}).done(function(t){o=arguments,s.html(n?Q(\"<div>\").append(Q.parseHTML(t)).find(n):t)}).complete(i&&function(t,e){s.each(i,o||[t.responseText,e,t])}),this},Q.each([\"ajaxStart\",\"ajaxStop\",\"ajaxComplete\",\"ajaxError\",\"ajaxSuccess\",\"ajaxSend\"],function(t,e){Q.fn[e]=function(t){return this.on(e,t)}}),Q.expr.filters.animated=function(t){return Q.grep(Q.timers,function(e){return t===e.elem}).length};var ze=t.document.documentElement;Q.offset={setOffset:function(t,e,i){var n,r,o,s,a,l,u,c=Q.css(t,\"position\"),h=Q(t),p={};\"static\"===c&&(t.style.position=\"relative\"),a=h.offset(),o=Q.css(t,\"top\"),l=Q.css(t,\"left\"),u=(\"absolute\"===c||\"fixed\"===c)&&(o+l).indexOf(\"auto\")>-1,u?(n=h.position(),s=n.top,r=n.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),Q.isFunction(e)&&(e=e.call(t,i,a)),null!=e.top&&(p.top=e.top-a.top+s),null!=e.left&&(p.left=e.left-a.left+r),\"using\"in e?e.using.call(t,p):h.css(p)}},Q.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){Q.offset.setOffset(this,t,e)});var e,i,n=this[0],r={top:0,left:0},o=n&&n.ownerDocument;if(o)return e=o.documentElement,Q.contains(e,n)?(typeof n.getBoundingClientRect!==Mt&&(r=n.getBoundingClientRect()),i=W(o),{top:r.top+i.pageYOffset-e.clientTop,left:r.left+i.pageXOffset-e.clientLeft}):r},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return\"fixed\"===Q.css(i,\"position\")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),Q.nodeName(t[0],\"html\")||(n=t.offset()),n.top+=Q.css(t[0],\"borderTopWidth\",!0),n.left+=Q.css(t[0],\"borderLeftWidth\",!0)),{top:e.top-n.top-Q.css(i,\"marginTop\",!0),left:e.left-n.left-Q.css(i,\"marginLeft\",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||ze;t&&!Q.nodeName(t,\"html\")&&\"static\"===Q.css(t,\"position\");)t=t.offsetParent;return t||ze})}}),Q.each({scrollLeft:\"pageXOffset\",scrollTop:\"pageYOffset\"},function(e,i){var n=\"pageYOffset\"===i;Q.fn[e]=function(r){return mt(this,function(e,r,o){var s=W(e);return void 0===o?s?s[i]:e[r]:void(s?s.scrollTo(n?t.pageXOffset:o,n?o:t.pageYOffset):e[r]=o)},e,r,arguments.length,null)}}),Q.each([\"top\",\"left\"],function(t,e){Q.cssHooks[e]=x(Z.pixelPosition,function(t,i){return i?(i=w(t,e),Bt.test(i)?Q(t).position()[e]+\"px\":i):void 0})}),Q.each({Height:\"height\",Width:\"width\"},function(t,e){Q.each({padding:\"inner\"+t,content:e,\"\":\"outer\"+t},function(i,n){Q.fn[n]=function(n,r){var o=arguments.length&&(i||\"boolean\"!=typeof n),s=i||(n===!0||r===!0?\"margin\":\"border\");return mt(this,function(e,i,n){var r;return Q.isWindow(e)?e.document.documentElement[\"client\"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body[\"scroll\"+t],r[\"scroll\"+t],e.body[\"offset\"+t],r[\"offset\"+t],r[\"client\"+t])):void 0===n?Q.css(e,i,s):Q.style(e,i,n,s)},e,o?n:void 0,o,null)}})}),Q.fn.size=function(){return this.length},Q.fn.andSelf=Q.fn.addBack,\"function\"==typeof define&&define.amd&&define(\"jquery\",[],function(){return Q});var Oe=t.jQuery,je=t.$;return Q.noConflict=function(e){return t.$===Q&&(t.$=je),e&&t.jQuery===Q&&(t.jQuery=Oe),Q},typeof e===Mt&&(t.jQuery=t.$=Q),Q})},{}],18:[function(t,e,i){function n(t){if(!t)return n.__;Array.prototype.reduce||(Array.prototype.reduce=function(t,e){for(var i=e,n=0;n<this.length;n++)i=t(i,this[n],n,this);return i});var e=\"\",i=(\".\"+t).split(\".\").reduce(function(t,i,r,o){e?e+=\".\"+i:e=i;var s=t[\"__\"+e];return void 0===s&&(n.Logger.prototype=t,s=new n.Logger(e),t[\"__\"+e]=s),s},n.__);return i}var n,r=this.__extends||function(t,e){function i(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);i.prototype=e.prototype,t.prototype=new i};!function(t){function e(t,e,i){return void 0!==e[t]?null===e[t]?void delete i[t]:void(i[t]=e[t]):void 0}function i(e){if(null!=t.enabled&&!t.enabled)return!1;if(null!=t.maxMessages&&t.maxMessages<1)return!1;try{if(e.userAgentRegex&&!new RegExp(e.userAgentRegex).test(navigator.userAgent))return!1}catch(i){}try{if(e.ipRegex&&t.clientIP&&!new RegExp(e.ipRegex).test(t.clientIP))return!1}catch(i){}return!0}function n(t,e){try{if(t.disallow&&new RegExp(t.disallow).test(e))return!1}catch(i){}return!0}function o(t){return\"function\"==typeof t?t instanceof RegExp?t.toString():t():t}function s(t){var e,i=o(t);switch(typeof i){case\"string\":return new y(i,null,i);case\"number\":return e=i.toString(),new y(e,null,e);case\"boolean\":return e=i.toString(),new y(e,null,e);case\"undefined\":return new y(\"undefined\",null,\"undefined\");case\"object\":return i instanceof RegExp||i instanceof String||i instanceof Number||i instanceof Boolean?(e=i.toString(),new y(e,null,e)):new y(null,i,JSON.stringify(i));default:return new y(\"unknown\",null,\"unknown\")}}function a(t){return e(\"enabled\",t,this),e(\"maxMessages\",t,this),e(\"defaultAjaxUrl\",t,this),e(\"clientIP\",t,this),e(\"requestId\",t,this),e(\"defaultBeforeSend\",t,this),this}function l(){return-2147483648}function u(){return 1e3}function c(){return 2e3}function h(){return 3e3}function p(){return 4e3}function d(){return 5e3}function f(){return 6e3}function g(){return 2147483647}function m(t){return 1e3>=t?\"trace\":2e3>=t?\"debug\":3e3>=t?\"info\":4e3>=t?\"warn\":5e3>=t?\"error\":\"fatal\"}function _(t){return new k(t)}function v(t){return new C(t)}t.enabled,t.maxMessages,t.defaultAjaxUrl,t.clientIP,t.defaultBeforeSend,t.requestId=\"\";var y=function(){function t(t,e,i){this.msg=t,this.meta=e,this.finalString=i}return t}();t.setOptions=a,t.getAllLevel=l,t.getTraceLevel=u,t.getDebugLevel=c,t.getInfoLevel=h,t.getWarnLevel=p,t.getErrorLevel=d,t.getFatalLevel=f,t.getOffLevel=g;var b=function(){function t(t,e){this.inner=e,this.name=\"JL.Exception\",this.message=s(t).finalString}return t}();t.Exception=b,b.prototype=new Error;var w=function(){function t(t,e,i,n){this.l=t,this.m=e,this.n=i,this.t=n}return t}();t.LogItem=w;var x=function(){function r(e,i){this.appenderName=e,this.sendLogItems=i,this.level=t.getTraceLevel(),this.sendWithBufferLevel=2147483647,this.storeInBufferLevel=-2147483648,this.bufferSize=0,this.batchSize=1,this.buffer=[],this.batchBuffer=[]}return r.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},r.prototype.log=function(t,e,r,o,s,a,l){var u;if(i(this)&&n(this,a)&&!(s<this.storeInBufferLevel))return u=new w(s,a,l,(new Date).getTime()),s<this.level?void(this.bufferSize>0&&(this.buffer.push(u),this.buffer.length>this.bufferSize&&this.buffer.shift())):(s<this.sendWithBufferLevel?this.batchBuffer.push(u):(this.buffer.length&&(this.batchBuffer=this.batchBuffer.concat(this.buffer),this.buffer.length=0),this.batchBuffer.push(u)),this.batchBuffer.length>=this.batchSize?void this.sendBatch():void 0)},r.prototype.sendBatch=function(){0!=this.batchBuffer.length&&(null!=t.maxMessages&&t.maxMessages<1||(null!=t.maxMessages&&(t.maxMessages-=this.batchBuffer.length),this.sendLogItems(this.batchBuffer),this.batchBuffer.length=0))},r}();t.Appender=x;var k=function(i){function n(t){i.call(this,t,n.prototype.sendLogItemsAjax)}return r(n,i),n.prototype.setOptions=function(t){return e(\"url\",t,this),e(\"beforeSend\",t,this),i.prototype.setOptions.call(this,t),this},n.prototype.sendLogItemsAjax=function(e){try{var i=\"/jsnlog.logger\";null!=t.defaultAjaxUrl&&(i=t.defaultAjaxUrl),this.url&&(i=this.url);var n=JSON.stringify({r:t.requestId,lg:e}),r=this.getXhr(i);\"function\"==typeof this.beforeSend?this.beforeSend(r):\"function\"==typeof t.defaultBeforeSend&&t.defaultBeforeSend(r),r.send(n)}catch(o){}},n.prototype.getXhr=function(e){var i=new XMLHttpRequest;if(!(\"withCredentials\"in i)&&\"undefined\"!=typeof XDomainRequest){var n=new XDomainRequest;return n.open(\"POST\",e),n}return i.open(\"POST\",e),i.setRequestHeader(\"Content-Type\",\"application/json\"),i.setRequestHeader(\"JSNLog-RequestId\",t.requestId),i},n}(x);t.AjaxAppender=k;var C=function(e){function i(t){e.call(this,t,i.prototype.sendLogItemsConsole)}return r(i,e),i.prototype.clog=function(t){console.log(t)},i.prototype.cerror=function(t){console.error?console.error(t):this.clog(t)},i.prototype.cwarn=function(t){console.warn?console.warn(t):this.clog(t)},i.prototype.cinfo=function(t){console.info?console.info(t):this.clog(t)},i.prototype.cdebug=function(t){console.debug?console.debug(t):this.cinfo(t)},i.prototype.sendLogItemsConsole=function(e){try{if(!console)return;var i;for(i=0;i<e.length;++i){var n=e[i],r=n.n+\": \"+n.m;\"undefined\"==typeof window&&(r=new Date(n.t)+\" | \"+r),n.l<=t.getDebugLevel()?this.cdebug(r):n.l<=t.getInfoLevel()?this.cinfo(r):n.l<=t.getWarnLevel()?this.cwarn(r):this.cerror(r)}}catch(o){}},i}(x);t.ConsoleAppender=C;var M=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,r){var a,l,u=0;if(!this.appenders)return this;if(t>=this.level&&i(this)&&(r?(l=this.buildExceptionObject(r),l.logData=o(e)):l=e,a=s(l),n(this,a.finalString))){if(this.onceOnly)for(u=this.onceOnly.length-1;u>=0;){if(new RegExp(this.onceOnly[u]).test(a.finalString)){if(this.seenRegexes[u])return this;this.seenRegexes[u]=!0}u--}for(a.meta=a.meta||{},a.meta.loggerName=this.loggerName,u=this.appenders.length-1;u>=0;)this.appenders[u].log(m(t),a.msg,a.meta,function(){},t,a.finalString,this.loggerName),u--}return this},t.prototype.trace=function(t){return this.log(u(),t)},t.prototype.debug=function(t){return this.log(c(),t)},t.prototype.info=function(t){return this.log(h(),t)},t.prototype.warn=function(t){return this.log(p(),t)},t.prototype.error=function(t){return this.log(d(),t)},t.prototype.fatal=function(t){return this.log(f(),t)},t.prototype.fatalException=function(t,e){return this.log(f(),t,e)},t}();t.Logger=M,t.createAjaxAppender=_,t.createConsoleAppender=v;var D=new k(\"\");\"undefined\"==typeof window&&(D=new C(\"\")),t.__=new t.Logger(\"\"),t.__.setOptions({level:t.getDebugLevel(),appenders:[D]})}(n||(n={}));var i;\"undefined\"!=typeof i&&(i.JL=n);var o;\"function\"==typeof o&&o.amd&&o(\"jsnlog\",[],function(){return n}),\"function\"==typeof __jsnlog_configure&&__jsnlog_configure(n)},{}],19:[function(t,e,i){!function(){\"use strict\";function t(e,i){return this instanceof t?(this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),i&&this._initFormat(i),void this.clear()):new t(e,i)}function i(t,e){t.bbox=n(t,0,t.children.length,e)}function n(t,e,i,n){for(var s,a=r(),l=e;i>l;l++)s=t.children[l],o(a,t.leaf?n(s):s.bbox);return a}function r(){return[1/0,1/0,-(1/0),-(1/0)]}function o(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 s(t,e){return t.bbox[0]-e.bbox[0]}function a(t,e){return t.bbox[1]-e.bbox[1]}function l(t){return(t[2]-t[0])*(t[3]-t[1])}function u(t){return t[2]-t[0]+(t[3]-t[1])}function c(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 h(t,e){var i=Math.max(t[0],e[0]),n=Math.max(t[1],e[1]),r=Math.min(t[2],e[2]),o=Math.min(t[3],e[3]);return Math.max(0,r-i)*Math.max(0,o-n)}function p(t,e){return t[0]<=e[0]&&t[1]<=e[1]&&e[2]<=t[2]&&e[3]<=t[3]}function d(t,e){return e[0]<=t[2]&&e[1]<=t[3]&&e[2]>=t[0]&&e[3]>=t[1]}function f(t,e,i,n,r){for(var o,s=[e,i];s.length;)i=s.pop(),e=s.pop(),n>=i-e||(o=e+Math.ceil((i-e)/n/2)*n,g(t,e,i,o,r),s.push(e,o,o,i))}function g(t,e,i,n,r){for(var o,s,a,l,u,c,h,p,d;i>e;){for(i-e>600&&(o=i-e+1,s=n-e+1,a=Math.log(o),l=.5*Math.exp(2*a/3),u=.5*Math.sqrt(a*l*(o-l)/o)*(0>s-o/2?-1:1),c=Math.max(e,Math.floor(n-s*l/o+u)),h=Math.min(i,Math.floor(n+(o-s)*l/o+u)),g(t,c,h,n,r)),p=t[n],s=e,d=i,m(t,e,n),r(t[i],p)>0&&m(t,e,i);d>s;){for(m(t,s,d),s++,d--;r(t[s],p)<0;)s++;for(;r(t[d],p)>0;)d--}0===r(t[e],p)?m(t,e,d):(d++,m(t,d,i)),n>=d&&(e=d+1),d>=n&&(i=d-1)}}function m(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}t.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,i=[],n=this.toBBox;if(!d(t,e.bbox))return i;for(var r,o,s,a,l=[];e;){for(r=0,o=e.children.length;o>r;r++)s=e.children[r],a=e.leaf?n(s):s.bbox,d(t,a)&&(e.leaf?i.push(s):p(t,a)?this._all(s,i):l.push(s));e=l.pop()}return i},load:function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0,i=t.length;i>e;e++)this.insert(t[e]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;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,i,n,r,o=this.data,s=this.toBBox(t),a=[],l=[];o||a.length;){if(o||(o=a.pop(),i=a[a.length-1],e=l.pop(),r=!0),o.leaf&&(n=o.children.indexOf(t),-1!==n))return o.children.splice(n,1),a.push(o),this._condense(a),this;r||o.leaf||!p(o.bbox,s)?i?(e++,o=i.children[e],r=!1):o=null:(a.push(o),l.push(e),e=0,i=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 i=[];t;)t.leaf?e.push.apply(e,t.children):i.push.apply(i,t.children),t=i.pop();return e},_build:function(t,e,n,r){var o,s=n-e+1,a=this._maxEntries;if(a>=s)return o={children:t.slice(e,n+1),height:1,bbox:null,leaf:!0},i(o,this.toBBox),o;r||(r=Math.ceil(Math.log(s)/Math.log(a)),a=Math.ceil(s/Math.pow(a,r-1))),o={children:[],height:r,bbox:null};var l,u,c,h,p=Math.ceil(s/a),d=p*Math.ceil(Math.sqrt(a));for(f(t,e,n,d,this.compareMinX),l=e;n>=l;l+=d)for(c=Math.min(l+d-1,n),f(t,l,c,p,this.compareMinY),u=l;c>=u;u+=p)h=Math.min(u+p-1,c),o.children.push(this._build(t,u,h,r-1));return i(o,this.toBBox),o},_chooseSubtree:function(t,e,i,n){for(var r,o,s,a,u,h,p,d;;){if(n.push(e),e.leaf||n.length-1===i)break;for(p=d=1/0,r=0,o=e.children.length;o>r;r++)s=e.children[r],u=l(s.bbox),h=c(t,s.bbox)-u,d>h?(d=h,p=p>u?u:p,a=s):h===d&&p>u&&(p=u,a=s);e=a}return e},_insert:function(t,e,i){var n=this.toBBox,r=i?t.bbox:n(t),s=[],a=this._chooseSubtree(r,this.data,e,s);for(a.children.push(t),o(a.bbox,r);e>=0&&s[e].children.length>this._maxEntries;)this._split(s,e),e--;this._adjustParentBBoxes(r,s,e)},_split:function(t,e){var n=t[e],r=n.children.length,o=this._minEntries;this._chooseSplitAxis(n,o,r);var s={children:n.children.splice(this._chooseSplitIndex(n,o,r)),height:n.height};n.leaf&&(s.leaf=!0),i(n,this.toBBox),i(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},_splitRoot:function(t,e){this.data={children:[t,e],height:t.height+1},i(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){var r,o,s,a,u,c,p,d;for(c=p=1/0,r=e;i-e>=r;r++)o=n(t,0,r,this.toBBox),s=n(t,r,i,this.toBBox),a=h(o,s),u=l(o)+l(s),c>a?(c=a,d=r,p=p>u?u:p):a===c&&p>u&&(p=u,d=r);return d},_chooseSplitAxis:function(t,e,i){var n=t.leaf?this.compareMinX:s,r=t.leaf?this.compareMinY:a,o=this._allDistMargin(t,e,i,n),l=this._allDistMargin(t,e,i,r);l>o&&t.children.sort(n)},_allDistMargin:function(t,e,i,r){t.children.sort(r);var s,a,l=this.toBBox,c=n(t,0,e,l),h=n(t,i-e,i,l),p=u(c)+u(h);for(s=e;i-e>s;s++)a=t.children[s],o(c,t.leaf?l(a):a.bbox),p+=u(c);for(s=i-e-1;s>=e;s--)a=t.children[s],o(h,t.leaf?l(a):a.bbox),p+=u(h);return p},_adjustParentBBoxes:function(t,e,i){for(var n=i;n>=0;n--)o(e[n].bbox,t)},_condense:function(t){for(var e,n=t.length-1;n>=0;n--)0===t[n].children.length?n>0?(e=t[n-1].children,e.splice(e.indexOf(t[n]),1)):this.clear():i(t[n],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 e?e.exports=t:\"undefined\"!=typeof self?self.rbush=t:window.rbush=t}()},{}],20:[function(t,e,i){var n=function(){function t(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function e(t,e){for(var i=[];e>0;i[--e]=t);return i.join(\"\")}var i=function(){return i.cache.hasOwnProperty(arguments[0])||(i.cache[arguments[0]]=i.parse(arguments[0])),i.format.call(null,i.cache[arguments[0]],arguments)};return i.object_stringify=function(t,e,n,r){var o=\"\";if(null!=t)switch(typeof t){case\"function\":return\"[Function\"+(t.name?\": \"+t.name:\"\")+\"]\";case\"object\":if(t instanceof Error)return\"[\"+t.toString()+\"]\";if(e>=n)return\"[Object]\";if(r&&(r=r.slice(0),r.push(t)),null!=t.length){o+=\"[\";var s=[];for(var a in t)s.push(r&&r.indexOf(t[a])>=0?\"[Circular]\":i.object_stringify(t[a],e+1,n,r));o+=s.join(\", \")+\"]\"}else{if(\"getMonth\"in t)return\"Date(\"+t+\")\";o+=\"{\";var s=[];for(var l in t)t.hasOwnProperty(l)&&s.push(r&&r.indexOf(t[l])>=0?l+\": [Circular]\":l+\": \"+i.object_stringify(t[l],e+1,n,r));o+=s.join(\", \")+\"}\"}return o;case\"string\":return'\"'+t+'\"'}return\"\"+t},i.format=function(r,o){var s,a,l,u,c,h,p,d=1,f=r.length,g=\"\",m=[];for(a=0;f>a;a++)if(g=t(r[a]),\"string\"===g)m.push(r[a]);else if(\"array\"===g){if(u=r[a],u[2])for(s=o[d],l=0;l<u[2].length;l++){if(!s.hasOwnProperty(u[2][l]))throw new Error(n('[sprintf] property \"%s\" does not exist',u[2][l]));s=s[u[2][l]]}else s=u[1]?o[u[1]]:o[d++];if(/[^sO]/.test(u[8])&&\"number\"!=t(s))throw new Error(n('[sprintf] expecting number but found %s \"'+s+'\"',t(s)));switch(u[8]){case\"b\":s=s.toString(2);break;case\"c\":s=String.fromCharCode(s);break;case\"d\":s=parseInt(s,10);break;case\"e\":s=u[7]?s.toExponential(u[7]):s.toExponential();break;case\"f\":s=u[7]?parseFloat(s).toFixed(u[7]):parseFloat(s);break;case\"O\":s=i.object_stringify(s,0,parseInt(u[7])||5);break;case\"o\":s=s.toString(8);break;case\"s\":s=(s=String(s))&&u[7]?s.substring(0,u[7]):s;break;case\"u\":s=Math.abs(s);break;case\"x\":s=s.toString(16);break;case\"X\":s=s.toString(16).toUpperCase()}s=/[def]/.test(u[8])&&u[3]&&s>=0?\"+\"+s:s,h=u[4]?\"0\"==u[4]?\"0\":u[4].charAt(1):\" \",p=u[6]-String(s).length,c=u[6]?e(h,p):\"\",m.push(u[5]?s+c:c+s)}return m.join(\"\")},i.cache={},i.parse=function(t){for(var e=t,i=[],n=[],r=0;e;){if(null!==(i=/^[^\\x25]+/.exec(e)))n.push(i[0]);else if(null!==(i=/^\\x25{2}/.exec(e)))n.push(\"%\");else{if(null===(i=/^\\x25(?:([1-9]\\d*)\\$|\\(([^\\)]+)\\))?(\\+)?(0|'[^$])?(-)?(\\d+)?(?:\\.(\\d+))?([b-fosOuxX])/.exec(e)))throw new Error(\"[sprintf] \"+e);if(i[2]){r|=1;var o=[],s=i[2],a=[];if(null===(a=/^([a-z_][a-z_\\d]*)/i.exec(s)))throw new Error(\"[sprintf] \"+s);for(o.push(a[1]);\"\"!==(s=s.substring(a[0].length));)if(null!==(a=/^\\.([a-z_][a-z_\\d]*)/i.exec(s)))o.push(a[1]);else{if(null===(a=/^\\[(\\d+)\\]/.exec(s)))throw new Error(\"[sprintf] \"+s);o.push(a[1])}i[2]=o}else r|=2;if(3===r)throw new Error(\"[sprintf] mixing positional and named placeholders is not (yet) supported\");n.push(i)}e=e.substring(i[0].length)}return n},i}(),r=function(t,e){var i=e.slice();return i.unshift(t),n.apply(null,i)};e.exports=n,n.sprintf=n,n.vsprintf=r},{}],21:[function(t,e,i){!function(t){\"object\"==typeof e&&e.exports?e.exports=t():\"function\"==typeof define?define(t):this.tz=t()}(function(){function t(t,e,i){var n,r=e.day[1];do n=new Date(Date.UTC(i,e.month,Math.abs(r++)));while(e.day[0]<7&&n.getUTCDay()!=e.day[0]);return n={clock:e.clock,sort:n.getTime(),rule:e,save:6e4*e.save,offset:t.offset},n[n.clock]=n.sort+6e4*e.time,n.posix?n.wallclock=n[n.clock]+(t.offset+e.saved):n.posix=n[n.clock]-(t.offset+e.saved),n}function e(e,i,n){var r,o,s,a,l,u,c,h=e[e.zone],p=[],d=new Date(n).getUTCFullYear(),f=1;for(r=1,o=h.length;o>r&&!(h[r][i]<=n);r++);if(s=h[r],s.rules){for(u=e[s.rules],c=d+1;c>=d-f;--c)for(r=0,o=u.length;o>r;r++)u[r].from<=c&&c<=u[r].to?p.push(t(s,u[r],c)):u[r].to<c&&1==f&&(f=c-u[r].to);for(p.sort(function(t,e){return t.sort-e.sort}),r=0,o=p.length;o>r;r++)n>=p[r][i]&&p[r][p[r].clock]>s[p[r].clock]&&(a=p[r])}return a&&(a.abbrev=(l=/^(.*)\\/(.*)$/.exec(s.format))?l[a.save?2:1]:s.format.replace(/%s/,a.rule.letter)),a||s}function i(t,i){return\"UTC\"==t.zone?i:(t.entry=e(t,\"posix\",i),i+t.entry.offset+t.entry.save)}function n(t,i){if(\"UTC\"==t.zone)return i;var n,r;return t.entry=n=e(t,\"wallclock\",i),r=i-n.wallclock,r>0&&r<n.save?null:i-n.offset-n.save}function r(t,e,r){var o,s=+(r[1]+1),a=r[2]*s,l=u.indexOf(r[3].toLowerCase());if(l>9)e+=a*h[l-10];else{if(o=new Date(i(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=n(t,o.getTime()))&&(e=n(t,o.getTime()+864e5*s)-864e5*s)}return e}function o(t){if(!t.length)return\"0.0.38\";var e,o,s,a,l,u=Object.create(this),h=[];for(e=0;e<t.length;e++)if(a=t[e],Array.isArray(a))e||isNaN(a[1])?a.splice.apply(t,[e--,1].concat(a)):l=a;else if(isNaN(a)){if(s=typeof a,\"string\"==s)~a.indexOf(\"%\")?u.format=a:e||\"*\"!=a?!e&&(s=/^(\\d{4})-(\\d{2})-(\\d{2})(?:[T\\s](\\d{2}):(\\d{2})(?::(\\d{2})(?:\\.(\\d+))?)?(Z|(([+-])(\\d{2}(:\\d{2}){0,2})))?)?$/.exec(a))?(l=[],l.push.apply(l,s.slice(1,8)),s[9]?(l.push(s[10]+1),l.push.apply(l,s[11].split(/:/))):s[8]&&l.push(1)):/^\\w{2,3}_\\w{2}$/.test(a)?u.locale=a:(s=c.exec(a))?h.push(s):u.zone=a:l=a;else if(\"function\"==s){if(s=a.call(u))return s}else if(/^\\w{2,3}_\\w{2}$/.test(a.name))u[a.name]=a;else if(a.zones){for(s in a.zones)u[s]=a.zones[s];for(s in a.rules)u[s]=a.rules[s]}}else e||(l=a);if(u[u.locale]||delete u.locale,u[u.zone]||delete u.zone,null!=l){if(\"*\"==l)l=u.clock();else if(Array.isArray(l)){for(o=!l[7],e=0;11>e;e++)l[e]=+(l[e]||0);--l[1],l=Date.UTC.apply(Date.UTC,l.slice(0,8))+-l[7]*(36e5*l[8]+6e4*l[9]+1e3*l[10])}else l=Math.floor(l);if(!isNaN(l)){if(o&&(l=n(u,l)),null==l)return l;for(e=0,o=h.length;o>e;e++)l=r(u,l,h[e]);return u.format?(s=new Date(i(u,l)),u.format.replace(/%([-0_^]?)(:{0,3})(\\d*)(.)/g,function(t,e,i,n,r){var o,a,c=\"0\";if(o=u[r]){for(t=String(o.call(u,s,l,e,i.length)),\"_\"==(e||o.style)&&(c=\" \"),a=\"-\"==e?0:o.pad||0;t.length<a;)t=c+t;for(a=\"-\"==e?0:n||o.pad;t.length<a;)t=c+t;\"N\"==r&&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 i,n,r;return n=new Date(Date.UTC(t.getUTCFullYear(),0)),i=Math.floor((t.getTime()-n.getTime())/864e5),n.getUTCDay()==e?r=0:(r=7-n.getUTCDay()+e,8==r&&(r=1)),i>=r?Math.floor((i-r)/7)+1:0}function a(t){var e,i,n;return i=t.getUTCFullYear(),e=new Date(Date.UTC(i,0)).getUTCDay(),n=s(t,1)+(e>1&&4>=e?1:0),n?53!=n||4==e||3==e&&29==new Date(i,1,29).getDate()?[n,t.getUTCFullYear()]:[1,t.getUTCFullYear()+1]:(i=t.getUTCFullYear()-1,e=new Date(Date.UTC(i,0)).getUTCDay(),n=4==e||3==e&&29==new Date(i,1,29).getDate()?53:52,[n,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,i,n){var r,o,s=this.entry.offset+this.entry.save,a=Math.abs(s/1e3),l=[],u=3600;for(r=0;3>r;r++)l.push((\"0\"+Math.floor(a/u)).slice(-2)),a%=u,u/=60;return\"^\"!=i||s?(\"^\"==i&&(n=3),3==n?(o=l.join(\":\"),o=o.replace(/:00$/,\"\"),\"^\"!=i&&(o=o.replace(/:00$/,\"\"))):n?(o=l.slice(0,n+1).join(\":\"),\"^\"==i&&(o=o.replace(/:00$/,\"\"))):o=l.slice(0,2).join(\"\"),o=(0>s?\"-\":\"+\")+o,o=o.replace(/([-+])(0)/,{_:\" $1\",\"-\":\"$1\"}[i]||\"$1$2\")):\"Z\"},\"%\":function(t){return\"%\"},n:function(t){return\"\\n\"},t:function(t){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(t){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\"),h=[36e5,6e4,1e3,1];return u=u.toLowerCase().split(\"|\"),\"delmHMSUWVgCIky\".replace(/./g,function(t){l[t].pad=2}),l.N.pad=9,l.j.pad=3,l.k.style=\"_\",l.l.style=\"_\",l.e.style=\"_\",function(){return l.convert(arguments)}})},{}],22:[function(t,e,i){(function(){function t(t){function e(e,i,n,r,o,s){for(;o>=0&&s>o;o+=t){var a=r?r[o]:o;n=i(n,e[a],a,e)}return n}return function(i,n,r,o){n=w(n,o,4);var s=!S(i)&&b.keys(i),a=(s||i).length,l=t>0?0:a-1;return arguments.length<3&&(r=i[s?s[l]:l],l+=t),e(i,n,r,s,l,a)}}function n(t){return function(e,i,n){i=x(i,n);for(var r=T(e),o=t>0?0:r-1;o>=0&&r>o;o+=t)if(i(e[o],o,e))return o;return-1}}function r(t,e,i){return function(n,r,o){var s=0,a=T(n);if(\"number\"==typeof o)t>0?s=o>=0?o:Math.max(o+a,s):a=o>=0?Math.min(o+1,a):o+a+1;else if(i&&o&&a)return o=i(n,r),n[o]===r?o:-1;if(r!==r)return o=e(p.call(n,s,a),b.isNaN),o>=0?o+s:-1;for(o=t>0?s:a-1;o>=0&&a>o;o+=t)if(n[o]===r)return o;return-1}}function o(t,e){var i=R.length,n=t.constructor,r=b.isFunction(n)&&n.prototype||u,o=\"constructor\";for(b.has(t,o)&&!b.contains(e,o)&&e.push(o);i--;)o=R[i],o in t&&t[o]!==r[o]&&!b.contains(e,o)&&e.push(o)}var s=this,a=s._,l=Array.prototype,u=Object.prototype,c=Function.prototype,h=l.push,p=l.slice,d=u.toString,f=u.hasOwnProperty,g=Array.isArray,m=Object.keys,_=c.bind,v=Object.create,y=function(){},b=function(t){return t instanceof b?t:this instanceof b?void(this._wrapped=t):new b(t)};\"undefined\"!=typeof i?(\"undefined\"!=typeof e&&e.exports&&(i=e.exports=b),i._=b):s._=b,b.VERSION=\"1.8.3\";var w=function(t,e,i){if(void 0===e)return t;switch(null==i?3:i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)};case 4:return function(i,n,r,o){return t.call(e,i,n,r,o)}}return function(){return t.apply(e,arguments)}},x=function(t,e,i){return null==t?b.identity:b.isFunction(t)?w(t,e,i):b.isObject(t)?b.matcher(t):b.property(t)};b.iteratee=function(t,e){return x(t,e,1/0)};var k=function(t,e){return function(i){var n=arguments.length;if(2>n||null==i)return i;for(var r=1;n>r;r++)for(var o=arguments[r],s=t(o),a=s.length,l=0;a>l;l++){var u=s[l];e&&void 0!==i[u]||(i[u]=o[u])}return i}},C=function(t){if(!b.isObject(t))return{};if(v)return v(t);y.prototype=t;var e=new y;return y.prototype=null,e},M=function(t){return function(e){return null==e?void 0:e[t]}},D=Math.pow(2,53)-1,T=M(\"length\"),S=function(t){var e=T(t);return\"number\"==typeof e&&e>=0&&D>=e};b.each=b.forEach=function(t,e,i){\n",
       "                e=w(e,i);var n,r;if(S(t))for(n=0,r=t.length;r>n;n++)e(t[n],n,t);else{var o=b.keys(t);for(n=0,r=o.length;r>n;n++)e(t[o[n]],o[n],t)}return t},b.map=b.collect=function(t,e,i){e=x(e,i);for(var n=!S(t)&&b.keys(t),r=(n||t).length,o=Array(r),s=0;r>s;s++){var a=n?n[s]:s;o[s]=e(t[a],a,t)}return o},b.reduce=b.foldl=b.inject=t(1),b.reduceRight=b.foldr=t(-1),b.find=b.detect=function(t,e,i){var n;return n=S(t)?b.findIndex(t,e,i):b.findKey(t,e,i),void 0!==n&&-1!==n?t[n]:void 0},b.filter=b.select=function(t,e,i){var n=[];return e=x(e,i),b.each(t,function(t,i,r){e(t,i,r)&&n.push(t)}),n},b.reject=function(t,e,i){return b.filter(t,b.negate(x(e)),i)},b.every=b.all=function(t,e,i){e=x(e,i);for(var n=!S(t)&&b.keys(t),r=(n||t).length,o=0;r>o;o++){var s=n?n[o]:o;if(!e(t[s],s,t))return!1}return!0},b.some=b.any=function(t,e,i){e=x(e,i);for(var n=!S(t)&&b.keys(t),r=(n||t).length,o=0;r>o;o++){var s=n?n[o]:o;if(e(t[s],s,t))return!0}return!1},b.contains=b.includes=b.include=function(t,e,i,n){return S(t)||(t=b.values(t)),(\"number\"!=typeof i||n)&&(i=0),b.indexOf(t,e,i)>=0},b.invoke=function(t,e){var i=p.call(arguments,2),n=b.isFunction(e);return b.map(t,function(t){var r=n?e:t[e];return null==r?r:r.apply(t,i)})},b.pluck=function(t,e){return b.map(t,b.property(e))},b.where=function(t,e){return b.filter(t,b.matcher(e))},b.findWhere=function(t,e){return b.find(t,b.matcher(e))},b.max=function(t,e,i){var n,r,o=-(1/0),s=-(1/0);if(null==e&&null!=t){t=S(t)?t:b.values(t);for(var a=0,l=t.length;l>a;a++)n=t[a],n>o&&(o=n)}else e=x(e,i),b.each(t,function(t,i,n){r=e(t,i,n),(r>s||r===-(1/0)&&o===-(1/0))&&(o=t,s=r)});return o},b.min=function(t,e,i){var n,r,o=1/0,s=1/0;if(null==e&&null!=t){t=S(t)?t:b.values(t);for(var a=0,l=t.length;l>a;a++)n=t[a],o>n&&(o=n)}else e=x(e,i),b.each(t,function(t,i,n){r=e(t,i,n),(s>r||r===1/0&&o===1/0)&&(o=t,s=r)});return o},b.shuffle=function(t){for(var e,i=S(t)?t:b.values(t),n=i.length,r=Array(n),o=0;n>o;o++)e=b.random(0,o),e!==o&&(r[o]=r[e]),r[e]=i[o];return r},b.sample=function(t,e,i){return null==e||i?(S(t)||(t=b.values(t)),t[b.random(t.length-1)]):b.shuffle(t).slice(0,Math.max(0,e))},b.sortBy=function(t,e,i){return e=x(e,i),b.pluck(b.map(t,function(t,i,n){return{value:t,index:i,criteria:e(t,i,n)}}).sort(function(t,e){var i=t.criteria,n=e.criteria;if(i!==n){if(i>n||void 0===i)return 1;if(n>i||void 0===n)return-1}return t.index-e.index}),\"value\")};var A=function(t){return function(e,i,n){var r={};return i=x(i,n),b.each(e,function(n,o){var s=i(n,o,e);t(r,n,s)}),r}};b.groupBy=A(function(t,e,i){b.has(t,i)?t[i].push(e):t[i]=[e]}),b.indexBy=A(function(t,e,i){t[i]=e}),b.countBy=A(function(t,e,i){b.has(t,i)?t[i]++:t[i]=1}),b.toArray=function(t){return t?b.isArray(t)?p.call(t):S(t)?b.map(t,b.identity):b.values(t):[]},b.size=function(t){return null==t?0:S(t)?t.length:b.keys(t).length},b.partition=function(t,e,i){e=x(e,i);var n=[],r=[];return b.each(t,function(t,i,o){(e(t,i,o)?n:r).push(t)}),[n,r]},b.first=b.head=b.take=function(t,e,i){return null==t?void 0:null==e||i?t[0]:b.initial(t,t.length-e)},b.initial=function(t,e,i){return p.call(t,0,Math.max(0,t.length-(null==e||i?1:e)))},b.last=function(t,e,i){return null==t?void 0:null==e||i?t[t.length-1]:b.rest(t,Math.max(0,t.length-e))},b.rest=b.tail=b.drop=function(t,e,i){return p.call(t,null==e||i?1:e)},b.compact=function(t){return b.filter(t,b.identity)};var P=function(t,e,i,n){for(var r=[],o=0,s=n||0,a=T(t);a>s;s++){var l=t[s];if(S(l)&&(b.isArray(l)||b.isArguments(l))){e||(l=P(l,e,i));var u=0,c=l.length;for(r.length+=c;c>u;)r[o++]=l[u++]}else i||(r[o++]=l)}return r};b.flatten=function(t,e){return P(t,e,!1)},b.without=function(t){return b.difference(t,p.call(arguments,1))},b.uniq=b.unique=function(t,e,i,n){b.isBoolean(e)||(n=i,i=e,e=!1),null!=i&&(i=x(i,n));for(var r=[],o=[],s=0,a=T(t);a>s;s++){var l=t[s],u=i?i(l,s,t):l;e?(s&&o===u||r.push(l),o=u):i?b.contains(o,u)||(o.push(u),r.push(l)):b.contains(r,l)||r.push(l)}return r},b.union=function(){return b.uniq(P(arguments,!0,!0))},b.intersection=function(t){for(var e=[],i=arguments.length,n=0,r=T(t);r>n;n++){var o=t[n];if(!b.contains(e,o)){for(var s=1;i>s&&b.contains(arguments[s],o);s++);s===i&&e.push(o)}}return e},b.difference=function(t){var e=P(arguments,!0,!0,1);return b.filter(t,function(t){return!b.contains(e,t)})},b.zip=function(){return b.unzip(arguments)},b.unzip=function(t){for(var e=t&&b.max(t,T).length||0,i=Array(e),n=0;e>n;n++)i[n]=b.pluck(t,n);return i},b.object=function(t,e){for(var i={},n=0,r=T(t);r>n;n++)e?i[t[n]]=e[n]:i[t[n][0]]=t[n][1];return i},b.findIndex=n(1),b.findLastIndex=n(-1),b.sortedIndex=function(t,e,i,n){i=x(i,n,1);for(var r=i(e),o=0,s=T(t);s>o;){var a=Math.floor((o+s)/2);i(t[a])<r?o=a+1:s=a}return o},b.indexOf=r(1,b.findIndex,b.sortedIndex),b.lastIndexOf=r(-1,b.findLastIndex),b.range=function(t,e,i){null==e&&(e=t||0,t=0),i=i||1;for(var n=Math.max(Math.ceil((e-t)/i),0),r=Array(n),o=0;n>o;o++,t+=i)r[o]=t;return r};var I=function(t,e,i,n,r){if(!(n instanceof e))return t.apply(i,r);var o=C(t.prototype),s=t.apply(o,r);return b.isObject(s)?s:o};b.bind=function(t,e){if(_&&t.bind===_)return _.apply(t,p.call(arguments,1));if(!b.isFunction(t))throw new TypeError(\"Bind must be called on a function\");var i=p.call(arguments,2),n=function(){return I(t,n,e,this,i.concat(p.call(arguments)))};return n},b.partial=function(t){var e=p.call(arguments,1),i=function(){for(var n=0,r=e.length,o=Array(r),s=0;r>s;s++)o[s]=e[s]===b?arguments[n++]:e[s];for(;n<arguments.length;)o.push(arguments[n++]);return I(t,i,this,this,o)};return i},b.bindAll=function(t){var e,i,n=arguments.length;if(1>=n)throw new Error(\"bindAll must be passed function names\");for(e=1;n>e;e++)i=arguments[e],t[i]=b.bind(t[i],t);return t},b.memoize=function(t,e){var i=function(n){var r=i.cache,o=\"\"+(e?e.apply(this,arguments):n);return b.has(r,o)||(r[o]=t.apply(this,arguments)),r[o]};return i.cache={},i},b.delay=function(t,e){var i=p.call(arguments,2);return setTimeout(function(){return t.apply(null,i)},e)},b.defer=b.partial(b.delay,b,1),b.throttle=function(t,e,i){var n,r,o,s=null,a=0;i||(i={});var l=function(){a=i.leading===!1?0:b.now(),s=null,o=t.apply(n,r),s||(n=r=null)};return function(){var u=b.now();a||i.leading!==!1||(a=u);var c=e-(u-a);return n=this,r=arguments,0>=c||c>e?(s&&(clearTimeout(s),s=null),a=u,o=t.apply(n,r),s||(n=r=null)):s||i.trailing===!1||(s=setTimeout(l,c)),o}},b.debounce=function(t,e,i){var n,r,o,s,a,l=function(){var u=b.now()-s;e>u&&u>=0?n=setTimeout(l,e-u):(n=null,i||(a=t.apply(o,r),n||(o=r=null)))};return function(){o=this,r=arguments,s=b.now();var u=i&&!n;return n||(n=setTimeout(l,e)),u&&(a=t.apply(o,r),o=r=null),a}},b.wrap=function(t,e){return b.partial(e,t)},b.negate=function(t){return function(){return!t.apply(this,arguments)}},b.compose=function(){var t=arguments,e=t.length-1;return function(){for(var i=e,n=t[e].apply(this,arguments);i--;)n=t[i].call(this,n);return n}},b.after=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}},b.before=function(t,e){var i;return function(){return--t>0&&(i=e.apply(this,arguments)),1>=t&&(e=null),i}},b.once=b.partial(b.before,2);var E=!{toString:null}.propertyIsEnumerable(\"toString\"),R=[\"valueOf\",\"isPrototypeOf\",\"toString\",\"propertyIsEnumerable\",\"hasOwnProperty\",\"toLocaleString\"];b.keys=function(t){if(!b.isObject(t))return[];if(m)return m(t);var e=[];for(var i in t)b.has(t,i)&&e.push(i);return E&&o(t,e),e},b.allKeys=function(t){if(!b.isObject(t))return[];var e=[];for(var i in t)e.push(i);return E&&o(t,e),e},b.values=function(t){for(var e=b.keys(t),i=e.length,n=Array(i),r=0;i>r;r++)n[r]=t[e[r]];return n},b.mapObject=function(t,e,i){e=x(e,i);for(var n,r=b.keys(t),o=r.length,s={},a=0;o>a;a++)n=r[a],s[n]=e(t[n],n,t);return s},b.pairs=function(t){for(var e=b.keys(t),i=e.length,n=Array(i),r=0;i>r;r++)n[r]=[e[r],t[e[r]]];return n},b.invert=function(t){for(var e={},i=b.keys(t),n=0,r=i.length;r>n;n++)e[t[i[n]]]=i[n];return e},b.functions=b.methods=function(t){var e=[];for(var i in t)b.isFunction(t[i])&&e.push(i);return e.sort()},b.extend=k(b.allKeys),b.extendOwn=b.assign=k(b.keys),b.findKey=function(t,e,i){e=x(e,i);for(var n,r=b.keys(t),o=0,s=r.length;s>o;o++)if(n=r[o],e(t[n],n,t))return n},b.pick=function(t,e,i){var n,r,o={},s=t;if(null==s)return o;b.isFunction(e)?(r=b.allKeys(s),n=w(e,i)):(r=P(arguments,!1,!1,1),n=function(t,e,i){return e in i},s=Object(s));for(var a=0,l=r.length;l>a;a++){var u=r[a],c=s[u];n(c,u,s)&&(o[u]=c)}return o},b.omit=function(t,e,i){if(b.isFunction(e))e=b.negate(e);else{var n=b.map(P(arguments,!1,!1,1),String);e=function(t,e){return!b.contains(n,e)}}return b.pick(t,e,i)},b.defaults=k(b.allKeys,!0),b.create=function(t,e){var i=C(t);return e&&b.extendOwn(i,e),i},b.clone=function(t){return b.isObject(t)?b.isArray(t)?t.slice():b.extend({},t):t},b.tap=function(t,e){return e(t),t},b.isMatch=function(t,e){var i=b.keys(e),n=i.length;if(null==t)return!n;for(var r=Object(t),o=0;n>o;o++){var s=i[o];if(e[s]!==r[s]||!(s in r))return!1}return!0};var N=function(t,e,i,n){if(t===e)return 0!==t||1/t===1/e;if(null==t||null==e)return t===e;t instanceof b&&(t=t._wrapped),e instanceof b&&(e=e._wrapped);var r=d.call(t);if(r!==d.call(e))return!1;switch(r){case\"[object RegExp]\":case\"[object String]\":return\"\"+t==\"\"+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}var o=\"[object Array]\"===r;if(!o){if(\"object\"!=typeof t||\"object\"!=typeof e)return!1;var s=t.constructor,a=e.constructor;if(s!==a&&!(b.isFunction(s)&&s instanceof s&&b.isFunction(a)&&a instanceof a)&&\"constructor\"in t&&\"constructor\"in e)return!1}i=i||[],n=n||[];for(var l=i.length;l--;)if(i[l]===t)return n[l]===e;if(i.push(t),n.push(e),o){if(l=t.length,l!==e.length)return!1;for(;l--;)if(!N(t[l],e[l],i,n))return!1}else{var u,c=b.keys(t);if(l=c.length,b.keys(e).length!==l)return!1;for(;l--;)if(u=c[l],!b.has(e,u)||!N(t[u],e[u],i,n))return!1}return i.pop(),n.pop(),!0};b.isEqual=function(t,e){return N(t,e)},b.isEmpty=function(t){return null==t?!0:S(t)&&(b.isArray(t)||b.isString(t)||b.isArguments(t))?0===t.length:0===b.keys(t).length},b.isElement=function(t){return!(!t||1!==t.nodeType)},b.isArray=g||function(t){return\"[object Array]\"===d.call(t)},b.isObject=function(t){var e=typeof t;return\"function\"===e||\"object\"===e&&!!t},b.each([\"Arguments\",\"Function\",\"String\",\"Number\",\"Date\",\"RegExp\",\"Error\"],function(t){b[\"is\"+t]=function(e){return d.call(e)===\"[object \"+t+\"]\"}}),b.isArguments(arguments)||(b.isArguments=function(t){return b.has(t,\"callee\")}),\"function\"!=typeof/./&&\"object\"!=typeof Int8Array&&(b.isFunction=function(t){return\"function\"==typeof t||!1}),b.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},b.isNaN=function(t){return b.isNumber(t)&&t!==+t},b.isBoolean=function(t){return t===!0||t===!1||\"[object Boolean]\"===d.call(t)},b.isNull=function(t){return null===t},b.isUndefined=function(t){return void 0===t},b.has=function(t,e){return null!=t&&f.call(t,e)},b.noConflict=function(){return s._=a,this},b.identity=function(t){return t},b.constant=function(t){return function(){return t}},b.noop=function(){},b.property=M,b.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},b.matcher=b.matches=function(t){return t=b.extendOwn({},t),function(e){return b.isMatch(e,t)}},b.times=function(t,e,i){var n=Array(Math.max(0,t));e=w(e,i,1);for(var r=0;t>r;r++)n[r]=e(r);return n},b.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},b.now=Date.now||function(){return(new Date).getTime()};var z={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#x27;\",\"`\":\"&#x60;\"},O=b.invert(z),j=function(t){var e=function(e){return t[e]},i=\"(?:\"+b.keys(t).join(\"|\")+\")\",n=RegExp(i),r=RegExp(i,\"g\");return function(t){return t=null==t?\"\":\"\"+t,n.test(t)?t.replace(r,e):t}};b.escape=j(z),b.unescape=j(O),b.result=function(t,e,i){var n=null==t?void 0:t[e];return void 0===n&&(n=i),b.isFunction(n)?n.call(t):n};var F=0;b.uniqueId=function(t){var e=++F+\"\";return t?t+e:e},b.templateSettings={evaluate:/<%([\\s\\S]+?)%>/g,interpolate:/<%=([\\s\\S]+?)%>/g,escape:/<%-([\\s\\S]+?)%>/g};var H=/(.)^/,L={\"'\":\"'\",\"\\\\\":\"\\\\\",\"\\r\":\"r\",\"\\n\":\"n\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},W=/\\\\|'|\\r|\\n|\\u2028|\\u2029/g,B=function(t){return\"\\\\\"+L[t]};b.template=function(t,e,i){!e&&i&&(e=i),e=b.defaults({},e,b.templateSettings);var n=RegExp([(e.escape||H).source,(e.interpolate||H).source,(e.evaluate||H).source].join(\"|\")+\"|$\",\"g\"),r=0,o=\"__p+='\";t.replace(n,function(e,i,n,s,a){return o+=t.slice(r,a).replace(W,B),r=a+e.length,i?o+=\"'+\\n((__t=(\"+i+\"))==null?'':_.escape(__t))+\\n'\":n?o+=\"'+\\n((__t=(\"+n+\"))==null?'':__t)+\\n'\":s&&(o+=\"';\\n\"+s+\"\\n__p+='\"),e}),o+=\"';\\n\",e.variable||(o=\"with(obj||{}){\\n\"+o+\"}\\n\"),o=\"var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\\n\"+o+\"return __p;\\n\";try{var s=new Function(e.variable||\"obj\",\"_\",o)}catch(a){throw a.source=o,a}var l=function(t){return s.call(this,t,b)},u=e.variable||\"obj\";return l.source=\"function(\"+u+\"){\\n\"+o+\"}\",l},b.chain=function(t){var e=b(t);return e._chain=!0,e};var Y=function(t,e){return t._chain?b(e).chain():e};b.mixin=function(t){b.each(b.functions(t),function(e){var i=b[e]=t[e];b.prototype[e]=function(){var t=[this._wrapped];return h.apply(t,arguments),Y(this,i.apply(b,t))}})},b.mixin(b),b.each([\"pop\",\"push\",\"reverse\",\"shift\",\"sort\",\"splice\",\"unshift\"],function(t){var e=l[t];b.prototype[t]=function(){var i=this._wrapped;return e.apply(i,arguments),\"shift\"!==t&&\"splice\"!==t||0!==i.length||delete i[0],Y(this,i)}}),b.each([\"concat\",\"join\",\"slice\"],function(t){var e=l[t];b.prototype[t]=function(){return Y(this,e.apply(this._wrapped,arguments))}}),b.prototype.value=function(){return this._wrapped},b.prototype.valueOf=b.prototype.toJSON=b.prototype.value,b.prototype.toString=function(){return\"\"+this._wrapped},\"function\"==typeof define&&define.amd&&define(\"underscore\",[],function(){return b})}).call(this)},{}],23:[function(t,e,i){var n,r,o,s=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty,l=[].slice;o=t(\"underscore\"),r=t(\"../common/has_properties\"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.type=\"Callback\",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property(\"values\",this._make_values,!0),this.add_dependencies(\"values\",this,[\"args\"]),this.register_property(\"func\",this._make_func,!0),this.add_dependencies(\"func\",this,[\"args\",\"code\"])},e.prototype.execute=function(t,e){return this.get(\"func\").apply(null,l.call(this.get(\"values\")).concat([t],[e]))},e.prototype._make_values=function(){return o.map(o.values(this.get(\"args\")),this.resolve_ref)},e.prototype._make_func=function(){return function(t,e,i){i.prototype=t.prototype;var n=new i,r=t.apply(n,e);return Object(r)===r?r:n}(Function,l.call(o.keys(this.get(\"args\"))).concat([\"cb_obj\"],[\"cb_data\"],[this.get(\"code\")]),function(){})},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{args:{},code:\"\"})},e}(r),e.exports={Model:n}},{\"../common/has_properties\":44,underscore:22}],24:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),o=t(\"../util/util\"),n=t(\"../common/has_properties\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type=\"OpenURL\",e.prototype.execute=function(t){var e,i,n,r,s,a,l;for(a=t.get(\"selected\"),i=a[\"0d\"].flag?a[\"0d\"].indices:a[\"1d\"].indices.length>0?a[\"1d\"].indices:a[\"2d\"].indices.length>0?a[\"2d\"].indices:[],s=[],n=0,r=i.length;r>n;n++)e=i[n],l=o.replace_placeholders(this.get(\"url\"),t,e),s.push(window.open(l));return s},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{url:\"http://\"})},e}(n),e.exports={Model:r}},{\"../common/has_properties\":44,\"../util/util\":177,underscore:22}],25:[function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D;l=t(\"underscore\"),w=t(\"../common/base\"),s=t(\"../common/logging\"),o=t(\"../range/factor_range\"),a=t(\"../range/range1d\"),r=t(\"../source/column_data_source\"),k=\"./helpers\",n=w.Collections,C=s.logger,c=function(t,e){return null==e?0:l.isNumber(e)?(1>=e&&(C.error(\"num_minor_ticks must be > 1\"),e=0),e):\"auto\"===e?null!=t===\"Log\"?10:5:(C.error(\"unrecognized num_minor_ticks: \"+e),0)},u=function(t,e){var i;if(null==t)return null;if(\"auto\"===t){if(e instanceof o.Model)return n(\"CategoricalAxis\");if(e instanceof a.Model){try{return new Date.parse(e.get(\"start\")),n(\"DatetimeAxis\")}catch(r){i=r}return n(\"LinearAxis\")}}try{return n(t+\"Axis\")}catch(r){return i=r,C.error(\"unrecognized axis_type: \"+t),null}},h=function(t){if(null==t)return n(\"DataRange1d\").create();if(l.isArray(t)){if(l.every(t,l.isString))return n(\"FactorRange\").create({factors:t});if(2===t.length&&l.every(t,l.isNumber))return n(\"Range1d\").create({start:t[0],end:t[1]})}return C.error(\"Unrecognized range input: \"+t.toJSON),null},p=function(t,e){return e instanceof r.Model?e:l.isString(e)?t[e]:n(\"ColumnDataSource\").create({data:e})},d=function(t){var e;return e=[]},m=function(t,e){var i,r,o,s,a,u,c,h;for(c=[],r=0,o=t.length;o>r;r++){s=t[r],l.isString(s)?(h=s+\"Tool\",a={plot:e}):(h=s.type+\"Tool\",a=l.omit(s,\"type\"));try{u=n(h).create(a),c.push(u)}catch(p){i=p,C.error(\"unrecognized tool: \"+s)}}return c},f=function(t,e){var i,r,o,s,a,u,c,h,d,f,g,m,_,v,y,b;for(m=[],a=0,c=t.length;c>a;a++){for(i=t[a],s=i.type,_=p(e,i.source),r=l.omit(i,\"source\",\"selection\",\"inspection\",\"nonselection\"),o=n(s).create(r),g={data_source:_,glyph:o},d=[\"selection\",\"inspection\",\"nonselection\"],u=0,h=d.length;h>u;u++)v=d[u],null!=i[v]&&(null!=i[v].type?(y=l.omit(i[v],\"type\"),b=n(i[v].type).create(y)):(b=l.clone(o),b.set(i[v])),g[v]=b);f=n(\"GlyphRenderer\").create(g),m.push(f)}return m},g=function(t,e){var i,r,o,s,a,c,h,p,d,f,g;for(h=[],p=0,d=t.length;d>p;p++){if(c=t[p],f=c.location,\"below\"===f||\"above\"===f)s=0,g=e.get(\"x_range\");else{if(\"left\"!==f&&\"right\"!==f){C.error(\"unrecognized axis location: \"+f);continue}s=1,g=e.get(\"y_range\")}o=u(c.type,g),r=l.omit(c,\"type\",\"grid\"),r.plot=e,i=o.create(r),h.push(i),c.grid===!0&&(a=n(\"Grid\").create({dimension:s,plot:e,ticker:i.get(\"ticker\")}),h.push(a))}return h},M=function(t){var e;return t.x_range=h(t.x_range),t.y_range=h(t.y_range),e=n(\"Plot\").create(t)},D=function(t){var e,i,r;i={};for(e in t)r=t[e],i[e]=n(\"ColumnDataSource\").create({data:r});return i},v=function(t,e,i){return i=f(i,e),t.add_renderers(i)},y=function(t,e){var i,n,r,o,s;for(e=g(e,t),n=0,r=e.length;r>n;n++)i=e[n],s=i.get(\"location\"),null!=s&&(o=t.get(s),o.push(i),t.set(s,o));return t.add_renderers(e)},_=function(t,e){return e=d(e),t.add_renderers(e)},b=function(t,e){var i,n,r;for(e=m(e,t),i=0,n=e.length;n>i;i++)r=e[i],r.set(\"plot\",t);return t.set_obj(\"tools\",e),t.get(\"tool_manager\").set_obj(\"tools\",e),t.get(\"tool_manager\")._init_tools()},x=function(t){var e,i,n,r,o,s,a;return r=t.options,s=t.sources,i=t.glyphs,n=t.guides,e=t.annotations,a=t.tools,null==r&&(r={}),null==s&&(s={}),null==i&&(i=[]),null==n&&(n=[]),null==e&&(e={}),null==a&&(a=[]),o=M(r),s=D(s),v(o,s,i),y(o,n),_(o,e),b(o,a),o},e.exports=x},{\"../common/base\":29,\"../common/logging\":48,\"../range/factor_range\":75,\"../range/range1d\":76,\"../source/column_data_source\":132,underscore:22}],26:[function(t,e,i){var n,r,o,s;r=t(\"underscore\"),n=t(\"../common/logging\"),o=n.logger,s=function(t,e){var i;return o.debug(\"Scheduling render for plot \"+e+\" on target \"+t),i=function(){var i;return i=new e.default_view({model:e}),t.append(i.$el)},r.defer(i)},e.exports={show:s}},{\"../common/logging\":48,underscore:22}],27:[function(t,e,i){var n,r,o,s,a,l,u,c;o=t(\"underscore\"),n=t(\"jquery\"),r=t(\"../common/logging\"),a=t(\"./figure\"),l=t(\"./helpers\"),u=r.logger,c=l.show,s={figure:a},n.fn.bokeh=function(t,e){var i;return t in s?(i=s[t](e),c(this,i),i):(u.error(\"Unknown API type '\"+t+\"'. Recognized API types: \"+Object.keys(s)),this)},e.exports=n.fn.bokeh},{\"../common/logging\":48,\"./figure\":25,\"./helpers\":26,jquery:17,underscore:22}],28:[function(t,e,i){var n,r,o,s=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;n=t(\"../common/has_properties\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e}(n),o=function(t){var e;return e={},e.Model=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return s(i,e),i.prototype.type=t,i}(r),e},e.exports={AutoEncode:o(\"AutoEncode\"),BinarySegment:o(\"BinarySegment\"),Const:o(\"Const\"),Contour:o(\"Contour\"),Count:o(\"Count\"),CountCategories:o(\"CountCategories\"),Cuberoot:o(\"Cuberoot\"),Encode:o(\"Encode\"),HDAlpha:o(\"HDAlpha\"),Id:o(\"Id\"),Interpolate:o(\"Interpolate\"),InterpolateColor:o(\"InterpolateColor\"),Log:o(\"Log\"),NonZero:o(\"NonZero\"),Ratio:o(\"Ratio\"),Seq:o(\"Seq\"),Spread:o(\"Spread\"),ToCounts:o(\"ToCounts\")}},{\"../common/has_properties\":44}],29:[function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d,f,g=function(t,e){function i(){this.constructor=t}for(var n in e)m.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},m={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./collection\"),(\"undefined\"==typeof f||null===f)&&(f={location:{href:\"local\"}}),t(\"./custom\").monkey_patch(),o={},d=f.location.href,o.prefix=d.indexOf(\"/bokeh\")>0?d.slice(0,d.lastIndexOf(\"/bokeh\"))+\"/\":\"/\",console.log(\"Bokeh: setting prefix to\",o.prefix),c={Plot:t(\"./plot\"),GMapPlot:t(\"./gmap_plot\"),GeoJSPlot:t(\"./geojs_plot\"),GridPlot:t(\"./grid_plot\"),PlotContext:t(\"./plot_context\"),PlotList:t(\"./plot_context\"),Canvas:t(\"./canvas\"),LayoutBox:t(\"./layout_box\"),CartesianFrame:t(\"./cartesian_frame\"),SelectionManager:t(\"./selection_manager\"),Selector:t(\"./selector\"),ToolEvents:t(\"./tool_events\"),Callback:t(\"../action/callback\"),OpenURL:t(\"../action/open_url\"),CategoricalMapper:t(\"../mapper/categorical_mapper\"),LinearColorMapper:t(\"../mapper/linear_color_mapper\"),LinearMapper:t(\"../mapper/linear_mapper\"),DataRange1d:t(\"../range/data_range1d\"),FactorRange:t(\"../range/factor_range\"),Range1d:t(\"../range/range1d\"),Legend:t(\"../renderer/annotation/legend\"),Span:t(\"../renderer/annotation/span\"),Tooltip:t(\"../renderer/annotation/tooltip\"),GlyphRenderer:t(\"../renderer/glyph/glyph_renderer\"),AnnularWedge:t(\"../renderer/glyph/annular_wedge\"),Annulus:t(\"../renderer/glyph/annulus\"),Arc:t(\"../renderer/glyph/arc\"),Bezier:t(\"../renderer/glyph/bezier\"),Circle:t(\"../renderer/glyph/circle\"),Gear:t(\"../renderer/glyph/gear\"),Image:t(\"../renderer/glyph/image\"),ImageRGBA:t(\"../renderer/glyph/image_rgba\"),ImageURL:t(\"../renderer/glyph/image_url\"),Line:t(\"../renderer/glyph/line\"),MultiLine:t(\"../renderer/glyph/multi_line\"),Oval:t(\"../renderer/glyph/oval\"),Patch:t(\"../renderer/glyph/patch\"),Patches:t(\"../renderer/glyph/patches\"),Quad:t(\"../renderer/glyph/quad\"),Quadratic:t(\"../renderer/glyph/quadratic\"),Ray:t(\"../renderer/glyph/ray\"),Rect:t(\"../renderer/glyph/rect\"),Segment:t(\"../renderer/glyph/segment\"),Text:t(\"../renderer/glyph/text\"),Wedge:t(\"../renderer/glyph/wedge\"),Asterisk:t(\"../renderer/glyph/marker/asterisk\"),CircleCross:t(\"../renderer/glyph/marker/circle_cross\"),CircleX:t(\"../renderer/glyph/marker/circle_x\"),Cross:t(\"../renderer/glyph/marker/cross\"),Diamond:t(\"../renderer/glyph/marker/diamond\"),DiamondCross:t(\"../renderer/glyph/marker/diamond_cross\"),InvertedTriangle:t(\"../renderer/glyph/marker/inverted_triangle\"),Square:t(\"../renderer/glyph/marker/square\"),SquareCross:t(\"../renderer/glyph/marker/square_cross\"),SquareX:t(\"../renderer/glyph/marker/square_x\"),Triangle:t(\"../renderer/glyph/marker/triangle\"),X:t(\"../renderer/glyph/marker/x\"),LinearAxis:t(\"../renderer/guide/linear_axis\"),LogAxis:t(\"../renderer/guide/log_axis\"),CategoricalAxis:t(\"../renderer/guide/categorical_axis\"),DatetimeAxis:t(\"../renderer/guide/datetime_axis\"),Grid:t(\"../renderer/guide/grid\"),BoxSelection:t(\"../renderer/overlay/box_selection\"),PolySelection:t(\"../renderer/overlay/poly_selection\"),ColumnDataSource:t(\"../source/column_data_source\"),ServerDataSource:t(\"../source/server_data_source\"),BlazeDataSource:t(\"../source/blaze_data_source\"),AjaxDataSource:t(\"../source/ajax_data_source\"),AbstractTicker:t(\"../ticking/abstract_ticker\"),AdaptiveTicker:t(\"../ticking/adaptive_ticker\"),BasicTicker:t(\"../ticking/basic_ticker\"),CategoricalTicker:t(\"../ticking/categorical_ticker\"),CompositeTicker:t(\"../ticking/composite_ticker\"),DatetimeTicker:t(\"../ticking/datetime_ticker\"),DaysTicker:t(\"../ticking/days_ticker\"),LogTicker:t(\"../ticking/log_ticker\"),MonthsTicker:t(\"../ticking/months_ticker\"),SingleIntervalTicker:t(\"../ticking/single_interval_ticker\"),YearsTicker:t(\"../ticking/years_ticker\"),BasicTickFormatter:t(\"../ticking/basic_tick_formatter\"),LogTickFormatter:t(\"../ticking/log_tick_formatter\"),CategoricalTickFormatter:t(\"../ticking/categorical_tick_formatter\"),DatetimeTickFormatter:t(\"../ticking/datetime_tick_formatter\"),NumeralTickFormatter:t(\"../ticking/numeral_tick_formatter\"),PrintfTickFormatter:t(\"../ticking/printf_tick_formatter\"),ButtonTool:t(\"../tool/button_tool\"),ActionTool:t(\"../tool/actions/action_tool\"),PreviewSaveTool:t(\"../tool/actions/preview_save_tool\"),ResetTool:t(\"../tool/actions/reset_tool\"),HelpTool:t(\"../tool/actions/help_tool\"),BoxSelectTool:t(\"../tool/gestures/box_select_tool\"),BoxZoomTool:t(\"../tool/gestures/box_zoom_tool\"),GestureTool:t(\"../tool/gestures/gesture_tool\"),LassoSelectTool:t(\"../tool/gestures/lasso_select_tool\"),PanTool:t(\"../tool/gestures/pan_tool\"),PolySelectTool:t(\"../tool/gestures/poly_select_tool\"),SelectTool:t(\"../tool/gestures/select_tool\"),ResizeTool:t(\"../tool/gestures/resize_tool\"),TapTool:t(\"../tool/gestures/tap_tool\"),WheelZoomTool:t(\"../tool/gestures/wheel_zoom_tool\"),CrosshairTool:t(\"../tool/inspectors/crosshair_tool\"),HoverTool:t(\"../tool/inspectors/hover_tool\"),InspectTool:t(\"../tool/inspectors/inspect_tool\"),editors:[t(\"../widget/cell_editors\"),\"Editor\"],formatters:[t(\"../widget/cell_formatters\"),\"Formatter\"],TableColumn:t(\"../widget/table_column\"),DataTable:t(\"../widget/data_table\"),Paragraph:t(\"../widget/paragraph\"),HBox:t(\"../widget/hbox\"),VBox:t(\"../widget/vbox\"),VBoxForm:t(\"../widget/vboxform\"),TextInput:t(\"../widget/text_input\"),AutocompleteInput:t(\"../widget/autocomplete_input\"),PreText:t(\"../widget/pretext\"),Select:t(\"../widget/selectbox\"),Slider:t(\"../widget/slider\"),CrossFilter:t(\"../widget/crossfilter\"),MultiSelect:t(\"../widget/multiselect\"),DateRangeSlider:t(\"../widget/date_range_slider\"),DatePicker:t(\"../widget/date_picker\"),Panel:t(\"../widget/panel\"),Tabs:t(\"../widget/tabs\"),Dialog:t(\"../widget/dialog\"),Icon:t(\"../widget/icon\"),Button:t(\"../widget/button\"),Toggle:t(\"../widget/toggle\"),Dropdown:t(\"../widget/dropdown\"),CheckboxGroup:t(\"../widget/checkbox_group\"),RadioGroup:t(\"../widget/radio_group\"),CheckboxButtonGroup:t(\"../widget/checkbox_button_group\"),RadioButtonGroup:t(\"../widget/radio_button_group\"),SimpleApp:t(\"../widget/simpleapp\"),AppHBox:t(\"../widget/layouts/apphbox\"),AppVBox:t(\"../widget/layouts/appvbox\"),AppVBoxForm:t(\"../widget/layouts/appvboxform\"),ar_transforms:[t(\"../ar/transforms\")]},l={},p=function(t){var e;return new(e=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return g(i,e),i.prototype.model=t,i}(n))},h=function(t){var e,i,n,r,o,a,l,u,c;o={};for(n in t)if(a=t[n],s.isArray(a)){u=a[0],c=null!=(r=a[1])?r:\"\";for(l in u)e=u[l],i=l+c,o[i]=e}else o[n]=a;return o},a=null,r=function(t){var e;return null==a&&(a=h(c)),l[t]?l[t]:(e=a[t],null==e.Collection&&(e.Collection=p(e.Model)),e.Collection)},r.register=function(t,e){return l[t]=e},u={},e.exports={collection_overrides:l,locations:c,index:u,Collections:r,Config:o}},{\"../action/callback\":23,\"../action/open_url\":24,\"../ar/transforms\":28,\"../mapper/categorical_mapper\":68,\"../mapper/linear_color_mapper\":70,\"../mapper/linear_mapper\":71,\"../range/data_range1d\":74,\"../range/factor_range\":75,\"../range/range1d\":76,\"../renderer/annotation/legend\":77,\"../renderer/annotation/span\":78,\"../renderer/annotation/tooltip\":79,\"../renderer/glyph/annular_wedge\":80,\"../renderer/glyph/annulus\":81,\"../renderer/glyph/arc\":82,\"../renderer/glyph/bezier\":83,\"../renderer/glyph/circle\":84,\"../renderer/glyph/gear\":85,\"../renderer/glyph/glyph_renderer\":87,\"../renderer/glyph/image\":88,\"../renderer/glyph/image_rgba\":89,\"../renderer/glyph/image_url\":90,\"../renderer/glyph/line\":91,\"../renderer/glyph/marker/asterisk\":92,\"../renderer/glyph/marker/circle_cross\":93,\"../renderer/glyph/marker/circle_x\":94,\"../renderer/glyph/marker/cross\":95,\"../renderer/glyph/marker/diamond\":96,\"../renderer/glyph/marker/diamond_cross\":97,\"../renderer/glyph/marker/inverted_triangle\":98,\"../renderer/glyph/marker/square\":100,\"../renderer/glyph/marker/square_cross\":101,\"../renderer/glyph/marker/square_x\":102,\"../renderer/glyph/marker/triangle\":103,\"../renderer/glyph/marker/x\":104,\"../renderer/glyph/multi_line\":105,\"../renderer/glyph/oval\":106,\"../renderer/glyph/patch\":107,\"../renderer/glyph/patches\":108,\"../renderer/glyph/quad\":109,\"../renderer/glyph/quadratic\":110,\"../renderer/glyph/ray\":111,\"../renderer/glyph/rect\":112,\"../renderer/glyph/segment\":113,\"../renderer/glyph/text\":114,\"../renderer/glyph/wedge\":115,\"../renderer/guide/categorical_axis\":117,\"../renderer/guide/datetime_axis\":118,\"../renderer/guide/grid\":119,\"../renderer/guide/linear_axis\":120,\"../renderer/guide/log_axis\":121,\"../renderer/overlay/box_selection\":122,\"../renderer/overlay/poly_selection\":123,\"../source/ajax_data_source\":130,\"../source/blaze_data_source\":131,\"../source/column_data_source\":132,\"../source/server_data_source\":134,\"../ticking/abstract_ticker\":135,\"../ticking/adaptive_ticker\":136,\"../ticking/basic_tick_formatter\":137,\"../ticking/basic_ticker\":138,\"../ticking/categorical_tick_formatter\":139,\"../ticking/categorical_ticker\":140,\"../ticking/composite_ticker\":141,\"../ticking/datetime_tick_formatter\":142,\"../ticking/datetime_ticker\":143,\"../ticking/days_ticker\":144,\"../ticking/log_tick_formatter\":145,\"../ticking/log_ticker\":146,\"../ticking/months_ticker\":147,\"../ticking/numeral_tick_formatter\":148,\"../ticking/printf_tick_formatter\":149,\"../ticking/single_interval_ticker\":150,\"../ticking/years_ticker\":152,\"../tool/actions/action_tool\":153,\"../tool/actions/help_tool\":154,\"../tool/actions/preview_save_tool\":155,\"../tool/actions/reset_tool\":157,\"../tool/button_tool\":158,\"../tool/gestures/box_select_tool\":160,\"../tool/gestures/box_zoom_tool\":161,\"../tool/gestures/gesture_tool\":162,\"../tool/gestures/lasso_select_tool\":163,\"../tool/gestures/pan_tool\":164,\"../tool/gestures/poly_select_tool\":165,\"../tool/gestures/resize_tool\":166,\"../tool/gestures/select_tool\":167,\"../tool/gestures/tap_tool\":168,\"../tool/gestures/wheel_zoom_tool\":169,\"../tool/inspectors/crosshair_tool\":170,\"../tool/inspectors/hover_tool\":171,\"../tool/inspectors/inspect_tool\":172,\"../widget/autocomplete_input\":178,\"../widget/button\":179,\"../widget/cell_editors\":180,\"../widget/cell_formatters\":181,\"../widget/checkbox_button_group\":182,\"../widget/checkbox_group\":183,\"../widget/crossfilter\":184,\"../widget/data_table\":188,\"../widget/date_picker\":189,\"../widget/date_range_slider\":190,\"../widget/dialog\":191,\"../widget/dropdown\":193,\"../widget/hbox\":194,\"../widget/icon\":195,\"../widget/layouts/apphbox\":196,\"../widget/layouts/appvbox\":197,\"../widget/layouts/appvboxform\":198,\"../widget/multiselect\":200,\"../widget/panel\":202,\"../widget/paragraph\":203,\"../widget/pretext\":204,\"../widget/radio_button_group\":205,\"../widget/radio_group\":206,\"../widget/selectbox\":207,\"../widget/simpleapp\":209,\"../widget/slider\":210,\"../widget/table_column\":212,\"../widget/tabs\":213,\"../widget/text_input\":215,\"../widget/toggle\":217,\"../widget/vbox\":218,\"../widget/vboxform\":219,\"./canvas\":33,\"./cartesian_frame\":35,\n",
       "                \"./collection\":37,\"./custom\":39,\"./geojs_plot\":40,\"./gmap_plot\":41,\"./grid_plot\":42,\"./layout_box\":46,\"./plot\":50,\"./plot_context\":51,\"./selection_manager\":57,\"./selector\":58,\"./tool_events\":63,underscore:22}],30:[function(t,e,i){var n,r;n=function(){return[[1/0,-(1/0)],[1/0,-(1/0)]]},r=function(t,e){return t[0][0]=Math.min(t[0][0],e[0][0]),t[0][1]=Math.max(t[0][1],e[0][1]),t[1][0]=Math.min(t[1][0],e[1][0]),t[1][1]=Math.max(t[1][1],e[1][1]),t},e.exports={empty:n,extend:r}},{}],31:[function(t,e,i){var n,r,o;n=t(\"underscore\"),r=function(t,e,i,r){var s,a,l,u,c,h,p,d,f,g,m;for(null==r&&(r=[]),s=[],f=n.filter(e,function(e){return!n.has(t,e.id)}),l=a=0,h=f.length;h>a;l=++a)d=f[l],m=n.extend({},i,{model:d}),t[d.id]=l<r.length?new r[l](m):new d.default_view(m),t[d.id].$el.find(\"*[class*='ui-']\").each(function(t,e){return e.className=o(e)}),s.push(t[d.id]);for(g=n.difference(n.keys(t),n.pluck(e,\"id\")),u=0,p=g.length;p>u;u++)c=g[u],t[c].remove(),delete t[c];return s},o=function(t){var e,i;if(null!=t.className)return e=t.className.split(\" \"),i=n.map(e,function(t){return t=t.trim(),0===t.indexOf(\"ui-\")?\"bk-\"+t:t}),i.join(\" \")},r.jQueryUIPrefixer=o,e.exports=r=r},{underscore:22}],32:[function(t,e,i){var n,r,o,s;r=t(\"underscore\"),n=t(\"jquery\"),s=t(\"./load_models\"),o=function(e){var i,o,a,l,u,c;if(i=t(\"./base\").Config,o=e[0].get(\"doc\"),null==o)throw new Error(\"Unset 'doc' in \"+e[0]);return a=function(){var t,i,n;for(n=[],t=0,i=e.length;i>t;t++)l=e[t],n.push({type:l.type,attributes:r.clone(l.attributes)});return n}(),a=JSON.stringify(a),u=i.prefix+\"bokeh/bb/\"+o+\"/bulkupsert\",c=n.ajax({type:\"POST\",url:u,contentType:\"application/json\",data:a,header:{client:\"javascript\"}}),c.done(function(t){return s(t.modelspecs)}),c},e.exports={bulk_save:o}},{\"./base\":29,\"./load_models\":47,jquery:17,underscore:22}],33:[function(t,e,i){(function(i){var n,r,o,s,a,l,u,c,h,p,d,f,g=function(t,e){function i(){this.constructor=t}for(var n in e)m.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},m={}.hasOwnProperty;h=t(\"underscore\"),d=null!=i._bokehTest?i._bokehTest.kiwi:t(\"kiwi\"),a=d.Expression,o=d.Constraint,u=d.Operator,p=t(\"./canvas_template\"),s=t(\"./continuum_view\"),l=t(\"./layout_box\"),f=t(\"./logging\").logger,c=t(\"./solver\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return g(e,t),e.prototype.className=\"bk-canvas-wrapper\",e.prototype.template=p,e.prototype.initialize=function(t){var i,n,r;return e.__super__.initialize.call(this,t),r={map:this.mget(\"map\")},i=this.template(r),this.$el.html(i),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!=(n=this.$(\"div.bk-canvas-map\"))?n:null,f.debug(\"CanvasView initialized\")},e.prototype.render=function(t){var e,i,n,r,o;return null==t&&(t=!1),this.model.new_bounds||t?(this.ctx=this.canvas[0].getContext(\"2d\"),this.mget(\"use_hidpi\")?(i=window.devicePixelRatio||1,e=this.ctx.webkitBackingStorePixelRatio||this.ctx.mozBackingStorePixelRatio||this.ctx.msBackingStorePixelRatio||this.ctx.oBackingStorePixelRatio||this.ctx.backingStorePixelRatio||1,r=i/e):r=1,o=this.mget(\"width\"),n=this.mget(\"height\"),this.$el.attr(\"style\",\"z-index: 50; width:\"+o+\"px; height:\"+n+\"px\"),this.canvas.attr(\"style\",\"width:\"+o+\"px;height:\"+n+\"px\"),this.canvas.attr(\"width\",o*r).attr(\"height\",n*r),this.$el.attr(\"width\",o).attr(\"height\",n),this.canvas_events.attr(\"style\",\"z-index:100; position:absolute; top:0; left:0; width:\"+o+\"px; height:\"+n+\"px;\"),this.canvas_overlay.attr(\"style\",\"z-index:75; position:absolute; top:0; left:0; width:\"+o+\"px; height:\"+n+\"px;\"),this.ctx.scale(r,r),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},e.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}},e.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}},e.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}},e.prototype._fixup_measure_text=function(t){return t.measureText&&null==t.html5MeasureText?(t.html5MeasureText=t.measureText,t.measureText=function(e){var i;return i=t.html5MeasureText(e),i.ascent=1.6*t.html5MeasureText(\"m\").width,i}):void 0},e}(s),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return g(e,t),e.prototype.type=\"Canvas\",e.prototype.default_view=r,e.prototype.initialize=function(t,i){var n;return n=new c,this.set(\"solver\",n),e.__super__.initialize.call(this,t,i),this.new_bounds=!0,n.add_constraint(new o(new a(this._left),u.Eq)),n.add_constraint(new o(new a(this._bottom),u.Eq)),this._set_dims([this.get(\"canvas_width\"),this.get(\"canvas_height\")]),f.debug(\"Canvas initialized\")},e.prototype.vx_to_sx=function(t){return t},e.prototype.vy_to_sy=function(t){return this.get(\"height\")-(t+1)},e.prototype.v_vx_to_sx=function(t){var e,i,n,r;for(i=e=0,n=t.length;n>e;i=++e)r=t[i],t[i]=r;return t},e.prototype.v_vy_to_sy=function(t){var e,i,n,r,o;for(e=this.get(\"height\"),n=i=0,r=t.length;r>i;n=++i)o=t[n],t[n]=e-(o+1);return t},e.prototype.sx_to_vx=function(t){return t},e.prototype.sy_to_vy=function(t){return this.get(\"height\")-(t+1)},e.prototype.v_sx_to_vx=function(t){var e,i,n,r;for(i=e=0,n=t.length;n>e;i=++e)r=t[i],t[i]=r;return t},e.prototype.v_sy_to_vy=function(t){var e,i,n,r,o;for(e=this.get(\"height\"),n=i=0,r=t.length;r>i;n=++i)o=t[n],t[n]=e-(o+1);return t},e.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 o(new a(this._width,-t),u.Eq),this.solver.add_constraint(this._width_constraint),e&&this.solver.update_variables(),this.new_bounds=!0},e.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 o(new a(this._height,-t),u.Eq),this.solver.add_constraint(this._height_constraint),e&&this.solver.update_variables(),this.new_bounds=!0},e.prototype._set_dims=function(t,e){return null==e&&(e=!0),this._set_width(t[0],!1),this._set_height(t[1],!1),this.solver.update_variables(e)},e.prototype.defaults=function(){return h.extend({},e.__super__.defaults.call(this),{width:300,height:300,map:!1,mousedown_callbacks:[],mousemove_callbacks:[],use_hidpi:!0})},e}(l.Model),e.exports={Model:n}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"./canvas_template\":34,\"./continuum_view\":38,\"./layout_box\":46,\"./logging\":48,\"./solver\":60,kiwi:229,underscore:22}],34:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;(\"undefined\"==typeof t||null==t)&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}),function(){(function(){this.map&&i.push('\\n<div class=\"bk-canvas-map\"></div>\\n'),i.push('\\n<div class=\"bk-canvas-events\" />\\n<div class=\"bk-canvas-overlays\" />\\n<canvas class=\\'bk-canvas\\'></canvas>')}).call(this)}.call(t),t.safe=n,t.escape=r,i.join(\"\")}},{}],35:[function(t,e,i){var n,r,o,s,a,l,u,c,h=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;u=t(\"underscore\"),s=t(\"./layout_box\"),c=t(\"./logging\").logging,a=t(\"../mapper/linear_mapper\"),l=t(\"../mapper/log_mapper\"),r=t(\"../mapper/categorical_mapper\"),o=t(\"../mapper/grid_mapper\"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type=\"CartesianFrame\",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),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 o.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)},e.prototype.map_to_screen=function(t,e,i,n,r){var o,s,a,l;return null==n&&(n=\"default\"),null==r&&(r=\"default\"),a=this.get(\"x_mappers\")[n].v_map_to_target(t),o=i.v_vx_to_sx(a),l=this.get(\"y_mappers\")[r].v_map_to_target(e),s=i.v_vy_to_sy(l),[o,s]},e.prototype._get_ranges=function(t){var e,i,n,r;if(r={},r[\"default\"]=this.get(t+\"_range\"),e=this.get(\"extra_\"+t+\"_ranges\"),null!=e)for(i in e)n=e[i],r[i]=this.resolve_ref(n);return r},e.prototype._get_mappers=function(t,e,i){var n,o,s,u;o={};for(s in e){if(u=e[s],\"Range1d\"===u.type||\"DataRange1d\"===u.type)n=\"log\"===this.get(t+\"_mapper_type\")?l.Model:a.Model;else{if(\"FactorRange\"!==u.type)return logger.warn(\"unknown range type for range '\"+s+\"': \"+u),null;n=r.Model}o[s]=new n({source_range:u,target_range:i})}return o},e.prototype._update_mappers=function(){var t,e,i,n,r;i=this.get(\"x_mappers\");for(e in i)t=i[e],t.set(\"target_range\",this.get(\"h_range\"));n=this.get(\"y_mappers\"),r=[];for(e in n)t=n[e],r.push(t.set(\"target_range\",this.get(\"v_range\")));return r},e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{extra_x_ranges:{},extra_y_ranges:{}})},e}(s.Model),e.exports={Model:n}},{\"../mapper/categorical_mapper\":68,\"../mapper/grid_mapper\":69,\"../mapper/linear_mapper\":71,\"../mapper/log_mapper\":72,\"./layout_box\":46,\"./logging\":48,underscore:22}],36:[function(t,e,i){var n,r,o,s=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;o=t(\"underscore\"),r=t(\"./continuum_view\"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.attributes={\"class\":\"bk-closewrapper\"},e.prototype.delegateEvents=function(t){return e.__super__.delegateEvents.call(this,t)},e.prototype.events={\"click .bk-close\":\"close\"},e.prototype.close=function(t){return this.view.remove(),this.remove()},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.view=t.view,this.render()},e.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)},e}(r),e.exports={View:n}},{\"./continuum_view\":38,underscore:22}],37:[function(t,e,i){var n,r,o=function(t,e){function i(){this.constructor=t}for(var n in e)s.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},s={}.hasOwnProperty;n=t(\"backbone\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e}(n.Collection),e.exports=r},{backbone:1}],38:[function(t,e,i){var n,r,o,s=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;o=t(\"underscore\"),n=t(\"backbone\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.initialize=function(t){return o.has(t,\"id\")?void 0:this.id=o.uniqueId(\"ContinuumView\")},e.prototype.bind_bokeh_events=function(){return\"pass\"},e.prototype.delegateEvents=function(t){return e.__super__.delegateEvents.call(this,t)},e.prototype.remove=function(){var t,i,n;if(o.has(this,\"eventers\")){t=this.eventers;for(i in t)a.call(t,i)&&(n=t[i],n.off(null,null,this))}return this.trigger(\"remove\",this),e.__super__.remove.call(this)},e.prototype.mget=function(){return this.model.get.apply(this.model,arguments)},e.prototype.mset=function(){return this.model.set.apply(this.model,arguments)},e.prototype.render_end=function(){return\"pass\"},e}(n.View),e.exports=r},{backbone:1,underscore:22}],39:[function(t,e,i){var n,r;n=t(\"underscore\"),r=function(){return n.uniqueId=function(t){var e,i,n,r,o;for(r=[],e=\"0123456789ABCDEF\",i=n=0;31>=n;i=++n)r[i]=e.substr(Math.floor(16*Math.random()),1);return r[12]=\"4\",r[16]=e.substr(3&r[16]|8,1),o=r.join(\"\"),t?t+\"-\"+o:o}},n.isNullOrUndefined=function(t){return n.isNull(t)||n.isUndefined(t)},n.setdefault=function(t,e,i){return n.has(t,e)?t[e]:(t[e]=i,i)},e.exports={monkey_patch:r}},{underscore:22}],40:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t(\"underscore\"),s=t(\"./solver\"),o=t(\"./plot\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,a.defaults(t,this.default_options)),this.zoom_count=null},e.prototype.bind_bokeh_events=function(){var t,i,n,r,o;return e.__super__.bind_bokeh_events.call(this),o=this.frame.get(\"width\"),i=this.frame.get(\"height\"),n=this.canvas.vx_to_sx(this.frame.get(\"left\")),r=this.canvas.vy_to_sy(this.frame.get(\"top\")),this.canvas_view.map_div.attr(\"style\",\"top: \"+r+\"px; left: \"+n+\"px; position: absolute\"),this.canvas_view.map_div.attr(\"style\",\"width:\"+o+\"px;\"),this.canvas_view.map_div.attr(\"style\",\"height:\"+i+\"px;\"),this.canvas_view.map_div.width(o+\"px\").height(i+\"px\"),this.initial_zoom=this.mget(\"map_options\").zoom,t=function(t){return function(){var e,i;return i=t.mget(\"map_options\"),e={center:[i.lat,i.lng],zoom:i.zoom,node:t.canvas_view.map_div[0]},t.map=geo.map(e),t.map.createLayer(\"osm\")}}(this),$.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()})})})})})},e.prototype._map_hook=function(t,e){var i,n,r,o;return n=e[0],r=e[1],o=e[2],i=e[3],this.canvas_view.map_div.attr(\"style\",\"top: \"+r+\"px; left: \"+n+\"px;\"),this.canvas_view.map_div.width(o+\"px\").height(i+\"px\")},e.prototype._paint_empty=function(t,e){var i,n,r,o,s,a;return s=this.canvas.get(\"width\"),o=this.canvas.get(\"height\"),r=e[0],a=e[1],n=e[2],i=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(r,a),t.lineTo(r+n,a),t.lineTo(r+n,a+i),t.lineTo(r,a+i),t.lineTo(r,a),t.closePath(),t.fillStyle=this.mget(\"border_fill\"),t.fill()},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type=\"GeoJSPlot\",e.prototype.default_view=r,e.prototype.initialize=function(t,i){return this.use_map=!0,e.__super__.initialize.call(this,t,i)},e.prototype.parent_properties=[\"border_fill\",\"min_border\",\"min_border_top\",\"min_border_bottom\",\"min_border_left\",\"min_border_right\"],e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{title:\"GeoJSPlot\"})},e.prototype.display_defaults=function(){return a.extend({},e.__super__.display_defaults.call(this),{border_fill:\"#fff\"})},e}(o.Model),e.exports={Model:n,View:r}},{\"./plot\":50,\"./solver\":60,underscore:22}],41:[function(t,e,i){var n,r,o,s,a,l=function(t,e){return function(){return t.apply(e,arguments)}},u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;a=t(\"underscore\"),s=t(\"./solver\"),o=t(\"./plot\"),r=function(t){function e(){return this.bounds_change=l(this.bounds_change,this),e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,a.defaults(t,this.default_options)),this.zoom_count=null},e.prototype.update_range=function(t){var e,i,n,r,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),n=Math.max(s.start,s.end),r=Math.min(a.start,a.end),i=Math.max(a.start,a.end),e=new google.maps.LatLng((i+r)/2,(n+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()},e.prototype.bind_bokeh_events=function(){var t,i,n,r,o,s;return e.__super__.bind_bokeh_events.call(this),s=this.frame.get(\"width\"),i=this.frame.get(\"height\"),n=this.canvas.vx_to_sx(this.frame.get(\"left\")),o=this.canvas.vy_to_sy(this.frame.get(\"top\")),this.canvas_view.map_div.attr(\"style\",\"top: \"+o+\"px; left: \"+n+\"px; position: absolute\"),this.canvas_view.map_div.attr(\"style\",\"width:\"+s+\"px;\"),this.canvas_view.map_div.attr(\"style\",\"height:\"+i+\"px;\"),this.canvas_view.map_div.width(s+\"px\").height(i+\"px\"),this.initial_zoom=this.mget(\"map_options\").zoom,t=function(t){return function(){var e,i,n,r;return n=window.google.maps,i={satellite:n.MapTypeId.SATELLITE,terrain:n.MapTypeId.TERRAIN,roadmap:n.MapTypeId.ROADMAP,hybrid:n.MapTypeId.HYBRID},r=t.mget(\"map_options\"),e={center:new n.LatLng(r.lat,r.lng),zoom:r.zoom,disableDefaultUI:!0,mapTypeId:i[r.map_type]},null!=r.styles&&(e.styles=JSON.parse(r.styles)),t.map=new n.Map(t.canvas_view.map_div[0],e),n.event.addListener(t.map,\"bounds_changed\",t.bounds_change)}}(this),null==window._bokeh_gmap_loads&&(window._bokeh_gmap_loads=[]),null!=window.google&&null!=window.google.maps?a.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 a.each(window._bokeh_gmap_loads,a.defer)},r=document.createElement(\"script\"),r.type=\"text/javascript\",r.src=\"https://maps.googleapis.com/maps/api/js?v=3& sensor=false&callback=_bokeh_gmap_callback\",document.body.appendChild(r))},e.prototype.bounds_change=function(){var t,e,i;return t=this.map.getBounds(),e=t.getNorthEast(),i=t.getSouthWest(),this.x_range.set({start:i.lng(),end:e.lng(),silent:!0}),this.y_range.set({start:i.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()},e.prototype._map_hook=function(t,e){var i,n,r,o;return n=e[0],r=e[1],o=e[2],i=e[3],this.canvas_view.map_div.attr(\"style\",\"top: \"+r+\"px; left: \"+n+\"px;\"),this.canvas_view.map_div.width(o+\"px\").height(i+\"px\")},e.prototype._paint_empty=function(t,e){var i,n,r,o,s,a;return s=this.canvas.get(\"width\"),o=this.canvas.get(\"height\"),r=e[0],a=e[1],n=e[2],i=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(r,a),t.lineTo(r+n,a),t.lineTo(r+n,a+i),t.lineTo(r,a+i),t.lineTo(r,a),t.closePath(),t.fillStyle=this.mget(\"border_fill\"),t.fill()},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type=\"GMapPlot\",e.prototype.default_view=r,e.prototype.initialize=function(t,i){return this.use_map=!0,e.__super__.initialize.call(this,t,i)},e.prototype.parent_properties=[\"border_fill\",\"min_border\",\"min_border_top\",\"min_border_bottom\",\"min_border_left\",\"min_border_right\"],e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{title:\"GMapPlot\"})},e.prototype.display_defaults=function(){return a.extend({},e.__super__.display_defaults.call(this),{border_fill:\"#fff\"})},e}(o.Model),e.exports={Model:n,View:r}},{\"./plot\":50,\"./solver\":60,underscore:22}],42:[function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d,f,g,m,_=function(t,e){function i(){this.constructor=t}for(var n in e)v.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},v={}.hasOwnProperty,y=function(t,e){return function(){return t.apply(e,arguments)}};n=t(\"jquery\"),d=t(\"underscore\"),r=t(\"backbone\"),f=t(\"./build_views\"),o=t(\"./continuum_view\"),c=t(\"./has_properties\"),g=t(\"./logging\").logger,h=t(\"./tool_manager\"),m=t(\"./plot_template\"),p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this,\"do\",this[\"do\"]),this.listenTo(this,\"change:active\",this.active),null},e.prototype[\"do\"]=function(){var t,e,i,n;for(i=this.attributes.tools,t=0,e=i.length;e>t;t++)n=i[t],n.trigger(\"do\");return null},e.prototype.active=function(){var t,e,i,n;for(i=this.attributes.tools,t=0,e=i.length;e>t;t++)n=i[t],n.set(\"active\",this.attributes.active);return null},e.prototype.attrs_and_props=function(){return this.attributes.tools[0].attrs_and_props()},e.prototype.get=function(t){return this.attributes.tools[0].get(t)},e.prototype.set=function(t,i){var n,r,o,s;for(e.__super__.set.call(this,t,i),o=this.attributes.tools,n=0,r=o.length;r>n;n++)s=o[n],s.set(t,i);return null},e}(r.Model),l=function(t){function e(){return this._active_change=y(this._active_change,this),e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype._init_tools=function(){var t,e,i,n,r,o,s,a,l,u,c,h,f,g,m,_,v,y,b,w,x,k,C,M,D,T,S;for(o={},t={},i={},m=this.get(\"tool_managers\"),n=0,u=m.length;u>n;n++){C=m[n],_=C.get(\"gestures\");for(e in _){r=_[e],e in i||(i[e]={}),v=r.tools;for(s=0,c=v.length;c>s;s++)D=v[s],D.type in i[e]||(i[e][D.type]=[]),i[e][D.type].push(D)}for(y=C.get(\"inspectors\"),a=0,h=y.length;h>a;a++)D=y[a],D.type in o||(o[D.type]=[]),o[D.type].push(D);for(b=C.get(\"actions\"),l=0,f=b.length;f>l;l++)D=b[l],D.type in t||(t[D.type]=[]),t[D.type].push(D)}for(e in i){w=i[e];for(S in w)T=w[S],T.length===this.get(\"num_plots\")&&(g=new p({tools:T}),this.get(\"gestures\")[e].tools.push(g),this.listenTo(g,\"change:active\",d.bind(this._active_change,g)))}for(S in t)T=t[S],T.length===this.get(\"num_plots\")&&(g=new p({tools:T}),M=this.get(\"actions\"),M.push(g),this.set(\"actions\",M));for(S in o)T=o[S],T.length===this.get(\"num_plots\")&&(g=new p({tools:T}),M=this.get(\"inspectors\"),M.push(g),this.set(\"inspectors\",M));x=this.get(\"gestures\"),k=[];for(e in x)r=x[e],T=r.tools,0!==T.length&&(r.tools=d.sortBy(T,function(t){return t.get(\"default_order\")}),k.push(r.tools[0].set(\"active\",!0)));return k},e.prototype._active_change=function(t){var e,i,n,r;return i=t.get(\"event_type\"),(e=t.get(\"active\"))?(n=this.get(\"gestures\"),r=n[i].active,null!=r&&(g.debug(\"GridToolManager: deactivating tool: \"+r.type+\" (for event type '\"+i+\"'\"),r.set(\"active\",!1)),n[i].active=t,this.set(\"gestures\",n),g.debug(\"GridToolManager: activating tool: \"+t.type+\" (for event type '\"+i+\"'\"),null):null},e.prototype.defaults=function(){return d.extend({},e.__super__.defaults.call(this),{tool_manangers:[]})},e}(h.Model),u=function(t){function e(){return this.layout_widths=y(this.layout_widths,this),this.layout_heights=y(this.layout_heights,this),this.setup_layout_properties=y(this.setup_layout_properties,this),e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.setup_layout_properties=function(){var t,e,i,n,r,o;for(this.register_property(\"layout_heights\",this.layout_heights,!1),this.register_property(\"layout_widths\",this.layout_widths,!1),i=this.get(\"viewstates\"),n=[],t=0,e=i.length;e>t;t++)r=i[t],n.push(function(){var t,e,i;for(i=[],t=0,e=r.length;e>t;t++)o=r[t],this.add_dependencies(\"layout_heights\",o,\"height\"),i.push(this.add_dependencies(\"layout_widths\",o,\"width\"));return i}.call(this));return n},e.prototype.initialize=function(t,i){var n,r;return e.__super__.initialize.call(this,t,i),this.setup_layout_properties(),this.listenTo(this,\"change:viewstates\",this.setup_layout_properties),n=function(t){return function(){return d.reduce(t.get(\"layout_heights\"),function(t,e){return t+e},0)}}(this),this.register_property(\"height\",n,!1),this.add_dependencies(\"height\",this,\"layout_heights\"),r=function(t){return function(){return d.reduce(t.get(\"layout_widths\"),function(t,e){return t+e},0)}}(this),this.register_property(\"width\",r,!1),this.add_dependencies(\"width\",this,\"layout_widths\")},e.prototype.position_child_x=function(t,e){return t},e.prototype.position_child_y=function(t,e){return this.get(\"height\")-t-e},e.prototype.maxdim=function(t,e){return 0===e.length?0:d.max(d.map(e,function(e){return null!=e?e.get(t):0}))},e.prototype.layout_heights=function(){var t,e;return e=function(){var e,i,n,r;for(n=this.get(\"viewstates\"),r=[],e=0,i=n.length;i>e;e++)t=n[e],r.push(this.maxdim(\"height\",t));return r}.call(this)},e.prototype.layout_widths=function(){var t,e,i,n,r,o;return r=this.get(\"viewstates\")[0].length,i=function(){var t,e,i,s;for(i=d.range(r),s=[],t=0,e=i.length;e>t;t++)n=i[t],s.push(function(){var t,e,i,r;for(i=this.get(\"viewstates\"),r=[],t=0,e=i.length;e>t;t++)o=i[t],r.push(o[n]);return r}.call(this));return s}.call(this),e=function(){var e,n,r;for(r=[],e=0,n=i.length;n>e;e++)t=i[e],r.push(this.maxdim(\"width\",t));return r}.call(this)},e.prototype.defaults=function(){return d.extend({},e.__super__.defaults.call(this),{viewstates:[[]],border_space:0})},e}(c),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.className=\"\",e.prototype.template=m,e.prototype.initialize=function(t){var i,n;return e.__super__.initialize.call(this,t),this.viewstate=new u,this.child_views={},this.build_children(),this.bind_bokeh_events(),this.$el.html(this.template()),i=this.mget(\"toolbar_location\"),null!=i&&(n=\".bk-plot-\"+i,g.debug(\"attaching toolbar to \"+n+\" for plot \"+this.model.id),this.tm_view=new h.View({model:this.mget(\"tool_manager\"),el:this.$(n)})),this.render(),this},e.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)},e.prototype.build_children=function(){var t,e,i,n,r,o,s,a,l,u,c,h,p,d,g,m,_,v,y;for(t=[],p=this.mget(\"children\"),e=0,o=p.length;o>e;e++)for(_=p[e],i=0,s=_.length;s>i;i++)h=_[i],null!=h&&(h.set(\"toolbar_location\",null),t.push(h));for(f(this.child_views,t,{}),v=[],d=this.mget(\"children\"),n=0,a=d.length;a>n;n++){for(_=d[n],y=[],r=0,l=_.length;l>r;r++)h=_[r],null!=h&&y.push(this.child_views[h.id].canvas);v.push(y)}for(this.viewstate.set(\"viewstates\",v),g=this.mget(\"children\"),m=[],c=0,u=g.length;u>c;c++)_=g[c],m.push(function(){var t,e,i;for(i=[],e=0,t=_.length;t>e;e++)h=_[e],null!=h&&i.push(this.listenTo(h.solver,\"layout_update\",this.render));return i}.call(this));return m},e.prototype.render=function(){var t,i,r,o,s,a,l,u,c,p,f,g,m,_,v,y,b,w,x,k,C,M,D,T,S,A,P,I,E;for(e.__super__.render.call(this),y=d.values(this.child_views),a=0,p=y.length;p>a;a++)T=y[a],T.$el.detach();for(o=n(\"<div />\"),this.$(\".bk-plot-canvas-wrapper\").empty(),this.$(\".bk-plot-canvas-wrapper\").append(o),C=this.mget(\"toolbar_location\"),null!=C&&(M=\".bk-plot-\"+C,this.tm_view=new h.View({model:this.mget(\"tool_manager\"),el:this.$(M)}),this.tm_view.render()),k=this.viewstate.get(\"layout_heights\"),r=this.viewstate.get(\"layout_widths\"),I=[0],d.reduceRight(k.slice(1),function(t,e){var i;return i=t+e,I.push(i),i},0),I.reverse(),A=[0],d.reduce(r.slice(0),function(t,e){var i;return i=t+e,A.push(i),i},0),_=[],c=null,b=this.mget(\"children\"),w=l=0,f=b.length;f>l;w=++l)for(x=b[w],i=u=0,g=x.length;g>u;i=++u)m=x[i],null!=m&&(T=this.child_views[m.id],E=this.viewstate.position_child_y(I[w],T.canvas.get(\"height\")),P=this.viewstate.position_child_x(A[i],T.canvas.get(\"width\")),v=n(\"<div class='gp_plotwrapper'></div>\"),v.attr(\"style\",\"position: absolute; left:\"+P+\"px; top:\"+E+\"px\"),v.append(T.$el),o.append(v));return t=function(t,e){return t+e},D=d.reduce(k,t,0),s=D,S=d.reduce(r,t,0),o.attr(\"style\",\"position:relative; height:\"+s+\"px;width:\"+S+\"px\")},e}(o),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.type=\"GridPlot\",e.prototype.default_view=a,e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property(\"tool_manager\",function(){var t,e,i,n,r;for(t=[],r=d.flatten(this.get(\"children\")),e=0,i=r.length;i>e;e++)n=r[e],null!=n&&t.push(n);return new l({tool_managers:function(){var e,i,r;for(r=[],e=0,i=t.length;i>e;e++)n=t[e],r.push(n.get(\"tool_manager\"));return r}(),toolbar_location:this.get(\"toolbar_location\"),num_plots:t.length})},!0)},e.prototype.defaults=function(){return d.extend({},e.__super__.defaults.call(this),{children:[[]],toolbar_location:\"left\"})},e}(c),e.exports={Model:s,View:a}},{\"./build_views\":31,\"./continuum_view\":38,\"./has_properties\":44,\"./logging\":48,\"./plot_template\":52,\"./tool_manager\":64,backbone:1,jquery:17,underscore:22}],43:[function(t,e,i){var n,r,o,s=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;o=t(\"underscore\"),r=t(\"./has_properties\"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this._parent=r.prototype.get.apply(this,[\"parent\"])},e.prototype.get=function(t){var i;return this._display_defaults||(this._display_defaults=this.display_defaults()),\"parent\"===t?this._parent:(i=e.__super__.get.call(this,t),o.isUndefined(i)?this._parent&&o.indexOf(this._parent.parent_properties,t)>=0&&(i=this._parent.get(t),!o.isUndefined(i))?i:this._display_defaults[t]:i)},e.prototype.display_defaults=function(){return{}},e}(r),e.exports=n},{\"./has_properties\":44,underscore:22}],44:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;n=t(\"jquery\"),s=t(\"underscore\"),r=t(\"backbone\"),l=t(\"./logging\").logger,a=function(t){var e;if(s.isObject(t)){if(e=s.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},o=function(e){function i(t,e){this.rpc=u(this.rpc,this),this.resolve_ref=u(this.resolve_ref,this),this.convert_to_ref=u(this.convert_to_ref,this);var i;i=t||{},e||(e={}),this.cid=s.uniqueId(\"c\"),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(i=this.parse(i,e)||{}),i=s.defaults({},i,s.result(this,\"defaults\")),this.set(i,e),this.changed={},\n",
       "                this._base=!1,this.properties={},this.property_cache={},s.has(i,this.idAttribute)||(this.id=s.uniqueId(this.type),this.attributes[this.idAttribute]=this.id),e.defer_initialization||this.initialize.apply(this,arguments)}return c(i,e),i.prototype.toString=function(){return this.type+\"(\"+this.id+\")\"},i.prototype.destroy=function(t){return i.__super__.destroy.call(this,t),this.stopListening()},i.prototype.isNew=function(){return!1},i.prototype.attrs_and_props=function(){var t,e,i,n,r;for(t=s.clone(this.attributes),r=s.keys(this.properties),e=0,i=r.length;i>e;e++)n=r[e],t[n]=this.get(n);return t},i.prototype.forceTrigger=function(t){var e,i,n,r,o;for(s.isArray(t)||(t=[t]),o={},i=this._changing,this._changing=!0,t.length&&(this._pending=!0),n=0,r=t.length;r>n;n++)e=t[n],this.trigger(\"change:\"+e,this,this.attributes[e],o);if(i)return this;for(;this._pending;)this._pending=!1,this.trigger(\"change\",this,o);return this._pending=!1,this._changing=!1,this},i.prototype.set_obj=function(t,e,i){var n,r;s.isObject(t)||null===t?(n=t,i=e):(n={},n[t]=e);for(t in n)h.call(n,t)&&(r=n[t],n[t]=this.convert_to_ref(r));return this.set(n,i)},i.prototype.set=function(t,e,n){var r,o,a,l,u;s.isObject(t)||null===t?(r=t,n=e):(r={},r[t]=e),l=[];for(t in r)h.call(r,t)&&(u=r[t],s.has(this,\"properties\")&&s.has(this.properties,t)&&this.properties[t].setter&&(this.properties[t].setter.call(this,u,t),l.push(t)));if(!s.isEmpty(l))for(r=s.clone(r),o=0,a=l.length;a>o;o++)t=l[o],delete r[t];return s.isEmpty(r)?void 0:i.__super__.set.call(this,r,n)},i.prototype.convert_to_ref=function(t){return s.isArray(t)?s.map(t,this.convert_to_ref):t instanceof i?t.ref():void 0},i.prototype.add_dependencies=function(t,e,i){var n,r,o,a,l;for(s.isArray(i)||(i=[i]),a=this.properties[t],a.dependencies=a.dependencies.concat({obj:e,fields:i}),l=[],r=0,o=i.length;o>r;r++)n=i[r],l.push(this.listenTo(e,\"change:\"+n,a.callbacks.changedep));return l},i.prototype.register_setter=function(t,e){var i;return i=this.properties[t],i.setter=e},i.prototype.register_property=function(t,e,i){var n,r,o;return s.isUndefined(i)&&(i=!0),s.has(this.properties,t)&&this.remove_property(t),n=function(e){return function(){return e.trigger(\"changedep:\"+t)}}(this),o=function(e){return function(){var i,n,o;return i=!0,r.use_cache&&(o=e.get_cache(t),e.clear_cache(t),n=e.get(t),i=n!==o),i?(e.trigger(\"change:\"+t,e,e.get(t)),e.trigger(\"change\",e)):void 0}}(this),r={getter:e,dependencies:[],use_cache:i,setter:null,callbacks:{changedep:n,propchange:o}},this.properties[t]=r,this.listenTo(this,\"changedep:\"+t,r.callbacks.propchange),r},i.prototype.remove_property=function(t){var e,i,n,r,o,s,a,l,u,c;for(u=this.properties[t],i=u.dependencies,r=0,s=i.length;s>r;r++)for(e=i[r],l=e.obj,c=e.fields,o=0,a=c.length;a>o;o++)n=c[o],l.off(\"change:\"+n,u.callbacks.changedep,this);return this.off(\"changedep:\"+e),delete this.properties[t],u.use_cache?this.clear_cache(t):void 0},i.prototype.has_cache=function(t){return s.has(this.property_cache,t)},i.prototype.add_cache=function(t,e){return this.property_cache[t]=e},i.prototype.clear_cache=function(t,e){return delete this.property_cache[t]},i.prototype.get_cache=function(t){return this.property_cache[t]},i.prototype.get=function(t,e){var n;return null==e&&(e=!0),s.has(this.properties,t)?this._get_prop(t):(n=i.__super__.get.call(this,t),e?this.resolve_ref(n):n)},i.prototype._get_prop=function(t){var e,i,n;return n=this.properties[t],n.use_cache&&this.has_cache(t)?this.property_cache[t]:(i=n.getter,e=i.apply(this,[t]),this.properties[t].use_cache&&this.add_cache(t,e),e)},i.prototype.ref=function(){return{type:this.type,id:this.id}},i.prototype.resolve_ref=function(t){var e;return s.isUndefined(t)?t:s.isArray(t)?function(){var i,n,r;for(r=[],i=0,n=t.length;n>i;i++)e=t[i],r.push(this.resolve_ref(e));return r}.call(this):a(t)?t.type===this.type&&t.id===this.id?this:this.get_base().Collections(t.type).get(t.id):t},i.prototype.get_base=function(){return this._base||(this._base=t(\"./base\")),this._base},i.prototype.url=function(){var t,e;return t=this.get(\"doc\"),null==t&&l.error(\"unset 'doc' in \"+this),e=this.get_base().Config.prefix+\"bokeh/bb/\"+t+\"/\"+this.type+\"/\",this.isNew()?e:e+this.get(\"id\")+\"/\"},i.prototype.sync=function(t,e,i){return i.success(e.attributes,null,{})},i.prototype.defaults=function(){return{}},i.prototype.rpc=function(t,e,i){var r,o,s,a,l,u,c;if(a=this.get_base().Config.prefix,o=this.get(\"doc\"),null==o)throw new Error(\"Unset 'doc' in \"+this);return s=this.get(\"id\"),u=this.type,c=a+\"bokeh/bb/rpc/\"+o+\"/\"+u+\"/\"+s+\"/\"+t+\"/\",r={args:e,kwargs:i},l=n.ajax({type:\"POST\",url:c,data:JSON.stringify(r),contentType:\"application/json\",xhrFields:{withCredentials:!0}})},i}(r.Model),e.exports=o},{\"./base\":29,\"./logging\":48,backbone:1,jquery:17,underscore:22}],45:[function(t,e,i){var n,r,o,s,a,l,u;l=function(t,e,i,n){var r,o,s,a,l,u,c,h;for(o=!1,l=i[i.length-1],c=n[n.length-1],r=s=0,a=i.length;a>=0?a>s:s>a;r=a>=0?++s:--s)u=i[r],h=n[r],e>c!=e>h&&t>l+(e-c)/(h-c)*(u-l)&&(o=!o),l=u,c=h;return o},r=function(){var t;return t={\"0d\":{flag:!1,indices:[]},\"1d\":{indices:[]},\"2d\":{indices:[]}}},u=function(t){return t*t},o=function(t,e,i,n){return u(t-i)+u(e-n)},a=function(t,e,i){var n,r;return n=o(e.x,e.y,i.x,i.y),0===n?o(t.x,t.y,e.x,e.y):(r=((t.x-e.x)*(i.x-e.x)+(t.y-e.y)*(i.y-e.y))/n,0>r?o(t.x,t.y,e.x,e.y):r>1?o(t.x,t.y,i.x,i.y):o(t.x,t.y,e.x+r*(i.x-e.x),e.y+r*(i.y-e.y)))},s=function(t,e,i){return Math.sqrt(a(t,e,i))},n=function(t,e,i,n,r,o,s,a){var l,u,c,h,p,d,f;return c=(a-o)*(i-t)-(s-r)*(n-e),0===c?{hit:!1,x:null,y:null}:(l=e-o,u=t-r,h=(s-r)*l-(a-o)*u,p=(i-t)*l-(n-e)*u,l=h/c,u=p/c,d=t+l*(i-t),f=e+l*(n-e),{hit:l>0&&1>l&&u>0&&1>u,x:d,y:f})},e.exports={point_in_poly:l,create_hit_test_result:r,dist_2_pts:o,dist_to_segment:s,check_2_segments_intersect:n}},{}],46:[function(t,e,i){(function(i){var n,r,o,s,a,l,u,c,h,p,d,f,g=function(t,e){function i(){this.constructor=t}for(var n in e)m.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},m={}.hasOwnProperty;d=t(\"underscore\"),null!=i._bokehTest?f={}:(f=t(\"kiwi\"),p=f.Variable,o=f.Expression,n=f.Constraint,c=f.Operator,r=c.Eq,u=c.Le,s=c.Ge),a=t(\"./has_properties\"),h=t(\"../range/range1d\"),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return g(e,t),e.prototype.type=\"LayoutBox\",e.prototype.initialize=function(t,i){var a,l,u,c,d,g,m,_;for(e.__super__.initialize.call(this,t,i),this.solver=this.get(\"solver\"),this.var_constraints={},g=[\"top\",\"left\",\"width\",\"height\"],a=0,u=g.length;u>a;a++)_=g[a],d=\"_\"+_,this[d]=new p(_),this.register_property(_,this._get_var,!1),this.register_setter(_,this._set_var),this.solver.add_edit_variable(this[d],f.Strength.strong);for(m=[\"right\",\"bottom\"],l=0,c=m.length;c>l;l++)_=m[l],d=\"_\"+_,this[d]=new p(_),this.register_property(_,this._get_var,!1);return this.solver.add_constraint(new n(new o(this._top),s)),this.solver.add_constraint(new n(new o(this._bottom),s)),this.solver.add_constraint(new n(new o(this._left),s)),this.solver.add_constraint(new n(new o(this._right),s)),this.solver.add_constraint(new n(new o(this._width),s)),this.solver.add_constraint(new n(new o(this._height),s)),this.solver.add_constraint(new n(new o(this._left,this._width,[-1,this._right]),r)),this.solver.add_constraint(new n(new o(this._bottom,this._height,[-1,this._top]),r)),this._h_range=new h.Model({start:this.get(\"left\"),end:this.get(\"left\")+this.get(\"width\")}),this.register_property(\"h_range\",function(t){return function(){return t._h_range.set(\"start\",t.get(\"left\")),t._h_range.set(\"end\",t.get(\"left\")+t.get(\"width\")),t._h_range}}(this),!1),this.add_dependencies(\"h_range\",this,[\"left\",\"width\"]),this._v_range=new h.Model({start:this.get(\"bottom\"),end:this.get(\"bottom\")+this.get(\"height\")}),this.register_property(\"v_range\",function(t){return function(){return t._v_range.set(\"start\",t.get(\"bottom\")),t._v_range.set(\"end\",t.get(\"bottom\")+t.get(\"height\")),t._v_range}}(this),!1),this.add_dependencies(\"v_range\",this,[\"bottom\",\"height\"]),this._aspect_constraint=null,this.register_property(\"aspect\",function(t){return function(){return t.get(\"width\")/t.get(\"height\")}}(this),!0),this.register_setter(\"aspect\",this._set_aspect),this.add_dependencies(\"aspect\",this,[\"width\",\"height\"])},e.prototype.contains=function(t,e){return t>=this.get(\"left\")&&t<=this.get(\"right\")&&e>=this.get(\"bottom\")&&e<=this.get(\"top\")},e.prototype._set_var=function(t,e){var i,s;return s=this[\"_\"+e],d.isNumber(t)?this.solver.suggest_value(s,t):d.isString(t)?void 0:(i=new n(new o(s,[-1,t]),r),null==this.var_constraints[e]&&(this.var_constraints[e]=[]),this.var_constraints[e].push(i),this.solver.add_constraint(i))},e.prototype._get_var=function(t){return this[\"_\"+t].value()},e.prototype._set_aspect=function(t){var e;return null!=this._aspect_constraint?(this.solver.remove_constraint(this.aspect_constraint),e=new n(new o([t,this._height],[-1,this._width]),r),this._aspect_constraint=e,this.solver.add_constraint(e)):void 0},e.prototype.defaults=function(){return d.extend({},e.__super__.defaults.call(this),{top_strength:f.Strength.strong,bottom_strength:f.Strength.strong,left_strength:f.Strength.strong,right_strength:f.Strength.strong,width_strength:f.Strength.strong,height_strength:f.Strength.strong})},e}(a),e.exports={Model:l}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../range/range1d\":76,\"./has_properties\":44,kiwi:229,underscore:22}],47:[function(t,e,i){var n,r,o;n=t(\"./base\"),o=t(\"./logging\").logger,r=function(e){var i,n,r,s,a,l,u,c,h,p,d,f,g,m,_,v,y;for(v=[],y=[],i=t(\"./base\").Collections,o.debug(\"load_models: start\"),a=0,h=e.length;h>a;a++)_=e[a],r=i(_.type),n=_.attributes,r&&r.get(n.id)?y.push([r,n]):v.push([r,n]);for(l=0,p=v.length;p>l;l++)s=v[l],r=s[0],n=s[1],r&&r.add(n,{silent:!0,defer_initialization:!0});for(o.debug(\"load_models: starting deferred initializations\"),u=0,d=v.length;d>u;u++)s=v[u],r=s[0],n=s[1],r&&r.get(n.id).initialize(n);for(o.debug(\"load_models: finished deferred initializations\"),c=0,f=v.length;f>c;c++)s=v[c],r=s[0],n=s[1],r&&(_=r.get(n.id),_.trigger(\"add\",_,r,{}));for(m=0,g=y.length;g>m;m++)s=y[m],r=s[0],n=s[1],r&&r.get(n.id).set(n);return o.debug(\"load_models: finish\"),null},e.exports=r},{\"./base\":29,\"./logging\":48}],48:[function(t,e,i){var n,r,o;n=t(\"jsnlog\").JL,r=n(\"Bokeh\"),r.setOptions({appenders:[n.createConsoleAppender(\"consoleAppender\")]}),o=function(t){var e;return e={trace:n.getTraceLevel(),debug:n.getDebugLevel(),info:n.getInfoLevel(),warn:n.getWarnLevel(),error:n.getErrorLevel(),fatal:n.getFatalLevel()},t in e?(console.log(\"Bokeh: setting log level to: '\"+t+\"'\"),r.setOptions({level:e[t]})):(console.log(\"Bokeh: Unrecognized logging level '\"+t+\"' passed to Bokeh.set_log_level, ignoring.\"),void console.log(\"Bokeh: Valid log levels are: \"+Object.keys(e)))},e.exports={logger:r,set_log_level:o}},{jsnlog:18}],49:[function(t,e,i){var n,r,o;o=function(t){for(;0>t;)t+=2*Math.PI;for(;t>2*Math.PI;)t-=2*Math.PI;return t},r=function(t,e){return Math.abs(o(t-e))},n=function(t,e,i,n){var s;return t=o(t),s=r(e,i),\"anticlock\"===n?r(e,t)<=s&&r(t,i)<=s:!(r(e,t)<=s&&r(t,i)<=s)},e.exports={angle_norm:o,angle_dist:r,angle_between:n}},{}],50:[function(t,e,i){(function(i){var n,r,o,s,a,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D,T=function(t,e){return function(){return t.apply(e,arguments)}},S=function(t,e){function i(){this.constructor=t}for(var n in e)A.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},A={}.hasOwnProperty;b=t(\"underscore\"),n=t(\"backbone\"),null!=i._bokehTest?x={}:(x=t(\"kiwi\"),u=x.Expression,s=x.Constraint,f=x.Operator,l=f.Eq,d=f.Le,c=f.Ge),w=t(\"./build_views\"),r=t(\"./canvas\"),o=t(\"./cartesian_frame\"),a=t(\"./continuum_view\"),y=t(\"./ui_events\"),h=t(\"./has_parent\"),p=t(\"./layout_box\"),k=t(\"./logging\").logger,M=t(\"./plot_utils\"),_=t(\"./solver\"),v=t(\"./tool_manager\"),C=t(\"./plot_template\"),D=t(\"./properties\"),m=function(t){function e(){return this.request_render=T(this.request_render,this),e.__super__.constructor.apply(this,arguments)}return S(e,t),e.prototype.className=\"bk-plot\",e.prototype.template=C,e.prototype.view_options=function(){return b.extend({plot_model:this.model,plot_view:this},this.options)},e.prototype.pause=function(){return this.is_paused=!0},e.prototype.unpause=function(){return this.is_paused=!1,this.request_render()},e.prototype.request_render=function(){this.is_paused||this.throttled_render(!0)},e.prototype.initialize=function(t){var i,n,r,o,s,a,l,u,c;for(e.__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=M.throttle_animation(this.render,15),this.outline_props=new D.Line({obj:this.model,prefix:\"outline_\"}),this.title_props=new D.Text({obj:this.model,prefix:\"title_\"}),this.renderers={},this.tools={},this.levels={},s=M.LEVELS,n=0,r=s.length;r>n;n++)o=s[n],this.levels[o]={};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 y({tool_manager:this.mget(\"tool_manager\"),hit_area:this.canvas_view.$el}),a=this.tools;for(i in a)l=a[i],this.ui_event_bus.register_tool(l);return u=this.mget(\"toolbar_location\"),null!=u&&(c=\".bk-plot-\"+u,k.debug(\"attaching toolbar to \"+c+\" for plot \"+this.model.id),this.tm_view=new v.View({model:this.mget(\"tool_manager\"),el:this.$(c)})),this.update_dataranges(),this.unpause(),k.debug(\"PlotView initialized\"),this},e.prototype.update_dataranges=function(){var t,e,i,n,r,o,s,a,l,u,c,h,p,d,f;i=this.model.get(\"frame\"),e={},l=this.renderers;for(r in l)p=l[r],t=null!=(u=p.glyph)&&\"function\"==typeof u.bounds?u.bounds():void 0,null!=t&&(e[r]=t);for(c=b.values(i.get(\"x_ranges\")),n=0,s=c.length;s>n;n++)d=c[n],\"function\"==typeof d.update&&d.update(e,0,this);for(h=b.values(i.get(\"y_ranges\")),o=0,a=h.length;a>o;o++)f=h[o],\"function\"==typeof f.update&&f.update(e,1,this);return this.range_update_timestamp=Date.now()},e.prototype.map_to_screen=function(t,e,i,n){return null==i&&(i=\"default\"),null==n&&(n=\"default\"),this.frame.map_to_screen(t,e,this.canvas,i,n)},e.prototype.update_range=function(t){var e,i,n,r;null==t&&(t=this.initial_range_info),this.pause(),i=this.frame.get(\"x_ranges\");for(e in i)r=i[e],r.set(t.xrs[e]);n=this.frame.get(\"y_ranges\");for(e in n)r=n[e],r.set(t.yrs[e]);return this.unpause()},e.prototype.build_levels=function(){var t,e,i,n,r,o,s,a,l,u,c,h,p,d;for(l=b.keys(this.renderers),d=w(this.renderers,this.mget(\"renderers\"),this.view_options()),u=b.difference(l,b.pluck(this.mget(\"renderers\"),\"id\")),e=0,n=u.length;n>e;e++)t=u[e],delete this.levels.glyph[t];for(h=w(this.tools,this.mget(\"tools\"),this.view_options()),i=0,r=d.length;r>i;i++)p=d[i],s=p.mget(\"level\"),this.levels[s][p.model.id]=p,p.bind_bokeh_events();for(a=0,o=h.length;o>a;a++)c=h[a],s=c.mget(\"level\"),this.levels[s][c.model.id]=c,c.bind_bokeh_events();return this},e.prototype.bind_bokeh_events=function(){var t,e,i,n;e=this.mget(\"frame\").get(\"x_ranges\");for(t in e)n=e[t],this.listenTo(n,\"change\",this.request_render);i=this.mget(\"frame\").get(\"y_ranges\");for(t in i)n=i[t],this.listenTo(n,\"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(t){return function(){return t.remove()}}(this))},e.prototype.set_initial_range=function(){var t,e,i,n,r,o,s;t=!0,o={},i=this.frame.get(\"x_ranges\");for(e in i){if(r=i[e],null==r.get(\"start\")||null==r.get(\"end\")||b.isNaN(r.get(\"start\")+r.get(\"end\"))){t=!1;break}o[e]={start:r.get(\"start\"),end:r.get(\"end\")}}if(t){s={},n=this.frame.get(\"y_ranges\");for(e in n){if(r=n[e],null==r.get(\"start\")||null==r.get(\"end\")||b.isNaN(r.get(\"start\")+r.get(\"end\"))){t=!1;break}s[e]={start:r.get(\"start\"),end:r.get(\"end\")}}}return t?(this.initial_range_info={xrs:o,yrs:s},k.debug(\"initial ranges set\")):k.warn(\"could not set initial ranges\")},e.prototype.render=function(t){var i,n,r,o,s,a,l,u,c,h,p,d,f,g,m,_;null==t&&(t=!1),k.trace(\"Plot.render(force_canvas=\"+t+\")\"),Date.now()-this.interactive_timestamp<this.mget(\"lod_interval\")?(this.interactive=!0,l=this.mget(\"lod_timeout\"),setTimeout(function(t){return function(){return t.interactive&&Date.now()-t.interactive_timestamp>l&&(t.interactive=!1),t.request_render()}}(this),l)):this.interactive=!1,_=this.mget(\"plot_width\"),s=this.mget(\"plot_height\"),(this.canvas.get(\"canvas_width\")!==_||this.canvas.get(\"canvas_height\")!==s)&&this.canvas._set_dims([_,s],g=!1),e.__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\"),i=this.model.get(\"canvas\"),u=this.renderers;for(a in u)m=u[a],null!=m.model.update_layout&&m.model.update_layout(m,this.canvas.solver);c=this.renderers;for(a in c)if(m=c[a],m.set_data_timestamp>(null!=this.range_update_timestamp)){this.update_dataranges();break}return f=this.mget(\"title\"),f&&(this.title_props.set_value(this.canvas_view.ctx),d=n.measureText(this.mget(\"title\")).ascent+this.model.get(\"title_standoff\"),d!==this.model.title_panel.get(\"height\")&&this.model.title_panel.set(\"height\",d)),this.model.get(\"frame\").set(\"width\",i.get(\"width\")-1),this.model.get(\"frame\").set(\"height\",i.get(\"height\")-1),this.canvas.solver.update_variables(!1),this.model.get(\"frame\")._update_mappers(),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_value(n),n.strokeRect.apply(n,o)),this._render_levels(n,[\"image\",\"underlay\",\"glyph\"],o),this._render_levels(n,[\"overlay\",\"tool\"]),f&&(h=this.canvas.vx_to_sx(this.canvas.get(\"width\")/2),p=this.canvas.vy_to_sy(this.model.title_panel.get(\"bottom\")+this.model.get(\"title_standoff\")),this.title_props.set_value(n),n.fillText(f,h,p)),null==this.initial_range_info?this.set_initial_range():void 0},e.prototype._render_levels=function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d,f,g;for(t.save(),null!=i&&(t.beginPath(),t.rect.apply(t,i),t.clip(),t.beginPath()),r={},p=this.mget(\"renderers\"),n=o=0,a=p.length;a>o;n=++o)d=p[n],r[d.id]=n;for(g=function(t){return r[t.id]},s=0,l=e.length;l>s;s++)for(c=e[s],f=b.sortBy(b.values(this.levels[c]),g),h=0,u=f.length;u>h;h++)d=f[h],d.render();return t.restore()},e.prototype._map_hook=function(t,e){},e.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)},e}(a),g=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return S(e,t),e.prototype.type=\"Plot\",e.prototype.default_view=m,e.prototype.initialize=function(t,i){var n,o,s,a,l,u,c,h,p,d,f,g,m,y,w;for(e.__super__.initialize.call(this,t,i),d=b.values(this.get(\"extra_x_ranges\")).concat(this.get(\"x_range\")),o=0,a=d.length;a>o;o++)y=d[o],y=this.resolve_ref(y),h=y.get(\"plots\"),b.isArray(h)&&(h=h.concat(this),y.set(\"plots\",h));for(f=b.values(this.get(\"extra_y_ranges\")).concat(this.get(\"y_range\")),s=0,l=f.length;l>s;s++)w=f[s],w=this.resolve_ref(w),h=w.get(\"plots\"),b.isArray(h)&&(h=h.concat(this),w.set(\"plots\",h));for(n=new r.Model({map:null!=(g=this.use_map)?g:!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\"),m=this.get(\"renderers\"),c=0,u=m.length;u>c;c++)p=m[c],p.set(\"parent\",this);return this.set(\"tool_manager\",new v.Model({tools:this.get(\"tools\"),toolbar_location:this.get(\"toolbar_location\"),logo:this.get(\"logo\")})),k.debug(\"Plot initialized\")},e.prototype.initialize_layout=function(t){var e,i,n;return e=this.get(\"canvas\"),n=new o.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\",n),this.title_panel=new p.Model({solver:t}),this.title_panel._anchor=this.title_panel._bottom,i=this.get(\"above\"),i.push(this.title_panel),this.set(\"above\",i)},e.prototype.add_constraints=function(t){var e,i,n,r,o,a,h,f,g;return o=null!=(a=this.get(\"min_border_top\"))?a:this.get(\"min_border\"),i=null!=(h=this.get(\"min_border_bottom\"))?h:this.get(\"min_border\"),n=null!=(f=this.get(\"min_border_left\"))?f:this.get(\"min_border\"),r=null!=(g=this.get(\"min_border_right\"))?g:this.get(\"min_border\"),e=function(t){return function(e,i,n,r,o,a){var h,d,f,g,m,_,v,y,b,w,k,C;for(g=t.get(\"canvas\"),_=t.get(\"frame\"),h=new p.Model({solver:e}),d=\"_\"+r[0],f=\"_\"+r[1],e.add_constraint(new s(new u(h[\"_\"+o],-i),c),x.Strength.strong),e.add_constraint(new s(new u(_[d],[-1,h[f]]),l)),e.add_constraint(new s(new u(h[d],[-1,g[d]]),l)),y=_,m=t.get(n),v=0,b=m.length;b>v;v++)k=m[v],(null!=(C=k.get(\"location\"))?C:!0)&&k.set(\"location\",n,{silent:!0}),null!=k.initialize_layout&&k.initialize_layout(e),e.add_constraint(new s(new u(y[d],[-1,k[f]]),l),x.Strength.strong),y=k;return w=new p.Model({solver:e}),e.add_constraint(new s(new u(y[d],[-1,w[f]]),l),x.Strength.strong),e.add_constraint(new s(new u(w[d],[-1,g[d]]),l),x.Strength.strong)}}(this),e(t,o,\"above\",[\"top\",\"bottom\"],\"height\",d),e(t,i,\"below\",[\"bottom\",\"top\"],\"height\",c),e(t,n,\"left\",[\"left\",\"right\"],\"width\",c),e(t,r,\"right\",[\"right\",\"left\"],\"width\",d)},e.prototype.add_renderers=function(t){var e;return e=this.get(\"renderers\"),e=e.concat(t),this.set(\"renderers\",e)},e.prototype.parent_properties=[\"background_fill\",\"border_fill\",\"min_border\",\"min_border_top\",\"min_border_bottom\",\"min_border_left\",\"min_border_right\"],e.prototype.defaults=function(){return b.extend({},e.__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:\"\",above:[],below:[],left:[],right:[],toolbar_location:\"above\",logo:\"normal\",lod_factor:10,lod_interval:300,lod_threshold:2e3,lod_timeout:500})},e.prototype.display_defaults=function(){return b.extend({},e.__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})},e}(h),e.exports={Model:g,View:m}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"./build_views\":31,\"./canvas\":33,\"./cartesian_frame\":35,\"./continuum_view\":38,\"./has_parent\":43,\"./layout_box\":46,\"./logging\":48,\"./plot_template\":52,\"./plot_utils\":53,\"./properties\":55,\"./solver\":60,\"./tool_manager\":64,\"./ui_events\":66,backbone:1,kiwi:229,underscore:22}],51:[function(t,e,i){var n,r,o,s,a,l,u,c=function(t,e){return function(){return t.apply(e,arguments)}},h=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;n=t(\"jquery\"),l=t(\"underscore\"),u=t(\"./build_views\"),o=t(\"./has_parent\"),r=t(\"./continuum_view\"),a=function(t){function e(){return this.removeplot=c(this.removeplot,this),this.closeall=c(this.closeall,this),e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.initialize=function(t){return this.views={},this.child_models=[],e.__super__.initialize.call(this,t),this.render()},e.prototype.delegateEvents=function(){return this.listenTo(this.model,\"destroy\",this.remove),this.listenTo(this.model,\"change\",this.render),e.__super__.delegateEvents.call(this)},e.prototype.build_children=function(){var t;return t=u(this.views,this.mget(\"children\"),{}),window.pc_created_views=t,window.pc_views=this.views,null},e.prototype.size_textarea=function(t){var e;return e=n(t).height(0).prop(\"scrollHeight\"),n(t).height(e)},e.prototype.closeall=function(t){return this.mset(\"children\",[]),this.model.save()},e.prototype.removeplot=function(t){var e,i,r,o,s;return i=parseInt(n(t.currentTarget).parent().attr(\"data-plot_num\")),r=this.mget(\"children\")[i],o=this.views[r.get(\"id\")],o.remove(),e=function(){var t,e,i,n;for(i=this.mget(\"children\"),n=[],t=0,e=i.length;e>t;t++)s=i[t],s.id!==o.model.id&&n.push(s);return n}.call(this),this.mset(\"children\",e),this.model.save(),!1},e.prototype.render=function(){var t,i,r,o,s,a,u,c,h,d,f,g,m;e.__super__.render.call(this),this.build_children(),c=this.views;for(r in c)p.call(c,r)&&(g=c[r],g.$el.detach());for(this.$el.html(\"\"),u=l.keys(this.views).length,f=[],d={},h=this.mget(\"children\"),i=t=0,o=h.length;o>t;i=++t)s=h[i],m=this.views[s.id],a=n(\"<div class='jsp' data-plot_num='\"+i+\"'></div>\"),this.$el.append(a),a.append(m.el);return l.defer(function(t){return function(){var e,i,r,o,s;for(r=t.$el.find(\".plottitle\"),o=[],e=0,i=r.length;i>e;e++)s=r[e],o.push(t.size_textarea(n(s)));return o}}(this)),null},e}(r),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type=\"PlotContext\",e.prototype.default_view=a,e.prototype.url=function(){return e.__super__.url.call(this)},e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{children:[]})},e}(o),e.exports={Model:s,View:a}},{\"./build_views\":31,\"./continuum_view\":38,\"./has_parent\":43,jquery:17,underscore:22}],52:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;(\"undefined\"==typeof t||null==t)&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}),function(){(function(){i.push(\"<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)}.call(t),t.safe=n,t.escape=r,i.join(\"\")}},{}],53:[function(t,e,i){var n,r,o,s;n=[\"image\",\"underlay\",\"glyph\",\"overlay\",\"annotation\",\"tool\"],r=function(t){return t()},o=(\"undefined\"!=typeof window&&null!==window?window.requestAnimationFrame:void 0)||(\"undefined\"!=typeof window&&null!==window?window.mozRequestAnimationFrame:void 0)||(\"undefined\"!=typeof window&&null!==window?window.webkitRequestAnimationFrame:void 0)||(\"undefined\"!=typeof window&&null!==window?window.msRequestAnimationFrame:void 0)||r,s=function(t,e){var i,n,r,s,a,l,u,c;return l=[null,null,null,null],n=l[0],i=l[1],c=l[2],u=l[3],a=0,s=!1,r=function(){return a=new Date,c=null,s=!1,u=t.apply(n,i)},function(){var t,l;return t=new Date,l=e-(t-a),n=this,i=arguments,0>=l&&!s?(clearTimeout(c),s=!0,o(r)):c||(c=setTimeout(function(){return o(r)},l)),u}},e.exports={LEVELS:n,throttle_animation:s}},{}],54:[function(t,e,i){var n,r,o=function(t,e){function i(){this.constructor=t}for(var n in e)s.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},s={}.hasOwnProperty;n=t(\"./continuum_view\"),r=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return o(i,t),i.prototype.tagName=\"div\",i.prototype.initialize=function(t){return this.plot_model=t.plot_model,this.plot_view=t.plot_view},i.prototype.bind_bokeh_events=function(){},i.prototype.request_render=function(){return this.plot_view.request_render()},e.exports=i,i}(n)},{\"./continuum_view\":38}],55:[function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D=function(t,e){function i(){this.constructor=t}for(var n in e)T.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},T={}.hasOwnProperty,S=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};y=t(\"underscore\"),d=t(\"./has_properties\"),C=t(\"./svg_colors\"),m=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){var n,r,o;if(e.__super__.initialize.call(this,t,i),o=this.get(\"obj\"),n=this.get(\"attr\"),r=o.get(n),y.isObject(r)&&!y.isArray(r))if(this.spec=r,null!=this.spec.value)this.fixed_value=this.spec.value;else{if(null==this.spec.field)throw new Error(\"spec for property '\"+n+\"' needs one of 'value' or 'field'\");this.field=this.spec.field}else this.fixed_value=r;if(null!=this.field&&!y.isString(this.field))throw new Error(\"field value for property '\"+n+\"' is not a string\");return null!=this.fixed_value?this.validate(this.fixed_value,n):void 0},e.prototype.value=function(){var t;return t=null!=this.fixed_value?this.fixed_value:0/0,this.transform([t])[0]},e.prototype.array=function(t){var e,i,n,r;return e=t.get(\"data\"),null!=this.field&&this.field in e?this.transform(t.get_column(this.field)):(n=t.get_length(),null==n&&(n=1),r=this.value(),function(){var t,e,o;for(o=[],i=t=0,e=n;e>=0?e>t:t>e;i=e>=0?++t:--t)o.push(r);return o}())},e.prototype.transform=function(t){return t},e.prototype.validate=function(t,e){return!0},e}(d),g=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(!y.isNumber(t))throw new Error(\"numeric property '\"+e+\"' given invalid value: \"+t);return!0},e.prototype.transform=function(t){var e,i,n,r;for(r=new Float64Array(t.length),e=i=0,n=t.length;n>=0?n>i:i>n;e=n>=0?++i:--i)r[e]=t[e];return r},e}(m),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){var n,r,o,s,a;if(e.__super__.initialize.call(this,t,i),r=this.get(\"obj\"),n=this.get(\"attr\"),this.units=null!=(o=null!=(s=null!=(a=this.spec)?a.units:void 0)?s:r.get(n+\"_units\"))?o:\"rad\",\"deg\"!==this.units&&\"rad\"!==this.units)throw new Error(\"Angle units must be one of 'deg' or 'rad', given invalid value: \"+this.units)},e.prototype.transform=function(t){var i;return\"deg\"===this.units&&(t=function(){var e,n,r;for(r=[],e=0,n=t.length;n>e;e++)i=t[e],r.push(i*Math.PI/180);return r}()),t=function(){var e,n,r;for(r=[],e=0,n=t.length;n>e;e++)i=t[e],r.push(-i);return r}(),e.__super__.transform.call(this,t)},e}(g),c=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){var n,r,o,s,a;if(e.__super__.initialize.call(this,t,i),r=this.get(\"obj\"),n=this.get(\"attr\"),this.units=null!=(o=null!=(s=null!=(a=this.spec)?a.units:void 0)?s:r.get(n+\"_units\"))?o:\"data\",\"data\"!==this.units&&\"screen\"!==this.units)throw new Error(\"Distance units must be one of 'data' or 'screen', given invalid value: \"+this.units)},e}(g),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(!y.isArray(t))throw new Error(\"array property '\"+e+\"' given invalid value: \"+t);return!0},e}(m),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){\n",
       "                if(!y.isBoolean(t))throw new Error(\"boolean property '\"+e+\"' given invalid value: \"+t);return!0},e}(m),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(!y.isNumber(t)&&!y.isString(t))throw new Error(\"coordinate property '\"+e+\"' given invalid value: \"+t);return!0},e}(m),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(null==C[t]&&\"#\"!==t.substring(0,1)&&!this.valid_rgb(t))throw new Error(\"color property '\"+e+\"' given invalid value: \"+t);return!0},e.prototype.valid_rgb=function(t){var e,i,n,r;switch(t.substring(0,4)){case\"rgba\":i={start:\"rgba(\",len:4,alpha:!0};break;case\"rgb(\":i={start:\"rgb(\",len:3,alpha:!1};break;default:return!1}if(new RegExp(\".*?(\\\\.).*(,)\").test(t))throw new Error(\"color expects integers for rgb in rgb/rgba tuple, received \"+t);if(e=t.replace(i.start,\"\").replace(\")\",\"\").split(\",\").map(parseFloat),e.length!==i.len)throw new Error(\"color expects rgba \"+expect_len+\"-tuple, received \"+t);if(i.alpha&&!(0<=(n=e[3])&&1>=n))throw new Error(\"color expects rgba 4-tuple to have alpha value between 0 and 1\");if(S.call(function(){var t,i,n,o;for(n=e.slice(0,3),o=[],t=0,i=n.length;i>t;t++)r=n[t],o.push(r>=0&&255>=r);return o}(),!1)>=0)throw new Error(\"color expects rgb to have value between 0 and 255\");return!0},e}(m),_=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(!y.isString(t))throw new Error(\"string property '\"+e+\"' given invalid value: \"+t);return!0},e}(m),h=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){return this.levels=t.values.split(\" \"),e.__super__.initialize.call(this,t,i)},e.prototype.validate=function(t,e){if(S.call(this.levels,t)<0)throw new Error(\"enum property '\"+e+\"' given invalid value: \"+t+\", valid values are: \"+this.levels);return!0},e}(m),u=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){return t.values=\"anticlock clock\",e.__super__.initialize.call(this,t,i)},e.prototype.transform=function(t){var e,i,n,r;for(r=new Uint8Array(t.length),e=i=0,n=t.length;n>=0?n>i:i>n;e=n>=0?++i:--i)switch(t[e]){case\"clock\":r[e]=!1;break;case\"anticlock\":r[e]=!0}return r},e}(h),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){return this.cache={},e.__super__.initialize.call(this,t,i)},e.prototype.warm_cache=function(t,e){var i,n,r,o,s;for(s=[],n=0,r=e.length;r>n;n++)i=e[n],o=this[i],s.push(null!=o.fixed_value?this.cache[i]=o.fixed_value:this.cache[i+\"_array\"]=o.array(t));return s},e.prototype.cache_select=function(t,e){var i;return i=this[t],this.cache[t]=null!=i.fixed_value?i.fixed_value:this.cache[t+\"_array\"][e]},e}(d),f=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){var n,o;return e.__super__.initialize.call(this,t,i),n=this.get(\"obj\"),o=this.get(\"prefix\"),this.color=new s({obj:n,attr:o+\"line_color\"}),this.width=new g({obj:n,attr:o+\"line_width\"}),this.alpha=new g({obj:n,attr:o+\"line_alpha\"}),this.join=new h({obj:n,attr:o+\"line_join\",values:\"miter round bevel\"}),this.cap=new h({obj:n,attr:o+\"line_cap\",values:\"butt round square\"}),this.dash=new r({obj:n,attr:o+\"line_dash\"}),this.dash_offset=new g({obj:n,attr:o+\"line_dash_offset\"}),this.do_stroke=!0,!y.isUndefined(this.color.fixed_value)&&y.isNull(this.color.fixed_value)?this.do_stroke=!1:void 0},e.prototype.warm_cache=function(t){return e.__super__.warm_cache.call(this,t,[\"color\",\"width\",\"alpha\",\"join\",\"cap\",\"dash\",\"dash_offset\"])},e.prototype.set_value=function(t){return t.strokeStyle=this.color.value(),t.globalAlpha=this.alpha.value(),t.lineWidth=this.width.value(),t.lineCap=this.join.value(),t.lineCap=this.cap.value(),t.setLineDash(this.dash.value()),t.setLineDashOffset(this.dash_offset.value())},e.prototype.set_vectorize=function(t,e){return this.cache_select(\"color\",e),t.strokeStyle!==this.cache.fill&&(t.strokeStyle=this.cache.color),this.cache_select(\"alpha\",e),t.globalAlpha!==this.cache.alpha&&(t.globalAlpha=this.cache.alpha),this.cache_select(\"width\",e),t.lineWidth!==this.cache.width&&(t.lineWidth=this.cache.width),this.cache_select(\"join\",e),t.lineJoin!==this.cache.join&&(t.lineJoin=this.cache.join),this.cache_select(\"cap\",e),t.lineCap!==this.cache.cap&&(t.lineCap=this.cache.cap),this.cache_select(\"dash\",e),t.getLineDash()!==this.cache.dash&&t.setLineDash(this.cache.dash),this.cache_select(\"dash_offset\",e),t.getLineDashOffset()!==this.cache.dash_offset?t.setLineDashOffset(this.cache.dash_offset):void 0},e}(a),p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){var n,r;return e.__super__.initialize.call(this,t,i),n=this.get(\"obj\"),r=this.get(\"prefix\"),this.color=new s({obj:n,attr:r+\"fill_color\"}),this.alpha=new g({obj:n,attr:r+\"fill_alpha\"}),this.do_fill=!0,!y.isUndefined(this.color.fixed_value)&&y.isNull(this.color.fixed_value)?this.do_fill=!1:void 0},e.prototype.warm_cache=function(t){return e.__super__.warm_cache.call(this,t,[\"color\",\"alpha\"])},e.prototype.set_value=function(t){return t.fillStyle=this.color.value(),t.globalAlpha=this.alpha.value()},e.prototype.set_vectorize=function(t,e){return this.cache_select(\"color\",e),t.fillStyle!==this.cache.fill&&(t.fillStyle=this.cache.color),this.cache_select(\"alpha\",e),t.globalAlpha!==this.cache.alpha?t.globalAlpha=this.cache.alpha:void 0},e}(a),v=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){var n,r;return e.__super__.initialize.call(this,t,i),n=this.get(\"obj\"),r=this.get(\"prefix\"),this.font=new _({obj:n,attr:r+\"text_font\"}),this.font_size=new _({obj:n,attr:r+\"text_font_size\"}),this.font_style=new h({obj:n,attr:r+\"text_font_style\",values:\"normal italic bold\"}),this.color=new s({obj:n,attr:r+\"text_color\"}),this.alpha=new g({obj:n,attr:r+\"text_alpha\"}),this.align=new h({obj:n,attr:r+\"text_align\",values:\"left right center\"}),this.baseline=new h({obj:n,attr:r+\"text_baseline\",values:\"top middle bottom alphabetic hanging\"})},e.prototype.warm_cache=function(t){return e.__super__.warm_cache.call(this,t,[\"font\",\"font_size\",\"font_style\",\"color\",\"alpha\",\"align\",\"baseline\"])},e.prototype.cache_select=function(t,i){var n;return\"font\"===t?(n=e.__super__.cache_select.call(this,\"font_style\",i)+\" \"+e.__super__.cache_select.call(this,\"font_size\",i)+\" \"+e.__super__.cache_select.call(this,\"font\",i),this.cache.font=n):e.__super__.cache_select.call(this,t,i)},e.prototype.font_value=function(){var t,e,i;return t=this.font.value(),e=this.font_size.value(),i=this.font_style.value(),i+\" \"+e+\" \"+t},e.prototype.set_value=function(t){return t.font=this.font_value(),t.fillStyle=this.color.value(),t.globalAlpha=this.alpha.value(),t.textAlign=this.align.value(),t.textBaseline=this.baseline.value()},e.prototype.set_vectorize=function(t,e){return this.cache_select(\"font\",e),t.font!==this.cache.font&&(t.font=this.cache.font),this.cache_select(\"color\",e),t.fillStyle!==this.cache.color&&(t.fillStyle=this.cache.color),this.cache_select(\"alpha\",e),t.globalAlpha!==this.cache.alpha&&(t.globalAlpha=this.cache.alpha),this.cache_select(\"align\",e),t.textAlign!==this.cache.align&&(t.textAlign=this.cache.align),this.cache_select(\"baseline\",e),t.textBaseline!==this.cache.baseline?t.textBaseline=this.cache.baseline:void 0},e}(a),b=function(t,e){var i,r,o,s,a;for(null==e&&(e=\"angles\"),a={},s=t[e],r=0,o=s.length;o>r;r++)i=s[r],a[i]=new n({obj:t,attr:i});return a},w=function(t,e){var i,n,r,o,s,a,u;for(null==e&&(e=\"coords\"),s={},r=t[e],i=0,n=r.length;n>i;i++)o=r[i],a=o[0],u=o[1],s[a]=new l({obj:t,attr:a}),s[u]=new l({obj:t,attr:u});return s},x=function(t,e){var i,n,r,o,s;for(null==e&&(e=\"distances\"),s={},o=t[e],n=0,r=o.length;r>n;n++)i=o[n],(\"?\"!==i[0]||(i=i.slice(1),null!=t.get(i)))&&(s[i]=new c({obj:t,attr:i}));return s},k=function(t,e){var i,n,a,l,c,p,d,f;for(null==e&&(e=\"fields\"),d={},c=t[e],a=0,l=c.length;l>a;a++)if(n=c[a],f=\"number\",n.indexOf(\":\")>-1&&(p=n.split(\":\"),n=p[0],f=p[1],i=p[2]),\"?\"!==n[0]||(n=n.slice(1),null!=t.attributes[n]))switch(f){case\"array\":d[n]=new r({obj:t,attr:n});break;case\"bool\":d[n]=new o({obj:t,attr:n});break;case\"color\":d[n]=new s({obj:t,attr:n});break;case\"direction\":d[n]=new u({obj:t,attr:n});break;case\"enum\":d[n]=new h({obj:t,attr:n,values:i});break;case\"number\":d[n]=new g({obj:t,attr:n});break;case\"string\":d[n]=new _({obj:t,attr:n})}return d},M=function(t,e){var i,n,r,o,s,a,l,u;for(null==e&&(e=\"visuals\"),u={},a=t[e],i=0,n=a.length;n>i;i++)switch(s=a[i],o=\"\",s.indexOf(\":\")>-1&&(l=s.split(\":\"),s=l[0],o=l[1]),r=\"\"+o+s,s){case\"line\":u[r]=new f({obj:t,prefix:o});break;case\"fill\":u[r]=new p({obj:t,prefix:o});break;case\"text\":u[r]=new v({obj:t,prefix:o})}return u},e.exports={Angle:n,Array:r,Bool:o,Color:s,Coord:l,Direction:u,Distance:c,Enum:h,Numeric:g,Property:m,String:_,Line:f,Fill:p,Text:v,factories:{coords:w,distances:x,angles:b,fields:k,visuals:M}}},{\"./has_properties\":44,\"./svg_colors\":61,underscore:22}],56:[function(t,e,i){var n;n=function(){function t(t){var e;this.seed=t,this.multiplier=1664525,this.modulo=4294967296,this.offset=1013904223,null!=this.seed&&0<=(e=this.seed)&&e<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}(),e.exports=n},{}],57:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./has_properties\"),l=t(\"./logging\").logger,o=t(\"./selector\"),a=t(\"./hittest\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type=\"SelectionManager\",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.selectors={}},e.prototype.set_selection=function(t){var e;return this._save_indices(t),e=this.get(\"source\"),e.trigger(\"select\")},e.prototype.select=function(t,e,i,n,r){var o,s,a;return null==r&&(r=!1),a=this.get(\"source\"),a!==e.mget(\"data_source\")&&l.warn(\"select called with mis-matched data sources\"),o=e.hit_test(i),o?(s=this._get_selector(e),s.update(o,n,r),this._save_indices(s.get(\"indices\")),a.trigger(\"select\"),a.trigger(\"select-\"+e.mget(\"id\"))):void 0},e.prototype.inspect=function(t,e,i,n){var r,o;return o=this.get(\"source\"),o!==e.mget(\"data_source\")&&l.warn(\"inspect called with mis-matched data sources\"),r=e.hit_test(i),null!=r?(o.trigger(\"inspect\",r,t,e,o,n),o.trigger(\"inspect\"+e.mget(\"id\"),r,t,e,o,n)):void 0},e.prototype.clear=function(t){var e,i,n,r;if(null!=t)r=this._get_selector(t),r.clear();else{i=this.selectors;for(e in i)n=i[e],n.clear()}return this._save_indices(a.create_hit_test_result())},e.prototype._get_selector=function(t){return s.setdefault(this.selectors,t.model.id,new o),this.selectors[t.model.id]},e.prototype._save_indices=function(t){return this.get(\"source\").save({selected:t},{patch:!0})},e}(n),e.exports=r},{\"./has_properties\":44,\"./hittest\":45,\"./logging\":48,\"./selector\":58,underscore:22}],58:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t(\"underscore\"),n=t(\"./has_properties\"),s=t(\"./hittest\"),a=t(\"./logging\").logger,r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type=\"Selector\",e.prototype.update=function(t,e,i){return this.set(\"timestamp\",new Date),this.set(\"final\",e),i&&(t[\"0d\"].indices=o.union(this.get(\"indices\")[\"0d\"].indices,t[\"0d\"].indices),t[\"0d\"].flag=this.get(\"indices\")[\"0d\"].flag||t[\"0d\"].flag,t[\"1d\"].indices=o.union(this.get(\"indices\")[\"1d\"].indices,t[\"1d\"].indices),t[\"2d\"].indices=o.union(this.get(\"indices\")[\"2d\"].indices,t[\"2d\"].indices)),this.set(\"indices\",t)},e.prototype.clear=function(){return this.set(\"timestamp\",new Date),this.set(\"final\",!0),this.set(\"indices\",s.create_hit_test_result())},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{indices:s.create_hit_test_result()})},e}(n),e.exports=r},{\"./has_properties\":44,\"./hittest\":45,\"./logging\":48,underscore:22}],59:[function(t,e,i){var n,r,o,s,a,l,u,c,h=function(t,e){return function(){return t.apply(e,arguments)}};n=t(\"jquery\"),a=t(\"underscore\"),r=t(\"backbone\"),o=t(\"./base\").Config,l=t(\"./load_models\"),u=t(\"./logging\").logger,s=function(){function t(t){this.onmessage=h(this.onmessage,this);var e;this.auth={},this.ws_conn_string=t,this._connected=n.Deferred(),this.connected=this._connected.promise();try{this.s=window.MozWebSocket?new MozWebSocket(t):new WebSocket(t)}catch(i){e=i,u.error(\"websocket creation failed for connection string: \"+t),u.error(\" - \"+e)}this.s.onopen=function(t){return function(){return t._connected.resolve()}}(this),this.s.onmessage=this.onmessage}return a.extend(t.prototype,r.Events),t.prototype.onmessage=function(t){var e,i,n;return e=t.data,i=e.indexOf(\":\"),i=e.indexOf(\":\",i+1),n=e.substring(0,i),e=e.substring(i+1),this.trigger(\"msg:\"+n,e),null},t.prototype.send=function(t){return n.when(this.connected).done(function(e){return function(){return e.s.send(t)}}(this))},t.prototype.subscribe=function(t,e){var i;return this.auth[t]=e,i=JSON.stringify({msgtype:\"subscribe\",topic:t,auth:e}),this.send(i)},t}(),c=function(t,e,i){return t.subscribe(e,i),t.on(\"msg:\"+e,function(t){var e,i,r,s,a,u,c;if(a=JSON.parse(t),\"modelpush\"===a.msgtype)l(a.modelspecs);else if(\"modeldel\"===a.msgtype)for(c=a.modelspecs,i=0,r=c.length;r>i;i++)u=c[i],s=resolve_ref(u.type,u.id),s&&s.destroy({local:!0});else\"status\"===a.msgtype&&\"subscribesuccess\"===a.status[0]?(e=a.status[2],o.clientid=e,n.ajaxSetup({headers:{\"Continuum-Clientid\":e}})):log.warn(\"unknown msgtype '\"+a.msgtype+\"' for message: \"+a);return null})},e.exports={WebSocketWrapper:s,submodels:c}},{\"./base\":29,\"./load_models\":47,\"./logging\":48,backbone:1,jquery:17,underscore:22}],60:[function(t,e,i){(function(i){var n,r,o,s;o=t(\"underscore\"),n=t(\"backbone\"),s=null!=i._bokehTest?i._bokehTest.kiwi:t(\"kiwi\"),r=function(){function t(){this.solver=new s.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=s.Strength.strong),this.solver.addEditVariable(t,e)},t.prototype.suggest_value=function(t,e){return this.solver.suggestValue(t,e)},t}(),o.extend(r.prototype,n.Events),e.exports=r}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{backbone:1,kiwi:229,underscore:22}],61:[function(t,e,i){e.exports={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\",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\",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\"}},{}],62:[function(t,e,i){var n,r,o;n=t(\"jquery\"),r={},o=function(t){var e,i,o,s,a;if(null!=r[t])return r[t];a=n(\"<span>Hg</span>\").css({font:t}),e=n('<div style=\"display: inline-block; width: 1px; height: 0px;\"> </div>'),o=n(\"<div></div>\"),o.append(a,e),i=n(\"body\"),i.append(o);try{s={},e.css({verticalAlign:\"baseline\"}),s.ascent=e.offset().top-a.offset().top,e.css({verticalAlign:\"bottom\"}),s.height=e.offset().top-a.offset().top,s.descent=s.height-s.ascent}finally{o.remove()}return r[t]=s,s},e.exports={getTextHeight:o}},{jquery:17}],63:[function(t,e,i){var n,r,o,s=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;n=t(\"./has_properties\"),o=t(\"./logging\").logger,r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.type=\"ToolEvents\",e}(n),e.exports={Model:r}},{\"./has_properties\":44,\"./logging\":48}],64:[function(t,e,i){(function(i){var n,r,o,s,a,l,u,c,h,p,d,f,g,m=function(t,e){function i(){this.constructor=t}for(var n in e)_.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},_={}.hasOwnProperty,v=function(t,e){return function(){return t.apply(e,arguments)}};d=t(\"underscore\"),n=t(\"jquery\"),r=null!=i._bokehTest?void 0:t(\"bootstrap/dropdown\"),s=t(\"backbone\"),o=t(\"../tool/actions/action_tool\"),u=t(\"../tool/actions/help_tool\"),a=t(\"../tool/gestures/gesture_tool\"),c=t(\"../tool/inspectors/inspect_tool\"),f=t(\"./logging\").logger,g=t(\"./toolbar_template\"),l=t(\"./has_properties\"),p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.template=g,e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this.model,\"change\",this.render),this.render()},e.prototype.render=function(){var t,e,i,r,s,l;this.$el.html(this.template(this.model.attributes)),this.$el.addClass(\"bk-sidebar\"),this.$el.addClass(\"bk-toolbar-active\"),e=this.$(\".bk-button-bar-list\"),s=this.model.get(\"inspectors\"),e=this.$(\".bk-bs-dropdown[type='inspectors']\"),0===s.length?e.hide():(t=n('<a href=\"#\" data-bk-bs-toggle=\"dropdown\" class=\"bk-bs-dropdown-toggle\">inspect <span class=\"bk-bs-caret\"></a>'),t.appendTo(e),l=n('<ul class=\"bk-bs-dropdown-menu\" />'),d.each(s,function(t){var e;return e=n(\"<li />\"),e.append(new c.ListItemView({model:t}).el),e.appendTo(l)}),l.on(\"click\",function(t){return t.stopPropagation()}),l.appendTo(e),t.dropdown()),e=this.$(\".bk-button-bar-list[type='help']\"),d.each(this.model.get(\"help\"),function(t){return e.append(new o.ButtonView({model:t}).el)}),e=this.$(\".bk-button-bar-list[type='actions']\"),d.each(this.model.get(\"actions\"),function(t){return e.append(new o.ButtonView({model:t}).el)}),r=this.model.get(\"gestures\");for(i in r)e=this.$(\".bk-button-bar-list[type='\"+i+\"']\"),d.each(r[i].tools,function(t){return e.append(new a.ButtonView({model:t}).el)});return this},e}(s.View),h=function(t){function e(){return this._active_change=v(this._active_change,this),e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this._init_tools()},e.prototype._init_tools=function(){var t,e,i,n,r,s,l,h,p,g,m;for(i=this.get(\"gestures\"),h=this.get(\"tools\"),r=0,l=h.length;l>r;r++)if(g=h[r],g instanceof c.Model)s=this.get(\"inspectors\"),s.push(g),this.set(\"inspectors\",s);else if(g instanceof u.Model)n=this.get(\"help\"),n.push(g),this.set(\"help\",n);else if(g instanceof o.Model)t=this.get(\"actions\"),t.push(g),this.set(\"actions\",t);else if(g instanceof a.Model){if(e=g.get(\"event_type\"),!(e in i)){f.warn(\"ToolManager: unknown event type '\"+e+\"' for tool: \"+g.type+\" (\"+g.id+\")\");continue}i[e].tools.push(g),this.listenTo(g,\"change:active\",d.bind(this._active_change,g))}p=[];for(e in i)m=i[e].tools,0!==m.length&&(i[e].tools=d.sortBy(m,function(t){return t.get(\"default_order\")}),p.push(i[e].tools[0].set(\"active\",!0)));return p},e.prototype._active_change=function(t){var e,i,n,r;return i=t.get(\"event_type\"),(e=t.get(\"active\"))?(n=this.get(\"gestures\"),r=n[i].active,null!=r&&(f.debug(\"ToolManager: deactivating tool: \"+r.type+\" (\"+r.id+\") for event type '\"+i+\"'\"),r.set(\"active\",!1)),n[i].active=t,this.set(\"gestures\",n),f.debug(\"ToolManager: activating tool: \"+t.type+\" (\"+t.id+\") for event type '\"+i+\"'\"),null):null},e.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:[],help:[]}},e}(l),e.exports={Model:h,View:p}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../tool/actions/action_tool\":153,\"../tool/actions/help_tool\":154,\"../tool/gestures/gesture_tool\":162,\"../tool/inspectors/inspect_tool\":172,\"./has_properties\":44,\"./logging\":48,\"./toolbar_template\":65,backbone:1,\"bootstrap/dropdown\":221,jquery:17,underscore:22}],65:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;(\"undefined\"==typeof t||null==t)&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}),function(){(function(){null!=this.logo&&\"grey\"===this.logo?i.push(\"\\n  <a href='http://bokeh.pydata.org/' target='_blank' class='bk-logo bk-logo-small grey'></a>\\n\"):null!=this.logo&&i.push(\"\\n<a href='http://bokeh.pydata.org/' target='_blank' class='bk-logo bk-logo-small'></a>\\n\"),i.push(\"\\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</div>\\n\")}).call(this)}.call(t),t.safe=n,t.escape=r,i.join(\"\")}},{}],66:[function(t,e,i){(function(i){var n,r,o,s,a,l,u,c,h=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;n=t(\"jquery\"),r=t(\"backbone\"),null!=i._bokehTest?(c=i._bokehTest,o=c.Hammer,u=c.mousewhweel):(o=t(\"hammerjs\"),l=t(\"jquery-mousewheel\")(n)),a=t(\"./logging\").logger,s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.initialize=function(t,i){var r;return e.__super__.initialize.call(this,t,i),r=this.get(\"hit_area\"),this.hammer=new o(r[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 function(e){return t._doubletap(e)}}(this)),this.hammer.on(\"tap\",function(t){return function(e){return t._tap(e)}}(this)),this.hammer.on(\"press\",function(t){return function(e){return t._press(e)}}(this)),this.hammer.get(\"pan\").set({direction:o.DIRECTION_ALL}),this.hammer.on(\"panstart\",function(t){return function(e){return t._pan_start(e)}}(this)),this.hammer.on(\"pan\",function(t){return function(e){return t._pan(e)}}(this)),this.hammer.on(\"panend\",function(t){return function(e){return t._pan_end(e)}}(this)),this.hammer.get(\"pinch\").set({enable:!0}),this.hammer.on(\"pinchstart\",function(t){return function(e){return t._pinch_start(e)}}(this)),this.hammer.on(\"pinch\",function(t){return function(e){return t._pinch(e)}}(this)),this.hammer.on(\"pinchend\",function(t){return function(e){return t._pinch_end(e)}}(this)),this.hammer.get(\"rotate\").set({enable:!0}),this.hammer.on(\"rotatestart\",function(t){return function(e){return t._rotate_start(e)}}(this)),this.hammer.on(\"rotate\",function(t){return function(e){return t._rotate(e)}}(this)),this.hammer.on(\"rotateend\",function(t){return function(e){return t._rotate_end(e)}}(this)),r.mousemove(function(t){return function(e){return t._mouse_move(e)}}(this)),r.mouseenter(function(t){return function(e){return t._mouse_enter(e)}}(this)),r.mouseleave(function(t){return function(e){return t._mouse_exit(e)}}(this)),r.mousewheel(function(t){return function(e,i){return t._mouse_wheel(e,i)}}(this)),n(document).keydown(function(t){return function(e){return t._key_down(e)}}(this)),n(document).keyup(function(t){return function(e){return t._key_up(e)}}(this))},e.prototype.register_tool=function(t){var e,i,n;return e=t.mget(\"event_type\"),i=t.mget(\"id\"),n=t.model.type,null==e?void a.debug(\"Button tool: \"+n):(\"pan\"===e||\"pinch\"===e||\"rotate\"===e?(a.debug(\"Registering tool: \"+n+\" for event '\"+e+\"'\"),null!=t[\"_\"+e+\"_start\"]&&t.listenTo(this,e+\":start:\"+i,t[\"_\"+e+\"_start\"]),t[\"_\"+e]&&t.listenTo(this,e+\":\"+i,t[\"_\"+e]),t[\"_\"+e+\"_end\"]&&t.listenTo(this,e+\":end:\"+i,t[\"_\"+e+\"_end\"])):\"move\"===e?(a.debug(\"Registering tool: \"+n+\" 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)):(a.debug(\"Registering tool: \"+n+\" for event '\"+e+\"'\"),t.listenTo(this,e+\":\"+i,t[\"_\"+e])),null!=t._keydown&&(a.debug(\"Registering tool: \"+n+\" for event 'keydown'\"),t.listenTo(this,\"keydown\",t._keydown)),null!=t._keyup&&(a.debug(\"Registering tool: \"+n+\" for event 'keyup'\"),t.listenTo(this,\"keyup\",t._keyup)),null!=t._doubletap?(a.debug(\"Registering tool: \"+n+\" for event 'doubletap'\"),t.listenTo(this,\"doubletap\",t._doubletap)):void 0)},e.prototype._trigger=function(t,e){var i,n,r,o;return o=this.get(\"tool_manager\"),n=t.split(\":\")[0],r=o.get(\"gestures\"),i=r[n].active,null!=i?this.trigger(t+\":\"+i.id,e):void 0},e.prototype._bokify_hammer=function(t){var e,i,r,o,s;return\"mouse\"===t.pointerType?(i=n(t.target).offset(),e=null!=(r=i.left)?r:0,s=null!=(o=i.top)?o:0,t.bokeh={sx:t.srcEvent.pageX-e,sy:t.srcEvent.pageY-s}):t.bokeh={sx:t.center.x,sy:t.center.y}},e.prototype._bokify_jq=function(t){var e,i,r,o,s;return i=n(t.currentTarget).offset(),e=null!=(r=i.left)?r:0,s=null!=(o=i.top)?o:0,t.bokeh={sx:t.pageX-e,sy:t.pageY-s}},e.prototype._tap=function(t){return this._bokify_hammer(t),this._trigger(\"tap\",t)},e.prototype._doubletap=function(t){return this._bokify_hammer(t),this.trigger(\"doubletap\",t)},e.prototype._press=function(t){return this._bokify_hammer(t),this._trigger(\"press\",t)},e.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)},e.prototype._pan=function(t){return this._bokify_hammer(t),this._trigger(\"pan\",t)},e.prototype._pan_end=function(t){return this._bokify_hammer(t),this._trigger(\"pan:end\",t)},e.prototype._pinch_start=function(t){return this._bokify_hammer(t),this._trigger(\"pinch:start\",t)},e.prototype._pinch=function(t){return this._bokify_hammer(t),this._trigger(\"pinch\",t)},e.prototype._pinch_end=function(t){return this._bokify_hammer(t),this._trigger(\"pinch:end\",t)},e.prototype._rotate_start=function(t){return this._bokify_hammer(t),this._trigger(\"rotate:start\",t)},e.prototype._rotate=function(t){return this._bokify_hammer(t),this._trigger(\"rotate\",t)},e.prototype._rotate_end=function(t){return this._bokify_hammer(t),this._trigger(\"rotate:end\",t)},e.prototype._mouse_enter=function(t){return this._bokify_jq(t),this.trigger(\"move:enter\",t)},e.prototype._mouse_move=function(t){return this._bokify_jq(t),this.trigger(\"move\",t)},e.prototype._mouse_exit=function(t){return this._bokify_jq(t),this.trigger(\"move:exit\",t)},e.prototype._mouse_wheel=function(t,e){return this._bokify_jq(t),t.bokeh.delta=e,this._trigger(\"scroll\",t),t.preventDefault(),t.stopPropagation()},e.prototype._key_down=function(t){return this.trigger(\"keydown\",t)},e.prototype._key_up=function(t){return this.trigger(\"keyup\",t)},e}(r.Model),e.exports=s}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"./logging\":48,backbone:1,hammerjs:2,jquery:17,\"jquery-mousewheel\":3}],67:[function(t,e,i){var n,r,o,s;r={},r.require=t,r.version=\"0.9.0\",r.index=t(\"./common/base\").index,s=t(\"./common/logging\"),r.logger=s.logger,r.set_log_level=s.set_log_level,window.Float64Array||(r.logger.warn(\"Float64Array is not supported. Using generic Array instead.\"),window.Float64Array=Array),r._=t(\"underscore\"),r.$=n=o=t(\"jquery\"),t(\"jquery-ui\"),r.Backbone=t(\"backbone\"),r.Backbone.$=r.$,r.Backbone.$.ui=o.ui,r.Collections=t(\"./common/base\").Collections,r.Config=t(\"./common/base\").Config,r.CartesianFrame=t(\"./common/cartesian_frame\"),r.Canvas=t(\"./common/canvas\"),r.GMapPlot=t(\"./common/gmap_plot\"),r.GeoJSPlot=t(\"./common/geojs_plot\"),r.GridPlot=t(\"./common/grid_plot\"),r.HasParent=t(\"./common/has_parent\"),r.HasProperties=t(\"./common/has_properties\"),r.LayoutBox=t(\"./common/layout_box\"),r.Plot=t(\"./common/plot\"),r.Properties=t(\"./common/properties\"),r.SelectionManager=t(\"./common/selection_manager\"),r.Selector=t(\"./common/selector\"),r.ToolEvents=t(\"./common/tool_events\"),r.build_views=t(\"./common/build_views\"),r.bulk_save=t(\"./common/bulk_save\"),r.ContinuumView=t(\"./common/continuum_view\"),r.load_models=t(\"./common/load_models\"),r.PlotContext=t(\"./common/plot_context\"),r.PlotWidget=t(\"./common/plot_widget\"),\n",
       "                r.Random=t(\"./common/random\"),r.SVGColors=t(\"./common/svg_colors\"),r.LinearMapper=t(\"./mapper/linear_mapper\"),r.LogMapper=t(\"./mapper/log_mapper\"),r.CategoricalMapper=t(\"./mapper/categorical_mapper\"),r.GridMapper=t(\"./mapper/grid_mapper\"),r.LinearColorMapper=t(\"./mapper/linear_color_mapper\"),r.Palettes=t(\"./palettes/palettes\"),r.Legend=t(\"./renderer/annotation/legend\"),r.Span=t(\"./renderer/annotation/span\"),r.Tooltip=t(\"./renderer/annotation/tooltip\"),r.CategoricalAxis=t(\"./renderer/guide/categorical_axis\"),r.DatetimeAxis=t(\"./renderer/guide/datetime_axis\"),r.Grid=t(\"./renderer/guide/grid\"),r.LinearAxis=t(\"./renderer/guide/linear_axis\"),r.LogAxis=t(\"./renderer/guide/log_axis\"),r.BoxSelection=t(\"./renderer/overlay/box_selection\"),r.PolySelection=t(\"./renderer/overlay/poly_selection\"),r.embed=t(\"./server/embed\"),r.serverutils=t(\"./server/serverutils\"),r.ColumnDataSource=t(\"./source/column_data_source\"),r.AbstractTicker=t(\"./ticking/abstract_ticker\"),r.AdaptiveTicker=t(\"./ticking/adaptive_ticker\"),r.BasicTicker=t(\"./ticking/basic_ticker\"),r.BasicTickFormatter=t(\"./ticking/basic_tick_formatter\"),r.LogTicker=t(\"./ticking/log_ticker\"),r.LogTickFormatter=t(\"./ticking/log_tick_formatter\"),r.CategoricalTicker=t(\"./ticking/categorical_ticker\"),r.CategoricalTickFormatter=t(\"./ticking/categorical_tick_formatter\"),r.CompositeTicker=t(\"./ticking/composite_ticker\"),r.DatetimeTicker=t(\"./ticking/datetime_ticker\"),r.DatetimeTickFormatter=t(\"./ticking/datetime_tick_formatter\"),r.DaysTicker=t(\"./ticking/days_ticker\"),r.MonthsTicker=t(\"./ticking/months_ticker\"),r.SingleIntervalTicker=t(\"./ticking/single_interval_ticker\"),r.YearsTicker=t(\"./ticking/years_ticker\"),r.ActionTool=t(\"./tool/actions/action_tool\"),r.PreviewSaveTool=t(\"./tool/actions/preview_save_tool\"),r.ResetTool=t(\"./tool/actions/reset_tool\"),r.HelpTool=t(\"./tool/actions/help_tool\"),r.BoxSelectTool=t(\"./tool/gestures/box_select_tool\"),r.BoxZoomTool=t(\"./tool/gestures/box_zoom_tool\"),r.LassoSelectTool=t(\"./tool/gestures/lasso_select_tool\"),r.PanTool=t(\"./tool/gestures/pan_tool\"),r.PolySelectTool=t(\"./tool/gestures/poly_select_tool\"),r.ResizeTool=t(\"./tool/gestures/resize_tool\"),r.SelectTool=t(\"./tool/gestures/select_tool\"),r.TapTool=t(\"./tool/gestures/tap_tool\"),r.WheelZoomTool=t(\"./tool/gestures/wheel_zoom_tool\"),r.InspectTool=t(\"./tool/inspectors/inspect_tool\"),r.HoverTool=t(\"./tool/inspectors/hover_tool\"),r.CrosshairTool=t(\"./tool/inspectors/crosshair_tool\"),r.HBox=t(\"./widget/hbox\"),r.VBox=t(\"./widget/vbox\"),r.TextInput=t(\"./widget/text_input\"),t(\"./api/plugin\"),r.Bokeh=r,window.Bokeh=r,e.exports=r},{\"./api/plugin\":27,\"./common/base\":29,\"./common/build_views\":31,\"./common/bulk_save\":32,\"./common/canvas\":33,\"./common/cartesian_frame\":35,\"./common/continuum_view\":38,\"./common/geojs_plot\":40,\"./common/gmap_plot\":41,\"./common/grid_plot\":42,\"./common/has_parent\":43,\"./common/has_properties\":44,\"./common/layout_box\":46,\"./common/load_models\":47,\"./common/logging\":48,\"./common/plot\":50,\"./common/plot_context\":51,\"./common/plot_widget\":54,\"./common/properties\":55,\"./common/random\":56,\"./common/selection_manager\":57,\"./common/selector\":58,\"./common/svg_colors\":61,\"./common/tool_events\":63,\"./mapper/categorical_mapper\":68,\"./mapper/grid_mapper\":69,\"./mapper/linear_color_mapper\":70,\"./mapper/linear_mapper\":71,\"./mapper/log_mapper\":72,\"./palettes/palettes\":73,\"./renderer/annotation/legend\":77,\"./renderer/annotation/span\":78,\"./renderer/annotation/tooltip\":79,\"./renderer/guide/categorical_axis\":117,\"./renderer/guide/datetime_axis\":118,\"./renderer/guide/grid\":119,\"./renderer/guide/linear_axis\":120,\"./renderer/guide/log_axis\":121,\"./renderer/overlay/box_selection\":122,\"./renderer/overlay/poly_selection\":123,\"./server/embed\":124,\"./server/serverutils\":125,\"./source/column_data_source\":132,\"./ticking/abstract_ticker\":135,\"./ticking/adaptive_ticker\":136,\"./ticking/basic_tick_formatter\":137,\"./ticking/basic_ticker\":138,\"./ticking/categorical_tick_formatter\":139,\"./ticking/categorical_ticker\":140,\"./ticking/composite_ticker\":141,\"./ticking/datetime_tick_formatter\":142,\"./ticking/datetime_ticker\":143,\"./ticking/days_ticker\":144,\"./ticking/log_tick_formatter\":145,\"./ticking/log_ticker\":146,\"./ticking/months_ticker\":147,\"./ticking/single_interval_ticker\":150,\"./ticking/years_ticker\":152,\"./tool/actions/action_tool\":153,\"./tool/actions/help_tool\":154,\"./tool/actions/preview_save_tool\":155,\"./tool/actions/reset_tool\":157,\"./tool/gestures/box_select_tool\":160,\"./tool/gestures/box_zoom_tool\":161,\"./tool/gestures/lasso_select_tool\":163,\"./tool/gestures/pan_tool\":164,\"./tool/gestures/poly_select_tool\":165,\"./tool/gestures/resize_tool\":166,\"./tool/gestures/select_tool\":167,\"./tool/gestures/tap_tool\":168,\"./tool/gestures/wheel_zoom_tool\":169,\"./tool/inspectors/crosshair_tool\":170,\"./tool/inspectors/hover_tool\":171,\"./tool/inspectors/inspect_tool\":172,\"./widget/hbox\":194,\"./widget/text_input\":215,\"./widget/vbox\":218,backbone:1,jquery:17,\"jquery-ui\":10,underscore:22}],68:[function(t,e,i){var n,r,o,s=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;o=t(\"underscore\"),r=t(\"./linear_mapper\"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.map_to_target=function(t,i){var n,r,s,a,l;return null==i&&(i=!1),o.isNumber(t)?i?t:e.__super__.map_to_target.call(this,t):(r=this.get(\"source_range\").get(\"factors\"),t.indexOf(\":\")>=0?(a=t.split(\":\"),n=a[0],s=a[1],s=parseFloat(s),l=r.indexOf(n)+.5+s):l=r.indexOf(t)+1,i?l:e.__super__.map_to_target.call(this,l))},e.prototype.v_map_to_target=function(t,i){var n,r,s,a,l,u,c,h,p;if(null==i&&(i=!1),o.isNumber(t[0]))return i?t:e.__super__.v_map_to_target.call(this,t);for(r=this.get(\"source_range\").get(\"factors\"),h=Array(t.length),s=a=0,u=t.length;u>=0?u>a:a>u;s=u>=0?++a:--a)p=t[s],p.indexOf(\":\")>=0?(c=p.split(\":\"),n=c[0],l=c[1],l=parseFloat(l),h[s]=r.indexOf(n)+.5+l):h[s]=r.indexOf(p)+1;return i?h:e.__super__.v_map_to_target.call(this,h)},e.prototype.map_from_target=function(t,i){var n;return null==i&&(i=!1),t=e.__super__.map_from_target.call(this,t),i?t:(n=this.get(\"source_range\").get(\"factors\"),n[Math.floor(t-.5)])},e.prototype.v_map_from_target=function(t,i){var n,r,o,s,a,l,u,c;for(null==i&&(i=!1),c=e.__super__.v_map_from_target.call(this,t),r=o=0,a=c.length;a>=0?a>o:o>a;r=a>=0?++o:--o)c[r]=c[r];if(i)return c;for(u=Array(c),n=this.get(\"source_range\").get(\"factors\"),r=s=0,l=t.length;l>=0?l>s:s>l;r=l>=0?++s:--s)u[r]=n[Math.floor(c[r]-.5)];return u},e}(r.Model),e.exports={Model:n}},{\"./linear_mapper\":71,underscore:22}],69:[function(t,e,i){var n,r,o=function(t,e){function i(){this.constructor=t}for(var n in e)s.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},s={}.hasOwnProperty;r=t(\"../common/has_properties\"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.map_to_target=function(t,e){var i,n;return i=this.get(\"domain_mapper\").map_to_target(t),n=this.get(\"codomain_mapper\").map_to_target(e),[i,n]},e.prototype.v_map_to_target=function(t,e){var i,n;return i=this.get(\"domain_mapper\").v_map_to_target(t),n=this.get(\"codomain_mapper\").v_map_to_target(e),[i,n]},e.prototype.map_from_target=function(t,e){var i,n;return i=this.get(\"domain_mapper\").map_from_target(t),n=this.get(\"codomain_mapper\").map_from_target(e),[i,n]},e.prototype.v_map_from_target=function(t,e){var i,n;return i=this.get(\"domain_mapper\").v_map_from_target(t),n=this.get(\"codomain_mapper\").v_map_from_target(e),[i,n]},e}(r),e.exports={Model:n}},{\"../common/has_properties\":44}],70:[function(t,e,i){var n,r,o,s=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;o=t(\"underscore\"),n=t(\"../common/has_properties\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),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},e.prototype.v_map_screen=function(t){var e,i,n,r,s,a,l,u,c,h,p,d,f,g,m,_;if(i=new ArrayBuffer(4*t.length),n=new Uint32Array(i),c=null!=(p=this.get(\"low\"))?p:o.min(t),s=null!=(d=this.get(\"high\"))?d:o.max(t),e=this.palette.length-1,m=e/(s-c),h=-m*c,this.little_endian)for(a=l=0,f=t.length;f>=0?f>l:l>f;a=f>=0?++l:--l)r=t[a],r===this.reserve_val?_=this.reserve_color:(r>s&&(r=s),c>r&&(r=c),_=this.palette[Math.floor(r*m+h)]),n[a]=255<<24|(16711680&_)>>16|65280&_|(255&_)<<16;else for(a=u=0,g=t.length;g>=0?g>u:u>g;a=g>=0?++u:--u)r=t[a],r===this.reserve_val?_=this.reserve_color:(r>s&&(r=s),c>r&&(r=c),_=this.palette[Math.floor(r*m+h)]),n[a]=_<<8|255;return i},e.prototype._is_little_endian=function(){var t,e,i,n;return t=new ArrayBuffer(4),i=new Uint8ClampedArray(t),e=new Uint32Array(t),e[1]=168496141,n=!0,10===i[4]&&11===i[5]&&12===i[6]&&13===i[7]&&(n=!1),n},e.prototype._build_palette=function(t){var e,i,n,r;for(n=new Uint32Array(t.length+1),e=i=0,r=t.length;r>=0?r>i:i>r;e=r>=0?++i:--i)n[e]=o.isNumber(t[e])?t[e]:parseInt(t[e].slice(1),16);return n[n.length-1]=t[t.length-1],n},e}(n),e.exports={Model:r}},{\"../common/has_properties\":44,underscore:22}],71:[function(t,e,i){var n,r,o=function(t,e){function i(){this.constructor=t}for(var n in e)s.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},s={}.hasOwnProperty;n=t(\"../common/has_properties\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),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\"])},e.prototype.map_to_target=function(t){var e,i,n;return i=this.get(\"mapper_state\"),n=i[0],e=i[1],n*t+e},e.prototype.v_map_to_target=function(t){var e,i,n,r,o,s,a,l;for(o=this.get(\"mapper_state\"),a=o[0],r=o[1],s=new Float64Array(t.length),i=e=0,n=t.length;n>e;i=++e)l=t[i],s[i]=a*l+r;return s},e.prototype.map_from_target=function(t){var e,i,n;return i=this.get(\"mapper_state\"),n=i[0],e=i[1],(t-e)/n},e.prototype.v_map_from_target=function(t){var e,i,n,r,o,s,a,l;for(o=this.get(\"mapper_state\"),a=o[0],r=o[1],s=new Float64Array(t.length),i=e=0,n=t.length;n>e;i=++e)l=t[i],s[i]=(l-r)/a;return s},e.prototype._mapper_state=function(){var t,e,i,n,r,o;return n=this.get(\"source_range\").get(\"start\"),i=this.get(\"source_range\").get(\"end\"),o=this.get(\"target_range\").get(\"start\"),r=this.get(\"target_range\").get(\"end\"),e=(r-o)/(i-n),t=-(e*n)+o,[e,t]},e}(n),e.exports={Model:r}},{\"../common/has_properties\":44}],72:[function(t,e,i){var n,r,o=function(t,e){function i(){this.constructor=t}for(var n in e)s.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},s={}.hasOwnProperty;n=t(\"../common/has_properties\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),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\"])},e.prototype.map_to_target=function(t){var e,i,n,r,o,s,a,l;if(s=this.get(\"mapper_state\"),l=s[0],o=s[1],n=s[2],i=s[3],r=0,a=0,0===n)r=0;else try{if(r=(Math.log(t)-i)/n,isNaN(r))throw new Error(\"NaN\");if(isFinite(r)===!1)throw new Error(\"Infinite\")}catch(u){e=u,r=0}return a=r*l+o},e.prototype.v_map_to_target=function(t){var e,i,n,r,o,s,a,l,u,c,h,p,d,f,g,m,_,v;if(g=this.get(\"mapper_state\"),_=g[0],f=g[1],o=g[2],r=g[3],s=new Float64Array(t.length),m=new Float64Array(t.length),0===o)s=t.map(function(t){return 0*t});else try{for(p=t.map(function(t){return 0>=t}),d=t.map(function(t){return isNaN(t)}),h=function(){var e,n,r;for(r=[],i=e=0,n=t.length;n>=0?n>e:e>n;i=n>=0?++e:--e)r.push(p[i]|d[i]);return r}(),h=h.reduce(function(t,e){return t||e}),1===h&&(t[h]=1),s=t.map(function(t){return(Math.log(t)-r)/o}),n=a=0,u=s.length;u>a;n=++a){if(v=s[n],isNaN(s[n]))throw new Error(\"NaN\");if(isFinite(s[n])===!1)throw new Error(\"Infinite\")}}catch(y){e=y,s=t.map(function(t){return 0*t})}for(n=l=0,c=t.length;c>l;n=++l)v=t[n],m[n]=s[n]*_+f;return m},e.prototype.map_from_target=function(t){var e,i,n,r,o,s;return o=this.get(\"mapper_state\"),s=o[0],r=o[1],i=o[2],e=o[3],n=(t-r)/s,n=Math.exp(i*n+e)},e.prototype.v_map_from_target=function(t){var e,i,n,r,o,s;return o=this.get(\"mapper_state\"),s=o[0],r=o[1],i=o[2],e=o[3],n=t.map(function(t){return(t-r)/s}),n=n.map(function(t){return Math.exp(i*t+e)})},e.prototype._get_safe_scale=function(t,e){var i,n,r;return r=0>t?0:t,i=0>e?0:e,r===i&&(0===r?(r=1,i=10):(n=Math.log(r)/Math.log(10),r=Math.pow(10,Math.floor(n)),i=Math.ceil(n)!==Math.floor(n)?Math.pow(10,Math.ceil(n)):Math.pow(10,Math.ceil(n)+1))),[r,i]},e.prototype._mapper_state=function(){var t,e,i,n,r,o,s,a,l,u,c,h;return l=this.get(\"source_range\").get(\"start\"),a=this.get(\"source_range\").get(\"end\"),h=this.get(\"target_range\").get(\"start\"),c=this.get(\"target_range\").get(\"end\"),s=c-h,r=this._get_safe_scale(l,a),u=r[0],t=r[1],0===u?(i=Math.log(t),e=0):(i=Math.log(t)-Math.log(u),e=Math.log(u)),o=s,n=h,[o,n,i,e]},e}(n),e.exports={Model:r}},{\"../common/has_properties\":44}],73:[function(t,e,i){e.exports={YlGn3:[3253076,11394446,16252089],YlGn4:[2327619,7915129,12773017,16777164],YlGn5:[26679,3253076,7915129,12773017,16777164],YlGn6:[26679,3253076,7915129,11394446,14282915,16777164],YlGn7:[23090,2327619,4303709,7915129,11394446,14282915,16777164],YlGn8:[23090,2327619,4303709,7915129,11394446,14282915,16252089,16777189],YlGn9:[17705,26679,2327619,4303709,7915129,11394446,14282915,16252089,16777189],YlGnBu3:[2916280,8375739,15595697],YlGnBu4:[2252456,4306628,10607284,16777164],YlGnBu5:[2438292,2916280,4306628,10607284,16777164],YlGnBu6:[2438292,2916280,4306628,8375739,13101492,16777164],YlGnBu7:[797828,2252456,1937856,4306628,8375739,13101492,16777164],YlGnBu8:[797828,2252456,1937856,4306628,8375739,13101492,15595697,16777177],YlGnBu9:[531800,2438292,2252456,1937856,4306628,8375739,13101492,15595697,16777177],GnBu3:[4432586,11066805,14742491],GnBu4:[2854078,8113348,12248252,15792616],GnBu5:[551084,4432586,8113348,12248252,15792616],GnBu6:[551084,4432586,8113348,11066805,13429701,15792616],GnBu7:[546974,2854078,5157843,8113348,11066805,13429701,15792616],GnBu8:[546974,2854078,5157843,8113348,11066805,13429701,14742491,16252144],GnBu9:[540801,551084,2854078,5157843,8113348,11066805,13429701,14742491,16252144],BuGn3:[2925151,10082505,15070713],BuGn4:[2329413,6734500,11723490,15595771],BuGn5:[27948,2925151,6734500,11723490,15595771],BuGn6:[27948,2925151,6734500,10082505,13429990,15595771],BuGn7:[22564,2329413,4304502,6734500,10082505,13429990,15595771],BuGn8:[22564,2329413,4304502,6734500,10082505,13429990,15070713,16252157],BuGn9:[17435,27948,2329413,4304502,6734500,10082505,13429990,15070713,16252157],PuBuGn3:[1872025,10927579,15524592],PuBuGn4:[164234,6793679,12437985,16183287],PuBuGn5:[93273,1872025,6793679,12437985,16183287],PuBuGn6:[93273,1872025,6793679,10927579,13685222,16183287],PuBuGn7:[91216,164234,3576e3,6793679,10927579,13685222,16183287],PuBuGn8:[91216,164234,3576e3,6793679,10927579,13685222,15524592,16775163],PuBuGn9:[83510,93273,164234,3576e3,6793679,10927579,13685222,15524592,16775163],PuBu3:[2854078,10927579,15525874],PuBu4:[356528,7645647,12437985,15855350],PuBu5:[285325,2854078,7645647,12437985,15855350],PuBu6:[285325,2854078,7645647,10927579,13685222,15855350],PuBu7:[216699,356528,3576e3,7645647,10927579,13685222,15855350],PuBu8:[216699,356528,3576e3,7645647,10927579,13685222,15525874,16775163],PuBu9:[145496,285325,356528,3576e3,7645647,10927579,13685222,15525874,16775163],BuPu3:[8935079,10403034,14740724],BuPu4:[8929693,9213638,11783651,15595771],BuPu5:[8458108,8935079,9213638,11783651,15595771],BuPu6:[8458108,8935079,9213638,10403034,12571622,15595771],BuPu7:[7209323,8929693,9202609,9213638,10403034,12571622,15595771],BuPu8:[7209323,8929693,9202609,9213638,10403034,12571622,14740724,16252157],BuPu9:[5046347,8458108,8929693,9202609,9213638,10403034,12571622,14740724,16252157],RdPu3:[12917642,16424885,16638173],RdPu4:[11403646,16214177,16495801,16706530],RdPu5:[7995767,12917642,16214177,16495801,16706530],RdPu6:[7995767,12917642,16214177,16424885,16565696,16706530],RdPu7:[7995767,11403646,14496919,16214177,16424885,16565696,16706530],RdPu8:[7995767,11403646,14496919,16214177,16424885,16565696,16638173,16775155],RdPu9:[4784234,7995767,11403646,14496919,16214177,16424885,16565696,16638173,16775155],PuRd3:[14490743,13210823,15196655],PuRd4:[13505110,14640560,14136792,15855350],PuRd5:[9961539,14490743,14640560,14136792,15855350],PuRd6:[9961539,14490743,14640560,13210823,13941210,15855350],PuRd7:[9502783,13505110,15149450,14640560,13210823,13941210,15855350],PuRd8:[9502783,13505110,15149450,14640560,13210823,13941210,15196655,16250105],PuRd9:[6750239,9961539,13505110,15149450,14640560,13210823,13941210,15196655,16250105],OrRd3:[14895667,16628612,16705736],OrRd4:[14102559,16551257,16632970,16707801],OrRd5:[11730944,14895667,16551257,16632970,16707801],OrRd6:[11730944,14895667,16551257,16628612,16635038,16707801],OrRd7:[10027008,14102559,15689032,16551257,16628612,16635038,16707801],OrRd8:[10027008,14102559,15689032,16551257,16628612,16635038,16705736,16775148],OrRd9:[8323072,11730944,14102559,15689032,16551257,16628612,16635038,16705736,16775148],YlOrRd3:[15743776,16691788,16772512],YlOrRd4:[14883356,16616764,16698460,16777138],YlOrRd5:[12386342,15743776,16616764,16698460,16777138],YlOrRd6:[12386342,15743776,16616764,16691788,16701814,16777138],YlOrRd7:[11599910,14883356,16535082,16616764,16691788,16701814,16777138],YlOrRd8:[11599910,14883356,16535082,16616764,16691788,16701814,16772512,16777164],YlOrRd9:[8388646,12386342,14883356,16535082,16616764,16691788,16701814,16772512,16777164],YlOrBr3:[14245646,16696399,16775100],YlOrBr4:[13388802,16685353,16701838,16777172],YlOrBr5:[10040324,14245646,16685353,16701838,16777172],YlOrBr6:[10040324,14245646,16685353,16696399,16704401,16777172],YlOrBr7:[9186564,13388802,15495188,16685353,16696399,16704401,16777172],YlOrBr8:[9186564,13388802,15495188,16685353,16696399,16704401,16775100,16777189],YlOrBr9:[6694150,10040324,13388802,15495188,16685353,16696399,16704401,16775100,16777189],Purples3:[7695281,12369372,15724021],Purples4:[6967715,10394312,13355490,15921399],Purples5:[5515151,7695281,10394312,13355490,15921399],Purples6:[5515151,7695281,10394312,12369372,14342891,15921399],Purples7:[4854918,6967715,8420794,10394312,12369372,14342891,15921399],Purples8:[4854918,6967715,8420794,10394312,12369372,14342891,15724021,16579581],Purples9:[4128893,5515151,6967715,8420794,10394312,12369372,14342891,15724021,16579581],Blues3:[3244733,10406625,14609399],Blues4:[2191797,7057110,12441575,15725567],Blues5:[545180,3244733,7057110,12441575,15725567],Blues6:[545180,3244733,7057110,10406625,13032431,15725567],Blues7:[542100,2191797,4362950,7057110,10406625,13032431,15725567],Blues8:[542100,2191797,4362950,7057110,10406625,13032431,14609399,16251903],Blues9:[536683,545180,2191797,4362950,7057110,10406625,13032431,14609399,16251903],Greens3:[3253076,10607003,15070688],Greens4:[2329413,7652470,12248243,15595753],Greens5:[27948,3253076,7652470,12248243,15595753],Greens6:[27948,3253076,7652470,10607003,13101504,15595753],Greens7:[23090,2329413,4303709,7652470,10607003,13101504,15595753],Greens8:[23090,2329413,4303709,7652470,10607003,13101504,15070688,16252149],Greens9:[17435,27948,2329413,4303709,7652470,10607003,13101504,15070688,16252149],Oranges3:[15095053,16625259,16705230],Oranges4:[14239489,16616764,16629381,16707038],Oranges5:[10892803,15095053,16616764,16629381,16707038],Oranges6:[10892803,15095053,16616764,16625259,16634018,16707038],Oranges7:[9186564,14239745,15821075,16616764,16625259,16634018,16707038],Oranges8:[9186564,14239745,15821075,16616764,16625259,16634018,16705230,16774635],Oranges9:[8333060,10892803,14239745,15821075,16616764,16625259,16634018,16705230,16774635],Reds3:[14560550,16552562,16703698],Reds4:[13309981,16476746,16559761,16704985],Reds5:[10817301,14560550,16476746,16559761,16704985],Reds6:[10817301,14560550,16476746,16552562,16563105,16704985],Reds7:[10027021,13309981,15678252,16476746,16552562,16563105,16704985],Reds8:[10027021,13309981,15678252,16476746,16552562,16563105,16703698,16774640],Reds9:[6750221,10817301,13309981,15678252,16476746,16552562,16563105,16703698,16774640],Greys3:[6513507,12434877,15790320],Greys4:[5395026,9868950,13421772,16250871],Greys5:[2434341,6513507,9868950,13421772,16250871],Greys6:[2434341,6513507,9868950,12434877,14277081,16250871],Greys7:[2434341,5395026,7566195,9868950,12434877,14277081,16250871],Greys8:[2434341,5395026,7566195,9868950,12434877,14277081,15790320,16777215],Greys9:[0,2434341,5395026,7566195,9868950,12434877,14277081,15790320,16777215],PuOr3:[10063555,16250871,15835968],PuOr4:[6175897,11709394,16627811,15098113],PuOr5:[6175897,11709394,16250871,16627811,15098113],PuOr6:[5515144,10063555,14211819,16703670,15835968,11753478],PuOr7:[5515144,10063555,14211819,16250871,16703670,15835968,11753478],PuOr8:[5515144,8418220,11709394,14211819,16703670,16627811,14713364,11753478],PuOr9:[5515144,8418220,11709394,14211819,16250871,16703670,16627811,14713364,11753478],PuOr10:[2949195,5515144,8418220,11709394,14211819,16703670,16627811,14713364,11753478,8338184],PuOr11:[2949195,5515144,8418220,11709394,14211819,16250871,16703670,16627811,14713364,11753478,8338184],BrBG3:[5944492,16119285,14201701],BrBG4:[99697,8441281,14664317,10903834],BrBG5:[99697,8441281,16119285,14664317,10903834],BrBG6:[91742,5944492,13101797,16181443,14201701,9195786],BrBG7:[91742,5944492,13101797,16119285,16181443,14201701,9195786],BrBG8:[91742,3512207,8441281,13101797,16181443,14664317,12550445,9195786],BrBG9:[91742,3512207,8441281,13101797,16119285,16181443,14664317,12550445,9195786],BrBG10:[15408,91742,3512207,8441281,13101797,16181443,14664317,12550445,9195786,5517317],BrBG11:[15408,91742,3512207,8441281,13101797,16119285,16181443,14664317,12550445,9195786,5517317],PRGn3:[8372091,16250871,11505091],PRGn4:[34871,10935200,12756431,8073876],PRGn5:[34871,10935200,16250871,12756431,8073876],PRGn6:[1800247,8372091,14282963,15193320,11505091,7744131],PRGn7:[1800247,8372091,14282963,16250871,15193320,11505091,7744131],PRGn8:[1800247,5942881,10935200,14282963,15193320,12756431,10055851,7744131],PRGn9:[1800247,5942881,10935200,14282963,16250871,15193320,12756431,10055851,7744131],PRGn10:[17435,1800247,5942881,10935200,14282963,15193320,12756431,10055851,7744131,4194379],PRGn11:[17435,1800247,5942881,10935200,14282963,16250871,15193320,12756431,10055851,7744131,4194379],PiYG3:[10606442,16250871,15311817],PiYG4:[5090342,12116358,15840986,13638795],PiYG5:[5090342,12116358,16250871,15840986,13638795],PiYG6:[5083681,10606442,15136208,16638191,15311817,12917629],PiYG7:[5083681,10606442,15136208,16250871,16638191,15311817,12917629],PiYG8:[5083681,8371265,12116358,15136208,16638191,15840986,14579630,12917629],PiYG9:[5083681,8371265,12116358,15136208,16250871,16638191,15840986,14579630,12917629],PiYG10:[2581529,5083681,8371265,12116358,15136208,16638191,15840986,14579630,12917629,9306450],PiYG11:[2581529,5083681,8371265,12116358,15136208,16250871,16638191,15840986,14579630,12917629,9306450],RdBu3:[6793679,16250871,15698530],RdBu4:[356784,9618910,16033154,13238304],RdBu5:[356784,9618910,16250871,16033154,13238304],RdBu6:[2188972,6793679,13755888,16636871,15698530,11671595],RdBu7:[2188972,6793679,13755888,16250871,16636871,15698530,11671595],RdBu8:[2188972,4428739,9618910,13755888,16636871,16033154,14049357,11671595],RdBu9:[2188972,4428739,9618910,13755888,16250871,16636871,16033154,14049357,11671595],RdBu10:[340065,2188972,4428739,9618910,13755888,16636871,16033154,14049357,11671595,6750239],RdBu11:[340065,2188972,4428739,9618910,13755888,16250871,16636871,16033154,14049357,11671595,6750239],RdGy3:[10066329,16777215,15698530],RdGy4:[4210752,12237498,16033154,13238304],RdGy5:[4210752,12237498,16777215,16033154,13238304],RdGy6:[5066061,10066329,14737632,16636871,15698530,11671595],RdGy7:[5066061,10066329,14737632,16777215,16636871,15698530,11671595],RdGy8:[5066061,8882055,12237498,14737632,16636871,16033154,14049357,11671595],RdGy9:[5066061,8882055,12237498,14737632,16777215,16636871,16033154,14049357,11671595],RdGy10:[1710618,5066061,8882055,12237498,14737632,16636871,16033154,14049357,11671595,6750239],RdGy11:[1710618,5066061,8882055,12237498,14737632,16777215,16636871,16033154,14049357,11671595,6750239],RdYlBu3:[9551835,16777151,16551257],RdYlBu4:[2915254,11262441,16625249,14096668],RdYlBu5:[2915254,11262441,16777151,16625249,14096668],RdYlBu6:[4552116,9551835,14742520,16703632,16551257,14102567],RdYlBu7:[4552116,9551835,14742520,16777151,16703632,16551257,14102567],RdYlBu8:[4552116,7646673,11262441,14742520,16703632,16625249,16018755,14102567],RdYlBu9:[4552116,7646673,11262441,14742520,16777151,16703632,16625249,16018755,14102567],RdYlBu10:[3225237,4552116,7646673,11262441,14742520,16703632,16625249,16018755,14102567,10813478],RdYlBu11:[3225237,4552116,7646673,11262441,14742520,16777151,16703632,16625249,16018755,14102567,10813478],Spectral3:[10081684,16777151,16551257],Spectral4:[2851770,11263396,16625249,14096668],Spectral5:[2851770,11263396,16777151,16625249,14096668],Spectral6:[3311805,10081684,15136152,16703627,16551257,13975119],Spectral7:[3311805,10081684,15136152,16777151,16703627,16551257,13975119],Spectral8:[3311805,6734501,11263396,15136152,16703627,16625249,16018755,13975119],Spectral9:[3311805,6734501,11263396,15136152,16777151,16703627,16625249,16018755,13975119],Spectral10:[6180770,3311805,6734501,11263396,15136152,16703627,16625249,16018755,13975119,10355010],Spectral11:[6180770,3311805,6734501,11263396,15136152,16777151,16703627,16625249,16018755,13975119,10355010],RdYlGn3:[9555808,16777151,16551257],RdYlGn4:[1742401,10934634,16625249,14096668],RdYlGn5:[1742401,10934634,16777151,16625249,14096668],RdYlGn6:[1742928,9555808,14282635,16703627,16551257,14102567],RdYlGn7:[1742928,9555808,14282635,16777151,16703627,16551257,14102567],RdYlGn8:[1742928,6733155,10934634,14282635,16703627,16625249,16018755,14102567],RdYlGn9:[1742928,6733155,10934634,14282635,16777151,16703627,16625249,16018755,14102567],RdYlGn10:[26679,1742928,6733155,10934634,14282635,16703627,16625249,16018755,14102567,10813478],RdYlGn11:[26679,1742928,6733155,10934634,14282635,16777151,16703627,16625249,16018755,14102567,10813478]}},{}],74:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t(\"underscore\"),s=t(\"../common/bbox\"),a=t(\"../common/logging\").logger,r=t(\"./range1d\"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type=\"DataRange1d\",e.prototype._get_start=function(){var t;return null!=(t=this.get(\"_start\"))?t:this.get(\"_auto_start\")},e.prototype._set_start=function(t){return this.set(\"_start\",t)},e.prototype._get_end=function(){var t;return null!=(t=this.get(\"_end\"))?t:this.get(\"_auto_end\")},e.prototype._set_end=function(t){return this.set(\"_end\",t)},e.prototype.initialize=function(t,i){return this.register_property(\"start\",this._get_start,!0),this.register_setter(\"start\",this._set_start),this.add_dependencies(\"start\",this,[\"_start\",\"flipped\",\"_auto_start\",\"range_padding\",\"default_span\"]),this.register_property(\"end\",this._get_end,!0),this.register_setter(\"end\",this._set_end),this.add_dependencies(\"end\",this,[\"_end\",\"flipped\",\"_auto_end\",\"range_padding\",\"default_span\"]),null!=(null!=t?t.start:void 0)&&(this.set(\"start\",t.start),delete t.start),null!=(null!=t?t.end:void 0)&&(this.set(\"end\",t.end),delete t.end),e.__super__.initialize.call(this,t,i),this.plot_bounds={}},e.prototype.update=function(t,e,i){var n,r,o,a,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D;if(w=null!=(m=this.get(\"renderers\"))?m:[],n=[],0===w.length){for(_=this.get(\"plots\"),o=0,u=_.length;u>o;o++)f=_[o],k=f.get(\"renderers\"),k=function(){var t,e,i;for(i=[],t=0,e=k.length;e>t;t++)g=k[t],\"GlyphRenderer\"===g.type&&i.push(g);return i}(),n=n.concat(k);w=n}for(this.set(\"renderers\",w),x=new s.empty,v=this.get(\"renderers\"),a=0,c=v.length;c>a;a++)g=v[a],null!=t[g.id]&&(x=s.extend(x,t[g.id]));this.plot_bounds[i.model.id]=x,d=new s.empty,y=this.plot_bounds;for(l in y)D=y[l],d=s.extend(d,D);return b=d[e],p=b[0],h=b[1],M=h!==p?(h-p)*(1+this.get(\"range_padding\")):this.get(\"default_span\"),r=(h+p)/2,C=1,this.get(\"flipped\")&&(C=-1),this.set(\"_auto_start\",r-C*M/2),this.set(\"_auto_end\",r+C*M/2)},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{plots:[],sources:[],range_padding:.1,default_span:2,flipped:!1})},e}(r.Model),e.exports={Model:n}},{\"../common/bbox\":30,\"../common/logging\":48,\"./range1d\":76,underscore:22}],75:[function(t,e,i){var n,r,o,s=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;o=t(\"underscore\"),r=t(\"../common/has_properties\"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.type=\"FactorRange\",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.set(\"end\",this.get(\"factors\").length+.5),this.register_property(\"min\",function(){return this.get(\"start\")},!1),this.add_dependencies(\"min\",this,[\"factors\"]),this.register_property(\"max\",function(){return this.get(\"end\")},!1),this.add_dependencies(\"max\",this,[\"factors\"]),this.listenTo(this,\"change:factors\",function(){return this.set(\"end\",this.get(\"factors\").length+.5)})},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{start:.5,factors:[]})},e}(r),e.exports={Model:n}},{\"../common/has_properties\":44,underscore:22}],76:[function(t,e,i){var n,r,o,s=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;o=t(\"underscore\"),n=t(\"../common/has_properties\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.type=\"Range1d\",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),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\"])},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{start:0,end:1})},e}(n),e.exports={Model:r}},{\"../common/has_properties\":44,underscore:22}],77:[function(t,e,i){var n,r,o,s,a,l,u,c=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t(\"underscore\"),n=t(\"../../common/has_parent\"),s=t(\"../../common/plot_widget\"),l=t(\"../../common/properties\"),u=t(\"../../common/textutils\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments);\n",
       "                \n",
       "                }return c(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.label_props=new l.Text({obj:this.model,prefix:\"label_\"}),this.border_props=new l.Line({obj:this.model,prefix:\"border_\"}),this.need_calc_dims=!0,this.listenTo(this.plot_model.solver,\"layout_update\",function(){return this.need_calc_dims=!0})},e.prototype.calc_dims=function(t){var e,i,n,r,o,s,l,c,h,p,d,f,g,m,_,v;return l=function(){var t,e,n,r,o;for(n=this.mget(\"legends\"),o=[],t=0,e=n.length;e>t;t++)r=n[t],s=r[0],i=r[1],o.push(s);return o}.call(this),r=this.mget(\"label_height\"),this.glyph_height=this.mget(\"glyph_height\"),o=this.mget(\"label_width\"),this.glyph_width=this.mget(\"glyph_width\"),h=this.mget(\"legend_spacing\"),this.label_height=a.max([u.getTextHeight(this.label_props.font_value()),r,this.glyph_height]),this.legend_height=this.label_height,this.legend_height=l.length*this.legend_height+(1+l.length)*h,e=this.plot_view.canvas_view.ctx,e.save(),this.label_props.set_value(e),g=a.map(l,function(t){return e.measureText(t).width}),e.restore(),f=a.max(g),this.label_width=a.max([f,o]),this.legend_width=this.label_width+this.glyph_width+3*h,p=this.mget(\"orientation\"),c=this.mget(\"legend_padding\"),n=this.plot_view.frame.get(\"h_range\"),m=this.plot_view.frame.get(\"v_range\"),\"top_right\"===p?(_=n.get(\"end\")-c-this.legend_width,v=m.get(\"end\")-c):\"top_left\"===p?(_=n.get(\"start\")+c,v=m.get(\"end\")-c):\"bottom_left\"===p?(_=n.get(\"start\")+c,v=m.get(\"start\")+c+this.legend_height):\"bottom_right\"===p?(_=n.get(\"end\")-c-this.legend_width,v=m.get(\"start\")+c+this.legend_height):\"absolute\"===p&&(d=this.absolute_coords,_=d[0],v=d[1]),_=this.plot_view.canvas.vx_to_sx(_),v=this.plot_view.canvas.vy_to_sy(v),this.box_coords=[_,v]},e.prototype.render=function(){var t,e,i,n,r,o,s,a,l,u,c,h,p,d,f,g,m,_,v,y,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_value(t),t.beginPath(),t.rect(this.box_coords[0],this.box_coords[1],this.legend_width,this.legend_height),t.fill(),t.stroke(),s=this.mget(\"legend_spacing\"),u=this.mget(\"legends\"),n=i=0,a=u.length;a>i;n=++i)for(c=u[n],o=c[0],e=c[1],b=n*this.label_height,w=(1+n)*s,_=this.box_coords[1]+this.label_height/2+b+w,f=this.box_coords[0]+s,g=this.box_coords[0]+2*s+this.label_width,m=g+this.glyph_width,v=this.box_coords[1]+b+w,y=v+this.glyph_height,this.label_props.set_value(t),t.fillText(o,f,_),h=this.model.resolve_ref(e),r=0,l=h.length;l>r;r++)p=h[r],d=this.plot_view.renderers[p.id],d.draw_legend(t,g,m,v,y);return t.restore()},e}(s),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.default_view=o,e.prototype.type=\"Legend\",e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{legends:[]})},e.prototype.display_defaults=function(){return a.extend({},e.__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})},e}(n),e.exports={Model:r,View:o}},{\"../../common/has_parent\":43,\"../../common/plot_widget\":54,\"../../common/properties\":55,\"../../common/textutils\":62,underscore:22}],78:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;a=t(\"underscore\"),n=t(\"../../common/has_parent\"),r=t(\"../../common/plot_widget\"),l=t(\"../../common/logging\").logger,s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.initialize=function(t){return e.__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()},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,\"change:location\",this._draw_span)},e.prototype.render=function(){return this._draw_span()},e.prototype._draw_span=function(){var t,e,i,n,r,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\")?(r=t.vy_to_sy(this.mget(\"location\")),n=t.vx_to_sx(e.get(\"left\")),o=e.get(\"width\")+\"px\",i=\"1px\"):(r=t.vy_to_sy(e.get(\"top\")),n=t.vx_to_sx(this.mget(\"location\")),o=\"1px\",i=e.get(\"height\")+\"px\"),this.$el.css({top:r,left:n,width:o,height:i,\"z-index\":1e3,\"background-color\":this.mget(\"color\")}),this.$el.show())},e}(r),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=s,e.prototype.type=\"Span\",e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{level:\"overlay\",dimension:\"width\",units:\"screen\",color:\"black\"})},e}(n),e.exports={Model:o,View:s}},{\"../../common/has_parent\":43,\"../../common/logging\":48,\"../../common/plot_widget\":54,underscore:22}],79:[function(t,e,i){var n,r,o,s,a,l,u,c=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;n=t(\"jquery\"),l=t(\"underscore\"),r=t(\"../../common/has_parent\"),o=t(\"../../common/plot_widget\"),u=t(\"../../common/logging\").logger,a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.className=\"bk-tooltip\",e.prototype.initialize=function(t){return e.__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()},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,\"change:data\",this._draw_tips)},e.prototype.render=function(){return this._draw_tips()},e.prototype._draw_tips=function(){var t,e,i,r,o,s,a,u,c,h,p,d,f,g,m;if(this.$el.empty(),this.$el.hide(),this.$el.toggleClass(\"bk-tooltip-custom\",this.mget(\"custom\")),!l.isEmpty(this.mget(\"data\"))){for(a=this.mget(\"data\"),i=0,o=a.length;o>i;i++)f=a[i],g=f[0],m=f[1],e=f[2],(!this.mget(\"inner_only\")||this.plot_view.frame.contains(g,m))&&(p=n(\"<div />\").appendTo(this.$el),p.append(e));switch(c=this.plot_view.mget(\"canvas\").vx_to_sx(g),h=this.plot_view.mget(\"canvas\").vy_to_sy(m),u=this.mget(\"side\"),\"auto\"===u&&(s=this.plot_view.frame.get(\"width\"),u=g-this.plot_view.frame.get(\"left\")<s/2?\"right\":\"left\"),this.$el.removeClass(\"bk-right\"),this.$el.removeClass(\"bk-left\"),t=10,u){case\"right\":this.$el.addClass(\"bk-left\"),r=c+(this.$el.outerWidth()-this.$el.innerWidth())+t;break;case\"left\":this.$el.addClass(\"bk-right\"),r=c-this.$el.outerWidth()-t}return d=h-this.$el.outerHeight()/2,this.$el.children().length>0?(this.$el.css({top:d,left:r}),this.$el.show()):void 0}},e}(o),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.default_view=a,e.prototype.type=\"Tooltip\",e.prototype.clear=function(){return this.set(\"data\",[])},e.prototype.add=function(t,e,i){var n;return n=this.get(\"data\"),n.push([t,e,i]),this.set(\"data\",n)},e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{level:\"overlay\",side:\"auto\",inner_only:!0})},e}(r),e.exports={Model:s,View:a}},{\"../../common/has_parent\":43,\"../../common/logging\":48,\"../../common/plot_widget\":54,jquery:17,underscore:22}],80:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;s=t(\"underscore\"),l=t(\"../../common/mathutils\"),o=t(\"./glyph\"),a=t(\"../../common/hittest\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){var t,e,i,n;for(this.sinner_radius=\"data\"===this.distances.inner_radius.units?this.sdist(this.renderer.xmapper,this.x,this.inner_radius):this.inner_radius,this.souter_radius=\"data\"===this.distances.outer_radius.units?this.sdist(this.renderer.xmapper,this.x,this.outer_radius):this.outer_radius,this.angle=new Float32Array(this.start_angle.length),n=[],t=e=0,i=this.start_angle.length;i>=0?i>e:e>i;t=i>=0?++e:--e)n.push(this.angle[t]=this.end_angle[t]-this.start_angle[t]);return n},e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d;for(p=i.sx,d=i.sy,h=i.start_angle,n=i.angle,u=i.sinner_radius,c=i.souter_radius,r=i.direction,l=[],s=0,a=e.length;a>s;s++)o=e[s],isNaN(p[o]+d[o]+u[o]+c[o]+h[o]+n[o]+r[o])||(t.translate(p[o],d[o]),t.rotate(this.start_angle[o]),t.moveTo(c[o],0),t.beginPath(),t.arc(0,0,c[o],0,n[o],r[o]),t.rotate(this.angle[o]),t.lineTo(u[o],0),t.arc(0,0,u[o],0,-n[o],!r[o]),t.closePath(),t.rotate(-n[o]-h[o]),t.translate(-p[o],-d[o]),this.visuals.fill.do_fill&&(this.visuals.fill.set_vectorize(t,o),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,o),l.push(t.stroke())):l.push(void 0));return l},e.prototype._hit_point=function(t){var e,i,n,r,o,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D,T,S,A,P,I,E,R,N,z,O,j,F,H;for(m=[t.vx,t.vy],S=m[0],I=m[1],N=this.renderer.xmapper.map_from_target(S,!0),j=this.renderer.ymapper.map_from_target(I,!0),\"data\"===this.distances.outer_radius.units?(z=N-this.max_outer_radius,O=N+this.max_outer_radius,F=j-this.max_outer_radius,H=j+this.max_outer_radius):(A=S-this.max_outer_radius,P=S+this.max_outer_radius,_=this.renderer.xmapper.v_map_from_target([A,P],!0),z=_[0],O=_[1],E=I-this.max_outer_radius,R=I+this.max_outer_radius,v=this.renderer.ymapper.v_map_from_target([E,R],!0),F=v[0],H=v[1]),i=[],y=function(){var t,e,i,n;for(i=this.index.search([z,F,O,H]),n=[],t=0,e=i.length;e>t;t++)g=i[t],n.push(g[4].i);return n}.call(this),c=0,p=y.length;p>c;c++)o=y[c],f=Math.pow(this.souter_radius[o],2),u=Math.pow(this.sinner_radius[o],2),k=this.renderer.xmapper.map_to_target(N,!0),C=this.renderer.xmapper.map_to_target(this.x[o],!0),D=this.renderer.ymapper.map_to_target(j,!0),T=this.renderer.ymapper.map_to_target(this.y[o],!0),n=Math.pow(k-C,2)+Math.pow(D-T,2),f>=n&&n>=u&&i.push([o,n]);for(r=[],h=0,d=i.length;d>h;h++)b=i[h],o=b[0],n=b[1],x=this.renderer.plot_view.canvas.vx_to_sx(S),M=this.renderer.plot_view.canvas.vy_to_sy(I),e=Math.atan2(M-this.sy[o],x-this.sx[o]),l.angle_between(-e,-this.start_angle[o],-this.end_angle[o],this.direction[o])&&r.push([o,n]);return w=a.create_hit_test_result(),w[\"1d\"].indices=s.chain(r).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value(),w},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=r,e.prototype.type=\"AnnularWedge\",e.prototype.distances=[\"inner_radius\",\"outer_radius\"],e.prototype.angles=[\"start_angle\",\"end_angle\"],e.prototype.fields=[\"direction:direction\"],e.prototype.display_defaults=function(){return s.extend({},e.__super__.display_defaults.call(this),{direction:\"anticlock\"})},e}(o.Model),e.exports={Model:n,View:r}},{\"../../common/hittest\":45,\"../../common/mathutils\":49,\"./glyph\":86,underscore:22}],81:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;s=t(\"underscore\"),o=t(\"./glyph\"),a=t(\"../../common/hittest\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return this.sinner_radius=\"data\"===this.distances.inner_radius.units?this.sdist(this.renderer.xmapper,this.x,this.inner_radius):this.inner_radius,this.souter_radius=\"data\"===this.distances.outer_radius.units?this.sdist(this.renderer.xmapper,this.x,this.outer_radius):this.outer_radius},e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c;for(u=i.sx,c=i.sy,a=i.sinner_radius,l=i.souter_radius,s=[],r=0,o=e.length;o>r;r++)n=e[r],isNaN(u[n]+c[n]+a[n]+l[n])||(t.beginPath(),t.arc(u[n],c[n],a[n],0,2*Math.PI*2,!1),t.moveTo(u[n]+l[n],c[n]),t.arc(u[n],c[n],l[n],0,2*Math.PI*2,!0),this.visuals.fill.do_fill&&(this.visuals.fill.set_vectorize(t,n),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,n),s.push(t.stroke())):s.push(void 0));return s},e.prototype._hit_point=function(t){var e,i,n,r,o,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M;for(h=[t.vx,t.vy],v=h[0],y=h[1],b=this.renderer.xmapper.map_from_target(v,!0),w=b-this.max_radius,x=b+this.max_radius,k=this.renderer.ymapper.map_from_target(y,!0),C=k-this.max_radius,M=k+this.max_radius,i=[],p=function(){var t,e,i,n;for(i=this.index.search([w,C,x,M]),n=[],t=0,e=i.length;e>t;t++)c=i[t],n.push(c[4].i);return n}.call(this),o=0,l=p.length;l>o;o++)n=p[o],u=Math.pow(this.souter_radius[n],2),r=Math.pow(this.sinner_radius[n],2),f=this.renderer.xmapper.map_to_target(b),g=this.renderer.xmapper.map_to_target(this.x[n]),m=this.renderer.ymapper.map_to_target(k),_=this.renderer.ymapper.map_to_target(this.y[n]),e=Math.pow(f-g,2)+Math.pow(m-_,2),u>=e&&e>=r&&i.push([n,e]);return d=a.create_hit_test_result(),d[\"1d\"].indices=s.chain(i).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value(),d},e.prototype.draw_legend=function(t,e,i,n,r){var o,s,a,l,u,c,h,p,d;return u=null!=(l=this.get_reference_point())?l:0,s=[u],p={},p[u]=(e+i)/2,d={},d[u]=(n+r)/2,a=.5*Math.min(Math.abs(i-e),Math.abs(r-n)),c={},c[u]=.4*a,h={},h[u]=.8*a,o={sx:p,sy:d,sinner_radius:c,souter_radius:h},this._render(t,s,o)},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=r,e.prototype.type=\"Annulus\",e.prototype.distances=[\"inner_radius\",\"outer_radius\"],e}(o.Model),e.exports={Model:n,View:r}},{\"../../common/hittest\":45,\"./glyph\":86,underscore:22}],82:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),o=t(\"./glyph\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return this.sradius=\"data\"===this.distances.radius.units?this.sdist(this.renderer.xmapper,this.x,this.radius):this.radius},e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h,p;if(h=i.sx,p=i.sy,u=i.sradius,c=i.start_angle,r=i.end_angle,n=i.direction,this.visuals.line.do_stroke){for(l=[],s=0,a=e.length;a>s;s++)o=e[s],isNaN(h[o]+p[o]+u[o]+c[o]+r[o]+n[o])||(t.beginPath(),t.arc(h[o],p[o],u[o],c[o],r[o],n[o]),this.visuals.line.set_vectorize(t,o),l.push(t.stroke()));return l}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type=\"Arc\",e.prototype.visuals=[\"line\"],e.prototype.distances=[\"radius\"],e.prototype.angles=[\"start_angle\",\"end_angle\"],e.prototype.fields=[\"direction:direction\"],e.prototype.display_defaults=function(){return s.extend({},e.__super__.display_defaults.call(this),{direction:\"anticlock\"})},e}(o.Model),e.exports={Model:n,View:r}},{\"./glyph\":86,underscore:22}],83:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;s=t(\"underscore\"),l=t(\"rbush\"),o=t(\"./glyph\"),a=function(t,e,i,n,r,o,s,a){var l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C;for(x=[],h=[[],[]],d=m=0;2>=m;d=++m)if(0===d?(u=6*t-12*i+6*r,l=-3*t+9*i-9*r+3*s,p=3*i-3*t):(u=6*e-12*n+6*o,l=-3*e+9*n-9*o+3*a,p=3*n-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;y=-p/u,y>0&&1>y&&x.push(y)}else c=u*u-4*p*l,v=Math.sqrt(c),0>c||(b=(-u+v)/(2*l),b>0&&1>b&&x.push(b),w=(-u-v)/(2*l),w>0&&1>w&&x.push(w));for(f=x.length,g=f;f--;)y=x[f],_=1-y,k=_*_*_*t+3*_*_*y*i+3*_*y*y*r+y*y*y*s,h[0][f]=k,C=_*_*_*e+3*_*_*y*n+3*_*y*y*o+y*y*y*a,h[1][f]=C;return h[0][g]=t,h[1][g]=e,h[0][g+1]=s,h[1][g+1]=a,[Math.min.apply(null,h[0]),Math.max.apply(null,h[1]),Math.max.apply(null,h[0]),Math.min.apply(null,h[1])]},r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._index_data=function(){var t,e,i,n,r,o,s,u,c,h;for(e=l(),n=[],t=i=0,r=this.x0.length;r>=0?r>i:i>r;t=r>=0?++i:--i)isNaN(this.x0[t]+this.x1[t]+this.y0[t]+this.y1[t]+this.cx0[t]+this.cy0[t]+this.cx1[t]+this.cy1[t])||(o=a(this.x0[t],this.y0[t],this.x1[t],this.y1[t],this.cx0[t],this.cy0[t],this.cx1[t],this.cy1[t]),s=o[0],c=o[1],u=o[2],h=o[3],n.push([s,c,u,h,{i:t}]));return e.load(n),e},e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d,f,g;if(p=i.sx0,f=i.sy0,d=i.sx1,g=i.sy1,a=i.scx,l=i.scx0,c=i.scy0,u=i.scx1,h=i.scy1,this.visuals.line.do_stroke){for(s=[],r=0,o=e.length;o>r;r++)n=e[r],isNaN(p[n]+f[n]+d[n]+g[n]+l[n]+c[n]+u[n]+h[n])||(t.beginPath(),t.moveTo(p[n],f[n]),t.bezierCurveTo(l[n],c[n],u[n],h[n],d[n],g[n]),this.visuals.line.set_vectorize(t,n),s.push(t.stroke()));return s}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=r,e.prototype.type=\"Bezier\",e.prototype.visuals=[\"line\"],e.prototype.coords=[[\"x0\",\"y0\"],[\"x1\",\"y1\"],[\"cx0\",\"cy0\"],[\"cx1\",\"cy1\"]],e}(o.Model),e.exports={Model:n,View:r}},{\"./glyph\":86,rbush:19,underscore:22}],84:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;s=t(\"underscore\"),o=t(\"./glyph\"),a=t(\"../../common/hittest\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){var t,e;return null!=this.radius?\"data\"===this.distances.radius.units?(t=this.fields.radius_dimension.fixed_value,this.sradius=this.sdist(this.renderer[t+\"mapper\"],this[t],this.radius)):(this.sradius=this.radius,this.max_size=2*this.max_radius):this.sradius=function(){var t,i,n,r;for(n=this.size,r=[],t=0,i=n.length;i>t;t++)e=n[t],r.push(e/2);return r}.call(this)},e.prototype._mask_data=function(t){var e,i,n,r,o,s,a,l,u,c,h,p,d,f,g,m,_;return e=this.renderer.plot_view.frame.get(\"h_range\"),p=this.renderer.plot_view.frame.get(\"v_range\"),null!=this.radius&&\"data\"===this.distances.radius.units?(l=e.get(\"start\"),u=e.get(\"end\"),i=this.renderer.xmapper.v_map_from_target([l,u],!0),f=i[0],g=i[1],f-=this.max_radius,g+=this.max_radius,c=p.get(\"start\"),h=p.get(\"end\"),n=this.renderer.ymapper.v_map_from_target([c,h],!0),m=n[0],_=n[1],m-=this.max_radius,_+=this.max_radius):(l=e.get(\"start\")-this.max_size,u=e.get(\"end\")+this.max_size,r=this.renderer.xmapper.v_map_from_target([l,u],!0),f=r[0],g=r[1],c=p.get(\"start\")-this.max_size,h=p.get(\"end\")+this.max_size,o=this.renderer.ymapper.v_map_from_target([c,h],!0),m=o[0],_=o[1]),f>g&&(s=[g,f],f=s[0],g=s[1]),m>_&&(a=[_,m],m=a[0],_=a[1]),function(){var t,e,i,n;for(i=this.index.search([f,m,g,_]),n=[],t=0,e=i.length;e>t;t++)d=i[t],n.push(d[4].i);return n}.call(this)},e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u;for(l=i.sx,u=i.sy,a=i.sradius,s=[],r=0,o=e.length;o>r;r++)n=e[r],isNaN(l[n]+u[n]+a[n])||(t.beginPath(),t.arc(l[n],u[n],a[n],0,2*Math.PI,!1),this.visuals.fill.do_fill&&(this.visuals.fill.set_vectorize(t,n),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,n),s.push(t.stroke())):s.push(void 0));return s},e.prototype._hit_point=function(t){var e,i,n,r,o,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D,T,S,A,P,I,E,R,N,z,O;if(d=[t.vx,t.vy],M=d[0],S=d[1],I=this.renderer.xmapper.map_from_target(M,!0),N=this.renderer.ymapper.map_from_target(S,!0),null!=this.radius&&\"data\"===this.distances.radius.units?(E=I-this.max_radius,R=I+this.max_radius,z=N-this.max_radius,O=N+this.max_radius):(D=M-this.max_size,T=M+this.max_size,f=this.renderer.xmapper.v_map_from_target([D,T],!0),E=f[0],R=f[1],g=[Math.min(E,R),Math.max(E,R)],E=g[0],R=g[1],A=S-this.max_size,P=S+this.max_size,m=this.renderer.ymapper.v_map_from_target([A,P],!0),z=m[0],O=m[1],_=[Math.min(z,O),Math.max(z,O)],z=_[0],O=_[1]),e=function(){var t,e,i,n;for(i=this.index.search([E,z,R,O]),n=[],t=0,e=i.length;e>t;t++)h=i[t],n.push(h[4].i);return n}.call(this),n=[],null!=this.radius&&\"data\"===this.distances.radius.units)for(o=0,u=e.length;u>o;o++)r=e[o],p=Math.pow(this.sradius[r],2),b=this.renderer.xmapper.map_to_target(I,!0),w=this.renderer.xmapper.map_to_target(this.x[r],!0),k=this.renderer.ymapper.map_to_target(N,!0),C=this.renderer.ymapper.map_to_target(this.y[r],!0),i=Math.pow(b-w,2)+Math.pow(k-C,2),p>=i&&n.push([r,i]);else for(y=this.renderer.plot_view.canvas.vx_to_sx(M),x=this.renderer.plot_view.canvas.vy_to_sy(S),l=0,c=e.length;c>l;l++)r=e[l],p=Math.pow(this.sradius[r],2),i=Math.pow(this.sx[r]-y,2)+Math.pow(this.sy[r]-x,2),p>=i&&n.push([r,i]);return n=s.chain(n).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value(),v=a.create_hit_test_result(),v[\"1d\"].indices=n,v},e.prototype._hit_span=function(t){var e,i,n,r,o,s,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k;return n=[t.vx,t.vy],h=n[0],f=n[1],r=this.bounds(),y=r[0],k=r[1],c=a.create_hit_test_result(),\"h\"===t.direction?(w=k[0],x=k[1],null!=this.radius&&\"data\"===this.distances.radius.units?(p=h-this.max_radius,d=h+this.max_radius,o=this.renderer.xmapper.v_map_from_target([p,d]),_=o[0],v=o[1]):(i=this.max_size/2,p=h-i,d=h+i,s=this.renderer.xmapper.v_map_from_target([p,d],!0),_=s[0],v=s[1])):(_=y[0],v=y[1],null!=this.radius&&\"data\"===this.distances.radius.units?(g=f-this.max_radius,m=f+this.max_radius,l=this.renderer.ymapper.v_map_from_target([g,m]),w=l[0],x=l[1]):(i=this.max_size/2,g=f-i,m=f+i,u=this.renderer.ymapper.v_map_from_target([g,m],!0),w=u[0],x=u[1])),e=function(){var t,e,i,n;for(i=this.index.search([_,w,v,x]),n=[],t=0,e=i.length;e>t;t++)b=i[t],n.push(b[4].i);return n}.call(this),c[\"1d\"].indices=e,c},e.prototype._hit_rect=function(t){var e,i,n,r,o,s,l,u;return e=this.renderer.xmapper.v_map_from_target([t.vx0,t.vx1],!0),o=e[0],s=e[1],i=this.renderer.ymapper.v_map_from_target([t.vy0,t.vy1],!0),l=i[0],u=i[1],n=a.create_hit_test_result(),n[\"1d\"].indices=function(){var t,e,i,n;for(i=this.index.search([o,l,s,u]),n=[],t=0,e=i.length;e>t;t++)r=i[t],n.push(r[4].i);return n}.call(this),n},e.prototype._hit_poly=function(t){var e,i,n,r,o,l,u,c,h,p,d,f,g;for(l=[s.clone(t.vx),s.clone(t.vy)],f=l[0],g=l[1],p=this.renderer.plot_view.canvas.v_vx_to_sx(f),d=this.renderer.plot_view.canvas.v_vy_to_sy(g),e=function(){h=[];for(var t=0,e=this.sx.length;e>=0?e>t:t>e;e>=0?t++:t--)h.push(t);return h}.apply(this),i=[],n=o=0,u=e.length;u>=0?u>o:o>u;n=u>=0?++o:--o)r=e[n],a.point_in_poly(this.sx[n],this.sy[n],p,d)&&i.push(r);return c=a.create_hit_test_result(),c[\"1d\"].indices=i,c},e.prototype.draw_legend=function(t,e,i,n,r){var o,s,a,l,u,c,h;return l=null!=(a=this.get_reference_point())?a:0,s=[l],c={},c[l]=(e+i)/2,h={},h[l]=(n+r)/2,u={},u[l]=.2*Math.min(Math.abs(i-e),Math.abs(r-n)),o={sx:c,sy:h,sradius:u},this._render(t,s,o)},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=r,e.prototype.type=\"Circle\",e.prototype.distances=[\"?radius\",\"?size\"],e.prototype.fields=[\"radius_dimension:string\"],e.prototype.display_defaults=function(){return s.extend({},e.__super__.display_defaults.call(this),{size:4})},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{radius_dimension:\"x\"})},e}(o.Model),e.exports={Model:n,View:r}},{\"../../common/hittest\":45,\"./glyph\":86,underscore:22}],85:[function(t,e,i){(function(i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;l=t(\"underscore\"),a=t(\"./glyph\"),o=null!=i._bokehTest?void 0:t(\"gear_utils\"),n=t(\"../../util/bezier\"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return this.smodule=this.sdist(this.renderer.xmapper,this.x,this.module,\"edge\")},e.prototype._render=function(t,e,i){var n,r,s,a,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D,T,S;for(C=i.sx,M=i.sy,k=i.smodule,r=i.angle,D=i.teeth,f=i.pressure_angle,x=i.shaft_size,l=i.internal,c=0,p=e.length;p>c;c++)if(a=e[c],!isNaN(C[a]+M[a]+r[a]+k[a]+D[a]+f[a]+x[a]+l[a])){for(d=k[a]*D[a]/2,s=l[a]?o.create_internal_gear_tooth:o.create_gear_tooth,b=s(k[a],D[a],f[a]),g=b.slice(0,3),n=g[0],T=g[1],S=g[2],y=b.slice(3),t.save(),t.translate(C[a],M[a]),t.rotate(r[a]),t.beginPath(),v=2*Math.PI/D[a],t.moveTo(T,S),u=h=0,m=D[a];m>=0?m>h:h>m;u=m>=0?++h:--h)this._render_seq(t,y),t.rotate(v);t.closePath(),l[a]?(_=d+2.75*k[a],t.moveTo(_,0),t.arc(0,0,_,0,2*Math.PI,!0)):x[a]>0&&(w=d*x[a],t.moveTo(w,0),t.arc(0,0,w,0,2*Math.PI,!0)),this.visuals.fill.do_fill&&(this.visuals.fill.set_vectorize(t,a),t.fill()),this.visuals.line.do_stroke&&(this.visuals.line.set_vectorize(t,a),t.stroke()),t.restore()}},e.prototype._render_seq=function(t,e){var i,r,o,s,a,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D,T,S,A,P,I,E;for(u=0;u<e.length;)switch(l.isString(e[u])&&(i=e[u],u+=1),i){case\"M\":g=e.slice(u,u+2),P=g[0],E=g[1],t.moveTo(P,E),m=[P,E],d=m[0],f=m[1],u+=2;break;case\"L\":v=e.slice(u,u+2),P=v[0],E=v[1],t.lineTo(P,E),y=[P,E],d=y[0],f=y[1],u+=2;break;case\"C\":b=e.slice(u,u+6),r=b[0],s=b[1],o=b[2],a=b[3],P=b[4],E=b[5],t.bezierCurveTo(r,s,o,a,P,E),w=[P,E],d=w[0],f=w[1],u+=6;break;case\"Q\":x=e.slice(u,u+4),r=x[0],s=x[1],P=x[2],E=x[3],t.quadraticCurveTo(r,s,P,E),k=[P,E],d=k[0],f=k[1],u+=4;break;case\"A\":for(C=e.slice(u,u+7),D=C[0],T=C[1],I=C[2],h=C[3],A=C[4],P=C[5],E=C[6],S=n.arc_to_bezier(d,f,D,T,-I,h,1-A,P,E),c=0,p=S.length;p>c;c++)M=S[c],r=M[0],s=M[1],o=M[2],a=M[3],P=M[4],E=M[5],t.bezierCurveTo(r,s,o,a,P,E);_=[P,E],d=_[0],f=_[1],u+=7;break;default:throw new Error(\"unexpected command: \"+i)}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e}(a.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=s,e.prototype.type=\"Gear\",e.prototype.angles=[\"module\"],e.prototype.fields=[\"angle\",\"internal:bool\",\"pressure_angle\",\"shaft_size\",\"teeth\"],e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{angle:0,pressure_angle:20,shaft_size:.3,internal:!1})},e}(a.Model),e.exports={Model:r,View:s}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../../util/bezier\":175,\"./glyph\":86,gear_utils:224,underscore:22}],86:[function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d=function(t,e){function i(){this.constructor=t}for(var n in e)f.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},f={}.hasOwnProperty;l=t(\"underscore\"),p=t(\"rbush\"),u=t(\"../../common/bbox\"),c=t(\"../../common/logging\").logger,a=t(\"../../common/has_parent\"),r=t(\"../../common/continuum_view\"),h=t(\"../../common/properties\"),n=t(\"../../mapper/categorical_mapper\"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,t),e.prototype.initialize=function(t){var i,n,r;e.__super__.initialize.call(this,t),this.renderer=t.renderer,r=h.factories;for(n in r)i=r[n],this[n]={},this[n]=l.extend(this[n],i(this.model));return this.warned={},this},e.prototype.render=function(t,e,i){return this.mget(\"visible\")?(t.beginPath(),this._render(t,e,i)):void 0},e.prototype.map_data=function(){var t,e,i,n,r,o,s,a,u,c,h,p,d,f,g,m,_;for(r=this.model.coords,e=0,n=r.length;n>e;e++)if(o=r[e],m=o[0],_=o[1],d=\"s\"+m,g=\"s\"+_,l.isArray(null!=(s=this[m])?s[0]:void 0))for(a=[[],[]],this[d]=a[0],this[g]=a[1],t=i=0,u=this[m].length;u>=0?u>i:i>u;t=u>=0?++i:--i)c=this.renderer.map_to_screen(this[m][t],this[_][t]),p=c[0],f=c[1],this[d].push(p),this[g].push(f);else h=this.renderer.map_to_screen(this[m],this[_]),this[d]=h[0],this[g]=h[1];return this._map_data()},e.prototype.set_data=function(t){var e,i,n,r,o,s;n=this.coords;for(e in n)i=n[e],this[e]=i.array(t);r=this.angles;for(e in r)i=r[e],this[e]=i.array(t);o=this.distances;for(e in o)i=o[e],this[e]=i.array(t),this[\"max_\"+e]=Math.max.apply(null,this[e]);s=this.fields;for(e in s)i=s[e],this[e]=i.array(t);return this._set_data(),this.index=this._index_data()},e.prototype.set_visuals=function(t){var e,i,n,r;n=this.visuals,r=[];for(e in n)i=n[e],r.push(i.warm_cache(t));return r},e.prototype.bounds=function(){var t;return null==this.index?u.empty():(t=this.index.data.bbox,this._bounds([[t[0],t[2]],[t[1],t[3]]]))},e.prototype.scx=function(t){return this.sx[t]},e.prototype.scy=function(t){return this.sy[t]},e.prototype._set_data=function(){return null},e.prototype._map_data=function(){return null},e.prototype._mask_data=function(t){return t},e.prototype._bounds=function(t){return t},e.prototype._xy_index=function(){var t,e,i,r,o,s,a,l,u;for(e=p(),r=[],a=this.renderer.xmapper instanceof n.Model?this.renderer.xmapper.v_map_to_target(this.x,!0):this.x,u=this.renderer.ymapper instanceof n.Model?this.renderer.ymapper.v_map_to_target(this.y,!0):this.y,t=i=0,o=a.length;o>=0?o>i:i>o;t=o>=0?++i:--i)s=a[t],!isNaN(s)&&isFinite(s)&&(l=u[t],!isNaN(l)&&isFinite(l)&&r.push([s,l,s,l,{i:t}]));return e.load(r),e},e.prototype.sdist=function(t,e,i,n,r){var o,s,a,u,c,h,p;return null==n&&(n=\"edge\"),null==r&&(r=!1),l.isString(e[0])&&(e=t.v_map_to_target(e)),\"center\"===n?(s=function(){var t,e,n;for(n=[],t=0,e=i.length;e>t;t++)o=i[t],n.push(o/2);return n}(),u=function(){var t,i,n;for(n=[],a=t=0,i=e.length;i>=0?i>t:t>i;a=i>=0?++t:--t)n.push(e[a]-s[a]);return n}(),c=function(){var t,i,n;for(n=[],a=t=0,i=e.length;i>=0?i>t:t>i;a=i>=0?++t:--t)n.push(e[a]+s[a]);return n}()):(u=e,c=function(){var t,e,n;for(n=[],a=t=0,e=u.length;e>=0?e>t:t>e;a=e>=0?++t:--t)n.push(u[a]+i[a]);return n}()),h=t.v_map_to_target(u),p=t.v_map_to_target(c),r?function(){var t,e,i;for(i=[],a=t=0,e=h.length;e>=0?e>t:t>e;a=e>=0?++t:--t)i.push(Math.ceil(Math.abs(p[a]-h[a])));return i}():function(){var t,e,i;for(i=[],a=t=0,e=h.length;e>=0?e>t:t>e;a=e>=0?++t:--t)i.push(Math.abs(p[a]-h[a]));return i}()},e.prototype.hit_test=function(t){var e,i;return i=null,e=\"_hit_\"+t.type,null!=this[e]?i=this[e](t):null==this.warned[t.type]&&(c.error(\"'\"+t.type+\"' selection not available for \"+this.model.type),this.warned[t.type]=!0),i},e.prototype.get_reference_point=function(){var t;return t=this.mget(\"reference_point\"),l.isNumber(t)?this.data[t]:t},e.prototype.draw_legend=function(t,e,i,n,r){return null},e.prototype._generic_line_legend=function(t,e,i,n,r){var o,s;return s=null!=(o=this.get_reference_point())?o:0,t.save(),t.beginPath(),t.moveTo(e,(n+r)/2),t.lineTo(i,(n+r)/2),this.visuals.line.do_stroke&&(this.visuals.line.set_vectorize(t,s),t.stroke()),t.restore()},e.prototype._generic_area_legend=function(t,e,i,n,r){var o,s,a,l,u,c,h,p,d,f,g;return c=null!=(u=this.get_reference_point())?u:0,l=[c],g=Math.abs(i-e),s=.1*g,a=Math.abs(r-n),o=.1*a,h=e+s,p=i-s,d=n+o,f=r-o,this.visuals.fill.do_fill&&(this.visuals.fill.set_vectorize(t,c),t.fillRect(h,d,p-h,f-d)),this.visuals.line.do_stroke?(t.beginPath(),\n",
       "                t.rect(h,d,p-h,f-d),this.visuals.line.set_vectorize(t,c),t.stroke()):void 0},e}(r),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,t),e.prototype.visuals=[\"line\",\"fill\"],e.prototype.coords=[[\"x\",\"y\"]],e.prototype.distances=[],e.prototype.angles=[],e.prototype.fields=[],e.prototype.fill_defaults={fill_color:\"gray\",fill_alpha:1},e.prototype.line_defaults={line_color:\"black\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0},e.prototype.text_defaults={text_font:\"helvetica\",text_font_size:\"12pt\",text_font_style:\"normal\",text_color:\"#444444\",text_alpha:1,text_align:\"left\",text_baseline:\"bottom\"},e.prototype.defaults=function(){return l.extend({visible:!0})},e.prototype.display_defaults=function(){var t,i,n,r,o,s;for(s={},o=this.visuals,i=0,n=o.length;n>i;i++){switch(r=o[i]){case\"line\":t=this.line_defaults;break;case\"fill\":t=this.fill_defaults;break;case\"text\":t=this.text_defaults;break;default:c.warn(\"unknown visual property type '\"+r+\"'\");continue}s=l.extend(s,e.__super__.display_defaults.call(this),t)}return s},e}(a),e.exports={Model:o,View:s}},{\"../../common/bbox\":30,\"../../common/continuum_view\":38,\"../../common/has_parent\":43,\"../../common/logging\":48,\"../../common/properties\":55,\"../../mapper/categorical_mapper\":68,rbush:19,underscore:22}],87:[function(t,e,i){var n,r,o,s,a,l,u,c,h=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;u=t(\"underscore\"),c=t(\"../../common/logging\").logger,s=t(\"../../common/has_parent\"),a=t(\"../../common/plot_widget\"),n=t(\"../../range/factor_range\"),l=t(\"../../source/remote_data_source\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.initialize=function(t){var i,n,r;return e.__super__.initialize.call(this,t),this.glyph=this.build_glyph(this.mget(\"glyph\")),r=this.mget(\"selection_glyph\"),null==r&&(r=this.mget(\"glyph\").clone(),r.set(this.model.selection_defaults,{silent:!0})),this.selection_glyph=this.build_glyph(r),n=this.mget(\"nonselection_glyph\"),null==n&&(n=this.mget(\"glyph\").clone(),n.set(this.model.nonselection_defaults,{silent:!0})),this.nonselection_glyph=this.build_glyph(n),i=this.mget(\"glyph\").clone(),i.set(this.model.decimated_defaults,{silent:!0}),this.decimated_glyph=this.build_glyph(i),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.set_data(!1),this.mget(\"data_source\")instanceof l.RemoteDataSource?this.mget(\"data_source\").setup(this.plot_view,this.glyph):void 0},e.prototype.build_glyph=function(t){return new t.default_view({model:t,renderer:this})},e.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)},e.prototype.have_selection_glyphs=function(){return!0},e.prototype.setup_server_data=function(){},e.prototype.set_data=function(t,e){var i,n,r,o,s,a,l,u,h;for(null==t&&(t=!0),h=Date.now(),u=this.mget(\"data_source\"),this.glyph.set_data(u,e),this.glyph.set_visuals(u),this.selection_glyph.set_visuals(u),this.nonselection_glyph.set_visuals(u),o=u.get_length(),null==o&&(o=1),this.all_indices=function(){l=[];for(var t=0;o>=0?o>t:t>o;o>=0?t++:t--)l.push(t);return l}.apply(this),s=this.plot_model.get(\"lod_factor\"),this.decimated=[],n=r=0,a=Math.floor(this.all_indices.length/s);a>=0?a>r:r>a;n=a>=0?++r:--r)this.decimated.push(this.all_indices[n*s]);return i=Date.now()-h,c.debug(this.glyph.model.type+\" GlyphRenderer (\"+this.model.id+\"): set_data finished in \"+i+\"ms\"),this.set_data_timestamp=Date.now(),t?this.request_render():void 0},e.prototype.render=function(){var t,e,i,n,r,o,s,a,l,u,h,p,d,f,g,m,_,v,y,b,w,x,k,C;if(b=Date.now(),w=Date.now(),this.glyph.map_data(),e=Date.now()-b,x=Date.now(),l=this.glyph._mask_data(this.all_indices),i=Date.now()-x,t=this.plot_view.canvas_view.ctx,t.save(),_=this.mget(\"data_source\").get(\"selected\"),_=_&&0!==_.length?_[\"0d\"].flag?l:_[\"1d\"].indices.length>0?_[\"1d\"].indices:_[\"2d\"].indices.length>0?_[\"2d\"].indices:[]:[],f=this.plot_model.get(\"lod_threshold\"),this.plot_view.interactive&&null!=f&&this.all_indices.length>f?(l=this.decimated,s=this.decimated_glyph,m=this.decimated_glyph,y=this.selection_glyph):(s=this.glyph,m=this.nonselection_glyph,y=this.selection_glyph),_.length&&this.have_selection_glyphs()){for(C=Date.now(),v={},u=0,p=_.length;p>u;u++)a=_[u],v[a]=!0;for(_=new Array,g=new Array,h=0,d=l.length;d>h;h++)a=l[h],null!=v[a]?_.push(a):g.push(a);r=Date.now()-C,k=Date.now(),m.render(t,g,this.glyph),y.render(t,_,this.glyph),n=Date.now()-k}else k=Date.now(),s.render(t,l,this.glyph),n=Date.now()-k;return this.last_dtrender=n,o=Date.now()-b,c.debug(this.glyph.model.type+\" GlyphRenderer (\"+this.model.id+\"): render finished in \"+o+\"ms\"),c.trace(\" - map_data finished in       : \"+e+\"ms\"),null!=i&&c.trace(\" - mask_data finished in      : \"+i+\"ms\"),null!=r&&c.trace(\" - selection mask finished in : \"+r+\"ms\"),c.trace(\" - glyph renders finished in  : \"+n+\"ms\"),t.restore()},e.prototype.map_to_screen=function(t,e){return this.plot_view.map_to_screen(t,e,this.mget(\"x_range_name\"),this.mget(\"y_range_name\"))},e.prototype.draw_legend=function(t,e,i,n,r){return this.glyph.draw_legend(t,e,i,n,r)},e.prototype.hit_test=function(t){return this.glyph.hit_test(t)},e}(a),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.default_view=o,e.prototype.type=\"GlyphRenderer\",e.prototype.selection_defaults={},e.prototype.decimated_defaults={fill_alpha:.3,line_alpha:.3,fill_color:\"grey\",line_color:\"grey\"},e.prototype.nonselection_defaults={fill_alpha:.2,line_alpha:.2},e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{x_range_name:\"default\",y_range_name:\"default\",data_source:null})},e.prototype.display_defaults=function(){return u.extend({},e.__super__.display_defaults.call(this),{level:\"glyph\"})},e}(s),e.exports={Model:r,View:o}},{\"../../common/has_parent\":43,\"../../common/logging\":48,\"../../common/plot_widget\":54,\"../../range/factor_range\":75,\"../../source/remote_data_source\":133,underscore:22}],88:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t(\"underscore\"),n=t(\"./glyph\"),s=t(\"../../mapper/linear_color_mapper\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._set_data=function(){var t,e,i,n,r,o,s,l,u,c,h;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)),h=[],o=u=0,c=this.image.length;c>=0?c>u:u>c;o=c>=0?++u:--u)null!=this.rows?(this.height[o]=this.rows[o],this.width[o]=this.cols[o]):(this.height[o]=this.image[o].length,this.width[o]=this.image[o][0].length),i=document.createElement(\"canvas\"),i.width=this.width[o],i.height=this.height[o],r=i.getContext(\"2d\"),s=r.getImageData(0,0,this.width[o],this.height[o]),n=this.mget(\"color_mapper\"),l=null!=this.rows?this.image[o]:a.flatten(this.image[o]),t=n.v_map_screen(l),e=new Uint8ClampedArray(t),s.data.set(e),r.putImageData(s,0,0),this.image_data[o]=i,this.max_dw=0,\"data\"===this.dw.units&&(this.max_dw=a.max(this.dw)),this.max_dh=0,\"data\"===this.dh.units&&(this.max_dh=a.max(this.dh)),h.push(this._xy_index());return h},e.prototype._map_data=function(){return this.sw=this.sdist(this.renderer.xmapper,this.x,this.dw,\"edge\",this.mget(\"dilate\")),this.sh=this.sdist(this.renderer.ymapper,this.y,this.dh,\"edge\",this.mget(\"dilate\"))},e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h,p;for(r=i.image_data,c=i.sx,h=i.sy,u=i.sw,l=i.sh,a=t.getImageSmoothingEnabled(),t.setImageSmoothingEnabled(!1),o=0,s=e.length;s>o;o++)n=e[o],null!=r[n]&&(isNaN(c[n]+h[n]+u[n]+l[n])||(p=h[n],t.translate(0,p),t.scale(1,-1),t.translate(0,-p),t.drawImage(r[n],0|c[n],0|h[n],u[n],l[n]),t.translate(0,p),t.scale(1,-1),t.translate(0,-p)));return t.setImageSmoothingEnabled(a)},e.prototype.bounds=function(){var t;return t=this.index.data.bbox,[[t[0],t[2]+this.max_dw],[t[1],t[3]+this.max_dh]]},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=o,e.prototype.type=\"Image\",e.prototype.visuals=[],e.prototype.distances=[\"dw\",\"dh\"],e.prototype.fields=[\"image:array\",\"?rows\",\"?cols\",\"palette:string\"],e.prototype.display_defaults=function(){return a.extend({},e.__super__.display_defaults.call(this),{dilate:!1})},e}(n.Model),e.exports={Model:r,View:o}},{\"../../mapper/linear_color_mapper\":70,\"./glyph\":86,underscore:22}],89:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./glyph\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._set_data=function(t,e){var i,n,r,o,a,l,u,c,h,p,d,f,g,m;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)),m=[],u=p=0,f=this.image.length;f>=0?f>p:p>f;u=f>=0?++p:--p)if(null==e||u===e){if(null!=this.rows?(this.height[u]=this.rows[u],this.width[u]=this.cols[u]):(this.height[u]=this.image[u].length,this.width[u]=this.image[u][0].length),r=document.createElement(\"canvas\"),r.width=this.width[u],r.height=this.height[u],a=r.getContext(\"2d\"),c=a.getImageData(0,0,this.width[u],this.height[u]),null!=this.rows)c.data.set(new Uint8ClampedArray(this.image[u]));else{for(l=s.flatten(this.image[u]),i=new ArrayBuffer(4*l.length),o=new Uint32Array(i),h=d=0,g=l.length;g>=0?g>d:d>g;h=g>=0?++d:--d)o[h]=l[h];n=new Uint8ClampedArray(i),c.data.set(n)}a.putImageData(c,0,0),this.image_data[u]=r,this.max_dw=0,\"data\"===this.dw.units&&(this.max_dw=s.max(this.dw)),this.max_dh=0,m.push(\"data\"===this.dh.units?this.max_dh=s.max(this.dh):void 0)}return m},e.prototype._map_data=function(){return this.sw=this.sdist(this.renderer.xmapper,this.x,this.dw,\"edge\",this.mget(\"dilate\")),this.sh=this.sdist(this.renderer.ymapper,this.y,this.dh,\"edge\",this.mget(\"dilate\"))},e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h,p;for(r=i.image_data,c=i.sx,h=i.sy,u=i.sw,l=i.sh,a=t.getImageSmoothingEnabled(),t.setImageSmoothingEnabled(!1),o=0,s=e.length;s>o;o++)n=e[o],isNaN(c[n]+h[n]+u[n]+l[n])||(p=h[n],t.translate(0,p),t.scale(1,-1),t.translate(0,-p),t.drawImage(r[n],0|c[n],0|h[n],u[n],l[n]),t.translate(0,p),t.scale(1,-1),t.translate(0,-p));return t.setImageSmoothingEnabled(a)},e.prototype.bounds=function(){var t;return t=this.index.data.bbox,[[t[0],t[2]+this.max_dw],[t[1],t[3]+this.max_dh]]},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=o,e.prototype.type=\"ImageRGBA\",e.prototype.visuals=[],e.prototype.distances=[\"dw\",\"dh\"],e.prototype.fields=[\"image:array\",\"?rows\",\"?cols\"],e.prototype.display_defaults=function(){return s.extend({},e.__super__.display_defaults.call(this),{dilate:!1})},e}(n.Model),e.exports={Model:r,View:o}},{\"./glyph\":86,underscore:22}],90:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./glyph\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._set_data=function(){var t;return this.image=function(){var e,i,n,r;for(n=this.url,r=[],e=0,i=n.length;i>e;e++)t=n[e],r.push(null);return r}.call(this),this.need_load=function(){var e,i,n,r;for(n=this.url,r=[],e=0,i=n.length;i>e;e++)t=n[e],r.push(!0);return r}.call(this),this.loaded=function(){var e,i,n,r;for(n=this.url,r=[],e=0,i=n.length;i>e;e++)t=n[e],r.push(!1);return r}.call(this),this._xy_index()},e.prototype._map_data=function(){return this.sw=this.sdist(this.renderer.xmapper,this.x,this.w,\"edge\",this.mget(\"dilate\")),this.sh=this.sdist(this.renderer.ymapper,this.y,this.h,\"edge\",this.mget(\"dilate\"))},e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d,f,g;for(g=i.url,o=i.image,u=i.need_load,d=i.sx,f=i.sy,p=i.sw,h=i.sh,n=i.angle,c=[],a=0,l=e.length;l>a;a++)r=e[a],isNaN(d[r]+f[r]+n[r])||(u[r]?(s=new Image,s.onload=function(e){return function(i,r){return function(){var s;return e.loaded[r]=!0,o[r]=i,t.save(),t.beginPath(),s=e.renderer.plot_view.frame,t.rect(s.get(\"left\")+1,s.get(\"bottom\")+1,s.get(\"width\")-2,s.get(\"height\")-2),t.clip(),e._render_image(t,r,o[r],d,f,p,h,n),t.restore()}}}(this)(s,r),s.src=g[r],c.push(u[r]=!1)):c.push(this.loaded[r]?this._render_image(t,r,o[r],d,f,p,h,n):void 0));return c},e.prototype._final_sx_sy=function(t,e,i,n,r){switch(t){case\"top_left\":return[e,i];case\"top_center\":return[e-n/2,i];case\"top_right\":return[e-n,i];case\"right_center\":return[e-n,i-r/2];case\"bottom_right\":return[e-n,i-r];case\"bottom_center\":return[e-n/2,i-r];case\"bottom_left\":return[e,i-r];case\"left_center\":return[e,i-r/2];case\"center\":return[e-n/2,i-r/2]}},e.prototype._render_image=function(t,e,i,n,r,o,s,a){var l,u;return isNaN(o[e])&&(o[e]=i.width),isNaN(s[e])&&(s[e]=i.height),l=this.mget(\"anchor\")||\"top_left\",u=this._final_sx_sy(l,n[e],r[e],o[e],s[e]),n=u[0],r=u[1],a[e]?(t.translate(n,r),t.rotate(a[e]),t.drawImage(i,0,0,o[e],s[e]),t.rotate(-a[e]),t.translate(-n,-r)):t.drawImage(i,n,r,o[e],s[e])},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=o,e.prototype.type=\"ImageURL\",e.prototype.visuals=[],e.prototype.distances=[\"w\",\"h\"],e.prototype.angles=[\"angle\"],e.prototype.fields=[\"url:string\"],e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{angle:0})},e.prototype.display_defaults=function(){return s.extend({},e.__super__.display_defaults.call(this),{})},e}(n.Model),e.exports={Model:r,View:o}},{\"./glyph\":86,underscore:22}],91:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./glyph\"),a=t(\"../../common/hittest\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._render=function(t,e,i){var n,r,o,s,a,l;for(a=i.sx,l=i.sy,n=!1,this.visuals.line.set_value(t),o=0,s=e.length;s>o;o++)r=e[o],isFinite(a[r]+l[r])||!n?n?t.lineTo(a[r],l[r]):(t.beginPath(),t.moveTo(a[r],l[r]),n=!0):(t.stroke(),t.beginPath(),n=!1);return n?t.stroke():void 0},e.prototype._hit_point=function(t){var e,i,n,r,o,s,l,u,c,h,p,d,f,g,m,_;for(l=[t.vx,t.vy],f=l[0],g=l[1],m=this.renderer.xmapper.map_from_target(f),_=this.renderer.ymapper.map_from_target(g),h=a.create_hit_test_result(),s={x:m,y:_},p=100,d=1,i=n=0,u=this.x.length-1;u>=0?u>n:n>u;i=u>=0?++n:--n)c=[{x:this.x[i],y:this.y[i]},{x:this.x[i+1],y:this.y[i+1]}],r=c[0],o=c[1],e=a.dist_to_segment(s,r,o),d>e&&p>e&&(p=e,h[\"0d\"].flag=!0,h[\"0d\"].indices=[i]);return h},e.prototype._hit_span=function(t){var e,i,n,r,o,s,l,u,c;for(n=[t.vx,t.vy],u=n[0],c=n[1],o=a.create_hit_test_result(),\"v\"===t.direction?(s=this.renderer.ymapper.map_from_target(c),l=this.y):(s=this.renderer.xmapper.map_from_target(u),l=this.x),e=i=0,r=l.length-1;r>=0?r>i:i>r;e=r>=0?++i:--i)l[e]<=s&&s<=l[e+1]&&(o[\"0d\"].flag=!0,o[\"0d\"].indices.push(e));return o},e.prototype.get_interpolation_hit=function(t,e){var i,n,r,o,s,l,u,c,h,p,d,f,g,m,_,v,y,b,w;return i=[e.vx,e.vy],p=i[0],d=i[1],n=[this.x[t],this.y[t],this.x[t+1],this.y[t+1]],m=n[0],b=n[1],_=n[2],w=n[3],\"point\"===e.type?(r=this.renderer.ymapper.v_map_from_target([d-1,d+1]),v=r[0],y=r[1],o=this.renderer.xmapper.v_map_from_target([p-1,p+1]),f=o[0],g=o[1]):\"v\"===e.direction?(s=this.renderer.ymapper.v_map_from_target([d,d]),v=s[0],y=s[1],l=[m,_],f=l[0],g=l[1]):(u=this.renderer.xmapper.v_map_from_target([p,p]),f=u[0],g=u[1],c=[b,w],v=c[0],y=c[1]),h=a.check_2_segments_intersect(f,v,g,y,m,b,_,w),[h.x,h.y]},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=o,e.prototype.type=\"Line\",e.prototype.visuals=[\"line\"],e}(n.Model),e.exports={Model:r,View:o}},{\"../../common/hittest\":45,\"./glyph\":86,underscore:22}],92:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),o=t(\"./marker\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h,p;for(h=i.sx,p=i.sy,c=i.size,n=i.angle,u=[],o=0,s=e.length;s>o;o++)r=e[o],isNaN(h[r]+p[r]+c[r]+n[r])||(a=c[r]/2,l=.65*a,t.beginPath(),t.translate(h[r],p[r]),n[r]&&t.rotate(n[r]),t.moveTo(0,a),t.lineTo(0,-a),t.moveTo(-a,0),t.lineTo(a,0),t.moveTo(-l,l),t.lineTo(l,-l),t.moveTo(-l,-l),t.lineTo(l,l),n[r]&&t.rotate(-n[r]),this.visuals.line.do_stroke&&(this.visuals.line.set_vectorize(t,r),t.stroke()),u.push(t.translate(-h[r],-p[r])));return u},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type=\"Asterisk\",e.prototype.props=[\"line\"],e}(o.Model),e.exports={Model:n,View:r}},{\"./marker\":99,underscore:22}],93:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),o=t(\"./marker\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h;for(c=i.sx,h=i.sy,u=i.size,n=i.angle,l=[],o=0,s=e.length;s>o;o++)r=e[o],isNaN(c[r]+h[r]+u[r]+n[r])||(a=u[r]/2,t.beginPath(),t.translate(c[r],h[r]),t.arc(0,0,a,0,2*Math.PI,!1),this.visuals.fill.do_fill&&(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke&&(this.visuals.line.set_vectorize(t,r),n[r]&&t.rotate(n[r]),t.moveTo(0,a),t.lineTo(0,-a),t.moveTo(-a,0),t.lineTo(a,0),n[r]&&t.rotate(-n[r]),t.stroke()),l.push(t.translate(-c[r],-h[r])));return l},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type=\"CircleCross\",e}(o.Model),e.exports={Model:n,View:r}},{\"./marker\":99,underscore:22}],94:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),o=t(\"./marker\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h;for(c=i.sx,h=i.sy,u=i.size,n=i.angle,l=[],o=0,s=e.length;s>o;o++)r=e[o],isNaN(c[r]+h[r]+u[r]+n[r])||(a=u[r]/2,t.beginPath(),t.translate(c[r],h[r]),t.arc(0,0,a,0,2*Math.PI,!1),this.visuals.fill.do_fill&&(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke&&(this.visuals.line.set_vectorize(t,r),n[r]&&t.rotate(n[r]),t.moveTo(-a,a),t.lineTo(a,-a),t.moveTo(-a,-a),t.lineTo(a,a),n[r]&&t.rotate(-n[r]),t.stroke()),l.push(t.translate(-c[r],-h[r])));return l},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type=\"CircleX\",e}(o.Model),e.exports={Model:n,View:r}},{\"./marker\":99,underscore:22}],95:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),o=t(\"./marker\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h;for(c=i.sx,h=i.sy,u=i.size,n=i.angle,l=[],o=0,s=e.length;s>o;o++)r=e[o],isNaN(c[r]+h[r]+u[r]+n[r])||(a=u[r]/2,t.beginPath(),t.translate(c[r],h[r]),n[r]&&t.rotate(n[r]),t.moveTo(0,a),t.lineTo(0,-a),t.moveTo(-a,0),t.lineTo(a,0),n[r]&&t.rotate(-n[r]),this.visuals.line.do_stroke&&(this.visuals.line.set_vectorize(t,r),n[r]&&t.rotate(n[r]),t.stroke(),n[r]&&t.rotate(-n[r])),l.push(t.translate(-c[r],-h[r])));return l},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type=\"Cross\",e.prototype.props=[\"line\"],e}(o.Model),e.exports={Model:n,View:r}},{\"./marker\":99,underscore:22}],96:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),o=t(\"./marker\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h;for(c=i.sx,h=i.sy,u=i.size,n=i.angle,l=[],o=0,s=e.length;s>o;o++)r=e[o],isNaN(c[r]+h[r]+u[r]+n[r])||(a=u[r]/2,t.beginPath(),t.translate(c[r],h[r]),n[r]&&t.rotate(n[r]),t.moveTo(0,a),t.lineTo(a/1.5,0),t.lineTo(0,-a),t.lineTo(-a/1.5,0),n[r]&&t.rotate(-n[r]),t.translate(-c[r],-h[r]),t.closePath(),this.visuals.fill.do_fill&&(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,r),l.push(t.stroke())):l.push(void 0));return l},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type=\"Diamond\",e}(o.Model),e.exports={Model:n,View:r}},{\"./marker\":99,underscore:22}],97:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),o=t(\"./marker\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h;for(c=i.sx,h=i.sy,u=i.size,n=i.angle,l=[],o=0,s=e.length;s>o;o++)r=e[o],isNaN(c[r]+h[r]+u[r]+n[r])||(a=u[r]/2,t.beginPath(),t.translate(c[r],h[r]),n[r]&&t.rotate(n[r]),t.moveTo(0,a),t.lineTo(a/1.5,0),t.lineTo(0,-a),t.lineTo(-a/1.5,0),n[r]&&t.rotate(-n[r]),t.closePath(),this.visuals.fill.do_fill&&(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke&&(this.visuals.line.set_vectorize(t,r),n[r]&&t.rotate(n[r]),t.moveTo(0,a),t.lineTo(0,-a),t.moveTo(-a/1.5,0),t.lineTo(a/1.5,0),n[r]&&t.rotate(-n[r]),t.stroke()),l.push(t.translate(-c[r],-h[r])));return l},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type=\"DiamondCross\",e}(o.Model),e.exports={Model:n,View:r}},{\"./marker\":99,underscore:22}],98:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),o=t(\"./marker\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d;for(p=i.sx,d=i.sy,h=i.size,r=i.angle,c=[],a=0,l=e.length;l>a;a++)s=e[a],isNaN(p[s]+d[s]+h[s]+r[s])||(n=h[s]*Math.sqrt(3)/6,u=h[s]/2,o=h[s]*Math.sqrt(3)/2,t.beginPath(),t.translate(p[s],d[s]),r[s]&&t.rotate(r[s]),t.moveTo(-u,-n),t.lineTo(u,-n),t.lineTo(0,-n+o),r[s]&&t.rotate(-r[s]),t.translate(-p[s],-d[s]),t.closePath(),this.visuals.fill.do_fill&&(this.visuals.fill.set_vectorize(t,s),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,s),c.push(t.stroke())):c.push(void 0));return c},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type=\"InvertedTriangle\",e}(o.Model),e.exports={Model:n,View:r}},{\"./marker\":99,underscore:22}],99:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"../glyph\"),a=t(\"../../../common/hittest\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.draw_legend=function(t,e,i,n,r){var o,s,a,l,u,c,h,p;return u=null!=(l=this.get_reference_point())?l:0,a=[u],h={},h[u]=(e+i)/2,p={},p[u]=(n+r)/2,c={},c[u]=.4*Math.min(Math.abs(i-e),Math.abs(r-n)),o={},o[u]=0,s={sx:h,sy:p,size:c,angle:o},this._render(t,a,s)},e.prototype._index_data=function(){return this._xy_index()},e.prototype._mask_data=function(t){var e,i,n,r,o,s,a,l,u,c,h,p,d,f,g;return e=this.renderer.plot_view.frame.get(\"h_range\"),a=e.get(\"start\")-this.max_size,l=e.get(\"end\")+this.max_size,i=this.renderer.xmapper.v_map_from_target([a,l],!0),p=i[0],d=i[1],n=[Math.min(p,d),Math.max(p,d)],p=n[0],d=n[1],s=this.renderer.plot_view.frame.get(\"v_range\"),u=s.get(\"start\")-this.max_size,c=s.get(\"end\")+this.max_size,r=this.renderer.ymapper.v_map_from_target([u,c],!0),f=r[0],g=r[1],o=[Math.min(f,g),Math.max(f,g)],f=o[0],g=o[1],function(){var t,e,i,n;for(i=this.index.search([p,f,d,g]),n=[],t=0,e=i.length;e>t;t++)h=i[t],n.push(h[4].i);return n}.call(this)},e.prototype._hit_point=function(t){var e,i,n,r,o,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D;for(u=[t.vx,t.vy],m=u[0],y=u[1],f=this.renderer.plot_view.canvas.vx_to_sx(m),g=this.renderer.plot_view.canvas.vy_to_sy(y),_=m-this.max_size,v=m+this.max_size,c=this.renderer.xmapper.v_map_from_target([_,v],!0),k=c[0],C=c[1],b=y-this.max_size,w=y+this.max_size,h=this.renderer.ymapper.v_map_from_target([b,w],!0),M=h[0],D=h[1],e=function(){var t,e,i,n;for(i=this.index.search([k,M,C,D]),n=[],t=0,e=i.length;e>t;t++)x=i[t],n.push(x[4].i);return n}.call(this),n=[],o=0,l=e.length;l>o;o++)r=e[o],d=this.size[r]/2,i=Math.abs(this.sx[r]-f)+Math.abs(this.sy[r]-g),Math.abs(this.sx[r]-f)<=d&&Math.abs(this.sy[r]-g)<=d&&n.push([r,i]);return p=a.create_hit_test_result(),p[\"1d\"].indices=s.chain(n).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value(),p},e.prototype._hit_rect=function(t){var e,i,n,r,o,s,l,u;return e=this.renderer.xmapper.v_map_from_target([t.vx0,t.vx1],!0),o=e[0],s=e[1],i=this.renderer.ymapper.v_map_from_target([t.vy0,t.vy1],!0),l=i[0],u=i[1],n=a.create_hit_test_result(),n[\"1d\"].indices=function(){var t,e,i,n;for(i=this.index.search([o,l,s,u]),n=[],t=0,e=i.length;e>t;t++)r=i[t],n.push(r[4].i);return n}.call(this),n},e.prototype._hit_poly=function(t){var e,i,n,r,o,s,l,u,c,h,p,d,f;for(s=[t.vx,t.vy],d=s[0],f=s[1],h=this.renderer.plot_view.canvas.v_vx_to_sx(d),p=this.renderer.plot_view.canvas.v_vy_to_sy(f),e=function(){c=[];for(var t=0,e=this.sx.length;e>=0?e>t:t>e;e>=0?t++:t--)c.push(t);return c}.apply(this),i=[],n=o=0,l=e.length;l>=0?l>o:o>l;n=l>=0?++o:--o)r=e[n],a.point_in_poly(this.sx[n],this.sy[n],h,p)&&i.push(r);return u=a.create_hit_test_result(),u[\"1d\"].indices=i,u},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.distances=[\"size\"],e.prototype.angles=[\"angle\"],e.prototype.display_defaults=function(){return s.extend({},e.__super__.display_defaults.call(this),{size:4,angle:0})},e}(n.Model),e.exports={Model:r,View:o}},{\"../../../common/hittest\":45,\"../glyph\":86,underscore:22}],100:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./marker\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c;for(u=i.sx,c=i.sy,l=i.size,n=i.angle,a=[],o=0,s=e.length;s>o;o++)r=e[o],isNaN(u[r]+c[r]+l[r]+n[r])||(t.beginPath(),t.translate(u[r],c[r]),n[r]&&t.rotate(n[r]),t.rect(-l[r]/2,-l[r]/2,l[r],l[r]),n[r]&&t.rotate(-n[r]),this.visuals.fill.do_fill&&(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke&&(this.visuals.line.set_vectorize(t,r),t.stroke()),a.push(t.translate(-u[r],-c[r])));return a},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=o,e.prototype.type=\"Square\",e}(n.Model),e.exports={Model:r,View:o}},{\"./marker\":99,underscore:22}],101:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./marker\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h;for(c=i.sx,h=i.sy,u=i.size,n=i.angle,l=[],o=0,s=e.length;s>o;o++)r=e[o],isNaN(c[r]+h[r]+u[r]+n[r])||(t.beginPath(),t.translate(c[r],h[r]),n[r]&&t.rotate(n[r]),t.rect(-u[r]/2,-u[r]/2,u[r],u[r]),n[r]&&t.rotate(-n[r]),this.visuals.fill.do_fill&&(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke&&(this.visuals.line.set_vectorize(t,r),a=u[r]/2,n[r]&&t.rotate(n[r]),t.moveTo(0,a),t.lineTo(0,-a),t.moveTo(-a,0),t.lineTo(a,0),n[r]&&t.rotate(-n[r]),t.stroke()),l.push(t.translate(-c[r],-h[r])));return l},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=o,e.prototype.type=\"SquareCross\",e}(n.Model),e.exports={Model:r,View:o}},{\"./marker\":99,underscore:22}],102:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./marker\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h;for(c=i.sx,h=i.sy,u=i.size,n=i.angle,l=[],o=0,s=e.length;s>o;o++)r=e[o],isNaN(c[r]+h[r]+u[r]+n[r])||(t.beginPath(),t.translate(c[r],h[r]),n[r]&&t.rotate(n[r]),t.rect(-u[r]/2,-u[r]/2,u[r],u[r]),n[r]&&t.rotate(-n[r]),this.visuals.fill.do_fill&&(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke&&(this.visuals.line.set_vectorize(t,r),t.stroke(),a=u[r]/2,n[r]&&t.rotate(n[r]),t.moveTo(-a,a),t.lineTo(a,-a),t.moveTo(-a,-a),t.lineTo(a,a),n[r]&&t.rotate(-n[r]),t.stroke()),l.push(t.translate(-c[r],-h[r])));return l},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=o,e.prototype.type=\"SquareX\",\n",
       "                e}(n.Model),e.exports={Model:r,View:o}},{\"./marker\":99,underscore:22}],103:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./marker\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d;for(p=i.sx,d=i.sy,h=i.size,r=i.angle,c=[],a=0,l=e.length;l>a;a++)s=e[a],isNaN(p[s]+d[s]+h[s]+r[s])||(n=h[s]*Math.sqrt(3)/6,u=h[s]/2,o=h[s]*Math.sqrt(3)/2,t.beginPath(),t.translate(p[s],d[s]),r[s]&&t.rotate(r[s]),t.moveTo(-u,n),t.lineTo(u,n),t.lineTo(0,n-o),r[s]&&t.rotate(-r[s]),t.translate(-p[s],-d[s]),t.closePath(),this.visuals.fill.do_fill&&(this.visuals.fill.set_vectorize(t,s),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,s),c.push(t.stroke())):c.push(void 0));return c},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=o,e.prototype.type=\"Triangle\",e}(n.Model),e.exports={Model:r,View:o}},{\"./marker\":99,underscore:22}],104:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./marker\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h;for(c=i.sx,h=i.sy,u=i.size,n=i.angle,l=[],o=0,s=e.length;s>o;o++)r=e[o],isNaN(c[r]+h[r]+u[r]+n[r])||(a=u[r]/2,t.beginPath(),t.translate(c[r],h[r]),n[r]&&t.rotate(n[r]),t.moveTo(-a,a),t.lineTo(a,-a),t.moveTo(-a,-a),t.lineTo(a,a),n[r]&&t.rotate(-n[r]),this.visuals.line.do_stroke&&(this.visuals.line.set_vectorize(t,r),t.stroke()),l.push(t.translate(-c[r],-h[r])));return l},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=o,e.prototype.type=\"X\",e.prototype.props=[\"line\"],e}(n.Model),e.exports={Model:r,View:o}},{\"./marker\":99,underscore:22}],105:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;s=t(\"underscore\"),a=t(\"rbush\"),n=t(\"./glyph\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._index_data=function(){var t,e,i,n,r,o,l,u,c;for(e=a(),n=[],t=i=0,r=this.xs.length;r>=0?r>i:i>r;t=r>=0?++i:--i)l=function(){var e,i,n,r;for(n=this.xs[t],r=[],e=0,i=n.length;i>e;e++)o=n[e],s.isNaN(o)||r.push(o);return r}.call(this),c=function(){var e,i,n,r;for(n=this.ys[t],r=[],e=0,i=n.length;i>e;e++)u=n[e],s.isNaN(u)||r.push(u);return r}.call(this),0!==l.length&&n.push([s.min(l),s.min(c),s.max(l),s.max(c),{i:t}]);return e.load(n),e},e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d,f;for(p=i.sxs,f=i.sys,c=[],o=0,a=e.length;a>o;o++){for(n=e[o],l=[p[n],f[n]],h=l[0],d=l[1],this.visuals.line.set_vectorize(t,n),r=s=0,u=h.length;u>=0?u>s:s>u;r=u>=0?++s:--s)0!==r?isNaN(h[r])||isNaN(d[r])?(t.stroke(),t.beginPath()):t.lineTo(h[r],d[r]):(t.beginPath(),t.moveTo(h[r],d[r]));c.push(t.stroke())}return c},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=o,e.prototype.type=\"MultiLine\",e.prototype.visuals=[\"line\"],e.prototype.coords=[[\"xs\",\"ys\"]],e}(n.Model),e.exports={Model:r,View:o}},{\"./glyph\":86,rbush:19,underscore:22}],106:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./glyph\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._set_data=function(){return this.max_w2=0,\"data\"===this.distances.width.units&&(this.max_w2=this.max_width/2),this.max_h2=0,\"data\"===this.distances.height.units?this.max_h2=this.max_height/2:void 0},e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return this.sw=\"data\"===this.distances.width.units?this.sdist(this.renderer.xmapper,this.x,this.width,\"center\"):this.width,this.sh=\"data\"===this.distances.height.units?this.sdist(this.renderer.ymapper,this.y,this.height,\"center\"):this.height},e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c;for(u=i.sx,c=i.sy,l=i.sw,a=i.sh,s=[],r=0,o=e.length;o>r;r++)n=e[r],isNaN(u[n]+c[n]+l[n]+a[n]+this.angle[n])||(t.translate(u[n],c[n]),t.rotate(this.angle[n]),t.beginPath(),t.moveTo(0,-a[n]/2),t.bezierCurveTo(l[n]/2,-a[n]/2,l[n]/2,a[n]/2,0,a[n]/2),t.bezierCurveTo(-l[n]/2,a[n]/2,-l[n]/2,-a[n]/2,0,-a[n]/2),t.closePath(),this.visuals.fill.do_fill&&(this.visuals.fill.set_vectorize(t,n),t.fill()),this.visuals.line.do_stroke&&(this.visuals.line.set_vectorize(t,n),t.stroke()),t.rotate(-this.angle[n]),s.push(t.translate(-u[n],-c[n])));return s},e.prototype.draw_legend=function(t,e,i,n,r){var o,s,a,l,u,c,h,p,d;return l=null!=(a=this.get_reference_point())?a:0,s=[l],p={},p[l]=(e+i)/2,d={},d[l]=(n+r)/2,u=this.sw[l]/this.sh[l],o=.8*Math.min(Math.abs(i-e),Math.abs(r-n)),h={},c={},u>1?(h[l]=o,c[l]=o/u):(h[l]=o*u,c[l]=o),this._render(t,s,p,d,h,c)},e.prototype._bounds=function(t){return[[t[0][0]-this.max_w2,t[0][1]+this.max_w2],[t[1][0]-this.max_h2,t[1][1]+this.max_h2]]},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=o,e.prototype.type=\"Oval\",e.prototype.distances=[\"width\",\"height\"],e.prototype.angles=[\"angle\"],e.prototype.display_defaults=function(){return s.extend({},e.__super__.display_defaults.call(this),{angle:0})},e}(n.Model),e.exports={Model:r,View:o}},{\"./glyph\":86,underscore:22}],107:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./glyph\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u;if(l=i.sx,u=i.sy,this.visuals.fill.do_fill){for(this.visuals.fill.set_value(t),r=0,s=e.length;s>r;r++)n=e[r],0!==n?isNaN(l[n]+u[n])?(t.closePath(),t.fill(),t.beginPath()):t.lineTo(l[n],u[n]):(t.beginPath(),t.moveTo(l[n],u[n]));t.closePath(),t.fill()}if(this.visuals.line.do_stroke){for(this.visuals.line.set_value(t),o=0,a=e.length;a>o;o++)n=e[o],0!==n?isNaN(l[n]+u[n])?(t.closePath(),t.stroke(),t.beginPath()):t.lineTo(l[n],u[n]):(t.beginPath(),t.moveTo(l[n],u[n]));return t.closePath(),t.stroke()}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=o,e.prototype.type=\"Patch\",e}(n.Model),e.exports={Model:r,View:o}},{\"./glyph\":86,underscore:22}],108:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./glyph\"),l=t(\"rbush\"),a=t(\"../../common/hittest\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._index_data=function(){var t,e,i,n,r,o,a,u,c;for(e=l(),n=[],t=i=0,r=this.xs.length;r>=0?r>i:i>r;t=r>=0?++i:--i)a=function(){var e,i,n,r;for(n=this.xs[t],r=[],e=0,i=n.length;i>e;e++)o=n[e],s.isNaN(o)||r.push(o);return r}.call(this),c=function(){var e,i,n,r;for(n=this.ys[t],r=[],e=0,i=n.length;i>e;e++)u=n[e],s.isNaN(u)||r.push(u);return r}.call(this),0!==a.length&&n.push([s.min(a),s.min(c),s.max(a),s.max(c),{i:t}]);return e.load(n),e},e.prototype._mask_data=function(t){var e,i,n,r,o,s,a,l,u;return s=this.renderer.plot_view.x_range,e=[s.get(\"min\"),s.get(\"max\")],r=e[0],o=e[1],u=this.renderer.plot_view.y_range,i=[u.get(\"min\"),u.get(\"max\")],a=i[0],l=i[1],function(){var t,e,i,s;for(i=this.index.search([r,a,o,l]),s=[],t=0,e=i.length;e>t;t++)n=i[t],s.push(n[4].i);return s}.call(this)},e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d,f,g,m;for(f=i.sxs,m=i.sys,p=[],o=0,a=e.length;a>o;o++){if(n=e[o],u=[f[n],m[n]],d=u[0],g=u[1],this.visuals.fill.do_fill){for(this.visuals.fill.set_vectorize(t,n),r=s=0,c=d.length;c>=0?c>s:s>c;r=c>=0?++s:--s)0!==r?isNaN(d[r]+g[r])?(t.closePath(),t.fill(),t.beginPath()):t.lineTo(d[r],g[r]):(t.beginPath(),t.moveTo(d[r],g[r]));t.closePath(),t.fill()}if(this.visuals.line.do_stroke){for(this.visuals.line.set_vectorize(t,n),r=l=0,h=d.length;h>=0?h>l:l>h;r=h>=0?++l:--l)0!==r?isNaN(d[r]+g[r])?(t.closePath(),t.stroke(),t.beginPath()):t.lineTo(d[r],g[r]):(t.beginPath(),t.moveTo(d[r],g[r]));t.closePath(),p.push(t.stroke())}else p.push(void 0)}return p},e.prototype._hit_point=function(t){var e,i,n,r,o,s,l,u,c,h,p,d,f,g;for(s=[t.vx,t.vy],p=s[0],d=s[1],c=this.renderer.plot_view.canvas.vx_to_sx(p),h=this.renderer.plot_view.canvas.vy_to_sy(d),f=this.renderer.xmapper.map_from_target(p,!0),g=this.renderer.ymapper.map_from_target(d,!0),e=function(){var t,e,i,n;for(i=this.index.search([f,g,f,g]),n=[],t=0,e=i.length;e>t;t++)f=i[t],n.push(f[4].i);return n}.call(this),i=[],n=o=0,l=e.length;l>=0?l>o:o>l;n=l>=0?++o:--o)r=e[n],a.point_in_poly(c,h,this.sxs[r],this.sys[r])&&i.push(r);return u=a.create_hit_test_result(),u[\"1d\"].indices=i,u},e.prototype.scx=function(t){var e,i,n,r,o;for(r=0,n=this.sxs[t],e=0,i=n.length;i>e;e++)o=n[e],r+=o;return r/this.sxs[t].length},e.prototype.scy=function(t){var e,i,n,r,o;for(r=0,n=this.sys[t],e=0,i=n.length;i>e;e++)o=n[e],r+=o;return r/this.sys[t].length},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=o,e.prototype.type=\"Patches\",e.prototype.coords=[[\"xs\",\"ys\"]],e}(n.Model),e.exports={Model:r,View:o}},{\"../../common/hittest\":45,\"./glyph\":86,rbush:19,underscore:22}],109:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;s=t(\"underscore\"),l=t(\"rbush\"),n=t(\"./glyph\"),a=t(\"../../common/hittest\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._index_data=function(){var t,e,i,n,r;for(e=l(),n=[],t=i=0,r=this.left.length;r>=0?r>i:i>r;t=r>=0?++i:--i)isNaN(this.left[t]+this.right[t]+this.top[t]+this.bottom[t])||n.push([this.left[t],this.bottom[t],this.right[t],this.top[t],{i:t}]);return e.load(n),e},e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c;for(l=i.sleft,u=i.sright,c=i.stop,a=i.sbottom,s=[],r=0,o=e.length;o>r;r++)n=e[r],isNaN(l[n]+c[n]+u[n]+a[n])||(this.visuals.fill.do_fill&&(this.visuals.fill.set_vectorize(t,n),t.fillRect(l[n],c[n],u[n]-l[n],a[n]-c[n])),this.visuals.line.do_stroke?(t.beginPath(),t.rect(l[n],c[n],u[n]-l[n],a[n]-c[n]),this.visuals.line.set_vectorize(t,n),s.push(t.stroke())):s.push(void 0));return s},e.prototype._hit_point=function(t){var e,i,n,r,o,s,l,u,c,h;for(r=[t.vx,t.vy],c=r[0],h=r[1],l=this.renderer.plot_view.canvas.vx_to_sx(c),u=this.renderer.plot_view.canvas.vy_to_sy(h),e=[],i=n=0,o=this.sleft.length;o>=0?o>n:n>o;i=o>=0?++n:--n)l>=this.sleft[i]&&l<=this.sright[i]&&u>=this.stop[i]&&u<this.sbottom[i]&&e.push(i);return s=a.create_hit_test_result(),s[\"1d\"].indices=e,s},e.prototype.scx=function(t){return(this.sleft[t]+this.sright[t])/2},e.prototype.scy=function(t){return(this.stop[t]+this.sbottom[t])/2},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=o,e.prototype.type=\"Quad\",e.prototype.coords=[[\"right\",\"bottom\"],[\"left\",\"top\"]],e}(n.Model),e.exports={Model:r,View:o}},{\"../../common/hittest\":45,\"./glyph\":86,rbush:19,underscore:22}],110:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;s=t(\"underscore\"),l=t(\"rbush\"),n=t(\"./glyph\"),a=function(t,e,i){var n,r;return e===(t+i)/2?[t,i]:(r=(t-e)/(t-2*e+i),n=t*Math.pow(1-r,2)+2*e*(1-r)*r+i*Math.pow(r,2),[Math.min(t,i,n),Math.max(t,i,n)])},o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._index_data=function(){var t,e,i,n,r,o,s,u,c,h,p;for(e=l(),n=[],t=i=0,r=this.x0.length;r>=0?r>i:i>r;t=r>=0?++i:--i)isNaN(this.x0[t]+this.x1[t]+this.y0[t]+this.y1[t]+this.cx[t]+this.cy[t])||(o=a(this.x0[t],this.cx[t],this.x1[t]),u=o[0],c=o[1],s=a(this.y0[t],this.cy[t],this.y1[t]),h=s[0],p=s[1],n.push([u,h,c,p,{i:t}]));return e.load(n),e},e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h,p;if(u=i.sx0,h=i.sy0,c=i.sx1,p=i.sy1,a=i.scx,l=i.scy,this.visuals.line.do_stroke){for(s=[],r=0,o=e.length;o>r;r++)n=e[r],isNaN(u[n]+h[n]+c[n]+p[n]+a[n]+l[n])||(t.beginPath(),t.moveTo(u[n],h[n]),t.quadraticCurveTo(a[n],l[n],c[n],p[n]),this.visuals.line.set_vectorize(t,n),s.push(t.stroke()));return s}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=o,e.prototype.type=\"Quadratic\",e.prototype.visuals=[\"line\"],e.prototype.coords=[[\"x0\",\"y0\"],[\"x1\",\"y1\"],[\"cx\",\"cy\"]],e}(n.Model),e.exports={Model:r,View:o}},{\"./glyph\":86,rbush:19,underscore:22}],111:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./glyph\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return this.slength=this.sdist(this.renderer.xmapper,this.x,this.length)},e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d,f,g;if(d=i.sx,f=i.sy,p=i.slength,n=i.angle,this.visuals.line.do_stroke){for(g=this.renderer.plot_view.frame.get(\"width\"),r=this.renderer.plot_view.frame.get(\"height\"),s=2*(g+r),o=a=0,c=p.length;c>=0?c>a:a>c;o=c>=0?++a:--a)0===p[o]&&(p[o]=s);for(h=[],l=0,u=e.length;u>l;l++)o=e[l],isNaN(d[o]+f[o]+n[o]+p[o])||(t.translate(d[o],f[o]),t.rotate(n[o]),t.beginPath(),t.moveTo(0,0),t.lineTo(p[o],0),this.visuals.line.set_vectorize(t,o),t.stroke(),t.rotate(-n[o]),h.push(t.translate(-d[o],-f[o])));return h}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=o,e.prototype.type=\"Ray\",e.prototype.visuals=[\"line\"],e.prototype.distances=[\"length\"],e.prototype.angles=[\"angle\"],e}(n.Model),e.exports={Model:r,View:o}},{\"./glyph\":86,underscore:22}],112:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./glyph\"),a=t(\"../../common/hittest\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._set_data=function(){return this.max_w2=0,\"data\"===this.distances.width.units&&(this.max_w2=this.max_width/2),this.max_h2=0,\"data\"===this.distances.height.units?this.max_h2=this.max_height/2:void 0},e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return this.sw=\"data\"===this.distances.width.units?this.sdist(this.renderer.xmapper,this.x,this.width,\"center\",this.mget(\"dilate\")):this.width,this.sh=\"data\"===this.distances.height.units?this.sdist(this.renderer.ymapper,this.y,this.height,\"center\",this.mget(\"dilate\")):this.height},e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h,p;if(h=i.sx,p=i.sy,c=i.sw,u=i.sh,n=i.angle,this.visuals.fill.do_fill)for(o=0,a=e.length;a>o;o++)r=e[o],isNaN(h[r]+p[r]+c[r]+u[r]+n[r])||(this.visuals.fill.set_vectorize(t,r),n[r]?(t.translate(h[r],p[r]),t.rotate(n[r]),t.fillRect(-c[r]/2,-u[r]/2,c[r],u[r]),t.rotate(-n[r]),t.translate(-h[r],-p[r])):t.fillRect(h[r]-c[r]/2,p[r]-u[r]/2,c[r],u[r]));if(this.visuals.line.do_stroke){for(t.beginPath(),s=0,l=e.length;l>s;s++)r=e[s],isNaN(h[r]+p[r]+c[r]+u[r]+n[r])||0!==c[r]&&0!==u[r]&&(n[r]?(t.translate(h[r],p[r]),t.rotate(n[r]),t.rect(-c[r]/2,-u[r]/2,c[r],u[r]),t.rotate(-n[r]),t.translate(-h[r],-p[r])):t.rect(h[r]-c[r]/2,p[r]-u[r]/2,c[r],u[r]),this.visuals.line.set_vectorize(t,r),t.stroke(),t.beginPath());return t.stroke()}},e.prototype._hit_rect=function(t){var e,i,n,r,o,s,l,u;return e=this.renderer.xmapper.v_map_from_target([t.vx0,t.vx1],!0),o=e[0],s=e[1],i=this.renderer.ymapper.v_map_from_target([t.vy0,t.vy1],!0),l=i[0],u=i[1],n=a.create_hit_test_result(),n[\"1d\"].indices=function(){var t,e,i,n;for(i=this.index.search([o,l,s,u]),n=[],t=0,e=i.length;e>t;t++)r=i[t],n.push(r[4].i);return n}.call(this),n},e.prototype._hit_point=function(t){var e,i,n,r,o,s,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D,T,S,A,P,I,E;for(p=[t.vx,t.vy],b=p[0],k=p[1],T=this.renderer.xmapper.map_from_target(b,!0),P=this.renderer.ymapper.map_from_target(k,!0),\"screen\"===this.distances.width.units?(w=b-2*this.max_width,x=b+2*this.max_width,d=this.renderer.xmapper.v_map_from_target([w,x],!0),S=d[0],A=d[1]):(S=T-2*this.max_width,A=T+2*this.max_width),\"screen\"===this.distances.height.units?(C=k-2*this.max_height,M=k+2*this.max_height,f=this.renderer.ymapper.v_map_from_target([C,M],!0),I=f[0],E=f[1]):(I=P-2*this.max_height,E=P+2*this.max_height),r=[],g=function(){var t,e,i,n;for(i=this.index.search([S,I,A,E]),n=[],t=0,e=i.length;e>t;t++)u=i[t],n.push(u[4].i);return n}.call(this),s=0,l=g.length;l>s;s++)o=g[s],v=this.renderer.plot_view.canvas.vx_to_sx(b),y=this.renderer.plot_view.canvas.vy_to_sy(k),this.angle[o]&&(i=Math.sqrt(Math.pow(v-this.sx[o],2)+Math.pow(y-this.sy[o],2)),_=Math.sin(-this.angle[o]),e=Math.cos(-this.angle[o]),c=e*(v-this.sx[o])-_*(y-this.sy[o])+this.sx[o],h=_*(v-this.sx[o])+e*(y-this.sy[o])+this.sy[o],v=c,y=h),D=Math.abs(this.sx[o]-v)<=this.sw[o]/2,n=Math.abs(this.sy[o]-y)<=this.sh[o]/2,n&&D&&r.push(o);return m=a.create_hit_test_result(),m[\"1d\"].indices=r,m},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e.prototype._bounds=function(t){return[[t[0][0]-this.max_w2,t[0][1]+this.max_w2],[t[1][0]-this.max_h2,t[1][1]+this.max_h2]]},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=o,e.prototype.type=\"Rect\",e.prototype.distances=[\"width\",\"height\"],e.prototype.angles=[\"angle\"],e.prototype.display_defaults=function(){return s.extend({},e.__super__.display_defaults.call(this),{angle:0,dilate:!1})},e}(n.Model),e.exports={Model:r,View:o}},{\"../../common/hittest\":45,\"./glyph\":86,underscore:22}],113:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;s=t(\"underscore\"),a=t(\"rbush\"),n=t(\"./glyph\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._index_data=function(){var t,e,i,n,r;for(e=a(),n=[],t=i=0,r=this.x0.length;r>=0?r>i:i>r;t=r>=0?++i:--i)isNaN(this.x0[t]+this.x1[t]+this.y0[t]+this.y1[t])||n.push([this.x0[t],this.y0[t],this.x1[t],this.y1[t],{i:t}]);return e.load(n),e},e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c;if(a=i.sx0,u=i.sy0,l=i.sx1,c=i.sy1,this.visuals.line.do_stroke){for(s=[],r=0,o=e.length;o>r;r++)n=e[r],isNaN(a[n]+u[n]+l[n]+c[n])||(t.beginPath(),t.moveTo(a[n],u[n]),t.lineTo(l[n],c[n]),this.visuals.line.set_vectorize(t,n),s.push(t.stroke()));return s}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=o,e.prototype.type=\"Segment\",e.prototype.visuals=[\"line\"],e.prototype.coords=[[\"x0\",\"y0\"],[\"x1\",\"y1\"]],e}(n.Model),e.exports={Model:r,View:o}},{\"./glyph\":86,rbush:19,underscore:22}],114:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./glyph\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h,p;for(l=i.sx,u=i.sy,h=i.x_offset,p=i.y_offset,n=i.angle,c=i.text,a=[],o=0,s=e.length;s>o;o++)r=e[o],isNaN(l[r]+u[r]+h[r]+p[r]+n[r])||null==c[r]||(t.save(),t.translate(l[r]+h[r],u[r]+p[r]),t.rotate(n[r]),this.visuals.text.set_vectorize(t,r),t.fillText(c[r],0,0),a.push(t.restore()));return a},e.prototype.draw_legend=function(t,e,i,n,r){var o,s,a;return t.save(),s=this.get_reference_point(),o=null!=s?s:this.props,a=this.visuals.text,a.set(t,o),t.font=a.font(12),t.textAlign=\"right\",t.textBaseline=\"middle\",t.fillText(\"txt\",i,(n+r)/2),t.restore()},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=o,e.prototype.type=\"Text\",e.prototype.visuals=[\"text\"],e.prototype.distances=[\"x_offset\",\"y_offset\"],e.prototype.angles=[\"angle\"],e.prototype.fields=[\"text:string\"],e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{angle:0,x_offset:0,y_offset:0})},e}(n.Model),e.exports={Model:r,View:o}},{\"./glyph\":86,underscore:22}],115:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;s=t(\"underscore\"),l=t(\"../../common/mathutils\"),n=t(\"./glyph\"),a=t(\"../../common/hittest\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return this.sradius=\"data\"===this.distances.radius.units?this.sdist(this.renderer.xmapper,this.x,this.radius):this.radius},e.prototype._render=function(t,e,i){var n,r,o,s,a,l,u,c,h,p;for(h=i.sx,p=i.sy,u=i.sradius,c=i.start_angle,r=i.end_angle,n=i.direction,l=[],s=0,a=e.length;a>s;s++)o=e[s],isNaN(h[o]+p[o]+u[o]+c[o]+r[o]+n[o])||(t.beginPath(),t.arc(h[o],p[o],u[o],c[o],r[o],n[o]),t.lineTo(h[o],p[o]),t.closePath(),this.visuals.fill.do_fill&&(this.visuals.fill.set_vectorize(t,o),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,o),l.push(t.stroke())):l.push(void 0));return l},e.prototype._hit_point=function(t){var e,i,n,r,o,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D,T,S,A,P,I,E,R,N,z,O,j,F;for(g=[t.vx,t.vy],T=g[0],P=g[1],R=this.renderer.xmapper.map_from_target(T,!0),O=this.renderer.ymapper.map_from_target(P,!0),\"data\"===this.distances.radius.units?(N=R-this.max_radius,z=R+this.max_radius,j=O-this.max_radius,F=O+this.max_radius):(S=T-this.max_radius,A=T+this.max_radius,m=this.renderer.xmapper.v_map_from_target([S,A],!0),N=m[0],z=m[1],I=P-this.max_radius,E=P+this.max_radius,_=this.renderer.ymapper.v_map_from_target([I,E],!0),j=_[0],F=_[1]),i=[],v=function(){var t,e,i,n;for(i=this.index.search([N,j,z,F]),n=[],t=0,e=i.length;e>t;t++)d=i[t],n.push(d[4].i);return n}.call(this),u=0,h=v.length;h>u;u++)o=v[u],f=Math.pow(this.sradius[o],2),x=this.renderer.xmapper.map_to_target(R,!0),k=this.renderer.xmapper.map_to_target(this.x[o],!0),M=this.renderer.ymapper.map_to_target(O,!0),D=this.renderer.ymapper.map_to_target(this.y[o],!0),n=Math.pow(x-k,2)+Math.pow(M-D,2),f>=n&&i.push([o,n]);for(r=[],c=0,p=i.length;p>c;c++)y=i[c],o=y[0],n=y[1],w=this.renderer.plot_view.canvas.vx_to_sx(T),C=this.renderer.plot_view.canvas.vy_to_sy(P),e=Math.atan2(C-this.sy[o],w-this.sx[o]),l.angle_between(-e,-this.start_angle[o],-this.end_angle[o],this.direction[o])&&r.push([o,n]);return b=a.create_hit_test_result(),b[\"1d\"].indices=s.chain(r).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value(),b},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=o,e.prototype.type=\"Wedge\",e.prototype.distances=[\"radius\"],e.prototype.angles=[\"start_angle\",\"end_angle\"],e.prototype.fields=[\"direction:direction\"],e.prototype.display_defaults=function(){return s.extend({},e.__super__.display_defaults.call(this),{direction:\"anticlock\"})},e}(n.Model),e.exports={Model:r,View:o}},{\"../../common/hittest\":45,\"../../common/mathutils\":49,\"./glyph\":86,underscore:22}],116:[function(t,e,i){(function(i){var n,r,o,s,a,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M=function(t,e){function i(){this.constructor=t}for(var n in e)D.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},D={}.hasOwnProperty;f=t(\"underscore\"),w=null!=i._bokehTest?i._bokehTest.kiwi:t(\"kiwi\"),l=t(\"../../common/has_parent\"),c=t(\"../../common/layout_box\"),x=t(\"../../common/logging\").logger,p=t(\"../../common/plot_widget\"),C=t(\"../../common/properties\"),k=Math.PI/2,n=\"alphabetic\",h=\"middle\",a=\"hanging\",u=\"left\",d=\"right\",s=\"center\",v={above:{parallel:0,normal:-k,horizontal:0,vertical:-k},below:{parallel:0,normal:k,horizontal:0,vertical:k},left:{parallel:-k,normal:0,horizontal:0,vertical:-k},right:{parallel:k,normal:0,horizontal:0,vertical:k}},b={above:{parallel:n,normal:h,horizontal:n,vertical:h},below:{parallel:a,normal:h,horizontal:a,vertical:h},left:{parallel:n,normal:h,horizontal:h,vertical:n},right:{parallel:n,normal:h,horizontal:h,vertical:n}},g={above:{parallel:s,normal:u,horizontal:s,vertical:u},below:{parallel:s,normal:u,horizontal:s,vertical:d},left:{parallel:s,normal:d,horizontal:d,vertical:s},right:{parallel:s,normal:u,horizontal:u,vertical:s}},m={above:d,below:u,left:d,right:u},_={above:u,below:d,left:d,right:u},y=function(t,e,i){var n,r;return f.isString(i)?(r=b[e][i],n=g[e][i]):0===i?(r=b[e][i],n=g[e][i]):0>i?(r=\"middle\",n=m[e]):i>0&&(r=\"middle\",n=_[e]),t.textBaseline=r,t.textAlign=n},o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return M(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.rule_props=new C.Line({obj:this.model,prefix:\"axis_\"}),this.major_tick_props=new C.Line({obj:this.model,prefix:\"major_tick_\"}),this.minor_tick_props=new C.Line({obj:this.model,prefix:\"minor_tick_\"}),this.major_label_props=new C.Text({obj:this.model,prefix:\"major_label_\"}),this.axis_label_props=new C.Text({obj:this.model,prefix:\"axis_label_\"}),this.x_range_name=this.mget(\"x_range_name\"),this.y_range_name=this.mget(\"y_range_name\")},e.prototype.render=function(){var t;if(this.mget(\"visible\"))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()},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,\"change\",this.plot_view.request_render)},e.prototype._draw_rule=function(t){var e,i,n,r,o,s,a,l,u,c,h,p,d,f,g,m;if(this.rule_props.do_stroke){for(s=e=this.mget(\"rule_coords\"),d=s[0],g=s[1],a=this.plot_view.map_to_screen(d,g,this.x_range_name,this.y_range_name),h=a[0],p=a[1],l=this.mget(\"normals\"),r=l[0],o=l[1],u=this.mget(\"offsets\"),f=u[0],m=u[1],this.rule_props.set_value(t),t.beginPath(),t.moveTo(Math.round(h[0]+r*f),Math.round(p[0]+o*m)),i=n=1,c=h.length;c>=1?c>n:n>c;i=c>=1?++n:--n)t.lineTo(Math.round(h[i]+r*f),Math.round(p[i]+o*m));return t.stroke()}},e.prototype._draw_major_ticks=function(t){var e,i,n,r,o,s,a,l,u,c,h,p,d,f,g,m,_,v,y;if(this.major_tick_props.do_stroke){for(e=this.mget(\"tick_coords\"),s=e.major,m=s[0],v=s[1],a=this.plot_view.map_to_screen(m,v,this.x_range_name,this.y_range_name),p=a[0],d=a[1],l=this.mget(\"normals\"),r=l[0],o=l[1],u=this.mget(\"offsets\"),_=u[0],y=u[1],f=this.mget(\"major_tick_in\"),g=this.mget(\"major_tick_out\"),this.major_tick_props.set_value(t),h=[],i=n=0,c=p.length;c>=0?c>n:n>c;i=c>=0?++n:--n)t.beginPath(),t.moveTo(Math.round(p[i]+r*g+r*_),Math.round(d[i]+o*g+o*y)),t.lineTo(Math.round(p[i]-r*f+r*_),Math.round(d[i]-o*f+o*y)),h.push(t.stroke());return h}},e.prototype._draw_minor_ticks=function(t){var e,i,n,r,o,s,a,l,u,c,h,p,d,f,g,m,_,v,y;if(this.minor_tick_props.do_stroke){for(e=this.mget(\"tick_coords\"),s=e.minor,m=s[0],v=s[1],a=this.plot_view.map_to_screen(m,v,this.x_range_name,this.y_range_name),p=a[0],d=a[1],l=this.mget(\"normals\"),r=l[0],o=l[1],u=this.mget(\"offsets\"),_=u[0],y=u[1],f=this.mget(\"minor_tick_in\"),g=this.mget(\"minor_tick_out\"),this.minor_tick_props.set_value(t),h=[],i=n=0,c=p.length;c>=0?c>n:n>c;i=c>=0?++n:--n)t.beginPath(),t.moveTo(Math.round(p[i]+r*g+r*_),Math.round(d[i]+o*g+o*y)),t.lineTo(Math.round(p[i]-r*f+r*_),Math.round(d[i]-o*f+o*y)),h.push(t.stroke());return h}},e.prototype._draw_major_labels=function(t){var e,i,n,r,o,s,a,l,u,c,h,p,d,g,m,_,b,w,x,k,C,M,D;for(i=this.mget(\"tick_coords\"),c=i.major,k=c[0],M=c[1],h=this.plot_view.map_to_screen(k,M,this.x_range_name,this.y_range_name),w=h[0],x=h[1],p=this.mget(\"normals\"),a=p[0],l=p[1],d=this.mget(\"offsets\"),C=d[0],D=d[1],n=this.mget(\"dimension\"),_=this.mget(\"location\"),u=this.mget(\"major_label_orientation\"),e=f.isString(u)?v[_][u]:-u,b=this.model._tick_extent(this)+this.mget(\"major_label_standoff\"),s=this.mget(\"formatter\").format(i.major[n]),this.major_label_props.set_value(t),y(t,_,u),m=[],r=o=0,g=w.length;g>=0?g>o:o>g;r=g>=0?++o:--o)e?(t.translate(w[r]+a*b+a*C,x[r]+l*b+l*D),t.rotate(e),t.fillText(s[r],0,0),t.rotate(-e),m.push(t.translate(-w[r]-a*b+a*C,-x[r]-l*b+l*D))):m.push(t.fillText(s[r],Math.round(w[r]+a*b+a*C),Math.round(x[r]+l*b+l*D)));return m},e.prototype._draw_axis_label=function(t){var e,i,n,r,o,s,a,l,u,c,h,p,d,f,g,m,_;return i=this.mget(\"axis_label\"),null!=i?(s=this.mget(\"rule_coords\"),f=s[0],m=s[1],a=this.plot_view.map_to_screen(f,m,this.x_range_name,this.y_range_name),p=a[0],d=a[1],l=this.mget(\"normals\"),n=l[0],r=l[1],u=this.mget(\"offsets\"),g=u[0],_=u[1],c=this.mget(\"location\"),o=\"parallel\",e=v[c][o],h=this.model._tick_extent(this)+this.model._tick_label_extent(this)+this.mget(\"axis_label_standoff\"),p=(p[0]+p[p.length-1])/2,d=(d[0]+d[d.length-1])/2,this.axis_label_props.set_value(t),y(t,c,o),e?(t.translate(p+n*h+n*g,d+r*h+r*_),t.rotate(e),t.fillText(i,0,0),t.rotate(-e),t.translate(-p-n*h+n*g,-d-r*h+r*_)):t.fillText(i,p+n*h+n*g,d+r*h+r*_)):void 0},e}(p),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return M(e,t),e.prototype.default_view=o,e.prototype.type=\"Axis\",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),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\"]),\n",
       "                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)},e.prototype.initialize_layout=function(t){var e,i;return e=new c.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,i=this.get(\"location\"),\"above\"===i?(this._dim=0,this._normals=[0,-1],this._size=e._height,this._anchor=e._bottom):\"below\"===i?(this._dim=0,this._normals=[0,1],this._size=e._height,this._anchor=e._top):\"left\"===i?(this._dim=1,this._normals=[-1,0],this._size=e._width,this._anchor=e._right):\"right\"===i?(this._dim=1,this._normals=[1,0],this._size=e._width,this._anchor=e._left):x.error(\"unrecognized side: '\"+i+\"'\")},e.prototype.update_layout=function(t,e){var i;return i=this.get(\"visible\")?this._tick_extent(t)+this._tick_label_extent(t)+this._axis_label_extent(t):0,null==this._last_size&&(this._last_size=-1),i!==this._last_size?(this._last_size=i,null!=this._size_constraint&&e.remove_constraint(this._size_constraint),this._size_constraint=new w.Constraint(new w.Expression(this._size,-i),w.Operator.Eq),e.add_constraint(this._size_constraint)):void 0},e.prototype._offsets=function(){var t,e,i,n,r;return i=this.get(\"location\"),e=[0,0],n=e[0],r=e[1],t=this.get(\"plot\").get(\"frame\"),\"below\"===i?r=Math.abs(this.panel.get(\"top\")-t.get(\"bottom\")):\"above\"===i?r=Math.abs(this.panel.get(\"bottom\")-t.get(\"top\")):\"right\"===i?n=Math.abs(this.panel.get(\"left\")-t.get(\"right\")):\"left\"===i&&(n=Math.abs(this.panel.get(\"right\")-t.get(\"left\"))),[n,r]},e.prototype._ranges=function(){var t,e,i,n;return e=this.get(\"dimension\"),i=(e+1)%2,t=this.get(\"plot\").get(\"frame\"),n=[t.get(\"x_ranges\")[this.get(\"x_range_name\")],t.get(\"y_ranges\")[this.get(\"y_range_name\")]],[n[e],n[i]]},e.prototype._computed_bounds=function(){var t,e,i,n,r,o,s,a;return r=this.get(\"ranges\"),i=r[0],t=r[1],a=null!=(o=this.get(\"bounds\"))?o:\"auto\",n=[i.get(\"min\"),i.get(\"max\")],\"auto\"===a?n:f.isArray(a)?(Math.abs(a[0]-a[1])>Math.abs(n[0]-n[1])?(s=Math.max(Math.min(a[0],a[1]),n[0]),e=Math.min(Math.max(a[0],a[1]),n[1])):(s=Math.min(a[0],a[1]),e=Math.max(a[0],a[1])),[s,e]):(x.error(\"user bounds '\"+a+\"' not understood\"),null)},e.prototype._rule_coords=function(){var t,e,i,n,r,o,s,a,l,u,c,h;return n=this.get(\"dimension\"),r=(n+1)%2,a=this.get(\"ranges\"),s=a[0],e=a[1],l=this.get(\"computed_bounds\"),u=l[0],i=l[1],c=new Array(2),h=new Array(2),t=[c,h],o=this._get_loc(e),t[n][0]=Math.max(u,s.get(\"min\")),t[n][1]=Math.min(i,s.get(\"max\")),t[n][0]>t[n][1]&&(t[n][0]=t[n][1]=0/0),t[r][0]=o,t[r][1]=o,t},e.prototype._tick_coords=function(){var t,e,i,n,r,o,s,a,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D,T;if(n=this.get(\"dimension\"),o=(n+1)%2,v=this.get(\"ranges\"),g=v[0],e=v[1],y=this.get(\"computed_bounds\"),C=y[0],i=y[1],M=this.get(\"ticker\").get_ticks(C,i,g,{}),c=M.major,f=M.minor,l=this._get_loc(e),D=[],T=[],t=[D,T],p=[],d=[],h=[p,d],\"FactorRange\"===g.type)for(r=s=0,b=c.length;b>=0?b>s:s>b;r=b>=0?++s:--s)t[n].push(c[r]),t[o].push(l);else{for(w=[g.get(\"min\"),g.get(\"max\")],_=w[0],m=w[1],r=a=0,x=c.length;x>=0?x>a:a>x;r=x>=0?++a:--a)c[r]<_||c[r]>m||(t[n].push(c[r]),t[o].push(l));for(r=u=0,k=f.length;k>=0?k>u:u>k;r=k>=0?++u:--u)f[r]<_||f[r]>m||(h[n].push(f[r]),h[o].push(l))}return{major:t,minor:h}},e.prototype._get_loc=function(t){var e,i,n,r;return i=t.get(\"start\"),e=t.get(\"end\"),r=this.get(\"location\"),\"left\"===r||\"below\"===r?n=\"start\":(\"right\"===r||\"above\"===r)&&(n=\"end\"),t.get(n)},e.prototype._tick_extent=function(t){return this.get(\"major_tick_out\")},e.prototype._tick_label_extent=function(t){var e,i,n,r,o,s,a,l,u,c,h,p,d,g,m,_,y,b,w;for(s=0,o=this.get(\"dimension\"),r=t.plot_view.canvas_view.ctx,n=this.get(\"tick_coords\").major,_=this.get(\"location\"),d=this.get(\"major_label_orientation\"),p=this.get(\"formatter\").format(n[o]),t.major_label_props.set_value(r),f.isString(d)?(u=1,e=v[_][d]):(u=2,e=-d),e=Math.abs(e),i=Math.cos(e),m=Math.sin(e),\"above\"===_||\"below\"===_?(w=m,l=i):(w=i,l=m),c=h=0,g=p.length;g>=0?g>h:h>g;c=g>=0?++h:--h)null!=p[c]&&(b=1.1*r.measureText(p[c]).width,a=.9*r.measureText(p[c]).ascent,y=b*w+a/u*l,y>s&&(s=y));return s>0&&(s+=this.get(\"major_label_standoff\")),s},e.prototype._axis_label_extent=function(t){var e,i,n,r,o,s,a,l,u;return r=0,l=this.get(\"location\"),s=\"parallel\",n=t.plot_view.canvas_view.ctx,t.axis_label_props.set_value(n),e=Math.abs(v[l][s]),i=Math.cos(e),a=Math.sin(e),this.get(\"axis_label\")&&(r+=this.get(\"axis_label_standoff\"),t.axis_label_props.set_value(n),u=1.1*n.measureText(this.get(\"axis_label\")).width,o=.9*n.measureText(this.get(\"axis_label\")).ascent,r+=\"above\"===l||\"below\"===l?u*a+o*i:u*i+o*a),r},e.prototype.defaults=function(){return f.extend({},e.__super__.defaults.call(this),{x_range_name:\"default\",y_range_name:\"default\"})},e.prototype.display_defaults=function(){return f.extend({},e.__super__.display_defaults.call(this),{level:\"overlay\",visible:!0,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\"})},e}(l),e.exports={Model:r,View:o}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../../common/has_parent\":43,\"../../common/layout_box\":46,\"../../common/logging\":48,\"../../common/plot_widget\":54,\"../../common/properties\":55,kiwi:229,underscore:22}],117:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"../../common/logging\").logger,n=t(\"./axis\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e}(n.View),r=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return a(i,e),i.prototype.default_view=o,i.prototype.type=\"CategoricalAxis\",i.prototype.initialize=function(e,n){var r;return i.__super__.initialize.call(this,e,n),r=t(\"../../common/base\").Collections,null==this.get(\"ticker\")&&this.set_obj(\"ticker\",r(\"CategoricalTicker\").create()),null==this.get(\"formatter\")?this.set_obj(\"formatter\",r(\"CategoricalTickFormatter\").create()):void 0},i.prototype._computed_bounds=function(){var t,e,i,n,r,o;return n=this.get(\"ranges\"),e=n[0],t=n[1],o=null!=(r=this.get(\"bounds\"))?r:\"auto\",i=[e.get(\"min\"),e.get(\"max\")],\"auto\"!==o&&s.warn(\"Categorical Axes only support user_bounds='auto', ignoring\"),i},i}(n.Model),e.exports={Model:r,View:o}},{\"../../common/base\":29,\"../../common/logging\":48,\"./axis\":116}],118:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;r=t(\"../../common/base\").Collections,l=t(\"../../ticking/datetime_ticker\"),a=t(\"../../ticking/datetime_tick_formatter\"),n=t(\"./axis\"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e}(n.View),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=s,e.prototype.type=\"DatetimeAxis\",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),null==this.get(\"ticker\")&&this.set_obj(\"ticker\",r(\"DatetimeTicker\").create()),null==this.get(\"formatter\")?this.set_obj(\"formatter\",r(\"DatetimeTickFormatter\").create()):void 0},e}(n.Model),e.exports={Model:o,View:s}},{\"../../common/base\":29,\"../../ticking/datetime_tick_formatter\":142,\"../../ticking/datetime_ticker\":143,\"./axis\":116}],119:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;a=t(\"underscore\"),o=t(\"../../common/has_parent\"),s=t(\"../../common/plot_widget\"),l=t(\"../../common/properties\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.grid_props=new l.Line({obj:this.model,prefix:\"grid_\"}),this.minor_grid_props=new l.Line({obj:this.model,prefix:\"minor_grid_\"}),this.band_props=new l.Fill({obj:this.model,prefix:\"band_\"}),this.x_range_name=this.mget(\"x_range_name\"),this.y_range_name=this.mget(\"y_range_name\")},e.prototype.render=function(){var t;return t=this.plot_view.canvas_view.ctx,t.save(),this._draw_regions(t),this._draw_minor_grids(t),this._draw_grids(t),t.restore()},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,\"change\",this.request_render)},e.prototype._draw_regions=function(t){var e,i,n,r,o,s,a,l,u,c,h,p;if(this.band_props.do_fill)for(n=this.mget(\"grid_coords\"),h=n[0],p=n[1],this.band_props.set_value(t),e=i=0,r=h.length-1;r>=0?r>i:i>r;e=r>=0?++i:--i)e%2===1&&(o=this.plot_view.map_to_screen(h[e],p[e],this.x_range_name,this.y_range_name),a=o[0],u=o[1],s=this.plot_view.map_to_screen(h[e+1],p[e+1],this.x_range_name,this.y_range_name),l=s[0],c=s[1],t.fillRect(a[0],u[0],l[1]-a[0],c[1]-u[0]),t.fill())},e.prototype._draw_grids=function(t){var e,i,n;if(this.grid_props.do_stroke)return e=this.mget(\"grid_coords\"),i=e[0],n=e[1],this._draw_grid_helper(t,this.grid_props,i,n)},e.prototype._draw_minor_grids=function(t){var e,i,n;if(this.minor_grid_props.do_stroke)return e=this.mget(\"minor_grid_coords\"),i=e[0],n=e[1],this._draw_grid_helper(t,this.minor_grid_props,i,n)},e.prototype._draw_grid_helper=function(t,e,i,n){var r,o,s,a,l,u,c,h;for(e.set_value(t),r=o=0,a=i.length;a>=0?a>o:o>a;r=a>=0?++o:--o){for(l=this.plot_view.map_to_screen(i[r],n[r],this.x_range_name,this.y_range_name),c=l[0],h=l[1],t.beginPath(),t.moveTo(Math.round(c[0]),Math.round(h[0])),r=s=1,u=c.length;u>=1?u>s:s>u;r=u>=1?++s:--s)t.lineTo(Math.round(c[r]),Math.round(h[r]));t.stroke()}},e}(s),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=r,e.prototype.type=\"Grid\",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),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(\"minor_grid_coords\",this._minor_grid_coords,!1),this.add_dependencies(\"minor_grid_coords\",this,[\"computed_bounds\",\"dimension\",\"ticker\"]),this.register_property(\"ranges\",this._ranges,!0)},e.prototype._ranges=function(){var t,e,i,n;return e=this.get(\"dimension\"),i=(e+1)%2,t=this.get(\"plot\").get(\"frame\"),n=[t.get(\"x_ranges\")[this.get(\"x_range_name\")],t.get(\"y_ranges\")[this.get(\"y_range_name\")]],[n[e],n[i]]},e.prototype._bounds=function(){var t,e,i,n,r,o,s,l;return r=this.get(\"ranges\"),i=r[0],t=r[1],l=null!=(o=this.get(\"bounds\"))?o:\"auto\",n=[i.get(\"min\"),i.get(\"max\")],a.isArray(l)?(s=Math.min(l[0],l[1]),e=Math.max(l[0],l[1]),s<n[0]?s=n[0]:s>n[1]&&(s=null),e>n[1]?e=n[1]:e<n[0]&&(e=null)):(s=n[0],e=n[1]),[s,e]},e.prototype._grid_coords=function(){return this._grid_coords_helper(\"major\")},e.prototype._minor_grid_coords=function(){return this._grid_coords_helper(\"minor\")},e.prototype._grid_coords_helper=function(t){var e,i,n,r,o,s,a,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M;for(u=this.get(\"dimension\"),h=(u+1)%2,y=this.get(\"ranges\"),v=y[0],o=y[1],b=this.get(\"computed_bounds\"),k=b[0],l=b[1],M=Math.min(k,l),l=Math.max(k,l),k=M,C=this.get(\"ticker\").get_ticks(k,l,v,{})[t],m=v.get(\"min\"),g=v.get(\"max\"),n=o.get(\"min\"),i=o.get(\"max\"),r=[[],[]],c=p=0,w=C.length;w>=0?w>p:p>w;c=w>=0?++p:--p)if(C[c]!==m&&C[c]!==g){for(s=[],a=[],e=2,_=d=0,x=e;x>=0?x>d:d>x;_=x>=0?++d:--d)f=n+(i-n)/(e-1)*_,s.push(C[c]),a.push(f);r[u].push(s),r[h].push(a)}return r},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{x_range_name:\"default\",y_range_name:\"default\"})},e.prototype.display_defaults=function(){return a.extend({},e.__super__.display_defaults.call(this),{level:\"underlay\",band_fill_color:null,band_fill_alpha:0,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,minor_grid_line_color:null,minor_grid_line_width:1,minor_grid_line_alpha:1,minor_grid_line_join:\"miter\",minor_grid_line_cap:\"butt\",minor_grid_line_dash:[],minor_grid_line_dash_offset:0})},e}(o),e.exports={Model:n,View:r}},{\"../../common/has_parent\":43,\"../../common/plot_widget\":54,\"../../common/properties\":55,underscore:22}],120:[function(t,e,i){var n,r,o,s=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;n=t(\"./axis\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e}(n.View),r=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return s(i,e),i.prototype.default_view=o,i.prototype.type=\"LinearAxis\",i.prototype.initialize=function(e,n){var r;return i.__super__.initialize.call(this,e,n),r=t(\"../../common/base\").Collections,null==this.get(\"ticker\")&&this.set_obj(\"ticker\",r(\"BasicTicker\").create()),null==this.get(\"formatter\")?this.set_obj(\"formatter\",r(\"BasicTickFormatter\").create()):void 0},i}(n.Model),e.exports={Model:r,View:o}},{\"../../common/base\":29,\"./axis\":116}],121:[function(t,e,i){var n,r,o,s=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;n=t(\"./axis\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e}(n.View),r=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return s(i,e),i.prototype.default_view=o,i.prototype.type=\"LogAxis\",i.prototype.initialize=function(e,n){var r;return i.__super__.initialize.call(this,e,n),r=t(\"../../common/base\").Collections,null==this.get(\"ticker\")&&this.set_obj(\"ticker\",r(\"LogTicker\").create()),null==this.get(\"formatter\")?this.set_obj(\"formatter\",r(\"LogTickFormatter\").create()):void 0},i}(n.Model),e.exports={Model:r,View:o}},{\"../../common/base\":29,\"./axis\":116}],122:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t(\"underscore\"),o=t(\"../../common/has_parent\"),s=t(\"../../common/plot_widget\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.$el.appendTo(this.plot_view.$el.find(\"div.bk-canvas-overlays\")),this.$el.addClass(\"shading\"),this.$el.hide()},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,\"change:data\",this._draw_box)},e.prototype.render=function(){return this._draw_box(),this},e.prototype._draw_box=function(){var t,e,i,n,r,o,s,l,u;return e=this.mget(\"data\"),a.isEmpty(e)?void this.$el.hide():(l=e.vxlim,u=e.vylim,t=this.plot_view.canvas,o=Math.min(t.vx_to_sx(l[0]),t.vx_to_sx(l[1])),s=Math.min(t.vy_to_sy(u[0]),t.vy_to_sy(u[1])),r=Math.abs(l[1]-l[0]),i=Math.abs(u[1]-u[0]),n=\"left:\"+o+\"px; width:\"+r+\"px; top:\"+s+\"px; height:\"+i+\"px\",this.$el.attr(\"style\",n),this.$el.show())},e}(s),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=r,e.prototype.type=\"BoxSelection\",e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{level:\"overlay\",data:{}})},e}(o),e.exports={Model:n,View:r}},{\"../../common/has_parent\":43,\"../../common/plot_widget\":54,underscore:22}],123:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;a=t(\"underscore\"),n=t(\"../../common/has_parent\"),r=t(\"../../common/plot_widget\"),l=t(\"../../common/properties\"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.line=new l.Line({obj:this.model,prefix:\"\"}),this.fill=new l.Fill({obj:this.model,prefix:\"\"})},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,\"change:data\",this.plot_view.request_render)},e.prototype.render=function(t){var e,i,n,r,o,s,l;if(i=a.clone(this.mget(\"data\")),a.isEmpty(i)||null==i)return null;for(e=this.plot_view.canvas,t=this.plot_view.canvas_view.ctx,n=r=0,o=i.vx.length;o>=0?o>r:r>o;n=o>=0?++r:--r)s=e.vx_to_sx(i.vx[n]),l=e.vy_to_sy(i.vy[n]),0===n?(t.beginPath(),t.moveTo(s,l)):t.lineTo(s,l);return this.mget(\"auto_close\")&&t.closePath(),this.line.do_stroke&&(this.line.set_value(t),t.stroke()),this.fill.do_fill&&this.mget(\"auto_close\")?(this.fill.set_value(t),t.fill()):void 0},e}(r),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=s,e.prototype.type=\"PolySelection\",e.prototype.display_defaults=function(){return a.extend({},e.__super__.display_defaults.call(this),{fill_color:null,fill_alpha:.2,line_color:\"grey\",line_width:3,line_alpha:.8,line_join:\"miter\",line_cap:\"butt\",line_dash:[4],line_dash_offset:0})},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{level:\"overlay\",auto_close:!0,data:{}})},e}(n),e.exports={Model:o,View:s}},{\"../../common/has_parent\":43,\"../../common/plot_widget\":54,\"../../common/properties\":55,underscore:22}],124:[function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x;n=t(\"jquery\"),s=t(\"underscore\"),r=t(\"backbone\"),p=t(\"../common/base\"),o=t(\"../common/has_properties\"),_=t(\"../common/load_models\"),v=t(\"../common/logging\").logger,w=t(\"./serverutils\"),x=t(\"./usercontext/usercontext\"),f=p.index,y=function(){var e,i;return e=t(\"../common/base\").Config,i=e.prefix+\"bokeh/ping\",n.get(i).success(function(){return v.info(\"reloading\"),window.location.reload()}).fail(s.delay(function(){return y()},1e3)),null},g=function(t){var e;return e=n(\"<link href='\"+t+\"' rel='stylesheet' type='text/css'>\"),n(\"body\").append(e)},h=function(t,e,i,r){var o,a;return _(r),o=p.Collections(i).get(e),a=new o.default_view({model:o}),e in f||(f[e]=a),s.delay(function(){return n(t).replaceWith(a.$el)})},d={},c=function(t,e,i,r){var o;return o=w.utility.load_one_object_chain(e,i,r),o.done(function(e){var r,o,a;return r=p.Collections(e.type).get(i),o=new r.default_view({model:r}),s.delay(function(){return n(t).replaceWith(o.$el)}),i in f||(f[i]=o),a=w.wswrapper,a.subscribe(\"debug:debug\",\"\"),a.on(\"msg:debug:debug\",function(t){return\"reload\"===t?y():void 0})})},m=function(t,e){var i,r,o;if(o=n(\"#\"+t),0===o.length)throw new Error(\"Error injecting plot: could not find script tag with id: \"+t);if(o.length>1)throw new Error(\"Error injecting plot: found too many script tags with id: \"+t);if(!document.body.contains(o[0]))throw new Error(\"Error injecting plot: autoload script tag may only be under <body>\");if(r=o.data(),Bokeh.set_log_level(r.bokehLoglevel),v.info(\"Injecting plot for script tag with id: #\"+t),p.Config.prefix=r.bokehRootUrl,i=n(\"<div>\",{\"class\":\"bokeh-container\"}),i.insertBefore(o),\"static\"===r.bokehData)return v.info(\"  - using static data\"),h(i,r.bokehModelid,r.bokehModeltype,e);if(\"server\"===r.bokehData)return v.info(\"  - using server data\"),c(i,r.bokehDocid,r.bokehModelid,r.bokehPublic);throw new Error(\"Unknown bokehData value for inject_plot: \"+r.bokehData)},b=function(t){return o.prototype.sync=r.sync,n(function(){var e;return e=w.utility.make_websocket(),e.then(function(){var e,i,n;return n=w.wswrapper,i=new x.UserDocs,i.subscribe(n,\"defaultuser\"),e=i.fetch(),e.done(function(){return null!=t?u(i,t):l(i)}),v.info(\"subscribing to debug\"),n.subscribe(\"debug:debug\",\"\"),n.on(\"msg:debug:debug\",function(t){return\"reload\"===t?y():void 0})})})},l=function(t){var e;return e=new x.UserDocsView({collection:t}),a(e.el)},u=function(t,e){var i,n;return i=t.find(function(t){return t.get(\"title\")===e}),null!=i?(i.on(\"loaded\",function(){var t,e;return t=i.get(\"plot_context\"),e=new t.default_view({model:t}),a(e.el)}),i.load()):(n=\"Document '\"+e+\"' wasn't found on this server.\",a(n),v.error(n))},a=function(t){return n(\"#PlotPane\").append(t)},e.exports={inject_css:g,inject_plot:m,add_plot_server:c,add_plot_static:h,server_page:b}},{\"../common/base\":29,\"../common/has_properties\":44,\"../common/load_models\":47,\"../common/logging\":48,\"./serverutils\":125,\"./usercontext/usercontext\":127,backbone:1,jquery:17,underscore:22}],125:[function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d,f,g,m,_;n=t(\"jquery\"),u=t(\"underscore\"),r=t(\"backbone\"),c=t(\"../common/base\"),g=t(\"../common/socket\"),l=g.WebSocketWrapper,m=g.submodels,d=t(\"../common/load_models\"),f=t(\"../common/logging\").logger,s=t(\"../common/has_properties\"),o={},a={},o._doc_loaded=n.Deferred(),o._doc_requested=n.Deferred(),a.doc_loaded=o._doc_loaded.promise(),a.doc_requested=o._doc_requested.promise(),a.doc_promises={},p={},i.wswrapper=null,i.plotcontext=null,i.plotcontextview=null,i.Promises=a,p={},_={load_one_object_chain:function(e,o,a){var l,c,h,g;return a&&(p[e]||(p[e]=u.uniqueId(\"temporary\")),g=p[e],c=\"temporary-\"+e,l={},l[c]=g,n.ajaxSetup({headers:l})),s.prototype.sync=r.sync,h=_.make_websocket(),h=h.then(function(){var i,r;return i=t(\"../common/base\").Config,r=i.prefix+\"bokeh/objinfo/\"+e+\"/\"+o,f.debug(\"load one object chain: \"+r),h=n.get(r)}),h.done(function(t){var n,r;return n=t.all_models,d(n),r=t.apikey,m(i.wswrapper,\"bokehplot:\"+e,r),a?m(i.wswrapper,\"bokehplot:\"+g,null):void 0}),h},load_user:function(){var t;return t=n.get(\"/bokeh/userinfo/\",{})},load_doc_by_title:function(e){var r,o;return r=t(\"../common/base\").Config,o=n.get(r.prefix+\"bokeh/doc\",{title:e}).done(function(t){var e,n,r;return e=t.all_models,d(e),n=t.apikey,r=t.docid,m(i.wswrapper,\"bokehplot:\"+r,n)})},load_doc_static:function(t,e){\" loads data without making a websocket connection \";var i;return load_data(e.all_models),i=jQuery.Deferred(),i.resolve(),i},load_doc:function(e){var r;return r=_.make_websocket(),r=r.then(function(){var i;return i=t(\"../common/base\").Config,n.get(i.prefix+(\"bokeh/bokehinfo/\"+e+\"/\"),{})}),r.done(function(t){var n,r;return n=t.all_models,d(n),r=t.apikey,m(i.wswrapper,\"bokehplot:\"+e,r)}),r},make_websocket:function(){var e,r;return null!=i.wswrapper?i._wswrapper_deferred:(e=t(\"../common/base\").Config,i._wswrapper_deferred=n.get(e.prefix+\"bokeh/wsurl/\"),r=i._wswrapper_deferred,r.done(function(n){var r;return e=t(\"../common/base\").Config,h(n,null),r=new l(e.ws_conn_string),i.wswrapper=r}),r)},render_plots:function(e,n,r){var o,s,a,l;return null==n&&(n=null),null==r&&(r={}),o=t(\"../common/base\").Collections,a=o(e.type).get(e.id),n||(n=a.default_view),s=u.extend(r,{model:a}),l=new n(s),a=a,l=l,l.render(),i.plotcontext=a,i.plotcontextview=l},bokeh_connection:function(t,e,i){return u.isUndefined(i)&&(i=\"https\"),\"pending\"===a.doc_requested.state()?(o._doc_requested.resolve(),n.get(i+\"://\"+t+\"/bokeh/publicbokehinfo/\"+e,{},function(t){return f.debug(\"instantiate_doc_single \"+e),t=JSON.parse(t),d(t.all_models),o._doc_loaded.resolve(t)})):void 0}},h=function(e,i){var n;return n=t(\"../common/base\").Config,e&&(n.ws_conn_string=e,f.debug(\"setting ws_conn_string to: \"+n.ws_conn_string)),i&&(n.prefix=i,f.debug(\"setting prefix to \"+n.prefix)),null},i.utility=_,i.configure_server=h,e.exports=i},{\"../common/base\":29,\"../common/has_properties\":44,\"../common/load_models\":47,\"../common/logging\":48,\"../common/socket\":59,backbone:1,jquery:17,underscore:22}],126:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;(\"undefined\"==typeof t||null==t)&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}),function(){(function(){i.push(\"<p>\\n  <b>\\n    You have no Plots. Follow the instructions below to create some.\\n  </b>\\n</p>\\n\")}).call(this)}.call(t),t.safe=n,t.escape=r,i.join(\"\")}},{}],127:[function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d,f,g,m,_,v,y=function(t,e){function i(){this.constructor=t}for(var n in e)b.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},b={}.hasOwnProperty;h=t(\"underscore\"),n=t(\"jquery\"),p=t(\"../../common/base\"),d=t(\"../../common/build_views\"),o=t(\"../../common/continuum_view\"),r=t(\"../../common/collection\"),l=t(\"../../common/has_parent\"),g=t(\"../../common/load_models\"),f=t(\"./documentationtemplate\"),_=t(\"../serverutils\").utility,m=t(\"./userdocstemplate\"),v=t(\"./wrappertemplate\"),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return y(e,t),e.prototype.template=v,e.prototype.attributes={\"class\":\"panel-group\"},e.prototype.events={\"click .bokehdoclabel\":\"loaddoc\",\"click .bokehdelete\":\"deldoc\"},e.prototype.deldoc=function(t){return t.preventDefault(),this.model.destroy(),!1},e.prototype.loaddoc=function(){return this.model.load()},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render_init()},e.prototype.delegateEvents=function(t){return e.__super__.delegateEvents.call(this,t),this.listenTo(this.model,\"loaded\",this.render)},e.prototype.render_init=function(){var t;return t=this.template({model:this.model,bodyid:h.uniqueId()}),this.$el.html(t)},e.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},e}(o),c=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return y(e,t),e.prototype.initialize=function(t){return this.docs=t.docs,this.collection=t.collection,this.views={},e.__super__.initialize.call(this,t),this.render()},e.prototype.attributes={\"class\":\"usercontext\"},e.prototype.events={\"click .bokehrefresh\":function(){return this.collection.fetch({update:!0})}},e.prototype.delegateEvents=function(t){return e.__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 function(e,i,n){return t.listenTo(e,\"loaded\",function(){return t.listenTo(e.get(\"plot_context\"),\"change\",function(){return t.trigger(\"show\")})})}}(this)),this.listenTo(this.collection,\"remove\",function(t){return function(e,i,n){return t.stopListening(e)}}(this))},e.prototype.render_docs=function(){return this.$el.html(f()),this.$el.append(this.docs)},e.prototype.render=function(){var t,e,i,n,r;if(0===this.collection.models.length&&this.docs)return this.render_docs();for(t=m(),h.map(h.values(this.views),function(t){return t.$el.detach()}),r=this.collection.models.slice().reverse(),d(this.views,r,{}),this.$el.html(t),e=0,i=r.length;i>e;e++)n=r[e],this.$el.find(\".accordion\").append(this.views[n.id].el);return this},e}(o),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return y(e,t),e.prototype.default_view=a,e.prototype.idAttribute=\"docid\",e.prototype.defaults=function(){return h.extend({},e.__super__.defaults.call(this),{docid:null,title:null,plot_context:null,apikey:null})},e.prototype.sync=function(){},e.prototype.destroy=function(t){return e.__super__.destroy.call(this,t),n.ajax({url:\"/bokeh/doc/\"+this.get(\"docid\")+\"/\",type:\"delete\"})},e.prototype.load=function(t){var e,i,n;if(!this.loaded)return t?(n=this.get(\"title\"),i=_.load_doc_by_title(n)):(e=this.get(\"docid\"),i=_.load_doc(e)),i.done(function(t){return function(e){return t.set(\"docid\",e.docid),t.set(\"apikey\",e.apikey),t.set(\"plot_context\",e.plot_context_ref),t.trigger(\"loaded\"),t.loaded=!0}}(this))},e}(l),u=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return y(e,t),e.prototype.model=s,e.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})},e.prototype.fetch=function(t){var e,i,r;return h.isUndefined(t)&&(t={}),r=p.Config.prefix+\"bokeh/userinfo/\",e=i=n.get(r,{}),e.done(function(e){return function(i){var n;return n=i.docs,t.update?e.set(n,t):e.reset(n,t)}}(this)),e},e}(r),e.exports={UserDocs:u,UserDocsView:c,Doc:s,DocView:a}},{\"../../common/base\":29,\"../../common/build_views\":31,\"../../common/collection\":37,\"../../common/continuum_view\":38,\"../../common/has_parent\":43,\"../../common/load_models\":47,\"../serverutils\":125,\"./documentationtemplate\":126,\"./userdocstemplate\":128,\"./wrappertemplate\":129,jquery:17,underscore:22}],128:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;(\"undefined\"==typeof t||null==t)&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}),function(){(function(){i.push('<div class=\"accordion\">\\n</div>\\n')}).call(this)}.call(t),t.safe=n,t.escape=r,i.join(\"\")}},{}],129:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&&t.ecoSafe?t:\"undefined\"!=typeof t&&null!=t?o(t):\"\"},r=t.safe,o=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;(\"undefined\"==typeof t||null==t)&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e},o||(o=t.escape=function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}),function(){(function(){i.push('<div class=\"panel panel-default\">\\n  <div class=\"panel-heading\">\\n    <h4 class=\"panel-title\">\\n      <a class=\"bokehdoclabel\" href=\"#'),i.push(n(this.bodyid)),i.push('\" data-toggle=\"collapse\">\\n        Document: '),i.push(n(this.model.get(\"title\"))),i.push(' <span class=\"bokehdelete glyphicon glyphicon-trash\"></i>\\n      </a>\\n    </h4>\\n  </div>\\n  <div id=\"'),i.push(n(this.bodyid)),i.push('\" class=\"panel-collapse collapse\">\\n    <div class=\"panel-body plots\"></div>\\n  </div>\\n</div>\\n')}).call(this)}.call(t),t.safe=r,t.escape=o,i.join(\"\")}},{}],130:[function(t,e,i){var n,r,o,s,a,l,u,c=function(t,e){return function(){return t.apply(e,arguments)}},h=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;n=t(\"jquery\"),l=t(\"underscore\"),s=t(\"backbone\"),u=t(\"../common/logging\").logger,a=t(\"./remote_data_source\"),\n",
       "                r=function(t){function e(){return this.defaults=c(this.defaults,this),this.get_data=c(this.get_data,this),this.setup=c(this.setup,this),this.destroy=c(this.destroy,this),e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type=\"AjaxDataSource\",e.prototype.destroy=function(){return null!=this.interval?clearInterval(this.interval):void 0},e.prototype.setup=function(t,e){return this.pv=t,this.get_data(this.get(\"mode\")),this.get(\"polling_interval\")?this.interval=setInterval(this.get_data,this.get(\"polling_interval\"),this.get(\"mode\"),this.get(\"max_size\"),this.get(\"if_modified\")):void 0},e.prototype.get_data=function(t,e,i){return null==e&&(e=0),null==i&&(i=!1),n.ajax({dataType:\"json\",ifModified:i,url:this.get(\"data_url\"),xhrField:{withCredentials:!0},method:this.get(\"method\"),contentType:\"application/json\"}).done(function(i){return function(n){var r,o,s,a,l;if(\"replace\"===t)i.set(\"data\",n);else if(\"append\"===t){for(a=i.get(\"data\"),l=i.columns(),o=0,s=l.length;s>o;o++)r=l[o],n[r]=a[r].concat(n[r]).slice(-e);i.set(\"data\",n)}else u.error(\"unsupported mode: \"+t);return u.debug(n),null}}(this)).error(function(){return u.error(arguments)}),null},e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{mode:\"replace\"})},e}(a.RemoteDataSource),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.model=r,e.prototype.defaults={url:\"\",expr:null},e}(s.Collection),e.exports={Model:r,Collection:new o}},{\"../common/logging\":48,\"./remote_data_source\":133,backbone:1,jquery:17,underscore:22}],131:[function(t,e,i){var n,r,o,s,a,l,u,c=function(t,e){return function(){return t.apply(e,arguments)}},h=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;n=t(\"jquery\"),l=t(\"underscore\"),r=t(\"backbone\"),u=t(\"../common/logging\").logger,a=t(\"./remote_data_source\"),o=function(t){function e(){return this.update=c(this.update,this),this.setup=c(this.setup,this),this.destroy=c(this.destroy,this),e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type=\"BlazeDataSource\",e.prototype.destroy=function(){return null!=this.interval?clearInterval(this.interval):void 0},e.prototype.setup=function(t,e){return this.pv=t,this.update(),this.get(\"polling_interval\")?this.interval=setInterval(this.update,this.get(\"polling_interval\")):void 0},e.prototype.update=function(){var t;return t=JSON.stringify({expr:this.get(\"expr\"),namespace:this.get(\"namespace\")}),n.ajax({dataType:\"json\",url:this.get(\"data_url\"),data:t,xhrField:{withCredentials:!0},method:\"POST\",contentType:\"application/json\"}).done(function(t){return function(e){var i,n,r,o,s,a,u,c;for(n=l.zip.apply(l,e.data),r={},c=e.names,s=o=0,a=c.length;a>o;s=++o)i=c[s],r[i]=n[s];return u=l.clone(t.get(\"data\")),l.extend(u,r),t.set(\"data\",u),null}}(this))},e}(a.RemoteDataSource),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.model=o,e.prototype.defaults={url:\"\",expr:null},e}(r.Collection),e.exports={Model:o,Collection:new s}},{\"../common/logging\":48,\"./remote_data_source\":133,backbone:1,jquery:17,underscore:22}],132:[function(t,e,i){var n,r,o,s,a,l=function(t,e){return function(){return t.apply(e,arguments)}},u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;s=t(\"underscore\"),r=t(\"../common/has_properties\"),o=t(\"../common/selection_manager\"),a=t(\"../common/hittest\"),n=function(t){function e(){return this.defaults=l(this.defaults,this),e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type=\"ColumnDataSource\",e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this,\"change:selected\",function(t){return function(){var e;return null!=(e=t.get(\"callback\"))?e.execute(t):void 0}}(this))},e.prototype.get_column=function(t){var e;return null!=(e=this.get(\"data\")[t])?e:null},e.prototype.get_length=function(){var t,e,i,n;return t=this.get(\"data\"),0===s.keys(t).length?null:(i=s.uniq(function(){var i;i=[];for(e in t)n=t[e],i.push(n.length);return i}()),i[0])},e.prototype.columns=function(){return s.keys(this.get(\"data\"))},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{data:{},selection_manager:new o({source:this}),selected:a.create_hit_test_result()})},e}(r),e.exports={Model:n}},{\"../common/has_properties\":44,\"../common/hittest\":45,\"../common/selection_manager\":57,underscore:22}],133:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"backbone\"),r=t(\"./column_data_source\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e}(r.Model),e.exports={RemoteDataSource:o}},{\"./column_data_source\":132,backbone:1,underscore:22}],134:[function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d,f,g,m,_=function(t,e){function i(){this.constructor=t}for(var n in e)v.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},v={}.hasOwnProperty,y=function(t,e){return function(){return t.apply(e,arguments)}};n=t(\"jquery\"),f=t(\"underscore\"),o=t(\"backbone\"),a=t(\"../common/has_properties\"),m=t(\"../common/logging\").logger,c=t(\"../range/range1d\"),s=t(\"../range/data_range1d\"),h=t(\"./remote_data_source\"),g=function(t){var e,i,n,r;return e=!1,r=null,n=!1,i=function(){return e?n?m.debug(\"already bound, ignoring\"):(m.debug(\"busy, so doing it later\"),n=!0,r.done(function(){return n=!1,i()})):(m.debug(\"executing\"),e=!0,r=t(),r.done(function(){return m.debug(\"done, setting to false\"),e=!1,r=null}))}},d=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.callbacks=[],this.plot_state={data_x:i.data_x,data_y:i.data_y,screen_x:i.screen_x,screen_y:i.screen_y},this.glyph=i.glyph,this.data_source=i.data_source,this.render_state=i.render_state,this.auto_bounds=i.data_source.get(\"transform\").auto_bounds},e.prototype.stoplistening_for_updates=function(){var t,e,i,n,r;for(n=this.callbacks,r=[],e=0,i=n.length;i>e;e++)t=n[e],r.push(this.stopListening.apply(this,t));return r},e.prototype.listen_for_updates=function(){var t,e,i,n,r;for(this.stoplistening_for_updates(),t=g(function(t){return function(){return t.update()}}(this)),t=f.debounce(t,100),t(),r=[this.plot_state.data_x,this.plot_state.data_x,this.plot_state.screen_x,this.plot_state.screen_y],e=0,i=r.length;i>e;e++)n=r[e],this.listenTo(n,\"change\",t),this.callbacks.push([n,\"change\",t]);return null},e.prototype.update=function(){return null},e.prototype.plot_state_json=function(){var t,e,i,n,r;r={},n=this.plot_state;for(e in n)t=n[e],i=new c.Model,i.set(\"start\",t.get(\"start\")),i.set(\"end\",t.get(\"end\")),r[e]=i;return r},e.prototype.update_url=function(){var t,e,i,n,r,o;return i=this.glyph,this.get(\"data_url\")?(o=data_url,t=o.replace(\"/compute.json\",\"/render\")):t=i.get_base().Config.prefix+\"render\",e=this.glyph.get(\"doc\"),r=this.data_source.get(\"id\"),n=i.get(\"id\"),o=t+\"/\"+e+\"/\"+r+\"/\"+n},e}(o.Model),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.update=function(){var t,e,i,r;return e=this.plot_state,i=this.render_state,i||(i={}),e.screen_x.get(\"start\")===e.screen_x.get(\"end\")||e.screen_y.get(\"start\")===e.screen_y.get(\"end\")?(m.debug(\"skipping due to under-defined view state\"),n.ajax()):(m.debug(\"Sent render State\",i),t={plot_state:this.plot_state_json(),render_state:i,auto_bounds:this.auto_bounds},r=n.ajax({method:\"POST\",dataType:\"json\",url:this.update_url(),xhrField:{withCredentials:!0},contentType:\"application/json\",data:JSON.stringify(t),success:function(t){return function(i){var n;return\"NO UPDATE\"===i.render_state?void m.info(\"No update\"):(t.auto_bounds&&(e.data_x.set({start:i.x_range.start,end:i.x_range.end}),e.data_y.set({start:i.y_range.start,end:i.y_range.end}),t.auto_bounds=!1),m.debug(\"New render State:\",i.render_state),n=f.clone(t.data_source.get(\"data\")),f.extend(n,i.data),t.data_source.set(\"data\",n),null)}}(this)}))},e}(d),u=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.update=function(){var t,e,i,r;return e=this.plot_state,i=this.render_state,i||(i={}),e.screen_x.get(\"start\")===e.screen_x.get(\"end\")||e.screen_y.get(\"start\")===e.screen_y.get(\"end\")?(m.debug(\"skipping due to under-defined view state\"),n.ajax()):(m.debug(\"Sent render State\",i),t={plot_state:this.plot_state_json(),render_state:i,auto_bounds:this.auto_bounds},r=n.ajax({method:\"POST\",dataType:\"json\",url:this.update_url(),xhrField:{withCredentials:!0},contentType:\"application/json\",data:JSON.stringify(t),success:function(t){return function(i){var n;return\"NO UPDATE\"===i.render_state?void m.info(\"No update\"):(t.auto_bounds&&(e.data_x.set({start:i.x_range.start,end:i.x_range.end}),e.data_y.set({start:i.y_range.start,end:i.y_range.end}),t.auto_bounds=!1),m.debug(\"New render State:\",i.render_state),n=f.clone(t.data_source.get(\"data\")),f.extend(n,i.data),t.data_source.set(\"data\",n),null)}}(this)}))},e}(d),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.update=function(){var t,e,i,r;return e=this.plot_state,i=this.render_state,i||(i={}),e.screen_x.get(\"start\")===e.screen_x.get(\"end\")||e.screen_y.get(\"start\")===e.screen_y.get(\"end\")?(m.debug(\"skipping due to under-defined view state\"),n.ajax()):(m.debug(\"Sent render State\",i),t={plot_state:this.plot_state_json(),render_state:i,auto_bounds:this.auto_bounds},r=n.ajax({method:\"POST\",dataType:\"json\",url:this.update_url(),xhrField:{withCredentials:!0},contentType:\"application/json\",data:JSON.stringify(t),success:function(t){return function(i){var n;return\"NO UPDATE\"===i.render_state?void m.info(\"No update\"):(t.auto_bounds&&(e.data_x.set({start:i.x_range.start,end:i.x_range.end}),e.data_y.set({start:i.y_range.start,end:i.y_range.end}),t.auto_bounds=!1),m.debug(\"New render State:\",i.render_state),n=f.clone(t.data_source.get(\"data\")),f.extend(n,i.data),t.data_source.set(\"data\",n),null)}}(this)}))},e}(d),p=function(t){function e(){return this.setup_proxy=y(this.setup_proxy,this),this.setup=y(this.setup,this),this.initialize=y(this.initialize,this),e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.type=\"ServerDataSource\",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i)},e.prototype.setup=function(t,e){var i,n,r,o,s;return o=s=i=n=r={data_x:t.x_range,data_y:t.y_range,screen_x:t.frame.get(\"h_range\"),screen_y:t.frame.get(\"v_range\"),glyph:e.model},this.setup_proxy(r)},e.prototype.setup_proxy=function(t){return t.data_source=this,\"abstract rendering\"===this.get(\"transform\").resample?this.proxy=new r({},t):\"line1d\"===this.get(\"transform\").resample?this.proxy=new u({},t):\"heatmap\"===this.get(\"transform\").resample&&(this.proxy=new l({},t)),this.proxy.listen_for_updates()},e}(h.RemoteDataSource),e.exports={Model:p}},{\"../common/has_properties\":44,\"../common/logging\":48,\"../range/data_range1d\":74,\"../range/range1d\":76,\"./remote_data_source\":133,backbone:1,jquery:17,underscore:22}],135:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;s=t(\"underscore\"),o=t(\"../common/has_properties\"),a=function(t){var e,i,n,r,o;return null===t?\"null\":null==t?\"undefined\":t.constructor===Array?(i=function(){var i,n,r;for(r=[],i=0,n=t.length;n>i;i++)e=t[i],r.push(a(e));return r}().join(\", \"),\"[\"+i+\"]\"):t.constructor===Object?(o=function(){var e;e=[];for(n in t)e.push(n+\": \"+a(t[n]));return e}().join(\", \"),\"{\"+o+\"}\"):t.constructor===String?'\"'+t+'\"':t.constructor===Function?\"<Function: \"+t.name+\">\":(r=t.toString(),\"[object Object]\"===r?\"<\"+t.constructor.name+\">\":r)},r=6,n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type=\"AbstractTicker\",e.prototype.get_ticks=function(t,e,i,n){var r;return r=n.desired_n_ticks,this.get_ticks_no_defaults(t,e,this.get(\"desired_num_ticks\"))},e.prototype.get_ticks_no_defaults=function(t,e,i){var n,r,o,a,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x;if(l=this.get_interval(t,e,i),y=Math.floor(t/l),n=Math.ceil(e/l),o=s.isNaN(y)||s.isNaN(n)?[]:s.range(y,n+1),w=function(){var t,e,i;for(i=[],t=0,e=o.length;e>t;t++)r=o[t],i.push(r*l);return i}(),v=this.get(\"num_minor_ticks\"),_=[],v>1){for(g=l/v,m=function(){var t,e,i;for(i=[],a=t=1,e=v;e>=1?e>=t:t>=e;a=e>=1?++t:--t)i.push(a*g);return i}(),u=0,p=m.length;p>u;u++)x=m[u],_.push(w[0]-x);for(c=0,d=w.length;d>c;c++)for(b=w[c],h=0,f=m.length;f>h;h++)x=m[h],_.push(b+x)}return{major:w,minor:_}},e.prototype.get_interval=void 0,e.prototype.get_min_interval=function(){return this.get(\"min_interval\")},e.prototype.get_max_interval=function(){return this.get(\"max_interval\")},e.prototype.toString=function(){var t,e,i,n;return t=typeof this,n=this.get(\"toString_properties\"),i=function(){var t,i,r;for(r=[],t=0,i=n.length;i>t;t++)e=n[t],r.push(e+\"=\"+a(this[e]));return r}.call(this).join(\", \"),t+\"(\"+i+\")\"},e.prototype.get_ideal_interval=function(t,e,i){var n;return n=e-t,n/i},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{toString_properties:[],num_minor_ticks:5,desired_num_ticks:r})},e}(o),e.exports={Model:n}},{\"../common/has_properties\":44,underscore:22}],136:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;o=t(\"underscore\"),n=t(\"./abstract_ticker\"),s=t(\"./util\").argmin,a=function(t,e,i){return Math.max(e,Math.min(i,t))},l=function(t,e){return null==e&&(e=Math.E),Math.log(t)/Math.log(e)},r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type=\"AdaptiveTicker\",e.prototype.initialize=function(t,i){var n,r;return e.__super__.initialize.call(this,t,i),n=o.last(this.get(\"mantissas\"))/this.get(\"base\"),r=o.first(this.get(\"mantissas\"))*this.get(\"base\"),this.extended_mantissas=o.flatten([n,this.get(\"mantissas\"),r]),this.base_factor=0===this.get(\"min_interval\")?1:this.get(\"min_interval\")},e.prototype.get_interval=function(t,e,i){var n,r,o,u,c,h,p,d,f;return o=e-t,c=this.get_ideal_interval(t,e,i),f=Math.floor(l(c/this.base_factor,this.get(\"base\"))),h=Math.pow(this.get(\"base\"),f)*this.base_factor,p=c/h,r=this.extended_mantissas,u=r.map(function(t){return Math.abs(i-o/(t*h))}),n=r[s(u)],d=n*h,a(d,this.get(\"min_interval\"),this.get(\"max_interval\"))},e.prototype.defaults=function(){return o.extend({},e.__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})},e}(n.Model),e.exports={Model:r}},{\"./abstract_ticker\":135,\"./util\":151,underscore:22}],137:[function(t,e,i){var n,r,o,s=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;o=t(\"underscore\"),r=t(\"../common/has_properties\"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.type=\"BasicTickFormatter\",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),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},e.prototype.format=function(t){var e,i,n,r,s,a,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x;if(0===t.length)return[];if(x=0,t.length>=2&&(x=Math.abs(t[1]-t[0])/1e4),h=!1,this.get(\"use_scientific\"))for(n=0,l=t.length;l>n;n++)if(y=t[n],b=Math.abs(y),b>x&&(b>=this.get(\"scientific_limit_high\")||b<=this.get(\"scientific_limit_low\"))){h=!0;break}if(d=this.get(\"precision\"),null==d||o.isNumber(d)){if(a=new Array(t.length),h)for(e=r=0,f=t.length;f>=0?f>r:r>f;e=f>=0?++r:--r)a[e]=t[e].toExponential(d||void 0);else for(e=s=0,g=t.length;g>=0?g>s:s>g;e=g>=0?++s:--s)a[e]=t[e].toFixed(d||void 0).replace(/(\\.[0-9]*?)0+$/,\"$1\").replace(/\\.$/,\"\");return a}if(\"auto\"===d)for(a=new Array(t.length),w=u=m=this.last_precision;15>=m?15>=u:u>=15;w=15>=m?++u:--u){if(i=!0,h){for(e=c=0,_=t.length;_>=0?_>c:c>_;e=_>=0?++c:--c)if(a[e]=t[e].toExponential(w),e>0&&a[e]===a[e-1]){i=!1;break}if(i)break}else{for(e=p=0,v=t.length;v>=0?v>p:p>v;e=v>=0?++p:--p)if(a[e]=t[e].toFixed(w).replace(/(\\.[0-9]*?)0+$/,\"$1\").replace(/\\.$/,\"\"),e>0&&a[e]===a[e-1]){i=!1;break}if(i)break}if(i)return this.last_precision=w,a}return a},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{precision:\"auto\",use_scientific:!0,power_limit_high:5,power_limit_low:-3})},e}(r),e.exports={Model:n}},{\"../common/has_properties\":44,underscore:22}],138:[function(t,e,i){var n,r,o,s=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;o=t(\"underscore\"),n=t(\"./adaptive_ticker\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.type=\"BasicTicker\",e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{mantissas:[1,2,5]})},e}(n.Model),e.exports={Model:r}},{\"./adaptive_ticker\":136,underscore:22}],139:[function(t,e,i){var n,r,o=function(t,e){function i(){this.constructor=t}for(var n in e)s.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},s={}.hasOwnProperty;r=t(\"../common/has_properties\"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.type=\"CategoricalTickFormatter\",e.prototype.format=function(t){return t},e}(r),e.exports={Model:n}},{\"../common/has_properties\":44}],140:[function(t,e,i){var n,r,o=function(t,e){function i(){this.constructor=t}for(var n in e)s.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},s={}.hasOwnProperty;r=t(\"../common/has_properties\"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.type=\"CategoricalTicker\",e.prototype.get_ticks=function(t,e,i,n){var r,o,s,a,l,u;for(r=n.desired_n_ticks,l=[],o=i.get(\"factors\"),s=a=0,u=o.length;u>=0?u>a:a>u;s=u>=0?++a:--a)s+1>t&&e>s+1&&l.push(o[s]);return{major:l,minor:[]}},e}(r),e.exports={Model:n}},{\"../common/has_properties\":44}],141:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t(\"underscore\"),n=t(\"./abstract_ticker\"),s=t(\"./util\").argmin,r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type=\"CompositeTicker\",e.prototype.initialize=function(t,i){var n;return e.__super__.initialize.call(this,t,i),n=this.get(\"tickers\"),this.register_property(\"min_intervals\",function(){return o.invoke(n,\"get_min_interval\")},!0),this.add_dependencies(\"min_intervals\",this,[\"tickers\"]),this.register_property(\"max_intervals\",function(){return o.invoke(n,\"get_max_interval\")},!0),this.add_dependencies(\"max_intervals\",this,[\"tickers\"]),this.register_property(\"min_interval\",function(){return o.first(this.get(\"min_intervals\"))},!0),this.add_dependencies(\"min_interval\",this,[\"min_intervals\"]),this.register_property(\"max_interval\",function(){return o.first(this.get(\"max_intervals\"))},!0),this.add_dependencies(\"max_interval\",this,[\"max_interval\"])},e.prototype.get_best_ticker=function(t,e,i){var n,r,a,l,u,c,h,p;return l=e-t,c=this.get_ideal_interval(t,e,i),p=[o.sortedIndex(this.get(\"min_intervals\"),c)-1,o.sortedIndex(this.get(\"max_intervals\"),c)],h=[this.get(\"min_intervals\")[p[0]],this.get(\"max_intervals\")[p[1]]],u=h.map(function(t){return Math.abs(i-l/t)}),n=s(u),n===1/0?this.get(\"tickers\")[0]:(a=p[n],r=this.get(\"tickers\")[a])},e.prototype.get_interval=function(t,e,i){var n;return n=this.get_best_ticker(t,e,i),n.get_interval(t,e,i)},e.prototype.get_ticks_no_defaults=function(t,e,i){var n,r;return n=this.get_best_ticker(t,e,i),r=n.get_ticks_no_defaults(t,e,i)},e}(n.Model),e.exports={Model:r}},{\"./abstract_ticker\":135,\"./util\":151,underscore:22}],142:[function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d,f,g=function(t,e){function i(){this.constructor=t}for(var n in e)m.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},m={}.hasOwnProperty;s=t(\"underscore\"),o=t(\"sprintf\"),f=t(\"timezone\"),r=t(\"../common/has_properties\"),d=t(\"../common/logging\").logger,p=function(t){return o.sprintf(\"%3dus\",Math.floor(t%1*1e3))},u=function(t){var e,i;return e=Math.floor(t/1e3%1*1e3),i=Math.floor(t%1*1e3),o.sprintf(\"%3d.%3dms\",e,i)},h=function(t){var e,i;return e=new Date(t),i=e.getFullYear(),e.getMonth()>=7&&(i+=1),o.sprintf(\"'%02d\",i%100)},l=function(t){var e,i;return e=new Date(t),i=e.getFullYear(),e.getMonth()>=7&&(i+=1),o.sprintf(\"%d\",i)},a=function(t){return f(t,\"%Y %m %d %H %M %S\").split(/\\s+/).map(function(t){return parseInt(t,10)})},c=function(t,e){return s.isFunction(e)?e(t):f(t,e)},n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return g(e,t),e.prototype.type=\"DatetimeTickFormatter\",e.prototype.format_order=[\"microseconds\",\"milliseconds\",\"seconds\",\"minsec\",\"minutes\",\"hourmin\",\"hours\",\"days\",\"months\",\"years\"],e.prototype._formats={microseconds:[p,u],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\",h,l]},e.prototype.strip_leading_zeros=!0,e.prototype.initialize=function(t,i){var n,r,o,a,l,u,h,p;e.__super__.initialize.call(this,t,i),n=s.extend({},this._formats,this.get(\"formats\")),l=f(new Date),this.formats={},u=[];for(r in n)a=n[r],h=function(){var t,e,i;for(i=[],t=0,e=a.length;e>t;t++)o=a[t],i.push(c(l,o).length);return i}(),p=s.sortBy(s.zip(h,a),function(t){var e,i;return i=t[0],e=t[1],i}),u.push(this.formats[r]=s.zip.apply(s,p));return u},e.prototype._get_resolution_str=function(t,e){var i,n;return i=1.1*t,n=.001>i?\"microseconds\":1>i?\"milliseconds\":60>i?e>=60?\"minsec\":\"seconds\":3600>i?e>=3600?\"hourmin\":\"minutes\":86400>i?\"hours\":2678400>i?\"days\":31536e3>i?\"months\":\"years\"},e.prototype.format=function(t,e,i,n,r){var o,l,u,h,p,f,g,m,_,v,y,b,w,x,k,C,M,D,T,S,A,P,I,E,R,N,z,O;if(null==e&&(e=null),null==i&&(i=null),null==n&&(n=.3),null==r&&(r=null),0===t.length)return[];if(I=Math.abs(t[t.length-1]-t[0])/1e3,C=r?r.resolution:I/(t.length-1),S=this._get_resolution_str(C,I),M=this.formats[S],O=M[0],h=M[1],u=h[0],i){for(p=[],g=m=0,D=O.length;D>=0?D>m:m>D;g=D>=0?++m:--m)O[g]*t.length<n*i&&p.push(this.formats[g]);p.length>0&&(u=s.last(p))}for(y=[],A=this.format_order.indexOf(S),N={},T=this.format_order,_=0,b=T.length;b>_;_++)l=T[_],N[l]=0;for(N.seconds=5,N.minsec=4,N.minutes=4,N.hourmin=3,N.hours=3,v=0,w=t.length;w>v;v++){R=t[v];try{z=a(R),P=c(R,u)}catch(j){o=j,d.warn(\"unable to format tick for timestamp value \"+R),d.warn(\" - \"+o),y.push(\"ERR\");continue}for(f=!1,k=A;0===z[N[this.format_order[k]]]&&(k+=1,k!==this.format_order.length);){if((\"minsec\"===S||\"hourmin\"===S)&&!f){if(\"minsec\"===S&&0===z[4]&&0!==z[5]||\"hourmin\"===S&&0===z[3]&&0!==z[4]){x=this.formats[this.format_order[A-1]][1][0],P=c(R,x);break}f=!0}x=this.formats[this.format_order[k]][1][0],P=c(R,x)}this.strip_leading_zeros?(E=P.replace(/^0+/g,\"\"),E===P||\"\"!==E&&isFinite(E[0])||(E=\"0\"+E),y.push(E)):y.push(P)}return y},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{formats:{}})},e}(r),e.exports={Model:n}},{\"../common/has_properties\":44,\"../common/logging\":48,sprintf:20,timezone:21,underscore:22}],143:[function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d,f,g,m=function(t,e){function i(){this.constructor=t}for(var n in e)_.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},_={}.hasOwnProperty;f=t(\"underscore\"),n=t(\"./adaptive_ticker\"),r=t(\"./composite_ticker\"),s=t(\"./days_ticker\"),a=t(\"./months_ticker\"),d=t(\"./years_ticker\"),g=t(\"./util\"),u=g.ONE_MILLI,p=g.ONE_SECOND,c=g.ONE_MINUTE,l=g.ONE_HOUR,h=g.ONE_MONTH,o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.type=\"DatetimeTicker\",e.prototype.defaults=function(){return f.extend({},e.__super__.defaults.call(this),{num_minor_ticks:0,tickers:[new n.Model({mantissas:[1,2,5],base:10,min_interval:0,max_interval:500*u,num_minor_ticks:0}),new n.Model({mantissas:[1,2,5,10,15,20,30],base:60,min_interval:p,max_interval:30*c,num_minor_ticks:0}),new n.Model({mantissas:[1,2,4,6,8,12],base:24,min_interval:l,max_interval:12*l,num_minor_ticks:0}),new s.Model({days:f.range(1,32)}),new s.Model({days:f.range(1,31,3)}),new s.Model({days:[1,8,15,22]}),new s.Model({days:[1,15]}),new a.Model({months:f.range(0,12,1)}),new a.Model({months:f.range(0,12,2)}),new a.Model({months:f.range(0,12,4)}),new a.Model({months:f.range(0,12,6)}),new d.Model({})]})},e}(r.Model),e.exports={Model:o}},{\"./adaptive_ticker\":136,\"./composite_ticker\":141,\"./days_ticker\":144,\"./months_ticker\":147,\"./util\":151,\"./years_ticker\":152,underscore:22}],144:[function(t,e,i){var n,r,o,s,a,l,u,c,h=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;s=t(\"underscore\"),o=t(\"./single_interval_ticker\"),c=t(\"./util\"),a=c.copy_date,u=c.last_month_no_later_than,r=c.ONE_DAY,l=function(t,e){var i,n,r,o,s;for(s=u(new Date(t)),r=u(new Date(e)),o=a(r),r.setUTCMonth(r.getUTCMonth()+1),n=[],i=s;;)if(n.push(a(i)),i.setUTCMonth(i.getUTCMonth()+1),i>r)break;return n},n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type=\"DaysTicker\",e.prototype.initialize=function(t,i){var n,o;return t.num_minor_ticks=0,e.__super__.initialize.call(this,t,i),n=this.get(\"days\"),o=n.length>1?(n[1]-n[0])*r:31*r,this.set(\"interval\",o)},e.prototype.get_ticks_no_defaults=function(t,e,i){var n,r,o,u,c,h,p,d;return p=l(t,e),u=this.get(\"days\"),c=function(t){return function(t,e){var i,n,r,o,s,l;for(i=[],s=0,l=u.length;l>s;s++)n=u[s],r=a(t),r.setUTCDate(n),o=new Date(r.getTime()+e/2),o.getUTCMonth()===t.getUTCMonth()&&i.push(r);return i}}(this),h=this.get(\"interval\"),o=s.flatten(function(){var t,e,i;for(i=[],t=0,e=p.length;e>t;t++)r=p[t],i.push(c(r,h));return i}()),n=s.invoke(o,\"getTime\"),d=s.filter(n,function(i){return i>=t&&e>=i}),{major:d,minor:[]}},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{toString_properties:[\"days\"]})},e}(o.Model),e.exports={Model:n}},{\"./single_interval_ticker\":150,\"./util\":151,underscore:22}],145:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;s=t(\"underscore\"),r=t(\"../common/has_properties\"),a=t(\"../common/logging\").logger,n=t(\"./basic_tick_formatter\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type=\"LogTickFormatter\",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.basic_formatter=new n.Model,null==this.get(\"ticker\")?a.warn(\"LogTickFormatter not configured with a ticker, using default base of 10 (labels will be incorrect if ticker base is not 10)\"):void 0},e.prototype.format=function(t){var e,i,n,r,o,s;if(0===t.length)return[];for(e=null!=this.get(\"ticker\")?this.get(\"ticker\").get(\"base\"):10,s=!1,r=new Array(t.length),i=n=0,o=t.length;o>=0?o>n:n>o;i=o>=0?++n:--n)if(r[i]=e+\"^\"+Math.round(Math.log(t[i])/Math.log(e)),i>0&&r[i]===r[i-1]){s=!0;break}return s&&(r=this.basic_formatter.format(t)),r},e}(r),e.exports={Model:o}},{\"../common/has_properties\":44,\"../common/logging\":48,\"./basic_tick_formatter\":137,underscore:22}],146:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t(\"underscore\"),n=t(\"./adaptive_ticker\"),s=function(t,e,i){var n,r;if(o.isUndefined(e)&&(e=t,t=0),o.isUndefined(i)&&(i=1),i>0&&t>=e||0>i&&e>=t)return[];for(r=[],n=t;i>0?e>n:n>e;)r.push(n),n+=i;return r},r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type=\"LogTicker\",e.prototype.get_ticks_no_defaults=function(t,e,i){var n,r,a,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D,T,S,A,P,I,E,R,N,z,O;if(A=this.get(\"num_minor_ticks\"),T=[],0>=t&&(t=1),t>e&&(I=[e,t],t=I[0],e=I[1]),n=this.get(\"base\"),k=Math.log(t)/Math.log(n),w=Math.log(e)/Math.log(n),x=w-k,2>x){if(h=this.get_interval(t,e,i),E=Math.floor(t/h),r=Math.ceil(e/h),u=o.isNaN(E)||o.isNaN(r)?[]:o.range(E,r+1),z=function(){var t,e,i;for(i=[],t=0,e=u.length;e>t;t++)l=u[t],0!==l&&i.push(l*h);return i}(),A>1){for(M=h/A,D=function(){var t,e,i;for(i=[],c=t=1,e=A;e>=1?e>=t:t>=e;c=e>=1?++t:--t)i.push(c*M);return i}(),p=0,g=D.length;g>p;p++)O=D[p],T.push(z[0]-O);for(d=0,m=z.length;m>d;d++)for(N=z[d],f=0,_=D.length;_>f;f++)O=D[f],T.push(N+O)}}else if(R=Math.ceil(k),a=Math.floor(w),h=Math.ceil((a-R)/9),z=s(R,a,h),(a-R)%h===0&&(z=z.concat([a])),z=z.map(function(t){return Math.pow(n,t)}),A>1){for(M=Math.pow(n,h)/A,D=function(){var t,e,i;for(i=[],c=t=1,e=A;e>=1?e>=t:t>=e;c=e>=1?++t:--t)i.push(c*M);return i}(),C=0,v=D.length;v>C;C++)O=D[C],T.push(z[0]/O);for(S=0,y=z.length;y>S;S++)for(N=z[S],P=0,b=D.length;b>P;P++)O=D[P],T.push(N*O)}return{major:z,minor:T}},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{mantissas:[1,5]})},e}(n.Model),e.exports={Model:r}},{\"./adaptive_ticker\":136,underscore:22}],147:[function(t,e,i){var n,r,o,s,a,l,u,c,h=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;s=t(\"underscore\"),o=t(\"./single_interval_ticker\"),c=t(\"./util\"),a=c.copy_date,u=c.last_year_no_later_than,r=c.ONE_MONTH,l=function(t,e){var i,n,r,o;for(o=u(new Date(t)),r=u(new Date(e)),r.setUTCFullYear(r.getUTCFullYear()+1),n=[],i=o;;)if(n.push(a(i)),i.setUTCFullYear(i.getUTCFullYear()+1),i>r)break;return n},n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type=\"MonthsTicker\",e.prototype.initialize=function(t,i){var n,o;return e.__super__.initialize.call(this,t,i),o=this.get(\"months\"),n=o.length>1?(o[1]-o[0])*r:12*r,this.set(\"interval\",n)},e.prototype.get_ticks_no_defaults=function(t,e,i){var n,r,o,u,c,h,p;return p=l(t,e),u=this.get(\"months\"),c=function(t){return u.map(function(e){var i;return i=a(t),i.setUTCMonth(e),i})},o=s.flatten(function(){var t,e,i;for(i=[],t=0,e=p.length;e>t;t++)r=p[t],i.push(c(r));return i}()),n=s.invoke(o,\"getTime\"),h=s.filter(n,function(i){return i>=t&&e>=i}),{major:h,minor:[]}},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{toString_properties:[\"months\"]})},e}(o.Model),e.exports={Model:n}},{\"./single_interval_ticker\":150,\n",
       "                \"./util\":151,underscore:22}],148:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),r=t(\"../../vendor/numeral.js-1.5.3/numeral.js\"),n=t(\"../common/has_properties\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type=\"NumeralTickFormatter\",e.prototype.format=function(t){var e,i,n,o,s;return e=this.get(\"format\"),n=this.get(\"language\"),o=function(){switch(this.get(\"rounding\")){case\"round\":case\"nearest\":return Math.round;case\"floor\":case\"rounddown\":return Math.floor;case\"ceil\":case\"roundup\":return Math.ceil}}.call(this),i=function(){var i,a,l;for(l=[],i=0,a=t.length;a>i;i++)s=t[i],l.push(r.format(s,e,n,o));return l}()},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{format:\"0,0\",language:\"en\",rounding:\"round\"})},e}(n),e.exports={Model:o}},{\"../../vendor/numeral.js-1.5.3/numeral.js\":230,\"../common/has_properties\":44,underscore:22}],149:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),o=t(\"sprintf\"),n=t(\"../common/has_properties\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type=\"PrintfTickFormatter\",e.prototype.format=function(t){var e,i,n;return e=this.get(\"format\"),i=function(){var i,r,s;for(s=[],i=0,r=t.length;r>i;i++)n=t[i],s.push(o.sprintf(e,n));return s}()},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{format:\"%s\"})},e}(n),e.exports={Model:r}},{\"../common/has_properties\":44,sprintf:20,underscore:22}],150:[function(t,e,i){var n,r,o,s=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;o=t(\"underscore\"),n=t(\"./abstract_ticker\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.type=\"SingleIntervalTicker\",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),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\"])},e.prototype.get_interval=function(t,e,i){return this.get(\"interval\")},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{toString_properties:[\"interval\"]})},e}(n.Model),e.exports={Model:r}},{\"./abstract_ticker\":135,underscore:22}],151:[function(t,e,i){var n,r,o,s,a,l,u,c,h,p,d,f;c=t(\"underscore\"),o=1,l=1e3,s=60*l,r=60*s,n=24*r,a=30*n,u=365*n,h=function(t){var e;return e=c.min(c.range(t.length),function(e){return t[e]})},p=function(t){return new Date(t.getTime())},d=function(t){return t=p(t),t.setUTCDate(1),t.setUTCHours(0),t.setUTCMinutes(0),t.setUTCSeconds(0),t.setUTCMilliseconds(0),t},f=function(t){return t=d(t),t.setUTCMonth(0),t},e.exports={argmin:h,copy_date:p,last_month_no_later_than:d,last_year_no_later_than:f,ONE_MILLI:o,ONE_SECOND:l,ONE_MINUTE:s,ONE_HOUR:r,ONE_DAY:n,ONE_MONTH:a,ONE_YEAR:u}},{underscore:22}],152:[function(t,e,i){var n,r,o,s,a,l,u,c=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t(\"underscore\"),n=t(\"./basic_ticker\"),o=t(\"./single_interval_ticker\"),u=t(\"./util\"),l=u.last_year_no_later_than,r=u.ONE_YEAR,s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type=\"YearsTicker\",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.set(\"interval\",r),this.basic_ticker=new n.Model({num_minor_ticks:0})},e.prototype.get_ticks_no_defaults=function(t,e,i){var n,r,o,s,u,c;return o=l(new Date(t)).getUTCFullYear(),r=l(new Date(e)).getUTCFullYear(),c=this.basic_ticker.get_ticks_no_defaults(o,r,i).major,n=function(){var t,e,i;for(i=[],t=0,e=c.length;e>t;t++)u=c[t],i.push(Date.UTC(u,0,1));return i}(),s=a.filter(n,function(i){return i>=t&&e>=i}),{major:s,minor:[]}},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{toString_properties:[\"years\"]})},e}(o.Model),e.exports={Model:s}},{\"./basic_ticker\":138,\"./single_interval_ticker\":150,\"./util\":151,underscore:22}],153:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"../button_tool\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._clicked=function(){return this.model.trigger(\"do\")},e}(s.ButtonView),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this.model,\"do\",this[\"do\"])},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e}(s.Model),e.exports={Model:n,View:o,ButtonView:r}},{\"../button_tool\":158}],154:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./action_tool\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype[\"do\"]=function(){return window.open(this.mget(\"redirect\"))},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=o,e.prototype.type=\"HelpTool\",e.prototype.tool_name=\"Help\",e.prototype.icon=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo3NzIwRUFGMDYyMjE2ODExOTdBNUNBNjVEQTY5OTRDRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozMjFERDhDRjIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozMjFERDhDRTIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1LjEgTWFjaW50b3NoIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OTdFQUZCRjQ4NjIxNjgxMTk3QTVDQTY1REE2OTk0Q0UiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzcyMEVBRjA2MjIxNjgxMTk3QTVDQTY1REE2OTk0Q0UiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6QBYrgAAABb0lEQVR42ozTwUeEQRjH8W3bKEs6JkpESqfVpS4RHaJL2b2sLepUh3To0KFVIjp0iegQUdG21WmVvUWsKBGRlIiU7Q+IVaT0ffi9eY33peFj7cw8zzvzzEzV7v5hxGltGEUvutR3hwvs4ck/OeoET6KACrJolaz6Cprz12L6rcEOajGEFyfxtRxhDX0Yx5e3ggV8IqlgW/4J3vCKddRrLKm5894KOjGCHiVrwDZ+sKKvpRQ0pzkzuETeEqSxpT1aa8ezCmbyuEW3b0sVxaQtQT+mfINXGPT9T+n3xqnLKTYsQQseI8FtWnstYdEZs9o0eqdQZxUNSWD9YwHj36i2UyijOWQFVvmPkOR2P8qW4AwDIQma0BEyZjGlqCo9gXjA1+0ePAQExxWTtwT3KOqG/bfZ3GOL9W7ikrIe6FSsvQdswcZymrvsf0xWpIzqYauZRcIXmFBfUUea8Qobc5a2qQtiz3nVec7nGHaf868AAwDKW1RIPmvhEQAAAABJRU5ErkJggg==\",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property(\"tooltip\",function(){return this.get(\"help_tooltip\")})},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{help_tooltip:\"Click the question mark to learn more about Bokeh plot tools.\",redirect:\"http://bokeh.pydata.org/en/latest/docs/user_guide/tools.html\"})},e}(n.Model),e.exports={Model:r,View:o}},{\"./action_tool\":153,underscore:22}],155:[function(t,e,i){(function(i){var n,r,o,s,a,l,u,c=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;l=t(\"underscore\"),n=t(\"jquery\"),r=null!=i._bokehTest?void 0:t(\"bootstrap/modal\"),o=t(\"./action_tool\"),u=t(\"./preview_save_tool_template\"),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.className=\"bk-bs-modal\",e.prototype.template=u,e.prototype.initialize=function(t){return e.__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(t){return function(){return t.$el.modal(\"hide\")}}(this)),this.$el.modal({show:!1})},e.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\")},e}(o.View),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.default_view=a,e.prototype.type=\"PreviewSaveTool\",e.prototype.tool_name=\"Preview/Save\",e.prototype.icon=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozMjFERDhENjIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozMjFERDhENzIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjMyMUREOEQ0MjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjMyMUREOEQ1MjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+h5hT8AAAAKBJREFUeNpiWbhs5QcGBgZ+hgECTAwDDGAO+AjEjGj4Lw5xUrAAkl3ocr8IhQAzjT3PRu0o+I+EHw65NDDqgJHrABYC8t9JMIuRmiHACS2IKC0LOKH0X1JDAOTzs0BsBs3XlIKz5KSBRCA+RQXLjwNxNDlp4BoQm9Mo7fGPZsNRB4w6YNQBI94BfwfaAV9G08CoA9DbA/xUavkMvRAACDAAaPgYViexODkAAAAASUVORK5CYII=\",e}(o.Model),e.exports={Model:s,View:a}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"./action_tool\":153,\"./preview_save_tool_template\":156,\"bootstrap/modal\":222,jquery:17,underscore:22}],156:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;(\"undefined\"==typeof t||null==t)&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}),function(){(function(){i.push('<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)}.call(t),t.safe=n,t.escape=r,i.join(\"\")}},{}],157:[function(t,e,i){var n,r,o,s=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;n=t(\"./action_tool\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype[\"do\"]=function(){return this.plot_view.update_range()},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.default_view=o,e.prototype.type=\"ResetTool\",e.prototype.tool_name=\"Reset\",e.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==\",e}(n.Model),e.exports={Model:r,View:o}},{\"./action_tool\":153}],158:[function(t,e,i){var n,r,o,s,a,l,u,c=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;l=t(\"underscore\"),n=t(\"backbone\"),a=t(\"./tool\"),u=t(\"./button_tool_template\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.tagName=\"li\",e.prototype.template=u,e.prototype.events=function(){return\"ontouchstart\"in document?{\"touchstart .bk-toolbar-button\":\"_clicked\"}:{\"click .bk-toolbar-button\":\"_clicked\"}},e.prototype.initialize=function(t){return e.__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()},e.prototype.render=function(){return this.model.get(\"active\")?this.$el.children(\"button\").addClass(\"active\"):this.$el.children(\"button\").removeClass(\"active\"),this},e.prototype._clicked=function(t){},e}(n.View),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e}(a.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property(\"tooltip\",function(){return this.get(\"tool_name\")})},e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{active:!1,tool_name:this.tool_name,icon:this.icon})},e}(a.Model),e.exports={Model:r,View:s,ButtonView:o}},{\"./button_tool_template\":159,\"./tool\":174,backbone:1,underscore:22}],159:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&&t.ecoSafe?t:\"undefined\"!=typeof t&&null!=t?o(t):\"\"},r=t.safe,o=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;(\"undefined\"==typeof t||null==t)&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e},o||(o=t.escape=function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}),function(){(function(){i.push('<button type=\"button\" class=\"bk-toolbar-button hover\">\\n  <img class=\\'bk-btn-icon\\' src='),i.push(n(this.icon)),i.push(\" />\\n  <span class='tip'>\"),i.push(n(this.tooltip)),i.push(\"</span>\\n</button>\\n\")}).call(this)}.call(t),t.safe=r,t.escape=o,i.join(\"\")}},{}],160:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t(\"underscore\"),o=t(\"../../renderer/overlay/box_selection\"),s=t(\"./select_tool\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.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},e.prototype._pan=function(t){var e,i,n,r,o,s,a,l,u;return i=this.plot_view.canvas,n=[i.sx_to_vx(t.bokeh.sx),i.sy_to_vy(t.bokeh.sy)],o=this.plot_model.get(\"frame\"),r=this.mget(\"dimensions\"),s=this.model._get_dim_limits(this._baseboint,n,o,r),l=s[0],u=s[1],this.mget(\"overlay\").set(\"data\",{vxlim:l,vylim:u}),this.mget(\"select_every_mousemove\")&&(e=null!=(a=t.srcEvent.shiftKey)?a:!1,this._select(l,u,!1,e)),null},e.prototype._pan_end=function(t){var e,i,n,r,o,s,a,l,u;return i=this.plot_view.canvas,n=[i.sx_to_vx(t.bokeh.sx),i.sy_to_vy(t.bokeh.sy)],o=this.plot_model.get(\"frame\"),r=this.mget(\"dimensions\"),s=this.model._get_dim_limits(this._baseboint,n,o,r),l=s[0],u=s[1],e=null!=(a=t.srcEvent.shiftKey)?a:!1,this._select(l,u,!0,e),this.mget(\"overlay\").set(\"data\",{}),this._baseboint=null,null},e.prototype._select=function(t,e,i,n){var r,o,s,a,l,u,c,h,p,d,f;for(h=t[0],p=t[1],d=e[0],f=e[1],null==n&&(n=!1),o={type:\"rect\",vx0:h,vx1:p,vy0:d,vy1:f},u=this.mget(\"renderers\"),s=0,a=u.length;a>s;s++)l=u[s],r=l.get(\"data_source\"),c=r.get(\"selection_manager\"),c.select(this,this.plot_view.renderers[l.id],o,i,n);return this._save_geometry(o,i,n),null},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=r,e.prototype.type=\"BoxSelectTool\",e.prototype.tool_name=\"Box Select\",e.prototype.icon=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBODVDNDBCRjIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBODVDNDBDMDIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkE4NUM0MEJEMjBCMzExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkE4NUM0MEJFMjBCMzExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+hdQ7dQAAAJdJREFUeNpiXLhs5X8GBPgIxAJQNjZxfiD+wIAKGCkUZ0SWZGIYZIAF3YVoPkEHH6kojhUMyhD6jydEaAlgaWnwh9BAgf9DKpfxDxYHjeay0Vw2bHMZw2guG81lwyXKRnMZWlt98JdDTFAX/x9NQwPkIH6kGMAVEyjyo7lstC4jouc69Moh9L42rlyBTZyYXDS00xBAgAEAqsguPe03+cYAAAAASUVORK5CYII=\",e.prototype.event_type=\"pan\",e.prototype.default_order=30,e.prototype.initialize=function(t,i){var n;return e.__super__.initialize.call(this,t,i),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 o.Model),n=this.get(\"plot\").get(\"renderers\"),n.push(this.get(\"overlay\")),this.get(\"plot\").set(\"renderers\",n)},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{dimensions:[\"width\",\"height\"],select_every_mousemove:!1})},e}(s.Model),e.exports={Model:n,View:r}},{\"../../renderer/overlay/box_selection\":122,\"./select_tool\":167,underscore:22}],161:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t(\"underscore\"),n=t(\"../../renderer/overlay/box_selection\"),s=t(\"./gesture_tool\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.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},e.prototype._pan=function(t){var e,i,n,r,o,s,a;return e=this.plot_view.canvas,i=[e.sx_to_vx(t.bokeh.sx),e.sy_to_vy(t.bokeh.sy)],r=this.plot_model.get(\"frame\"),n=this.mget(\"dimensions\"),o=this.model._get_dim_limits(this._baseboint,i,r,n),s=o[0],a=o[1],this.mget(\"overlay\").set(\"data\",{vxlim:s,vylim:a}),null},e.prototype._pan_end=function(t){var e,i,n,r,o,s,a;return e=this.plot_view.canvas,i=[e.sx_to_vx(t.bokeh.sx),e.sy_to_vy(t.bokeh.sy)],r=this.plot_model.get(\"frame\"),n=this.mget(\"dimensions\"),o=this.model._get_dim_limits(this._baseboint,i,r,n),s=o[0],a=o[1],this._update(s,a),this.mget(\"overlay\").set(\"data\",{}),this._baseboint=null,null},e.prototype._update=function(t,e){var i,n,r,o,s,a,l,u,c,h,p;c={},o=this.plot_view.frame.get(\"x_mappers\");for(r in o)n=o[r],s=n.v_map_from_target(t,!0),u=s[0],i=s[1],c[r]={start:u,end:i};h={},a=this.plot_view.frame.get(\"y_mappers\");for(r in a)n=a[r],l=n.v_map_from_target(e,!0),u=l[0],i=l[1],h[r]={start:u,end:i};return p={xrs:c,yrs:h},this.plot_view.update_range(p)},e}(s.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=o,e.prototype.type=\"BoxZoomTool\",e.prototype.tool_name=\"Box Zoom\",e.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=\",e.prototype.event_type=\"pan\",e.prototype.default_order=20,e.prototype.initialize=function(t,i){var r;return e.__super__.initialize.call(this,t,i),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 n.Model),r=this.get(\"plot\").get(\"renderers\"),r.push(this.get(\"overlay\")),this.get(\"plot\").set(\"renderers\",r)},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{dimensions:[\"width\",\"height\"]})},e}(s.Model),e.exports={Model:r,View:o}},{\"../../renderer/overlay/box_selection\":122,\"./gesture_tool\":162,underscore:22}],162:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t(\"underscore\"),n=t(\"../button_tool\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._clicked=function(){return this.model.set(\"active\",!0)},e}(n.ButtonView),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{event_type:this.event_type,default_order:this.default_order})},e}(n.Model),e.exports={Model:r,View:s,ButtonView:o}},{\"../button_tool\":158,underscore:22}],163:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t(\"underscore\"),o=t(\"../../renderer/overlay/poly_selection\"),s=t(\"./select_tool\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this.model,\"change:active\",this._active_change),this.data=null},e.prototype._active_change=function(){return this.mget(\"active\")?void 0:this._clear_overlay()},e.prototype._keyup=function(t){return 13===t.keyCode?this._clear_overlay():void 0},e.prototype._pan_start=function(t){var e,i,n;return e=this.plot_view.canvas,i=e.sx_to_vx(t.bokeh.sx),n=e.sy_to_vy(t.bokeh.sy),this.data={vx:[i],vy:[n]},null},e.prototype._pan=function(t){var e,i,n,r,o,s,l;return i=this.plot_view.canvas,s=i.sx_to_vx(t.bokeh.sx),l=i.sy_to_vy(t.bokeh.sy),this.data.vx.push(s),this.data.vy.push(l),r=this.mget(\"overlay\"),n={},n.vx=a.clone(this.data.vx),n.vy=a.clone(this.data.vy),r.set(\"data\",n),this.mget(\"select_every_mousemove\")?(e=null!=(o=t.srcEvent.shiftKey)?o:!1,this._select(this.data.vx,this.data.vy,!1,e)):void 0},e.prototype._pan_end=function(t){var e,i;return this._clear_overlay(),e=null!=(i=t.srcEvent.shiftKey)?i:!1,this._select(this.data.vx,this.data.vy,!0,e)},e.prototype._clear_overlay=function(){return this.mget(\"overlay\").set(\"data\",null)},e.prototype._select=function(t,e,i,n){var r,o,s,a,l,u,c;for(o={type:\"poly\",vx:t,vy:e},u=this.mget(\"renderers\"),s=0,a=u.length;a>s;s++)l=u[s],r=l.get(\"data_source\"),c=r.get(\"selection_manager\"),c.select(this,this.plot_view.renderers[l.id],o,i,n);return this._save_geometry(o,i,n),null},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=r,e.prototype.type=\"LassoSelectTool\",e.prototype.tool_name=\"Lasso Select\",e.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\",e.prototype.event_type=\"pan\",e.prototype.default_order=12,e.prototype.initialize=function(t,i){var n;return e.__super__.initialize.call(this,t,i),this.set(\"overlay\",new o.Model({line_width:2})),n=this.get(\"plot\").get(\"renderers\"),n.push(this.get(\"overlay\")),this.get(\"plot\").set(\"renderers\",n)},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{select_every_mousemove:!0})},e}(s.Model),e.exports={Model:n,View:r}},{\"../../renderer/overlay/poly_selection\":123,\"./select_tool\":167,underscore:22}],164:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./gesture_tool\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._pan_start=function(t){var e,i,n,r,o,s;return this.last_dx=0,this.last_dy=0,e=this.plot_view.canvas,i=this.plot_view.frame,o=e.sx_to_vx(t.bokeh.sx),s=e.sy_to_vy(t.bokeh.sy),i.contains(o,s)||(n=i.get(\"h_range\"),r=i.get(\"v_range\"),(o<n.get(\"start\")||o>n.get(\"end\"))&&(this.v_axis_only=!0),(s<r.get(\"start\")||s>r.get(\"end\"))&&(this.h_axis_only=!0)),this.plot_view.interactive_timestamp=Date.now()},e.prototype._pan=function(t){return this._update(t.deltaX,-t.deltaY),this.plot_view.interactive_timestamp=Date.now()},e.prototype._pan_end=function(t){return this.h_axis_only=!1,this.v_axis_only=!1},e.prototype._update=function(t,e){var i,n,r,o,a,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D,T,S,A;r=this.plot_view.frame,u=t-this.last_dx,c=e-this.last_dy,o=s.clone(r.get(\"h_range\")),x=o.get(\"start\")-u,w=o.get(\"end\")-u,T=s.clone(r.get(\"v_range\")),D=T.get(\"start\")-c,M=T.get(\"end\")-c,i=this.mget(\"dimensions\"),i.indexOf(\"width\")>-1&&!this.v_axis_only?(y=x,b=w,m=-u):(y=o.get(\"start\"),b=o.get(\"end\"),m=0),i.indexOf(\"height\")>-1&&!this.h_axis_only?(k=D,C=M,_=c):(k=T.get(\"start\"),C=T.get(\"end\"),_=0),this.last_dx=t,this.last_dy=e,S={},p=r.get(\"x_mappers\");for(l in p)a=p[l],d=a.v_map_from_target([y,b],!0),v=d[0],n=d[1],S[l]={start:v,end:n};A={},f=r.get(\"y_mappers\");for(l in f)a=f[l],g=a.v_map_from_target([k,C],!0),v=g[0],n=g[1],A[l]={start:v,end:n\n",
       "                };return h={xrs:S,yrs:A,sdx:m,sdy:_},this.plot_view.update_range(h),null},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=o,e.prototype.type=\"PanTool\",e.prototype.tool_name=\"Pan\",e.prototype.icon=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCRTI5MDhEODIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCRTI5MDhEOTIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkJFMjkwOEQ2MjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkJFMjkwOEQ3MjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+OXzPwwAAAKNJREFUeNrsVsEKgCAM3cyj0f8fuwT9XdEHrLyVIOKYY4kPPDim0+fenF+3HZi4nhFec+Rs4oCPAALwjDVUsKMWA6DNAFX6YXcMYIERdRWIYBzAZbKYGsSKex6mVUAK8Za0TphgoFTbpSvlx3/I0EQOILO2i/ibegLk/mgVONM4JvuBVizgkGH3XTGrR/xlV0ycbO8qCeMN54wdtVQwSTFwCzAATqEZUn8W8W4AAAAASUVORK5CYII=\",e.prototype.event_type=\"pan\",e.prototype.default_order=10,e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),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\"])},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{dimensions:[\"width\",\"height\"]})},e}(n.Model),e.exports={Model:r,View:o}},{\"./gesture_tool\":162,underscore:22}],165:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t(\"underscore\"),o=t(\"../../renderer/overlay/poly_selection\"),s=t(\"./select_tool\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this.model,\"change:active\",this._active_change),this.data=null},e.prototype._active_change=function(){return this.mget(\"active\")?void 0:this._clear_data()},e.prototype._keyup=function(t){return 13===t.keyCode?this._clear_data():void 0},e.prototype._doubletap=function(t){var e,i;return e=null!=(i=t.srcEvent.shiftKey)?i:!1,this._select(this.data.vx,this.data.vy,!0,e),this._clear_data()},e.prototype._clear_data=function(){return this.data=null,this.mget(\"overlay\").set(\"data\",null)},e.prototype._tap=function(t){var e,i,n,r,o;return e=this.plot_view.canvas,r=e.sx_to_vx(t.bokeh.sx),o=e.sy_to_vy(t.bokeh.sy),null==this.data?(this.data={vx:[r],vy:[o]},null):(this.data.vx.push(r),this.data.vy.push(o),n=this.mget(\"overlay\"),i={},i.vx=a.clone(this.data.vx),i.vy=a.clone(this.data.vy),n.set(\"data\",i))},e.prototype._select=function(t,e,i,n){var r,o,s,a,l,u,c;for(o={type:\"poly\",vx:t,vy:e},u=this.mget(\"renderers\"),s=0,a=u.length;a>s;s++)l=u[s],r=l.get(\"data_source\"),c=r.get(\"selection_manager\"),c.select(this,this.plot_view.renderers[l.id],o,i,n);return this._save_geometry(o,i,n),null},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=r,e.prototype.type=\"PolySelectTool\",e.prototype.tool_name=\"Poly Select\",e.prototype.icon=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAQCAYAAAAbBi9cAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAGdSURBVDiNjdO/axRBGMbxT8IiwSBBi4AiBBVRJE3UIqIIilrYLGuxMYo/AimsrNTCWkH/AbFR78Dc5dZiWW3SKQaVaKWlIFEiithooaiIZ7EbPM7b3D0wzLzzvvOdZ5iZviTNmnKN4gE2YSteYjW24A2+Yh/ux1G4uVij2cyXB0V8AYuYwBq8x5Ei/wEH8LNoHRVgWxyFr4v4RUvuScv4ESRpFhTQ/9SPmSTNdpbt1KZhXCsD7cZQj6AB7OqUCDCCTz2C3mF/maNnGOsRtB53y0BD/t1eN32T32pH0HY870ZI0mwMFZwvA73F+AqA4STNduCS3PlSpdbY0F4XFKAfJZA9mMO9OAonl+crtcZcpdaYP3ti4mqro0Py79AKOJqk2TwGMRVH4XTbHqtwpVJrVKv1ZGDZ0SIO4mGSZqNYh2m8wtM4Cr93MPur6E9jY7WenAvkz38pSbO9eIzrcRQe63TUFg3iDz7iIj73Yxa3i4LxOAovr0S4MzPbhzoOYy1GzkzGXwLcxC0sxFH4u4sTUyePN3EDKrXGAk4h/QvU5XGB9rRYawAAAABJRU5ErkJggg==\",e.prototype.event_type=\"tap\",e.prototype.default_order=11,e.prototype.initialize=function(t,i){var n;return e.__super__.initialize.call(this,t,i),this.set(\"overlay\",new o.Model),n=this.get(\"plot\").get(\"renderers\"),n.push(this.get(\"overlay\")),this.get(\"plot\").set(\"renderers\",n)},e}(s.Model),e.exports={Model:n,View:r}},{\"../../renderer/overlay/poly_selection\":123,\"./select_tool\":167,underscore:22}],166:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./gesture_tool\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.className=\"bk-resize-popup\",e.prototype.initialize=function(t){var i;return e.__super__.initialize.call(this,t),i=this.plot_view.$el.find(\"div.bk-canvas-wrapper\"),this.$el.appendTo(i),this.$el.hide(),this.active=!1,null},e.prototype.activate=function(){return this.active=!0,this.render(),null},e.prototype.deactivate=function(){return this.active=!1,this.render(),null},e.prototype.render=function(t){var e,i,n,r;return this.active?(e=this.plot_view.canvas,i=this.plot_view.frame,n=e.vx_to_sx(i.get(\"h_range\").get(\"end\")-40),r=e.vy_to_sy(i.get(\"v_range\").get(\"start\")+40),this.$el.attr(\"style\",\"position:absolute; top:\"+r+\"px; left:\"+n+\"px;\"),this.$el.show()):this.$el.hide(),this},e.prototype._pan_start=function(t){var e;return e=this.plot_view.canvas,this.ch=e.get(\"height\"),this.cw=e.get(\"width\"),this.plot_view.interactive_timestamp=Date.now(),null},e.prototype._pan=function(t){return this._update(t.deltaX,t.deltaY),this.plot_view.interactive_timestamp=Date.now(),null},e.prototype._update=function(t,e){var i;return this.plot_view.pause(),i=this.plot_view.canvas,i._set_dims([this.cw+t,this.ch+e]),this.plot_view.unpause(),null},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=o,e.prototype.type=\"ResizeTool\",e.prototype.tool_name=\"Resize\",e.prototype.icon=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBODVDNDBCQjIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBODVDNDBCQzIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjMyMUREOEQ4MjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkE4NUM0MEJBMjBCMzExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+nIbQ0AAAAIJJREFUeNpiXLhs5X8G7ICRgTYAq31MDIMEwBzyERoCyJhWAN2ej4MqRFiIjUMahczgSyMsNE4PxACBQZlrcAFsuYkcLECpQwZNiIw6ZNQhow4ZdcioQ0YdMuoQerRZkQE/vdqwgypqQD7+MIBuANn9f1CnEcbRXIMjd4zM0QCAAAMAbdAPQaze1JcAAAAASUVORK5CYII=\",e.prototype.event_type=\"pan\",e.prototype.default_order=40,e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{level:\"overlay\",data:{}})},e}(n.Model),e.exports={Model:r,View:o}},{\"./gesture_tool\":162,underscore:22}],167:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;s=t(\"underscore\"),a=t(\"../../common/logging\").logger,n=t(\"./gesture_tool\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._keyup=function(t){var e,i,n,r,o,s,a;if(27===t.keyCode){for(o=this.mget(\"renderers\"),s=[],i=0,n=o.length;n>i;i++)r=o[i],e=r.get(\"data_source\"),a=e.get(\"selection_manager\"),s.push(a.clear());return s}},e.prototype._save_geometry=function(t,e,i){var n,r,o,l,u,c,h,p;if(n=s.clone(t),h=this.plot_view.frame.get(\"x_mappers\")[\"default\"],p=this.plot_view.frame.get(\"y_mappers\")[\"default\"],\"point\"===n.type)n.x=h.map_from_target(n.vx),n.y=p.map_from_target(n.vy);else if(\"rect\"===n.type)n.x0=h.map_from_target(n.vx0),n.y0=p.map_from_target(n.vy0),n.x1=h.map_from_target(n.vx1),n.y1=p.map_from_target(n.vy1);else if(\"poly\"===n.type)for(n.x=new Array(n.vx.length),n.y=new Array(n.vy.length),o=l=0,u=n.vx.length;u>=0?u>l:l>u;o=u>=0?++l:--l)n.x[o]=h.map_from_target(n.vx[o]),n.y[o]=p.map_from_target(n.vy[o]);else a.debug(\"Unrecognized selection geometry type: '\"+n.type+\"'\");return e&&(c=this.plot_model.get(\"tool_events\"),i?(r=c.get(\"geometries\"),r.push(n)):r=[n],c.set(\"geometries\",r),c.save()),null},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.initialize=function(t,i){var n,r,o,s,l,u;for(e.__super__.initialize.call(this,t,i),s=this.get(\"names\"),u=this.get(\"renderers\"),0===u.length&&(n=this.get(\"plot\").get(\"renderers\"),u=function(){var t,e,i;for(i=[],t=0,e=n.length;e>t;t++)l=n[t],\"GlyphRenderer\"===l.type&&i.push(l);return i}()),s.length>0&&(u=function(){var t,e,i;for(i=[],t=0,e=u.length;e>t;t++)l=u[t],s.indexOf(l.get(\"name\"))>=0&&i.push(l);return i}()),this.set(\"renderers\",u),a.debug(\"setting \"+u.length+\" renderers for \"+this.type+\" \"+this.id),r=0,o=u.length;o>r;r++)l=u[r],a.debug(\" - \"+l.type+\" \"+l.id);return null},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{renderers:[],names:[],multi_select_modifier:\"shift\"})},e}(n.Model),e.exports={Model:r,View:o}},{\"../../common/logging\":48,\"./gesture_tool\":162,underscore:22}],168:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./select_tool\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._tap=function(t){var e,i,n,r,o;return i=this.plot_view.canvas,r=i.sx_to_vx(t.bokeh.sx),o=i.sy_to_vy(t.bokeh.sy),e=null!=(n=t.srcEvent.shiftKey)?n:!1,this._select(r,o,!0,e)},e.prototype._select=function(t,e,i,n){var r,o,s,a,l,u,c,h;for(s={type:\"point\",vx:t,vy:e},r=this.mget(\"action\"),c=this.mget(\"renderers\"),a=0,l=c.length;l>a;a++)u=c[a],o=u.get(\"data_source\"),h=o.get(\"selection_manager\"),h.select(this,this.plot_view.renderers[u.id],s,i,n),null!=r&&r.execute(o);return this._save_geometry(s,i,n),null},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=o,e.prototype.type=\"TapTool\",e.prototype.tool_name=\"Tap\",e.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==\",e.prototype.event_type=\"tap\",e.prototype.default_order=10,e}(n.Model),e.exports={Model:r,View:o}},{\"./select_tool\":167,underscore:22}],169:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./gesture_tool\"),(\"undefined\"==typeof a||null===a)&&(a={}),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.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)},e.prototype._scroll=function(t){var e,i,n,r,o,s,a,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D,T,S,A,P,I;o=this.plot_model.get(\"frame\"),a=o.get(\"h_range\"),x=o.get(\"v_range\"),k=this.plot_view.canvas.sx_to_vx(t.bokeh.sx),D=this.plot_view.canvas.sy_to_vy(t.bokeh.sy),(k<a.get(\"start\")||k>a.get(\"end\"))&&(w=!0),(D<x.get(\"start\")||D>x.get(\"end\"))&&(s=!0),u=navigator.userAgent.toLowerCase().indexOf(\"firefox\")>-1?20:1,e=null!=(null!=(h=t.originalEvent)?h.deltaY:void 0)?-t.originalEvent.deltaY*u:t.bokeh.delta,r=this.mget(\"speed\")*e,r>.9?r=.9:-.9>r&&(r=-.9),M=a.get(\"start\"),C=a.get(\"end\"),S=x.get(\"start\"),T=x.get(\"end\"),i=this.mget(\"dimensions\"),i.indexOf(\"width\")>-1&&!w?(_=M-(M-k)*r,v=C-(C-k)*r):(_=M,v=C),i.indexOf(\"height\")>-1&&!s?(y=S-(S-D)*r,b=T-(T-D)*r):(y=S,b=T),A={},p=o.get(\"x_mappers\");for(c in p)l=p[c],d=l.v_map_from_target([_,v],!0),m=d[0],n=d[1],A[c]={start:m,end:n};P={},f=o.get(\"y_mappers\");for(c in f)l=f[c],g=l.v_map_from_target([y,b],!0),m=g[0],n=g[1],P[c]={start:m,end:n};return I={xrs:A,yrs:P,factor:r},this.plot_view.update_range(I),this.plot_view.interactive_timestamp=Date.now(),null},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=o,e.prototype.type=\"WheelZoomTool\",e.prototype.tool_name=\"Wheel Zoom\",e.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==\",e.prototype.event_type=\"ontouchstart\"in a?\"pinch\":\"scroll\",e.prototype.default_order=10,e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),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\"])},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{dimensions:[\"width\",\"height\"],speed:1/600})},e}(n.Model),e.exports={Model:r,View:o}},{\"./gesture_tool\":162,underscore:22}],170:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t(\"underscore\"),s=t(\"../../renderer/annotation/span\"),o=t(\"./inspect_tool\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._move=function(t){var e,i,n,r,o,s,a,l,u,c;if(this.mget(\"active\")){for(n=this.plot_model.get(\"frame\"),e=this.plot_model.get(\"canvas\"),u=e.sx_to_vx(t.bokeh.sx),c=e.sy_to_vy(t.bokeh.sy),s=this.mget(\"dimensions\"),a=[],r=0,o=s.length;o>r;r++)i=s[r],l=this.mget(\"spans\")[i],a.push(n.contains(u,c)?\"width\"===i?l.set(\"location\",c):l.set(\"location\",u):l.unset(\"location\"));return a}},e.prototype._move_exit=function(t){var e,i,n,r,o,s;for(r=this.mget(\"dimensions\"),o=[],i=0,n=r.length;n>i;i++)e=r[i],s=this.mget(\"spans\")[e],o.push(s.unset(\"location\"));return o},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=r,e.prototype.type=\"CrosshairTool\",e.prototype.tool_name=\"Crosshair\",e.prototype.initialize=function(t,i){var n;return e.__super__.initialize.call(this,t,i),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 s.Model({dimension:\"width\"}),height:new s.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)},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{dimensions:[\"width\",\"height\"]})},e}(o.Model),e.exports={Model:n,View:r}},{\"../../renderer/annotation/span\":78,\"./inspect_tool\":172,underscore:22}],171:[function(t,e,i){var n,r,o,s,a,l,u,c,h,p=function(t,e){function i(){this.constructor=t}for(var n in e)d.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},d={}.hasOwnProperty;u=t(\"underscore\"),n=t(\"jquery\"),a=t(\"../../renderer/annotation/tooltip\"),l=t(\"../../util/util\"),s=t(\"./inspect_tool\"),h=t(\"../../common/hittest\"),c=function(t){var e,i,n,r,o;return\"#\"===t.substr(0,1)?t:(i=/(.*?)rgb\\((\\d+), (\\d+), (\\d+)\\)/.exec(t),r=parseInt(i[2]),n=parseInt(i[3]),e=parseInt(i[4]),o=e|n<<8|r<<16,i[1]+\"#\"+o.toString(16))},o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.bind_bokeh_events=function(){var t,e,i,n;for(n=this.mget(\"renderers\"),t=0,e=n.length;e>t;t++)i=n[t],this.listenTo(i.get(\"data_source\"),\"inspect\",this._update);return this.plot_view.canvas_view.canvas_wrapper.css(\"cursor\",\"crosshair\")},e.prototype._move=function(t){var e,i,n,r,o,s;if(this.mget(\"active\")){if(e=this.plot_view.canvas,o=e.sx_to_vx(t.bokeh.sx),s=e.sy_to_vy(t.bokeh.sy),this.plot_view.frame.contains(o,s))return this._inspect(o,s);i=this.mget(\"ttmodels\");for(n in i)r=i[n],r.clear()}},e.prototype._move_exit=function(){var t,e,i,n;t=this.mget(\"ttmodels\"),e=[];for(i in t)n=t[i],e.push(n.clear());return e},e.prototype._inspect=function(t,e,i){var n,r,o,s,a,l,u,c;for(n={type:\"point\",vx:t,vy:e},\"mouse\"===this.mget(\"mode\")?n.type=\"point\":(n.type=\"span\",n.direction=\"vline\"===this.mget(\"mode\")?\"h\":\"v\"),r=[],o=[],u=this.mget(\"renderers\"),s=0,a=u.length;a>s;s++)l=u[s],c=l.get(\"data_source\").get(\"selection_manager\"),c.inspect(this,this.plot_view.renderers[l.id],n,{geometry:n});null!=this.mget(\"callback\")&&this._emit_callback(n)},e.prototype._update=function(t,e,i,n,r){var o,s,a,l,u,c,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D,T,S,A,P,I,E,R,N,z,O,j,F,H,L,W,B,Y,$,V,U,q,G;if(m=r.geometry,W=null!=(C=this.mget(\"ttmodels\")[i.model.id])?C:null,null!=W&&(W.clear(),M=[t[\"1d\"].indices,t[\"2d\"].indices],v=M[0],y=M[1],t[\"0d\"].flag!==!1||0!==v.length||0!==y.length)){for(Y=m.vx,$=m.vy,o=this.plot_model.get(\"canvas\"),g=this.plot_model.get(\"frame\"),H=o.vx_to_sx(Y),L=o.vy_to_sy($),U=g.get(\"x_mappers\")[i.mget(\"x_range_name\")],G=g.get(\"y_mappers\")[i.mget(\"y_range_name\")],V=U.map_from_target(Y),q=G.map_from_target($),T=t[\"0d\"].indices,b=0,x=T.length;x>b;b++)_=T[b],c=i.glyph.x[_+1],p=i.glyph.y[_+1],\"interp\"===this.mget(\"line_policy\")?(S=i.glyph.get_interpolation_hit(_,m),c=S[0],p=S[1],z=U.map_to_target(c),O=G.map_to_target(p)):\"prev\"===this.mget(\"line_policy\")?(z=o.sx_to_vx(i.glyph.sx[_]),O=o.sy_to_vy(i.glyph.sy[_])):\"next\"===this.mget(\"line_policy\")?(z=o.sx_to_vx(i.glyph.sx[_+1]),O=o.sy_to_vy(i.glyph.sy[_+1])):\"nearest\"===this.mget(\"line_policy\")?(s=i.glyph.sx[_],a=i.glyph.sy[_],d=h.dist_2_pts(s,a,H,L),l=i.glyph.sx[_+1],u=i.glyph.sy[_+1],f=h.dist_2_pts(l,u,H,L),f>d?(A=[s,a],j=A[0],F=A[1]):(P=[l,u],j=P[0],F=P[1],_+=1),c=i.glyph.x[_],p=i.glyph.y[_],z=o.sx_to_vx(j),O=o.sy_to_vy(F)):(I=[Y,$],z=I[0],O=I[1]),B={index:_,x:V,y:q,vx:Y,vy:$,sx:H,sy:L,data_x:c,data_y:p,rx:z,ry:O},W.add(z,O,this._render_tooltips(n,_,B));for(E=t[\"1d\"].indices,w=0,k=E.length;k>w;w++)_=E[w],c=null!=(R=i.glyph.x)?R[_]:void 0,p=null!=(N=i.glyph.y)?N[_]:void 0,\"snap_to_data\"===this.mget(\"point_policy\")?(z=o.sx_to_vx(i.glyph.scx(_)),O=o.sy_to_vy(i.glyph.scy(_))):(D=[Y,$],z=D[0],O=D[1]),B={index:_,x:V,y:q,vx:Y,vy:$,sx:H,sy:L,data_x:c,data_y:p},W.add(z,O,this._render_tooltips(n,_,B));return null}},e.prototype._emit_callback=function(t){var e,i,n,r,o,s;r=this.mget(\"renderers\")[0],n=this.plot_view.renderers[r.id].hit_test(t),e=this.plot_model.get(\"canvas\"),i=this.plot_model.get(\"frame\"),t.sx=e.vx_to_sx(t.vx),t.sy=e.vy_to_sy(t.vy),o=i.get(\"x_mappers\")[r.get(\"x_range_name\")],s=i.get(\"y_mappers\")[r.get(\"y_range_name\")],t.x=o.map_from_target(t.vx),t.y=s.map_from_target(t.vy),this.mget(\"callback\").execute(this.model,{index:n,geometry:t})},e.prototype._render_tooltips=function(t,e,i){var r,o,s,a,h,p,d,f,g,m,_,v,y,b,w,x,k,C;if(k=this.mget(\"tooltips\"),u.isString(k))return n(\"<div>\").html(l.replace_placeholders(k,t,e,i));for(w=n(\"<table></table>\"),h=0,d=k.length;d>h;h++){if(m=k[h],p=m[0],C=m[1],v=n(\"<tr></tr>\"),v.append(n(\"<td class='bk-tooltip-row-label'>\"+p+\": </td>\")),x=n(\"<td class='bk-tooltip-row-value'></td>\"),C.indexOf(\"$color\")>=0){if(_=C.match(/\\$color(\\[.*\\])?:(\\w*)/),f=_[0],g=_[1],r=_[2],s=t.get_column(r),null==s){y=n(\"<span>\"+r+\" unknown</span>\"),x.append(y);continue}if(a=(null!=g?g.indexOf(\"hex\"):void 0)>=0,b=(null!=g?g.indexOf(\"swatch\"):void 0)>=0,o=s[e],null==o){y=n(\"<span>(null)</span>\"),x.append(y);continue}a&&(o=c(o)),y=n(\"<span>\"+o+\"</span>\"),x.append(y),b&&(y=n(\"<span class='bk-tooltip-color-block'> </span>\"),y.css({backgroundColor:o})),x.append(y)}else C=C.replace(\"$~\",\"$data_\"),C=l.replace_placeholders(C,t,e,i),x.append(n(\"<span>\").text(C));v.append(x),w.append(v)}return w},e}(s.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}var i;return p(e,t),e.prototype.default_view=o,e.prototype.type=\"HoverTool\",e.prototype.tool_name=\"Hover Tool\",i=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA8ElEQVQ4T42T0Q2CMBCGaQjPxgmMG/jelIQN3ECZQEfADRwBJzBuQCC81wlkBHxvqP8lmhTsUfpSWvp/vfvvKiJn1HVdpml6dPdC38I90DSNxVobYzKMPiSm/z5AZK3t4zjOpJQ6BPECfiKAcqRUzkFmASQEhHzJOUgQ8BWyviwFsL4sBnC+LAE84YMWQnSAVCixdkvMAiB6Q7TCfJtrLq4PHkmSnHHbi0LHvOYa6w/g3kitjSgOYFyUUoWvlCPA9C1gvQfgDmiHNLZBgO8A3geZt+G6chQBA7hi/0QVQBrZ9EwQ0LbtbhgGghQAVFPAB25HmRH8b2/nAAAAAElFTkSuQmCC\",e.prototype.initialize=function(t,i){var n,r,o,s,l,c,h;for(e.__super__.initialize.call(this,t,i),h={},l=this.get(\"plot\").get(\"renderers\"),s=this.get(\"renderers\"),n=0,r=s.length;r>n;n++)o=s[n],c=new a.Model,c.set(\"custom\",u.isString(this.get(\"tooltips\"))),h[o.id]=c,l.push(c);this.set(\"ttmodels\",h),this.get(\"plot\").set(\"renderers\",l)},e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{tooltips:[[\"index\",\"$index\"],[\"data (x, y)\",\"($x, $y)\"],[\"canvas (x, y)\",\"($sx, $sy)\"]],mode:\"mouse\",point_policy:\"snap_to_data\",line_policy:\"prev\"})},e}(s.Model),e.exports={Model:r,View:o}},{\"../../common/hittest\":45,\"../../renderer/annotation/tooltip\":79,\"../../util/util\":177,\"./inspect_tool\":172,jquery:17,underscore:22}],172:[function(t,e,i){var n,r,o,s,a,l,u,c,h=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;l=t(\"underscore\"),n=t(\"backbone\"),c=t(\"../../common/logging\").logger,a=t(\"../tool\"),u=t(\"./inspect_tool_list_item_template\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.className=\"bk-toolbar-inspector\",e.prototype.template=u,e.prototype.events={'click [type=\"checkbox\"]':\"_clicked\"},e.prototype.initialize=function(t){return this.listenTo(this.model,\"change:active\",this.render),this.render()},e.prototype.render=function(){return this.$el.html(this.template(this.model.attrs_and_props())),this},e.prototype._clicked=function(t){var e;return e=this.model.get(\"active\"),this.model.set(\"active\",!e)},e}(n.View),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e}(a.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.event_type=\"move\",e.prototype.initialize=function(t,i){var n,r,o,s,a,l,u;for(e.__super__.initialize.call(this,t,i),s=this.get(\"names\"),l=this.get(\"renderers\"),0===l.length&&(n=this.get(\"plot\").get(\"renderers\"),l=function(){var t,e,i;for(i=[],t=0,e=n.length;e>t;t++)a=n[t],\"GlyphRenderer\"===a.type&&i.push(a);return i}()),s.length>0&&(l=function(){var t,e,i;for(i=[],t=0,e=l.length;e>t;t++)a=l[t],s.indexOf(a.get(\"name\"))>=0&&i.push(a);return i}()),this.set(\"renderers\",l),c.debug(\"setting \"+l.length+\" renderers for \"+this.type+\" \"+this.id),u=[],r=0,o=l.length;o>r;r++)a=l[r],u.push(c.debug(\" - \"+a.type+\" \"+a.id));return u},e.prototype.bind_bokeh_events=function(){return e.__super__.bind_bokeh_events.call(this),this.listenTo(events,\"move\",this._inspect)},e.prototype._inspect=function(t,e,i){},e.prototype._exit_inner=function(){},e.prototype._exit_outer=function(){},e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{renderers:[],names:[],inner_only:!0,active:!0,event_type:\"move\"})},e}(a.Model),e.exports={Model:r,View:s,ListItemView:o}},{\"../../common/logging\":48,\"../tool\":174,\"./inspect_tool_list_item_template\":173,backbone:1,underscore:22}],173:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&&t.ecoSafe?t:\"undefined\"!=typeof t&&null!=t?o(t):\"\"},r=t.safe,o=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;(\"undefined\"==typeof t||null==t)&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e},o||(o=t.escape=function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}),function(){(function(){i.push('<input type=\"checkbox\" '),this.active&&i.push(\"checked\"),i.push(\">\"),i.push(n(this.tool_name)),i.push(\"</input>\\n\")}).call(this)}.call(t),t.safe=r,t.escape=o,i.join(\"\")}},{}],174:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;a=t(\"underscore\"),n=t(\"../common/has_properties\"),l=t(\"../common/logging\").logger,r=t(\"../common/plot_widget\"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,\"change:active\",function(t){return function(){return t.mget(\"active\")?t.activate():t.deactivate()}}(this))},e.prototype.activate=function(){},e.prototype.deactivate=function(){},e}(r),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._check_dims=function(t,e){var i,n,r;return n=[!1,!1],r=n[0],i=n[1],0===t.length?l.warn(e+\" given empty dimensions\"):1===t.length?\"width\"!==t[0]&&\"height\"!==t[0]&&l.warn(e+\" given unrecognized dimensions: \"+t):2===t.length?(t.indexOf(\"width\")<0||t.indexOf(\"height\")<0)&&l.warn(e+\" given unrecognized dimensions: \"+t):l.warn(e+\" given more than two dimensions: \"+t),t.indexOf(\"width\")>=0&&(r=!0),t.indexOf(\"height\")>=0&&(i=!0),[r,i]},e.prototype._get_dim_tooltip=function(t,e){var i,n;return n=e[0],i=e[1],n&&!i?t+\" (x-axis)\":i&&!n?t+\" (y-axis)\":t},e.prototype._get_dim_limits=function(t,e,i,n){var r,o,s,l,u,c,h,p;return s=t[0],c=t[1],l=e[0],h=e[1],r=i.get(\"h_range\"),n.indexOf(\"width\")>=0?(u=[a.min([s,l]),a.max([s,l])],u=[a.max([u[0],r.get(\"min\")]),a.min([u[1],r.get(\"max\")])]):u=[r.get(\"min\"),r.get(\"max\")],o=i.get(\"v_range\"),n.indexOf(\"height\")>=0?(p=[a.min([c,h]),a.max([c,h])],p=[a.max([p[0],o.get(\"min\")]),a.min([p[1],o.get(\"max\")])]):p=[o.get(\"min\"),o.get(\"max\")],[u,p]},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{tool_name:this.tool_name,level:\"overlay\"})},e}(n),e.exports={Model:o,View:s}},{\"../common/has_properties\":44,\"../common/logging\":48,\"../common/plot_widget\":54,underscore:22}],175:[function(t,e,i){var n,r;r=function(t,e,i,n,r,o,s,a){var l,u,c,h,p,d,f,g,m,_,v,y;return l=a*r,u=-s*o,c=s*r,h=a*o,d=.5*(n-i),p=8/3*Math.sin(.5*d)*Math.sin(.5*d)/Math.sin(d),f=t+Math.cos(i)-p*Math.sin(i),_=e+Math.sin(i)+p*Math.cos(i),m=t+Math.cos(n),y=e+Math.sin(n),g=m+p*Math.sin(n),v=y-p*Math.cos(n),[l*f+u*_,c*f+h*_,l*g+u*v,c*g+h*v,l*m+u*y,c*m+h*y]},n=function(t,e,i,n,o,s,a,l,u){var c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D,T,S,A,P,I,E,R,N,z,O,j,F;return T=o*(Math.PI/180),D=Math.sin(T),f=Math.cos(T),w=Math.abs(i),x=Math.abs(n),v=f*(t-l)*.5+D*(e-u)*.5,y=f*(e-u)*.5-D*(t-l)*.5,_=v*v/(w*w)+y*y/(x*x),_>1&&(_=Math.sqrt(_),w*=_,x*=_),c=f/w,h=D/w,p=-D/x,d=f/x,R=c*t+h*e,O=p*t+d*e,N=c*l+h*u,j=p*l+d*u,g=(N-R)*(N-R)+(j-O)*(j-O),M=1/g-.25,0>M&&(M=0),C=Math.sqrt(M),a===s&&(C=-C),z=.5*(R+N)-C*(j-O),F=.5*(O+j)+C*(N-R),S=Math.atan2(O-F,R-z),A=Math.atan2(j-F,N-z),E=A-S,0>E&&1===a?E+=2*Math.PI:E>0&&0===a&&(E-=2*Math.PI),k=Math.ceil(Math.abs(E/(.5*Math.PI+.001))),b=function(){var t,e,i;for(i=[],m=t=0,e=k;e>=0?e>t:t>e;m=e>=0?++t:--t)P=S+m*E/k,\n",
       "                I=S+(m+1)*E/k,i.push(r(z,F,P,I,w,x,D,f));return i}()},e.exports={arc_to_bezier:n,segment_to_bezier:r}},{}],176:[function(t,e,i){var n,r,o;r=t(\"underscore\"),n=t(\"jquery\"),o=function(t,e){var i,r;return i=function(i){return function(){return n.contains(document.documentElement,t)?(clearInterval(r),e()):void 0}}(this),r=setInterval(i,50)},e.exports={waitForElement:o}},{jquery:17,underscore:22}],177:[function(t,e,i){var n,r,o,s,a;o=t(\"underscore\"),r=t(\"sprintf\"),n=t(\"../../vendor/numeral.js-1.5.3/numeral.js\"),s=function(t){var e;return o.isNumber(t)?(e=function(){switch(!1){case Math.floor(t)!==t:return\"%d\";case!(Math.abs(t)>.1&&Math.abs(t)<1e3):return\"%0.3f\";default:return\"%0.3e\"}}(),r.sprintf(e,t)):\"\"+t},a=function(t,e,i,r){return null==r&&(r={}),t=t.replace(/(^|[^\\$])\\$(\\w+)/g,function(t){return function(t,e,i){return e+\"@$\"+i}}(this)),t=t.replace(/(^|[^@])@(?:(\\$?\\w+)|{([^{}]+)})(?:{([^{}]+)})?/g,function(t){return function(t,a,l,u,c){var h,p,d;return l=null!=u?u:l,d=\"$\"===l[0]?r[l.substring(1)]:null!=(h=e.get_column(l))?h[i]:void 0,p=null==d?\"???\":null!=c?n.format(d,c):s(d),\"\"+a+o.escape(p)}}(this))},e.exports={replace_placeholders:a}},{\"../../vendor/numeral.js-1.5.3/numeral.js\":230,sprintf:20,underscore:22}],178:[function(t,e,i){(function(i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t(\"underscore\"),n=null!=i._bokehTest?void 0:t(\"jquery-ui/autocomplete\"),s=t(\"./text_input\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t;return e.__super__.render.call(this),t=this.$el.find(\"input\"),t.autocomplete({source:this.mget(\"completions\")}),t.autocomplete(\"widget\").addClass(\"bk-autocomplete-input\"),this},e}(s.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type=\"AutocompleteInput\",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{completions:[]})},e}(s.Model),e.exports={View:o,Model:r}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"./text_input\":215,\"jquery-ui/autocomplete\":4,underscore:22}],179:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;a=t(\"underscore\"),l=t(\"../common/build_views\"),o=t(\"../common/continuum_view\"),s=t(\"../common/has_parent\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tagName=\"button\",e.prototype.events={click:\"change_input\"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.render(),this.listenTo(this.model,\"change\",this.render)},e.prototype.render=function(){var t,e,i,n,r;if(t=this.mget(\"icon\"),null!=t){l(this.views,[t]),n=this.views;for(e in n)c.call(n,e)&&(r=n[e],r.$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\"),i=this.mget(\"label\"),null!=t&&(this.$el.append(this.views[t.id].$el),i=\" \"+i),this.$el.append(document.createTextNode(i)),this},e.prototype.change_input=function(){var t;return this.mset(\"clicks\",this.mget(\"clicks\")+1),this.model.save(),null!=(t=this.mget(\"callback\"))?t.execute(this.model):void 0},e}(o),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type=\"Button\",e.prototype.default_view=r,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{clicks:0,label:\"Button\",icon:null,type:\"default\",disabled:!1})},e}(s),e.exports={Model:n,View:r}},{\"../common/build_views\":31,\"../common/continuum_view\":38,\"../common/has_parent\":43,underscore:22}],180:[function(t,e,i){(function(i){var n,r,o,s,a,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D,T,S,A=function(t,e){function i(){this.constructor=t}for(var n in e)P.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},P={}.hasOwnProperty;S=t(\"underscore\"),n=t(\"jquery\"),null!=i._bokehTest?(r=void 0,o=void 0):(r=t(\"jquery-ui/autocomplete\"),o=t(\"jquery-ui/spinner\")),c=t(\"../common/continuum_view\"),d=t(\"../common/has_properties\"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.editorDefaults={},e.prototype.defaults=function(){return S.extend({},e.__super__.defaults.call(this),this.editorDefaults)},e}(d),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.tagName=\"div\",e.prototype.className=\"bk-cell-editor\",e.prototype.input=null,e.prototype.emptyValue=null,e.prototype.defaultValue=null,e.prototype.initialize=function(t){return e.__super__.initialize.call(this,{}),this.args=t,this.model=this.args.column.editor,this.render()},e.prototype.render=function(){return this.$el.appendTo(this.args.container),this.$input=n(this.input),this.$el.append(this.$input),this.renderEditor(),this.disableNavigation(),this},e.prototype.renderEditor=function(){},e.prototype.disableNavigation=function(){return this.$input.keydown(function(t){return function(t){var e;switch(e=function(){return t.stopImmediatePropagation()},t.keyCode){case n.ui.keyCode.LEFT:return e();case n.ui.keyCode.RIGHT:return e();case n.ui.keyCode.UP:return e();case n.ui.keyCode.DOWN:return e();case n.ui.keyCode.PAGE_UP:return e();case n.ui.keyCode.PAGE_DOWN:return e()}}}(this))},e.prototype.destroy=function(){return this.remove()},e.prototype.focus=function(){return this.$input.focus()},e.prototype.show=function(){},e.prototype.hide=function(){},e.prototype.position=function(){},e.prototype.getValue=function(){return this.$input.val()},e.prototype.setValue=function(t){return this.$input.val(t)},e.prototype.serializeValue=function(){return this.getValue()},e.prototype.isValueChanged=function(){return!(\"\"===this.getValue()&&null==this.defaultValue)&&this.getValue()!==this.defaultValue},e.prototype.applyValue=function(t,e){return this.args.grid.getData().setField(t.index,this.args.column.field,e)},e.prototype.loadValue=function(t){var e;return e=t[this.args.column.field],this.defaultValue=null!=e?e:this.emptyValue,this.setValue(this.defaultValue)},e.prototype.validateValue=function(t){var e;return this.args.column.validator&&(e=this.args.column.validator(t),!e.valid)?e:{valid:!0,msg:null}},e.prototype.validate=function(){return this.validateValue(this.getValue())},e}(c),k=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.emptyValue=\"\",e.prototype.input='<input type=\"text\" />',e.prototype.renderEditor=function(){var t;return t=this.model.get(\"completions\"),S.isEmpty(t)||(this.$input.autocomplete({source:t}),this.$input.autocomplete(\"widget\").addClass(\"bk-cell-editor-completion\")),this.$input.focus().select()},e.prototype.loadValue=function(t){return e.__super__.loadValue.call(this,t),this.$input[0].defaultValue=this.defaultValue,this.$input.select()},e}(a),x=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type=\"StringEditor\",e.prototype.default_view=k,e.prototype.editorDefaults={completions:[]},e}(s),M=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e}(a),C=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type=\"TextEditor\",e.prototype.default_view=M,e}(s),w=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.input=\"<select />\",e.prototype.renderEditor=function(){var t,e,i,r;for(r=this.model.get(\"options\"),t=0,e=r.length;e>t;t++)i=r[t],this.$input.append(n(\"<option>\").attr({value:i}).text(i));return this.focus()},e.prototype.loadValue=function(t){return e.__super__.loadValue.call(this,t),this.$input.select()},e}(a),b=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type=\"SelectEditor\",e.prototype.default_view=w,e.prototype.editorDefaults={options:[]},e}(s),y=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e}(a),v=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type=\"PercentEditor\",e.prototype.default_view=y,e}(s),u=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.input='<input type=\"checkbox\" value=\"true\" />',e.prototype.renderEditor=function(){return this.focus()},e.prototype.loadValue=function(t){return this.defaultValue=!!t[this.args.column.field],this.$input.prop(\"checked\",this.defaultValue)},e.prototype.serializeValue=function(){return this.$input.prop(\"checked\")},e}(a),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type=\"CheckboxEditor\",e.prototype.default_view=u,e}(s),g=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.input='<input type=\"text\" />',e.prototype.renderEditor=function(){return this.$input.spinner({step:this.model.get(\"step\")}),this.$input.focus().select()},e.prototype.remove=function(){return this.$input.spinner(\"destroy\"),e.__super__.remove.call(this)},e.prototype.serializeValue=function(){return parseInt(this.getValue(),10)||0},e.prototype.loadValue=function(t){return e.__super__.loadValue.call(this,t),this.$input[0].defaultValue=this.defaultValue,this.$input.select()},e.prototype.validateValue=function(t){return isNaN(t)?{valid:!1,msg:\"Please enter a valid integer\"}:e.__super__.validateValue.call(this,t)},e}(a),f=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type=\"IntEditor\",e.prototype.default_view=g,e.prototype.editorDefaults={step:1},e}(s),_=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.input='<input type=\"text\" />',e.prototype.renderEditor=function(){return this.$input.spinner({step:this.model.get(\"step\")}),this.$input.focus().select()},e.prototype.remove=function(){return this.$input.spinner(\"destroy\"),e.__super__.remove.call(this)},e.prototype.serializeValue=function(){return parseFloat(this.getValue())||0},e.prototype.loadValue=function(t){return e.__super__.loadValue.call(this,t),this.$input[0].defaultValue=this.defaultValue,this.$input.select()},e.prototype.validateValue=function(t){return isNaN(t)?{valid:!1,msg:\"Please enter a valid number\"}:e.__super__.validateValue.call(this,t)},e}(a),m=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type=\"NumberEditor\",e.prototype.default_view=_,e.prototype.editorDefaults={step:.01},e}(s),T=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e}(a),D=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type=\"TimeEditor\",e.prototype.default_view=T,e}(s),p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.emptyValue=new Date,e.prototype.input='<input type=\"text\" />',e.prototype.renderEditor=function(){return this.calendarOpen=!1,this.$input.datepicker({showOn:\"button\",buttonImageOnly:!0,beforeShow:function(t){return function(){return t.calendarOpen=!0}}(this),onClose:function(t){return function(){return t.calendarOpen=!1}}(this)}),this.$input.siblings(\".bk-ui-datepicker-trigger\").css({\"vertical-align\":\"middle\"}),this.$input.width(this.$input.width()-26),this.$input.focus().select()},e.prototype.destroy=function(){return n.datepicker.dpDiv.stop(!0,!0),this.$input.datepicker(\"hide\"),this.$input.datepicker(\"destroy\"),e.__super__.destroy.call(this)},e.prototype.show=function(){return this.calendarOpen&&n.datepicker.dpDiv.stop(!0,!0).show(),e.__super__.show.call(this)},e.prototype.hide=function(){return this.calendarOpen&&n.datepicker.dpDiv.stop(!0,!0).hide(),e.__super__.hide.call(this)},e.prototype.position=function(t){return this.calendarOpen&&n.datepicker.dpDiv.css({top:t.top+30,left:t.left}),e.__super__.position.call(this)},e.prototype.getValue=function(){return this.$input.datepicker(\"getDate\").getTime()},e.prototype.setValue=function(t){return this.$input.datepicker(\"setDate\",new Date(t))},e}(a),h=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type=\"DateEditor\",e.prototype.default_view=p,e}(s),e.exports={String:{Model:x,View:k},Text:{Model:C,View:M},Select:{Model:b,View:w},Percent:{Model:v,View:y},Checkbox:{Model:l,View:u},Int:{Model:f,View:g},Number:{Model:m,View:_},Time:{Model:D,View:T},Date:{Model:h,View:p}}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../common/continuum_view\":38,\"../common/has_properties\":44,jquery:17,\"jquery-ui/autocomplete\":4,\"jquery-ui/spinner\":15,underscore:22}],181:[function(t,e,i){var n,r,o,s,a,l,u,c,h,p=function(t,e){function i(){this.constructor=t}for(var n in e)d.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},d={}.hasOwnProperty;h=t(\"underscore\"),n=t(\"jquery\"),u=t(\"../../vendor/numeral.js-1.5.3/numeral.js\"),a=t(\"../common/has_properties\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.formatterDefaults={},e.prototype.format=function(t,e,i,n,r){return null===i?\"\":(i+\"\").replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\")},e.prototype.defaults=function(){return h.extend({},e.__super__.defaults.call(this),this.formatterDefaults)},e}(a),c=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type=\"StringFormatter\",e.prototype.formatterDefaults={font_style:null,text_align:null,text_color:null},e.prototype.format=function(t,i,r,o,s){var a,l,u,c;if(l=e.__super__.format.call(this,t,i,r,o,s),a=this.get(\"font_style\"),u=this.get(\"text_align\"),c=this.get(\"text_color\"),null!=a||null!=u||null!=c){switch(l=n(\"<span>\"+l+\"</span>\"),a){case\"bold\":l=l.css(\"font-weight\",\"bold\");break;case\"italic\":l=l.css(\"font-style\",\"italic\")}null!=u&&(l=l.css(\"text-align\",u)),null!=c&&(l=l.css(\"color\",c)),l=l.prop(\"outerHTML\")}return l},e}(o),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type=\"NumberFormatter\",e.prototype.formatterDefaults={font_style:null,text_align:null,text_color:null,format:\"0,0\",language:\"en\",rounding:\"round\"},e.prototype.format=function(t,i,n,r,o){var s,a,l;return s=this.get(\"format\"),a=this.get(\"language\"),l=function(){switch(this.get(\"rounding\")){case\"round\":case\"nearest\":return Math.round;case\"floor\":case\"rounddown\":return Math.floor;case\"ceil\":case\"roundup\":return Math.ceil}}.call(this),n=u.format(n,s,a,l),e.__super__.format.call(this,t,i,n,r,o)},e}(c),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type=\"BooleanFormatter\",e.prototype.formatterDefaults={icon:\"check\"},e.prototype.format=function(t,e,i,r,o){return i?n(\"<i>\").addClass(this.get(\"icon\")).html():\"\"},e}(o),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type=\"DateFormatter\",e.prototype.formatterDefaults={format:\"yy M d\"},e.prototype.getFormat=function(){var t,e;return t=this.get(\"format\"),e=function(){switch(t){case\"ATOM\":case\"W3C\":case\"RFC-3339\":case\"ISO-8601\":return\"ISO-8601\";case\"COOKIE\":return\"COOKIE\";case\"RFC-850\":return\"RFC-850\";case\"RFC-1036\":return\"RFC-1036\";case\"RFC-1123\":return\"RFC-1123\";case\"RFC-2822\":return\"RFC-2822\";case\"RSS\":case\"RFC-822\":return\"RFC-822\";case\"TICKS\":return\"TICKS\";case\"TIMESTAMP\":return\"TIMESTAMP\";default:return null}}(),null!=e?n.datepicker[e]:t},e.prototype.format=function(t,i,r,o,s){var a;return r=h.isString(r)?parseInt(r,10):r,a=n.datepicker.formatDate(this.getFormat(),new Date(r)),e.__super__.format.call(this,t,i,a,o,s)},e}(o),e.exports={String:{Model:c},Number:{Model:l},Boolean:{Model:r},Date:{Model:s}}},{\"../../vendor/numeral.js-1.5.3/numeral.js\":230,\"../common/has_properties\":44,jquery:17,underscore:22}],182:[function(t,e,i){(function(i){var n,r,o,s,a,l,u,c=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty,p=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};u=t(\"underscore\"),n=t(\"jquery\"),r=null!=i._bokehTest?void 0:t(\"bootstrap/button\"),a=t(\"../common/continuum_view\"),l=t(\"../common/has_parent\"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.tagName=\"div\",e.prototype.events={\"change input\":\"change_input\"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",this.render)},e.prototype.render=function(){var t,e,i,r,o,s,a,l;for(this.$el.empty(),this.$el.addClass(\"bk-bs-btn-group\"),this.$el.attr(\"data-bk-bs-toggle\",\"buttons\"),i=this.mget(\"active\"),l=this.mget(\"labels\"),r=o=0,a=l.length;a>o;r=++o)s=l[r],t=n('<input type=\"checkbox\">').attr({value:\"\"+r}),p.call(i,r)>=0&&t.prop(\"checked\",!0),e=n('<label class=\"bk-bs-btn\"></label>'),e.text(s).prepend(t),e.addClass(\"bk-bs-btn-\"+this.mget(\"type\")),p.call(i,r)>=0&&e.addClass(\"bk-bs-active\"),this.$el.append(e);return this},e.prototype.change_input=function(){var t,e,i,n;return t=function(){var t,n,r,o;for(r=this.$(\"input\"),o=[],i=t=0,n=r.length;n>t;i=++t)e=r[i],e.checked&&o.push(i);return o}.call(this),this.mset(\"active\",t),this.model.save(),null!=(n=this.mget(\"callback\"))?n.execute(this.model):void 0},e}(a),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type=\"CheckboxButtonGroup\",e.prototype.default_view=s,e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{active:[],labels:[],type:\"default\",disabled:!1})},e}(l),e.exports={Model:o,View:s}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../common/continuum_view\":38,\"../common/has_parent\":43,\"bootstrap/button\":220,jquery:17,underscore:22}],183:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty,h=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};l=t(\"underscore\"),n=t(\"jquery\"),s=t(\"../common/continuum_view\"),a=t(\"../common/has_parent\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tagName=\"div\",e.prototype.events={\"change input\":\"change_input\"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",this.render)},e.prototype.render=function(){var t,e,i,r,o,s,a,l,u;for(this.$el.empty(),r=this.mget(\"active\"),u=this.mget(\"labels\"),o=s=0,l=u.length;l>s;o=++s)a=u[o],e=n('<input type=\"checkbox\">').attr({value:\"\"+o}),this.mget(\"disabled\")&&e.prop(\"disabled\",!0),h.call(r,o)>=0&&e.prop(\"checked\",!0),i=n(\"<label></label>\").text(a).prepend(e),this.mget(\"inline\")?(i.addClass(\"bk-bs-checkbox-inline\"),this.$el.append(i)):(t=n('<div class=\"bk-bs-checkbox\"></div>').append(i),this.$el.append(t));return this},e.prototype.change_input=function(){var t,e,i,n;return t=function(){var t,n,r,o;for(r=this.$(\"input\"),o=[],i=t=0,n=r.length;n>t;i=++t)e=r[i],e.checked&&o.push(i);return o}.call(this),this.mset(\"active\",t),this.model.save(),null!=(n=this.mget(\"callback\"))?n.execute(this.model):void 0},e}(s),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type=\"CheckboxGroup\",e.prototype.default_view=o,e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{active:[],labels:[],inline:!1,disabled:!1})},e}(a),e.exports={Model:r,View:o}},{\"../common/continuum_view\":38,\"../common/has_parent\":43,jquery:17,underscore:22}],184:[function(t,e,i){(function(i){var n,r,o,s,a,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D,T,S,A,P,I,E=function(t,e){function i(){this.constructor=t}for(var n in e)R.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},R={}.hasOwnProperty,N=function(t,e){return function(){return t.apply(e,arguments)}};C=t(\"underscore\"),null!=i._bokehTest?(P=void 0,I=void 0):(P=t(\"jquery-ui/draggable\"),I=t(\"jquery-ui/droppable\")),M=t(\"../common/build_views\"),n=t(\"../common/close_wrapper\"),r=t(\"../common/collection\"),c=t(\"../common/continuum_view\"),y=t(\"../common/has_parent\"),b=t(\"../common/has_properties\"),A=t(\"./crossfilter_template\"),T=t(\"./crossfilter_column_template\"),S=t(\"./crossfilter_facet_template\"),p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return E(e,t),e.prototype.tag=\"div\",e.prototype.attributes={\"class\":\"bk-crossfilter\"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.listenTo(this.model,\"change:plot\",this.render_plot),this.render(),this.render_plot()},e.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),this},e.prototype.render=function(){var t;return null!=this.columnview&&this.columnview.$el.detach(),this.$el.empty(),t=A(),this.$el.html(t),this.filterview=new v({el:this.$(\".bk-filters\"),collection:this.model.columns,model:this.model}),this.facetsview=new _({el:this.$el,model:this.model}),this.plotattributeview=new w({el:this.$el,model:this.model}),this.columnview=new a({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},e}(c),h=function(t){function e(){return this._set_columns=N(this._set_columns,this),e.__super__.constructor.apply(this,arguments)}return E(e,t),e.prototype.default_view=p,e.prototype.type=\"CrossFilter\",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.columns=new o,this._set_columns(),this.listenTo(this,\"change:columns\",this._set_columns)},e.prototype._set_columns=function(){return this.columns.reset(this.get(\"columns\"))},e.prototype.defaults=function(){return C.extend({},e.__super__.defaults.call(this),{height:700,width:1300})},e}(y),d=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return E(e,t),e.prototype.model=h,e}(r),w=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return E(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this.model,\"change:plot_selector\",C.bind(this.render_selector,\"plot\")),this.listenTo(this.model,\"change:x_selector\",C.bind(this.render_selector,\"x\")),this.listenTo(this.model,\"change:y_selector\",C.bind(this.render_selector,\"y\")),this.listenTo(this.model,\"change:agg_selector\",C.bind(this.render_selector,\"agg\")),this.render_selector(\"plot\"),this.render_selector(\"x\"),this.render_selector(\"y\"),this.render_selector(\"agg\")},e.prototype.render_selector=function(t){var e,i;return i=this.$(\".bk-\"+t+\"-selector\").empty(),e=this.mget(t+\"_selector\"),this.plot_selector_view=new e.default_view({model:e}),i.append(this.plot_selector_view.$el)},e}(c),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return E(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.listenTo(this.collection,\"all\",this.render),this.render()},e.prototype.render=function(){return C.map(this.views,function(t){return t.$el.detach()}),M(this.views,this.collection.models),C.map(this.collection.models,function(t){return function(e){return t.$el.append(t.views[e.id].$el)}}(this)),this},e}(c),m=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return E(e,t),e.prototype.tagName=\"span\",e.prototype.attributes={\"class\":\"bk-facet-label\"},e.prototype.events={click:\"remove\"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.name=t.name,this.render()},e.prototype.render=function(){return this.$el.html(S({name:this.name})),this},e}(c),_=function(t){function e(){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),e.__super__.constructor.apply(this,arguments)}return E(e,t),e.prototype.initialize=function(t){return e.__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)},e.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\"})},e.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\"))},e.prototype.render_facets=function(t,e,i){var n,r,o,s,a;for(t=t.find(\".bk-facets-selections\"),t.empty(),s=[],r=0,o=i.length;o>r;r++)n=i[r],a=new m({name:n}),this.listenTo(a,\"remove\",function(){var t;return this.remove_facet(n,t=!0)}),s.push(t.append(a.$el));return s},e.prototype.remove_facet=function(t,e){var i,n,r,o,s,a;for(null==e&&(e=!0),o=[\"facet_x\",\"facet_y\",\"facet_tab\"],n=0,r=o.length;r>n;n++)s=o[n],i=C.clone(this.model.get(s)),i=function(){var e,n,r;for(r=[],e=0,n=i.length;n>e;e++)a=i[e],a!==t&&r.push(a);return r}(),this.model.set(s,i);return e?this.model.save():void 0},e.prototype.add_facet=function(t,e){var i,n;return this.remove_facet(e,n=!1),i=C.clone(this.model.get(t)),i.indexOf(e)<0&&(i.push(e),this.model.set(t,i)),this.model.save()},e.prototype.drop=function(t,e,i){var n,r;return n=i.helper.data(\"model\"),r=n.get(\"name\"),this.add_facet(t,r)},e.prototype.drop_x=function(t,e){return this.drop(\"facet_x\",t,e)},e.prototype.drop_y=function(t,e){return this.drop(\"facet_y\",t,e)},e.prototype.drop_tab=function(t,e){return this.drop(\"facet_tab\",t,e)},e}(c),v=function(t){function e(){return this.drop=N(this.drop,this),e.__super__.constructor.apply(this,arguments)}return E(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.render(),this.render_columns_selectors,this.listenTo(this.model,\"change:filter_widgets\",this.render_column_selectors)},e.prototype.drop=function(t,e){var i,n;return i=e.helper.data(\"model\"),n=C.clone(this.model.get(\"filtering_columns\")),n.push(i.get(\"name\")),this.model.set(\"filtering_columns\",n),this.model.save()},e.prototype.render=function(){return this.$el.droppable({drop:this.drop,tolerance:\"pointer\",hoverClass:\"bk-droppable-hover\"}),this},e.prototype.render_column_selectors=function(){var t,e,i,r,o,s,a,l;C.map(this.views,function(t){return t.$el.detach()}),this.$el.find(\".bk-filters-selections\").empty(),e={},a=this.mget(\"filter_widgets\");for(o in a)R.call(a,o)&&(l=a[o],e[o]=this.model.resolve_ref(l));return r=this.mget(\"filtering_columns\"),i=function(){var i,n,o;for(o=[],i=0,n=r.length;n>i;i++)t=r[i],null!=e[t]&&o.push(e[t]);return o}(),s=M(this.views,i),C.map(s,function(t){return function(e){return t.listenTo(e,\"remove\",t.child_remove)}}(this)),C.map(i,function(t){return function(e){var i;return i=new n.View({view:t.views[e.id]}),t.$el.find(\".bk-filters-selections\").append(i.$el)}}(this))},e.prototype.child_remove=function(t){var e,i,n,r,o,s;r=this.mget(\"filter_widgets\");for(e in r)if(R.call(r,e)&&(s=r[e],i=this.model.resolve_ref(s),i===t.model)){o=e;break}return n=C.filter(this.mget(\"filtering_columns\"),function(t){return t!==o}),this.mset(\"filtering_columns\",n),this.model.save()},e}(c),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return E(e,t),e.prototype.template=T,e.prototype.attributes={\"class\":\"bk-crossfilter-column-entry bk-bs-panel bk-bs-panel-primary\"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.render=function(){return this.$el.html(this.template(this.model.attributes)),this.$el.draggable({appendTo:\"body\",containment:\"document\",helper:\"clone\",start:function(t){return function(e,i){return i.helper.data(\"model\",t.model)}}(this)}),this},e}(c),k=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return E(e,t),e}(s),x=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return E(e,t),e.prototype.default_view=k,e.prototype.defaults=function(){return C.extend({},e.__super__.defaults.call(this),{type:\"TimeColumn\",label:\"Time\",name:\"\",fields:[\"count\",\"unique\",\"first\",\"last\"],count:0,unique:0,first:0,last:0})},e}(b),g=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return E(e,t),e}(s),f=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return E(e,t),e.prototype.default_view=g,e.prototype.defaults=function(){return C.extend({},e.__super__.defaults.call(this),{type:\"DiscreteColumn\",label:\"Factor\",name:\"\",fields:[\"count\",\"unique\",\"top\",\"freq\"],count:0,unique:0,top:0,freq:0})},e}(b),u=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return E(e,t),e}(s),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return E(e,t),e.prototype.default_view=u,e.prototype.defaults=function(){return C.extend({},e.__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})},e}(b),D={DiscreteColumn:f,TimeColumn:x,ContinuousColumn:l},o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return E(e,t),e.prototype.model=function(t,e){return t.type in D?new D[t.type](t):(console.log(\"Unknown column type: '\"+t.type+\"'\"),null)},e}(r),e.exports={Model:h,View:p,Collection:new d}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../common/build_views\":31,\"../common/close_wrapper\":36,\"../common/collection\":37,\"../common/continuum_view\":38,\"../common/has_parent\":43,\"../common/has_properties\":44,\"./crossfilter_column_template\":185,\"./crossfilter_facet_template\":186,\"./crossfilter_template\":187,\"jquery-ui/draggable\":8,\"jquery-ui/droppable\":9,underscore:22}],185:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&&t.ecoSafe?t:\"undefined\"!=typeof t&&null!=t?o(t):\"\"},r=t.safe,o=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;(\"undefined\"==typeof t||null==t)&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e},o||(o=t.escape=function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\");\n",
       "                \n",
       "                }),function(){(function(){var t,e,r,o;for(i.push(\"Continuous\"===this.label?'\\n<div class=\"bk-bs-panel-heading bk-crossfilter-panel-heading bk-crossfilter-panel-continuous-heading\">\\n':'\\n<div class=\"bk-bs-panel-heading bk-crossfilter-panel-heading bk-crossfilter-panel-factor-heading\">\\n'),i.push(\"\\n  \"),i.push(n(this.name)),i.push(' <span style=\"font-size:x-small;\">('),i.push(n(this.label)),i.push(')</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,e=0,r=o.length;r>e;e++)t=o[e],i.push(\"\\n      <tr> <td> \"),i.push(n(t)),i.push(\"  </td> <td> \"),i.push(n(this[t])),i.push(\"  </td> </tr>\\n      \");i.push(\"\\n\\n    </tbody>\\n\\n  </table>\\n\\n</div>\")}).call(this)}.call(t),t.safe=r,t.escape=o,i.join(\"\")}},{}],186:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&&t.ecoSafe?t:\"undefined\"!=typeof t&&null!=t?o(t):\"\"},r=t.safe,o=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;(\"undefined\"==typeof t||null==t)&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e},o||(o=t.escape=function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}),function(){(function(){i.push(n(this.name)),i.push(\" &nbsp; [x]\")}).call(this)}.call(t),t.safe=r,t.escape=o,i.join(\"\")}},{}],187:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;(\"undefined\"==typeof t||null==t)&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}),function(){(function(){i.push('<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 </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)}.call(t),t.safe=n,t.escape=r,i.join(\"\")}},{}],188:[function(t,e,i){(function(i){var n,r,o,s,a,l,u,c,h,p,d,f,g,m=function(t,e){function i(){this.constructor=t}for(var n in e)_.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},_={}.hasOwnProperty;f=t(\"underscore\"),n=t(\"jquery\"),null!=i._bokehTest?(r=void 0,d=void 0,p=void 0,o=void 0):(r=t(\"jquery-ui/sortable\"),d=t(\"slick_grid/slick.grid\"),p=t(\"slick_grid/plugins/slick.rowselectionmodel\"),o=t(\"slick_grid/plugins/slick.checkboxselectcolumn\")),s=t(\"../common/continuum_view\"),h=t(\"../common/has_properties\"),a=t(\"../util/dom_util\"),g=t(\"../common/hittest\"),l=function(){function t(t){var e;this.source=t,this.data=this.source.get(\"data\"),this.fields=f.keys(this.data),f.contains(this.fields,\"index\")||(this.data.index=function(){e=[];for(var t=0,i=this.getLength();i>=0?i>t:t>i;i>=0?t++:t--)e.push(t);return e}.apply(this),this.fields.push(\"index\"))}return t.prototype.getLength=function(){return this.source.get_length()},t.prototype.getItem=function(t){var e,i,n,r,o;for(i={index:t},o=this.fields,n=0,r=o.length;r>n;n++)e=o[n],i[e]=this.data[e][t];return i},t.prototype._setItem=function(t,e){var i,n;for(i in e)n=e[i],this.data[i][t]=n},t.prototype.setItem=function(t,e){return this._setItem(t,e),this.updateSource()},t.prototype.getField=function(t,e){return this.data[e][t]},t.prototype._setField=function(t,e,i){this.data[e][t]=i},t.prototype.setField=function(t,e,i){return this._setField(t,e,i),this.updateSource()},t.prototype.updateSource=function(){return this.source.forceTrigger(\"data\")},t.prototype.getItemMetadata=function(t){return null},t.prototype.getRecords=function(){var t;return function(){var e,i,n;for(n=[],t=e=0,i=this.getLength();i>=0?i>e:e>i;t=i>=0?++e:--e)n.push(this.getItem(t));return n}.call(this)},t.prototype.sort=function(t){var e,i,n,r,o,s,a;for(e=function(){var e,n,r;for(r=[],e=0,n=t.length;n>e;e++)i=t[e],r.push([i.sortCol.field,i.sortAsc?1:-1]);return r}(),f.isEmpty(e)&&(e=[[\"index\",1]]),a=this.getRecords(),a.sort(function(t,i){var n,r,o,s,a,l,u,c;for(r=0,o=e.length;o>r;r++)if(s=e[r],n=s[0],l=s[1],u=t[n],c=i[n],a=u===c?0:u>c?l:-l,0!==a)return a;return 0}),n=r=0,o=a.length;o>r;n=++r)s=a[n],this._setItem(n,s);return this.updateSource()},t}(),c=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.attributes={\"class\":\"bk-data-table\"},e.prototype.initialize=function(t){var i;return e.__super__.initialize.call(this,t),a.waitForElement(this.el,function(t){return function(){return t.render()}}(this)),this.listenTo(this.model,\"change\",function(t){return function(){return t.render()}}(this)),i=this.mget(\"source\"),this.listenTo(i,\"change:data\",function(t){return function(){return t.updateGrid()}}(this)),this.listenTo(i,\"change:selected\",function(t){return function(){return t.updateSelection()}}(this))},e.prototype.updateGrid=function(){return this.data=new l(this.mget(\"source\")),this.grid.setData(this.data),this.grid.render()},e.prototype.updateSelection=function(){var t;return t=this.mget(\"source\").get(\"selected\"),this.grid.setSelectedRows(t[\"1d\"].indices)},e.prototype.newIndexColumn=function(){return{id:f.uniqueId(),name:\"#\",field:\"index\",width:40,behavior:\"select\",cannotTriggerInsert:!0,resizable:!1,selectable:!1,sortable:!0,cssClass:\"bk-cell-index\"}},e.prototype.render=function(){var t,e,i,n,r,s;return i=function(){var t,i,n,r;for(n=this.mget(\"columns\"),r=[],t=0,i=n.length;i>t;t++)e=n[t],r.push(e.toColumn());return r}.call(this),\"checkbox\"===this.mget(\"selectable\")&&(t=new o({cssClass:\"bk-cell-select\"}),i.unshift(t.getColumnDefinition())),this.mget(\"row_headers\")&&null!=this.mget(\"source\").get_column(\"index\")&&i.unshift(this.newIndexColumn()),s=this.mget(\"width\"),n=this.mget(\"height\"),r={enableCellNavigation:this.mget(\"selectable\")!==!1,enableColumnReorder:!0,forceFitColumns:this.mget(\"fit_columns\"),autoHeight:\"auto\"===n,multiColumnSort:this.mget(\"sortable\"),editable:this.mget(\"editable\"),autoEdit:!1},null!=s&&this.$el.css({width:this.mget(\"width\")+\"px\"}),null!=n&&\"auto\"!==n&&this.$el.css({height:this.mget(\"height\")+\"px\"}),this.data=new l(this.mget(\"source\")),this.grid=new d(this.el,this.data,i,r),this.grid.onSort.subscribe(function(t){return function(e,n){return i=n.sortCols,t.data.sort(i),t.grid.invalidate(),t.grid.render()}}(this)),this.mget(\"selectable\")!==!1&&(this.grid.setSelectionModel(new p({selectActiveRow:null==t})),null!=t&&this.grid.registerPlugin(t),this.grid.onSelectedRowsChanged.subscribe(function(t){return function(e,i){var n;return n=g.create_hit_test_result(),n[\"1d\"].indices=i.rows,t.mget(\"source\").set(\"selected\",n)}}(this))),this},e}(s),u=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.type=\"DataTable\",e.prototype.default_view=c,e.prototype.defaults=function(){return f.extend({},e.__super__.defaults.call(this),{columns:[],width:null,height:400,fit_columns:!0,sortable:!0,editable:!1,selectable:!0,row_headers:!0})},e}(h),e.exports={Model:u,View:c}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../common/continuum_view\":38,\"../common/has_properties\":44,\"../common/hittest\":45,\"../util/dom_util\":176,jquery:17,\"jquery-ui/sortable\":14,\"slick_grid/plugins/slick.checkboxselectcolumn\":231,\"slick_grid/plugins/slick.rowselectionmodel\":232,\"slick_grid/slick.grid\":234,underscore:22}],189:[function(t,e,i){(function(i){var n,r,o,s,a,l,u,c=function(t,e){return function(){return t.apply(e,arguments)}},h=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;u=t(\"underscore\"),n=t(\"jquery\"),r=null!=i._bokehTest?void 0:t(\"jquery-ui/datepicker\"),o=t(\"../common/continuum_view\"),l=t(\"../common/has_properties\"),a=function(t){function e(){return this.onSelect=c(this.onSelect,this),e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.render=function(){var t,e;return this.$el.empty(),e=n(\"<label>\").text(this.mget(\"title\")),t=n(\"<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]),this},e.prototype.onSelect=function(t,e){var i;return this.mset(\"value\",new Date(t)),this.model.save(),null!=(i=this.mget(\"callback\"))?i.execute(this.model):void 0},e}(o),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type=\"DatePicker\",e.prototype.default_view=a,e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{value:Date.now()})},e}(l),e.exports={Model:s,View:a}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../common/continuum_view\":38,\"../common/has_properties\":44,jquery:17,\"jquery-ui/datepicker\":7,underscore:22}],190:[function(t,e,i){(function(i){var n,r,o,s,a,l,u,c=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;u=t(\"underscore\"),n=t(\"jquery\"),r=null!=i._bokehTest?void 0:t(\"jqrangeslider/jQDateRangeSlider\"),o=t(\"../common/continuum_view\"),l=t(\"../common/has_properties\"),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",function(t){return function(){return t.render}}(this))},e.prototype.render=function(){var t,e,i,n,r,o,s,a,l;return this.$el.empty(),r=this.mget(\"value\"),l=r[0],a=r[1],o=this.mget(\"range\"),n=o[0],i=o[1],s=this.mget(\"bounds\"),e=s[0],t=s[1],this.$el.dateRangeSlider({defaultValues:{min:new Date(l),max:new Date(a)},bounds:{min:new Date(e),max:new Date(t)},range:{min:u.isObject(n)?n:!1,max:u.isObject(i)?i:!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){return function(e,i){var n;return t.mset(\"value\",[i.values.min,i.values.max]),t.model.save(),null!=(n=t.mget(\"callback\"))?n.execute(t.model):void 0}}(this)),this},e}(o),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type=\"DateRangeSlider\",e.prototype.default_view=a,e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{})},e}(l),e.exports={Model:s,View:a}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../common/continuum_view\":38,\"../common/has_properties\":44,\"jqrangeslider/jQDateRangeSlider\":225,jquery:17,underscore:22}],191:[function(t,e,i){(function(i){var n,r,o,s,a,l,u,c,h=function(t,e){return function(){return t.apply(e,arguments)}},p=function(t,e){function i(){this.constructor=t}for(var n in e)d.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},d={}.hasOwnProperty;u=t(\"underscore\"),n=t(\"jquery\"),r=null!=i._bokehTest?void 0:t(\"bootstrap/modal\"),o=t(\"../common/continuum_view\"),l=t(\"../common/has_properties\"),c=t(\"./dialog_template\"),a=function(t){function e(){return this.change_content=h(this.change_content,this),this.change_visibility=h(this.change_visibility,this),this.onHide=h(this.onHide,this),e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.render_content(),this.render_buttons(),this.listenTo(this.model,\"destroy\",this.remove),this.listenTo(this.model,\"change:visible\",this.change_visibility),this.listenTo(this.model,\"change:content\",this.change_content)},e.prototype.render_content=function(){var t;return null!=this.content_view&&this.content_view.remove(),t=this.mget(\"content\"),null!=t&&(\"object\"==typeof t?(this.content_view=new t.default_view({model:t}),this.$el.find(\".bk-dialog-content\").empty(),this.$el.find(\".bk-dialog-content\").append(this.content_view.$el)):(this.$el.find(\".bk-dialog-content\").empty(),this.$el.find(\".bk-dialog-content\").text(t))),this},e.prototype.render_buttons=function(){var t;return null!=this.buttons_box_view&&this.buttons_box_view.remove(),t=this.mget(\"buttons_box\"),null!=t&&(this.buttons_box_view=new t.default_view({model:t}),this.$el.find(\".bk-dialog-buttons_box\").empty(),this.$el.find(\".bk-dialog-buttons_box\").append(this.buttons_box_view.$el)),this},e.prototype.render=function(){return this.$modal=n(c(this.model.attributes)),this.$modal.modal({show:this.mget(\"visible\")}),this.$modal.on(\"hidden.bk-bs.modal\",this.onHide),this.$el.html(this.$modal),this},e.prototype.onHide=function(t){return this.mset(\"visible\",!1,{silent:!0})},e.prototype.change_visibility=function(){return this.$modal.modal(this.mget(\"visible\")?\"show\":\"hide\")},e.prototype.change_content=function(){return this.render_content()},e}(o),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type=\"Dialog\",e.prototype.default_view=a,e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{visible:!1,closable:!0,title:\"\",content:\"\",buttons:[],buttons_box:null})},e}(l),e.exports={Model:s,View:a}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../common/continuum_view\":38,\"../common/has_properties\":44,\"./dialog_template\":192,\"bootstrap/modal\":222,jquery:17,underscore:22}],192:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&&t.ecoSafe?t:\"undefined\"!=typeof t&&null!=t?o(t):\"\"},r=t.safe,o=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;(\"undefined\"==typeof t||null==t)&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e},o||(o=t.escape=function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}),function(){(function(){i.push('<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&&i.push('\\n          <button type=\"button\" class=\"bk-bs-close\" data-bk-bs-dismiss=\"modal\">&times;</button>\\n        '),i.push('\\n        <h4 class=\"bk-bs-modal-title\">'),i.push(n(this.title)),i.push('</h4>\\n      </div>\\n      <div class=\"bk-bs-modal-body\">\\n        <div class=\"bk-dialog-content\" />\\n      </div>\\n      <div class=\"bk-bs-modal-footer\">\\n        <div class=\"bk-dialog-buttons_box\" />\\n      </div>\\n    </div>\\n  </div>\\n</div>\\n')}).call(this)}.call(t),t.safe=r,t.escape=o,i.join(\"\")}},{}],193:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;l=t(\"underscore\"),n=t(\"jquery\"),r=t(\"../common/continuum_view\"),a=t(\"../common/has_parent\"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tagName=\"div\",e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",this.render)},e.prototype.render=function(){var t,e,i,r,o,s,a,l,u,c,h,p,d,f;for(this.$el.empty(),f=null!=this.mget(\"default_action\"),e=n(\"<button></button>\"),e.addClass(\"bk-bs-btn\"),e.addClass(\"bk-bs-btn-\"+this.mget(\"type\")),e.text(this.mget(\"label\")),i=n('<span class=\"bk-bs-caret\"></span>'),f?(e.click(function(t){return function(){return t.change_input(t.mget(\"default_action\"))}}(this)),a=n(\"<button></button>\"),a.addClass(\"bk-bs-btn\"),a.addClass(\"bk-bs-btn-\"+this.mget(\"type\")),a.addClass(\"bk-bs-dropdown-toggle\"),a.attr(\"data-bk-bs-toggle\",\"dropdown\"),a.append(i)):(e.addClass(\"bk-bs-dropdown-toggle\"),e.attr(\"data-bk-bs-toggle\",\"dropdown\"),e.append(document.createTextNode(\" \")),e.append(i),a=n(\"\")),s=n('<ul class=\"bk-bs-dropdown-menu\"></ul>'),r=n('<li class=\"bk-bs-divider\"></li>'),d=this.mget(\"menu\"),u=0,p=d.length;p>u;u++)c=d[u],o=null!=c?(h=c[0],l=c[1],c,t=n(\"<a></a>\").text(h),t.click(function(t){return function(){return t.change_input(l)}}(this)),n(\"<li></li>\").append(t)):r,s.append(o);return this.$el.addClass(\"bk-bs-btn-group\"),this.$el.append([e,a,s]),this},e.prototype.change_input=function(t){var e;return this.mset(\"action\",t),this.model.save(),null!=(e=this.mget(\"callback\"))?e.execute(this.model):void 0},e}(r),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type=\"Dropdown\",e.prototype.default_view=s,e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{action:null,default_action:null,label:\"Dropdown\",icon:null,type:\"default\",menu:[],disabled:!1})},e}(a),e.exports={Model:o,View:s}},{\"../common/continuum_view\":38,\"../common/has_parent\":43,jquery:17,underscore:22}],194:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;a=t(\"underscore\"),l=t(\"../common/build_views\"),n=t(\"../common/continuum_view\"),s=t(\"../common/has_parent\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tag=\"div\",e.prototype.attributes={\"class\":\"bk-hbox\"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.render(),this.listenTo(this.model,\"change\",this.render)},e.prototype.render=function(){var t,e,i,n,r,o,s,a,u;e=this.model.children(),l(this.views,e),s=this.views;for(r in s)c.call(s,r)&&(a=s[r],a.$el.detach());for(this.$el.empty(),u=this.mget(\"width\"),null!=u&&this.$el.css({width:u+\"px\"}),i=this.mget(\"height\"),null!=i&&this.$el.css({height:i+\"px\"}),n=0,o=e.length;o>n;n++)t=e[n],this.$el.append(this.views[t.id].$el);return this},e}(n),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type=\"HBox\",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{children:[]})},e.prototype.children=function(){return this.get(\"children\")},e}(s),e.exports={Model:r,View:o}},{\"../common/build_views\":31,\"../common/continuum_view\":38,\"../common/has_parent\":43,underscore:22}],195:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t(\"underscore\"),n=t(\"../common/continuum_view\"),r=t(\"../common/has_parent\"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.tagName=\"i\",e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",this.render)},e.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},e}(n),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type=\"Icon\",e.prototype.default_view=s,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{name:\"\",size:null,flip:null,spin:!1})},e}(r),e.exports={Model:o,View:s}},{\"../common/continuum_view\":38,\"../common/has_parent\":43,underscore:22}],196:[function(t,e,i){var n,r;r=t(\"../hbox\"),n=t(\"./base\"),e.exports=n(\"AppHBox\",r)},{\"../hbox\":194,\"./base\":199}],197:[function(t,e,i){var n,r;r=t(\"../vbox\"),n=t(\"./base\"),e.exports=n(\"AppVBox\",r)},{\"../vbox\":218,\"./base\":199}],198:[function(t,e,i){var n;n=t(\"../vboxform\"),e.exports=t(\"./base\")(\"AppVBoxForm\",n)},{\"../vboxform\":219,\"./base\":199}],199:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t(\"underscore\"),s=t(\"../../common/build_views\"),n=t(\"../../common/continuum_view\"),r=t(\"../../common/has_parent\"),e.exports=function(t,e){var i,n;return n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.initialize=function(t){var i;return e.__super__.initialize.call(this,t),i=this.mget(\"app\"),this.listenTo(i,\"change:objects\",this.render)},e}(e.View),i=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return a(i,e),i.prototype.type=t,i.prototype.default_view=n,i.prototype.children=function(){var t,e,i,n;return t=this.get(\"app\"),n=this.get(\"children\"),i=t.get(\"objects\"),e=o.map(n,function(t){return function(e){return o.isString(e)?t.resolve_ref(i[e]):e}}(this))},i}(r),{Model:i,View:n}}},{\"../../common/build_views\":31,\"../../common/continuum_view\":38,\"../../common/has_parent\":43,underscore:22}],200:[function(t,e,i){var n,r,o,s,a,l,u,c=function(t,e){return function(){return t.apply(e,arguments)}},h=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;l=t(\"jquery\"),n=t(\"underscore\"),r=t(\"../common/continuum_view\"),o=t(\"../common/has_parent\"),u=t(\"./multiselecttemplate\"),a=function(t){function e(){return this.render_selection=c(this.render_selection,this),e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.tagName=\"div\",e.prototype.template=u,e.prototype.events={\"change select\":\"change_input\"},e.prototype.initialize=function(t){return e.__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)},e.prototype.render=function(){var t;return this.$el.empty(),t=this.template(this.model.attributes),this.$el.html(t),this.render_selection(),this},e.prototype.render_selection=function(){var t;return t={},l.map(this.mget(\"value\"),function(e){return t[e]=!0}),this.$(\"option\").each(function(e){return function(i){return i=e.$(i),t[i.attr(\"value\")]?i.attr(\"selected\",\"selected\"):void 0}}(this))},e.prototype.change_input=function(){var t;return this.mset(\"value\",this.$(\"select\").val(),{silent:!0}),this.model.save(),null!=(t=this.mget(\"callback\"))?t.execute(this.model):void 0},e}(r),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type=\"MultiSelect\",e.prototype.default_view=a,e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{title:\"\",value:[],options:[]})},e}(o),e.exports={Model:s,View:a}},{\"../common/continuum_view\":38,\"../common/has_parent\":43,\"./multiselecttemplate\":201,jquery:17,underscore:22}],201:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&&t.ecoSafe?t:\"undefined\"!=typeof t&&null!=t?o(t):\"\"},r=t.safe,o=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;(\"undefined\"==typeof t||null==t)&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e},o||(o=t.escape=function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}),function(){(function(){var t,e,r,o;for(i.push('<label for=\"'),i.push(n(this.id)),i.push('\"> '),i.push(n(this.title)),i.push(' </label>\\n<select multiple class=\"bk-widget-form-input\" id=\"'),i.push(n(this.id)),i.push('\" name=\"'),i.push(n(this.name)),i.push('\">\\n  '),o=this.options,t=0,e=o.length;e>t;t++)r=o[t],i.push(\"\\n  \"),r.value===this.value?(i.push('\\n  <option selected=\"selected\" value=\"'),i.push(n(r.value)),i.push('\">'),i.push(n(r.name)),i.push(\"</option>\\n  \")):(i.push('\\n  <option value=\"'),i.push(n(r.value)),i.push('\">'),i.push(n(r.name)),i.push(\"</option> \\n  \")),i.push(\"\\n\\n  \");i.push(\"\\n</select>\\n\")}).call(this)}.call(t),t.safe=r,t.escape=o,i.join(\"\")}},{}],202:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;l=t(\"underscore\"),n=t(\"jquery\"),r=t(\"../common/continuum_view\"),o=t(\"../common/has_properties\"),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.render=function(){return this.$el.empty(),this},e}(r),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type=\"Panel\",e.prototype.default_view=a,e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{title:\"\",child:null,closable:!1})},e}(o),e.exports={Model:s,View:a}},{\"../common/continuum_view\":38,\"../common/has_properties\":44,jquery:17,underscore:22}],203:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t(\"underscore\"),n=t(\"../common/continuum_view\"),r=t(\"../common/has_parent\"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.tagName=\"p\",e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",this.render)},e.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\")),this},e}(n),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type=\"Paragraph\",e.prototype.default_view=s,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{text:\"\"})},e}(r),e.exports={Model:o,View:s}},{\"../common/continuum_view\":38,\"../common/has_parent\":43,underscore:22}],204:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t(\"underscore\"),n=t(\"./paragraph\"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.tagName=\"pre\",e.prototype.attributes={style:\"overflow:scroll\"},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type=\"PreText\",e.prototype.default_view=o,e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{text:\"\",height:400,width:400})},e}(n.Model),e.exports={Model:r,View:o}},{\"./paragraph\":203,underscore:22}],205:[function(t,e,i){(function(i){var n,r,o,s,a,l,u,c=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;u=t(\"underscore\"),n=t(\"jquery\"),r=null!=i._bokehTest?void 0:t(\"bootstrap/button\"),o=t(\"../common/continuum_view\"),s=t(\"../common/has_parent\"),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.tagName=\"div\",e.prototype.events={\"change input\":\"change_input\"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",this.render)},e.prototype.render=function(){var t,e,i,r,o,s,a,l,c;for(this.$el.empty(),this.$el.addClass(\"bk-bs-btn-group\"),this.$el.attr(\"data-bk-bs-toggle\",\"buttons\"),l=u.uniqueId(\"RadioButtonGroup\"),i=this.mget(\"active\"),c=this.mget(\"labels\"),r=o=0,a=c.length;a>o;r=++o)s=c[r],t=n('<input type=\"radio\">').attr({name:l,value:\"\"+r}),r===i&&t.prop(\"checked\",!0),e=n('<label class=\"bk-bs-btn\"></label>'),e.text(s).prepend(t),e.addClass(\"bk-bs-btn-\"+this.mget(\"type\")),r===i&&e.addClass(\"bk-bs-active\"),this.$el.append(e);return this},e.prototype.change_input=function(){var t,e,i,n;return t=function(){var t,n,r,o;for(r=this.$(\"input\"),o=[],e=t=0,n=r.length;n>t;e=++t)i=r[e],i.checked&&o.push(e);return o}.call(this),this.mset(\"active\",t[0]),this.model.save(),null!=(n=this.mget(\"callback\"))?n.execute(this.model):void 0},e}(o),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type=\"RadioButtonGroup\",e.prototype.default_view=l,e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{active:null,labels:[],type:\"default\",disabled:!1})},e}(s),e.exports={Model:a,View:l}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../common/continuum_view\":38,\"../common/has_parent\":43,\"bootstrap/button\":220,jquery:17,underscore:22}],206:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;l=t(\"underscore\"),n=t(\"jquery\"),r=t(\"../common/continuum_view\"),o=t(\"../common/has_parent\"),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tagName=\"div\",e.prototype.events={\"change input\":\"change_input\"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",this.render)},e.prototype.render=function(){var t,e,i,r,o,s,a,u,c,h;for(this.$el.empty(),c=l.uniqueId(\"RadioGroup\"),r=this.mget(\"active\"),h=this.mget(\"labels\"),o=s=0,u=h.length;u>s;o=++s)a=h[o],e=n('<input type=\"radio\">').attr({name:c,value:\"\"+o}),this.mget(\"disabled\")&&e.prop(\"disabled\",!0),\n",
       "                o===r&&e.prop(\"checked\",!0),i=n(\"<label></label>\").text(a).prepend(e),this.mget(\"inline\")?(i.addClass(\"bk-bs-radio-inline\"),this.$el.append(i)):(t=n('<div class=\"bk-bs-radio\"></div>').append(i),this.$el.append(t));return this},e.prototype.change_input=function(){var t,e,i;return t=function(){var t,n,r,o;for(r=this.$(\"input\"),o=[],e=t=0,n=r.length;n>t;e=++t)i=r[e],i.checked&&o.push(e);return o}.call(this),this.mset(\"active\",t[0]),this.model.save()},e}(r),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type=\"RadioGroup\",e.prototype.default_view=a,e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{active:null,labels:[],inline:!1,disabled:!1})},e}(o),e.exports={Model:s,View:a}},{\"../common/continuum_view\":38,\"../common/has_parent\":43,jquery:17,underscore:22}],207:[function(t,e,i){var n,r,o,s,a,l,u,c=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t(\"underscore\"),n=t(\"../common/continuum_view\"),r=t(\"../common/has_parent\"),l=t(\"../common/logging\").logger,u=t(\"./selecttemplate\"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.tagName=\"div\",e.prototype.template=u,e.prototype.events={\"change select\":\"change_input\"},e.prototype.change_input=function(){var t,e;return e=this.$(\"select\").val(),l.debug(\"selectbox: value = \"+e),this.mset(\"value\",e),this.model.save(),null!=(t=this.mget(\"callback\"))?t.execute(this.model):void 0},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",this.render)},e.prototype.render=function(){var t;return this.$el.empty(),t=this.template(this.model.attributes),this.$el.html(t),this},e}(n),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type=\"Select\",e.prototype.default_view=s,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{title:\"\",value:\"\",options:[]})},e}(r),e.exports={Model:o,View:s}},{\"../common/continuum_view\":38,\"../common/has_parent\":43,\"../common/logging\":48,\"./selecttemplate\":208,underscore:22}],208:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&&t.ecoSafe?t:\"undefined\"!=typeof t&&null!=t?o(t):\"\"},r=t.safe,o=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;(\"undefined\"==typeof t||null==t)&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e},o||(o=t.escape=function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}),function(){(function(){var t,e,r,o;for(i.push('<label for=\"'),i.push(n(this.id)),i.push('\"> '),i.push(n(this.title)),i.push(' </label>\\n<select class=\"bk-widget-form-input\" id=\"'),i.push(n(this.id)),i.push('\" name=\"'),i.push(n(this.name)),i.push('\">\\n  '),o=this.options,t=0,e=o.length;e>t;t++)r=o[t],i.push(\"\\n    \"),\"string\"==typeof r?(i.push(\"\\n      <option \"),i.push(n(r===this.value?i.push('selected=\"selected\"'):void 0)),i.push(' value=\"'),i.push(n(r)),i.push('\">'),i.push(n(r)),i.push(\"</option>\\n    \")):(i.push(\"\\n      <option \"),i.push(n(r.value===this.value?i.push('selected=\"selected\"'):void 0)),i.push(' value=\"'),i.push(n(r.value)),i.push('\">'),i.push(n(r.name)),i.push(\"</option>\\n    \")),i.push(\"\\n  \");i.push(\"\\n</select>\\n\")}).call(this)}.call(t),t.safe=r,t.escape=o,i.join(\"\")}},{}],209:[function(t,e,i){var n,r,o,s,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;n=t(\"../common/continuum_view\"),r=t(\"../common/has_parent\"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.render=function(){var t;return this.$el.html(\"\"),t=this.mget(\"layout\"),this.layout_view=new t.default_view({model:t}),this.$el.append(this.layout_view.$el),this},e}(n),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type=\"SimpleApp\",e.prototype.default_view=s,e}(r),e.exports={Model:o,View:s}},{\"../common/continuum_view\":38,\"../common/has_parent\":43}],210:[function(t,e,i){var n,r,o,s,a,l,u,c=function(t,e){return function(){return t.apply(e,arguments)}},h=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;a=t(\"underscore\"),n=t(\"../common/continuum_view\"),r=t(\"../common/has_parent\"),l=t(\"../common/logging\").logger,u=t(\"./slidertemplate\"),s=function(t){function e(){return this.slide=c(this.slide,this),e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.tagName=\"div\",e.prototype.template=u,e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.render=function(){var t,e,i,n;return this.$el.empty(),t=this.template(this.model.attributes),this.$el.html(t),e=this.mget(\"end\"),i=this.mget(\"start\"),n=this.mget(\"step\")||(e-i)/50,l.debug(\"slider render: min, max, step = (\"+i+\", \"+e+\", \"+n+\")\"),this.$(\".slider\").slider({orientation:this.mget(\"orientation\"),animate:\"fast\",slide:a.throttle(this.slide,200),value:this.mget(\"value\"),min:i,max:e,step:n}),this.$(\"#\"+this.mget(\"id\")).val(this.$(\".slider\").slider(\"value\")),this},e.prototype.slide=function(t,e){var i,n;return n=e.value,l.debug(\"slide value = \"+n),this.$(\"#\"+this.mget(\"id\")).val(e.value),this.mset(\"value\",n),this.model.save(),null!=(i=this.mget(\"callback\"))?i.execute(this.model):void 0},e}(n),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type=\"Slider\",e.prototype.default_view=s,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{title:\"\",value:.5,start:0,end:1,step:0,orientation:\"horizontal\"})},e}(r),e.exports={Model:o,View:s}},{\"../common/continuum_view\":38,\"../common/has_parent\":43,\"../common/logging\":48,\"./slidertemplate\":211,underscore:22}],211:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&&t.ecoSafe?t:\"undefined\"!=typeof t&&null!=t?o(t):\"\"},r=t.safe,o=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;(\"undefined\"==typeof t||null==t)&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e},o||(o=t.escape=function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}),function(){(function(){i.push('<label for=\"'),i.push(n(this.id)),i.push('\"> '),i.push(n(this.title)),i.push(': </label>\\n<input type=\"text\" id=\"'),i.push(n(this.id)),i.push('\" readonly style=\"border:0; color:#f6931f; font-weight:bold;\">\\n<div class=\"bk-slider-'),i.push(n(this.orientation)),i.push('\">\\n  <div class=\"slider \" id=\"'),i.push(n(this.id)),i.push('\">\\n</div>\\n')}).call(this)}.call(t),t.safe=r,t.escape=o,i.join(\"\")}},{}],212:[function(t,e,i){var n,r,o,s=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;o=t(\"underscore\"),n=t(\"../common/has_properties\"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.type=\"TableColumn\",e.prototype.default_view=null,e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{field:null,title:null,width:300,formatter:null,editor:null,sortable:!0,default_sort:\"ascending\"})},e.prototype.toColumn=function(){return{id:o.uniqueId(),field:this.get(\"field\"),name:this.get(\"title\"),width:this.get(\"width\"),formatter:this.get(\"formatter\"),editor:this.get(\"editor\"),sortable:this.get(\"sortable\"),defaultSortAsc:\"ascending\"===this.get(\"default_sort\")}},e}(n),e.exports={Model:r}},{\"../common/has_properties\":44,underscore:22}],213:[function(t,e,i){(function(i){var n,r,o,s,a,l,u,c,h,p=function(t,e){function i(){this.constructor=t}for(var n in e)d.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},d={}.hasOwnProperty;u=t(\"underscore\"),n=t(\"jquery\"),r=null!=i._bokehTest?void 0:t(\"bootstrap/tab\"),c=t(\"../common/build_views\"),o=t(\"../common/continuum_view\"),s=t(\"../common/has_properties\"),h=t(\"./tabs_template\"),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.render()},e.prototype.render=function(){var t,e,i,r,o,s,a,l,p,f,g,m,_,v,y;f=this.views;for(a in f)d.call(f,a)&&(y=f[a],y.$el.detach());for(this.$el.empty(),v=this.mget(\"tabs\"),e=this.mget(\"active\"),r=function(){var t,e,i;for(i=[],t=0,e=v.length;e>t;t++)_=v[t],i.push(_.get(\"child\"));return i}(),c(this.views,r),o=n(h({tabs:v,active:function(t){return t===e?\"bk-bs-active\":\"\"}})),o.find(\"> li > a\").click(function(t){return t.preventDefault(),n(this).tab(\"show\")}),t=o.children(\".bk-bs-tab-pane\"),g=u.zip(r,t),s=0,l=g.length;l>s;s++)m=g[s],i=m[0],p=m[1],n(p).html(this.views[i.id].$el);return this.$el.append(o),this.$el.tabs,this},e}(o),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type=\"Tabs\",e.prototype.default_view=l,e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{tabs:[],active:0})},e}(s),e.exports={Model:a,View:l}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../common/build_views\":31,\"../common/continuum_view\":38,\"../common/has_properties\":44,\"./tabs_template\":214,\"bootstrap/tab\":223,jquery:17,underscore:22}],214:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&&t.ecoSafe?t:\"undefined\"!=typeof t&&null!=t?o(t):\"\"},r=t.safe,o=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;(\"undefined\"==typeof t||null==t)&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e},o||(o=t.escape=function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}),function(){(function(){var t,e,r,o,s,a,l,u;for(i.push('<ul class=\"bk-bs-nav bk-bs-nav-tabs\">\\n  '),a=this.tabs,t=e=0,o=a.length;o>e;t=++e)u=a[t],i.push('\\n    <li class=\"'),i.push(n(this.active(t))),i.push('\">\\n      <a href=\"#tab-'),i.push(n(u.get(\"id\"))),i.push('\">'),i.push(n(u.get(\"title\"))),i.push(\"</a>\\n    </li>\\n  \");for(i.push('\\n</ul>\\n<div class=\"bk-bs-tab-content\">\\n  '),l=this.tabs,t=r=0,s=l.length;s>r;t=++r)u=l[t],i.push('\\n    <div class=\"bk-bs-tab-pane '),i.push(n(this.active(t))),i.push('\" id=\"tab-'),i.push(n(u.get(\"id\"))),i.push('\"></div>\\n  ');i.push(\"\\n</div>\\n\")}).call(this)}.call(t),t.safe=r,t.escape=o,i.join(\"\")}},{}],215:[function(t,e,i){var n,r,o,s,a,l,u,c,h=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;a=t(\"underscore\"),l=t(\"../common/build_views\"),n=t(\"../common/continuum_view\"),r=t(\"../common/has_parent\"),u=t(\"../common/logging\").logger,c=t(\"./text_input_template\"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.tagName=\"div\",e.prototype.attributes={\"class\":\"bk-widget-form-group\"},e.prototype.template=c,e.prototype.events={\"change input\":\"change_input\"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",this.render)},e.prototype.render=function(){return this.$el.html(this.template(this.model.attributes)),this},e.prototype.change_input=function(){var t,e;return e=this.$(\"input\").val(),u.debug(\"widget/text_input: value = \"+e),this.mset(\"value\",e),this.model.save(),null!=(t=this.mget(\"callback\"))?t.execute(this.model):void 0},e}(n),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type=\"TextInput\",e.prototype.default_view=s,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{name:\"\",value:\"\",title:\"\"})},e}(r),e.exports={Model:o,View:s}},{\"../common/build_views\":31,\"../common/continuum_view\":38,\"../common/has_parent\":43,\"../common/logging\":48,\"./text_input_template\":216,underscore:22}],216:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&&t.ecoSafe?t:\"undefined\"!=typeof t&&null!=t?o(t):\"\"},r=t.safe,o=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;(\"undefined\"==typeof t||null==t)&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e},o||(o=t.escape=function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}),function(){(function(){i.push('<label for=\"'),i.push(n(this.id)),i.push('\"> '),i.push(n(this.title)),i.push(' </label>\\n<input class=\"bk-widget-form-input\" type=\"text\" id=\"'),i.push(n(this.id)),i.push('\" name=\"'),i.push(n(this.name)),i.push('\" value=\"'),i.push(n(this.value)),i.push('\"/>\\n')}).call(this)}.call(t),t.safe=r,t.escape=o,i.join(\"\")}},{}],217:[function(t,e,i){var n,r,o,s,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t(\"underscore\"),n=t(\"../common/continuum_view\"),r=t(\"../common/has_parent\"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.tagName=\"button\",e.prototype.events={click:\"change_input\"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,\"change\",this.render)},e.prototype.render=function(){var t,e,i,n,r;if(t=this.mget(\"icon\"),null!=t){build_views(this.views,[t]),n=this.views;for(e in n)u.call(n,e)&&(r=n[e],r.$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\"),i=this.mget(\"label\"),null!=t&&(this.$el.append(this.views[t.id].$el),i=\" \"+i),this.$el.append(document.createTextNode(i)),this.mget(\"active\")&&this.$el.addClass(\"bk-bs-active\"),this.$el.attr(\"data-bk-bs-toggle\",\"button\"),this},e.prototype.change_input=function(){var t;return this.mset(\"active\",this.$el.hasClass(\"bk-bs-active\")),this.model.save(),null!=(t=this.mget(\"callback\"))?t.execute(this.model):void 0},e}(n),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type=\"Toggle\",e.prototype.default_view=s,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{active:!1,label:\"Toggle\",icon:null,type:\"default\",disabled:!1})},e}(r),e.exports={Model:o,View:s}},{\"../common/continuum_view\":38,\"../common/has_parent\":43,underscore:22}],218:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;a=t(\"underscore\"),l=t(\"../common/build_views\"),n=t(\"../common/continuum_view\"),r=t(\"../common/has_parent\"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tag=\"div\",e.prototype.attributes={\"class\":\"bk-vbox\"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.render(),this.listenTo(this.model,\"change\",this.render)},e.prototype.render=function(){var t,e,i,n,r,o,s,a,u;e=this.model.children(),l(this.views,e),s=this.views;for(r in s)c.call(s,r)&&(a=s[r],a.$el.detach());for(this.$el.empty(),u=this.mget(\"width\"),null!=u&&this.$el.css({width:u+\"px\"}),i=this.mget(\"height\"),null!=i&&this.$el.css({height:i+\"px\"}),n=0,o=e.length;o>n;n++)t=e[n],this.$el.append(this.views[t.id].$el);return this},e}(n),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type=\"VBox\",e.prototype.default_view=s,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{children:[]})},e.prototype.children=function(){return this.get(\"children\")},e}(r),e.exports={Model:o,View:s}},{\"../common/build_views\":31,\"../common/continuum_view\":38,\"../common/has_parent\":43,underscore:22}],219:[function(t,e,i){var n,r,o,s,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;a=t(\"underscore\"),l=t(\"../common/build_views\"),n=t(\"../common/continuum_view\"),r=t(\"../common/has_parent\"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tagName=\"form\",e.prototype.attributes={\"class\":\"bk-widget-form\",role:\"form\"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.render()},e.prototype.render=function(){var t,e,i,n,r,o,s;e=this.model.children(),l(this.views,e),o=this.views;for(n in o)c.call(o,n)&&(s=o[n],s.$el.detach());for(this.$el.empty(),i=0,r=e.length;r>i;i++)t=e[i],this.$el.append(\"<br/\"),this.$el.append(this.views[t.id].$el);return this},e}(n),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type=\"VBoxForm\",e.prototype.default_view=s,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{children:[]})},e.prototype.children=function(){return this.get(\"children\")},e}(r),e.exports={Model:o,View:s}},{\"../common/build_views\":31,\"../common/continuum_view\":38,\"../common/has_parent\":43,underscore:22}],220:[function(t,e,i){var n=t(\"jquery\"),r=function(t,e){this.$element=n(t),this.options=n.extend({},r.DEFAULTS,e),this.isLoading=!1};r.DEFAULTS={loadingText:\"loading...\"},r.prototype.setState=function(t){var e=\"bk-bs-disabled\",i=this.$element,r=i.is(\"input\")?\"val\":\"html\",o=i.data();t+=\"Text\",o.resetText||i.data(\"resetText\",i[r]()),i[r](o[t]||this.options[t]),setTimeout(n.proxy(function(){\"loadingText\"==t?(this.isLoading=!0,i.addClass(e).attr(e,e)):this.isLoading&&(this.isLoading=!1,i.removeClass(e).removeAttr(e))},this),0)},r.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-bk-bs-toggle=\"buttons\"]');if(e.length){var i=this.$element.find(\"input\");\"radio\"==i.prop(\"type\")&&(i.prop(\"checked\")&&this.$element.hasClass(\"bk-bs-active\")?t=!1:e.find(\".bk-bs-active\").removeClass(\"bk-bs-active\")),t&&i.prop(\"checked\",!this.$element.hasClass(\"bk-bs-active\")).trigger(\"change\")}t&&this.$element.toggleClass(\"bk-bs-active\")};var o=n.fn.button;n.fn.button=function(t){return this.each(function(){var e=n(this),i=e.data(\"bk-bs.button\"),o=\"object\"==typeof t&&t;i||e.data(\"bk-bs.button\",i=new r(this,o)),\"toggle\"==t?i.toggle():t&&i.setState(t)})},n.fn.button.Constructor=r,n.fn.button.noConflict=function(){return n.fn.button=o,this},n(document).on(\"click.bk-bs.button.data-api\",\"[data-bk-bs-toggle^=button]\",function(t){var e=n(t.target);e.hasClass(\"bk-bs-btn\")||(e=e.closest(\".bk-bs-btn\")),e.button(\"toggle\"),t.preventDefault()})},{jquery:17}],221:[function(t,e,i){function n(t){o(s).remove(),o(a).each(function(){var e=r(o(this)),i={relatedTarget:this};e.hasClass(\"bk-bs-open\")&&(e.trigger(t=o.Event(\"hide.bk-bs.dropdown\",i)),t.isDefaultPrevented()||e.removeClass(\"bk-bs-open\").trigger(\"hidden.bk-bs.dropdown\",i))})}function r(t){var e=t.attr(\"data-bk-bs-target\");e||(e=t.attr(\"href\"),e=e&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\\s]*$)/,\"\"));var i=e&&o(e);return i&&i.length?i:t.parent()}var o=t(\"jquery\"),s=\".bk-bs-dropdown-backdrop\",a=\"[data-bk-bs-toggle=dropdown]\",l=function(t){o(t).on(\"click.bk-bs.dropdown\",this.toggle)};l.prototype.toggle=function(t){var e=o(this);if(!e.is(\".bk-bs-disabled, :disabled\")){var i=r(e),s=i.hasClass(\"bk-bs-open\");if(n(),!s){\"ontouchstart\"in document.documentElement&&!i.closest(\".bk-bs-navbar-nav\").length&&o('<div class=\"bk-bs-dropdown-backdrop\"/>').insertAfter(o(this)).on(\"click\",n);var a={relatedTarget:this};if(i.trigger(t=o.Event(\"show.bk-bs.dropdown\",a)),t.isDefaultPrevented())return;i.toggleClass(\"bk-bs-open\").trigger(\"shown.bk-bs.dropdown\",a),e.focus()}return!1}},l.prototype.keydown=function(t){if(/(38|40|27)/.test(t.keyCode)){var e=o(this);if(t.preventDefault(),t.stopPropagation(),!e.is(\".bk-bs-disabled, :disabled\")){var i=r(e),n=i.hasClass(\"bk-bs-open\");if(!n||n&&27==t.keyCode)return 27==t.which&&i.find(a).focus(),e.click();var s=\" li:not(.bk-bs-divider):visible a\",l=i.find(\"[role=menu]\"+s+\", [role=listbox]\"+s);if(l.length){var u=l.index(l.filter(\":focus\"));38==t.keyCode&&u>0&&u--,40==t.keyCode&&u<l.length-1&&u++,~u||(u=0),l.eq(u).focus()}}}};var u=o.fn.dropdown;o.fn.dropdown=function(t){return this.each(function(){var e=o(this),i=e.data(\"bk-bs.dropdown\");i||e.data(\"bk-bs.dropdown\",i=new l(this)),\"string\"==typeof t&&i[t].call(e)})},o.fn.dropdown.Constructor=l,o.fn.dropdown.noConflict=function(){return o.fn.dropdown=u,this},o(document).on(\"click.bk-bs.dropdown.data-api\",n).on(\"click.bk-bs.dropdown.data-api\",\".bk-bs-dropdown form\",function(t){t.stopPropagation()}).on(\"click.bk-bs.dropdown.data-api\",a,l.prototype.toggle).on(\"keydown.bk-bs.dropdown.data-api\",a+\", [role=menu], [role=listbox]\",l.prototype.keydown)},{jquery:17}],222:[function(t,e,i){var n=t(\"jquery\"),r=function(t,e){this.options=e,this.$element=n(t),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.find(\".bk-bs-modal-content\").load(this.options.remote,n.proxy(function(){this.$element.trigger(\"loaded.bk-bs.modal\")},this))};r.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},r.prototype.toggle=function(t){return this[this.isShown?\"hide\":\"show\"](t)},r.prototype.show=function(t){var e=this,i=n.Event(\"show.bk-bs.modal\",{relatedTarget:t});this.$element.trigger(i),this.isShown||i.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on(\"click.dismiss.bk-bs.modal\",'[data-bk-bs-dismiss=\"modal\"]',n.proxy(this.hide,this)),this.backdrop(function(){var i=n.support.transition&&e.$element.hasClass(\"bk-bs-fade\");e.$element.parent().length||e.$element.appendTo(document.body),e.$element.show().scrollTop(0),i&&e.$element[0].offsetWidth,e.$element.addClass(\"bk-bs-in\").attr(\"aria-hidden\",!1),e.enforceFocus();var r=n.Event(\"shown.bk-bs.modal\",{relatedTarget:t});i?e.$element.find(\".bk-bs-modal-dialog\").one(n.support.transition.end,function(){e.$element.focus().trigger(r)}).emulateTransitionEnd(300):e.$element.focus().trigger(r)}))},r.prototype.hide=function(t){t&&t.preventDefault(),t=n.Event(\"hide.bk-bs.modal\"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),n(document).off(\"focusin.bk-bs.modal\"),this.$element.removeClass(\"bk-bs-in\").attr(\"aria-hidden\",!0).off(\"click.dismiss.bk-bs.modal\"),n.support.transition&&this.$element.hasClass(\"bk-bs-fade\")?this.$element.one(n.support.transition.end,n.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},r.prototype.enforceFocus=function(){n(document).off(\"focusin.bk-bs.modal\").on(\"focusin.bk-bs.modal\",n.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.focus()},this))},r.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on(\"keyup.dismiss.bk-bs.modal\",n.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off(\"keyup.dismiss.bk-bs.modal\")},r.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.removeBackdrop(),t.$element.trigger(\"hidden.bk-bs.modal\")})},r.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},r.prototype.backdrop=function(t){var e=this.$element.hasClass(\"bk-bs-fade\")?\"bk-bs-fade\":\"\";if(this.isShown&&this.options.backdrop){var i=n.support.transition&&e;if(this.$backdrop=n('<div class=\"bk-bs-modal-backdrop '+e+'\" />').appendTo(document.body),this.$element.on(\"click.dismiss.bk-bs.modal\",n.proxy(function(t){t.target===t.currentTarget&&(\"static\"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass(\"bk-bs-in\"),!t)return;i?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass(\"bk-bs-in\"),n.support.transition&&this.$element.hasClass(\"bk-bs-fade\")?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()):t&&t()};var o=n.fn.modal;n.fn.modal=function(t,e){return this.each(function(){var i=n(this),o=i.data(\"bk-bs.modal\"),s=n.extend({},r.DEFAULTS,i.data(),\"object\"==typeof t&&t);o||i.data(\"bk-bs.modal\",o=new r(this,s)),\"string\"==typeof t?o[t](e):s.show&&o.show(e)})},n.fn.modal.Constructor=r,n.fn.modal.noConflict=function(){return n.fn.modal=o,this},n(document).on(\"click.bk-bs.modal.data-api\",'[data-bk-bs-toggle=\"modal\"]',function(t){var e=n(this),i=e.attr(\"href\"),r=n(e.attr(\"data-bk-bs-target\")||i&&i.replace(/.*(?=#[^\\s]+$)/,\"\")),o=r.data(\"bk-bs.modal\")?\"toggle\":n.extend({remote:!/#/.test(i)&&i},r.data(),e.data());e.is(\"a\")&&t.preventDefault(),r.modal(o,this).one(\"hide\",function(){e.is(\":visible\")&&e.focus()})}),n(document).on(\"show.bk-bs.modal\",\".bk-bs-modal\",function(){n(document.body).addClass(\"bk-bs-modal-open\")}).on(\"hidden.bk-bs.modal\",\".bk-bs-modal\",function(){n(document.body).removeClass(\"bk-bs-modal-open\")})},{jquery:17}],223:[function(t,e,i){var n=t(\"jquery\"),r=function(t){this.element=n(t)};r.prototype.show=function(){var t=this.element,e=t.closest(\"ul:not(.bk-bs-dropdown-menu)\"),i=t.data(\"bk-bs-target\");if(i||(i=t.attr(\"href\"),i=i&&i.replace(/.*(?=#[^\\s]*$)/,\"\")),!t.parent(\"li\").hasClass(\"bk-bs-active\")){var r=e.find(\".bk-bs-active:last a\")[0],o=n.Event(\"show.bk-bs.tab\",{relatedTarget:r});if(t.trigger(o),!o.isDefaultPrevented()){var s=n(i);this.activate(t.parent(\"li\"),e),this.activate(s,s.parent(),function(){t.trigger({type:\"shown.bk-bs.tab\",relatedTarget:r})})}}},r.prototype.activate=function(t,e,i){function r(){o.removeClass(\"bk-bs-active\").find(\"> .bk-bs-dropdown-menu > .bk-bs-active\").removeClass(\"bk-bs-active\"),t.addClass(\"bk-bs-active\"),s?(t[0].offsetWidth,t.addClass(\"bk-bs-in\")):t.removeClass(\"bk-bs-fade\"),t.parent(\".bk-bs-dropdown-menu\")&&t.closest(\"li.bk-bs-dropdown\").addClass(\"bk-bs-active\"),i&&i()}var o=e.find(\"> .bk-bs-active\"),s=i&&n.support.transition&&o.hasClass(\"bk-bs-fade\");s?o.one(n.support.transition.end,r).emulateTransitionEnd(150):r(),o.removeClass(\"bk-bs-in\")};var o=n.fn.tab;n.fn.tab=function(t){return this.each(function(){var e=n(this),i=e.data(\"bk-bs.tab\");i||e.data(\"bk-bs.tab\",i=new r(this)),\"string\"==typeof t&&i[t]()})},n.fn.tab.Constructor=r,n.fn.tab.noConflict=function(){return n.fn.tab=o,this},n(document).on(\"click.bk-bs.tab.data-api\",'[data-bk-bs-toggle=\"tab\"], [data-bk-bs-toggle=\"pill\"]',function(t){t.preventDefault(),n(this).tab(\"show\")})},{jquery:17}],224:[function(t,e,i){var n,r,o;!function(){\"use strict\";n=function(t,e,i,n,r,o){function s(t,e){var i,n=50,r=0;for(i=1;n>=i;i++)r+=e(Math.cos(m*(i-.5)/n))*Math.cos(m*t*(i-.5)/n);return 2*r/n}function a(t,e){var i,n,r,o,a=[],l=[],u=[[],[]];for(i=0;t+1>i;i++)u[0][i]=0,u[1][i]=0;for(u[0][0]=1,u[1][1]=1,r=1;t+1>r;r++){for(u[r+1]=[0],n=0;n<u[r].length-1;n++)u[r+1][n+1]=2*u[r][n];for(n=0;n<u[r-1].length;n++)u[r+1][n]-=u[r-1][n]}for(r=0;t>=r;r++)l[r]=s(r,e),a[r]=0;for(r=0;t>=r;r++)for(o=0;t>=o;o++)a[o]+=l[r]*u[r][o];return a[0]-=s(0,e)/2,a}function l(t){var e=2*t-1,i=e*(p-d)/2+(d+p)/2;return y*(Math.cos(i)+i*Math.sin(i))}function u(t){var e=2*t-1,i=e*(p-d)/2+(d+p)/2;return y*(Math.sin(i)-i*Math.cos(i))}function c(t,e){var i,n=1;for(i=t-e+1;t>=i;i++)n*=i;for(i=1;e>=i;i++)n/=i;return n}function h(t,e){var i,n,r=a(w,e);for(i=0,n=0;t>=n;n++)i+=c(t,n)*r[n]/c(w,n);return i}var p,d,f,g,m=Math.PI,_=t*e/2,v=i||20,y=_*Math.cos(v*m/180),b=_+t,w=n||3,x=Math.sqrt(b*b-y*y)/y,k=o||1,C=.01,M=[];for(void 0!==r&&k>r&&(C=r),p=Math.sqrt(k)*x,d=Math.sqrt(C)*x,f=0;w>=f;f++)g={},g.x=h(f,l),g.y=h(f,u),M.push(g);return M},r=function(t,e,i){function r(t,e){return Math.sqrt(e*e-t*t)/t-Math.acos(t/e)}function o(t,e){var i=Math.sin(e),n=Math.cos(e);return{x:t.x*n-t.y*i,y:t.x*i+t.y*n}}function s(t,e){return{x:t*Math.cos(e),y:t*Math.sin(e)}}var a,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k=t,C=e,M=i||20,D=k,T=1.25*k,S=T-D,A=C*k/2,P=A*Math.cos(M*Math.PI/180),I=A+D,E=A-T,R=1.5*S,N=2*Math.PI/C,z=r(P,A),O=z,j=Math.atan(R/(R+E));for(a=Math.sqrt((E+R)*(E+R)-R*R),a>P&&(a=E+S),a>P&&(O-=r(P,a)),l=1,u=.01,a>P&&(u=(a*a-P*P)/(I*I-P*P)),c=u+(l-u)/4,h=n(k,C,M,3,u,c),p=n(k,C,M,3,c,l),d=h.concat(p.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 g=s(a,-N/4-O),m={x:g.x,y:-g.y},v=s(E,N/4+O+j),y=s(E,3*N/4-O-j),_=o(g,N),x=[],x.push(\"M\",g.x,g.y),P>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\",I,I,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),P>a&&x.push(\"L\",m.x,m.y),y.y>v.y&&(x.push(\"A\",R,R,0,0,1,v.x,v.y),x.push(\"A\",E,E,0,0,0,y.x,y.y)),x.push(\"A\",R,R,0,0,1,_.x,_.y),x},o=function(t,e,i){function r(t,e){return Math.sqrt(e*e-t*t)/t-Math.acos(t/e)}function o(t,e){var i=Math.sin(e),n=Math.cos(e);return{x:t.x*n-t.y*i,y:t.x*i+t.y*n}}function s(t,e){return{x:t*Math.cos(e),y:t*Math.sin(e)}}var a,l,u,c,h,p,d,f,g,m,_,v,y,b,w,x,k,C,M,D,T,S=t,A=e,P=i||20,I=.6*S,E=1.25*S,R=A*S/2,N=R*Math.cos(P*Math.PI/180),z=R-I,O=R+E,j=.25*S,F=O-j,H=1.5*j;for(a=2*Math.PI/A,l=r(N,R),u=l,z>N&&(u-=r(N,z)),c=r(N,F)-l,h=1.414*j/F,p=1,d=.01,z>N&&(d=(z*z-N*N)/(F*F-N*N)),f=d+(p-d)/4,g=n(S,A,P,3,d,f),m=n(S,A,P,3,f,p),v=g.concat(m.slice(1)),_=[],b=0;b<v.length;b++)y=o(v[b],a/4-l),v[b]=y,_[b]={x:y.x,y:-y.y};return x={x:_[6].x,y:_[6].y},C=s(z,-a/4+u),M={x:C.x,y:-C.y},D=s(O,a/4+c+h),T=s(O,3*a/4-c-h),k=o(x,a),w=[],w.push(\"M\",_[6].x,_[6].y),w.push(\"C\",_[5].x,_[5].y,_[4].x,_[4].y,_[3].x,_[3].y,_[2].x,_[2].y,_[1].x,_[1].y,_[0].x,_[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\",v[0].x,v[0].y),w.push(\"C\",v[1].x,v[1].y,v[2].x,v[2].y,v[3].x,v[3].y,v[4].x,v[4].y,v[5].x,v[5].y,v[6].x,v[6].y),D.y<T.y&&(w.push(\"A\",H,H,0,0,0,D.x,D.y),w.push(\"A\",O,O,0,0,0,T.x,T.y)),w.push(\"A\",H,H,0,0,0,k.x,k.y),w}}(),e.exports={create_gear_tooth:r,create_internal_gear_tooth:o}},{}],225:[function(t,e,i){var n=t(\"jquery\");t(\"./jQRangeSlider\"),e.exports=n.widget(\"ui.dateRangeSlider\",n.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(){n.ui.rangeSlider.prototype._create.apply(this),this.element.addClass(\"bk-ui-dateRangeSlider\")},destroy:function(){this.element.removeClass(\"bk-ui-dateRangeSlider\"),n.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(t,e){(\"defaultValues\"===t||\"bounds\"===t)&&\"undefined\"!=typeof e&&null!==e&&this._isValidDate(e.min)&&this._isValidDate(e.max)?n.ui.rangeSlider.prototype._setOption.apply(this,[t,{min:e.min.valueOf(),max:e.max.valueOf()}]):n.ui.rangeSlider.prototype._setOption.apply(this,this._toArray(arguments))},_handleType:function(){return\"dateRangeSliderHandle\"},option:function(t){if(\"bounds\"===t||\"defaultValues\"===t){var e=n.ui.rangeSlider.prototype.option.apply(this,arguments);return{min:new Date(e.min),max:new Date(e.max)}}return n.ui.rangeSlider.prototype.option.apply(this,this._toArray(arguments))},_defaultFormatter:function(t){var e=t.getMonth()+1,i=t.getDate();\n",
       "                \n",
       "                return\"\"+t.getFullYear()+\"-\"+(10>e?\"0\"+e:e)+\"-\"+(10>i?\"0\"+i:i)},_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(t,e){var i=null;return i=this._isValidDate(t)&&this._isValidDate(e)?n.ui.rangeSlider.prototype.values.apply(this,[t.valueOf(),e.valueOf()]):n.ui.rangeSlider.prototype.values.apply(this,this._toArray(arguments)),{min:new Date(i.min),max:new Date(i.max)}},min:function(t){return new Date(this._isValidDate(t)?n.ui.rangeSlider.prototype.min.apply(this,[t.valueOf()]):n.ui.rangeSlider.prototype.min.apply(this))},max:function(t){return new Date(this._isValidDate(t)?n.ui.rangeSlider.prototype.max.apply(this,[t.valueOf()]):n.ui.rangeSlider.prototype.max.apply(this))},bounds:function(t,e){var i;return i=this._isValidDate(t)&&this._isValidDate(e)?n.ui.rangeSlider.prototype.bounds.apply(this,[t.valueOf(),e.valueOf()]):n.ui.rangeSlider.prototype.bounds.apply(this,this._toArray(arguments)),{min:new Date(i.min),max:new Date(i.max)}},_isValidDate:function(t){return\"undefined\"!=typeof t&&t instanceof Date},_toArray:function(t){return Array.prototype.slice.call(t)}})},{\"./jQRangeSlider\":226,jquery:17}],226:[function(t,e,i){var n=t(\"jquery\");t(\"jquery-ui/core\"),t(\"jquery-ui/widget\"),t(\"jquery-ui/mouse\"),t(\"jquery-mousewheel\"),e.exports=n.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(n.proxy(this.resize,this),1),setTimeout(n.proxy(this._initValues,this),1)},_setDefaultValues:function(){this._values={min:this.options.defaultValues.min,max:this.options.defaultValues.max}},_bindResize:function(){var t=this;this._resizeProxy=function(e){t.resize(e)},n(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,i){return null===t||\"undefined\"==typeof t[e]?i: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=n(\"<div class='bk-ui-rangeSlider-container' />\").css(\"position\",\"absolute\").appendTo(this.element),this.innerBar=n(\"<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(t){return n(\"<div />\")[this._handleType()](t).bind(\"sliderDrag\",n.proxy(this._changing,this)).bind(\"stop\",n.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=n(\"<div />\").prependTo(this.container).bind(\"sliderDrag scroll zoom\",n.proxy(this._changing,this)).bind(\"stop\",n.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(t){var e,i=n(\"<div class='bk-ui-rangeSlider-arrow' />\").append(\"<div class='bk-ui-rangeSlider-arrow-inner' />\").addClass(\"bk-ui-rangeSlider-\"+t+\"Arrow\").css(\"position\",\"absolute\").css(t,0).appendTo(this.element);return e=\"right\"===t?n.proxy(this._scrollRightClick,this):n.proxy(this._scrollLeftClick,this),i.bind(\"mousedown touchstart\",e),i},_proxy:function(t,e,i){var n=Array.prototype.slice.call(i);return t&&t[e]?t[e].apply(t,n):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\"),i=this._min(t,e),n=this._max(t,e),r=i!==this._values.min||n!==this._values.max;return this._values.min=this._min(t,e),this._values.max=this._max(t,e),r},_min:function(t,e){return Math.min(t,e)},_max:function(t,e){return Math.max(t,e)},_createLabel:function(t,e){var i;return null===t?(i=this._getLabelConstructorParameters(t,e),t=n(\"<div />\").appendTo(this.element)[this._labelType()](i)):(i=this._getLabelRefreshParameters(t,e),t[this._labelType()](i)),t},_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,i,n){if(!this.options.enabled)return!1;this._bar(t,i),n=n||5,n--;var r=this,o=16,s=Math.max(1,4/this._stepRatio());this._scrollTimeout=setTimeout(function(){0===n&&(e>o?e=Math.max(o,e/1.5):i=Math.min(s,2*i),n=5),r._continueScrolling(t,e,i,n)},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 t=this;this._stopScrollHandle=function(e){e.preventDefault(),t._stopScroll()},n(document).bind(\"mouseup touchend\",this._stopScrollHandle)},_stopScroll:function(){n(document).unbind(\"mouseup touchend\",this._stopScrollHandle),this._stopScrollHandle=null,this._bar(\"stopScroll\"),clearTimeout(this._scrollTimeout)},_createRuler:function(){this.ruler=n(\"<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&&n.fn.ruler&&(this.ruler.ruler(\"destroy\"),this.ruler.remove(),this.ruler=null)},_updateRuler:function(){this._destroyRuler(),this.options.scales!==!1&&n.fn.ruler&&(this._createRuler(),this._setRulerParameters())},values:function(t,e){var i;if(\"undefined\"!=typeof t&&\"undefined\"!=typeof e){if(!this._initialized)return this._values.min=t,this._values.max=e,this._values;this._deactivateLabels(),i=this._bar(\"values\",t,e),this._changed(!0),this._reactivateLabels()}else i=this._bar(\"values\",t,e);return i},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,n(window).unbind(\"resize\",this._resizeProxy),this._resizeProxy=null,this._bindResize=null,n.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}})},{jquery:17,\"jquery-mousewheel\":3,\"jquery-ui/core\":6,\"jquery-ui/mouse\":12,\"jquery-ui/widget\":16}],227:[function(t,e,i){$=t(\"jquery\"),$.fn.drag=function(t,e,i){var n=\"string\"==typeof t?t:\"\",r=$.isFunction(t)?t:$.isFunction(e)?e:null;return 0!==n.indexOf(\"drag\")&&(n=\"drag\"+n),i=(t==r?e:i)||{},r?this.bind(n,i,r):this.trigger(n)};var n=$.event,r=n.special,o=r.drag={defaults:{which:1,distance:0,not:\":input\",handle:null,relative:!1,drop:!0,click:!1},datakey:\"dragdata\",noBubble:!0,add:function(t){var e=$.data(this,o.datakey),i=t.data||{};e.related+=1,$.each(o.defaults,function(t,n){void 0!==i[t]&&(e[t]=i[t])})},remove:function(){$.data(this,o.datakey).related-=1},setup:function(){if(!$.data(this,o.datakey)){var t=$.extend({related:0},o.defaults);$.data(this,o.datakey,t),n.add(this,\"touchstart mousedown\",o.init,t),this.attachEvent&&this.attachEvent(\"ondragstart\",o.dontstart)}},teardown:function(){var t=$.data(this,o.datakey)||{};t.related||($.removeData(this,o.datakey),n.remove(this,\"touchstart mousedown\",o.init),o.textselect(!0),this.detachEvent&&this.detachEvent(\"ondragstart\",o.dontstart))},init:function(t){if(!o.touched){var e,i=t.data;if(!(0!=t.which&&i.which>0&&t.which!=i.which||$(t.target).is(i.not)||i.handle&&!$(t.target).closest(i.handle,t.currentTarget).length||(o.touched=\"touchstart\"==t.type?this:null,i.propagates=1,i.mousedown=this,i.interactions=[o.interaction(this,i)],i.target=t.target,i.pageX=t.pageX,i.pageY=t.pageY,i.dragging=null,e=o.hijack(t,\"draginit\",i),!i.propagates)))return e=o.flatten(e),e&&e.length&&(i.interactions=[],$.each(e,function(){i.interactions.push(o.interaction(this,i))})),i.propagates=i.interactions.length,i.drop!==!1&&r.drop&&r.drop.handler(t,i),o.textselect(!1),o.touched?n.add(o.touched,\"touchmove touchend\",o.handler,i):n.add(document,\"mousemove mouseup\",o.handler,i),!o.touched||i.live?!1:void 0}},interaction:function(t,e){var i=$(t)[e.relative?\"position\":\"offset\"]()||{top:0,left:0};return{drag:t,callback:new o.callback,droppable:[],offset:i}},handler:function(t){var e=t.data;switch(t.type){case!e.dragging&&\"touchmove\":t.preventDefault();case!e.dragging&&\"mousemove\":if(Math.pow(t.pageX-e.pageX,2)+Math.pow(t.pageY-e.pageY,2)<Math.pow(e.distance,2))break;t.target=e.target,o.hijack(t,\"dragstart\",e),e.propagates&&(e.dragging=!0);case\"touchmove\":t.preventDefault();case\"mousemove\":if(e.dragging){if(o.hijack(t,\"drag\",e),e.propagates){e.drop!==!1&&r.drop&&r.drop.handler(t,e);break}t.type=\"mouseup\"}case\"touchend\":case\"mouseup\":default:o.touched?n.remove(o.touched,\"touchmove touchend\",o.handler):n.remove(document,\"mousemove mouseup\",o.handler),e.dragging&&(e.drop!==!1&&r.drop&&r.drop.handler(t,e),o.hijack(t,\"dragend\",e)),o.textselect(!0),e.click===!1&&e.dragging&&$.data(e.mousedown,\"suppress.click\",(new Date).getTime()+5),e.dragging=o.touched=!1}},hijack:function(t,e,i,r,s){if(i){var a,l,u,c={event:t.originalEvent,type:t.type},h=e.indexOf(\"drop\")?\"drag\":\"drop\",p=r||0,d=isNaN(r)?i.interactions.length:r;t.type=e,t.originalEvent=null,i.results=[];do if(l=i.interactions[p]){if(\"dragend\"!==e&&l.cancelled)continue;u=o.properties(t,i,l),l.results=[],$(s||l[h]||i.droppable).each(function(r,s){return u.target=s,t.isPropagationStopped=function(){return!1},a=s?n.dispatch.call(s,t,u):null,a===!1?(\"drag\"==h&&(l.cancelled=!0,i.propagates-=1),\"drop\"==e&&(l[h][r]=null)):\"dropinit\"==e&&l.droppable.push(o.element(a)||s),\"dragstart\"==e&&(l.proxy=$(o.element(a)||l.drag)[0]),l.results.push(a),delete t.result,\"dropinit\"!==e?a:void 0}),i.results[p]=o.flatten(l.results),\"dropinit\"==e&&(l.droppable=o.flatten(l.droppable)),\"dragstart\"!=e||l.cancelled||u.update()}while(++p<d);return t.type=c.type,t.originalEvent=c.event,o.flatten(i.results)}},properties:function(t,e,i){var n=i.callback;return n.drag=i.drag,n.proxy=i.proxy||i.drag,n.startX=e.pageX,n.startY=e.pageY,n.deltaX=t.pageX-e.pageX,n.deltaY=t.pageY-e.pageY,n.originalX=i.offset.left,n.originalY=i.offset.top,n.offsetX=n.originalX+n.deltaX,n.offsetY=n.originalY+n.deltaY,n.drop=o.flatten((i.drop||[]).slice()),n.available=o.flatten((i.droppable||[]).slice()),n},element:function(t){return t&&(t.jquery||1==t.nodeType)?t:void 0},flatten:function(t){return $.map(t,function(t){return t&&t.jquery?$.makeArray(t):t&&t.length?o.flatten(t):t})},textselect:function(t){$(document)[t?\"unbind\":\"bind\"](\"selectstart\",o.dontstart).css(\"MozUserSelect\",t?\"\":\"none\"),document.unselectable=t?\"off\":\"on\"},dontstart:function(){return!1},callback:function(){}};o.callback.prototype={update:function(){r.drop&&this.available.length&&$.each(this.available,function(t){r.drop.locate(this,t)})}};var s=n.dispatch;n.dispatch=function(t){return $.data(this,\"suppress.\"+t.type)-(new Date).getTime()>0?void $.removeData(this,\"suppress.\"+t.type):s.apply(this,arguments)};var a=n.fixHooks.touchstart=n.fixHooks.touchmove=n.fixHooks.touchend=n.fixHooks.touchcancel={props:\"clientX clientY pageX pageY screenX screenY\".split(\" \"),filter:function(t,e){if(e){var i=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||null;i&&$.each(a.props,function(e,n){t[n]=i[n]})}return t}};r.draginit=r.dragstart=r.dragend=o},{jquery:17}],228:[function(t,e,i){{var n=t(\"jquery\");t(\"jquery_event_drag\")}n.fn.drop=function(t,e,i){var r=\"string\"==typeof t?t:\"\",o=n.isFunction(t)?t:n.isFunction(e)?e:null;return 0!==r.indexOf(\"drop\")&&(r=\"drop\"+r),i=(t==o?e:i)||{},o?this.bind(r,i,o):this.trigger(r)},n.drop=function(t){t=t||{},s.multi=t.multi===!0?1/0:t.multi===!1?1:isNaN(t.multi)?s.multi:t.multi,s.delay=t.delay||s.delay,s.tolerance=n.isFunction(t.tolerance)?t.tolerance:null===t.tolerance?null:s.tolerance,s.mode=t.mode||s.mode||\"intersect\"};var r=n.event,o=r.special,s=n.event.special.drop={multi:1,delay:20,mode:\"overlap\",targets:[],datakey:\"dropdata\",noBubble:!0,add:function(t){var e=n.data(this,s.datakey);e.related+=1},remove:function(){n.data(this,s.datakey).related-=1},setup:function(){if(!n.data(this,s.datakey)){var t={related:0,active:[],anyactive:0,winner:0,location:{}};n.data(this,s.datakey,t),s.targets.push(this)}},teardown:function(){var t=n.data(this,s.datakey)||{};if(!t.related){n.removeData(this,s.datakey);var e=this;s.targets=n.grep(s.targets,function(t){return t!==e})}},handler:function(t,e){var i;if(e)switch(t.type){case\"mousedown\":case\"touchstart\":i=n(s.targets),\"string\"==typeof e.drop&&(i=i.filter(e.drop)),i.each(function(){var t=n.data(this,s.datakey);t.active=[],t.anyactive=0,t.winner=0}),e.droppable=i,o.drag.hijack(t,\"dropinit\",e);break;case\"mousemove\":case\"touchmove\":s.event=t,s.timer||s.tolerate(e);break;case\"mouseup\":case\"touchend\":s.timer=clearTimeout(s.timer),e.propagates&&(o.drag.hijack(t,\"drop\",e),o.drag.hijack(t,\"dropend\",e))}},locate:function(t,e){var i=n.data(t,s.datakey),r=n(t),o=r.offset()||{},a=r.outerHeight(),l=r.outerWidth(),u={elem:t,width:l,height:a,top:o.top,left:o.left,right:o.left+l,bottom:o.top+a};return i&&(i.location=u,i.index=e,i.elem=t),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,i){return this.contains(i,[t.pageX,t.pageY])?1e9:this.modes.overlap.apply(this,arguments)},overlap:function(t,e,i){return Math.max(0,Math.min(i.bottom,e.bottom)-Math.max(i.top,e.top))*Math.max(0,Math.min(i.right,e.right)-Math.max(i.left,e.left))},fit:function(t,e,i){return this.contains(i,e)?1:0},middle:function(t,e,i){return this.contains(i,[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(t){var e,i,r,a,l,u,c,h,p=0,d=t.interactions.length,f=[s.event.pageX,s.event.pageY],g=s.tolerance||s.modes[s.mode];do if(h=t.interactions[p]){if(!h)return;h.drop=[],l=[],u=h.droppable.length,g&&(r=s.locate(h.proxy)),e=0;do if(c=h.droppable[e]){if(a=n.data(c,s.datakey),i=a.location,!i)continue;a.winner=g?g.call(s,s.event,r,i):s.contains(i,f)?1:0,l.push(a)}while(++e<u);l.sort(s.sort),e=0;do(a=l[e])&&(a.winner&&h.drop.length<s.multi?(a.active[p]||a.anyactive||(o.drag.hijack(s.event,\"dropstart\",t,p,a.elem)[0]!==!1?(a.active[p]=1,a.anyactive+=1):a.winner=0),a.winner&&h.drop.push(a.elem)):a.active[p]&&1==a.anyactive&&(o.drag.hijack(s.event,\"dropend\",t,p,a.elem),a.active[p]=0,a.anyactive-=1));while(++e<u)}while(++p<d);s.last&&f[0]==s.last.pageX&&f[1]==s.last.pageY?delete s.timer:s.timer=setTimeout(function(){s.tolerate(t)},s.delay),s.last=s.event}};o.dropinit=o.dropstart=o.dropend=s},{jquery:17,jquery_event_drag:227}],229:[function(t,e,i){var n;!function(t){function e(t){return t instanceof Array?new l(t):t.__iter__()}function i(t){return t instanceof Array?new u(t):t.__reversed__()}function n(t){return t.__next__()}function r(t){if(t instanceof Array)return t.slice();for(var e,i=[],n=t.__iter__();void 0!==(e=n.__next__());)i.push(e);return i}function o(t,e){if(t instanceof Array){for(var i=0,n=t.length;n>i;++i)if(e(t[i])===!1)return}else for(var r,o=t.__iter__();void 0!==(r=o.__next__());)if(e(r)===!1)return}function s(t,e){var i=[];if(t instanceof Array)for(var n=0,r=t.length;r>n;++n)i.push(e(t[n]));else for(var o,s=t.__iter__();void 0!==(o=s.__next__());)i.push(e(o));return i}function a(t,e){var i,n=[];if(t instanceof Array)for(var r=0,o=t.length;o>r;++r)i=t[r],e(i)&&n.push(i);else for(var s=t.__iter__();void 0!==(i=s.__next__());)e(i)&&n.push(i);return n}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=i,t.next=n,t.asArray=r,t.forEach=o,t.map=s,t.filter=a}(n||(n={}));var n;!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}(n||(n={}));var n;!function(t){function e(t,e,i){for(var n,r,o=0,s=t.length;s>0;)n=s>>1,r=o+n,i(t[r],e)<0?(o=r+1,s-=n+1):s=n;return o}function i(t,i,n){var r=e(t,i,n);if(r===t.length)return-1;var o=t[r];return 0!==n(o,i)?-1:r}function n(t,i,n){var r=e(t,i,n);if(r===t.length)return void 0;var o=t[r];return 0!==n(o,i)?void 0:o}function r(e,i){var n=t.asArray(e),r=n.length;if(1>=r)return n;n.sort(i);for(var o=[n[0]],s=1,a=0;r>s;++s){var l=n[s];0!==i(o[a],l)&&(o.push(l),++a)}return o}function o(t,e,i){for(var n=0,r=0,o=t.length,s=e.length;o>n&&s>r;){var a=i(t[n],e[r]);if(0>a)++n;else{if(!(a>0))return!1;++r}}return!0}function s(t,e,i){var n=t.length,r=e.length;if(n>r)return!1;for(var o=0,s=0;n>o&&r>s;){var a=i(t[o],e[s]);if(0>a)return!1;a>0?++s:(++o,++s)}return n>o?!1:!0}function a(t,e,i){for(var n=0,r=0,o=t.length,s=e.length,a=[];o>n&&s>r;){var l=t[n],u=e[r],c=i(l,u);0>c?(a.push(l),++n):c>0?(a.push(u),++r):(a.push(l),++n,++r)}for(;o>n;)a.push(t[n]),++n;for(;s>r;)a.push(e[r]),++r;return a}function l(t,e,i){for(var n=0,r=0,o=t.length,s=e.length,a=[];o>n&&s>r;){var l=t[n],u=e[r],c=i(l,u);0>c?++n:c>0?++r:(a.push(l),++n,++r)}return a}function u(t,e,i){for(var n=0,r=0,o=t.length,s=e.length,a=[];o>n&&s>r;){var l=t[n],u=e[r],c=i(l,u);0>c?(a.push(l),++n):c>0?++r:(++n,++r)}for(;o>n;)a.push(t[n]),++n;return a}function c(t,e,i){for(var n=0,r=0,o=t.length,s=e.length,a=[];o>n&&s>r;){var l=t[n],u=e[r],c=i(l,u);0>c?(a.push(l),++n):c>0?(a.push(u),++r):(++n,++r)}for(;o>n;)a.push(t[n]),++n;for(;s>r;)a.push(e[r]),++r;return a}t.lowerBound=e,t.binarySearch=i,t.binaryFind=n,t.asSet=r,t.setIsDisjoint=o,t.setIsSubset=s,t.setUnion=a,t.setIntersection=l,t.setDifference=u,t.setSymmetricDifference=c}(n||(n={}));var n;!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}(n||(n={}));var n,r=this.__extends||function(t,e){function i(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);i.prototype=e.prototype,t.prototype=new i};!function(t){function e(t){return function(e,i){return t(e.first,i)}}function i(t,e,i){for(var n=0,r=0,o=t.length,s=e.length,a=[];o>n&&s>r;){var l=t[n],u=e[r],c=i(l.first,u.first);0>c?(a.push(l.copy()),++n):c>0?(a.push(u.copy()),++r):(a.push(u.copy()),++n,++r)}for(;o>n;)a.push(t[n].copy()),++n;for(;s>r;)a.push(e[r].copy()),++r;return a}var n=function(n){function o(t){n.call(this),this._compare=t,this._wrapped=e(t)}return r(o,n),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,i){var n=this._array,r=t.lowerBound(n,e,this._wrapped);if(r===n.length){var o=new t.Pair(e,i());return n.push(o),o}var s=n[r];if(0!==this._compare(s.first,e)){var o=new t.Pair(e,i());return n.splice(r,0,o),o}return s},o.prototype.insert=function(e,i){var n=this._array,r=t.lowerBound(n,e,this._wrapped);if(r===n.length){var o=new t.Pair(e,i);return n.push(o),o}var s=n[r];if(0!==this._compare(s.first,e)){var o=new t.Pair(e,i);return n.splice(r,0,o),o}return s.second=i,s},o.prototype.update=function(e){var n=this;if(e instanceof o){var r=e;this._array=i(this._array,r._array,this._compare)}else t.forEach(e,function(t){n.insert(t.first,t.second)})},o.prototype.erase=function(e){var i=this._array,n=t.binarySearch(i,e,this._wrapped);return 0>n?void 0:i.splice(n,1)[0]},o.prototype.copy=function(){for(var t=new o(this._compare),e=t._array,i=this._array,n=0,r=i.length;r>n;++n)e.push(i[n].copy());return t},o}(t.ArrayBase);t.AssociativeArray=n}(n||(n={}));var n;!function(t){function e(e,n){return e instanceof i?e._array:t.asSet(e,n)}var i=function(i){function n(t){i.call(this),this._compare=t}return r(n,i),n.prototype.comparitor=function(){return this._compare},n.prototype.indexOf=function(e){return t.binarySearch(this._array,e,this._compare)},n.prototype.contains=function(e){return t.binarySearch(this._array,e,this._compare)>=0},n.prototype.insert=function(e){var i=this._array,n=t.lowerBound(i,e,this._compare);return n===i.length?(i.push(e),!0):0!==this._compare(i[n],e)?(i.splice(n,0,e),!0):!1},n.prototype.erase=function(e){var i=this._array,n=t.binarySearch(i,e,this._compare);return 0>n?!1:(i.splice(n,1),!0)},n.prototype.copy=function(){var t=new n(this._compare);return t._array=this._array.slice(),t},n.prototype.isDisjoint=function(i){var n=this._compare,r=e(i,n);return t.setIsDisjoint(this._array,r,n)},n.prototype.isSubset=function(i){var n=this._compare,r=e(i,n);return t.setIsSubset(this._array,r,n)},n.prototype.isSuperset=function(i){var n=this._compare,r=e(i,n);return t.setIsSubset(r,this._array,n)},n.prototype.union=function(i){var r=this._compare,o=new n(r),s=e(i,r);return o._array=t.setUnion(this._array,s,r),o},n.prototype.intersection=function(i){var r=this._compare,o=new n(r),s=e(i,r);return o._array=t.setIntersection(this._array,s,r),o},n.prototype.difference=function(i){var r=this._compare,o=new n(r),s=e(i,r);return o._array=t.setDifference(this._array,s,r),o},n.prototype.symmetricDifference=function(i){var r=this._compare,o=new n(r),s=e(i,r);return o._array=t.setSymmetricDifference(this._array,s,r),o},n.prototype.unionUpdate=function(i){var n=this._compare,r=e(i,n);this._array=t.setUnion(this._array,r,n)},n.prototype.intersectionUpdate=function(i){var n=this._compare,r=e(i,n);this._array=t.setIntersection(this._array,r,n)},n.prototype.differenceUpdate=function(i){var n=this._compare,r=e(i,n);this._array=t.setDifference(this._array,r,n)},n.prototype.symmetricDifferenceUpdate=function(i){var n=this._compare,r=e(i,n);this._array=t.setSymmetricDifference(this._array,r,n)},n}(t.ArrayBase);t.UniqueArray=i}(n||(n={}));var o;!function(t){!function(t){t[t.Le=0]=\"Le\",t[t.Ge=1]=\"Ge\",t[t.Eq=2]=\"Eq\"}(t.Operator||(t.Operator={}));var e=(t.Operator,function(){function e(e,n,r){\"undefined\"==typeof r&&(r=t.Strength.required),this._id=i++,this._operator=n,this._expression=e,this._strength=t.Strength.clip(r)}return e.Compare=function(t,e){return t.id()-e.id()},e.prototype.id=function(){return this._id;\n",
       "                \n",
       "                },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 i=0}(o||(o={}));var o;!function(t){function e(t){return new n.AssociativeArray(t)}t.createMap=e}(o||(o={}));var o;!function(t){var e=function(){function t(t){\"undefined\"==typeof t&&(t=\"\"),this._value=0,this._context=null,this._id=i++,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 i=0}(o||(o={}));var o;!function(t){function e(e){for(var i=0,n=function(){return 0},r=t.createMap(t.Variable.Compare),o=0,s=e.length;s>o;++o){var a=e[o];if(\"number\"==typeof a)i+=a;else if(a instanceof t.Variable)r.setDefault(a,n).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\");r.setDefault(u,n).second+=l}}return{terms:r,constant:i}}var i=function(){function t(){var t=e(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 n.forEach(this._terms,function(e){t+=e.first.value()*e.second}),t},t}();t.Expression=i}(o||(o={}));var o;!function(t){!function(t){function e(t,e,i,n){\"undefined\"==typeof n&&(n=1);var r=0;return r+=1e6*Math.max(0,Math.min(1e3,t*n)),r+=1e3*Math.max(0,Math.min(1e3,e*n)),r+=Math.max(0,Math.min(1e3,i*n))}function i(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=i}(t.Strength||(t.Strength={}));t.Strength}(o||(o={}));var o;!function(t){function e(t){var e=1e-8;return 0>t?e>-t:e>t}function i(){return t.createMap(t.Constraint.Compare)}function n(){return t.createMap(l.Compare)}function r(){return t.createMap(t.Variable.Compare)}function o(){return t.createMap(t.Variable.Compare)}var s=function(){function s(){this._cnMap=i(),this._rowMap=n(),this._varMap=r(),this._editMap=o(),this._infeasibleRows=[],this._objective=new c,this._artificial=null,this._idTick=0}return s.prototype.addConstraint=function(t){var i=this._cnMap.find(t);if(void 0!==i)throw new Error(\"duplicate constraint\");var n=this._createRow(t),r=n.row,o=n.tag,s=this._chooseSubject(r,o);if(0===s.type()&&r.allDummies()){if(!e(r.constant()))throw new Error(\"unsatifiable constraint\");s=o.marker}if(0===s.type()){if(!this._addWithArtificialVariable(r))throw new Error(\"unsatisfiable constraint\")}else r.solveFor(s),this._substitute(s,r),this._rowMap.insert(s,r);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 i=e.second.marker,n=this._rowMap.erase(i);if(void 0===n){var r=this._getMarkerLeavingSymbol(i);if(0===r.type())throw new Error(\"failed to find leaving row\");n=this._rowMap.erase(r),n.second.solveForEx(r,i),this._substitute(i,n.second)}this._optimize(this._objective)},s.prototype.hasConstraint=function(t){return this._cnMap.contains(t)},s.prototype.addEditVariable=function(e,i){var n=this._editMap.find(e);if(void 0!==n)throw new Error(\"duplicate edit variable\");if(i=t.Strength.clip(i),i===t.Strength.required)throw new Error(\"bad required strength\");var r=new t.Expression(e),o=new t.Constraint(r,2,i);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 i=this._editMap.find(t);if(void 0===i)throw new Error(\"unknown edit variable\");var n=this._rowMap,r=i.second,o=e-r.constant;r.constant=e;var s=r.tag.marker,a=n.find(s);if(void 0!==a)return a.second.add(-o)<0&&this._infeasibleRows.push(s),void this._dualOptimize();var l=r.tag.other,a=n.find(l);if(void 0!==a)return a.second.add(o)<0&&this._infeasibleRows.push(l),void this._dualOptimize();for(var u=0,c=n.size();c>u;++u){var a=n.itemAt(u),h=a.second,p=h.coefficientFor(s);0!==p&&h.add(o*p)<0&&1!==a.first.type()&&this._infeasibleRows.push(a.first)}this._dualOptimize()},s.prototype.updateVariables=function(){for(var t=this._varMap,e=this._rowMap,i=0,n=t.size();n>i;++i){var r=t.itemAt(i),o=e.find(r.second);r.first.setValue(void 0!==o?o.second.constant():0)}},s.prototype._getVarSymbol=function(t){var e=this,i=function(){return e._makeSymbol(1)};return this._varMap.setDefault(t,i).second},s.prototype._createRow=function(i){for(var n=i.expression(),r=new c(n.constant()),o=n.terms(),s=0,a=o.size();a>s;++s){var l=o.itemAt(s);if(!e(l.second)){var h=this._getVarSymbol(l.first),p=this._rowMap.find(h);void 0!==p?r.insertRow(p.second,l.second):r.insertSymbol(h,l.second)}}var d=this._objective,f=i.strength(),g={marker:u,other:u};switch(i.op()){case 0:case 1:var m=0===i.op()?1:-1,_=this._makeSymbol(2);if(g.marker=_,r.insertSymbol(_,m),f<t.Strength.required){var v=this._makeSymbol(3);g.other=v,r.insertSymbol(v,-m),d.insertSymbol(v,f)}break;case 2:if(f<t.Strength.required){var y=this._makeSymbol(3),b=this._makeSymbol(3);g.marker=y,g.other=b,r.insertSymbol(y,-1),r.insertSymbol(b,1),d.insertSymbol(y,f),d.insertSymbol(b,f)}else{var w=this._makeSymbol(4);g.marker=w,r.insertSymbol(w)}}return r.constant()<0&&r.reverseSign(),{row:r,tag:g}},s.prototype._chooseSubject=function(t,e){for(var i=t.cells(),n=0,r=i.size();r>n;++n){var o=i.itemAt(n);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 i=this._makeSymbol(2);this._rowMap.insert(i,t.copy()),this._artificial=t.copy(),this._optimize(this._artificial);var n=e(this._artificial.constant());this._artificial=null;var r=this._rowMap.erase(i);if(void 0!==r){var o=r.second;if(o.isConstant())return n;var s=this._anyPivotableSymbol(o);if(0===s.type())return!1;o.solveForEx(i,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(i);return this._objective.removeSymbol(i),n},s.prototype._substitute=function(t,e){for(var i=this._rowMap,n=0,r=i.size();r>n;++n){var o=i.itemAt(n);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 i=this._getLeavingSymbol(e);if(0===i.type())throw new Error(\"the objective is unbounded\");var n=this._rowMap.erase(i).second;n.solveForEx(i,e),this._substitute(e,n),this._rowMap.insert(e,n)}},s.prototype._dualOptimize=function(){for(var t=this._rowMap,e=this._infeasibleRows;0!==e.length;){var i=e.pop(),n=t.find(i);if(void 0!==n&&n.second.constant()<0){var r=this._getDualEnteringSymbol(n.second);if(0===r.type())throw new Error(\"dual optimize failed\");var o=n.second;t.erase(i),o.solveForEx(i,r),this._substitute(r,o),t.insert(r,o)}}},s.prototype._getEnteringSymbol=function(t){for(var e=t.cells(),i=0,n=e.size();n>i;++i){var r=e.itemAt(i),o=r.first;if(r.second<0&&4!==o.type())return o}return u},s.prototype._getDualEnteringSymbol=function(t){for(var e=Number.MAX_VALUE,i=u,n=t.cells(),r=0,o=n.size();o>r;++r){var s=n.itemAt(r),a=s.first,l=s.second;if(l>0&&4!==a.type()){var c=this._objective.coefficientFor(a),h=c/l;e>h&&(e=h,i=a)}}return i},s.prototype._getLeavingSymbol=function(t){for(var e=Number.MAX_VALUE,i=u,n=this._rowMap,r=0,o=n.size();o>r;++r){var s=n.itemAt(r),a=s.first;if(1!==a.type()){var l=s.second,c=l.coefficientFor(t);if(0>c){var h=-l.constant()/c;e>h&&(e=h,i=a)}}}return i},s.prototype._getMarkerLeavingSymbol=function(t){for(var e=Number.MAX_VALUE,i=e,n=e,r=u,o=r,s=r,a=r,l=this._rowMap,c=0,h=l.size();h>c;++c){var p=l.itemAt(c),d=p.second,f=d.coefficientFor(t);if(0!==f){var g=p.first;if(1===g.type())a=g;else if(0>f){var m=-d.constant()/f;i>m&&(i=m,o=g)}else{var m=d.constant()/f;n>m&&(n=m,s=g)}}}return o!==r?o:s!==r?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 i=this._rowMap.find(t);void 0!==i?this._objective.insertRow(i.second,-e):this._objective.insertSymbol(t,-e)},s.prototype._anyPivotableSymbol=function(t){for(var e=t.cells(),i=0,n=e.size();n>i;++i){var r=e.itemAt(i),o=r.first.type();if(2===o||3===o)return r.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 i(e){\"undefined\"==typeof e&&(e=0),this._cellMap=t.createMap(l.Compare),this._constant=e}return i.prototype.cells=function(){return this._cellMap},i.prototype.constant=function(){return this._constant},i.prototype.isConstant=function(){return this._cellMap.empty()},i.prototype.allDummies=function(){for(var t=this._cellMap,e=0,i=t.size();i>e;++e){var n=t.itemAt(e);if(4!==n.first.type())return!1}return!0},i.prototype.copy=function(){var t=new i(this._constant);return t._cellMap=this._cellMap.copy(),t},i.prototype.add=function(t){return this._constant+=t},i.prototype.insertSymbol=function(t,i){\"undefined\"==typeof i&&(i=1);var n=this._cellMap.setDefault(t,function(){return 0});e(n.second+=i)&&this._cellMap.erase(t)},i.prototype.insertRow=function(t,e){\"undefined\"==typeof e&&(e=1),this._constant+=t._constant*e;for(var i=t._cellMap,n=0,r=i.size();r>n;++n){var o=i.itemAt(n);this.insertSymbol(o.first,o.second*e)}},i.prototype.removeSymbol=function(t){this._cellMap.erase(t)},i.prototype.reverseSign=function(){this._constant=-this._constant;for(var t=this._cellMap,e=0,i=t.size();i>e;++e){var n=t.itemAt(e);n.second=-n.second}},i.prototype.solveFor=function(t){var e=this._cellMap,i=e.erase(t),n=-1/i.second;this._constant*=n;for(var r=0,o=e.size();o>r;++r)e.itemAt(r).second*=n},i.prototype.solveForEx=function(t,e){this.insertSymbol(t,-1),this.solveFor(e)},i.prototype.coefficientFor=function(t){var e=this._cellMap.find(t);return void 0!==e?e.second:0},i.prototype.substitute=function(t,e){var i=this._cellMap.erase(t);void 0!==i&&this.insertRow(e,i.second)},i}()}(o||(o={})),e.exports=o},{}],230:[function(t,e,i){function n(t,e,i,n){var r,o,s=Math.pow(10,e);return o=(i(t*s)/s).toFixed(e),n&&(r=new RegExp(\"0{1,\"+n+\"}$\"),o=o.replace(r,\"\")),o}function r(t,e,i,n){var r;return r=e.indexOf(\"$\")>-1?o(t,e,i,n):e.indexOf(\"%\")>-1?s(t,e,i,n):e.indexOf(\":\")>-1?a(t,e,i):l(t,e,i,n)}function o(t,e,i,n){var r,o,s=e.indexOf(\"$\"),a=e.indexOf(\"(\"),u=e.indexOf(\"-\"),c=\"\";return e.indexOf(\" $\")>-1?(c=\" \",e=e.replace(\" $\",\"\")):e.indexOf(\"$ \")>-1?(c=\" \",e=e.replace(\"$ \",\"\")):e=e.replace(\"$\",\"\"),o=l(t,e,i,n),1>=s?o.indexOf(\"(\")>-1||o.indexOf(\"-\")>-1?(o=o.split(\"\"),r=1,(a>s||u>s)&&(r=0),o.splice(r,0,i.currency.symbol+c),o=o.join(\"\")):o=i.currency.symbol+c+o:o.indexOf(\")\")>-1?(o=o.split(\"\"),o.splice(-1,0,c+i.currency.symbol),o=o.join(\"\")):o=o+c+i.currency.symbol,o}function s(t,e,i,n){var r,o=\"\",t=100*t;return e.indexOf(\" %\")>-1?(o=\" \",e=e.replace(\" %\",\"\")):e=e.replace(\"%\",\"\"),r=l(t,e,i,n),r.indexOf(\")\")>-1?(r=r.split(\"\"),r.splice(-1,0,o+\"%\"),r=r.join(\"\")):r=r+o+\"%\",r}function a(t,e){var i=Math.floor(t/60/60),n=Math.floor((t-60*i*60)/60),r=Math.round(t-60*i*60-60*n);return i+\":\"+(10>n?\"0\"+n:n)+\":\"+(10>r?\"0\"+r:r)}function l(t,e,i,r){var o,s,a,l,u,c,h=!1,p=!1,d=!1,f=\"\",g=!1,m=!1,_=!1,v=!1,y=!1,b=\"\",w=\"\",x=Math.abs(t),k=[\"B\",\"KB\",\"MB\",\"GB\",\"TB\",\"PB\",\"EB\",\"ZB\",\"YB\"],C=\"\",M=!1;if(e.indexOf(\"(\")>-1?(h=!0,e=e.slice(1,-1)):e.indexOf(\"+\")>-1&&(p=!0,e=e.replace(/\\+/g,\"\")),e.indexOf(\"a\")>-1&&(g=e.indexOf(\"aK\")>=0,m=e.indexOf(\"aM\")>=0,_=e.indexOf(\"aB\")>=0,v=e.indexOf(\"aT\")>=0,y=g||m||_||v,e.indexOf(\" a\")>-1?(f=\" \",e=e.replace(\" a\",\"\")):e=e.replace(\"a\",\"\"),x>=Math.pow(10,12)&&!y||v?(f+=i.abbreviations.trillion,t/=Math.pow(10,12)):x<Math.pow(10,12)&&x>=Math.pow(10,9)&&!y||_?(f+=i.abbreviations.billion,t/=Math.pow(10,9)):x<Math.pow(10,9)&&x>=Math.pow(10,6)&&!y||m?(f+=i.abbreviations.million,t/=Math.pow(10,6)):(x<Math.pow(10,6)&&x>=Math.pow(10,3)&&!y||g)&&(f+=i.abbreviations.thousand,t/=Math.pow(10,3))),e.indexOf(\"b\")>-1)for(e.indexOf(\" b\")>-1?(b=\" \",e=e.replace(\" b\",\"\")):e=e.replace(\"b\",\"\"),a=0;a<=k.length;a++)if(o=Math.pow(1024,a),s=Math.pow(1024,a+1),t>=o&&s>t){b+=k[a],o>0&&(t/=o);break}return e.indexOf(\"o\")>-1&&(e.indexOf(\" o\")>-1?(w=\" \",e=e.replace(\" o\",\"\")):e=e.replace(\"o\",\"\"),w+=i.ordinal(t)),e.indexOf(\"[.]\")>-1&&(d=!0,e=e.replace(\"[.]\",\".\")),l=t.toString().split(\".\")[0],u=e.split(\".\")[1],c=e.indexOf(\",\"),u?(u.indexOf(\"[\")>-1?(u=u.replace(\"]\",\"\"),u=u.split(\"[\"),C=n(t,u[0].length+u[1].length,r,u[1].length)):C=n(t,u.length,r),l=C.split(\".\")[0],C=C.split(\".\")[1].length?i.delimiters.decimal+C.split(\".\")[1]:\"\",d&&0===Number(C.slice(1))&&(C=\"\")):l=n(t,null,r),l.indexOf(\"-\")>-1&&(l=l.slice(1),M=!0),c>-1&&(l=l.toString().replace(/(\\d)(?=(\\d{3})+(?!\\d))/g,\"$1\"+i.delimiters.thousands)),0===e.indexOf(\".\")&&(l=\"\"),(h&&M?\"(\":\"\")+(!h&&M?\"-\":\"\")+(!M&&p?\"+\":\"\")+l+C+(w?w:\"\")+(f?f:\"\")+(b?b:\"\")+(h&&M?\")\":\"\")}function u(t,e){p[t]=e}function c(t,e,i,n){return r(Number(t),h.isString(e)?e:d,h.isString(i)?p[i]:p[f],h.isUndefined(n)?Math.round:n)}var h=t(\"underscore\"),p={},d=\"0,0\",f=\"en\";u(\"en\",{delimiters:{thousands:\",\",decimal:\".\"},abbreviations:{thousand:\"k\",million:\"m\",billion:\"b\",trillion:\"t\"},ordinal:function(t){var e=t%10;return 1===~~(t%100/10)?\"th\":1===e?\"st\":2===e?\"nd\":3===e?\"rd\":\"th\"},currency:{symbol:\"$\"}}),e.exports={format:c}},{underscore:22}],231:[function(t,e,i){function n(t){function e(t){p=t,d.subscribe(p.onSelectedRowsChanged,n).subscribe(p.onClick,a).subscribe(p.onHeaderClick,u).subscribe(p.onKeyDown,s)}function i(){d.unsubscribeAll()}function n(t,e){var i,n,r=p.getSelectedRows(),o={};for(n=0;n<r.length;n++)i=r[n],o[i]=!0,o[i]!==f[i]&&(p.invalidateRow(i),delete f[i]);for(n in f)p.invalidateRow(n);f=o,p.render(),r.length&&r.length==p.getDataLength()?p.updateColumnHeader(m.columnId,\"<input type='checkbox' checked='checked'>\",m.toolTip):p.updateColumnHeader(m.columnId,\"<input type='checkbox'>\",m.toolTip)}function s(t,e){32==t.which&&p.getColumns()[e.cell].id===m.columnId&&((!p.getEditorLock().isActive()||p.getEditorLock().commitCurrentEdit())&&l(e.row),t.preventDefault(),t.stopImmediatePropagation())}function a(t,e){if(p.getColumns()[e.cell].id===m.columnId&&r(t.target).is(\":checkbox\")){if(p.getEditorLock().isActive()&&!p.getEditorLock().commitCurrentEdit())return t.preventDefault(),void t.stopImmediatePropagation();l(e.row),t.stopPropagation(),t.stopImmediatePropagation()}}function l(t){p.setSelectedRows(f[t]?r.grep(p.getSelectedRows(),function(e){return e!=t}):p.getSelectedRows().concat(t))}function u(t,e){if(e.column.id==m.columnId&&r(t.target).is(\":checkbox\")){if(p.getEditorLock().isActive()&&!p.getEditorLock().commitCurrentEdit())return t.preventDefault(),void t.stopImmediatePropagation();if(r(t.target).is(\":checked\")){for(var i=[],n=0;n<p.getDataLength();n++)i.push(n);p.setSelectedRows(i)}else p.setSelectedRows([]);t.stopPropagation(),t.stopImmediatePropagation()}}function c(){return{id:m.columnId,name:\"<input type='checkbox'>\",toolTip:m.toolTip,field:\"sel\",width:m.width,resizable:!1,sortable:!1,cssClass:m.cssClass,formatter:h}}function h(t,e,i,n,r){return r?f[t]?\"<input type='checkbox' checked='checked'>\":\"<input type='checkbox'>\":null}var p,d=new o.EventHandler,f={},g={columnId:\"_checkbox_selector\",cssClass:null,toolTip:\"Select/Deselect All\",width:30},m=r.extend(!0,{},g,t);r.extend(this,{init:e,destroy:i,getColumnDefinition:c})}var r=t(\"jquery\"),o=t(\"../slick.core\");e.exports=n},{\"../slick.core\":233,jquery:17}],232:[function(t,e,i){function n(t){function e(e){v=r.extend(!0,{},x,t),m=e,w.subscribe(m.onActiveCellChanged,n(d)),w.subscribe(m.onKeyDown,n(f)),w.subscribe(m.onClick,n(g))}function i(){w.unsubscribeAll()}function n(t){return function(){_||(_=!0,t.apply(this,arguments),_=!1)}}function s(t){for(var e=[],i=0;i<t.length;i++)for(var n=t[i].fromRow;n<=t[i].toRow;n++)e.push(n);return e}function a(t){for(var e=[],i=m.getColumns().length-1,n=0;n<t.length;n++)e.push(new o.Range(t[n],0,t[n],i));return e}function l(t,e){var i,n=[];for(i=t;e>=i;i++)n.push(i);for(i=e;t>i;i++)n.push(i);return n}function u(){return s(y)}function c(t){h(a(t))}function h(t){y=t,b.onSelectedRangesChanged.notify(y)}function p(){return y}function d(t,e){v.selectActiveRow&&null!=e.row&&h([new o.Range(e.row,0,e.row,m.getColumns().length-1)])}function f(t){var e=m.getActiveCell();if(e&&t.shiftKey&&!t.ctrlKey&&!t.altKey&&!t.metaKey&&(38==t.which||40==t.which)){var i=u();i.sort(function(t,e){return t-e}),i.length||(i=[e.row]);var n,r=i[0],o=i[i.length-1];n=40==t.which?e.row<o||r==o?++o:++r:e.row<o?--o:--r,n>=0&&n<m.getDataLength()&&(m.scrollRowIntoView(n),y=a(l(r,o)),h(y)),t.preventDefault(),t.stopPropagation()}}function g(t){var e=m.getCellFromEvent(t);if(!e||!m.canCellBeActive(e.row,e.cell))return!1;if(!m.getOptions().multiSelect||!t.ctrlKey&&!t.shiftKey&&!t.metaKey)return!1;var i=s(y),n=r.inArray(e.row,i);if(-1===n&&(t.ctrlKey||t.metaKey))i.push(e.row),m.setActiveCell(e.row,e.cell);else if(-1!==n&&(t.ctrlKey||t.metaKey))i=r.grep(i,function(t,i){return t!==e.row}),m.setActiveCell(e.row,e.cell);else if(i.length&&t.shiftKey){var o=i.pop(),l=Math.min(e.row,o),u=Math.max(e.row,o);i=[];for(var c=l;u>=c;c++)c!==o&&i.push(c);i.push(o),m.setActiveCell(e.row,e.cell)}return y=a(i),h(y),t.stopImmediatePropagation(),!0}var m,_,v,y=[],b=this,w=new o.EventHandler,x={selectActiveRow:!0};r.extend(this,{getSelectedRows:u,setSelectedRows:c,getSelectedRanges:p,setSelectedRanges:h,init:e,destroy:i,onSelectedRangesChanged:new o.Event})}var r=t(\"jquery\"),o=t(\"../slick.core\");e.exports=n},{\"../slick.core\":233,jquery:17}],233:[function(t,e,i){function n(){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 r(){var t=[];this.subscribe=function(e){t.push(e)},this.unsubscribe=function(e){for(var i=t.length-1;i>=0;i--)t[i]===e&&t.splice(i,1)},this.notify=function(e,i,r){i=i||new n,r=r||this;for(var o,s=0;s<t.length&&!i.isPropagationStopped()&&!i.isImmediatePropagationStopped();s++)o=t[s].call(r,i,e);return o}}function o(){var t=[];this.subscribe=function(e,i){return t.push({event:e,handler:i}),e.subscribe(i),this},this.unsubscribe=function(e,i){for(var n=t.length;n--;)if(t[n].event===e&&t[n].handler===i)return t.splice(n,1),void e.unsubscribe(i);return this},this.unsubscribeAll=function(){for(var e=t.length;e--;)t[e].event.unsubscribe(t[e].handler);return t=[],this}}function s(t,e,i,n){void 0===i&&void 0===n&&(i=t,n=e),this.fromRow=Math.min(t,i),this.fromCell=Math.min(e,n),this.toRow=Math.max(t,i),this.toCell=Math.max(e,n),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 a(){this.__nonDataRow=!0}function l(){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 u(){this.__groupTotals=!0,this.group=null,this.initialized=!1}function c(){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 h=(t(\"jquery\"),{Event:r,EventData:n,EventHandler:o,Range:s,NonDataRow:a,Group:l,GroupTotals:u,EditorLock:c,GlobalEditorLock:new c});l.prototype=new a,l.prototype.equals=function(t){return this.value===t.value&&this.count===t.count&&this.collapsed===t.collapsed&&this.title===t.title},u.prototype=new a,e.exports=h},{jquery:17}],234:[function(require,module,exports){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))}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,i=columns.length;i>e;e++){var n=columns[e].width;t+=n}return t+=scrollbarDimensions.width,Math.max(t,viewportW)+1e3}function getCanvasWidth(){for(var t=viewportHasVScroll?viewportW-scrollbarDimensions.width:viewportW,e=0,i=columns.length;i--;)e+=columns[i].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,i=$(\"<div style='display:none' />\").appendTo(document.body);;){var n=2*t;if(i.css(\"height\",n),n>e||i.height()!==n)break;t=n}return i.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,i){if(initialized){var n=getColumnIndex(t);if(null!=n){var r=columns[n],o=$headers.children().eq(n);o&&(void 0!==e&&(columns[n].name=e),void 0!==i&&(columns[n].toolTip=i),trigger(self.onBeforeHeaderCellDestroy,{node:o[0],column:r}),o.attr(\"title\",i||\"\").children().eq(0).html(e),trigger(self.onHeaderCellRendered,{node:o[0],column:r}))}}}function getHeaderRow(){return $headerRow[0]}function getHeaderRowColumn(t){var e=getColumnIndex(t),i=$headerRow.children().eq(e);return i&&i[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 i=0;i<columns.length;i++){var n=columns[i],r=$(\"<div class='bk-ui-state-default bk-slick-header-column' />\").html(\"<span class='bk-slick-column-name'>\"+n.name+\"</span>\").width(n.width-headerColumnWidthDiff).attr(\"id\",\"\"+uid+n.id).attr(\"title\",n.toolTip||\"\").data(\"column\",n).addClass(n.headerCssClass||\"\").appendTo($headers);if((options.enableColumnReorder||n.sortable)&&r.on(\"mouseenter\",t).on(\"mouseleave\",e),n.sortable&&(r.addClass(\"bk-slick-header-sortable\"),r.append(\"<span class='bk-slick-sort-indicator' />\")),trigger(self.onHeaderCellRendered,{node:r[0],column:n}),options.showHeaderRow){var o=$(\"<div class='bk-ui-state-default bk-slick-headerrow-column l\"+i+\" r\"+i+\"'></div>\").data(\"column\",n).appendTo($headerRow);trigger(self.onHeaderRowCellRendered,{node:o[0],column:n})}}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 i=e.data(\"column\");if(i.sortable){if(!getEditorLock().commitCurrentEdit())return;for(var n=null,r=0;r<sortColumns.length;r++)if(sortColumns[r].columnId==i.id){n=sortColumns[r],n.sortAsc=!n.sortAsc;break}t.metaKey&&options.multiColumnSort?n&&sortColumns.splice(r,1):((t.shiftKey||t.metaKey)&&options.multiColumnSort||(sortColumns=[]),n?0==sortColumns.length&&sortColumns.push(n):(n={columnId:i.id,sortAsc:i.defaultSortAsc},sortColumns.push(n))),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:i,sortAsc:n.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\"),i=[],n=0;n<e.length;n++)i.push(columns[getColumnIndex(e[n].replace(uid,\"\"))]);setColumns(i),trigger(self.onColumnsReordered,{}),t.stopPropagation(),\n",
       "                setupColumnResize()}})}function setupColumnResize(){var t,e,i,n,r,o,s,a,l;r=$headers.children(),r.find(\".bk-slick-resizable-handle\").remove(),r.each(function(t,e){columns[t].resizable&&(void 0===a&&(a=t),l=t)}),void 0!==a&&r.each(function(u,c){a>u||options.forceFitColumns&&u>=l||(t=$(c),$(\"<div class='bk-slick-resizable-handle' />\").appendTo(c).bind(\"dragstart\",function(t,a){if(!getEditorLock().commitCurrentEdit())return!1;n=t.pageX,$(this).parent().addClass(\"bk-slick-header-column-active\");var l=null,c=null;if(r.each(function(t,e){columns[t].previousWidth=$(e).outerWidth()}),options.forceFitColumns)for(l=0,c=0,e=u+1;e<r.length;e++)i=columns[e],i.resizable&&(null!==c&&(i.maxWidth?c+=i.maxWidth-i.previousWidth:c=null),l+=i.previousWidth-Math.max(i.minWidth||0,absoluteColumnMinWidth));var h=0,p=0;for(e=0;u>=e;e++)i=columns[e],i.resizable&&(null!==p&&(i.maxWidth?p+=i.maxWidth-i.previousWidth:p=null),h+=i.previousWidth-Math.max(i.minWidth||0,absoluteColumnMinWidth));null===l&&(l=1e5),null===h&&(h=1e5),null===c&&(c=1e5),null===p&&(p=1e5),s=n+Math.min(l,p),o=n-Math.min(h,c)}).bind(\"drag\",function(t,a){var l,c,h=Math.min(s,Math.max(o,t.pageX))-n;if(0>h){for(c=h,e=u;e>=0;e--)i=columns[e],i.resizable&&(l=Math.max(i.minWidth||0,absoluteColumnMinWidth),c&&i.previousWidth+c<l?(c+=i.previousWidth-l,i.width=l):(i.width=i.previousWidth+c,c=0));if(options.forceFitColumns)for(c=-h,e=u+1;e<r.length;e++)i=columns[e],i.resizable&&(c&&i.maxWidth&&i.maxWidth-i.previousWidth<c?(c-=i.maxWidth-i.previousWidth,i.width=i.maxWidth):(i.width=i.previousWidth+c,c=0))}else{for(c=h,e=u;e>=0;e--)i=columns[e],i.resizable&&(c&&i.maxWidth&&i.maxWidth-i.previousWidth<c?(c-=i.maxWidth-i.previousWidth,i.width=i.maxWidth):(i.width=i.previousWidth+c,c=0));if(options.forceFitColumns)for(c=-h,e=u+1;e<r.length;e++)i=columns[e],i.resizable&&(l=Math.max(i.minWidth||0,absoluteColumnMinWidth),c&&i.previousWidth+c<l?(c+=i.previousWidth-l,i.width=l):(i.width=i.previousWidth+c,c=0))}applyColumnHeaderWidths(),options.syncColumnCellResize&&applyColumnWidths()}).bind(\"dragend\",function(t,n){var o;for($(this).parent().removeClass(\"bk-slick-header-column-active\"),e=0;e<r.length;e++)i=columns[e],o=$(r[e]).outerWidth(),i.previousWidth!==o&&i.rerenderOnResize&&invalidateAllRows();updateCanvasWidth(!0),render(),trigger(self.onColumnsResized,{})}))})}function getVBoxDelta(t){var e=[\"borderTopWidth\",\"borderBottomWidth\",\"paddingTop\",\"paddingBottom\"],i=0;return $.each(e,function(e,n){i+=parseFloat(t.css(n))||0}),i}function measureCellPaddingAndBorder(){var t,e=[\"borderLeftWidth\",\"borderRightWidth\",\"paddingLeft\",\"paddingRight\"],i=[\"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,i){headerColumnWidthDiff+=parseFloat(t.css(i))||0}),$.each(i,function(e,i){headerColumnHeightDiff+=parseFloat(t.css(i))||0})),t.remove();var n=$(\"<div class='bk-slick-row' />\").appendTo($canvas);t=$(\"<div class='bk-slick-cell' id='' style='visibility:hidden'>-</div>\").appendTo(n),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,i){cellWidthDiff+=parseFloat(t.css(i))||0}),$.each(i,function(e,i){cellHeightDiff+=parseFloat(t.css(i))||0})),n.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; }\"],i=0;i<columns.length;i++)e.push(\".\"+uid+\" .l\"+i+\" { }\"),e.push(\".\"+uid+\" .r\"+i+\" { }\");$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,i=0;i<e.length;i++)if((e[i].ownerNode||e[i].owningElement)==$style[0]){stylesheet=e[i];break}if(!stylesheet)throw new Error(\"Cannot find stylesheet.\");columnCssRulesL=[],columnCssRulesR=[];for(var n,r,o=stylesheet.cssRules||stylesheet.rules,i=0;i<o.length;i++){var s=o[i].selectorText;(n=/\\.l\\d+/.exec(s))?(r=parseInt(n[0].substr(2,n[0].length-2),10),columnCssRulesL[r]=o[i]):(n=/\\.r\\d+/.exec(s))&&(r=parseInt(n[0].substr(2,n[0].length-2),10),columnCssRulesR[r]=o[i])}}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,i){return i=i||new Slick.EventData,e=e||{},e.grid=self,t.notify(e,i,self)}function getEditorLock(){return options.editorLock}function getEditController(){return editController}function getColumnIndex(t){return columnsById[t]}function autosizeColumns(){var t,e,i,n=[],r=0,o=0,s=viewportHasVScroll?viewportW-scrollbarDimensions.width:viewportW;for(t=0;t<columns.length;t++)e=columns[t],n.push(e.width),o+=e.width,e.resizable&&(r+=e.width-Math.max(e.minWidth,absoluteColumnMinWidth));for(i=o;o>s&&r;){var a=(o-s)/r;for(t=0;t<columns.length&&o>s;t++){e=columns[t];var l=n[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,r-=c,n[t]-=c}}if(o>=i)break;i=o}for(i=o;s>o;){var h=s/o;for(t=0;t<columns.length&&s>o;t++){e=columns[t];var p,d=n[t];p=!e.resizable||e.maxWidth<=d?0:Math.min(Math.floor(h*d)-d,e.maxWidth-d||1e6)||1,o+=p,n[t]+=p}if(i>=o)break;i=o}var f=!1;for(t=0;t<columns.length;t++)columns[t].rerenderOnResize&&columns[t].width!=n[t]&&(f=!0),columns[t].width=n[t];applyColumnHeaderWidths(),updateCanvasWidth(!0),f&&(invalidateAllRows(),render())}function applyColumnHeaderWidths(){if(initialized){for(var t,e=0,i=$headers.children(),n=i.length;n>e;e++)t=$(i[e]),t.width()!==columns[e].width-headerColumnWidthDiff&&t.width(columns[e].width-headerColumnWidthDiff);updateColumnCaches()}}function applyColumnWidths(){for(var t,e,i=0,n=0;n<columns.length;n++)t=columns[n].width,e=getColumnCssRules(n),e.left.style.left=i+\"px\",e.right.style.right=canvasWidth-i-t+\"px\",i+=columns[n].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,i){null==i.sortAsc&&(i.sortAsc=!0);var n=getColumnIndex(i.columnId);null!=n&&e.eq(n).addClass(\"bk-slick-header-column-sorted\").find(\".bk-slick-sort-indicator\").addClass(i.sortAsc?\"bk-slick-sort-indicator-asc\":\"bk-slick-sort-indicator-desc\")})}function getSortColumns(){return sortColumns}function handleSelectedRangesChanged(t,e){selectedRows=[];for(var i={},n=0;n<e.length;n++)for(var r=e[n].fromRow;r<=e[n].toRow;r++){i[r]||(selectedRows.push(r),i[r]={});for(var o=e[n].fromCell;o<=e[n].toCell;o++)canCellBeSelected(r,o)&&(i[r][columns[o].id]=options.selectedCellCssClass)}setCellCssStyles(options.selectedCellCssClass,i),trigger(self.onSelectedRowsChanged,{rows:getSelectedRows()},t)}function getColumns(){return columns}function updateColumnCaches(){columnPosLeft=[],columnPosRight=[];for(var t=0,e=0,i=columns.length;i>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 i=columns[e]=$.extend({},columnDefaults,columns[e]);columnsById[i.id]=e,i.minWidth&&i.width<i.minWidth&&(i.width=i.minWidth),i.maxWidth&&i.width>i.maxWidth&&(i.width=i.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 i=t-offset;if(offset!=e){var r=getVisibleRange(i);cleanupRows(r),updateRowPositions()}prevScrollTop!=i&&(vScrollDir=i+offset>prevScrollTop+e?1:-1,$viewport[0].scrollTop=lastRenderedScrollTop=scrollTop=prevScrollTop=i,trigger(self.onViewportChanged,{}))}function defaultFormatter(t,e,i,n,r){return null==i?\"\":(i+\"\").replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\")}function getFormatter(t,e){function i(t,e,i,n,r){return s.format(t,e,i,n,r)}var n=data.getItemMetadata&&data.getItemMetadata(t),r=n&&n.columns&&(n.columns[e.id]||n.columns[getColumnIndex(e.id)]),o=r&&r.formatter||n&&n.formatter||e.formatter||options.formatterFactory&&options.formatterFactory.getFormatter(e)||options.defaultFormatter;if(void 0!==o.format){var s=o;o=i}return o}function getEditor(t,e){var i,n=columns[e],r=data.getItemMetadata&&data.getItemMetadata(t),o=r&&r.columns;return i=o&&o[n.id]&&void 0!==o[n.id].editor?o[n.id].editor:o&&o[e]&&void 0!==o[e].editor?o[e].editor:n.editor||options.editorFactory&&options.editorFactory.getEditor(n),void 0!==i.default_view&&(i=i.default_view),i}function getDataItemValueForColumn(t,e){return options.dataItemColumnValueExtractor?options.dataItemColumnValueExtractor(t,e):t[e.field]}function appendRowHtml(t,e,i,n){var r=getDataItem(e),o=n>e&&!r,s=\"bk-slick-row\"+(o?\" loading\":\"\")+(e===activeRow?\" active\":\"\")+(e%2==1?\" odd\":\" even\");r||(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,h=columns.length;h>c;c++){if(u=columns[c],l=1,a&&a.columns){var p=a.columns[u.id]||a.columns[c];l=p&&p.colspan||1,\"*\"===l&&(l=h-c)}if(columnPosRight[Math.min(h-1,c+l-1)]>i.leftPx){if(columnPosLeft[c]>i.rightPx)break;appendCellHtml(t,e,c,l,r)}l>1&&(c+=l-1)}t.push(\"</div>\")}function appendCellHtml(t,e,i,n,r){var o=columns[i],s=\"bk-slick-cell l\"+i+\" r\"+Math.min(columns.length-1,i+n-1)+(o.cssClass?\" \"+o.cssClass:\"\");e===activeRow&&i===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+\"'>\"),r){var l=getDataItemValueForColumn(r,o);t.push(getFormatter(e,o)(e,i,l,o,r))}t.push(\"</div>\"),rowsCache[e].cellRenderQueue.push(i),rowsCache[e].cellColSpans[i]=n}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,i;if(t&&t.length)for(vScrollDir=0,e=0,i=t.length;i>e;e++)currentEditor&&activeRow===t[e]&&makeActiveCellNormal(),rowsCache[t[e]]&&removeRowFromCache(t[e])}function invalidateRow(t){invalidateRows([t])}function updateCell(t,e){var i=getCellNode(t,e);if(i){var n=columns[e],r=getDataItem(t);currentEditor&&activeRow===t&&activeCell===e?currentEditor.loadValue(r):(i.innerHTML=r?getFormatter(t,n)(t,e,getDataItemValueForColumn(r,n),n,r):\"\",invalidatePostProcessingResults(t))}}function updateRow(t){var e=rowsCache[t];if(e){ensureCellNodesInRowsCache(t);var i=getDataItem(t);for(var n in e.cellNodesByColumnIdx)if(e.cellNodesByColumnIdx.hasOwnProperty(n)){n=0|n;var r=columns[n],o=e.cellNodesByColumnIdx[n];t===activeRow&&n===activeCell&&currentEditor?currentEditor.loadValue(i):o.innerHTML=i?getFormatter(t,r)(t,n,getDataItemValueForColumn(i,r),r,i):\"\"}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),i=viewportHasVScroll;viewportHasVScroll=!options.autoHeight&&e*options.rowHeight>viewportH,makeActiveCellNormal();var r=t-1;for(var o in rowsCache)o>=r&&removeRowFromCache(o);activeCellNode&&activeRow>r&&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&&i!=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 i=getVisibleRange(t,e),n=Math.round(viewportH/options.rowHeight),r=3;return-1==vScrollDir?(i.top-=n,i.bottom+=r):1==vScrollDir?(i.top-=r,i.bottom+=n):(i.top-=r,i.bottom+=r),i.top=Math.max(0,i.top),i.bottom=Math.min(getDataLengthIncludingAddNew()-1,i.bottom),i.leftPx-=viewportW,i.rightPx+=viewportW,i.leftPx=Math.max(0,i.leftPx),i.rightPx=Math.min(canvasWidth,i.rightPx),i}function ensureCellNodesInRowsCache(t){var e=rowsCache[t];if(e&&e.cellRenderQueue.length)for(var i=e.rowNode.lastChild;e.cellRenderQueue.length;){var n=e.cellRenderQueue.pop();e.cellNodesByColumnIdx[n]=i,i=i.previousSibling}}function cleanUpCells(t,e){var i=0,n=rowsCache[e],r=[];for(var o in n.cellNodesByColumnIdx)if(n.cellNodesByColumnIdx.hasOwnProperty(o)){o=0|o;var s=n.cellColSpans[o];(columnPosLeft[o]>t.rightPx||columnPosRight[Math.min(columns.length-1,o+s-1)]<t.leftPx)&&(e!=activeRow||o!=activeCell)&&r.push(o)}for(var a;null!=(a=r.pop());)n.rowNode.removeChild(n.cellNodesByColumnIdx[a]),delete n.cellColSpans[a],delete n.cellNodesByColumnIdx[a],postProcessedRows[e]&&delete postProcessedRows[e][a],i++}function cleanUpAndRenderCells(t){for(var e,i,n,r=[],o=[],s=0,a=t.top,l=t.bottom;l>=a;a++)if(e=rowsCache[a]){ensureCellNodesInRowsCache(a),cleanUpCells(t,a),i=0;var u=data.getItemMetadata&&data.getItemMetadata(a);u=u&&u.columns;for(var c=getDataItem(a),h=0,p=columns.length;p>h&&!(columnPosLeft[h]>t.rightPx);h++)if(null==(n=e.cellColSpans[h])){if(n=1,u){var d=u[columns[h].id]||u[h];n=d&&d.colspan||1,\"*\"===n&&(n=p-h)}columnPosRight[Math.min(p-1,h+n-1)]>t.leftPx&&(appendCellHtml(r,a,h,n,c),i++),h+=n>1?n-1:0}else h+=n>1?n-1:0;i&&(s+=i,o.push(a))}if(r.length){var f=document.createElement(\"div\");f.innerHTML=r.join(\"\");for(var g,m;null!=(g=o.pop());){e=rowsCache[g];for(var _;null!=(_=e.cellRenderQueue.pop());)m=f.lastChild,e.rowNode.appendChild(m),e.cellNodesByColumnIdx[_]=m}}}function renderRows(t){for(var e=$canvas[0],i=[],n=[],r=!1,o=getDataLength(),s=t.top,a=t.bottom;a>=s;s++)rowsCache[s]||(renderedRows++,n.push(s),rowsCache[s]={rowNode:null,cellColSpans:[],cellNodesByColumnIdx:[],cellRenderQueue:[]},appendRowHtml(i,s,t,o),activeCellNode&&activeRow===s&&(r=!0),counter_rows_rendered++);if(n.length){var l=document.createElement(\"div\");l.innerHTML=i.join(\"\");for(var s=0,a=n.length;a>s;s++)rowsCache[n[s]].rowNode=e.appendChild(l.firstChild);r&&(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 i=offset;page=h==viewportH?0:Math.min(n-1,Math.floor(scrollTop*((th-viewportH)/(h-viewportH))*(1/ph))),offset=Math.round(page*cj),i!=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--,i=rowsCache[e];if(i&&!(e>=t)){postProcessedRows[e]||(postProcessedRows[e]={}),ensureCellNodesInRowsCache(e);for(var n in i.cellNodesByColumnIdx)if(i.cellNodesByColumnIdx.hasOwnProperty(n)){n=0|n;var r=columns[n];if(r.asyncPostRender&&!postProcessedRows[e][n]){var o=i.cellNodesByColumnIdx[n];o&&r.asyncPostRender(o,e,getDataItem(e),r),postProcessedRows[e][n]=!0}}return void(h_postrender=setTimeout(asyncPostProcessRows,options.asyncPostRenderDelay))}}}function updateCellCssStylesOnRenderedRows(t,e){var i,n,r,o;for(var s in rowsCache){if(o=e&&e[s],r=t&&t[s],o)for(n in o)r&&o[n]==r[n]||(i=getCellNode(s,getColumnIndex(n)),i&&$(i).removeClass(o[n]));if(r)for(n in r)o&&o[n]==r[n]||(i=getCellNode(s,getColumnIndex(n)),i&&$(i).addClass(r[n]))}}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 i=cellCssClasses[t];cellCssClasses[t]=e,updateCellCssStylesOnRenderedRows(e,i),trigger(self.onCellCssStylesChanged,{key:t,hash:e})}function getCellCssStyles(t){return cellCssClasses[t]}function flashCell(t,e,i){function n(t){t&&setTimeout(function(){r.queue(function(){r.toggleClass(options.cellFlashingCssClass).dequeue(),n(t-1)})},i)}if(i=i||100,rowsCache[t]){var r=$(getCellNode(t,e));n(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 i=getCellFromEvent(t);if(!i||!cellExists(i.row,i.cell))return!1;var n=trigger(self.onDragInit,e,t);return t.isImmediatePropagationStopped()?n:!1}function handleDragStart(t,e){var i=getCellFromEvent(t);if(!i||!cellExists(i.row,i.cell))return!1;var n=trigger(self.onDragStart,e,t);return t.isImmediatePropagationStopped()?n:!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(i){}}}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\"),i=e&&e.data(\"column\");trigger(self.onHeaderContextMenu,{column:i},t)}function handleHeaderClick(t){var e=$(t.target).closest(\".bk-slick-header-column\",\".bk-slick-header-columns\"),i=e&&e.data(\"column\");i&&trigger(self.onHeaderClick,{column:i},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 i=getRowFromPosition(e),n=0,r=0,o=0;o<columns.length&&t>r;o++)r+=columns[o].width,n++;return 0>n&&(n=0),{row:i,cell:n-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 i=getRowFromNode(e[0].parentNode),n=getCellFromNode(e[0]);return null==i||null==n?null:{row:i,cell:n}}function getCellNodeBox(t,e){if(!cellExists(t,e))return null;for(var i=getRowTop(t),n=i+options.rowHeight-1,r=0,o=0;e>o;o++)r+=columns[o].width;var s=r+columns[e].width;return{top:i,left:r,bottom:n,right:s}}function resetActiveCell(){setActiveCellInternal(null,!1)}function setFocus(){-1==tabbingDirection?$focusSink[0].focus():$focusSink2[0].focus()}function scrollCellIntoView(t,e,i){scrollRowIntoView(t,i);var n=getColspan(t,e),r=columnPosLeft[e],o=columnPosRight[e+(n>1?n-1:0)],s=scrollLeft+viewportW;scrollLeft>r?($viewport.scrollLeft(r),handleScroll(),render()):o>s&&($viewport.scrollLeft(Math.min(r,o-$viewport[0].clientWidth)),handleScroll(),render())}function setActiveCellInternal(t,e){null!==activeCellNode&&(makeActiveCellNormal(),$(activeCellNode).removeClass(\"active\"),rowsCache[activeRow]&&$(rowsCache[activeRow].rowNode).removeClass(\"active\"));var i=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,i&&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 i=getDataLength();return i>t&&!getDataItem(t)?!1:columns[e].cannotTriggerInsert&&t>=i?!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],i=getFormatter(activeRow,e);activeCellNode.innerHTML=i(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],i=getDataItem(activeRow);if(trigger(self.onBeforeEditCell,{row:activeRow,cell:activeCell,item:i,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:i||{},commitChanges:commitEditAndSetFocus,cancelChanges:cancelEditAndSetFocus}),i&&currentEditor.loadValue(i),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 i=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===i&&(e.left+=t.offsetLeft,e.top+=t.offsetTop,i=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 i=t*options.rowHeight,n=(t+1)*options.rowHeight-viewportH+(viewportHasHScroll?scrollbarDimensions.height:0);(t+1)*options.rowHeight>scrollTop+viewportH+offset?(scrollTo(e?i:n),render()):t*options.rowHeight<scrollTop+offset&&(scrollTo(e?n:i),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 i=activeRow+e,n=getDataLengthIncludingAddNew();i>=n&&(i=n-1),0>i&&(i=0);for(var r=0,o=null,s=activePosX;activePosX>=r;)canCellBeActive(i,r)&&(o=r),r+=getColspan(i,r);null!==o?(setActiveCellInternal(getCellNode(i,o)),activePosX=s):resetActiveCell()}}function navigatePageDown(){scrollPage(1)}function navigatePageUp(){scrollPage(-1)}function getColspan(t,e){var i=data.getItemMetadata&&data.getItemMetadata(t);if(!i||!i.columns)return 1;var n=i.columns[columns[e].id]||i.columns[e],r=n&&n.colspan;return r=\"*\"===r?columns.length-e:r||1}function findFirstFocusableCell(t){for(var e=0;e<columns.length;){\n",
       "                if(canCellBeActive(t,e))return e;e+=getColspan(t,e)}return null}function findLastFocusableCell(t){for(var e=0,i=null;e<columns.length;)canCellBeActive(t,e)&&(i=e),e+=getColspan(t,e);return i}function gotoRight(t,e,i){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,i){if(0>=e)return null;var n=findFirstFocusableCell(t);if(null===n||n>=e)return null;for(var r,o={row:t,cell:n,posX:n};;){if(r=gotoRight(o.row,o.cell,o.posX),!r)return null;if(r.cell>=e)return o;o=r}}function gotoDown(t,e,i){for(var n,r=getDataLengthIncludingAddNew();;){if(++t>=r)return null;for(n=e=0;i>=e;)n=e,e+=getColspan(t,e);if(canCellBeActive(t,n))return{row:t,cell:n,posX:i}}}function gotoUp(t,e,i){for(var n;;){if(--t<0)return null;for(n=e=0;i>=e;)n=e,e+=getColspan(t,e);if(canCellBeActive(t,n))return{row:t,cell:n,posX:i}}}function gotoNext(t,e,i){if(null==t&&null==e&&(t=e=i=0,canCellBeActive(t,e)))return{row:t,cell:e,posX:e};var n=gotoRight(t,e,i);if(n)return n;for(var r=null,o=getDataLengthIncludingAddNew();++t<o;)if(r=findFirstFocusableCell(t),null!==r)return{row:t,cell:r,posX:r};return null}function gotoPrev(t,e,i){if(null==t&&null==e&&(t=getDataLengthIncludingAddNew()-1,e=i=columns.length-1,canCellBeActive(t,e)))return{row:t,cell:e,posX:e};for(var n,r;!n&&!(n=gotoLeft(t,e,i));){if(--t<0)return null;e=0,r=findLastFocusableCell(t),null!==r&&(n={row:t,cell:r,posX:r})}return n}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 i={up:gotoUp,down:gotoDown,left:gotoLeft,right:gotoRight,prev:gotoPrev,next:gotoNext},n=i[t],r=n(activeRow,activeCell,activePosX);if(r){var o=r.row==getDataLength();return scrollCellIntoView(r.row,r.cell,!o),setActiveCellInternal(getCellNode(r.row,r.cell)),activePosX=r.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 i=data.getItemMetadata&&data.getItemMetadata(t);if(i&&\"boolean\"==typeof i.focusable)return i.focusable;var n=i&&i.columns;return n&&n[columns[e].id]&&\"boolean\"==typeof n[columns[e].id].focusable?n[columns[e].id].focusable:n&&n[e]&&\"boolean\"==typeof n[e].focusable?n[e].focusable:columns[e].focusable}function canCellBeSelected(t,e){if(t>=getDataLength()||0>t||e>=columns.length||0>e)return!1;var i=data.getItemMetadata&&data.getItemMetadata(t);if(i&&\"boolean\"==typeof i.selectable)return i.selectable;var n=i&&i.columns&&(i.columns[columns[e].id]||i.columns[e]);return n&&\"boolean\"==typeof n.selectable?n.selectable:columns[e].selectable}function gotoCell(t,e,i){if(initialized&&canCellBeActive(t,e)&&getEditorLock().commitCurrentEdit()){scrollCellIntoView(t,e,!1);var n=getCellNode(t,e);setActiveCellInternal(n,i||t===getDataLength()||options.autoEdit),currentEditor||setFocus()}}function commitCurrentEdit(){var t=getDataItem(activeRow),e=columns[activeCell];if(currentEditor){if(currentEditor.isValueChanged()){var i=currentEditor.validate();if(i.valid){if(activeRow<getDataLength()){var n={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,n)):(n.execute(),makeActiveCellNormal())}else{var r={};currentEditor.applyValue(r,currentEditor.serializeValue()),makeActiveCellNormal(),trigger(self.onAddNewRow,{item:r,column:e})}return!getEditorLock().isActive()}return $(activeCellNode).removeClass(\"invalid\"),$(activeCellNode).width(),$(activeCellNode).addClass(\"invalid\"),trigger(self.onValidationError,{editor:currentEditor,cellNode:activeCellNode,validationResults:i,row:activeRow,cell:activeCell,column:e}),currentEditor.focus(),!1}makeActiveCellNormal()}return!0}function cancelCurrentEdit(){return makeActiveCellNormal(),!0}function rowsToRanges(t){for(var e=[],i=columns.length-1,n=0;n<t.length;n++)e.push(new Slick.Range(t[n],0,t[n],i));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 $=require(\"jquery\"),$1=require(\"jquery_event_drag\"),$2=require(\"jquery_event_drop\"),Slick=require(\"./slick.core\"),scrollbarDimensions,maxSupportedCssHeight;module.exports=SlickGrid},{\"./slick.core\":233,jquery:17,jquery_event_drag:227,jquery_event_drop:228}]},{},[67])}();\n",
       "                //# sourceMappingURL=bokeh.min.js.map\n",
       "                /* END /home/bird/Dev/bokeh/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>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "from bokeh.plotting import figure, gridplot, output_notebook, show\n",
    "\n",
    "output_notebook()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<script type=\"text/javascript\">\n",
       "        Bokeh.$(function() {\n",
       "            var all_models = [{\"id\": \"48aa85cf-989c-463c-88b2-47bebad64233\", \"attributes\": {\"id\": \"48aa85cf-989c-463c-88b2-47bebad64233\", \"tags\": [], \"geometries\": [], \"doc\": null}, \"type\": \"ToolEvents\"}, {\"id\": \"9a546b98-655d-44f4-b069-17629dc13af6\", \"attributes\": {\"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"43950240-cd78-47a8-ab67-241622c20527\", \"type\": \"Plot\"}, \"dimensions\": [\"width\", \"height\"], \"id\": \"9a546b98-655d-44f4-b069-17629dc13af6\", \"tags\": []}, \"type\": \"WheelZoomTool\"}, {\"id\": \"14d0b9aa-b568-4bb7-abc0-9e611dd007a2\", \"attributes\": {\"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"d5e3beca-3bfb-40b0-924e-cc2289380dbd\", \"type\": \"Plot\"}, \"dimensions\": [\"width\", \"height\"], \"id\": \"14d0b9aa-b568-4bb7-abc0-9e611dd007a2\", \"tags\": []}, \"type\": \"BoxZoomTool\"}, {\"id\": \"4d7be3c3-b96e-4709-83cd-1d88ba2cd518\", \"attributes\": {\"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"43950240-cd78-47a8-ab67-241622c20527\", \"type\": \"Plot\"}, \"dimensions\": [\"width\", \"height\"], \"id\": \"4d7be3c3-b96e-4709-83cd-1d88ba2cd518\", \"tags\": []}, \"type\": \"BoxZoomTool\"}, {\"id\": \"30ac60ae-582f-4b9a-a990-3bdc3012938f\", \"attributes\": {\"id\": \"30ac60ae-582f-4b9a-a990-3bdc3012938f\", \"tags\": [], \"doc\": null}, \"type\": \"BasicTickFormatter\"}, {\"id\": \"54458882-6083-4552-9c00-ca5b5046c536\", \"attributes\": {\"dimension\": 0, \"ticker\": {\"id\": \"c7a3e932-ac0d-4fea-93a8-6655474d66f9\", \"type\": \"BasicTicker\"}, \"plot\": {\"subtype\": \"Figure\", \"id\": \"d5e3beca-3bfb-40b0-924e-cc2289380dbd\", \"type\": \"Plot\"}, \"id\": \"54458882-6083-4552-9c00-ca5b5046c536\", \"doc\": null, \"tags\": []}, \"type\": \"Grid\"}, {\"id\": \"2476d738-1f79-4d3a-be1e-b6309b7507be\", \"attributes\": {\"id\": \"2476d738-1f79-4d3a-be1e-b6309b7507be\", \"tags\": [], \"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"43950240-cd78-47a8-ab67-241622c20527\", \"type\": \"Plot\"}}, \"type\": \"PreviewSaveTool\"}, {\"id\": \"c7a3e932-ac0d-4fea-93a8-6655474d66f9\", \"attributes\": {\"mantissas\": [2, 5, 10], \"doc\": null, \"num_minor_ticks\": 5, \"id\": \"c7a3e932-ac0d-4fea-93a8-6655474d66f9\", \"tags\": []}, \"type\": \"BasicTicker\"}, {\"id\": \"dde96077-6f5c-4e90-8111-05039457f338\", \"attributes\": {\"id\": \"dde96077-6f5c-4e90-8111-05039457f338\", \"tags\": [], \"doc\": null}, \"type\": \"BasicTickFormatter\"}, {\"id\": \"619bbeff-ecb4-4783-aa72-f1e46496873a\", \"attributes\": {\"id\": \"619bbeff-ecb4-4783-aa72-f1e46496873a\", \"tags\": [], \"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"43950240-cd78-47a8-ab67-241622c20527\", \"type\": \"Plot\"}}, \"type\": \"ResizeTool\"}, {\"id\": \"1eff2c3e-c7c6-44bd-bdcd-6e9f82230e63\", \"attributes\": {\"formatter\": {\"id\": \"30ac60ae-582f-4b9a-a990-3bdc3012938f\", \"type\": \"BasicTickFormatter\"}, \"ticker\": {\"id\": \"c7a3e932-ac0d-4fea-93a8-6655474d66f9\", \"type\": \"BasicTicker\"}, \"plot\": {\"subtype\": \"Figure\", \"id\": \"d5e3beca-3bfb-40b0-924e-cc2289380dbd\", \"type\": \"Plot\"}, \"id\": \"1eff2c3e-c7c6-44bd-bdcd-6e9f82230e63\", \"doc\": null, \"tags\": []}, \"type\": \"LinearAxis\"}, {\"id\": \"35fc8f9b-0495-44cd-94ea-37465ad52a6e\", \"attributes\": {\"id\": \"35fc8f9b-0495-44cd-94ea-37465ad52a6e\", \"tags\": [], \"geometries\": [], \"doc\": null}, \"type\": \"ToolEvents\"}, {\"id\": \"b65c1a06-f069-4712-a3f5-2054cb516f74\", \"attributes\": {\"id\": \"b65c1a06-f069-4712-a3f5-2054cb516f74\", \"tags\": [], \"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"43950240-cd78-47a8-ab67-241622c20527\", \"type\": \"Plot\"}}, \"type\": \"HelpTool\"}, {\"id\": \"d5e4f765-6d0c-42f3-90e1-beb0f597e40a\", \"attributes\": {\"id\": \"d5e4f765-6d0c-42f3-90e1-beb0f597e40a\", \"tags\": [], \"geometries\": [], \"doc\": null}, \"type\": \"ToolEvents\"}, {\"id\": \"04ff2f11-bd62-4e70-b825-14a92892098c\", \"attributes\": {\"doc\": null, \"nonselection_glyph\": {\"id\": \"2cdd4c8b-cbf8-490e-aad4-b2af767b2f29\", \"type\": \"Square\"}, \"glyph\": {\"id\": \"b5f51e68-4dbd-43aa-9039-aa12716d3cc7\", \"type\": \"Square\"}, \"id\": \"04ff2f11-bd62-4e70-b825-14a92892098c\", \"tags\": [], \"selection_glyph\": null, \"data_source\": {\"id\": \"aaca2558-adbc-4d6b-a692-ef8aa1586ccf\", \"type\": \"ColumnDataSource\"}}, \"type\": \"GlyphRenderer\"}, {\"id\": \"ce1cb7e6-171c-41a8-a070-6fe01e6605dd\", \"attributes\": {\"dimension\": 1, \"ticker\": {\"id\": \"4f4c52bd-5ad1-4942-adcf-a87dcfafe77c\", \"type\": \"BasicTicker\"}, \"plot\": {\"subtype\": \"Figure\", \"id\": \"d5e3beca-3bfb-40b0-924e-cc2289380dbd\", \"type\": \"Plot\"}, \"id\": \"ce1cb7e6-171c-41a8-a070-6fe01e6605dd\", \"doc\": null, \"tags\": []}, \"type\": \"Grid\"}, {\"id\": \"af9190da-debf-421a-8ce3-96bc82cbcb37\", \"attributes\": {\"mantissas\": [2, 5, 10], \"doc\": null, \"num_minor_ticks\": 5, \"id\": \"af9190da-debf-421a-8ce3-96bc82cbcb37\", \"tags\": []}, \"type\": \"BasicTicker\"}, {\"subtype\": \"Figure\", \"id\": \"d5e3beca-3bfb-40b0-924e-cc2289380dbd\", \"type\": \"Plot\", \"attributes\": {\"tools\": [{\"id\": \"e47bae45-6912-48c1-b07e-3afefc4272db\", \"type\": \"PanTool\"}, {\"id\": \"78250e42-6ff5-4a36-a5a0-e3e84306c3b9\", \"type\": \"WheelZoomTool\"}, {\"id\": \"14d0b9aa-b568-4bb7-abc0-9e611dd007a2\", \"type\": \"BoxZoomTool\"}, {\"id\": \"13e2cf87-b196-4127-82f3-efc3e55a8308\", \"type\": \"PreviewSaveTool\"}, {\"id\": \"3d4a504d-67bf-49cd-9a87-db62a51047d3\", \"type\": \"ResizeTool\"}, {\"id\": \"35b0c7a2-6d5a-47a9-a302-77263772b06e\", \"type\": \"ResetTool\"}, {\"id\": \"b4e05d19-5415-487b-bfe4-751f12a19251\", \"type\": \"HelpTool\"}], \"below\": [{\"id\": \"1eff2c3e-c7c6-44bd-bdcd-6e9f82230e63\", \"type\": \"LinearAxis\"}], \"left\": [{\"id\": \"db11ead3-650d-449d-ad59-e81b3e8f1668\", \"type\": \"LinearAxis\"}], \"plot_width\": 250, \"plot_height\": 250, \"x_range\": {\"id\": \"14f777b4-6f61-484a-bc9e-cc7aaa5c1973\", \"type\": \"DataRange1d\"}, \"tags\": [], \"above\": [], \"renderers\": [{\"id\": \"1eff2c3e-c7c6-44bd-bdcd-6e9f82230e63\", \"type\": \"LinearAxis\"}, {\"id\": \"54458882-6083-4552-9c00-ca5b5046c536\", \"type\": \"Grid\"}, {\"id\": \"db11ead3-650d-449d-ad59-e81b3e8f1668\", \"type\": \"LinearAxis\"}, {\"id\": \"ce1cb7e6-171c-41a8-a070-6fe01e6605dd\", \"type\": \"Grid\"}, {\"id\": \"c9799a29-7929-45c2-807d-df92378447eb\", \"type\": \"GlyphRenderer\"}], \"extra_x_ranges\": {}, \"tool_events\": {\"id\": \"48aa85cf-989c-463c-88b2-47bebad64233\", \"type\": \"ToolEvents\"}, \"title\": null, \"y_range\": {\"id\": \"2722dce3-3232-44ca-b929-b9a18c70a710\", \"type\": \"DataRange1d\"}, \"id\": \"d5e3beca-3bfb-40b0-924e-cc2289380dbd\", \"doc\": null, \"right\": [], \"extra_y_ranges\": {}}}, {\"id\": \"9cf921a3-c64e-4d76-9d46-c826d642c21d\", \"attributes\": {\"mantissas\": [2, 5, 10], \"doc\": null, \"num_minor_ticks\": 5, \"id\": \"9cf921a3-c64e-4d76-9d46-c826d642c21d\", \"tags\": []}, \"type\": \"BasicTicker\"}, {\"id\": \"9ca29ebe-5bee-4c19-80dd-b6b5209dace3\", \"attributes\": {\"callback\": null, \"id\": \"9ca29ebe-5bee-4c19-80dd-b6b5209dace3\", \"data\": {\"x\": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], \"y\": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]}, \"doc\": null, \"column_names\": [\"x\", \"y\"], \"selected\": {\"1d\": {\"indices\": []}, \"0d\": {\"indices\": [], \"flag\": false}, \"2d\": {\"indices\": []}}, \"tags\": []}, \"type\": \"ColumnDataSource\"}, {\"subtype\": \"Figure\", \"id\": \"43950240-cd78-47a8-ab67-241622c20527\", \"type\": \"Plot\", \"attributes\": {\"tools\": [{\"id\": \"f026fb31-4d7b-44d6-ba41-684c249f4cc1\", \"type\": \"PanTool\"}, {\"id\": \"9a546b98-655d-44f4-b069-17629dc13af6\", \"type\": \"WheelZoomTool\"}, {\"id\": \"4d7be3c3-b96e-4709-83cd-1d88ba2cd518\", \"type\": \"BoxZoomTool\"}, {\"id\": \"2476d738-1f79-4d3a-be1e-b6309b7507be\", \"type\": \"PreviewSaveTool\"}, {\"id\": \"619bbeff-ecb4-4783-aa72-f1e46496873a\", \"type\": \"ResizeTool\"}, {\"id\": \"08d2a8da-a4b0-4212-8795-343b73a60961\", \"type\": \"ResetTool\"}, {\"id\": \"b65c1a06-f069-4712-a3f5-2054cb516f74\", \"type\": \"HelpTool\"}], \"below\": [{\"id\": \"5139af29-aa1d-4b91-b013-2ccc7bff00e5\", \"type\": \"LinearAxis\"}], \"left\": [{\"id\": \"de0d0ac9-f84c-4a46-82d5-f0cc1762632b\", \"type\": \"LinearAxis\"}], \"plot_width\": 250, \"plot_height\": 250, \"x_range\": {\"id\": \"14f777b4-6f61-484a-bc9e-cc7aaa5c1973\", \"type\": \"DataRange1d\"}, \"tags\": [], \"above\": [], \"renderers\": [{\"id\": \"5139af29-aa1d-4b91-b013-2ccc7bff00e5\", \"type\": \"LinearAxis\"}, {\"id\": \"88248e51-138d-483a-927e-29eea3e13faa\", \"type\": \"Grid\"}, {\"id\": \"de0d0ac9-f84c-4a46-82d5-f0cc1762632b\", \"type\": \"LinearAxis\"}, {\"id\": \"87b18e22-71bb-4f6a-b914-33a55bcd6a90\", \"type\": \"Grid\"}, {\"id\": \"a42179c3-5444-45a8-907b-32bbf690138d\", \"type\": \"GlyphRenderer\"}], \"extra_x_ranges\": {}, \"tool_events\": {\"id\": \"d5e4f765-6d0c-42f3-90e1-beb0f597e40a\", \"type\": \"ToolEvents\"}, \"title\": null, \"y_range\": {\"id\": \"2722dce3-3232-44ca-b929-b9a18c70a710\", \"type\": \"DataRange1d\"}, \"id\": \"43950240-cd78-47a8-ab67-241622c20527\", \"doc\": null, \"right\": [], \"extra_y_ranges\": {}}}, {\"id\": \"06c4a23c-8f21-4b81-9a90-abc3209fbfcd\", \"attributes\": {\"id\": \"06c4a23c-8f21-4b81-9a90-abc3209fbfcd\", \"tags\": [], \"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"85cd1b02-87a2-4b2b-b386-5dd2548cf097\", \"type\": \"Plot\"}}, \"type\": \"PreviewSaveTool\"}, {\"id\": \"3bdc95f8-4d4b-49f2-87f8-97c6762670e7\", \"attributes\": {\"dimension\": 1, \"ticker\": {\"id\": \"9cf921a3-c64e-4d76-9d46-c826d642c21d\", \"type\": \"BasicTicker\"}, \"plot\": {\"subtype\": \"Figure\", \"id\": \"85cd1b02-87a2-4b2b-b386-5dd2548cf097\", \"type\": \"Plot\"}, \"id\": \"3bdc95f8-4d4b-49f2-87f8-97c6762670e7\", \"doc\": null, \"tags\": []}, \"type\": \"Grid\"}, {\"id\": \"14f777b4-6f61-484a-bc9e-cc7aaa5c1973\", \"attributes\": {\"renderers\": [], \"doc\": null, \"id\": \"14f777b4-6f61-484a-bc9e-cc7aaa5c1973\", \"tags\": [], \"names\": []}, \"type\": \"DataRange1d\"}, {\"subtype\": \"Figure\", \"id\": \"85cd1b02-87a2-4b2b-b386-5dd2548cf097\", \"type\": \"Plot\", \"attributes\": {\"tools\": [{\"id\": \"a77dc85f-0ab5-43f8-987c-480745b74688\", \"type\": \"PanTool\"}, {\"id\": \"440a0044-3c20-466a-b1da-a734dbc02983\", \"type\": \"WheelZoomTool\"}, {\"id\": \"93893023-9dd1-4ed4-831d-2ac2b51f2ad3\", \"type\": \"BoxZoomTool\"}, {\"id\": \"06c4a23c-8f21-4b81-9a90-abc3209fbfcd\", \"type\": \"PreviewSaveTool\"}, {\"id\": \"01a4076e-755d-448a-9a4f-830fb28d52b8\", \"type\": \"ResizeTool\"}, {\"id\": \"4cbcc123-df49-4f83-a03f-5d94dc3e16ff\", \"type\": \"ResetTool\"}, {\"id\": \"f400e127-d94a-45ec-81b1-39641dd0630f\", \"type\": \"HelpTool\"}], \"below\": [{\"id\": \"91976ca1-4eaa-438a-bca5-3632e9a2982e\", \"type\": \"LinearAxis\"}], \"left\": [{\"id\": \"26634fcf-ed75-4af1-8202-f1a01e489230\", \"type\": \"LinearAxis\"}], \"plot_width\": 250, \"plot_height\": 250, \"x_range\": {\"id\": \"14f777b4-6f61-484a-bc9e-cc7aaa5c1973\", \"type\": \"DataRange1d\"}, \"tags\": [], \"above\": [], \"renderers\": [{\"id\": \"91976ca1-4eaa-438a-bca5-3632e9a2982e\", \"type\": \"LinearAxis\"}, {\"id\": \"50cf963c-7041-4c69-938d-78b4f1f48191\", \"type\": \"Grid\"}, {\"id\": \"26634fcf-ed75-4af1-8202-f1a01e489230\", \"type\": \"LinearAxis\"}, {\"id\": \"3bdc95f8-4d4b-49f2-87f8-97c6762670e7\", \"type\": \"Grid\"}, {\"id\": \"04ff2f11-bd62-4e70-b825-14a92892098c\", \"type\": \"GlyphRenderer\"}], \"extra_x_ranges\": {}, \"tool_events\": {\"id\": \"a1610142-fbaa-4d34-9031-79afc6f2dd38\", \"type\": \"ToolEvents\"}, \"title\": null, \"y_range\": {\"id\": \"ce60ecd1-2664-4b31-b4b2-085a5585127b\", \"type\": \"DataRange1d\"}, \"id\": \"85cd1b02-87a2-4b2b-b386-5dd2548cf097\", \"doc\": null, \"right\": [], \"extra_y_ranges\": {}}}, {\"id\": \"ee04dc9e-39b5-4555-8a17-769e04026b91\", \"attributes\": {\"mantissas\": [2, 5, 10], \"doc\": null, \"num_minor_ticks\": 5, \"id\": \"ee04dc9e-39b5-4555-8a17-769e04026b91\", \"tags\": []}, \"type\": \"BasicTicker\"}, {\"id\": \"d33608ca-101d-429e-9bb5-097df3f36491\", \"attributes\": {\"id\": \"d33608ca-101d-429e-9bb5-097df3f36491\", \"tags\": [], \"doc\": null}, \"type\": \"BasicTickFormatter\"}, {\"id\": \"13e2cf87-b196-4127-82f3-efc3e55a8308\", \"attributes\": {\"id\": \"13e2cf87-b196-4127-82f3-efc3e55a8308\", \"tags\": [], \"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"d5e3beca-3bfb-40b0-924e-cc2289380dbd\", \"type\": \"Plot\"}}, \"type\": \"PreviewSaveTool\"}, {\"id\": \"7290b930-5994-49ba-8cef-d6caccaa170e\", \"attributes\": {\"id\": \"7290b930-5994-49ba-8cef-d6caccaa170e\", \"tags\": [], \"doc\": null}, \"type\": \"BasicTickFormatter\"}, {\"id\": \"9d600219-4908-4c1a-8173-1d26e16cca2e\", \"attributes\": {\"doc\": null, \"tags\": [], \"x\": {\"field\": \"x\"}, \"fill_color\": {\"value\": \"#1f77b4\"}, \"size\": {\"units\": \"screen\", \"value\": 10}, \"line_alpha\": {\"value\": 0.1}, \"line_color\": {\"value\": \"#1f77b4\"}, \"y\": {\"field\": \"y\"}, \"id\": \"9d600219-4908-4c1a-8173-1d26e16cca2e\", \"fill_alpha\": {\"value\": 0.1}}, \"type\": \"Circle\"}, {\"id\": \"aaca2558-adbc-4d6b-a692-ef8aa1586ccf\", \"attributes\": {\"callback\": null, \"id\": \"aaca2558-adbc-4d6b-a692-ef8aa1586ccf\", \"data\": {\"x\": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], \"y\": [5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5]}, \"doc\": null, \"column_names\": [\"x\", \"y\"], \"selected\": {\"1d\": {\"indices\": []}, \"0d\": {\"indices\": [], \"flag\": false}, \"2d\": {\"indices\": []}}, \"tags\": []}, \"type\": \"ColumnDataSource\"}, {\"id\": \"5139af29-aa1d-4b91-b013-2ccc7bff00e5\", \"attributes\": {\"formatter\": {\"id\": \"7290b930-5994-49ba-8cef-d6caccaa170e\", \"type\": \"BasicTickFormatter\"}, \"ticker\": {\"id\": \"ee04dc9e-39b5-4555-8a17-769e04026b91\", \"type\": \"BasicTicker\"}, \"plot\": {\"subtype\": \"Figure\", \"id\": \"43950240-cd78-47a8-ab67-241622c20527\", \"type\": \"Plot\"}, \"id\": \"5139af29-aa1d-4b91-b013-2ccc7bff00e5\", \"doc\": null, \"tags\": []}, \"type\": \"LinearAxis\"}, {\"id\": \"4f4c52bd-5ad1-4942-adcf-a87dcfafe77c\", \"attributes\": {\"mantissas\": [2, 5, 10], \"doc\": null, \"num_minor_ticks\": 5, \"id\": \"4f4c52bd-5ad1-4942-adcf-a87dcfafe77c\", \"tags\": []}, \"type\": \"BasicTicker\"}, {\"id\": \"2cf15f4a-332c-438b-80d6-bc01be8b7ae3\", \"attributes\": {\"doc\": null, \"tags\": [], \"x\": {\"field\": \"x\"}, \"fill_color\": {\"value\": \"#1f77b4\"}, \"size\": {\"units\": \"screen\", \"value\": 10}, \"line_alpha\": {\"value\": 0.1}, \"line_color\": {\"value\": \"#1f77b4\"}, \"y\": {\"field\": \"y\"}, \"id\": \"2cf15f4a-332c-438b-80d6-bc01be8b7ae3\", \"fill_alpha\": {\"value\": 0.1}}, \"type\": \"Triangle\"}, {\"id\": \"2722dce3-3232-44ca-b929-b9a18c70a710\", \"attributes\": {\"renderers\": [], \"doc\": null, \"id\": \"2722dce3-3232-44ca-b929-b9a18c70a710\", \"tags\": [], \"names\": []}, \"type\": \"DataRange1d\"}, {\"id\": \"a77dc85f-0ab5-43f8-987c-480745b74688\", \"attributes\": {\"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"85cd1b02-87a2-4b2b-b386-5dd2548cf097\", \"type\": \"Plot\"}, \"dimensions\": [\"width\", \"height\"], \"id\": \"a77dc85f-0ab5-43f8-987c-480745b74688\", \"tags\": []}, \"type\": \"PanTool\"}, {\"id\": \"4cbcc123-df49-4f83-a03f-5d94dc3e16ff\", \"attributes\": {\"id\": \"4cbcc123-df49-4f83-a03f-5d94dc3e16ff\", \"tags\": [], \"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"85cd1b02-87a2-4b2b-b386-5dd2548cf097\", \"type\": \"Plot\"}}, \"type\": \"ResetTool\"}, {\"id\": \"f400e127-d94a-45ec-81b1-39641dd0630f\", \"attributes\": {\"id\": \"f400e127-d94a-45ec-81b1-39641dd0630f\", \"tags\": [], \"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"85cd1b02-87a2-4b2b-b386-5dd2548cf097\", \"type\": \"Plot\"}}, \"type\": \"HelpTool\"}, {\"id\": \"50cf963c-7041-4c69-938d-78b4f1f48191\", \"attributes\": {\"dimension\": 0, \"ticker\": {\"id\": \"af9190da-debf-421a-8ce3-96bc82cbcb37\", \"type\": \"BasicTicker\"}, \"plot\": {\"subtype\": \"Figure\", \"id\": \"85cd1b02-87a2-4b2b-b386-5dd2548cf097\", \"type\": \"Plot\"}, \"id\": \"50cf963c-7041-4c69-938d-78b4f1f48191\", \"doc\": null, \"tags\": []}, \"type\": \"Grid\"}, {\"id\": \"d7dec467-631d-40f4-83ea-24ecfd49d43e\", \"attributes\": {\"doc\": null, \"tags\": [], \"x\": {\"field\": \"x\"}, \"fill_color\": {\"value\": \"navy\"}, \"size\": {\"units\": \"screen\", \"value\": 10}, \"line_alpha\": {\"value\": 0.5}, \"line_color\": {\"value\": \"navy\"}, \"y\": {\"field\": \"y\"}, \"id\": \"d7dec467-631d-40f4-83ea-24ecfd49d43e\", \"fill_alpha\": {\"value\": 0.5}}, \"type\": \"Circle\"}, {\"id\": \"88248e51-138d-483a-927e-29eea3e13faa\", \"attributes\": {\"dimension\": 0, \"ticker\": {\"id\": \"ee04dc9e-39b5-4555-8a17-769e04026b91\", \"type\": \"BasicTicker\"}, \"plot\": {\"subtype\": \"Figure\", \"id\": \"43950240-cd78-47a8-ab67-241622c20527\", \"type\": \"Plot\"}, \"id\": \"88248e51-138d-483a-927e-29eea3e13faa\", \"doc\": null, \"tags\": []}, \"type\": \"Grid\"}, {\"id\": \"a42179c3-5444-45a8-907b-32bbf690138d\", \"attributes\": {\"doc\": null, \"nonselection_glyph\": {\"id\": \"9d600219-4908-4c1a-8173-1d26e16cca2e\", \"type\": \"Circle\"}, \"glyph\": {\"id\": \"d7dec467-631d-40f4-83ea-24ecfd49d43e\", \"type\": \"Circle\"}, \"id\": \"a42179c3-5444-45a8-907b-32bbf690138d\", \"tags\": [], \"selection_glyph\": null, \"data_source\": {\"id\": \"9ca29ebe-5bee-4c19-80dd-b6b5209dace3\", \"type\": \"ColumnDataSource\"}}, \"type\": \"GlyphRenderer\"}, {\"id\": \"440a0044-3c20-466a-b1da-a734dbc02983\", \"attributes\": {\"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"85cd1b02-87a2-4b2b-b386-5dd2548cf097\", \"type\": \"Plot\"}, \"dimensions\": [\"width\", \"height\"], \"id\": \"440a0044-3c20-466a-b1da-a734dbc02983\", \"tags\": []}, \"type\": \"WheelZoomTool\"}, {\"id\": \"01a4076e-755d-448a-9a4f-830fb28d52b8\", \"attributes\": {\"id\": \"01a4076e-755d-448a-9a4f-830fb28d52b8\", \"tags\": [], \"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"85cd1b02-87a2-4b2b-b386-5dd2548cf097\", \"type\": \"Plot\"}}, \"type\": \"ResizeTool\"}, {\"id\": \"78250e42-6ff5-4a36-a5a0-e3e84306c3b9\", \"attributes\": {\"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"d5e3beca-3bfb-40b0-924e-cc2289380dbd\", \"type\": \"Plot\"}, \"dimensions\": [\"width\", \"height\"], \"id\": \"78250e42-6ff5-4a36-a5a0-e3e84306c3b9\", \"tags\": []}, \"type\": \"WheelZoomTool\"}, {\"id\": \"87b18e22-71bb-4f6a-b914-33a55bcd6a90\", \"attributes\": {\"dimension\": 1, \"ticker\": {\"id\": \"c86d31b1-2ad5-4d30-88a6-23f7f6f67497\", \"type\": \"BasicTicker\"}, \"plot\": {\"subtype\": \"Figure\", \"id\": \"43950240-cd78-47a8-ab67-241622c20527\", \"type\": \"Plot\"}, \"id\": \"87b18e22-71bb-4f6a-b914-33a55bcd6a90\", \"doc\": null, \"tags\": []}, \"type\": \"Grid\"}, {\"id\": \"3d4a504d-67bf-49cd-9a87-db62a51047d3\", \"attributes\": {\"id\": \"3d4a504d-67bf-49cd-9a87-db62a51047d3\", \"tags\": [], \"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"d5e3beca-3bfb-40b0-924e-cc2289380dbd\", \"type\": \"Plot\"}}, \"type\": \"ResizeTool\"}, {\"id\": \"db11ead3-650d-449d-ad59-e81b3e8f1668\", \"attributes\": {\"formatter\": {\"id\": \"d33608ca-101d-429e-9bb5-097df3f36491\", \"type\": \"BasicTickFormatter\"}, \"ticker\": {\"id\": \"4f4c52bd-5ad1-4942-adcf-a87dcfafe77c\", \"type\": \"BasicTicker\"}, \"plot\": {\"subtype\": \"Figure\", \"id\": \"d5e3beca-3bfb-40b0-924e-cc2289380dbd\", \"type\": \"Plot\"}, \"id\": \"db11ead3-650d-449d-ad59-e81b3e8f1668\", \"doc\": null, \"tags\": []}, \"type\": \"LinearAxis\"}, {\"id\": \"b4e05d19-5415-487b-bfe4-751f12a19251\", \"attributes\": {\"id\": \"b4e05d19-5415-487b-bfe4-751f12a19251\", \"tags\": [], \"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"d5e3beca-3bfb-40b0-924e-cc2289380dbd\", \"type\": \"Plot\"}}, \"type\": \"HelpTool\"}, {\"id\": \"35b0c7a2-6d5a-47a9-a302-77263772b06e\", \"attributes\": {\"id\": \"35b0c7a2-6d5a-47a9-a302-77263772b06e\", \"tags\": [], \"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"d5e3beca-3bfb-40b0-924e-cc2289380dbd\", \"type\": \"Plot\"}}, \"type\": \"ResetTool\"}, {\"id\": \"a1610142-fbaa-4d34-9031-79afc6f2dd38\", \"attributes\": {\"id\": \"a1610142-fbaa-4d34-9031-79afc6f2dd38\", \"tags\": [], \"geometries\": [], \"doc\": null}, \"type\": \"ToolEvents\"}, {\"id\": \"08d2a8da-a4b0-4212-8795-343b73a60961\", \"attributes\": {\"id\": \"08d2a8da-a4b0-4212-8795-343b73a60961\", \"tags\": [], \"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"43950240-cd78-47a8-ab67-241622c20527\", \"type\": \"Plot\"}}, \"type\": \"ResetTool\"}, {\"id\": \"26634fcf-ed75-4af1-8202-f1a01e489230\", \"attributes\": {\"formatter\": {\"id\": \"dde96077-6f5c-4e90-8111-05039457f338\", \"type\": \"BasicTickFormatter\"}, \"ticker\": {\"id\": \"9cf921a3-c64e-4d76-9d46-c826d642c21d\", \"type\": \"BasicTicker\"}, \"plot\": {\"subtype\": \"Figure\", \"id\": \"85cd1b02-87a2-4b2b-b386-5dd2548cf097\", \"type\": \"Plot\"}, \"id\": \"26634fcf-ed75-4af1-8202-f1a01e489230\", \"doc\": null, \"tags\": []}, \"type\": \"LinearAxis\"}, {\"id\": \"93893023-9dd1-4ed4-831d-2ac2b51f2ad3\", \"attributes\": {\"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"85cd1b02-87a2-4b2b-b386-5dd2548cf097\", \"type\": \"Plot\"}, \"dimensions\": [\"width\", \"height\"], \"id\": \"93893023-9dd1-4ed4-831d-2ac2b51f2ad3\", \"tags\": []}, \"type\": \"BoxZoomTool\"}, {\"id\": \"ce60ecd1-2664-4b31-b4b2-085a5585127b\", \"attributes\": {\"renderers\": [], \"doc\": null, \"id\": \"ce60ecd1-2664-4b31-b4b2-085a5585127b\", \"tags\": [], \"names\": []}, \"type\": \"DataRange1d\"}, {\"id\": \"2cdd4c8b-cbf8-490e-aad4-b2af767b2f29\", \"attributes\": {\"doc\": null, \"tags\": [], \"x\": {\"field\": \"x\"}, \"fill_color\": {\"value\": \"#1f77b4\"}, \"size\": {\"units\": \"screen\", \"value\": 10}, \"line_alpha\": {\"value\": 0.1}, \"line_color\": {\"value\": \"#1f77b4\"}, \"y\": {\"field\": \"y\"}, \"id\": \"2cdd4c8b-cbf8-490e-aad4-b2af767b2f29\", \"fill_alpha\": {\"value\": 0.1}}, \"type\": \"Square\"}, {\"id\": \"b5f51e68-4dbd-43aa-9039-aa12716d3cc7\", \"attributes\": {\"doc\": null, \"tags\": [], \"x\": {\"field\": \"x\"}, \"fill_color\": {\"value\": \"olive\"}, \"size\": {\"units\": \"screen\", \"value\": 10}, \"line_alpha\": {\"value\": 0.5}, \"line_color\": {\"value\": \"olive\"}, \"y\": {\"field\": \"y\"}, \"id\": \"b5f51e68-4dbd-43aa-9039-aa12716d3cc7\", \"fill_alpha\": {\"value\": 0.5}}, \"type\": \"Square\"}, {\"id\": \"91976ca1-4eaa-438a-bca5-3632e9a2982e\", \"attributes\": {\"formatter\": {\"id\": \"71812393-1f82-476a-8dd5-5ae66eeb0361\", \"type\": \"BasicTickFormatter\"}, \"ticker\": {\"id\": \"af9190da-debf-421a-8ce3-96bc82cbcb37\", \"type\": \"BasicTicker\"}, \"plot\": {\"subtype\": \"Figure\", \"id\": \"85cd1b02-87a2-4b2b-b386-5dd2548cf097\", \"type\": \"Plot\"}, \"id\": \"91976ca1-4eaa-438a-bca5-3632e9a2982e\", \"doc\": null, \"tags\": []}, \"type\": \"LinearAxis\"}, {\"id\": \"de7ea7b7-52ad-45d3-943f-dcc5ff7690e3\", \"attributes\": {\"id\": \"de7ea7b7-52ad-45d3-943f-dcc5ff7690e3\", \"tags\": [], \"doc\": null}, \"type\": \"BasicTickFormatter\"}, {\"id\": \"e47bae45-6912-48c1-b07e-3afefc4272db\", \"attributes\": {\"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"d5e3beca-3bfb-40b0-924e-cc2289380dbd\", \"type\": \"Plot\"}, \"dimensions\": [\"width\", \"height\"], \"id\": \"e47bae45-6912-48c1-b07e-3afefc4272db\", \"tags\": []}, \"type\": \"PanTool\"}, {\"id\": \"de0d0ac9-f84c-4a46-82d5-f0cc1762632b\", \"attributes\": {\"formatter\": {\"id\": \"de7ea7b7-52ad-45d3-943f-dcc5ff7690e3\", \"type\": \"BasicTickFormatter\"}, \"ticker\": {\"id\": \"c86d31b1-2ad5-4d30-88a6-23f7f6f67497\", \"type\": \"BasicTicker\"}, \"plot\": {\"subtype\": \"Figure\", \"id\": \"43950240-cd78-47a8-ab67-241622c20527\", \"type\": \"Plot\"}, \"id\": \"de0d0ac9-f84c-4a46-82d5-f0cc1762632b\", \"doc\": null, \"tags\": []}, \"type\": \"LinearAxis\"}, {\"id\": \"71812393-1f82-476a-8dd5-5ae66eeb0361\", \"attributes\": {\"id\": \"71812393-1f82-476a-8dd5-5ae66eeb0361\", \"tags\": [], \"doc\": null}, \"type\": \"BasicTickFormatter\"}, {\"id\": \"c86d31b1-2ad5-4d30-88a6-23f7f6f67497\", \"attributes\": {\"mantissas\": [2, 5, 10], \"doc\": null, \"num_minor_ticks\": 5, \"id\": \"c86d31b1-2ad5-4d30-88a6-23f7f6f67497\", \"tags\": []}, \"type\": \"BasicTicker\"}, {\"id\": \"1082d6ef-3e0d-4697-a49b-62fa52114ee1\", \"attributes\": {\"callback\": null, \"id\": \"1082d6ef-3e0d-4697-a49b-62fa52114ee1\", \"data\": {\"x\": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], \"y\": [10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0]}, \"doc\": null, \"column_names\": [\"x\", \"y\"], \"selected\": {\"1d\": {\"indices\": []}, \"0d\": {\"indices\": [], \"flag\": false}, \"2d\": {\"indices\": []}}, \"tags\": []}, \"type\": \"ColumnDataSource\"}, {\"id\": \"eb649992-8ddc-4f92-b030-47eb4c239ae7\", \"attributes\": {\"doc\": null, \"tags\": [], \"x\": {\"field\": \"x\"}, \"fill_color\": {\"value\": \"firebrick\"}, \"size\": {\"units\": \"screen\", \"value\": 10}, \"line_alpha\": {\"value\": 0.5}, \"line_color\": {\"value\": \"firebrick\"}, \"y\": {\"field\": \"y\"}, \"id\": \"eb649992-8ddc-4f92-b030-47eb4c239ae7\", \"fill_alpha\": {\"value\": 0.5}}, \"type\": \"Triangle\"}, {\"id\": \"c9799a29-7929-45c2-807d-df92378447eb\", \"attributes\": {\"doc\": null, \"nonselection_glyph\": {\"id\": \"2cf15f4a-332c-438b-80d6-bc01be8b7ae3\", \"type\": \"Triangle\"}, \"glyph\": {\"id\": \"eb649992-8ddc-4f92-b030-47eb4c239ae7\", \"type\": \"Triangle\"}, \"id\": \"c9799a29-7929-45c2-807d-df92378447eb\", \"tags\": [], \"selection_glyph\": null, \"data_source\": {\"id\": \"1082d6ef-3e0d-4697-a49b-62fa52114ee1\", \"type\": \"ColumnDataSource\"}}, \"type\": \"GlyphRenderer\"}, {\"id\": \"4dfe34a1-5caf-4dc6-b549-a7d5ab9e3d4a\", \"attributes\": {\"tools\": [], \"toolbar_location\": null, \"below\": [], \"left\": [], \"extra_y_ranges\": {}, \"x_range\": null, \"tags\": [], \"above\": [], \"renderers\": [], \"extra_x_ranges\": {}, \"tool_events\": {\"id\": \"35fc8f9b-0495-44cd-94ea-37465ad52a6e\", \"type\": \"ToolEvents\"}, \"y_range\": null, \"id\": \"4dfe34a1-5caf-4dc6-b549-a7d5ab9e3d4a\", \"doc\": null, \"children\": [[{\"subtype\": \"Figure\", \"id\": \"43950240-cd78-47a8-ab67-241622c20527\", \"type\": \"Plot\"}, {\"subtype\": \"Figure\", \"id\": \"d5e3beca-3bfb-40b0-924e-cc2289380dbd\", \"type\": \"Plot\"}, {\"subtype\": \"Figure\", \"id\": \"85cd1b02-87a2-4b2b-b386-5dd2548cf097\", \"type\": \"Plot\"}]], \"right\": []}, \"type\": \"GridPlot\"}, {\"id\": \"f026fb31-4d7b-44d6-ba41-684c249f4cc1\", \"attributes\": {\"doc\": null, \"plot\": {\"subtype\": \"Figure\", \"id\": \"43950240-cd78-47a8-ab67-241622c20527\", \"type\": \"Plot\"}, \"dimensions\": [\"width\", \"height\"], \"id\": \"f026fb31-4d7b-44d6-ba41-684c249f4cc1\", \"tags\": []}, \"type\": \"PanTool\"}];\n",
       "            Bokeh.load_models(all_models);\n",
       "            var plots = [{'modelid': '4dfe34a1-5caf-4dc6-b549-a7d5ab9e3d4a', 'modeltype': 'GridPlot', 'elementid': '#a8cbc447-7963-4c26-a2cd-449d40306974'}];\n",
       "            for (idx in plots) {\n",
       "            \tvar plot = plots[idx];\n",
       "            \tvar model = Bokeh.Collections(plot.modeltype).get(plot.modelid);\n",
       "            \tBokeh.logger.info('Realizing plot:')\n",
       "            \tBokeh.logger.info(' - modeltype: ' + plot.modeltype);\n",
       "            \tBokeh.logger.info(' - modelid: ' + plot.modelid);\n",
       "            \tBokeh.logger.info(' - elementid: ' + plot.elementid);\n",
       "            \tvar view = new model.default_view({\n",
       "            \t\tmodel: model,\n",
       "            \t\tel: plot.elementid\n",
       "            \t});\n",
       "            \tBokeh.index[plot.modelid] = view;\n",
       "            }\n",
       "        });\n",
       "    </script>\n",
       "<div class=\"plotdiv\" id=\"a8cbc447-7963-4c26-a2cd-449d40306974\"></div>\n",
       "\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "x = list(range(11))\n",
    "y0 = x\n",
    "y1 = [10-xx for xx in x]\n",
    "y2 = [abs(xx-5) for xx in x]\n",
    "\n",
    "# create a new plot\n",
    "s1 = figure(width=250, plot_height=250, title=None)\n",
    "s1.circle(x, y0, size=10, color=\"navy\", alpha=0.5)\n",
    "\n",
    "# create a new plot and share both ranges\n",
    "s2 = figure(width=250, height=250, x_range=s1.x_range, y_range=s1.y_range, title=None)\n",
    "s2.triangle(x, y1, size=10, color=\"firebrick\", alpha=0.5)\n",
    "\n",
    "# create a new plot and share only one range\n",
    "s3 = figure(width=250, height=250, x_range=s1.x_range, title=None)\n",
    "s3.square(x, y2, size=10, color=\"olive\", alpha=0.5)\n",
    "\n",
    "p = gridplot([[s1, s2, s3]], toolbar_location=None)\n",
    "\n",
    "# show the results\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.4.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}
