You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

39 lines
82 KiB

!function(t,e){e(t.Bokeh)}(this,function(t){var e;return function(e,n,r){if(null!=t)return t.register_plugin(e,n,r);throw new Error("Cannot find Bokeh. You have to load it prior to loading plugins.")}({365:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=[].slice,s=t(13),a=t(4),u=t(3),l=t(405);n.AbstractButtonView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.icon_views={},this.render()},e.prototype.connect_signals=function(){return e.__super__.connect_signals.call(this),this.connect(this.model.change,function(){return this.render()})},e.prototype.remove=function(){return u.remove_views(this.icon_views),e.__super__.remove.call(this)},e.prototype._render_button=function(){var t;return t=1<=arguments.length?o.call(arguments,0):[],a.button.apply(null,[{type:"button",disabled:this.model.disabled,"class":["bk-bs-btn","bk-bs-btn-"+this.model.button_type]}].concat(o.call(t)))},e.prototype.render=function(){var t;return e.__super__.render.call(this),a.empty(this.el),this.buttonEl=this._render_button(this.model.label),this.buttonEl.addEventListener("click",function(t){return function(e){return t._button_click(e)}}(this)),this.el.appendChild(this.buttonEl),t=this.model.icon,null!=t&&(u.build_views(this.icon_views,[t],{parent:this}),a.prepend(this.buttonEl,this.icon_views[t.id].el,a.nbsp)),this},e.prototype._button_click=function(t){return t.preventDefault(),this.change_input()},e.prototype.change_input=function(){var t;return null!=(t=this.model.callback)?t.execute(this.model):void 0},e}(l.WidgetView),n.AbstractButton=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="AbstractButton",e.prototype.default_view=n.AbstractButtonView,e.define({callback:[s.Instance],label:[s.String,"Button"],icon:[s.Instance],button_type:[s.String,"default"]}),e}(l.Widget)},366:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(405);n.AbstractIcon=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="AbstractIcon",e}(o.Widget)},367:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(396),s=t(13),a=t(4),u=t(12),l=t(22),c=t(405);n.AbstractSliderView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.connect_signals=function(){return this.connect(this.model.change,function(t){return function(){return t.render()}}(this))},e.prototype._calc_to=function(){},e.prototype._calc_from=function(t){},e.prototype.render=function(){var t,n,r,i,s,u,c,p,d,h,f,_,m;if(null==this.sliderEl&&e.__super__.render.call(this),null!=this.model.callback)switch(t=function(t){return function(){return t.model.callback.execute(t.model)}}(this),this.model.callback_policy){case"continuous":this.callback_wrapper=t;break;case"throttle":this.callback_wrapper=l.throttle(t,this.model.callback_throttle)}return s="bk-noUi-",c=this._calc_to(),p=c.start,n=c.end,m=c.value,d=c.step,this.model.tooltips?(r={to:function(t){return function(e){return t.model.pretty(e)}}(this)},f=function(){var t,e,n;for(n=[],i=t=0,e=m.length;0<=e?t<e:t>e;i=0<=e?++t:--t)n.push(r);return n}()):f=!1,this.el.classList.add("bk-slider"),null==this.sliderEl?(this.sliderEl=a.div(),this.el.appendChild(this.sliderEl),o.create(this.sliderEl,{cssPrefix:s,range:{min:p,max:n},start:m,step:d,behaviour:this.model.behaviour,connect:this.model.connected,tooltips:f,orientation:this.model.orientation,direction:this.model.direction}),this.sliderEl.noUiSlider.on("slide",function(t){return function(e,n,r){return t._slide(r)}}(this)),this.sliderEl.noUiSlider.on("change",function(t){return function(e,n,r){return t._change(r)}}(this)),h=function(t){return function(e,n){var r,i;return r=t.sliderEl.querySelectorAll("."+s+"handle")[e],i=r.querySelector("."+s+"tooltip"),i.style.display=n?"block":""}}(this),this.sliderEl.noUiSlider.on("start",function(t){return function(t,e){return h(e,!0)}}(this)),this.sliderEl.noUiSlider.on("end",function(t){return function(t,e){return h(e,!1)}}(this))):this.sliderEl.noUiSlider.updateOptions({range:{min:p,max:n},start:m,step:d}),null!=this.titleEl&&this.el.removeChild(this.titleEl),null!=this.valueEl&&this.el.removeChild(this.valueEl),null!=this.model.title&&(0!==this.model.title.length&&(this.titleEl=a.label({},this.model.title+":"),this.el.insertBefore(this.titleEl,this.sliderEl)),this.model.show_value&&(u=function(){var t,e,n;for(n=[],t=0,e=m.length;t<e;t++)_=m[t],n.push(this.model.pretty(_));return n}.call(this).join(" .. "),this.valueEl=a.div({"class":"bk-slider-value"},u),this.el.insertBefore(this.valueEl,this.sliderEl))),this.model.disabled||(this.sliderEl.querySelector("."+s+"connect").style.backgroundColor=this.model.bar_color),this.model.disabled?this.sliderEl.setAttribute("disabled",!0):this.sliderEl.removeAttribute("disabled"),this},e.prototype._slide=function(t){var e,n,r;return r=this._calc_from(t),e=function(){var e,r,i;for(i=[],e=0,r=t.length;e<r;e++)n=t[e],i.push(this.model.pretty(n));return i}.call(this).join(" .. "),u.logger.debug("[slider slide] value = "+e),null!=this.valueEl&&(this.valueEl.textContent=e),this.model.value=r,"function"==typeof this.callback_wrapper?this.callback_wrapper():void 0},e.prototype._change=function(t){var e,n,r,i;switch(i=this._calc_from(t),e=function(){var e,n,i;for(i=[],e=0,n=t.length;e<n;e++)r=t[e],i.push(this.model.pretty(r));return i}.call(this).join(" .. "),u.logger.debug("[slider change] value = "+e),null!=this.valueEl&&(this.valueEl.value=e),this.model.value=i,this.model.callback_policy){case"mouseup":case"throttle":return null!=(n=this.model.callback)?n.execute(this.model):void 0}},e}(c.WidgetView),n.AbstractSlider=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="AbstractSlider",e.prototype.default_view=n.AbstractSliderView,e.define({title:[s.String,""],show_value:[s.Bool,!0],start:[s.Any],end:[s.Any],value:[s.Any],step:[s.Number,1],format:[s.String],orientation:[s.Orientation,"horizontal"],direction:[s.Any,"ltr"],tooltips:[s.Boolean,!0],callback:[s.Instance],callback_throttle:[s.Number,200],callback_policy:[s.String,"throttle"],bar_color:[s.Color,"#e6e6e6"]}),e.prototype.behaviour=null,e.prototype.connected=!1,e.prototype._formatter=function(t,e){return""+t},e.prototype.pretty=function(t){return this._formatter(t,this.format)},e}(c.Widget)},368:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(393),s=t(372),a=t(4),u=t(13);n.AutocompleteInputView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.connect_signals=function(){return e.__super__.connect_signals.call(this),s.clear_menus.connect(function(t){return function(){return t._clear_menu()}}(this))},e.prototype.render=function(){return e.__super__.render.call(this),this.inputEl.classList.add("bk-autocomplete-input"),this.inputEl.addEventListener("keydown",function(t){return function(e){return t._keydown(e)}}(this)),this.inputEl.addEventListener("keyup",function(t){return function(e){return t._keyup(e)}}(this)),this.menuEl=a.ul({"class":"bk-bs-dropdown-menu"}),this.menuEl.addEventListener("click",function(t){return function(e){return t._item_click(e)}}(this)),this.el.appendChild(this.menuEl),this},e.prototype._render_items=function(t){var e,n,r,i,o;for(a.empty(this.menuEl),i=[],e=0,r=t.length;e<r;e++)o=t[e],n=a.li({},a.a({data:{text:o}},o)),i.push(this.menuEl.appendChild(n));return i},e.prototype._open_menu=function(){return this.el.classList.add("bk-bs-open")},e.prototype._clear_menu=function(){return this.el.classList.remove("bk-bs-open")},e.prototype._item_click=function(t){var e,n;if(t.preventDefault(),t.target!==t.currentTarget)return e=t.target,n=e.dataset.text,this.model.value=n},e.prototype._keydown=function(t){},e.prototype._keyup=function(t){var e,n,r,i,o,s;switch(t.keyCode){case a.Keys.Enter:return console.log("enter");case a.Keys.Esc:return this._clear_menu();case a.Keys.Up:case a.Keys.Down:return console.log("up/down");default:if(s=this.inputEl.value,s.length<=1)return void this._clear_menu();for(e=[],i=this.model.completions,n=0,r=i.length;n<r;n++)o=i[n],o.indexOf(s)!==-1&&e.push(o);return 0===e.length?this._clear_menu():(this._render_items(e),this._open_menu())}},e}(o.TextInputView),n.AutocompleteInput=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="AutocompleteInput",e.prototype.default_view=n.AutocompleteInputView,e.define({completions:[u.Array,[]]}),e.internal({active:[u.Boolean,!0]}),e}(o.TextInput)},369:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(13),s=t(2),a=t(365);n.ButtonView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.change_input=function(){return this.model.trigger_event(new s.ButtonClick({})),this.model.clicks=this.model.clicks+1,e.__super__.change_input.call(this)},e}(a.AbstractButtonView),n.Button=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="Button",e.prototype.default_view=n.ButtonView,e.define({clicks:[o.Number,0]}),e}(a.AbstractButton),s.register_with_event(s.ButtonClick,n.Button)},370:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},s=t(4),a=t(13),u=t(405);n.CheckboxButtonGroupView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.connect_signals=function(){return e.__super__.connect_signals.call(this),this.connect(this.model.change,function(){return this.render()})},e.prototype.render=function(){var t,n,r,i,a,u,l,c,p;for(e.__super__.render.call(this),s.empty(this.el),n=s.div({"class":"bk-bs-btn-group"}),this.el.appendChild(n),t=this.model.active,c=this.model.labels,r=a=0,l=c.length;a<l;r=++a)p=c[r],i=s.input({type:"checkbox",value:""+r,checked:o.call(t,r)>=0}),i.addEventListener("change",function(t){return function(){return t.change_input()}}(this)),u=s.label({"class":["bk-bs-btn","bk-bs-btn-"+this.model.button_type]},i,p),o.call(t,r)>=0&&u.classList.add("bk-bs-active"),n.appendChild(u);return this},e.prototype.change_input=function(){var t,e,n,r;return t=function(){var t,r,i,o;for(i=this.el.querySelectorAll("input"),o=[],n=t=0,r=i.length;t<r;n=++t)e=i[n],e.checked&&o.push(n);return o}.call(this),this.model.active=t,null!=(r=this.model.callback)?r.execute(this.model):void 0},e}(u.WidgetView),n.CheckboxButtonGroup=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="CheckboxButtonGroup",e.prototype.default_view=n.CheckboxButtonGroupView,e.define({active:[a.Array,[]],labels:[a.Array,[]],button_type:[a.String,"default"],callback:[a.Instance]}),e}(u.Widget)},371:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},s=t(4),a=t(13),u=t(405);n.CheckboxGroupView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.connect_signals=function(){return e.__super__.connect_signals.call(this),this.connect(this.model.change,function(){return this.render()})},e.prototype.render=function(){var t,n,r,i,a,u,l,c,p;for(e.__super__.render.call(this),s.empty(this.el),t=this.model.active,c=this.model.labels,r=a=0,l=c.length;a<l;r=++a)p=c[r],i=s.input({type:"checkbox",value:""+r}),i.addEventListener("change",function(t){return function(){return t.change_input()}}(this)),this.model.disabled&&(i.disabled=!0),o.call(t,r)>=0&&(i.checked=!0),u=s.label({},i,p),this.model.inline?(u.classList.add("bk-bs-checkbox-inline"),this.el.appendChild(u)):(n=s.div({"class":"bk-bs-checkbox"},u),this.el.appendChild(n));return this},e.prototype.change_input=function(){var t,e,n,r;return t=function(){var t,r,i,o;for(i=this.el.querySelectorAll("input"),o=[],n=t=0,r=i.length;t<r;n=++t)e=i[n],e.checked&&o.push(n);return o}.call(this),this.model.active=t,null!=(r=this.model.callback)?r.execute(this.model):void 0},e}(u.WidgetView),n.CheckboxGroup=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="CheckboxGroup",e.prototype.default_view=n.CheckboxGroupView,e.define({active:[a.Array,[]],labels:[a.Array,[]],inline:[a.Bool,!1],callback:[a.Instance]}),e}(u.Widget)},372:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(18);n.clear_menus=new r.Signal({},"clear_menus"),document.addEventListener("click",function(){return n.clear_menus.emit(void 0)})},373:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty,s=t(379),a=t(4),u=t(13),l=t(397);l.prototype.adjustPosition=function(){var t,e,n,r,i,o,s,a,u;if(!this._o.container)return this.el.style.position="absolute",e=this._o.trigger,u=this.el.offsetWidth,n=this.el.offsetHeight,a=window.innerWidth||document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight,i=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop,t=e.getBoundingClientRect(),r=t.left+window.pageXOffset,o=t.bottom+window.pageYOffset,r-=this.el.parentElement.offsetLeft,o-=this.el.parentElement.offsetTop,(this._o.reposition&&r+u>a||this._o.position.indexOf("right")>-1&&r-u+e.offsetWidth>0)&&(r=r-u+e.offsetWidth),(this._o.reposition&&o+n>s+i||this._o.position.indexOf("top")>-1&&o-n-e.offsetHeight>0)&&(o=o-n-e.offsetHeight),this.el.style.left=r+"px",this.el.style.top=o+"px"},n.DatePickerView=function(t){function e(){return this._on_select=r(this._on_select,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.className="bk-widget-form-group",e.prototype.render=function(){return e.__super__.render.call(this),null!=this._picker&&this._picker.destroy(),a.empty(this.el),this.labelEl=a.label({},this.model.title),this.el.appendChild(this.labelEl),this.inputEl=a.input({type:"text","class":"bk-widget-form-input",disabled:this.model.disabled}),this.el.appendChild(this.inputEl),this._picker=new l({field:this.inputEl,defaultDate:new Date(this.model.value),setDefaultDate:!0,minDate:null!=this.model.min_date?new Date(this.model.min_date):null,maxDate:null!=this.model.max_date?new Date(this.model.max_date):null,onSelect:this._on_select}),this._root_element.appendChild(this._picker.el),this},e.prototype._on_select=function(t){return this.model.value=t.toString(),this.change_input()},e}(s.InputWidgetView),n.DatePicker=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.type="DatePicker",e.prototype.default_view=n.DatePickerView,e.define({value:[u.Any,Date.now()],min_date:[u.Any],max_date:[u.Any]}),e}(s.InputWidget)},374:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(356),s=t(367);n.DateRangeSliderView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype._calc_to=function(){return{start:this.model.start,end:this.model.end,value:this.model.value,step:this.model.step}},e.prototype._calc_from=function(t){return t},e}(s.AbstractSliderView),n.DateRangeSlider=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="DateRangeSlider",e.prototype.default_view=n.DateRangeSliderView,e.prototype.behaviour="drag",e.prototype.connected=[!1,!0,!1],e.prototype._formatter=o,e.override({format:"%d %b %G"}),e}(s.AbstractSlider)},375:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(356),s=t(367);n.DateSliderView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype._calc_to=function(){return{start:this.model.start,end:this.model.end,value:[this.model.value],step:this.model.step}},e.prototype._calc_from=function(t){var e;return e=t[0]},e}(s.AbstractSliderView),n.DateSlider=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="DateSlider",e.prototype.default_view=n.DateSliderView,e.prototype.behaviour="tap",e.prototype.connected=[!0,!1],e.prototype._formatter=o,e.override({format:"%d %b %G"}),e}(s.AbstractSlider)},376:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(381),s=t(4),a=t(13);n.DivView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.render=function(){var t;return e.__super__.render.call(this),t=s.div(),this.model.render_as_text?t.textContent=this.model.text:t.innerHTML=this.model.text,this.markupEl.appendChild(t),this},e}(o.MarkupView),n.Div=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="Div",e.prototype.default_view=n.DivView,e.define({render_as_text:[a.Bool,!1]}),e}(o.Markup)},377:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(4),s=t(13),a=t(365),u=t(372);n.DropdownView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.connect_signals=function(){return e.__super__.connect_signals.call(this),u.clear_menus.connect(function(t){return function(){return t._clear_menu()}}(this))},e.prototype.render=function(){var t,n,r,i,s,a,u,l,c,p,d;for(e.__super__.render.call(this),this.model.is_split_button?(this.el.classList.add("bk-bs-btn-group"),t=this._render_button(o.span({"class":"bk-bs-caret"})),t.classList.add("bk-bs-dropdown-toggle"),t.addEventListener("click",function(t){return function(e){return t._caret_click(e)}}(this)),this.el.appendChild(t)):(this.el.classList.add("bk-bs-dropdown"),this.buttonEl.classList.add("bk-bs-dropdown-toggle"),this.buttonEl.appendChild(o.span({"class":"bk-bs-caret"}))),this.model.active&&this.el.classList.add("bk-bs-open"),s=[],p=this.model.menu,n=0,u=p.length;n<u;n++)r=p[n],null!=r?(a=r[0],d=r[1],l=o.a({},a),l.dataset.value=d,l.addEventListener("click",function(t){return function(e){return t._item_click(e)}}(this)),i=o.li({},l)):i=o.li({"class":"bk-bs-divider"}),s.push(i);return c=o.ul({"class":"bk-bs-dropdown-menu"},s),this.el.appendChild(c),this},e.prototype._clear_menu=function(){return this.model.active=!1},e.prototype._toggle_menu=function(){var t;if(t=this.model.active,u.clear_menus.emit(),!t)return this.model.active=!0},e.prototype._button_click=function(t){return t.preventDefault(),t.stopPropagation(),this.model.is_split_button?(this._clear_menu(),this.set_value(this.model.default_value)):this._toggle_menu()},e.prototype._caret_click=function(t){return t.preventDefault(),t.stopPropagation(),this._toggle_menu()},e.prototype._item_click=function(t){return t.preventDefault(),this._clear_menu(),this.set_value(t.currentTarget.dataset.value)},e.prototype.set_value=function(t){return this.buttonEl.value=this.model.value=t,this.change_input()},e}(a.AbstractButtonView),n.Dropdown=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="Dropdown",e.prototype.default_view=n.DropdownView,e.define({value:[s.String],default_value:[s.String],menu:[s.Array,[]]}),e.override({label:"Dropdown"}),e.internal({active:[s.Boolean,!1]}),e.getters({is_split_button:function(){return null!=this.default_value}}),e}(a.AbstractButton)},378:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(365);n.AbstractButton=r.AbstractButton;var i=t(366);n.AbstractIcon=i.AbstractIcon;var o=t(368);n.AutocompleteInput=o.AutocompleteInput;var s=t(369);n.Button=s.Button;var a=t(370);n.CheckboxButtonGroup=a.CheckboxButtonGroup;var u=t(371);n.CheckboxGroup=u.CheckboxGroup;var l=t(373);n.DatePicker=l.DatePicker;var c=t(374);n.DateRangeSlider=c.DateRangeSlider;var p=t(375);n.DateSlider=p.DateSlider;var d=t(376);n.Div=d.Div;var h=t(377);n.Dropdown=h.Dropdown;var f=t(379);n.InputWidget=f.InputWidget;var _=t(381);n.Markup=_.Markup;var m=t(382);n.MultiSelect=m.MultiSelect;var y=t(383);n.Panel=y.Panel;var g=t(384);n.Paragraph=g.Paragraph;var v=t(385);n.PasswordInput=v.PasswordInput;var b=t(386);n.PreText=b.PreText;var w=t(387);n.RadioButtonGroup=w.RadioButtonGroup;var k=t(388);n.RadioGroup=k.RadioGroup;var x=t(389);n.RangeSlider=x.RangeSlider;var S=t(390);n.Select=S.Select;var E=t(391);n.Slider=E.Slider;var D=t(392);n.Tabs=D.Tabs;var M=t(393);n.TextInput=M.TextInput;var C=t(394);n.Toggle=C.Toggle;var P=t(405);n.Widget=P.Widget},379:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(405),s=t(13);n.InputWidgetView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.change_input=function(){var t;return null!=(t=this.model.callback)?t.execute(this.model):void 0},e}(o.WidgetView),n.InputWidget=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="InputWidget",e.prototype.default_view=n.InputWidgetView,e.define({callback:[s.Instance],title:[s.String,""]}),e}(o.Widget)},380:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(378);n.Widgets=r;var i=t(0);i.register_models(r)},381:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(13),s=t(4),a=t(28),u=t(405);n.MarkupView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.connect_signals=function(){return e.__super__.connect_signals.call(this),this.connect(this.model.change,function(){return this.render()})},e.prototype.render=function(){var t;return e.__super__.render.call(this),s.empty(this.el),t=a.extend({width:this.model.width+"px",height:this.model.height+"px"},this.model.style),this.markupEl=s.div({style:t}),this.el.appendChild(this.markupEl)},e}(u.WidgetView),n.Markup=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="Markup",e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t)},e.define({text:[o.String,""],style:[o.Any,{}]}),e}(u.Widget)},382:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty,s=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},a=t(4),u=t(40),l=t(13),c=t(379);n.MultiSelectView=function(t){function e(){return this.render_selection=r(this.render_selection,this),e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.connect_signals=function(){return e.__super__.connect_signals.call(this),this.connect(this.model.properties.value.change,function(){return this.render_selection()}),this.connect(this.model.properties.options.change,function(){return this.render()}),this.connect(this.model.properties.name.change,function(){return this.render()}),this.connect(this.model.properties.title.change,function(){return this.render()}),this.connect(this.model.properties.size.change,function(){return this.render()})},e.prototype.render=function(){var t,n;return e.__super__.render.call(this),a.empty(this.el),t=a.label({"for":this.model.id},this.model.title),this.el.appendChild(t),n=this.model.options.map(function(t){return function(e){var n,r,i;return u.isString(e)?i=n=e:(i=e[0],n=e[1]),r=s.call(t.model.value,i)>=0,a.option({selected:r,value:i},n)}}(this)),this.selectEl=a.select({multiple:!0,"class":"bk-widget-form-input",id:this.model.id,name:this.model.name,size:this.model.size},n),this.selectEl.addEventListener("change",function(t){return function(){return t.change_input()}}(this)),this.el.appendChild(this.selectEl),this},e.prototype.render_selection=function(){var t,e,n,r,i,o,s,a,u;for(a={},o=this.model.value,e=0,r=o.length;e<r;e++)u=o[e],a[u]=!0;for(s=this.el.querySelectorAll("option"),n=0,i=s.length;n<i;n++)t=s[n],a[t.value]&&(t.selected="selected");return this.selectEl.size=this.model.size},e.prototype.change_input=function(){var t,n,r,i,o,s;for(r=null!==this.el.querySelector("select:focus"),s=[],o=this.el.querySelectorAll("option"),n=0,i=o.length;n<i;n++)t=o[n],t.selected&&s.push(t.value);if(this.model.value=s,e.__super__.change_input.call(this),r)return this.selectEl.focus()},e}(c.InputWidgetView),n.MultiSelect=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.type="MultiSelect",e.prototype.default_view=n.MultiSelectView,e.define({value:[l.Array,[]],options:[l.Array,[]],size:[l.Number,4]}),e}(c.InputWidget)},383:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(405),s=t(13),a=t(4);n.PanelView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.render=function(){return e.__super__.render.call(this),a.empty(this.el),this},e}(o.WidgetView),n.Panel=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="Panel",e.prototype.default_view=n.PanelView,e.define({title:[s.String,""],child:[s.Instance],closable:[s.Bool,!1]}),e}(o.Widget)},384:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(381),s=t(4);n.ParagraphView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.render=function(){var t;return e.__super__.render.call(this),t=s.p({style:{margin:0}},this.model.text),this.markupEl.appendChild(t)},e}(o.MarkupView),n.Paragraph=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="Paragraph",e.prototype.default_view=n.ParagraphView,e}(o.Markup)},385:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(393);n.PasswordInputView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.render=function(){return e.__super__.render.call(this),this.inputEl.type="password"},e}(o.TextInputView),n.PasswordInput=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="PasswordInput",e.prototype.default_view=n.PasswordInputView,e}(o.TextInput)},386:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(381),s=t(4);n.PreTextView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.render=function(){var t;return e.__super__.render.call(this),t=s.pre({style:{overflow:"auto"}},this.model.text),this.markupEl.appendChild(t)},e}(o.MarkupView),n.PreText=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="PreText",e.prototype.default_view=n.PreTextView,e}(o.Markup)},387:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(4),s=t(35),a=t(13),u=t(405);n.RadioButtonGroupView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.connect_signals=function(){return e.__super__.connect_signals.call(this),this.connect(this.model.change,function(){return this.render()})},e.prototype.render=function(){var t,n,r,i,a,u,l,c,p,d;for(e.__super__.render.call(this),o.empty(this.el),n=o.div({"class":"bk-bs-btn-group"}),this.el.appendChild(n),c=s.uniqueId(),t=this.model.active,p=this.model.labels,
r=a=0,l=p.length;a<l;r=++a)d=p[r],i=o.input({type:"radio",name:c,value:""+r,checked:r===t}),i.addEventListener("change",function(t){return function(){return t.change_input()}}(this)),u=o.label({"class":["bk-bs-btn","bk-bs-btn-"+this.model.button_type]},i,d),r===t&&u.classList.add("bk-bs-active"),n.appendChild(u);return this},e.prototype.change_input=function(){var t,e,n,r;return t=function(){var t,r,i,o;for(i=this.el.querySelectorAll("input"),o=[],e=t=0,r=i.length;t<r;e=++t)n=i[e],n.checked&&o.push(e);return o}.call(this),this.model.active=t[0],null!=(r=this.model.callback)?r.execute(this.model):void 0},e}(u.WidgetView),n.RadioButtonGroup=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="RadioButtonGroup",e.prototype.default_view=n.RadioButtonGroupView,e.define({active:[a.Any,null],labels:[a.Array,[]],button_type:[a.String,"default"],callback:[a.Instance]}),e}(u.Widget)},388:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(4),s=t(35),a=t(13),u=t(405);n.RadioGroupView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.connect_signals=function(){return e.__super__.connect_signals.call(this),this.connect(this.model.change,function(){return this.render()})},e.prototype.render=function(){var t,n,r,i,a,u,l,c,p,d;for(e.__super__.render.call(this),o.empty(this.el),c=s.uniqueId(),t=this.model.active,p=this.model.labels,r=a=0,l=p.length;a<l;r=++a)d=p[r],i=o.input({type:"radio",name:c,value:""+r}),i.addEventListener("change",function(t){return function(){return t.change_input()}}(this)),this.model.disabled&&(i.disabled=!0),r===t&&(i.checked=!0),u=o.label({},i,d),this.model.inline?(u.classList.add("bk-bs-radio-inline"),this.el.appendChild(u)):(n=o.div({"class":"bk-bs-radio"},u),this.el.appendChild(n));return this},e.prototype.change_input=function(){var t,e,n,r;return t=function(){var t,r,i,o;for(i=this.el.querySelectorAll("input"),o=[],e=t=0,r=i.length;t<r;e=++t)n=i[e],n.checked&&o.push(e);return o}.call(this),this.model.active=t[0],null!=(r=this.model.callback)?r.execute(this.model):void 0},e}(u.WidgetView),n.RadioGroup=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="RadioGroup",e.prototype.default_view=n.RadioGroupView,e.define({active:[a.Any,null],labels:[a.Array,[]],inline:[a.Bool,!1],callback:[a.Instance]}),e}(u.Widget)},389:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(325),s=t(367);n.RangeSliderView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype._calc_to=function(){return{start:this.model.start,end:this.model.end,value:this.model.value,step:this.model.step}},e.prototype._calc_from=function(t){return t},e}(s.AbstractSliderView),n.RangeSlider=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="RangeSlider",e.prototype.default_view=n.RangeSliderView,e.prototype.behaviour="drag",e.prototype.connected=[!1,!0,!1],e.prototype._formatter=o.format,e.override({format:"0[.]00"}),e}(s.AbstractSlider)},390:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(4),s=t(40),a=t(12),u=t(13),l=t(379);n.SelectView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.connect_signals=function(){return e.__super__.connect_signals.call(this),this.connect(this.model.change,function(){return this.render()})},e.prototype.render=function(){var t,n;return e.__super__.render.call(this),o.empty(this.el),t=o.label({"for":this.model.id},this.model.title),this.el.appendChild(t),n=this.model.options.map(function(t){return function(e){var n,r,i;return s.isString(e)?i=n=e:(i=e[0],n=e[1]),r=t.model.value===i,o.option({selected:r,value:i},n)}}(this)),this.selectEl=o.select({"class":"bk-widget-form-input",id:this.model.id,name:this.model.name},n),this.selectEl.addEventListener("change",function(t){return function(){return t.change_input()}}(this)),this.el.appendChild(this.selectEl),this},e.prototype.change_input=function(){var t;return t=this.selectEl.value,a.logger.debug("selectbox: value = "+t),this.model.value=t,e.__super__.change_input.call(this)},e}(l.InputWidgetView),n.Select=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="Select",e.prototype.default_view=n.SelectView,e.define({value:[u.String,""],options:[u.Any,[]]}),e}(l.InputWidget)},391:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(325),s=t(367);n.SliderView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype._calc_to=function(){return{start:this.model.start,end:this.model.end,value:[this.model.value],step:this.model.step}},e.prototype._calc_from=function(t){var e;return e=t[0]},e}(s.AbstractSliderView),n.Slider=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="Slider",e.prototype.default_view=n.SliderView,e.prototype.behaviour="tap",e.prototype.connected=[!0,!1],e.prototype._formatter=o.format,e.override({format:"0[.]00"}),e}(s.AbstractSlider)},392:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(4),s=t(20),a=t(13),u=t(405);n.TabsView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.connect_signals=function(){return e.__super__.connect_signals.call(this),this.connect(this.model.properties.tabs.change,function(t){return function(){return t.rebuild_child_views()}}(this))},e.prototype.render=function(){var t,n,r,i,a,u,l,c,p,d,h;if(e.__super__.render.call(this),o.empty(this.el),r=this.model.tabs.length,0!==r){for(this.model.active>=r&&(this.model.active=r-1),d=this.model.tabs.map(function(t,e){return o.li({},o.span({data:{index:e}},t.title))}),d[this.model.active].classList.add("bk-bs-active"),h=o.ul({"class":["bk-bs-nav","bk-bs-nav-tabs"]},d),this.el.appendChild(h),u=this.model.tabs.map(function(t){return o.div({"class":"bk-bs-tab-pane"})}),u[this.model.active].classList.add("bk-bs-active"),l=o.div({"class":"bk-bs-tab-content"},u),this.el.appendChild(l),h.addEventListener("click",function(t){return function(e){var n,r,i,o;if(e.preventDefault(),e.target!==e.currentTarget&&(n=e.target,i=t.model.active,r=parseInt(n.dataset.index),i!==r))return d[i].classList.remove("bk-bs-active"),u[i].classList.remove("bk-bs-active"),d[r].classList.add("bk-bs-active"),u[r].classList.add("bk-bs-active"),t.model.active=r,null!=(o=t.model.callback)?o.execute(t.model):void 0}}(this)),c=s.zip(this.model.children,u),n=0,i=c.length;n<i;n++)p=c[n],t=p[0],a=p[1],a.appendChild(this.child_views[t.id].el);return this}},e}(u.WidgetView),n.Tabs=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="Tabs",e.prototype.default_view=n.TabsView,e.define({tabs:[a.Array,[]],active:[a.Number,0],callback:[a.Instance]}),e.getters({children:function(){var t,e,n,r,i;for(n=this.tabs,r=[],t=0,e=n.length;t<e;t++)i=n[t],r.push(i.child);return r}}),e.prototype.get_layoutable_children=function(){return this.children},e}(u.Widget)},393:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(12),s=t(13),a=t(4),u=t(379);n.TextInputView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.className="bk-widget-form-group",e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.connect_signals=function(){return e.__super__.connect_signals.call(this),this.connect(this.model.change,function(){return this.render()})},e.prototype.render=function(){var t;return e.__super__.render.call(this),a.empty(this.el),t=a.label({"for":this.model.id},this.model.title),this.el.appendChild(t),this.inputEl=a.input({type:"text","class":"bk-widget-form-input",id:this.model.id,name:this.model.name,value:this.model.value,disabled:this.model.disabled,placeholder:this.model.placeholder}),this.inputEl.addEventListener("change",function(t){return function(){return t.change_input()}}(this)),this.el.appendChild(this.inputEl),this.model.height&&(this.inputEl.style.height=this.model.height-35+"px"),this},e.prototype.change_input=function(){var t;return t=this.inputEl.value,o.logger.debug("widget/text_input: value = "+t),this.model.value=t,e.__super__.change_input.call(this)},e}(u.InputWidgetView),n.TextInput=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="TextInput",e.prototype.default_view=n.TextInputView,e.define({value:[s.String,""],placeholder:[s.String,""]}),e}(u.InputWidget)},394:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(13),s=t(365);n.ToggleView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.render=function(){return e.__super__.render.call(this),this.model.active&&this.buttonEl.classList.add("bk-bs-active"),this},e.prototype.change_input=function(){return this.model.active=!this.model.active,e.__super__.change_input.call(this)},e}(s.AbstractButtonView),n.Toggle=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="Toggle",e.prototype.default_view=n.ToggleView,e.define({active:[o.Bool,!1]}),e.override({label:"Toggle"}),e}(s.AbstractButton)},405:function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,o=t(134);n.WidgetView=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.className="bk-widget",e.prototype.render=function(){if(this._render_classes(),null!=this.model.height&&(this.el.style.height=this.model.height+"px"),null!=this.model.width)return this.el.style.width=this.model.width+"px"},e}(o.LayoutDOMView),n.Widget=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type="Widget",e.prototype.default_view=n.WidgetView,e}(o.LayoutDOM)},396:function(t,n,r){/*! nouislider - 10.1.0 - 2017-07-28 17:11:18 */
!function(t){"function"==typeof e&&e.amd?e([],t):"object"==typeof r?n.exports=t():window.noUiSlider=t()}(function(){"use strict";function t(t){return"object"==typeof t&&"function"==typeof t.to&&"function"==typeof t.from}function e(t){t.parentElement.removeChild(t)}function n(t){t.preventDefault()}function r(t){return t.filter(function(t){return!this[t]&&(this[t]=!0)},{})}function i(t,e){return Math.round(t/e)*e}function o(t,e){var n=t.getBoundingClientRect(),r=t.ownerDocument,i=r.documentElement,o=f(r);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(o.x=0),e?n.top+o.y-i.clientTop:n.left+o.x-i.clientLeft}function s(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function a(t,e,n){n>0&&(p(t,e),setTimeout(function(){d(t,e)},n))}function u(t){return Math.max(Math.min(t,100),0)}function l(t){return Array.isArray(t)?t:[t]}function c(t){t=String(t);var e=t.split(".");return e.length>1?e[1].length:0}function p(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function d(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function h(t,e){return t.classList?t.classList.contains(e):new RegExp("\\b"+e+"\\b").test(t.className)}function f(t){var e=void 0!==window.pageXOffset,n="CSS1Compat"===(t.compatMode||""),r=e?window.pageXOffset:n?t.documentElement.scrollLeft:t.body.scrollLeft,i=e?window.pageYOffset:n?t.documentElement.scrollTop:t.body.scrollTop;return{x:r,y:i}}function _(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function m(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(n){}return t}function y(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function g(t,e){return 100/(e-t)}function v(t,e){return 100*e/(t[1]-t[0])}function b(t,e){return v(t,t[0]<0?e+Math.abs(t[0]):e-t[0])}function w(t,e){return e*(t[1]-t[0])/100+t[0]}function k(t,e){for(var n=1;t>=e[n];)n+=1;return n}function x(t,e,n){if(n>=t.slice(-1)[0])return 100;var r,i,o,s,a=k(n,t);return r=t[a-1],i=t[a],o=e[a-1],s=e[a],o+b([r,i],n)/g(o,s)}function S(t,e,n){if(n>=100)return t.slice(-1)[0];var r,i,o,s,a=k(n,e);return r=t[a-1],i=t[a],o=e[a-1],s=e[a],w([r,i],(n-o)*g(o,s))}function E(t,e,n,r){if(100===r)return r;var o,s,a=k(r,t);return n?(o=t[a-1],s=t[a],r-o>(s-o)/2?s:o):e[a-1]?t[a-1]+i(r-t[a-1],e[a-1]):r}function D(t,e,n){var r;if("number"==typeof e&&(e=[e]),"[object Array]"!==Object.prototype.toString.call(e))throw new Error("noUiSlider ("+Z+"): 'range' contains invalid value.");if(r="min"===t?0:"max"===t?100:parseFloat(t),!s(r)||!s(e[0]))throw new Error("noUiSlider ("+Z+"): 'range' value isn't numeric.");n.xPct.push(r),n.xVal.push(e[0]),r?n.xSteps.push(!isNaN(e[1])&&e[1]):isNaN(e[1])||(n.xSteps[0]=e[1]),n.xHighestCompleteStep.push(0)}function M(t,e,n){if(!e)return!0;n.xSteps[t]=v([n.xVal[t],n.xVal[t+1]],e)/g(n.xPct[t],n.xPct[t+1]);var r=(n.xVal[t+1]-n.xVal[t])/n.xNumSteps[t],i=Math.ceil(Number(r.toFixed(3))-1),o=n.xVal[t]+n.xNumSteps[t]*i;n.xHighestCompleteStep[t]=o}function C(t,e,n){this.xPct=[],this.xVal=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=e;var r,i=[];for(r in t)t.hasOwnProperty(r)&&i.push([t[r],r]);for(i.length&&"object"==typeof i[0][0]?i.sort(function(t,e){return t[0][0]-e[0][0]}):i.sort(function(t,e){return t[0]-e[0]}),r=0;r<i.length;r++)D(i[r][1],i[r][0],this);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)M(r,this.xNumSteps[r],this)}function P(e){if(t(e))return!0;throw new Error("noUiSlider ("+Z+"): 'format' requires 'to' and 'from' methods.")}function O(t,e){if(!s(e))throw new Error("noUiSlider ("+Z+"): 'step' is not numeric.");t.singleStep=e}function A(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider ("+Z+"): 'range' is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider ("+Z+"): Missing 'min' or 'max' in 'range'.");if(e.min===e.max)throw new Error("noUiSlider ("+Z+"): 'range' 'min' and 'max' cannot be equal.");t.spectrum=new C(e,t.snap,t.singleStep)}function V(t,e){if(e=l(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider ("+Z+"): 'start' option is incorrect.");t.handles=e.length,t.start=e}function N(t,e){if(t.snap=e,"boolean"!=typeof e)throw new Error("noUiSlider ("+Z+"): 'snap' option must be a boolean.")}function I(t,e){if(t.animate=e,"boolean"!=typeof e)throw new Error("noUiSlider ("+Z+"): 'animate' option must be a boolean.")}function R(t,e){if(t.animationDuration=e,"number"!=typeof e)throw new Error("noUiSlider ("+Z+"): 'animationDuration' option must be a number.")}function j(t,e){var n,r=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),e===!0||e===!1){for(n=1;n<t.handles;n++)r.push(e);r.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error("noUiSlider ("+Z+"): 'connect' option doesn't match handle count.");r=e}t.connect=r}function T(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider ("+Z+"): 'orientation' option is invalid.")}}function L(t,e){if(!s(e))throw new Error("noUiSlider ("+Z+"): 'margin' option must be numeric.");if(0!==e&&(t.margin=t.spectrum.getMargin(e),!t.margin))throw new Error("noUiSlider ("+Z+"): 'margin' option is only supported on linear sliders.")}function W(t,e){if(!s(e))throw new Error("noUiSlider ("+Z+"): 'limit' option must be numeric.");if(t.limit=t.spectrum.getMargin(e),!t.limit||t.handles<2)throw new Error("noUiSlider ("+Z+"): 'limit' option is only supported on linear sliders with 2 or more handles.")}function B(t,e){if(!s(e))throw new Error("noUiSlider ("+Z+"): 'padding' option must be numeric.");if(0!==e){if(t.padding=t.spectrum.getMargin(e),!t.padding)throw new Error("noUiSlider ("+Z+"): 'padding' option is only supported on linear sliders.");if(t.padding<0)throw new Error("noUiSlider ("+Z+"): 'padding' option must be a positive number.");if(t.padding>=50)throw new Error("noUiSlider ("+Z+"): 'padding' option must be less than half the range.")}}function z(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider ("+Z+"): 'direction' option was not recognized.")}}function U(t,e){if("string"!=typeof e)throw new Error("noUiSlider ("+Z+"): 'behaviour' must be a string containing options.");var n=e.indexOf("tap")>=0,r=e.indexOf("drag")>=0,i=e.indexOf("fixed")>=0,o=e.indexOf("snap")>=0,s=e.indexOf("hover")>=0;if(i){if(2!==t.handles)throw new Error("noUiSlider ("+Z+"): 'fixed' behaviour must be used with 2 handles");L(t,t.start[1]-t.start[0])}t.events={tap:n||o,drag:r,fixed:i,snap:o,hover:s}}function F(t,e){if(t.multitouch=e,"boolean"!=typeof e)throw new Error("noUiSlider ("+Z+"): 'multitouch' option must be a boolean.")}function Y(t,e){if(e!==!1)if(e===!0){t.tooltips=[];for(var n=0;n<t.handles;n++)t.tooltips.push(!0)}else{if(t.tooltips=l(e),t.tooltips.length!==t.handles)throw new Error("noUiSlider ("+Z+"): must pass a formatter for all handles.");t.tooltips.forEach(function(t){if("boolean"!=typeof t&&("object"!=typeof t||"function"!=typeof t.to))throw new Error("noUiSlider ("+Z+"): 'tooltips' must be passed a formatter or 'false'.")})}}function H(t,e){t.ariaFormat=e,P(e)}function G(t,e){t.format=e,P(e)}function q(t,e){if(void 0!==e&&"string"!=typeof e&&e!==!1)throw new Error("noUiSlider ("+Z+"): 'cssPrefix' must be a string or `false`.");t.cssPrefix=e}function X(t,e){if(void 0!==e&&"object"!=typeof e)throw new Error("noUiSlider ("+Z+"): 'cssClasses' must be an object.");if("string"==typeof t.cssPrefix){t.cssClasses={};for(var n in e)e.hasOwnProperty(n)&&(t.cssClasses[n]=t.cssPrefix+e[n])}else t.cssClasses=e}function K(t,e){if(e!==!0&&e!==!1)throw new Error("noUiSlider ("+Z+"): 'useRequestAnimationFrame' option should be true (default) or false.");t.useRequestAnimationFrame=e}function J(t){var e={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,ariaFormat:tt,format:tt},n={step:{r:!1,t:O},start:{r:!0,t:V},connect:{r:!0,t:j},direction:{r:!0,t:z},snap:{r:!1,t:N},animate:{r:!1,t:I},animationDuration:{r:!1,t:R},range:{r:!0,t:A},orientation:{r:!1,t:T},margin:{r:!1,t:L},limit:{r:!1,t:W},padding:{r:!1,t:B},behaviour:{r:!0,t:U},multitouch:{r:!0,t:F},ariaFormat:{r:!1,t:H},format:{r:!1,t:G},tooltips:{r:!1,t:Y},cssPrefix:{r:!1,t:q},cssClasses:{r:!1,t:X},useRequestAnimationFrame:{r:!1,t:K}},r={connect:!1,direction:"ltr",behaviour:"tap",multitouch:!1,orientation:"horizontal",cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},useRequestAnimationFrame:!0};t.format&&!t.ariaFormat&&(t.ariaFormat=t.format),Object.keys(n).forEach(function(i){if(void 0===t[i]&&void 0===r[i]){if(n[i].r)throw new Error("noUiSlider ("+Z+"): '"+i+"' is required.");return!0}n[i].t(e,void 0===t[i]?r[i]:t[i])}),e.pips=t.pips;var i=[["left","top"],["right","bottom"]];return e.style=i[e.dir][e.ort],e.styleOposite=i[e.dir?0:1][e.ort],e}function $(t,i,s){function c(t,e){var n=kt.createElement("div");return e&&p(n,e),t.appendChild(n),n}function g(t,e){var n=c(t,i.cssClasses.origin),r=c(n,i.cssClasses.handle);return r.setAttribute("data-handle",e),r.setAttribute("tabindex","0"),r.setAttribute("role","slider"),r.setAttribute("aria-orientation",i.ort?"vertical":"horizontal"),0===e?p(r,i.cssClasses.handleLower):e===i.handles-1&&p(r,i.cssClasses.handleUpper),n}function v(t,e){return!!e&&c(t,i.cssClasses.connect)}function b(t,e){ut=[],lt=[],lt.push(v(e,t[0]));for(var n=0;n<i.handles;n++)ut.push(g(e,n)),yt[n]=n,lt.push(v(e,t[n+1]))}function w(t){p(t,i.cssClasses.target),0===i.dir?p(t,i.cssClasses.ltr):p(t,i.cssClasses.rtl),0===i.ort?p(t,i.cssClasses.horizontal):p(t,i.cssClasses.vertical),at=c(t,i.cssClasses.base)}function k(t,e){return!!i.tooltips[e]&&c(t.firstChild,i.cssClasses.tooltip)}function x(){var t=ut.map(k);it("update",function(e,n,r){if(t[n]){var o=e[n];i.tooltips[n]!==!0&&(o=i.tooltips[n].to(r[n])),t[n].innerHTML=o}})}function S(){it("update",function(t,e,n,r,o){yt.forEach(function(t){var e=ut[t],r=Y(mt,t,0,!0,!0,!0),s=Y(mt,t,100,!0,!0,!0),a=o[t],u=i.ariaFormat.to(n[t]);e.children[0].setAttribute("aria-valuemin",r.toFixed(1)),e.children[0].setAttribute("aria-valuemax",s.toFixed(1)),e.children[0].setAttribute("aria-valuenow",a.toFixed(1)),e.children[0].setAttribute("aria-valuetext",u)})})}function E(t,e,n){if("range"===t||"steps"===t)return vt.xVal;if("count"===t){if(!e)throw new Error("noUiSlider ("+Z+"): 'values' required for mode 'count'.");var r,i=100/(e-1),o=0;for(e=[];(r=o++*i)<=100;)e.push(r);t="positions"}return"positions"===t?e.map(function(t){return vt.fromStepping(n?vt.getStep(t):t)}):"values"===t?n?e.map(function(t){return vt.fromStepping(vt.getStep(vt.toStepping(t)))}):e:void 0}function D(t,e,n){function i(t,e){return(t+e).toFixed(7)/1}var o={},s=vt.xVal[0],a=vt.xVal[vt.xVal.length-1],u=!1,l=!1,c=0;return n=r(n.slice().sort(function(t,e){return t-e})),n[0]!==s&&(n.unshift(s),u=!0),n[n.length-1]!==a&&(n.push(a),l=!0),n.forEach(function(r,s){var a,p,d,h,f,_,m,y,g,v,b=r,w=n[s+1];if("steps"===e&&(a=vt.xNumSteps[s]),a||(a=w-b),b!==!1&&void 0!==w)for(a=Math.max(a,1e-7),p=b;p<=w;p=i(p,a)){for(h=vt.toStepping(p),f=h-c,y=f/t,g=Math.round(y),v=f/g,d=1;d<=g;d+=1)_=c+d*v,o[_.toFixed(5)]=["x",0];m=n.indexOf(p)>-1?1:"steps"===e?2:0,!s&&u&&(m=0),p===w&&l||(o[h.toFixed(5)]=[p,m]),c=h}}),o}function M(t,e,n){function r(t,e){var n=e===i.cssClasses.value,r=n?l:d,o=n?a:u;return e+" "+r[i.ort]+" "+o[t]}function o(t,o){o[1]=o[1]&&e?e(o[0],o[1]):o[1];var a=c(s,!1);a.className=r(o[1],i.cssClasses.marker),a.style[i.style]=t+"%",o[1]&&(a=c(s,!1),a.className=r(o[1],i.cssClasses.value),a.style[i.style]=t+"%",a.innerText=n.to(o[0]))}var s=kt.createElement("div"),a=[i.cssClasses.valueNormal,i.cssClasses.valueLarge,i.cssClasses.valueSub],u=[i.cssClasses.markerNormal,i.cssClasses.markerLarge,i.cssClasses.markerSub],l=[i.cssClasses.valueHorizontal,i.cssClasses.valueVertical],d=[i.cssClasses.markerHorizontal,i.cssClasses.markerVertical];return p(s,i.cssClasses.pips),p(s,0===i.ort?i.cssClasses.pipsHorizontal:i.cssClasses.pipsVertical),Object.keys(t).forEach(function(e){o(e,t[e])}),s}function C(){pt&&(e(pt),pt=null)}function P(t){C();var e=t.mode,n=t.density||1,r=t.filter||!1,i=t.values||!1,o=t.stepped||!1,s=E(e,i,o),a=D(n,e,s),u=t.format||{to:Math.round};return pt=_t.appendChild(M(a,r,u))}function O(){var t=at.getBoundingClientRect(),e="offset"+["Width","Height"][i.ort];return 0===i.ort?t.width||at[e]:t.height||at[e]}function A(t,e,n,r){var o=function(o){return!_t.hasAttribute("disabled")&&(!h(_t,i.cssClasses.tap)&&(!!(o=V(o,r.pageOffset,r.target||e))&&(!(t===dt.start&&void 0!==o.buttons&&o.buttons>1)&&((!r.hover||!o.buttons)&&(ft||o.preventDefault(),o.calcPoint=o.points[i.ort],void n(o,r))))))},s=[];return t.split(" ").forEach(function(t){e.addEventListener(t,o,!!ft&&{passive:!0}),s.push([t,o])}),s}function V(t,e,n){var r,o,s=0===t.type.indexOf("touch"),a=0===t.type.indexOf("mouse"),u=0===t.type.indexOf("pointer");if(0===t.type.indexOf("MSPointer")&&(u=!0),s&&i.multitouch){var l=function(t){return t.target===n||n.contains(t.target)};if("touchstart"===t.type){var c=Array.prototype.filter.call(t.touches,l);if(c.length>1)return!1;r=c[0].pageX,o=c[0].pageY}else{var p=Array.prototype.find.call(t.changedTouches,l);if(!p)return!1;r=p.pageX,o=p.pageY}}else if(s){if(t.touches.length>1)return!1;r=t.changedTouches[0].pageX,o=t.changedTouches[0].pageY}return e=e||f(kt),(a||u)&&(r=t.clientX+e.x,o=t.clientY+e.y),t.pageOffset=e,t.points=[r,o],t.cursor=a||u,t}function N(t){var e=t-o(at,i.ort),n=100*e/O();return i.dir?100-n:n}function I(t){var e=100,n=!1;return ut.forEach(function(r,i){if(!r.hasAttribute("disabled")){var o=Math.abs(mt[i]-t);o<e&&(n=i,e=o)}}),n}function R(t,e,n,r){var i=n.slice(),o=[!t,t],s=[t,!t];r=r.slice(),t&&r.reverse(),r.length>1?r.forEach(function(t,n){var r=Y(i,t,i[t]+e,o[n],s[n],!1);r===!1?e=0:(e=r-i[t],i[t]=r)}):o=s=[!0];var a=!1;r.forEach(function(t,r){a=X(t,n[t]+e,o[r],s[r])||a}),a&&r.forEach(function(t){j("update",t),j("slide",t)})}function j(t,e,n){Object.keys(wt).forEach(function(r){var o=r.split(".")[0];t===o&&wt[r].forEach(function(t){t.call(ct,bt.map(i.format.to),e,bt.slice(),n||!1,mt.slice())})})}function T(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&W(t,e)}function L(t,e){if(navigator.appVersion.indexOf("MSIE 9")===-1&&0===t.buttons&&0!==e.buttonsProperty)return W(t,e);var n=(i.dir?-1:1)*(t.calcPoint-e.startCalcPoint),r=100*n/e.baseSize;R(n>0,r,e.locations,e.handleNumbers)}function W(t,e){e.handle&&(d(e.handle,i.cssClasses.active),gt-=1),e.listeners.forEach(function(t){xt.removeEventListener(t[0],t[1])}),0===gt&&(d(_t,i.cssClasses.drag),q(),t.cursor&&(St.style.cursor="",St.removeEventListener("selectstart",n))),e.handleNumbers.forEach(function(t){j("change",t),j("set",t),j("end",t)})}function B(t,e){var r;if(1===e.handleNumbers.length){var o=ut[e.handleNumbers[0]];if(o.hasAttribute("disabled"))return!1;r=o.children[0],gt+=1,p(r,i.cssClasses.active)}t.stopPropagation();var s=[],a=A(dt.move,xt,L,{target:t.target,handle:r,listeners:s,startCalcPoint:t.calcPoint,baseSize:O(),pageOffset:t.pageOffset,handleNumbers:e.handleNumbers,buttonsProperty:t.buttons,locations:mt.slice()}),u=A(dt.end,xt,W,{target:t.target,handle:r,listeners:s,handleNumbers:e.handleNumbers}),l=A("mouseout",xt,T,{target:t.target,handle:r,listeners:s,handleNumbers:e.handleNumbers});s.push.apply(s,a.concat(u,l)),t.cursor&&(St.style.cursor=getComputedStyle(t.target).cursor,ut.length>1&&p(_t,i.cssClasses.drag),St.addEventListener("selectstart",n,!1)),e.handleNumbers.forEach(function(t){j("start",t)})}function z(t){t.stopPropagation();var e=N(t.calcPoint),n=I(e);return n!==!1&&(i.events.snap||a(_t,i.cssClasses.tap,i.animationDuration),X(n,e,!0,!0),q(),j("slide",n,!0),j("update",n,!0),j("change",n,!0),j("set",n,!0),void(i.events.snap&&B(t,{handleNumbers:[n]})))}function U(t){var e=N(t.calcPoint),n=vt.getStep(e),r=vt.fromStepping(n);Object.keys(wt).forEach(function(t){"hover"===t.split(".")[0]&&wt[t].forEach(function(t){t.call(ct,r)})})}function F(t){t.fixed||ut.forEach(function(t,e){A(dt.start,t.children[0],B,{handleNumbers:[e]})}),t.tap&&A(dt.start,at,z,{}),t.hover&&A(dt.move,at,U,{hover:!0}),t.drag&&lt.forEach(function(e,n){if(e!==!1&&0!==n&&n!==lt.length-1){var r=ut[n-1],o=ut[n],s=[e];p(e,i.cssClasses.draggable),t.fixed&&(s.push(r.children[0]),s.push(o.children[0])),s.forEach(function(t){A(dt.start,t,B,{handles:[r,o],handleNumbers:[n-1,n]})})}})}function Y(t,e,n,r,o,s){return ut.length>1&&(r&&e>0&&(n=Math.max(n,t[e-1]+i.margin)),o&&e<ut.length-1&&(n=Math.min(n,t[e+1]-i.margin))),ut.length>1&&i.limit&&(r&&e>0&&(n=Math.min(n,t[e-1]+i.limit)),o&&e<ut.length-1&&(n=Math.max(n,t[e+1]-i.limit))),i.padding&&(0===e&&(n=Math.max(n,i.padding)),e===ut.length-1&&(n=Math.min(n,100-i.padding))),n=vt.getStep(n),n=u(n),!(n===t[e]&&!s)&&n}function H(t){return t+"%"}function G(t,e){mt[t]=e,bt[t]=vt.fromStepping(e);var n=function(){ut[t].style[i.style]=H(e),K(t),K(t+1)};window.requestAnimationFrame&&i.useRequestAnimationFrame?window.requestAnimationFrame(n):n()}function q(){yt.forEach(function(t){var e=mt[t]>50?-1:1,n=3+(ut.length+e*t);ut[t].childNodes[0].style.zIndex=n})}function X(t,e,n,r){return e=Y(mt,t,e,n,r,!1),e!==!1&&(G(t,e),!0)}function K(t){if(lt[t]){var e=0,n=100;0!==t&&(e=mt[t-1]),t!==lt.length-1&&(n=mt[t]),lt[t].style[i.style]=H(e),lt[t].style[i.styleOposite]=H(100-n)}}function $(t,e){null!==t&&t!==!1&&("number"==typeof t&&(t=String(t)),t=i.format.from(t),t===!1||isNaN(t)||X(e,vt.toStepping(t),!1,!1))}function Q(t,e){var n=l(t),r=void 0===mt[0];e=void 0===e||!!e,n.forEach($),i.animate&&!r&&a(_t,i.cssClasses.tap,i.animationDuration),yt.forEach(function(t){X(t,mt[t],!0,!1)}),q(),yt.forEach(function(t){j("update",t),null!==n[t]&&e&&j("set",t)})}function tt(t){Q(i.start,t)}function et(){var t=bt.map(i.format.to);return 1===t.length?t[0]:t}function nt(){for(var t in i.cssClasses)i.cssClasses.hasOwnProperty(t)&&d(_t,i.cssClasses[t]);for(;_t.firstChild;)_t.removeChild(_t.firstChild);delete _t.noUiSlider}function rt(){return mt.map(function(t,e){var n=vt.getNearbySteps(t),r=bt[e],i=n.thisStep.step,o=null;i!==!1&&r+i>n.stepAfter.startValue&&(i=n.stepAfter.startValue-r),o=r>n.thisStep.startValue?n.thisStep.step:n.stepBefore.step!==!1&&r-n.stepBefore.highestStep,100===t?i=null:0===t&&(o=null);var s=vt.countStepDecimals();return null!==i&&i!==!1&&(i=Number(i.toFixed(s))),null!==o&&o!==!1&&(o=Number(o.toFixed(s))),[o,i]})}function it(t,e){wt[t]=wt[t]||[],wt[t].push(e),"update"===t.split(".")[0]&&ut.forEach(function(t,e){j("update",e)})}function ot(t){var e=t&&t.split(".")[0],n=e&&t.substring(e.length);Object.keys(wt).forEach(function(t){var r=t.split(".")[0],i=t.substring(r.length);e&&e!==r||n&&n!==i||delete wt[t]})}function st(t,e){var n=et(),r=["margin","limit","padding","range","animate","snap","step","format"];r.forEach(function(e){void 0!==t[e]&&(s[e]=t[e])});var o=J(s);r.forEach(function(e){void 0!==t[e]&&(i[e]=o[e])}),vt=o.spectrum,i.margin=o.margin,i.limit=o.limit,i.padding=o.padding,i.pips&&P(i.pips),mt=[],Q(t.start||n,e)}var at,ut,lt,ct,pt,dt=_(),ht=y(),ft=ht&&m(),_t=t,mt=[],yt=[],gt=0,vt=i.spectrum,bt=[],wt={},kt=t.ownerDocument,xt=kt.documentElement,St=kt.body;if(_t.noUiSlider)throw new Error("noUiSlider ("+Z+"): Slider was already initialized.");return w(_t),b(i.connect,at),ct={destroy:nt,steps:rt,on:it,off:ot,get:et,set:Q,reset:tt,__moveHandles:function(t,e,n){R(t,e,mt,n)},options:s,updateOptions:st,target:_t,removePips:C,pips:P},F(i.events),Q(i.start),i.pips&&P(i.pips),i.tooltips&&x(),S(),ct}function Q(t,e){if(!t||!t.nodeName)throw new Error("noUiSlider ("+Z+"): create requires a single element, got: "+t);var n=J(e,t),r=$(t,n,e);return t.noUiSlider=r,r}var Z="10.1.0";C.prototype.getMargin=function(t){var e=this.xNumSteps[0];if(e&&t/e%1!==0)throw new Error("noUiSlider ("+Z+"): 'limit', 'margin' and 'padding' must be divisible by step.");return 2===this.xPct.length&&v(this.xVal,t)},C.prototype.toStepping=function(t){return t=x(this.xVal,this.xPct,t)},C.prototype.fromStepping=function(t){return S(this.xVal,this.xPct,t)},C.prototype.getStep=function(t){return t=E(this.xPct,this.xSteps,this.snap,t)},C.prototype.getNearbySteps=function(t){var e=k(t,this.xPct);return{stepBefore:{startValue:this.xVal[e-2],step:this.xNumSteps[e-2],highestStep:this.xHighestCompleteStep[e-2]},thisStep:{startValue:this.xVal[e-1],step:this.xNumSteps[e-1],highestStep:this.xHighestCompleteStep[e-1]},stepAfter:{startValue:this.xVal[e-0],step:this.xNumSteps[e-0],highestStep:this.xHighestCompleteStep[e-0]}}},C.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(c);return Math.max.apply(null,t)},C.prototype.convert=function(t){return this.getStep(this.toStepping(t))};var tt={to:function(t){return void 0!==t&&t.toFixed(2)},from:Number};return{version:Z,create:Q}})},397:function(t,n,r){/*!
* Pikaday
*
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday
*/
!function(i,o){"use strict";var s;if("object"==typeof r){try{s=t("moment")}catch(a){}n.exports=o(s)}else"function"==typeof e&&e.amd?e(function(t){var e="moment";try{s=t(e)}catch(n){}return o(s)}):i.Pikaday=o(i.moment)}(this,function(t){"use strict";var e="function"==typeof t,n=!!window.addEventListener,r=window.document,i=window.setTimeout,o=function(t,e,r,i){n?t.addEventListener(e,r,!!i):t.attachEvent("on"+e,r)},s=function(t,e,r,i){n?t.removeEventListener(e,r,!!i):t.detachEvent("on"+e,r)},a=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},u=function(t,e){return(" "+t.className+" ").indexOf(" "+e+" ")!==-1},l=function(t,e){u(t,e)||(t.className=""===t.className?e:t.className+" "+e)},c=function(t,e){t.className=a((" "+t.className+" ").replace(" "+e+" "," "))},p=function(t){return/Array/.test(Object.prototype.toString.call(t))},d=function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())},h=function(t){var e=t.getDay();return 0===e||6===e},f=function(t){return t%4===0&&t%100!==0||t%400===0},_=function(t,e){return[31,f(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},m=function(t){d(t)&&t.setHours(0,0,0,0)},y=function(t,e){return t.getTime()===e.getTime()},g=function(t,e,n){var r,i;for(r in e)i=void 0!==t[r],i&&"object"==typeof e[r]&&null!==e[r]&&void 0===e[r].nodeName?d(e[r])?n&&(t[r]=new Date(e[r].getTime())):p(e[r])?n&&(t[r]=e[r].slice(0)):t[r]=g({},e[r],n):!n&&i||(t[r]=e[r]);return t},v=function(t,e,n){var i;r.createEvent?(i=r.createEvent("HTMLEvents"),i.initEvent(e,!0,!1),i=g(i,n),t.dispatchEvent(i)):r.createEventObject&&(i=r.createEventObject(),i=g(i,n),t.fireEvent("on"+e,i))},b=function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),t.month>11&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t},w={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null},k=function(t,e,n){for(e+=t.firstDay;e>=7;)e-=7;return n?t.i18n.weekdaysShort[e]:t.i18n.weekdays[e]},x=function(t){var e=[],n="false";if(t.isEmpty){if(!t.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';e.push("is-outside-current-month"),t.enableSelectionDaysInNextAndPreviousMonths||e.push("is-selection-disabled")}return t.isDisabled&&e.push("is-disabled"),t.isToday&&e.push("is-today"),t.isSelected&&(e.push("is-selected"),n="true"),t.hasEvent&&e.push("has-event"),t.isInRange&&e.push("is-inrange"),t.isStartRange&&e.push("is-startrange"),t.isEndRange&&e.push("is-endrange"),'<td data-day="'+t.day+'" class="'+e.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+t.year+'" data-pika-month="'+t.month+'" data-pika-day="'+t.day+'">'+t.day+"</button></td>"},S=function(t,e,n){var r=new Date(n,0,1),i=Math.ceil(((new Date(n,e,t)-r)/864e5+r.getDay()+1)/7);return'<td class="pika-week">'+i+"</td>"},E=function(t,e,n,r){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(r?" is-selected":"")+'">'+(e?t.reverse():t).join("")+"</tr>"},D=function(t){return"<tbody>"+t.join("")+"</tbody>"},M=function(t){var e,n=[];for(t.showWeekNumber&&n.push("<th></th>"),e=0;e<7;e++)n.push('<th scope="col"><abbr title="'+k(t,e)+'">'+k(t,e,!0)+"</abbr></th>");return"<thead><tr>"+(t.isRTL?n.reverse():n).join("")+"</tr></thead>"},C=function(t,e,n,r,i,o){var s,a,u,l,c,d=t._o,h=n===d.minYear,f=n===d.maxYear,_='<div id="'+o+'" class="pika-title" role="heading" aria-live="assertive">',m=!0,y=!0;for(u=[],s=0;s<12;s++)u.push('<option value="'+(n===i?s-e:12+s-e)+'"'+(s===r?' selected="selected"':"")+(h&&s<d.minMonth||f&&s>d.maxMonth?'disabled="disabled"':"")+">"+d.i18n.months[s]+"</option>");for(l='<div class="pika-label">'+d.i18n.months[r]+'<select class="pika-select pika-select-month" tabindex="-1">'+u.join("")+"</select></div>",p(d.yearRange)?(s=d.yearRange[0],a=d.yearRange[1]+1):(s=n-d.yearRange,a=1+n+d.yearRange),u=[];s<a&&s<=d.maxYear;s++)s>=d.minYear&&u.push('<option value="'+s+'"'+(s===n?' selected="selected"':"")+">"+s+"</option>");return c='<div class="pika-label">'+n+d.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+u.join("")+"</select></div>",_+=d.showMonthAfterYear?c+l:l+c,h&&(0===r||d.minMonth>=r)&&(m=!1),f&&(11===r||d.maxMonth<=r)&&(y=!1),0===e&&(_+='<button class="pika-prev'+(m?"":" is-disabled")+'" type="button">'+d.i18n.previousMonth+"</button>"),e===t._o.numberOfMonths-1&&(_+='<button class="pika-next'+(y?"":" is-disabled")+'" type="button">'+d.i18n.nextMonth+"</button>"),_+="</div>"},P=function(t,e,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+M(t)+D(e)+"</table>"},O=function(s){var a=this,l=a.config(s);a._onMouseDown=function(t){if(a._v){t=t||window.event;var e=t.target||t.srcElement;if(e)if(u(e,"is-disabled")||(!u(e,"pika-button")||u(e,"is-empty")||u(e.parentNode,"is-disabled")?u(e,"pika-prev")?a.prevMonth():u(e,"pika-next")&&a.nextMonth():(a.setDate(new Date(e.getAttribute("data-pika-year"),e.getAttribute("data-pika-month"),e.getAttribute("data-pika-day"))),l.bound&&i(function(){a.hide(),l.blurFieldOnSelect&&l.field&&l.field.blur()},100))),u(e,"pika-select"))a._c=!0;else{if(!t.preventDefault)return t.returnValue=!1,!1;t.preventDefault()}}},a._onChange=function(t){t=t||window.event;var e=t.target||t.srcElement;e&&(u(e,"pika-select-month")?a.gotoMonth(e.value):u(e,"pika-select-year")&&a.gotoYear(e.value))},a._onKeyChange=function(t){if(t=t||window.event,a.isVisible())switch(t.keyCode){case 13:case 27:l.field&&l.field.blur();break;case 37:t.preventDefault(),a.adjustDate("subtract",1);break;case 38:a.adjustDate("subtract",7);break;case 39:a.adjustDate("add",1);break;case 40:a.adjustDate("add",7)}},a._onInputChange=function(n){var r;n.firedBy!==a&&(l.parse?r=l.parse(l.field.value,l.format):e?(r=t(l.field.value,l.format,l.formatStrict),r=r&&r.isValid()?r.toDate():null):r=new Date(Date.parse(l.field.value)),d(r)&&a.setDate(r),a._v||a.show())},a._onInputFocus=function(){a.show()},a._onInputClick=function(){a.show()},a._onInputBlur=function(){var t=r.activeElement;do if(u(t,"pika-single"))return;while(t=t.parentNode);a._c||(a._b=i(function(){a.hide()},50)),a._c=!1},a._onClick=function(t){t=t||window.event;var e=t.target||t.srcElement,r=e;if(e){!n&&u(e,"pika-select")&&(e.onchange||(e.setAttribute("onchange","return;"),o(e,"change",a._onChange)));do if(u(r,"pika-single")||r===l.trigger)return;while(r=r.parentNode);a._v&&e!==l.trigger&&r!==l.trigger&&a.hide()}},a.el=r.createElement("div"),a.el.className="pika-single"+(l.isRTL?" is-rtl":"")+(l.theme?" "+l.theme:""),o(a.el,"mousedown",a._onMouseDown,!0),o(a.el,"touchend",a._onMouseDown,!0),o(a.el,"change",a._onChange),o(r,"keydown",a._onKeyChange),l.field&&(l.container?l.container.appendChild(a.el):l.bound?r.body.appendChild(a.el):l.field.parentNode.insertBefore(a.el,l.field.nextSibling),o(l.field,"change",a._onInputChange),l.defaultDate||(e&&l.field.value?l.defaultDate=t(l.field.value,l.format).toDate():l.defaultDate=new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var c=l.defaultDate;d(c)?l.setDefaultDate?a.setDate(c,!0):a.gotoDate(c):a.gotoDate(new Date),l.bound?(this.hide(),a.el.className+=" is-bound",o(l.trigger,"click",a._onInputClick),o(l.trigger,"focus",a._onInputFocus),o(l.trigger,"blur",a._onInputBlur)):this.show()};return O.prototype={config:function(t){this._o||(this._o=g({},w,!0));var e=g(this._o,t,!0);e.isRTL=!!e.isRTL,e.field=e.field&&e.field.nodeName?e.field:null,e.theme="string"==typeof e.theme&&e.theme?e.theme:null,e.bound=!!(void 0!==e.bound?e.field&&e.bound:e.field),e.trigger=e.trigger&&e.trigger.nodeName?e.trigger:e.field,e.disableWeekends=!!e.disableWeekends,e.disableDayFn="function"==typeof e.disableDayFn?e.disableDayFn:null;var n=parseInt(e.numberOfMonths,10)||1;if(e.numberOfMonths=n>4?4:n,d(e.minDate)||(e.minDate=!1),d(e.maxDate)||(e.maxDate=!1),e.minDate&&e.maxDate&&e.maxDate<e.minDate&&(e.maxDate=e.minDate=!1),e.minDate&&this.setMinDate(e.minDate),e.maxDate&&this.setMaxDate(e.maxDate),p(e.yearRange)){var r=(new Date).getFullYear()-10;e.yearRange[0]=parseInt(e.yearRange[0],10)||r,e.yearRange[1]=parseInt(e.yearRange[1],10)||r}else e.yearRange=Math.abs(parseInt(e.yearRange,10))||w.yearRange,e.yearRange>100&&(e.yearRange=100);return e},toString:function(n){return n=n||this._o.format,d(this._d)?this._o.toString?this._o.toString(this._d,n):e?t(this._d).format(n):this._d.toDateString():""},getMoment:function(){return e?t(this._d):null},setMoment:function(n,r){e&&t.isMoment(n)&&this.setDate(n.toDate(),r)},getDate:function(){return d(this._d)?new Date(this._d.getTime()):null},setDate:function(t,e){if(!t)return this._d=null,this._o.field&&(this._o.field.value="",v(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof t&&(t=new Date(Date.parse(t))),d(t)){var n=this._o.minDate,r=this._o.maxDate;d(n)&&t<n?t=n:d(r)&&t>r&&(t=r),this._d=new Date(t.getTime()),m(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),v(this._o.field,"change",{firedBy:this})),e||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(t){var e=!0;if(d(t)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),r=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),i=t.getTime();r.setMonth(r.getMonth()+1),r.setDate(r.getDate()-1),e=i<n.getTime()||r.getTime()<i}e&&(this.calendars=[{month:t.getMonth(),year:t.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(t,e){var n,r=this.getDate()||new Date,i=24*parseInt(e)*60*60*1e3;"add"===t?n=new Date(r.valueOf()+i):"subtract"===t&&(n=new Date(r.valueOf()-i)),this.setDate(n)},adjustCalendars:function(){this.calendars[0]=b(this.calendars[0]);for(var t=1;t<this._o.numberOfMonths;t++)this.calendars[t]=b({month:this.calendars[0].month+t,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(t){isNaN(t)||(this.calendars[0].month=parseInt(t,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(t){isNaN(t)||(this.calendars[0].year=parseInt(t,10),this.adjustCalendars())},setMinDate:function(t){t instanceof Date?(m(t),this._o.minDate=t,this._o.minYear=t.getFullYear(),this._o.minMonth=t.getMonth()):(this._o.minDate=w.minDate,this._o.minYear=w.minYear,this._o.minMonth=w.minMonth,this._o.startRange=w.startRange),this.draw()},setMaxDate:function(t){t instanceof Date?(m(t),this._o.maxDate=t,this._o.maxYear=t.getFullYear(),this._o.maxMonth=t.getMonth()):(this._o.maxDate=w.maxDate,this._o.maxYear=w.maxYear,this._o.maxMonth=w.maxMonth,this._o.endRange=w.endRange),this.draw()},setStartRange:function(t){this._o.startRange=t},setEndRange:function(t){this._o.endRange=t},draw:function(t){if(this._v||t){var e,n=this._o,r=n.minYear,o=n.maxYear,s=n.minMonth,a=n.maxMonth,u="";this._y<=r&&(this._y=r,!isNaN(s)&&this._m<s&&(this._m=s)),this._y>=o&&(this._y=o,!isNaN(a)&&this._m>a&&(this._m=a)),e="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var l=0;l<n.numberOfMonths;l++)u+='<div class="pika-lendar">'+C(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year,e)+this.render(this.calendars[l].year,this.calendars[l].month,e)+"</div>";this.el.innerHTML=u,n.bound&&"hidden"!==n.field.type&&i(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var t,e,n,i,o,s,a,u,l,c;if(!this._o.container){if(this.el.style.position="absolute",t=this._o.trigger,e=t,n=this.el.offsetWidth,i=this.el.offsetHeight,o=window.innerWidth||r.documentElement.clientWidth,s=window.innerHeight||r.documentElement.clientHeight,a=window.pageYOffset||r.body.scrollTop||r.documentElement.scrollTop,"function"==typeof t.getBoundingClientRect)c=t.getBoundingClientRect(),u=c.left+window.pageXOffset,l=c.bottom+window.pageYOffset;else for(u=e.offsetLeft,l=e.offsetTop+e.offsetHeight;e=e.offsetParent;)u+=e.offsetLeft,l+=e.offsetTop;(this._o.reposition&&u+n>o||this._o.position.indexOf("right")>-1&&u-n+t.offsetWidth>0)&&(u=u-n+t.offsetWidth),(this._o.reposition&&l+i>s+a||this._o.position.indexOf("top")>-1&&l-i-t.offsetHeight>0)&&(l=l-i-t.offsetHeight),this.el.style.left=u+"px",this.el.style.top=l+"px"}},render:function(t,e,n){var r=this._o,i=new Date,o=_(t,e),s=new Date(t,e,1).getDay(),a=[],u=[];m(i),r.firstDay>0&&(s-=r.firstDay,s<0&&(s+=7));for(var l=0===e?11:e-1,c=11===e?0:e+1,p=0===e?t-1:t,f=11===e?t+1:t,g=_(p,l),v=o+s,b=v;b>7;)b-=7;v+=7-b;for(var w=!1,k=0,D=0;k<v;k++){var M=new Date(t,e,1+(k-s)),C=!!d(this._d)&&y(M,this._d),O=y(M,i),A=r.events.indexOf(M.toDateString())!==-1,V=k<s||k>=o+s,N=1+(k-s),I=e,R=t,j=r.startRange&&y(r.startRange,M),T=r.endRange&&y(r.endRange,M),L=r.startRange&&r.endRange&&r.startRange<M&&M<r.endRange,W=r.minDate&&M<r.minDate||r.maxDate&&M>r.maxDate||r.disableWeekends&&h(M)||r.disableDayFn&&r.disableDayFn(M);V&&(k<s?(N=g+N,I=l,R=p):(N-=o,I=c,R=f));var B={day:N,month:I,year:R,hasEvent:A,isSelected:C,isToday:O,isDisabled:W,isEmpty:V,isStartRange:j,isEndRange:T,isInRange:L,showDaysInNextAndPreviousMonths:r.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:r.enableSelectionDaysInNextAndPreviousMonths};r.pickWholeWeek&&C&&(w=!0),u.push(x(B)),7===++D&&(r.showWeekNumber&&u.unshift(S(k-s,e,t)),a.push(E(u,r.isRTL,r.pickWholeWeek,w)),u=[],D=0,w=!1)}return P(r,a,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),c(this.el,"is-hidden"),this._o.bound&&(o(r,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var t=this._v;t!==!1&&(this._o.bound&&s(r,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",l(this.el,"is-hidden"),this._v=!1,void 0!==t&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),s(this.el,"mousedown",this._onMouseDown,!0),s(this.el,"touchend",this._onMouseDown,!0),s(this.el,"change",this._onChange),s(r,"keydown",this._onKeyChange),this._o.field&&(s(this._o.field,"change",this._onInputChange),this._o.bound&&(s(this._o.trigger,"click",this._onInputClick),s(this._o.trigger,"focus",this._onInputFocus),s(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},O})}},{"models/widgets/abstract_button":365,"models/widgets/abstract_icon":366,"models/widgets/abstract_slider":367,"models/widgets/autocomplete_input":368,"models/widgets/button":369,"models/widgets/checkbox_button_group":370,"models/widgets/checkbox_group":371,"models/widgets/common":372,"models/widgets/date_picker":373,"models/widgets/date_range_slider":374,"models/widgets/date_slider":375,"models/widgets/div":376,"models/widgets/dropdown":377,"models/widgets/index":378,"models/widgets/input_widget":379,"models/widgets/main":380,"models/widgets/markup":381,"models/widgets/multiselect":382,"models/widgets/panel":383,"models/widgets/paragraph":384,"models/widgets/password_input":385,"models/widgets/pretext":386,"models/widgets/radio_button_group":387,"models/widgets/radio_group":388,"models/widgets/range_slider":389,"models/widgets/selectbox":390,"models/widgets/slider":391,"models/widgets/tabs":392,"models/widgets/text_input":393,"models/widgets/toggle":394,"models/widgets/widget":405},380)});/*!
Copyright (c) 2012, Anaconda, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
Neither the name of Anaconda nor the names of any contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
*/
//# sourceMappingURL=bokeh-widgets.min.js.map