").appendTo(n),i=n.uniqueId().attr("id");return this._addClass(r,"ui-tooltip-content"),this._addClass(n,"ui-tooltip","ui-widget ui-widget-content"),n.appendTo(this._appendTo(t)),this.tooltips[i]={element:t,tooltip:n}},_find:function(e){var t=e.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(e){clearInterval(this.delayedShow),e.remove(),delete this.tooltips[e.attr("id")]},_appendTo:function(e){var t=e.closest(".ui-front, dialog");return t.length||(t=this.document[0].body),t},_destroy:function(){var t=this;e.each(this.tooltips,(function(n,r){var i=e.Event("blur"),o=r.element;i.target=i.currentTarget=o[0],t.close(i,!0),e("#"+n).remove(),o.data("ui-tooltip-title")&&(o.attr("title")||o.attr("title",o.data("ui-tooltip-title")),o.removeData("ui-tooltip-title"))})),this.liveRegion.remove()}}),!1!==e.uiBackCompat&&e.widget("ui.tooltip",e.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var e=this._superApply(arguments);return this.options.tooltipClass&&e.tooltip.addClass(this.options.tooltipClass),e}}),e.ui.tooltip},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)},84999:function(){"use strict";!function(){if(!jQuery||!jQuery.jstree){var e=!1,t=!1,n=!1;!function(r){r.vakata={},r.vakata.css={get_css:function(e,t,n){e=e.toLowerCase();var r=n.cssRules||n.rules,i=0;do{if(r.length&&i>r.length+5)return!1;if(r[i].selectorText&&r[i].selectorText.toLowerCase()==e)return!0===t?(n.removeRule&&n.removeRule(i),n.deleteRule&&n.deleteRule(i),!0):r[i]}while(r[++i]);return!1},add_css:function(e,t){return!r.jstree.css.get_css(e,!1,t)&&(t.insertRule?t.insertRule(e+" { }",0):t.addRule(e,null,0),r.vakata.css.get_css(e))},remove_css:function(e,t){return r.vakata.css.get_css(e,!0,t)},add_sheet:function(e){}};var i=[],o=-1,a={},s={};r.fn.jstree=function(e){var t="string"==typeof e,n=Array.prototype.slice.call(arguments,1),o=this;if(t){if("_"==e.substring(0,1))return o;this.each((function(){var t=i[r.data(this,"jstree_instance_id")],a=t&&"function"==typeof t[e]?t[e].apply(t,n):t;if(void 0!==a&&(0===e.indexOf("is_")||!0!==a&&!1!==a))return o=a,!1}))}else this.each((function(){var t=r.data(this,"jstree_instance_id"),o=[],s=e?r.extend({},!0,e):{},u=r(this),c=!1,l=[];o=o.concat(n),u.data("jstree")&&o.push(u.data("jstree")),s=o.length?r.extend.apply(null,[!0,s].concat(o)):s,void 0!==t&&i[t]&&i[t].destroy(),t=parseInt(i.push({}),10)-1,r.data(this,"jstree_instance_id",t),s.plugins=Array.isArray(s.plugins)?s.plugins:r.jstree.defaults.plugins.slice(),s.plugins.unshift("core"),s.plugins=s.plugins.sort().join(",,").replace(/(,|^)([^,]+)(,,\2)+(,|$)/g,"$1$2$4").replace(/,,+/g,",").replace(/,$/,"").split(","),(c=r.extend(!0,{},r.jstree.defaults,s)).plugins=s.plugins,r.each(a,(function(e,t){-1===r.inArray(e,c.plugins)?(c[e]=null,delete c[e]):l.push(e)})),c.plugins=l,i[t]=new r.jstree._instance(t,r(this).addClass("jstree jstree-"+t),c),r.each(i[t]._get_settings().plugins,(function(e,n){i[t].data[n]={}})),r.each(i[t]._get_settings().plugins,(function(e,n){a[n]&&a[n].__init.apply(i[t])})),setTimeout((function(){i[t]&&i[t].init()}),0)}));return o},r.jstree={defaults:{plugins:[]},_focused:function(){return i[o]||null},_reference:function(e){if(i[e])return i[e];var t=r(e);return t.length||"string"!=typeof e||(t=r("#"+e)),t.length&&i[t.closest(".jstree").data("jstree_instance_id")]||null},_instance:function(e,t,n){this.data={core:{}},this.get_settings=function(){return r.extend(!0,{},n)},this._get_settings=function(){return n},this.get_index=function(){return e},this.get_container=function(){return t},this.get_container_ul=function(){return t.children("ul:eq(0)")},this._set_settings=function(e){n=r.extend(!0,{},n,e)}},_fn:{},plugin:function(e,t){t=r.extend({},{__init:r.noop,__destroy:r.noop,_fn:{},defaults:!1},t),a[e]=t,r.jstree.defaults[e]=t.defaults,r.each(t._fn,(function(t,n){n.plugin=e,n.old=r.jstree._fn[t],r.jstree._fn[t]=function(){var e,i=n,o=Array.prototype.slice.call(arguments),a=new r.Event("before.jstree"),s=!1;if(!0!==this.data.core.locked||"unlock"===t||"is_locked"===t){do{if(i&&i.plugin&&-1!==r.inArray(i.plugin,this._get_settings().plugins))break;i=i.old}while(i);if(i){if(0===t.indexOf("_"))e=i.apply(this,o);else{if(!1===(e=this.get_container().triggerHandler(a,{func:t,inst:this,args:o,plugin:i.plugin})))return;void 0!==e&&(o=e),e=i.apply(r.extend({},this,{__callback:function(e){this.get_container().triggerHandler(t+".jstree",{inst:this,args:o,rslt:e,rlbk:s})},__rollback:function(){return s=this.get_rollback()},__call_old:function(e){return i.old.apply(this,e?Array.prototype.slice.call(arguments,1):o)}}),o)}return e}}},r.jstree._fn[t].old=n.old,r.jstree._fn[t].plugin=e}))},rollback:function(e){e&&(Array.isArray(e)||(e=[e]),r.each(e,(function(e,t){i[t.i].set_rollback(t.h,t.d)})))}},r.jstree._fn=r.jstree._instance.prototype={},r((function(){var i=navigator.userAgent.toLowerCase(),o=(i.match(/.+?(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],a=".jstree ul, .jstree li { display:block; margin:0 0 0 0; padding:0 0 0 0; list-style-type:none; } .jstree li { display:block; min-height:18px; line-height:18px; white-space:nowrap; margin-left:18px; min-width:18px; } .jstree-rtl li { margin-left:0; margin-right:18px; } .jstree > ul > li { margin-left:0px; } .jstree-rtl > ul > li { margin-right:0px; } .jstree ins { display:inline-block; text-decoration:none; width:18px; height:18px; margin:0 0 0 0; padding:0; } .jstree a { display:inline-block; line-height:16px; height:16px; color:black; white-space:nowrap; text-decoration:none; padding:1px 2px; margin:0; } .jstree a:focus { outline: none; } .jstree a > ins { height:16px; width:16px; } .jstree a > .jstree-icon { margin-right:3px; } .jstree-rtl a > .jstree-icon { margin-left:3px; margin-right:0; } li.jstree-open > ul { display:block; } li.jstree-closed > ul { display:none; } ";if(/msie/.test(i)&&6==parseInt(o,10)){e=!0;try{document.execCommand("BackgroundImageCache",!1,!0)}catch(e){}a+=".jstree li { height:18px; margin-left:0; margin-right:0; } .jstree li li { margin-left:18px; } .jstree-rtl li li { margin-left:0px; margin-right:18px; } li.jstree-open ul { display:block; } li.jstree-closed ul { display:none !important; } .jstree li a { display:inline; border-width:0 !important; padding:0px 2px !important; } .jstree li a ins { height:16px; width:16px; margin-right:3px; } .jstree-rtl li a ins { margin-right:0px; margin-left:3px; } "}/msie/.test(i)&&7==parseInt(o,10)&&(t=!0,a+=".jstree li a { border-width:0 !important; padding:0px 2px !important; } "),!/compatible/.test(i)&&/mozilla/.test(i)&&parseFloat(o,10)<1.9&&(n=!0,a+=".jstree ins { display:-moz-inline-box; } .jstree li { line-height:12px; } .jstree a { display:-moz-inline-box; } .jstree .jstree-no-icons .jstree-checkbox { display:-moz-inline-stack !important; } "),r.vakata.css.add_sheet({str:a,title:"jstree"})})),r.jstree.plugin("core",{__init:function(){this.data.core.locked=!1,this.data.core.to_open=this.get_settings().core.initially_open,this.data.core.to_load=this.get_settings().core.initially_load},defaults:{html_titles:!1,animation:500,initially_open:[],initially_load:[],open_parents:!0,notify_plugins:!0,rtl:!1,load_open:!1,strings:{loading:"Loading ...",new_node:"New node",multiple_selection:"Multiple selection"}},_fn:{init:function(){this.set_focus(),this._get_settings().core.rtl&&this.get_container().addClass("jstree-rtl").css("direction","rtl"),this.get_container().html("
"),this.data.core.li_height=this.get_container_ul().find("li.jstree-closed, li.jstree-leaf").eq(0).height()||18,this.get_container().on("click.jstree","li > ins",function(e){var t=r(e.target);this.toggle_node(t)}.bind(this)).on("mousedown.jstree",function(){this.set_focus()}.bind(this)).on("dblclick.jstree",(function(e){var t;if(document.selection&&document.selection.empty)document.selection.empty();else if(window.getSelection){t=window.getSelection();try{t.removeAllRanges(),t.collapse()}catch(e){}}})),this._get_settings().core.notify_plugins&&this.get_container().on("load_node.jstree",function(e,t){var n=this._get_node(t.rslt.obj),i=this;-1===n&&(n=this.get_container_ul()),n.length&&n.find("li").each((function(){var e=r(this);e.data("jstree")&&r.each(e.data("jstree"),(function(t,n){i.data[t]&&"function"==typeof i["_"+t+"_notify"]&&i["_"+t+"_notify"].call(i,e,n)}))}))}.bind(this)),this._get_settings().core.load_open&&this.get_container().on("load_node.jstree",function(e,t){var n=this._get_node(t.rslt.obj),i=this;-1===n&&(n=this.get_container_ul()),n.length&&n.find("li.jstree-open:not(:has(ul))").each((function(){i.load_node(this,r.noop,r.noop)}))}.bind(this)),this.__callback(),this.load_node(-1,(function(){this.loaded(),this.reload_nodes()}))},destroy:function(){var e,t=this.get_index(),n=this._get_settings(),s=this;if(r.each(n.plugins,(function(e,t){try{a[t].__destroy.apply(s)}catch(e){}})),this.__callback(),this.is_focused())for(e in i)if(i.hasOwnProperty(e)&&e!=t){i[e].set_focus();break}t===o&&(o=-1),this.get_container().off(".jstree").removeData("jstree_instance_id").find("[class^='jstree']").addBack().attr("class",(function(){return this.className.replace(/jstree[^ ]*|$/gi,"")})),r(document).off(".jstree-"+t),i[t]=null,delete i[t]},_core_notify:function(e,t){t.opened&&this.open_node(e,!1,!0)},lock:function(){this.data.core.locked=!0,this.get_container().children("ul").addClass("jstree-locked").css("opacity","0.7"),this.__callback({})},unlock:function(){this.data.core.locked=!1,this.get_container().children("ul").removeClass("jstree-locked").css("opacity","1"),this.__callback({})},is_locked:function(){return this.data.core.locked},save_opened:function(){var e=this;this.data.core.to_open=[],this.get_container_ul().find("li.jstree-open").each((function(){this.id&&e.data.core.to_open.push("#"+this.id.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:"))})),this.__callback(e.data.core.to_open)},save_loaded:function(){},reload_nodes:function(e){var t=this,n=!0,i=[],o=[];e||(this.data.core.reopen=!1,this.data.core.refreshing=!0,this.data.core.to_open=r.map(r.makeArray(this.data.core.to_open),(function(e){return"#"+e.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:")})),this.data.core.to_load=r.map(r.makeArray(this.data.core.to_load),(function(e){return"#"+e.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:")})),this.data.core.to_open.length&&(this.data.core.to_load=this.data.core.to_load.concat(this.data.core.to_open))),this.data.core.to_load.length&&(r.each(this.data.core.to_load,(function(e,t){if("#"==t)return!0;r(t).length?i.push(t):o.push(t)})),i.length&&(this.data.core.to_load=o,r.each(i,(function(e,r){t._is_loaded(r)||(t.load_node(r,(function(){t.reload_nodes(!0)}),(function(){t.reload_nodes(!0)})),n=!1)})))),this.data.core.to_open.length&&r.each(this.data.core.to_open,(function(e,n){t.open_node(n,!1,!0)})),n&&(this.data.core.reopen&&clearTimeout(this.data.core.reopen),this.data.core.reopen=setTimeout((function(){t.__callback({},t)}),50),this.data.core.refreshing=!1,this.reopen())},reopen:function(){var e=this;this.data.core.to_open.length&&r.each(this.data.core.to_open,(function(t,n){e.open_node(n,!1,!0)})),this.__callback({})},refresh:function(e,t,n){var r=this;this.save_opened(),e||(e=-1),(e=this._get_node(e))||(e=-1),-1!==e?e.children("UL").remove():this.get_container_ul().empty(),this.load_node(e,(function(){r.__callback({obj:e}),r.reload_nodes(),t&&t.call(this)}),n)},loaded:function(){this.__callback()},set_focus:function(){if(!this.is_focused()){var e=r.jstree._focused();e&&e.unset_focus(),this.get_container().addClass("jstree-focused"),o=this.get_index(),this.__callback()}},is_focused:function(){return o==this.get_index()},unset_focus:function(){this.is_focused()&&(this.get_container().removeClass("jstree-focused"),o=-1),this.__callback()},_get_node:function(e){var t=r(e,this.get_container());return t.is(".jstree")||-1==e?-1:!!(t=t.closest("li",this.get_container())).length&&t},_get_next:function(e,t){return-1===(e=this._get_node(e))?this.get_container().find("> ul > li:first-child"):!!e.length&&(t?e.nextAll("li").length>0&&e.nextAll("li:eq(0)"):e.hasClass("jstree-open")?e.find("li:eq(0)"):e.nextAll("li").length>0?e.nextAll("li:eq(0)"):e.parentsUntil(".jstree","li").next("li").eq(0))},_get_prev:function(e,t){if(-1===(e=this._get_node(e)))return this.get_container().find("> ul > li:last-child");if(!e.length)return!1;if(t)return e.prevAll("li").length>0&&e.prevAll("li:eq(0)");if(e.prev("li").length){for(e=e.prev("li").eq(0);e.hasClass("jstree-open");)e=e.children("ul:eq(0)").children("li:last");return e}var n=e.parentsUntil(".jstree","li:eq(0)");return!!n.length&&n},_get_parent:function(e){if(-1==(e=this._get_node(e))||!e.length)return!1;var t=e.parentsUntil(".jstree","li:eq(0)");return t.length?t:-1},_get_children:function(e){return-1===(e=this._get_node(e))?this.get_container().children("ul:eq(0)").children("li"):!!e.length&&e.children("ul:eq(0)").children("li")},get_path:function(e,t){var n=[],r=this;return!(-1===(e=this._get_node(e))||!e||!e.length)&&(e.parentsUntil(".jstree","li").each((function(){n.push(t?this.id:r.get_text(this))})),n.reverse(),n.push(t?e.attr("id"):this.get_text(e)),n)},_get_string:function(e){return this._get_settings().core.strings[e]||e},is_open:function(e){return(e=this._get_node(e))&&-1!==e&&e.hasClass("jstree-open")},is_closed:function(e){return(e=this._get_node(e))&&-1!==e&&e.hasClass("jstree-closed")},is_leaf:function(e){return(e=this._get_node(e))&&-1!==e&&e.hasClass("jstree-leaf")},correct_state:function(e){if(!(e=this._get_node(e))||-1===e)return!1;e.removeClass("jstree-closed jstree-open").addClass("jstree-leaf").children("ul").remove(),this.__callback({obj:e})},open_node:function(t,n,r){if(!(t=this._get_node(t)).length)return!1;if(!t.hasClass("jstree-closed"))return n&&n.call(),!1;var i=r||e?0:this._get_settings().core.animation,o=this;this._is_loaded(t)?(this._get_settings().core.open_parents&&t.parentsUntil(".jstree",".jstree-closed").each((function(){o.open_node(this,!1,!0)})),i&&t.children("ul").css("display","none"),t.removeClass("jstree-closed").addClass("jstree-open").children("a").removeClass("jstree-loading"),i?t.children("ul").stop(!0,!0).slideDown(i,(function(){this.style.display="",o.after_open(t)})):o.after_open(t),this.__callback({obj:t}),n&&n.call()):(t.children("a").addClass("jstree-loading"),this.load_node(t,(function(){o.open_node(t,n,r)}),n))},after_open:function(e){this.__callback({obj:e})},close_node:function(t,n){t=this._get_node(t);var r=n||e?0:this._get_settings().core.animation,i=this;if(!t.length||!t.hasClass("jstree-open"))return!1;r&&t.children("ul").attr("style","display:block !important"),t.removeClass("jstree-open").addClass("jstree-closed"),r?t.children("ul").stop(!0,!0).slideUp(r,(function(){this.style.display="",i.after_close(t)})):i.after_close(t),this.__callback({obj:t})},after_close:function(e){this.__callback({obj:e})},toggle_node:function(e){return(e=this._get_node(e)).hasClass("jstree-closed")?this.open_node(e):e.hasClass("jstree-open")?this.close_node(e):void 0},open_all:function(e,t,n){(e=e?this._get_node(e):-1)&&-1!==e||(e=this.get_container_ul()),n?e=e.find("li.jstree-closed"):(n=e,e=e.is(".jstree-closed")?e.find("li.jstree-closed").addBack():e.find("li.jstree-closed"));var r=this;e.each((function(){var e=this;r._is_loaded(this)?r.open_node(this,!1,!t):r.open_node(this,(function(){r.open_all(e,t,n)}),!t)})),0===n.find("li.jstree-closed").length&&this.__callback({obj:n})},close_all:function(e,t){var n=this;(e=e?this._get_node(e):this.get_container())&&-1!==e||(e=this.get_container_ul()),e.find("li.jstree-open").addBack().each((function(){n.close_node(this,!t)})),this.__callback({obj:e})},clean_node:function(e){(e=(e=e&&-1!=e?r(e):this.get_container_ul()).is("li")?e.find("li").addBack():e.find("li")).removeClass("jstree-last").filter("li:last-child").addClass("jstree-last").end().filter(":has(li)").not(".jstree-open").removeClass("jstree-leaf").addClass("jstree-closed"),e.not(".jstree-open, .jstree-closed").addClass("jstree-leaf").children("ul").remove(),this.__callback({obj:e})},get_rollback:function(){return this.__callback(),{i:this.get_index(),h:this.get_container().children("ul").clone(!0),d:this.data}},set_rollback:function(e,t){this.get_container().empty().append(e),this.data=t,this.__callback()},load_node:function(e,t,n){this.__callback({obj:e})},_is_loaded:function(e){return!0},create_node:function(e,t,n,i,o){e=this._get_node(e),t=void 0===t?"last":t;var a,s=r("
"),u=this._get_settings().core;if(-1!==e&&!e.length)return!1;if(!o&&!this._is_loaded(e))return this.load_node(e,(function(){this.create_node(e,t,n,i,!0)})),!1;switch(this.__rollback(),"string"==typeof n&&(n={data:n}),n||(n={}),n.attr&&s.attr(n.attr),n.metadata&&s.data(n.metadata),n.state&&s.addClass("jstree-"+n.state),n.data||(n.data=this._get_string("new_node")),Array.isArray(n.data)||(a=n.data,n.data=[],n.data.push(a)),r.each(n.data,(function(e,t){a=r("
"),"function"==typeof t&&(t=t.call(this,n)),"string"==typeof t?a.attr("href","#")[u.html_titles?"html":"text"](t):(t.attr||(t.attr={}),t.attr.href||(t.attr.href="#"),a.attr(t.attr)[u.html_titles?"html":"text"](t.title),t.language&&a.addClass(t.language)),a.prepend("
"),!t.icon&&n.icon&&(t.icon=n.icon),t.icon&&(-1===t.icon.indexOf("/")?a.children("ins").addClass(t.icon):a.children("ins").css("background","url('"+t.icon+"') center center no-repeat")),s.append(a)})),s.prepend("
"),-1===e&&(e=this.get_container(),"before"===t&&(t="first"),"after"===t&&(t="last")),t){case"before":e.before(s),a=this._get_parent(e);break;case"after":e.after(s),a=this._get_parent(e);break;case"inside":case"first":e.children("ul").length||e.append("
"),e.children("ul").prepend(s),a=e;break;case"last":e.children("ul").length||e.append("
"),e.children("ul").append(s),a=e;break;default:e.children("ul").length||e.append("
"),t||(t=0),(a=e.children("ul").children("li").eq(t)).length?a.before(s):e.children("ul").append(s),a=e}return-1!==a&&a.get(0)!==this.get_container().get(0)||(a=-1),this.clean_node(a),this.__callback({obj:s,parent:a}),i&&i.call(this,s),s},get_text:function(e){if(!(e=this._get_node(e)).length)return!1;var t=this._get_settings().core.html_titles;return e=e.children("a:eq(0)"),t?((e=e.clone()).children("INS").remove(),e.html()):(e=e.contents().filter((function(){return 3==this.nodeType}))[0])?e.nodeValue:""},set_text:function(e,t){if(!(e=this._get_node(e)).length)return!1;if(e=e.children("a:eq(0)"),this._get_settings().core.html_titles){var n=e.children("INS").clone();return e.html(t).prepend(n),this.__callback({obj:e,name:t}),!0}return e=e.contents().filter((function(){return 3==this.nodeType}))[0],this.__callback({obj:e,name:t}),e.nodeValue=t},rename_node:function(e,t){e=this._get_node(e),this.__rollback(),e&&e.length&&this.set_text.apply(this,Array.prototype.slice.call(arguments))&&this.__callback({obj:e,name:t})},delete_node:function(e){if(!(e=this._get_node(e)).length)return!1;this.__rollback();var t=this._get_parent(e),n=r([]),i=this;return e.each((function(){n=n.add(i._get_prev(this))})),e=e.detach(),-1!==t&&0===t.find("> ul > li").length&&t.removeClass("jstree-open jstree-closed").addClass("jstree-leaf"),this.clean_node(t),this.__callback({obj:e,prev:n,parent:t}),e},prepare_move:function(e,t,n,i,o){var a={};if(a.ot=r.jstree._reference(e)||this,a.o=a.ot._get_node(e),a.r=-1===t?-1:this._get_node(t),a.p=void 0===n||!1===n?"last":n,!o&&s.o&&s.o[0]===a.o[0]&&s.r[0]===a.r[0]&&s.p===a.p)return this.__callback(s),void(i&&i.call(this,s));if(a.ot=r.jstree._reference(a.o)||this,a.rt=r.jstree._reference(a.r)||this,-1!==a.r&&a.r){if(!/^(before|after)$/.test(a.p)&&!this._is_loaded(a.r))return this.load_node(a.r,(function(){this.prepare_move(e,t,n,i,!0)}));switch(a.p){case"before":a.cp=a.r.index(),a.cr=a.rt._get_parent(a.r);break;case"after":a.cp=a.r.index()+1,a.cr=a.rt._get_parent(a.r);break;case"inside":case"first":a.cp=0,a.cr=a.r;break;case"last":a.cp=a.r.find(" > ul > li").length,a.cr=a.r;break;default:a.cp=a.p,a.cr=a.r}}else switch(a.cr=-1,a.p){case"first":case"before":case"inside":a.cp=0;break;case"after":case"last":a.cp=a.rt.get_container().find(" > ul > li").length;break;default:a.cp=a.p}a.np=-1==a.cr?a.rt.get_container():a.cr,a.op=a.ot._get_parent(a.o),a.cop=a.o.index(),-1===a.op&&(a.op=a.ot?a.ot.get_container():this.get_container()),!/^(before|after)$/.test(a.p)&&a.op&&a.np&&a.op[0]===a.np[0]&&a.o.index()
ul > li:nth-child("+(a.cp+1)+")"),s=a,this.__callback(s),i&&i.call(this,s)},check_move:function(){var e=s,t=!0,n=-1===e.r?this.get_container():e.r;if(!e||!e.o||e.or[0]===e.o[0])return!1;if(!e.cy){if(e.op&&e.np&&e.op[0]===e.np[0]&&e.cp-1===e.o.index())return!1;e.o.each((function(){if(-1!==n.parentsUntil(".jstree","li").addBack().index(this))return t=!1,!1}))}return t},move_node:function(e,t,n,i,o,a){if(!o)return this.prepare_move(e,t,n,(function(e){this.move_node(e,!1,!1,i,!0,a)}));if(i&&(s.cy=!0),!a&&!this.check_move())return!1;this.__rollback();var u=!1;i?(u=e.o.clone(!0)).find("*[id]").addBack().each((function(){this.id&&(this.id="copy_"+this.id)})):u=e.o,e.or.length?e.or.before(u):(e.np.children("ul").length||r("").appendTo(e.np),e.np.children("ul:eq(0)").append(u));try{e.ot.clean_node(e.op),e.rt.clean_node(e.np),e.op.find("> ul > li").length||e.op.removeClass("jstree-open jstree-closed").addClass("jstree-leaf").children("ul").remove()}catch(e){}return i&&(s.cy=!0,s.oc=u),this.__callback(s),s},_get_move:function(){return s}}})}(jQuery),function(e){var t,n,r;e((function(){/msie/.test(navigator.userAgent.toLowerCase())?(n=e('').css({position:"absolute",top:-1e3,left:0}).appendTo("body"),r=e('').css({position:"absolute",top:-1e3,left:0}).appendTo("body"),t=n.width()-r.width(),n.add(r).remove()):(n=e("").css({width:100,height:100,overflow:"auto",position:"absolute",top:-1e3,left:0}).prependTo("body").append("").find("div").css({width:"100%",height:200}),t=100-n.width(),n.parent().remove())})),e.jstree.plugin("ui",{__init:function(){this.data.ui.selected=e(),this.data.ui.last_selected=!1,this.data.ui.hovered=null,this.data.ui.to_select=this.get_settings().ui.initially_select,this.get_container().on("click.jstree","a",function(t){t.preventDefault(),t.currentTarget.blur(),e(t.currentTarget).hasClass("jstree-loading")||this.select_node(t.currentTarget,!0,t)}.bind(this)).on("mouseenter.jstree","a",function(t){e(t.currentTarget).hasClass("jstree-loading")||this.hover_node(t.target)}.bind(this)).on("mouseleave.jstree","a",function(t){e(t.currentTarget).hasClass("jstree-loading")||this.dehover_node(t.target)}.bind(this)).on("reopen.jstree",function(){this.reselect()}.bind(this)).on("get_rollback.jstree",function(){this.dehover_node(),this.save_selected()}.bind(this)).on("set_rollback.jstree",function(){this.reselect()}.bind(this)).on("close_node.jstree",function(t,n){var r=this._get_settings().ui,i=this._get_node(n.rslt.obj),o=i&&i.length?i.children("ul").find("a.jstree-clicked"):e(),a=this;!1!==r.selected_parent_close&&o.length&&o.each((function(){a.deselect_node(this),"select_parent"===r.selected_parent_close&&a.select_node(i)}))}.bind(this)).on("delete_node.jstree",function(e,t){var n=this._get_settings().ui.select_prev_on_delete,r=this._get_node(t.rslt.obj),i=r&&r.length?r.find("a.jstree-clicked"):[],o=this;i.each((function(){o.deselect_node(this)})),n&&i.length&&t.rslt.prev.each((function(){if(this.parentNode)return o.select_node(this),!1}))}.bind(this)).on("move_node.jstree",function(e,t){t.rslt.cy&&t.rslt.oc.find("a.jstree-clicked").removeClass("jstree-clicked")}.bind(this))},defaults:{select_limit:-1,select_multiple_modifier:"ctrl",select_range_modifier:"shift",selected_parent_close:"select_parent",selected_parent_open:!0,select_prev_on_delete:!0,disable_selecting_children:!1,initially_select:[]},_fn:{_get_node:function(t,n){if(null==t)return n?this.data.ui.selected:this.data.ui.last_selected;var r=e(t,this.get_container());return r.is(".jstree")||-1==t?-1:!!(r=r.closest("li",this.get_container())).length&&r},_ui_notify:function(e,t){t.selected&&this.select_node(e,!1)},save_selected:function(){var e=this;this.data.ui.to_select=[],this.data.ui.selected.each((function(){this.id&&e.data.ui.to_select.push("#"+this.id.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:"))})),this.__callback(this.data.ui.to_select)},reselect:function(){var t=this,n=this.data.ui.to_select;n=e.map(e.makeArray(n),(function(e){return"#"+e.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:")})),e.each(n,(function(e,n){n&&"#"!==n&&t.select_node(n)})),this.data.ui.selected=this.data.ui.selected.filter((function(){return this.parentNode})),this.__callback()},refresh:function(e){return this.save_selected(),this.__call_old()},hover_node:function(e){if(!(e=this._get_node(e)).length)return!1;e.hasClass("jstree-hovered")||this.dehover_node(),this.data.ui.hovered=e.children("a").addClass("jstree-hovered").parent(),this._fix_scroll(e),this.__callback({obj:e})},dehover_node:function(){var e,t=this.data.ui.hovered;if(!t||!t.length)return!1;e=t.children("a").removeClass("jstree-hovered").parent(),this.data.ui.hovered[0]===e[0]&&(this.data.ui.hovered=null),this.__callback({obj:t})},select_node:function(e,t,n){if(-1==(e=this._get_node(e))||!e||!e.length)return!1;var r=this._get_settings().ui,i="on"==r.select_multiple_modifier||!1!==r.select_multiple_modifier&&n&&n[r.select_multiple_modifier+"Key"],o=!1!==r.select_range_modifier&&n&&n[r.select_range_modifier+"Key"]&&this.data.ui.last_selected&&this.data.ui.last_selected[0]!==e[0]&&this.data.ui.last_selected.parent()[0]===e.parent()[0],a=this.is_selected(e),s=!0,u=this;if(t){if(r.disable_selecting_children&&i&&(e.parentsUntil(".jstree","li").children("a.jstree-clicked").length||e.children("ul").find("a.jstree-clicked:eq(0)").length))return!1;switch(s=!1,!0){case o:this.data.ui.last_selected.addClass("jstree-last-selected"),e=e[e.index()0)&&(this.deselect_all(),s=!0);break;case a&&i:this.deselect_node(e);break;case!a&&i:(-1==r.select_limit||this.data.ui.selected.length+1<=r.select_limit)&&(s=!0)}}s&&!a&&(o||(this.data.ui.last_selected=e),e.children("a").addClass("jstree-clicked"),r.selected_parent_open&&e.parents(".jstree-closed").each((function(){u.open_node(this,!1,!0)})),this.data.ui.selected=this.data.ui.selected.add(e),this._fix_scroll(e.eq(0)),this.__callback({obj:e,e:n}))},_fix_scroll:function(e){var n,r=this.get_container()[0];if(r.scrollHeight>r.offsetHeight){if(!(e=this._get_node(e))||-1===e||!e.length||!e.is(":visible"))return;(n=e.offset().top-this.get_container().offset().top)<0&&(r.scrollTop=r.scrollTop+n-1),n+this.data.core.li_height+(r.scrollWidth>r.offsetWidth?t:0)>r.offsetHeight&&(r.scrollTop=r.scrollTop+(n-r.offsetHeight+this.data.core.li_height+1+(r.scrollWidth>r.offsetWidth?t:0)))}},deselect_node:function(e){if(!(e=this._get_node(e)).length)return!1;this.is_selected(e)&&(e.children("a").removeClass("jstree-clicked"),this.data.ui.selected=this.data.ui.selected.not(e),this.data.ui.last_selected.get(0)===e.get(0)&&(this.data.ui.last_selected=this.data.ui.selected.eq(0)),this.__callback({obj:e}))},toggle_select:function(e){if(!(e=this._get_node(e)).length)return!1;this.is_selected(e)?this.deselect_node(e):this.select_node(e)},is_selected:function(e){return this.data.ui.selected.index(this._get_node(e))>=0},get_selected:function(t){return t?e(t).find("a.jstree-clicked").parent():this.data.ui.selected},deselect_all:function(t){var n=t?e(t).find("a.jstree-clicked").parent():this.get_container().find("a.jstree-clicked").parent();n.children("a.jstree-clicked").removeClass("jstree-clicked"),this.data.ui.selected=e([]),this.data.ui.last_selected=!1,this.__callback({obj:n})}}}),e.jstree.defaults.plugins.push("ui")}(jQuery),function(e){e.jstree.plugin("crrm",{__init:function(){this.get_container().on("move_node.jstree",function(e,t){if(this._get_settings().crrm.move.open_onmove){var n=this;t.rslt.np.parentsUntil(".jstree").addBack().filter(".jstree-closed").each((function(){n.open_node(this,!1,!0)}))}}.bind(this))},defaults:{input_width_limit:200,move:{always_copy:!1,open_onmove:!0,default_position:"last",check_move:function(e){return!0}}},_fn:{_show_input:function(t,n){t=this._get_node(t);var r=this._get_settings().core.rtl,i=this._get_settings().crrm.input_width_limit,o=t.children("ins").width(),a=t.find("> a:visible > ins").width()*t.find("> a:visible > ins").length,s=this.get_text(t),u=e("",{css:{position:"absolute",top:"-200px",left:r?"0px":"-1000px",visibility:"hidden"}}).appendTo("body"),c=t.css("position","relative").append(e("",{value:s,class:"jstree-rename-input",css:{padding:"0",border:"1px solid silver",position:"absolute",left:r?"auto":o+a+4+"px",right:r?o+a+4+"px":"auto",top:"0px",height:this.data.core.li_height-2+"px",lineHeight:this.data.core.li_height-2+"px",width:"150px"},blur:function(){var e=t.children(".jstree-rename-input"),r=e.val();""===r&&(r=s),u.remove(),e.remove(),this.set_text(t,s),this.rename_node(t,r),n.call(this,t,r,s),t.css("position","")}.bind(this),keyup:function(e){var t=e.keyCode||e.which;if(27==t)return this.value=s,void this.blur();13!=t?c.width(Math.min(u.text("pW"+this.value).width(),i)):this.blur()},keypress:function(e){if(13==(e.keyCode||e.which))return!1}})).children(".jstree-rename-input");this.set_text(t,""),u.css({fontFamily:c.css("fontFamily")||"",fontSize:c.css("fontSize")||"",fontWeight:c.css("fontWeight")||"",fontStyle:c.css("fontStyle")||"",fontStretch:c.css("fontStretch")||"",fontVariant:c.css("fontVariant")||"",letterSpacing:c.css("letterSpacing")||"",wordSpacing:c.css("wordSpacing")||""}),c.width(Math.min(u.text("pW"+c[0].value).width(),i))[0].select()},rename:function(e){e=this._get_node(e),this.__rollback();var t=this.__callback;this._show_input(e,(function(e,n,r){t.call(this,{obj:e,new_name:n,old_name:r})}))},create:function(t,n,r,i,o){var a,s=this;return(t=this._get_node(t))||(t=-1),this.__rollback(),a=this.create_node(t,n,r,(function(t){var n=this._get_parent(t),r=e(t).index();i&&i.call(this,t),n.length&&n.hasClass("jstree-closed")&&this.open_node(n,!1,!0),o?s.__callback({obj:t,name:this.get_text(t),parent:n,position:r}):this._show_input(t,(function(e,t,i){s.__callback({obj:e,name:t,parent:n,position:r})}))})),a},remove:function(e){e=this._get_node(e,!0);var t=this._get_parent(e),n=this._get_prev(e);this.__rollback(),!1!==(e=this.delete_node(e))&&this.__callback({obj:e,prev:n,parent:t})},check_move:function(){return!!this.__call_old()&&!!this._get_settings().crrm.move.check_move.call(this,this._get_move())},move_node:function(e,t,n,r,i,o){var a=this._get_settings().crrm.move;if(!i)return void 0===n&&(n=a.default_position),"inside"!==n||a.default_position.match(/^(before|after)$/)||(n=a.default_position),this.__call_old(!0,e,t,n,r,!1,o);(!0===a.always_copy||"multitree"===a.always_copy&&e.rt.get_index()!==e.ot.get_index())&&(r=!0),this.__call_old(!0,e,t,n,r,!0,o)},cut:function(e){if(!(e=this._get_node(e,!0))||!e.length)return!1;this.data.crrm.cp_nodes=!1,this.data.crrm.ct_nodes=e,this.__callback({obj:e})},copy:function(e){if(!(e=this._get_node(e,!0))||!e.length)return!1;this.data.crrm.ct_nodes=!1,this.data.crrm.cp_nodes=e,this.__callback({obj:e})},paste:function(e){if(!(e=this._get_node(e))||!e.length)return!1;var t=this.data.crrm.ct_nodes?this.data.crrm.ct_nodes:this.data.crrm.cp_nodes;if(!this.data.crrm.ct_nodes&&!this.data.crrm.cp_nodes)return!1;this.data.crrm.ct_nodes&&(this.move_node(this.data.crrm.ct_nodes,e),this.data.crrm.ct_nodes=!1),this.data.crrm.cp_nodes&&this.move_node(this.data.crrm.cp_nodes,e,!1,!0),this.__callback({obj:e,nodes:t})}}})}(jQuery),function(e){var t=[];e.jstree._themes=!1,e.jstree.plugin("themes",{__init:function(){this.get_container().on("init.jstree",function(){var e=this._get_settings().themes;this.data.themes.dots=e.dots,this.data.themes.icons=e.icons,this.set_theme(e.theme,e.url)}.bind(this)).on("loaded.jstree",function(){this.data.themes.dots?this.show_dots():this.hide_dots(),this.data.themes.icons?this.show_icons():this.hide_icons()}.bind(this))},defaults:{theme:"default",url:!1,dots:!0,icons:!0},_fn:{set_theme:function(n,r){if(!n)return!1;r||(r=e.jstree._themes+n+"/style.css"),-1==e.inArray(r,t)&&(e.vakata.css.add_sheet({url:r}),t.push(r)),this.data.themes.theme!=n&&(this.get_container().removeClass("jstree-"+this.data.themes.theme),this.data.themes.theme=n),this.get_container().addClass("jstree-"+n),this.data.themes.dots?this.show_dots():this.hide_dots(),this.data.themes.icons?this.show_icons():this.hide_icons(),this.__callback()},get_theme:function(){return this.data.themes.theme},show_dots:function(){this.data.themes.dots=!0,this.get_container().children("ul").removeClass("jstree-no-dots")},hide_dots:function(){this.data.themes.dots=!1,this.get_container().children("ul").addClass("jstree-no-dots")},toggle_dots:function(){this.data.themes.dots?this.hide_dots():this.show_dots()},show_icons:function(){this.data.themes.icons=!0,this.get_container().children("ul").removeClass("jstree-no-icons")},hide_icons:function(){this.data.themes.icons=!1,this.get_container().children("ul").addClass("jstree-no-icons")},toggle_icons:function(){this.data.themes.icons?this.hide_icons():this.show_icons()}}}),e((function(){!1===e.jstree._themes&&e("script").each((function(){if(this.src.toString().match(/jquery\.jstree[^\/]*?\.js(\?.*)?$/))return e.jstree._themes=this.src.toString().replace(/jquery\.jstree[^\/]*?\.js(\?.*)?$/,"")+"themes/",!1})),!1===e.jstree._themes&&(e.jstree._themes="themes/")})),e.jstree.defaults.plugins.push("themes")}(jQuery),function(e){var t=[];e.jstree.plugin("hotkeys",{__init:function(){if(void 0===e.hotkeys)throw"jsTree hotkeys: jQuery hotkeys plugin not included.";if(!this.data.ui)throw"jsTree hotkeys: jsTree UI plugin not included.";e.each(this._get_settings().hotkeys,(function(n,r){!1!==r&&-1==e.inArray(n,t)&&(e(document).on("keydown",n,(function(t){return function(t,n){var r,i=e.jstree._focused();if(i&&i.data&&i.data.hotkeys&&i.data.hotkeys.enabled&&(r=i._get_settings().hotkeys[t]))return r.call(i,n)}(n,t)})),t.push(n))})),this.get_container().on("lock.jstree",function(){this.data.hotkeys.enabled&&(this.data.hotkeys.enabled=!1,this.data.hotkeys.revert=!0)}.bind(this)).on("unlock.jstree",function(){this.data.hotkeys.revert&&(this.data.hotkeys.enabled=!0)}.bind(this)),this.enable_hotkeys()},defaults:{up:function(){var e=this.data.ui.hovered||this.data.ui.last_selected||-1;return this.hover_node(this._get_prev(e)),!1},"ctrl+up":function(){var e=this.data.ui.hovered||this.data.ui.last_selected||-1;return this.hover_node(this._get_prev(e)),!1},"shift+up":function(){var e=this.data.ui.hovered||this.data.ui.last_selected||-1;return this.hover_node(this._get_prev(e)),!1},down:function(){var e=this.data.ui.hovered||this.data.ui.last_selected||-1;return this.hover_node(this._get_next(e)),!1},"ctrl+down":function(){var e=this.data.ui.hovered||this.data.ui.last_selected||-1;return this.hover_node(this._get_next(e)),!1},"shift+down":function(){var e=this.data.ui.hovered||this.data.ui.last_selected||-1;return this.hover_node(this._get_next(e)),!1},left:function(){var e=this.data.ui.hovered||this.data.ui.last_selected;return e&&(e.hasClass("jstree-open")?this.close_node(e):this.hover_node(this._get_prev(e))),!1},"ctrl+left":function(){var e=this.data.ui.hovered||this.data.ui.last_selected;return e&&(e.hasClass("jstree-open")?this.close_node(e):this.hover_node(this._get_prev(e))),!1},"shift+left":function(){var e=this.data.ui.hovered||this.data.ui.last_selected;return e&&(e.hasClass("jstree-open")?this.close_node(e):this.hover_node(this._get_prev(e))),!1},right:function(){var e=this.data.ui.hovered||this.data.ui.last_selected;return e&&e.length&&(e.hasClass("jstree-closed")?this.open_node(e):this.hover_node(this._get_next(e))),!1},"ctrl+right":function(){var e=this.data.ui.hovered||this.data.ui.last_selected;return e&&e.length&&(e.hasClass("jstree-closed")?this.open_node(e):this.hover_node(this._get_next(e))),!1},"shift+right":function(){var e=this.data.ui.hovered||this.data.ui.last_selected;return e&&e.length&&(e.hasClass("jstree-closed")?this.open_node(e):this.hover_node(this._get_next(e))),!1},space:function(){return this.data.ui.hovered&&this.data.ui.hovered.children("a:eq(0)").click(),!1},"ctrl+space":function(e){return e.type="click",this.data.ui.hovered&&this.data.ui.hovered.children("a:eq(0)").trigger(e),!1},"shift+space":function(e){return e.type="click",this.data.ui.hovered&&this.data.ui.hovered.children("a:eq(0)").trigger(e),!1},f2:function(){this.rename(this.data.ui.hovered||this.data.ui.last_selected)},del:function(){this.remove(this.data.ui.hovered||this._get_node(null))}},_fn:{enable_hotkeys:function(){this.data.hotkeys.enabled=!0},disable_hotkeys:function(){this.data.hotkeys.enabled=!1}}})}(jQuery),function(e){e.jstree.plugin("json_data",{__init:function(){this._get_settings().json_data.progressive_unload&&this.get_container().on("after_close.jstree",(function(e,t){t.rslt.obj.children("ul").remove()}))},defaults:{data:!1,ajax:!1,correct_state:!0,progressive_render:!1,progressive_unload:!1},_fn:{load_node:function(e,t,n){var r=this;this.load_node_json(e,(function(){r.__callback({obj:r._get_node(e)}),t.call(this)}),n)},_is_loaded:function(e){var t=this._get_settings().json_data;return-1==(e=this._get_node(e))||!e||!t.ajax&&!t.progressive_render&&"function"!=typeof t.data||e.is(".jstree-open, .jstree-leaf")||e.children("ul").children("li").length>0},refresh:function(e){e=this._get_node(e);var t=this._get_settings().json_data;return(e&&-1!==e&&t.progressive_unload&&"function"==typeof t.data||t.ajax)&&e.removeData("jstree_children"),this.__call_old()},load_node_json:function(t,n,r){var i,o=this.get_settings().json_data,a=function(){},s=function(){};if((t=this._get_node(t))&&-1!==t&&(o.progressive_render||o.progressive_unload)&&!t.is(".jstree-open, .jstree-leaf")&&0===t.children("ul").children("li").length&&t.data("jstree_children"))return(i=this._parse_json(t.data("jstree_children"),t))&&(t.append(i),o.progressive_unload||t.removeData("jstree_children")),this.clean_node(t),void(n&&n.call(this));if(t&&-1!==t){if(t.data("jstree_is_loading"))return;t.data("jstree_is_loading",!0)}switch(!0){case!o.data&&!o.ajax:throw"Neither data nor ajax settings supplied.";case"function"==typeof o.data:o.data.call(this,t,function(e){(e=this._parse_json(e,t))?(-1!==t&&t?(t.append(e).children("a.jstree-loading").removeClass("jstree-loading"),t.removeData("jstree_is_loading")):this.get_container().children("ul").empty().append(e.children()),this.clean_node(t),n&&n.call(this)):(-1!==t&&t?(t.children("a.jstree-loading").removeClass("jstree-loading"),t.removeData("jstree_is_loading"),o.correct_state&&this.correct_state(t)):o.correct_state&&this.get_container().children("ul").empty(),r&&r.call(this))}.bind(this));break;case!!o.data&&!o.ajax||!!o.data&&!!o.ajax&&(!t||-1===t):t&&-1!=t||((i=this._parse_json(o.data,t))?(this.get_container().children("ul").empty().append(i.children()),this.clean_node()):o.correct_state&&this.get_container().children("ul").empty()),n&&n.call(this);break;case!o.data&&!!o.ajax||!!o.data&&!!o.ajax&&t&&-1!==t:a=function(e,n,i){var a=this.get_settings().json_data.ajax.error;a&&a.call(this,e,n,i),-1!=t&&t.length?(t.children("a.jstree-loading").removeClass("jstree-loading"),t.removeData("jstree_is_loading"),"success"===n&&o.correct_state&&this.correct_state(t)):"success"===n&&o.correct_state&&this.get_container().children("ul").empty(),r&&r.call(this)},s=function(r,i,s){var u=this.get_settings().json_data.ajax.success;if(u&&(r=u.call(this,r,i,s)||r),""===r||r&&r.toString&&""===r.toString().replace(/^[\s\n]+$/,"")||!Array.isArray(r)&&!e.isPlainObject(r))return a.call(this,s,i,"");(r=this._parse_json(r,t))?(-1!==t&&t?(t.append(r).children("a.jstree-loading").removeClass("jstree-loading"),t.removeData("jstree_is_loading")):this.get_container().children("ul").empty().append(r.children()),this.clean_node(t),n&&n.call(this)):-1!==t&&t?(t.children("a.jstree-loading").removeClass("jstree-loading"),t.removeData("jstree_is_loading"),o.correct_state&&(this.correct_state(t),n&&n.call(this))):o.correct_state&&(this.get_container().children("ul").empty(),n&&n.call(this))},o.ajax.context=this,o.ajax.error=a,o.ajax.success=s,o.ajax.dataType||(o.ajax.dataType="json"),"function"==typeof o.ajax.url&&(o.ajax.url=o.ajax.url.call(this,t)),"function"==typeof o.ajax.data&&(o.ajax.data=o.ajax.data.call(this,t)),e.ajax(o.ajax)}},_parse_json:function(t,n,r){var i,o,a,s,u,c=!1,l=this._get_settings(),f=l.json_data,d=l.core.html_titles;if(!t)return c;if(f.progressive_unload&&n&&-1!==n&&n.data("jstree_children",c),Array.isArray(t)){if(c=e(),!t.length)return!1;for(o=0,a=t.length;o"),t.attr&&c.attr(t.attr),t.metadata&&c.data(t.metadata),t.state&&c.addClass("jstree-"+t.state),Array.isArray(t.data)||(i=t.data,t.data=[],t.data.push(i)),e.each(t.data,(function(n,r){i=e(""),"function"==typeof r&&(r=r.call(this,t)),"string"==typeof r?i.attr("href","#")[d?"html":"text"](r):(r.attr||(r.attr={}),r.attr.href||(r.attr.href="#"),i.attr(r.attr)[d?"html":"text"](r.title),r.language&&i.addClass(r.language)),i.prepend(" "),!r.icon&&t.icon&&(r.icon=t.icon),r.icon&&(-1===r.icon.indexOf("/")?i.children("ins").addClass(r.icon):i.children("ins").css("background","url('"+r.icon+"') center center no-repeat")),c.append(i)})),c.prepend(" "),t.children&&(f.progressive_render&&"open"!==t.state?c.addClass("jstree-closed").data("jstree_children",t.children):(f.progressive_unload&&c.data("jstree_children",t.children),Array.isArray(t.children)&&t.children.length&&(i=this._parse_json(t.children,n,!0)).length&&((u=e("")).append(i),c.append(u))))}return r||((s=e("")).append(c),c=s),c},get_json:function(t,n,r,i){var o,a,s,u,c,l,f=[],d=this._get_settings(),h=this;return(t=this._get_node(t))&&-1!==t||(t=this.get_container().find("> ul > li")),n=Array.isArray(n)?n:["id","class"],!i&&this.data.types&&n.push(d.types.type_attr),r=Array.isArray(r)?r:[],t.each((function(){s=e(this),o={data:[]},n.length&&(o.attr={}),e.each(n,(function(e,t){(a=s.attr(t))&&a.length&&a.replace(/jstree[^ ]*/gi,"").length&&(o.attr[t]=(" "+a).replace(/ jstree[^ ]*/gi,"").replace(/\s+$/gi," ").replace(/^ /,"").replace(/ $/,""))})),s.hasClass("jstree-open")&&(o.state="open"),s.hasClass("jstree-closed")&&(o.state="closed"),s.data()&&(o.metadata=s.data()),(u=s.children("a")).each((function(){c=e(this),r.length||-1!==e.inArray("languages",d.plugins)||c.children("ins").get(0).style.backgroundImage.length||c.children("ins").get(0).className&&c.children("ins").get(0).className.replace(/jstree[^ ]*|$/gi,"").length?(l=!1,-1!==e.inArray("languages",d.plugins)&&Array.isArray(d.languages)&&d.languages.length&&e.each(d.languages,(function(e,t){if(c.hasClass(t))return l=t,!1})),a={attr:{},title:h.get_text(c,l)},e.each(r,(function(e,t){a.attr[t]=(" "+(c.attr(t)||"")).replace(/ jstree[^ ]*/gi,"").replace(/\s+$/gi," ").replace(/^ /,"").replace(/ $/,"")})),-1!==e.inArray("languages",d.plugins)&&Array.isArray(d.languages)&&d.languages.length&&e.each(d.languages,(function(e,t){if(c.hasClass(t))return a.language=t,!0})),c.children("ins").get(0).className.replace(/jstree[^ ]*|$/gi,"").replace(/^\s+$/gi,"").length&&(a.icon=c.children("ins").get(0).className.replace(/jstree[^ ]*|$/gi,"").replace(/\s+$/gi," ").replace(/^ /,"").replace(/ $/,"")),c.children("ins").get(0).style.backgroundImage.length&&(a.icon=c.children("ins").get(0).style.backgroundImage.replace("url(","").replace(")",""))):a=h.get_text(c),u.length>1?o.data.push(a):o.data=a})),(s=s.find("> ul > li")).length&&(o.children=h.get_json(s,n,r,!0)),f.push(o)})),f}}})}(jQuery),function(e){var t=!1;e.jstree.plugin("languages",{__init:function(){this._load_css()},defaults:[],_fn:{set_lang:function(n){var r=this._get_settings().languages,i=!1,o=".jstree-"+this.get_index()+" a";if(!Array.isArray(r)||0===r.length)return!1;if(-1==e.inArray(n,r)){if(!r[n])return!1;n=r[n]}return n==this.data.languages.current_language||(!1!==(i=e.vakata.css.get_css(o+"."+this.data.languages.current_language,!1,t))&&(i.style.display="none"),!1!==(i=e.vakata.css.get_css(o+"."+n,!1,t))&&(i.style.display=""),this.data.languages.current_language=n,this.__callback(n)),!0},get_lang:function(){return this.data.languages.current_language},_get_string:function(t,n){var r=this._get_settings().languages,i=this._get_settings().core.strings;return Array.isArray(r)&&r.length&&(n=n&&-1!=e.inArray(n,r)?n:this.data.languages.current_language),i[n]&&i[n][t]?i[n][t]:i[t]?i[t]:t},get_text:function(t,n){if(!(t=this._get_node(t)||this.data.ui.last_selected).length)return!1;var r=this._get_settings().languages,i=this._get_settings().core.html_titles;return Array.isArray(r)&&r.length?(n=n&&-1!=e.inArray(n,r)?n:this.data.languages.current_language,t=t.children("a."+n)):t=t.children("a:eq(0)"),i?((t=t.clone()).children("INS").remove(),t.html()):(t=t.contents().filter((function(){return 3==this.nodeType}))[0]).nodeValue},set_text:function(t,n,r){if(!(t=this._get_node(t)||this.data.ui.last_selected).length)return!1;var i,o=this._get_settings().languages,a=this._get_settings().core.html_titles;return Array.isArray(o)&&o.length?(r=r&&-1!=e.inArray(r,o)?r:this.data.languages.current_language,t=t.children("a."+r)):t=t.children("a:eq(0)"),a?(i=t.children("INS").clone(),t.html(n).prepend(i),this.__callback({obj:t,name:n,lang:r}),!0):(t=t.contents().filter((function(){return 3==this.nodeType}))[0],this.__callback({obj:t,name:n,lang:r}),t.nodeValue=n)},_load_css:function(){var n,r=this._get_settings().languages,i="/* languages css */",o=".jstree-"+this.get_index()+" a";if(Array.isArray(r)&&r.length){for(this.data.languages.current_language=r[0],n=0;nthis.get_text(t)?1:-1},_fn:{sort:function(t){var n=this._get_settings().sort,r=this;t.append(e.makeArray(t.children("li")).sort(n.bind(r))),t.find("> li > ul").each((function(){r.sort(e(this))})),this.clean_node(t)}}})}(jQuery),function(e){var t=!1,n=!1,r=!1,i=!1,o=!1,a=!1,s=!1,u=!1,c=!1;e.vakata.dnd={is_down:!1,is_drag:!1,helper:!1,scroll_spd:10,init_x:0,init_y:0,threshold:5,helper_left:5,helper_top:10,user_data:{},drag_start:function(t,n,r){e.vakata.dnd.is_drag&&e.vakata.drag_stop({});try{t.currentTarget.unselectable="on",t.currentTarget.onselectstart=function(){return!1},t.currentTarget.style&&(t.currentTarget.style.MozUserSelect="none")}catch(e){}return e.vakata.dnd.init_x=t.pageX,e.vakata.dnd.init_y=t.pageY,e.vakata.dnd.user_data=n,e.vakata.dnd.is_down=!0,e.vakata.dnd.helper=e("").html(r),e(document).on("mousemove",e.vakata.dnd.drag),e(document).on("mouseup",e.vakata.dnd.drag_stop),!1},drag:function(t){if(e.vakata.dnd.is_down){if(!e.vakata.dnd.is_drag){if(!(Math.abs(t.pageX-e.vakata.dnd.init_x)>5||Math.abs(t.pageY-e.vakata.dnd.init_y)>5))return;e.vakata.dnd.helper.appendTo("body"),e.vakata.dnd.is_drag=!0,e(document).triggerHandler("drag_start.vakata",{event:t,data:e.vakata.dnd.user_data})}if("mousemove"===t.type){var n=e(document),r=n.scrollTop(),i=n.scrollLeft();t.pageY-r<20?(a&&"down"===s&&(clearInterval(a),a=!1),a||(s="up",a=setInterval((function(){e(document).scrollTop(e(document).scrollTop()-e.vakata.dnd.scroll_spd)}),150))):a&&"up"===s&&(clearInterval(a),a=!1),e(window).height()-(t.pageY-r)<20?(a&&"up"===s&&(clearInterval(a),a=!1),a||(s="down",a=setInterval((function(){e(document).scrollTop(e(document).scrollTop()+e.vakata.dnd.scroll_spd)}),150))):a&&"down"===s&&(clearInterval(a),a=!1),t.pageX-i<20?(o&&"right"===u&&(clearInterval(o),o=!1),o||(u="left",o=setInterval((function(){e(document).scrollLeft(e(document).scrollLeft()-e.vakata.dnd.scroll_spd)}),150))):o&&"left"===u&&(clearInterval(o),o=!1),e(window).width()-(t.pageX-i)<20?(o&&"left"===u&&(clearInterval(o),o=!1),o||(u="right",o=setInterval((function(){e(document).scrollLeft(e(document).scrollLeft()+e.vakata.dnd.scroll_spd)}),150))):o&&"right"===u&&(clearInterval(o),o=!1)}e.vakata.dnd.helper.css({left:t.pageX+e.vakata.dnd.helper_left+"px",top:t.pageY+e.vakata.dnd.helper_top+"px"}),e(document).triggerHandler("drag.vakata",{event:t,data:e.vakata.dnd.user_data})}},drag_stop:function(t){o&&clearInterval(o),a&&clearInterval(a),e(document).off("mousemove",e.vakata.dnd.drag),e(document).off("mouseup",e.vakata.dnd.drag_stop),e(document).triggerHandler("drag_stop.vakata",{event:t,data:e.vakata.dnd.user_data}),e.vakata.dnd.helper.remove(),e.vakata.dnd.init_x=0,e.vakata.dnd.init_y=0,e.vakata.dnd.user_data={},e.vakata.dnd.is_down=!1,e.vakata.dnd.is_drag=!1}},e((function(){e.vakata.css.add_sheet({str:"#vakata-dragged { display:block; margin:0 0 0 0; padding:4px 4px 4px 24px; position:absolute; top:-2000px; line-height:16px; z-index:10000; } ",title:"vakata"})})),e.jstree.plugin("dnd",{__init:function(){this.data.dnd={active:!1,after:!1,inside:!1,before:!1,off:!1,prepared:!1,w:0,to1:!1,to2:!1,cof:!1,cw:!1,ch:!1,i1:!1,i2:!1,mto:!1},this.get_container().on("mouseenter.jstree",function(n){if(e.vakata.dnd.is_drag&&e.vakata.dnd.user_data.jstree&&(this.data.themes&&(r.attr("class","jstree-"+this.data.themes.theme),i&&i.attr("class","jstree-"+this.data.themes.theme),e.vakata.dnd.helper.attr("class","jstree-dnd-helper jstree-"+this.data.themes.theme)),n.currentTarget===n.target&&e.vakata.dnd.user_data.obj&&e(e.vakata.dnd.user_data.obj).length&&e(e.vakata.dnd.user_data.obj).parents(".jstree:eq(0)")[0]!==n.target)){var o,a=e.jstree._reference(n.target);a.data.dnd.foreign?!0!==(o=a._get_settings().dnd.drag_check.call(this,{o:t,r:a.get_container(),is_root:!0}))&&!0!==o.inside&&!0!==o.before&&!0!==o.after||e.vakata.dnd.helper.children("ins").attr("class","jstree-ok"):(a.prepare_move(t,a.get_container(),"last"),a.check_move()&&e.vakata.dnd.helper.children("ins").attr("class","jstree-ok"))}}.bind(this)).on("mouseup.jstree",function(n){if(e.vakata.dnd.is_drag&&e.vakata.dnd.user_data.jstree&&n.currentTarget===n.target&&e.vakata.dnd.user_data.obj&&e(e.vakata.dnd.user_data.obj).length&&e(e.vakata.dnd.user_data.obj).parents(".jstree:eq(0)")[0]!==n.target){var r,i=e.jstree._reference(n.currentTarget);i.data.dnd.foreign?!0!==(r=i._get_settings().dnd.drag_check.call(this,{o:t,r:i.get_container(),is_root:!0}))&&!0!==r.inside&&!0!==r.before&&!0!==r.after||i._get_settings().dnd.drag_finish.call(this,{o:t,r:i.get_container(),is_root:!0}):i.move_node(t,i.get_container(),"last",n[i._get_settings().dnd.copy_modifier+"Key"])}}.bind(this)).on("mouseleave.jstree",function(t){if(t.relatedTarget&&t.relatedTarget.id&&"jstree-marker-line"===t.relatedTarget.id)return!1;e.vakata.dnd.is_drag&&e.vakata.dnd.user_data.jstree&&(this.data.dnd.i1&&clearInterval(this.data.dnd.i1),this.data.dnd.i2&&clearInterval(this.data.dnd.i2),this.data.dnd.to1&&clearTimeout(this.data.dnd.to1),this.data.dnd.to2&&clearTimeout(this.data.dnd.to2),e.vakata.dnd.helper.children("ins").hasClass("jstree-ok")&&e.vakata.dnd.helper.children("ins").attr("class","jstree-invalid"))}.bind(this)).on("mousemove.jstree",function(t){if(e.vakata.dnd.is_drag&&e.vakata.dnd.user_data.jstree){var n=this.get_container()[0];t.pageX+24>this.data.dnd.cof.left+this.data.dnd.cw?(this.data.dnd.i1&&clearInterval(this.data.dnd.i1),this.data.dnd.i1=setInterval(function(){this.scrollLeft+=e.vakata.dnd.scroll_spd}.bind(n),100)):t.pageX-24this.data.dnd.cof.top+this.data.dnd.ch?(this.data.dnd.i2&&clearInterval(this.data.dnd.i2),this.data.dnd.i2=setInterval(function(){this.scrollTop+=e.vakata.dnd.scroll_spd}.bind(n),100)):t.pageY-24"+e(n.target).text()),this.data.themes&&(r&&r.attr("class","jstree-"+this.data.themes.theme),i&&i.attr("class","jstree-"+this.data.themes.theme),e.vakata.dnd.helper.attr("class","jstree-dnd-helper jstree-"+this.data.themes.theme)),e.vakata.dnd.helper.children("ins").attr("class","jstree-invalid");var o=this.get_container();this.data.dnd.cof=o.offset(),this.data.dnd.cw=parseInt(o.width(),10),this.data.dnd.ch=parseInt(o.height(),10),this.data.dnd.foreign=!0,n.preventDefault()}.bind(this)),o.drop_target&&e(document).on("mouseenter.jstree-"+this.get_index(),o.drop_target,function(n){this.data.dnd.active&&this._get_settings().dnd.drop_check.call(this,{o:t,r:e(n.target),e:n})&&e.vakata.dnd.helper.children("ins").attr("class","jstree-ok")}.bind(this)).on("mouseleave.jstree-"+this.get_index(),o.drop_target,function(t){this.data.dnd.active&&e.vakata.dnd.helper.children("ins").attr("class","jstree-invalid")}.bind(this)).on("mouseup.jstree-"+this.get_index(),o.drop_target+", #jstree-marker-line",function(n){this.data.dnd.active&&e.vakata.dnd.helper.children("ins").hasClass("jstree-ok")&&this._get_settings().dnd.drop_finish.call(this,{o:t,r:e(n.target),e:n})}.bind(this))},defaults:{copy_modifier:"ctrl",check_timeout:100,open_timeout:500,drop_target:".jstree-drop",drop_check:function(e){return!0},drop_finish:e.noop,drag_target:".jstree-draggable",drag_finish:e.noop,drag_check:function(e){return{after:!1,before:!1,inside:!0}}},__destroy:function(){e(".jstree").length<=1&&e(document).off("drag_start.vakata").off("drag_stop.vakata"),t=!1},_fn:{dnd_prepare:function(){if(n&&n.length){if(this.data.dnd.off=n.offset(),this._get_settings().core.rtl&&(this.data.dnd.off.right=this.data.dnd.off.left+n.width()),this.data.dnd.foreign){var e=this._get_settings().dnd.drag_check.call(this,{o:t,r:n});return this.data.dnd.after=e.after,this.data.dnd.before=e.before,this.data.dnd.inside=e.inside,this.data.dnd.prepared=!0,this.dnd_show()}return this.prepare_move(t,n,"before"),this.data.dnd.before=this.check_move(),this.prepare_move(t,n,"after"),this.data.dnd.after=this.check_move(),this._is_loaded(n)?(this.prepare_move(t,n,"inside"),this.data.dnd.inside=this.check_move()):this.data.dnd.inside=!1,this.data.dnd.prepared=!0,this.dnd_show()}},dnd_show:function(){if(this.data.dnd.prepared){var t,n=["before","inside","after"],o=!1,a=this._get_settings().core.rtl;switch(n=this.data.dnd.w1?this._get_string("multiple_selection"):this.get_text(t),s=this.get_container();this._get_settings().core.html_titles||(a=a.replace(//gi,">")),e.vakata.dnd.drag_start(o,{jstree:!0,obj:t},""+a),this.data.themes&&(r&&r.attr("class","jstree-"+this.data.themes.theme),i&&i.attr("class","jstree-"+this.data.themes.theme),e.vakata.dnd.helper.attr("class","jstree-dnd-helper jstree-"+this.data.themes.theme)),this.data.dnd.cof=s.offset(),this.data.dnd.cw=parseInt(s.width(),10),this.data.dnd.ch=parseInt(s.height(),10),this.data.dnd.active=!0}}}),e((function(){e.vakata.css.add_sheet({str:"#vakata-dragged ins { display:block; text-decoration:none; width:16px; height:16px; margin:0 0 0 0; padding:0; position:absolute; top:4px; left:4px; -moz-border-radius:4px; border-radius:4px; -webkit-border-radius:4px; } #vakata-dragged .jstree-ok { background:green; } #vakata-dragged .jstree-invalid { background:red; } #jstree-marker { padding:0; margin:0; font-size:12px; overflow:hidden; height:12px; width:8px; position:absolute; top:-30px; z-index:10001; background-repeat:no-repeat; display:none; background-color:transparent; text-shadow:1px 1px 1px white; color:black; line-height:10px; } #jstree-marker-line { padding:0; margin:0; line-height:0%; font-size:1px; overflow:hidden; height:1px; width:100px; position:absolute; top:-30px; z-index:10000; background-repeat:no-repeat; display:none; background-color:#456c43; cursor:pointer; border:1px solid #eeeeee; border-left:0; -moz-box-shadow: 0px 0px 2px #666; -webkit-box-shadow: 0px 0px 2px #666; box-shadow: 0px 0px 2px #666; -moz-border-radius:1px; border-radius:1px; -webkit-border-radius:1px; }",title:"jstree"}),r=e("").attr({id:"jstree-marker"}).hide().html("»").on("mouseleave mouseenter",(function(e){return r.hide(),i.hide(),e.preventDefault(),e.stopImmediatePropagation(),!1})).appendTo("body"),i=e("").attr({id:"jstree-marker-line"}).hide().on("mouseup",(function(e){if(n&&n.length)return n.children("a").trigger(e),e.preventDefault(),e.stopImmediatePropagation(),!1})).on("mouseleave",(function(t){var o=e(t.relatedTarget);if((o.is(".jstree")||0===o.closest(".jstree").length)&&n&&n.length)return n.children("a").trigger(t),r.hide(),i.hide(),t.preventDefault(),t.stopImmediatePropagation(),!1})).appendTo("body"),e(document).on("drag_start.vakata",(function(e,t){t.data.jstree&&(r.show(),i&&i.show())})),e(document).on("drag_stop.vakata",(function(e,t){t.data.jstree&&(r.hide(),i&&i.hide())}))}))}(jQuery),function(e){e.jstree.plugin("checkbox",{__init:function(){this.data.checkbox.noui=this._get_settings().checkbox.override_ui,this.data.ui&&this.data.checkbox.noui&&(this.select_node=this.deselect_node=this.deselect_all=e.noop,this.get_selected=this.get_checked),this.get_container().on("open_node.jstree create_node.jstree clean_node.jstree refresh.jstree",function(e,t){this._prepare_checkboxes(t.rslt.obj)}.bind(this)).on("loaded.jstree",function(e){this._prepare_checkboxes()}.bind(this)).on("click.jstree",this.data.ui&&this.data.checkbox.noui?"a":"ins.jstree-checkbox",function(e){if(e.preventDefault(),this._get_node(e.target).hasClass("jstree-checked")?this.uncheck_node(e.target):this.check_node(e.target),!this.data.ui||!this.data.checkbox.noui)return e.stopImmediatePropagation(),!1;this.save_selected(),this.data.cookies&&this.save_cookie("select_node")}.bind(this))},defaults:{override_ui:!1,two_state:!1,real_checkboxes:!1,checked_parent_open:!0,real_checkboxes_names:function(e){return["check_"+(e[0].id||Math.ceil(1e4*Math.random())),1]}},__destroy:function(){this.get_container().find("input.jstree-real-checkbox").removeClass("jstree-real-checkbox").end().find("ins.jstree-checkbox").remove()},_fn:{_checkbox_notify:function(e,t){t.checked&&this.check_node(e,!1)},_prepare_checkboxes:function(t){if(!1!==(t=t&&-1!=t?this._get_node(t):this.get_container().find("> ul > li"))){var n,r,i=this,o=this._get_settings().checkbox.two_state,a=this._get_settings().checkbox.real_checkboxes,s=this._get_settings().checkbox.real_checkboxes_names;t.each((function(){r=e(this),n=r.is("li")&&(r.hasClass("jstree-checked")||a&&r.children(":checked").length)?"jstree-checked":"jstree-unchecked",r.find("li").addBack().each((function(){var t,r=e(this);r.children("a"+(i.data.languages?"":":eq(0)")).not(":has(.jstree-checkbox)").prepend(" ").parent().not(".jstree-checked, .jstree-unchecked").addClass(o?"jstree-unchecked":n),a&&(r.children(":checkbox").length?r.children(":checkbox").addClass("jstree-real-checkbox"):(t=s.call(i,r),r.prepend(""))),o?(r.hasClass("jstree-checked")||r.children(":checked").length)&&r.addClass("jstree-checked").children(":checkbox").prop("checked",!0):("jstree-checked"===n||r.hasClass("jstree-checked")||r.children(":checked").length)&&r.find("li").addBack().addClass("jstree-checked").children(":checkbox").prop("checked",!0)}))})),o||t.find(".jstree-checked").parent().parent().each((function(){i._repair_state(this)}))}},change_state:function(t,n){t=this._get_node(t);var r=!1,i=this._get_settings().checkbox.real_checkboxes;if(!t||-1===t)return!1;if(n=!1===n||!0===n?n:t.hasClass("jstree-checked"),this._get_settings().checkbox.two_state)n?(t.removeClass("jstree-checked").addClass("jstree-unchecked"),i&&t.children(":checkbox").prop("checked",!1)):(t.removeClass("jstree-unchecked").addClass("jstree-checked"),i&&t.children(":checkbox").prop("checked",!0));else{if(n){if(!(r=t.find("li").addBack()).filter(".jstree-checked, .jstree-undetermined").length)return!1;r.removeClass("jstree-checked jstree-undetermined").addClass("jstree-unchecked"),i&&r.children(":checkbox").prop("checked",!1)}else{if(!(r=t.find("li").addBack()).filter(".jstree-unchecked, .jstree-undetermined").length)return!1;r.removeClass("jstree-unchecked jstree-undetermined").addClass("jstree-checked"),i&&r.children(":checkbox").prop("checked",!0),this.data.ui&&(this.data.ui.last_selected=t),this.data.checkbox.last_selected=t}t.parentsUntil(".jstree","li").each((function(){var t=e(this);if(n){if(t.children("ul").children("li.jstree-checked, li.jstree-undetermined").length)return t.parentsUntil(".jstree","li").addBack().removeClass("jstree-checked jstree-unchecked").addClass("jstree-undetermined"),i&&t.parentsUntil(".jstree","li").addBack().children(":checkbox").prop("checked",!1),!1;t.removeClass("jstree-checked jstree-undetermined").addClass("jstree-unchecked"),i&&t.children(":checkbox").prop("checked",!1)}else{if(t.children("ul").children("li.jstree-unchecked, li.jstree-undetermined").length)return t.parentsUntil(".jstree","li").addBack().removeClass("jstree-checked jstree-unchecked").addClass("jstree-undetermined"),i&&t.parentsUntil(".jstree","li").addBack().children(":checkbox").prop("checked",!1),!1;t.removeClass("jstree-unchecked jstree-undetermined").addClass("jstree-checked"),i&&t.children(":checkbox").prop("checked",!0)}}))}return this.data.ui&&this.data.checkbox.noui&&(this.data.ui.selected=this.get_checked()),this.__callback(t),!0},check_node:function(e){if(this.change_state(e,!1)){if(e=this._get_node(e),this._get_settings().checkbox.checked_parent_open){var t=this;e.parents(".jstree-closed").each((function(){t.open_node(this,!1,!0)}))}this.__callback({obj:e})}},uncheck_node:function(e){this.change_state(e,!0)&&this.__callback({obj:this._get_node(e)})},check_all:function(){var e=this;(this._get_settings().checkbox.two_state?this.get_container_ul().find("li"):this.get_container_ul().children("li")).each((function(){e.change_state(this,!1)})),this.__callback()},uncheck_all:function(){var e=this;(this._get_settings().checkbox.two_state?this.get_container_ul().find("li"):this.get_container_ul().children("li")).each((function(){e.change_state(this,!0)})),this.__callback()},is_checked:function(e){return!!(e=this._get_node(e)).length&&e.is(".jstree-checked")},get_checked:function(e,t){return e=e&&-1!==e?this._get_node(e):this.get_container(),t||this._get_settings().checkbox.two_state?e.find(".jstree-checked"):e.find("> ul > .jstree-checked, .jstree-undetermined > ul > .jstree-checked")},get_unchecked:function(e,t){return e=e&&-1!==e?this._get_node(e):this.get_container(),t||this._get_settings().checkbox.two_state?e.find(".jstree-unchecked"):e.find("> ul > .jstree-unchecked, .jstree-undetermined > ul > .jstree-unchecked")},show_checkboxes:function(){this.get_container().children("ul").removeClass("jstree-no-checkboxes")},hide_checkboxes:function(){this.get_container().children("ul").addClass("jstree-no-checkboxes")},_repair_state:function(e){if((e=this._get_node(e)).length)if(this._get_settings().checkbox.two_state)e.find("li").addBack().not(".jstree-checked").removeClass("jstree-undetermined").addClass("jstree-unchecked").children(":checkbox").prop("checked",!0);else{var t=this._get_settings().checkbox.real_checkboxes,n=e.find("> ul > .jstree-checked").length,r=e.find("> ul > .jstree-undetermined").length,i=e.find("> ul > li").length;0===i?e.hasClass("jstree-undetermined")&&this.change_state(e,!1):0===n&&0===r?this.change_state(e,!0):n===i?this.change_state(e,!1):(e.parentsUntil(".jstree","li").addBack().removeClass("jstree-checked jstree-unchecked").addClass("jstree-undetermined"),t&&e.parentsUntil(".jstree","li").addBack().children(":checkbox").prop("checked",!1))}},reselect:function(){if(this.data.ui&&this.data.checkbox.noui){var t=this,n=this.data.ui.to_select;n=e.map(e.makeArray(n),(function(e){return"#"+e.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:")})),this.deselect_all(),e.each(n,(function(e,n){t.check_node(n)})),this.__callback()}else this.__call_old()},save_loaded:function(){var e=this;this.data.core.to_load=[],this.get_container_ul().find("li.jstree-closed.jstree-undetermined").each((function(){this.id&&e.data.core.to_load.push("#"+this.id)}))}}}),e((function(){e.vakata.css.add_sheet({str:".jstree .jstree-real-checkbox { display:none; } ",title:"jstree"})}))}(jQuery),function(e){e.vakata.xslt=function(t,n,r){var i,o,a,s="";return document.recalc?(i=document.createElement("xml"),o=document.createElement("xml"),i.innerHTML=t,o.innerHTML=n,e("body").append(i).append(o),setTimeout(function(t,n,r){return function(){r.call(null,t.transformNode(n.XMLDocument)),setTimeout(function(t,n){return function(){e(t).remove(),e(n).remove()}}(t,n),200)}}(i,o,r),100),!0):(void 0!==window.DOMParser&&void 0!==window.XMLHttpRequest&&void 0===window.XSLTProcessor&&(t=(new DOMParser).parseFromString(t,"text/xml"),n=(new DOMParser).parseFromString(n,"text/xml")),void 0!==window.DOMParser&&void 0!==window.XMLHttpRequest&&void 0!==window.XSLTProcessor&&(("function"!=typeof(a=new XSLTProcessor).transformDocument||void 0!==window.XMLSerializer)&&(t=(new DOMParser).parseFromString(t,"text/xml"),n=(new DOMParser).parseFromString(n,"text/xml"),"function"==typeof a.transformDocument?(s=document.implementation.createDocument("","",null),a.transformDocument(t,n,s,null),r.call(null,(new XMLSerializer).serializeToString(s)),!0):(a.importStylesheet(n),s=a.transformToFragment(t,document),r.call(null,e("").append(s).html()),!0))))};var t={nest:'\t\t\t\t\t\t',flat:'\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\tjstree-last \t\t\t\t\tjstree-open \t\t\tjstree-closed \t\t\tjstree-leaf \t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t#\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjstree-icon \t\t\t\t\t\t\t\t\t\t\t\t\tbackground:url() center center no-repeat;\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t'},n=function(e){return e.toString().replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")};e.jstree.plugin("xml_data",{defaults:{data:!1,ajax:!1,xsl:"flat",clean_node:!1,correct_state:!0,get_skip_empty:!1,get_include_preamble:!0},_fn:{load_node:function(e,t,n){var r=this;this.load_node_xml(e,(function(){r.__callback({obj:r._get_node(e)}),t.call(this)}),n)},_is_loaded:function(e){var t=this._get_settings().xml_data;return-1==(e=this._get_node(e))||!e||!t.ajax&&"function"!=typeof t.data||e.is(".jstree-open, .jstree-leaf")||e.children("ul").children("li").length>0},load_node_xml:function(t,n,r){var i=this.get_settings().xml_data,o=function(){},a=function(){};if((t=this._get_node(t))&&-1!==t){if(t.data("jstree_is_loading"))return;t.data("jstree_is_loading",!0)}switch(!0){case!i.data&&!i.ajax:throw"Neither data nor ajax settings supplied.";case"function"==typeof i.data:i.data.call(this,t,function(r){this.parse_xml(r,function(r){r&&((r=r.replace(/ ?xmlns="[^"]*"/gi,"")).length>10?(r=e(r),-1!==t&&t?(t.children("a.jstree-loading").removeClass("jstree-loading"),t.append(r),t.removeData("jstree_is_loading")):this.get_container().children("ul").empty().append(r.children()),i.clean_node&&this.clean_node(t),n&&n.call(this)):t&&-1!==t?(t.children("a.jstree-loading").removeClass("jstree-loading"),t.removeData("jstree_is_loading"),i.correct_state&&(this.correct_state(t),n&&n.call(this))):i.correct_state&&(this.get_container().children("ul").empty(),n&&n.call(this)))}.bind(this))}.bind(this));break;case!!i.data&&!i.ajax||!!i.data&&!!i.ajax&&(!t||-1===t):t&&-1!=t||this.parse_xml(i.data,function(r){r?(r=r.replace(/ ?xmlns="[^"]*"/gi,"")).length>10&&(r=e(r),this.get_container().children("ul").empty().append(r.children()),i.clean_node&&this.clean_node(t),n&&n.call(this)):i.correct_state&&(this.get_container().children("ul").empty(),n&&n.call(this))}.bind(this));break;case!i.data&&!!i.ajax||!!i.data&&!!i.ajax&&t&&-1!==t:o=function(e,n,o){var a=this.get_settings().xml_data.ajax.error;a&&a.call(this,e,n,o),-1!==t&&t.length?(t.children("a.jstree-loading").removeClass("jstree-loading"),t.removeData("jstree_is_loading"),"success"===n&&i.correct_state&&this.correct_state(t)):"success"===n&&i.correct_state&&this.get_container().children("ul").empty(),r&&r.call(this)},a=function(r,a,s){r=s.responseText;var u=this.get_settings().xml_data.ajax.success;if(u&&(r=u.call(this,r,a,s)||r),""===r||r&&r.toString&&""===r.toString().replace(/^[\s\n]+$/,""))return o.call(this,s,a,"");this.parse_xml(r,function(r){r&&((r=r.replace(/ ?xmlns="[^"]*"/gi,"")).length>10?(r=e(r),-1!==t&&t?(t.children("a.jstree-loading").removeClass("jstree-loading"),t.append(r),t.removeData("jstree_is_loading")):this.get_container().children("ul").empty().append(r.children()),i.clean_node&&this.clean_node(t),n&&n.call(this)):t&&-1!==t?(t.children("a.jstree-loading").removeClass("jstree-loading"),t.removeData("jstree_is_loading"),i.correct_state&&(this.correct_state(t),n&&n.call(this))):i.correct_state&&(this.get_container().children("ul").empty(),n&&n.call(this)))}.bind(this))},i.ajax.context=this,i.ajax.error=o,i.ajax.success=a,i.ajax.dataType||(i.ajax.dataType="xml"),"function"==typeof i.ajax.url&&(i.ajax.url=i.ajax.url.call(this,t)),"function"==typeof i.ajax.data&&(i.ajax.data=i.ajax.data.call(this,t)),e.ajax(i.ajax)}},parse_xml:function(n,r){var i=this._get_settings().xml_data;e.vakata.xslt(n,t[i.xsl],r)},get_xml:function(t,r,i,o,a){var s,u,c,l,f="",d=this._get_settings(),h=this;return t||(t="flat"),a||(a=0),(r=this._get_node(r))&&-1!==r||(r=this.get_container().find("> ul > li")),i=Array.isArray(i)?i:["id","class"],!a&&this.data.types&&-1===e.inArray(d.types.type_attr,i)&&i.push(d.types.type_attr),o=Array.isArray(o)?o:[],a||(d.xml_data.get_include_preamble&&(f+=''),f+=""),r.each((function(){f+="- ",f+="",c.children("a").each((function(){s=e(this),l=!1,f+="",f+="",f+=""})),f+="",u=c[0].id||!0,c=c.find("> ul > li"),u=c.length?h.get_xml(t,c,i,o,u):"","nest"==t&&(f+=u),f+="
","flat"==t&&(f+=u)})),a||(f+=""),f}}})}(jQuery),function(e){e.expr[":"].jstree_contains=function(e,t,n){return(e.textContent||e.innerText||"").toLowerCase().indexOf(n[3].toLowerCase())>=0},e.expr[":"].jstree_title_contains=function(e,t,n){return(e.getAttribute("title")||"").toLowerCase().indexOf(n[3].toLowerCase())>=0},e.jstree.plugin("search",{__init:function(){this.data.search.str="",this.data.search.result=e(),this._get_settings().search.show_only_matches&&this.get_container().on("search.jstree",(function(t,n){e(this).children("ul").find("li").hide().removeClass("jstree-last"),n.rslt.nodes.parentsUntil(".jstree").addBack().show().filter("ul").each((function(){e(this).children("li:visible").eq(-1).addClass("jstree-last")}))})).on("clear_search.jstree",(function(){e(this).children("ul").find("li").css("display","").end().end().jstree("clean_node",-1)}))},defaults:{ajax:!1,search_method:"jstree_contains",show_only_matches:!1},_fn:{search:function(t,n){if(""!==t.trim()){var r=this.get_settings().search,i=this,o=function(){},a=function(){};if(this.data.search.str=t,!n&&!1!==r.ajax&&this.get_container_ul().find("li.jstree-closed:not(:has(ul)):eq(0)").length>0)return this.search.supress_callback=!0,o=function(){},a=function(e,t,n){var r=this.get_settings().search.ajax.success;r&&(e=r.call(this,e,t,n)||e),this.data.search.to_open=e,this._search_open()},r.ajax.context=this,r.ajax.error=o,r.ajax.success=a,"function"==typeof r.ajax.url&&(r.ajax.url=r.ajax.url.call(this,t)),"function"==typeof r.ajax.data&&(r.ajax.data=r.ajax.data.call(this,t)),r.ajax.data||(r.ajax.data={search_string:t}),r.ajax.dataType&&!/^json/.exec(r.ajax.dataType)||(r.ajax.dataType="json"),void e.ajax(r.ajax);this.data.search.result.length&&this.clear_search(),this.data.search.result=this.get_container().find("a"+(this.data.languages?"."+this.get_lang():"")+":"+r.search_method+"("+this.data.search.str+")"),this.data.search.result.addClass("jstree-search").parent().parents(".jstree-closed").each((function(){i.open_node(this,!1,!0)})),this.__callback({nodes:this.data.search.result,str:t})}else this.clear_search()},clear_search:function(t){this.data.search.result.removeClass("jstree-search"),this.__callback(this.data.search.result),this.data.search.result=e()},_search_open:function(t){var n=this,r=!0,i=[],o=[];this.data.search.to_open.length&&(e.each(this.data.search.to_open,(function(t,n){if("#"==n)return!0;e(n).length&&e(n).is(".jstree-closed")?i.push(n):o.push(n)})),i.length&&(this.data.search.to_open=o,e.each(i,(function(e,t){n.open_node(t,(function(){n._search_open(!0)}))})),r=!1)),r&&this.search(this.data.search.str,!0)}}})}(jQuery),function(e){e.vakata.context={hide_on_mouseleave:!1,cnt:e(""),vis:!1,tgt:!1,par:!1,func:!1,data:!1,rtl:!1,show:function(t,n,r,i,o,a,s){e.vakata.context.rtl=!!s;var u,c,l=e.vakata.context.parse(t);l&&(e.vakata.context.vis=!0,e.vakata.context.tgt=n,e.vakata.context.par=a||n||null,e.vakata.context.data=o||null,e.vakata.context.cnt.html(l).css({visibility:"hidden",display:"block",left:0,top:0}),e.vakata.context.hide_on_mouseleave&&e.vakata.context.cnt.one("mouseleave",(function(t){e.vakata.context.hide()})),u=e.vakata.context.cnt.height(),r+(c=e.vakata.context.cnt.width())>e(document).width()&&(r=e(document).width()-(c+5),e.vakata.context.cnt.find("li > ul").addClass("right")),i+u>e(document).height()&&(i-=u+n[0].offsetHeight,e.vakata.context.cnt.find("li > ul").addClass("bottom")),e.vakata.context.cnt.css({left:r,top:i}).find("li:has(ul)").on("mouseenter",(function(t){var n=e(document).width(),r=e(document).height(),i=e(this).children("ul").show();n!==e(document).width()&&i.toggleClass("right"),r!==e(document).height()&&i.toggleClass("bottom")})).on("mouseleave",(function(t){e(this).children("ul").hide()})).end().css({visibility:"visible"}).show(),e(document).triggerHandler("context_show.vakata"))},hide:function(){e.vakata.context.vis=!1,e.vakata.context.cnt.attr("class","").css({visibility:"hidden"}),e(document).triggerHandler("context_hide.vakata")},parse:function(t,n){if(!t)return!1;var r="",i=!1,o=!0;return n||(e.vakata.context.func={}),r+="",e.each(t,(function(t,n){if(!n)return!0;e.vakata.context.func[t]=n.action,!o&&n.separator_before&&(r+=""),o=!1,r+="",n.separator_after&&(r+="",o=!0)})),r=r.replace(/- <\/li\>$/,""),r+="
",e(document).triggerHandler("context_parse.vakata"),r.length>10&&r},exec:function(t){return"function"==typeof e.vakata.context.func[t]&&(e.vakata.context.func[t].call(e.vakata.context.data,e.vakata.context.par),!0)}},e((function(){e.vakata.css.add_sheet({str:"#vakata-contextmenu { display:block; visibility:hidden; left:0; top:-200px; position:absolute; margin:0; padding:0; min-width:180px; background:#ebebeb; border:1px solid silver; z-index:10000; *width:180px; } #vakata-contextmenu ul { min-width:180px; *width:180px; } #vakata-contextmenu ul, #vakata-contextmenu li { margin:0; padding:0; list-style-type:none; display:block; } #vakata-contextmenu li { line-height:20px; min-height:20px; position:relative; padding:0px; } #vakata-contextmenu li a { padding:1px 6px; line-height:17px; display:block; text-decoration:none; margin:1px 1px 0 1px; } #vakata-contextmenu li ins { float:left; width:16px; height:16px; text-decoration:none; margin-right:2px; } #vakata-contextmenu li a:hover, #vakata-contextmenu li.vakata-hover > a { background:gray; color:white; } #vakata-contextmenu li ul { display:none; position:absolute; top:-2px; left:100%; background:#ebebeb; border:1px solid gray; } #vakata-contextmenu .right { right:100%; left:auto; } #vakata-contextmenu .bottom { bottom:-1px; top:auto; } #vakata-contextmenu li.vakata-separator { min-height:0; height:1px; line-height:1px; font-size:1px; overflow:hidden; margin:0 2px; background:silver; /* border-top:1px solid #fefefe; */ padding:0; } ",title:"vakata"}),e.vakata.context.cnt.on("click","a",(function(e){e.preventDefault()})).on("mouseup","a",(function(t){!e(this).parent().hasClass("jstree-contextmenu-disabled")&&e.vakata.context.exec(e(this).attr("rel"))?e.vakata.context.hide():e(this).blur()})).on("mouseover","a",(function(){e.vakata.context.cnt.find(".vakata-hover").removeClass("vakata-hover")})).appendTo("body"),e(document).on("mousedown",(function(t){e.vakata.context.vis&&!e.contains(e.vakata.context.cnt[0],t.target)&&e.vakata.context.hide()})),void 0!==e.hotkeys&&e(document).on("keydown",(function(t){if(e.vakata.context.vis){var n;if("ArrowUp"===t.key||"ArrowUp"===t.code)return(n=e.vakata.context.cnt.find("ul:visible").last().children(".vakata-hover").removeClass("vakata-hover").prevAll("li:not(.vakata-separator)").first()).length||(n=e.vakata.context.cnt.find("ul:visible").last().children("li:not(.vakata-separator)").last()),n.addClass("vakata-hover"),t.stopImmediatePropagation(),t.preventDefault(),!1;if("ArrowDown"===t.key||"ArrowDown"===t.code)return(n=e.vakata.context.cnt.find("ul:visible").last().children(".vakata-hover").removeClass("vakata-hover").nextAll("li:not(.vakata-separator)").first()).length||(n=e.vakata.context.cnt.find("ul:visible").last().children("li:not(.vakata-separator)").first()),n.addClass("vakata-hover"),t.stopImmediatePropagation(),t.preventDefault(),!1;if("ArrowRight"===t.key||"ArrowRight"===t.code)return e.vakata.context.cnt.find(".vakata-hover").children("ul").show().children("li:not(.vakata-separator)").removeClass("vakata-hover").first().addClass("vakata-hover"),t.stopImmediatePropagation(),t.preventDefault(),!1;if("ArrowLeft"===t.key||"ArrowLeft"===t.code)return e.vakata.context.cnt.find(".vakata-hover").children("ul").hide().children(".vakata-separator").removeClass("vakata-hover"),t.stopImmediatePropagation(),t.preventDefault(),!1;if("Escape"===t.key||"Escape"===t.code)return e.vakata.context.hide(),t.preventDefault(),!1;if(" "===t.key||"Space"===t.code)return e.vakata.context.cnt.find(".vakata-hover").last().children("a").click(),t.preventDefault(),!1}}))})),e.jstree.plugin("contextmenu",{__init:function(){this.get_container().on("contextmenu.jstree","a",function(t){t.preventDefault(),e(t.currentTarget).hasClass("jstree-loading")||this.show_contextmenu(t.currentTarget,t.pageX,t.pageY)}.bind(this)).on("click.jstree","a",function(t){this.data.contextmenu&&e.vakata.context.hide()}.bind(this)).on("destroy.jstree",function(){this.data.contextmenu&&e.vakata.context.hide()}.bind(this)),e(document).on("context_hide.vakata",function(){this.data.contextmenu=!1}.bind(this))},__destroy:function(){e(".jstree").length<=1&&e(document).off("context_hide.vakata")},defaults:{select_node:!1,show_at_node:!0,items:{create:{separator_before:!1,separator_after:!0,label:"Create",action:function(e){this.create(e)}},rename:{separator_before:!1,separator_after:!1,label:"Rename",action:function(e){this.rename(e)}},remove:{separator_before:!1,icon:!1,separator_after:!1,label:"Delete",action:function(e){this.is_selected(e)?this.remove():this.remove(e)}},ccp:{separator_before:!0,icon:!1,separator_after:!1,label:"Edit",action:!1,submenu:{cut:{separator_before:!1,separator_after:!1,label:"Cut",action:function(e){this.cut(e)}},copy:{separator_before:!1,icon:!1,separator_after:!1,label:"Copy",action:function(e){this.copy(e)}},paste:{separator_before:!1,icon:!1,separator_after:!1,label:"Paste",action:function(e){this.paste(e)}}}}}},_fn:{show_contextmenu:function(t,n,r){t=this._get_node(t);var i=this.get_settings().contextmenu,o=t.children("a:visible:eq(0)"),a=!1,s=!1;i.select_node&&this.data.ui&&!this.is_selected(t)&&(this.deselect_all(),this.select_node(t,!0)),(i.show_at_node||void 0===n||void 0===r)&&(n=(a=o.offset()).left,r=a.top+this.data.core.li_height),"function"==typeof(s=t.data("jstree")&&t.data("jstree").contextmenu?t.data("jstree").contextmenu:i.items)&&(s=s.call(this,t)),this.data.contextmenu=!0,e.vakata.context.show(s,o,n,r,this,t,this._get_settings().core.rtl),this.data.themes&&e.vakata.context.cnt.attr("class","jstree-"+this.data.themes.theme+"-context")}}})}(jQuery),function(t){t.jstree.plugin("types",{__init:function(){var n=this._get_settings().types;this.data.types.attach_to=[],this.get_container().on("init.jstree",function(){var e=n.types,r=n.type_attr,i="",o=this;t.each(e,(function(e,n){if(t.each(n,(function(e,t){/^(max_depth|max_children|icon|valid_children)$/.test(e)||o.data.types.attach_to.push(e)})),!n.icon)return!0;(n.icon.image||n.icon.position)&&(i+="default"==e?".jstree-"+o.get_index()+" a > .jstree-icon { ":".jstree-"+o.get_index()+" li["+r+'="'+e+'"] > a > .jstree-icon { ',n.icon.image&&(i+=" background-image:url("+n.icon.image+"); "),n.icon.position?i+=" background-position:"+n.icon.position+"; ":i+=" background-position:0 0; ",i+="} ")})),""!==i&&t.vakata.css.add_sheet({str:i,title:"jstree-types"})}.bind(this)).on("before.jstree",function(e,n){var r,i,o=!!this._get_settings().types.use_data&&this._get_node(n.args[0]),a=!(!o||-1===o||!o.length)&&o.data("jstree");if(a&&a.types&&!1===a.types[n.func])return e.stopImmediatePropagation(),!1;if(-1!==t.inArray(n.func,this.data.types.attach_to)){if(!n.args[0]||!n.args[0].tagName&&!n.args[0].jquery)return;if(((r=this._get_settings().types.types)[i=this._get_type(n.args[0])]&&void 0!==r[i][n.func]||r.default&&void 0!==r.default[n.func])&&!1===this._check(n.func,n.args[0]))return e.stopImmediatePropagation(),!1}}.bind(this)),e&&this.get_container().on("load_node.jstree set_type.jstree",function(e,n){var r=n&&n.rslt&&n.rslt.obj&&-1!==n.rslt.obj?this._get_node(n.rslt.obj).parent():this.get_container_ul(),i=!1,o=this._get_settings().types;t.each(o.types,(function(e,t){t.icon&&(t.icon.image||t.icon.position)&&(i="default"===e?r.find("li > a > .jstree-icon"):r.find("li["+o.type_attr+"='"+e+"'] > a > .jstree-icon"),t.icon.image&&i.css("backgroundImage","url("+t.icon.image+")"),i.css("backgroundPosition",t.icon.position||"0 0"))}))}.bind(this))},defaults:{max_children:-1,max_depth:-1,valid_children:"all",use_data:!1,type_attr:"rel",types:{default:{max_children:-1,max_depth:-1,valid_children:"all"}}},_fn:{_types_notify:function(e,t){t.type&&this._get_settings().types.use_data&&this.set_type(t.type,e)},_get_type:function(e){return!(!(e=this._get_node(e))||!e.length)&&(e.attr(this._get_settings().types.type_attr)||"default")},set_type:function(e,t){var n=!(!(t=this._get_node(t)).length||!e)&&t.attr(this._get_settings().types.type_attr,e);return n&&this.__callback({obj:t,type:e}),n},_check:function(e,t,n){t=this._get_node(t);var r=!1,i=this._get_type(t),o=0,a=this,s=this._get_settings().types,u=!1;if(-1===t){if(!s[e])return;r=s[e]}else{if(!1===i)return;(u=!!s.use_data&&t.data("jstree"))&&u.types&&void 0!==u.types[e]?r=u.types[e]:s.types[i]&&void 0!==s.types[i][e]?r=s.types[i][e]:s.types.default&&void 0!==s.types.default[e]&&(r=s.types.default[e])}return"function"==typeof r&&(r=r.call(this,t)),"max_depth"===e&&-1!==t&&!1!==n&&-2!==s.max_depth&&0!==r&&t.children("a:eq(0)").parentsUntil(".jstree","li").each((function(t){return-1!==s.max_depth&&s.max_depth-(t+1)<=0||-1!==(o=0===t?r:a._check(e,this,!1))&&o-(t+1)<=0?(r=0,!1):(o>=0&&(o-(t+1)=0&&(s.max_depth-(t+1) ul > li").not(n.o).length:n.cr.find("> ul > li").not(n.o).length)+n.o.length>i)return!1;if(-2!==r.max_depth&&-1!==o){if(s=0,0===o)return!1;if(void 0===n.o.d){for(e=n.o;e.length>0;)e=e.find("> ul > li"),s++;n.o.d=s}if(o-n.o.d<0)return!1}return!0},create_node:function(e,n,r,i,o,a){if(!a&&(o||this._is_loaded(e))){var s="string"==typeof n&&n.match(/^before|after$/i)&&-1!==e?this._get_parent(e):this._get_node(e),u=this._get_settings().types,c=this._check("max_children",s),l=this._check("max_depth",s),f=this._check("valid_children",s);if("string"==typeof r&&(r={data:r}),r||(r={}),"none"===f)return!1;if(Array.isArray(f))if(r.attr&&r.attr[u.type_attr]){if(-1===t.inArray(r.attr[u.type_attr],f))return!1}else r.attr||(r.attr={}),r.attr[u.type_attr]=f[0];if(-2!==u.max_children&&-1!==c&&(-1===s?this.get_container().find("> ul > li").length:s.find("> ul > li").length)+1>c)return!1;if(-2!==u.max_depth&&-1!==l&&l-1<0)return!1}return this.__call_old(!0,e,n,r,i,o,a)}}})}(jQuery),function(e){e.jstree.plugin("html_data",{__init:function(){this.data.html_data.original_container_html=this.get_container().find(" > ul > li").clone(!0),this.data.html_data.original_container_html.find("li").addBack().contents().filter((function(){return 3==this.nodeType})).remove()},defaults:{data:!1,ajax:!1,correct_state:!0},_fn:{load_node:function(e,t,n){var r=this;this.load_node_html(e,(function(){r.__callback({obj:r._get_node(e)}),t.call(this)}),n)},_is_loaded:function(e){return-1==(e=this._get_node(e))||!e||!this._get_settings().html_data.ajax&&"function"!=typeof this._get_settings().html_data.data||e.is(".jstree-open, .jstree-leaf")||e.children("ul").children("li").length>0},load_node_html:function(t,n,r){var i,o=this.get_settings().html_data,a=function(){},s=function(){};if((t=this._get_node(t))&&-1!==t){if(t.data("jstree_is_loading"))return;t.data("jstree_is_loading",!0)}switch(!0){case"function"==typeof o.data:o.data.call(this,t,function(r){r&&""!==r&&r.toString&&""!==r.toString().replace(/^[\s\n]+$/,"")?((r=e(r)).is("ul")||(r=e("").append(r)),-1!=t&&t?(t.children("a.jstree-loading").removeClass("jstree-loading"),t.append(r).children("ul").find("li, a").filter((function(){return!this.firstChild||!this.firstChild.tagName||"INS"!==this.firstChild.tagName})).prepend(" ").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"),t.removeData("jstree_is_loading")):this.get_container().children("ul").empty().append(r.children()).find("li, a").filter((function(){return!this.firstChild||!this.firstChild.tagName||"INS"!==this.firstChild.tagName})).prepend(" ").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"),this.clean_node(t),n&&n.call(this)):t&&-1!==t?(t.children("a.jstree-loading").removeClass("jstree-loading"),t.removeData("jstree_is_loading"),o.correct_state&&(this.correct_state(t),n&&n.call(this))):o.correct_state&&(this.get_container().children("ul").empty(),n&&n.call(this))}.bind(this));break;case!o.data&&!o.ajax:t&&-1!=t||(this.get_container().children("ul").empty().append(this.data.html_data.original_container_html).find("li, a").filter((function(){return!this.firstChild||!this.firstChild.tagName||"INS"!==this.firstChild.tagName})).prepend(" ").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"),this.clean_node()),n&&n.call(this);break;case!!o.data&&!o.ajax||!!o.data&&!!o.ajax&&(!t||-1===t):t&&-1!=t||((i=e(o.data)).is("ul")||(i=e("").append(i)),this.get_container().children("ul").empty().append(i.children()).find("li, a").filter((function(){return!this.firstChild||!this.firstChild.tagName||"INS"!==this.firstChild.tagName})).prepend(" ").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"),this.clean_node()),n&&n.call(this);break;case!o.data&&!!o.ajax||!!o.data&&!!o.ajax&&t&&-1!==t:t=this._get_node(t),a=function(e,n,i){var a=this.get_settings().html_data.ajax.error;a&&a.call(this,e,n,i),-1!=t&&t.length?(t.children("a.jstree-loading").removeClass("jstree-loading"),t.removeData("jstree_is_loading"),"success"===n&&o.correct_state&&this.correct_state(t)):"success"===n&&o.correct_state&&this.get_container().children("ul").empty(),r&&r.call(this)},s=function(r,i,s){var u=this.get_settings().html_data.ajax.success;if(u&&(r=u.call(this,r,i,s)||r),""===r||r&&r.toString&&""===r.toString().replace(/^[\s\n]+$/,""))return a.call(this,s,i,"");r?((r=e(r)).is("ul")||(r=e("").append(r)),-1!=t&&t?(t.children("a.jstree-loading").removeClass("jstree-loading"),t.append(r).children("ul").find("li, a").filter((function(){return!this.firstChild||!this.firstChild.tagName||"INS"!==this.firstChild.tagName})).prepend(" ").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"),t.removeData("jstree_is_loading")):this.get_container().children("ul").empty().append(r.children()).find("li, a").filter((function(){return!this.firstChild||!this.firstChild.tagName||"INS"!==this.firstChild.tagName})).prepend(" ").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"),this.clean_node(t),n&&n.call(this)):t&&-1!==t?(t.children("a.jstree-loading").removeClass("jstree-loading"),t.removeData("jstree_is_loading"),o.correct_state&&(this.correct_state(t),n&&n.call(this))):o.correct_state&&(this.get_container().children("ul").empty(),n&&n.call(this))},o.ajax.context=this,o.ajax.error=a,o.ajax.success=s,o.ajax.dataType||(o.ajax.dataType="html"),"function"==typeof o.ajax.url&&(o.ajax.url=o.ajax.url.call(this,t)),"function"==typeof o.ajax.data&&(o.ajax.data=o.ajax.data.call(this,t)),e.ajax(o.ajax)}}}}),e.jstree.defaults.plugins.push("html_data")}(jQuery),function(e){e.jstree.plugin("themeroller",{__init:function(){var t=this._get_settings().themeroller;this.get_container().addClass("ui-widget-content").addClass("jstree-themeroller").on("mouseenter.jstree","a",(function(n){e(n.currentTarget).hasClass("jstree-loading")||e(this).addClass(t.item_h)})).on("mouseleave.jstree","a",(function(){e(this).removeClass(t.item_h)})).on("init.jstree",function(e,t){t.inst.get_container().find("> ul > li > .jstree-loading > ins").addClass("ui-icon-refresh"),this._themeroller(t.inst.get_container().find("> ul > li"))}.bind(this)).on("open_node.jstree create_node.jstree",function(e,t){this._themeroller(t.rslt.obj)}.bind(this)).on("loaded.jstree refresh.jstree",function(e){this._themeroller()}.bind(this)).on("close_node.jstree",function(e,t){this._themeroller(t.rslt.obj)}.bind(this)).on("delete_node.jstree",function(e,t){this._themeroller(t.rslt.parent)}.bind(this)).on("correct_state.jstree",function(e,n){n.rslt.obj.children("ins.jstree-icon").removeClass(t.opened+" "+t.closed+" ui-icon").end().find("> a > ins.ui-icon").filter((function(){return-1===this.className.toString().replace(t.item_clsd,"").replace(t.item_open,"").replace(t.item_leaf,"").indexOf("ui-icon-")})).removeClass(t.item_open+" "+t.item_clsd).addClass(t.item_leaf||"jstree-no-icon")}.bind(this)).on("select_node.jstree",function(e,n){n.rslt.obj.children("a").addClass(t.item_a)}.bind(this)).on("deselect_node.jstree deselect_all.jstree",function(e,n){this.get_container().find("a."+t.item_a).removeClass(t.item_a).end().find("a.jstree-clicked").addClass(t.item_a)}.bind(this)).on("dehover_node.jstree",function(e,n){n.rslt.obj.children("a").removeClass(t.item_h)}.bind(this)).on("hover_node.jstree",function(e,n){this.get_container().find("a."+t.item_h).not(n.rslt.obj).removeClass(t.item_h),n.rslt.obj.children("a").addClass(t.item_h)}.bind(this)).on("move_node.jstree",function(e,t){this._themeroller(t.rslt.o),this._themeroller(t.rslt.op)}.bind(this))},__destroy:function(){var t=this._get_settings().themeroller,n=["ui-icon"];e.each(t,(function(e,t){(t=t.split(" ")).length&&(n=n.concat(t))})),this.get_container().removeClass("ui-widget-content").find("."+n.join(", .")).removeClass(n.join(" "))},_fn:{_themeroller:function(e){var t=this._get_settings().themeroller;(e=(e=e&&-1!=e?this._get_node(e):this.get_container_ul())&&-1!=e?e.parent():this.get_container_ul()).find("li.jstree-closed").children("ins.jstree-icon").removeClass(t.opened).addClass("ui-icon "+t.closed).end().children("a").addClass(t.item).children("ins.jstree-icon").addClass("ui-icon").filter((function(){return-1===this.className.toString().replace(t.item_clsd,"").replace(t.item_open,"").replace(t.item_leaf,"").indexOf("ui-icon-")})).removeClass(t.item_leaf+" "+t.item_open).addClass(t.item_clsd||"jstree-no-icon").end().end().end().end().find("li.jstree-open").children("ins.jstree-icon").removeClass(t.closed).addClass("ui-icon "+t.opened).end().children("a").addClass(t.item).children("ins.jstree-icon").addClass("ui-icon").filter((function(){return-1===this.className.toString().replace(t.item_clsd,"").replace(t.item_open,"").replace(t.item_leaf,"").indexOf("ui-icon-")})).removeClass(t.item_leaf+" "+t.item_clsd).addClass(t.item_open||"jstree-no-icon").end().end().end().end().find("li.jstree-leaf").children("ins.jstree-icon").removeClass(t.closed+" ui-icon "+t.opened).end().children("a").addClass(t.item).children("ins.jstree-icon").addClass("ui-icon").filter((function(){return-1===this.className.toString().replace(t.item_clsd,"").replace(t.item_open,"").replace(t.item_leaf,"").indexOf("ui-icon-")})).removeClass(t.item_clsd+" "+t.item_open).addClass(t.item_leaf||"jstree-no-icon")}},defaults:{opened:"ui-icon-triangle-1-se",closed:"ui-icon-triangle-1-e",item:"ui-state-default",item_h:"ui-state-hover",item_a:"ui-state-active",item_open:"ui-icon-folder-open",item_clsd:"ui-icon-folder-collapsed",item_leaf:"ui-icon-document"}}),e((function(){e.vakata.css.add_sheet({str:".jstree-themeroller .ui-icon { overflow:visible; } .jstree-themeroller a { padding:0 2px; } .jstree-themeroller .jstree-no-icon { display:none; }",title:"jstree"})}))}(jQuery),function(e){e.jstree.plugin("unique",{__init:function(){this.get_container().on("before.jstree",function(t,n){var r,i,o=[],a=!0;if("move_node"==n.func&&!0===n.args[4]&&n.args[0].o&&n.args[0].o.length&&(n.args[0].o.children("a").each((function(){o.push(e(this).text().replace(/^\s+/g,""))})),a=this._check_unique(o,n.args[0].np.find("> ul > li").not(n.args[0].o),"move_node")),"create_node"==n.func&&(n.args[4]||this._is_loaded(n.args[0]))&&(r=this._get_node(n.args[0]),!n.args[1]||"before"!==n.args[1]&&"after"!==n.args[1]||(r=this._get_parent(n.args[0]))&&-1!==r||(r=this.get_container()),"string"==typeof n.args[2]?o.push(n.args[2]):n.args[2]&&n.args[2].data?o.push(n.args[2].data):o.push(this._get_string("new_node")),a=this._check_unique(o,r.find("> ul > li"),"create_node")),"rename_node"==n.func&&(o.push(n.args[1]),i=this._get_node(n.args[0]),(r=this._get_parent(i))&&-1!==r||(r=this.get_container()),a=this._check_unique(o,r.find("> ul > li").not(i),"rename_node")),!a)return t.stopPropagation(),!1}.bind(this))},defaults:{error_callback:e.noop},_fn:{_check_unique:function(t,n,r){var i=[],o=!0;return n.children("a").each((function(){i.push(e(this).text().replace(/^\s+/g,""))})),!i.length||!t.length||(e.each(t,(function(t,n){if(-1!==e.inArray(n,i))return o=!1,!1})),o||this._get_settings().unique.error_callback.call(null,t,n,r),o)},check_move:function(){if(!this.__call_old())return!1;var t=this._get_move(),n=[];return!t.o||!t.o.length||(t.o.children("a").each((function(){n.push(e(this).text().replace(/^\s+/g,""))})),this._check_unique(n,t.np.find("> ul > li").not(t.o),"check_move"))}}})}(jQuery),function(r){r.jstree.plugin("wholerow",{__init:function(){if(!this.data.ui)throw"jsTree wholerow: jsTree UI plugin not included.";this.data.wholerow.html=!1,this.data.wholerow.to=!1,this.get_container().on("init.jstree",function(e,t){this._get_settings().core.animation=0}.bind(this)).on("open_node.jstree create_node.jstree clean_node.jstree loaded.jstree",function(e,t){this._prepare_wholerow_span(t&&t.rslt&&t.rslt.obj?t.rslt.obj:-1)}.bind(this)).on("search.jstree clear_search.jstree reopen.jstree after_open.jstree after_close.jstree create_node.jstree delete_node.jstree clean_node.jstree",function(e,t){var n,r;this.data.to&&clearTimeout(this.data.to),this.data.to=setTimeout((n=this,r=t&&t.rslt&&t.rslt.obj?t.rslt.obj:-1,function(){n._prepare_wholerow_ul(r)}),0)}.bind(this)).on("deselect_all.jstree",function(e,t){this.get_container().find(" > .jstree-wholerow .jstree-clicked").removeClass("jstree-clicked "+(this.data.themeroller?this._get_settings().themeroller.item_a:""))}.bind(this)).on("select_node.jstree deselect_node.jstree ",function(e,t){t.rslt.obj.each((function(){t.inst.get_container().find(" > .jstree-wholerow li:visible:eq("+parseInt((r(this).offset().top-t.inst.get_container().offset().top+t.inst.get_container()[0].scrollTop)/t.inst.data.core.li_height,10)+")").children("a").attr("class",t.rslt.obj.children("a").attr("class"))}))}.bind(this)).on("hover_node.jstree dehover_node.jstree",function(e,t){(this.get_container().find(" > .jstree-wholerow .jstree-hovered").removeClass("jstree-hovered "+(this.data.themeroller?this._get_settings().themeroller.item_h:"")),"hover_node"===e.type)&&this.get_container().find(" > .jstree-wholerow li:visible:eq("+parseInt((t.rslt.obj.offset().top-this.get_container().offset().top+this.get_container()[0].scrollTop)/this.data.core.li_height,10)+")").children("a").attr("class",t.rslt.obj.children(".jstree-hovered").attr("class"))}.bind(this)).on("click.jstree",".jstree-wholerow-span, ins.jstree-icon, li",(function(e){var t=r(e.currentTarget);"A"===e.target.tagName||"INS"===e.target.tagName&&t.closest("li").is(".jstree-open, .jstree-closed")||(t.closest("li").children("a:visible:eq(0)").click(),e.stopImmediatePropagation())})).on("mouseover.jstree","li",function(e){return e.stopImmediatePropagation(),r(e.currentTarget).children(".jstree-hovered, .jstree-clicked").length||this.hover_node(e.currentTarget),!1}.bind(this)).on("mouseleave.jstree","li",function(e){r(e.currentTarget).children("a").hasClass("jstree-hovered").length||this.dehover_node(e.currentTarget)}.bind(this)),(t||e)&&r.vakata.css.add_sheet({str:".jstree-"+this.get_index()+" { position:relative; } ",title:"jstree"})},defaults:{},__destroy:function(){this.get_container().children(".jstree-wholerow").remove(),this.get_container().find(".jstree-wholerow-span").remove()},_fn:{_prepare_wholerow_span:function(e){!1!==(e=e&&-1!=e?this._get_node(e):this.get_container().find("> ul > li"))&&e.each((function(){r(this).find("li").addBack().each((function(){var e=r(this);if(e.children(".jstree-wholerow-span").length)return!0;e.prepend(" ")}))}))},_prepare_wholerow_ul:function(){var e=this.get_container().children("ul").eq(0),n=e.html();e.addClass("jstree-wholerow-real"),this.data.wholerow.last_html!==n&&(this.data.wholerow.last_html=n,this.get_container().children(".jstree-wholerow").remove(),this.get_container().append(e.clone().removeClass("jstree-wholerow-real").wrapAll("").parent().width(e.parent()[0].scrollWidth).css("top",-1*(e.height()+(t?5:0))).find("li[id]").each((function(){this.removeAttribute("id")})).end()))}}}),r((function(){var i=".jstree .jstree-wholerow-real { position:relative; z-index:1; } .jstree .jstree-wholerow-real li { cursor:pointer; } .jstree .jstree-wholerow-real a { border-left-color:transparent !important; border-right-color:transparent !important; } .jstree .jstree-wholerow { position:relative; z-index:0; height:0; } .jstree .jstree-wholerow ul, .jstree .jstree-wholerow li { width:100%; } .jstree .jstree-wholerow, .jstree .jstree-wholerow ul, .jstree .jstree-wholerow li, .jstree .jstree-wholerow a { margin:0 !important; padding:0 !important; } .jstree .jstree-wholerow, .jstree .jstree-wholerow ul, .jstree .jstree-wholerow li { background:transparent !important; }.jstree .jstree-wholerow ins, .jstree .jstree-wholerow span, .jstree .jstree-wholerow input { display:none !important; }.jstree .jstree-wholerow a, .jstree .jstree-wholerow a:hover { text-indent:-9999px; !important; width:100%; padding:0 !important; border-right-width:0px !important; border-left-width:0px !important; } .jstree .jstree-wholerow-span { position:absolute; left:0; margin:0px; padding:0; height:18px; border-width:0; padding:0; z-index:0; }";n&&(i+=".jstree .jstree-wholerow a { display:block; height:18px; margin:0; padding:0; border:0; } .jstree .jstree-wholerow-real a { border-color:transparent !important; } "),(t||e)&&(i+=".jstree .jstree-wholerow, .jstree .jstree-wholerow li, .jstree .jstree-wholerow ul, .jstree .jstree-wholerow a { margin:0; padding:0; line-height:18px; } .jstree .jstree-wholerow a { display:block; height:18px; line-height:18px; overflow:hidden; } "),r.vakata.css.add_sheet({str:i,title:"jstree"})}))}(jQuery),function(e){var t=["getChildren","getChildrenCount","getAttr","getName","getProps"];e.jstree.plugin("model",{__init:function(){if(!this.data.json_data)throw"jsTree model: jsTree json_data plugin not included.";this._get_settings().json_data.data=function(n,r){var i=-1==n?this._get_settings().model.object:n.data("jstree_model");if(!function(t,n){var r=!0;return t=t||{},n=[].concat(n),e.each(n,(function(e,n){if("function"!=typeof t[n])return r=!1,!1})),r}(i,t))return r.call(null,!1);this._get_settings().model.async?i.getChildren(function(e){this.model_done(e,r)}.bind(this)):this.model_done(i.getChildren(),r)}},defaults:{object:!1,id_prefix:!1,async:!1},_fn:{model_done:function(t,n){var r=[],i=this._get_settings(),o=this;Array.isArray(t)||(t=[t]),e.each(t,(function(e,t){var n=t.getProps()||{};n.attr=t.getAttr()||{},t.getChildrenCount()&&(n.state="closed"),n.data=t.getName(),Array.isArray(n.data)||(n.data=[n.data]),o.data.types&&"function"==typeof t.getType&&(n.attr[i.types.type_attr]=t.getType()),n.attr.id&&i.model.id_prefix&&(n.attr.id=i.model.id_prefix+n.attr.id),n.metadata||(n.metadata={}),n.metadata.jstree_model=t,r.push(n)})),n.call(null,r)}}})}(jQuery)}}()},21924:function(e,t,n){"use strict";var r=n(40210),i=n(55559),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},55559:function(e,t,n){"use strict";var r=n(58612),i=n(40210),o=n(67771),a=i("%TypeError%"),s=i("%Function.prototype.apply%"),u=i("%Function.prototype.call%"),c=i("%Reflect.apply%",!0)||r.call(u,s),l=i("%Object.defineProperty%",!0),f=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(r,u,arguments);return o(t,1+f(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(r,s,arguments)};l?l(e.exports,"apply",{value:d}):e.exports.apply=d},90858:function(){(function(){var e,t,n,r,i={}.hasOwnProperty;(r=function(){function e(){this.options_index=0,this.parsed=[]}return e.prototype.add_node=function(e){return"OPTGROUP"===e.nodeName.toUpperCase()?this.add_group(e):this.add_option(e)},e.prototype.add_group=function(e){var t,n,r,i,o,a;for(t=this.parsed.length,this.parsed.push({array_index:t,group:!0,label:e.label,title:e.title?e.title:void 0,children:0,disabled:e.disabled,classes:e.className}),a=[],n=0,r=(o=e.childNodes).length;n"+this.escape_html(e.group_label)+""+e.html:e.html},e.prototype.mouse_enter=function(){return this.mouse_on_container=!0},e.prototype.mouse_leave=function(){return this.mouse_on_container=!1},e.prototype.input_focus=function(e){if(this.is_multiple){if(!this.active_field)return setTimeout((t=this,function(){return t.container_mousedown()}),50)}else if(!this.active_field)return this.activate_field();var t},e.prototype.input_blur=function(e){if(!this.mouse_on_container)return this.active_field=!1,setTimeout((t=this,function(){return t.blur_test()}),100);var t},e.prototype.label_click_handler=function(e){return this.is_multiple?this.container_mousedown(e):this.activate_field()},e.prototype.results_option_build=function(e){var t,n,r,i,o,a,s;for(t="",s=0,i=0,o=(a=this.results_data).length;i=this.max_shown_results));i++);return t},e.prototype.result_add_option=function(e){var t,n;return e.search_match&&this.include_option_in_results(e)?(t=[],e.disabled||e.selected&&this.is_multiple||t.push("active-result"),!e.disabled||e.selected&&this.is_multiple||t.push("disabled-result"),e.selected&&t.push("result-selected"),null!=e.group_array_index&&t.push("group-option"),""!==e.classes&&t.push(e.classes),(n=document.createElement("li")).className=t.join(" "),e.style&&(n.style.cssText=e.style),n.setAttribute("data-option-array-index",e.array_index),n.innerHTML=e.highlighted_html||e.html,e.title&&(n.title=e.title),this.outerHTML(n)):""},e.prototype.result_add_group=function(e){var t,n;return(e.search_match||e.group_match)&&e.active_options>0?((t=[]).push("group-result"),e.classes&&t.push(e.classes),(n=document.createElement("li")).className=t.join(" "),n.innerHTML=e.highlighted_html||this.escape_html(e.label),e.title&&(n.title=e.title),this.outerHTML(n)):""},e.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},e.prototype.reset_single_select_options=function(){var e,t,n,r,i;for(i=[],e=0,t=(n=this.results_data).length;e"+this.escape_html(n)+""+this.escape_html(p)),null!=f&&(f.group_match=!0)):null!=o.group_array_index&&this.results_data[o.group_array_index].search_match&&(o.search_match=!0)));return this.result_clear_highlight(),l<1&&s.length?(this.update_results_content(""),this.no_results(s)):(this.update_results_content(this.results_option_build()),(null!=e?e.skip_highlight:void 0)?void 0:this.winnow_results_set_highlight())},e.prototype.get_search_regex=function(e){var t,n;return n=this.search_contains?e:"(^|\\s|\\b)"+e+"[^\\s]*",this.enable_split_word_search||this.search_contains||(n="^"+n),t=this.case_sensitive_search?"":"i",new RegExp(n,t)},e.prototype.search_string_match=function(e,t){var n;return n=t.exec(e),!this.search_contains&&(null!=n?n[1]:void 0)&&(n.index+=1),n},e.prototype.choices_count=function(){var e,t,n;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,e=0,t=(n=this.form_field.options).length;e0?this.keydown_backstroke():this.pending_backstroke||(this.result_clear_highlight(),this.results_search());break;case 13:e.preventDefault(),this.results_showing&&this.result_select(e);break;case 27:this.results_showing&&this.results_hide();break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search()}},e.prototype.clipboard_event_checker=function(e){var t;if(!this.is_disabled)return setTimeout((t=this,function(){return t.results_search()}),50)},e.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},e.prototype.include_option_in_results=function(e){return!(this.is_multiple&&!this.display_selected_options&&e.selected)&&(!(!this.display_disabled_options&&e.disabled)&&!e.empty)},e.prototype.search_results_touchstart=function(e){return this.touch_started=!0,this.search_results_mouseover(e)},e.prototype.search_results_touchmove=function(e){return this.touch_started=!1,this.search_results_mouseout(e)},e.prototype.search_results_touchend=function(e){if(this.touch_started)return this.search_results_mouseup(e)},e.prototype.outerHTML=function(e){var t;return e.outerHTML?e.outerHTML:((t=document.createElement("div")).appendChild(e),t.innerHTML)},e.prototype.get_single_html=function(){return'\n '+this.default_text+'\n
\n\n'},e.prototype.get_multi_html=function(){return'\n'},e.prototype.get_no_results_html=function(e){return'\n '+this.results_none_found+" "+this.escape_html(e)+"\n"},e.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},e.default_multiple_text="Select Some Options",e.default_single_text="Select an Option",e.default_no_result_text="No results match",e}(),(e=jQuery).fn.extend({chosen:function(r){return t.browser_is_supported()?this.each((function(t){var i,o;o=(i=e(this)).data("chosen"),"destroy"!==r?o instanceof n||i.data("chosen",new n(this,r)):o instanceof n&&o.destroy()})):this}}),n=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(n,t),n.prototype.setup=function(){return this.form_field_jq=e(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex},n.prototype.set_up_html=function(){var t,n;return(t=["chosen-container"]).push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&t.push(this.form_field.className),this.is_rtl&&t.push("chosen-rtl"),n={class:t.join(" "),title:this.form_field.title},this.form_field.id.length&&(n.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=e("",n),this.container.width(this.container_width()),this.is_multiple?this.container.html(this.get_multi_html()):this.container.html(this.get_single_html()),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},n.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},n.prototype.register_observers=function(){var e;return this.container.on("touchstart.chosen",(e=this,function(t){e.container_mousedown(t)})),this.container.on("touchend.chosen",function(e){return function(t){e.container_mouseup(t)}}(this)),this.container.on("mousedown.chosen",function(e){return function(t){e.container_mousedown(t)}}(this)),this.container.on("mouseup.chosen",function(e){return function(t){e.container_mouseup(t)}}(this)),this.container.on("mouseenter.chosen",function(e){return function(t){e.mouse_enter(t)}}(this)),this.container.on("mouseleave.chosen",function(e){return function(t){e.mouse_leave(t)}}(this)),this.search_results.on("mouseup.chosen",function(e){return function(t){e.search_results_mouseup(t)}}(this)),this.search_results.on("mouseover.chosen",function(e){return function(t){e.search_results_mouseover(t)}}(this)),this.search_results.on("mouseout.chosen",function(e){return function(t){e.search_results_mouseout(t)}}(this)),this.search_results.on("mousewheel.chosen DOMMouseScroll.chosen",function(e){return function(t){e.search_results_mousewheel(t)}}(this)),this.search_results.on("touchstart.chosen",function(e){return function(t){e.search_results_touchstart(t)}}(this)),this.search_results.on("touchmove.chosen",function(e){return function(t){e.search_results_touchmove(t)}}(this)),this.search_results.on("touchend.chosen",function(e){return function(t){e.search_results_touchend(t)}}(this)),this.form_field_jq.on("chosen:updated.chosen",function(e){return function(t){e.results_update_field(t)}}(this)),this.form_field_jq.on("chosen:activate.chosen",function(e){return function(t){e.activate_field(t)}}(this)),this.form_field_jq.on("chosen:open.chosen",function(e){return function(t){e.container_mousedown(t)}}(this)),this.form_field_jq.on("chosen:close.chosen",function(e){return function(t){e.close_field(t)}}(this)),this.search_field.on("blur.chosen",function(e){return function(t){e.input_blur(t)}}(this)),this.search_field.on("keyup.chosen",function(e){return function(t){e.keyup_checker(t)}}(this)),this.search_field.on("keydown.chosen",function(e){return function(t){e.keydown_checker(t)}}(this)),this.search_field.on("focus.chosen",function(e){return function(t){e.input_focus(t)}}(this)),this.search_field.on("cut.chosen",function(e){return function(t){e.clipboard_event_checker(t)}}(this)),this.search_field.on("paste.chosen",function(e){return function(t){e.clipboard_event_checker(t)}}(this)),this.is_multiple?this.search_choices.on("click.chosen",function(e){return function(t){e.choices_click(t)}}(this)):this.container.on("click.chosen",(function(e){e.preventDefault()}))},n.prototype.destroy=function(){return e(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.form_field_label.length>0&&this.form_field_label.off("click.chosen"),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},n.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field.disabled||this.form_field_jq.parents("fieldset").is(":disabled"),this.container.toggleClass("chosen-disabled",this.is_disabled),this.search_field[0].disabled=this.is_disabled,this.is_multiple||this.selected_item.off("focus.chosen",this.activate_field),this.is_disabled?this.close_field():this.is_multiple?void 0:this.selected_item.on("focus.chosen",this.activate_field)},n.prototype.container_mousedown=function(t){var n;if(!this.is_disabled)return!t||"mousedown"!==(n=t.type)&&"touchstart"!==n||this.results_showing||t.preventDefault(),null!=t&&e(t.target).hasClass("search-choice-close")?void 0:(this.active_field?this.is_multiple||!t||e(t.target)[0]!==this.selected_item[0]&&!e(t.target).parents("a.chosen-single").length||(t.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),e(this.container[0].ownerDocument).on("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},n.prototype.container_mouseup=function(e){if("ABBR"===e.target.nodeName&&!this.is_disabled)return this.results_reset(e)},n.prototype.search_results_mousewheel=function(e){var t;if(e.originalEvent&&(t=e.originalEvent.deltaY||-e.originalEvent.wheelDelta||e.originalEvent.detail),null!=t)return e.preventDefault(),"DOMMouseScroll"===e.type&&(t*=40),this.search_results.scrollTop(t+this.search_results.scrollTop())},n.prototype.blur_test=function(e){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},n.prototype.close_field=function(){return e(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale(),this.search_field.blur()},n.prototype.activate_field=function(){if(!this.is_disabled)return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},n.prototype.test_active_click=function(t){var n;return(n=e(t.target).closest(".chosen-container")).length&&this.container[0]===n[0]?this.active_field=!0:this.close_field()},n.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=r.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},n.prototype.result_do_highlight=function(e){var t,n,r,i,o;if(e.length){if(this.result_clear_highlight(),this.result_highlight=e,this.result_highlight.addClass("highlighted"),i=(r=parseInt(this.search_results.css("maxHeight"),10))+(o=this.search_results.scrollTop()),(t=(n=this.result_highlight.position().top+this.search_results.scrollTop())+this.result_highlight.outerHeight())>=i)return this.search_results.scrollTop(t-r>0?t-r:0);if(n0)return this.form_field_label.on("click.chosen",this.label_click_handler)},n.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},n.prototype.search_results_mouseup=function(t){var n;if((n=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first()).length)return this.result_highlight=n,this.result_select(t),this.search_field.focus()},n.prototype.search_results_mouseover=function(t){var n;if(n=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first())return this.result_do_highlight(n)},n.prototype.search_results_mouseout=function(t){if(e(t.target).hasClass("active-result")||e(t.target).parents(".active-result").first())return this.result_clear_highlight()},n.prototype.choice_build=function(t){var n,r,i;return n=e("",{class:"search-choice"}).html(""+this.choice_label(t)+""),t.disabled?n.addClass("search-choice-disabled"):((r=e("",{class:"search-choice-close","data-option-array-index":t.array_index})).on("click.chosen",(i=this,function(e){return i.choice_destroy_link_click(e)})),n.append(r)),this.search_container.before(n)},n.prototype.choice_destroy_link_click=function(t){if(t.preventDefault(),t.stopPropagation(),!this.is_disabled)return this.choice_destroy(e(t.target))},n.prototype.choice_destroy=function(e){if(this.result_deselect(e[0].getAttribute("data-option-array-index")))return this.active_field?this.search_field.focus():this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.get_search_field_value().length<1&&this.results_hide(),e.parents("li").first().remove(),this.search_field_scale()},n.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.trigger_form_field_change(),this.active_field)return this.results_hide()},n.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},n.prototype.result_select=function(e){var t,n;if(this.result_highlight)return t=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?t.removeClass("active-result"):this.reset_single_select_options(),t.addClass("result-selected"),(n=this.results_data[t[0].getAttribute("data-option-array-index")]).selected=!0,this.form_field.options[n.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(n):this.single_set_selected_text(this.choice_label(n)),this.is_multiple&&(!this.hide_results_on_select||e.metaKey||e.ctrlKey)?e.metaKey||e.ctrlKey?this.winnow_results({skip_highlight:!0}):(this.search_field.val(""),this.winnow_results()):(this.results_hide(),this.show_search_field_default()),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.trigger_form_field_change({selected:this.form_field.options[n.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,e.preventDefault(),this.search_field_scale())},n.prototype.single_set_selected_text=function(e){return null==e&&(e=this.default_text),e===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(e)},n.prototype.result_deselect=function(e){var t;return t=this.results_data[e],!this.form_field.options[t.options_index].disabled&&(t.selected=!1,this.form_field.options[t.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.trigger_form_field_change({deselected:this.form_field.options[t.options_index].value}),this.search_field_scale(),!0)},n.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after(''),this.selected_item.addClass("chosen-single-with-deselect")},n.prototype.get_search_field_value=function(){return this.search_field.val()},n.prototype.get_search_text=function(){return e.trim(this.get_search_field_value())},n.prototype.escape_html=function(t){return e("").text(t).html()},n.prototype.winnow_results_set_highlight=function(){var e,t;if(null!=(e=(t=this.is_multiple?[]:this.search_results.find(".result-selected.active-result")).length?t.first():this.search_results.find(".active-result").first()))return this.result_do_highlight(e)},n.prototype.no_results=function(e){var t;return t=this.get_no_results_html(e),this.search_results.append(t),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},n.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},n.prototype.keydown_arrow=function(){var e;return this.results_showing&&this.result_highlight?(e=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(e):void 0:this.results_show()},n.prototype.keyup_arrow=function(){var e;return this.results_showing||this.is_multiple?this.result_highlight?(e=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(e.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight()):void 0:this.results_show()},n.prototype.keydown_backstroke=function(){var e;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(e=this.search_container.siblings("li.search-choice").last()).length&&!e.hasClass("search-choice-disabled")?(this.pending_backstroke=e,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},n.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},n.prototype.search_field_scale=function(){var t,n,r,i,o,a,s;if(this.is_multiple){for(o={position:"absolute",left:"-1000px",top:"-1000px",display:"none",whiteSpace:"pre"},n=0,r=(a=["fontSize","fontStyle","fontWeight","fontFamily","lineHeight","textTransform","letterSpacing"]).length;n").css(o)).text(this.get_search_field_value()),e("body").append(t),s=t.width()+25,t.remove(),this.container.is(":visible")&&(s=Math.min(this.container.outerWidth()-10,s)),this.search_field.width(s)}},n.prototype.trigger_form_field_change=function(e){return this.form_field_jq.trigger("input",e),this.form_field_jq.trigger("change",e)},n}(t)}).call(this)},69496:function(e){"use strict";e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=void 0,i=void 0,o=void 0,a=[];return function(){var u=function(e){return"function"==typeof e?e():e}(t),c=(new Date).getTime(),l=!r||c-r>u;r=c;for(var f=arguments.length,d=Array(f),h=0;h3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!u&&u(e,t);if(o)o(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===r&&f?f.enumerable:!r,value:n,writable:null===i&&f?f.writable:!i});else{if(!l&&(r||i||c))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},4289:function(e,t,n){"use strict";var r=n(82215),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=n(12296),u=n(31044)(),c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;u?s(e,t,n,!0):s(e,t,n)},l=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s0;e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1)},e}();t.default=u},25379:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(93026),i=n(76324),o=n(51861),a=n(41143),s=function(){function e(e,t){this.store=e,this.registry=t}return e.prototype.subscribeToStateChange=function(e,t){var n=this;void 0===t&&(t={handlerIds:void 0});var r=t.handlerIds;a("function"==typeof e,"listener must be a function."),a(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");var i=this.store.getState().stateId;return this.store.subscribe((function(){var t=n.store.getState(),a=t.stateId;try{a===i||a===i+1&&!o.areDirty(t.dirtyHandlerIds,r)||e()}finally{i=a}}))},e.prototype.subscribeToOffsetChange=function(e){var t=this;a("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())}))},e.prototype.canDragSource=function(e){var t=this.registry.getSource(e);return a(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)},e.prototype.canDropOnTarget=function(e){var t=this.registry.getTarget(e);if(a(t,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var n=this.registry.getTargetType(e),i=this.getItemType();return r.default(n,i)&&t.canDrop(this,e)},e.prototype.isDragging=function(){return Boolean(this.getItemType())},e.prototype.isDraggingSource=function(e){var t=this.registry.getSource(e,!0);return a(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))},e.prototype.isOverTarget=function(e,t){void 0===t&&(t={shallow:!1});var n=t.shallow;if(!this.isDragging())return!1;var i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!r.default(i,o))return!1;var a=this.getTargetIds();if(!a.length)return!1;var s=a.indexOf(e);return n?s===a.length-1:s>-1},e.prototype.getItemType=function(){return this.store.getState().dragOperation.itemType},e.prototype.getItem=function(){return this.store.getState().dragOperation.item},e.prototype.getSourceId=function(){return this.store.getState().dragOperation.sourceId},e.prototype.getTargetIds=function(){return this.store.getState().dragOperation.targetIds},e.prototype.getDropResult=function(){return this.store.getState().dragOperation.dropResult},e.prototype.didDrop=function(){return this.store.getState().dragOperation.didDrop},e.prototype.isSourcePublic=function(){return this.store.getState().dragOperation.isSourcePublic},e.prototype.getInitialClientOffset=function(){return this.store.getState().dragOffset.initialClientOffset},e.prototype.getInitialSourceClientOffset=function(){return this.store.getState().dragOffset.initialSourceClientOffset},e.prototype.getClientOffset=function(){return this.store.getState().dragOffset.clientOffset},e.prototype.getSourceClientOffset=function(){return i.getSourceClientOffset(this.store.getState().dragOffset)},e.prototype.getDifferenceFromInitialOffset=function(){return i.getDifferenceFromInitialOffset(this.store.getState().dragOffset)},e}();t.default=s},8099:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(97946),i=n(71770),o=n(2871),a=n(71137),s=n(41143),u=n(69272);function c(e){switch(e[0]){case"S":return o.HandlerRole.SOURCE;case"T":return o.HandlerRole.TARGET;default:s(!1,"Cannot parse handler ID: "+e)}}function l(e,t){var n=e.entries(),r=!1;do{var i=n.next(),o=i.done;if(i.value[1]===t)return!0;r=o}while(!r);return!1}var f=function(){function e(e){this.store=e,this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null}return e.prototype.addSource=function(e,t){a.validateType(e),a.validateSourceContract(t);var n=this.addHandler(o.HandlerRole.SOURCE,e,t);return this.store.dispatch(r.addSource(n)),n},e.prototype.addTarget=function(e,t){a.validateType(e,!0),a.validateTargetContract(t);var n=this.addHandler(o.HandlerRole.TARGET,e,t);return this.store.dispatch(r.addTarget(n)),n},e.prototype.containsHandler=function(e){return l(this.dragSources,e)||l(this.dropTargets,e)},e.prototype.getSource=function(e,t){return void 0===t&&(t=!1),s(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)},e.prototype.getTarget=function(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)},e.prototype.getSourceType=function(e){return s(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)},e.prototype.getTargetType=function(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)},e.prototype.isSourceId=function(e){return c(e)===o.HandlerRole.SOURCE},e.prototype.isTargetId=function(e){return c(e)===o.HandlerRole.TARGET},e.prototype.removeSource=function(e){var t=this;s(this.getSource(e),"Expected an existing source."),this.store.dispatch(r.removeSource(e)),u((function(){t.dragSources.delete(e),t.types.delete(e)}))},e.prototype.removeTarget=function(e){s(this.getTarget(e),"Expected an existing target."),this.store.dispatch(r.removeTarget(e)),this.dropTargets.delete(e),this.types.delete(e)},e.prototype.pinSource=function(e){var t=this.getSource(e);s(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t},e.prototype.unpinSource=function(){s(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null},e.prototype.addHandler=function(e,t,n){var r=function(e){var t=i.default().toString();switch(e){case o.HandlerRole.SOURCE:return"S"+t;case o.HandlerRole.TARGET:return"T"+t;default:throw new Error("Unknown Handler Role: "+e)}}(e);return this.types.set(r,t),e===o.HandlerRole.SOURCE?this.dragSources.set(r,n):e===o.HandlerRole.TARGET&&this.dropTargets.set(r,n),r},e}();t.default=f},71548:function(e,t,n){"use strict";var r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;m--)if(l.canDragSource(n[m])){v=n[m];break}if(null!==v){var g=null;u&&(o("function"==typeof c,"When clientOffset is provided, getSourceClientOffset must be a function."),g=c(v));var y=f.getSource(v).beginDrag(l,v);o(a(y),"Item must be an object."),f.pinSource(v);var b=f.getSourceType(v);return{type:t.BEGIN_DRAG,payload:{itemType:b,item:y,sourceId:v,clientOffset:u||null,sourceClientOffset:g||null,isSourcePublic:!!s}}}},publishDragSource:function(){if(e.getMonitor().isDragging())return{type:t.PUBLISH_DRAG_SOURCE}},hover:function(n,r){var a=(void 0===r?{}:r).clientOffset;o(Array.isArray(n),"Expected targetIds to be an array.");var s=n.slice(0),u=e.getMonitor(),c=e.getRegistry();o(u.isDragging(),"Cannot call hover while not dragging."),o(!u.didDrop(),"Cannot call hover after drop.");for(var l=0;l=0;l--){f=s[l];var p=c.getTargetType(f);i.default(p,h)||s.splice(l,1)}for(var v=0,m=s;v0||!o.areArraysEqual(c,f)))return a.NONE;var h=f[f.length-1],p=c[c.length-1];return h!==p&&(h&&d.push(h),p&&d.push(p)),d}},26042:function(e,t,n){"use strict";var r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)}},89837:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.strictEquality=function(e,t){return e===t},t.areCoordsEqual=function(e,t){return!e&&!t||!(!e||!t)&&(e.x===t.x&&e.y===t.y)},t.areArraysEqual=function(e,n,r){if(void 0===r&&(r=t.strictEquality),e.length!==n.length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:"";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return Object.defineProperty(n,"message",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(n,"name",{configurable:!0,enumerable:!1,value:n.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?(Error.captureStackTrace(n,n.constructor),r(n)):(Object.defineProperty(n,"stack",{configurable:!0,enumerable:!1,value:new Error(e).stack,writable:!0}),n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(function(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error));t.default=i},82702:function(e,t,n){e.exports=function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function t(e){return"function"==typeof e}var r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,o=void 0,a=void 0,s=function(e,t){_[i]=e,_[i+1]=t,2===(i+=2)&&(a?a(w):S())};function u(e){a=e}function c(e){s=e}var l="undefined"!=typeof window?window:void 0,f=l||{},d=f.MutationObserver||f.WebKitMutationObserver,h="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),p="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function v(){return function(){return process.nextTick(w)}}function m(){return void 0!==o?function(){o(w)}:b()}function g(){var e=0,t=new d(w),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function y(){var e=new MessageChannel;return e.port1.onmessage=w,function(){return e.port2.postMessage(0)}}function b(){var e=setTimeout;return function(){return e(w,1)}}var _=new Array(1e3);function w(){for(var e=0;e1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=k(e,0,1),n=k(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return E(e,C,(function(e,t,n,i){r[r.length]=n?E(i,T,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=A("%"+r+"%",t),s=o.name,c=o.value,l=!1,f=o.alias;f&&(r=f[0],S(n,x([0,1],f)));for(var d=1,h=!0;d=n.length){var y=u(c,p);c=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:c[p]}else h=w(c,p),c=c[p];h&&!l&&(m[s]=c)}}return c}},27296:function(e,t,n){"use strict";var r=n(40210)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},41277:function(e,t){"use strict";t.shouldInclude=function(e,t){if(t||(t={}),!e.directives)return!0;var n=!0;return e.directives.forEach((function(e){if("skip"===e.name.value||"include"===e.name.value){var r=e.arguments,i=e.name.value;if(1!==r.length)throw new Error("Incorrect number of arguments for the @"+i+" directive.");var o=e.arguments[0];if(!o.name||"if"!==o.name.value)throw new Error("Invalid argument for the @"+i+" directive.");var a=e.arguments[0].value,s=!1;if(a&&"BooleanValue"===a.kind)s=a.value;else{if("Variable"!==a.kind)throw new Error("Argument for the @"+i+" directive must be a variable or a bool ean value.");if(void 0===(s=t[a.name.value]))throw new Error("Invalid variable referenced in @"+i+" directive.")}"skip"===i&&(s=!s),s||(n=!1)}})),n}},60096:function(e,t,n){"use strict";var r=n(31730),i=n(16191),o=n(66924);function a(e){if("Document"!==e.kind)throw new Error('Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql');var t=e.definitions.map((function(e){return e.kind}));if(i(t,o).OperationDefinition>1)throw new Error("Queries must have exactly one operation definition.")}function s(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function u(e){a(e);var t=null;if(e.definitions.map((function(e){"OperationDefinition"===e.kind&&"query"===e.operation&&(t=e)})),!t)throw new Error("Must contain a query definition.");return t}t.getMutationDefinition=function(e){a(e);var t=null;if(e.definitions.forEach((function(e){"OperationDefinition"===e.kind&&"mutation"===e.operation&&(t=e)})),!t)throw new Error("Must contain a mutation definition.");return t},t.checkDocument=a,t.getOperationName=function(e){var t="";return e.definitions.forEach((function(e){"OperationDefinition"===e.kind&&e.name&&(t=e.name.value)})),t},t.getFragmentDefinitions=s,t.getQueryDefinition=u,t.getFragmentDefinition=function(e){if("Document"!==e.kind)throw new Error('Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql');if(e.definitions.length>1)throw new Error("Fragment must have exactly one definition.");var t=e.definitions[0];if("FragmentDefinition"!==t.kind)throw new Error("Must be a fragment definition.");return t},t.createFragmentMap=function(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t},t.addFragmentsToDocument=function(e,t){return a(e),r({},e,{definitions:e.definitions.concat(t)})},t.getMainDefinition=function(e){a(e);try{return u(e)}catch(t){try{return s(e)[0]}catch(e){throw new Error("Expected a parsed GraphQL query with a query or a fragment.")}}}},41956:function(e,t,n){"use strict";var r=n(60096),i=n(41277),o=n(85786),a=n(64748),s=n(28801),u=n(72378);function c(e,t,n){var r=n.fragmentMap,f=n.contextValue,d=n.variableValues,h={};return e.selections.forEach((function(e){if(i.shouldInclude(e,d))if(o.isField(e)){var p=function(e,t,n){var r=n.variableValues,i=n.contextValue,u=n.resolver,f=e.name.value,d=o.argumentsObjectFromField(e,r),h={isLeaf:!e.selectionSet,resultKey:o.resultKeyNameFromField(e)},p=u(f,t,d,i,h);if(!e.selectionSet)return p;if(a(p)||s(p))return p;if(Array.isArray(p))return l(e,p,n);return c(e.selectionSet,p,n)}(e,t,n),v=o.resultKeyNameFromField(e);void 0!==p&&(h[v]=p)}else{var m=void 0;if(o.isInlineFragment(e))m=e;else if(!(m=r[e.name.value]))throw new Error("No fragment named "+e.name.value);var g=m.typeCondition.name.value;if(n.fragmentMatcher(t,g,f)){var y=c(m.selectionSet,t,n);u(h,y)}}})),n.resultMapper?n.resultMapper(h,t):h}function l(e,t,n){return t.map((function(t){return a(t)?null:Array.isArray(t)?l(e,t,n):c(e.selectionSet,t,n)}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i,o,a){void 0===a&&(a={});var s=r.getMainDefinition(t),u=r.getFragmentDefinitions(t),l={fragmentMap:r.createFragmentMap(u)||{},contextValue:i,variableValues:o,resultMapper:a.resultMapper,resolver:e,fragmentMatcher:a.fragmentMatcher||function(){return!0}};return c(s.selectionSet,n,l)}},85786:function(e,t,n){"use strict";var r=n(28922);function i(e,t,n,o){if(function(e){return r(["IntValue","FloatValue"],e.kind)}(n))e[t.value]=Number(n.value);else if(function(e){return r(["StringValue","BooleanValue","EnumValue"],e.kind)}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var a={};n.fields.map((function(e){return i(a,e.name,e.value,o)})),e[t.value]=a}else if(function(e){return"Variable"===e.kind}(n)){if(!o||!(n.name.value in o))throw new Error('The inline argument "'+n.name.value+'" is expected as a variable but was not provided.');var s=o[n.name.value];e[t.value]=s}else{if(!function(e){return"ListValue"===e.kind}(n))throw new Error('The inline argument "'+t.value+'" of kind "'+n.kind+'" is not supported. Use variables instead of inline arguments to overcome this limitation.');e[t.value]=n.values.map((function(e){var n={};return i(n,t,e,o),n[t.value]}))}}t.argumentsObjectFromField=function(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,o=e.value;return i(n,r,o,t)})),n}return null},t.resultKeyNameFromField=function(e){return e.alias?e.alias.value:e.name.value},t.isField=function(e){return"Field"===e.kind},t.isInlineFragment=function(e){return"InlineFragment"===e.kind},t.graphQLResultHasError=function(e){return e.errors&&e.errors.length}},40882:function(e,t,n){"use strict";var r=n(41956),i=n(60096),o=function(){function e(e){for(var t=[],n=1;n=t)break;n=a.index+a[0].length,r+=1}return{line:r,column:t+1-n}}function s(e){return u(e.source,a(e.source,e.start))}function u(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,u=t.column+s,l=`${e.name}:${a}:${u}\n`,f=r.split(/\r\n|[\n\r]/g),d=f[i];if(d.length>120){const e=Math.floor(u/80),t=u%80,n=[];for(let e=0;e["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return l+c([[a-1+" |",f[i-1]],[`${a} |`,d],["|","^".padStart(u)],[`${a+1} |`,f[i+1]]])}function c(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class l extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:s,positions:u,path:c,originalError:d,extensions:h}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=c?c:void 0,this.originalError=null!=d?d:void 0,this.nodes=f(Array.isArray(o)?o:o?[o]:void 0);const p=f(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=s?s:null==p||null===(r=p[0])||void 0===r?void 0:r.source,this.positions=null!=u?u:null==p?void 0:p.map((e=>e.start)),this.locations=u&&s?u.map((e=>a(s,e))):null==p?void 0:p.map((e=>a(e.source,e.start)));const v="object"==typeof(m=null==d?void 0:d.extensions)&&null!==m?null==d?void 0:d.extensions:void 0;var m;this.extensions=null!==(i=null!=h?h:v)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,l):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+s(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+u(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function f(e){return void 0===e||0===e.length?void 0:e}function d(e,t,n){return new l(`Syntax Error: ${n}`,{source:e,positions:[t]})}var h,p=n(72380);!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(h||(h={}));var v,m=n(97359),g=n(87392),y=n(68297);!function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(v||(v={}));class b{constructor(e){const t=new p.WU(v.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==v.EOF)do{if(e.next)e=e.next;else{const t=O(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===v.COMMENT);return e}}function _(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function w(e,t){return x(e.charCodeAt(t))&&S(e.charCodeAt(t+1))}function x(e){return e>=55296&&e<=56319}function S(e){return e>=56320&&e<=57343}function E(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return v.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function k(e,t,n,r,i){const o=e.line,a=1+n-e.lineStart;return new p.WU(t,n,r,o,a,i)}function O(e,t){const n=e.source.body,r=n.length;let i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function P(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw d(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function N(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,a=o,s="";const u=[];for(;o0||(0,L.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,L.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class V{constructor(e,t={}){const n=function(e){return z(e,B)}(e)?e:new B(e);this._lexer=new b(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(v.NAME);return this.node(e,{kind:m.h.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:m.h.DOCUMENT,definitions:this.many(v.SOF,this.parseDefinition,v.EOF)})}parseDefinition(){if(this.peek(v.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===v.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw d(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(v.BRACE_L))return this.node(e,{kind:m.h.OPERATION_DEFINITION,operation:p.ku.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(v.NAME)&&(n=this.parseName()),this.node(e,{kind:m.h.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(v.NAME);switch(e.value){case"query":return p.ku.QUERY;case"mutation":return p.ku.MUTATION;case"subscription":return p.ku.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(v.PAREN_L,this.parseVariableDefinition,v.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:m.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(v.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(v.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(v.DOLLAR),this.node(e,{kind:m.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:m.h.SELECTION_SET,selections:this.many(v.BRACE_L,this.parseSelection,v.BRACE_R)})}parseSelection(){return this.peek(v.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(v.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:m.h.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(v.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(v.PAREN_L,t,v.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(v.COLON),this.node(t,{kind:m.h.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(v.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(v.NAME)?this.node(e,{kind:m.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:m.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:m.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:m.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case v.BRACKET_L:return this.parseList(e);case v.BRACE_L:return this.parseObject(e);case v.INT:return this.advanceLexer(),this.node(t,{kind:m.h.INT,value:t.value});case v.FLOAT:return this.advanceLexer(),this.node(t,{kind:m.h.FLOAT,value:t.value});case v.STRING:case v.BLOCK_STRING:return this.parseStringLiteral();case v.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:m.h.BOOLEAN,value:!0});case"false":return this.node(t,{kind:m.h.BOOLEAN,value:!1});case"null":return this.node(t,{kind:m.h.NULL});default:return this.node(t,{kind:m.h.ENUM,value:t.value})}case v.DOLLAR:if(e){if(this.expectToken(v.DOLLAR),this._lexer.token.kind===v.NAME){const e=this._lexer.token.value;throw d(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:m.h.STRING,value:e.value,block:e.kind===v.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:m.h.LIST,values:this.any(v.BRACKET_L,(()=>this.parseValueLiteral(e)),v.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:m.h.OBJECT,fields:this.any(v.BRACE_L,(()=>this.parseObjectField(e)),v.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(v.COLON),this.node(t,{kind:m.h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(v.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(v.AT),this.node(t,{kind:m.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(v.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(v.BRACKET_R),t=this.node(e,{kind:m.h.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(v.BANG)?this.node(e,{kind:m.h.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:m.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(v.STRING)||this.peek(v.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(v.BRACE_L,this.parseOperationTypeDefinition,v.BRACE_R);return this.node(e,{kind:m.h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(v.COLON);const n=this.parseNamedType();return this.node(e,{kind:m.h.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:m.h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:m.h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(v.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(v.BRACE_L,this.parseFieldDefinition,v.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(v.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:m.h.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(v.PAREN_L,this.parseInputValueDef,v.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(v.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(v.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:m.h.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:m.h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:m.h.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(v.EQUALS)?this.delimitedMany(v.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:m.h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(v.BRACE_L,this.parseEnumValueDefinition,v.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:m.h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw d(this._lexer.source,this._lexer.token.start,`${H(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:m.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(v.BRACE_L,this.parseInputValueDef,v.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===v.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(v.BRACE_L,this.parseOperationTypeDefinition,v.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:m.h.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:m.h.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:m.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:m.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:m.h.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:m.h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:m.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(v.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:m.h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(v.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(h,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new p.Ye(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw d(this._lexer.source,t.start,`Expected ${W(e)}, found ${H(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==v.NAME||t.value!==e)throw d(this._lexer.source,t.start,`Expected "${e}", found ${H(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===v.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return d(this._lexer.source,t.start,`Unexpected ${H(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==v.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw d(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function H(e){const t=e.value;return W(e.kind)+(null!=t?` "${t}"`:"")}function W(e){return function(e){return e===v.BANG||e===v.DOLLAR||e===v.AMP||e===v.PAREN_L||e===v.PAREN_R||e===v.SPREAD||e===v.COLON||e===v.EQUALS||e===v.AT||e===v.BRACKET_L||e===v.BRACKET_R||e===v.BRACE_L||e===v.PIPE||e===v.BRACE_R}(e)?`"${e}"`:e}var $=new Map,q=new Map,Z=!0,Y=!1;function G(e){return e.replace(/[\s,]+/g," ").trim()}function K(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=G((a=e.loc).source.body.substring(a.start,a.end)),o=q.get(r);o&&!o.has(i)?Z&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||q.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var a})),(0,r.pi)((0,r.pi)({},e),{definitions:n})}function Q(e){var t=G(e);if(!$.has(t)){var n=function(e,t){return new V(e,t).parseDocument()}(e,{experimentalFragmentVariables:Y,allowLegacyFragmentVariables:Y});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");$.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(K(n)))}return $.get(t)}function X(e){for(var t=[],n=1;n>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?l(e)+t:t}function d(){return!0}function h(e,t,n){return(0===e&&!g(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function p(e,t){return m(e,t,0)}function v(e,t){return m(e,t,t)}function m(e,t,n){return void 0===e?n:g(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function g(e){return e<0||0===e&&1/e==-1/0}var y="@@__IMMUTABLE_ITERABLE__@@";function b(e){return Boolean(e&&e[y])}var _="@@__IMMUTABLE_KEYED__@@";function w(e){return Boolean(e&&e[_])}var x="@@__IMMUTABLE_INDEXED__@@";function S(e){return Boolean(e&&e[x])}function E(e){return w(e)||S(e)}var k=function(e){return b(e)?e:Q(e)},O=function(e){function t(e){return w(e)?e:X(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(k),C=function(e){function t(e){return S(e)?e:J(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(k),T=function(e){function t(e){return b(e)&&!E(e)?e:ee(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(k);k.Keyed=O,k.Indexed=C,k.Set=T;var A="@@__IMMUTABLE_SEQ__@@";function D(e){return Boolean(e&&e[A])}var j="@@__IMMUTABLE_RECORD__@@";function R(e){return Boolean(e&&e[j])}function M(e){return b(e)||R(e)}var I="@@__IMMUTABLE_ORDERED__@@";function P(e){return Boolean(e&&e[I])}var N=0,F=1,L=2,U="function"==typeof Symbol&&Symbol.iterator,z="@@iterator",B=U||z,V=function(e){this.next=e};function H(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function W(){return{value:void 0,done:!0}}function $(e){return!!Array.isArray(e)||!!Y(e)}function q(e){return e&&"function"==typeof e.next}function Z(e){var t=Y(e);return t&&t.call(e)}function Y(e){var t=e&&(U&&e[U]||e[z]);if("function"==typeof t)return t}V.prototype.toString=function(){return"[Iterator]"},V.KEYS=N,V.VALUES=F,V.ENTRIES=L,V.prototype.inspect=V.prototype.toSource=function(){return this.toString()},V.prototype[B]=function(){return this};var G=Object.prototype.hasOwnProperty;function K(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var Q=function(e){function t(e){return null==e?oe():M(e)?e.toSeq():function(e){var t=ue(e);if(t)return(r=Y(n=e))&&r===n.entries?t.fromEntrySeq():function(e){var t=Y(e);return t&&t===e.keys}(e)?t.toSetSeq():t;var n,r;if("object"==typeof e)return new ne(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var o=n[t?r-++i:i++];if(!1===e(o[1],o[0],this))break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new V((function(){if(i===r)return{value:void 0,done:!0};var o=n[t?r-++i:i++];return H(e,o[0],o[1])}))}return this.__iteratorUncached(e,t)},t}(k),X=function(e){function t(e){return null==e?oe().toKeyedSeq():b(e)?w(e)?e.toSeq():e.fromEntrySeq():R(e)?e.toSeq():ae(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Q),J=function(e){function t(e){return null==e?oe():b(e)?w(e)?e.entrySeq():e.toIndexedSeq():R(e)?e.toSeq().entrySeq():se(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(Q),ee=function(e){function t(e){return(b(e)&&!E(e)?e:J(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(Q);Q.isSeq=D,Q.Keyed=X,Q.Set=ee,Q.Indexed=J,Q.prototype[A]=!0;var te=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[f(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var o=t?r-++i:i++;if(!1===e(n[o],o,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new V((function(){if(i===r)return{value:void 0,done:!0};var o=t?r-++i:i++;return H(e,o,n[o])}))},t}(J),ne=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return G.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,o=0;o!==i;){var a=r[t?i-++o:o++];if(!1===e(n[a],a,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,o=0;return new V((function(){if(o===i)return{value:void 0,done:!0};var a=r[t?i-++o:o++];return H(e,a,n[a])}))},t}(X);ne.prototype[I]=!0;var re,ie=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=Z(this._collection),r=0;if(q(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=Z(this._collection);if(!q(n))return new V(W);var r=0;return new V((function(){var t=n.next();return t.done?t:H(e,r++,t.value)}))},t}(J);function oe(){return re||(re=new te([]))}function ae(e){var t=ue(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new ne(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function se(e){var t=ue(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function ue(e){return K(e)?new te(e):$(e)?new ie(e):void 0}var ce="@@__IMMUTABLE_MAP__@@";function le(e){return Boolean(e&&e[ce])}function fe(e){return le(e)&&P(e)}function de(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function he(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(de(e)&&de(t)&&e.equals(t))}var pe="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function ve(e){return e>>>1&1073741824|3221225471&e}var me=Object.prototype.valueOf;function ge(e){if(null==e)return ye(e);if("function"==typeof e.hashCode)return ve(e.hashCode(e));var t,n=(t=e).valueOf!==me&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==n)return ye(n);switch(typeof n){case"boolean":return n?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return ve(t)}(n);case"string":return n.length>Te?function(e){var t=je[e];void 0===t&&(t=be(e),De===Ae&&(De=0,je={}),De++,je[e]=t);return t}(n):be(n);case"object":case"function":return function(e){var t;if(Ee&&void 0!==(t=Se.get(e)))return t;if(t=e[Ce],void 0!==t)return t;if(!we){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ce]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=xe(),Ee)Se.set(e,t);else{if(void 0!==_e&&!1===_e(e))throw new Error("Non-extensible objects are not allowed as keys.");if(we)Object.defineProperty(e,Ce,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ce]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ce]=t}}return t}(n);case"symbol":return function(e){var t=ke[e];if(void 0!==t)return t;return t=xe(),ke[e]=t,t}(n);default:if("function"==typeof n.toString)return be(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function ye(e){return null===e?1108378658:1108378659}function be(e){for(var t=0,n=0;n=0&&(c.get=function(t,n){return(t=f(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||t===F||e.done?e:H(t,u-1,t===N?void 0:e.value[1],e)}))},c}function Be(e,t,n,r){var i=Ke(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate((function(e,o,c){if(!s||!(s=t.call(n,e,o,c)))return u++,i(e,r?o:u-1,a)})),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(L,o),u=!0,c=0;return new V((function(){var e,o,l;do{if((e=s.next()).done)return r||i===F?e:H(i,c++,i===N?void 0:e.value[1],e);var f=e.value;o=f[0],l=f[1],u&&(u=t.call(n,l,o,a))}while(u);return i===L?e:H(i,o,l,e)}))},i}function Ve(e,t,n){var r=Ke(e);return r.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var a=0,s=!1;return function e(u,c){u.__iterate((function(o,u){return(!t||c0}function qe(e,t,n,r){var i=Ke(e),o=new te(n).map((function(e){return e.size}));return i.size=r?o.max():o.min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(F,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=n.map((function(e){return e=k(e),Z(i?e.reverse():e)})),a=0,s=!1;return new V((function(){var n;return s||(n=o.map((function(e){return e.next()})),s=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:H(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function Ze(e,t){return e===t?e:D(e)?t:e.constructor(t)}function Ye(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ge(e){return w(e)?O:S(e)?C:T}function Ke(e){return Object.create((w(e)?X:S(e)?J:ee).prototype)}function Qe(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Q.prototype.cacheResult.call(this)}function Xe(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return St(this,t,e)}function St(e,t,n){for(var r=[],i=0;i